@cryptofi/core-ui 0.34.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -11
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +76 -68
- package/package.json +13 -12
package/dist/index.js
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import{jsxs as t,jsx as e}from"react/jsx-runtime";import{chakra as r,createMultiStyleConfigHelpers as n,defineStyle as i,defineStyleConfig as o,extendTheme as a,withDefaultColorScheme as c,useBreakpoint as u,Portal as l,Text as s,ButtonGroup as f,Button as h,Card as p,FormControl as d,Flex as y,FormLabel as v,Checkbox as g,FormErrorMessage as m,InputGroup as b,InputLeftAddon as w,InputLeftElement as x,Input as O,InputRightElement as S,InputRightAddon as j,FormHelperText as A,Box as P,Tooltip as M,Modal as E,ModalOverlay as k,ModalContent as _,ModalHeader as T,ModalCloseButton as C,ModalBody as N,ModalFooter as D,Select as I,Tag as B,TagLeftIcon as L,TagLabel as R,TagRightIcon as $,TagCloseButton as z,Alert as H,AlertIcon as F,AlertTitle as U,AlertDescription as V,CloseButton as q,Spinner as W}from"@chakra-ui/react";import X,{isValidElement as Y,Children as K,PureComponent as G,forwardRef as Z,useRef as J,useImperativeHandle as Q,useState as tt,useCallback as et,useEffect as rt,useMemo as nt,cloneElement as it,createElement as ot,useContext as at,createContext as ct,Component as ut}from"react";const lt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M12 .5a12 12 0 1 0 12 12 12.013 12.013 0 0 0-12-12m0 22a10 10 0 1 1 10-10 10.01 10.01 0 0 1-10 10"}),e("path",{d:"M12 5.5a1 1 0 0 0-1 1v8a1 1 0 1 0 2 0v-8a1 1 0 0 0-1-1M13 18.5a1 1 0 1 0-2 0 1 1 0 0 0 2 0"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),st=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"none",viewBox:"0 0 16 17","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m14.563 9.22-.915.947-3.02-3.125a2.54 2.54 0 0 0-1.785-.74c-.666 0-1.305.265-1.786.74l-.146.15a.85.85 0 0 1-.596.248.85.85 0 0 1-.595-.248L1.448 2.766A.84.84 0 0 0 .849 2.5a.82.82 0 0 0-.602.255A.87.87 0 0 0 0 3.38.9.9 0 0 0 .257 4l4.271 4.42c.482.476 1.121.741 1.787.741S7.62 8.895 8.1 8.42l.145-.151a.85.85 0 0 1 .596-.247c.222 0 .435.088.595.247l3.02 3.13-.914.947a.9.9 0 0 0-.183.95c.064.159.172.295.31.39a.82.82 0 0 0 .468.147h2.599c.335 0 .656-.137.893-.383a1.33 1.33 0 0 0 .37-.924V9.831a.9.9 0 0 0-.144-.482.85.85 0 0 0-.379-.319.82.82 0 0 0-.915.19"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h16v16H0z"})})})]}))),ft=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M14.738 2H12.14a.82.82 0 0 0-.467.147.87.87 0 0 0-.31.39.9.9 0 0 0 .182.949l.914.945-3.018 3.121a.85.85 0 0 1-.595.247.85.85 0 0 1-.595-.247l-.144-.149a2.54 2.54 0 0 0-1.785-.74c-.665 0-1.304.265-1.785.74l-4.292 4.44a.9.9 0 0 0-.246.618c0 .232.09.454.248.617a.83.83 0 0 0 .598.255.83.83 0 0 0 .596-.256l4.292-4.44a.85.85 0 0 1 .595-.247c.222 0 .435.088.596.247l.143.149a2.54 2.54 0 0 0 1.785.74 2.54 2.54 0 0 0 1.785-.74l3.018-3.122.913.945a.815.815 0 0 0 .913.182.85.85 0 0 0 .376-.319.9.9 0 0 0 .142-.48V3.306a1.33 1.33 0 0 0-.37-.924A1.24 1.24 0 0 0 14.738 2"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{d:"M0 0h16v16H0z"})})})]}))),ht=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M24 23.5a1 1 0 0 1-1 1H1a1 1 0 0 1 0-2h22a1 1 0 0 1 1 1M.291 9.052a2.44 2.44 0 0 1 .153-2.566c.427-.627 1-1.141 1.668-1.5l7.501-3.904a5.17 5.17 0 0 1 4.774 0l7.5 3.907c.669.359 1.24.873 1.668 1.5a2.44 2.44 0 0 1 .153 2.566 2.71 2.71 0 0 1-2.416 1.445H21v8h1a1 1 0 1 1 0 2H2a1 1 0 0 1 0-2h1v-8h-.292A2.71 2.71 0 0 1 .291 9.052m4.71 9.448h3v-8H5zm5-8v8h4v-8zm9 0h-3v8h3zM2.062 8.125a.72.72 0 0 0 .645.375h18.584a.72.72 0 0 0 .645-.375.45.45 0 0 0-.024-.5 2.7 2.7 0 0 0-.949-.864l-7.5-3.907a3.18 3.18 0 0 0-2.926 0l-7.5 3.907a2.7 2.7 0 0 0-.949.865.45.45 0 0 0-.026.5"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),pt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M5 23h18a1 1 0 0 1 0 2H5a5.006 5.006 0 0 1-5-5V2a1 1 0 0 1 2 0v18a3 3 0 0 0 3 3"}),e("path",{d:"M6.707 20.707A1 1 0 0 1 5 20v-7a1 1 0 0 1 2 0v7a1 1 0 0 1-.293.707M10 11v9a1 1 0 1 0 2 0v-9a1 1 0 0 0-2 0M15 20v-6a1 1 0 0 1 2 0v6a1 1 0 1 1-2 0M20 10v10a1 1 0 1 0 2 0V10a1 1 0 0 0-2 0M6.707 9.707a1 1 0 1 1-1.414-1.414l3.586-3.586a3 3 0 0 1 4.242 0l2.172 2.17a1 1 0 0 0 1.414 0l5.586-5.584a1 1 0 0 1 1.414 1.414L18.12 8.293a3 3 0 0 1-4.242 0L11.707 6.12a1.025 1.025 0 0 0-1.414 0z"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),dt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M13.5 15a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M7 16.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M18.5 15a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"}),e("path",{fillRule:"evenodd",d:"M18 2h1a5.006 5.006 0 0 1 5 5v12a5.006 5.006 0 0 1-5 5H5a5.006 5.006 0 0 1-5-5V7a5.006 5.006 0 0 1 5-5h1V1a1 1 0 0 1 2 0v1h8V1a1 1 0 0 1 2 0zM2.879 4.879A3 3 0 0 0 2 7v1h20V7a3 3 0 0 0-3-3H5a3 3 0 0 0-2.121.879m0 16.242A3 3 0 0 0 5 22h14a3 3 0 0 0 3-3v-9H2v9a3 3 0 0 0 .879 2.121",clipRule:"evenodd"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),yt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m.292 7.861 8.17 8.17a5 5 0 0 0 7.08 0l8.17-8.17a1.004 1.004 0 1 0-1.42-1.42l-8.17 8.17a3 3 0 0 1-4.24 0l-8.17-8.17a1 1 0 0 0-1.42 0 1 1 0 0 0 0 1.42"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),vt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M17.17 24.5a1 1 0 0 1-.71-.29l-8.17-8.17a5 5 0 0 1 0-7.08L16.46.79a1.004 1.004 0 1 1 1.42 1.42l-8.17 8.17a3 3 0 0 0 0 4.24l8.17 8.17a1 1 0 0 1-.71 1.71"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),gt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M7 24.5a1 1 0 0 1-.71-1.71l8.17-8.17a3 3 0 0 0 0-4.24L6.29 2.21A1.004 1.004 0 0 1 7.71.79l8.17 8.17a5 5 0 0 1 0 7.08l-8.17 8.17a1 1 0 0 1-.71.29"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),mt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m23.71 16.79-8.17-8.17a5 5 0 0 0-7.08 0L.29 16.79a1.004 1.004 0 1 0 1.42 1.42l8.17-8.17a3 3 0 0 1 4.24 0l8.17 8.17a1.002 1.002 0 0 0 1.64-.325 1 1 0 0 0-.22-1.095"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),bt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M11.033 5.145a.968.968 0 0 1 1.935 0v.944a6.5 6.5 0 0 1 3.618 1.827.968.968 0 0 1-1.37 1.369 4.55 4.55 0 0 0-3.215-1.332A4.534 4.534 0 0 0 7.452 12.5 4.534 4.534 0 0 0 12 17.05a4.55 4.55 0 0 0 3.209-1.339.967.967 0 0 1 1.372 1.367 6.5 6.5 0 0 1-3.612 1.833v.946a.967.967 0 1 1-1.935 0v-.944c-3.114-.47-5.516-3.17-5.516-6.41S7.92 6.56 11.033 6.09z"}),e("path",{fillRule:"evenodd",d:"M12 .5C5.384.5 0 5.884 0 12.5s5.384 12 12 12 12-5.384 12-12-5.384-12-12-12m0 1.936A10.05 10.05 0 0 1 22.064 12.5 10.05 10.05 0 0 1 12 22.564 10.05 10.05 0 0 1 1.936 12.5 10.05 10.05 0 0 1 12 2.436",clipRule:"evenodd"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),wt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M22.319 4.931 8.499 18.75a1 1 0 0 1-1.416 0L1.739 13.4a1 1 0 0 0-1.417 0 1 1 0 0 0 0 1.417l5.346 5.345a3.01 3.01 0 0 0 4.25 0L23.736 6.347a1 1 0 0 0-.709-1.71 1 1 0 0 0-.708.294"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),xt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M19 3.5h-6.528a1 1 0 0 1-.447-.1L8.869 1.816A3 3 0 0 0 7.528 1.5H5a5.006 5.006 0 0 0-5 5v12a5.006 5.006 0 0 0 5 5h14a5.006 5.006 0 0 0 5-5v-10a5.006 5.006 0 0 0-5-5m-14 0h2.528c.155 0 .308.033.447.1l3.156 1.58c.416.208.875.318 1.341.32H19a3 3 0 0 1 2.779 1.882L2 7.494V6.5a3 3 0 0 1 3-3m14 18H5a3 3 0 0 1-3-3V9.494l20-.113v9.12a3 3 0 0 1-3 3"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Ot=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M23.707.793a1 1 0 0 0-1.414 0L12 11.086 1.707.793a1 1 0 0 0-1.414 0 1 1 0 0 0 0 1.414L10.586 12.5.293 22.793a1 1 0 0 0 0 1.414 1 1 0 0 0 1.414 0L12 13.914l10.293 10.293a1 1 0 0 0 1.414-1.414L13.414 12.5 23.707 2.207a1 1 0 0 0 0-1.414"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),St=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M21.736 16.9A5.01 5.01 0 0 0 17 13.5h-4v-1.084a6 6 0 1 0-2 0V13.5H7a5.01 5.01 0 0 0-4.736 3.4 4 4 0 1 0 2.447-.334A3 3 0 0 1 7 15.5h4v1.127a4 4 0 1 0 2 0V15.5h4a3 3 0 0 1 2.289 1.063 4 4 0 1 0 2.447.334zM8 6.5a4 4 0 1 1 8 0 4 4 0 0 1-8 0m-2 14a2 2 0 1 1-4 0 2 2 0 0 1 4 0m8 0a2 2 0 1 1-4.001 0 2 2 0 0 1 4 0m6 2a2 2 0 1 1 0-4 2 2 0 0 1 0 4"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),jt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M13 20.5a5.006 5.006 0 0 0 5-5V6.743a3.97 3.97 0 0 0-1.172-2.829l-2.242-2.242A3.97 3.97 0 0 0 11.757.5H7a5.006 5.006 0 0 0-5 5v10a5.006 5.006 0 0 0 5 5zm-9-5v-10a3 3 0 0 1 3-3s4.92.014 5 .024V4.5a2 2 0 0 0 2 2h1.976c.01.081.024 9 .024 9a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3m18-7v11a5.005 5.005 0 0 1-5 5H8a1 1 0 0 1 0-2h9a3 3 0 0 0 3-3v-11a1 1 0 0 1 2 0"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),At=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M13.932 4.5A3.07 3.07 0 0 1 17 7.568a1 1 0 0 0 2 0v-.123A5.073 5.073 0 0 0 13.932 2.5H13v-1a1 1 0 1 0-2 0v1h-.932a5.068 5.068 0 0 0-1.6 9.875L11 13.22v7.28h-.932A3.07 3.07 0 0 1 7 17.432a1 1 0 1 0-2 0v.123a5.073 5.073 0 0 0 5.068 4.945H11v1a1 1 0 0 0 2 0v-1h.932a5.068 5.068 0 0 0 1.6-9.875L13 11.78V4.5zm.97 10.021a3.068 3.068 0 0 1-.97 5.979H13v-6.613zM11 11.113l-1.9-.634a3.068 3.068 0 0 1 .968-5.979H11z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Pt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M10.852 19.273a3 3 0 0 1-.974-.651l-3.21-3.207A1 1 0 0 1 8.08 14l2.91 2.908.01-15.408a1 1 0 0 1 2 0l-.008 15.427L15.92 14a1 1 0 0 1 1.414 1.411l-3.21 3.211a3 3 0 0 1-3.271.65"}),e("path",{d:"M22.293 16.793A1 1 0 0 1 24 17.5v4a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3v-4a1 1 0 1 1 2 0v4a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1v-4a1 1 0 0 1 .293-.707"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Mt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{fillRule:"evenodd",d:"M18.67 1.387 6.469 13.602a4.97 4.97 0 0 0-1.465 3.541v1.346a1 1 0 0 0 1 1.002H7.35a4.96 4.96 0 0 0 3.537-1.467l12.2-12.215a3.133 3.133 0 0 0 0-4.422 3.195 3.195 0 0 0-4.416 0m.18 5.83-9.379 9.39a3.02 3.02 0 0 1-2.122.88h-.344v-.344c.002-.796.318-1.56.879-2.125l9.378-9.39zm1.415-1.416 1.407-1.409a1.126 1.126 0 0 0 0-1.589 1.15 1.15 0 0 0-1.587 0l-1.407 1.409z",clipRule:"evenodd"}),e("path",{d:"M0 23.498c0-.553.373-1.002.834-1.002H19.18c.46 0 .834.449.834 1.002s-.373 1.002-.834 1.002H.834c-.46 0-.834-.449-.834-1.002"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Et=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M20.914 17.62a5 5 0 0 0 1.621-1.084A4.97 4.97 0 0 0 24 12.996V2a1 1 0 0 0-2 0v10.997a3 3 0 0 1-3 2.999H2.788L7.1 11.688a1.001 1.001 0 1 0-1.418-1.414l-4.95 4.95a2.5 2.5 0 0 0 0 3.534l4.95 4.948A1 1 0 0 0 7.1 22.294l-4.3-4.299H19a5 5 0 0 0 1.914-.376"})}))),kt=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M3.086 17.62a5 5 0 0 1-1.621-1.084A4.97 4.97 0 0 1 0 12.996V2a1 1 0 0 1 2 0v10.997a3 3 0 0 0 3 2.999h16.212L16.9 11.688a1.003 1.003 0 0 1 .002-1.416 1 1 0 0 1 1.416.002l4.95 4.95a2.5 2.5 0 0 1 0 3.534l-4.95 4.948a1 1 0 0 1-1.418-1.412l4.3-4.299H5a5 5 0 0 1-1.914-.376"})}))),_t=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{fill:"#000",clipPath:"url(#a)",children:e("path",{d:"M23.41 5.094c.373.372.585.875.59 1.401a2 2 0 0 1-.59 1.412l-4.29 4.303a1 1 0 1 1-1.41-1.421L21 7.496H11a1 1 0 0 1 0-2.001h10l-3.29-3.283A1.002 1.002 0 0 1 19.12.791zM3 17.504h10a1 1 0 0 1 .707 1.708 1 1 0 0 1-.707.294H3l3.29 3.282a1.002 1.002 0 0 1-1.41 1.421L.59 19.906A2 2 0 0 1 0 18.505c.002-.53.214-1.038.59-1.411l4.29-4.304a1 1 0 0 1 1.629 1.096 1 1 0 0 1-.219.325z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Tt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M14 24.5a1 1 0 0 1-.6-.2l-4-3a1 1 0 0 1-.4-.8v-5.62L1.984 6.987A3.9 3.9 0 0 1 4.9.5h14.2a3.9 3.9 0 0 1 2.913 6.488L15 14.88v8.62a1 1 0 0 1-1 1M11 20l2 1.5v-7a1 1 0 0 1 .253-.664l7.268-8.177A1.9 1.9 0 0 0 19.1 2.5H4.9a1.9 1.9 0 0 0-1.421 3.158l7.269 8.178A1 1 0 0 1 11 14.5z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Ct=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M12.717 5.563A4 4 0 0 0 8 9.5a1 1 0 1 0 2 0 2.002 2.002 0 0 1 2.371-1.967 2.02 2.02 0 0 1 1.6 1.595 2 2 0 0 1-1 2.125 3.95 3.95 0 0 0-1.97 3.504v.743a1 1 0 0 0 2 0v-.743a1.98 1.98 0 0 1 .93-1.752 4 4 0 0 0-1.214-7.442M12 17.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2"}),e("path",{fillRule:"evenodd",d:"M12 .5a12 12 0 1 0 12 12 12.013 12.013 0 0 0-12-12m0 22a10 10 0 1 1 10-10 10.01 10.01 0 0 1-10 10",clipRule:"evenodd"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Nt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",fillRule:"evenodd",d:"M22.293 11.793A1 1 0 0 1 24 12.5a11.994 11.994 0 1 1-4-8.935V1.5a1 1 0 1 1 2 0v3a3 3 0 0 1-3 3h-3a1 1 0 1 1 0-2h3a1 1 0 0 0 .1-.021A10.034 10.034 0 1 0 22 12.5a1 1 0 0 1 .293-.707m-11-5A1 1 0 0 1 13 7.5v4.586l2.707 2.707a1 1 0 0 1-1.414 1.414l-3-3A1 1 0 0 1 11 12.5v-5a1 1 0 0 1 .293-.707",clipRule:"evenodd"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Dt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m23.121 9.569-7.585-7.586a5.01 5.01 0 0 0-7.072 0L.88 9.569A2.98 2.98 0 0 0 0 11.689v9.818a3 3 0 0 0 3 3h18a3 3 0 0 0 3-3V11.69a2.98 2.98 0 0 0-.879-2.121m-8.12 12.938H9v-3.934a3 3 0 0 1 6 0zm7-1a1 1 0 0 1-1 1h-4v-3.934a5 5 0 0 0-10 0v3.934H3a1 1 0 0 1-1-1V11.69c0-.265.105-.52.292-.707L9.878 3.4a3.01 3.01 0 0 1 4.244 0l7.585 7.586c.186.187.291.44.293.704z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),It=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M6.41 9.5h11.18a1 1 0 0 1 .7 1.71l-5.58 5.58a1 1 0 0 1-1.42 0l-5.58-5.58a1 1 0 0 1 .7-1.71"})}))),Bt=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M6.41 16.5h11.18a1 1 0 0 0 .7-1.71l-5.58-5.58a1 1 0 0 0-1.42 0l-5.58 5.58a1 1 0 0 0 .7 1.71"})}))),Lt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M12 10.5h-1a1 1 0 0 0 0 2h1v6a1 1 0 1 0 2 0v-6a2 2 0 0 0-2-2M13.5 7a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"}),e("path",{fillRule:"evenodd",d:"M12 .5a12 12 0 1 0 12 12 12.013 12.013 0 0 0-12-12m0 22a10 10 0 1 1 10-10 10.01 10.01 0 0 1-10 10",clipRule:"evenodd"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Rt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M19 1.5H5a5.006 5.006 0 0 0-5 5v12a5.006 5.006 0 0 0 5 5h14a5.006 5.006 0 0 0 5-5v-12a5.006 5.006 0 0 0-5-5m-14 2h14a3 3 0 0 1 2.78 1.887l-7.658 7.659a3.007 3.007 0 0 1-4.244 0L2.22 5.386A3 3 0 0 1 5 3.5m14 18H5a3 3 0 0 1-3-3V8l6.464 6.46a5.007 5.007 0 0 0 7.072 0L22 8v10.5a3 3 0 0 1-3 3"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),$t=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M23 4.5H1a1 1 0 1 0 0 2h22a1 1 0 1 0 0-2M23 11.5H1a1 1 0 1 0 0 2h22a1 1 0 1 0 0-2M1 18.5h22a1 1 0 1 1 0 2H1a1 1 0 1 1 0-2"})}))),zt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{fill:"#000",clipPath:"url(#a)",children:e("path",{d:"M2 14.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4M12 14.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4M24 12.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Ht=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m22.555 14.162-1.9-6.836A9.321 9.321 0 0 0 2.576 7.8l-1.471 6.615A5 5 0 0 0 5.986 20.5H7.1a5 5 0 0 0 9.8 0h.838a5 5 0 0 0 4.818-6.338zM12 22.5a3 3 0 0 1-2.816-2h5.632a3 3 0 0 1-2.816 2m8.126-5.185a2.98 2.98 0 0 1-2.389 1.185H5.986a3 3 0 0 1-2.928-3.651l1.47-6.616a7.321 7.321 0 0 1 14.2-.372l1.9 6.836a2.98 2.98 0 0 1-.502 2.618"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Ft=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M23.9 11.946a12 12 0 0 0-4.279-7.717 12.006 12.006 0 0 0-16.385 1.07A11.99 11.99 0 0 0 0 13.508a11.86 11.86 0 0 0 3.759 8.705A4.84 4.84 0 0 0 7.113 23.5h9.767a5 5 0 0 0 3.509-1.428 11.93 11.93 0 0 0 3.51-10.126m-4.91 8.693a3 3 0 0 1-2.11.862H7.113c-.73.015-1.44-.25-1.981-.74A9.9 9.9 0 0 1 2 13.508a10 10 0 0 1 3.338-7.451 9.89 9.89 0 0 1 6.648-2.541q.588 0 1.174.065a10 10 0 0 1 8.305 6.693 9.98 9.98 0 0 1-2.474 10.37zm-11.183-2.85a1 1 0 1 1-1.4 1.429 7.992 7.992 0 0 1 6.736-13.623 1 1 0 0 1 .72 1.502.99.99 0 0 1-1.006.477 6 6 0 0 0-6.228 3.28 5.99 5.99 0 0 0 1.178 6.935m12.112-5.424q.08.568.08 1.143a7.92 7.92 0 0 1-2.407 5.711 1.002 1.002 0 0 1-1.4-1.43 5.97 5.97 0 0 0 1.744-5.138 1 1 0 0 1 1.59-.944 1 1 0 0 1 .39.659zm-5.993.631a2.03 2.03 0 0 1-2.22 2.559 2.033 2.033 0 0 1-1.495-3.039 2.03 2.03 0 0 1 2.3-.933l3.782-3.778a1 1 0 1 1 1.414 1.413z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Ut=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("path",{fill:"#000",d:"M22.707 1.793a1 1 0 0 1 0 1.414l-20 20a1 1 0 0 1-1.414-1.414l20-20a1 1 0 0 1 1.414 0"}),e("path",{fill:"#000",fillRule:"evenodd",d:"M6 10.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8m0-6a2 2 0 1 1 0 4 2 2 0 0 1 0-4M15.778 15.174a4 4 0 1 1 4.444 6.653 4 4 0 0 1-4.444-6.653m1.11 4.99a2 2 0 1 0 2.223-3.327 2 2 0 0 0-2.222 3.326",clipRule:"evenodd"})]}))),Vt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",fillRule:"evenodd",clipPath:"url(#a)",clipRule:"evenodd",children:[e("path",{d:"M21.057 3.47a10.1 10.1 0 0 1 2.594 4.476 2.01 2.01 0 0 1-1.913 2.554H17.02a3 3 0 0 1-3-3V2.8a2 2 0 0 1 2.02-2 2 2 0 0 1 .543.072 10.1 10.1 0 0 1 4.475 2.598M17.015 8.5h4.72a8.07 8.07 0 0 0-5.677-5.702h-.026a.05.05 0 0 0-.025.01l.008 4.692a1 1 0 0 0 1 1"}),e("path",{d:"M14 12.5h4.713a3.06 3.06 0 0 1 2.394 1.172 2.88 2.88 0 0 1 .533 2.485A11 11 0 0 1 8.906 24.27a10.969 10.969 0 0 1-.553-21.414 2.87 2.87 0 0 1 2.48.534A3 3 0 0 1 12 5.774V10.5a2 2 0 0 0 2 2m3.425 7.26a8.97 8.97 0 0 0 2.276-4.092.88.88 0 0 0-.167-.768 1.04 1.04 0 0 0-.816-.4h-4.712a4 4 0 0 1-4-4V5.778a1.02 1.02 0 0 0-.4-.806.87.87 0 0 0-.764-.172 8.97 8.97 0 1 0 8.583 14.96"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),qt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M23 11.5H13v-10a1 1 0 0 0-1-1 1 1 0 0 0-1 1v10H1a1 1 0 0 0-1 1 1 1 0 0 0 1 1h10v10a1 1 0 0 0 2 0v-10h10a1 1 0 0 0 0-2"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Wt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M19 3.522V1.5a1 1 0 0 0-2 0v1.1a5 5 0 0 0-1-.1h-1v-1a1 1 0 0 0-2 0v1h-2v-1a1 1 0 0 0-2 0v1H8a5 5 0 0 0-1 .1V1.5a1 1 0 0 0-2 0v2.022A4.98 4.98 0 0 0 3 7.5v12a5.006 5.006 0 0 0 5 5h8a5.006 5.006 0 0 0 5-5v-12a4.98 4.98 0 0 0-2-3.978M19 19.5a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3v-12a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3zm-2-11a1 1 0 0 1-1 1H8a1 1 0 0 1 0-2h8a1 1 0 0 1 1 1m0 4a1 1 0 0 1-1 1H8a1 1 0 0 1 0-2h8a1 1 0 0 1 1 1m-4 4a1 1 0 0 1-1 1H8a1 1 0 0 1 0-2h4a1 1 0 0 1 1 1"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Xt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M18.581 2.64 12.316.551a1 1 0 0 0-.632 0l-6.265 2.09A4.99 4.99 0 0 0 2 7.382V12.5c0 7.563 9.2 11.74 9.594 11.914a1 1 0 0 0 .812 0C12.8 24.24 22 20.064 22 12.5V7.383a4.99 4.99 0 0 0-3.419-4.743m-1.863 7.577-4.272 4.272a1.87 1.87 0 0 1-1.335.553h-.033a1.87 1.87 0 0 1-1.345-.6l-2.306-2.4a1 1 0 1 1 1.441-1.382L11.112 13 15.3 8.8a1 1 0 0 1 1.414 1.414z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Yt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M18.581 2.64 12.316.551a1 1 0 0 0-.632 0l-6.266 2.09A4.99 4.99 0 0 0 2 7.382V12.5c0 7.563 9.2 11.74 9.594 11.914a1 1 0 0 0 .812 0C12.8 24.24 22 20.064 22 12.5V7.383a4.99 4.99 0 0 0-3.419-4.743M12 19.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2m1-5a1 1 0 1 1-2 0v-8a1 1 0 0 1 2 0z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Kt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m23.707 22.794-5.97-5.97a10.016 10.016 0 1 0-1.413 1.415l5.969 5.969a1 1 0 0 0 1.414-1.414M10 18.5a8 8 0 1 1 8-8 8.01 8.01 0 0 1-8 8"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Gt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",fillRule:"evenodd",clipPath:"url(#a)",clipRule:"evenodd",children:[e("path",{d:"M9.778 9.175a4 4 0 1 1 4.444 6.652 4 4 0 0 1-4.444-6.652m1.11 4.989a2 2 0 1 0 2.223-3.325 2 2 0 0 0-2.222 3.325"}),e("path",{d:"m20.85 14.144.444.256.001-.001a3.002 3.002 0 1 1-3 5.2l-.447-.258A9 9 0 0 1 15 20.987v.513a3 3 0 1 1-6 0v-.513a9 9 0 0 1-2.85-1.642l-.445.257a3.002 3.002 0 0 1-3-5.2l.444-.256a9.1 9.1 0 0 1 0-3.29l-.444-.256a3.002 3.002 0 1 1 3-5.2l.447.259A9 9 0 0 1 9 4.013V3.5a3 3 0 1 1 6 0v.513a9 9 0 0 1 2.849 1.642l.445-.257a3.002 3.002 0 0 1 3 5.2l-.444.256a9.1 9.1 0 0 1 0 3.29m-2.104.23a7.05 7.05 0 0 0 0-3.75v.001a1 1 0 0 1 .463-1.129l1.084-.626a1 1 0 1 0-1-1.732l-1.084.627a1 1 0 0 1-1.215-.165 7 7 0 0 0-3.243-1.879A1 1 0 0 1 13 4.752V3.5a1 1 0 1 0-2 0v1.252a1 1 0 0 1-.751.973A7 7 0 0 0 7.006 7.6a1 1 0 0 1-1.214.161l-1.086-.628a1 1 0 1 0-1 1.733l1.084.626a1 1 0 0 1 .465 1.129 7.05 7.05 0 0 0 0 3.75 1 1 0 0 1-.464 1.133l-1.084.626a1 1 0 1 0 1 1.732l1.084-.627a1 1 0 0 1 1.215.165c.89.91 2.01 1.56 3.242 1.879a1 1 0 0 1 .751.969V21.5a1 1 0 0 0 2 0v-1.253a1 1 0 0 1 .751-.969 7 7 0 0 0 3.243-1.875 1 1 0 0 1 1.215-.165l1.086.628a1 1 0 0 0 1-1.733l-1.084-.626a1 1 0 0 1-.464-1.133"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Zt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M4 7.483a2.98 2.98 0 0 1-2.121-.88L.335 5.228a1.002 1.002 0 0 1 1.332-1.496l1.585 1.416a1 1 0 0 0 1.456.04l3.604-3.435a1 1 0 0 1 1.378 1.45L6.1 6.62a2.96 2.96 0 0 1-2.1.863m20-2.002a1 1 0 0 0-1-1H13a1 1 0 0 0-.706 1.708 1 1 0 0 0 .707.293h10a1 1 0 0 0 1-1M6.1 14.63l3.59-3.418a1 1 0 1 0-1.378-1.45l-3.6 3.435a1.02 1.02 0 0 1-1.414 0l-1.59-1.586a1 1 0 0 0-1.695.711c-.002.263.099.515.28.704l1.586 1.587a3 3 0 0 0 4.226.017zm17.9-1.14a1 1 0 0 0-1-1H13a1 1 0 0 0-1 1 1 1 0 0 0 1 1.002h10a1 1 0 0 0 1-1.001M6.1 22.638l3.586-3.417a1.001 1.001 0 1 0-1.378-1.45l-3.6 3.435a1 1 0 0 1-1.456-.04l-1.585-1.416a1 1 0 0 0-1.665.805c.015.266.135.514.333.69l1.544 1.376a3 3 0 0 0 4.226.017zM24 21.498a1 1 0 0 0-1-1.001H13a1 1 0 0 0-.706 1.709 1 1 0 0 0 .707.293h10a1 1 0 0 0 1-1.001"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Jt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M5 22.5h2a1 1 0 0 1 0 2H5a5.006 5.006 0 0 1-5-5v-14a5.006 5.006 0 0 1 5-5h2a1 1 0 0 1 0 2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3"}),e("path",{d:"M7.223 11.532 23 11.5a1 1 0 0 1 0 2l-15.744.032q.123.209.29.382l3.88 3.88a1 1 0 1 1-1.414 1.413l-3.88-3.879a4 4 0 0 1 0-5.656l3.882-3.879a1 1 0 1 1 1.414 1.414l-3.88 3.88a2 2 0 0 0-.325.445"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Qt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M5 22.5h2a1 1 0 0 1 0 2H5a5.006 5.006 0 0 1-5-5v-14a5.006 5.006 0 0 1 5-5h2a1 1 0 0 1 0 2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3"}),e("path",{d:"m18.95 5.792 3.879 3.88h-.004a4 4 0 0 1 0 5.655l-3.88 3.88a1 1 0 1 1-1.413-1.415l3.879-3.879q.2-.207.334-.462-.019.003-.036.008a.1.1 0 0 1-.042.008L5.989 13.5a1 1 0 0 1 0-2l15.684-.032q.01 0 .02.004l.022.004a2 2 0 0 0-.3-.39l-3.88-3.879a1 1 0 0 1 1.415-1.414"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),te=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{fill:"#000",clipPath:"url(#a)",children:e("path",{d:"M6.365 6.416a.5.5 0 0 1-.278.084H4.294v12h1.793a.5.5 0 0 1 .353.854L4 21.794a1 1 0 0 1-1.414 0l-2.44-2.44A.5.5 0 0 1 .5 18.5h1.794v-12H.5a.5.5 0 0 1-.353-.854l2.439-2.439a1 1 0 0 1 1.414 0l2.44 2.44a.5.5 0 0 1-.075.769M23 6.5H10a1 1 0 0 1 0-2h13a1 1 0 1 1 0 2M10 11.5h13a1 1 0 0 1 0 2H10a1 1 0 0 1 0-2M23 18.5H10a1 1 0 0 0 0 2h13a1 1 0 1 0 0-2"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),ee=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M13 1.5v2a1 1 0 0 1-2 0v-2a1 1 0 0 1 2 0m-1 19a1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-2a1 1 0 0 0-1-1m-8-8a1 1 0 0 0-1-1H1a1 1 0 0 0 0 2h2a1 1 0 0 0 1-1m19-1h-2a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2m-4.982-9.382a1 1 0 0 0-1.367.364l-1 1.731a1 1 0 0 0 1.731 1.001l1-1.731a1 1 0 0 0-.364-1.365M7.987 19.421a1 1 0 0 0-1.366.364l-1 1.731a1 1 0 1 0 1.731 1.001l1-1.731a1 1 0 0 0-.365-1.365m-3.272-12.3-1.731-1a1 1 0 0 0-1 1.731l1.731 1a1 1 0 0 0 1-1.731m17.3 10.03-1.731-1a1 1 0 0 0-1 1.731l1.731 1a1 1 0 1 0 1-1.731M7.349 2.482a1 1 0 0 0-1.731 1l1 1.731a1 1 0 1 0 1.731-1.001zm10.03 17.3a1 1 0 0 0-1.731 1l1 1.731a1 1 0 0 0 1.731-1zm2.408-10.8a1 1 0 0 0 .5-.134l1.731-1a1 1 0 0 0-1-1.731l-1.731 1a1 1 0 0 0 .5 1.865M3.713 16.148l-1.731 1a1 1 0 1 0 1 1.731l1.731-1a1 1 0 0 0-1-1.731"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),re=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M21 12.924V11.5a9 9 0 0 0-18 0v1.424A5 5 0 0 0 5 22.5a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2v-1a7 7 0 0 1 14 0v1a2 2 0 0 0-2 2v6h-3a1 1 0 0 0 0 2h5a5 5 0 0 0 2-9.576M5 20.5a3 3 0 1 1 0-6zm14 0v-6a3 3 0 0 1 0 6"})}))),ne=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M10 18.5a1 1 0 0 0 1-1v-6a1 1 0 0 0-2 0v6a1 1 0 0 0 1 1M14.707 18.207A1 1 0 0 1 13 17.499v-6a1 1 0 1 1 2 0v6a1 1 0 0 1-.293.707"}),e("path",{fillRule:"evenodd",d:"M21 4.5h-3.1a5.01 5.01 0 0 0-4.9-4h-2a5.01 5.01 0 0 0-4.9 4H3a1 1 0 0 0 0 2h1v13a5.006 5.006 0 0 0 5 5h6a5.006 5.006 0 0 0 5-5v-13h1a1 1 0 1 0 0-2m-10-2h2a3.01 3.01 0 0 1 2.829 2H8.171A3.01 3.01 0 0 1 11 2.5m7 17a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3v-13h12z",clipRule:"evenodd"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),ie=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"m11 18.516.007-15.438L8.08 6.005a1 1 0 0 1-1.414-1.414l3.21-3.212a3 3 0 0 1 4.245 0l3.21 3.215a1 1 0 0 1-1.413 1.414l-2.912-2.913L13 18.516a1 1 0 1 1-2 0"}),e("path",{d:"M22 21.5v-4a1 1 0 0 1 2 0v4a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3v-4a1 1 0 0 1 2 0v4a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),oe=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{fill:"#000",clipPath:"url(#a)",children:e("path",{d:"M12 13a6 6 0 1 0 0-12 6 6 0 0 0 0 12m0-10a4 4 0 1 1 0 8 4 4 0 0 1 0-8M12 15a9.01 9.01 0 0 0-9 9 1 1 0 0 0 2 0 7 7 0 1 1 14 0 1 1 0 0 0 2 0 9.01 9.01 0 0 0-9-9"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),ae=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"none",viewBox:"0 0 16 17","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M7.986 1.833a6.71 6.71 0 0 1 4.758 2h-2.086a.67.67 0 0 0-.668.667.666.666 0 0 0 .668.667h2.768a1.24 1.24 0 0 0 1.24-1.238V1.167A.666.666 0 0 0 14 .5a.67.67 0 0 0-.668.667v1.385a8.01 8.01 0 0 0-8.278-1.5 8 8 0 0 0-3.48 2.641 8 8 0 0 0-1.57 4.074.67.67 0 0 0 .668.733.657.657 0 0 0 .66-.585 6.67 6.67 0 0 1 2.146-4.329 6.7 6.7 0 0 1 4.51-1.753M15.33 8.5a.657.657 0 0 0-.661.585 6.65 6.65 0 0 1-1.362 3.488 6.684 6.684 0 0 1-10.05.593h2.085a.67.67 0 0 0 .668-.666.666.666 0 0 0-.668-.667H2.574a1.24 1.24 0 0 0-1.146.764c-.063.15-.095.312-.095.474v2.762a.666.666 0 0 0 .668.667.67.67 0 0 0 .668-.667v-1.385a8.01 8.01 0 0 0 8.278 1.5 8 8 0 0 0 3.48-2.641 8 8 0 0 0 1.57-4.074.67.67 0 0 0-.668-.733"})}))),ce=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 1503 1504","aria-hidden":"true",...r,children:[e("path",{fill:"#fff",d:"M287 258h928v844H287z"}),e("path",{fill:"#E84142",fillRule:"evenodd",d:"M1502.5 752c0 414.77-336.23 751-751 751-414.766 0-751-336.23-751-751C.5 337.234 336.734 1 751.5 1c414.77 0 751 336.234 751 751m-963.812 298.86H392.94c-30.626 0-45.754 0-54.978-5.9-9.963-6.46-16.051-17.16-16.789-28.97-.554-10.88 7.011-24.168 22.139-50.735l359.87-634.32c15.313-26.936 23.061-40.404 32.839-45.385 10.516-5.35 23.062-5.35 33.578 0 9.778 4.981 17.527 18.449 32.839 45.385l73.982 129.144.377.659c16.539 28.897 24.926 43.551 28.588 58.931a109.56 109.56 0 0 1 0 51.289c-3.69 15.497-11.992 30.257-28.781 59.591L687.573 964.702l-.489.856c-16.648 29.135-25.085 43.902-36.778 55.042-12.73 12.18-28.043 21.03-44.832 26.02-15.313 4.24-32.47 4.24-66.786 4.24m368.062 0h208.84c30.81 0 46.31 0 55.54-6.08 9.96-6.46 16.23-17.35 16.79-29.15.53-10.53-6.87-23.3-21.37-48.323-.5-.852-1-1.719-1.51-2.601L1060.43 785.75l-1.19-2.015c-14.7-24.858-22.12-37.411-31.65-42.263a36.73 36.73 0 0 0-33.391 0c-9.594 4.981-17.342 18.08-32.655 44.462L857.306 964.891l-.357.616c-15.259 26.34-22.885 39.503-22.335 50.303.738 11.81 6.826 22.69 16.788 29.15 9.041 5.9 24.538 5.9 55.348 5.9",clipRule:"evenodd"})]}))),ue=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 788 788","aria-hidden":"true",...r,children:[e("circle",{cx:394,cy:394,r:394,style:{fill:"#0ac18e"}}),e("path",{d:"M516.9 261.7c-19.8-44.9-65.3-54.5-121-45.2L378 147.1 335.8 158l17.6 69.2c-11.1 2.8-22.5 5.2-33.8 8.4L302 166.8l-42.2 10.9 17.9 69.4c-9.1 2.6-85.2 22.1-85.2 22.1l11.6 45.2s31-8.7 30.7-8c17.2-4.5 25.3 4.1 29.1 12.2l49.2 190.2c.6 5.5-.4 14.9-12.2 18.1.7.4-30.7 7.9-30.7 7.9l4.6 52.7s75.4-19.3 85.3-21.8l18.1 70.2 42.2-10.9-18.1-70.7q17.4-4.05 33.9-8.4l18 70.3 42.2-10.9-18.1-70.1c65-15.8 110.9-56.8 101.5-119.5-6-37.8-47.3-68.8-81.6-72.3 21.1-18.7 31.8-46 18.7-81.7m-20.3 165.5c8.4 62.1-77.9 69.7-106.4 77.2l-24.8-92.9c28.6-7.5 117-39 131.2 15.7m-52-126.5c8.9 55.2-64.9 61.6-88.7 67.7l-22.6-84.3c23.9-5.9 93.2-34.5 111.3 16.6",style:{fill:"#fff"}})]}))),le=r((r=>e("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",fillRule:"evenodd",clipRule:"evenodd",imageRendering:"optimizeQuality",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",viewBox:"0 0 4091.27 4091.73","aria-hidden":"true",...r,children:t("g",{fillRule:"nonzero",children:[e("path",{fill:"#F7931A",d:"M4030.06 2540.77C3756.82 3636.78 2646.74 4303.79 1550.6 4030.48 454.92 3757.24-212.09 2647.09 61.27 1551.17c273.12-1096.13 1383.2-1763.19 2479-1489.95C3636.33 334.46 4303.3 1444.73 4030.03 2540.79l.02-.02z"}),e("path",{fill:"#fff",d:"M2947.77 1754.38c40.72-272.26-166.56-418.61-450-516.24l91.95-368.8-224.5-55.94-89.51 359.09c-59.02-14.72-119.63-28.59-179.87-42.34L2186 768.69l-224.36-55.94-92 368.68c-48.84-11.12-96.81-22.11-143.35-33.69l.26-1.16-309.59-77.31-59.72 239.78s166.56 38.18 163.05 40.53c90.91 22.69 107.35 82.87 104.62 130.57l-104.74 420.15c6.26 1.59 14.38 3.89 23.34 7.49-7.49-1.86-15.46-3.89-23.73-5.87l-146.81 588.57c-11.11 27.62-39.31 69.07-102.87 53.33 2.25 3.26-163.17-40.72-163.17-40.72l-111.46 256.98 292.15 72.83c54.35 13.63 107.61 27.89 160.06 41.3l-92.9 373.03 224.24 55.94 92-369.07c61.26 16.63 120.71 31.97 178.91 46.43l-91.69 367.33 224.51 55.94 92.89-372.33c382.82 72.45 670.67 43.24 791.83-303.02 97.63-278.78-4.86-439.58-206.26-544.44 146.69-33.83 257.18-130.31 286.64-329.61l-.07-.05zm-512.93 719.26c-69.38 278.78-538.76 128.08-690.94 90.29l123.28-494.2c152.17 37.99 640.17 113.17 567.67 403.91zm69.43-723.3c-63.29 253.58-453.96 124.75-580.69 93.16l111.77-448.21c126.73 31.59 534.85 90.55 468.94 355.05z"})]})}))),se=r((r=>e("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",fillRule:"evenodd",clipRule:"evenodd",imageRendering:"optimizeQuality",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",viewBox:"0 0 784.37 1277.39","aria-hidden":"true",...r,children:t("g",{fillRule:"nonzero",children:[e("path",{fill:"#343434",d:"m392.07 0-8.57 29.11v844.63l8.57 8.55 392.06-231.75z"}),e("path",{fill:"#8C8C8C",d:"M392.07 0 0 650.54l392.07 231.75V472.33z"}),e("path",{fill:"#3C3C3B",d:"m392.07 956.52-4.83 5.89v300.87l4.83 14.1 392.3-552.49z"}),e("path",{fill:"#8C8C8C",d:"M392.07 1277.38V956.52L0 724.89z"}),e("path",{fill:"#141414",d:"m392.07 882.29 392.06-231.75-392.06-178.21z"}),e("path",{fill:"#393939",d:"m0 650.54 392.07 231.75V472.33z"})]})}))),fe=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 37.8 43.6","aria-hidden":"true",...t,children:e("g",{"data-name":"Layer 2",children:e("path",{d:"m18.9 0-4 2.3L4 8.6l-4 2.3v21.8L4 35l11 6.3 4 2.3 4-2.3L33.8 35l4-2.3V10.9l-4-2.3-10.9-6.3ZM8 28.1V15.5l10.9-6.3 10.9 6.3v12.6l-10.9 6.3Z","data-name":"Layer 1",style:{fill:"#2a5ada"}})})}))),he=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 82.6 82.6","aria-hidden":"true",...r,children:[e("circle",{cx:41.3,cy:41.3,r:36.83,style:{fill:"#fff"}}),e("path",{d:"M41.3 0a41.3 41.3 0 1 0 41.3 41.3A41.18 41.18 0 0 0 41.54 0Zm.7 42.7-4.3 14.5h23a1.16 1.16 0 0 1 1.2 1.12v.38l-2 6.9a1.49 1.49 0 0 1-1.5 1.1H23.2l5.9-20.1-6.6 2L24 44l6.6-2 8.3-28.2a1.51 1.51 0 0 1 1.5-1.1h8.9a1.16 1.16 0 0 1 1.2 1.12v.38l-7 23.8 6.6-2-1.4 4.8Z",style:{fill:"#345d9d"}})]}))),pe=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 236.36 200","aria-hidden":"true",...t,children:e("g",{"data-name":"Layer 2",children:e("g",{"data-name":"Layer 1",children:e("path",{d:"m203 26.16-28.46 14.5-137.43 70a82.5 82.5 0 0 1-.7-10.69A81.87 81.87 0 0 1 158.2 28.6l16.29-8.3 2.43-1.24A100 100 0 0 0 18.18 100q0 3.82.29 7.61a18.19 18.19 0 0 1-9.88 17.58L0 129.57V150l25.29-12.89 8.19-4.18 8.07-4.11L186.43 55l16.28-8.29 33.65-17.15V9.14ZM236.36 50 49.78 145l-16.28 8.31L0 170.38v20.41l33.27-16.95 28.46-14.5 137.57-70.1A83.5 83.5 0 0 1 200 100a81.87 81.87 0 0 1-121.91 71.36l-1 .53-17.66 9A100 100 0 0 0 218.18 100c0-2.57-.1-5.14-.29-7.68a18.2 18.2 0 0 1 9.87-17.58l8.6-4.38Z"})})})})));function de(t,e={}){let r=!1;function n(e){const r=`chakra-${(["container","root"].includes(null!=e?e:"")?[t]:[t,e]).filter(Boolean).join("__")}`;return{className:r,selector:`.${r}`,toString:()=>e}}return{parts:function(...i){!function(){if(r)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");r=!0}();for(const t of i)e[t]=n(t);return de(t,e)},toPart:n,extend:function(...r){for(const t of r)t in e||(e[t]=n(t));return de(t,e)},selectors:function(){return Object.fromEntries(Object.entries(e).map((([t,e])=>[t,e.selector])))},classnames:function(){return Object.fromEntries(Object.entries(e).map((([t,e])=>[t,e.className])))},get keys(){return Object.keys(e)},__type:{}}}var ye=de("accordion").parts("root","container","button","panel").extend("icon"),ve=de("alert").parts("title","description","container").extend("icon","spinner");de("avatar").parts("label","badge","container").extend("excessLabel","group"),de("breadcrumb").parts("link","item","container").extend("separator"),de("button").parts();var ge=de("checkbox").parts("control","icon","container").extend("label");de("progress").parts("track","filledTrack").extend("label"),de("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),de("editable").parts("preview","input","textarea"),de("form").parts("container","requiredIndicator","helperText"),de("formError").parts("text","icon");var me=de("input").parts("addon","field","element","group");de("list").parts("container","item","icon"),de("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),de("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),de("numberinput").parts("root","field","stepperGroup","stepper"),de("pininput").parts("field"),de("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),de("progress").parts("label","filledTrack","track"),de("radio").parts("container","control","label");var be=de("select").parts("field","icon");de("slider").parts("container","track","thumb","filledTrack","mark"),de("stat").parts("container","label","helpText","number","icon"),de("switch").parts("container","track","thumb","label"),de("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),de("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator");var we=de("tag").parts("container","label","closeButton");de("card").parts("container","header","body","footer"),de("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:xe,defineMultiStyleConfig:Oe}=n(ye.keys),Se=Oe({baseStyle:xe({container:{borderWidth:"1px",borderStyle:"solid",borderColor:"gray.300",borderRadius:"md",bg:"gray.100",color:"black",marginBottom:4,overflow:"hidden"},panel:{bg:"white"}})}),{definePartsStyle:je,defineMultiStyleConfig:Ae}=n(ve.keys),Pe=Ae({baseStyle:je((t=>{const{colorScheme:e,theme:r}=t,n=r.colors[e];return{icon:{svg:{path:{fill:n[500]}}},container:{bg:n[100],borderColor:n[500],borderRadius:"lg",borderStyle:"solid",borderWidth:1,padding:4},description:{color:"blackAlpha.900"},title:{color:"blackAlpha.900"}}})),defaultProps:{variant:"subtle"}}),Me=i({borderColor:"red.700",color:"red.700",border:"solid 2px",":hover, :focus":{backgroundColor:"gray.200"},svg:{path:{fill:"red.700"}}}),Ee=i({background:"brand.50",color:"brand.500",svg:{path:{fill:"brand.500"}},_hover:{bg:"brand.100",color:"brand.600",svg:{path:{fill:"brand.600"}}},_active:{bg:"brand.100",color:"brand.600",svg:{path:{fill:"brand.600"}}}}),ke=i({border:"solid 2px",borderColor:"brand.600",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),_e=i({boxShadow:"none",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),Te=o({baseStyle:{boxShadow:"0px 8px 16px 0px rgba(0,0,0,0.08)",svg:{width:"1.25em",path:{fill:"white"}}},sizes:{xs:i({lineHeight:1})},variants:{alert:Me,outline:ke,ghost:_e,secondary:Ee}}),{definePartsStyle:Ce,defineMultiStyleConfig:Ne}=n(ge.keys),De=Ne({baseStyle:Ce({control:{borderRadius:"base",borderColor:"brand.500",svg:{path:{fill:"inherit"}},_checked:{svg:{path:{fill:"white"}}},_hover:{bg:"gray.50",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)",_disabled:{bg:"gray.100"}},_indeterminate:{bg:"brand.100",borderColor:"brand.100",_hover:{bg:"brand.100",boxShadow:"none"}},_invalid:{_checked:{borderColor:"brand.500"}}}}),sizes:{lg:{control:{boxSize:7,svg:{width:"1.75em"}}},md:{control:{boxSize:6,svg:{width:"1.5em"}}},sm:{control:{boxSize:4,svg:{width:"1.5em"}}}}}),Ie=o({baseStyle:{helperText:{fontSize:"sm"}}}),Be=o({sizes:{sm:{text:{fontSize:"xs"}},xs:{text:{fontSize:"xs"}}}});
|
|
2
|
-
/*!
|
|
3
|
-
* decimal.js v10.4.3
|
|
4
|
-
* An arbitrary-precision Decimal type for JavaScript.
|
|
5
|
-
* https://github.com/MikeMcl/decimal.js
|
|
6
|
-
* Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
|
|
7
|
-
* MIT Licence
|
|
8
|
-
*/
|
|
9
|
-
var Le,Re,$e=9e15,ze=1e9,He="0123456789abcdef",Fe="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Ue="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Ve={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-$e,maxE:$e,crypto:!1},qe=!0,We="[DecimalError] ",Xe=We+"Invalid argument: ",Ye=We+"Precision limit exceeded",Ke=We+"crypto unavailable",Ge="[object Decimal]",Ze=Math.floor,Je=Math.pow,Qe=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,tr=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,er=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,rr=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,nr=1e7,ir=7,or=Fe.length-1,ar=Ue.length-1,cr={toStringTag:Ge};function ur(t){var e,r,n,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)n=t[e]+"",(r=ir-n.length)&&(o+=br(r)),o+=n;a=t[e],(r=ir-(n=a+"").length)&&(o+=br(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function lr(t,e,r){if(t!==~~t||t<e||t>r)throw Error(Xe+t)}function sr(t,e,r,n){var i,o,a,c;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=ir,i=0):(i=Math.ceil((e+1)/ir),e%=ir),o=Je(10,ir-e),c=t[i]%o|0,null==n?e<3?(0==e?c=c/100|0:1==e&&(c=c/10|0),a=r<4&&99999==c||r>3&&49999==c||5e4==c||0==c):a=(r<4&&c+1==o||r>3&&c+1==o/2)&&(t[i+1]/o/100|0)==Je(10,e-2)-1||(c==o/2||0==c)&&0==(t[i+1]/o/100|0):e<4?(0==e?c=c/1e3|0:1==e?c=c/100|0:2==e&&(c=c/10|0),a=(n||r<4)&&9999==c||!n&&r>3&&4999==c):a=((n||r<4)&&c+1==o||!n&&r>3&&c+1==o/2)&&(t[i+1]/o/1e3|0)==Je(10,e-3)-1,a}function fr(t,e,r){for(var n,i,o=[0],a=0,c=t.length;a<c;){for(i=o.length;i--;)o[i]*=e;for(o[0]+=He.indexOf(t.charAt(a++)),n=0;n<o.length;n++)o[n]>r-1&&(void 0===o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}cr.absoluteValue=cr.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),pr(t)},cr.ceil=function(){return pr(new this.constructor(this),this.e+1,2)},cr.clampedTo=cr.clamp=function(t,e){var r=this,n=r.constructor;if(t=new n(t),e=new n(e),!t.s||!e.s)return new n(NaN);if(t.gt(e))throw Error(Xe+e);return r.cmp(t)<0?t:r.cmp(e)>0?e:new n(r)},cr.comparedTo=cr.cmp=function(t){var e,r,n,i,o=this,a=o.d,c=(t=new o.constructor(t)).d,u=o.s,l=t.s;if(!a||!c)return u&&l?u!==l?u:a===c?0:!a^u<0?1:-1:NaN;if(!a[0]||!c[0])return a[0]?u:c[0]?-l:0;if(u!==l)return u;if(o.e!==t.e)return o.e>t.e^u<0?1:-1;for(e=0,r=(n=a.length)<(i=c.length)?n:i;e<r;++e)if(a[e]!==c[e])return a[e]>c[e]^u<0?1:-1;return n===i?0:n>i^u<0?1:-1},cr.cosine=cr.cos=function(){var t,e,r=this,n=r.constructor;return r.d?r.d[0]?(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+ir,n.rounding=1,r=function(t,e){var r,n,i;if(e.isZero())return e;n=e.d.length,n<32?i=(1/Er(4,r=Math.ceil(n/3))).toString():(r=16,i="2.3283064365386962890625e-10");t.precision+=r,e=Mr(t,1,e.times(i),new t(1));for(var o=r;o--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return t.precision-=r,e}(n,kr(n,r)),n.precision=t,n.rounding=e,pr(2==Re||3==Re?r.neg():r,t,e,!0)):new n(1):new n(NaN)},cr.cubeRoot=cr.cbrt=function(){var t,e,r,n,i,o,a,c,u,l,s=this,f=s.constructor;if(!s.isFinite()||s.isZero())return new f(s);for(qe=!1,(o=s.s*Je(s.s*s,1/3))&&Math.abs(o)!=1/0?n=new f(o.toString()):(r=ur(s.d),(o=((t=s.e)-r.length+1)%3)&&(r+=1==o||-2==o?"0":"00"),o=Je(r,1/3),t=Ze((t+1)/3)-(t%3==(t<0?-1:2)),(n=new f(r=o==1/0?"5e"+t:(r=o.toExponential()).slice(0,r.indexOf("e")+1)+t)).s=s.s),a=(t=f.precision)+3;;)if(l=(u=(c=n).times(c).times(c)).plus(s),n=hr(l.plus(s).times(c),l.plus(u),a+2,1),ur(c.d).slice(0,a)===(r=ur(n.d)).slice(0,a)){if("9999"!=(r=r.slice(a-3,a+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(pr(n,t+1,1),e=!n.times(n).times(n).eq(s));break}if(!i&&(pr(c,t+1,0),c.times(c).times(c).eq(s))){n=c;break}a+=4,i=1}return qe=!0,pr(n,t,f.rounding,e)},cr.decimalPlaces=cr.dp=function(){var t,e=this.d,r=NaN;if(e){if(r=((t=e.length-1)-Ze(this.e/ir))*ir,t=e[t])for(;t%10==0;t/=10)r--;r<0&&(r=0)}return r},cr.dividedBy=cr.div=function(t){return hr(this,new this.constructor(t))},cr.dividedToIntegerBy=cr.divToInt=function(t){var e=this.constructor;return pr(hr(this,new e(t),0,1,1),e.precision,e.rounding)},cr.equals=cr.eq=function(t){return 0===this.cmp(t)},cr.floor=function(){return pr(new this.constructor(this),this.e+1,3)},cr.greaterThan=cr.gt=function(t){return this.cmp(t)>0},cr.greaterThanOrEqualTo=cr.gte=function(t){var e=this.cmp(t);return 1==e||0===e},cr.hyperbolicCosine=cr.cosh=function(){var t,e,r,n,i,o=this,a=o.constructor,c=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return c;r=a.precision,n=a.rounding,a.precision=r+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?e=(1/Er(4,t=Math.ceil(i/3))).toString():(t=16,e="2.3283064365386962890625e-10"),o=Mr(a,1,o.times(e),new a(1),!0);for(var u,l=t,s=new a(8);l--;)u=o.times(o),o=c.minus(u.times(s.minus(u.times(s))));return pr(o,a.precision=r,a.rounding=n,!0)},cr.hyperbolicSine=cr.sinh=function(){var t,e,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(e=o.precision,r=o.rounding,o.precision=e+Math.max(i.e,i.sd())+4,o.rounding=1,(n=i.d.length)<3)i=Mr(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(n))>16?16:0|t,i=Mr(o,2,i=i.times(1/Er(5,t)),i,!0);for(var a,c=new o(5),u=new o(16),l=new o(20);t--;)a=i.times(i),i=i.times(c.plus(a.times(u.times(a).plus(l))))}return o.precision=e,o.rounding=r,pr(i,e,r,!0)},cr.hyperbolicTangent=cr.tanh=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+7,n.rounding=1,hr(r.sinh(),r.cosh(),n.precision=t,n.rounding=e)):new n(r.s)},cr.inverseCosine=cr.acos=function(){var t,e=this,r=e.constructor,n=e.abs().cmp(1),i=r.precision,o=r.rounding;return-1!==n?0===n?e.isNeg()?gr(r,i,o):new r(0):new r(NaN):e.isZero()?gr(r,i+4,o).times(.5):(r.precision=i+6,r.rounding=1,e=e.asin(),t=gr(r,i+4,o).times(.5),r.precision=i,r.rounding=o,t.minus(e))},cr.inverseHyperbolicCosine=cr.acosh=function(){var t,e,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(t=n.precision,e=n.rounding,n.precision=t+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,qe=!1,r=r.times(r).minus(1).sqrt().plus(r),qe=!0,n.precision=t,n.rounding=e,r.ln()):new n(r)},cr.inverseHyperbolicSine=cr.asinh=function(){var t,e,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,qe=!1,r=r.times(r).plus(1).sqrt().plus(r),qe=!0,n.precision=t,n.rounding=e,r.ln())},cr.inverseHyperbolicTangent=cr.atanh=function(){var t,e,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=o.precision,e=o.rounding,n=i.sd(),Math.max(n,t)<2*-i.e-1?pr(new o(i),t,e,!0):(o.precision=r=n-i.e,i=hr(i.plus(1),new o(1).minus(i),r+t,1),o.precision=t+4,o.rounding=1,i=i.ln(),o.precision=t,o.rounding=e,i.times(.5))):new o(NaN)},cr.inverseSine=cr.asin=function(){var t,e,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(e=i.abs().cmp(1),r=o.precision,n=o.rounding,-1!==e?0===e?((t=gr(o,r+4,n).times(.5)).s=i.s,t):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))},cr.inverseTangent=cr.atan=function(){var t,e,r,n,i,o,a,c,u,l=this,s=l.constructor,f=s.precision,h=s.rounding;if(l.isFinite()){if(l.isZero())return new s(l);if(l.abs().eq(1)&&f+4<=ar)return(a=gr(s,f+4,h).times(.25)).s=l.s,a}else{if(!l.s)return new s(NaN);if(f+4<=ar)return(a=gr(s,f+4,h).times(.5)).s=l.s,a}for(s.precision=c=f+10,s.rounding=1,t=r=Math.min(28,c/ir+2|0);t;--t)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(qe=!1,e=Math.ceil(c/ir),n=1,u=l.times(l),a=new s(l),i=l;-1!==t;)if(i=i.times(u),o=a.minus(i.div(n+=2)),i=i.times(u),void 0!==(a=o.plus(i.div(n+=2))).d[e])for(t=e;a.d[t]===o.d[t]&&t--;);return r&&(a=a.times(2<<r-1)),qe=!0,pr(a,s.precision=f,s.rounding=h,!0)},cr.isFinite=function(){return!!this.d},cr.isInteger=cr.isInt=function(){return!!this.d&&Ze(this.e/ir)>this.d.length-2},cr.isNaN=function(){return!this.s},cr.isNegative=cr.isNeg=function(){return this.s<0},cr.isPositive=cr.isPos=function(){return this.s>0},cr.isZero=function(){return!!this.d&&0===this.d[0]},cr.lessThan=cr.lt=function(t){return this.cmp(t)<0},cr.lessThanOrEqualTo=cr.lte=function(t){return this.cmp(t)<1},cr.logarithm=cr.log=function(t){var e,r,n,i,o,a,c,u,l=this,s=l.constructor,f=s.precision,h=s.rounding;if(null==t)t=new s(10),e=!0;else{if(r=(t=new s(t)).d,t.s<0||!r||!r[0]||t.eq(1))return new s(NaN);e=t.eq(10)}if(r=l.d,l.s<0||!r||!r[0]||l.eq(1))return new s(r&&!r[0]?-1/0:1!=l.s?NaN:r?0:1/0);if(e)if(r.length>1)o=!0;else{for(i=r[0];i%10==0;)i/=10;o=1!==i}if(qe=!1,a=jr(l,c=f+5),n=e?vr(s,c+10):jr(t,c),sr((u=hr(a,n,c,1)).d,i=f,h))do{if(a=jr(l,c+=10),n=e?vr(s,c+10):jr(t,c),u=hr(a,n,c,1),!o){+ur(u.d).slice(i+1,i+15)+1==1e14&&(u=pr(u,f+1,0));break}}while(sr(u.d,i+=10,h));return qe=!0,pr(u,f,h)},cr.minus=cr.sub=function(t){var e,r,n,i,o,a,c,u,l,s,f,h,p=this,d=p.constructor;if(t=new d(t),!p.d||!t.d)return p.s&&t.s?p.d?t.s=-t.s:t=new d(t.d||p.s!==t.s?p:NaN):t=new d(NaN),t;if(p.s!=t.s)return t.s=-t.s,p.plus(t);if(l=p.d,h=t.d,c=d.precision,u=d.rounding,!l[0]||!h[0]){if(h[0])t.s=-t.s;else{if(!l[0])return new d(3===u?-0:0);t=new d(p)}return qe?pr(t,c,u):t}if(r=Ze(t.e/ir),s=Ze(p.e/ir),l=l.slice(),o=s-r){for((f=o<0)?(e=l,o=-o,a=h.length):(e=h,r=s,a=l.length),o>(n=Math.max(Math.ceil(c/ir),a)+2)&&(o=n,e.length=1),e.reverse(),n=o;n--;)e.push(0);e.reverse()}else{for((f=(n=l.length)<(a=h.length))&&(a=n),n=0;n<a;n++)if(l[n]!=h[n]){f=l[n]<h[n];break}o=0}for(f&&(e=l,l=h,h=e,t.s=-t.s),a=l.length,n=h.length-a;n>0;--n)l[a++]=0;for(n=h.length;n>o;){if(l[--n]<h[n]){for(i=n;i&&0===l[--i];)l[i]=nr-1;--l[i],l[n]+=nr}l[n]-=h[n]}for(;0===l[--a];)l.pop();for(;0===l[0];l.shift())--r;return l[0]?(t.d=l,t.e=yr(l,r),qe?pr(t,c,u):t):new d(3===u?-0:0)},cr.modulo=cr.mod=function(t){var e,r=this,n=r.constructor;return t=new n(t),!r.d||!t.s||t.d&&!t.d[0]?new n(NaN):!t.d||r.d&&!r.d[0]?pr(new n(r),n.precision,n.rounding):(qe=!1,9==n.modulo?(e=hr(r,t.abs(),0,3,1)).s*=t.s:e=hr(r,t,0,n.modulo,1),e=e.times(t),qe=!0,r.minus(e))},cr.naturalExponential=cr.exp=function(){return Sr(this)},cr.naturalLogarithm=cr.ln=function(){return jr(this)},cr.negated=cr.neg=function(){var t=new this.constructor(this);return t.s=-t.s,pr(t)},cr.plus=cr.add=function(t){var e,r,n,i,o,a,c,u,l,s,f=this,h=f.constructor;if(t=new h(t),!f.d||!t.d)return f.s&&t.s?f.d||(t=new h(t.d||f.s===t.s?f:NaN)):t=new h(NaN),t;if(f.s!=t.s)return t.s=-t.s,f.minus(t);if(l=f.d,s=t.d,c=h.precision,u=h.rounding,!l[0]||!s[0])return s[0]||(t=new h(f)),qe?pr(t,c,u):t;if(o=Ze(f.e/ir),n=Ze(t.e/ir),l=l.slice(),i=o-n){for(i<0?(r=l,i=-i,a=s.length):(r=s,n=o,a=l.length),i>(a=(o=Math.ceil(c/ir))>a?o+1:a+1)&&(i=a,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((a=l.length)-(i=s.length)<0&&(i=a,r=s,s=l,l=r),e=0;i;)e=(l[--i]=l[i]+s[i]+e)/nr|0,l[i]%=nr;for(e&&(l.unshift(e),++n),a=l.length;0==l[--a];)l.pop();return t.d=l,t.e=yr(l,n),qe?pr(t,c,u):t},cr.precision=cr.sd=function(t){var e,r=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(Xe+t);return r.d?(e=mr(r.d),t&&r.e+1>e&&(e=r.e+1)):e=NaN,e},cr.round=function(){var t=this,e=t.constructor;return pr(new e(t),t.e+1,e.rounding)},cr.sine=cr.sin=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+ir,n.rounding=1,r=function(t,e){var r,n=e.d.length;if(n<3)return e.isZero()?e:Mr(t,2,e,e);r=1.4*Math.sqrt(n),r=r>16?16:0|r,e=e.times(1/Er(5,r)),e=Mr(t,2,e,e);for(var i,o=new t(5),a=new t(16),c=new t(20);r--;)i=e.times(e),e=e.times(o.plus(i.times(a.times(i).minus(c))));return e}(n,kr(n,r)),n.precision=t,n.rounding=e,pr(Re>2?r.neg():r,t,e,!0)):new n(NaN)},cr.squareRoot=cr.sqrt=function(){var t,e,r,n,i,o,a=this,c=a.d,u=a.e,l=a.s,s=a.constructor;if(1!==l||!c||!c[0])return new s(!l||l<0&&(!c||c[0])?NaN:c?a:1/0);for(qe=!1,0==(l=Math.sqrt(+a))||l==1/0?(((e=ur(c)).length+u)%2==0&&(e+="0"),l=Math.sqrt(e),u=Ze((u+1)/2)-(u<0||u%2),n=new s(e=l==1/0?"5e"+u:(e=l.toExponential()).slice(0,e.indexOf("e")+1)+u)):n=new s(l.toString()),r=(u=s.precision)+3;;)if(n=(o=n).plus(hr(a,o,r+2,1)).times(.5),ur(o.d).slice(0,r)===(e=ur(n.d)).slice(0,r)){if("9999"!=(e=e.slice(r-3,r+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(pr(n,u+1,1),t=!n.times(n).eq(a));break}if(!i&&(pr(o,u+1,0),o.times(o).eq(a))){n=o;break}r+=4,i=1}return qe=!0,pr(n,u,s.rounding,t)},cr.tangent=cr.tan=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+10,n.rounding=1,(r=r.sin()).s=1,r=hr(r,new n(1).minus(r.times(r)).sqrt(),t+10,0),n.precision=t,n.rounding=e,pr(2==Re||4==Re?r.neg():r,t,e,!0)):new n(NaN)},cr.times=cr.mul=function(t){var e,r,n,i,o,a,c,u,l,s=this,f=s.constructor,h=s.d,p=(t=new f(t)).d;if(t.s*=s.s,!(h&&h[0]&&p&&p[0]))return new f(!t.s||h&&!h[0]&&!p||p&&!p[0]&&!h?NaN:h&&p?0*t.s:t.s/0);for(r=Ze(s.e/ir)+Ze(t.e/ir),(u=h.length)<(l=p.length)&&(o=h,h=p,p=o,a=u,u=l,l=a),o=[],n=a=u+l;n--;)o.push(0);for(n=l;--n>=0;){for(e=0,i=u+n;i>n;)c=o[i]+p[n]*h[i-n-1]+e,o[i--]=c%nr|0,e=c/nr|0;o[i]=(o[i]+e)%nr|0}for(;!o[--a];)o.pop();return e?++r:o.shift(),t.d=o,t.e=yr(o,r),qe?pr(t,f.precision,f.rounding):t},cr.toBinary=function(t,e){return _r(this,2,t,e)},cr.toDecimalPlaces=cr.toDP=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(lr(t,0,ze),void 0===e?e=n.rounding:lr(e,0,8),pr(r,t+r.e+1,e))},cr.toExponential=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=dr(n,!0):(lr(t,0,ze),void 0===e?e=i.rounding:lr(e,0,8),r=dr(n=pr(new i(n),t+1,e),!0,t+1)),n.isNeg()&&!n.isZero()?"-"+r:r},cr.toFixed=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?r=dr(i):(lr(t,0,ze),void 0===e?e=o.rounding:lr(e,0,8),r=dr(n=pr(new o(i),t+i.e+1,e),!1,t+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r},cr.toFraction=function(t){var e,r,n,i,o,a,c,u,l,s,f,h,p=this,d=p.d,y=p.constructor;if(!d)return new y(p);if(l=r=new y(1),n=u=new y(0),a=(o=(e=new y(n)).e=mr(d)-p.e-1)%ir,e.d[0]=Je(10,a<0?ir+a:a),null==t)t=o>0?e:l;else{if(!(c=new y(t)).isInt()||c.lt(l))throw Error(Xe+c);t=c.gt(e)?o>0?e:l:c}for(qe=!1,c=new y(ur(d)),s=y.precision,y.precision=o=d.length*ir*2;f=hr(c,e,0,1,1),1!=(i=r.plus(f.times(n))).cmp(t);)r=n,n=i,i=l,l=u.plus(f.times(i)),u=i,i=e,e=c.minus(f.times(i)),c=i;return i=hr(t.minus(r),n,0,1,1),u=u.plus(i.times(l)),r=r.plus(i.times(n)),u.s=l.s=p.s,h=hr(l,n,o,1).minus(p).abs().cmp(hr(u,r,o,1).minus(p).abs())<1?[l,n]:[u,r],y.precision=s,qe=!0,h},cr.toHexadecimal=cr.toHex=function(t,e){return _r(this,16,t,e)},cr.toNearest=function(t,e){var r=this,n=r.constructor;if(r=new n(r),null==t){if(!r.d)return r;t=new n(1),e=n.rounding}else{if(t=new n(t),void 0===e?e=n.rounding:lr(e,0,8),!r.d)return t.s?r:t;if(!t.d)return t.s&&(t.s=r.s),t}return t.d[0]?(qe=!1,r=hr(r,t,0,e,1).times(t),qe=!0,pr(r)):(t.s=r.s,r=t),r},cr.toNumber=function(){return+this},cr.toOctal=function(t,e){return _r(this,8,t,e)},cr.toPower=cr.pow=function(t){var e,r,n,i,o,a,c=this,u=c.constructor,l=+(t=new u(t));if(!(c.d&&t.d&&c.d[0]&&t.d[0]))return new u(Je(+c,l));if((c=new u(c)).eq(1))return c;if(n=u.precision,o=u.rounding,t.eq(1))return pr(c,n,o);if((e=Ze(t.e/ir))>=t.d.length-1&&(r=l<0?-l:l)<=9007199254740991)return i=wr(u,c,r,n),t.s<0?new u(1).div(i):pr(i,n,o);if((a=c.s)<0){if(e<t.d.length-1)return new u(NaN);if(0==(1&t.d[e])&&(a=1),0==c.e&&1==c.d[0]&&1==c.d.length)return c.s=a,c}return(e=0!=(r=Je(+c,l))&&isFinite(r)?new u(r+"").e:Ze(l*(Math.log("0."+ur(c.d))/Math.LN10+c.e+1)))>u.maxE+1||e<u.minE-1?new u(e>0?a/0:0):(qe=!1,u.rounding=c.s=1,r=Math.min(12,(e+"").length),(i=Sr(t.times(jr(c,n+r)),n)).d&&sr((i=pr(i,n+5,1)).d,n,o)&&(e=n+10,+ur((i=pr(Sr(t.times(jr(c,e+r)),e),e+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=pr(i,n+1,0))),i.s=a,qe=!0,u.rounding=o,pr(i,n,o))},cr.toPrecision=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=dr(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(lr(t,1,ze),void 0===e?e=i.rounding:lr(e,0,8),r=dr(n=pr(new i(n),t,e),t<=n.e||n.e<=i.toExpNeg,t)),n.isNeg()&&!n.isZero()?"-"+r:r},cr.toSignificantDigits=cr.toSD=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(lr(t,1,ze),void 0===e?e=r.rounding:lr(e,0,8)),pr(new r(this),t,e)},cr.toString=function(){var t=this,e=t.constructor,r=dr(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+r:r},cr.truncated=cr.trunc=function(){return pr(new this.constructor(this),this.e+1,1)},cr.valueOf=cr.toJSON=function(){var t=this,e=t.constructor,r=dr(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+r:r};var hr=function(){function t(t,e,r){var n,i=0,o=t.length;for(t=t.slice();o--;)n=t[o]*e+i,t[o]=n%r|0,i=n/r|0;return i&&t.unshift(i),t}function e(t,e,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function r(t,e,r,n){for(var i=0;r--;)t[r]-=i,i=t[r]<e[r]?1:0,t[r]=i*n+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,i,o,a,c,u){var l,s,f,h,p,d,y,v,g,m,b,w,x,O,S,j,A,P,M,E,k=n.constructor,_=n.s==i.s?1:-1,T=n.d,C=i.d;if(!(T&&T[0]&&C&&C[0]))return new k(n.s&&i.s&&(T?!C||T[0]!=C[0]:C)?T&&0==T[0]||!C?0*_:_/0:NaN);for(u?(p=1,s=n.e-i.e):(u=nr,p=ir,s=Ze(n.e/p)-Ze(i.e/p)),M=C.length,A=T.length,m=(g=new k(_)).d=[],f=0;C[f]==(T[f]||0);f++);if(C[f]>(T[f]||0)&&s--,null==o?(O=o=k.precision,a=k.rounding):O=c?o+(n.e-i.e)+1:o,O<0)m.push(1),d=!0;else{if(O=O/p+2|0,f=0,1==M){for(h=0,C=C[0],O++;(f<A||h)&&O--;f++)S=h*u+(T[f]||0),m[f]=S/C|0,h=S%C|0;d=h||f<A}else{for((h=u/(C[0]+1)|0)>1&&(C=t(C,h,u),T=t(T,h,u),M=C.length,A=T.length),j=M,w=(b=T.slice(0,M)).length;w<M;)b[w++]=0;(E=C.slice()).unshift(0),P=C[0],C[1]>=u/2&&++P;do{h=0,(l=e(C,b,M,w))<0?(x=b[0],M!=w&&(x=x*u+(b[1]||0)),(h=x/P|0)>1?(h>=u&&(h=u-1),1==(l=e(y=t(C,h,u),b,v=y.length,w=b.length))&&(h--,r(y,M<v?E:C,v,u))):(0==h&&(l=h=1),y=C.slice()),(v=y.length)<w&&y.unshift(0),r(b,y,w,u),-1==l&&(l=e(C,b,M,w=b.length))<1&&(h++,r(b,M<w?E:C,w,u)),w=b.length):0===l&&(h++,b=[0]),m[f++]=h,l&&b[0]?b[w++]=T[j]||0:(b=[T[j]],w=1)}while((j++<A||void 0!==b[0])&&O--);d=void 0!==b[0]}m[0]||m.shift()}if(1==p)g.e=s,Le=d;else{for(f=1,h=m[0];h>=10;h/=10)f++;g.e=f+s*p-1,pr(g,c?o+g.e+1:o,a,d)}return g}}();function pr(t,e,r,n){var i,o,a,c,u,l,s,f,h,p=t.constructor;t:if(null!=e){if(!(f=t.d))return t;for(i=1,c=f[0];c>=10;c/=10)i++;if((o=e-i)<0)o+=ir,a=e,u=(s=f[h=0])/Je(10,i-a-1)%10|0;else if((h=Math.ceil((o+1)/ir))>=(c=f.length)){if(!n)break t;for(;c++<=h;)f.push(0);s=u=0,i=1,a=(o%=ir)-ir+1}else{for(s=c=f[h],i=1;c>=10;c/=10)i++;u=(a=(o%=ir)-ir+i)<0?0:s/Je(10,i-a-1)%10|0}if(n=n||e<0||void 0!==f[h+1]||(a<0?s:s%Je(10,i-a-1)),l=r<4?(u||n)&&(0==r||r==(t.s<0?3:2)):u>5||5==u&&(4==r||n||6==r&&(o>0?a>0?s/Je(10,i-a):0:f[h-1])%10&1||r==(t.s<0?8:7)),e<1||!f[0])return f.length=0,l?(e-=t.e+1,f[0]=Je(10,(ir-e%ir)%ir),t.e=-e||0):f[0]=t.e=0,t;if(0==o?(f.length=h,c=1,h--):(f.length=h+1,c=Je(10,ir-o),f[h]=a>0?(s/Je(10,i-a)%Je(10,a)|0)*c:0),l)for(;;){if(0==h){for(o=1,a=f[0];a>=10;a/=10)o++;for(a=f[0]+=c,c=1;a>=10;a/=10)c++;o!=c&&(t.e++,f[0]==nr&&(f[0]=1));break}if(f[h]+=c,f[h]!=nr)break;f[h--]=0,c=1}for(o=f.length;0===f[--o];)f.pop()}return qe&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e<p.minE&&(t.e=0,t.d=[0])),t}function dr(t,e,r){if(!t.isFinite())return Ar(t);var n,i=t.e,o=ur(t.d),a=o.length;return e?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+br(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):i<0?(o="0."+br(-i-1)+o,r&&(n=r-a)>0&&(o+=br(n))):i>=a?(o+=br(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+br(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=br(n))),o}function yr(t,e){var r=t[0];for(e*=ir;r>=10;r/=10)e++;return e}function vr(t,e,r){if(e>or)throw qe=!0,r&&(t.precision=r),Error(Ye);return pr(new t(Fe),e,1,!0)}function gr(t,e,r){if(e>ar)throw Error(Ye);return pr(new t(Ue),e,r,!0)}function mr(t){var e=t.length-1,r=e*ir+1;if(e=t[e]){for(;e%10==0;e/=10)r--;for(e=t[0];e>=10;e/=10)r++}return r}function br(t){for(var e="";t--;)e+="0";return e}function wr(t,e,r,n){var i,o=new t(1),a=Math.ceil(n/ir+4);for(qe=!1;;){if(r%2&&Tr((o=o.times(e)).d,a)&&(i=!0),0===(r=Ze(r/2))){r=o.d.length-1,i&&0===o.d[r]&&++o.d[r];break}Tr((e=e.times(e)).d,a)}return qe=!0,o}function xr(t){return 1&t.d[t.d.length-1]}function Or(t,e,r){for(var n,i=new t(e[0]),o=0;++o<e.length;){if(!(n=new t(e[o])).s){i=n;break}i[r](n)&&(i=n)}return i}function Sr(t,e){var r,n,i,o,a,c,u,l=0,s=0,f=0,h=t.constructor,p=h.rounding,d=h.precision;if(!t.d||!t.d[0]||t.e>17)return new h(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(qe=!1,u=d):u=e,c=new h(.03125);t.e>-2;)t=t.times(c),f+=5;for(u+=n=Math.log(Je(2,f))/Math.LN10*2+5|0,r=o=a=new h(1),h.precision=u;;){if(o=pr(o.times(t),u,1),r=r.times(++s),ur((c=a.plus(hr(o,r,u,1))).d).slice(0,u)===ur(a.d).slice(0,u)){for(i=f;i--;)a=pr(a.times(a),u,1);if(null!=e)return h.precision=d,a;if(!(l<3&&sr(a.d,u-n,p,l)))return pr(a,h.precision=d,p,qe=!0);h.precision=u+=10,r=o=c=new h(1),s=0,l++}a=c}}function jr(t,e){var r,n,i,o,a,c,u,l,s,f,h,p=1,d=t,y=d.d,v=d.constructor,g=v.rounding,m=v.precision;if(d.s<0||!y||!y[0]||!d.e&&1==y[0]&&1==y.length)return new v(y&&!y[0]?-1/0:1!=d.s?NaN:y?0:d);if(null==e?(qe=!1,s=m):s=e,v.precision=s+=10,n=(r=ur(y)).charAt(0),!(Math.abs(o=d.e)<15e14))return l=vr(v,s+2,m).times(o+""),d=jr(new v(n+"."+r.slice(1)),s-10).plus(l),v.precision=m,null==e?pr(d,m,g,qe=!0):d;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=ur((d=d.times(t)).d)).charAt(0),p++;for(o=d.e,n>1?(d=new v("0."+r),o++):d=new v(n+"."+r.slice(1)),f=d,u=a=d=hr(d.minus(1),d.plus(1),s,1),h=pr(d.times(d),s,1),i=3;;){if(a=pr(a.times(h),s,1),ur((l=u.plus(hr(a,new v(i),s,1))).d).slice(0,s)===ur(u.d).slice(0,s)){if(u=u.times(2),0!==o&&(u=u.plus(vr(v,s+2,m).times(o+""))),u=hr(u,new v(p),s,1),null!=e)return v.precision=m,u;if(!sr(u.d,s-10,g,c))return pr(u,v.precision=m,g,qe=!0);v.precision=s+=10,l=a=d=hr(f.minus(1),f.plus(1),s,1),h=pr(d.times(d),s,1),i=c=1}u=l,i+=2}}function Ar(t){return String(t.s*t.s/0)}function Pr(t,e){var r,n,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);n++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(n,i)){if(i-=n,t.e=r=r-n-1,t.d=[],n=(r+1)%ir,r<0&&(n+=ir),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=ir;n<i;)t.d.push(+e.slice(n,n+=ir));e=e.slice(n),n=ir-e.length}else n-=i;for(;n--;)e+="0";t.d.push(+e),qe&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function Mr(t,e,r,n,i){var o,a,c,u,l=t.precision,s=Math.ceil(l/ir);for(qe=!1,u=r.times(r),c=new t(n);;){if(a=hr(c.times(u),new t(e++*e++),l,1),c=i?n.plus(a):n.minus(a),n=hr(a.times(u),new t(e++*e++),l,1),void 0!==(a=c.plus(n)).d[s]){for(o=s;a.d[o]===c.d[o]&&o--;);if(-1==o)break}o=c,c=n,n=a,a=o}return qe=!0,a.d.length=s+1,a}function Er(t,e){for(var r=t;--e;)r*=t;return r}function kr(t,e){var r,n=e.s<0,i=gr(t,t.precision,1),o=i.times(.5);if((e=e.abs()).lte(o))return Re=n?4:1,e;if((r=e.divToInt(i)).isZero())Re=n?3:2;else{if((e=e.minus(r.times(i))).lte(o))return Re=xr(r)?n?2:3:n?4:1,e;Re=xr(r)?n?1:4:n?3:2}return e.minus(i).abs()}function _r(t,e,r,n){var i,o,a,c,u,l,s,f,h,p=t.constructor,d=void 0!==r;if(d?(lr(r,1,ze),void 0===n?n=p.rounding:lr(n,0,8)):(r=p.precision,n=p.rounding),t.isFinite()){for(d?(i=2,16==e?r=4*r-3:8==e&&(r=3*r-2)):i=e,(a=(s=dr(t)).indexOf("."))>=0&&(s=s.replace(".",""),(h=new p(1)).e=s.length-a,h.d=fr(dr(h),10,i),h.e=h.d.length),o=u=(f=fr(s,10,i)).length;0==f[--u];)f.pop();if(f[0]){if(a<0?o--:((t=new p(t)).d=f,t.e=o,f=(t=hr(t,h,r,n,0,i)).d,o=t.e,l=Le),a=f[r],c=i/2,l=l||void 0!==f[r+1],l=n<4?(void 0!==a||l)&&(0===n||n===(t.s<0?3:2)):a>c||a===c&&(4===n||l||6===n&&1&f[r-1]||n===(t.s<0?8:7)),f.length=r,l)for(;++f[--r]>i-1;)f[r]=0,r||(++o,f.unshift(1));for(u=f.length;!f[u-1];--u);for(a=0,s="";a<u;a++)s+=He.charAt(f[a]);if(d){if(u>1)if(16==e||8==e){for(a=16==e?4:3,--u;u%a;u++)s+="0";for(u=(f=fr(s,i,e)).length;!f[u-1];--u);for(a=1,s="1.";a<u;a++)s+=He.charAt(f[a])}else s=s.charAt(0)+"."+s.slice(1);s=s+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)s="0"+s;s="0."+s}else if(++o>u)for(o-=u;o--;)s+="0";else o<u&&(s=s.slice(0,o)+"."+s.slice(o))}else s=d?"0p+0":"0";s=(16==e?"0x":2==e?"0b":8==e?"0o":"")+s}else s=Ar(t);return t.s<0?"-"+s:s}function Tr(t,e){if(t.length>e)return t.length=e,!0}function Cr(t){return new this(t).abs()}function Nr(t){return new this(t).acos()}function Dr(t){return new this(t).acosh()}function Ir(t,e){return new this(t).plus(e)}function Br(t){return new this(t).asin()}function Lr(t){return new this(t).asinh()}function Rr(t){return new this(t).atan()}function $r(t){return new this(t).atanh()}function zr(t,e){t=new this(t),e=new this(e);var r,n=this.precision,i=this.rounding,o=n+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(r=e.s<0?gr(this,n,i):new this(0)).s=t.s:!t.d||e.isZero()?(r=gr(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,r=this.atan(hr(t,e,o,1)),e=gr(this,o,1),this.precision=n,this.rounding=i,r=t.s<0?r.minus(e):r.plus(e)):r=this.atan(hr(t,e,o,1)):(r=gr(this,o,1).times(e.s>0?.25:.75)).s=t.s:r=new this(NaN),r}function Hr(t){return new this(t).cbrt()}function Fr(t){return pr(t=new this(t),t.e+1,2)}function Ur(t,e,r){return new this(t).clamp(e,r)}function Vr(t){if(!t||"object"!=typeof t)throw Error(We+"Object expected");var e,r,n,i=!0===t.defaults,o=["precision",1,ze,"rounding",0,8,"toExpNeg",-$e,0,"toExpPos",0,$e,"maxE",0,$e,"minE",-$e,0,"modulo",0,9];for(e=0;e<o.length;e+=3)if(r=o[e],i&&(this[r]=Ve[r]),void 0!==(n=t[r])){if(!(Ze(n)===n&&n>=o[e+1]&&n<=o[e+2]))throw Error(Xe+r+": "+n);this[r]=n}if(r="crypto",i&&(this[r]=Ve[r]),void 0!==(n=t[r])){if(!0!==n&&!1!==n&&0!==n&&1!==n)throw Error(Xe+r+": "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(Ke);this[r]=!0}else this[r]=!1}return this}function qr(t){return new this(t).cos()}function Wr(t){return new this(t).cosh()}function Xr(t,e){return new this(t).div(e)}function Yr(t){return new this(t).exp()}function Kr(t){return pr(t=new this(t),t.e+1,3)}function Gr(){var t,e,r=new this(0);for(qe=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)r.d&&(r=r.plus(e.times(e)));else{if(e.s)return qe=!0,new this(1/0);r=e}return qe=!0,r.sqrt()}function Zr(t){return t instanceof bn||t&&t.toStringTag===Ge||!1}function Jr(t){return new this(t).ln()}function Qr(t,e){return new this(t).log(e)}function tn(t){return new this(t).log(2)}function en(t){return new this(t).log(10)}function rn(){return Or(this,arguments,"lt")}function nn(){return Or(this,arguments,"gt")}function on(t,e){return new this(t).mod(e)}function an(t,e){return new this(t).mul(e)}function cn(t,e){return new this(t).pow(e)}function un(t){var e,r,n,i,o=0,a=new this(1),c=[];if(void 0===t?t=this.precision:lr(t,1,ze),n=Math.ceil(t/ir),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(n));o<n;)(i=e[o])>=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:c[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(Ke);for(e=crypto.randomBytes(n*=4);o<n;)(i=e[o]+(e[o+1]<<8)+(e[o+2]<<16)+((127&e[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,o):(c.push(i%1e7),o+=4);o=n/4}else for(;o<n;)c[o++]=1e7*Math.random()|0;for(n=c[--o],t%=ir,n&&t&&(i=Je(10,ir-t),c[o]=(n/i|0)*i);0===c[o];o--)c.pop();if(o<0)r=0,c=[0];else{for(r=-1;0===c[0];r-=ir)c.shift();for(n=1,i=c[0];i>=10;i/=10)n++;n<ir&&(r-=ir-n)}return a.e=r,a.d=c,a}function ln(t){return pr(t=new this(t),t.e+1,this.rounding)}function sn(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function fn(t){return new this(t).sin()}function hn(t){return new this(t).sinh()}function pn(t){return new this(t).sqrt()}function dn(t,e){return new this(t).sub(e)}function yn(){var t=0,e=arguments,r=new this(e[t]);for(qe=!1;r.s&&++t<e.length;)r=r.plus(e[t]);return qe=!0,pr(r,this.precision,this.rounding)}function vn(t){return new this(t).tan()}function gn(t){return new this(t).tanh()}function mn(t){return pr(t=new this(t),t.e+1,1)}cr[Symbol.for("nodejs.util.inspect.custom")]=cr.toString,cr[Symbol.toStringTag]="Decimal";var bn=cr.constructor=function t(e){var r,n,i;function o(t){var e,r,n,i=this;if(!(i instanceof o))return new o(t);if(i.constructor=o,Zr(t))return i.s=t.s,void(qe?!t.d||t.e>o.maxE?(i.e=NaN,i.d=null):t.e<o.minE?(i.e=0,i.d=[0]):(i.e=t.e,i.d=t.d.slice()):(i.e=t.e,i.d=t.d?t.d.slice():t.d));if("number"===(n=typeof t)){if(0===t)return i.s=1/t<0?-1:1,i.e=0,void(i.d=[0]);if(t<0?(t=-t,i.s=-1):i.s=1,t===~~t&&t<1e7){for(e=0,r=t;r>=10;r/=10)e++;return void(qe?e>o.maxE?(i.e=NaN,i.d=null):e<o.minE?(i.e=0,i.d=[0]):(i.e=e,i.d=[t]):(i.e=e,i.d=[t]))}return 0*t!=0?(t||(i.s=NaN),i.e=NaN,void(i.d=null)):Pr(i,t.toString())}if("string"!==n)throw Error(Xe+t);return 45===(r=t.charCodeAt(0))?(t=t.slice(1),i.s=-1):(43===r&&(t=t.slice(1)),i.s=1),rr.test(t)?Pr(i,t):function(t,e){var r,n,i,o,a,c,u,l,s;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),rr.test(e))return Pr(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(tr.test(e))r=16,e=e.toLowerCase();else if(Qe.test(e))r=2;else{if(!er.test(e))throw Error(Xe+e);r=8}for((o=e.search(/p/i))>0?(u=+e.slice(o+1),e=e.substring(2,o)):e=e.slice(2),a=(o=e.indexOf("."))>=0,n=t.constructor,a&&(o=(c=(e=e.replace(".","")).length)-o,i=wr(n,new n(r),o,2*o)),o=s=(l=fr(e,r,nr)).length-1;0===l[o];--o)l.pop();return o<0?new n(0*t.s):(t.e=yr(l,s),t.d=l,qe=!1,a&&(t=hr(t,i,4*c)),u&&(t=t.times(Math.abs(u)<54?Je(2,u):bn.pow(2,u))),qe=!0,t)}(i,t)}if(o.prototype=cr,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=Vr,o.clone=t,o.isDecimal=Zr,o.abs=Cr,o.acos=Nr,o.acosh=Dr,o.add=Ir,o.asin=Br,o.asinh=Lr,o.atan=Rr,o.atanh=$r,o.atan2=zr,o.cbrt=Hr,o.ceil=Fr,o.clamp=Ur,o.cos=qr,o.cosh=Wr,o.div=Xr,o.exp=Yr,o.floor=Kr,o.hypot=Gr,o.ln=Jr,o.log=Qr,o.log10=en,o.log2=tn,o.max=rn,o.min=nn,o.mod=on,o.mul=an,o.pow=cn,o.random=un,o.round=ln,o.sign=sn,o.sin=fn,o.sinh=hn,o.sqrt=pn,o.sub=dn,o.sum=yn,o.tan=vn,o.tanh=gn,o.trunc=mn,void 0===e&&(e={}),e&&!0!==e.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],r=0;r<i.length;)e.hasOwnProperty(n=i[r++])||(e[n]=this[n]);return o.config(e),o}(Ve);Fe=new bn(Fe),Ue=new bn(Ue);const wn=t=>{if(t.some((t=>!Number.isFinite(t))))throw new Error(`One or more of the provided amounts is not a finite number. (amounts: ${t}, method: aggregateAmounts)`);return t.reduce(((t,e)=>t.plus(e)),new bn(0)).toNumber()};var xn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function On(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Sn={exports:{}};Sn.exports=function(){var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",o="minute",a="hour",c="day",u="week",l="month",s="quarter",f="year",h="date",p="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},g=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},m={s:g,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+g(n,2,"0")+":"+g(i,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,l),o=r-i<0,a=e.clone().add(n+(o?-1:1),l);return+(-(n+(r-i)/(o?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:f,w:u,d:c,D:h,h:a,m:o,s:i,ms:n,Q:s}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",w={};w[b]=v;var x="$isDayjsObject",O=function(t){return t instanceof P||!(!t||!t[x])},S=function t(e,r,n){var i;if(!e)return b;if("string"==typeof e){var o=e.toLowerCase();w[o]&&(i=o),r&&(w[o]=r,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var c=e.name;w[c]=e,i=c}return!n&&i&&(b=i),i||!n&&b},j=function(t,e){if(O(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new P(r)},A=m;A.l=S,A.i=O,A.w=function(t,e){return j(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var P=function(){function v(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[x]=!0}var g=v.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(A.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(d);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(e)}(t),this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return A},g.isValid=function(){return!(this.$d.toString()===p)},g.isSame=function(t,e){var r=j(t);return this.startOf(e)<=r&&r<=this.endOf(e)},g.isAfter=function(t,e){return j(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<j(t)},g.$g=function(t,e,r){return A.u(t)?this[e]:this.set(r,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var r=this,n=!!A.u(e)||e,s=A.p(t),p=function(t,e){var i=A.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?i:i.endOf(c)},d=function(t,e){return A.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},y=this.$W,v=this.$M,g=this.$D,m="set"+(this.$u?"UTC":"");switch(s){case f:return n?p(1,0):p(31,11);case l:return n?p(1,v):p(0,v+1);case u:var b=this.$locale().weekStart||0,w=(y<b?y+7:y)-b;return p(n?g-w:g+(6-w),v);case c:case h:return d(m+"Hours",0);case a:return d(m+"Minutes",1);case o:return d(m+"Seconds",2);case i:return d(m+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var r,u=A.p(t),s="set"+(this.$u?"UTC":""),p=(r={},r[c]=s+"Date",r[h]=s+"Date",r[l]=s+"Month",r[f]=s+"FullYear",r[a]=s+"Hours",r[o]=s+"Minutes",r[i]=s+"Seconds",r[n]=s+"Milliseconds",r)[u],d=u===c?this.$D+(e-this.$W):e;if(u===l||u===f){var y=this.clone().set(h,1);y.$d[p](d),y.init(),this.$d=y.set(h,Math.min(this.$D,y.daysInMonth())).$d}else p&&this.$d[p](d);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[A.p(t)]()},g.add=function(n,s){var h,p=this;n=Number(n);var d=A.p(s),y=function(t){var e=j(p);return A.w(e.date(e.date()+Math.round(t*n)),p)};if(d===l)return this.set(l,this.$M+n);if(d===f)return this.set(f,this.$y+n);if(d===c)return y(1);if(d===u)return y(7);var v=(h={},h[o]=e,h[a]=r,h[i]=t,h)[d]||1,g=this.$d.getTime()+n*v;return A.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||p;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=A.z(this),o=this.$H,a=this.$m,c=this.$M,u=r.weekdays,l=r.months,s=r.meridiem,f=function(t,r,i,o){return t&&(t[r]||t(e,n))||i[r].slice(0,o)},h=function(t){return A.s(o%12||12,t,"0")},d=s||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(y,(function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return A.s(e.$y,4,"0");case"M":return c+1;case"MM":return A.s(c+1,2,"0");case"MMM":return f(r.monthsShort,c,l,3);case"MMMM":return f(l,c);case"D":return e.$D;case"DD":return A.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return f(r.weekdaysMin,e.$W,u,2);case"ddd":return f(r.weekdaysShort,e.$W,u,3);case"dddd":return u[e.$W];case"H":return String(o);case"HH":return A.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return d(o,a,!0);case"A":return d(o,a,!1);case"m":return String(a);case"mm":return A.s(a,2,"0");case"s":return String(e.$s);case"ss":return A.s(e.$s,2,"0");case"SSS":return A.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,h,p){var d,y=this,v=A.p(h),g=j(n),m=(g.utcOffset()-this.utcOffset())*e,b=this-g,w=function(){return A.m(y,g)};switch(v){case f:d=w()/12;break;case l:d=w();break;case s:d=w()/3;break;case u:d=(b-m)/6048e5;break;case c:d=(b-m)/864e5;break;case a:d=b/r;break;case o:d=b/e;break;case i:d=b/t;break;default:d=b}return p?d:A.a(d)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return w[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=S(t,e,!0);return n&&(r.$L=n),r},g.clone=function(){return A.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),M=P.prototype;return j.prototype=M,[["$ms",n],["$s",i],["$m",o],["$H",a],["$W",c],["$M",l],["$y",f],["$D",h]].forEach((function(t){M[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),j.extend=function(t,e){return t.$i||(t(e,P,j),t.$i=!0),j},j.locale=S,j.isDayjs=O,j.unix=function(t){return j(1e3*t)},j.en=w[b],j.Ls=w,j.p={},j}();var jn,An,Pn,Mn=On(Sn.exports),En={exports:{}};En.exports=(jn="minute",An=/[+-]\d\d(?::?\d\d)?/g,Pn=/([+-]|\d\d)/g,function(t,e,r){var n=e.prototype;r.utc=function(t){return new e({date:t,utc:!0,args:arguments})},n.utc=function(t){var e=r(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),jn):e},n.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var i=n.parse;n.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),i.call(this,t)};var o=n.init;n.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else o.call(this)};var a=n.utcOffset;n.utcOffset=function(t,e){var r=this.$utils().u;if(r(t))return this.$u?0:r(this.$offset)?a.call(this):this.$offset;if("string"==typeof t&&(t=function(t){void 0===t&&(t="");var e=t.match(An);if(!e)return null;var r=(""+e[0]).match(Pn)||["-",0,0],n=r[0],i=60*+r[1]+ +r[2];return 0===i?0:"+"===n?i:-i}(t),null===t))return this;var n=Math.abs(t)<=16?60*t:t,i=this;if(e)return i.$offset=n,i.$u=0===t,i;if(0!==t){var o=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(i=this.local().add(n+o,jn)).$offset=n,i.$x.$localOffset=o}else i=this.utc();return i};var c=n.format;n.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,e)},n.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},n.isUTC=function(){return!!this.$u},n.toISOString=function(){return this.toDate().toISOString()},n.toString=function(){return this.toDate().toUTCString()};var u=n.toDate;n.toDate=function(t){return"s"===t&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var l=n.diff;n.diff=function(t,e,n){if(t&&this.$u===t.$u)return l.call(this,t,e,n);var i=this.local(),o=r(t).local();return l.call(i,o,e,n)}});var kn=On(En.exports);Mn.extend(kn);const _n=({timeString:t,toEndDate:e})=>""===t?"":e?Mn(`${t}T23:59:59`).utc().unix().toString():Mn(t).utc().unix().toString(),Tn=({number:t,signDisplay:e="exceptZero",isDecimal:r=!0})=>{const n=Number(t);if(!Number.isFinite(n))return console.log(`Number is not a finite number. (number: ${n}, method: formatPercentage)`),t;return new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:2,signDisplay:e}).format(r?n:n/100)};
|
|
1
|
+
import{jsxs as t,jsx as e}from"react/jsx-runtime";import{chakra as r,createMultiStyleConfigHelpers as n,defineStyle as i,defineStyleConfig as o,extendTheme as a,withDefaultColorScheme as c,useBreakpoint as u,Portal as l,Text as s,ButtonGroup as f,Button as h,Card as p,FormControl as d,Flex as y,FormLabel as v,Checkbox as m,FormErrorMessage as g,InputGroup as b,InputLeftAddon as w,InputLeftElement as x,Input as O,InputRightElement as S,InputRightAddon as j,FormHelperText as A,Box as P,Tooltip as M,Modal as E,ModalOverlay as k,ModalContent as _,ModalHeader as T,ModalCloseButton as C,ModalBody as D,ModalFooter as I,Select as N,keyframes as B,Tag as R,TagLeftIcon as $,TagLabel as L,TagRightIcon as z,TagCloseButton as H,Alert as F,AlertIcon as U,AlertTitle as V,AlertDescription as W,CloseButton as q,Spinner as X}from"@chakra-ui/react";import Y,{isValidElement as K,Children as G,PureComponent as Z,forwardRef as J,useRef as Q,useImperativeHandle as tt,useState as et,useCallback as rt,useEffect as nt,useMemo as it,cloneElement as ot,createElement as at,useContext as ct,createContext as ut,Component as lt}from"react";const st=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M12 .5a12 12 0 1 0 12 12 12.013 12.013 0 0 0-12-12m0 22a10 10 0 1 1 10-10 10.01 10.01 0 0 1-10 10"}),e("path",{d:"M12 5.5a1 1 0 0 0-1 1v8a1 1 0 1 0 2 0v-8a1 1 0 0 0-1-1M13 18.5a1 1 0 1 0-2 0 1 1 0 0 0 2 0"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),ft=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"none",viewBox:"0 0 16 17","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m14.563 9.22-.915.947-3.02-3.125a2.54 2.54 0 0 0-1.785-.74c-.666 0-1.305.265-1.786.74l-.146.15a.85.85 0 0 1-.596.248.85.85 0 0 1-.595-.248L1.448 2.766A.84.84 0 0 0 .849 2.5a.82.82 0 0 0-.602.255A.87.87 0 0 0 0 3.38.9.9 0 0 0 .257 4l4.271 4.42c.482.476 1.121.741 1.787.741S7.62 8.895 8.1 8.42l.145-.151a.85.85 0 0 1 .596-.247c.222 0 .435.088.595.247l3.02 3.13-.914.947a.9.9 0 0 0-.183.95c.064.159.172.295.31.39a.82.82 0 0 0 .468.147h2.599c.335 0 .656-.137.893-.383a1.33 1.33 0 0 0 .37-.924V9.831a.9.9 0 0 0-.144-.482.85.85 0 0 0-.379-.319.82.82 0 0 0-.915.19"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h16v16H0z"})})})]}))),ht=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M14.738 2H12.14a.82.82 0 0 0-.467.147.87.87 0 0 0-.31.39.9.9 0 0 0 .182.949l.914.945-3.018 3.121a.85.85 0 0 1-.595.247.85.85 0 0 1-.595-.247l-.144-.149a2.54 2.54 0 0 0-1.785-.74c-.665 0-1.304.265-1.785.74l-4.292 4.44a.9.9 0 0 0-.246.618c0 .232.09.454.248.617a.83.83 0 0 0 .598.255.83.83 0 0 0 .596-.256l4.292-4.44a.85.85 0 0 1 .595-.247c.222 0 .435.088.596.247l.143.149a2.54 2.54 0 0 0 1.785.74 2.54 2.54 0 0 0 1.785-.74l3.018-3.122.913.945a.815.815 0 0 0 .913.182.85.85 0 0 0 .376-.319.9.9 0 0 0 .142-.48V3.306a1.33 1.33 0 0 0-.37-.924A1.24 1.24 0 0 0 14.738 2"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{d:"M0 0h16v16H0z"})})})]}))),pt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M24 23.5a1 1 0 0 1-1 1H1a1 1 0 0 1 0-2h22a1 1 0 0 1 1 1M.291 9.052a2.44 2.44 0 0 1 .153-2.566c.427-.627 1-1.141 1.668-1.5l7.501-3.904a5.17 5.17 0 0 1 4.774 0l7.5 3.907c.669.359 1.24.873 1.668 1.5a2.44 2.44 0 0 1 .153 2.566 2.71 2.71 0 0 1-2.416 1.445H21v8h1a1 1 0 1 1 0 2H2a1 1 0 0 1 0-2h1v-8h-.292A2.71 2.71 0 0 1 .291 9.052m4.71 9.448h3v-8H5zm5-8v8h4v-8zm9 0h-3v8h3zM2.062 8.125a.72.72 0 0 0 .645.375h18.584a.72.72 0 0 0 .645-.375.45.45 0 0 0-.024-.5 2.7 2.7 0 0 0-.949-.864l-7.5-3.907a3.18 3.18 0 0 0-2.926 0l-7.5 3.907a2.7 2.7 0 0 0-.949.865.45.45 0 0 0-.026.5"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),dt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M5 23h18a1 1 0 0 1 0 2H5a5.006 5.006 0 0 1-5-5V2a1 1 0 0 1 2 0v18a3 3 0 0 0 3 3"}),e("path",{d:"M6.707 20.707A1 1 0 0 1 5 20v-7a1 1 0 0 1 2 0v7a1 1 0 0 1-.293.707M10 11v9a1 1 0 1 0 2 0v-9a1 1 0 0 0-2 0M15 20v-6a1 1 0 0 1 2 0v6a1 1 0 1 1-2 0M20 10v10a1 1 0 1 0 2 0V10a1 1 0 0 0-2 0M6.707 9.707a1 1 0 1 1-1.414-1.414l3.586-3.586a3 3 0 0 1 4.242 0l2.172 2.17a1 1 0 0 0 1.414 0l5.586-5.584a1 1 0 0 1 1.414 1.414L18.12 8.293a3 3 0 0 1-4.242 0L11.707 6.12a1.025 1.025 0 0 0-1.414 0z"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),yt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M13.5 15a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M7 16.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M18.5 15a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"}),e("path",{fillRule:"evenodd",d:"M18 2h1a5.006 5.006 0 0 1 5 5v12a5.006 5.006 0 0 1-5 5H5a5.006 5.006 0 0 1-5-5V7a5.006 5.006 0 0 1 5-5h1V1a1 1 0 0 1 2 0v1h8V1a1 1 0 0 1 2 0zM2.879 4.879A3 3 0 0 0 2 7v1h20V7a3 3 0 0 0-3-3H5a3 3 0 0 0-2.121.879m0 16.242A3 3 0 0 0 5 22h14a3 3 0 0 0 3-3v-9H2v9a3 3 0 0 0 .879 2.121",clipRule:"evenodd"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),vt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m.292 7.861 8.17 8.17a5 5 0 0 0 7.08 0l8.17-8.17a1.004 1.004 0 1 0-1.42-1.42l-8.17 8.17a3 3 0 0 1-4.24 0l-8.17-8.17a1 1 0 0 0-1.42 0 1 1 0 0 0 0 1.42"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),mt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M17.17 24.5a1 1 0 0 1-.71-.29l-8.17-8.17a5 5 0 0 1 0-7.08L16.46.79a1.004 1.004 0 1 1 1.42 1.42l-8.17 8.17a3 3 0 0 0 0 4.24l8.17 8.17a1 1 0 0 1-.71 1.71"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),gt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M7 24.5a1 1 0 0 1-.71-1.71l8.17-8.17a3 3 0 0 0 0-4.24L6.29 2.21A1.004 1.004 0 0 1 7.71.79l8.17 8.17a5 5 0 0 1 0 7.08l-8.17 8.17a1 1 0 0 1-.71.29"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),bt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m23.71 16.79-8.17-8.17a5 5 0 0 0-7.08 0L.29 16.79a1.004 1.004 0 1 0 1.42 1.42l8.17-8.17a3 3 0 0 1 4.24 0l8.17 8.17a1.002 1.002 0 0 0 1.64-.325 1 1 0 0 0-.22-1.095"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),wt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M11.033 5.145a.968.968 0 0 1 1.935 0v.944a6.5 6.5 0 0 1 3.618 1.827.968.968 0 0 1-1.37 1.369 4.55 4.55 0 0 0-3.215-1.332A4.534 4.534 0 0 0 7.452 12.5 4.534 4.534 0 0 0 12 17.05a4.55 4.55 0 0 0 3.209-1.339.967.967 0 0 1 1.372 1.367 6.5 6.5 0 0 1-3.612 1.833v.946a.967.967 0 1 1-1.935 0v-.944c-3.114-.47-5.516-3.17-5.516-6.41S7.92 6.56 11.033 6.09z"}),e("path",{fillRule:"evenodd",d:"M12 .5C5.384.5 0 5.884 0 12.5s5.384 12 12 12 12-5.384 12-12-5.384-12-12-12m0 1.936A10.05 10.05 0 0 1 22.064 12.5 10.05 10.05 0 0 1 12 22.564 10.05 10.05 0 0 1 1.936 12.5 10.05 10.05 0 0 1 12 2.436",clipRule:"evenodd"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),xt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M22.319 4.931 8.499 18.75a1 1 0 0 1-1.416 0L1.739 13.4a1 1 0 0 0-1.417 0 1 1 0 0 0 0 1.417l5.346 5.345a3.01 3.01 0 0 0 4.25 0L23.736 6.347a1 1 0 0 0-.709-1.71 1 1 0 0 0-.708.294"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Ot=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M19 3.5h-6.528a1 1 0 0 1-.447-.1L8.869 1.816A3 3 0 0 0 7.528 1.5H5a5.006 5.006 0 0 0-5 5v12a5.006 5.006 0 0 0 5 5h14a5.006 5.006 0 0 0 5-5v-10a5.006 5.006 0 0 0-5-5m-14 0h2.528c.155 0 .308.033.447.1l3.156 1.58c.416.208.875.318 1.341.32H19a3 3 0 0 1 2.779 1.882L2 7.494V6.5a3 3 0 0 1 3-3m14 18H5a3 3 0 0 1-3-3V9.494l20-.113v9.12a3 3 0 0 1-3 3"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),St=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M23.707.793a1 1 0 0 0-1.414 0L12 11.086 1.707.793a1 1 0 0 0-1.414 0 1 1 0 0 0 0 1.414L10.586 12.5.293 22.793a1 1 0 0 0 0 1.414 1 1 0 0 0 1.414 0L12 13.914l10.293 10.293a1 1 0 0 0 1.414-1.414L13.414 12.5 23.707 2.207a1 1 0 0 0 0-1.414"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),jt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M21.736 16.9A5.01 5.01 0 0 0 17 13.5h-4v-1.084a6 6 0 1 0-2 0V13.5H7a5.01 5.01 0 0 0-4.736 3.4 4 4 0 1 0 2.447-.334A3 3 0 0 1 7 15.5h4v1.127a4 4 0 1 0 2 0V15.5h4a3 3 0 0 1 2.289 1.063 4 4 0 1 0 2.447.334zM8 6.5a4 4 0 1 1 8 0 4 4 0 0 1-8 0m-2 14a2 2 0 1 1-4 0 2 2 0 0 1 4 0m8 0a2 2 0 1 1-4.001 0 2 2 0 0 1 4 0m6 2a2 2 0 1 1 0-4 2 2 0 0 1 0 4"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),At=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M13 20.5a5.006 5.006 0 0 0 5-5V6.743a3.97 3.97 0 0 0-1.172-2.829l-2.242-2.242A3.97 3.97 0 0 0 11.757.5H7a5.006 5.006 0 0 0-5 5v10a5.006 5.006 0 0 0 5 5zm-9-5v-10a3 3 0 0 1 3-3s4.92.014 5 .024V4.5a2 2 0 0 0 2 2h1.976c.01.081.024 9 .024 9a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3m18-7v11a5.005 5.005 0 0 1-5 5H8a1 1 0 0 1 0-2h9a3 3 0 0 0 3-3v-11a1 1 0 0 1 2 0"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Pt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M13.932 4.5A3.07 3.07 0 0 1 17 7.568a1 1 0 0 0 2 0v-.123A5.073 5.073 0 0 0 13.932 2.5H13v-1a1 1 0 1 0-2 0v1h-.932a5.068 5.068 0 0 0-1.6 9.875L11 13.22v7.28h-.932A3.07 3.07 0 0 1 7 17.432a1 1 0 1 0-2 0v.123a5.073 5.073 0 0 0 5.068 4.945H11v1a1 1 0 0 0 2 0v-1h.932a5.068 5.068 0 0 0 1.6-9.875L13 11.78V4.5zm.97 10.021a3.068 3.068 0 0 1-.97 5.979H13v-6.613zM11 11.113l-1.9-.634a3.068 3.068 0 0 1 .968-5.979H11z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Mt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M10.852 19.273a3 3 0 0 1-.974-.651l-3.21-3.207A1 1 0 0 1 8.08 14l2.91 2.908.01-15.408a1 1 0 0 1 2 0l-.008 15.427L15.92 14a1 1 0 0 1 1.414 1.411l-3.21 3.211a3 3 0 0 1-3.271.65"}),e("path",{d:"M22.293 16.793A1 1 0 0 1 24 17.5v4a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3v-4a1 1 0 1 1 2 0v4a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1v-4a1 1 0 0 1 .293-.707"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Et=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{fillRule:"evenodd",d:"M18.67 1.387 6.469 13.602a4.97 4.97 0 0 0-1.465 3.541v1.346a1 1 0 0 0 1 1.002H7.35a4.96 4.96 0 0 0 3.537-1.467l12.2-12.215a3.133 3.133 0 0 0 0-4.422 3.195 3.195 0 0 0-4.416 0m.18 5.83-9.379 9.39a3.02 3.02 0 0 1-2.122.88h-.344v-.344c.002-.796.318-1.56.879-2.125l9.378-9.39zm1.415-1.416 1.407-1.409a1.126 1.126 0 0 0 0-1.589 1.15 1.15 0 0 0-1.587 0l-1.407 1.409z",clipRule:"evenodd"}),e("path",{d:"M0 23.498c0-.553.373-1.002.834-1.002H19.18c.46 0 .834.449.834 1.002s-.373 1.002-.834 1.002H.834c-.46 0-.834-.449-.834-1.002"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),kt=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M20.914 17.62a5 5 0 0 0 1.621-1.084A4.97 4.97 0 0 0 24 12.996V2a1 1 0 0 0-2 0v10.997a3 3 0 0 1-3 2.999H2.788L7.1 11.688a1.001 1.001 0 1 0-1.418-1.414l-4.95 4.95a2.5 2.5 0 0 0 0 3.534l4.95 4.948A1 1 0 0 0 7.1 22.294l-4.3-4.299H19a5 5 0 0 0 1.914-.376"})}))),_t=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M3.086 17.62a5 5 0 0 1-1.621-1.084A4.97 4.97 0 0 1 0 12.996V2a1 1 0 0 1 2 0v10.997a3 3 0 0 0 3 2.999h16.212L16.9 11.688a1.003 1.003 0 0 1 .002-1.416 1 1 0 0 1 1.416.002l4.95 4.95a2.5 2.5 0 0 1 0 3.534l-4.95 4.948a1 1 0 0 1-1.418-1.412l4.3-4.299H5a5 5 0 0 1-1.914-.376"})}))),Tt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{fill:"#000",clipPath:"url(#a)",children:e("path",{d:"M23.41 5.094c.373.372.585.875.59 1.401a2 2 0 0 1-.59 1.412l-4.29 4.303a1 1 0 1 1-1.41-1.421L21 7.496H11a1 1 0 0 1 0-2.001h10l-3.29-3.283A1.002 1.002 0 0 1 19.12.791zM3 17.504h10a1 1 0 0 1 .707 1.708 1 1 0 0 1-.707.294H3l3.29 3.282a1.002 1.002 0 0 1-1.41 1.421L.59 19.906A2 2 0 0 1 0 18.505c.002-.53.214-1.038.59-1.411l4.29-4.304a1 1 0 0 1 1.629 1.096 1 1 0 0 1-.219.325z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Ct=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M14 24.5a1 1 0 0 1-.6-.2l-4-3a1 1 0 0 1-.4-.8v-5.62L1.984 6.987A3.9 3.9 0 0 1 4.9.5h14.2a3.9 3.9 0 0 1 2.913 6.488L15 14.88v8.62a1 1 0 0 1-1 1M11 20l2 1.5v-7a1 1 0 0 1 .253-.664l7.268-8.177A1.9 1.9 0 0 0 19.1 2.5H4.9a1.9 1.9 0 0 0-1.421 3.158l7.269 8.178A1 1 0 0 1 11 14.5z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Dt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M12.717 5.563A4 4 0 0 0 8 9.5a1 1 0 1 0 2 0 2.002 2.002 0 0 1 2.371-1.967 2.02 2.02 0 0 1 1.6 1.595 2 2 0 0 1-1 2.125 3.95 3.95 0 0 0-1.97 3.504v.743a1 1 0 0 0 2 0v-.743a1.98 1.98 0 0 1 .93-1.752 4 4 0 0 0-1.214-7.442M12 17.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2"}),e("path",{fillRule:"evenodd",d:"M12 .5a12 12 0 1 0 12 12 12.013 12.013 0 0 0-12-12m0 22a10 10 0 1 1 10-10 10.01 10.01 0 0 1-10 10",clipRule:"evenodd"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),It=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",fillRule:"evenodd",d:"M22.293 11.793A1 1 0 0 1 24 12.5a11.994 11.994 0 1 1-4-8.935V1.5a1 1 0 1 1 2 0v3a3 3 0 0 1-3 3h-3a1 1 0 1 1 0-2h3a1 1 0 0 0 .1-.021A10.034 10.034 0 1 0 22 12.5a1 1 0 0 1 .293-.707m-11-5A1 1 0 0 1 13 7.5v4.586l2.707 2.707a1 1 0 0 1-1.414 1.414l-3-3A1 1 0 0 1 11 12.5v-5a1 1 0 0 1 .293-.707",clipRule:"evenodd"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Nt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m23.121 9.569-7.585-7.586a5.01 5.01 0 0 0-7.072 0L.88 9.569A2.98 2.98 0 0 0 0 11.689v9.818a3 3 0 0 0 3 3h18a3 3 0 0 0 3-3V11.69a2.98 2.98 0 0 0-.879-2.121m-8.12 12.938H9v-3.934a3 3 0 0 1 6 0zm7-1a1 1 0 0 1-1 1h-4v-3.934a5 5 0 0 0-10 0v3.934H3a1 1 0 0 1-1-1V11.69c0-.265.105-.52.292-.707L9.878 3.4a3.01 3.01 0 0 1 4.244 0l7.585 7.586c.186.187.291.44.293.704z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Bt=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M6.41 9.5h11.18a1 1 0 0 1 .7 1.71l-5.58 5.58a1 1 0 0 1-1.42 0l-5.58-5.58a1 1 0 0 1 .7-1.71"})}))),Rt=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M6.41 16.5h11.18a1 1 0 0 0 .7-1.71l-5.58-5.58a1 1 0 0 0-1.42 0l-5.58 5.58a1 1 0 0 0 .7 1.71"})}))),$t=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M12 10.5h-1a1 1 0 0 0 0 2h1v6a1 1 0 1 0 2 0v-6a2 2 0 0 0-2-2M13.5 7a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"}),e("path",{fillRule:"evenodd",d:"M12 .5a12 12 0 1 0 12 12 12.013 12.013 0 0 0-12-12m0 22a10 10 0 1 1 10-10 10.01 10.01 0 0 1-10 10",clipRule:"evenodd"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Lt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M19 1.5H5a5.006 5.006 0 0 0-5 5v12a5.006 5.006 0 0 0 5 5h14a5.006 5.006 0 0 0 5-5v-12a5.006 5.006 0 0 0-5-5m-14 2h14a3 3 0 0 1 2.78 1.887l-7.658 7.659a3.007 3.007 0 0 1-4.244 0L2.22 5.386A3 3 0 0 1 5 3.5m14 18H5a3 3 0 0 1-3-3V8l6.464 6.46a5.007 5.007 0 0 0 7.072 0L22 8v10.5a3 3 0 0 1-3 3"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),zt=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M23 4.5H1a1 1 0 1 0 0 2h22a1 1 0 1 0 0-2M23 11.5H1a1 1 0 1 0 0 2h22a1 1 0 1 0 0-2M1 18.5h22a1 1 0 1 1 0 2H1a1 1 0 1 1 0-2"})}))),Ht=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{fill:"#000",clipPath:"url(#a)",children:e("path",{d:"M2 14.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4M12 14.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4M24 12.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Ft=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m22.555 14.162-1.9-6.836A9.321 9.321 0 0 0 2.576 7.8l-1.471 6.615A5 5 0 0 0 5.986 20.5H7.1a5 5 0 0 0 9.8 0h.838a5 5 0 0 0 4.818-6.338zM12 22.5a3 3 0 0 1-2.816-2h5.632a3 3 0 0 1-2.816 2m8.126-5.185a2.98 2.98 0 0 1-2.389 1.185H5.986a3 3 0 0 1-2.928-3.651l1.47-6.616a7.321 7.321 0 0 1 14.2-.372l1.9 6.836a2.98 2.98 0 0 1-.502 2.618"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Ut=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M23.9 11.946a12 12 0 0 0-4.279-7.717 12.006 12.006 0 0 0-16.385 1.07A11.99 11.99 0 0 0 0 13.508a11.86 11.86 0 0 0 3.759 8.705A4.84 4.84 0 0 0 7.113 23.5h9.767a5 5 0 0 0 3.509-1.428 11.93 11.93 0 0 0 3.51-10.126m-4.91 8.693a3 3 0 0 1-2.11.862H7.113c-.73.015-1.44-.25-1.981-.74A9.9 9.9 0 0 1 2 13.508a10 10 0 0 1 3.338-7.451 9.89 9.89 0 0 1 6.648-2.541q.588 0 1.174.065a10 10 0 0 1 8.305 6.693 9.98 9.98 0 0 1-2.474 10.37zm-11.183-2.85a1 1 0 1 1-1.4 1.429 7.992 7.992 0 0 1 6.736-13.623 1 1 0 0 1 .72 1.502.99.99 0 0 1-1.006.477 6 6 0 0 0-6.228 3.28 5.99 5.99 0 0 0 1.178 6.935m12.112-5.424q.08.568.08 1.143a7.92 7.92 0 0 1-2.407 5.711 1.002 1.002 0 0 1-1.4-1.43 5.97 5.97 0 0 0 1.744-5.138 1 1 0 0 1 1.59-.944 1 1 0 0 1 .39.659zm-5.993.631a2.03 2.03 0 0 1-2.22 2.559 2.033 2.033 0 0 1-1.495-3.039 2.03 2.03 0 0 1 2.3-.933l3.782-3.778a1 1 0 1 1 1.414 1.413z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Vt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("path",{fill:"#000",d:"M22.707 1.793a1 1 0 0 1 0 1.414l-20 20a1 1 0 0 1-1.414-1.414l20-20a1 1 0 0 1 1.414 0"}),e("path",{fill:"#000",fillRule:"evenodd",d:"M6 10.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8m0-6a2 2 0 1 1 0 4 2 2 0 0 1 0-4M15.778 15.174a4 4 0 1 1 4.444 6.653 4 4 0 0 1-4.444-6.653m1.11 4.99a2 2 0 1 0 2.223-3.327 2 2 0 0 0-2.222 3.326",clipRule:"evenodd"})]}))),Wt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",fillRule:"evenodd",clipPath:"url(#a)",clipRule:"evenodd",children:[e("path",{d:"M21.057 3.47a10.1 10.1 0 0 1 2.594 4.476 2.01 2.01 0 0 1-1.913 2.554H17.02a3 3 0 0 1-3-3V2.8a2 2 0 0 1 2.02-2 2 2 0 0 1 .543.072 10.1 10.1 0 0 1 4.475 2.598M17.015 8.5h4.72a8.07 8.07 0 0 0-5.677-5.702h-.026a.05.05 0 0 0-.025.01l.008 4.692a1 1 0 0 0 1 1"}),e("path",{d:"M14 12.5h4.713a3.06 3.06 0 0 1 2.394 1.172 2.88 2.88 0 0 1 .533 2.485A11 11 0 0 1 8.906 24.27a10.969 10.969 0 0 1-.553-21.414 2.87 2.87 0 0 1 2.48.534A3 3 0 0 1 12 5.774V10.5a2 2 0 0 0 2 2m3.425 7.26a8.97 8.97 0 0 0 2.276-4.092.88.88 0 0 0-.167-.768 1.04 1.04 0 0 0-.816-.4h-4.712a4 4 0 0 1-4-4V5.778a1.02 1.02 0 0 0-.4-.806.87.87 0 0 0-.764-.172 8.97 8.97 0 1 0 8.583 14.96"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),qt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M23 11.5H13v-10a1 1 0 0 0-1-1 1 1 0 0 0-1 1v10H1a1 1 0 0 0-1 1 1 1 0 0 0 1 1h10v10a1 1 0 0 0 2 0v-10h10a1 1 0 0 0 0-2"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Xt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M19 3.522V1.5a1 1 0 0 0-2 0v1.1a5 5 0 0 0-1-.1h-1v-1a1 1 0 0 0-2 0v1h-2v-1a1 1 0 0 0-2 0v1H8a5 5 0 0 0-1 .1V1.5a1 1 0 0 0-2 0v2.022A4.98 4.98 0 0 0 3 7.5v12a5.006 5.006 0 0 0 5 5h8a5.006 5.006 0 0 0 5-5v-12a4.98 4.98 0 0 0-2-3.978M19 19.5a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3v-12a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3zm-2-11a1 1 0 0 1-1 1H8a1 1 0 0 1 0-2h8a1 1 0 0 1 1 1m0 4a1 1 0 0 1-1 1H8a1 1 0 0 1 0-2h8a1 1 0 0 1 1 1m-4 4a1 1 0 0 1-1 1H8a1 1 0 0 1 0-2h4a1 1 0 0 1 1 1"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Yt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M18.581 2.64 12.316.551a1 1 0 0 0-.632 0l-6.265 2.09A4.99 4.99 0 0 0 2 7.382V12.5c0 7.563 9.2 11.74 9.594 11.914a1 1 0 0 0 .812 0C12.8 24.24 22 20.064 22 12.5V7.383a4.99 4.99 0 0 0-3.419-4.743m-1.863 7.577-4.272 4.272a1.87 1.87 0 0 1-1.335.553h-.033a1.87 1.87 0 0 1-1.345-.6l-2.306-2.4a1 1 0 1 1 1.441-1.382L11.112 13 15.3 8.8a1 1 0 0 1 1.414 1.414z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Kt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M18.581 2.64 12.316.551a1 1 0 0 0-.632 0l-6.266 2.09A4.99 4.99 0 0 0 2 7.382V12.5c0 7.563 9.2 11.74 9.594 11.914a1 1 0 0 0 .812 0C12.8 24.24 22 20.064 22 12.5V7.383a4.99 4.99 0 0 0-3.419-4.743M12 19.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2m1-5a1 1 0 1 1-2 0v-8a1 1 0 0 1 2 0z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Gt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m23.707 22.794-5.97-5.97a10.016 10.016 0 1 0-1.413 1.415l5.969 5.969a1 1 0 0 0 1.414-1.414M10 18.5a8 8 0 1 1 8-8 8.01 8.01 0 0 1-8 8"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Zt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",fillRule:"evenodd",clipPath:"url(#a)",clipRule:"evenodd",children:[e("path",{d:"M9.778 9.175a4 4 0 1 1 4.444 6.652 4 4 0 0 1-4.444-6.652m1.11 4.989a2 2 0 1 0 2.223-3.325 2 2 0 0 0-2.222 3.325"}),e("path",{d:"m20.85 14.144.444.256.001-.001a3.002 3.002 0 1 1-3 5.2l-.447-.258A9 9 0 0 1 15 20.987v.513a3 3 0 1 1-6 0v-.513a9 9 0 0 1-2.85-1.642l-.445.257a3.002 3.002 0 0 1-3-5.2l.444-.256a9.1 9.1 0 0 1 0-3.29l-.444-.256a3.002 3.002 0 1 1 3-5.2l.447.259A9 9 0 0 1 9 4.013V3.5a3 3 0 1 1 6 0v.513a9 9 0 0 1 2.849 1.642l.445-.257a3.002 3.002 0 0 1 3 5.2l-.444.256a9.1 9.1 0 0 1 0 3.29m-2.104.23a7.05 7.05 0 0 0 0-3.75v.001a1 1 0 0 1 .463-1.129l1.084-.626a1 1 0 1 0-1-1.732l-1.084.627a1 1 0 0 1-1.215-.165 7 7 0 0 0-3.243-1.879A1 1 0 0 1 13 4.752V3.5a1 1 0 1 0-2 0v1.252a1 1 0 0 1-.751.973A7 7 0 0 0 7.006 7.6a1 1 0 0 1-1.214.161l-1.086-.628a1 1 0 1 0-1 1.733l1.084.626a1 1 0 0 1 .465 1.129 7.05 7.05 0 0 0 0 3.75 1 1 0 0 1-.464 1.133l-1.084.626a1 1 0 1 0 1 1.732l1.084-.627a1 1 0 0 1 1.215.165c.89.91 2.01 1.56 3.242 1.879a1 1 0 0 1 .751.969V21.5a1 1 0 0 0 2 0v-1.253a1 1 0 0 1 .751-.969 7 7 0 0 0 3.243-1.875 1 1 0 0 1 1.215-.165l1.086.628a1 1 0 0 0 1-1.733l-1.084-.626a1 1 0 0 1-.464-1.133"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Jt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M4 7.483a2.98 2.98 0 0 1-2.121-.88L.335 5.228a1.002 1.002 0 0 1 1.332-1.496l1.585 1.416a1 1 0 0 0 1.456.04l3.604-3.435a1 1 0 0 1 1.378 1.45L6.1 6.62a2.96 2.96 0 0 1-2.1.863m20-2.002a1 1 0 0 0-1-1H13a1 1 0 0 0-.706 1.708 1 1 0 0 0 .707.293h10a1 1 0 0 0 1-1M6.1 14.63l3.59-3.418a1 1 0 1 0-1.378-1.45l-3.6 3.435a1.02 1.02 0 0 1-1.414 0l-1.59-1.586a1 1 0 0 0-1.695.711c-.002.263.099.515.28.704l1.586 1.587a3 3 0 0 0 4.226.017zm17.9-1.14a1 1 0 0 0-1-1H13a1 1 0 0 0-1 1 1 1 0 0 0 1 1.002h10a1 1 0 0 0 1-1.001M6.1 22.638l3.586-3.417a1.001 1.001 0 1 0-1.378-1.45l-3.6 3.435a1 1 0 0 1-1.456-.04l-1.585-1.416a1 1 0 0 0-1.665.805c.015.266.135.514.333.69l1.544 1.376a3 3 0 0 0 4.226.017zM24 21.498a1 1 0 0 0-1-1.001H13a1 1 0 0 0-.706 1.709 1 1 0 0 0 .707.293h10a1 1 0 0 0 1-1.001"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Qt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M5 22.5h2a1 1 0 0 1 0 2H5a5.006 5.006 0 0 1-5-5v-14a5.006 5.006 0 0 1 5-5h2a1 1 0 0 1 0 2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3"}),e("path",{d:"M7.223 11.532 23 11.5a1 1 0 0 1 0 2l-15.744.032q.123.209.29.382l3.88 3.88a1 1 0 1 1-1.414 1.413l-3.88-3.879a4 4 0 0 1 0-5.656l3.882-3.879a1 1 0 1 1 1.414 1.414l-3.88 3.88a2 2 0 0 0-.325.445"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),te=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M5 22.5h2a1 1 0 0 1 0 2H5a5.006 5.006 0 0 1-5-5v-14a5.006 5.006 0 0 1 5-5h2a1 1 0 0 1 0 2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3"}),e("path",{d:"m18.95 5.792 3.879 3.88h-.004a4 4 0 0 1 0 5.655l-3.88 3.88a1 1 0 1 1-1.413-1.415l3.879-3.879q.2-.207.334-.462-.019.003-.036.008a.1.1 0 0 1-.042.008L5.989 13.5a1 1 0 0 1 0-2l15.684-.032q.01 0 .02.004l.022.004a2 2 0 0 0-.3-.39l-3.88-3.879a1 1 0 0 1 1.415-1.414"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),ee=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{fill:"#000",clipPath:"url(#a)",children:e("path",{d:"M6.365 6.416a.5.5 0 0 1-.278.084H4.294v12h1.793a.5.5 0 0 1 .353.854L4 21.794a1 1 0 0 1-1.414 0l-2.44-2.44A.5.5 0 0 1 .5 18.5h1.794v-12H.5a.5.5 0 0 1-.353-.854l2.439-2.439a1 1 0 0 1 1.414 0l2.44 2.44a.5.5 0 0 1-.075.769M23 6.5H10a1 1 0 0 1 0-2h13a1 1 0 1 1 0 2M10 11.5h13a1 1 0 0 1 0 2H10a1 1 0 0 1 0-2M23 18.5H10a1 1 0 0 0 0 2h13a1 1 0 1 0 0-2"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),re=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M13 1v2a1 1 0 0 1-2 0V1a1 1 0 0 1 2 0m-1 19a1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-2a1 1 0 0 0-1-1m-8-8a1 1 0 0 0-1-1H1a1 1 0 0 0 0 2h2a1 1 0 0 0 1-1m19-1h-2a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2m-4.982-9.382a1 1 0 0 0-1.367.364l-1 1.731a1 1 0 0 0 1.731 1.001l1-1.731a1 1 0 0 0-.364-1.365M7.987 18.921a1 1 0 0 0-1.366.364l-1 1.731a1 1 0 1 0 1.731 1.001l1-1.731a1 1 0 0 0-.365-1.365m-3.272-12.3-1.731-1a1 1 0 0 0-1 1.731l1.731 1a1 1 0 0 0 1-1.731m17.3 10.03-1.731-1a1 1 0 0 0-1 1.731l1.731 1a1 1 0 1 0 1-1.731M7.349 1.982a1 1 0 0 0-1.731 1l1 1.731a1 1 0 1 0 1.731-1.001zm10.03 17.3a1 1 0 0 0-1.731 1l1 1.731a1 1 0 0 0 1.731-1zm2.408-10.8a1 1 0 0 0 .5-.134l1.731-1a1 1 0 0 0-1-1.731l-1.731 1a1 1 0 0 0 .5 1.865M3.713 15.648l-1.731 1a1 1 0 1 0 1 1.731l1.731-1a1 1 0 0 0-1-1.731"})}))),ne=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M21 12.924V11.5a9 9 0 0 0-18 0v1.424A5 5 0 0 0 5 22.5a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2v-1a7 7 0 0 1 14 0v1a2 2 0 0 0-2 2v6h-3a1 1 0 0 0 0 2h5a5 5 0 0 0 2-9.576M5 20.5a3 3 0 1 1 0-6zm14 0v-6a3 3 0 0 1 0 6"})}))),ie=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M10 18.5a1 1 0 0 0 1-1v-6a1 1 0 0 0-2 0v6a1 1 0 0 0 1 1M14.707 18.207A1 1 0 0 1 13 17.499v-6a1 1 0 1 1 2 0v6a1 1 0 0 1-.293.707"}),e("path",{fillRule:"evenodd",d:"M21 4.5h-3.1a5.01 5.01 0 0 0-4.9-4h-2a5.01 5.01 0 0 0-4.9 4H3a1 1 0 0 0 0 2h1v13a5.006 5.006 0 0 0 5 5h6a5.006 5.006 0 0 0 5-5v-13h1a1 1 0 1 0 0-2m-10-2h2a3.01 3.01 0 0 1 2.829 2H8.171A3.01 3.01 0 0 1 11 2.5m7 17a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3v-13h12z",clipRule:"evenodd"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),oe=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"m11 18.516.007-15.438L8.08 6.005a1 1 0 0 1-1.414-1.414l3.21-3.212a3 3 0 0 1 4.245 0l3.21 3.215a1 1 0 0 1-1.413 1.414l-2.912-2.913L13 18.516a1 1 0 1 1-2 0"}),e("path",{d:"M22 21.5v-4a1 1 0 0 1 2 0v4a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3v-4a1 1 0 0 1 2 0v4a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),ae=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{fill:"#000",clipPath:"url(#a)",children:e("path",{d:"M12 13a6 6 0 1 0 0-12 6 6 0 0 0 0 12m0-10a4 4 0 1 1 0 8 4 4 0 0 1 0-8M12 15a9.01 9.01 0 0 0-9 9 1 1 0 0 0 2 0 7 7 0 1 1 14 0 1 1 0 0 0 2 0 9.01 9.01 0 0 0-9-9"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),ce=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"none",viewBox:"0 0 16 17","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M7.986 1.833a6.71 6.71 0 0 1 4.758 2h-2.086a.67.67 0 0 0-.668.667.666.666 0 0 0 .668.667h2.768a1.24 1.24 0 0 0 1.24-1.238V1.167A.666.666 0 0 0 14 .5a.67.67 0 0 0-.668.667v1.385a8.01 8.01 0 0 0-8.278-1.5 8 8 0 0 0-3.48 2.641 8 8 0 0 0-1.57 4.074.67.67 0 0 0 .668.733.657.657 0 0 0 .66-.585 6.67 6.67 0 0 1 2.146-4.329 6.7 6.7 0 0 1 4.51-1.753M15.33 8.5a.657.657 0 0 0-.661.585 6.65 6.65 0 0 1-1.362 3.488 6.684 6.684 0 0 1-10.05.593h2.085a.67.67 0 0 0 .668-.666.666.666 0 0 0-.668-.667H2.574a1.24 1.24 0 0 0-1.146.764c-.063.15-.095.312-.095.474v2.762a.666.666 0 0 0 .668.667.67.67 0 0 0 .668-.667v-1.385a8.01 8.01 0 0 0 8.278 1.5 8 8 0 0 0 3.48-2.641 8 8 0 0 0 1.57-4.074.67.67 0 0 0-.668-.733"})}))),ue=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 1503 1504","aria-hidden":"true",...r,children:[e("path",{fill:"#fff",d:"M287 258h928v844H287z"}),e("path",{fill:"#E84142",fillRule:"evenodd",d:"M1502.5 752c0 414.77-336.23 751-751 751-414.766 0-751-336.23-751-751C.5 337.234 336.734 1 751.5 1c414.77 0 751 336.234 751 751m-963.812 298.86H392.94c-30.626 0-45.754 0-54.978-5.9-9.963-6.46-16.051-17.16-16.789-28.97-.554-10.88 7.011-24.168 22.139-50.735l359.87-634.32c15.313-26.936 23.061-40.404 32.839-45.385 10.516-5.35 23.062-5.35 33.578 0 9.778 4.981 17.527 18.449 32.839 45.385l73.982 129.144.377.659c16.539 28.897 24.926 43.551 28.588 58.931a109.56 109.56 0 0 1 0 51.289c-3.69 15.497-11.992 30.257-28.781 59.591L687.573 964.702l-.489.856c-16.648 29.135-25.085 43.902-36.778 55.042-12.73 12.18-28.043 21.03-44.832 26.02-15.313 4.24-32.47 4.24-66.786 4.24m368.062 0h208.84c30.81 0 46.31 0 55.54-6.08 9.96-6.46 16.23-17.35 16.79-29.15.53-10.53-6.87-23.3-21.37-48.323-.5-.852-1-1.719-1.51-2.601L1060.43 785.75l-1.19-2.015c-14.7-24.858-22.12-37.411-31.65-42.263a36.73 36.73 0 0 0-33.391 0c-9.594 4.981-17.342 18.08-32.655 44.462L857.306 964.891l-.357.616c-15.259 26.34-22.885 39.503-22.335 50.303.738 11.81 6.826 22.69 16.788 29.15 9.041 5.9 24.538 5.9 55.348 5.9",clipRule:"evenodd"})]}))),le=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 788 788","aria-hidden":"true",...r,children:[e("circle",{cx:394,cy:394,r:394,style:{fill:"#0ac18e"}}),e("path",{d:"M516.9 261.7c-19.8-44.9-65.3-54.5-121-45.2L378 147.1 335.8 158l17.6 69.2c-11.1 2.8-22.5 5.2-33.8 8.4L302 166.8l-42.2 10.9 17.9 69.4c-9.1 2.6-85.2 22.1-85.2 22.1l11.6 45.2s31-8.7 30.7-8c17.2-4.5 25.3 4.1 29.1 12.2l49.2 190.2c.6 5.5-.4 14.9-12.2 18.1.7.4-30.7 7.9-30.7 7.9l4.6 52.7s75.4-19.3 85.3-21.8l18.1 70.2 42.2-10.9-18.1-70.7q17.4-4.05 33.9-8.4l18 70.3 42.2-10.9-18.1-70.1c65-15.8 110.9-56.8 101.5-119.5-6-37.8-47.3-68.8-81.6-72.3 21.1-18.7 31.8-46 18.7-81.7m-20.3 165.5c8.4 62.1-77.9 69.7-106.4 77.2l-24.8-92.9c28.6-7.5 117-39 131.2 15.7m-52-126.5c8.9 55.2-64.9 61.6-88.7 67.7l-22.6-84.3c23.9-5.9 93.2-34.5 111.3 16.6",style:{fill:"#fff"}})]}))),se=r((r=>e("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",fillRule:"evenodd",clipRule:"evenodd",imageRendering:"optimizeQuality",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",viewBox:"0 0 4091.27 4091.73","aria-hidden":"true",...r,children:t("g",{fillRule:"nonzero",children:[e("path",{fill:"#F7931A",d:"M4030.06 2540.77C3756.82 3636.78 2646.74 4303.79 1550.6 4030.48 454.92 3757.24-212.09 2647.09 61.27 1551.17c273.12-1096.13 1383.2-1763.19 2479-1489.95C3636.33 334.46 4303.3 1444.73 4030.03 2540.79l.02-.02z"}),e("path",{fill:"#fff",d:"M2947.77 1754.38c40.72-272.26-166.56-418.61-450-516.24l91.95-368.8-224.5-55.94-89.51 359.09c-59.02-14.72-119.63-28.59-179.87-42.34L2186 768.69l-224.36-55.94-92 368.68c-48.84-11.12-96.81-22.11-143.35-33.69l.26-1.16-309.59-77.31-59.72 239.78s166.56 38.18 163.05 40.53c90.91 22.69 107.35 82.87 104.62 130.57l-104.74 420.15c6.26 1.59 14.38 3.89 23.34 7.49-7.49-1.86-15.46-3.89-23.73-5.87l-146.81 588.57c-11.11 27.62-39.31 69.07-102.87 53.33 2.25 3.26-163.17-40.72-163.17-40.72l-111.46 256.98 292.15 72.83c54.35 13.63 107.61 27.89 160.06 41.3l-92.9 373.03 224.24 55.94 92-369.07c61.26 16.63 120.71 31.97 178.91 46.43l-91.69 367.33 224.51 55.94 92.89-372.33c382.82 72.45 670.67 43.24 791.83-303.02 97.63-278.78-4.86-439.58-206.26-544.44 146.69-33.83 257.18-130.31 286.64-329.61l-.07-.05zm-512.93 719.26c-69.38 278.78-538.76 128.08-690.94 90.29l123.28-494.2c152.17 37.99 640.17 113.17 567.67 403.91zm69.43-723.3c-63.29 253.58-453.96 124.75-580.69 93.16l111.77-448.21c126.73 31.59 534.85 90.55 468.94 355.05z"})]})}))),fe=r((r=>e("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",fillRule:"evenodd",clipRule:"evenodd",imageRendering:"optimizeQuality",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",viewBox:"0 0 784.37 1277.39","aria-hidden":"true",...r,children:t("g",{fillRule:"nonzero",children:[e("path",{fill:"#343434",d:"m392.07 0-8.57 29.11v844.63l8.57 8.55 392.06-231.75z"}),e("path",{fill:"#8C8C8C",d:"M392.07 0 0 650.54l392.07 231.75V472.33z"}),e("path",{fill:"#3C3C3B",d:"m392.07 956.52-4.83 5.89v300.87l4.83 14.1 392.3-552.49z"}),e("path",{fill:"#8C8C8C",d:"M392.07 1277.38V956.52L0 724.89z"}),e("path",{fill:"#141414",d:"m392.07 882.29 392.06-231.75-392.06-178.21z"}),e("path",{fill:"#393939",d:"m0 650.54 392.07 231.75V472.33z"})]})}))),he=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 37.8 43.6","aria-hidden":"true",...t,children:e("g",{"data-name":"Layer 2",children:e("path",{d:"m18.9 0-4 2.3L4 8.6l-4 2.3v21.8L4 35l11 6.3 4 2.3 4-2.3L33.8 35l4-2.3V10.9l-4-2.3-10.9-6.3ZM8 28.1V15.5l10.9-6.3 10.9 6.3v12.6l-10.9 6.3Z","data-name":"Layer 1",style:{fill:"#2a5ada"}})})}))),pe=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 82.6 82.6","aria-hidden":"true",...r,children:[e("circle",{cx:41.3,cy:41.3,r:36.83,style:{fill:"#fff"}}),e("path",{d:"M41.3 0a41.3 41.3 0 1 0 41.3 41.3A41.18 41.18 0 0 0 41.54 0Zm.7 42.7-4.3 14.5h23a1.16 1.16 0 0 1 1.2 1.12v.38l-2 6.9a1.49 1.49 0 0 1-1.5 1.1H23.2l5.9-20.1-6.6 2L24 44l6.6-2 8.3-28.2a1.51 1.51 0 0 1 1.5-1.1h8.9a1.16 1.16 0 0 1 1.2 1.12v.38l-7 23.8 6.6-2-1.4 4.8Z",style:{fill:"#345d9d"}})]}))),de=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 236.36 200","aria-hidden":"true",...t,children:e("g",{"data-name":"Layer 2",children:e("g",{"data-name":"Layer 1",children:e("path",{d:"m203 26.16-28.46 14.5-137.43 70a82.5 82.5 0 0 1-.7-10.69A81.87 81.87 0 0 1 158.2 28.6l16.29-8.3 2.43-1.24A100 100 0 0 0 18.18 100q0 3.82.29 7.61a18.19 18.19 0 0 1-9.88 17.58L0 129.57V150l25.29-12.89 8.19-4.18 8.07-4.11L186.43 55l16.28-8.29 33.65-17.15V9.14ZM236.36 50 49.78 145l-16.28 8.31L0 170.38v20.41l33.27-16.95 28.46-14.5 137.57-70.1A83.5 83.5 0 0 1 200 100a81.87 81.87 0 0 1-121.91 71.36l-1 .53-17.66 9A100 100 0 0 0 218.18 100c0-2.57-.1-5.14-.29-7.68a18.2 18.2 0 0 1 9.87-17.58l8.6-4.38Z"})})})})));function ye(t,e={}){let r=!1;function n(e){const r=`chakra-${(["container","root"].includes(null!=e?e:"")?[t]:[t,e]).filter(Boolean).join("__")}`;return{className:r,selector:`.${r}`,toString:()=>e}}return{parts:function(...i){!function(){if(r)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");r=!0}();for(const t of i)e[t]=n(t);return ye(t,e)},toPart:n,extend:function(...r){for(const t of r)t in e||(e[t]=n(t));return ye(t,e)},selectors:function(){return Object.fromEntries(Object.entries(e).map((([t,e])=>[t,e.selector])))},classnames:function(){return Object.fromEntries(Object.entries(e).map((([t,e])=>[t,e.className])))},get keys(){return Object.keys(e)},__type:{}}}var ve=ye("accordion").parts("root","container","button","panel").extend("icon"),me=ye("alert").parts("title","description","container").extend("icon","spinner");ye("avatar").parts("label","badge","container").extend("excessLabel","group"),ye("breadcrumb").parts("link","item","container").extend("separator"),ye("button").parts();var ge=ye("checkbox").parts("control","icon","container").extend("label");ye("progress").parts("track","filledTrack").extend("label"),ye("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),ye("editable").parts("preview","input","textarea"),ye("form").parts("container","requiredIndicator","helperText"),ye("formError").parts("text","icon");var be=ye("input").parts("addon","field","element","group");ye("list").parts("container","item","icon"),ye("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),ye("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),ye("numberinput").parts("root","field","stepperGroup","stepper"),ye("pininput").parts("field"),ye("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),ye("progress").parts("label","filledTrack","track"),ye("radio").parts("container","control","label");var we=ye("select").parts("field","icon");ye("slider").parts("container","track","thumb","filledTrack","mark"),ye("stat").parts("container","label","helpText","number","icon"),ye("switch").parts("container","track","thumb","label"),ye("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),ye("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator");var xe=ye("tag").parts("container","label","closeButton");ye("card").parts("container","header","body","footer"),ye("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:Oe,defineMultiStyleConfig:Se}=n(ve.keys),je=Se({baseStyle:Oe({container:{borderWidth:"1px",borderStyle:"solid",borderColor:"gray.300",borderRadius:"md",bg:"gray.100",color:"black",marginBottom:4,overflow:"hidden"},panel:{bg:"white"}})}),{definePartsStyle:Ae,defineMultiStyleConfig:Pe}=n(me.keys),Me=Pe({baseStyle:Ae((t=>{const{colorScheme:e,theme:r}=t,n=r.colors[e];return{icon:{svg:{path:{fill:n[500]}}},container:{bg:n[100],borderColor:n[500],borderRadius:"lg",borderStyle:"solid",borderWidth:1,padding:4},description:{color:"blackAlpha.900"},title:{color:"blackAlpha.900"}}})),defaultProps:{variant:"subtle"}}),Ee=i({borderColor:"red.700",color:"red.700",border:"solid 2px",":hover, :focus":{backgroundColor:"gray.200"},svg:{path:{fill:"red.700"}}}),ke=i({background:"brand.50",color:"brand.500",svg:{path:{fill:"brand.500"}},_hover:{bg:"brand.100",color:"brand.600",svg:{path:{fill:"brand.600"}}},_active:{bg:"brand.100",color:"brand.600",svg:{path:{fill:"brand.600"}}}}),_e=i({border:"solid 2px",borderColor:"brand.600",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),Te=i({boxShadow:"none",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),Ce=o({baseStyle:{boxShadow:"0px 8px 16px 0px rgba(0,0,0,0.08)",svg:{width:"1.25em",path:{fill:"white"}}},sizes:{xs:i({lineHeight:1})},variants:{alert:Ee,outline:_e,ghost:Te,secondary:ke}}),{definePartsStyle:De,defineMultiStyleConfig:Ie}=n(ge.keys),Ne=Ie({baseStyle:De({control:{borderRadius:"base",borderColor:"brand.500",svg:{path:{fill:"inherit"}},_checked:{svg:{path:{fill:"white"}}},_hover:{bg:"gray.50",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)",_disabled:{bg:"gray.100"}},_indeterminate:{bg:"brand.100",borderColor:"brand.100",_hover:{bg:"brand.100",boxShadow:"none"}},_invalid:{_checked:{borderColor:"brand.500"}}}}),sizes:{lg:{control:{boxSize:7,svg:{width:"1.75em"}}},md:{control:{boxSize:6,svg:{width:"1.5em"}}},sm:{control:{boxSize:4,svg:{width:"1.5em"}}}}}),Be=o({baseStyle:{helperText:{fontSize:"sm"}}}),Re=o({sizes:{sm:{text:{fontSize:"xs"}},xs:{text:{fontSize:"xs"}}}});var $e=1e6,Le=1e6,ze="[big.js] ",He=ze+"Invalid ",Fe=He+"decimal places",Ue=He+"rounding mode",Ve=ze+"Division by zero",We={},qe=void 0,Xe=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Ye(t,e,r,n){var i=t.c;if(r===qe&&(r=t.constructor.RM),0!==r&&1!==r&&2!==r&&3!==r)throw Error(Ue);if(e<1)n=3===r&&(n||!!i[0])||0===e&&(1===r&&i[0]>=5||2===r&&(i[0]>5||5===i[0]&&(n||i[1]!==qe))),i.length=1,n?(t.e=t.e-e+1,i[0]=1):i[0]=t.e=0;else if(e<i.length){if(n=1===r&&i[e]>=5||2===r&&(i[e]>5||5===i[e]&&(n||i[e+1]!==qe||1&i[e-1]))||3===r&&(n||!!i[0]),i.length=e,n)for(;++i[--e]>9;)if(i[e]=0,0===e){++t.e,i.unshift(1);break}for(e=i.length;!i[--e];)i.pop()}return t}function Ke(t,e,r){var n=t.e,i=t.c.join(""),o=i.length;if(e)i=i.charAt(0)+(o>1?"."+i.slice(1):"")+(n<0?"e":"e+")+n;else if(n<0){for(;++n;)i="0"+i;i="0."+i}else if(n>0)if(++n>o)for(n-=o;n--;)i+="0";else n<o&&(i=i.slice(0,n)+"."+i.slice(n));else o>1&&(i=i.charAt(0)+"."+i.slice(1));return t.s<0&&r?"-"+i:i}We.abs=function(){var t=new this.constructor(this);return t.s=1,t},We.cmp=function(t){var e,r=this,n=r.c,i=(t=new r.constructor(t)).c,o=r.s,a=t.s,c=r.e,u=t.e;if(!n[0]||!i[0])return n[0]?o:i[0]?-a:0;if(o!=a)return o;if(e=o<0,c!=u)return c>u^e?1:-1;for(a=(c=n.length)<(u=i.length)?c:u,o=-1;++o<a;)if(n[o]!=i[o])return n[o]>i[o]^e?1:-1;return c==u?0:c>u^e?1:-1},We.div=function(t){var e=this,r=e.constructor,n=e.c,i=(t=new r(t)).c,o=e.s==t.s?1:-1,a=r.DP;if(a!==~~a||a<0||a>$e)throw Error(Fe);if(!i[0])throw Error(Ve);if(!n[0])return t.s=o,t.c=[t.e=0],t;var c,u,l,s,f,h=i.slice(),p=c=i.length,d=n.length,y=n.slice(0,c),v=y.length,m=t,g=m.c=[],b=0,w=a+(m.e=e.e-t.e)+1;for(m.s=o,o=w<0?0:w,h.unshift(0);v++<c;)y.push(0);do{for(l=0;l<10;l++){if(c!=(v=y.length))s=c>v?1:-1;else for(f=-1,s=0;++f<c;)if(i[f]!=y[f]){s=i[f]>y[f]?1:-1;break}if(!(s<0))break;for(u=v==c?i:h;v;){if(y[--v]<u[v]){for(f=v;f&&!y[--f];)y[f]=9;--y[f],y[v]+=10}y[v]-=u[v]}for(;!y[0];)y.shift()}g[b++]=s?l:++l,y[0]&&s?y[v]=n[p]||0:y=[n[p]]}while((p++<d||y[0]!==qe)&&o--);return g[0]||1==b||(g.shift(),m.e--,w--),b>w&&Ye(m,w,r.RM,y[0]!==qe),m},We.eq=function(t){return 0===this.cmp(t)},We.gt=function(t){return this.cmp(t)>0},We.gte=function(t){return this.cmp(t)>-1},We.lt=function(t){return this.cmp(t)<0},We.lte=function(t){return this.cmp(t)<1},We.minus=We.sub=function(t){var e,r,n,i,o=this,a=o.constructor,c=o.s,u=(t=new a(t)).s;if(c!=u)return t.s=-u,o.plus(t);var l=o.c.slice(),s=o.e,f=t.c,h=t.e;if(!l[0]||!f[0])return f[0]?t.s=-u:l[0]?t=new a(o):t.s=1,t;if(c=s-h){for((i=c<0)?(c=-c,n=l):(h=s,n=f),n.reverse(),u=c;u--;)n.push(0);n.reverse()}else for(r=((i=l.length<f.length)?l:f).length,c=u=0;u<r;u++)if(l[u]!=f[u]){i=l[u]<f[u];break}if(i&&(n=l,l=f,f=n,t.s=-t.s),(u=(r=f.length)-(e=l.length))>0)for(;u--;)l[e++]=0;for(u=e;r>c;){if(l[--r]<f[r]){for(e=r;e&&!l[--e];)l[e]=9;--l[e],l[r]+=10}l[r]-=f[r]}for(;0===l[--u];)l.pop();for(;0===l[0];)l.shift(),--h;return l[0]||(t.s=1,l=[h=0]),t.c=l,t.e=h,t},We.mod=function(t){var e,r=this,n=r.constructor,i=r.s,o=(t=new n(t)).s;if(!t.c[0])throw Error(Ve);return r.s=t.s=1,e=1==t.cmp(r),r.s=i,t.s=o,e?new n(r):(i=n.DP,o=n.RM,n.DP=n.RM=0,r=r.div(t),n.DP=i,n.RM=o,this.minus(r.times(t)))},We.neg=function(){var t=new this.constructor(this);return t.s=-t.s,t},We.plus=We.add=function(t){var e,r,n,i=this,o=i.constructor;if(t=new o(t),i.s!=t.s)return t.s=-t.s,i.minus(t);var a=i.e,c=i.c,u=t.e,l=t.c;if(!c[0]||!l[0])return l[0]||(c[0]?t=new o(i):t.s=i.s),t;if(c=c.slice(),e=a-u){for(e>0?(u=a,n=l):(e=-e,n=c),n.reverse();e--;)n.push(0);n.reverse()}for(c.length-l.length<0&&(n=l,l=c,c=n),e=l.length,r=0;e;c[e]%=10)r=(c[--e]=c[e]+l[e]+r)/10|0;for(r&&(c.unshift(r),++u),e=c.length;0===c[--e];)c.pop();return t.c=c,t.e=u,t},We.pow=function(t){var e=this,r=new e.constructor("1"),n=r,i=t<0;if(t!==~~t||t<-1e6||t>Le)throw Error(He+"exponent");for(i&&(t=-t);1&t&&(n=n.times(e)),t>>=1;)e=e.times(e);return i?r.div(n):n},We.prec=function(t,e){if(t!==~~t||t<1||t>$e)throw Error(He+"precision");return Ye(new this.constructor(this),t,e)},We.round=function(t,e){if(t===qe)t=0;else if(t!==~~t||t<-$e||t>$e)throw Error(Fe);return Ye(new this.constructor(this),t+this.e+1,e)},We.sqrt=function(){var t,e,r,n=this,i=n.constructor,o=n.s,a=n.e,c=new i("0.5");if(!n.c[0])return new i(n);if(o<0)throw Error(ze+"No square root");0===(o=Math.sqrt(n+""))||o===1/0?((e=n.c.join("")).length+a&1||(e+="0"),a=((a+1)/2|0)-(a<0||1&a),t=new i(((o=Math.sqrt(e))==1/0?"5e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+a)):t=new i(o+""),a=t.e+(i.DP+=4);do{r=t,t=c.times(r.plus(n.div(r)))}while(r.c.slice(0,a).join("")!==t.c.slice(0,a).join(""));return Ye(t,(i.DP-=4)+t.e+1,i.RM)},We.times=We.mul=function(t){var e,r=this,n=r.constructor,i=r.c,o=(t=new n(t)).c,a=i.length,c=o.length,u=r.e,l=t.e;if(t.s=r.s==t.s?1:-1,!i[0]||!o[0])return t.c=[t.e=0],t;for(t.e=u+l,a<c&&(e=i,i=o,o=e,l=a,a=c,c=l),e=new Array(l=a+c);l--;)e[l]=0;for(u=c;u--;){for(c=0,l=a+u;l>u;)c=e[l]+o[u]*i[l-u-1]+c,e[l--]=c%10,c=c/10|0;e[l]=c}for(c?++t.e:e.shift(),u=e.length;!e[--u];)e.pop();return t.c=e,t},We.toExponential=function(t,e){var r=this,n=r.c[0];if(t!==qe){if(t!==~~t||t<0||t>$e)throw Error(Fe);for(r=Ye(new r.constructor(r),++t,e);r.c.length<t;)r.c.push(0)}return Ke(r,!0,!!n)},We.toFixed=function(t,e){var r=this,n=r.c[0];if(t!==qe){if(t!==~~t||t<0||t>$e)throw Error(Fe);for(t=t+(r=Ye(new r.constructor(r),t+r.e+1,e)).e+1;r.c.length<t;)r.c.push(0)}return Ke(r,!1,!!n)},We[Symbol.for("nodejs.util.inspect.custom")]=We.toJSON=We.toString=function(){var t=this,e=t.constructor;return Ke(t,t.e<=e.NE||t.e>=e.PE,!!t.c[0])},We.toNumber=function(){var t=Number(Ke(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(t.toString()))throw Error(ze+"Imprecise conversion");return t},We.toPrecision=function(t,e){var r=this,n=r.constructor,i=r.c[0];if(t!==qe){if(t!==~~t||t<1||t>$e)throw Error(He+"precision");for(r=Ye(new n(r),t,e);r.c.length<t;)r.c.push(0)}return Ke(r,t<=r.e||r.e<=n.NE||r.e>=n.PE,!!i)},We.valueOf=function(){var t=this,e=t.constructor;if(!0===e.strict)throw Error(ze+"valueOf disallowed");return Ke(t,t.e<=e.NE||t.e>=e.PE,!0)};var Ge=function t(){function e(r){var n=this;if(!(n instanceof e))return r===qe?t():new e(r);if(r instanceof e)n.s=r.s,n.e=r.e,n.c=r.c.slice();else{if("string"!=typeof r){if(!0===e.strict&&"bigint"!=typeof r)throw TypeError(He+"value");r=0===r&&1/r<0?"-0":String(r)}!function(t,e){var r,n,i;if(!Xe.test(e))throw Error(He+"number");t.s="-"==e.charAt(0)?(e=e.slice(1),-1):1,(r=e.indexOf("."))>-1&&(e=e.replace(".",""));(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length);for(i=e.length,n=0;n<i&&"0"==e.charAt(n);)++n;if(n==i)t.c=[t.e=0];else{for(;i>0&&"0"==e.charAt(--i););for(t.e=r-n-1,t.c=[],r=0;n<=i;)t.c[r++]=+e.charAt(n++)}}(n,r)}n.constructor=e}return e.prototype=We,e.DP=20,e.RM=1,e.NE=-7,e.PE=21,e.strict=false,e.roundDown=0,e.roundHalfUp=1,e.roundHalfEven=2,e.roundUp=3,e}();const Ze=t=>{if(t.some((t=>!Number.isFinite(t))))throw new Error(`One or more of the provided amounts is not a finite number. (amounts: ${t}, method: aggregateAmounts)`);return t.reduce(((t,e)=>t.plus(e)),new Ge(0)).toNumber()};var Je="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Qe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var tr={exports:{}};tr.exports=function(){var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",o="minute",a="hour",c="day",u="week",l="month",s="quarter",f="year",h="date",p="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},m=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},g={s:m,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+m(n,2,"0")+":"+m(i,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,l),o=r-i<0,a=e.clone().add(n+(o?-1:1),l);return+(-(n+(r-i)/(o?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:f,w:u,d:c,D:h,h:a,m:o,s:i,ms:n,Q:s}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",w={};w[b]=v;var x="$isDayjsObject",O=function(t){return t instanceof P||!(!t||!t[x])},S=function t(e,r,n){var i;if(!e)return b;if("string"==typeof e){var o=e.toLowerCase();w[o]&&(i=o),r&&(w[o]=r,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var c=e.name;w[c]=e,i=c}return!n&&i&&(b=i),i||!n&&b},j=function(t,e){if(O(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new P(r)},A=g;A.l=S,A.i=O,A.w=function(t,e){return j(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var P=function(){function v(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[x]=!0}var m=v.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(A.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(d);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return A},m.isValid=function(){return!(this.$d.toString()===p)},m.isSame=function(t,e){var r=j(t);return this.startOf(e)<=r&&r<=this.endOf(e)},m.isAfter=function(t,e){return j(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<j(t)},m.$g=function(t,e,r){return A.u(t)?this[e]:this.set(r,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var r=this,n=!!A.u(e)||e,s=A.p(t),p=function(t,e){var i=A.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?i:i.endOf(c)},d=function(t,e){return A.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},y=this.$W,v=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(s){case f:return n?p(1,0):p(31,11);case l:return n?p(1,v):p(0,v+1);case u:var b=this.$locale().weekStart||0,w=(y<b?y+7:y)-b;return p(n?m-w:m+(6-w),v);case c:case h:return d(g+"Hours",0);case a:return d(g+"Minutes",1);case o:return d(g+"Seconds",2);case i:return d(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var r,u=A.p(t),s="set"+(this.$u?"UTC":""),p=(r={},r[c]=s+"Date",r[h]=s+"Date",r[l]=s+"Month",r[f]=s+"FullYear",r[a]=s+"Hours",r[o]=s+"Minutes",r[i]=s+"Seconds",r[n]=s+"Milliseconds",r)[u],d=u===c?this.$D+(e-this.$W):e;if(u===l||u===f){var y=this.clone().set(h,1);y.$d[p](d),y.init(),this.$d=y.set(h,Math.min(this.$D,y.daysInMonth())).$d}else p&&this.$d[p](d);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[A.p(t)]()},m.add=function(n,s){var h,p=this;n=Number(n);var d=A.p(s),y=function(t){var e=j(p);return A.w(e.date(e.date()+Math.round(t*n)),p)};if(d===l)return this.set(l,this.$M+n);if(d===f)return this.set(f,this.$y+n);if(d===c)return y(1);if(d===u)return y(7);var v=(h={},h[o]=e,h[a]=r,h[i]=t,h)[d]||1,m=this.$d.getTime()+n*v;return A.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||p;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=A.z(this),o=this.$H,a=this.$m,c=this.$M,u=r.weekdays,l=r.months,s=r.meridiem,f=function(t,r,i,o){return t&&(t[r]||t(e,n))||i[r].slice(0,o)},h=function(t){return A.s(o%12||12,t,"0")},d=s||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(y,(function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return A.s(e.$y,4,"0");case"M":return c+1;case"MM":return A.s(c+1,2,"0");case"MMM":return f(r.monthsShort,c,l,3);case"MMMM":return f(l,c);case"D":return e.$D;case"DD":return A.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return f(r.weekdaysMin,e.$W,u,2);case"ddd":return f(r.weekdaysShort,e.$W,u,3);case"dddd":return u[e.$W];case"H":return String(o);case"HH":return A.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return d(o,a,!0);case"A":return d(o,a,!1);case"m":return String(a);case"mm":return A.s(a,2,"0");case"s":return String(e.$s);case"ss":return A.s(e.$s,2,"0");case"SSS":return A.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,h,p){var d,y=this,v=A.p(h),m=j(n),g=(m.utcOffset()-this.utcOffset())*e,b=this-m,w=function(){return A.m(y,m)};switch(v){case f:d=w()/12;break;case l:d=w();break;case s:d=w()/3;break;case u:d=(b-g)/6048e5;break;case c:d=(b-g)/864e5;break;case a:d=b/r;break;case o:d=b/e;break;case i:d=b/t;break;default:d=b}return p?d:A.a(d)},m.daysInMonth=function(){return this.endOf(l).$D},m.$locale=function(){return w[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=S(t,e,!0);return n&&(r.$L=n),r},m.clone=function(){return A.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},v}(),M=P.prototype;return j.prototype=M,[["$ms",n],["$s",i],["$m",o],["$H",a],["$W",c],["$M",l],["$y",f],["$D",h]].forEach((function(t){M[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),j.extend=function(t,e){return t.$i||(t(e,P,j),t.$i=!0),j},j.locale=S,j.isDayjs=O,j.unix=function(t){return j(1e3*t)},j.en=w[b],j.Ls=w,j.p={},j}();var er,rr,nr,ir=Qe(tr.exports),or={exports:{}};or.exports=(er="minute",rr=/[+-]\d\d(?::?\d\d)?/g,nr=/([+-]|\d\d)/g,function(t,e,r){var n=e.prototype;r.utc=function(t){return new e({date:t,utc:!0,args:arguments})},n.utc=function(t){var e=r(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),er):e},n.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var i=n.parse;n.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),i.call(this,t)};var o=n.init;n.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else o.call(this)};var a=n.utcOffset;n.utcOffset=function(t,e){var r=this.$utils().u;if(r(t))return this.$u?0:r(this.$offset)?a.call(this):this.$offset;if("string"==typeof t&&(t=function(t){void 0===t&&(t="");var e=t.match(rr);if(!e)return null;var r=(""+e[0]).match(nr)||["-",0,0],n=r[0],i=60*+r[1]+ +r[2];return 0===i?0:"+"===n?i:-i}(t),null===t))return this;var n=Math.abs(t)<=16?60*t:t,i=this;if(e)return i.$offset=n,i.$u=0===t,i;if(0!==t){var o=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(i=this.local().add(n+o,er)).$offset=n,i.$x.$localOffset=o}else i=this.utc();return i};var c=n.format;n.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,e)},n.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},n.isUTC=function(){return!!this.$u},n.toISOString=function(){return this.toDate().toISOString()},n.toString=function(){return this.toDate().toUTCString()};var u=n.toDate;n.toDate=function(t){return"s"===t&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var l=n.diff;n.diff=function(t,e,n){if(t&&this.$u===t.$u)return l.call(this,t,e,n);var i=this.local(),o=r(t).local();return l.call(i,o,e,n)}});var ar=Qe(or.exports);ir.extend(ar);const cr=({timeString:t,toEndDate:e})=>""===t?"":e?ir(`${t}T23:59:59`).utc().unix().toString():ir(t).utc().unix().toString(),ur=({number:t,signDisplay:e="exceptZero",isDecimal:r=!0})=>{const n=Number(t);if(!Number.isFinite(n))return console.log(`Number is not a finite number. (number: ${n}, method: formatPercentage)`),t;return new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:2,signDisplay:e}).format(r?n:n/100)};
|
|
10
2
|
/*!
|
|
11
3
|
* currency.js - v2.0.4
|
|
12
4
|
* http://scurker.github.io/currency.js
|
|
@@ -14,7 +6,7 @@ var Le,Re,$e=9e15,ze=1e9,He="0123456789abcdef",Fe="2.302585092994045684017991454
|
|
|
14
6
|
* Copyright (c) 2021 Jason Wilson
|
|
15
7
|
* Released under MIT license
|
|
16
8
|
*/
|
|
17
|
-
var Cn={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(t,e){var r=e.pattern,n=e.negativePattern,i=e.symbol,o=e.separator,a=e.decimal,c=e.groups,u=(""+t).replace(/^-/,"").split("."),l=u[0],s=u[1];return(t.value>=0?r:n).replace("!",i).replace("#",l.replace(c,"$1"+o)+(s?a+s:""))},fromCents:!1},Nn=function(t){return Math.round(t)},Dn=function(t){return Math.pow(10,t)},In=/(\d)(?=(\d{3})+\b)/g,Bn=/(\d)(?=(\d\d)+\d\b)/g;function Ln(t,e){var r=this;if(!(r instanceof Ln))return new Ln(t,e);var n=Object.assign({},Cn,e),i=Dn(n.precision),o=Rn(t,n);r.intValue=o,r.value=o/i,n.increment=n.increment||1/i,n.useVedic?n.groups=Bn:n.groups=In,this.s=n,this.p=i}function Rn(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=0,i=e.decimal,o=e.errorOnInvalid,a=e.precision,c=e.fromCents,u=Dn(a),l="number"==typeof t,s=t instanceof Ln;if(s&&c)return t.intValue;if(l||s)n=s?t.value:t;else if("string"==typeof t){var f=new RegExp("[^-\\d"+i+"]","g"),h=new RegExp("\\"+i,"g");n=(n=t.replace(/\((.*)\)/,"-$1").replace(f,"").replace(h,"."))||0}else{if(o)throw Error("Invalid Input");n=0}return c||(n=(n*=u).toFixed(4)),r?Nn(n):n}Ln.prototype={add:function(t){var e=this.intValue,r=this.s,n=this.p;return Ln((e+=Rn(t,r))/(r.fromCents?1:n),r)},subtract:function(t){var e=this.intValue,r=this.s,n=this.p;return Ln((e-=Rn(t,r))/(r.fromCents?1:n),r)},multiply:function(t){var e=this.intValue,r=this.s;return Ln((e*=t)/(r.fromCents?1:Dn(r.precision)),r)},divide:function(t){var e=this.intValue,r=this.s;return Ln(e/=Rn(t,r,!1),r)},distribute:function(t){for(var e=this.intValue,r=this.p,n=this.s,i=[],o=Math[e>=0?"floor":"ceil"](e/t),a=Math.abs(e-o*t),c=n.fromCents?1:r;0!==t;t--){var u=Ln(o/c,n);a-- >0&&(u=u[e>=0?"add":"subtract"](1/c)),i.push(u)}return i},dollars:function(){return~~this.value},cents:function(){return~~(this.intValue%this.p)},format:function(t){var e=this.s;return"function"==typeof t?t(this,e):e.format(this,Object.assign({},e,t))},toString:function(){var t,e,r=this.intValue,n=this.p,i=this.s;return(t=r/n,e=i.increment,Nn(t/e)*e).toFixed(i.precision)},toJSON:function(){return this.value}};const $n=({amount:t,autoPrecision:e,precision:r=2,signDisplay:n=!1})=>{const i=Number(t);if(!Number.isFinite(i))return console.log(`Amount is not a finite number. (amount: ${i}, method: formatUsd)`),t;const o=Ln(i,{precision:e&&i>-1&&i<1&&0!==i?5:r}).format();return n&&i>0?`+${o}`:o},zn=({data:t,dataKey:e})=>{const r=t?.length?Number(t[0][e]):0,n=t?.length?Number(t[t.length-1][e]):0;if(!t?.length)return{startingAmount:0,endingAmount:0,delta:0,percentChange:0,isNetGain:!0};if(!Number.isFinite(r)||!Number.isFinite(n))throw new Error(`Starting or ending amount is not a finite number. (startingAmount: ${r}, endingAmount: ${n}, method: getDelta)`);const i=new bn(r),o=new bn(n),a=o.minus(i);return{startingAmount:r,endingAmount:n,delta:Number(a),percentChange:100*Number(a.dividedBy(i)),isNetGain:o.gt(i)}},Hn=t=>{let e;return["sm","xs"].includes(t)&&(e="xs"),e},Fn=({arr:t,n:e})=>t.toReversed().filter(((t,r)=>r%e==0)).toReversed(),Un={redRemains:(t=1)=>Vn({rgb:"rgb(255, 223, 223)",alpha:t}),heroicRed:(t=1)=>Vn({rgb:"rgb(210, 25, 25)",alpha:t}),aijiroWhite:(t=1)=>Vn({rgb:"rgb(238, 248, 247)",alpha:t}),mint:(t=1)=>Vn({rgb:"rgb(64, 178, 136)",alpha:t}),white:(t=1)=>Vn({rgb:"rgb(255, 255, 255)",alpha:t,enabledAlphaValues:[.2]}),lighthouse:(t=1)=>Vn({rgb:"rgb(244, 244, 244)",alpha:t,enabledAlphaValues:[.4]}),coolElegance:(t=1)=>Vn({rgb:"rgb(205, 207, 209)",alpha:t}),sonicSilver:(t=1)=>Vn({rgb:"rgb(117, 117, 117)",alpha:t}),black:(t=1)=>Vn({rgb:"rgb(0, 0, 0)",alpha:t,enabledAlphaValues:[.08]})},Vn=({rgb:t,alpha:e,enabledAlphaValues:r=[1]})=>{if(![...r,1].includes(e))throw`Unsupported alpha value: ${e}. Update the color function in uiColors.ts to enable additional values.`;const[n,i,o]=t.replace(/[^\d,]/g,"").split(",");return`rgba(${n}, ${i}, ${o}, ${e})`},qn=({usd:t,precision:e=2,autoPrecision:r})=>{const n=Ln(t).value;return Ln(t,{precision:r&&n>-1&&n<1&&0!==n?5:e}).value},Wn=o({baseStyle:{color:Un.sonicSilver(),_groupInvalid:{color:"red.500"}},sizes:{sm:{fontSize:"sm"},xs:{fontSize:"xs"}}}),{definePartsStyle:Xn,defineMultiStyleConfig:Yn}=n(me.keys),Kn=Yn({baseStyle:Xn({group:{svg:{width:"1.25em",":not(.coin-logo)":{path:{fill:"gray.800"}}},_groupDisabled:{"svg:not(.coin-logo)":{path:{fill:"gray.400"}}}},field:{_readOnly:{pointerEvents:"none"}}}),variants:{outline:{field:{border:"solid 1px",borderRadius:"lg",borderColor:"brand.200",":focus, :hover":{borderColor:"brand.600"},":hover:not([disabled])":{bg:"gray.50",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},color:"gray.800",_disabled:{bg:"gray.200",borderColor:"gray.300",color:"gray.900",":focus, :hover":{bg:"gray.200",borderColor:"gray.300"}},_invalid:{boxShadow:"none",":focus, :hover":{borderColor:"red.500"}}}}},defaultProps:{variant:"outline"}}),{definePartsStyle:Gn,defineMultiStyleConfig:Zn}=n(be.keys),Jn=Zn({baseStyle:Gn({icon:{svg:{path:{fill:"gray.800"}},_disabled:{svg:{path:{fill:"gray.400"}}}},field:{_readOnly:{pointerEvents:"none"}}}),variants:{outline:{field:{border:"solid 1px",borderRadius:"lg",borderColor:"brand.200",":focus, :hover":{borderColor:"brand.600"},":hover:not([disabled])":{bg:"gray.50",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},color:"gray.800",_disabled:{bg:"gray.200",borderColor:"gray.300",color:"gray.900",":focus, :hover":{bg:"gray.200",borderColor:"gray.300"}},_invalid:{boxShadow:"none",":focus, :hover":{borderColor:"red.500"}}}}},sizes:{lg:{icon:{fontSize:"lg"}},md:{icon:{fontSize:"md"}},sm:{icon:{fontSize:"sm"}},xs:{icon:{fontSize:"xs"}}},defaultProps:{variant:"outline"}}),Qn=o({variants:{simple:{th:{borderColor:Un.coolElegance()},td:{borderColor:Un.coolElegance()},tr:{_last:{td:{border:"none"}}}}}}),{definePartsStyle:ti,defineMultiStyleConfig:ei}=n(we.keys),ri=ti({container:{color:"blackAlpha.900",fontWeight:"bold",borderRadius:"full",svg:{path:{fill:"blackAlpha.900"}}}}),ni=ti({container:{bg:"red.100",borderWidth:1,borderColor:"red.500"}}),ii=ti({container:{bg:"yellow.100",borderColor:"yellow.500",borderWidth:1}});var oi=a({colors:{brand:{50:"#fcf2fe",100:"#f0c4f9",200:"#eaacf7",300:"#e495f4",400:"#de7ef2",500:"#d250ed",600:"#c622e8",700:"#b816da",800:"#a514c3",900:"#7e0f95"}},components:{Accordion:Se,Alert:Pe,Button:Te,Checkbox:De,Input:Kn,Form:Ie,FormLabel:Wn,FormError:Be,Select:Jn,Table:Qn,Tag:ei({baseStyle:ri,defaultProps:{variant:"outline"},variants:{error:ni,success:ti({container:{bg:"green.100",borderColor:"green.500",borderWidth:1}}),warning:ii,outline:{container:{boxShadow:"none",borderColor:"brand.500",borderWidth:1}}},sizes:{sm:{container:{px:4,py:0}},md:{container:{px:6,py:1}},lg:{container:{px:6,py:1}}}})},styles:{global:{"[data-focus], :focus":{boxShadow:"none !important"}}}},c({colorScheme:"brand"}));const ai={components:oi.components,styles:oi.styles};function ci(t){var e,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=ci(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function ui(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=ci(t))&&(n&&(n+=" "),n+=e);return n}var li=Array.isArray,si="object"==typeof xn&&xn&&xn.Object===Object&&xn,fi=si,hi="object"==typeof self&&self&&self.Object===Object&&self,pi=fi||hi||Function("return this")(),di=pi.Symbol,yi=di,vi=Object.prototype,gi=vi.hasOwnProperty,mi=vi.toString,bi=yi?yi.toStringTag:void 0;var wi=function(t){var e=gi.call(t,bi),r=t[bi];try{t[bi]=void 0;var n=!0}catch(t){}var i=mi.call(t);return n&&(e?t[bi]=r:delete t[bi]),i},xi=Object.prototype.toString;var Oi=wi,Si=function(t){return xi.call(t)},ji=di?di.toStringTag:void 0;var Ai=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ji&&ji in Object(t)?Oi(t):Si(t)};var Pi=function(t){return null!=t&&"object"==typeof t},Mi=Ai,Ei=Pi;var ki=function(t){return"symbol"==typeof t||Ei(t)&&"[object Symbol]"==Mi(t)},_i=li,Ti=ki,Ci=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ni=/^\w*$/;var Di=function(t,e){if(_i(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!Ti(t))||(Ni.test(t)||!Ci.test(t)||null!=e&&t in Object(e))};var Ii=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Bi=On(Ii),Li=Ai,Ri=Ii;var $i,zi=function(t){if(!Ri(t))return!1;var e=Li(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Hi=On(zi),Fi=pi["__core-js_shared__"],Ui=($i=/[^.]+$/.exec(Fi&&Fi.keys&&Fi.keys.IE_PROTO||""))?"Symbol(src)_1."+$i:"";var Vi=function(t){return!!Ui&&Ui in t},qi=Function.prototype.toString;var Wi=function(t){if(null!=t){try{return qi.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Xi=zi,Yi=Vi,Ki=Ii,Gi=Wi,Zi=/^\[object .+?Constructor\]$/,Ji=Function.prototype,Qi=Object.prototype,to=Ji.toString,eo=Qi.hasOwnProperty,ro=RegExp("^"+to.call(eo).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var no=function(t,e){return null==t?void 0:t[e]},io=function(t){return!(!Ki(t)||Yi(t))&&(Xi(t)?ro:Zi).test(Gi(t))},oo=no;var ao=function(t,e){var r=oo(t,e);return io(r)?r:void 0},co=ao(Object,"create"),uo=co;var lo=function(){this.__data__=uo?uo(null):{},this.size=0};var so=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},fo=co,ho=Object.prototype.hasOwnProperty;var po=function(t){var e=this.__data__;if(fo){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return ho.call(e,t)?e[t]:void 0},yo=co,vo=Object.prototype.hasOwnProperty;var go=co;var mo=lo,bo=so,wo=po,xo=function(t){var e=this.__data__;return yo?void 0!==e[t]:vo.call(e,t)},Oo=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=go&&void 0===e?"__lodash_hash_undefined__":e,this};function So(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}So.prototype.clear=mo,So.prototype.delete=bo,So.prototype.get=wo,So.prototype.has=xo,So.prototype.set=Oo;var jo=So;var Ao=function(){this.__data__=[],this.size=0};var Po=function(t,e){return t===e||t!=t&&e!=e},Mo=Po;var Eo=function(t,e){for(var r=t.length;r--;)if(Mo(t[r][0],e))return r;return-1},ko=Eo,_o=Array.prototype.splice;var To=Eo;var Co=Eo;var No=Eo;var Do=Ao,Io=function(t){var e=this.__data__,r=ko(e,t);return!(r<0)&&(r==e.length-1?e.pop():_o.call(e,r,1),--this.size,!0)},Bo=function(t){var e=this.__data__,r=To(e,t);return r<0?void 0:e[r][1]},Lo=function(t){return Co(this.__data__,t)>-1},Ro=function(t,e){var r=this.__data__,n=No(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function $o(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}$o.prototype.clear=Do,$o.prototype.delete=Io,$o.prototype.get=Bo,$o.prototype.has=Lo,$o.prototype.set=Ro;var zo=$o,Ho=ao(pi,"Map"),Fo=jo,Uo=zo,Vo=Ho;var qo=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Wo=function(t,e){var r=t.__data__;return qo(e)?r["string"==typeof e?"string":"hash"]:r.map},Xo=Wo;var Yo=Wo;var Ko=Wo;var Go=Wo;var Zo=function(){this.size=0,this.__data__={hash:new Fo,map:new(Vo||Uo),string:new Fo}},Jo=function(t){var e=Xo(this,t).delete(t);return this.size-=e?1:0,e},Qo=function(t){return Yo(this,t).get(t)},ta=function(t){return Ko(this,t).has(t)},ea=function(t,e){var r=Go(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function ra(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ra.prototype.clear=Zo,ra.prototype.delete=Jo,ra.prototype.get=Qo,ra.prototype.has=ta,ra.prototype.set=ea;var na=ra,ia=na;function oa(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(oa.Cache||ia),r}oa.Cache=ia;var aa=oa,ca=On(aa),ua=aa;var la=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sa=/\\(\\)?/g,fa=function(t){var e=ua(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(la,(function(t,r,n,i){e.push(n?i.replace(sa,"$1"):r||t)})),e})),ha=fa;var pa=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i},da=pa,ya=li,va=ki,ga=di?di.prototype:void 0,ma=ga?ga.toString:void 0;var ba=function t(e){if("string"==typeof e)return e;if(ya(e))return da(e,t)+"";if(va(e))return ma?ma.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r},wa=ba;var xa=function(t){return null==t?"":wa(t)},Oa=li,Sa=Di,ja=ha,Aa=xa;var Pa=function(t,e){return Oa(t)?t:Sa(t,e)?[t]:ja(Aa(t))},Ma=ki;var Ea=function(t){if("string"==typeof t||Ma(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e},ka=Pa,_a=Ea;var Ta=function(t,e){for(var r=0,n=(e=ka(e,t)).length;null!=t&&r<n;)t=t[_a(e[r++])];return r&&r==n?t:void 0},Ca=Ta;var Na=function(t,e,r){var n=null==t?void 0:Ca(t,e);return void 0===n?r:n},Da=On(Na);var Ia=On((function(t){return null==t})),Ba=Ai,La=li,Ra=Pi;var $a,za=On((function(t){return"string"==typeof t||!La(t)&&Ra(t)&&"[object String]"==Ba(t)})),Ha={exports:{}},Fa={};var Ua,Va={};
|
|
9
|
+
var lr={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(t,e){var r=e.pattern,n=e.negativePattern,i=e.symbol,o=e.separator,a=e.decimal,c=e.groups,u=(""+t).replace(/^-/,"").split("."),l=u[0],s=u[1];return(t.value>=0?r:n).replace("!",i).replace("#",l.replace(c,"$1"+o)+(s?a+s:""))},fromCents:!1},sr=function(t){return Math.round(t)},fr=function(t){return Math.pow(10,t)},hr=/(\d)(?=(\d{3})+\b)/g,pr=/(\d)(?=(\d\d)+\d\b)/g;function dr(t,e){var r=this;if(!(r instanceof dr))return new dr(t,e);var n=Object.assign({},lr,e),i=fr(n.precision),o=yr(t,n);r.intValue=o,r.value=o/i,n.increment=n.increment||1/i,n.useVedic?n.groups=pr:n.groups=hr,this.s=n,this.p=i}function yr(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=0,i=e.decimal,o=e.errorOnInvalid,a=e.precision,c=e.fromCents,u=fr(a),l="number"==typeof t,s=t instanceof dr;if(s&&c)return t.intValue;if(l||s)n=s?t.value:t;else if("string"==typeof t){var f=new RegExp("[^-\\d"+i+"]","g"),h=new RegExp("\\"+i,"g");n=(n=t.replace(/\((.*)\)/,"-$1").replace(f,"").replace(h,"."))||0}else{if(o)throw Error("Invalid Input");n=0}return c||(n=(n*=u).toFixed(4)),r?sr(n):n}dr.prototype={add:function(t){var e=this.intValue,r=this.s,n=this.p;return dr((e+=yr(t,r))/(r.fromCents?1:n),r)},subtract:function(t){var e=this.intValue,r=this.s,n=this.p;return dr((e-=yr(t,r))/(r.fromCents?1:n),r)},multiply:function(t){var e=this.intValue,r=this.s;return dr((e*=t)/(r.fromCents?1:fr(r.precision)),r)},divide:function(t){var e=this.intValue,r=this.s;return dr(e/=yr(t,r,!1),r)},distribute:function(t){for(var e=this.intValue,r=this.p,n=this.s,i=[],o=Math[e>=0?"floor":"ceil"](e/t),a=Math.abs(e-o*t),c=n.fromCents?1:r;0!==t;t--){var u=dr(o/c,n);a-- >0&&(u=u[e>=0?"add":"subtract"](1/c)),i.push(u)}return i},dollars:function(){return~~this.value},cents:function(){return~~(this.intValue%this.p)},format:function(t){var e=this.s;return"function"==typeof t?t(this,e):e.format(this,Object.assign({},e,t))},toString:function(){var t,e,r=this.intValue,n=this.p,i=this.s;return(t=r/n,e=i.increment,sr(t/e)*e).toFixed(i.precision)},toJSON:function(){return this.value}};const vr=({amount:t,autoPrecision:e,precision:r=2,signDisplay:n=!1})=>{const i=Number(t);if(!Number.isFinite(i))return console.log(`Amount is not a finite number. (amount: ${i}, method: formatUsd)`),t;const o=dr(i,{precision:e&&i>-1&&i<1&&0!==i?5:r}).format();return n&&i>0?`+${o}`:o},mr=({data:t,dataKey:e})=>{const r=t?.length?Number(t[0][e]):0,n=t?.length?Number(t[t.length-1][e]):0;if(!t?.length)return{startingAmount:0,endingAmount:0,delta:0,percentChange:0,isNetGain:!0};if(!Number.isFinite(r)||!Number.isFinite(n))throw new Error(`Starting or ending amount is not a finite number. (startingAmount: ${r}, endingAmount: ${n}, method: getDelta)`);const i=new Ge(r),o=new Ge(n),a=o.minus(i);return{startingAmount:r,endingAmount:n,delta:a.toNumber(),percentChange:0===i.toNumber()?0:a.div(i).mul(100).toNumber(),isNetGain:o.gt(i)}},gr=t=>{let e;return["sm","xs"].includes(t)&&(e="xs"),e},br=({arr:t,n:e})=>t.toReversed().filter(((t,r)=>r%e==0)).toReversed(),wr={redRemains:(t=1)=>xr({rgb:"rgb(255, 223, 223)",alpha:t}),heroicRed:(t=1)=>xr({rgb:"rgb(210, 25, 25)",alpha:t}),aijiroWhite:(t=1)=>xr({rgb:"rgb(238, 248, 247)",alpha:t}),mint:(t=1)=>xr({rgb:"rgb(64, 178, 136)",alpha:t}),white:(t=1)=>xr({rgb:"rgb(255, 255, 255)",alpha:t,enabledAlphaValues:[.2]}),lighthouse:(t=1)=>xr({rgb:"rgb(244, 244, 244)",alpha:t}),coolElegance:(t=1)=>xr({rgb:"rgb(205, 207, 209)",alpha:t}),sonicSilver:(t=1)=>xr({rgb:"rgb(117, 117, 117)",alpha:t}),black:(t=1)=>xr({rgb:"rgb(0, 0, 0)",alpha:t,enabledAlphaValues:[.08]})},xr=({rgb:t,alpha:e,enabledAlphaValues:r=[1]})=>{if(![...r,1].includes(e))throw`Unsupported alpha value: ${e}. Update the color function in uiColors.ts to enable additional values.`;const[n,i,o]=t.replace(/[^\d,]/g,"").split(",");return`rgba(${n}, ${i}, ${o}, ${e})`},Or=({usd:t,precision:e=2,autoPrecision:r})=>{const n=dr(t).value;return dr(t,{precision:r&&n>-1&&n<1&&0!==n?5:e}).value},Sr=o({baseStyle:{color:wr.sonicSilver(),_groupInvalid:{color:"red.500"}},sizes:{sm:{fontSize:"sm"},xs:{fontSize:"xs"}}}),{definePartsStyle:jr,defineMultiStyleConfig:Ar}=n(be.keys),Pr=Ar({baseStyle:jr({group:{svg:{width:"1.25em",":not(.coin-logo)":{path:{fill:"gray.800"}}},_groupDisabled:{"svg:not(.coin-logo)":{path:{fill:"gray.400"}}}},field:{_readOnly:{pointerEvents:"none"}}}),variants:{outline:{field:{border:"solid 1px",borderRadius:"lg",borderColor:"brand.200",":focus, :hover":{borderColor:"brand.600"},":hover:not([disabled])":{bg:"gray.50",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},color:"gray.800",_disabled:{bg:"gray.200",borderColor:"gray.300",color:"gray.900",":focus, :hover":{bg:"gray.200",borderColor:"gray.300"}},_invalid:{boxShadow:"none",":focus, :hover":{borderColor:"red.500"}}}}},defaultProps:{variant:"outline"}}),{definePartsStyle:Mr,defineMultiStyleConfig:Er}=n(we.keys),kr=Er({baseStyle:Mr({icon:{svg:{path:{fill:"gray.800"}},_disabled:{svg:{path:{fill:"gray.400"}}}},field:{_readOnly:{pointerEvents:"none"}}}),variants:{outline:{field:{border:"solid 1px",borderRadius:"lg",borderColor:"brand.200",":focus, :hover":{borderColor:"brand.600"},":hover:not([disabled])":{bg:"gray.50",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},color:"gray.800",_disabled:{bg:"gray.200",borderColor:"gray.300",color:"gray.900",":focus, :hover":{bg:"gray.200",borderColor:"gray.300"}},_invalid:{boxShadow:"none",":focus, :hover":{borderColor:"red.500"}}}}},sizes:{lg:{icon:{fontSize:"lg"}},md:{icon:{fontSize:"md"}},sm:{icon:{fontSize:"sm"}},xs:{icon:{fontSize:"xs"}}},defaultProps:{variant:"outline"}}),_r=o({variants:{simple:{th:{borderColor:wr.coolElegance()},td:{borderColor:wr.coolElegance()},tr:{_last:{td:{border:"none"}}}}}}),{definePartsStyle:Tr,defineMultiStyleConfig:Cr}=n(xe.keys),Dr=Tr({container:{color:"blackAlpha.900",fontWeight:"bold",borderRadius:"full",svg:{path:{fill:"blackAlpha.900"}}}}),Ir=Tr({container:{bg:"red.100",borderWidth:1,borderColor:"red.500"}}),Nr=Tr({container:{bg:"yellow.100",borderColor:"yellow.500",borderWidth:1}});var Br=a({colors:{brand:{50:"#fcf2fe",100:"#f0c4f9",200:"#eaacf7",300:"#e495f4",400:"#de7ef2",500:"#d250ed",600:"#c622e8",700:"#b816da",800:"#a514c3",900:"#7e0f95"}},components:{Accordion:je,Alert:Me,Button:Ce,Checkbox:Ne,Input:Pr,Form:Be,FormLabel:Sr,FormError:Re,Select:kr,Table:_r,Tag:Cr({baseStyle:Dr,defaultProps:{variant:"outline"},variants:{error:Ir,success:Tr({container:{bg:"green.100",borderColor:"green.500",borderWidth:1}}),warning:Nr,outline:{container:{boxShadow:"none",borderColor:"brand.500",borderWidth:1}}},sizes:{sm:{container:{px:4,py:0}},md:{container:{px:6,py:1}},lg:{container:{px:6,py:1}}}})},styles:{global:{"[data-focus], :focus":{boxShadow:"none !important"}}}},c({colorScheme:"brand"}));const Rr={components:Br.components,styles:Br.styles};function $r(t){var e,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=$r(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Lr(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=$r(t))&&(n&&(n+=" "),n+=e);return n}var zr=Array.isArray,Hr="object"==typeof Je&&Je&&Je.Object===Object&&Je,Fr=Hr,Ur="object"==typeof self&&self&&self.Object===Object&&self,Vr=Fr||Ur||Function("return this")(),Wr=Vr.Symbol,qr=Wr,Xr=Object.prototype,Yr=Xr.hasOwnProperty,Kr=Xr.toString,Gr=qr?qr.toStringTag:void 0;var Zr=function(t){var e=Yr.call(t,Gr),r=t[Gr];try{t[Gr]=void 0;var n=!0}catch(t){}var i=Kr.call(t);return n&&(e?t[Gr]=r:delete t[Gr]),i},Jr=Object.prototype.toString;var Qr=Zr,tn=function(t){return Jr.call(t)},en=Wr?Wr.toStringTag:void 0;var rn=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":en&&en in Object(t)?Qr(t):tn(t)};var nn=function(t){return null!=t&&"object"==typeof t},on=rn,an=nn;var cn=function(t){return"symbol"==typeof t||an(t)&&"[object Symbol]"==on(t)},un=zr,ln=cn,sn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fn=/^\w*$/;var hn=function(t,e){if(un(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!ln(t))||(fn.test(t)||!sn.test(t)||null!=e&&t in Object(e))};var pn=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},dn=Qe(pn),yn=rn,vn=pn;var mn,gn=function(t){if(!vn(t))return!1;var e=yn(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},bn=Qe(gn),wn=Vr["__core-js_shared__"],xn=(mn=/[^.]+$/.exec(wn&&wn.keys&&wn.keys.IE_PROTO||""))?"Symbol(src)_1."+mn:"";var On=function(t){return!!xn&&xn in t},Sn=Function.prototype.toString;var jn=function(t){if(null!=t){try{return Sn.call(t)}catch(t){}try{return t+""}catch(t){}}return""},An=gn,Pn=On,Mn=pn,En=jn,kn=/^\[object .+?Constructor\]$/,_n=Function.prototype,Tn=Object.prototype,Cn=_n.toString,Dn=Tn.hasOwnProperty,In=RegExp("^"+Cn.call(Dn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Nn=function(t,e){return null==t?void 0:t[e]},Bn=function(t){return!(!Mn(t)||Pn(t))&&(An(t)?In:kn).test(En(t))},Rn=Nn;var $n=function(t,e){var r=Rn(t,e);return Bn(r)?r:void 0},Ln=$n(Object,"create"),zn=Ln;var Hn=function(){this.__data__=zn?zn(null):{},this.size=0};var Fn=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Un=Ln,Vn=Object.prototype.hasOwnProperty;var Wn=function(t){var e=this.__data__;if(Un){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Vn.call(e,t)?e[t]:void 0},qn=Ln,Xn=Object.prototype.hasOwnProperty;var Yn=Ln;var Kn=Hn,Gn=Fn,Zn=Wn,Jn=function(t){var e=this.__data__;return qn?void 0!==e[t]:Xn.call(e,t)},Qn=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Yn&&void 0===e?"__lodash_hash_undefined__":e,this};function ti(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ti.prototype.clear=Kn,ti.prototype.delete=Gn,ti.prototype.get=Zn,ti.prototype.has=Jn,ti.prototype.set=Qn;var ei=ti;var ri=function(){this.__data__=[],this.size=0};var ni=function(t,e){return t===e||t!=t&&e!=e},ii=ni;var oi=function(t,e){for(var r=t.length;r--;)if(ii(t[r][0],e))return r;return-1},ai=oi,ci=Array.prototype.splice;var ui=oi;var li=oi;var si=oi;var fi=ri,hi=function(t){var e=this.__data__,r=ai(e,t);return!(r<0)&&(r==e.length-1?e.pop():ci.call(e,r,1),--this.size,!0)},pi=function(t){var e=this.__data__,r=ui(e,t);return r<0?void 0:e[r][1]},di=function(t){return li(this.__data__,t)>-1},yi=function(t,e){var r=this.__data__,n=si(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function vi(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}vi.prototype.clear=fi,vi.prototype.delete=hi,vi.prototype.get=pi,vi.prototype.has=di,vi.prototype.set=yi;var mi=vi,gi=$n(Vr,"Map"),bi=ei,wi=mi,xi=gi;var Oi=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Si=function(t,e){var r=t.__data__;return Oi(e)?r["string"==typeof e?"string":"hash"]:r.map},ji=Si;var Ai=Si;var Pi=Si;var Mi=Si;var Ei=function(){this.size=0,this.__data__={hash:new bi,map:new(xi||wi),string:new bi}},ki=function(t){var e=ji(this,t).delete(t);return this.size-=e?1:0,e},_i=function(t){return Ai(this,t).get(t)},Ti=function(t){return Pi(this,t).has(t)},Ci=function(t,e){var r=Mi(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function Di(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Di.prototype.clear=Ei,Di.prototype.delete=ki,Di.prototype.get=_i,Di.prototype.has=Ti,Di.prototype.set=Ci;var Ii=Di,Ni=Ii;function Bi(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Bi.Cache||Ni),r}Bi.Cache=Ni;var Ri=Bi,$i=Qe(Ri),Li=Ri;var zi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hi=/\\(\\)?/g,Fi=function(t){var e=Li(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(zi,(function(t,r,n,i){e.push(n?i.replace(Hi,"$1"):r||t)})),e})),Ui=Fi;var Vi=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i},Wi=Vi,qi=zr,Xi=cn,Yi=Wr?Wr.prototype:void 0,Ki=Yi?Yi.toString:void 0;var Gi=function t(e){if("string"==typeof e)return e;if(qi(e))return Wi(e,t)+"";if(Xi(e))return Ki?Ki.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r},Zi=Gi;var Ji=function(t){return null==t?"":Zi(t)},Qi=zr,to=hn,eo=Ui,ro=Ji;var no=function(t,e){return Qi(t)?t:to(t,e)?[t]:eo(ro(t))},io=cn;var oo=function(t){if("string"==typeof t||io(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e},ao=no,co=oo;var uo=function(t,e){for(var r=0,n=(e=ao(e,t)).length;null!=t&&r<n;)t=t[co(e[r++])];return r&&r==n?t:void 0},lo=uo;var so=function(t,e,r){var n=null==t?void 0:lo(t,e);return void 0===n?r:n},fo=Qe(so);var ho=Qe((function(t){return null==t})),po=rn,yo=zr,vo=nn;var mo,go=Qe((function(t){return"string"==typeof t||!yo(t)&&vo(t)&&"[object String]"==po(t)})),bo={exports:{}},wo={};var xo,Oo={};
|
|
18
10
|
/** @license React v16.13.1
|
|
19
11
|
* react-is.development.js
|
|
20
12
|
*
|
|
@@ -22,5 +14,5 @@ var Cn={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,patte
|
|
|
22
14
|
*
|
|
23
15
|
* This source code is licensed under the MIT license found in the
|
|
24
16
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/"production"===process.env.NODE_ENV?Ha.exports=function(){if($a)return Fa;$a=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,d=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,g=t?Symbol.for("react.responder"):60118,m=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:switch(t=t.type){case u:case l:case n:case o:case i:case f:return t;default:switch(t=t&&t.$$typeof){case c:case s:case d:case p:case a:return t;default:return h}}case r:return h}}}function w(t){return b(t)===l}return Fa.AsyncMode=u,Fa.ConcurrentMode=l,Fa.ContextConsumer=c,Fa.ContextProvider=a,Fa.Element=e,Fa.ForwardRef=s,Fa.Fragment=n,Fa.Lazy=d,Fa.Memo=p,Fa.Portal=r,Fa.Profiler=o,Fa.StrictMode=i,Fa.Suspense=f,Fa.isAsyncMode=function(t){return w(t)||b(t)===u},Fa.isConcurrentMode=w,Fa.isContextConsumer=function(t){return b(t)===c},Fa.isContextProvider=function(t){return b(t)===a},Fa.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Fa.isForwardRef=function(t){return b(t)===s},Fa.isFragment=function(t){return b(t)===n},Fa.isLazy=function(t){return b(t)===d},Fa.isMemo=function(t){return b(t)===p},Fa.isPortal=function(t){return b(t)===r},Fa.isProfiler=function(t){return b(t)===o},Fa.isStrictMode=function(t){return b(t)===i},Fa.isSuspense=function(t){return b(t)===f},Fa.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===o||t===i||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===p||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===g||t.$$typeof===m||t.$$typeof===y)},Fa.typeOf=b,Fa}():Ha.exports=(Ua||(Ua=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,d=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,g=t?Symbol.for("react.responder"):60118,m=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:var y=t.type;switch(y){case u:case l:case n:case o:case i:case f:return y;default:var v=y&&y.$$typeof;switch(v){case c:case s:case d:case p:case a:return v;default:return h}}case r:return h}}}var w=u,x=l,O=c,S=a,j=e,A=s,P=n,M=d,E=p,k=r,_=o,T=i,C=f,N=!1;function D(t){return b(t)===l}Va.AsyncMode=w,Va.ConcurrentMode=x,Va.ContextConsumer=O,Va.ContextProvider=S,Va.Element=j,Va.ForwardRef=A,Va.Fragment=P,Va.Lazy=M,Va.Memo=E,Va.Portal=k,Va.Profiler=_,Va.StrictMode=T,Va.Suspense=C,Va.isAsyncMode=function(t){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(t)||b(t)===u},Va.isConcurrentMode=D,Va.isContextConsumer=function(t){return b(t)===c},Va.isContextProvider=function(t){return b(t)===a},Va.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Va.isForwardRef=function(t){return b(t)===s},Va.isFragment=function(t){return b(t)===n},Va.isLazy=function(t){return b(t)===d},Va.isMemo=function(t){return b(t)===p},Va.isPortal=function(t){return b(t)===r},Va.isProfiler=function(t){return b(t)===o},Va.isStrictMode=function(t){return b(t)===i},Va.isSuspense=function(t){return b(t)===f},Va.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===o||t===i||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===p||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===g||t.$$typeof===m||t.$$typeof===y)},Va.typeOf=b}()),Va);var qa=Ha.exports,Wa=Ai,Xa=Pi;var Ya=function(t){return"number"==typeof t||Xa(t)&&"[object Number]"==Wa(t)},Ka=On(Ya),Ga=Ya;var Za=On((function(t){return Ga(t)&&t!=+t})),Ja=function(t){return 0===t?0:t>0?1:-1},Qa=function(t){return za(t)&&t.indexOf("%")===t.length-1},tc=function(t){return Ka(t)&&!Za(t)},ec=function(t){return tc(t)||za(t)},rc=0,nc=function(t){var e=++rc;return"".concat(t||"").concat(e)},ic=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!tc(t)&&!za(t))return n;if(Qa(t)){var o=t.indexOf("%");r=e*parseFloat(t.slice(0,o))/100}else r=+t;return Za(r)&&(r=n),i&&r>e&&(r=e),r},oc=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},ac=function(t,e){return tc(t)&&tc(e)?function(r){return t+r*(e-t)}:function(){return e}};function cc(t,e,r){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):Da(t,e))===r})):null}function uc(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function lc(t){return lc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lc(t)}var sc=["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"],fc=["points","pathLength"],hc={svg:["viewBox","children"],polygon:fc,polyline:fc},pc=["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"],dc=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if(Y(t)&&(r=t.props),!Bi(r))return null;var n={};return Object.keys(r).forEach((function(t){pc.includes(t)&&(n[t]=e||function(e){return r[t](r,e)})})),n},yc=function(t,e,r){if(!Bi(t)||"object"!==lc(t))return null;var n=null;return Object.keys(t).forEach((function(i){var o=t[i];pc.includes(i)&&"function"==typeof o&&(n||(n={}),n[i]=function(t,e,r){return function(n){return t(e,r,n),null}}(o,e,r))})),n},vc=["children"],gc=["children"];function mc(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function bc(t){return bc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bc(t)}var wc={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},xc=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},Oc=null,Sc=null,jc=function t(e){if(e===Oc&&Array.isArray(Sc))return Sc;var r=[];return K.forEach(e,(function(e){Ia(e)||(qa.isFragment(e)?r=r.concat(t(e.props.children)):r.push(e))})),Sc=r,Oc=e,r};function Ac(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map((function(t){return xc(t)})):[xc(e)],jc(t).forEach((function(t){var e=Da(t,"type.displayName")||Da(t,"type.name");-1!==n.indexOf(e)&&r.push(t)})),r}function Pc(t,e){var r=Ac(t,e);return r&&r[0]}var Mc=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!tc(r)||r<=0||!tc(n)||n<=0)},Ec=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],kc=function(t){return t&&"object"===bc(t)&&"cx"in t&&"cy"in t&&"r"in t},_c=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if(Y(t)&&(n=t.props),!Bi(n))return null;var i={};return Object.keys(n).forEach((function(t){var o;(function(t,e,r,n){var i,o=null!==(i=null==hc?void 0:hc[n])&&void 0!==i?i:[];return!Hi(t)&&(n&&o.includes(e)||sc.includes(e))||r&&pc.includes(e)})(null===(o=n)||void 0===o?void 0:o[t],t,e,r)&&(i[t]=n[t])})),i},Tc=function t(e,r){if(e===r)return!0;var n=K.count(e);if(n!==K.count(r))return!1;if(0===n)return!0;if(1===n)return Cc(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var o=e[i],a=r[i];if(Array.isArray(o)||Array.isArray(a)){if(!t(o,a))return!1}else if(!Cc(o,a))return!1}return!0},Cc=function(t,e){if(Ia(t)&&Ia(e))return!0;if(!Ia(t)&&!Ia(e)){var r=t.props||{},n=r.children,i=mc(r,vc),o=e.props||{},a=o.children,c=mc(o,gc);return n&&a?uc(i,c)&&Tc(n,a):!n&&!a&&uc(i,c)}return!1},Nc=function(t,e){var r=[],n={};return jc(t).forEach((function(t,i){if(function(t){return t&&t.type&&za(t.type)&&Ec.indexOf(t.type)>=0}(t))r.push(t);else if(t){var o=xc(t.type),a=e[o]||{},c=a.handler,u=a.once;if(c&&(!u||!n[o])){var l=c(t,o,i);r.push(l),n[o]=!0}}})),r},Dc=["children","width","height","viewBox","className","style","title","desc"];function Ic(){return Ic=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ic.apply(this,arguments)}function Bc(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Lc(t){var e=t.children,r=t.width,n=t.height,i=t.viewBox,o=t.className,a=t.style,c=t.title,u=t.desc,l=Bc(t,Dc),s=i||{width:r,height:n,x:0,y:0},f=ui("recharts-surface",o);return X.createElement("svg",Ic({},_c(l,!0,"svg"),{className:f,width:r,height:n,style:a,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),X.createElement("title",null,c),X.createElement("desc",null,u),e)}var Rc=["children","className"];function $c(){return $c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},$c.apply(this,arguments)}function zc(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var Hc=X.forwardRef((function(t,e){var r=t.children,n=t.className,i=zc(t,Rc),o=ui("recharts-layer",n);return X.createElement("g",$c({className:o},_c(i,!0),{ref:e}),r)})),Fc="production"!==process.env.NODE_ENV,Uc=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];if(Fc&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)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(e.replace(/%s/g,(function(){return n[o++]})))}};var Vc=function(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o},qc=Vc;var Wc=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:qc(t,e,r)},Xc=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Yc=function(t){return Xc.test(t)};var Kc=function(t){return t.split("")},Gc="\\ud800-\\udfff",Zc="["+Gc+"]",Jc="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Qc="\\ud83c[\\udffb-\\udfff]",tu="[^"+Gc+"]",eu="(?:\\ud83c[\\udde6-\\uddff]){2}",ru="[\\ud800-\\udbff][\\udc00-\\udfff]",nu="(?:"+Jc+"|"+Qc+")"+"?",iu="[\\ufe0e\\ufe0f]?",ou=iu+nu+("(?:\\u200d(?:"+[tu,eu,ru].join("|")+")"+iu+nu+")*"),au="(?:"+[tu+Jc+"?",Jc,eu,ru,Zc].join("|")+")",cu=RegExp(Qc+"(?="+Qc+")|"+au+ou,"g");var uu=function(t){return t.match(cu)||[]},lu=Kc,su=Yc,fu=uu;var hu=function(t){return su(t)?fu(t):lu(t)},pu=Wc,du=Yc,yu=hu,vu=xa;var gu=function(t){return function(e){e=vu(e);var r=du(e)?yu(e):void 0,n=r?r[0]:e.charAt(0),i=r?pu(r,1).join(""):e.slice(1);return n[t]()+i}},mu=On(gu("toUpperCase"));function bu(t){return function(){return t}}const wu=Math.cos,xu=Math.sin,Ou=Math.sqrt,Su=Math.PI,ju=2*Su,Au=Math.PI,Pu=2*Au,Mu=1e-6,Eu=Pu-Mu;function ku(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class _u{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?ku:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return ku;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,i,o){this._append`C${+t},${+e},${+r},${+n},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,r,n,i){if(t=+t,e=+e,r=+r,n=+n,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,c=r-t,u=n-e,l=o-t,s=a-e,f=l*l+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>Mu)if(Math.abs(s*c-u*l)>Mu&&i){let h=r-o,p=n-a,d=c*c+u*u,y=h*h+p*p,v=Math.sqrt(d),g=Math.sqrt(f),m=i*Math.tan((Au-Math.acos((d+f-y)/(2*v*g)))/2),b=m/g,w=m/v;Math.abs(b-1)>Mu&&this._append`L${t+b*l},${e+b*s}`,this._append`A${i},${i},0,0,${+(s*h>l*p)},${this._x1=t+w*c},${this._y1=e+w*u}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,r,n,i,o){if(t=+t,e=+e,o=!!o,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),c=r*Math.sin(n),u=t+a,l=e+c,s=1^o,f=o?n-i:i-n;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Mu||Math.abs(this._y1-l)>Mu)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%Pu+Pu),f>Eu?this._append`A${r},${r},0,1,${s},${t-a},${e-c}A${r},${r},0,1,${s},${this._x1=u},${this._y1=l}`:f>Mu&&this._append`A${r},${r},0,${+(f>=Au)},${s},${this._x1=t+r*Math.cos(i)},${this._y1=e+r*Math.sin(i)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function Tu(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError(`invalid digits: ${r}`);e=t}return t},()=>new _u(e)}function Cu(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Nu(t){this._context=t}function Du(t){return new Nu(t)}function Iu(t){return t[0]}function Bu(t){return t[1]}function Lu(t,e){var r=bu(!0),n=null,i=Du,o=null,a=Tu(c);function c(c){var u,l,s,f=(c=Cu(c)).length,h=!1;for(null==n&&(o=i(s=a())),u=0;u<=f;++u)!(u<f&&r(l=c[u],u,c))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,u,c),+e(l,u,c));if(s)return o=null,s+""||null}return t="function"==typeof t?t:void 0===t?Iu:bu(t),e="function"==typeof e?e:void 0===e?Bu:bu(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:bu(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:bu(+t),c):e},c.defined=function(t){return arguments.length?(r="function"==typeof t?t:bu(!!t),c):r},c.curve=function(t){return arguments.length?(i=t,null!=n&&(o=i(n)),c):i},c.context=function(t){return arguments.length?(null==t?n=o=null:o=i(n=t),c):n},c}function Ru(t,e,r){var n=null,i=bu(!0),o=null,a=Du,c=null,u=Tu(l);function l(l){var s,f,h,p,d,y=(l=Cu(l)).length,v=!1,g=new Array(y),m=new Array(y);for(null==o&&(c=a(d=u())),s=0;s<=y;++s){if(!(s<y&&i(p=l[s],s,l))===v)if(v=!v)f=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),h=s-1;h>=f;--h)c.point(g[h],m[h]);c.lineEnd(),c.areaEnd()}v&&(g[s]=+t(p,s,l),m[s]=+e(p,s,l),c.point(n?+n(p,s,l):g[s],r?+r(p,s,l):m[s]))}if(d)return c=null,d+""||null}function s(){return Lu().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?Iu:bu(+t),e="function"==typeof e?e:bu(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?Bu:bu(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:bu(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:bu(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:bu(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:bu(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:bu(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:bu(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(i="function"==typeof t?t:bu(!!t),l):i},l.curve=function(t){return arguments.length?(a=t,null!=o&&(c=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=c=null:c=a(o=t),l):o},l}Nu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};class $u{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}var zu={draw(t,e){const r=Ou(e/Su);t.moveTo(r,0),t.arc(0,0,r,0,ju)}},Hu={draw(t,e){const r=Ou(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}};const Fu=Ou(1/3),Uu=2*Fu;var Vu={draw(t,e){const r=Ou(e/Uu),n=r*Fu;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},qu={draw(t,e){const r=Ou(e),n=-r/2;t.rect(n,n,r,r)}};const Wu=xu(Su/10)/xu(7*Su/10),Xu=xu(ju/10)*Wu,Yu=-wu(ju/10)*Wu;var Ku={draw(t,e){const r=Ou(.8908130915292852*e),n=Xu*r,i=Yu*r;t.moveTo(0,-r),t.lineTo(n,i);for(let e=1;e<5;++e){const o=ju*e/5,a=wu(o),c=xu(o);t.lineTo(c*r,-a*r),t.lineTo(a*n-c*i,c*n+a*i)}t.closePath()}};const Gu=Ou(3);var Zu={draw(t,e){const r=-Ou(e/(3*Gu));t.moveTo(0,2*r),t.lineTo(-Gu*r,-r),t.lineTo(Gu*r,-r),t.closePath()}};const Ju=-.5,Qu=Ou(3)/2,tl=1/Ou(12),el=3*(tl/2+1);var rl={draw(t,e){const r=Ou(e/el),n=r/2,i=r*tl,o=n,a=r*tl+r,c=-o,u=a;t.moveTo(n,i),t.lineTo(o,a),t.lineTo(c,u),t.lineTo(Ju*n-Qu*i,Qu*n+Ju*i),t.lineTo(Ju*o-Qu*a,Qu*o+Ju*a),t.lineTo(Ju*c-Qu*u,Qu*c+Ju*u),t.lineTo(Ju*n+Qu*i,Ju*i-Qu*n),t.lineTo(Ju*o+Qu*a,Ju*a-Qu*o),t.lineTo(Ju*c+Qu*u,Ju*u-Qu*c),t.closePath()}};function nl(){}function il(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function ol(t){this._context=t}function al(t){this._context=t}function cl(t){this._context=t}function ul(t){this._context=t}function ll(t){return t<0?-1:1}function sl(t,e,r){var n=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(n||i<0&&-0),a=(r-t._y1)/(i||n<0&&-0),c=(o*i+a*n)/(n+i);return(ll(o)+ll(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(c))||0}function fl(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function hl(t,e,r){var n=t._x0,i=t._y0,o=t._x1,a=t._y1,c=(o-n)/3;t._context.bezierCurveTo(n+c,i+c*e,o-c,a-c*r,o,a)}function pl(t){this._context=t}function dl(t){this._context=new yl(t)}function yl(t){this._context=t}function vl(t){this._context=t}function gl(t){var e,r,n=t.length-1,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/o[e-1],o[e]-=r,a[e]-=r*a[e-1];for(i[n-1]=a[n-1]/o[n-1],e=n-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function ml(t,e){this._context=t,this._t=e}function bl(t,e){if((i=t.length)>1)for(var r,n,i,o=1,a=t[e[0]],c=a.length;o<i;++o)for(n=a,a=t[e[o]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function wl(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function xl(t,e){return t[e]}function Ol(t){const e=[];return e.key=t,e}function Sl(t){return Sl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sl(t)}ol.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:il(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:il(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},al.prototype={areaStart:nl,areaEnd:nl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:il(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},cl.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,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+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:il(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ul.prototype={areaStart:nl,areaEnd:nl,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},pl.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:hl(this,this._t0,fl(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,hl(this,fl(this,r=sl(this,t,e)),r);break;default:hl(this,this._t0,r=sl(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(dl.prototype=Object.create(pl.prototype)).point=function(t,e){pl.prototype.point.call(this,e,t)},yl.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,o){this._context.bezierCurveTo(e,t,n,r,o,i)}},vl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=gl(t),i=gl(e),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},ml.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&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var jl=["type","size","sizeType"];function Al(){return Al=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Al.apply(this,arguments)}function Pl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ml(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Pl(Object(r),!0).forEach((function(e){El(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pl(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function El(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Sl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Sl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Sl(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kl(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var _l={symbolCircle:zu,symbolCross:Hu,symbolDiamond:Vu,symbolSquare:qu,symbolStar:Ku,symbolTriangle:Zu,symbolWye:rl},Tl=Math.PI/180,Cl=function(t){var e,r,n=t.type,i=void 0===n?"circle":n,o=t.size,a=void 0===o?64:o,c=t.sizeType,u=void 0===c?"area":c,l=Ml(Ml({},kl(t,jl)),{},{type:i,size:a,sizeType:u}),s=l.className,f=l.cx,h=l.cy,p=_c(l,!0);return f===+f&&h===+h&&a===+a?X.createElement("path",Al({},p,{className:ui("recharts-symbols",s),transform:"translate(".concat(f,", ").concat(h,")"),d:(e=function(t){var e="symbol".concat(mu(t));return _l[e]||zu}(i),r=function(t,e){let r=null,n=Tu(i);function i(){let i;if(r||(r=i=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),i)return r=null,i+""||null}return t="function"==typeof t?t:bu(t||zu),e="function"==typeof e?e:bu(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:bu(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:bu(+t),i):e},i.context=function(t){return arguments.length?(r=null==t?null:t,i):r},i}().type(e).size(function(t,e,r){if("area"===e)return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var n=18*Tl;return 1.25*t*t*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}}(a,u,i)),r())})):null};function Nl(t){return Nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nl(t)}function Dl(){return Dl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Dl.apply(this,arguments)}function Il(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bl(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Fl(n.key),n)}}function Ll(t,e,r){return e=$l(e),function(t,e){if(e&&("object"===Nl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Rl()?Reflect.construct(e,r||[],$l(t).constructor):e.apply(t,r))}function Rl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Rl=function(){return!!t})()}function $l(t){return $l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$l(t)}function zl(t,e){return zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zl(t,e)}function Hl(t,e,r){return(e=Fl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fl(t){var e=function(t,e){if("object"!=Nl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Nl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Nl(e)?e:String(e)}Cl.registerSymbol=function(t,e){_l["symbol".concat(mu(t))]=e};var Ul=32,Vl=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ll(this,e,arguments)}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zl(t,e)}(e,G),r=e,n=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,r=16,n=Ul/6,i=Ul/3,o=t.inactive?e:t.color;if("plainline"===t.type)return X.createElement("line",{strokeWidth:4,fill:"none",stroke:o,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:r,x2:Ul,y2:r,className:"recharts-legend-icon"});if("line"===t.type)return X.createElement("path",{strokeWidth:4,fill:"none",stroke:o,d:"M0,".concat(r,"h").concat(i,"\n A").concat(n,",").concat(n,",0,1,1,").concat(2*i,",").concat(r,"\n H").concat(Ul,"M").concat(2*i,",").concat(r,"\n A").concat(n,",").concat(n,",0,1,1,").concat(i,",").concat(r),className:"recharts-legend-icon"});if("rect"===t.type)return X.createElement("path",{stroke:"none",fill:o,d:"M0,".concat(4,"h").concat(Ul,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(X.isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Il(Object(r),!0).forEach((function(e){Hl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Il(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return delete a.legendIcon,X.cloneElement(t.legendIcon,a)}return X.createElement(Cl,{fill:o,cx:r,cy:r,size:Ul,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,r=e.payload,n=e.iconSize,i=e.layout,o=e.formatter,a=e.inactiveColor,c={x:0,y:0,width:Ul,height:Ul},u={display:"horizontal"===i?"inline-block":"block",marginRight:10},l={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(e,r){var i=e.formatter||o,s=ui(Hl(Hl({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",e.inactive));if("none"===e.type)return null;var f=Hi(e.value)?null:e.value;Uc(!Hi(e.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var h=e.inactive?a:e.color;return X.createElement("li",Dl({className:s,style:u,key:"legend-item-".concat(r)},yc(t.props,e,r)),X.createElement(Lc,{width:n,height:n,viewBox:c,style:l},t.renderIcon(e)),X.createElement("span",{className:"recharts-legend-item-text",style:{color:h}},i?i(f,e,r):f))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,n=t.align;if(!e||!e.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return X.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],n&&Bl(r.prototype,n),i&&Bl(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();Hl(Vl,"displayName","Legend"),Hl(Vl,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ql=zo;var Wl=zo,Xl=Ho,Yl=na;var Kl=zo,Gl=function(){this.__data__=new ql,this.size=0},Zl=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Jl=function(t){return this.__data__.get(t)},Ql=function(t){return this.__data__.has(t)},ts=function(t,e){var r=this.__data__;if(r instanceof Wl){var n=r.__data__;if(!Xl||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Yl(n)}return r.set(t,e),this.size=r.size,this};function es(t){var e=this.__data__=new Kl(t);this.size=e.size}es.prototype.clear=Gl,es.prototype.delete=Zl,es.prototype.get=Jl,es.prototype.has=Ql,es.prototype.set=ts;var rs=es;var ns=na,is=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},os=function(t){return this.__data__.has(t)};function as(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new ns;++e<r;)this.add(t[e])}as.prototype.add=as.prototype.push=is,as.prototype.has=os;var cs=as;var us=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1};var ls=function(t,e){return t.has(e)},ss=cs,fs=us,hs=ls;var ps=function(t,e,r,n,i,o){var a=1&r,c=t.length,u=e.length;if(c!=u&&!(a&&u>c))return!1;var l=o.get(t),s=o.get(e);if(l&&s)return l==e&&s==t;var f=-1,h=!0,p=2&r?new ss:void 0;for(o.set(t,e),o.set(e,t);++f<c;){var d=t[f],y=e[f];if(n)var v=a?n(y,d,f,e,t,o):n(d,y,f,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(p){if(!fs(e,(function(t,e){if(!hs(p,e)&&(d===t||i(d,t,r,n,o)))return p.push(e)}))){h=!1;break}}else if(d!==y&&!i(d,y,r,n,o)){h=!1;break}}return o.delete(t),o.delete(e),h};var ds=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r};var ys=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r},vs=pi.Uint8Array,gs=Po,ms=ps,bs=ds,ws=ys,xs=di?di.prototype:void 0,Os=xs?xs.valueOf:void 0;var Ss=function(t,e,r,n,i,o,a){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new vs(t),new vs(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return gs(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var c=bs;case"[object Set]":var u=1&n;if(c||(c=ws),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;n|=2,a.set(t,e);var s=ms(c(t),c(e),n,i,o,a);return a.delete(t),s;case"[object Symbol]":if(Os)return Os.call(t)==Os.call(e)}return!1};var js=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t},As=js,Ps=li;var Ms=function(t,e,r){var n=e(t);return Ps(t)?n:As(n,r(t))};var Es=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o};var ks=Es,_s=function(){return[]},Ts=Object.prototype.propertyIsEnumerable,Cs=Object.getOwnPropertySymbols,Ns=Cs?function(t){return null==t?[]:(t=Object(t),ks(Cs(t),(function(e){return Ts.call(t,e)})))}:_s,Ds=Ns;var Is=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n},Bs=Ai,Ls=Pi;var Rs=function(t){return Ls(t)&&"[object Arguments]"==Bs(t)},$s=Pi,zs=Object.prototype,Hs=zs.hasOwnProperty,Fs=zs.propertyIsEnumerable,Us=Rs(function(){return arguments}())?Rs:function(t){return $s(t)&&Hs.call(t,"callee")&&!Fs.call(t,"callee")},Vs={exports:{}};var qs=function(){return!1};!function(t,e){var r=pi,n=qs,i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;t.exports=c}(Vs,Vs.exports);var Ws=Vs.exports,Xs=/^(?:0|[1-9]\d*)$/;var Ys=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&Xs.test(t))&&t>-1&&t%1==0&&t<e};var Ks=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Gs=Ai,Zs=Ks,Js=Pi,Qs={};Qs["[object Float32Array]"]=Qs["[object Float64Array]"]=Qs["[object Int8Array]"]=Qs["[object Int16Array]"]=Qs["[object Int32Array]"]=Qs["[object Uint8Array]"]=Qs["[object Uint8ClampedArray]"]=Qs["[object Uint16Array]"]=Qs["[object Uint32Array]"]=!0,Qs["[object Arguments]"]=Qs["[object Array]"]=Qs["[object ArrayBuffer]"]=Qs["[object Boolean]"]=Qs["[object DataView]"]=Qs["[object Date]"]=Qs["[object Error]"]=Qs["[object Function]"]=Qs["[object Map]"]=Qs["[object Number]"]=Qs["[object Object]"]=Qs["[object RegExp]"]=Qs["[object Set]"]=Qs["[object String]"]=Qs["[object WeakMap]"]=!1;var tf=function(t){return Js(t)&&Zs(t.length)&&!!Qs[Gs(t)]};var ef=function(t){return function(e){return t(e)}},rf={exports:{}};!function(t,e){var r=si,n=e&&!e.nodeType&&e,i=n&&t&&!t.nodeType&&t,o=i&&i.exports===n&&r.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a}(rf,rf.exports);var nf=rf.exports,of=tf,af=ef,cf=nf&&nf.isTypedArray,uf=cf?af(cf):of,lf=Is,sf=Us,ff=li,hf=Ws,pf=Ys,df=uf,yf=Object.prototype.hasOwnProperty;var vf=function(t,e){var r=ff(t),n=!r&&sf(t),i=!r&&!n&&hf(t),o=!r&&!n&&!i&&df(t),a=r||n||i||o,c=a?lf(t.length,String):[],u=c.length;for(var l in t)!e&&!yf.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||pf(l,u))||c.push(l);return c},gf=Object.prototype;var mf=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||gf)};var bf=function(t,e){return function(r){return t(e(r))}},wf=bf(Object.keys,Object),xf=mf,Of=wf,Sf=Object.prototype.hasOwnProperty;var jf=function(t){if(!xf(t))return Of(t);var e=[];for(var r in Object(t))Sf.call(t,r)&&"constructor"!=r&&e.push(r);return e},Af=zi,Pf=Ks;var Mf=function(t){return null!=t&&Pf(t.length)&&!Af(t)},Ef=vf,kf=jf,_f=Mf;var Tf=function(t){return _f(t)?Ef(t):kf(t)},Cf=Ms,Nf=Ds,Df=Tf;var If=function(t){return Cf(t,Df,Nf)},Bf=If,Lf=Object.prototype.hasOwnProperty;var Rf=function(t,e,r,n,i,o){var a=1&r,c=Bf(t),u=c.length;if(u!=Bf(e).length&&!a)return!1;for(var l=u;l--;){var s=c[l];if(!(a?s in e:Lf.call(e,s)))return!1}var f=o.get(t),h=o.get(e);if(f&&h)return f==e&&h==t;var p=!0;o.set(t,e),o.set(e,t);for(var d=a;++l<u;){var y=t[s=c[l]],v=e[s];if(n)var g=a?n(v,y,s,e,t,o):n(y,v,s,t,e,o);if(!(void 0===g?y===v||i(y,v,r,n,o):g)){p=!1;break}d||(d="constructor"==s)}if(p&&!d){var m=t.constructor,b=e.constructor;m==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(t),o.delete(e),p},$f=ao(pi,"DataView"),zf=ao(pi,"Promise"),Hf=ao(pi,"Set"),Ff=$f,Uf=Ho,Vf=zf,qf=Hf,Wf=ao(pi,"WeakMap"),Xf=Ai,Yf=Wi,Kf="[object Map]",Gf="[object Promise]",Zf="[object Set]",Jf="[object WeakMap]",Qf="[object DataView]",th=Yf(Ff),eh=Yf(Uf),rh=Yf(Vf),nh=Yf(qf),ih=Yf(Wf),oh=Xf;(Ff&&oh(new Ff(new ArrayBuffer(1)))!=Qf||Uf&&oh(new Uf)!=Kf||Vf&&oh(Vf.resolve())!=Gf||qf&&oh(new qf)!=Zf||Wf&&oh(new Wf)!=Jf)&&(oh=function(t){var e=Xf(t),r="[object Object]"==e?t.constructor:void 0,n=r?Yf(r):"";if(n)switch(n){case th:return Qf;case eh:return Kf;case rh:return Gf;case nh:return Zf;case ih:return Jf}return e});var ah=rs,ch=ps,uh=Ss,lh=Rf,sh=oh,fh=li,hh=Ws,ph=uf,dh="[object Arguments]",yh="[object Array]",vh="[object Object]",gh=Object.prototype.hasOwnProperty;var mh=function(t,e,r,n,i,o){var a=fh(t),c=fh(e),u=a?yh:sh(t),l=c?yh:sh(e),s=(u=u==dh?vh:u)==vh,f=(l=l==dh?vh:l)==vh,h=u==l;if(h&&hh(t)){if(!hh(e))return!1;a=!0,s=!1}if(h&&!s)return o||(o=new ah),a||ph(t)?ch(t,e,r,n,i,o):uh(t,e,u,r,n,i,o);if(!(1&r)){var p=s&&gh.call(t,"__wrapped__"),d=f&&gh.call(e,"__wrapped__");if(p||d){var y=p?t.value():t,v=d?e.value():e;return o||(o=new ah),i(y,v,r,n,o)}}return!!h&&(o||(o=new ah),lh(t,e,r,n,i,o))},bh=mh,wh=Pi;var xh=function t(e,r,n,i,o){return e===r||(null==e||null==r||!wh(e)&&!wh(r)?e!=e&&r!=r:bh(e,r,n,i,t,o))},Oh=rs,Sh=xh;var jh=function(t,e,r,n){var i=r.length,o=i,a=!n;if(null==t)return!o;for(t=Object(t);i--;){var c=r[i];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++i<o;){var u=(c=r[i])[0],l=t[u],s=c[1];if(a&&c[2]){if(void 0===l&&!(u in t))return!1}else{var f=new Oh;if(n)var h=n(l,s,u,t,e,f);if(!(void 0===h?Sh(s,l,3,n,f):h))return!1}}return!0},Ah=Ii;var Ph=function(t){return t==t&&!Ah(t)},Mh=Ph,Eh=Tf;var kh=function(t){for(var e=Eh(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,Mh(i)]}return e};var _h=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}},Th=jh,Ch=kh,Nh=_h;var Dh=function(t){var e=Ch(t);return 1==e.length&&e[0][2]?Nh(e[0][0],e[0][1]):function(r){return r===t||Th(r,t,e)}};var Ih=function(t,e){return null!=t&&e in Object(t)},Bh=Pa,Lh=Us,Rh=li,$h=Ys,zh=Ks,Hh=Ea;var Fh=function(t,e,r){for(var n=-1,i=(e=Bh(e,t)).length,o=!1;++n<i;){var a=Hh(e[n]);if(!(o=null!=t&&r(t,a)))break;t=t[a]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&zh(i)&&$h(a,i)&&(Rh(t)||Lh(t))},Uh=Ih,Vh=Fh;var qh=function(t,e){return null!=t&&Vh(t,e,Uh)},Wh=xh,Xh=Na,Yh=qh,Kh=Di,Gh=Ph,Zh=_h,Jh=Ea;var Qh=function(t,e){return Kh(t)&&Gh(e)?Zh(Jh(t),e):function(r){var n=Xh(r,t);return void 0===n&&n===e?Yh(r,t):Wh(e,n,3)}};var tp=function(t){return t};var ep=function(t){return function(e){return null==e?void 0:e[t]}},rp=Ta;var np=function(t){return function(e){return rp(e,t)}},ip=ep,op=np,ap=Di,cp=Ea;var up=Dh,lp=Qh,sp=tp,fp=li,hp=function(t){return ap(t)?ip(cp(t)):op(t)};var pp=function(t){return"function"==typeof t?t:null==t?sp:"object"==typeof t?fp(t)?lp(t[0],t[1]):up(t):hp(t)};var dp=function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1};var yp=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1},vp=dp,gp=function(t){return t!=t},mp=yp;var bp=function(t,e,r){return e==e?mp(t,e,r):vp(t,gp,r)},wp=bp;var xp=function(t,e){return!!(null==t?0:t.length)&&wp(t,e,0)>-1};var Op=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1};var Sp=Hf,jp=function(){},Ap=Sp&&1/ys(new Sp([,-0]))[1]==1/0?function(t){return new Sp(t)}:jp,Pp=cs,Mp=xp,Ep=Op,kp=ls,_p=Ap,Tp=ys;var Cp=function(t,e,r){var n=-1,i=Mp,o=t.length,a=!0,c=[],u=c;if(r)a=!1,i=Ep;else if(o>=200){var l=e?null:_p(t);if(l)return Tp(l);a=!1,i=kp,u=new Pp}else u=e?[]:c;t:for(;++n<o;){var s=t[n],f=e?e(s):s;if(s=r||0!==s?s:0,a&&f==f){for(var h=u.length;h--;)if(u[h]===f)continue t;e&&u.push(f),c.push(s)}else i(u,f,r)||(u!==c&&u.push(f),c.push(s))}return c},Np=pp,Dp=Cp;var Ip=function(t,e){return t&&t.length?Dp(t,Np(e)):[]},Bp=On(Ip);function Lp(t,e,r){return!0===e?Bp(t,r):Hi(e)?Bp(t,e):t}function Rp(t){return Rp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rp(t)}var $p=["ref"];function zp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Hp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zp(Object(r),!0).forEach((function(e){Yp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Fp(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Kp(n.key),n)}}function Up(t,e,r){return e=qp(e),function(t,e){if(e&&("object"===Rp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Wp(t)}(t,Vp()?Reflect.construct(e,r||[],qp(t).constructor):e.apply(t,r))}function Vp(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Vp=function(){return!!t})()}function qp(t){return qp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qp(t)}function Wp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xp(t,e){return Xp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xp(t,e)}function Yp(t,e,r){return(e=Kp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kp(t){var e=function(t,e){if("object"!=Rp(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Rp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Rp(e)?e:String(e)}function Gp(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Zp(t){return t.value}var Jp=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Yp(Wp(t=Up(this,e,[].concat(n))),"lastBoundingBox",{width:-1,height:-1}),t}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xp(t,e)}(e,G),r=e,i=[{key:"getWithHeight",value:function(t,e){var r=t.props.layout;return"vertical"===r&&tc(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e))}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Hp({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,i=n.layout,o=n.align,a=n.verticalAlign,c=n.margin,u=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===o&&"vertical"===i?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===o?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),Hp(Hp({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,n=e.width,i=e.height,o=e.wrapperStyle,a=e.payloadUniqBy,c=e.payload,u=Hp(Hp({position:"absolute",width:n||"auto",height:i||"auto"},this.getDefaultPosition(o)),o);return X.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(e){t.wrapperNode=e}},function(t,e){if(X.isValidElement(t))return X.cloneElement(t,e);if("function"==typeof t)return X.createElement(t,e);e.ref;var r=Gp(e,$p);return X.createElement(Vl,r)}(r,Hp(Hp({},this.props),{},{payload:Lp(c,a,Zp)})))}}])&&Fp(r.prototype,n),i&&Fp(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();Yp(Jp,"displayName","Legend"),Yp(Jp,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Qp=Us,td=li,ed=di?di.isConcatSpreadable:void 0;var rd=js,nd=function(t){return td(t)||Qp(t)||!!(ed&&t&&t[ed])};var id=function t(e,r,n,i,o){var a=-1,c=e.length;for(n||(n=nd),o||(o=[]);++a<c;){var u=e[a];r>0&&n(u)?r>1?t(u,r-1,n,i,o):rd(o,u):i||(o[o.length]=u)}return o};var od=function(t){return function(e,r,n){for(var i=-1,o=Object(e),a=n(e),c=a.length;c--;){var u=a[t?c:++i];if(!1===r(o[u],u,o))break}return e}},ad=od(),cd=Tf;var ud=function(t,e){return t&&ad(t,e,cd)},ld=Mf;var sd=function(t,e){return function(r,n){if(null==r)return r;if(!ld(r))return t(r,n);for(var i=r.length,o=e?i:-1,a=Object(r);(e?o--:++o<i)&&!1!==n(a[o],o,a););return r}}(ud),fd=sd,hd=Mf;var pd=function(t,e){var r=-1,n=hd(t)?Array(t.length):[];return fd(t,(function(t,i,o){n[++r]=e(t,i,o)})),n};var dd=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t},yd=ki;var vd=function(t,e){if(t!==e){var r=void 0!==t,n=null===t,i=t==t,o=yd(t),a=void 0!==e,c=null===e,u=e==e,l=yd(e);if(!c&&!l&&!o&&t>e||o&&a&&u&&!c&&!l||n&&a&&u||!r&&u||!i)return 1;if(!n&&!o&&!l&&t<e||l&&r&&i&&!n&&!o||c&&r&&i||!a&&i||!u)return-1}return 0};var gd=function(t,e,r){for(var n=-1,i=t.criteria,o=e.criteria,a=i.length,c=r.length;++n<a;){var u=vd(i[n],o[n]);if(u)return n>=c?u:u*("desc"==r[n]?-1:1)}return t.index-e.index},md=pa,bd=Ta,wd=pp,xd=pd,Od=dd,Sd=ef,jd=gd,Ad=tp,Pd=li;var Md=function(t,e,r){e=e.length?md(e,(function(t){return Pd(t)?function(e){return bd(e,1===t.length?t[0]:t)}:t})):[Ad];var n=-1;e=md(e,Sd(wd));var i=xd(t,(function(t,r,i){return{criteria:md(e,(function(e){return e(t)})),index:++n,value:t}}));return Od(i,(function(t,e){return jd(t,e,r)}))};var Ed=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)},kd=Math.max;var _d=function(t,e,r){return e=kd(void 0===e?t.length-1:e,0),function(){for(var n=arguments,i=-1,o=kd(n.length-e,0),a=Array(o);++i<o;)a[i]=n[e+i];i=-1;for(var c=Array(e+1);++i<e;)c[i]=n[i];return c[e]=r(a),Ed(t,this,c)}};var Td=function(t){return function(){return t}},Cd=ao,Nd=function(){try{var t=Cd(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Dd=Td,Id=Nd,Bd=Id?function(t,e){return Id(t,"toString",{configurable:!0,enumerable:!1,value:Dd(e),writable:!0})}:tp,Ld=Bd,Rd=Date.now;var $d=function(t){var e=0,r=0;return function(){var n=Rd(),i=16-(n-r);if(r=n,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Ld),zd=tp,Hd=_d,Fd=$d;var Ud=Po,Vd=Mf,qd=Ys,Wd=Ii;var Xd=function(t,e,r){if(!Wd(r))return!1;var n=typeof e;return!!("number"==n?Vd(r)&&qd(e,r.length):"string"==n&&e in r)&&Ud(r[e],t)},Yd=id,Kd=Md,Gd=Xd,Zd=On(function(t,e){return Fd(Hd(t,e,zd),t+"")}((function(t,e){if(null==t)return[];var r=e.length;return r>1&&Gd(t,e[0],e[1])?e=[]:r>2&&Gd(e[0],e[1],e[2])&&(e=[e[0]]),Kd(t,Yd(e,1),[])})));function Jd(t){return Jd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jd(t)}function Qd(){return Qd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Qd.apply(this,arguments)}function ty(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ey(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ey(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ey(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ry(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ny(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ry(Object(r),!0).forEach((function(e){iy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ry(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function iy(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Jd(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Jd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Jd(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function oy(t){return Array.isArray(t)&&ec(t[0])&&ec(t[1])?t.join(" ~ "):t}var ay=function(t){var e=t.separator,r=void 0===e?" : ":e,n=t.contentStyle,i=void 0===n?{}:n,o=t.itemStyle,a=void 0===o?{}:o,c=t.labelStyle,u=void 0===c?{}:c,l=t.payload,s=t.formatter,f=t.itemSorter,h=t.wrapperClassName,p=t.labelClassName,d=t.label,y=t.labelFormatter,v=t.accessibilityLayer,g=void 0!==v&&v,m=ny({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),b=ny({margin:0},u),w=!Ia(d),x=w?d:"",O=ui("recharts-default-tooltip",h),S=ui("recharts-tooltip-label",p);w&&y&&null!=l&&(x=y(d,l));var j=g?{role:"status","aria-live":"assertive"}:{};return X.createElement("div",Qd({className:O,style:m},j),X.createElement("p",{className:S,style:b},X.isValidElement(x)?x:"".concat(x)),function(){if(l&&l.length){var t=(f?Zd(l,f):l).map((function(t,e){if("none"===t.type)return null;var n=ny({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},a),i=t.formatter||s||oy,o=t.value,c=t.name,u=o,f=c;if(i&&null!=u&&null!=f){var h=i(o,c,t,e,l);if(Array.isArray(h)){var p=ty(h,2);u=p[0],f=p[1]}else u=h}return X.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:n},ec(f)?X.createElement("span",{className:"recharts-tooltip-item-name"},f):null,ec(f)?X.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,X.createElement("span",{className:"recharts-tooltip-item-value"},u),X.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return X.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function cy(t){return cy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cy(t)}function uy(t,e,r){return e=function(t){var e=function(t,e){if("object"!=cy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=cy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==cy(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ly="recharts-tooltip-wrapper",sy={visibility:"hidden"};function fy(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return ui(ly,uy(uy(uy(uy({},"".concat(ly,"-right"),tc(r)&&e&&tc(e.x)&&r>=e.x),"".concat(ly,"-left"),tc(r)&&e&&tc(e.x)&&r<e.x),"".concat(ly,"-bottom"),tc(n)&&e&&tc(e.y)&&n>=e.y),"".concat(ly,"-top"),tc(n)&&e&&tc(e.y)&&n<e.y))}function hy(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,i=t.offsetTopLeft,o=t.position,a=t.reverseDirection,c=t.tooltipDimension,u=t.viewBox,l=t.viewBoxDimension;if(o&&tc(o[n]))return o[n];var s=r[n]-c-i,f=r[n]+i;return e[n]?a[n]?s:f:a[n]?s<u[n]?Math.max(f,u[n]):Math.max(s,u[n]):f+c>u[n]+l?Math.max(s,u[n]):Math.max(f,u[n])}function py(t){return py="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},py(t)}function dy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?dy(Object(r),!0).forEach((function(e){Oy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vy(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Sy(n.key),n)}}function gy(t,e,r){return e=by(e),function(t,e){if(e&&("object"===py(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return wy(t)}(t,my()?Reflect.construct(e,r||[],by(t).constructor):e.apply(t,r))}function my(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(my=function(){return!!t})()}function by(t){return by=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},by(t)}function wy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xy(t,e){return xy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xy(t,e)}function Oy(t,e,r){return(e=Sy(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Sy(t){var e=function(t,e){if("object"!=py(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=py(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==py(e)?e:String(e)}var jy=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Oy(wy(t=gy(this,e,[].concat(n))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Oy(wy(t),"lastBoundingBox",{width:-1,height:-1}),Oy(wy(t),"handleKeyDown",(function(e){var r,n,i,o;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=t.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(i=null===(o=t.props.coordinate)||void 0===o?void 0:o.y)&&void 0!==i?i:0}})})),t}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xy(t,e)}(e,G),r=e,(n=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height)}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)===this.state.dismissedAtCoordinate.x&&(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,i=e.animationDuration,o=e.animationEasing,a=e.children,c=e.coordinate,u=e.hasPayload,l=e.isAnimationActive,s=e.offset,f=e.position,h=e.reverseDirection,p=e.useTranslate3d,d=e.viewBox,y=e.wrapperStyle,v=function(t){var e,r,n=t.allowEscapeViewBox,i=t.coordinate,o=t.offsetTopLeft,a=t.position,c=t.reverseDirection,u=t.tooltipBox,l=t.useTranslate3d,s=t.viewBox;return{cssProperties:u.height>0&&u.width>0&&i?function(t){var e=t.translateX,r=t.translateY;return{transform:t.useTranslate3d?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}({translateX:e=hy({allowEscapeViewBox:n,coordinate:i,key:"x",offsetTopLeft:o,position:a,reverseDirection:c,tooltipDimension:u.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=hy({allowEscapeViewBox:n,coordinate:i,key:"y",offsetTopLeft:o,position:a,reverseDirection:c,tooltipDimension:u.height,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:l}):sy,cssClasses:fy({translateX:e,translateY:r,coordinate:i})}}({allowEscapeViewBox:n,coordinate:c,offsetTopLeft:s,position:f,reverseDirection:h,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:p,viewBox:d}),g=v.cssClasses,m=v.cssProperties,b=yy(yy({transition:l&&r?"transform ".concat(i,"ms ").concat(o):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&u?"visible":"hidden",position:"absolute",top:0,left:0},y);return X.createElement("div",{tabIndex:-1,className:g,style:b,ref:function(e){t.wrapperNode=e}},a)}}])&&vy(r.prototype,n),i&&vy(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}(),Ay={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return Ay[t]},set:function(t,e){if("string"==typeof t)Ay[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach((function(e){Ay[e]=t[e]}))}}};function Py(t){return Py="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Py(t)}function My(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ey(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?My(Object(r),!0).forEach((function(e){Dy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):My(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ky(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Iy(n.key),n)}}function _y(t,e,r){return e=Cy(e),function(t,e){if(e&&("object"===Py(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ty()?Reflect.construct(e,r||[],Cy(t).constructor):e.apply(t,r))}function Ty(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ty=function(){return!!t})()}function Cy(t){return Cy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Cy(t)}function Ny(t,e){return Ny=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ny(t,e)}function Dy(t,e,r){return(e=Iy(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Iy(t){var e=function(t,e){if("object"!=Py(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Py(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Py(e)?e:String(e)}function By(t){return t.dataKey}var Ly=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),_y(this,e,arguments)}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ny(t,e)}(e,G),r=e,(n=[{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,i=e.animationDuration,o=e.animationEasing,a=e.content,c=e.coordinate,u=e.filterNull,l=e.isAnimationActive,s=e.offset,f=e.payload,h=e.payloadUniqBy,p=e.position,d=e.reverseDirection,y=e.useTranslate3d,v=e.viewBox,g=e.wrapperStyle,m=null!=f?f:[];u&&m.length&&(m=Lp(f.filter((function(e){return null!=e.value&&(!0!==e.hide||t.props.includeHidden)})),h,By));var b=m.length>0;return X.createElement(jy,{allowEscapeViewBox:n,animationDuration:i,animationEasing:o,isAnimationActive:l,active:r,coordinate:c,hasPayload:b,offset:s,position:p,reverseDirection:d,useTranslate3d:y,viewBox:v,wrapperStyle:g},function(t,e){return X.isValidElement(t)?X.cloneElement(t,e):"function"==typeof t?X.createElement(t,e):X.createElement(ay,e)}(a,Ey(Ey({},this.props),{},{payload:m})))}}])&&ky(r.prototype,n),i&&ky(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();Dy(Ly,"displayName","Tooltip"),Dy(Ly,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ay.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Ry=pi,$y=/\s/;var zy=function(t){for(var e=t.length;e--&&$y.test(t.charAt(e)););return e},Hy=zy,Fy=/^\s+/;var Uy=function(t){return t?t.slice(0,Hy(t)+1).replace(Fy,""):t},Vy=Uy,qy=Ii,Wy=ki,Xy=/^[-+]0x[0-9a-f]+$/i,Yy=/^0b[01]+$/i,Ky=/^0o[0-7]+$/i,Gy=parseInt;var Zy=function(t){if("number"==typeof t)return t;if(Wy(t))return NaN;if(qy(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=qy(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Vy(t);var r=Yy.test(t);return r||Ky.test(t)?Gy(t.slice(2),r?2:8):Xy.test(t)?NaN:+t},Jy=Ii,Qy=function(){return Ry.Date.now()},tv=Zy,ev=Math.max,rv=Math.min;var nv=function(t,e,r){var n,i,o,a,c,u,l=0,s=!1,f=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var r=n,o=i;return n=i=void 0,l=e,a=t.apply(o,r)}function d(t){var r=t-u;return void 0===u||r>=e||r<0||f&&t-l>=o}function y(){var t=Qy();if(d(t))return v(t);c=setTimeout(y,function(t){var r=e-(t-u);return f?rv(r,o-(t-l)):r}(t))}function v(t){return c=void 0,h&&n?p(t):(n=i=void 0,a)}function g(){var t=Qy(),r=d(t);if(n=arguments,i=this,u=t,r){if(void 0===c)return function(t){return l=t,c=setTimeout(y,e),s?p(t):a}(u);if(f)return clearTimeout(c),c=setTimeout(y,e),p(u)}return void 0===c&&(c=setTimeout(y,e)),a}return e=tv(e)||0,Jy(r)&&(s=!!r.leading,o=(f="maxWait"in r)?ev(tv(r.maxWait)||0,e):o,h="trailing"in r?!!r.trailing:h),g.cancel=function(){void 0!==c&&clearTimeout(c),l=0,n=u=i=c=void 0},g.flush=function(){return void 0===c?a:v(Qy())},g},iv=nv,ov=Ii;var av=On((function(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return ov(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),iv(t,e,{leading:n,maxWait:e,trailing:i})}));function cv(t){return cv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cv(t)}function uv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function lv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?uv(Object(r),!0).forEach((function(e){sv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sv(t,e,r){return e=function(t){var e=function(t,e){if("object"!=cv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=cv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==cv(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fv(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return hv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hv(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hv(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var pv=Z((function(t,e){var r=t.aspect,n=t.initialDimension,i=void 0===n?{width:-1,height:-1}:n,o=t.width,a=void 0===o?"100%":o,c=t.height,u=void 0===c?"100%":c,l=t.minWidth,s=void 0===l?0:l,f=t.minHeight,h=t.maxHeight,p=t.children,d=t.debounce,y=void 0===d?0:d,v=t.id,g=t.className,m=t.onResize,b=t.style,w=void 0===b?{}:b,x=J(null),O=J();O.current=m,Q(e,(function(){return Object.assign(x.current,{get current(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),x.current}})}));var S=fv(tt({containerWidth:i.width,containerHeight:i.height}),2),j=S[0],A=S[1],P=et((function(t,e){A((function(r){var n=Math.round(t),i=Math.round(e);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}}))}),[]);rt((function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,i=r.height;P(n,i),null===(e=O.current)||void 0===e||e.call(O,n,i)};y>0&&(t=av(t,y,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=x.current.getBoundingClientRect(),n=r.width,i=r.height;return P(n,i),e.observe(x.current),function(){e.disconnect()}}),[P,y]);var M=nt((function(){var t=j.containerWidth,e=j.containerHeight;if(t<0||e<0)return null;Uc(Qa(a)||Qa(u),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,u),Uc(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=Qa(a)?t:a,i=Qa(u)?e:u;r&&r>0&&(n?i=n/r:i&&(n=i*r),h&&i>h&&(i=h)),Uc(n>0||i>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",n,i,a,u,s,f,r);var o=!Array.isArray(p)&&qa.isElement(p)&&xc(p.type).endsWith("Chart");return X.Children.map(p,(function(t){return qa.isElement(t)?it(t,lv({width:n,height:i},o?{style:lv({height:"100%",width:"100%",maxHeight:i,maxWidth:n},t.props.style)}:{})):t}))}),[r,p,u,h,f,s,j,a]);return X.createElement("div",{id:v?"".concat(v):void 0,className:ui("recharts-responsive-container",g),style:lv(lv({},w),{},{width:a,height:u,minWidth:s,minHeight:f,maxHeight:h}),ref:x},M)})),dv=function(t){return null};function yv(t){return yv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yv(t)}function vv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function gv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vv(Object(r),!0).forEach((function(e){mv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mv(t,e,r){return e=function(t){var e=function(t,e){if("object"!=yv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=yv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==yv(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}dv.displayName="Cell";var bv={widthCache:{},cacheCount:0},wv={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},xv="recharts_measurement_span";var Ov=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||Ay.isSsr)return{width:0,height:0};var r,n=(r=gv({},e),Object.keys(r).forEach((function(t){r[t]||delete r[t]})),r),i=JSON.stringify({text:t,copyStyle:n});if(bv.widthCache[i])return bv.widthCache[i];try{var o=document.getElementById(xv);o||((o=document.createElement("span")).setAttribute("id",xv),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=gv(gv({},wv),n);Object.assign(o.style,a),o.textContent="".concat(t);var c=o.getBoundingClientRect(),u={width:c.width,height:c.height};return bv.widthCache[i]=u,++bv.cacheCount>2e3&&(bv.cacheCount=0,bv.widthCache={}),u}catch(t){return{width:0,height:0}}};function Sv(t){return Sv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sv(t)}function jv(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Av(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Av(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Av(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Pv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Mv(n.key),n)}}function Mv(t){var e=function(t,e){if("object"!=Sv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Sv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Sv(e)?e:String(e)}var Ev=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,kv=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,_v=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Tv=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Cv={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Nv=Object.keys(Cv),Dv="NaN";var Iv=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),""===r||_v.test(r)||(this.num=NaN,this.unit=""),Nv.includes(r)&&(this.num=function(t,e){return t*Cv[e]}(e,r),this.unit="px")}var e,r,n;return e=t,n=[{key:"parse",value:function(e){var r,n=jv(null!==(r=Tv.exec(e))&&void 0!==r?r:[],3),i=n[1],o=n[2];return new t(parseFloat(i),null!=o?o:"")}}],(r=[{key:"add",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&Pv(e.prototype,r),n&&Pv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Bv(t){if(t.includes(Dv))return Dv;for(var e=t;e.includes("*")||e.includes("/");){var r,n=jv(null!==(r=Ev.exec(e))&&void 0!==r?r:[],4),i=n[1],o=n[2],a=n[3],c=Iv.parse(null!=i?i:""),u=Iv.parse(null!=a?a:""),l="*"===o?c.multiply(u):c.divide(u);if(l.isNaN())return Dv;e=e.replace(Ev,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=jv(null!==(s=kv.exec(e))&&void 0!==s?s:[],4),h=f[1],p=f[2],d=f[3],y=Iv.parse(null!=h?h:""),v=Iv.parse(null!=d?d:""),g="+"===p?y.add(v):y.subtract(v);if(g.isNaN())return Dv;e=e.replace(kv,g.toString())}return e}var Lv=/\(([^()]*)\)/;function Rv(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=jv(Lv.exec(e),2)[1];e=e.replace(Lv,Bv(r))}return e}(e),e=Bv(e)}function $v(t){var e=function(t){try{return Rv(t)}catch(t){return Dv}}(t.slice(5,-1));return e===Dv?"":e}var zv=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Hv=["dx","dy","angle","className","breakAll"];function Fv(){return Fv=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Fv.apply(this,arguments)}function Uv(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Vv(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return qv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qv(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qv(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Wv=/[ \f\n\r\t\v\u2028\u2029]+/,Xv=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var i=[];return Ia(e)||(i=r?e.toString().split(""):e.toString().split(Wv)),{wordsWithComputedWidth:i.map((function(t){return{word:t,width:Ov(t,n).width}})),spaceWidth:r?0:Ov(" ",n).width}}catch(t){return null}},Yv=function(t){return[{words:Ia(t)?[]:t.toString().split(Wv)}]},Kv=function(t){var e=t.width,r=t.scaleToFit,n=t.children,i=t.style,o=t.breakAll,a=t.maxLines;if((e||r)&&!Ay.isSsr){var c=Xv({breakAll:o,children:n,style:i});return c?function(t,e,r,n,i){var o=t.maxLines,a=t.children,c=t.style,u=t.breakAll,l=tc(o),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var o=e.word,a=e.width,c=t[t.length-1];if(c&&(null==n||i||c.width+a+r<Number(n)))c.words.push(o),c.width+=a+r;else{var u={words:[o],width:a};t.push(u)}return t}),[])},h=f(e);if(!l)return h;for(var p,d=function(t){var e=s.slice(0,t),r=Xv({breakAll:u,style:c,children:e+"…"}).wordsWithComputedWidth,i=f(r),a=i.length>o||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(i).width>Number(n);return[a,i]},y=0,v=s.length-1,g=0;y<=v&&g<=s.length-1;){var m=Math.floor((y+v)/2),b=Vv(d(m-1),2),w=b[0],x=b[1],O=Vv(d(m),1)[0];if(w||O||(y=m+1),w&&O&&(v=m-1),!w&&O){p=x;break}g++}return p||h}({breakAll:o,children:n,maxLines:a,style:i},c.wordsWithComputedWidth,c.spaceWidth,e,r):Yv(n)}return Yv(n)},Gv="#808080",Zv=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,i=void 0===n?0:n,o=t.lineHeight,a=void 0===o?"1em":o,c=t.capHeight,u=void 0===c?"0.71em":c,l=t.scaleToFit,s=void 0!==l&&l,f=t.textAnchor,h=void 0===f?"start":f,p=t.verticalAnchor,d=void 0===p?"end":p,y=t.fill,v=void 0===y?Gv:y,g=Uv(t,zv),m=nt((function(){return Kv({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:s,style:g.style,width:g.width})}),[g.breakAll,g.children,g.maxLines,s,g.style,g.width]),b=g.dx,w=g.dy,x=g.angle,O=g.className,S=g.breakAll,j=Uv(g,Hv);if(!ec(r)||!ec(i))return null;var A,P=r+(tc(b)?b:0),M=i+(tc(w)?w:0);switch(d){case"start":A=$v("calc(".concat(u,")"));break;case"middle":A=$v("calc(".concat((m.length-1)/2," * -").concat(a," + (").concat(u," / 2))"));break;default:A=$v("calc(".concat(m.length-1," * -").concat(a,")"))}var E=[];if(s){var k=m[0].width,_=g.width;E.push("scale(".concat((tc(_)?_/k:1)/k,")"))}return x&&E.push("rotate(".concat(x,", ").concat(P,", ").concat(M,")")),E.length&&(j.transform=E.join(" ")),X.createElement("text",Fv({},_c(j,!0),{x:P,y:M,className:ui("recharts-text",O),textAnchor:h,fill:v.includes("url")?Gv:v}),m.map((function(t,e){var r=t.words.join(S?"":" ");return X.createElement("tspan",{x:P,dy:0===e?A:a,key:r},r)})))};function Jv(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Qv(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function tg(t){let e,r,n;function i(t,n,i=0,o=t.length){if(i<o){if(0!==e(n,n))return o;do{const e=i+o>>>1;r(t[e],n)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=Jv,r=(e,r)=>Jv(t(e),r),n=(e,r)=>t(e)-r):(e=t===Jv||t===Qv?t:eg,r=t,n=t),{left:i,center:function(t,e,r=0,o=t.length){const a=i(t,e,r,o-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,i=0,o=t.length){if(i<o){if(0!==e(n,n))return o;do{const e=i+o>>>1;r(t[e],n)<=0?i=e+1:o=e}while(i<o)}return i}}}function eg(){return 0}function rg(t){return null===t?NaN:+t}const ng=tg(Jv).right;tg(rg).center;class ig extends Map{constructor(t,e=ag){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(og(this,t))}has(t){return super.has(og(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){const n=e(r);t.has(n)&&(r=t.get(n),t.delete(n));return r}(this,t))}}function og({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function ag(t){return null!==t&&"object"==typeof t?t.valueOf():t}function cg(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}const ug=Math.sqrt(50),lg=Math.sqrt(10),sg=Math.sqrt(2);function fg(t,e,r){const n=(e-t)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),a=o>=ug?10:o>=lg?5:o>=sg?2:1;let c,u,l;return i<0?(l=Math.pow(10,-i)/a,c=Math.round(t*l),u=Math.round(e*l),c/l<t&&++c,u/l>e&&--u,l=-l):(l=Math.pow(10,i)*a,c=Math.round(t/l),u=Math.round(e/l),c*l<t&&++c,u*l>e&&--u),u<c&&.5<=r&&r<2?fg(t,e,2*r):[c,u,l]}function hg(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[i,o,a]=n?fg(e,t,r):fg(t,e,r);if(!(o>=i))return[];const c=o-i+1,u=new Array(c);if(n)if(a<0)for(let t=0;t<c;++t)u[t]=(o-t)/-a;else for(let t=0;t<c;++t)u[t]=(o-t)*a;else if(a<0)for(let t=0;t<c;++t)u[t]=(i+t)/-a;else for(let t=0;t<c;++t)u[t]=(i+t)*a;return u}function pg(t,e,r){return fg(t=+t,e=+e,r=+r)[2]}function dg(t,e,r){r=+r;const n=(e=+e)<(t=+t),i=n?pg(e,t,r):pg(t,e,r);return(n?-1:1)*(i<0?1/-i:i)}function yg(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function vg(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function gg(t,e,r=0,n=1/0,i){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(i=void 0===i?cg:function(t=Jv){if(t===Jv)return cg;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(i);n>r;){if(n-r>600){const o=n-r+1,a=e-r+1,c=Math.log(o),u=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*u*(o-u)/o)*(a-o/2<0?-1:1);gg(t,e,Math.max(r,Math.floor(e-a*u/o+l)),Math.min(n,Math.floor(e+(o-a)*u/o+l)),i)}const o=t[e];let a=r,c=n;for(mg(t,r,e),i(t[n],o)>0&&mg(t,r,n);a<c;){for(mg(t,a,c),++a,--c;i(t[a],o)<0;)++a;for(;i(t[c],o)>0;)--c}0===i(t[r],o)?mg(t,r,c):(++c,mg(t,c,n)),c<=e&&(r=c+1),e<=c&&(n=c-1)}return t}function mg(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function bg(t,e,r=rg){if((n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,o=Math.floor(i),a=+r(t[o],o,t);return a+(+r(t[o+1],o+1,t)-a)*(i-o)}}function wg(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function xg(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}const Og=Symbol("implicit");function Sg(){var t=new ig,e=[],r=[],n=Og;function i(i){let o=t.get(i);if(void 0===o){if(n!==Og)return n;t.set(i,o=e.push(i)-1)}return r[o%r.length]}return i.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new ig;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return i},i.range=function(t){return arguments.length?(r=Array.from(t),i):r.slice()},i.unknown=function(t){return arguments.length?(n=t,i):n},i.copy=function(){return Sg(e,r).unknown(n)},wg.apply(i,arguments),i}function jg(){var t,e,r=Sg().unknown(void 0),n=r.domain,i=r.range,o=0,a=1,c=!1,u=0,l=0,s=.5;function f(){var r=n().length,f=a<o,h=f?a:o,p=f?o:a;t=(p-h)/Math.max(1,r-u+2*l),c&&(t=Math.floor(t)),h+=(p-h-t*(r-u))*s,e=t*(1-u),c&&(h=Math.round(h),e=Math.round(e));var d=function(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),o=new Array(i);++n<i;)o[n]=t+n*r;return o}(r).map((function(e){return h+t*e}));return i(f?d.reverse():d)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),f()):n()},r.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,f()):[o,a]},r.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,c=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(c=!!t,f()):c},r.padding=function(t){return arguments.length?(u=Math.min(1,l=+t),f()):u},r.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),f()):u},r.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},r.copy=function(){return jg(n(),[o,a]).round(c).paddingInner(u).paddingOuter(l).align(s)},wg.apply(f(),arguments)}function Ag(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Ag(e())},t}function Pg(){return Ag(jg.apply(null,arguments).paddingInner(1))}function Mg(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Eg(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function kg(){}var _g=.7,Tg=1/_g,Cg="\\s*([+-]?\\d+)\\s*",Ng="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Dg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ig=/^#([0-9a-f]{3,8})$/,Bg=new RegExp(`^rgb\\(${Cg},${Cg},${Cg}\\)$`),Lg=new RegExp(`^rgb\\(${Dg},${Dg},${Dg}\\)$`),Rg=new RegExp(`^rgba\\(${Cg},${Cg},${Cg},${Ng}\\)$`),$g=new RegExp(`^rgba\\(${Dg},${Dg},${Dg},${Ng}\\)$`),zg=new RegExp(`^hsl\\(${Ng},${Dg},${Dg}\\)$`),Hg=new RegExp(`^hsla\\(${Ng},${Dg},${Dg},${Ng}\\)$`),Fg={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};function Ug(){return this.rgb().formatHex()}function Vg(){return this.rgb().formatRgb()}function qg(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Ig.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?Wg(e):3===r?new Kg(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?Xg(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?Xg(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Bg.exec(t))?new Kg(e[1],e[2],e[3],1):(e=Lg.exec(t))?new Kg(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Rg.exec(t))?Xg(e[1],e[2],e[3],e[4]):(e=$g.exec(t))?Xg(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=zg.exec(t))?em(e[1],e[2]/100,e[3]/100,1):(e=Hg.exec(t))?em(e[1],e[2]/100,e[3]/100,e[4]):Fg.hasOwnProperty(t)?Wg(Fg[t]):"transparent"===t?new Kg(NaN,NaN,NaN,0):null}function Wg(t){return new Kg(t>>16&255,t>>8&255,255&t,1)}function Xg(t,e,r,n){return n<=0&&(t=e=r=NaN),new Kg(t,e,r,n)}function Yg(t,e,r,n){return 1===arguments.length?((i=t)instanceof kg||(i=qg(i)),i?new Kg((i=i.rgb()).r,i.g,i.b,i.opacity):new Kg):new Kg(t,e,r,null==n?1:n);var i}function Kg(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function Gg(){return`#${tm(this.r)}${tm(this.g)}${tm(this.b)}`}function Zg(){const t=Jg(this.opacity);return`${1===t?"rgb(":"rgba("}${Qg(this.r)}, ${Qg(this.g)}, ${Qg(this.b)}${1===t?")":`, ${t})`}`}function Jg(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Qg(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function tm(t){return((t=Qg(t))<16?"0":"")+t.toString(16)}function em(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new nm(t,e,r,n)}function rm(t){if(t instanceof nm)return new nm(t.h,t.s,t.l,t.opacity);if(t instanceof kg||(t=qg(t)),!t)return new nm;if(t instanceof nm)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),o=Math.max(e,r,n),a=NaN,c=o-i,u=(o+i)/2;return c?(a=e===o?(r-n)/c+6*(r<n):r===o?(n-e)/c+2:(e-r)/c+4,c/=u<.5?o+i:2-o-i,a*=60):c=u>0&&u<1?0:a,new nm(a,c,u,t.opacity)}function nm(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function im(t){return(t=(t||0)%360)<0?t+360:t}function om(t){return Math.max(0,Math.min(1,t||0))}function am(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Mg(kg,qg,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ug,formatHex:Ug,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return rm(this).formatHsl()},formatRgb:Vg,toString:Vg}),Mg(Kg,Yg,Eg(kg,{brighter(t){return t=null==t?Tg:Math.pow(Tg,t),new Kg(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?_g:Math.pow(_g,t),new Kg(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Kg(Qg(this.r),Qg(this.g),Qg(this.b),Jg(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:Gg,formatHex:Gg,formatHex8:function(){return`#${tm(this.r)}${tm(this.g)}${tm(this.b)}${tm(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Zg,toString:Zg})),Mg(nm,(function(t,e,r,n){return 1===arguments.length?rm(t):new nm(t,e,r,null==n?1:n)}),Eg(kg,{brighter(t){return t=null==t?Tg:Math.pow(Tg,t),new nm(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?_g:Math.pow(_g,t),new nm(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new Kg(am(t>=240?t-240:t+120,i,n),am(t,i,n),am(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new nm(im(this.h),om(this.s),om(this.l),Jg(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 t=Jg(this.opacity);return`${1===t?"hsl(":"hsla("}${im(this.h)}, ${100*om(this.s)}%, ${100*om(this.l)}%${1===t?")":`, ${t})`}`}}));var cm=t=>()=>t;function um(t){return 1==(t=+t)?lm:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):cm(isNaN(e)?r:e)}}function lm(t,e){var r=e-t;return r?function(t,e){return function(r){return t+r*e}}(t,r):cm(isNaN(t)?e:t)}var sm=function t(e){var r=um(e);function n(t,e){var n=r((t=Yg(t)).r,(e=Yg(e)).r),i=r(t.g,e.g),o=r(t.b,e.b),a=lm(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function fm(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(r=0;r<n;++r)i[r]=t[r]*(1-o)+e[r]*o;return i}}function hm(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,o=new Array(i),a=new Array(n);for(r=0;r<i;++r)o[r]=bm(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<i;++r)a[r]=o[r](t);return a}}function pm(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function dm(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function ym(t,e){var r,n={},i={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=bm(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}var vm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gm=new RegExp(vm.source,"g");function mm(t,e){var r,n,i,o=vm.lastIndex=gm.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(r=vm.exec(t))&&(n=gm.exec(e));)(i=n.index)>o&&(i=e.slice(o,i),c[a]?c[a]+=i:c[++a]=i),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,u.push({i:a,x:dm(r,n)})),o=gm.lastIndex;return o<e.length&&(i=e.slice(o),c[a]?c[a]+=i:c[++a]=i),c.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var r,n=0;n<e;++n)c[(r=u[n]).i]=r.x(t);return c.join("")})}function bm(t,e){var r,n=typeof e;return null==e||"boolean"===n?cm(e):("number"===n?dm:"string"===n?(r=qg(e))?(e=r,sm):mm:e instanceof qg?sm:e instanceof Date?pm:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?fm:Array.isArray(e)?hm:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?ym:dm)(t,e)}function wm(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function xm(t,e){void 0===e&&(e=t,t=bm);for(var r=0,n=e.length-1,i=e[0],o=new Array(n<0?0:n);r<n;)o[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return o[e](t-e)}}function Om(t){return+t}var Sm=[0,1];function jm(t){return t}function Am(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function Pm(t,e,r){var n=t[0],i=t[1],o=e[0],a=e[1];return i<n?(n=Am(i,n),o=r(a,o)):(n=Am(n,i),o=r(o,a)),function(t){return o(n(t))}}function Mm(t,e,r){var n=Math.min(t.length,e.length)-1,i=new Array(n),o=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)i[a]=Am(t[a],t[a+1]),o[a]=r(e[a],e[a+1]);return function(e){var r=ng(t,e,1,n)-1;return o[r](i[r](e))}}function Em(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function km(){var t,e,r,n,i,o,a=Sm,c=Sm,u=bm,l=jm;function s(){var t=Math.min(a.length,c.length);return l!==jm&&(l=function(t,e){var r;return t>e&&(r=t,t=e,e=r),function(r){return Math.max(t,Math.min(e,r))}}(a[0],a[t-1])),n=t>2?Mm:Pm,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?r:(i||(i=n(a.map(t),c,u)))(t(l(e)))}return f.invert=function(r){return l(e((o||(o=n(c,a.map(t),dm)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Om),s()):a.slice()},f.range=function(t){return arguments.length?(c=Array.from(t),s()):c.slice()},f.rangeRound=function(t){return c=Array.from(t),u=wm,s()},f.clamp=function(t){return arguments.length?(l=!!t||jm,s()):l!==jm},f.interpolate=function(t){return arguments.length?(u=t,s()):u},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function _m(){return km()(jm,jm)}function Tm(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function Cm(t){return(t=Tm(Math.abs(t)))?t[1]:NaN}var Nm,Dm=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Im(t){if(!(e=Dm.exec(t)))throw new Error("invalid format: "+t);var e;return new Bm({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Bm(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Lm(t,e){var r=Tm(t,e);if(!r)return t+"";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")}Im.prototype=Bm.prototype,Bm.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Rm={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Lm(100*t,e),r:Lm,s:function(t,e){var r=Tm(t,e);if(!r)return t+"";var n=r[0],i=r[1],o=i-(Nm=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Tm(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function $m(t){return t}var zm,Hm,Fm,Um=Array.prototype.map,Vm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function qm(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?$m:(e=Um.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var i=t.length,o=[],a=0,c=e[0],u=0;i>0&&c>0&&(u+c+1>n&&(c=Math.max(1,n-u)),o.push(t.substring(i-=c,i+c)),!((u+=c+1)>n));)c=e[a=(a+1)%e.length];return o.reverse().join(r)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?$m:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Um.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=Im(t)).fill,r=t.align,f=t.sign,h=t.symbol,p=t.zero,d=t.width,y=t.comma,v=t.precision,g=t.trim,m=t.type;"n"===m?(y=!0,m="g"):Rm[m]||(void 0===v&&(v=12),g=!0,m="g"),(p||"0"===e&&"="===r)&&(p=!0,e="0",r="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===h?o:/[%p]/.test(m)?u:"",x=Rm[m],O=/[defgprs%]/.test(m);function S(t){var i,o,u,h=b,S=w;if("c"===m)S=x(t)+S,t="";else{var j=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:x(Math.abs(t),v),g&&(t=function(t){t:for(var e,r=t.length,n=1,i=-1;n<r;++n)switch(t[n]){case".":i=e=n;break;case"0":0===i&&(i=n),e=n;break;default:if(!+t[n])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),j&&0==+t&&"+"!==f&&(j=!1),h=(j?"("===f?f:l:"-"===f||"("===f?"":f)+h,S=("s"===m?Vm[8+Nm/3]:"")+S+(j&&"("===f?")":""),O)for(i=-1,o=t.length;++i<o;)if(48>(u=t.charCodeAt(i))||u>57){S=(46===u?a+t.slice(i+1):t.slice(i))+S,t=t.slice(0,i);break}}y&&!p&&(t=n(t,1/0));var A=h.length+t.length+S.length,P=A<d?new Array(d-A+1).join(e):"";switch(y&&p&&(t=n(P+t,P.length?d-S.length:1/0),P=""),r){case"<":t=h+t+S+P;break;case"=":t=h+P+t+S;break;case"^":t=P.slice(0,A=P.length>>1)+h+t+S+P.slice(A);break;default:t=P+h+t+S}return c(t)}return v=void 0===v?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return t+""},S}return{format:f,formatPrefix:function(t,e){var r=f(((t=Im(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(Cm(e)/3))),i=Math.pow(10,-n),o=Vm[8+n/3];return function(t){return r(i*t)+o}}}}function Wm(t,e,r,n){var i,o=dg(t,e,r);switch((n=Im(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Cm(e)/3)))-Cm(Math.abs(t)))}(o,a))||(n.precision=i),Fm(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Cm(e)-Cm(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(t){return Math.max(0,-Cm(Math.abs(t)))}(o))||(n.precision=i-2*("%"===n.type))}return Hm(n)}function Xm(t){var e=t.domain;return t.ticks=function(t){var r=e();return hg(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return Wm(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,i,o=e(),a=0,c=o.length-1,u=o[a],l=o[c],s=10;for(l<u&&(i=u,u=l,l=i,i=a,a=c,c=i);s-- >0;){if((i=pg(u,l,r))===n)return o[a]=u,o[c]=l,e(o);if(i>0)u=Math.floor(u/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,l=Math.floor(l*i)/i}n=i}return t},t}function Ym(){var t=_m();return t.copy=function(){return Em(t,Ym())},wg.apply(t,arguments),Xm(t)}function Km(t,e){var r,n=0,i=(t=t.slice()).length-1,o=t[n],a=t[i];return a<o&&(r=n,n=i,i=r,r=o,o=a,a=r),t[n]=e.floor(o),t[i]=e.ceil(a),t}function Gm(t){return Math.log(t)}function Zm(t){return Math.exp(t)}function Jm(t){return-Math.log(-t)}function Qm(t){return-Math.exp(-t)}function tb(t){return isFinite(t)?+("1e"+t):t<0?0:t}function eb(t){return(e,r)=>-t(-e,r)}function rb(t){const e=t(Gm,Zm),r=e.domain;let n,i,o=10;function a(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(o),i=function(t){return 10===t?tb:t===Math.E?Math.exp:e=>Math.pow(t,e)}(o),r()[0]<0?(n=eb(n),i=eb(i),t(Jm,Qm)):t(Gm,Zm),e}return e.base=function(t){return arguments.length?(o=+t,a()):o},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],c=e[e.length-1];const u=c<a;u&&([a,c]=[c,a]);let l,s,f=n(a),h=n(c);const p=null==t?10:+t;let d=[];if(!(o%1)&&h-f<p){if(f=Math.floor(f),h=Math.ceil(h),a>0){for(;f<=h;++f)for(l=1;l<o;++l)if(s=f<0?l/i(-f):l*i(f),!(s<a)){if(s>c)break;d.push(s)}}else for(;f<=h;++f)for(l=o-1;l>=1;--l)if(s=f>0?l/i(-f):l*i(f),!(s<a)){if(s>c)break;d.push(s)}2*d.length<p&&(d=hg(a,c,p))}else d=hg(f,h,Math.min(h-f,p)).map(i);return u?d.reverse():d},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===o?"s":","),"function"!=typeof r&&(o%1||null!=(r=Im(r)).precision||(r.trim=!0),r=Hm(r)),t===1/0)return r;const a=Math.max(1,o*t/e.ticks().length);return t=>{let e=t/i(Math.round(n(t)));return e*o<o-.5&&(e*=o),e<=a?r(t):""}},e.nice=()=>r(Km(r(),{floor:t=>i(Math.floor(n(t))),ceil:t=>i(Math.ceil(n(t)))})),e}function nb(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function ib(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function ob(t){var e=1,r=t(nb(e),ib(e));return r.constant=function(r){return arguments.length?t(nb(e=+r),ib(e)):e},Xm(r)}function ab(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function cb(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function ub(t){return t<0?-t*t:t*t}function lb(t){var e=t(jm,jm),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(jm,jm):.5===r?t(cb,ub):t(ab(r),ab(1/r)):r},Xm(e)}function sb(){var t=lb(km());return t.copy=function(){return Em(t,sb()).exponent(t.exponent())},wg.apply(t,arguments),t}function fb(t){return Math.sign(t)*t*t}zm=qm({thousands:",",grouping:[3],currency:["$",""]}),Hm=zm.format,Fm=zm.formatPrefix;const hb=new Date,pb=new Date;function db(t,e,r,n){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),i.round=t=>{const e=i(t),r=i.ceil(t);return t-e<r-t?e:r},i.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),i.range=(r,n,o)=>{const a=[];if(r=i.ceil(r),o=null==o?1:Math.floor(o),!(r<n&&o>0))return a;let c;do{a.push(c=new Date(+r)),e(r,o),t(r)}while(c<r&&r<n);return a},i.filter=r=>db((e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)}),((t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););})),r&&(i.count=(e,n)=>(hb.setTime(+e),pb.setTime(+n),t(hb),t(pb),Math.floor(r(hb,pb))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(n?e=>n(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}const yb=db((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));yb.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?db((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):yb:null),yb.range;const vb=1e3,gb=6e4,mb=36e5,bb=864e5,wb=6048e5,xb=2592e6,Ob=31536e6,Sb=db((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*vb)}),((t,e)=>(e-t)/vb),(t=>t.getUTCSeconds()));Sb.range;const jb=db((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*vb)}),((t,e)=>{t.setTime(+t+e*gb)}),((t,e)=>(e-t)/gb),(t=>t.getMinutes()));jb.range;const Ab=db((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*gb)}),((t,e)=>(e-t)/gb),(t=>t.getUTCMinutes()));Ab.range;const Pb=db((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*vb-t.getMinutes()*gb)}),((t,e)=>{t.setTime(+t+e*mb)}),((t,e)=>(e-t)/mb),(t=>t.getHours()));Pb.range;const Mb=db((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*mb)}),((t,e)=>(e-t)/mb),(t=>t.getUTCHours()));Mb.range;const Eb=db((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*gb)/bb),(t=>t.getDate()-1));Eb.range;const kb=db((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/bb),(t=>t.getUTCDate()-1));kb.range;const _b=db((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/bb),(t=>Math.floor(t/bb)));function Tb(t){return db((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*gb)/wb))}_b.range;const Cb=Tb(0),Nb=Tb(1),Db=Tb(2),Ib=Tb(3),Bb=Tb(4),Lb=Tb(5),Rb=Tb(6);function $b(t){return db((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/wb))}Cb.range,Nb.range,Db.range,Ib.range,Bb.range,Lb.range,Rb.range;const zb=$b(0),Hb=$b(1),Fb=$b(2),Ub=$b(3),Vb=$b(4),qb=$b(5),Wb=$b(6);zb.range,Hb.range,Fb.range,Ub.range,Vb.range,qb.range,Wb.range;const Xb=db((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()));Xb.range;const Yb=db((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()));Yb.range;const Kb=db((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear()));Kb.every=t=>isFinite(t=Math.floor(t))&&t>0?db((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,r)=>{e.setFullYear(e.getFullYear()+r*t)})):null,Kb.range;const Gb=db((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));function Zb(t,e,r,n,i,o){const a=[[Sb,1,vb],[Sb,5,5e3],[Sb,15,15e3],[Sb,30,3e4],[o,1,gb],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,mb],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,bb],[n,2,1728e5],[r,1,wb],[e,1,xb],[e,3,7776e6],[t,1,Ob]];function c(e,r,n){const i=Math.abs(r-e)/n,o=tg((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(dg(e/Ob,r/Ob,n));if(0===o)return yb.every(Math.max(dg(e,r,n),1));const[c,u]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return c.every(u)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const i=r&&"function"==typeof r.range?r:c(t,e,r),o=i?i.range(t,+e+1):[];return n?o.reverse():o},c]}Gb.every=t=>isFinite(t=Math.floor(t))&&t>0?db((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null,Gb.range;const[Jb,Qb]=Zb(Gb,Yb,zb,_b,Mb,Ab),[tw,ew]=Zb(Kb,Xb,Cb,Eb,Pb,jb);function rw(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function nw(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function iw(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var ow,aw,cw,uw={"-":"",_:" ",0:"0"},lw=/^\s*\d+/,sw=/^%/,fw=/[\\^$*+?|[\]().{}]/g;function hw(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(e)+i:i)}function pw(t){return t.replace(fw,"\\$&")}function dw(t){return new RegExp("^(?:"+t.map(pw).join("|")+")","i")}function yw(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function vw(t,e,r){var n=lw.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function gw(t,e,r){var n=lw.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function mw(t,e,r){var n=lw.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function bw(t,e,r){var n=lw.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function ww(t,e,r){var n=lw.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function xw(t,e,r){var n=lw.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Ow(t,e,r){var n=lw.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Sw(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function jw(t,e,r){var n=lw.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function Aw(t,e,r){var n=lw.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Pw(t,e,r){var n=lw.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function Mw(t,e,r){var n=lw.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function Ew(t,e,r){var n=lw.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function kw(t,e,r){var n=lw.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function _w(t,e,r){var n=lw.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function Tw(t,e,r){var n=lw.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function Cw(t,e,r){var n=lw.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Nw(t,e,r){var n=sw.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function Dw(t,e,r){var n=lw.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function Iw(t,e,r){var n=lw.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function Bw(t,e){return hw(t.getDate(),e,2)}function Lw(t,e){return hw(t.getHours(),e,2)}function Rw(t,e){return hw(t.getHours()%12||12,e,2)}function $w(t,e){return hw(1+Eb.count(Kb(t),t),e,3)}function zw(t,e){return hw(t.getMilliseconds(),e,3)}function Hw(t,e){return zw(t,e)+"000"}function Fw(t,e){return hw(t.getMonth()+1,e,2)}function Uw(t,e){return hw(t.getMinutes(),e,2)}function Vw(t,e){return hw(t.getSeconds(),e,2)}function qw(t){var e=t.getDay();return 0===e?7:e}function Ww(t,e){return hw(Cb.count(Kb(t)-1,t),e,2)}function Xw(t){var e=t.getDay();return e>=4||0===e?Bb(t):Bb.ceil(t)}function Yw(t,e){return t=Xw(t),hw(Bb.count(Kb(t),t)+(4===Kb(t).getDay()),e,2)}function Kw(t){return t.getDay()}function Gw(t,e){return hw(Nb.count(Kb(t)-1,t),e,2)}function Zw(t,e){return hw(t.getFullYear()%100,e,2)}function Jw(t,e){return hw((t=Xw(t)).getFullYear()%100,e,2)}function Qw(t,e){return hw(t.getFullYear()%1e4,e,4)}function tx(t,e){var r=t.getDay();return hw((t=r>=4||0===r?Bb(t):Bb.ceil(t)).getFullYear()%1e4,e,4)}function ex(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+hw(e/60|0,"0",2)+hw(e%60,"0",2)}function rx(t,e){return hw(t.getUTCDate(),e,2)}function nx(t,e){return hw(t.getUTCHours(),e,2)}function ix(t,e){return hw(t.getUTCHours()%12||12,e,2)}function ox(t,e){return hw(1+kb.count(Gb(t),t),e,3)}function ax(t,e){return hw(t.getUTCMilliseconds(),e,3)}function cx(t,e){return ax(t,e)+"000"}function ux(t,e){return hw(t.getUTCMonth()+1,e,2)}function lx(t,e){return hw(t.getUTCMinutes(),e,2)}function sx(t,e){return hw(t.getUTCSeconds(),e,2)}function fx(t){var e=t.getUTCDay();return 0===e?7:e}function hx(t,e){return hw(zb.count(Gb(t)-1,t),e,2)}function px(t){var e=t.getUTCDay();return e>=4||0===e?Vb(t):Vb.ceil(t)}function dx(t,e){return t=px(t),hw(Vb.count(Gb(t),t)+(4===Gb(t).getUTCDay()),e,2)}function yx(t){return t.getUTCDay()}function vx(t,e){return hw(Hb.count(Gb(t)-1,t),e,2)}function gx(t,e){return hw(t.getUTCFullYear()%100,e,2)}function mx(t,e){return hw((t=px(t)).getUTCFullYear()%100,e,2)}function bx(t,e){return hw(t.getUTCFullYear()%1e4,e,4)}function wx(t,e){var r=t.getUTCDay();return hw((t=r>=4||0===r?Vb(t):Vb.ceil(t)).getUTCFullYear()%1e4,e,4)}function xx(){return"+0000"}function Ox(){return"%"}function Sx(t){return+t}function jx(t){return Math.floor(+t/1e3)}function Ax(t){return new Date(t)}function Px(t){return t instanceof Date?+t:+new Date(+t)}function Mx(t,e,r,n,i,o,a,c,u,l){var s=_m(),f=s.invert,h=s.domain,p=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),g=l("%a %d"),m=l("%b %d"),b=l("%B"),w=l("%Y");function x(t){return(u(t)<t?p:c(t)<t?d:a(t)<t?y:o(t)<t?v:n(t)<t?i(t)<t?g:m:r(t)<t?b:w)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?h(Array.from(t,Px)):h().map(Ax)},s.ticks=function(e){var r=h();return t(r[0],r[r.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?x:l(e)},s.nice=function(t){var r=h();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?h(Km(r,t)):s},s.copy=function(){return Em(s,Mx(t,e,r,n,i,o,a,c,u,l))},s}function Ex(){var t,e,r,n,i,o=0,a=1,c=jm,u=!1;function l(e){return null==e||isNaN(e=+e)?i:c(0===r?.5:(e=(n(e)-t)*r,u?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,c=t(r,n),l):[c(0),c(1)]}}return l.domain=function(i){return arguments.length?([o,a]=i,t=n(o=+o),e=n(a=+a),r=t===e?0:1/(e-t),l):[o,a]},l.clamp=function(t){return arguments.length?(u=!!t,l):u},l.interpolator=function(t){return arguments.length?(c=t,l):c},l.range=s(bm),l.rangeRound=s(wm),l.unknown=function(t){return arguments.length?(i=t,l):i},function(i){return n=i,t=i(o),e=i(a),r=t===e?0:1/(e-t),l}}function kx(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function _x(){var t=lb(Ex());return t.copy=function(){return kx(t,_x()).exponent(t.exponent())},xg.apply(t,arguments)}function Tx(){var t,e,r,n,i,o,a,c=0,u=.5,l=1,s=1,f=jm,h=!1;function p(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-e)*(s*t<s*e?n:i),f(h?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var r,n,i;return arguments.length?([r,n,i]=e,f=xm(t,[r,n,i]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([c,u,l]=a,t=o(c=+c),e=o(u=+u),r=o(l=+l),n=t===e?0:.5/(e-t),i=e===r?0:.5/(r-e),s=e<t?-1:1,p):[c,u,l]},p.clamp=function(t){return arguments.length?(h=!!t,p):h},p.interpolator=function(t){return arguments.length?(f=t,p):f},p.range=d(bm),p.rangeRound=d(wm),p.unknown=function(t){return arguments.length?(a=t,p):a},function(a){return o=a,t=a(c),e=a(u),r=a(l),n=t===e?0:.5/(e-t),i=e===r?0:.5/(r-e),s=e<t?-1:1,p}}function Cx(){var t=lb(Tx());return t.copy=function(){return kx(t,Cx()).exponent(t.exponent())},xg.apply(t,arguments)}!function(t){ow=function(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,o=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,l=dw(i),s=yw(i),f=dw(o),h=yw(o),p=dw(a),d=yw(a),y=dw(c),v=yw(c),g=dw(u),m=yw(u),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:Bw,e:Bw,f:Hw,g:Jw,G:tx,H:Lw,I:Rw,j:$w,L:zw,m:Fw,M:Uw,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Sx,s:jx,S:Vw,u:qw,U:Ww,V:Yw,w:Kw,W:Gw,x:null,X:null,y:Zw,Y:Qw,Z:ex,"%":Ox},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:rx,e:rx,f:cx,g:mx,G:wx,H:nx,I:ix,j:ox,L:ax,m:ux,M:lx,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Sx,s:jx,S:sx,u:fx,U:hx,V:dx,w:yx,W:vx,x:null,X:null,y:gx,Y:bx,Z:xx,"%":Ox},x={a:function(t,e,r){var n=p.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=g.exec(e.slice(r));return n?(t.m=m.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return j(t,e,r,n)},d:Pw,e:Pw,f:Cw,g:Ow,G:xw,H:Ew,I:Ew,j:Mw,L:Tw,m:Aw,M:kw,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:jw,Q:Dw,s:Iw,S:_w,u:gw,U:mw,V:bw,w:vw,W:ww,x:function(t,e,n){return j(t,r,e,n)},X:function(t,e,r){return j(t,n,e,r)},y:Ow,Y:xw,Z:Sw,"%":Nw};function O(t,e){return function(r){var n,i,o,a=[],c=-1,u=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++c<l;)37===t.charCodeAt(c)&&(a.push(t.slice(u,c)),null!=(i=uw[n=t.charAt(++c)])?n=t.charAt(++c):i="e"===n?" ":"0",(o=e[n])&&(n=o(r,i)),a.push(n),u=c+1);return a.push(t.slice(u,c)),a.join("")}}function S(t,e){return function(r){var n,i,o=iw(1900,void 0,1);if(j(o,t,r+="",0)!=r.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(n=nw(iw(o.y,0,1))).getUTCDay(),n=i>4||0===i?Hb.ceil(n):Hb(n),n=kb.offset(n,7*(o.V-1)),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(i=(n=rw(iw(o.y,0,1))).getDay(),n=i>4||0===i?Nb.ceil(n):Nb(n),n=Eb.offset(n,7*(o.V-1)),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?nw(iw(o.y,0,1)).getUTCDay():rw(iw(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,nw(o)):rw(o)}}function j(t,e,r,n){for(var i,o,a=0,c=e.length,u=r.length;a<c;){if(n>=u)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=x[i in uw?e.charAt(a++):i])||(n=o(t,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return b.x=O(r,b),b.X=O(n,b),b.c=O(e,b),w.x=O(r,w),w.X=O(n,w),w.c=O(e,w),{format:function(t){var e=O(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}(t),aw=ow.format,ow.parse,cw=ow.utcFormat,ow.utcParse}({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"]});var Nx=Object.freeze({__proto__:null,scaleBand:jg,scaleDiverging:function t(){var e=Xm(Tx()(jm));return e.copy=function(){return kx(e,t())},xg.apply(e,arguments)},scaleDivergingLog:function t(){var e=rb(Tx()).domain([.1,1,10]);return e.copy=function(){return kx(e,t()).base(e.base())},xg.apply(e,arguments)},scaleDivergingPow:Cx,scaleDivergingSqrt:function(){return Cx.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function t(){var e=ob(Tx());return e.copy=function(){return kx(e,t()).constant(e.constant())},xg.apply(e,arguments)},scaleIdentity:function t(e){var r;function n(t){return null==t||isNaN(t=+t)?r:t}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,Om),n):e.slice()},n.unknown=function(t){return arguments.length?(r=t,n):r},n.copy=function(){return t(e).unknown(r)},e=arguments.length?Array.from(e,Om):[0,1],Xm(n)},scaleImplicit:Og,scaleLinear:Ym,scaleLog:function t(){const e=rb(km()).domain([1,10]);return e.copy=()=>Em(e,t()).base(e.base()),wg.apply(e,arguments),e},scaleOrdinal:Sg,scalePoint:Pg,scalePow:sb,scaleQuantile:function t(){var e,r=[],n=[],i=[];function o(){var t=0,e=Math.max(1,n.length);for(i=new Array(e-1);++t<e;)i[t-1]=bg(r,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:n[ng(i,t)]}return a.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?i[e-1]:r[0],e<i.length?i[e]:r[r.length-1]]},a.domain=function(t){if(!arguments.length)return r.slice();r=[];for(let e of t)null==e||isNaN(e=+e)||r.push(e);return r.sort(Jv),o()},a.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return i.slice()},a.copy=function(){return t().domain(r).range(n).unknown(e)},wg.apply(a,arguments)},scaleQuantize:function t(){var e,r=0,n=1,i=1,o=[.5],a=[0,1];function c(t){return null!=t&&t<=t?a[ng(o,t,0,i)]:e}function u(){var t=-1;for(o=new Array(i);++t<i;)o[t]=((t+1)*n-(t-i)*r)/(i+1);return c}return c.domain=function(t){return arguments.length?([r,n]=t,r=+r,n=+n,u()):[r,n]},c.range=function(t){return arguments.length?(i=(a=Array.from(t)).length-1,u()):a.slice()},c.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,o[0]]:e>=i?[o[i-1],n]:[o[e-1],o[e]]},c.unknown=function(t){return arguments.length?(e=t,c):c},c.thresholds=function(){return o.slice()},c.copy=function(){return t().domain([r,n]).range(a).unknown(e)},wg.apply(Xm(c),arguments)},scaleRadial:function t(){var e,r=_m(),n=[0,1],i=!1;function o(t){var n=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(r(t));return isNaN(n)?e:i?Math.round(n):n}return o.invert=function(t){return r.invert(fb(t))},o.domain=function(t){return arguments.length?(r.domain(t),o):r.domain()},o.range=function(t){return arguments.length?(r.range((n=Array.from(t,Om)).map(fb)),o):n.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(i=!!t,o):i},o.clamp=function(t){return arguments.length?(r.clamp(t),o):r.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t(r.domain(),n).round(i).clamp(r.clamp()).unknown(e)},wg.apply(o,arguments),Xm(o)},scaleSequential:function t(){var e=Xm(Ex()(jm));return e.copy=function(){return kx(e,t())},xg.apply(e,arguments)},scaleSequentialLog:function t(){var e=rb(Ex()).domain([1,10]);return e.copy=function(){return kx(e,t()).base(e.base())},xg.apply(e,arguments)},scaleSequentialPow:_x,scaleSequentialQuantile:function t(){var e=[],r=jm;function n(t){if(null!=t&&!isNaN(t=+t))return r((ng(e,t,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(Jv),n},n.interpolator=function(t){return arguments.length?(r=t,n):r},n.range=function(){return e.map(((t,n)=>r(n/(e.length-1))))},n.quantiles=function(t){return Array.from({length:t+1},((r,n)=>function(t,e,r){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n=+n)>=n&&(yield n)}}(t,r)),(n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return vg(t);if(e>=1)return yg(t);var n,i=(n-1)*e,o=Math.floor(i),a=yg(gg(t,o).subarray(0,o+1));return a+(vg(t.subarray(o+1))-a)*(i-o)}}(e,n/t)))},n.copy=function(){return t(r).domain(e)},xg.apply(n,arguments)},scaleSequentialSqrt:function(){return _x.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function t(){var e=ob(Ex());return e.copy=function(){return kx(e,t()).constant(e.constant())},xg.apply(e,arguments)},scaleSqrt:function(){return sb.apply(null,arguments).exponent(.5)},scaleSymlog:function t(){var e=ob(km());return e.copy=function(){return Em(e,t()).constant(e.constant())},wg.apply(e,arguments)},scaleThreshold:function t(){var e,r=[.5],n=[0,1],i=1;function o(t){return null!=t&&t<=t?n[ng(r,t,0,i)]:e}return o.domain=function(t){return arguments.length?(r=Array.from(t),i=Math.min(r.length,n.length-1),o):r.slice()},o.range=function(t){return arguments.length?(n=Array.from(t),i=Math.min(r.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t().domain(r).range(n).unknown(e)},wg.apply(o,arguments)},scaleTime:function(){return wg.apply(Mx(tw,ew,Kb,Xb,Cb,Eb,Pb,jb,Sb,aw).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return wg.apply(Mx(Jb,Qb,Gb,Yb,zb,kb,Mb,Ab,Sb,cw).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:Wm}),Dx=ki;var Ix=function(t,e,r){for(var n=-1,i=t.length;++n<i;){var o=t[n],a=e(o);if(null!=a&&(void 0===c?a==a&&!Dx(a):r(a,c)))var c=a,u=o}return u};var Bx=Ix,Lx=function(t,e){return t>e},Rx=tp;var $x=function(t){return t&&t.length?Bx(t,Rx,Lx):void 0},zx=On($x);var Hx=Ix,Fx=function(t,e){return t<e},Ux=tp;var Vx=function(t){return t&&t.length?Hx(t,Ux,Fx):void 0},qx=On(Vx),Wx=pa,Xx=pp,Yx=pd,Kx=li;var Gx=id,Zx=function(t,e){return(Kx(t)?Wx:Yx)(t,Xx(e))};var Jx=On((function(t,e){return Gx(Zx(t,e),1)})),Qx=xh;var tO,eO=On((function(t,e){return Qx(t,e)})),rO=1e9,nO=!0,iO="[DecimalError] ",oO=iO+"Invalid argument: ",aO=iO+"Exponent out of range: ",cO=Math.floor,uO=Math.pow,lO=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,sO=1e7,fO=7,hO=9007199254740991,pO=cO(hO/fO),dO={};function yO(t,e){var r,n,i,o,a,c,u,l,s=t.constructor,f=s.precision;if(!t.s||!e.s)return e.s||(e=new s(t)),nO?AO(e,f):e;if(u=t.d,l=e.d,a=t.e,i=e.e,u=u.slice(),o=a-i){for(o<0?(n=u,o=-o,c=l.length):(n=l,i=a,c=u.length),o>(c=(a=Math.ceil(f/fO))>c?a+1:c+1)&&(o=c,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((c=u.length)-(o=l.length)<0&&(o=c,n=l,l=u,u=n),r=0;o;)r=(u[--o]=u[o]+l[o]+r)/sO|0,u[o]%=sO;for(r&&(u.unshift(r),++i),c=u.length;0==u[--c];)u.pop();return e.d=u,e.e=i,nO?AO(e,f):e}function vO(t,e,r){if(t!==~~t||t<e||t>r)throw Error(oO+t)}function gO(t){var e,r,n,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)n=t[e]+"",(r=fO-n.length)&&(o+=OO(r)),o+=n;a=t[e],(r=fO-(n=a+"").length)&&(o+=OO(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}dO.absoluteValue=dO.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},dO.comparedTo=dO.cmp=function(t){var e,r,n,i,o=this;if(t=new o.constructor(t),o.s!==t.s)return o.s||-t.s;if(o.e!==t.e)return o.e>t.e^o.s<0?1:-1;for(e=0,r=(n=o.d.length)<(i=t.d.length)?n:i;e<r;++e)if(o.d[e]!==t.d[e])return o.d[e]>t.d[e]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1},dO.decimalPlaces=dO.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*fO;if(e=t.d[e])for(;e%10==0;e/=10)r--;return r<0?0:r},dO.dividedBy=dO.div=function(t){return mO(this,new this.constructor(t))},dO.dividedToIntegerBy=dO.idiv=function(t){var e=this.constructor;return AO(mO(this,new e(t),0,1),e.precision)},dO.equals=dO.eq=function(t){return!this.cmp(t)},dO.exponent=function(){return wO(this)},dO.greaterThan=dO.gt=function(t){return this.cmp(t)>0},dO.greaterThanOrEqualTo=dO.gte=function(t){return this.cmp(t)>=0},dO.isInteger=dO.isint=function(){return this.e>this.d.length-2},dO.isNegative=dO.isneg=function(){return this.s<0},dO.isPositive=dO.ispos=function(){return this.s>0},dO.isZero=function(){return 0===this.s},dO.lessThan=dO.lt=function(t){return this.cmp(t)<0},dO.lessThanOrEqualTo=dO.lte=function(t){return this.cmp(t)<1},dO.logarithm=dO.log=function(t){var e,r=this,n=r.constructor,i=n.precision,o=i+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(tO))throw Error(iO+"NaN");if(r.s<1)throw Error(iO+(r.s?"NaN":"-Infinity"));return r.eq(tO)?new n(0):(nO=!1,e=mO(SO(r,o),SO(t,o),o),nO=!0,AO(e,i))},dO.minus=dO.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?PO(e,t):yO(e,(t.s=-t.s,t))},dO.modulo=dO.mod=function(t){var e,r=this,n=r.constructor,i=n.precision;if(!(t=new n(t)).s)throw Error(iO+"NaN");return r.s?(nO=!1,e=mO(r,t,0,1).times(t),nO=!0,r.minus(e)):AO(new n(r),i)},dO.naturalExponential=dO.exp=function(){return bO(this)},dO.naturalLogarithm=dO.ln=function(){return SO(this)},dO.negated=dO.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},dO.plus=dO.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?yO(e,t):PO(e,(t.s=-t.s,t))},dO.precision=dO.sd=function(t){var e,r,n,i=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(oO+t);if(e=wO(i)+1,r=(n=i.d.length-1)*fO+1,n=i.d[n]){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},dO.squareRoot=dO.sqrt=function(){var t,e,r,n,i,o,a,c=this,u=c.constructor;if(c.s<1){if(!c.s)return new u(0);throw Error(iO+"NaN")}for(t=wO(c),nO=!1,0==(i=Math.sqrt(+c))||i==1/0?(((e=gO(c.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=cO((t+1)/2)-(t<0||t%2),n=new u(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new u(i.toString()),i=a=(r=u.precision)+3;;)if(n=(o=n).plus(mO(c,o,a+2)).times(.5),gO(o.d).slice(0,a)===(e=gO(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(AO(o,r+1,0),o.times(o).eq(c)){n=o;break}}else if("9999"!=e)break;a+=4}return nO=!0,AO(n,r)},dO.times=dO.mul=function(t){var e,r,n,i,o,a,c,u,l,s=this,f=s.constructor,h=s.d,p=(t=new f(t)).d;if(!s.s||!t.s)return new f(0);for(t.s*=s.s,r=s.e+t.e,(u=h.length)<(l=p.length)&&(o=h,h=p,p=o,a=u,u=l,l=a),o=[],n=a=u+l;n--;)o.push(0);for(n=l;--n>=0;){for(e=0,i=u+n;i>n;)c=o[i]+p[n]*h[i-n-1]+e,o[i--]=c%sO|0,e=c/sO|0;o[i]=(o[i]+e)%sO|0}for(;!o[--a];)o.pop();return e?++r:o.shift(),t.d=o,t.e=r,nO?AO(t,f.precision):t},dO.toDecimalPlaces=dO.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(vO(t,0,rO),void 0===e?e=n.rounding:vO(e,0,8),AO(r,t+wO(r)+1,e))},dO.toExponential=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=MO(n,!0):(vO(t,0,rO),void 0===e?e=i.rounding:vO(e,0,8),r=MO(n=AO(new i(n),t+1,e),!0,t+1)),r},dO.toFixed=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?MO(i):(vO(t,0,rO),void 0===e?e=o.rounding:vO(e,0,8),r=MO((n=AO(new o(i),t+wO(i)+1,e)).abs(),!1,t+wO(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},dO.toInteger=dO.toint=function(){var t=this,e=t.constructor;return AO(new e(t),wO(t)+1,e.rounding)},dO.toNumber=function(){return+this},dO.toPower=dO.pow=function(t){var e,r,n,i,o,a,c=this,u=c.constructor,l=+(t=new u(t));if(!t.s)return new u(tO);if(!(c=new u(c)).s){if(t.s<1)throw Error(iO+"Infinity");return c}if(c.eq(tO))return c;if(n=u.precision,t.eq(tO))return AO(c,n);if(a=(e=t.e)>=(r=t.d.length-1),o=c.s,a){if((r=l<0?-l:l)<=hO){for(i=new u(tO),e=Math.ceil(n/fO+4),nO=!1;r%2&&EO((i=i.times(c)).d,e),0!==(r=cO(r/2));)EO((c=c.times(c)).d,e);return nO=!0,t.s<0?new u(tO).div(i):AO(i,n)}}else if(o<0)throw Error(iO+"NaN");return o=o<0&&1&t.d[Math.max(e,r)]?-1:1,c.s=1,nO=!1,i=t.times(SO(c,n+12)),nO=!0,(i=bO(i)).s=o,i},dO.toPrecision=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?n=MO(i,(r=wO(i))<=o.toExpNeg||r>=o.toExpPos):(vO(t,1,rO),void 0===e?e=o.rounding:vO(e,0,8),n=MO(i=AO(new o(i),t,e),t<=(r=wO(i))||r<=o.toExpNeg,t)),n},dO.toSignificantDigits=dO.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(vO(t,1,rO),void 0===e?e=r.rounding:vO(e,0,8)),AO(new r(this),t,e)},dO.toString=dO.valueOf=dO.val=dO.toJSON=dO[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=wO(t),r=t.constructor;return MO(t,e<=r.toExpNeg||e>=r.toExpPos)};var mO=function(){function t(t,e){var r,n=0,i=t.length;for(t=t.slice();i--;)r=t[i]*e+n,t[i]=r%sO|0,n=r/sO|0;return n&&t.unshift(n),t}function e(t,e,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]<e[r]?1:0,t[r]=n*sO+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,i,o,a){var c,u,l,s,f,h,p,d,y,v,g,m,b,w,x,O,S,j,A=n.constructor,P=n.s==i.s?1:-1,M=n.d,E=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(iO+"Division by zero");for(u=n.e-i.e,S=E.length,x=M.length,d=(p=new A(P)).d=[],l=0;E[l]==(M[l]||0);)++l;if(E[l]>(M[l]||0)&&--u,(m=null==o?o=A.precision:a?o+(wO(n)-wO(i))+1:o)<0)return new A(0);if(m=m/fO+2|0,l=0,1==S)for(s=0,E=E[0],m++;(l<x||s)&&m--;l++)b=s*sO+(M[l]||0),d[l]=b/E|0,s=b%E|0;else{for((s=sO/(E[0]+1)|0)>1&&(E=t(E,s),M=t(M,s),S=E.length,x=M.length),w=S,v=(y=M.slice(0,S)).length;v<S;)y[v++]=0;(j=E.slice()).unshift(0),O=E[0],E[1]>=sO/2&&++O;do{s=0,(c=e(E,y,S,v))<0?(g=y[0],S!=v&&(g=g*sO+(y[1]||0)),(s=g/O|0)>1?(s>=sO&&(s=sO-1),1==(c=e(f=t(E,s),y,h=f.length,v=y.length))&&(s--,r(f,S<h?j:E,h))):(0==s&&(c=s=1),f=E.slice()),(h=f.length)<v&&f.unshift(0),r(y,f,v),-1==c&&(c=e(E,y,S,v=y.length))<1&&(s++,r(y,S<v?j:E,v)),v=y.length):0===c&&(s++,y=[0]),d[l++]=s,c&&y[0]?y[v++]=M[w]||0:(y=[M[w]],v=1)}while((w++<x||void 0!==y[0])&&m--)}return d[0]||d.shift(),p.e=u,AO(p,a?o+wO(p)+1:o)}}();function bO(t,e){var r,n,i,o,a,c=0,u=0,l=t.constructor,s=l.precision;if(wO(t)>16)throw Error(aO+wO(t));if(!t.s)return new l(tO);for(null==e?(nO=!1,a=s):a=e,o=new l(.03125);t.abs().gte(.1);)t=t.times(o),u+=5;for(a+=Math.log(uO(2,u))/Math.LN10*2+5|0,r=n=i=new l(tO),l.precision=a;;){if(n=AO(n.times(t),a),r=r.times(++c),gO((o=i.plus(mO(n,r,a))).d).slice(0,a)===gO(i.d).slice(0,a)){for(;u--;)i=AO(i.times(i),a);return l.precision=s,null==e?(nO=!0,AO(i,s)):i}i=o}}function wO(t){for(var e=t.e*fO,r=t.d[0];r>=10;r/=10)e++;return e}function xO(t,e,r){if(e>t.LN10.sd())throw nO=!0,r&&(t.precision=r),Error(iO+"LN10 precision limit exceeded");return AO(new t(t.LN10),e)}function OO(t){for(var e="";t--;)e+="0";return e}function SO(t,e){var r,n,i,o,a,c,u,l,s,f=1,h=t,p=h.d,d=h.constructor,y=d.precision;if(h.s<1)throw Error(iO+(h.s?"NaN":"-Infinity"));if(h.eq(tO))return new d(0);if(null==e?(nO=!1,l=y):l=e,h.eq(10))return null==e&&(nO=!0),xO(d,l);if(l+=10,d.precision=l,n=(r=gO(p)).charAt(0),o=wO(h),!(Math.abs(o)<15e14))return u=xO(d,l+2,y).times(o+""),h=SO(new d(n+"."+r.slice(1)),l-10).plus(u),d.precision=y,null==e?(nO=!0,AO(h,y)):h;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=gO((h=h.times(t)).d)).charAt(0),f++;for(o=wO(h),n>1?(h=new d("0."+r),o++):h=new d(n+"."+r.slice(1)),c=a=h=mO(h.minus(tO),h.plus(tO),l),s=AO(h.times(h),l),i=3;;){if(a=AO(a.times(s),l),gO((u=c.plus(mO(a,new d(i),l))).d).slice(0,l)===gO(c.d).slice(0,l))return c=c.times(2),0!==o&&(c=c.plus(xO(d,l+2,y).times(o+""))),c=mO(c,new d(f),l),d.precision=y,null==e?(nO=!0,AO(c,y)):c;c=u,i+=2}}function jO(t,e){var r,n,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(n,i)){if(i-=n,r=r-n-1,t.e=cO(r/fO),t.d=[],n=(r+1)%fO,r<0&&(n+=fO),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=fO;n<i;)t.d.push(+e.slice(n,n+=fO));e=e.slice(n),n=fO-e.length}else n-=i;for(;n--;)e+="0";if(t.d.push(+e),nO&&(t.e>pO||t.e<-pO))throw Error(aO+r)}else t.s=0,t.e=0,t.d=[0];return t}function AO(t,e,r){var n,i,o,a,c,u,l,s,f=t.d;for(a=1,o=f[0];o>=10;o/=10)a++;if((n=e-a)<0)n+=fO,i=e,l=f[s=0];else{if((s=Math.ceil((n+1)/fO))>=(o=f.length))return t;for(l=o=f[s],a=1;o>=10;o/=10)a++;i=(n%=fO)-fO+a}if(void 0!==r&&(c=l/(o=uO(10,a-i-1))%10|0,u=e<0||void 0!==f[s+1]||l%o,u=r<4?(c||u)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||u||6==r&&(n>0?i>0?l/uO(10,a-i):0:f[s-1])%10&1||r==(t.s<0?8:7))),e<1||!f[0])return u?(o=wO(t),f.length=1,e=e-o-1,f[0]=uO(10,(fO-e%fO)%fO),t.e=cO(-e/fO)||0):(f.length=1,f[0]=t.e=t.s=0),t;if(0==n?(f.length=s,o=1,s--):(f.length=s+1,o=uO(10,fO-n),f[s]=i>0?(l/uO(10,a-i)%uO(10,i)|0)*o:0),u)for(;;){if(0==s){(f[0]+=o)==sO&&(f[0]=1,++t.e);break}if(f[s]+=o,f[s]!=sO)break;f[s--]=0,o=1}for(n=f.length;0===f[--n];)f.pop();if(nO&&(t.e>pO||t.e<-pO))throw Error(aO+wO(t));return t}function PO(t,e){var r,n,i,o,a,c,u,l,s,f,h=t.constructor,p=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),nO?AO(e,p):e;if(u=t.d,f=e.d,n=e.e,l=t.e,u=u.slice(),a=l-n){for((s=a<0)?(r=u,a=-a,c=f.length):(r=f,n=l,c=u.length),a>(i=Math.max(Math.ceil(p/fO),c)+2)&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for((s=(i=u.length)<(c=f.length))&&(c=i),i=0;i<c;i++)if(u[i]!=f[i]){s=u[i]<f[i];break}a=0}for(s&&(r=u,u=f,f=r,e.s=-e.s),c=u.length,i=f.length-c;i>0;--i)u[c++]=0;for(i=f.length;i>a;){if(u[--i]<f[i]){for(o=i;o&&0===u[--o];)u[o]=sO-1;--u[o],u[i]+=sO}u[i]-=f[i]}for(;0===u[--c];)u.pop();for(;0===u[0];u.shift())--n;return u[0]?(e.d=u,e.e=n,nO?AO(e,p):e):new h(0)}function MO(t,e,r){var n,i=wO(t),o=gO(t.d),a=o.length;return e?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+OO(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+OO(-i-1)+o,r&&(n=r-a)>0&&(o+=OO(n))):i>=a?(o+=OO(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+OO(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=OO(n))),t.s<0?"-"+o:o}function EO(t,e){if(t.length>e)return t.length=e,!0}function kO(t){if(!t||"object"!=typeof t)throw Error(iO+"Object expected");var e,r,n,i=["precision",1,rO,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if(void 0!==(n=t[r=i[e]])){if(!(cO(n)===n&&n>=i[e+1]&&n<=i[e+2]))throw Error(oO+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(oO+r+": "+n);this[r]=new this(n)}return this}var _O=function t(e){var r,n,i;function o(t){var e=this;if(!(e instanceof o))return new o(t);if(e.constructor=o,t instanceof o)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(oO+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):jO(e,t.toString())}if("string"!=typeof t)throw Error(oO+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!lO.test(t))throw Error(oO+t);jO(e,t)}if(o.prototype=dO,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=t,o.config=o.set=kO,void 0===e&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<i.length;)e.hasOwnProperty(n=i[r++])||(e[n]=this[n]);return o.config(e),o}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});tO=new _O(1);var TO=_O;function CO(t){return function(t){if(Array.isArray(t))return NO(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return NO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NO(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var DO=function(t){return t},IO={"@@functional/placeholder":!0},BO=function(t){return t===IO},LO=function(t){return function e(){return 0===arguments.length||1===arguments.length&&BO(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},RO=function t(e,r){return 1===e?r:LO((function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.filter((function(t){return t!==IO})).length;return a>=e?r.apply(void 0,i):t(e-a,LO((function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=i.map((function(t){return BO(t)?e.shift():t}));return r.apply(void 0,CO(o).concat(e))})))}))},$O=function(t){return RO(t.length,t)},zO=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},HO=$O((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),FO=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return DO;var n=e.reverse(),i=n[0],o=n.slice(1);return function(){return o.reduce((function(t,e){return e(t)}),i.apply(void 0,arguments))}},UO=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},VO=function(t){var e=null,r=null;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return e&&i.every((function(t,r){return t===e[r]}))?r:(e=i,r=t.apply(void 0,i))}};var qO=$O((function(t,e,r){var n=+t;return n+r*(+e-n)})),WO=$O((function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)})),XO=$O((function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))})),YO={rangeStep:function(t,e,r){for(var n=new TO(t),i=0,o=[];n.lt(e)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o},getDigitCount:function(t){return 0===t?1:Math.floor(new TO(t).abs().log(10).toNumber())+1},interpolateNumber:qO,uninterpolateNumber:WO,uninterpolateTruncation:XO};function KO(t){return function(t){if(Array.isArray(t))return JO(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||ZO(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GO(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(t,e)||ZO(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZO(t,e){if(t){if("string"==typeof t)return JO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?JO(t,e):void 0}}function JO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function QO(t){var e=GO(t,2),r=e[0],n=e[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function tS(t,e,r){if(t.lte(0))return new TO(0);var n=YO.getDigitCount(t.toNumber()),i=new TO(10).pow(n),o=t.div(i),a=1!==n?.05:.1,c=new TO(Math.ceil(o.div(a).toNumber())).add(r).mul(a).mul(i);return e?c:new TO(Math.ceil(c))}function eS(t,e,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new TO(0),tickMin:new TO(0),tickMax:new TO(0)};var o,a=tS(new TO(e).sub(t).div(r-1),n,i);o=t<=0&&e>=0?new TO(0):(o=new TO(t).add(e).div(2)).sub(new TO(o).mod(a));var c=Math.ceil(o.sub(t).div(a).toNumber()),u=Math.ceil(new TO(e).sub(o).div(a).toNumber()),l=c+u+1;return l>r?eS(t,e,r,n,i+1):(l<r&&(u=e>0?u+(r-l):u,c=e>0?c:c+(r-l)),{step:a,tickMin:o.sub(new TO(c).mul(a)),tickMax:o.add(new TO(u).mul(a))})}var rS=VO((function(t){var e=GO(t,2),r=e[0],n=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),c=GO(QO([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(KO(zO(0,i-1).map((function(){return 1/0})))):[].concat(KO(zO(0,i-1).map((function(){return-1/0}))),[l]);return r>n?UO(s):s}if(u===l)return function(t,e,r){var n=1,i=new TO(t);if(!i.isint()&&r){var o=Math.abs(t);o<1?(n=new TO(10).pow(YO.getDigitCount(t)-1),i=new TO(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new TO(Math.floor(t)))}else 0===t?i=new TO(Math.floor((e-1)/2)):r||(i=new TO(Math.floor(t)));var a=Math.floor((e-1)/2);return FO(HO((function(t){return i.add(new TO(t-a).mul(n)).toNumber()})),zO)(0,e)}(u,i,o);var f=eS(u,l,a,o),h=f.step,p=f.tickMin,d=f.tickMax,y=YO.rangeStep(p,d.add(new TO(.1).mul(h)),h);return r>n?UO(y):y})),nS=VO((function(t,e){var r=GO(t,2),n=r[0],i=r[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=GO(QO([n,i]),2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[n,i];if(c===u)return[c];var l=Math.max(e,2),s=tS(new TO(u).sub(c).div(l-1),o,0),f=[].concat(KO(YO.rangeStep(new TO(c),new TO(u).sub(new TO(.99).mul(s)),s)),[u]);return n>i?UO(f):f})),iS="production"===process.env.NODE_ENV,oS="Invariant failed";function aS(t,e){if(!t){if(iS)throw new Error(oS);var r="function"==typeof e?e():e,n=r?"".concat(oS,": ").concat(r):oS;throw new Error(n)}}var cS=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function uS(){return uS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},uS.apply(this,arguments)}function lS(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return sS(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sS(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sS(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function fS(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function hS(t){var e=t.offset,r=t.layout,n=t.width,i=t.dataKey,o=t.data,a=t.dataPointFormatter,c=t.xAxis,u=t.yAxis,l=fS(t,cS),s=_c(l,!1);"x"===t.direction&&"number"!==c.type&&("production"!==process.env.NODE_ENV?aS(!1,'ErrorBar requires Axis type property to be "number".'):aS(!1));var f=o.map((function(t){var o=a(t,i),l=o.x,f=o.y,h=o.value,p=o.errorVal;if(!p)return null;var d,y,v=[];if(Array.isArray(p)){var g=lS(p,2);d=g[0],y=g[1]}else d=y=p;if("vertical"===r){var m=c.scale,b=f+e,w=b+n,x=b-n,O=m(h-d),S=m(h+y);v.push({x1:S,y1:w,x2:S,y2:x}),v.push({x1:O,y1:b,x2:S,y2:b}),v.push({x1:O,y1:w,x2:O,y2:x})}else if("horizontal"===r){var j=u.scale,A=l+e,P=A-n,M=A+n,E=j(h-d),k=j(h+y);v.push({x1:P,y1:k,x2:M,y2:k}),v.push({x1:A,y1:E,x2:A,y2:k}),v.push({x1:P,y1:E,x2:M,y2:E})}return X.createElement(Hc,uS({className:"recharts-errorBar",key:"bar-".concat(v.map((function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)})))},s),v.map((function(t){return X.createElement("line",uS({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))})))}));return X.createElement(Hc,{className:"recharts-errorBars"},f)}function pS(t){return pS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pS(t)}function dS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?dS(Object(r),!0).forEach((function(e){vS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=pS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=pS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==pS(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}hS.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},hS.displayName="ErrorBar";var gS=function(t){var e,r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=Pc(r,Jp);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(n||[]).reduce((function(t,e){var r=e.item,n=e.props,i=n.sectors||n.data||[];return t.concat(i.map((function(t){return{type:a.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(n||[]).map((function(t){var e=t.item,r=e.props,n=r.dataKey,i=r.name,o=r.legendType;return{inactive:r.hide,dataKey:n,type:a.props.iconType||o||"square",color:PS(e),value:i||n,payload:e.props}})),yS(yS(yS({},a.props),Jp.getWithHeight(a,i)),{},{payload:e,item:a})):null};function mS(t){return mS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mS(t)}function bS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function wS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bS(Object(r),!0).forEach((function(e){xS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=mS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=mS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==mS(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function OS(t){return function(t){if(Array.isArray(t))return SS(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return SS(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return SS(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function SS(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function jS(t,e,r){return Ia(t)||Ia(e)?r:ec(e)?Da(t,e,r):Hi(e)?e(t):r}function AS(t,e,r,n){var i=Jx(t,(function(t){return jS(t,e)}));if("number"===r){var o=i.filter((function(t){return tc(t)||parseFloat(t)}));return o.length?[qx(o),zx(o)]:[1/0,-1/0]}return(n?i.filter((function(t){return!Ia(t)})):i).map((function(t){return ec(t)||t instanceof Date?t:""}))}var PS=function(t){var e,r=t.type.displayName,n=t.props,i=n.stroke,o=n.fill;switch(r){case"Line":e=i;break;case"Area":case"Radar":e=i&&"none"!==i?i:o;break;default:e=o}return e},MS=function(t,e,r,n,i){var o=Ac(e.props.children,hS).filter((function(t){return function(t,e,r){return!!Ia(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===r?"xAxis"===e:"y"!==r||"yAxis"===e)}(n,i,t.props.direction)}));if(o&&o.length){var a=o.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var n=jS(e,r,0),i=Array.isArray(n)?[qx(n),zx(n)]:[n,n],o=a.reduce((function(t,r){var n=jS(e,r,0),o=i[0]-Math.abs(Array.isArray(n)?n[0]:n),a=i[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(o,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]}),[1/0,-1/0])}return null},ES=function(t,e,r,n,i){var o=e.map((function(e){var o=e.props.dataKey;return"number"===r&&o&&MS(t,e,o,n)||AS(t,o,r,i)}));if("number"===r)return o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return o.reduce((function(t,e){for(var r=0,n=e.length;r<n;r++)a[e[r]]||(a[e[r]]=!0,t.push(e[r]));return t}),[])},kS=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},_S=function(t,e,r){if(!t)return null;var n=t.scale,i=t.duplicateDomain,o=t.type,a=t.range,c="scaleBand"===t.realScaleType?n.bandwidth()/2:2,u=(e||r)&&"category"===o&&n.bandwidth?n.bandwidth()/c:0;return u="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*Ja(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=i?i.indexOf(t):t;return{coordinate:n(e)+u,value:t,offset:u}})).filter((function(t){return!Za(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:n(t)+u,value:t,index:e,offset:u}})):n.ticks&&!r?n.ticks(t.tickCount).map((function(t){return{coordinate:n(t)+u,value:t,offset:u}})):n.domain().map((function(t,e){return{coordinate:n(t)+u,value:i?i[t]:t,index:e,offset:u}}))},TS=new WeakMap,CS=function(t,e){if("function"!=typeof e)return t;TS.has(t)||TS.set(t,new WeakMap);var r=TS.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},NS=1e-4,DS={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var i=0,o=0,a=0;a<e;++a){var c=Za(t[a][r][1])?t[a][r][0]:t[a][r][1];c>=0?(t[a][r][0]=i,t[a][r][1]=i+c,i=t[a][r][1]):(t[a][r][0]=o,t[a][r][1]=o+c,o=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,i,o=0,a=t[0].length;o<a;++o){for(i=r=0;r<n;++r)i+=t[r][o][1]||0;if(i)for(r=0;r<n;++r)t[r][o][1]/=i}bl(t,e)}},none:bl,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,i=t[e[0]],o=i.length;n<o;++n){for(var a=0,c=0;a<r;++a)c+=t[a][n][1]||0;i[n][1]+=i[n][0]=-c/2}bl(t,e)}},wiggle:function(t,e){if((i=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,i,o=0,a=1;a<n;++a){for(var c=0,u=0,l=0;c<i;++c){for(var s=t[e[c]],f=s[a][1]||0,h=(f-(s[a-1][1]||0))/2,p=0;p<c;++p){var d=t[e[p]];h+=(d[a][1]||0)-(d[a-1][1]||0)}u+=f,l+=h*f}r[a-1][1]+=r[a-1][0]=o,u&&(o-=l/u)}r[a-1][1]+=r[a-1][0]=o,bl(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var i=0,o=0;o<e;++o){var a=Za(t[o][r][1])?t[o][r][0]:t[o][r][1];a>=0?(t[o][r][0]=i,t[o][r][1]=i+a,i=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}}},IS=function(t,e,r){var n=e.map((function(t){return t.props.dataKey})),i=DS[r],o=function(){var t=bu([]),e=wl,r=bl,n=xl;function i(i){var o,a,c=Array.from(t.apply(this,arguments),Ol),u=c.length,l=-1;for(const t of i)for(o=0,++l;o<u;++o)(c[o][l]=[0,+n(t,c[o].key,l,i)]).data=t;for(o=0,a=Cu(e(c));o<u;++o)c[a[o]].index=o;return r(c,a),c}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:bu(Array.from(e)),i):t},i.value=function(t){return arguments.length?(n="function"==typeof t?t:bu(+t),i):n},i.order=function(t){return arguments.length?(e=null==t?wl:"function"==typeof t?t:bu(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(r=null==t?bl:t,i):r},i}().keys(n).value((function(t,e){return+jS(t,e,0)})).order(wl).offset(i);return o(t)};function BS(t){var e=t.axis,r=t.ticks,n=t.bandSize,i=t.entry,o=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!Ia(i[e.dataKey])){var c=cc(r,"value",i[e.dataKey]);if(c)return c.coordinate+n/2}return r[o]?r[o].coordinate+n/2:null}var u=jS(i,Ia(a)?e.dataKey:a);return Ia(u)?null:e.scale(u)}var LS=function(t){var e=t.axis,r=t.ticks,n=t.offset,i=t.bandSize,o=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var c=jS(o,e.dataKey,e.domain[a]);return Ia(c)?null:e.scale(c)-i/2+n},RS=function(t,e,r){return Object.keys(t).reduce((function(n,i){var o=t[i].stackedData.reduce((function(t,n){var i=n.slice(e,r+1).reduce((function(t,e){return[qx(e.concat([t[0]]).filter(tc)),zx(e.concat([t[1]]).filter(tc))]}),[1/0,-1/0]);return[Math.min(t[0],i[0]),Math.max(t[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],n[0]),Math.max(o[1],n[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},$S=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,zS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,HS=function(t,e,r){if(Hi(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(tc(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if($S.test(t[0])){var i=+$S.exec(t[0])[1];n[0]=e[0]-i}else Hi(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(tc(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(zS.test(t[1])){var o=+zS.exec(t[1])[1];n[1]=e[1]+o}else Hi(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},FS=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var i=Zd(e,(function(t){return t.coordinate})),o=1/0,a=1,c=i.length;a<c;a++){var u=i[a],l=i[a-1];o=Math.min((u.coordinate||0)-(l.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},US=function(t,e,r){return t&&t.length?eO(t,Da(r,"type.defaultProps.domain"))?e:t:e},VS=function(t,e){var r=t.props,n=r.dataKey,i=r.name,o=r.unit,a=r.formatter,c=r.tooltipType,u=r.chartType,l=r.hide;return wS(wS({},_c(t,!1)),{},{dataKey:n,unit:o,formatter:a,name:i||n,color:PS(t),value:jS(e,n),type:c,payload:e,chartType:u,hide:l})};function qS(t){return qS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qS(t)}function WS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function XS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?WS(Object(r),!0).forEach((function(e){YS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):WS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function YS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=qS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=qS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==qS(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var KS=Math.PI/180,GS=function(t){return 180*t/Math.PI},ZS=function(t,e,r,n){return{x:t+Math.cos(-KS*n)*r,y:e+Math.sin(-KS*n)*r}},JS=function(t,e){var r=t.x,n=t.y,i=e.cx,o=e.cy,a=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(n-o,2))}({x:r,y:n},{x:i,y:o});if(a<=0)return{radius:a};var c=(r-i)/a,u=Math.acos(c);return n>o&&(u=2*Math.PI-u),{radius:a,angle:GS(u),angleInRadian:u}},QS=function(t,e){var r=e.startAngle,n=e.endAngle,i=Math.floor(r/360),o=Math.floor(n/360);return t+360*Math.min(i,o)},tj=function(t,e){var r=t.x,n=t.y,i=JS({x:r,y:n},e),o=i.radius,a=i.angle,c=e.innerRadius,u=e.outerRadius;if(o<c||o>u)return!1;if(0===o)return!0;var l,s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.floor(e/360),i=Math.floor(r/360),o=Math.min(n,i);return{startAngle:e-360*o,endAngle:r-360*o}}(e),f=s.startAngle,h=s.endAngle,p=a;if(f<=h){for(;p>h;)p-=360;for(;p<f;)p+=360;l=p>=f&&p<=h}else{for(;p>f;)p-=360;for(;p<h;)p+=360;l=p>=h&&p<=f}return l?XS(XS({},e),{},{radius:o,angle:QS(p,e)}):null};function ej(t){return ej="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ej(t)}var rj=["offset"];function nj(t){return function(t){if(Array.isArray(t))return ij(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return ij(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ij(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ij(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function oj(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function aj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function cj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?aj(Object(r),!0).forEach((function(e){uj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):aj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function uj(t,e,r){return e=function(t){var e=function(t,e){if("object"!=ej(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ej(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ej(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lj(){return lj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},lj.apply(this,arguments)}var sj=function(t){var e=t.value,r=t.formatter,n=Ia(t.children)?e:t.children;return Hi(r)?r(n):n},fj=function(t,e,r){var n,i,o=t.position,a=t.viewBox,c=t.offset,u=t.className,l=a,s=l.cx,f=l.cy,h=l.innerRadius,p=l.outerRadius,d=l.startAngle,y=l.endAngle,v=l.clockWise,g=(h+p)/2,m=function(t,e){return Ja(e-t)*Math.min(Math.abs(e-t),360)}(d,y),b=m>=0?1:-1;"insideStart"===o?(n=d+b*c,i=v):"insideEnd"===o?(n=y-b*c,i=!v):"end"===o&&(n=y+b*c,i=v),i=m<=0?i:!i;var w=ZS(s,f,g,n),x=ZS(s,f,g,n+359*(i?1:-1)),O="M".concat(w.x,",").concat(w.y,"\n A").concat(g,",").concat(g,",0,1,").concat(i?0:1,",\n ").concat(x.x,",").concat(x.y),S=Ia(t.id)?nc("recharts-radial-line-"):t.id;return X.createElement("text",lj({},r,{dominantBaseline:"central",className:ui("recharts-radial-bar-label",u)}),X.createElement("defs",null,X.createElement("path",{id:S,d:O})),X.createElement("textPath",{xlinkHref:"#".concat(S)},e))},hj=function(t){var e=t.viewBox,r=t.offset,n=t.position,i=e,o=i.cx,a=i.cy,c=i.innerRadius,u=i.outerRadius,l=(i.startAngle+i.endAngle)/2;if("outside"===n){var s=ZS(o,a,u+r,l),f=s.x;return{x:f,y:s.y,textAnchor:f>=o?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var h=ZS(o,a,(c+u)/2,l);return{x:h.x,y:h.y,textAnchor:"middle",verticalAnchor:"middle"}},pj=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,i=t.position,o=e,a=o.x,c=o.y,u=o.width,l=o.height,s=l>=0?1:-1,f=s*n,h=s>0?"end":"start",p=s>0?"start":"end",d=u>=0?1:-1,y=d*n,v=d>0?"end":"start",g=d>0?"start":"end";if("top"===i)return cj(cj({},{x:a+u/2,y:c-s*n,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(c-r.y,0),width:u}:{});if("bottom"===i)return cj(cj({},{x:a+u/2,y:c+l+f,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(r.y+r.height-(c+l),0),width:u}:{});if("left"===i){var m={x:a-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"};return cj(cj({},m),r?{width:Math.max(m.x-r.x,0),height:l}:{})}if("right"===i){var b={x:a+u+y,y:c+l/2,textAnchor:g,verticalAnchor:"middle"};return cj(cj({},b),r?{width:Math.max(r.x+r.width-b.x,0),height:l}:{})}var w=r?{width:u,height:l}:{};return"insideLeft"===i?cj({x:a+y,y:c+l/2,textAnchor:g,verticalAnchor:"middle"},w):"insideRight"===i?cj({x:a+u-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===i?cj({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===i?cj({x:a+u/2,y:c+l-f,textAnchor:"middle",verticalAnchor:h},w):"insideTopLeft"===i?cj({x:a+y,y:c+f,textAnchor:g,verticalAnchor:p},w):"insideTopRight"===i?cj({x:a+u-y,y:c+f,textAnchor:v,verticalAnchor:p},w):"insideBottomLeft"===i?cj({x:a+y,y:c+l-f,textAnchor:g,verticalAnchor:h},w):"insideBottomRight"===i?cj({x:a+u-y,y:c+l-f,textAnchor:v,verticalAnchor:h},w):Bi(i)&&(tc(i.x)||Qa(i.x))&&(tc(i.y)||Qa(i.y))?cj({x:a+ic(i.x,u),y:c+ic(i.y,l),textAnchor:"end",verticalAnchor:"end"},w):cj({x:a+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)},dj=function(t){return"cx"in t&&tc(t.cx)};function yj(t){var e,r=t.offset,n=cj({offset:void 0===r?5:r},oj(t,rj)),i=n.viewBox,o=n.position,a=n.value,c=n.children,u=n.content,l=n.className,s=void 0===l?"":l,f=n.textBreakAll;if(!i||Ia(a)&&Ia(c)&&!Y(u)&&!Hi(u))return null;if(Y(u))return it(u,n);if(Hi(u)){if(Y(e=ot(u,n)))return e}else e=sj(n);var h=dj(i),p=_c(n,!0);if(h&&("insideStart"===o||"insideEnd"===o||"end"===o))return fj(n,e,p);var d=h?hj(n):pj(n);return X.createElement(Zv,lj({className:ui("recharts-label",s)},p,d,{breakAll:f}),e)}yj.displayName="Label";var vj=function(t){var e=t.cx,r=t.cy,n=t.angle,i=t.startAngle,o=t.endAngle,a=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,h=t.top,p=t.left,d=t.width,y=t.height,v=t.clockWise,g=t.labelViewBox;if(g)return g;if(tc(d)&&tc(y)){if(tc(s)&&tc(f))return{x:s,y:f,width:d,height:y};if(tc(h)&&tc(p))return{x:h,y:p,width:d,height:y}}return tc(s)&&tc(f)?{x:s,y:f,width:0,height:0}:tc(e)&&tc(r)?{cx:e,cy:r,startAngle:i||n||0,endAngle:o||n||0,innerRadius:u||0,outerRadius:l||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};yj.parseViewBox=vj,yj.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=t.children,i=vj(t),o=Ac(n,yj).map((function(t,r){return it(t,{viewBox:e||i,key:"label-".concat(r)})}));if(!r)return o;var a=function(t,e){return t?!0===t?X.createElement(yj,{key:"label-implicit",viewBox:e}):ec(t)?X.createElement(yj,{key:"label-implicit",viewBox:e,value:t}):Y(t)?t.type===yj?it(t,{key:"label-implicit",viewBox:e}):X.createElement(yj,{key:"label-implicit",content:t,viewBox:e}):Hi(t)?X.createElement(yj,{key:"label-implicit",content:t,viewBox:e}):Bi(t)?X.createElement(yj,lj({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||i);return[a].concat(nj(o))};var gj=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},mj=On(gj);function bj(t){return bj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bj(t)}var wj=["valueAccessor"],xj=["data","dataKey","clockWise","id","textBreakAll"];function Oj(t){return function(t){if(Array.isArray(t))return Sj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Sj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sj(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sj(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function jj(){return jj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},jj.apply(this,arguments)}function Aj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Pj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Aj(Object(r),!0).forEach((function(e){Mj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Aj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Mj(t,e,r){return e=function(t){var e=function(t,e){if("object"!=bj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=bj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==bj(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ej(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var kj=function(t){return Array.isArray(t.value)?mj(t.value):t.value};function _j(t){var e=t.valueAccessor,r=void 0===e?kj:e,n=Ej(t,wj),i=n.data,o=n.dataKey,a=n.clockWise,c=n.id,u=n.textBreakAll,l=Ej(n,xj);return i&&i.length?X.createElement(Hc,{className:"recharts-label-list"},i.map((function(t,e){var n=Ia(o)?r(t,e):jS(t&&t.payload,o),i=Ia(c)?{}:{id:"".concat(c,"-").concat(e)};return X.createElement(yj,jj({},_c(t,!0),l,i,{parentViewBox:t.parentViewBox,value:n,textBreakAll:u,viewBox:yj.parseViewBox(Ia(a)?t:Pj(Pj({},t),{},{clockWise:a})),key:"label-".concat(e),index:e}))}))):null}function Tj(t){return Tj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tj(t)}function Cj(){return Cj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Cj.apply(this,arguments)}function Nj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Dj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Nj(Object(r),!0).forEach((function(e){Ij(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ij(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Tj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Tj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Tj(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}_j.displayName="LabelList",_j.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=Ac(t.children,_j).map((function(t,r){return it(t,{data:e,key:"labelList-".concat(r)})}));return r?[function(t,e){return t?!0===t?X.createElement(_j,{key:"labelList-implicit",data:e}):X.isValidElement(t)||Hi(t)?X.createElement(_j,{key:"labelList-implicit",data:e,content:t}):Bi(t)?X.createElement(_j,jj({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(Oj(n)):n};var Bj=function(t){var e=t.cx,r=t.cy,n=t.radius,i=t.angle,o=t.sign,a=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(a?1:-1)+n,s=Math.asin(c/l)/KS,f=u?i:i+o*s,h=u?i-o*s:i;return{center:ZS(e,r,l,f),circleTangency:ZS(e,r,n,f),lineTangency:ZS(e,r,l*Math.cos(s*KS),h),theta:s}},Lj=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.startAngle,a=function(t,e){return Ja(e-t)*Math.min(Math.abs(e-t),359.999)}(o,t.endAngle),c=o+a,u=ZS(e,r,i,o),l=ZS(e,r,i,c),s="M ".concat(u.x,",").concat(u.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o>c),",\n ").concat(l.x,",").concat(l.y,"\n ");if(n>0){var f=ZS(e,r,n,o),h=ZS(e,r,n,c);s+="L ".concat(h.x,",").concat(h.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},Rj={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},$j=function(t){var e=Dj(Dj({},Rj),t),r=e.cx,n=e.cy,i=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,c=e.forceCornerRadius,u=e.cornerIsExternal,l=e.startAngle,s=e.endAngle,f=e.className;if(o<i||l===s)return null;var h,p=ui("recharts-sector",f),d=o-i,y=ic(a,d,0,!0);return h=y>0&&Math.abs(l-s)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,s=Ja(l-u),f=Bj({cx:e,cy:r,radius:i,angle:u,sign:s,cornerRadius:o,cornerIsExternal:c}),h=f.circleTangency,p=f.lineTangency,d=f.theta,y=Bj({cx:e,cy:r,radius:i,angle:l,sign:-s,cornerRadius:o,cornerIsExternal:c}),v=y.circleTangency,g=y.lineTangency,m=y.theta,b=c?Math.abs(u-l):Math.abs(u-l)-d-m;if(b<0)return a?"M ".concat(p.x,",").concat(p.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):Lj({cx:e,cy:r,innerRadius:n,outerRadius:i,startAngle:u,endAngle:l});var w="M ".concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(g.x,",").concat(g.y,"\n ");if(n>0){var x=Bj({cx:e,cy:r,radius:n,angle:u,sign:s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=x.circleTangency,S=x.lineTangency,j=x.theta,A=Bj({cx:e,cy:r,radius:n,angle:l,sign:-s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),P=A.circleTangency,M=A.lineTangency,E=A.theta,k=c?Math.abs(u-l):Math.abs(u-l)-j-E;if(k<0&&0===o)return"".concat(w,"L").concat(e,",").concat(r,"Z");w+="L".concat(M.x,",").concat(M.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(P.x,",").concat(P.y,"\n A").concat(n,",").concat(n,",0,").concat(+(k>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else w+="L".concat(e,",").concat(r,"Z");return w}({cx:r,cy:n,innerRadius:i,outerRadius:o,cornerRadius:Math.min(y,d/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:l,endAngle:s}):Lj({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:l,endAngle:s}),X.createElement("path",Cj({},_c(e,!0),{className:p,d:h,role:"img"}))};function zj(t){return zj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zj(t)}function Hj(){return Hj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Hj.apply(this,arguments)}function Fj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Uj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Fj(Object(r),!0).forEach((function(e){Vj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Vj(t,e,r){return e=function(t){var e=function(t,e){if("object"!=zj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=zj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==zj(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var qj,Wj,Xj,Yj,Kj,Gj,Zj,Jj,Qj,tA,eA,rA,nA={curveBasisClosed:function(t){return new al(t)},curveBasisOpen:function(t){return new cl(t)},curveBasis:function(t){return new ol(t)},curveBumpX:function(t){return new $u(t,!0)},curveBumpY:function(t){return new $u(t,!1)},curveLinearClosed:function(t){return new ul(t)},curveLinear:Du,curveMonotoneX:function(t){return new pl(t)},curveMonotoneY:function(t){return new dl(t)},curveNatural:function(t){return new vl(t)},curveStep:function(t){return new ml(t,.5)},curveStepAfter:function(t){return new ml(t,1)},curveStepBefore:function(t){return new ml(t,0)}},iA=function(t){return t.x===+t.x&&t.y===+t.y},oA=function(t){return t.x},aA=function(t){return t.y},cA=function(t){var e,r=t.type,n=void 0===r?"linear":r,i=t.points,o=void 0===i?[]:i,a=t.baseLine,c=t.layout,u=t.connectNulls,l=void 0!==u&&u,s=function(t,e){if(Hi(t))return t;var r="curve".concat(mu(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?nA[r]||Du:nA["".concat(r).concat("vertical"===e?"Y":"X")]}(n,c),f=l?o.filter((function(t){return iA(t)})):o;if(Array.isArray(a)){var h=l?a.filter((function(t){return iA(t)})):a,p=f.map((function(t,e){return Uj(Uj({},t),{},{base:h[e]})}));return(e="vertical"===c?Ru().y(aA).x1(oA).x0((function(t){return t.base.x})):Ru().x(oA).y1(aA).y0((function(t){return t.base.y}))).defined(iA).curve(s),e(p)}return(e="vertical"===c&&tc(a)?Ru().y(aA).x1(oA).x0(a):tc(a)?Ru().x(oA).y1(aA).y0(a):Lu().x(oA).y(aA)).defined(iA).curve(s),e(f)},uA=function(t){var e=t.className,r=t.points,n=t.path,i=t.pathRef;if(!(r&&r.length||n))return null;var o=r&&r.length?cA(t):n;return X.createElement("path",Hj({},_c(t,!1),dc(t),{className:ui("recharts-curve",e),d:o,ref:i}))},lA={exports:{}};function sA(){if(Wj)return qj;Wj=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return qj=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(n,i){for(var o,a,c=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(n),u=1;u<arguments.length;u++){for(var l in o=Object(arguments[u]))e.call(o,l)&&(c[l]=o[l]);if(t){a=t(o);for(var s=0;s<a.length;s++)r.call(o,a[s])&&(c[a[s]]=o[a[s]])}}return c},qj}function fA(){if(Yj)return Xj;Yj=1;return Xj="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function hA(){return Gj?Kj:(Gj=1,Kj=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var pA=qa;lA.exports=function(){if(tA)return Qj;tA=1;var t=qa,e=sA(),r=fA(),n=hA(),i=function(){if(Jj)return Zj;Jj=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=fA(),r={},n=hA();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function i(i,o,a,c,u){if("production"!==process.env.NODE_ENV)for(var l in i)if(n(i,l)){var s;try{if("function"!=typeof i[l]){var f=Error((c||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=i[l](o,l,c,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((c||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in r)){r[s.message]=!0;var h=u?u():"";t("Failed "+a+" type: "+s.message+(null!=h?h:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},Zj=i}(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),Qj=function(c,u){var l="function"==typeof Symbol&&Symbol.iterator,s="@@iterator",f="<<anonymous>>",h={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:y(a),arrayOf:function(t){return y((function(e,n,i,o,a){if("function"!=typeof t)return new d("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c))return new d("Invalid "+o+" `"+a+"` of type `"+b(c)+"` supplied to `"+i+"`, expected an array.");for(var u=0;u<c.length;u++){var l=t(c,u,i,o,a+"["+u+"]",r);if(l instanceof Error)return l}return null}))},element:y((function(t,e,r,n,i){var o=t[e];return c(o)?null:new d("Invalid "+n+" `"+i+"` of type `"+b(o)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:y((function(e,r,n,i,o){var a=e[r];return t.isValidElementType(a)?null:new d("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return y((function(e,r,n,i,o){if(!(e[r]instanceof t)){var a=t.name||f;return new d("Invalid "+i+" `"+o+"` of type `"+((c=e[r]).constructor&&c.constructor.name?c.constructor.name:f)+"` supplied to `"+n+"`, expected instance of `"+a+"`.")}var c;return null}))},node:y((function(t,e,r,n,i){return m(t[e])?null:new d("Invalid "+n+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return y((function(e,i,o,a,c){if("function"!=typeof t)return new d("Property `"+c+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var u=e[i],l=b(u);if("object"!==l)return new d("Invalid "+a+" `"+c+"` of type `"+l+"` supplied to `"+o+"`, expected an object.");for(var s in u)if(n(u,s)){var f=t(u,s,o,a,c+"."+s,r);if(f instanceof Error)return f}return null}))},oneOf:function(t){return Array.isArray(t)?y((function(e,r,n,i,o){for(var a=e[r],c=0;c<t.length;c++)if(p(a,t[c]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===w(e)?String(e):e}));return new d("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+u+".")})):("production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var i=t[e];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(i)+" at index "+e+"."),a}return y((function(e,i,o,a,c){for(var u=[],l=0;l<t.length;l++){var s=(0,t[l])(e,i,o,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&u.push(s.data.expectedType)}return new d("Invalid "+a+" `"+c+"` supplied to `"+o+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")}))},shape:function(t){return y((function(e,n,i,o,a){var c=e[n],u=b(c);if("object"!==u)return new d("Invalid "+o+" `"+a+"` of type `"+u+"` supplied to `"+i+"`, expected `object`.");for(var l in t){var s=t[l];if("function"!=typeof s)return g(i,o,a,l,w(s));var f=s(c,l,i,o,a+"."+l,r);if(f)return f}return null}))},exact:function(t){return y((function(i,o,a,c,u){var l=i[o],s=b(l);if("object"!==s)return new d("Invalid "+c+" `"+u+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},i[o],t);for(var h in f){var p=t[h];if(n(t,h)&&"function"!=typeof p)return g(a,c,u,h,w(p));if(!p)return new d("Invalid "+c+" `"+u+"` key `"+h+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var y=p(l,h,a,c,u+"."+h,r);if(y)return y}return null}))}};function p(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function d(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function y(t){if("production"!==process.env.NODE_ENV)var e={},n=0;function i(i,a,c,l,s,h,p){if(l=l||f,h=h||c,p!==r){if(u){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=l+":"+c;!e[v]&&n<3&&(o("You are manually calling a React.PropTypes validation function for the `"+h+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[v]=!0,n++)}}return null==a[c]?i?null===a[c]?new d("The "+s+" `"+h+"` is marked as required in `"+l+"`, but its value is `null`."):new d("The "+s+" `"+h+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(a,c,l,s,h)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function v(t){return y((function(e,r,n,i,o,a){var c=e[r];return b(c)!==t?new d("Invalid "+i+" `"+o+"` of type `"+w(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function g(t,e,r,n,i){return new d((t||"React class")+": "+e+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function m(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(m);if(null===t||c(t))return!0;var e=function(t){var e=t&&(l&&t[l]||t[s]);if("function"==typeof e)return e}(t);if(!e)return!1;var r,n=e.call(t);if(e!==t.entries){for(;!(r=n.next()).done;)if(!m(r.value))return!1}else for(;!(r=n.next()).done;){var i=r.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function b(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function w(t){if(null==t)return""+t;var e=b(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function x(t){var e=w(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return d.prototype=Error.prototype,h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Qj}()(pA.isElement,!0)}else lA.exports=function(){if(rA)return eA;rA=1;var t=fA();function e(){}function r(){}return r.resetWarningCache=e,eA=function(){function n(e,r,n,i,o,a){if(a!==t){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function i(){return n}n.isRequired=n;var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:e};return o.PropTypes=o,o}}()();var dA=On(lA.exports),yA=Object.getOwnPropertyNames,vA=Object.getOwnPropertySymbols,gA=Object.prototype.hasOwnProperty;function mA(t,e){return function(r,n,i){return t(r,n,i)&&e(r,n,i)}}function bA(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var i=n.cache,o=i.get(e),a=i.get(r);if(o&&a)return o===r&&a===e;i.set(e,r),i.set(r,e);var c=t(e,r,n);return i.delete(e),i.delete(r),c}}function wA(t){return yA(t).concat(vA(t))}var xA=Object.hasOwn||function(t,e){return gA.call(t,e)};function OA(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var SA="_owner",jA=Object.getOwnPropertyDescriptor,AA=Object.keys;function PA(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function MA(t,e){return OA(t.getTime(),e.getTime())}function EA(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var u=e.entries(),l=!1,s=0;(i=u.next())&&!i.done;){var f=n.value,h=f[0],p=f[1],d=i.value,y=d[0],v=d[1];l||o[s]||!(l=r.equals(h,y,c,s,t,e,r)&&r.equals(p,v,h,y,t,e,r))||(o[s]=!0),s++}if(!l)return!1;c++}return!0}function kA(t,e,r){var n,i=AA(t),o=i.length;if(AA(e).length!==o)return!1;for(;o-- >0;){if((n=i[o])===SA&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!xA(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function _A(t,e,r){var n,i,o,a=wA(t),c=a.length;if(wA(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===SA&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!xA(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(i=jA(t,n),o=jA(e,n),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function TA(t,e){return OA(t.valueOf(),e.valueOf())}function CA(t,e){return t.source===e.source&&t.flags===e.flags}function NA(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),u=!1,l=0;(i=c.next())&&!i.done;)u||o[l]||!(u=r.equals(n.value,i.value,n.value,i.value,t,e,r))||(o[l]=!0),l++;if(!u)return!1}return!0}function DA(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var IA="[object Arguments]",BA="[object Boolean]",LA="[object Date]",RA="[object Map]",$A="[object Number]",zA="[object Object]",HA="[object RegExp]",FA="[object Set]",UA="[object String]",VA=Array.isArray,qA="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,WA=Object.assign,XA=Object.prototype.toString.call.bind(Object.prototype.toString);var YA=KA();function KA(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,i=t.createInternalComparator,o=t.createState,a=t.strict,c=void 0!==a&&a,u=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,i={areArraysEqual:n?_A:PA,areDatesEqual:MA,areMapsEqual:n?mA(EA,_A):EA,areObjectsEqual:n?_A:kA,arePrimitiveWrappersEqual:TA,areRegExpsEqual:CA,areSetsEqual:n?mA(NA,_A):NA,areTypedArraysEqual:n?_A:DA};if(r&&(i=WA({},i,r(i))),e){var o=bA(i.areArraysEqual),a=bA(i.areMapsEqual),c=bA(i.areObjectsEqual),u=bA(i.areSetsEqual);i=WA({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return i}(t),l=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,i=t.areObjectsEqual,o=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,u=t.areTypedArraysEqual;return function(t,l,s){if(t===l)return!0;if(null==t||null==l||"object"!=typeof t||"object"!=typeof l)return t!=t&&l!=l;var f=t.constructor;if(f!==l.constructor)return!1;if(f===Object)return i(t,l,s);if(VA(t))return e(t,l,s);if(null!=qA&&qA(t))return u(t,l,s);if(f===Date)return r(t,l,s);if(f===RegExp)return a(t,l,s);if(f===Map)return n(t,l,s);if(f===Set)return c(t,l,s);var h=XA(t);return h===LA?r(t,l,s):h===HA?a(t,l,s):h===RA?n(t,l,s):h===FA?c(t,l,s):h===zA?"function"!=typeof t.then&&"function"!=typeof l.then&&i(t,l,s):h===IA?i(t,l,s):(h===BA||h===$A||h===UA)&&o(t,l,s)}}(u),s=i?i(l):(e=l,function(t,r,n,i,o,a,c){return e(t,r,c)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,i=t.equals,o=t.strict;if(n)return function(t,a){var c=n(),u=c.cache,l=void 0===u?e?new WeakMap:void 0:u,s=c.meta;return r(t,a,{cache:l,equals:i,meta:s,strict:o})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(t,e){return r(t,e,a)}}({circular:n,comparator:l,createState:o,equals:s,strict:c})}function GA(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(i){r<0&&(r=i),i-r>e?(t(i),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function ZA(t){return ZA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ZA(t)}function JA(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return QA(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return QA(t,e)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function QA(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function tP(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var i=JA(n),o=i[0],a=i.slice(1);return"number"==typeof o?void GA(r.bind(null,a),o):(r(o),void GA(r.bind(null,a)))}"object"===ZA(n)&&t(n),"function"==typeof n&&n()}};return{stop:function(){e=!0},start:function(t){e=!1,r(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function eP(t){return eP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eP(t)}function rP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function nP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rP(Object(r),!0).forEach((function(e){iP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function iP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==eP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==eP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===eP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}KA({strict:!0}),KA({circular:!0}),KA({circular:!0,strict:!0}),KA({createInternalComparator:function(){return OA}}),KA({strict:!0,createInternalComparator:function(){return OA}}),KA({circular:!0,createInternalComparator:function(){return OA}}),KA({circular:!0,createInternalComparator:function(){return OA},strict:!0});var oP=function(t){return t},aP=function(t,e){return Object.keys(e).reduce((function(r,n){return nP(nP({},r),{},iP({},n,t(n,e[n])))}),{})},cP=function(t,e,r){return t.map((function(t){return"".concat((n=t,n.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(r);var n})).join(",")},uP="production"!==process.env.NODE_ENV,lP=function(t,e,r,n,i,o,a,c){if(uP&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,i,o,a,c],l=0;console.warn(e.replace(/%s/g,(function(){return u[l++]})))}};function sP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||hP(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fP(t){return function(t){if(Array.isArray(t))return pP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||hP(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hP(t,e){if(t){if("string"==typeof t)return pP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pP(t,e):void 0}}function pP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var dP=1e-4,yP=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},vP=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},gP=function(t,e){return function(r){var n=yP(t,e);return vP(n,r)}},mP=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],i=e[1],o=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,i=0,o=1,a=1;break;case"ease":n=.25,i=.1,o=.25,a=1;break;case"ease-in":n=.42,i=0,o=1,a=1;break;case"ease-out":n=.42,i=0,o=.58,a=1;break;case"ease-in-out":n=0,i=0,o=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),l=sP(u,4);n=l[0],i=l[1],o=l[2],a=l[3]}else lP(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",e)}lP([n,o,i,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",e);var s,f,h=gP(n,o),p=gP(i,a),d=(s=n,f=o,function(t){var e=yP(s,f),r=[].concat(fP(e.map((function(t,e){return t*e})).slice(1)),[0]);return vP(r,t)}),y=function(t){for(var e,r=t>1?1:t,n=r,i=0;i<8;++i){var o=h(n)-r,a=d(n);if(Math.abs(o-r)<dP||a<dP)return p(n);n=(e=n-o/a)>1?1:e<0?0:e}return p(n)};return y.isStepper=!1,y},bP=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return mP(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,i=void 0===n?8:n,o=t.dt,a=void 0===o?17:o,c=function(t,e,n){var o=n+(-(t-e)*r-n*i)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<dP&&Math.abs(o)<dP?[e,0]:[c,o]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return mP(n);lP(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",e)}return"function"==typeof n?n:(lP(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function wP(t){return wP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wP(t)}function xP(t){return function(t){if(Array.isArray(t))return MP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||PP(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function SP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?OP(Object(r),!0).forEach((function(e){jP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):OP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==wP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==wP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===wP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function AP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||PP(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function PP(t,e){if(t){if("string"==typeof t)return MP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?MP(t,e):void 0}}function MP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var EP=function(t,e,r){return t+(e-t)*r},kP=function(t){return t.from!==t.to},_P=function t(e,r,n){var i=aP((function(t,r){if(kP(r)){var n=AP(e(r.from,r.to,r.velocity),2),i=n[0],o=n[1];return SP(SP({},r),{},{from:i,velocity:o})}return r}),r);return n<1?aP((function(t,e){return kP(e)?SP(SP({},e),{},{velocity:EP(e.velocity,i[t].velocity,n),from:EP(e.from,i[t].from,n)}):e}),r):t(e,i,n-1)},TP=function(t,e,r,n,i){var o,a,c,u,l=(o=t,a=e,[Object.keys(o),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=l.reduce((function(r,n){return SP(SP({},r),{},jP({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return SP(SP({},r),{},jP({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),h=-1,p=function(){return null};return p=r.isStepper?function(n){c||(c=n);var o=(n-c)/r.dt;f=_P(r,f,o),i(SP(SP(SP({},t),e),aP((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(kP).length&&(h=requestAnimationFrame(p))}:function(o){u||(u=o);var a=(o-u)/n,c=aP((function(t,e){return EP.apply(void 0,xP(e).concat([r(a)]))}),s);if(i(SP(SP(SP({},t),e),c)),a<1)h=requestAnimationFrame(p);else{var l=aP((function(t,e){return EP.apply(void 0,xP(e).concat([r(1)]))}),s);i(SP(SP(SP({},t),e),l))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(h)}}};function CP(t){return CP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},CP(t)}var NP=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function DP(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function IP(t){return function(t){if(Array.isArray(t))return BP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return BP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return BP(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function BP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function LP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function RP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?LP(Object(r),!0).forEach((function(e){$P(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):LP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $P(t,e,r){return(e=HP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,HP(n.key),n)}}function HP(t){var e=function(t,e){if("object"!==CP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==CP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===CP(e)?e:String(e)}function FP(t,e){return FP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},FP(t,e)}function UP(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=WP(t);if(e){var i=WP(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return VP(this,r)}}function VP(t,e){if(e&&("object"===CP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return qP(t)}function qP(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function WP(t){return WP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},WP(t)}var XP=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&FP(t,e)}(o,G);var e,r,n,i=UP(o);function o(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var n=(r=i.call(this,t,e)).props,a=n.isActive,c=n.attributeName,u=n.from,l=n.to,s=n.steps,f=n.children,h=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(qP(r)),r.changeStyle=r.changeStyle.bind(qP(r)),!a||h<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:l}),VP(r);if(s&&s.length)r.state={style:s[0].style};else if(u){if("function"==typeof f)return r.state={style:u},VP(r);r.state={style:c?$P({},c,u):u}}else r.state={style:{}};return r}return e=o,(r=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,i=e.attributeName,o=e.shouldReAnimate,a=e.to,c=e.from,u=this.state.style;if(n)if(r){if(!(YA(t.to,a)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=l||o?c:t.to;if(this.state&&u){var f={style:i?$P({},i,s):s};(i&&[i]!==s||!i&&u!==s)&&this.setState(f)}this.runAnimation(RP(RP({},this.props),{},{from:s,begin:0}))}}else{var h={style:i?$P({},i,a):a};this.state&&u&&(i&&u[i]!==a||!i&&u!==a)&&this.setState(h)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,i=t.duration,o=t.easing,a=t.begin,c=t.onAnimationEnd,u=t.onAnimationStart,l=TP(r,n,bP(o),i,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=l()},i,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,i=t.onAnimationStart,o=r[0],a=o.style,c=o.duration,u=void 0===c?0:c;return this.manager.start([i].concat(IP(r.reduce((function(t,n,i){if(0===i)return t;var o=n.duration,a=n.easing,c=void 0===a?"ease":a,u=n.style,l=n.properties,s=n.onAnimationEnd,f=i>0?r[i-1]:n,h=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(IP(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:o,easing:c}),o]);var p=cP(h,o,c),d=RP(RP(RP({},f.style),u),{},{transition:p});return[].concat(IP(t),[d,o,s]).filter(oP)}),[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=tP());var e=t.begin,r=t.duration,n=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,u=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof o&&"function"!=typeof l&&"spring"!==o)if(u.length>1)this.runStepAnimation(t);else{var f=n?$P({},n,i):i,h=cP(Object.keys(f),r,o);s.start([a,e,RP(RP({},f),{},{transition:h}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children;t.begin;var r=t.duration;t.attributeName,t.easing;var n=t.isActive;t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart;var i=DP(t,NP),o=K.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!n||0===o||r<=0)return e;var c=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,o=e.className;return it(t,RP(RP({},i),{},{style:RP(RP({},n),a),className:o}))};return 1===o?c(K.only(e)):X.createElement("div",null,K.map(e,(function(t){return c(t)})))}}])&&zP(e.prototype,r),n&&zP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}();function YP(t){return YP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},YP(t)}function KP(){return KP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},KP.apply(this,arguments)}function GP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ZP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ZP(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function JP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function QP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?JP(Object(r),!0).forEach((function(e){tM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):JP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=YP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=YP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==YP(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}XP.displayName="Animate",XP.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},XP.propTypes={from:dA.oneOfType([dA.object,dA.string]),to:dA.oneOfType([dA.object,dA.string]),attributeName:dA.string,duration:dA.number,begin:dA.number,easing:dA.oneOfType([dA.string,dA.func]),steps:dA.arrayOf(dA.shape({duration:dA.number.isRequired,style:dA.object.isRequired,easing:dA.oneOfType([dA.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),dA.func]),properties:dA.arrayOf("string"),onAnimationEnd:dA.func})),children:dA.oneOfType([dA.node,dA.func]),isActive:dA.bool,canBegin:dA.bool,onAnimationEnd:dA.func,shouldReAnimate:dA.bool,onAnimationStart:dA.func,onAnimationReStart:dA.func},dA.object,dA.object,dA.object,dA.element,dA.object,dA.object,dA.object,dA.oneOfType([dA.array,dA.element]),dA.any;var eM=function(t,e,r,n,i){var o,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,u=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&i instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(o+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+u*s[0],",").concat(e)),o+="L ".concat(t+r-u*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+c*s[1])),o+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-u*s[2],",").concat(e+n)),o+="L ".concat(t+u*s[3],",").concat(e+n),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-c*s[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var h=Math.min(a,i);o="M ".concat(t,",").concat(e+c*h,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t+u*h,",").concat(e,"\n L ").concat(t+r-u*h,",").concat(e,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t+r,",").concat(e+c*h,"\n L ").concat(t+r,",").concat(e+n-c*h,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t+r-u*h,",").concat(e+n,"\n L ").concat(t+u*h,",").concat(e+n,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t,",").concat(e+n-c*h," Z")}else o="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return o},rM=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,i=e.x,o=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var u=Math.min(i,i+a),l=Math.max(i,i+a),s=Math.min(o,o+c),f=Math.max(o,o+c);return r>=u&&r<=l&&n>=s&&n<=f}return!1},nM={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},iM=function(t){var e=QP(QP({},nM),t),r=J(),n=GP(tt(-1),2),i=n[0],o=n[1];rt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,u=e.width,l=e.height,s=e.radius,f=e.className,h=e.animationEasing,p=e.animationDuration,d=e.animationBegin,y=e.isAnimationActive,v=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||0===u||0===l)return null;var g=ui("recharts-rectangle",f);return v?X.createElement(XP,{canBegin:i>0,from:{width:u,height:l,x:a,y:c},to:{width:u,height:l,x:a,y:c},duration:p,animationEasing:h,isActive:v},(function(t){var n=t.width,o=t.height,a=t.x,c=t.y;return X.createElement(XP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:y,easing:h},X.createElement("path",KP({},_c(e,!0),{className:g,d:eM(a,c,n,o,s),ref:r})))})):X.createElement("path",KP({},_c(e,!0),{className:g,d:eM(a,c,u,l,s)}))};function oM(){return oM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},oM.apply(this,arguments)}var aM=function(t){var e=t.cx,r=t.cy,n=t.r,i=ui("recharts-dot",t.className);return e===+e&&r===+r&&n===+n?X.createElement("circle",oM({},_c(t,!1),dc(t),{className:i,cx:e,cy:r,r:n})):null};function cM(t){return cM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cM(t)}var uM=["x","y","top","left","width","height","className"];function lM(){return lM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},lM.apply(this,arguments)}function sM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=cM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=cM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==cM(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hM(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var pM=function(t,e,r,n,i,o){return"M".concat(t,",").concat(i,"v").concat(n,"M").concat(o,",").concat(e,"h").concat(r)},dM=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,i=void 0===n?0:n,o=t.top,a=void 0===o?0:o,c=t.left,u=void 0===c?0:c,l=t.width,s=void 0===l?0:l,f=t.height,h=void 0===f?0:f,p=t.className,d=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?sM(Object(r),!0).forEach((function(e){fM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:i,top:a,left:u,width:s,height:h},hM(t,uM));return tc(r)&&tc(i)&&tc(s)&&tc(h)&&tc(a)&&tc(u)?X.createElement("path",lM({},_c(d,!0),{className:ui("recharts-cross",p),d:pM(r,i,s,h,a,u)})):null},yM=bf(Object.getPrototypeOf,Object),vM=Ai,gM=yM,mM=Pi,bM=Function.prototype,wM=Object.prototype,xM=bM.toString,OM=wM.hasOwnProperty,SM=xM.call(Object);var jM=On((function(t){if(!mM(t)||"[object Object]"!=vM(t))return!1;var e=gM(t);if(null===e)return!0;var r=OM.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&xM.call(r)==SM})),AM=Ai,PM=Pi;var MM=On((function(t){return!0===t||!1===t||PM(t)&&"[object Boolean]"==AM(t)}));function EM(t){return EM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},EM(t)}function kM(){return kM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},kM.apply(this,arguments)}function _M(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return TM(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return TM(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function TM(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function CM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function NM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?CM(Object(r),!0).forEach((function(e){DM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):CM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function DM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=EM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=EM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==EM(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var IM=function(t,e,r,n,i){var o,a=r-n;return o="M ".concat(t,",").concat(e),o+="L ".concat(t+r,",").concat(e),o+="L ".concat(t+r-a/2,",").concat(e+i),o+="L ".concat(t+r-a/2-n,",").concat(e+i),o+="L ".concat(t,",").concat(e," Z")},BM={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},LM=function(t){var e=NM(NM({},BM),t),r=J(),n=_M(tt(-1),2),i=n[0],o=n[1];rt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,u=e.upperWidth,l=e.lowerWidth,s=e.height,f=e.className,h=e.animationEasing,p=e.animationDuration,d=e.animationBegin,y=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||s!==+s||0===u&&0===l||0===s)return null;var v=ui("recharts-trapezoid",f);return y?X.createElement(XP,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:c},to:{upperWidth:u,lowerWidth:l,height:s,x:a,y:c},duration:p,animationEasing:h,isActive:y},(function(t){var n=t.upperWidth,o=t.lowerWidth,a=t.height,c=t.x,u=t.y;return X.createElement(XP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:h},X.createElement("path",kM({},_c(e,!0),{className:v,d:IM(c,u,n,o,a),ref:r})))})):X.createElement("g",null,X.createElement("path",kM({},_c(e,!0),{className:v,d:IM(a,c,u,l,s)})))},RM=["option","shapeType","propTransformer","activeClassName","isActive"];function $M(t){return $M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$M(t)}function zM(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function HM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function FM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?HM(Object(r),!0).forEach((function(e){UM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):HM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function UM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=$M(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=$M(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==$M(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function VM(t,e){return FM(FM({},e),t)}function qM(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return X.createElement(iM,r);case"trapezoid":return X.createElement(LM,r);case"sector":return X.createElement($j,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return X.createElement(Cl,r);break;default:return null}}function WM(t){var e,r=t.option,n=t.shapeType,i=t.propTransformer,o=void 0===i?VM:i,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,u=t.isActive,l=zM(t,RM);if(Y(r))e=it(r,FM(FM({},l),function(t){return Y(t)?t.props:t}(r)));else if(Hi(r))e=r(l);else if(jM(r)&&!MM(r)){var s=o(r,l);e=X.createElement(qM,{shapeType:n,elementProps:s})}else{var f=l;e=X.createElement(qM,{shapeType:n,elementProps:f})}return u?X.createElement(Hc,{className:c},e):e}function XM(t,e){return null!=e&&"trapezoids"in t.props}function YM(t,e){return null!=e&&"sectors"in t.props}function KM(t,e){return null!=e&&"points"in t.props}function GM(t,e){var r,n,i=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,o=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return i&&o}function ZM(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function JM(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function QM(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,i=function(t,e){var r;return XM(t,e)?r="trapezoids":YM(t,e)?r="sectors":KM(t,e)&&(r="points"),r}(r,e),o=function(t,e){var r,n;return XM(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:YM(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:KM(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=eO(o,t),c=r.props[i].filter((function(t){var n=function(t,e){var r;return XM(t,e)?r=GM:YM(t,e)?r=ZM:KM(t,e)&&(r=JM),r}(r,e);return n(t,e)})),u=r.props[i].indexOf(c[c.length-1]);return a&&n===u}));return n.indexOf(a[a.length-1])}var tE=Math.ceil,eE=Math.max;var rE=Zy,nE=1/0;var iE=function(t,e,r,n){for(var i=-1,o=eE(tE((e-t)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=t,t+=r;return a},oE=Xd,aE=function(t){return t?(t=rE(t))===nE||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};var cE=On(function(t){return function(e,r,n){return n&&"number"!=typeof n&&oE(e,r,n)&&(r=n=void 0),e=aE(e),void 0===r?(r=e,e=0):r=aE(r),n=void 0===n?e<r?1:-1:aE(n),iE(e,r,n,t)}}());function uE(t){return uE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uE(t)}function lE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function sE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lE(Object(r),!0).forEach((function(e){fE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=uE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=uE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==uE(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var hE=["Webkit","Moz","O","ms"];function pE(t){return pE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pE(t)}function dE(){return dE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},dE.apply(this,arguments)}function yE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yE(Object(r),!0).forEach((function(e){SE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jE(n.key),n)}}function mE(t,e,r){return e=wE(e),function(t,e){if(e&&("object"===pE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return xE(t)}(t,bE()?Reflect.construct(e,r||[],wE(t).constructor):e.apply(t,r))}function bE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(bE=function(){return!!t})()}function wE(t){return wE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wE(t)}function xE(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function OE(t,e){return OE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},OE(t,e)}function SE(t,e,r){return(e=jE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jE(t){var e=function(t,e){if("object"!=pE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=pE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==pE(e)?e:String(e)}var AE=function(t){return t.changedTouches&&!!t.changedTouches.length},PE=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),SE(xE(r=mE(this,e,[t])),"handleDrag",(function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)})),SE(xE(r),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),SE(xE(r),"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,i=t.startIndex;null==n||n({endIndex:e,startIndex:i})})),r.detachDragEndListener()})),SE(xE(r),"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),SE(xE(r),"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),SE(xE(r),"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),SE(xE(r),"handleSlideDragStart",(function(t){var e=AE(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()})),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(xE(r),"startX"),endX:r.handleTravellerDragStart.bind(xE(r),"endX")},r.state={},r}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&OE(t,e)}(e,G),r=e,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var r=t.startX,n=t.endX,i=this.state.scaleValues,o=this.props,a=o.gap,c=o.data.length-1,u=Math.min(r,n),l=Math.max(r,n),s=e.getIndexInRange(i,u),f=e.getIndexInRange(i,l);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,i=e.dataKey,o=jS(r[t],i,t);return Hi(n)?n(o,t):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,i=e.endX,o=this.props,a=o.x,c=o.width,u=o.travellerWidth,l=o.startIndex,s=o.endIndex,f=o.onChange,h=t.pageX-r;h>0?h=Math.min(h,a+c-u-i,a+c-u-n):h<0&&(h=Math.max(h,a-n,a-i));var p=this.getIndex({startX:n+h,endX:i+h});p.startIndex===l&&p.endIndex===s||!f||f(p),this.setState({startX:n+h,endX:i+h,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=AE(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,i=e.endX,o=e.startX,a=this.state[n],c=this.props,u=c.x,l=c.width,s=c.travellerWidth,f=c.onChange,h=c.gap,p=c.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,u+l-s-a):y<0&&(y=Math.max(y,u-a)),d[n]=a+y;var v=this.getIndex(d),g=v.startIndex,m=v.endIndex;this.setState(SE(SE({},n,a+y),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=p.length-1,("startX"===n&&(i>o?g%h==0:m%h==0)||i<o&&m===t||"endX"===n&&(i>o?m%h==0:g%h==0)||i>o&&m===t)&&f(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,i=n.scaleValues,o=n.startX,a=n.endX,c=this.state[e],u=i.indexOf(c);if(-1!==u){var l=u+t;if(!(-1===l||l>=i.length)){var s=i[l];"startX"===e&&s>=a||"endX"===e&&s<=o||this.setState(SE({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.fill,a=t.stroke;return X.createElement("rect",{stroke:a,fill:o,x:e,y:r,width:n,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.data,a=t.children,c=t.padding,u=K.only(a);return u?X.cloneElement(u,{x:e,y:r,width:n,height:i,margin:c,compact:!0,data:o}):null}},{key:"renderTravellerLayer",value:function(t,r){var n=this,i=this.props,o=i.y,a=i.travellerWidth,c=i.height,u=i.traveller,l=i.ariaLabel,s=i.data,f=i.startIndex,h=i.endIndex,p=Math.max(t,this.props.x),d=vE(vE({},_c(this.props,!1)),{},{x:p,y:o,width:a,height:c}),y=l||"Min value: ".concat(s[f].name,", Max value: ").concat(s[h].name);return X.createElement(Hc,{tabIndex:0,role:"slider","aria-label":y,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),n.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){n.setState({isTravellerFocused:!0})},onBlur:function(){n.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(u,d))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,i=r.height,o=r.stroke,a=r.travellerWidth,c=Math.min(t,e)+a,u=Math.max(Math.abs(e-t)-a,0);return X.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:c,y:n,width:u,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,i=t.height,o=t.travellerWidth,a=t.stroke,c=this.state,u=c.startX,l=c.endX,s={pointerEvents:"none",fill:a};return X.createElement(Hc,{className:"recharts-brush-texts"},X.createElement(Zv,dE({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:n+i/2},s),this.getTextOfTick(e)),X.createElement(Zv,dE({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+o+5,y:n+i/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,i=t.x,o=t.y,a=t.width,c=t.height,u=t.alwaysShowText,l=this.state,s=l.startX,f=l.endX,h=l.isTextActive,p=l.isSlideMoving,d=l.isTravellerMoving,y=l.isTravellerFocused;if(!e||!e.length||!tc(i)||!tc(o)||!tc(a)||!tc(c)||a<=0||c<=0)return null;var v=ui("recharts-brush",r),g=1===X.Children.count(n),m=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),n=hE.reduce((function(t,n){return sE(sE({},t),{},fE({},n+r,e))}),{});return n[t]=e,n}("userSelect","none");return X.createElement(Hc,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),g&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(h||p||d||y||u)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,i=t.height,o=t.stroke,a=Math.floor(r+i/2)-1;return X.createElement(X.Fragment,null,X.createElement("rect",{x:e,y:r,width:n,height:i,fill:o,stroke:"none"}),X.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),X.createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return X.isValidElement(t)?X.cloneElement(t,r):Hi(t)?t(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return vE({prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,i=t.x,o=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,u=Pg().domain(cE(0,c)).range([i,i+o-a]),l=u.domain().map((function(t){return u(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(n),scale:u,scaleValues:l}}({data:r,width:n,x:i,travellerWidth:o,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+n-o]);var l=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i}return e>=t[n]?n:r}}],n&&gE(r.prototype,n),i&&gE(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();SE(PE,"displayName","Brush"),SE(PE,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var ME=sd;var EE=us,kE=pp,_E=function(t,e){var r;return ME(t,(function(t,n,i){return!(r=e(t,n,i))})),!!r},TE=li,CE=Xd;var NE=On((function(t,e,r){var n=TE(t)?EE:_E;return r&&CE(t,e,r)&&(e=void 0),n(t,kE(e))})),DE=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},IE=Nd;var BE=function(t,e,r){"__proto__"==e&&IE?IE(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r},LE=BE,RE=ud,$E=pp;var zE=function(t,e){var r={};return e=$E(e),RE(t,(function(t,n,i){LE(r,n,e(t,n,i))})),r},HE=On(zE);var FE=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0},UE=sd;var VE=FE,qE=function(t,e){var r=!0;return UE(t,(function(t,n,i){return r=!!e(t,n,i)})),r},WE=pp,XE=li,YE=Xd;var KE=On((function(t,e,r){var n=XE(t)?VE:qE;return r&&YE(t,e,r)&&(e=void 0),n(t,WE(e))})),GE=["x","y"];function ZE(t){return ZE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ZE(t)}function JE(){return JE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},JE.apply(this,arguments)}function QE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?QE(Object(r),!0).forEach((function(e){ek(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):QE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ek(t,e,r){return e=function(t){var e=function(t,e){if("object"!=ZE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ZE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ZE(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rk(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function nk(t,e){var r=t.x,n=t.y,i=rk(t,GE),o="".concat(r),a=parseInt(o,10),c="".concat(n),u=parseInt(c,10),l="".concat(e.height||i.height),s=parseInt(l,10),f="".concat(e.width||i.width),h=parseInt(f,10);return tk(tk(tk(tk(tk({},e),i),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:h,name:e.name,radius:e.radius})}function ik(t){return X.createElement(WM,JE({shapeType:"rectangle",propTransformer:nk,activeClassName:"recharts-active-bar"},t))}var ok,ak=["value","background"];function ck(t){return ck="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ck(t)}function uk(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function lk(){return lk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},lk.apply(this,arguments)}function sk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?sk(Object(r),!0).forEach((function(e){mk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,bk(n.key),n)}}function pk(t,e,r){return e=yk(e),function(t,e){if(e&&("object"===ck(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return vk(t)}(t,dk()?Reflect.construct(e,r||[],yk(t).constructor):e.apply(t,r))}function dk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(dk=function(){return!!t})()}function yk(t){return yk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yk(t)}function vk(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gk(t,e){return gk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gk(t,e)}function mk(t,e,r){return(e=bk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bk(t){var e=function(t,e){if("object"!=ck(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ck(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ck(e)?e:String(e)}var wk=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return mk(vk(t=pk(this,e,[].concat(n))),"state",{isAnimationFinished:!1}),mk(vk(t),"id",nc("recharts-bar-")),mk(vk(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),mk(vk(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gk(t,e)}(e,G),r=e,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,i=r.dataKey,o=r.activeIndex,a=r.activeBar,c=_c(this.props,!1);return t&&t.map((function(t,r){var u=r===o,l=u?a:n,s=fk(fk(fk({},c),t),{},{isActive:u,option:l,index:r,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return X.createElement(Hc,lk({className:"recharts-bar-rectangle"},yc(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value)}),X.createElement(ik,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,i=e.isAnimationActive,o=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state.prevData;return X.createElement(XP,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t,o=r.map((function(t,e){var r=l&&l[e];if(r){var o=ac(r.x,t.x),a=ac(r.y,t.y),c=ac(r.width,t.width),u=ac(r.height,t.height);return fk(fk({},t),{},{x:o(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===n){var s=ac(0,t.height)(i);return fk(fk({},t),{},{y:t.y+t.height-s,height:s})}var f=ac(0,t.width)(i);return fk(fk({},t),{},{width:f})}));return X.createElement(Hc,null,t.renderRectanglesStatically(o))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&eO(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,i=e.activeIndex,o=_c(this.props.background,!1);return r.map((function(e,r){e.value;var a=e.background,c=uk(e,ak);if(!a)return null;var u=fk(fk(fk(fk(fk({},c),{},{fill:"#eee"},a),o),yc(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return X.createElement(ik,lk({option:t.props.background,isActive:r===i},u))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,i=r.xAxis,o=r.yAxis,a=r.layout,c=Ac(r.children,hS);if(!c)return null;var u="vertical"===a?n[0].height/2:n[0].width/2,l=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:jS(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return X.createElement(Hc,s,c.map((function(t){return X.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,offset:u,dataPointFormatter:l})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,i=t.xAxis,o=t.yAxis,a=t.left,c=t.top,u=t.width,l=t.height,s=t.isAnimationActive,f=t.background,h=t.id;if(e||!r||!r.length)return null;var p=this.state.isAnimationFinished,d=ui("recharts-bar",n),y=i&&i.allowDataOverflow,v=o&&o.allowDataOverflow,g=y||v,m=Ia(h)?this.id:h;return X.createElement(Hc,{className:d},y||v?X.createElement("defs",null,X.createElement("clipPath",{id:"clipPath-".concat(m)},X.createElement("rect",{x:y?a:a-u/2,y:v?c:c-l/2,width:y?u:2*u,height:v?l:2*l}))):null,X.createElement(Hc,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(m,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,m),(!s||p)&&_j.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],n&&hk(r.prototype,n),i&&hk(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();function xk(t){return xk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xk(t)}function Ok(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Pk(n.key),n)}}function Sk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function jk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Sk(Object(r),!0).forEach((function(e){Ak(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ak(t,e,r){return(e=Pk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pk(t){var e=function(t,e){if("object"!=xk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=xk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==xk(e)?e:String(e)}ok=wk,mk(wk,"displayName","Bar"),mk(wk,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ay.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),mk(wk,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,i=t.bandSize,o=t.xAxis,a=t.yAxis,c=t.xAxisTicks,u=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,h=t.offset,p=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!p)return null;var d=e.layout,y=r.props,v=y.dataKey,g=y.children,m=y.minPointSize,b="horizontal"===d?a:o,w=l?b.scale.domain():null,x=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){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]}({numericAxis:b}),O=Ac(g,dv),S=f.map((function(t,e){var n,f,h,y,g,b;l?n=function(t,e){if(!e||2!==e.length||!tc(e[0])||!tc(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!tc(t[0])||t[0]<r)&&(i[0]=r),(!tc(t[1])||t[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i}(l[s+e],w):(n=jS(t,v),Array.isArray(n)||(n=[x,n]));var S=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var i="number"==typeof r;return i?t(r,n):(i||("production"!==process.env.NODE_ENV?aS(!1,"minPointSize callback function received a value with type of ".concat(ZE(r),". Currently only numbers are supported.")):aS(!1)),e)}}(m,ok.defaultProps.minPointSize)(n[1],e);if("horizontal"===d){var j,A=[a.scale(n[0]),a.scale(n[1])],P=A[0],M=A[1];f=LS({axis:o,ticks:c,bandSize:i,offset:p.offset,entry:t,index:e}),h=null!==(j=null!=M?M:P)&&void 0!==j?j:void 0,y=p.size;var E=P-M;if(g=Number.isNaN(E)?0:E,b={x:f,y:a.y,width:y,height:a.height},Math.abs(S)>0&&Math.abs(g)<Math.abs(S)){var k=Ja(g||S)*(Math.abs(S)-Math.abs(g));h-=k,g+=k}}else{var _=[o.scale(n[0]),o.scale(n[1])],T=_[0],C=_[1];if(f=T,h=LS({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:t,index:e}),y=C-T,g=p.size,b={x:o.x,y:h,width:o.width,height:g},Math.abs(S)>0&&Math.abs(y)<Math.abs(S))y+=Ja(y||S)*(Math.abs(S)-Math.abs(y))}return fk(fk(fk({},t),{},{x:f,y:h,width:y,height:g,value:l?n:n[1],payload:t,background:b},O&&O[e]&&O[e].props),{},{tooltipPayload:[VS(r,t)],tooltipPosition:{x:f+y/2,y:h+g/2}})}));return fk({data:S,layout:d},h)}));var Mk=function(t,e,r,n,i){var o=t.width,a=t.height,c=t.layout,u=t.children,l=Object.keys(e),s={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!Pc(u,wk);return l.reduce((function(o,a){var u,l,h,p,d,y=e[a],v=y.orientation,g=y.domain,m=y.padding,b=void 0===m?{}:m,w=y.mirror,x=y.reversed,O="".concat(v).concat(w?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var S=g[1]-g[0],j=1/0,A=y.categoricalDomain.sort();A.forEach((function(t,e){e>0&&(j=Math.min((t||0)-(A[e-1]||0),j))}));var P=j/S,M="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(u=P*M/2),"no-gap"===y.padding){var E=ic(t.barCategoryGap,P*M),k=P*M/2;u=k-E-(k-E)/M*E}}l="xAxis"===n?[r.left+(b.left||0)+(u||0),r.left+r.width-(b.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(u||0),r.top+r.height-(b.bottom||0)-(u||0)]:y.range,x&&(l=[l[1],l[0]]);var _=function(t,e,r){var n=t.scale,i=t.type,o=t.layout,a=t.axisType;if("auto"===n)return"radial"===o&&"radiusAxis"===a?{scale:jg(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:Ym(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:Pg(),realScaleType:"point"}:"category"===i?{scale:jg(),realScaleType:"band"}:{scale:Ym(),realScaleType:"linear"};if(za(n)){var c="scale".concat(mu(n));return{scale:(Nx[c]||Pg)(),realScaleType:Nx[c]?c:"point"}}return Hi(n)?{scale:n}:{scale:Pg(),realScaleType:"point"}}(y,i,f),T=_.scale,C=_.realScaleType;T.domain(g).range(l),function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),i=Math.min(n[0],n[1])-NS,o=Math.max(n[0],n[1])+NS,a=t(e[0]),c=t(e[r-1]);(a<i||a>o||c<i||c>o)&&t.domain([e[0],e[r-1]])}}(T);var N=function(t,e){var r=e.realScaleType,n=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(i&&"number"===n&&o&&("auto"===o[0]||"auto"===o[1])){var u=t.domain();if(!u.length)return null;var l=rS(u,i,a);return t.domain([qx(l),zx(l)]),{niceTicks:l}}if(i&&"number"===n){var s=t.domain();return{niceTicks:nS(s,i,a)}}return null}(T,jk(jk({},y),{},{realScaleType:C}));"xAxis"===n?(d="top"===v&&!w||"bottom"===v&&w,h=r.left,p=s[O]-d*y.height):"yAxis"===n&&(d="left"===v&&!w||"right"===v&&w,h=s[O]-d*y.width,p=r.top);var D=jk(jk(jk({},y),N),{},{realScaleType:C,x:h,y:p,scale:T,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return D.bandSize=FS(D,N),y.hide||"xAxis"!==n?y.hide||(s[O]+=(d?-1:1)*D.width):s[O]+=(d?-1:1)*D.height,jk(jk({},o),{},Ak({},a,D))}),{})},Ek=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return{x:Math.min(r,i),y:Math.min(n,o),width:Math.abs(i-r),height:Math.abs(o-n)}},kk=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}var e,r,n;return e=t,r=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&Ok(e.prototype,r),n&&Ok(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();Ak(kk,"EPS",1e-4);var _k=function(t){var e=Object.keys(t).reduce((function(e,r){return jk(jk({},e),{},Ak({},r,kk.create(t[r])))}),{});return jk(jk({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return HE(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:i})}))},isInRange:function(t){return KE(t,(function(t,r){return e[r].isInRange(t)}))}})};var Tk=function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),i=n*Math.PI/180,o=Math.atan(r/e),a=i>o&&i<Math.PI-o?r/Math.sin(i):e/Math.cos(i);return Math.abs(a)},Ck=ca((function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}}),(function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}));function Nk(t){return Nk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nk(t)}var Dk=ct(void 0),Ik=ct(void 0),Bk=ct(void 0),Lk=ct({}),Rk=ct(void 0),$k=ct(0),zk=ct(0),Hk=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,i=e.offset,o=t.clipPathId,a=t.children,c=t.width,u=t.height,l=Ck(i);return X.createElement(Dk.Provider,{value:r},X.createElement(Ik.Provider,{value:n},X.createElement(Lk.Provider,{value:i},X.createElement(Bk.Provider,{value:l},X.createElement(Rk.Provider,{value:o},X.createElement($k.Provider,{value:u},X.createElement(zk.Provider,{value:c},a)))))))};function Fk(t){var e=Object.keys(t);return 0===e.length?"There are no available ids.":"Available ids are: ".concat(e,".")}var Uk=function(t){var e=at(Dk);null==e&&("production"!==process.env.NODE_ENV?aS(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):aS(!1));var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?aS(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(Nk(t),"]. ").concat(Fk(e))):aS(!1)),r},Vk=function(t){var e=at(Ik);null==e&&("production"!==process.env.NODE_ENV?aS(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):aS(!1));var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?aS(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(Nk(t),"]. ").concat(Fk(e))):aS(!1)),r},qk=function(){return at(zk)},Wk=function(){return at($k)};function Xk(t){return Xk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xk(t)}function Yk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Kk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yk(Object(r),!0).forEach((function(e){Gk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Gk(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Xk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Xk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Xk(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zk(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Jk(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jk(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jk(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Qk(){return Qk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Qk.apply(this,arguments)}function t_(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxisId,o=t.yAxisId,a=t.shape,c=t.className,u=t.alwaysShow,l=at(Rk),s=Uk(i),f=Vk(o),h=at(Bk);if(!l||!h)return null;Uc(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=function(t,e,r,n,i,o,a,c,u){var l=i.x,s=i.y,f=i.width,h=i.height;if(r){var p=u.y,d=t.y.apply(p,{position:o});if(DE(u,"discard")&&!t.y.isInRange(d))return null;var y=[{x:l+f,y:d},{x:l,y:d}];return"left"===c?y.reverse():y}if(e){var v=u.x,g=t.x.apply(v,{position:o});if(DE(u,"discard")&&!t.x.isInRange(g))return null;var m=[{x:g,y:s+h},{x:g,y:s}];return"top"===a?m.reverse():m}if(n){var b=u.segment.map((function(e){return t.apply(e,{position:o})}));return DE(u,"discard")&&NE(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(_k({x:s.scale,y:f.scale}),ec(e),ec(r),n&&2===n.length,h,t.position,s.orientation,f.orientation,t);if(!p)return null;var d=Zk(p,2),y=d[0],v=y.x,g=y.y,m=d[1],b=m.x,w=m.y,x=Kk(Kk({clipPath:DE(t,"hidden")?"url(#".concat(l,")"):void 0},_c(t,!0)),{},{x1:v,y1:g,x2:b,y2:w});return X.createElement(Hc,{className:ui("recharts-reference-line",c)},function(t,e){return X.isValidElement(t)?X.cloneElement(t,e):Hi(t)?t(e):X.createElement("line",Qk({},e,{className:"recharts-reference-line-line"}))}(a,x),yj.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;return Ek({x:e,y:r},{x:n,y:i})}({x1:v,y1:g,x2:b,y2:w})))}function e_(t){return e_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e_(t)}function r_(){return r_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},r_.apply(this,arguments)}function n_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n_(Object(r),!0).forEach((function(e){o_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o_(t,e,r){return e=function(t){var e=function(t,e){if("object"!=e_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=e_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==e_(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}t_.displayName="ReferenceLine",t_.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function a_(t){var e=t.x,r=t.y,n=t.r,i=t.alwaysShow,o=t.clipPathId,a=ec(e),c=ec(r);if(Uc(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!a||!c)return null;var u=function(t){var e=t.x,r=t.y,n=t.xAxis,i=t.yAxis,o=_k({x:n.scale,y:i.scale}),a=o.apply({x:e,y:r},{bandAware:!0});return DE(t,"discard")&&!o.isInRange(a)?null:a}(t);if(!u)return null;var l=u.x,s=u.y,f=t.shape,h=t.className,p=i_(i_({clipPath:DE(t,"hidden")?"url(#".concat(o,")"):void 0},_c(t,!0)),{},{cx:l,cy:s});return X.createElement(Hc,{className:ui("recharts-reference-dot",h)},a_.renderDot(f,p),yj.renderCallByParent(t,{x:l-n,y:s-n,width:2*n,height:2*n}))}function c_(t){return c_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c_(t)}function u_(){return u_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u_.apply(this,arguments)}function l_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l_(Object(r),!0).forEach((function(e){f_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f_(t,e,r){return e=function(t){var e=function(t,e){if("object"!=c_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c_(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}a_.displayName="ReferenceDot",a_.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},a_.renderDot=function(t,e){return X.isValidElement(t)?X.cloneElement(t,e):Hi(t)?t(e):X.createElement(aM,r_({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))};function h_(t){var e=t.x1,r=t.x2,n=t.y1,i=t.y2,o=t.className,a=t.alwaysShow,c=t.clipPathId;Uc(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=ec(e),l=ec(r),s=ec(n),f=ec(i),h=t.shape;if(!(u||l||s||f||h))return null;var p=function(t,e,r,n,i){var o=i.x1,a=i.x2,c=i.y1,u=i.y2,l=i.xAxis,s=i.yAxis;if(!l||!s)return null;var f=_k({x:l.scale,y:s.scale}),h={x:t?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},p={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!DE(i,"discard")||f.isInRange(h)&&f.isInRange(p)?Ek(h,p):null}(u,l,s,f,t);if(!p&&!h)return null;var d=DE(t,"hidden")?"url(#".concat(c,")"):void 0;return X.createElement(Hc,{className:ui("recharts-reference-area",o)},h_.renderRect(h,s_(s_({clipPath:d},_c(t,!0)),p)),yj.renderCallByParent(t,p))}function p_(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],i=0;i<t.length;i+=e){if(void 0!==r&&!0!==r(t[i]))return;n.push(t[i])}return n}function d_(t,e,r,n,i){if(t*e<t*n||t*e>t*i)return!1;var o=r();return t*(e-t*o/2-n)>=0&&t*(e+t*o/2-i)<=0}function y_(t){return y_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y_(t)}function v_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function g_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v_(Object(r),!0).forEach((function(e){m_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function m_(t,e,r){return e=function(t){var e=function(t,e){if("object"!=y_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=y_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==y_(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b_(t,e,r){var n=t.tick,i=t.ticks,o=t.viewBox,a=t.minTickGap,c=t.orientation,u=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!i||!i.length||!n)return[];if(tc(u)||Ay.isSsr)return function(t,e){return p_(t,e+1)}(i,"number"==typeof u&&tc(u)?u:0);var h=[],p="top"===c||"bottom"===c?"width":"height",d=s&&"width"===p?Ov(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(t,n){var i=Hi(l)?l(t.value,n):t.value;return"width"===p?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return Tk(n,r)}(Ov(i,{fontSize:e,letterSpacing:r}),d,f):Ov(i,{fontSize:e,letterSpacing:r})[p]},v=i.length>=2?Ja(i[1].coordinate-i[0].coordinate):1,g=function(t,e,r){var n="width"===r,i=t.x,o=t.y,a=t.width,c=t.height;return 1===e?{start:n?i:o,end:n?i+a:o+c}:{start:n?i+a:o+c,end:n?i:o}}(o,v,p);return"equidistantPreserveStart"===u?function(t,e,r,n,i){for(var o,a=(n||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,h=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:p_(n,s)};var o,a=l,h=function(){return void 0===o&&(o=r(e,a)),o},p=e.coordinate,d=0===l||d_(t,p,h,f,u);d||(l=0,f=c,s+=1),d&&(f=p+t*(h()/2+i),l+=s)};s<=a.length;)if(o=h())return o.v;return[]}(v,g,y,i,a):(h="preserveStart"===u||"preserveStartEnd"===u?function(t,e,r,n,i,o){var a=(n||[]).slice(),c=a.length,u=e.start,l=e.end;if(o){var s=n[c-1],f=r(s,c-1),h=t*(s.coordinate+t*f/2-l);a[c-1]=s=g_(g_({},s),{},{tickCoord:h>0?s.coordinate-h*t:s.coordinate}),d_(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+i),a[c-1]=g_(g_({},s),{},{isShow:!0}))}for(var p=o?c-1:c,d=function(e){var n,o=a[e],c=function(){return void 0===n&&(n=r(o,e)),n};if(0===e){var s=t*(o.coordinate-t*c()/2-u);a[e]=o=g_(g_({},o),{},{tickCoord:s<0?o.coordinate-s*t:o.coordinate})}else a[e]=o=g_(g_({},o),{},{tickCoord:o.coordinate});d_(t,o.tickCoord,c,u,l)&&(u=o.tickCoord+t*(c()/2+i),a[e]=g_(g_({},o),{},{isShow:!0}))},y=0;y<p;y++)d(y);return a}(v,g,y,i,a,"preserveStartEnd"===u):function(t,e,r,n,i){for(var o=(n||[]).slice(),a=o.length,c=e.start,u=e.end,l=function(e){var n,l=o[e],s=function(){return void 0===n&&(n=r(l,e)),n};if(e===a-1){var f=t*(l.coordinate+t*s()/2-u);o[e]=l=g_(g_({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else o[e]=l=g_(g_({},l),{},{tickCoord:l.coordinate});d_(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+i),o[e]=g_(g_({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return o}(v,g,y,i,a),h.filter((function(t){return t.isShow})))}h_.displayName="ReferenceArea",h_.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},h_.renderRect=function(t,e){return X.isValidElement(t)?X.cloneElement(t,e):Hi(t)?t(e):X.createElement(iM,u_({},e,{className:"recharts-reference-area-rect"}))};var w_=["viewBox"],x_=["viewBox"],O_=["ticks"];function S_(t){return S_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S_(t)}function j_(){return j_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},j_.apply(this,arguments)}function A_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function P_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?A_(Object(r),!0).forEach((function(e){N_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):A_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function M_(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function E_(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,D_(n.key),n)}}function k_(t,e,r){return e=T_(e),function(t,e){if(e&&("object"===S_(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,__()?Reflect.construct(e,r||[],T_(t).constructor):e.apply(t,r))}function __(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(__=function(){return!!t})()}function T_(t){return T_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T_(t)}function C_(t,e){return C_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},C_(t,e)}function N_(t,e,r){return(e=D_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function D_(t){var e=function(t,e){if("object"!=S_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=S_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==S_(e)?e:String(e)}var I_=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=k_(this,e,[t])).state={fontSize:"",letterSpacing:""},r}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&C_(t,e)}(e,ut),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=M_(t,w_),i=this.props,o=i.viewBox,a=M_(i,x_);return!uc(r,o)||!uc(n,a)||!uc(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,i,o,a,c=this.props,u=c.x,l=c.y,s=c.width,f=c.height,h=c.orientation,p=c.tickSize,d=c.mirror,y=c.tickMargin,v=d?-1:1,g=t.tickSize||p,m=tc(t.tickCoord)?t.tickCoord:t.coordinate;switch(h){case"top":e=r=t.coordinate,a=(n=(i=l+ +!d*f)-v*g)-v*y,o=m;break;case"left":n=i=t.coordinate,o=(e=(r=u+ +!d*s)-v*g)-v*y,a=m;break;case"right":n=i=t.coordinate,o=(e=(r=u+ +d*s)+v*g)+v*y,a=m;break;default:e=r=t.coordinate,a=(n=(i=l+ +d*f)+v*g)+v*y,o=m}return{line:{x1:e,y1:n,x2:r,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.orientation,a=t.mirror,c=t.axisLine,u=P_(P_(P_({},_c(this.props,!1)),_c(c,!1)),{},{fill:"none"});if("top"===o||"bottom"===o){var l=+("top"===o&&!a||"bottom"===o&&a);u=P_(P_({},u),{},{x1:e,y1:r+l*i,x2:e+n,y2:r+l*i})}else{var s=+("left"===o&&!a||"right"===o&&a);u=P_(P_({},u),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+i})}return X.createElement("line",j_({},u,{className:ui("recharts-cartesian-axis-line",Da(c,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var i=this,o=this.props,a=o.tickLine,c=o.stroke,u=o.tick,l=o.tickFormatter,s=o.unit,f=b_(P_(P_({},this.props),{},{ticks:t}),r,n),h=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),d=_c(this.props,!1),y=_c(u,!1),v=P_(P_({},d),{},{fill:"none"},_c(a,!1)),g=f.map((function(t,r){var n=i.getTickLineCoord(t),o=n.line,g=n.tick,m=P_(P_(P_(P_({textAnchor:h,verticalAnchor:p},d),{},{stroke:"none",fill:c},y),g),{},{index:r,payload:t,visibleTicksCount:f.length,tickFormatter:l});return X.createElement(Hc,j_({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},yc(i.props,t,r)),a&&X.createElement("line",j_({},v,o,{className:ui("recharts-cartesian-axis-tick-line",Da(a,"className"))})),u&&e.renderTickItem(u,m,"".concat(Hi(l)?l(t.value,r):t.value).concat(s||"")))}));return X.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,i=e.height,o=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,u=c.ticks,l=M_(c,O_),s=u;return Hi(o)&&(s=u&&u.length>0?o(this.props):o(l)),n<=0||i<=0||!s||!s.length?null:X.createElement(Hc,{className:ui("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),yj.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(t,e,r){return X.isValidElement(t)?X.cloneElement(t,e):Hi(t)?t(e):X.createElement(Zv,j_({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&E_(r.prototype,n),i&&E_(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();N_(I_,"displayName","CartesianAxis"),N_(I_,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var B_=["type","layout","connectNulls","ref"];function L_(t){return L_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L_(t)}function R_(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function $_(){return $_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},$_.apply(this,arguments)}function z_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function H_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?z_(Object(r),!0).forEach((function(e){G_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):z_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function F_(t){return function(t){if(Array.isArray(t))return U_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return U_(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return U_(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U_(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function V_(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Z_(n.key),n)}}function q_(t,e,r){return e=X_(e),function(t,e){if(e&&("object"===L_(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Y_(t)}(t,W_()?Reflect.construct(e,r||[],X_(t).constructor):e.apply(t,r))}function W_(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(W_=function(){return!!t})()}function X_(t){return X_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},X_(t)}function Y_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function K_(t,e){return K_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},K_(t,e)}function G_(t,e,r){return(e=Z_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Z_(t){var e=function(t,e){if("object"!=L_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=L_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==L_(e)?e:String(e)}var J_=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return G_(Y_(t=q_(this,e,[].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),G_(Y_(t),"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),G_(Y_(t),"getStrokeDasharray",(function(r,n,i){var o=i.reduce((function(t,e){return t+e}));if(!o)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/o),c=r%o,u=n-r,l=[],s=0,f=0;s<i.length;f+=i[s],++s)if(f+i[s]>c){l=[].concat(F_(i.slice(0,s)),[c-f]);break}var h=l.length%2==0?[0,u]:[u];return[].concat(F_(e.repeat(i,a)),F_(l),h).map((function(t){return"".concat(t,"px")})).join(", ")})),G_(Y_(t),"id",nc("recharts-line-")),G_(Y_(t),"pathRef",(function(e){t.mainCurve=e})),G_(Y_(t),"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),G_(Y_(t),"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&K_(t,e)}(e,G),r=e,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.points,i=r.xAxis,o=r.yAxis,a=r.layout,c=Ac(r.children,hS);if(!c)return null;var u=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:jS(t.payload,e)}},l={clipPath:t?"url(#clipPath-".concat(e,")"):null};return X.createElement(Hc,l,c.map((function(t){return X.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,dataPointFormatter:u})})))}},{key:"renderDots",value:function(t,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.dot,a=i.points,c=i.dataKey,u=_c(this.props,!1),l=_c(o,!0),s=a.map((function(t,r){var n=H_(H_(H_({key:"dot-".concat(r),r:3},u),l),{},{value:t.value,dataKey:c,cx:t.x,cy:t.y,index:r,payload:t.payload});return e.renderDotItem(o,n)})),f={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return X.createElement(Hc,$_({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(t,e,r,n){var i=this.props,o=i.type,a=i.layout,c=i.connectNulls;i.ref;var u=R_(i,B_),l=H_(H_(H_({},_c(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:o,layout:a,connectNulls:c});return X.createElement(uA,$_({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.strokeDasharray,a=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=n.animateNewValues,h=n.width,p=n.height,d=this.state,y=d.prevPoints,v=d.totalLength;return X.createElement(XP,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(y){var c=y.length/i.length,u=i.map((function(t,e){var r=Math.floor(e*c);if(y[r]){var n=y[r],i=ac(n.x,t.x),o=ac(n.y,t.y);return H_(H_({},t),{},{x:i(a),y:o(a)})}if(f){var u=ac(2*h,t.x),l=ac(p/2,t.y);return H_(H_({},t),{},{x:u(a),y:l(a)})}return H_(H_({},t),{},{x:t.x,y:t.y})}));return r.renderCurveStatically(u,t,e)}var l,s=ac(0,v)(a);if(o){var d="".concat(o).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=r.getStrokeDasharray(s,v,d)}else l=r.generateSimpleStrokeDasharray(v,s);return r.renderCurveStatically(i,t,e,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,i=r.isAnimationActive,o=this.state,a=o.prevPoints,c=o.totalLength;return i&&n&&n.length&&(!a&&c>0||!eO(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,i=e.points,o=e.className,a=e.xAxis,c=e.yAxis,u=e.top,l=e.left,s=e.width,f=e.height,h=e.isAnimationActive,p=e.id;if(r||!i||!i.length)return null;var d=this.state.isAnimationFinished,y=1===i.length,v=ui("recharts-line",o),g=a&&a.allowDataOverflow,m=c&&c.allowDataOverflow,b=g||m,w=Ia(p)?this.id:p,x=null!==(t=_c(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,j=x.strokeWidth,A=void 0===j?2:j,P=(kc(n)?n:{}).clipDot,M=void 0===P||P,E=2*S+A;return X.createElement(Hc,{className:v},g||m?X.createElement("defs",null,X.createElement("clipPath",{id:"clipPath-".concat(w)},X.createElement("rect",{x:g?l:l-s/2,y:m?u:u-f/2,width:g?s:2*s,height:m?f:2*f})),!M&&X.createElement("clipPath",{id:"clipPath-dots-".concat(w)},X.createElement("rect",{x:l-E/2,y:u-E/2,width:s+E,height:f+E}))):null,!y&&this.renderCurve(b,w),this.renderErrorBar(b,w),(y||n)&&this.renderDots(b,M,w),(!h||d)&&_j.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var r=t.length%2!=0?[].concat(F_(t),[0]):t,n=[],i=0;i<e;++i)n=[].concat(F_(n),F_(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(X.isValidElement(t))r=X.cloneElement(t,e);else if(Hi(t))r=t(e);else{var n=ui("recharts-line-dot",t?t.className:"");r=X.createElement(aM,$_({},e,{className:n}))}return r}}],n&&V_(r.prototype,n),i&&V_(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();G_(J_,"displayName","Line"),G_(J_,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ay.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),G_(J_,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,a=t.dataKey,c=t.bandSize,u=t.displayedData,l=t.offset,s=e.layout;return H_({points:u.map((function(t,e){var u=jS(t,a);return"horizontal"===s?{x:BS({axis:r,ticks:i,bandSize:c,entry:t,index:e}),y:Ia(u)?null:n.scale(u),value:u,payload:t}:{x:Ia(u)?null:r.scale(u),y:BS({axis:n,ticks:o,bandSize:c,entry:t,index:e}),value:u,payload:t}})),layout:s},l)}));var Q_,tT=["layout","type","stroke","connectNulls","isRange","ref"];function eT(t){return eT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eT(t)}function rT(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function nT(){return nT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},nT.apply(this,arguments)}function iT(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function oT(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?iT(Object(r),!0).forEach((function(e){hT(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function aT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,pT(n.key),n)}}function cT(t,e,r){return e=lT(e),function(t,e){if(e&&("object"===eT(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return sT(t)}(t,uT()?Reflect.construct(e,r||[],lT(t).constructor):e.apply(t,r))}function uT(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(uT=function(){return!!t})()}function lT(t){return lT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},lT(t)}function sT(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fT(t,e){return fT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fT(t,e)}function hT(t,e,r){return(e=pT(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pT(t){var e=function(t,e){if("object"!=eT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=eT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==eT(e)?e:String(e)}var dT=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return hT(sT(t=cT(this,e,[].concat(n))),"state",{isAnimationFinished:!0}),hT(sT(t),"id",nc("recharts-area-")),hT(sT(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Hi(e)&&e()})),hT(sT(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Hi(e)&&e()})),t}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fT(t,e)}(e,G),r=e,n=[{key:"renderDots",value:function(t,r,n){var i=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(i&&!o)return null;var a=this.props,c=a.dot,u=a.points,l=a.dataKey,s=_c(this.props,!1),f=_c(c,!0),h=u.map((function(t,r){var n=oT(oT(oT({key:"dot-".concat(r),r:3},s),f),{},{dataKey:l,cx:t.x,cy:t.y,index:r,value:t.value,payload:t.payload});return e.renderDotItem(c,n)})),p={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return X.createElement(Hc,nT({className:"recharts-area-dots"},p),h)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].x,a=n[n.length-1].x,c=t*Math.abs(o-a),u=zx(n.map((function(t){return t.y||0})));return tc(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(zx(r.map((function(t){return t.y||0}))),u)),tc(u)?X.createElement("rect",{x:o<a?o:o-c,y:0,width:c,height:Math.floor(u+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].y,a=n[n.length-1].y,c=t*Math.abs(o-a),u=zx(n.map((function(t){return t.x||0})));return tc(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(zx(r.map((function(t){return t.x||0}))),u)),tc(u)?X.createElement("rect",{x:0,y:o<a?o:o-c,width:u+(i?parseInt("".concat(i),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,r,n){var i=this.props,o=i.layout,a=i.type,c=i.stroke,u=i.connectNulls,l=i.isRange;i.ref;var s=rT(i,tT);return X.createElement(Hc,{clipPath:r?"url(#clipPath-".concat(n,")"):null},X.createElement(uA,nT({},_c(s,!0),{points:t,connectNulls:u,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&X.createElement(uA,nT({},_c(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:t})),"none"!==c&&l&&X.createElement(uA,nT({},_c(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.baseLine,a=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=this.state,h=f.prevPoints,p=f.prevBaseLine;return X.createElement(XP,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"area-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(h){var c,u=h.length/i.length,l=i.map((function(t,e){var r=Math.floor(e*u);if(h[r]){var n=h[r],i=ac(n.x,t.x),o=ac(n.y,t.y);return oT(oT({},t),{},{x:i(a),y:o(a)})}return t}));return c=tc(o)&&"number"==typeof o?ac(p,o)(a):Ia(o)||Za(o)?ac(p,0)(a):o.map((function(t,e){var r=Math.floor(e*u);if(p[r]){var n=p[r],i=ac(n.x,t.x),o=ac(n.y,t.y);return oT(oT({},t),{},{x:i(a),y:o(a)})}return t})),r.renderAreaStatically(l,c,t,e)}return X.createElement(Hc,null,X.createElement("defs",null,X.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),X.createElement(Hc,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(i,o,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,i=r.baseLine,o=r.isAnimationActive,a=this.state,c=a.prevPoints,u=a.prevBaseLine,l=a.totalLength;return o&&n&&n.length&&(!c&&l>0||!eO(c,n)||!eO(u,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,i,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,i=e.points,o=e.className,a=e.top,c=e.left,u=e.xAxis,l=e.yAxis,s=e.width,f=e.height,h=e.isAnimationActive,p=e.id;if(r||!i||!i.length)return null;var d=this.state.isAnimationFinished,y=1===i.length,v=ui("recharts-area",o),g=u&&u.allowDataOverflow,m=l&&l.allowDataOverflow,b=g||m,w=Ia(p)?this.id:p,x=null!==(t=_c(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,j=x.strokeWidth,A=void 0===j?2:j,P=(kc(n)?n:{}).clipDot,M=void 0===P||P,E=2*S+A;return X.createElement(Hc,{className:v},g||m?X.createElement("defs",null,X.createElement("clipPath",{id:"clipPath-".concat(w)},X.createElement("rect",{x:g?c:c-s/2,y:m?a:a-f/2,width:g?s:2*s,height:m?f:2*f})),!M&&X.createElement("clipPath",{id:"clipPath-dots-".concat(w)},X.createElement("rect",{x:c-E/2,y:a-E/2,width:s+E,height:f+E}))):null,y?null:this.renderArea(b,w),(n||y)&&this.renderDots(b,M,w),(!h||d)&&_j.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],n&&aT(r.prototype,n),i&&aT(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();function yT(){return yT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yT.apply(this,arguments)}Q_=dT,hT(dT,"displayName","Area"),hT(dT,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ay.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),hT(dT,"getBaseValue",(function(t,e,r,n){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if(tc(c)&&"number"==typeof c)return c;var u="horizontal"===i?n:r,l=u.scale.domain();if("number"===u.type){var s=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===c?l[0]:"dataMax"===c?l[1]:l[0]})),hT(dT,"getComposedData",(function(t){var e,r=t.props,n=t.item,i=t.xAxis,o=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,u=t.bandSize,l=t.dataKey,s=t.stackedData,f=t.dataStartIndex,h=t.displayedData,p=t.offset,d=r.layout,y=s&&s.length,v=Q_.getBaseValue(r,n,i,o),g="horizontal"===d,m=!1,b=h.map((function(t,e){var r;y?r=s[f+e]:(r=jS(t,l),Array.isArray(r)?m=!0:r=[v,r]);var n=null==r[1]||y&&null==jS(t,l);return g?{x:BS({axis:i,ticks:a,bandSize:u,entry:t,index:e}),y:n?null:o.scale(r[1]),value:r,payload:t}:{x:n?null:i.scale(r[1]),y:BS({axis:o,ticks:c,bandSize:u,entry:t,index:e}),value:r,payload:t}}));return e=y||m?b.map((function(t){var e=Array.isArray(t.value)?t.value[0]:null;return g?{x:t.x,y:null!=e&&null!=t.y?o.scale(e):null}:{x:null!=e?i.scale(e):null,y:t.y}})):g?o.scale(v):i.scale(v),oT({points:b,baseLine:e,layout:d,isRange:m},p)})),hT(dT,"renderDotItem",(function(t,e){return X.isValidElement(t)?X.cloneElement(t,e):Hi(t)?t(e):X.createElement(aM,nT({},e,{className:"recharts-area-dot"}))}));var vT=function(t){var e=t.xAxisId,r=qk(),n=Wk(),i=Uk(e);return null==i?null:X.createElement(I_,yT({},i,{className:ui("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return _S(t,!0)}}))};function gT(){return gT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gT.apply(this,arguments)}vT.displayName="XAxis",vT.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var mT=function(t){var e=t.yAxisId,r=qk(),n=Wk(),i=Vk(e);return null==i?null:X.createElement(I_,gT({},i,{className:ui("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return _S(t,!0)}}))};function bT(t){return function(t){if(Array.isArray(t))return wT(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return wT(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wT(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wT(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}mT.displayName="YAxis",mT.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var xT=function(t,e,r,n,i){var o=Ac(t,t_),a=Ac(t,a_),c=[].concat(bT(o),bT(a)),u=Ac(t,h_),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===r&&DE(e.props,"extendDomain")&&tc(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),u.length){var h="".concat(s,"1"),p="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===r&&DE(e.props,"extendDomain")&&tc(e.props[h])&&tc(e.props[p])){var n=e.props[h],i=e.props[p];return[Math.min(t[0],n,i),Math.max(t[1],n,i)]}return t}),f)}return i&&i.length&&(f=i.reduce((function(t,e){return tc(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},OT={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new i(n,o||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,i,o,a){var c=r?r+t:t;if(!this._events[c])return!1;var u,l,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,n),!0;case 4:return s.fn.call(s.context,e,n,i),!0;case 5:return s.fn.call(s.context,e,n,i,o),!0;case 6:return s.fn.call(s.context,e,n,i,o,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];s.fn.apply(s.context,u)}else{var h,p=s.length;for(l=0;l<p;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,n);break;case 4:s[l].fn.call(s[l].context,e,n,i);break;default:if(!u)for(h=1,u=new Array(f-1);h<f;h++)u[h-1]=arguments[h];s[l].fn.apply(s[l].context,u)}}return!0},c.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var c=this._events[o];if(c.fn)c.fn!==e||i&&!c.once||n&&c.context!==n||a(this,o);else{for(var u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||i&&!c[u].once||n&&c[u].context!==n)&&l.push(c[u]);l.length?this._events[o]=1===l.length?l[0]:l:a(this,o)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c}(OT);var ST=new(On(OT.exports)),jT="recharts.syncMouseEvents";function AT(t){return AT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},AT(t)}function PT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ET(n.key),n)}}function MT(t,e,r){return(e=ET(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ET(t){var e=function(t,e){if("object"!=AT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=AT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==AT(e)?e:String(e)}var kT=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),MT(this,"activeIndex",0),MT(this,"coordinateList",[]),MT(this,"layout","horizontal")}var e,r,n;return e=t,r=[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,i=t.container,o=void 0===i?null:i,a=t.layout,c=void 0===a?null:a,u=t.offset,l=void 0===u?null:u,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(e=null!=n?n:this.coordinateList)&&void 0!==e?e:[],this.container=null!=o?o:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,i=r.y,o=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,u=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=n+a+c,s=i+this.offset.top+o/2+u;this.mouseHandlerCallback({pageX:l,pageY:s})}}}],r&&PT(e.prototype,r),n&&PT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function _T(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,o=t.endAngle;return{points:[ZS(e,r,n,i),ZS(e,r,n,o)],cx:e,cy:r,radius:n,startAngle:i,endAngle:o}}function TT(t,e,r){var n,i,o,a;if("horizontal"===t)o=n=e.x,i=r.top,a=r.top+r.height;else if("vertical"===t)a=i=e.y,n=r.left,o=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return _T(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,h=ZS(c,u,l,f),p=ZS(c,u,s,f);n=h.x,i=h.y,o=p.x,a=p.y}return[{x:n,y:i},{x:o,y:a}]}function CT(t){return CT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},CT(t)}function NT(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function DT(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?NT(Object(r),!0).forEach((function(e){IT(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function IT(t,e,r){return e=function(t){var e=function(t,e){if("object"!=CT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=CT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==CT(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function BT(t){var e,r=t.element,n=t.tooltipEventType,i=t.isActive,o=t.activeCoordinate,a=t.activePayload,c=t.offset,u=t.activeTooltipIndex,l=t.tooltipAxisBandSize,s=t.layout,f=t.chartName;if(!r||!r.props.cursor||!i||!o||"ScatterChart"!==f&&"axis"!==n)return null;var h=uA;if("ScatterChart"===f)e=o,h=dM;else if("BarChart"===f)e=function(t,e,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-i:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-i,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(s,o,c,l),h=iM;else if("radial"===s){var p=_T(o),d=p.cx,y=p.cy,v=p.radius;e={cx:d,cy:y,startAngle:p.startAngle,endAngle:p.endAngle,innerRadius:v,outerRadius:v},h=$j}else e={points:TT(s,o,c)},h=uA;var g=DT(DT(DT(DT({stroke:"#ccc",pointerEvents:"none"},c),e),_c(r.props.cursor,!1)),{},{payload:a,payloadIndex:u,className:"recharts-tooltip-cursor"});return Y(r.props.cursor)?it(r.props.cursor,g):ot(h,g)}var LT=["item"],RT=["children","className","width","height","style","compact","title","desc"];function $T(t){return $T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$T(t)}function zT(){return zT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},zT.apply(this,arguments)}function HT(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||GT(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function FT(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function UT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,eC(n.key),n)}}function VT(t,e,r){return e=WT(e),function(t,e){if(e&&("object"===$T(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return XT(t)}(t,qT()?Reflect.construct(e,r||[],WT(t).constructor):e.apply(t,r))}function qT(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(qT=function(){return!!t})()}function WT(t){return WT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},WT(t)}function XT(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function YT(t,e){return YT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},YT(t,e)}function KT(t){return function(t){if(Array.isArray(t))return ZT(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||GT(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GT(t,e){if(t){if("string"==typeof t)return ZT(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ZT(t,e):void 0}}function ZT(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function JT(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function QT(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?JT(Object(r),!0).forEach((function(e){tC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):JT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tC(t,e,r){return(e=eC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eC(t){var e=function(t,e){if("object"!=$T(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=$T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==$T(e)?e:String(e)}var rC={xAxis:["bottom","top"],yAxis:["left","right"]},nC={width:"100%",height:"100%"},iC={x:0,y:0};function oC(t){return t}var aC=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,i=e.dataEndIndex,o=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(KT(t),KT(r)):t}),[]);return o.length>0?o:t&&t.length&&tc(n)&&tc(i)?t.slice(n,i+1):[]};function cC(t){return"number"===t?[0,"auto"]:void 0}var uC=function(t,e,r,n){var i=t.graphicalItems,o=t.tooltipAxis,a=aC(e,t);return r<0||!i||!i.length||r>=a.length?null:i.reduce((function(i,c){var u,l,s=null!==(u=c.props.data)&&void 0!==u?u:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory)?l=cc(void 0===s?a:s,o.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(KT(i),[VS(c,l)]):i}),[])},lC=function(t,e,r,n){var i=n||{x:t.chartX,y:t.chartY},o=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(i,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,u=0;u<a;u++){var l=u>0?n[u-1].coordinate:n[a-1].coordinate,s=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,h=void 0;if(Ja(s-l)!==Ja(f-s)){var p=[];if(Ja(f-s)===Ja(c[1]-c[0])){h=f;var d=s+c[1]-c[0];p[0]=Math.min(d,(d+l)/2),p[1]=Math.max(d,(d+l)/2)}else{h=l;var y=f+c[1]-c[0];p[0]=Math.min(s,(y+s)/2),p[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(h+s)/2),Math.max(s,(h+s)/2)];if(t>v[0]&&t<=v[1]||t>=p[0]&&t<=p[1]){o=n[u].index;break}}else{var g=Math.min(l,f),m=Math.max(l,f);if(t>(g+s)/2&&t<=(m+s)/2){o=n[u].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){o=r[b].index;break}return o}(o,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=uC(t,e,l,s),h=function(t,e,r,n){var i=e.find((function(t){return t&&t.index===r}));if(i){if("horizontal"===t)return{x:i.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:i.coordinate};if("centric"===t){var o=i.coordinate,a=n.radius;return QT(QT(QT({},n),ZS(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,u=n.angle;return QT(QT(QT({},n),ZS(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return iC}(r,a,l,i);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:h}}return null},sC=function(t,e){var r=e.axes,n=e.graphicalItems,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,h=kS(l,i);return r.reduce((function(e,r){var p,d=r.props,y=d.type,v=d.dataKey,g=d.allowDataOverflow,m=d.allowDuplicatedCategory,b=d.scale,w=d.ticks,x=d.includeHidden,O=r.props[o];if(e[O])return e;var S,j,A,P=aC(t.data,{graphicalItems:n.filter((function(t){return t.props[o]===O})),dataStartIndex:c,dataEndIndex:u}),M=P.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],i=null==t?void 0:t[1];if(n&&i&&tc(n)&&tc(i))return!0}return!1})(r.props.domain,g,y)&&(S=HS(r.props.domain,null,g),!h||"number"!==y&&"auto"===b||(A=AS(P,v,"category")));var E=cC(y);if(!S||0===S.length){var k,_=null!==(k=r.props.domain)&&void 0!==k?k:E;if(v){if(S=AS(P,v,y),"category"===y&&h){var T=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(S);m&&T?(j=S,S=cE(0,M)):m||(S=US(_,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(KT(t),[e])}),[]))}else if("category"===y)S=m?S.filter((function(t){return""!==t&&!Ia(t)})):US(_,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||Ia(e)?t:[].concat(KT(t),[e])}),[]);else if("number"===y){var C=function(t,e,r,n,i){var o=e.map((function(e){return MS(t,e,r,i,n)})).filter((function(t){return!Ia(t)}));return o&&o.length?o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(P,n.filter((function(t){return t.props[o]===O&&(x||!t.props.hide)})),v,i,l);C&&(S=C)}!h||"number"!==y&&"auto"===b||(A=AS(P,v,"category"))}else S=h?cE(0,M):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:RS(a[O].stackGroups,c,u):ES(P,n.filter((function(t){return t.props[o]===O&&(x||!t.props.hide)})),y,l,!0);if("number"===y)S=xT(s,S,O,i,w),_&&(S=HS(_,S,g));else if("category"===y&&_){var N=_;S.every((function(t){return N.indexOf(t)>=0}))&&(S=N)}}return QT(QT({},e),{},tC({},O,QT(QT({},r.props),{},{axisType:i,domain:S,categoricalDomain:A,duplicateDomain:j,originalDomain:null!==(p=r.props.domain)&&void 0!==p?p:E,isCategorical:h,layout:l})))}),{})},fC=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=Ac(l,i),h={};return f&&f.length?h=sC(t,{axes:f,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(h=function(t,e){var r=e.graphicalItems,n=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=aC(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),h=f.length,p=kS(l,i),d=-1;return r.reduce((function(t,e){var y,v=e.props[o],g=cC("number");return t[v]?t:(d++,p?y=cE(0,h):a&&a[v]&&a[v].hasStack?(y=RS(a[v].stackGroups,c,u),y=xT(s,y,v,i)):(y=HS(g,ES(f,r.filter((function(t){return t.props[o]===v&&!t.props.hide})),"number",l),n.defaultProps.allowDataOverflow),y=xT(s,y,v,i)),QT(QT({},t),{},tC({},v,QT(QT({axisType:i},n.defaultProps),{},{hide:!0,orientation:Da(rC,"".concat(i,".").concat(d%2),null),domain:y,originalDomain:g,isCategorical:p,layout:l}))))}),{})}(t,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),h},hC=function(t){var e=t.children,r=t.defaultShowTooltip,n=Pc(e,PE),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(i=n.props.startIndex),n.props.endIndex>=0&&(o=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},pC=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},dC=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),i=void 0===n?{}:n,o=t.yAxisMap,a=void 0===o?{}:o,c=r.width,u=r.height,l=r.children,s=r.margin||{},f=Pc(l,PE),h=Pc(l,Jp),p=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:QT(QT({},t),{},tC({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),d=Object.keys(i).reduce((function(t,e){var r=i[e],n=r.orientation;return r.mirror||r.hide?t:QT(QT({},t),{},tC({},n,Da(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),y=QT(QT({},d),p),v=y.bottom;f&&(y.bottom+=f.props.height||PE.defaultProps.height),h&&e&&(y=function(t,e,r,n){var i=r.children,o=r.width,a=r.margin,c=o-(a.left||0)-(a.right||0),u=gS({children:i,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,h=u.align,p=u.verticalAlign,d=u.layout;if(("vertical"===d||"horizontal"===d&&"middle"===p)&&"center"!==h&&tc(t[h]))return wS(wS({},t),{},xS({},h,t[h]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===h)&&"middle"!==p&&tc(t[p]))return wS(wS({},t),{},xS({},p,t[p]+(f||0)))}return t}(y,0,r,e));var g=c-y.left-y.right,m=u-y.top-y.bottom;return QT(QT({brushBottom:v},y),{},{width:Math.max(g,0),height:Math.max(m,0)})},yC=function(t){var e,r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,o=void 0===i?"axis":i,a=t.validateTooltipEventTypes,c=void 0===a?["axis"]:a,u=t.axisComponents,l=t.legendContent,s=t.formatAxisMap,f=t.defaultProps,h=function(t,e){var r=e.graphicalItems,n=e.stackGroups,i=e.offset,o=e.updateId,a=e.dataStartIndex,c=e.dataEndIndex,l=t.barSize,s=t.layout,f=t.barGap,h=t.barCategoryGap,p=t.maxBarSize,d=pC(s),y=d.numericAxisName,v=d.cateAxisName,g=function(t){return!(!t||!t.length)&&t.some((function(t){var e=xc(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),m=g&&function(t){var e=t.barSize,r=t.stackGroups,n=void 0===r?{}:r;if(!n)return{};for(var i={},o=Object.keys(n),a=0,c=o.length;a<c;a++)for(var u=n[o[a]].stackGroups,l=Object.keys(u),s=0,f=l.length;s<f;s++){var h=u[l[s]],p=h.items,d=h.cateAxisId,y=p.filter((function(t){return xc(t.type).indexOf("Bar")>=0}));if(y&&y.length){var v=y[0].props.barSize,g=y[0].props[d];i[g]||(i[g]=[]),i[g].push({item:y[0],stackList:y.slice(1),barSize:Ia(v)?e:v})}}return i}({barSize:l,stackGroups:n}),b=[];return r.forEach((function(r,l){var d=aC(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:c}),g=r.props,w=g.dataKey,x=g.maxBarSize,O=r.props["".concat(y,"Id")],S=r.props["".concat(v,"Id")],j=u.reduce((function(t,n){var i,o,a=e["".concat(n.axisType,"Map")],c=r.props["".concat(n.axisType,"Id")];a&&a[c]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?aS(!1,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(i=null==r||null===(o=r.type)||void 0===o?void 0:o.displayName)&&void 0!==i?i:"")):aS(!1));var u=a[c];return QT(QT({},t),{},tC(tC({},n.axisType,u),"".concat(n.axisType,"Ticks"),_S(u)))}),{}),A=j[v],P=j["".concat(v,"Ticks")],M=n&&n[O]&&n[O].hasStack&&function(t,e){var r=t.props.stackId;if(ec(r)){var n=e[r];if(n){var i=n.items.indexOf(t);return i>=0?n.stackedData[i]:null}}return null}(r,n[O].stackGroups),E=xc(r.type).indexOf("Bar")>=0,k=FS(A,P),_=[];if(E){var T,C,N=Ia(x)?p:x,D=null!==(T=null!==(C=FS(A,P,!0))&&void 0!==C?C:N)&&void 0!==T?T:0;_=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,c=o.length;if(c<1)return null;var u,l=ic(e,n,0,!0),s=[];if(o[0].barSize===+o[0].barSize){var f=!1,h=n/c,p=o.reduce((function(t,e){return t+e.barSize||0}),0);(p+=(c-1)*l)>=n&&(p-=(c-1)*l,l=0),p>=n&&h>0&&(f=!0,p=c*(h*=.9));var d={offset:((n-p)/2>>0)-l,size:0};u=o.reduce((function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+l,size:f?h:e.barSize}},n=[].concat(OS(t),[r]);return d=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:d})})),n}),s)}else{var y=ic(r,n,0,!0);n-2*y-(c-1)*l<=0&&(l=0);var v=(n-2*y-(c-1)*l)/c;v>1&&(v>>=0);var g=a===+a?Math.min(v,a):v;u=o.reduce((function(t,e,r){var n=[].concat(OS(t),[{item:e.item,position:{offset:y+(v+l)*r+(v-g)/2,size:g}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:n[n.length-1].position})})),n}),s)}return u}({barGap:f,barCategoryGap:h,bandSize:D!==k?D:k,sizeList:m[S],maxBarSize:N}),D!==k&&(_=_.map((function(t){return QT(QT({},t),{},{position:QT(QT({},t.position),{},{offset:t.position.offset-D/2})})})))}var I,B,L=r&&r.type&&r.type.getComposedData;L&&b.push({props:QT(QT({},L(QT(QT({},j),{},{displayedData:d,props:t,dataKey:w,item:r,bandSize:k,barPosition:_,offset:i,stackedData:M,layout:s,dataStartIndex:a,dataEndIndex:c}))),{},tC(tC(tC({key:r.key||"item-".concat(l)},y,j[y]),v,j[v]),"animationId",o)),childIndex:(I=r,B=t.children,jc(B).indexOf(I)),item:r})})),b},p=function(t,e){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,c=t.updateId;if(!Mc({props:i}))return null;var l=i.children,f=i.layout,p=i.stackOffset,d=i.data,y=i.reverseStackOrder,v=pC(f),g=v.numericAxisName,m=v.cateAxisName,b=Ac(l,n),w=function(t,e,r,n,i,o){if(!t)return null;var a=(o?e.reverse():e).reduce((function(t,e){var i=e.props,o=i.stackId;if(i.hide)return t;var a=e.props[r],c=t[a]||{hasStack:!1,stackGroups:{}};if(ec(o)){var u=c.stackGroups[o]||{numericAxisId:r,cateAxisId:n,items:[]};u.items.push(e),c.hasStack=!0,c.stackGroups[o]=u}else c.stackGroups[nc("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return wS(wS({},t),{},xS({},a,c))}),{});return Object.keys(a).reduce((function(e,o){var c=a[o];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,o){var a=c.stackGroups[o];return wS(wS({},e),{},xS({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:IS(t,a.items,i)}))}),{})),wS(wS({},e),{},xS({},o,c))}),{})}(d,b,"".concat(g,"Id"),"".concat(m,"Id"),p,y),x=u.reduce((function(t,e){var r="".concat(e.axisType,"Map");return QT(QT({},t),{},tC({},r,fC(i,QT(QT({},e),{},{graphicalItems:b,stackGroups:e.axisType===g&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),O=dC(QT(QT({},x),{},{props:i,graphicalItems:b}),null==e?void 0:e.legendBBox);Object.keys(x).forEach((function(t){x[t]=s(i,x[t],O,t.replace("Map",""),r)}));var S,j,A=x["".concat(m,"Map")],P=(S=oc(A),{tooltipTicks:j=_S(S,!1,!0),orderedTooltipTicks:Zd(j,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:FS(S,j)}),M=h(i,QT(QT({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:c,graphicalItems:b,stackGroups:w,offset:O}));return QT(QT({formattedGraphicalItems:M,graphicalItems:b,offset:O,stackGroups:w},P),x)};return e=function(t){function e(t){var n,i,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),tC(XT(o=VT(this,e,[t])),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),tC(XT(o),"accessibilityManager",new kT),tC(XT(o),"handleLegendBBoxUpdate",(function(t){if(t){var e=o.state,r=e.dataStartIndex,n=e.dataEndIndex,i=e.updateId;o.setState(QT({legendBBox:t},p({props:o.props,dataStartIndex:r,dataEndIndex:n,updateId:i},QT(QT({},o.state),{},{legendBBox:t}))))}})),tC(XT(o),"handleReceiveSyncEvent",(function(t,e,r){if(o.props.syncId===t){if(r===o.eventEmitterSymbol&&"function"!=typeof o.props.syncMethod)return;o.applySyncEvent(e)}})),tC(XT(o),"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==o.state.dataStartIndex||r!==o.state.dataEndIndex){var n=o.state.updateId;o.setState((function(){return QT({dataStartIndex:e,dataEndIndex:r},p({props:o.props,dataStartIndex:e,dataEndIndex:r,updateId:n},o.state))})),o.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),tC(XT(o),"handleMouseEnter",(function(t){var e=o.getMouseInfo(t);if(e){var r=QT(QT({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseEnter;Hi(n)&&n(r,t)}})),tC(XT(o),"triggeredAfterMouseMove",(function(t){var e=o.getMouseInfo(t),r=e?QT(QT({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseMove;Hi(n)&&n(r,t)})),tC(XT(o),"handleItemMouseEnter",(function(t){o.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),tC(XT(o),"handleItemMouseLeave",(function(){o.setState((function(){return{isTooltipActive:!1}}))})),tC(XT(o),"handleMouseMove",(function(t){t.persist(),o.throttleTriggeredAfterMouseMove(t)})),tC(XT(o),"handleMouseLeave",(function(t){o.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};o.setState(e),o.triggerSyncEvent(e);var r=o.props.onMouseLeave;Hi(r)&&r(e,t)})),tC(XT(o),"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&wc[e]?wc[e]:null}(t),n=Da(o.props,"".concat(r));r&&Hi(n)&&n(null!==(e=/.*touch.*/i.test(r)?o.getMouseInfo(t.changedTouches[0]):o.getMouseInfo(t))&&void 0!==e?e:{},t)})),tC(XT(o),"handleClick",(function(t){var e=o.getMouseInfo(t);if(e){var r=QT(QT({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onClick;Hi(n)&&n(r,t)}})),tC(XT(o),"handleMouseDown",(function(t){var e=o.props.onMouseDown;Hi(e)&&e(o.getMouseInfo(t),t)})),tC(XT(o),"handleMouseUp",(function(t){var e=o.props.onMouseUp;Hi(e)&&e(o.getMouseInfo(t),t)})),tC(XT(o),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),tC(XT(o),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseDown(t.changedTouches[0])})),tC(XT(o),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseUp(t.changedTouches[0])})),tC(XT(o),"triggerSyncEvent",(function(t){void 0!==o.props.syncId&&ST.emit(jT,o.props.syncId,t,o.eventEmitterSymbol)})),tC(XT(o),"applySyncEvent",(function(t){var e=o.props,r=e.layout,n=e.syncMethod,i=o.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)o.setState(QT({dataStartIndex:a,dataEndIndex:c},p({props:o.props,dataStartIndex:a,dataEndIndex:c,updateId:i},o.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=o.state,h=f.offset,d=f.tooltipTicks;if(!h)return;if("function"==typeof n)s=n(d,t);else if("value"===n){s=-1;for(var y=0;y<d.length;y++)if(d[y].value===t.activeLabel){s=y;break}}var v=QT(QT({},h),{},{x:h.left,y:h.top}),g=Math.min(u,v.x+v.width),m=Math.min(l,v.y+v.height),b=d[s]&&d[s].value,w=uC(o.state,o.props.data,s),x=d[s]?{x:"horizontal"===r?d[s].coordinate:g,y:"horizontal"===r?m:d[s].coordinate}:iC;o.setState(QT(QT({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else o.setState(t)})),tC(XT(o),"renderCursor",(function(t){var e,n=o.state,i=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,u=n.offset,l=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=o.getTooltipEventType(),h=null!==(e=t.props.active)&&void 0!==e?e:i,p=o.props.layout,d=t.key||"_recharts-cursor";return X.createElement(BT,{key:d,activeCoordinate:a,activePayload:c,activeTooltipIndex:l,chartName:r,element:t,isActive:h,layout:p,offset:u,tooltipAxisBandSize:s,tooltipEventType:f})})),tC(XT(o),"renderPolarAxis",(function(t,e,r){var n=Da(t,"type.axisType"),i=Da(o.state,"".concat(n,"Map")),a=i&&i[t.props["".concat(n,"Id")]];return it(t,QT(QT({},a),{},{className:n,key:t.key||"".concat(e,"-").concat(r),ticks:_S(a,!0)}))})),tC(XT(o),"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,i=e.polarRadius,a=o.state,c=a.radiusAxisMap,u=a.angleAxisMap,l=oc(c),s=oc(u),f=s.cx,h=s.cy,p=s.innerRadius,d=s.outerRadius;return it(t,{polarAngles:Array.isArray(n)?n:_S(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(i)?i:_S(l,!0).map((function(t){return t.coordinate})),cx:f,cy:h,innerRadius:p,outerRadius:d,key:t.key||"polar-grid",radialLines:r})})),tC(XT(o),"renderLegend",(function(){var t=o.state.formattedGraphicalItems,e=o.props,r=e.children,n=e.width,i=e.height,a=o.props.margin||{},c=n-(a.left||0)-(a.right||0),u=gS({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:l});if(!u)return null;var s=u.item,f=FT(u,LT);return it(s,QT(QT({},f),{},{chartWidth:n,chartHeight:i,margin:a,onBBoxUpdate:o.handleLegendBBoxUpdate}))})),tC(XT(o),"renderTooltip",(function(){var t,e=o.props,r=e.children,n=e.accessibilityLayer,i=Pc(r,Ly);if(!i)return null;var a=o.state,c=a.isTooltipActive,u=a.activeCoordinate,l=a.activePayload,s=a.activeLabel,f=a.offset,h=null!==(t=i.props.active)&&void 0!==t?t:c;return it(i,{viewBox:QT(QT({},f),{},{x:f.left,y:f.top}),active:h,label:s,payload:h?l:[],coordinate:u,accessibilityLayer:n})})),tC(XT(o),"renderBrush",(function(t){var e=o.props,r=e.margin,n=e.data,i=o.state,a=i.offset,c=i.dataStartIndex,u=i.dataEndIndex,l=i.updateId;return it(t,{key:t.key||"_recharts-brush",onChange:CS(o.handleBrushChange,t.props.onChange),data:n,x:tc(t.props.x)?t.props.x:a.left,y:tc(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:tc(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),tC(XT(o),"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=XT(o).clipPathId,i=o.state,a=i.xAxisMap,c=i.yAxisMap,u=i.offset,l=t.props,s=l.xAxisId,f=l.yAxisId;return it(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[s],yAxis:c[f],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:n})})),tC(XT(o),"renderActivePoints",(function(t){var r=t.item,n=t.activePoint,i=t.basePoint,o=t.childIndex,a=t.isRange,c=[],u=r.props.key,l=r.item.props,s=l.activeDot,f=QT(QT({index:o,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:PS(r.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(u,"-activePoint-").concat(o)},_c(s,!1)),dc(s));return c.push(e.renderActiveDot(s,f)),i?c.push(e.renderActiveDot(s,QT(QT({},f),{},{cx:i.x,cy:i.y,key:"".concat(u,"-basePoint-").concat(o)}))):a&&c.push(null),c})),tC(XT(o),"renderGraphicChild",(function(t,e,r){var n=o.filterFormatItem(t,e,r);if(!n)return null;var i=o.getTooltipEventType(),a=o.state,c=a.isTooltipActive,u=a.tooltipAxis,l=a.activeTooltipIndex,s=a.activeLabel,f=Pc(o.props.children,Ly),h=n.props,p=h.points,d=h.isRange,y=h.baseLine,v=n.item.props,g=v.activeDot,m=v.hide,b=v.activeBar,w=v.activeShape,x=Boolean(!m&&c&&f&&(g||b||w)),O={};"axis"!==i&&f&&"click"===f.props.trigger?O={onClick:CS(o.handleItemMouseEnter,t.props.onClick)}:"axis"!==i&&(O={onMouseLeave:CS(o.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:CS(o.handleItemMouseEnter,t.props.onMouseEnter)});var S=it(t,QT(QT({},n.props),O));if(x){if(!(l>=0)){var j,A=(null!==(j=o.getItemByXY(o.state.activeCoordinate))&&void 0!==j?j:{graphicalItem:S}).graphicalItem,P=A.item,M=void 0===P?t:P,E=A.childIndex,k=QT(QT(QT({},n.props),O),{},{activeIndex:E});return[it(M,k),null,null]}var _,T;if(u.dataKey&&!u.allowDuplicatedCategory){var C="function"==typeof u.dataKey?function(t){return"function"==typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());_=cc(p,C,s),T=d&&y&&cc(y,C,s)}else _=null==p?void 0:p[l],T=d&&y&&y[l];if(w||b){var N=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[it(t,QT(QT(QT({},n.props),O),{},{activeIndex:N})),null,null]}if(!Ia(_))return[S].concat(KT(o.renderActivePoints({item:n,activePoint:_,basePoint:T,childIndex:l,isRange:d})))}return d?[S,null,null]:[S,null]})),tC(XT(o),"renderCustomized",(function(t,e,r){return it(t,QT(QT({key:"recharts-customized-".concat(r)},o.props),o.state))})),tC(XT(o),"renderMap",{CartesianGrid:{handler:oC,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:oC},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:oC},YAxis:{handler:oC},Brush:{handler:o.renderBrush,once:!0},Bar:{handler:o.renderGraphicChild},Line:{handler:o.renderGraphicChild},Area:{handler:o.renderGraphicChild},Radar:{handler:o.renderGraphicChild},RadialBar:{handler:o.renderGraphicChild},Scatter:{handler:o.renderGraphicChild},Pie:{handler:o.renderGraphicChild},Funnel:{handler:o.renderGraphicChild},Tooltip:{handler:o.renderCursor,once:!0},PolarGrid:{handler:o.renderPolarGrid,once:!0},PolarAngleAxis:{handler:o.renderPolarAxis},PolarRadiusAxis:{handler:o.renderPolarAxis},Customized:{handler:o.renderCustomized}}),o.clipPathId="".concat(null!==(n=t.id)&&void 0!==n?n:nc("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=av(o.triggeredAfterMouseMove,null!==(i=t.throttleDelay)&&void 0!==i?i:1e3/60),o.state={},o}var n,i,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&YT(t,e)}(e,ut),n=e,i=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,i=t.layout,o=Pc(e,Ly);if(o){var a=o.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=uC(this.state,r,a,c),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===i?{x:l,y:s}:{y:l,x:s},h=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));h&&(f=QT(QT({},f),h.props.points[a].tooltipPosition),u=h.props.points[a].tooltipPayload);var p={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(p),this.renderCursor(o),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){return this.props.accessibilityLayer?(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}}),null):null;var r,n}},{key:"componentDidUpdate",value:function(t){Tc([Pc(t.children,Ly)],[Pc(this.props.children,Ly)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=Pc(this.props.children,Ly);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return c.indexOf(e)>=0?e:o}return o}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),i={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},o={chartX:Math.round(t.pageX-i.left),chartY:Math.round(t.pageY-i.top)},a=n.width/r.offsetWidth||1,c=this.inRange(o.chartX,o.chartY,a);if(!c)return null;var u=this.state,l=u.xAxisMap,s=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&s){var f=oc(l).scale,h=oc(s).scale,p=f&&f.invert?f.invert(o.chartX):null,d=h&&h.invert?h.invert(o.chartY):null;return QT(QT({},o),{},{xValue:p,yValue:d})}var y=lC(this.state,this.props.data,this.props.layout,c);return y?QT(QT({},o),y):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,i=t/r,o=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return i>=a.left&&i<=a.left+a.width&&o>=a.top&&o<=a.top+a.height?{x:i,y:o}:null}var c=this.state,u=c.angleAxisMap,l=c.radiusAxisMap;if(u&&l){var s=oc(u);return tj({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=Pc(t,Ly),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),QT(QT({},dc(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){ST.on(jT,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ST.removeListener(jT,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,i=0,o=n.length;i<o;i++){var a=n[i];if(a.item===t||a.props.key===t.key||e===xc(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,i=e.height,o=e.width;return X.createElement("defs",null,X.createElement("clipPath",{id:t},X.createElement("rect",{x:r,y:n,height:i,width:o})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=HT(e,2),n=r[0],i=r[1];return QT(QT({},t),{},tC({},n,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=HT(e,2),n=r[0],i=r[1];return QT(QT({},t),{},tC({},n,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var i=0,o=r.length;i<o;i++){var a=r[i],c=a.props,u=a.item,l=xc(u.type);if("Bar"===l){var s=(c.data||[]).find((function(e){return rM(t,e)}));if(s)return{graphicalItem:a,payload:s}}else if("RadialBar"===l){var f=(c.data||[]).find((function(e){return tj(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if(XM(a,n)||YM(a,n)||KM(a,n)){var h=QM({graphicalItem:a,activeTooltipItem:n,itemData:u.props.data}),p=void 0===u.props.activeIndex?h:u.props.activeIndex;return{graphicalItem:QT(QT({},a),{},{childIndex:p}),payload:KM(a,n)?u.props.data[h]:a.props.data[h]}}}return null}},{key:"render",value:function(){var t,e=this;if(!Mc(this))return null;var r,n,i=this.props,o=i.children,a=i.className,c=i.width,u=i.height,l=i.style,s=i.compact,f=i.title,h=i.desc,p=FT(i,RT),d=_c(p,!1);if(s)return X.createElement(Hk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},X.createElement(Lc,zT({},d,{width:c,height:u,title:f,desc:h}),this.renderClipPath(),Nc(o,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=null!==(r=this.props.tabIndex)&&void 0!==r?r:0,d.role=null!==(n=this.props.role)&&void 0!==n?n:"application",d.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},d.onFocus=function(){e.accessibilityManager.focus()});var y=this.parseEventsOfWrapper();return X.createElement(Hk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},X.createElement("div",zT({className:ui("recharts-wrapper",a),style:QT({position:"relative",cursor:"default",width:c,height:u},l)},y,{ref:function(t){e.container=t},role:null!==(t=d.role)&&void 0!==t?t:"region"}),X.createElement(Lc,zT({},d,{width:c,height:u,title:f,desc:h,style:nC}),this.renderClipPath(),Nc(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&UT(n.prototype,i),a&&UT(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(),tC(e,"displayName",r),tC(e,"defaultProps",QT({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),tC(e,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,i=t.children,o=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var h=hC(t);return QT(QT(QT({},h),{},{updateId:0},p(QT(QT({props:t},h),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(r!==e.prevDataKey||n!==e.prevData||o!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||u!==e.prevStackOffset||!uc(l,e.prevMargin)){var d=hC(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=QT(QT({},lC(e,n,c)),{},{updateId:e.updateId+1}),g=QT(QT(QT({},d),y),v);return QT(QT(QT({},g),p(QT({props:t},g),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(!Tc(i,e.prevChildren)){var m,b,w,x,O=Pc(i,PE),S=O&&null!==(m=null===(b=O.props)||void 0===b?void 0:b.startIndex)&&void 0!==m?m:s,j=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,A=S!==s||j!==f,P=!Ia(n)&&!A?e.updateId:e.updateId+1;return QT(QT({updateId:P},p(QT(QT({props:t},e),{},{updateId:P,dataStartIndex:S,dataEndIndex:j}),e)),{},{prevChildren:i,dataStartIndex:S,dataEndIndex:j})}return null})),tC(e,"renderActiveDot",(function(t,e){var r;return r=Y(t)?it(t,e):Hi(t)?t(e):X.createElement(aM,e),X.createElement(Hc,{className:"recharts-active-dot",key:e.key},r)})),e},vC=yC({chartName:"LineChart",GraphicalChild:J_,axisComponents:[{axisType:"xAxis",AxisComp:vT},{axisType:"yAxis",AxisComp:mT}],formatAxisMap:Mk}),gC=yC({chartName:"AreaChart",GraphicalChild:dT,axisComponents:[{axisType:"xAxis",AxisComp:vT},{axisType:"yAxis",AxisComp:mT}],formatAxisMap:Mk});const mC=({data:r,dataKey:n,width:i="100%",height:o="100%",areaType:a="linear",showTooltip:c=!1,isAnimated:u=!1,formatter:l,sampleRate:s,style:f})=>{const{isNetGain:h}=zn({data:r,dataKey:n}),p=h?Un.mint():Un.coolElegance(),d=crypto.randomUUID(),y=s?Fn({arr:r||[],n:s}):r,v=y?.map((t=>({...t,[n]:Number(t[n])||0}))),g={cursor:c?"crosshair":"default",...f};return e(pv,{width:i,minHeight:o,children:t(gC,{data:v,margin:{top:20,right:0,left:0,bottom:20},style:g,children:[e("defs",{children:t("linearGradient",{id:d,x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:p,stopOpacity:.8}),e("stop",{offset:"95%",stopColor:p,stopOpacity:0})]})}),e(mT,{domain:["dataMin","dataMax"],hide:!0}),e(dT,{type:a,dataKey:n,stroke:p,fill:`url(#${d})`,isAnimationActive:u}),c&&e(Ly,{cursor:!1,formatter:l})]})})},bC=()=>{const t=u({ssr:!1});return e(l,{children:e(s,{bgColor:{base:"rgba(255, 143, 163, 0.9)",sm:"rgba(255, 117, 143, 0.9)",md:"rgba(255, 77, 109, 0.9)",lg:"rgba(201, 24, 74, 0.9)",xl:"rgba(164, 19, 60, 0.9)","2xl":"rgba(128, 15, 47, 0.9)"},color:{base:"black",md:"white"},position:"absolute",top:"0",right:"0",padding:"2",fontSize:"xs",zIndex:"5",width:"10rem",children:t})})},wC=({children:t,...r})=>e(f,{border:"solid 1px",borderColor:Un.coolElegance(),padding:"1",borderRadius:"lg",bg:"white",width:"fit-content",size:"sm",...r,children:t}),xC=({isSelected:t,children:r,...n})=>e(h,{paddingX:"1",fontSize:"sm",color:t?"brand.500":Un.coolElegance(),bg:"transparent",border:"solid 1px",borderColor:t?"brand.50":"transparent",boxShadow:"none",_hover:{bg:"brand.50",color:"brand.500"},...n,children:r}),OC=({children:t,...r})=>e(p,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:Un.coolElegance(),boxShadow:"none",borderRadius:"xl",...r,children:t}),SC=r=>{const{size:n,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,errorMessage:u,label:l,labelPosition:s="left",spaceBetween:f,...h}=r;let p;return c||(p=e(wt,{})),t(d,{as:y,flexDir:"column",isInvalid:Boolean(u),isDisabled:i,isReadOnly:o,isRequired:a,...h,children:[t(y,{w:"full",justifyContent:f?"space-between":"auto",children:["left"===s&&e(v,{fontSize:n,m:"0",mr:"3",children:l}),e(g,{icon:p,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,isInvalid:Boolean(u),size:n}),"right"===s&&e(v,{fontSize:n,m:"0",ml:"3",children:l})]}),e(y,{w:"full",children:u&&e(m,{size:n,children:u})})]})},jC=({children:t,onSubmit:r,...n})=>e(y,{as:"form",onSubmit:t=>{t.preventDefault(),r&&r(t)},noValidate:!0,gap:"6",flexDir:"column",...n,children:t});var AC=function(){return AC=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},AC.apply(this,arguments)};function PC(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var MC=function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},EC={k:1e3,m:1e6,b:1e9},kC=function(t){var e=t.value,r=t.groupSeparator,n=void 0===r?",":r,i=t.decimalSeparator,o=void 0===i?".":i,a=t.allowDecimals,c=void 0===a||a,u=t.decimalsLimit,l=void 0===u?2:u,s=t.allowNegativeValue,f=void 0===s||s,h=t.disableAbbreviations,p=void 0!==h&&h,d=t.prefix,y=void 0===d?"":d,v=t.transformRawValue,g=(void 0===v?function(t){return t}:v)(e);if("-"===g)return g;var m=p?[]:["k","m","b"],b=new RegExp("((^|\\D)-\\d)|(-".concat(MC(y),")")).test(g),w=RegExp("(\\d+)-?".concat(MC(y))).exec(e)||[],x=w[0],O=w[1],S=function(t,e){void 0===e&&(e=",");var r=new RegExp(MC(e),"g");return t.replace(r,"")}(y?x?g.replace(x,"").concat(O):g.replace(y,""):g,n),j=function(t,e){var r=MC(e.join("")),n=new RegExp("[^\\d".concat(r,"]"),"gi");return t.replace(n,"")}(S,PC([n,o],m,!0)),A=j;if(!p){if(m.some((function(t){return t===j.toLowerCase().replace(o,"")})))return"";var P=function(t,e){void 0===e&&(e=".");var r=new RegExp("(\\d+(".concat(MC(e),"\\d*)?)([kmb])$"),"i"),n=t.match(r);if(n){var i=n[1],o=n[3],a=EC[o.toLowerCase()];return Number(i.replace(e,"."))*a}}(j,o);P&&(A=String(P))}var M=b&&f?"-":"";if(o&&A.includes(o)){var E=j.split(o),k=E[0],_=E[1],T=l&&_?_.slice(0,l):_,C=c?"".concat(o).concat(T):"";return"".concat(M).concat(k).concat(C)}return"".concat(M).concat(A)},_C=function(t,e){var r=e.groupSeparator,n=void 0===r?",":r,i=e.decimalSeparator,o=void 0===i?".":i,a=new RegExp("\\d([^".concat(MC(n)).concat(MC(o),"0-9]+)")),c=t.match(a);return c?c[1]:void 0},TC=function(t){var e=t.value,r=t.decimalSeparator,n=t.intlConfig,i=t.decimalScale,o=t.prefix,a=void 0===o?"":o,c=t.suffix,u=void 0===c?"":c;if(""===e||void 0===e)return"";if("-"===e)return"-";var l=new RegExp("^\\d?-".concat(a?"".concat(MC(a),"?"):"","\\d")).test(e),s="."!==r?CC(e,r,l):e;r&&"-"!==r&&s.startsWith(r)&&(s="0"+s);var f={minimumFractionDigits:i||0,maximumFractionDigits:20},h=(n?new Intl.NumberFormat(n.locale,n.currency?AC(AC({},f),{style:"currency",currency:n.currency}):f):new Intl.NumberFormat(void 0,f)).formatToParts(Number(s)),p=NC(h,t),d=_C(p,AC({},t)),y=e.slice(-1)===r?r:"",v=(s.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return void 0===i&&v&&r&&(p=p.includes(r)?p.replace(RegExp("(\\d+)(".concat(MC(r),")(\\d+)"),"g"),"$1$2".concat(v)):d&&!u?p.replace(d,"".concat(r).concat(v).concat(d)):"".concat(p).concat(r).concat(v)),u&&y?"".concat(p).concat(y).concat(u):d&&y?p.replace(d,"".concat(y).concat(d)):d&&u?p.replace(d,"".concat(y).concat(u)):[p,y,u].join("")},CC=function(t,e,r){var n=t;return e&&"."!==e&&(n=n.replace(RegExp(MC(e),"g"),"."),r&&"-"===e&&(n="-".concat(n.slice(1)))),n},NC=function(t,e){var r=e.prefix,n=e.groupSeparator,i=e.decimalSeparator,o=e.decimalScale,a=e.disableGroupSeparators,c=void 0!==a&&a;return t.reduce((function(t,e,a){var u=e.type,l=e.value;return 0===a&&r?"minusSign"===u?[l,r]:"currency"===u?PC(PC([],t,!0),[r],!1):[r,l]:"currency"===u?r?t:PC(PC([],t,!0),[l],!1):"group"===u?c?t:PC(PC([],t,!0),[void 0!==n?n:l],!1):"decimal"===u?void 0!==o&&0===o?t:PC(PC([],t,!0),[void 0!==i?i:l],!1):PC(PC([],t,!0),"fraction"===u?[void 0!==o?l.slice(0,o):l]:[l],!1)}),[""]).join("")},DC={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},IC=function(t){return RegExp(/\d/,"gi").test(t)},BC=Z((function(t,e){var r=t.allowDecimals,n=void 0===r||r,i=t.allowNegativeValue,o=void 0===i||i,a=t.id,c=t.name,u=t.className,l=t.customInput,s=t.decimalsLimit,f=t.defaultValue,h=t.disabled,p=void 0!==h&&h,d=t.maxLength,y=t.value,v=t.onValueChange,g=t.fixedDecimalLength,m=t.placeholder,b=t.decimalScale,w=t.prefix,x=t.suffix,O=t.intlConfig,S=t.step,j=t.min,A=t.max,P=t.disableGroupSeparators,M=void 0!==P&&P,E=t.disableAbbreviations,k=void 0!==E&&E,_=t.decimalSeparator,T=t.groupSeparator,C=t.onChange,N=t.onFocus,D=t.onBlur,I=t.onKeyDown,B=t.onKeyUp,L=t.transformRawValue,R=t.formatValueOnBlur,$=void 0===R||R,z=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}(t,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue","formatValueOnBlur"]);if(_&&IC(_))throw new Error("decimalSeparator cannot be a number");if(T&&IC(T))throw new Error("groupSeparator cannot be a number");var H=nt((function(){return function(t){var e=t||{},r=e.locale,n=e.currency;return(r?new Intl.NumberFormat(r,n?{currency:n,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(t,e,r){return"currency"===e.type?AC(AC({},t),0===r?{currencySymbol:e.value,prefix:e.value}:{currencySymbol:e.value,suffix:e.value}):"group"===e.type?AC(AC({},t),{groupSeparator:e.value}):"decimal"===e.type?AC(AC({},t),{decimalSeparator:e.value}):t}),DC)}(O)}),[O]),F=_||H.decimalSeparator||"",U=T||H.groupSeparator||"";if(F&&U&&F===U&&!1===M)throw new Error("decimalSeparator cannot be the same as groupSeparator");var V={decimalSeparator:F,groupSeparator:U,disableGroupSeparators:M,intlConfig:O,prefix:w||H.prefix,suffix:x},q={decimalSeparator:F,groupSeparator:U,allowDecimals:n,decimalsLimit:s||g||2,allowNegativeValue:o,disableAbbreviations:k,prefix:w||H.prefix,transformRawValue:L},W=tt((function(){return null!=f?TC(AC(AC({},V),{decimalScale:b,value:String(f)})):null!=y?TC(AC(AC({},V),{decimalScale:b,value:String(y)})):""})),Y=W[0],K=W[1],G=tt(!1),Z=G[0],et=G[1],it=tt(0),ot=it[0],at=it[1],ct=tt(0),ut=ct[0],lt=ct[1],st=tt(null),ft=st[0],ht=st[1],pt=J(null);Q(e,(function(){return pt.current}));var dt=function(t,e){et(!0);var r=function(t){var e=t.selectionStart,r=t.value,n=t.lastKeyStroke,i=t.stateValue,o=t.groupSeparator,a=e,c=r;if(i&&a){var u=r.split("");return"Backspace"===n&&i[a]===o&&(u.splice(a-1,1),a-=1),"Delete"===n&&i[a]===o&&(u.splice(a,1),a+=1),{modifiedValue:c=u.join(""),cursorPosition:a}}return{modifiedValue:c,cursorPosition:e}}({selectionStart:e,value:t,lastKeyStroke:ft,stateValue:Y,groupSeparator:U}),n=r.modifiedValue,i=r.cursorPosition,o=kC(AC({value:n},q));if(!(d&&o.replace(/-/g,"").length>d)){if(""===o||"-"===o||o===F)return v&&v(void 0,c,{float:null,formatted:"",value:""}),K(o),void at(1);var a=F?o.replace(F,"."):o,u=parseFloat(a),l=TC(AC({value:o},V));if(null!=i){var s=i+(l.length-t.length);s=s<=0?w?w.length:0:s,at(s),lt(ut+1)}if(K(l),v)v(o,c,{float:u,formatted:l,value:o})}};rt((function(){null==y&&null==f&&K("")}),[f,y]),rt((function(){Z&&"-"!==Y&&pt.current&&document.activeElement===pt.current&&pt.current.setSelectionRange(ot,ot)}),[Y,ot,pt,Z,ut]);var yt=AC({type:"text",inputMode:"decimal",id:a,name:c,className:u,onChange:function(t){var e=t.target,r=e.value,n=e.selectionStart;dt(r,n),C&&C(t)},onBlur:function(t){var e=t.target.value,r=kC(AC({value:e},q));if("-"===r||r===F||!r)return K(""),void(D&&D(t));var n=function(t,e,r){if(void 0!==r&&t.length>1){if(0===r)return t.replace(e,"");if(t.includes(e)){var n=t.split(e),i=n[0];if((c=n[1]).length===r)return t;if(c.length>r)return"".concat(i).concat(e).concat(c.slice(0,r))}var o=t.length>r?new RegExp("(\\d+)(\\d{".concat(r,"})")):new RegExp("(\\d)(\\d+)"),a=t.match(o);if(a){i=a[1];var c=a[2];return"".concat(i).concat(e).concat(c)}}return t}(r,F,g),i=function(t,e,r){if(void 0===e&&(e="."),void 0===r||""===t||void 0===t)return t;if(!t.match(/\d/g))return"";var n=t.split(e),i=n[0],o=n[1];if(0===r)return i;var a=o||"";if(a.length<r)for(;a.length<r;)a+="0";else a=a.slice(0,r);return"".concat(i).concat(e).concat(a)}(n,F,void 0!==b?b:g),o=parseFloat(i.replace(F,".")),a=TC(AC(AC({},V),{value:i}));v&&$&&v(i,c,{float:o,formatted:a,value:i}),K(a),D&&D(t)},onFocus:function(t){return N&&N(t),Y?Y.length:0},onKeyDown:function(t){var e=t.key;if(ht(e),S&&("ArrowUp"===e||"ArrowDown"===e)){t.preventDefault(),at(Y.length);var r=parseFloat(null!=y?String(y).replace(F,"."):kC(AC({value:Y},q)))||0,n="ArrowUp"===e?r+S:r-S;if(void 0!==j&&n<Number(j))return;if(void 0!==A&&n>Number(A))return;var i=String(S).includes(".")?Number(String(S).split(".")[1].length):void 0;dt(String(i?n.toFixed(i):n).replace(".",F))}I&&I(t)},onKeyUp:function(t){var e=t.key,r=t.currentTarget.selectionStart;if("ArrowUp"!==e&&"ArrowDown"!==e&&"-"!==Y){var n=_C(Y,{groupSeparator:U,decimalSeparator:F});if(n&&r&&r>Y.length-n.length&&pt.current){var i=Y.length-n.length;pt.current.setSelectionRange(i,i)}}B&&B(t)},placeholder:m,disabled:p,value:null==y||"-"===Y||F&&Y===F?Y:TC(AC(AC({},V),{decimalScale:Z?void 0:b,value:String(y)})),ref:pt},z);if(l){var vt=l;return X.createElement(vt,AC({},yt))}return X.createElement("input",AC({},yt))}));BC.displayName="CurrencyInput";const LC=r=>{const{size:n,isDisabled:i,isReadOnly:o,isRequired:a,spellCheck:c=!1,name:u,label:l,register:s,errorMessage:f,helperText:h,leftAddon:p,leftElement:y,rightAddon:g,rightElement:P,type:M="text",...E}=r,k=Hn(n),_=s?s(u):void 0,T="currency"===M?{as:BC,placeholder:"$0.00",prefix:"$",allowNegative:!1,disableAbbreviations:!0}:{};return t(d,{isInvalid:Boolean(f),isDisabled:i,isReadOnly:o,isRequired:a,children:[l&&e(v,{size:n,children:l}),t(b,{size:n,children:[p&&e(w,{bg:"transparent",children:p}),y&&e(x,{w:"auto",ml:"2",children:y}),e(O,{size:n,spellCheck:c,paddingLeft:y&&"2.25em",paddingRight:P&&"2.25em",type:"currency"===M?"text":M,..._,...T,...E}),P&&e(S,{w:"auto",mr:"2",children:P}),g&&e(j,{children:g})]}),f&&e(m,{size:n,children:f}),h&&e(A,{fontSize:k,children:h})]})};var RC=t=>null==t;var $C=t=>!RC(t)&&!Array.isArray(t)&&(t=>"object"==typeof t)(t)&&!(t=>t instanceof Date)(t),zC=t=>{const e=t.constructor&&t.constructor.prototype;return $C(e)&&e.hasOwnProperty("isPrototypeOf")},HC="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function FC(t){let e;const r=Array.isArray(t);if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else{if(HC&&(t instanceof Blob||t instanceof FileList)||!r&&!$C(t))return t;if(e=r?[]:{},r||zC(t))for(const r in t)t.hasOwnProperty(r)&&(e[r]=FC(t[r]));else e=t}return e}var UC=t=>Array.isArray(t)?t.filter(Boolean):[],VC=t=>void 0===t,qC=(t,e,r)=>{if(!e||!$C(t))return r;const n=UC(e.split(/[,[\].]+?/)).reduce(((t,e)=>RC(t)?t:t[e]),t);return VC(n)||n===t?VC(t[e])?r:t[e]:n},WC=t=>"boolean"==typeof t;const XC="onBlur",YC="onChange",KC="onSubmit",GC="onTouched",ZC="all",JC="max",QC="min",tN="maxLength",eN="minLength",rN="pattern",nN="required",iN="validate",oN=X.createContext(null);var aN=t=>$C(t)&&!Object.keys(t).length,cN=t=>Array.isArray(t)?t:[t];var uN=t=>"string"==typeof t,lN=t=>/^\w*$/.test(t),sN=t=>UC(t.replace(/["|']|\]/g,"").split(/\.|\[/)),fN=(t,e,r)=>{let n=-1;const i=lN(e)?[e]:sN(e),o=i.length,a=o-1;for(;++n<o;){const e=i[n];let o=r;if(n!==a){const r=t[e];o=$C(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}t[e]=o,t=t[e]}return t},hN=(t,e,r,n,i)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:i||!0}}:{},pN=()=>{const t="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const r=(16*Math.random()+t)%16|0;return("x"==e?r:3&r|8).toString(16)}))},dN=(t,e,r={})=>r.shouldFocus||VC(r.shouldFocus)?r.focusName||`${t}.${VC(r.focusIndex)?e:r.focusIndex}.`:"",yN=t=>({isOnSubmit:!t||t===KC,isOnBlur:t===XC,isOnChange:t===YC,isOnAll:t===ZC,isOnTouch:t===GC});const vN=(t,e,r,n)=>{for(const i of r||Object.keys(t)){const r=qC(t,i);if(r){const{_f:t,...o}=r;if(t){if(t.refs&&t.refs[0]&&e(t.refs[0],i)&&!n)break;if(t.ref&&e(t.ref,t.name)&&!n)break;vN(o,e)}else $C(o)&&vN(o,e)}}};var gN=(t,e,r)=>{const n=UC(qC(t,r));return fN(n,"root",e[r]),fN(t,r,n),t},mN=t=>uN(t),bN=t=>t instanceof RegExp;const wN={value:!1,isValid:!1},xN={value:!0,isValid:!0};const ON={isValid:!1,value:null};function SN(t,e,r="validate"){if(mN(t)||Array.isArray(t)&&t.every(mN)||WC(t)&&!t)return{type:r,message:mN(t)?t:"",ref:e}}var jN=t=>$C(t)&&!bN(t)?t:{value:t,message:""},AN=async(t,e,r,n,i)=>{const{ref:o,refs:a,required:c,maxLength:u,minLength:l,min:s,max:f,pattern:h,validate:p,name:d,valueAsNumber:y,mount:v,disabled:g}=t._f,m=qC(e,d);if(!v||g)return{};const b=a?a[0]:o,w=t=>{n&&b.reportValidity&&(b.setCustomValidity(WC(t)?"":t||""),b.reportValidity())},x={},O="radio"===o.type;const S=(t=>"checkbox"===t.type)(o),j=O||S,A=(y||(t=>"file"===t.type)(o))&&VC(o.value)&&VC(m)||(t=>{if(!HC)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)})(o)&&""===o.value||""===m||Array.isArray(m)&&!m.length,P=hN.bind(null,d,r,x),M=(t,e,r,n=tN,i=eN)=>{const a=t?e:r;x[d]={type:t?n:i,message:a,ref:o,...P(t?n:i,a)}};if(i?!Array.isArray(m)||!m.length:c&&(!j&&(A||RC(m))||WC(m)&&!m||S&&!(t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter((t=>t&&t.checked&&!t.disabled)).map((t=>t.value));return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!VC(t[0].attributes.value)?VC(t[0].value)||""===t[0].value?xN:{value:t[0].value,isValid:!0}:xN:wN}return wN})(a).isValid||O&&!(E=a,Array.isArray(E)?E.reduce(((t,e)=>e&&e.checked&&!e.disabled?{isValid:!0,value:e.value}:t),ON):ON).isValid)){const{value:t,message:e}=mN(c)?{value:!!c,message:c}:jN(c);if(t&&(x[d]={type:nN,message:e,ref:b,...P(nN,e)},!r))return w(e),x}var E;if(!(A||RC(s)&&RC(f))){let t,e;const n=jN(f),i=jN(s);if(RC(m)||isNaN(m)){const r=o.valueAsDate||new Date(m),a=t=>new Date((new Date).toDateString()+" "+t),c="time"==o.type,u="week"==o.type;uN(n.value)&&m&&(t=c?a(m)>a(n.value):u?m>n.value:r>new Date(n.value)),uN(i.value)&&m&&(e=c?a(m)<a(i.value):u?m<i.value:r<new Date(i.value))}else{const r=o.valueAsNumber||(m?+m:m);RC(n.value)||(t=r>n.value),RC(i.value)||(e=r<i.value)}if((t||e)&&(M(!!t,n.message,i.message,JC,QC),!r))return w(x[d].message),x}if((u||l)&&!A&&(uN(m)||i&&Array.isArray(m))){const t=jN(u),e=jN(l),n=!RC(t.value)&&m.length>+t.value,i=!RC(e.value)&&m.length<+e.value;if((n||i)&&(M(n,t.message,e.message),!r))return w(x[d].message),x}if(h&&!A&&uN(m)){const{value:t,message:e}=jN(h);if(bN(t)&&!m.match(t)&&(x[d]={type:rN,message:e,ref:o,...P(rN,e)},!r))return w(e),x}if(p)if("function"==typeof p){const t=SN(await p(m,e),b);if(t&&(x[d]={...t,...P(iN,t.message)},!r))return w(t.message),x}else if($C(p)){let t={};for(const n in p){if(!aN(t)&&!r)break;const i=SN(await p[n](m,e),b,n);i&&(t={...i,...P(n,i.message)},w(i.message),r&&(x[d]=t))}if(!aN(t)&&(x[d]={ref:b,...t},!r))return x}return w(!0),x},PN=(t,e)=>[...t,...cN(e)],MN=t=>Array.isArray(t)?t.map((()=>{})):void 0;function EN(t,e,r){return[...t.slice(0,e),...cN(r),...t.slice(e)]}var kN=(t,e,r)=>Array.isArray(t)?(VC(t[r])&&(t[r]=void 0),t.splice(r,0,t.splice(e,1)[0]),t):[],_N=(t,e)=>[...cN(e),...cN(t)];var TN=(t,e)=>VC(e)?[]:function(t,e){let r=0;const n=[...t];for(const t of e)n.splice(t-r,1),r++;return UC(n).length?n:[]}(t,cN(e).sort(((t,e)=>t-e))),CN=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]};function NN(t,e){const r=Array.isArray(e)?e:lN(e)?[e]:sN(e),n=1===r.length?t:function(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=VC(t)?n++:t[e[n++]];return t}(t,r),i=r.length-1,o=r[i];return n&&delete n[o],0!==i&&($C(n)&&aN(n)||Array.isArray(n)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!VC(t[e]))return!1;return!0}(n))&&NN(t,r.slice(0,-1)),t}var DN=(t,e,r)=>(t[e]=r,t);function IN(t){const e=X.useContext(oN),{control:r=e.control,name:n,keyName:i="id",shouldUnregister:o}=t,[a,c]=X.useState(r._getFieldArray(n)),u=X.useRef(r._getFieldArray(n).map(pN)),l=X.useRef(a),s=X.useRef(n),f=X.useRef(!1);s.current=n,l.current=a,r._names.array.add(n),t.rules&&r.register(n,t.rules),function(t){const e=X.useRef(t);e.current=t,X.useEffect((()=>{const r=!t.disabled&&e.current.subject&&e.current.subject.subscribe({next:e.current.next});return()=>{r&&r.unsubscribe()}}),[t.disabled])}({next:({values:t,name:e})=>{if(e===s.current||!e){const e=qC(t,s.current);Array.isArray(e)&&(c(e),u.current=e.map(pN))}},subject:r._subjects.array});const h=X.useCallback((t=>{f.current=!0,r._updateFieldArray(n,t)}),[r,n]);return X.useEffect((()=>{if(r._state.action=!1,((t,e,r)=>!r&&(e.watchAll||e.watch.has(t)||[...e.watch].some((e=>t.startsWith(e)&&/^\.\w+/.test(t.slice(e.length))))))(n,r._names)&&r._subjects.state.next({...r._formState}),f.current&&(!yN(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then((t=>{const e=qC(t.errors,n),i=qC(r._formState.errors,n);(i?!e&&i.type||e&&(i.type!==e.type||i.message!==e.message):e&&e.type)&&(e?fN(r._formState.errors,n,e):NN(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const t=qC(r._fields,n);!t||!t._f||yN(r._options.reValidateMode).isOnSubmit&&yN(r._options.mode).isOnSubmit||AN(t,r._formValues,r._options.criteriaMode===ZC,r._options.shouldUseNativeValidation,!0).then((t=>!aN(t)&&r._subjects.state.next({errors:gN(r._formState.errors,t,n)})))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&vN(r._fields,((t,e)=>{if(r._names.focus&&e.startsWith(r._names.focus)&&t.focus)return t.focus(),1})),r._names.focus="",r._updateValid(),f.current=!1}),[a,n,r]),X.useEffect((()=>(!qC(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||o)&&r.unregister(n)})),[n,r,i,o]),{swap:X.useCallback(((t,e)=>{const i=r._getFieldArray(n);CN(i,t,e),CN(u.current,t,e),h(i),c(i),r._updateFieldArray(n,i,CN,{argA:t,argB:e},!1)}),[h,n,r]),move:X.useCallback(((t,e)=>{const i=r._getFieldArray(n);kN(i,t,e),kN(u.current,t,e),h(i),c(i),r._updateFieldArray(n,i,kN,{argA:t,argB:e},!1)}),[h,n,r]),prepend:X.useCallback(((t,e)=>{const i=cN(FC(t)),o=_N(r._getFieldArray(n),i);r._names.focus=dN(n,0,e),u.current=_N(u.current,i.map(pN)),h(o),c(o),r._updateFieldArray(n,o,_N,{argA:MN(t)})}),[h,n,r]),append:X.useCallback(((t,e)=>{const i=cN(FC(t)),o=PN(r._getFieldArray(n),i);r._names.focus=dN(n,o.length-1,e),u.current=PN(u.current,i.map(pN)),h(o),c(o),r._updateFieldArray(n,o,PN,{argA:MN(t)})}),[h,n,r]),remove:X.useCallback((t=>{const e=TN(r._getFieldArray(n),t);u.current=TN(u.current,t),h(e),c(e),r._updateFieldArray(n,e,TN,{argA:t})}),[h,n,r]),insert:X.useCallback(((t,e,i)=>{const o=cN(FC(e)),a=EN(r._getFieldArray(n),t,o);r._names.focus=dN(n,t,i),u.current=EN(u.current,t,o.map(pN)),h(a),c(a),r._updateFieldArray(n,a,EN,{argA:t,argB:MN(e)})}),[h,n,r]),update:X.useCallback(((t,e)=>{const i=FC(e),o=DN(r._getFieldArray(n),t,i);u.current=[...o].map(((e,r)=>e&&r!==t?u.current[r]:pN())),h(o),c([...o]),r._updateFieldArray(n,o,DN,{argA:t,argB:i},!0,!1)}),[h,n,r]),replace:X.useCallback((t=>{const e=cN(FC(t));u.current=e.map(pN),h([...e]),c([...e]),r._updateFieldArray(n,[...e],(t=>t),{},!0,!1)}),[h,n,r]),fields:X.useMemo((()=>a.map(((t,e)=>({...t,[i]:u.current[e]||pN()})))),[a,i])}}const BN=({name:r,control:n,register:i,defaultValues:o,onArrayAppend:a,onArrayRemove:c})=>{const{fields:u,append:l,remove:s}=IN({control:n,name:r}),f=Object.keys(o).reduce(((t,e)=>({...t,[e]:o[e]})),{});return t(P,{children:[u.map(((n,o)=>e(P,{children:t(P,{pb:6,position:"relative",children:[Object.keys(n).filter((t=>"id"!==t)).map((t=>e(LC,{label:t,name:`${r}.${o}.${t}`,register:i},`${t}-${n.id}`))),e(M,{label:"Delete",children:e(y,{position:"absolute",top:"0",right:"0",children:e(h,{"aria-label":"Delete",size:"sm",variant:"ghost",onClick:()=>{s(o),c&&c(o)},minW:"2rem",p:"0",children:"X"})})})]})},n.id))),e(y,{children:e(h,{size:"sm",onClick:()=>{l(f),a&&a(f)},ml:"auto",children:"+"})})]})},LN=({data:r,dataKey:n,width:i="100%",height:o="100%",lineType:a="linear",showTooltip:c=!1,isAnimated:u=!1,formatter:l,sampleRate:s,style:f})=>{const{isNetGain:h}=zn({data:r,dataKey:n}),p=h?Un.mint():Un.heroicRed(),d=s?Fn({arr:r||[],n:s}):r,y=d?.map((t=>({...t,[n]:Number(t[n])||0}))),v={cursor:c?"crosshair":"default",...f};return e(pv,{width:i,minHeight:o,children:t(vC,{data:y,style:v,children:[e(mT,{domain:["dataMin","dataMax"],hide:!0}),e(J_,{isAnimationActive:u,type:a,dataKey:n,stroke:p,strokeWidth:"2",dot:!1,scale:"threshold"}),c&&e(Ly,{cursor:!1,formatter:l})]})})},RN=({isOpen:r,onClose:n,headerContent:i=null,footerContent:o=null,children:a,isCentered:c=!0,size:u={base:"md",md:"xl"},bodyMinHeight:l,bodyBackground:s="transparent",...f})=>t(E,{isOpen:r,onClose:n,isCentered:c,size:u,...f,children:[e(k,{}),t(_,{minWidth:VN,children:[e(T,{children:i}),e(C,{}),e(N,{minH:l||0,bg:s,children:a}),o&&e(D,{borderTop:"solid 1px",borderColor:Un.coolElegance(),children:o})]})]}),$N=({isLoading:r,hasMore:n,setLastEvaluatedKeyParams:i,lastEvaluatedKey:o,...a})=>{const[c,u]=tt([]),[l,s]=tt(1);return t(y,{w:"full",justifyContent:"flex-end",alignItems:"center",direction:"row",gap:4,...a,children:[e(h,{onClick:()=>{if(2===l)return i(void 0),u([]),void s((t=>t-1));const t=c.length-1,e=c[t-1];i(e),u((t=>t.slice(0,-1))),s((t=>t-1))},isLoading:r,isDisabled:1===l,children:"Previous"}),e(h,{onClick:()=>{if(o){const t={lastEvaluatedPKey:o.pKey,lastEvaluatedSKey:o.sKey};i(t),u((e=>[...e,t])),s((t=>t+1))}},isLoading:r,isDisabled:!n,children:"Next"})]})},zN=r=>{const{children:n,size:i,isDisabled:o,isReadOnly:a,isRequired:c,name:u,register:l,errorMessage:s,helperText:f,label:h,...p}=r,y=Hn(i),g=l?l(u):void 0;return t(d,{isInvalid:Boolean(s),isDisabled:o,isReadOnly:a,isRequired:c,children:[h&&e(v,{size:i,children:h}),e(I,{icon:e(yt,{}),size:i,...g,...p,children:n}),s&&e(m,{size:i,children:s}),f&&e(A,{fontSize:y,children:f})]})},HN=r=>{const{label:n,rightIcon:i,leftIcon:o,onClose:a,...c}=r,[u,l]=tt(!0);return u?t(B,{...c,children:[o&&e(L,{as:o}),e(R,{children:n}),i&&e($,{as:i}),a&&e(z,{onClick:()=>{a(),l(!1)}})]}):null},FN=({description:r,title:n,onClose:i,isClosable:o,status:a})=>{let c,u;switch(a){case"error":u=lt;break;case"success":u=wt;break;case"warning":u=Lt,c="yellow";break;case"loading":c="brand",u=W;break;default:c="brand",u=Lt}return t(H,{as:y,colorScheme:c,justifyContent:"space-between",status:a,children:[t(y,{alignItems:"center",mr:"4",children:[e(F,{children:e(u,{size:"sm"})}),t(P,{children:[e(U,{children:n}),e(V,{children:r})]})]}),o&&e(q,{onClick:i})]})},UN=()=>{const t=u({ssr:!1}),e="base"===t||"sm"===t,r="md"===t,n="lg"===t||"xl"===t||"2xl"===t;return{breakpoint:t,isSmallBreakpoint:e,isMediumBreakpoint:r,isLargeBreakpoint:n,isAboveSmallBreakpoint:r||n,isBelowLargeBreakpoint:r||e}},VN="22rem";export{mC as CfAreaChart,bC as CfBreakpointDebugger,wC as CfButtonGroup,xC as CfButtonGroupButton,OC as CfCard,SC as CfCheckbox,jC as CfForm,LC as CfInput,BN as CfInputArray,LN as CfLineChart,RN as CfModal,$N as CfPagination,zN as CfSelect,HN as CfTag,FN as CfToast,lt as IconAlert,st as IconArrowDown,ft as IconArrowUp,ce as IconAvax,ht as IconBank,pt as IconBarChart,ue as IconBch,le as IconBtc,dt as IconCalendar,yt as IconCaretDown,vt as IconCaretLeft,gt as IconCaretRight,mt as IconCaretUp,bt as IconCent,wt as IconCheck,xt as IconChecking,Ot as IconClose,St as IconConnect,jt as IconCopy,At as IconDollar,Pt as IconDownload,Mt as IconEdit,Et as IconEnter,kt as IconEnterInverted,se as IconEth,_t as IconExchange,Tt as IconFilter,Ct as IconHelp,Nt as IconHistory,Dt as IconHome,It as IconIndicatorDown,Bt as IconIndicatorUp,Lt as IconInfo,fe as IconLink,he as IconLtc,Rt as IconMail,$t as IconMenu,zt as IconMore,Ht as IconNotification,Ft as IconOverview,Ut as IconPercent,Vt as IconPieChart,qt as IconPlus,ae as IconRefresh,Wt as IconReports,Xt as IconReservesSuccess,Yt as IconReservesWarning,Kt as IconSearch,Gt as IconSettings,Zt as IconSettlement,Jt as IconSignIn,Qt as IconSignOut,te as IconSort,ee as IconSpinner,re as IconSupport,ne as IconTrash,ie as IconUpload,oe as IconUser,pe as IconXlm,wn as aggregateAmounts,ai as coreTheme,_n as dateToTimestamp,Tn as formatPercentage,$n as formatUsd,zn as getDelta,VN as layoutMinWidth,Fn as pullFromEnd,Un as uiColors,qn as usdToNumber,UN as useCfBreakpoint};
|
|
17
|
+
*/"production"===process.env.NODE_ENV?bo.exports=function(){if(mo)return wo;mo=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,d=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,m=t?Symbol.for("react.responder"):60118,g=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:switch(t=t.type){case u:case l:case n:case o:case i:case f:return t;default:switch(t=t&&t.$$typeof){case c:case s:case d:case p:case a:return t;default:return h}}case r:return h}}}function w(t){return b(t)===l}return wo.AsyncMode=u,wo.ConcurrentMode=l,wo.ContextConsumer=c,wo.ContextProvider=a,wo.Element=e,wo.ForwardRef=s,wo.Fragment=n,wo.Lazy=d,wo.Memo=p,wo.Portal=r,wo.Profiler=o,wo.StrictMode=i,wo.Suspense=f,wo.isAsyncMode=function(t){return w(t)||b(t)===u},wo.isConcurrentMode=w,wo.isContextConsumer=function(t){return b(t)===c},wo.isContextProvider=function(t){return b(t)===a},wo.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},wo.isForwardRef=function(t){return b(t)===s},wo.isFragment=function(t){return b(t)===n},wo.isLazy=function(t){return b(t)===d},wo.isMemo=function(t){return b(t)===p},wo.isPortal=function(t){return b(t)===r},wo.isProfiler=function(t){return b(t)===o},wo.isStrictMode=function(t){return b(t)===i},wo.isSuspense=function(t){return b(t)===f},wo.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===o||t===i||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===p||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===m||t.$$typeof===g||t.$$typeof===y)},wo.typeOf=b,wo}():bo.exports=(xo||(xo=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,d=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,m=t?Symbol.for("react.responder"):60118,g=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:var y=t.type;switch(y){case u:case l:case n:case o:case i:case f:return y;default:var v=y&&y.$$typeof;switch(v){case c:case s:case d:case p:case a:return v;default:return h}}case r:return h}}}var w=u,x=l,O=c,S=a,j=e,A=s,P=n,M=d,E=p,k=r,_=o,T=i,C=f,D=!1;function I(t){return b(t)===l}Oo.AsyncMode=w,Oo.ConcurrentMode=x,Oo.ContextConsumer=O,Oo.ContextProvider=S,Oo.Element=j,Oo.ForwardRef=A,Oo.Fragment=P,Oo.Lazy=M,Oo.Memo=E,Oo.Portal=k,Oo.Profiler=_,Oo.StrictMode=T,Oo.Suspense=C,Oo.isAsyncMode=function(t){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(t)||b(t)===u},Oo.isConcurrentMode=I,Oo.isContextConsumer=function(t){return b(t)===c},Oo.isContextProvider=function(t){return b(t)===a},Oo.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Oo.isForwardRef=function(t){return b(t)===s},Oo.isFragment=function(t){return b(t)===n},Oo.isLazy=function(t){return b(t)===d},Oo.isMemo=function(t){return b(t)===p},Oo.isPortal=function(t){return b(t)===r},Oo.isProfiler=function(t){return b(t)===o},Oo.isStrictMode=function(t){return b(t)===i},Oo.isSuspense=function(t){return b(t)===f},Oo.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===o||t===i||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===p||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===m||t.$$typeof===g||t.$$typeof===y)},Oo.typeOf=b}()),Oo);var So=bo.exports,jo=rn,Ao=nn;var Po=function(t){return"number"==typeof t||Ao(t)&&"[object Number]"==jo(t)},Mo=Qe(Po),Eo=Po;var ko=Qe((function(t){return Eo(t)&&t!=+t})),_o=function(t){return 0===t?0:t>0?1:-1},To=function(t){return go(t)&&t.indexOf("%")===t.length-1},Co=function(t){return Mo(t)&&!ko(t)},Do=function(t){return Co(t)||go(t)},Io=0,No=function(t){var e=++Io;return"".concat(t||"").concat(e)},Bo=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Co(t)&&!go(t))return n;if(To(t)){var o=t.indexOf("%");r=e*parseFloat(t.slice(0,o))/100}else r=+t;return ko(r)&&(r=n),i&&r>e&&(r=e),r},Ro=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},$o=function(t,e){return Co(t)&&Co(e)?function(r){return t+r*(e-t)}:function(){return e}};function Lo(t,e,r){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):fo(t,e))===r})):null}function zo(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function Ho(t){return Ho="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ho(t)}var Fo=["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"],Uo=["points","pathLength"],Vo={svg:["viewBox","children"],polygon:Uo,polyline:Uo},Wo=["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"],qo=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if(K(t)&&(r=t.props),!dn(r))return null;var n={};return Object.keys(r).forEach((function(t){Wo.includes(t)&&(n[t]=e||function(e){return r[t](r,e)})})),n},Xo=function(t,e,r){if(!dn(t)||"object"!==Ho(t))return null;var n=null;return Object.keys(t).forEach((function(i){var o=t[i];Wo.includes(i)&&"function"==typeof o&&(n||(n={}),n[i]=function(t,e,r){return function(n){return t(e,r,n),null}}(o,e,r))})),n},Yo=["children"],Ko=["children"];function Go(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Zo(t){return Zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zo(t)}var Jo={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Qo=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},ta=null,ea=null,ra=function t(e){if(e===ta&&Array.isArray(ea))return ea;var r=[];return G.forEach(e,(function(e){ho(e)||(So.isFragment(e)?r=r.concat(t(e.props.children)):r.push(e))})),ea=r,ta=e,r};function na(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map((function(t){return Qo(t)})):[Qo(e)],ra(t).forEach((function(t){var e=fo(t,"type.displayName")||fo(t,"type.name");-1!==n.indexOf(e)&&r.push(t)})),r}function ia(t,e){var r=na(t,e);return r&&r[0]}var oa=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!Co(r)||r<=0||!Co(n)||n<=0)},aa=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],ca=function(t){return t&&"object"===Zo(t)&&"cx"in t&&"cy"in t&&"r"in t},ua=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if(K(t)&&(n=t.props),!dn(n))return null;var i={};return Object.keys(n).forEach((function(t){var o;(function(t,e,r,n){var i,o=null!==(i=null==Vo?void 0:Vo[n])&&void 0!==i?i:[];return!bn(t)&&(n&&o.includes(e)||Fo.includes(e))||r&&Wo.includes(e)})(null===(o=n)||void 0===o?void 0:o[t],t,e,r)&&(i[t]=n[t])})),i},la=function t(e,r){if(e===r)return!0;var n=G.count(e);if(n!==G.count(r))return!1;if(0===n)return!0;if(1===n)return sa(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var o=e[i],a=r[i];if(Array.isArray(o)||Array.isArray(a)){if(!t(o,a))return!1}else if(!sa(o,a))return!1}return!0},sa=function(t,e){if(ho(t)&&ho(e))return!0;if(!ho(t)&&!ho(e)){var r=t.props||{},n=r.children,i=Go(r,Yo),o=e.props||{},a=o.children,c=Go(o,Ko);return n&&a?zo(i,c)&&la(n,a):!n&&!a&&zo(i,c)}return!1},fa=function(t,e){var r=[],n={};return ra(t).forEach((function(t,i){if(function(t){return t&&t.type&&go(t.type)&&aa.indexOf(t.type)>=0}(t))r.push(t);else if(t){var o=Qo(t.type),a=e[o]||{},c=a.handler,u=a.once;if(c&&(!u||!n[o])){var l=c(t,o,i);r.push(l),n[o]=!0}}})),r},ha=["children","width","height","viewBox","className","style","title","desc"];function pa(){return pa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},pa.apply(this,arguments)}function da(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function ya(t){var e=t.children,r=t.width,n=t.height,i=t.viewBox,o=t.className,a=t.style,c=t.title,u=t.desc,l=da(t,ha),s=i||{width:r,height:n,x:0,y:0},f=Lr("recharts-surface",o);return Y.createElement("svg",pa({},ua(l,!0,"svg"),{className:f,width:r,height:n,style:a,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),Y.createElement("title",null,c),Y.createElement("desc",null,u),e)}var va=["children","className"];function ma(){return ma=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ma.apply(this,arguments)}function ga(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var ba=Y.forwardRef((function(t,e){var r=t.children,n=t.className,i=ga(t,va),o=Lr("recharts-layer",n);return Y.createElement("g",ma({className:o},ua(i,!0),{ref:e}),r)})),wa="production"!==process.env.NODE_ENV,xa=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];if(wa&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)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(e.replace(/%s/g,(function(){return n[o++]})))}};var Oa=function(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o},Sa=Oa;var ja=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:Sa(t,e,r)},Aa=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Pa=function(t){return Aa.test(t)};var Ma=function(t){return t.split("")},Ea="\\ud800-\\udfff",ka="["+Ea+"]",_a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ta="\\ud83c[\\udffb-\\udfff]",Ca="[^"+Ea+"]",Da="(?:\\ud83c[\\udde6-\\uddff]){2}",Ia="[\\ud800-\\udbff][\\udc00-\\udfff]",Na="(?:"+_a+"|"+Ta+")"+"?",Ba="[\\ufe0e\\ufe0f]?",Ra=Ba+Na+("(?:\\u200d(?:"+[Ca,Da,Ia].join("|")+")"+Ba+Na+")*"),$a="(?:"+[Ca+_a+"?",_a,Da,Ia,ka].join("|")+")",La=RegExp(Ta+"(?="+Ta+")|"+$a+Ra,"g");var za=function(t){return t.match(La)||[]},Ha=Ma,Fa=Pa,Ua=za;var Va=function(t){return Fa(t)?Ua(t):Ha(t)},Wa=ja,qa=Pa,Xa=Va,Ya=Ji;var Ka=function(t){return function(e){e=Ya(e);var r=qa(e)?Xa(e):void 0,n=r?r[0]:e.charAt(0),i=r?Wa(r,1).join(""):e.slice(1);return n[t]()+i}},Ga=Qe(Ka("toUpperCase"));function Za(t){return function(){return t}}const Ja=Math.cos,Qa=Math.sin,tc=Math.sqrt,ec=Math.PI,rc=2*ec,nc=Math.PI,ic=2*nc,oc=1e-6,ac=ic-oc;function cc(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class uc{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?cc:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return cc;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,i,o){this._append`C${+t},${+e},${+r},${+n},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,r,n,i){if(t=+t,e=+e,r=+r,n=+n,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,c=r-t,u=n-e,l=o-t,s=a-e,f=l*l+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>oc)if(Math.abs(s*c-u*l)>oc&&i){let h=r-o,p=n-a,d=c*c+u*u,y=h*h+p*p,v=Math.sqrt(d),m=Math.sqrt(f),g=i*Math.tan((nc-Math.acos((d+f-y)/(2*v*m)))/2),b=g/m,w=g/v;Math.abs(b-1)>oc&&this._append`L${t+b*l},${e+b*s}`,this._append`A${i},${i},0,0,${+(s*h>l*p)},${this._x1=t+w*c},${this._y1=e+w*u}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,r,n,i,o){if(t=+t,e=+e,o=!!o,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),c=r*Math.sin(n),u=t+a,l=e+c,s=1^o,f=o?n-i:i-n;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>oc||Math.abs(this._y1-l)>oc)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%ic+ic),f>ac?this._append`A${r},${r},0,1,${s},${t-a},${e-c}A${r},${r},0,1,${s},${this._x1=u},${this._y1=l}`:f>oc&&this._append`A${r},${r},0,${+(f>=nc)},${s},${this._x1=t+r*Math.cos(i)},${this._y1=e+r*Math.sin(i)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function lc(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError(`invalid digits: ${r}`);e=t}return t},()=>new uc(e)}function sc(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function fc(t){this._context=t}function hc(t){return new fc(t)}function pc(t){return t[0]}function dc(t){return t[1]}function yc(t,e){var r=Za(!0),n=null,i=hc,o=null,a=lc(c);function c(c){var u,l,s,f=(c=sc(c)).length,h=!1;for(null==n&&(o=i(s=a())),u=0;u<=f;++u)!(u<f&&r(l=c[u],u,c))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,u,c),+e(l,u,c));if(s)return o=null,s+""||null}return t="function"==typeof t?t:void 0===t?pc:Za(t),e="function"==typeof e?e:void 0===e?dc:Za(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:Za(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:Za(+t),c):e},c.defined=function(t){return arguments.length?(r="function"==typeof t?t:Za(!!t),c):r},c.curve=function(t){return arguments.length?(i=t,null!=n&&(o=i(n)),c):i},c.context=function(t){return arguments.length?(null==t?n=o=null:o=i(n=t),c):n},c}function vc(t,e,r){var n=null,i=Za(!0),o=null,a=hc,c=null,u=lc(l);function l(l){var s,f,h,p,d,y=(l=sc(l)).length,v=!1,m=new Array(y),g=new Array(y);for(null==o&&(c=a(d=u())),s=0;s<=y;++s){if(!(s<y&&i(p=l[s],s,l))===v)if(v=!v)f=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),h=s-1;h>=f;--h)c.point(m[h],g[h]);c.lineEnd(),c.areaEnd()}v&&(m[s]=+t(p,s,l),g[s]=+e(p,s,l),c.point(n?+n(p,s,l):m[s],r?+r(p,s,l):g[s]))}if(d)return c=null,d+""||null}function s(){return yc().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?pc:Za(+t),e="function"==typeof e?e:Za(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?dc:Za(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:Za(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:Za(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Za(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:Za(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:Za(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Za(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(i="function"==typeof t?t:Za(!!t),l):i},l.curve=function(t){return arguments.length?(a=t,null!=o&&(c=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=c=null:c=a(o=t),l):o},l}fc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};class mc{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}var gc={draw(t,e){const r=tc(e/ec);t.moveTo(r,0),t.arc(0,0,r,0,rc)}},bc={draw(t,e){const r=tc(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}};const wc=tc(1/3),xc=2*wc;var Oc={draw(t,e){const r=tc(e/xc),n=r*wc;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Sc={draw(t,e){const r=tc(e),n=-r/2;t.rect(n,n,r,r)}};const jc=Qa(ec/10)/Qa(7*ec/10),Ac=Qa(rc/10)*jc,Pc=-Ja(rc/10)*jc;var Mc={draw(t,e){const r=tc(.8908130915292852*e),n=Ac*r,i=Pc*r;t.moveTo(0,-r),t.lineTo(n,i);for(let e=1;e<5;++e){const o=rc*e/5,a=Ja(o),c=Qa(o);t.lineTo(c*r,-a*r),t.lineTo(a*n-c*i,c*n+a*i)}t.closePath()}};const Ec=tc(3);var kc={draw(t,e){const r=-tc(e/(3*Ec));t.moveTo(0,2*r),t.lineTo(-Ec*r,-r),t.lineTo(Ec*r,-r),t.closePath()}};const _c=-.5,Tc=tc(3)/2,Cc=1/tc(12),Dc=3*(Cc/2+1);var Ic={draw(t,e){const r=tc(e/Dc),n=r/2,i=r*Cc,o=n,a=r*Cc+r,c=-o,u=a;t.moveTo(n,i),t.lineTo(o,a),t.lineTo(c,u),t.lineTo(_c*n-Tc*i,Tc*n+_c*i),t.lineTo(_c*o-Tc*a,Tc*o+_c*a),t.lineTo(_c*c-Tc*u,Tc*c+_c*u),t.lineTo(_c*n+Tc*i,_c*i-Tc*n),t.lineTo(_c*o+Tc*a,_c*a-Tc*o),t.lineTo(_c*c+Tc*u,_c*u-Tc*c),t.closePath()}};function Nc(){}function Bc(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function Rc(t){this._context=t}function $c(t){this._context=t}function Lc(t){this._context=t}function zc(t){this._context=t}function Hc(t){return t<0?-1:1}function Fc(t,e,r){var n=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(n||i<0&&-0),a=(r-t._y1)/(i||n<0&&-0),c=(o*i+a*n)/(n+i);return(Hc(o)+Hc(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(c))||0}function Uc(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Vc(t,e,r){var n=t._x0,i=t._y0,o=t._x1,a=t._y1,c=(o-n)/3;t._context.bezierCurveTo(n+c,i+c*e,o-c,a-c*r,o,a)}function Wc(t){this._context=t}function qc(t){this._context=new Xc(t)}function Xc(t){this._context=t}function Yc(t){this._context=t}function Kc(t){var e,r,n=t.length-1,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/o[e-1],o[e]-=r,a[e]-=r*a[e-1];for(i[n-1]=a[n-1]/o[n-1],e=n-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function Gc(t,e){this._context=t,this._t=e}function Zc(t,e){if((i=t.length)>1)for(var r,n,i,o=1,a=t[e[0]],c=a.length;o<i;++o)for(n=a,a=t[e[o]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Jc(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function Qc(t,e){return t[e]}function tu(t){const e=[];return e.key=t,e}function eu(t){return eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eu(t)}Rc.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:Bc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:Bc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},$c.prototype={areaStart:Nc,areaEnd:Nc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Bc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Lc.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,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+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Bc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},zc.prototype={areaStart:Nc,areaEnd:Nc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Wc.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:Vc(this,this._t0,Uc(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Vc(this,Uc(this,r=Fc(this,t,e)),r);break;default:Vc(this,this._t0,r=Fc(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(qc.prototype=Object.create(Wc.prototype)).point=function(t,e){Wc.prototype.point.call(this,e,t)},Xc.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,o){this._context.bezierCurveTo(e,t,n,r,o,i)}},Yc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=Kc(t),i=Kc(e),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Gc.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&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var ru=["type","size","sizeType"];function nu(){return nu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},nu.apply(this,arguments)}function iu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ou(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?iu(Object(r),!0).forEach((function(e){au(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iu(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function au(t,e,r){return e=function(t){var e=function(t,e){if("object"!=eu(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=eu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==eu(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cu(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var uu={symbolCircle:gc,symbolCross:bc,symbolDiamond:Oc,symbolSquare:Sc,symbolStar:Mc,symbolTriangle:kc,symbolWye:Ic},lu=Math.PI/180,su=function(t){var e,r,n=t.type,i=void 0===n?"circle":n,o=t.size,a=void 0===o?64:o,c=t.sizeType,u=void 0===c?"area":c,l=ou(ou({},cu(t,ru)),{},{type:i,size:a,sizeType:u}),s=l.className,f=l.cx,h=l.cy,p=ua(l,!0);return f===+f&&h===+h&&a===+a?Y.createElement("path",nu({},p,{className:Lr("recharts-symbols",s),transform:"translate(".concat(f,", ").concat(h,")"),d:(e=function(t){var e="symbol".concat(Ga(t));return uu[e]||gc}(i),r=function(t,e){let r=null,n=lc(i);function i(){let i;if(r||(r=i=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),i)return r=null,i+""||null}return t="function"==typeof t?t:Za(t||gc),e="function"==typeof e?e:Za(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:Za(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:Za(+t),i):e},i.context=function(t){return arguments.length?(r=null==t?null:t,i):r},i}().type(e).size(function(t,e,r){if("area"===e)return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var n=18*lu;return 1.25*t*t*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}}(a,u,i)),r())})):null};function fu(t){return fu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fu(t)}function hu(){return hu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},hu.apply(this,arguments)}function pu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function du(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,wu(n.key),n)}}function yu(t,e,r){return e=mu(e),function(t,e){if(e&&("object"===fu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,vu()?Reflect.construct(e,r||[],mu(t).constructor):e.apply(t,r))}function vu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(vu=function(){return!!t})()}function mu(t){return mu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mu(t)}function gu(t,e){return gu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gu(t,e)}function bu(t,e,r){return(e=wu(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wu(t){var e=function(t,e){if("object"!=fu(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=fu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==fu(e)?e:String(e)}su.registerSymbol=function(t,e){uu["symbol".concat(Ga(t))]=e};var xu=32,Ou=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),yu(this,e,arguments)}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gu(t,e)}(e,Z),r=e,n=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,r=16,n=xu/6,i=xu/3,o=t.inactive?e:t.color;if("plainline"===t.type)return Y.createElement("line",{strokeWidth:4,fill:"none",stroke:o,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:r,x2:xu,y2:r,className:"recharts-legend-icon"});if("line"===t.type)return Y.createElement("path",{strokeWidth:4,fill:"none",stroke:o,d:"M0,".concat(r,"h").concat(i,"\n A").concat(n,",").concat(n,",0,1,1,").concat(2*i,",").concat(r,"\n H").concat(xu,"M").concat(2*i,",").concat(r,"\n A").concat(n,",").concat(n,",0,1,1,").concat(i,",").concat(r),className:"recharts-legend-icon"});if("rect"===t.type)return Y.createElement("path",{stroke:"none",fill:o,d:"M0,".concat(4,"h").concat(xu,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(Y.isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pu(Object(r),!0).forEach((function(e){bu(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pu(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return delete a.legendIcon,Y.cloneElement(t.legendIcon,a)}return Y.createElement(su,{fill:o,cx:r,cy:r,size:xu,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,r=e.payload,n=e.iconSize,i=e.layout,o=e.formatter,a=e.inactiveColor,c={x:0,y:0,width:xu,height:xu},u={display:"horizontal"===i?"inline-block":"block",marginRight:10},l={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(e,r){var i=e.formatter||o,s=Lr(bu(bu({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",e.inactive));if("none"===e.type)return null;var f=bn(e.value)?null:e.value;xa(!bn(e.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var h=e.inactive?a:e.color;return Y.createElement("li",hu({className:s,style:u,key:"legend-item-".concat(r)},Xo(t.props,e,r)),Y.createElement(ya,{width:n,height:n,viewBox:c,style:l},t.renderIcon(e)),Y.createElement("span",{className:"recharts-legend-item-text",style:{color:h}},i?i(f,e,r):f))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,n=t.align;if(!e||!e.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return Y.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],n&&du(r.prototype,n),i&&du(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();bu(Ou,"displayName","Legend"),bu(Ou,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Su=mi;var ju=mi,Au=gi,Pu=Ii;var Mu=mi,Eu=function(){this.__data__=new Su,this.size=0},ku=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},_u=function(t){return this.__data__.get(t)},Tu=function(t){return this.__data__.has(t)},Cu=function(t,e){var r=this.__data__;if(r instanceof ju){var n=r.__data__;if(!Au||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Pu(n)}return r.set(t,e),this.size=r.size,this};function Du(t){var e=this.__data__=new Mu(t);this.size=e.size}Du.prototype.clear=Eu,Du.prototype.delete=ku,Du.prototype.get=_u,Du.prototype.has=Tu,Du.prototype.set=Cu;var Iu=Du;var Nu=Ii,Bu=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Ru=function(t){return this.__data__.has(t)};function $u(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Nu;++e<r;)this.add(t[e])}$u.prototype.add=$u.prototype.push=Bu,$u.prototype.has=Ru;var Lu=$u;var zu=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1};var Hu=function(t,e){return t.has(e)},Fu=Lu,Uu=zu,Vu=Hu;var Wu=function(t,e,r,n,i,o){var a=1&r,c=t.length,u=e.length;if(c!=u&&!(a&&u>c))return!1;var l=o.get(t),s=o.get(e);if(l&&s)return l==e&&s==t;var f=-1,h=!0,p=2&r?new Fu:void 0;for(o.set(t,e),o.set(e,t);++f<c;){var d=t[f],y=e[f];if(n)var v=a?n(y,d,f,e,t,o):n(d,y,f,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(p){if(!Uu(e,(function(t,e){if(!Vu(p,e)&&(d===t||i(d,t,r,n,o)))return p.push(e)}))){h=!1;break}}else if(d!==y&&!i(d,y,r,n,o)){h=!1;break}}return o.delete(t),o.delete(e),h};var qu=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r};var Xu=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r},Yu=Vr.Uint8Array,Ku=ni,Gu=Wu,Zu=qu,Ju=Xu,Qu=Wr?Wr.prototype:void 0,tl=Qu?Qu.valueOf:void 0;var el=function(t,e,r,n,i,o,a){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new Yu(t),new Yu(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ku(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var c=Zu;case"[object Set]":var u=1&n;if(c||(c=Ju),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;n|=2,a.set(t,e);var s=Gu(c(t),c(e),n,i,o,a);return a.delete(t),s;case"[object Symbol]":if(tl)return tl.call(t)==tl.call(e)}return!1};var rl=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t},nl=rl,il=zr;var ol=function(t,e,r){var n=e(t);return il(t)?n:nl(n,r(t))};var al=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o};var cl=al,ul=function(){return[]},ll=Object.prototype.propertyIsEnumerable,sl=Object.getOwnPropertySymbols,fl=sl?function(t){return null==t?[]:(t=Object(t),cl(sl(t),(function(e){return ll.call(t,e)})))}:ul,hl=fl;var pl=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n},dl=rn,yl=nn;var vl=function(t){return yl(t)&&"[object Arguments]"==dl(t)},ml=nn,gl=Object.prototype,bl=gl.hasOwnProperty,wl=gl.propertyIsEnumerable,xl=vl(function(){return arguments}())?vl:function(t){return ml(t)&&bl.call(t,"callee")&&!wl.call(t,"callee")},Ol={exports:{}};var Sl=function(){return!1};!function(t,e){var r=Vr,n=Sl,i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;t.exports=c}(Ol,Ol.exports);var jl=Ol.exports,Al=/^(?:0|[1-9]\d*)$/;var Pl=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&Al.test(t))&&t>-1&&t%1==0&&t<e};var Ml=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},El=rn,kl=Ml,_l=nn,Tl={};Tl["[object Float32Array]"]=Tl["[object Float64Array]"]=Tl["[object Int8Array]"]=Tl["[object Int16Array]"]=Tl["[object Int32Array]"]=Tl["[object Uint8Array]"]=Tl["[object Uint8ClampedArray]"]=Tl["[object Uint16Array]"]=Tl["[object Uint32Array]"]=!0,Tl["[object Arguments]"]=Tl["[object Array]"]=Tl["[object ArrayBuffer]"]=Tl["[object Boolean]"]=Tl["[object DataView]"]=Tl["[object Date]"]=Tl["[object Error]"]=Tl["[object Function]"]=Tl["[object Map]"]=Tl["[object Number]"]=Tl["[object Object]"]=Tl["[object RegExp]"]=Tl["[object Set]"]=Tl["[object String]"]=Tl["[object WeakMap]"]=!1;var Cl=function(t){return _l(t)&&kl(t.length)&&!!Tl[El(t)]};var Dl=function(t){return function(e){return t(e)}},Il={exports:{}};!function(t,e){var r=Hr,n=e&&!e.nodeType&&e,i=n&&t&&!t.nodeType&&t,o=i&&i.exports===n&&r.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a}(Il,Il.exports);var Nl=Il.exports,Bl=Cl,Rl=Dl,$l=Nl&&Nl.isTypedArray,Ll=$l?Rl($l):Bl,zl=pl,Hl=xl,Fl=zr,Ul=jl,Vl=Pl,Wl=Ll,ql=Object.prototype.hasOwnProperty;var Xl=function(t,e){var r=Fl(t),n=!r&&Hl(t),i=!r&&!n&&Ul(t),o=!r&&!n&&!i&&Wl(t),a=r||n||i||o,c=a?zl(t.length,String):[],u=c.length;for(var l in t)!e&&!ql.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Vl(l,u))||c.push(l);return c},Yl=Object.prototype;var Kl=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Yl)};var Gl=function(t,e){return function(r){return t(e(r))}},Zl=Gl(Object.keys,Object),Jl=Kl,Ql=Zl,ts=Object.prototype.hasOwnProperty;var es=function(t){if(!Jl(t))return Ql(t);var e=[];for(var r in Object(t))ts.call(t,r)&&"constructor"!=r&&e.push(r);return e},rs=gn,ns=Ml;var is=function(t){return null!=t&&ns(t.length)&&!rs(t)},os=Xl,as=es,cs=is;var us=function(t){return cs(t)?os(t):as(t)},ls=ol,ss=hl,fs=us;var hs=function(t){return ls(t,fs,ss)},ps=hs,ds=Object.prototype.hasOwnProperty;var ys=function(t,e,r,n,i,o){var a=1&r,c=ps(t),u=c.length;if(u!=ps(e).length&&!a)return!1;for(var l=u;l--;){var s=c[l];if(!(a?s in e:ds.call(e,s)))return!1}var f=o.get(t),h=o.get(e);if(f&&h)return f==e&&h==t;var p=!0;o.set(t,e),o.set(e,t);for(var d=a;++l<u;){var y=t[s=c[l]],v=e[s];if(n)var m=a?n(v,y,s,e,t,o):n(y,v,s,t,e,o);if(!(void 0===m?y===v||i(y,v,r,n,o):m)){p=!1;break}d||(d="constructor"==s)}if(p&&!d){var g=t.constructor,b=e.constructor;g==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(t),o.delete(e),p},vs=$n(Vr,"DataView"),ms=$n(Vr,"Promise"),gs=$n(Vr,"Set"),bs=vs,ws=gi,xs=ms,Os=gs,Ss=$n(Vr,"WeakMap"),js=rn,As=jn,Ps="[object Map]",Ms="[object Promise]",Es="[object Set]",ks="[object WeakMap]",_s="[object DataView]",Ts=As(bs),Cs=As(ws),Ds=As(xs),Is=As(Os),Ns=As(Ss),Bs=js;(bs&&Bs(new bs(new ArrayBuffer(1)))!=_s||ws&&Bs(new ws)!=Ps||xs&&Bs(xs.resolve())!=Ms||Os&&Bs(new Os)!=Es||Ss&&Bs(new Ss)!=ks)&&(Bs=function(t){var e=js(t),r="[object Object]"==e?t.constructor:void 0,n=r?As(r):"";if(n)switch(n){case Ts:return _s;case Cs:return Ps;case Ds:return Ms;case Is:return Es;case Ns:return ks}return e});var Rs=Iu,$s=Wu,Ls=el,zs=ys,Hs=Bs,Fs=zr,Us=jl,Vs=Ll,Ws="[object Arguments]",qs="[object Array]",Xs="[object Object]",Ys=Object.prototype.hasOwnProperty;var Ks=function(t,e,r,n,i,o){var a=Fs(t),c=Fs(e),u=a?qs:Hs(t),l=c?qs:Hs(e),s=(u=u==Ws?Xs:u)==Xs,f=(l=l==Ws?Xs:l)==Xs,h=u==l;if(h&&Us(t)){if(!Us(e))return!1;a=!0,s=!1}if(h&&!s)return o||(o=new Rs),a||Vs(t)?$s(t,e,r,n,i,o):Ls(t,e,u,r,n,i,o);if(!(1&r)){var p=s&&Ys.call(t,"__wrapped__"),d=f&&Ys.call(e,"__wrapped__");if(p||d){var y=p?t.value():t,v=d?e.value():e;return o||(o=new Rs),i(y,v,r,n,o)}}return!!h&&(o||(o=new Rs),zs(t,e,r,n,i,o))},Gs=Ks,Zs=nn;var Js=function t(e,r,n,i,o){return e===r||(null==e||null==r||!Zs(e)&&!Zs(r)?e!=e&&r!=r:Gs(e,r,n,i,t,o))},Qs=Iu,tf=Js;var ef=function(t,e,r,n){var i=r.length,o=i,a=!n;if(null==t)return!o;for(t=Object(t);i--;){var c=r[i];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++i<o;){var u=(c=r[i])[0],l=t[u],s=c[1];if(a&&c[2]){if(void 0===l&&!(u in t))return!1}else{var f=new Qs;if(n)var h=n(l,s,u,t,e,f);if(!(void 0===h?tf(s,l,3,n,f):h))return!1}}return!0},rf=pn;var nf=function(t){return t==t&&!rf(t)},of=nf,af=us;var cf=function(t){for(var e=af(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,of(i)]}return e};var uf=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}},lf=ef,sf=cf,ff=uf;var hf=function(t){var e=sf(t);return 1==e.length&&e[0][2]?ff(e[0][0],e[0][1]):function(r){return r===t||lf(r,t,e)}};var pf=function(t,e){return null!=t&&e in Object(t)},df=no,yf=xl,vf=zr,mf=Pl,gf=Ml,bf=oo;var wf=function(t,e,r){for(var n=-1,i=(e=df(e,t)).length,o=!1;++n<i;){var a=bf(e[n]);if(!(o=null!=t&&r(t,a)))break;t=t[a]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&gf(i)&&mf(a,i)&&(vf(t)||yf(t))},xf=pf,Of=wf;var Sf=function(t,e){return null!=t&&Of(t,e,xf)},jf=Js,Af=so,Pf=Sf,Mf=hn,Ef=nf,kf=uf,_f=oo;var Tf=function(t,e){return Mf(t)&&Ef(e)?kf(_f(t),e):function(r){var n=Af(r,t);return void 0===n&&n===e?Pf(r,t):jf(e,n,3)}};var Cf=function(t){return t};var Df=function(t){return function(e){return null==e?void 0:e[t]}},If=uo;var Nf=function(t){return function(e){return If(e,t)}},Bf=Df,Rf=Nf,$f=hn,Lf=oo;var zf=hf,Hf=Tf,Ff=Cf,Uf=zr,Vf=function(t){return $f(t)?Bf(Lf(t)):Rf(t)};var Wf=function(t){return"function"==typeof t?t:null==t?Ff:"object"==typeof t?Uf(t)?Hf(t[0],t[1]):zf(t):Vf(t)};var qf=function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1};var Xf=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1},Yf=qf,Kf=function(t){return t!=t},Gf=Xf;var Zf=function(t,e,r){return e==e?Gf(t,e,r):Yf(t,Kf,r)},Jf=Zf;var Qf=function(t,e){return!!(null==t?0:t.length)&&Jf(t,e,0)>-1};var th=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1};var eh=gs,rh=function(){},nh=eh&&1/Xu(new eh([,-0]))[1]==1/0?function(t){return new eh(t)}:rh,ih=Lu,oh=Qf,ah=th,ch=Hu,uh=nh,lh=Xu;var sh=function(t,e,r){var n=-1,i=oh,o=t.length,a=!0,c=[],u=c;if(r)a=!1,i=ah;else if(o>=200){var l=e?null:uh(t);if(l)return lh(l);a=!1,i=ch,u=new ih}else u=e?[]:c;t:for(;++n<o;){var s=t[n],f=e?e(s):s;if(s=r||0!==s?s:0,a&&f==f){for(var h=u.length;h--;)if(u[h]===f)continue t;e&&u.push(f),c.push(s)}else i(u,f,r)||(u!==c&&u.push(f),c.push(s))}return c},fh=Wf,hh=sh;var ph=function(t,e){return t&&t.length?hh(t,fh(e)):[]},dh=Qe(ph);function yh(t,e,r){return!0===e?dh(t,r):bn(e)?dh(t,e):t}function vh(t){return vh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vh(t)}var mh=["ref"];function gh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function bh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gh(Object(r),!0).forEach((function(e){Ph(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function wh(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Mh(n.key),n)}}function xh(t,e,r){return e=Sh(e),function(t,e){if(e&&("object"===vh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return jh(t)}(t,Oh()?Reflect.construct(e,r||[],Sh(t).constructor):e.apply(t,r))}function Oh(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Oh=function(){return!!t})()}function Sh(t){return Sh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Sh(t)}function jh(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ah(t,e){return Ah=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ah(t,e)}function Ph(t,e,r){return(e=Mh(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mh(t){var e=function(t,e){if("object"!=vh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=vh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==vh(e)?e:String(e)}function Eh(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function kh(t){return t.value}var _h=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Ph(jh(t=xh(this,e,[].concat(n))),"lastBoundingBox",{width:-1,height:-1}),t}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ah(t,e)}(e,Z),r=e,i=[{key:"getWithHeight",value:function(t,e){var r=t.props.layout;return"vertical"===r&&Co(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e))}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?bh({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,i=n.layout,o=n.align,a=n.verticalAlign,c=n.margin,u=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===o&&"vertical"===i?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===o?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),bh(bh({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,n=e.width,i=e.height,o=e.wrapperStyle,a=e.payloadUniqBy,c=e.payload,u=bh(bh({position:"absolute",width:n||"auto",height:i||"auto"},this.getDefaultPosition(o)),o);return Y.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(e){t.wrapperNode=e}},function(t,e){if(Y.isValidElement(t))return Y.cloneElement(t,e);if("function"==typeof t)return Y.createElement(t,e);e.ref;var r=Eh(e,mh);return Y.createElement(Ou,r)}(r,bh(bh({},this.props),{},{payload:yh(c,a,kh)})))}}])&&wh(r.prototype,n),i&&wh(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();Ph(_h,"displayName","Legend"),Ph(_h,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Th=xl,Ch=zr,Dh=Wr?Wr.isConcatSpreadable:void 0;var Ih=rl,Nh=function(t){return Ch(t)||Th(t)||!!(Dh&&t&&t[Dh])};var Bh=function t(e,r,n,i,o){var a=-1,c=e.length;for(n||(n=Nh),o||(o=[]);++a<c;){var u=e[a];r>0&&n(u)?r>1?t(u,r-1,n,i,o):Ih(o,u):i||(o[o.length]=u)}return o};var Rh=function(t){return function(e,r,n){for(var i=-1,o=Object(e),a=n(e),c=a.length;c--;){var u=a[t?c:++i];if(!1===r(o[u],u,o))break}return e}},$h=Rh(),Lh=us;var zh=function(t,e){return t&&$h(t,e,Lh)},Hh=is;var Fh=function(t,e){return function(r,n){if(null==r)return r;if(!Hh(r))return t(r,n);for(var i=r.length,o=e?i:-1,a=Object(r);(e?o--:++o<i)&&!1!==n(a[o],o,a););return r}}(zh),Uh=Fh,Vh=is;var Wh=function(t,e){var r=-1,n=Vh(t)?Array(t.length):[];return Uh(t,(function(t,i,o){n[++r]=e(t,i,o)})),n};var qh=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t},Xh=cn;var Yh=function(t,e){if(t!==e){var r=void 0!==t,n=null===t,i=t==t,o=Xh(t),a=void 0!==e,c=null===e,u=e==e,l=Xh(e);if(!c&&!l&&!o&&t>e||o&&a&&u&&!c&&!l||n&&a&&u||!r&&u||!i)return 1;if(!n&&!o&&!l&&t<e||l&&r&&i&&!n&&!o||c&&r&&i||!a&&i||!u)return-1}return 0};var Kh=function(t,e,r){for(var n=-1,i=t.criteria,o=e.criteria,a=i.length,c=r.length;++n<a;){var u=Yh(i[n],o[n]);if(u)return n>=c?u:u*("desc"==r[n]?-1:1)}return t.index-e.index},Gh=Vi,Zh=uo,Jh=Wf,Qh=Wh,tp=qh,ep=Dl,rp=Kh,np=Cf,ip=zr;var op=function(t,e,r){e=e.length?Gh(e,(function(t){return ip(t)?function(e){return Zh(e,1===t.length?t[0]:t)}:t})):[np];var n=-1;e=Gh(e,ep(Jh));var i=Qh(t,(function(t,r,i){return{criteria:Gh(e,(function(e){return e(t)})),index:++n,value:t}}));return tp(i,(function(t,e){return rp(t,e,r)}))};var ap=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)},cp=Math.max;var up=function(t,e,r){return e=cp(void 0===e?t.length-1:e,0),function(){for(var n=arguments,i=-1,o=cp(n.length-e,0),a=Array(o);++i<o;)a[i]=n[e+i];i=-1;for(var c=Array(e+1);++i<e;)c[i]=n[i];return c[e]=r(a),ap(t,this,c)}};var lp=function(t){return function(){return t}},sp=$n,fp=function(){try{var t=sp(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),hp=lp,pp=fp,dp=pp?function(t,e){return pp(t,"toString",{configurable:!0,enumerable:!1,value:hp(e),writable:!0})}:Cf,yp=dp,vp=Date.now;var mp=function(t){var e=0,r=0;return function(){var n=vp(),i=16-(n-r);if(r=n,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(yp),gp=Cf,bp=up,wp=mp;var xp=ni,Op=is,Sp=Pl,jp=pn;var Ap=function(t,e,r){if(!jp(r))return!1;var n=typeof e;return!!("number"==n?Op(r)&&Sp(e,r.length):"string"==n&&e in r)&&xp(r[e],t)},Pp=Bh,Mp=op,Ep=Ap,kp=Qe(function(t,e){return wp(bp(t,e,gp),t+"")}((function(t,e){if(null==t)return[];var r=e.length;return r>1&&Ep(t,e[0],e[1])?e=[]:r>2&&Ep(e[0],e[1],e[2])&&(e=[e[0]]),Mp(t,Pp(e,1),[])})));function _p(t){return _p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_p(t)}function Tp(){return Tp=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Tp.apply(this,arguments)}function Cp(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Dp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dp(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ip(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Np(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ip(Object(r),!0).forEach((function(e){Bp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ip(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Bp(t,e,r){return e=function(t){var e=function(t,e){if("object"!=_p(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_p(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rp(t){return Array.isArray(t)&&Do(t[0])&&Do(t[1])?t.join(" ~ "):t}var $p=function(t){var e=t.separator,r=void 0===e?" : ":e,n=t.contentStyle,i=void 0===n?{}:n,o=t.itemStyle,a=void 0===o?{}:o,c=t.labelStyle,u=void 0===c?{}:c,l=t.payload,s=t.formatter,f=t.itemSorter,h=t.wrapperClassName,p=t.labelClassName,d=t.label,y=t.labelFormatter,v=t.accessibilityLayer,m=void 0!==v&&v,g=Np({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),b=Np({margin:0},u),w=!ho(d),x=w?d:"",O=Lr("recharts-default-tooltip",h),S=Lr("recharts-tooltip-label",p);w&&y&&null!=l&&(x=y(d,l));var j=m?{role:"status","aria-live":"assertive"}:{};return Y.createElement("div",Tp({className:O,style:g},j),Y.createElement("p",{className:S,style:b},Y.isValidElement(x)?x:"".concat(x)),function(){if(l&&l.length){var t=(f?kp(l,f):l).map((function(t,e){if("none"===t.type)return null;var n=Np({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},a),i=t.formatter||s||Rp,o=t.value,c=t.name,u=o,f=c;if(i&&null!=u&&null!=f){var h=i(o,c,t,e,l);if(Array.isArray(h)){var p=Cp(h,2);u=p[0],f=p[1]}else u=h}return Y.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:n},Do(f)?Y.createElement("span",{className:"recharts-tooltip-item-name"},f):null,Do(f)?Y.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,Y.createElement("span",{className:"recharts-tooltip-item-value"},u),Y.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return Y.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function Lp(t){return Lp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lp(t)}function zp(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Lp(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Lp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Lp(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Hp="recharts-tooltip-wrapper",Fp={visibility:"hidden"};function Up(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return Lr(Hp,zp(zp(zp(zp({},"".concat(Hp,"-right"),Co(r)&&e&&Co(e.x)&&r>=e.x),"".concat(Hp,"-left"),Co(r)&&e&&Co(e.x)&&r<e.x),"".concat(Hp,"-bottom"),Co(n)&&e&&Co(e.y)&&n>=e.y),"".concat(Hp,"-top"),Co(n)&&e&&Co(e.y)&&n<e.y))}function Vp(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,i=t.offsetTopLeft,o=t.position,a=t.reverseDirection,c=t.tooltipDimension,u=t.viewBox,l=t.viewBoxDimension;if(o&&Co(o[n]))return o[n];var s=r[n]-c-i,f=r[n]+i;return e[n]?a[n]?s:f:a[n]?s<u[n]?Math.max(f,u[n]):Math.max(s,u[n]):f+c>u[n]+l?Math.max(s,u[n]):Math.max(f,u[n])}function Wp(t){return Wp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wp(t)}function qp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qp(Object(r),!0).forEach((function(e){td(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Yp(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ed(n.key),n)}}function Kp(t,e,r){return e=Zp(e),function(t,e){if(e&&("object"===Wp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Jp(t)}(t,Gp()?Reflect.construct(e,r||[],Zp(t).constructor):e.apply(t,r))}function Gp(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Gp=function(){return!!t})()}function Zp(t){return Zp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zp(t)}function Jp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qp(t,e){return Qp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Qp(t,e)}function td(t,e,r){return(e=ed(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ed(t){var e=function(t,e){if("object"!=Wp(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Wp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Wp(e)?e:String(e)}var rd=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return td(Jp(t=Kp(this,e,[].concat(n))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),td(Jp(t),"lastBoundingBox",{width:-1,height:-1}),td(Jp(t),"handleKeyDown",(function(e){var r,n,i,o;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=t.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(i=null===(o=t.props.coordinate)||void 0===o?void 0:o.y)&&void 0!==i?i:0}})})),t}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qp(t,e)}(e,Z),r=e,(n=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height)}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)===this.state.dismissedAtCoordinate.x&&(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,i=e.animationDuration,o=e.animationEasing,a=e.children,c=e.coordinate,u=e.hasPayload,l=e.isAnimationActive,s=e.offset,f=e.position,h=e.reverseDirection,p=e.useTranslate3d,d=e.viewBox,y=e.wrapperStyle,v=function(t){var e,r,n=t.allowEscapeViewBox,i=t.coordinate,o=t.offsetTopLeft,a=t.position,c=t.reverseDirection,u=t.tooltipBox,l=t.useTranslate3d,s=t.viewBox;return{cssProperties:u.height>0&&u.width>0&&i?function(t){var e=t.translateX,r=t.translateY;return{transform:t.useTranslate3d?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}({translateX:e=Vp({allowEscapeViewBox:n,coordinate:i,key:"x",offsetTopLeft:o,position:a,reverseDirection:c,tooltipDimension:u.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=Vp({allowEscapeViewBox:n,coordinate:i,key:"y",offsetTopLeft:o,position:a,reverseDirection:c,tooltipDimension:u.height,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:l}):Fp,cssClasses:Up({translateX:e,translateY:r,coordinate:i})}}({allowEscapeViewBox:n,coordinate:c,offsetTopLeft:s,position:f,reverseDirection:h,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:p,viewBox:d}),m=v.cssClasses,g=v.cssProperties,b=Xp(Xp({transition:l&&r?"transform ".concat(i,"ms ").concat(o):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&u?"visible":"hidden",position:"absolute",top:0,left:0},y);return Y.createElement("div",{tabIndex:-1,className:m,style:b,ref:function(e){t.wrapperNode=e}},a)}}])&&Yp(r.prototype,n),i&&Yp(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}(),nd={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return nd[t]},set:function(t,e){if("string"==typeof t)nd[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach((function(e){nd[e]=t[e]}))}}};function id(t){return id="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},id(t)}function od(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ad(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?od(Object(r),!0).forEach((function(e){hd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):od(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cd(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,pd(n.key),n)}}function ud(t,e,r){return e=sd(e),function(t,e){if(e&&("object"===id(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ld()?Reflect.construct(e,r||[],sd(t).constructor):e.apply(t,r))}function ld(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ld=function(){return!!t})()}function sd(t){return sd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},sd(t)}function fd(t,e){return fd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fd(t,e)}function hd(t,e,r){return(e=pd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pd(t){var e=function(t,e){if("object"!=id(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=id(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==id(e)?e:String(e)}function dd(t){return t.dataKey}var yd=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ud(this,e,arguments)}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fd(t,e)}(e,Z),r=e,(n=[{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,i=e.animationDuration,o=e.animationEasing,a=e.content,c=e.coordinate,u=e.filterNull,l=e.isAnimationActive,s=e.offset,f=e.payload,h=e.payloadUniqBy,p=e.position,d=e.reverseDirection,y=e.useTranslate3d,v=e.viewBox,m=e.wrapperStyle,g=null!=f?f:[];u&&g.length&&(g=yh(f.filter((function(e){return null!=e.value&&(!0!==e.hide||t.props.includeHidden)})),h,dd));var b=g.length>0;return Y.createElement(rd,{allowEscapeViewBox:n,animationDuration:i,animationEasing:o,isAnimationActive:l,active:r,coordinate:c,hasPayload:b,offset:s,position:p,reverseDirection:d,useTranslate3d:y,viewBox:v,wrapperStyle:m},function(t,e){return Y.isValidElement(t)?Y.cloneElement(t,e):"function"==typeof t?Y.createElement(t,e):Y.createElement($p,e)}(a,ad(ad({},this.props),{},{payload:g})))}}])&&cd(r.prototype,n),i&&cd(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();hd(yd,"displayName","Tooltip"),hd(yd,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!nd.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var vd=Vr,md=/\s/;var gd=function(t){for(var e=t.length;e--&&md.test(t.charAt(e)););return e},bd=gd,wd=/^\s+/;var xd=function(t){return t?t.slice(0,bd(t)+1).replace(wd,""):t},Od=xd,Sd=pn,jd=cn,Ad=/^[-+]0x[0-9a-f]+$/i,Pd=/^0b[01]+$/i,Md=/^0o[0-7]+$/i,Ed=parseInt;var kd=function(t){if("number"==typeof t)return t;if(jd(t))return NaN;if(Sd(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Sd(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Od(t);var r=Pd.test(t);return r||Md.test(t)?Ed(t.slice(2),r?2:8):Ad.test(t)?NaN:+t},_d=pn,Td=function(){return vd.Date.now()},Cd=kd,Dd=Math.max,Id=Math.min;var Nd=function(t,e,r){var n,i,o,a,c,u,l=0,s=!1,f=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var r=n,o=i;return n=i=void 0,l=e,a=t.apply(o,r)}function d(t){var r=t-u;return void 0===u||r>=e||r<0||f&&t-l>=o}function y(){var t=Td();if(d(t))return v(t);c=setTimeout(y,function(t){var r=e-(t-u);return f?Id(r,o-(t-l)):r}(t))}function v(t){return c=void 0,h&&n?p(t):(n=i=void 0,a)}function m(){var t=Td(),r=d(t);if(n=arguments,i=this,u=t,r){if(void 0===c)return function(t){return l=t,c=setTimeout(y,e),s?p(t):a}(u);if(f)return clearTimeout(c),c=setTimeout(y,e),p(u)}return void 0===c&&(c=setTimeout(y,e)),a}return e=Cd(e)||0,_d(r)&&(s=!!r.leading,o=(f="maxWait"in r)?Dd(Cd(r.maxWait)||0,e):o,h="trailing"in r?!!r.trailing:h),m.cancel=function(){void 0!==c&&clearTimeout(c),l=0,n=u=i=c=void 0},m.flush=function(){return void 0===c?a:v(Td())},m},Bd=Nd,Rd=pn;var $d=Qe((function(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Rd(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Bd(t,e,{leading:n,maxWait:e,trailing:i})}));function Ld(t){return Ld="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ld(t)}function zd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Hd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zd(Object(r),!0).forEach((function(e){Fd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Fd(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Ld(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ld(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ld(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ud(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Vd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vd(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vd(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Wd=J((function(t,e){var r=t.aspect,n=t.initialDimension,i=void 0===n?{width:-1,height:-1}:n,o=t.width,a=void 0===o?"100%":o,c=t.height,u=void 0===c?"100%":c,l=t.minWidth,s=void 0===l?0:l,f=t.minHeight,h=t.maxHeight,p=t.children,d=t.debounce,y=void 0===d?0:d,v=t.id,m=t.className,g=t.onResize,b=t.style,w=void 0===b?{}:b,x=Q(null),O=Q();O.current=g,tt(e,(function(){return Object.defineProperty(x.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),x.current},configurable:!0})}));var S=Ud(et({containerWidth:i.width,containerHeight:i.height}),2),j=S[0],A=S[1],P=rt((function(t,e){A((function(r){var n=Math.round(t),i=Math.round(e);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}}))}),[]);nt((function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,i=r.height;P(n,i),null===(e=O.current)||void 0===e||e.call(O,n,i)};y>0&&(t=$d(t,y,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=x.current.getBoundingClientRect(),n=r.width,i=r.height;return P(n,i),e.observe(x.current),function(){e.disconnect()}}),[P,y]);var M=it((function(){var t=j.containerWidth,e=j.containerHeight;if(t<0||e<0)return null;xa(To(a)||To(u),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,u),xa(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=To(a)?t:a,i=To(u)?e:u;r&&r>0&&(n?i=n/r:i&&(n=i*r),h&&i>h&&(i=h)),xa(n>0||i>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",n,i,a,u,s,f,r);var o=!Array.isArray(p)&&So.isElement(p)&&Qo(p.type).endsWith("Chart");return Y.Children.map(p,(function(t){return So.isElement(t)?ot(t,Hd({width:n,height:i},o?{style:Hd({height:"100%",width:"100%",maxHeight:i,maxWidth:n},t.props.style)}:{})):t}))}),[r,p,u,h,f,s,j,a]);return Y.createElement("div",{id:v?"".concat(v):void 0,className:Lr("recharts-responsive-container",m),style:Hd(Hd({},w),{},{width:a,height:u,minWidth:s,minHeight:f,maxHeight:h}),ref:x},M)})),qd=function(t){return null};function Xd(t){return Xd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xd(t)}function Yd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Kd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yd(Object(r),!0).forEach((function(e){Gd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Gd(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Xd(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Xd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Xd(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}qd.displayName="Cell";var Zd={widthCache:{},cacheCount:0},Jd={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Qd="recharts_measurement_span";var ty=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||nd.isSsr)return{width:0,height:0};var r,n=(r=Kd({},e),Object.keys(r).forEach((function(t){r[t]||delete r[t]})),r),i=JSON.stringify({text:t,copyStyle:n});if(Zd.widthCache[i])return Zd.widthCache[i];try{var o=document.getElementById(Qd);o||((o=document.createElement("span")).setAttribute("id",Qd),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Kd(Kd({},Jd),n);Object.assign(o.style,a),o.textContent="".concat(t);var c=o.getBoundingClientRect(),u={width:c.width,height:c.height};return Zd.widthCache[i]=u,++Zd.cacheCount>2e3&&(Zd.cacheCount=0,Zd.widthCache={}),u}catch(t){return{width:0,height:0}}};function ey(t){return ey="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ey(t)}function ry(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ny(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ny(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ny(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function iy(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,oy(n.key),n)}}function oy(t){var e=function(t,e){if("object"!=ey(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ey(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ey(e)?e:String(e)}var ay=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,cy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,uy=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,ly=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,sy={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},fy=Object.keys(sy),hy="NaN";var py=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),""===r||uy.test(r)||(this.num=NaN,this.unit=""),fy.includes(r)&&(this.num=function(t,e){return t*sy[e]}(e,r),this.unit="px")}var e,r,n;return e=t,n=[{key:"parse",value:function(e){var r,n=ry(null!==(r=ly.exec(e))&&void 0!==r?r:[],3),i=n[1],o=n[2];return new t(parseFloat(i),null!=o?o:"")}}],(r=[{key:"add",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&iy(e.prototype,r),n&&iy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function dy(t){if(t.includes(hy))return hy;for(var e=t;e.includes("*")||e.includes("/");){var r,n=ry(null!==(r=ay.exec(e))&&void 0!==r?r:[],4),i=n[1],o=n[2],a=n[3],c=py.parse(null!=i?i:""),u=py.parse(null!=a?a:""),l="*"===o?c.multiply(u):c.divide(u);if(l.isNaN())return hy;e=e.replace(ay,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=ry(null!==(s=cy.exec(e))&&void 0!==s?s:[],4),h=f[1],p=f[2],d=f[3],y=py.parse(null!=h?h:""),v=py.parse(null!=d?d:""),m="+"===p?y.add(v):y.subtract(v);if(m.isNaN())return hy;e=e.replace(cy,m.toString())}return e}var yy=/\(([^()]*)\)/;function vy(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=ry(yy.exec(e),2)[1];e=e.replace(yy,dy(r))}return e}(e),e=dy(e)}function my(t){var e=function(t){try{return vy(t)}catch(t){return hy}}(t.slice(5,-1));return e===hy?"":e}var gy=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],by=["dx","dy","angle","className","breakAll"];function wy(){return wy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},wy.apply(this,arguments)}function xy(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Oy(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Sy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sy(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sy(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var jy=/[ \f\n\r\t\v\u2028\u2029]+/,Ay=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var i=[];return ho(e)||(i=r?e.toString().split(""):e.toString().split(jy)),{wordsWithComputedWidth:i.map((function(t){return{word:t,width:ty(t,n).width}})),spaceWidth:r?0:ty(" ",n).width}}catch(t){return null}},Py=function(t){return[{words:ho(t)?[]:t.toString().split(jy)}]},My=function(t){var e=t.width,r=t.scaleToFit,n=t.children,i=t.style,o=t.breakAll,a=t.maxLines;if((e||r)&&!nd.isSsr){var c=Ay({breakAll:o,children:n,style:i});return c?function(t,e,r,n,i){var o=t.maxLines,a=t.children,c=t.style,u=t.breakAll,l=Co(o),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var o=e.word,a=e.width,c=t[t.length-1];if(c&&(null==n||i||c.width+a+r<Number(n)))c.words.push(o),c.width+=a+r;else{var u={words:[o],width:a};t.push(u)}return t}),[])},h=f(e);if(!l)return h;for(var p,d=function(t){var e=s.slice(0,t),r=Ay({breakAll:u,style:c,children:e+"…"}).wordsWithComputedWidth,i=f(r),a=i.length>o||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(i).width>Number(n);return[a,i]},y=0,v=s.length-1,m=0;y<=v&&m<=s.length-1;){var g=Math.floor((y+v)/2),b=Oy(d(g-1),2),w=b[0],x=b[1],O=Oy(d(g),1)[0];if(w||O||(y=g+1),w&&O&&(v=g-1),!w&&O){p=x;break}m++}return p||h}({breakAll:o,children:n,maxLines:a,style:i},c.wordsWithComputedWidth,c.spaceWidth,e,r):Py(n)}return Py(n)},Ey="#808080",ky=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,i=void 0===n?0:n,o=t.lineHeight,a=void 0===o?"1em":o,c=t.capHeight,u=void 0===c?"0.71em":c,l=t.scaleToFit,s=void 0!==l&&l,f=t.textAnchor,h=void 0===f?"start":f,p=t.verticalAnchor,d=void 0===p?"end":p,y=t.fill,v=void 0===y?Ey:y,m=xy(t,gy),g=it((function(){return My({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:s,style:m.style,width:m.width})}),[m.breakAll,m.children,m.maxLines,s,m.style,m.width]),b=m.dx,w=m.dy,x=m.angle,O=m.className,S=m.breakAll,j=xy(m,by);if(!Do(r)||!Do(i))return null;var A,P=r+(Co(b)?b:0),M=i+(Co(w)?w:0);switch(d){case"start":A=my("calc(".concat(u,")"));break;case"middle":A=my("calc(".concat((g.length-1)/2," * -").concat(a," + (").concat(u," / 2))"));break;default:A=my("calc(".concat(g.length-1," * -").concat(a,")"))}var E=[];if(s){var k=g[0].width,_=m.width;E.push("scale(".concat((Co(_)?_/k:1)/k,")"))}return x&&E.push("rotate(".concat(x,", ").concat(P,", ").concat(M,")")),E.length&&(j.transform=E.join(" ")),Y.createElement("text",wy({},ua(j,!0),{x:P,y:M,className:Lr("recharts-text",O),textAnchor:h,fill:v.includes("url")?Ey:v}),g.map((function(t,e){var r=t.words.join(S?"":" ");return Y.createElement("tspan",{x:P,dy:0===e?A:a,key:r},r)})))};function _y(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ty(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Cy(t){let e,r,n;function i(t,n,i=0,o=t.length){if(i<o){if(0!==e(n,n))return o;do{const e=i+o>>>1;r(t[e],n)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=_y,r=(e,r)=>_y(t(e),r),n=(e,r)=>t(e)-r):(e=t===_y||t===Ty?t:Dy,r=t,n=t),{left:i,center:function(t,e,r=0,o=t.length){const a=i(t,e,r,o-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,i=0,o=t.length){if(i<o){if(0!==e(n,n))return o;do{const e=i+o>>>1;r(t[e],n)<=0?i=e+1:o=e}while(i<o)}return i}}}function Dy(){return 0}function Iy(t){return null===t?NaN:+t}const Ny=Cy(_y).right;Cy(Iy).center;class By extends Map{constructor(t,e=$y){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(Ry(this,t))}has(t){return super.has(Ry(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){const n=e(r);t.has(n)&&(r=t.get(n),t.delete(n));return r}(this,t))}}function Ry({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function $y(t){return null!==t&&"object"==typeof t?t.valueOf():t}function Ly(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}const zy=Math.sqrt(50),Hy=Math.sqrt(10),Fy=Math.sqrt(2);function Uy(t,e,r){const n=(e-t)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),a=o>=zy?10:o>=Hy?5:o>=Fy?2:1;let c,u,l;return i<0?(l=Math.pow(10,-i)/a,c=Math.round(t*l),u=Math.round(e*l),c/l<t&&++c,u/l>e&&--u,l=-l):(l=Math.pow(10,i)*a,c=Math.round(t/l),u=Math.round(e/l),c*l<t&&++c,u*l>e&&--u),u<c&&.5<=r&&r<2?Uy(t,e,2*r):[c,u,l]}function Vy(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[i,o,a]=n?Uy(e,t,r):Uy(t,e,r);if(!(o>=i))return[];const c=o-i+1,u=new Array(c);if(n)if(a<0)for(let t=0;t<c;++t)u[t]=(o-t)/-a;else for(let t=0;t<c;++t)u[t]=(o-t)*a;else if(a<0)for(let t=0;t<c;++t)u[t]=(i+t)/-a;else for(let t=0;t<c;++t)u[t]=(i+t)*a;return u}function Wy(t,e,r){return Uy(t=+t,e=+e,r=+r)[2]}function qy(t,e,r){r=+r;const n=(e=+e)<(t=+t),i=n?Wy(e,t,r):Wy(t,e,r);return(n?-1:1)*(i<0?1/-i:i)}function Xy(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function Yy(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function Ky(t,e,r=0,n=1/0,i){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(i=void 0===i?Ly:function(t=_y){if(t===_y)return Ly;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(i);n>r;){if(n-r>600){const o=n-r+1,a=e-r+1,c=Math.log(o),u=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*u*(o-u)/o)*(a-o/2<0?-1:1);Ky(t,e,Math.max(r,Math.floor(e-a*u/o+l)),Math.min(n,Math.floor(e+(o-a)*u/o+l)),i)}const o=t[e];let a=r,c=n;for(Gy(t,r,e),i(t[n],o)>0&&Gy(t,r,n);a<c;){for(Gy(t,a,c),++a,--c;i(t[a],o)<0;)++a;for(;i(t[c],o)>0;)--c}0===i(t[r],o)?Gy(t,r,c):(++c,Gy(t,c,n)),c<=e&&(r=c+1),e<=c&&(n=c-1)}return t}function Gy(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function Zy(t,e,r=Iy){if((n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,o=Math.floor(i),a=+r(t[o],o,t);return a+(+r(t[o+1],o+1,t)-a)*(i-o)}}function Jy(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Qy(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}const tv=Symbol("implicit");function ev(){var t=new By,e=[],r=[],n=tv;function i(i){let o=t.get(i);if(void 0===o){if(n!==tv)return n;t.set(i,o=e.push(i)-1)}return r[o%r.length]}return i.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new By;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return i},i.range=function(t){return arguments.length?(r=Array.from(t),i):r.slice()},i.unknown=function(t){return arguments.length?(n=t,i):n},i.copy=function(){return ev(e,r).unknown(n)},Jy.apply(i,arguments),i}function rv(){var t,e,r=ev().unknown(void 0),n=r.domain,i=r.range,o=0,a=1,c=!1,u=0,l=0,s=.5;function f(){var r=n().length,f=a<o,h=f?a:o,p=f?o:a;t=(p-h)/Math.max(1,r-u+2*l),c&&(t=Math.floor(t)),h+=(p-h-t*(r-u))*s,e=t*(1-u),c&&(h=Math.round(h),e=Math.round(e));var d=function(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),o=new Array(i);++n<i;)o[n]=t+n*r;return o}(r).map((function(e){return h+t*e}));return i(f?d.reverse():d)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),f()):n()},r.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,f()):[o,a]},r.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,c=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(c=!!t,f()):c},r.padding=function(t){return arguments.length?(u=Math.min(1,l=+t),f()):u},r.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),f()):u},r.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},r.copy=function(){return rv(n(),[o,a]).round(c).paddingInner(u).paddingOuter(l).align(s)},Jy.apply(f(),arguments)}function nv(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return nv(e())},t}function iv(){return nv(rv.apply(null,arguments).paddingInner(1))}function ov(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function av(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function cv(){}var uv=.7,lv=1/uv,sv="\\s*([+-]?\\d+)\\s*",fv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",hv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pv=/^#([0-9a-f]{3,8})$/,dv=new RegExp(`^rgb\\(${sv},${sv},${sv}\\)$`),yv=new RegExp(`^rgb\\(${hv},${hv},${hv}\\)$`),vv=new RegExp(`^rgba\\(${sv},${sv},${sv},${fv}\\)$`),mv=new RegExp(`^rgba\\(${hv},${hv},${hv},${fv}\\)$`),gv=new RegExp(`^hsl\\(${fv},${hv},${hv}\\)$`),bv=new RegExp(`^hsla\\(${fv},${hv},${hv},${fv}\\)$`),wv={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};function xv(){return this.rgb().formatHex()}function Ov(){return this.rgb().formatRgb()}function Sv(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=pv.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?jv(e):3===r?new Mv(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?Av(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?Av(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=dv.exec(t))?new Mv(e[1],e[2],e[3],1):(e=yv.exec(t))?new Mv(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=vv.exec(t))?Av(e[1],e[2],e[3],e[4]):(e=mv.exec(t))?Av(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=gv.exec(t))?Dv(e[1],e[2]/100,e[3]/100,1):(e=bv.exec(t))?Dv(e[1],e[2]/100,e[3]/100,e[4]):wv.hasOwnProperty(t)?jv(wv[t]):"transparent"===t?new Mv(NaN,NaN,NaN,0):null}function jv(t){return new Mv(t>>16&255,t>>8&255,255&t,1)}function Av(t,e,r,n){return n<=0&&(t=e=r=NaN),new Mv(t,e,r,n)}function Pv(t,e,r,n){return 1===arguments.length?((i=t)instanceof cv||(i=Sv(i)),i?new Mv((i=i.rgb()).r,i.g,i.b,i.opacity):new Mv):new Mv(t,e,r,null==n?1:n);var i}function Mv(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function Ev(){return`#${Cv(this.r)}${Cv(this.g)}${Cv(this.b)}`}function kv(){const t=_v(this.opacity);return`${1===t?"rgb(":"rgba("}${Tv(this.r)}, ${Tv(this.g)}, ${Tv(this.b)}${1===t?")":`, ${t})`}`}function _v(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Tv(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Cv(t){return((t=Tv(t))<16?"0":"")+t.toString(16)}function Dv(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Nv(t,e,r,n)}function Iv(t){if(t instanceof Nv)return new Nv(t.h,t.s,t.l,t.opacity);if(t instanceof cv||(t=Sv(t)),!t)return new Nv;if(t instanceof Nv)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),o=Math.max(e,r,n),a=NaN,c=o-i,u=(o+i)/2;return c?(a=e===o?(r-n)/c+6*(r<n):r===o?(n-e)/c+2:(e-r)/c+4,c/=u<.5?o+i:2-o-i,a*=60):c=u>0&&u<1?0:a,new Nv(a,c,u,t.opacity)}function Nv(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function Bv(t){return(t=(t||0)%360)<0?t+360:t}function Rv(t){return Math.max(0,Math.min(1,t||0))}function $v(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}ov(cv,Sv,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:xv,formatHex:xv,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Iv(this).formatHsl()},formatRgb:Ov,toString:Ov}),ov(Mv,Pv,av(cv,{brighter(t){return t=null==t?lv:Math.pow(lv,t),new Mv(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?uv:Math.pow(uv,t),new Mv(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Mv(Tv(this.r),Tv(this.g),Tv(this.b),_v(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:Ev,formatHex:Ev,formatHex8:function(){return`#${Cv(this.r)}${Cv(this.g)}${Cv(this.b)}${Cv(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:kv,toString:kv})),ov(Nv,(function(t,e,r,n){return 1===arguments.length?Iv(t):new Nv(t,e,r,null==n?1:n)}),av(cv,{brighter(t){return t=null==t?lv:Math.pow(lv,t),new Nv(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?uv:Math.pow(uv,t),new Nv(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new Mv($v(t>=240?t-240:t+120,i,n),$v(t,i,n),$v(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new Nv(Bv(this.h),Rv(this.s),Rv(this.l),_v(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 t=_v(this.opacity);return`${1===t?"hsl(":"hsla("}${Bv(this.h)}, ${100*Rv(this.s)}%, ${100*Rv(this.l)}%${1===t?")":`, ${t})`}`}}));var Lv=t=>()=>t;function zv(t){return 1==(t=+t)?Hv:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):Lv(isNaN(e)?r:e)}}function Hv(t,e){var r=e-t;return r?function(t,e){return function(r){return t+r*e}}(t,r):Lv(isNaN(t)?e:t)}var Fv=function t(e){var r=zv(e);function n(t,e){var n=r((t=Pv(t)).r,(e=Pv(e)).r),i=r(t.g,e.g),o=r(t.b,e.b),a=Hv(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function Uv(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(r=0;r<n;++r)i[r]=t[r]*(1-o)+e[r]*o;return i}}function Vv(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,o=new Array(i),a=new Array(n);for(r=0;r<i;++r)o[r]=Zv(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<i;++r)a[r]=o[r](t);return a}}function Wv(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function qv(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Xv(t,e){var r,n={},i={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=Zv(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}var Yv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kv=new RegExp(Yv.source,"g");function Gv(t,e){var r,n,i,o=Yv.lastIndex=Kv.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(r=Yv.exec(t))&&(n=Kv.exec(e));)(i=n.index)>o&&(i=e.slice(o,i),c[a]?c[a]+=i:c[++a]=i),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,u.push({i:a,x:qv(r,n)})),o=Kv.lastIndex;return o<e.length&&(i=e.slice(o),c[a]?c[a]+=i:c[++a]=i),c.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var r,n=0;n<e;++n)c[(r=u[n]).i]=r.x(t);return c.join("")})}function Zv(t,e){var r,n=typeof e;return null==e||"boolean"===n?Lv(e):("number"===n?qv:"string"===n?(r=Sv(e))?(e=r,Fv):Gv:e instanceof Sv?Fv:e instanceof Date?Wv:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?Uv:Array.isArray(e)?Vv:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Xv:qv)(t,e)}function Jv(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function Qv(t,e){void 0===e&&(e=t,t=Zv);for(var r=0,n=e.length-1,i=e[0],o=new Array(n<0?0:n);r<n;)o[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return o[e](t-e)}}function tm(t){return+t}var em=[0,1];function rm(t){return t}function nm(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function im(t,e,r){var n=t[0],i=t[1],o=e[0],a=e[1];return i<n?(n=nm(i,n),o=r(a,o)):(n=nm(n,i),o=r(o,a)),function(t){return o(n(t))}}function om(t,e,r){var n=Math.min(t.length,e.length)-1,i=new Array(n),o=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)i[a]=nm(t[a],t[a+1]),o[a]=r(e[a],e[a+1]);return function(e){var r=Ny(t,e,1,n)-1;return o[r](i[r](e))}}function am(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function cm(){var t,e,r,n,i,o,a=em,c=em,u=Zv,l=rm;function s(){var t=Math.min(a.length,c.length);return l!==rm&&(l=function(t,e){var r;return t>e&&(r=t,t=e,e=r),function(r){return Math.max(t,Math.min(e,r))}}(a[0],a[t-1])),n=t>2?om:im,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?r:(i||(i=n(a.map(t),c,u)))(t(l(e)))}return f.invert=function(r){return l(e((o||(o=n(c,a.map(t),qv)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,tm),s()):a.slice()},f.range=function(t){return arguments.length?(c=Array.from(t),s()):c.slice()},f.rangeRound=function(t){return c=Array.from(t),u=Jv,s()},f.clamp=function(t){return arguments.length?(l=!!t||rm,s()):l!==rm},f.interpolate=function(t){return arguments.length?(u=t,s()):u},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function um(){return cm()(rm,rm)}function lm(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function sm(t){return(t=lm(Math.abs(t)))?t[1]:NaN}var fm,hm=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pm(t){if(!(e=hm.exec(t)))throw new Error("invalid format: "+t);var e;return new dm({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function dm(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function ym(t,e){var r=lm(t,e);if(!r)return t+"";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")}pm.prototype=dm.prototype,dm.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var vm={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>ym(100*t,e),r:ym,s:function(t,e){var r=lm(t,e);if(!r)return t+"";var n=r[0],i=r[1],o=i-(fm=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+lm(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function mm(t){return t}var gm,bm,wm,xm=Array.prototype.map,Om=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Sm(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?mm:(e=xm.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var i=t.length,o=[],a=0,c=e[0],u=0;i>0&&c>0&&(u+c+1>n&&(c=Math.max(1,n-u)),o.push(t.substring(i-=c,i+c)),!((u+=c+1)>n));)c=e[a=(a+1)%e.length];return o.reverse().join(r)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?mm:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(xm.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=pm(t)).fill,r=t.align,f=t.sign,h=t.symbol,p=t.zero,d=t.width,y=t.comma,v=t.precision,m=t.trim,g=t.type;"n"===g?(y=!0,g="g"):vm[g]||(void 0===v&&(v=12),m=!0,g="g"),(p||"0"===e&&"="===r)&&(p=!0,e="0",r="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",w="$"===h?o:/[%p]/.test(g)?u:"",x=vm[g],O=/[defgprs%]/.test(g);function S(t){var i,o,u,h=b,S=w;if("c"===g)S=x(t)+S,t="";else{var j=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:x(Math.abs(t),v),m&&(t=function(t){t:for(var e,r=t.length,n=1,i=-1;n<r;++n)switch(t[n]){case".":i=e=n;break;case"0":0===i&&(i=n),e=n;break;default:if(!+t[n])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),j&&0==+t&&"+"!==f&&(j=!1),h=(j?"("===f?f:l:"-"===f||"("===f?"":f)+h,S=("s"===g?Om[8+fm/3]:"")+S+(j&&"("===f?")":""),O)for(i=-1,o=t.length;++i<o;)if(48>(u=t.charCodeAt(i))||u>57){S=(46===u?a+t.slice(i+1):t.slice(i))+S,t=t.slice(0,i);break}}y&&!p&&(t=n(t,1/0));var A=h.length+t.length+S.length,P=A<d?new Array(d-A+1).join(e):"";switch(y&&p&&(t=n(P+t,P.length?d-S.length:1/0),P=""),r){case"<":t=h+t+S+P;break;case"=":t=h+P+t+S;break;case"^":t=P.slice(0,A=P.length>>1)+h+t+S+P.slice(A);break;default:t=P+h+t+S}return c(t)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return t+""},S}return{format:f,formatPrefix:function(t,e){var r=f(((t=pm(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(sm(e)/3))),i=Math.pow(10,-n),o=Om[8+n/3];return function(t){return r(i*t)+o}}}}function jm(t,e,r,n){var i,o=qy(t,e,r);switch((n=pm(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(sm(e)/3)))-sm(Math.abs(t)))}(o,a))||(n.precision=i),wm(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,sm(e)-sm(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(t){return Math.max(0,-sm(Math.abs(t)))}(o))||(n.precision=i-2*("%"===n.type))}return bm(n)}function Am(t){var e=t.domain;return t.ticks=function(t){var r=e();return Vy(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return jm(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,i,o=e(),a=0,c=o.length-1,u=o[a],l=o[c],s=10;for(l<u&&(i=u,u=l,l=i,i=a,a=c,c=i);s-- >0;){if((i=Wy(u,l,r))===n)return o[a]=u,o[c]=l,e(o);if(i>0)u=Math.floor(u/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,l=Math.floor(l*i)/i}n=i}return t},t}function Pm(){var t=um();return t.copy=function(){return am(t,Pm())},Jy.apply(t,arguments),Am(t)}function Mm(t,e){var r,n=0,i=(t=t.slice()).length-1,o=t[n],a=t[i];return a<o&&(r=n,n=i,i=r,r=o,o=a,a=r),t[n]=e.floor(o),t[i]=e.ceil(a),t}function Em(t){return Math.log(t)}function km(t){return Math.exp(t)}function _m(t){return-Math.log(-t)}function Tm(t){return-Math.exp(-t)}function Cm(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Dm(t){return(e,r)=>-t(-e,r)}function Im(t){const e=t(Em,km),r=e.domain;let n,i,o=10;function a(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(o),i=function(t){return 10===t?Cm:t===Math.E?Math.exp:e=>Math.pow(t,e)}(o),r()[0]<0?(n=Dm(n),i=Dm(i),t(_m,Tm)):t(Em,km),e}return e.base=function(t){return arguments.length?(o=+t,a()):o},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],c=e[e.length-1];const u=c<a;u&&([a,c]=[c,a]);let l,s,f=n(a),h=n(c);const p=null==t?10:+t;let d=[];if(!(o%1)&&h-f<p){if(f=Math.floor(f),h=Math.ceil(h),a>0){for(;f<=h;++f)for(l=1;l<o;++l)if(s=f<0?l/i(-f):l*i(f),!(s<a)){if(s>c)break;d.push(s)}}else for(;f<=h;++f)for(l=o-1;l>=1;--l)if(s=f>0?l/i(-f):l*i(f),!(s<a)){if(s>c)break;d.push(s)}2*d.length<p&&(d=Vy(a,c,p))}else d=Vy(f,h,Math.min(h-f,p)).map(i);return u?d.reverse():d},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===o?"s":","),"function"!=typeof r&&(o%1||null!=(r=pm(r)).precision||(r.trim=!0),r=bm(r)),t===1/0)return r;const a=Math.max(1,o*t/e.ticks().length);return t=>{let e=t/i(Math.round(n(t)));return e*o<o-.5&&(e*=o),e<=a?r(t):""}},e.nice=()=>r(Mm(r(),{floor:t=>i(Math.floor(n(t))),ceil:t=>i(Math.ceil(n(t)))})),e}function Nm(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Bm(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Rm(t){var e=1,r=t(Nm(e),Bm(e));return r.constant=function(r){return arguments.length?t(Nm(e=+r),Bm(e)):e},Am(r)}function $m(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Lm(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function zm(t){return t<0?-t*t:t*t}function Hm(t){var e=t(rm,rm),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(rm,rm):.5===r?t(Lm,zm):t($m(r),$m(1/r)):r},Am(e)}function Fm(){var t=Hm(cm());return t.copy=function(){return am(t,Fm()).exponent(t.exponent())},Jy.apply(t,arguments),t}function Um(t){return Math.sign(t)*t*t}gm=Sm({thousands:",",grouping:[3],currency:["$",""]}),bm=gm.format,wm=gm.formatPrefix;const Vm=new Date,Wm=new Date;function qm(t,e,r,n){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),i.round=t=>{const e=i(t),r=i.ceil(t);return t-e<r-t?e:r},i.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),i.range=(r,n,o)=>{const a=[];if(r=i.ceil(r),o=null==o?1:Math.floor(o),!(r<n&&o>0))return a;let c;do{a.push(c=new Date(+r)),e(r,o),t(r)}while(c<r&&r<n);return a},i.filter=r=>qm((e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)}),((t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););})),r&&(i.count=(e,n)=>(Vm.setTime(+e),Wm.setTime(+n),t(Vm),t(Wm),Math.floor(r(Vm,Wm))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(n?e=>n(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}const Xm=qm((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));Xm.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?qm((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):Xm:null),Xm.range;const Ym=1e3,Km=6e4,Gm=36e5,Zm=864e5,Jm=6048e5,Qm=2592e6,tg=31536e6,eg=qm((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*Ym)}),((t,e)=>(e-t)/Ym),(t=>t.getUTCSeconds()));eg.range;const rg=qm((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ym)}),((t,e)=>{t.setTime(+t+e*Km)}),((t,e)=>(e-t)/Km),(t=>t.getMinutes()));rg.range;const ng=qm((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*Km)}),((t,e)=>(e-t)/Km),(t=>t.getUTCMinutes()));ng.range;const ig=qm((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ym-t.getMinutes()*Km)}),((t,e)=>{t.setTime(+t+e*Gm)}),((t,e)=>(e-t)/Gm),(t=>t.getHours()));ig.range;const og=qm((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*Gm)}),((t,e)=>(e-t)/Gm),(t=>t.getUTCHours()));og.range;const ag=qm((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Km)/Zm),(t=>t.getDate()-1));ag.range;const cg=qm((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Zm),(t=>t.getUTCDate()-1));cg.range;const ug=qm((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Zm),(t=>Math.floor(t/Zm)));function lg(t){return qm((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Km)/Jm))}ug.range;const sg=lg(0),fg=lg(1),hg=lg(2),pg=lg(3),dg=lg(4),yg=lg(5),vg=lg(6);function mg(t){return qm((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Jm))}sg.range,fg.range,hg.range,pg.range,dg.range,yg.range,vg.range;const gg=mg(0),bg=mg(1),wg=mg(2),xg=mg(3),Og=mg(4),Sg=mg(5),jg=mg(6);gg.range,bg.range,wg.range,xg.range,Og.range,Sg.range,jg.range;const Ag=qm((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()));Ag.range;const Pg=qm((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()));Pg.range;const Mg=qm((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear()));Mg.every=t=>isFinite(t=Math.floor(t))&&t>0?qm((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,r)=>{e.setFullYear(e.getFullYear()+r*t)})):null,Mg.range;const Eg=qm((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));function kg(t,e,r,n,i,o){const a=[[eg,1,Ym],[eg,5,5e3],[eg,15,15e3],[eg,30,3e4],[o,1,Km],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,Gm],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,Zm],[n,2,1728e5],[r,1,Jm],[e,1,Qm],[e,3,7776e6],[t,1,tg]];function c(e,r,n){const i=Math.abs(r-e)/n,o=Cy((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(qy(e/tg,r/tg,n));if(0===o)return Xm.every(Math.max(qy(e,r,n),1));const[c,u]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return c.every(u)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const i=r&&"function"==typeof r.range?r:c(t,e,r),o=i?i.range(t,+e+1):[];return n?o.reverse():o},c]}Eg.every=t=>isFinite(t=Math.floor(t))&&t>0?qm((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null,Eg.range;const[_g,Tg]=kg(Eg,Pg,gg,ug,og,ng),[Cg,Dg]=kg(Mg,Ag,sg,ag,ig,rg);function Ig(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Ng(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Bg(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var Rg,$g,Lg,zg={"-":"",_:" ",0:"0"},Hg=/^\s*\d+/,Fg=/^%/,Ug=/[\\^$*+?|[\]().{}]/g;function Vg(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(e)+i:i)}function Wg(t){return t.replace(Ug,"\\$&")}function qg(t){return new RegExp("^(?:"+t.map(Wg).join("|")+")","i")}function Xg(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Yg(t,e,r){var n=Hg.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Kg(t,e,r){var n=Hg.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function Gg(t,e,r){var n=Hg.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function Zg(t,e,r){var n=Hg.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function Jg(t,e,r){var n=Hg.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function Qg(t,e,r){var n=Hg.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function tb(t,e,r){var n=Hg.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function eb(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function rb(t,e,r){var n=Hg.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function nb(t,e,r){var n=Hg.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function ib(t,e,r){var n=Hg.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function ob(t,e,r){var n=Hg.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function ab(t,e,r){var n=Hg.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function cb(t,e,r){var n=Hg.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function ub(t,e,r){var n=Hg.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function lb(t,e,r){var n=Hg.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function sb(t,e,r){var n=Hg.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function fb(t,e,r){var n=Fg.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function hb(t,e,r){var n=Hg.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function pb(t,e,r){var n=Hg.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function db(t,e){return Vg(t.getDate(),e,2)}function yb(t,e){return Vg(t.getHours(),e,2)}function vb(t,e){return Vg(t.getHours()%12||12,e,2)}function mb(t,e){return Vg(1+ag.count(Mg(t),t),e,3)}function gb(t,e){return Vg(t.getMilliseconds(),e,3)}function bb(t,e){return gb(t,e)+"000"}function wb(t,e){return Vg(t.getMonth()+1,e,2)}function xb(t,e){return Vg(t.getMinutes(),e,2)}function Ob(t,e){return Vg(t.getSeconds(),e,2)}function Sb(t){var e=t.getDay();return 0===e?7:e}function jb(t,e){return Vg(sg.count(Mg(t)-1,t),e,2)}function Ab(t){var e=t.getDay();return e>=4||0===e?dg(t):dg.ceil(t)}function Pb(t,e){return t=Ab(t),Vg(dg.count(Mg(t),t)+(4===Mg(t).getDay()),e,2)}function Mb(t){return t.getDay()}function Eb(t,e){return Vg(fg.count(Mg(t)-1,t),e,2)}function kb(t,e){return Vg(t.getFullYear()%100,e,2)}function _b(t,e){return Vg((t=Ab(t)).getFullYear()%100,e,2)}function Tb(t,e){return Vg(t.getFullYear()%1e4,e,4)}function Cb(t,e){var r=t.getDay();return Vg((t=r>=4||0===r?dg(t):dg.ceil(t)).getFullYear()%1e4,e,4)}function Db(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Vg(e/60|0,"0",2)+Vg(e%60,"0",2)}function Ib(t,e){return Vg(t.getUTCDate(),e,2)}function Nb(t,e){return Vg(t.getUTCHours(),e,2)}function Bb(t,e){return Vg(t.getUTCHours()%12||12,e,2)}function Rb(t,e){return Vg(1+cg.count(Eg(t),t),e,3)}function $b(t,e){return Vg(t.getUTCMilliseconds(),e,3)}function Lb(t,e){return $b(t,e)+"000"}function zb(t,e){return Vg(t.getUTCMonth()+1,e,2)}function Hb(t,e){return Vg(t.getUTCMinutes(),e,2)}function Fb(t,e){return Vg(t.getUTCSeconds(),e,2)}function Ub(t){var e=t.getUTCDay();return 0===e?7:e}function Vb(t,e){return Vg(gg.count(Eg(t)-1,t),e,2)}function Wb(t){var e=t.getUTCDay();return e>=4||0===e?Og(t):Og.ceil(t)}function qb(t,e){return t=Wb(t),Vg(Og.count(Eg(t),t)+(4===Eg(t).getUTCDay()),e,2)}function Xb(t){return t.getUTCDay()}function Yb(t,e){return Vg(bg.count(Eg(t)-1,t),e,2)}function Kb(t,e){return Vg(t.getUTCFullYear()%100,e,2)}function Gb(t,e){return Vg((t=Wb(t)).getUTCFullYear()%100,e,2)}function Zb(t,e){return Vg(t.getUTCFullYear()%1e4,e,4)}function Jb(t,e){var r=t.getUTCDay();return Vg((t=r>=4||0===r?Og(t):Og.ceil(t)).getUTCFullYear()%1e4,e,4)}function Qb(){return"+0000"}function tw(){return"%"}function ew(t){return+t}function rw(t){return Math.floor(+t/1e3)}function nw(t){return new Date(t)}function iw(t){return t instanceof Date?+t:+new Date(+t)}function ow(t,e,r,n,i,o,a,c,u,l){var s=um(),f=s.invert,h=s.domain,p=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),g=l("%b %d"),b=l("%B"),w=l("%Y");function x(t){return(u(t)<t?p:c(t)<t?d:a(t)<t?y:o(t)<t?v:n(t)<t?i(t)<t?m:g:r(t)<t?b:w)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?h(Array.from(t,iw)):h().map(nw)},s.ticks=function(e){var r=h();return t(r[0],r[r.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?x:l(e)},s.nice=function(t){var r=h();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?h(Mm(r,t)):s},s.copy=function(){return am(s,ow(t,e,r,n,i,o,a,c,u,l))},s}function aw(){var t,e,r,n,i,o=0,a=1,c=rm,u=!1;function l(e){return null==e||isNaN(e=+e)?i:c(0===r?.5:(e=(n(e)-t)*r,u?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,c=t(r,n),l):[c(0),c(1)]}}return l.domain=function(i){return arguments.length?([o,a]=i,t=n(o=+o),e=n(a=+a),r=t===e?0:1/(e-t),l):[o,a]},l.clamp=function(t){return arguments.length?(u=!!t,l):u},l.interpolator=function(t){return arguments.length?(c=t,l):c},l.range=s(Zv),l.rangeRound=s(Jv),l.unknown=function(t){return arguments.length?(i=t,l):i},function(i){return n=i,t=i(o),e=i(a),r=t===e?0:1/(e-t),l}}function cw(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function uw(){var t=Hm(aw());return t.copy=function(){return cw(t,uw()).exponent(t.exponent())},Qy.apply(t,arguments)}function lw(){var t,e,r,n,i,o,a,c=0,u=.5,l=1,s=1,f=rm,h=!1;function p(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-e)*(s*t<s*e?n:i),f(h?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var r,n,i;return arguments.length?([r,n,i]=e,f=Qv(t,[r,n,i]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([c,u,l]=a,t=o(c=+c),e=o(u=+u),r=o(l=+l),n=t===e?0:.5/(e-t),i=e===r?0:.5/(r-e),s=e<t?-1:1,p):[c,u,l]},p.clamp=function(t){return arguments.length?(h=!!t,p):h},p.interpolator=function(t){return arguments.length?(f=t,p):f},p.range=d(Zv),p.rangeRound=d(Jv),p.unknown=function(t){return arguments.length?(a=t,p):a},function(a){return o=a,t=a(c),e=a(u),r=a(l),n=t===e?0:.5/(e-t),i=e===r?0:.5/(r-e),s=e<t?-1:1,p}}function sw(){var t=Hm(lw());return t.copy=function(){return cw(t,sw()).exponent(t.exponent())},Qy.apply(t,arguments)}!function(t){Rg=function(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,o=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,l=qg(i),s=Xg(i),f=qg(o),h=Xg(o),p=qg(a),d=Xg(a),y=qg(c),v=Xg(c),m=qg(u),g=Xg(u),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:db,e:db,f:bb,g:_b,G:Cb,H:yb,I:vb,j:mb,L:gb,m:wb,M:xb,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ew,s:rw,S:Ob,u:Sb,U:jb,V:Pb,w:Mb,W:Eb,x:null,X:null,y:kb,Y:Tb,Z:Db,"%":tw},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:Ib,e:Ib,f:Lb,g:Gb,G:Jb,H:Nb,I:Bb,j:Rb,L:$b,m:zb,M:Hb,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ew,s:rw,S:Fb,u:Ub,U:Vb,V:qb,w:Xb,W:Yb,x:null,X:null,y:Kb,Y:Zb,Z:Qb,"%":tw},x={a:function(t,e,r){var n=p.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=g.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return j(t,e,r,n)},d:ib,e:ib,f:sb,g:tb,G:Qg,H:ab,I:ab,j:ob,L:lb,m:nb,M:cb,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:rb,Q:hb,s:pb,S:ub,u:Kg,U:Gg,V:Zg,w:Yg,W:Jg,x:function(t,e,n){return j(t,r,e,n)},X:function(t,e,r){return j(t,n,e,r)},y:tb,Y:Qg,Z:eb,"%":fb};function O(t,e){return function(r){var n,i,o,a=[],c=-1,u=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++c<l;)37===t.charCodeAt(c)&&(a.push(t.slice(u,c)),null!=(i=zg[n=t.charAt(++c)])?n=t.charAt(++c):i="e"===n?" ":"0",(o=e[n])&&(n=o(r,i)),a.push(n),u=c+1);return a.push(t.slice(u,c)),a.join("")}}function S(t,e){return function(r){var n,i,o=Bg(1900,void 0,1);if(j(o,t,r+="",0)!=r.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(n=Ng(Bg(o.y,0,1))).getUTCDay(),n=i>4||0===i?bg.ceil(n):bg(n),n=cg.offset(n,7*(o.V-1)),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(i=(n=Ig(Bg(o.y,0,1))).getDay(),n=i>4||0===i?fg.ceil(n):fg(n),n=ag.offset(n,7*(o.V-1)),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Ng(Bg(o.y,0,1)).getUTCDay():Ig(Bg(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Ng(o)):Ig(o)}}function j(t,e,r,n){for(var i,o,a=0,c=e.length,u=r.length;a<c;){if(n>=u)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=x[i in zg?e.charAt(a++):i])||(n=o(t,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return b.x=O(r,b),b.X=O(n,b),b.c=O(e,b),w.x=O(r,w),w.X=O(n,w),w.c=O(e,w),{format:function(t){var e=O(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}(t),$g=Rg.format,Rg.parse,Lg=Rg.utcFormat,Rg.utcParse}({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"]});var fw=Object.freeze({__proto__:null,scaleBand:rv,scaleDiverging:function t(){var e=Am(lw()(rm));return e.copy=function(){return cw(e,t())},Qy.apply(e,arguments)},scaleDivergingLog:function t(){var e=Im(lw()).domain([.1,1,10]);return e.copy=function(){return cw(e,t()).base(e.base())},Qy.apply(e,arguments)},scaleDivergingPow:sw,scaleDivergingSqrt:function(){return sw.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function t(){var e=Rm(lw());return e.copy=function(){return cw(e,t()).constant(e.constant())},Qy.apply(e,arguments)},scaleIdentity:function t(e){var r;function n(t){return null==t||isNaN(t=+t)?r:t}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,tm),n):e.slice()},n.unknown=function(t){return arguments.length?(r=t,n):r},n.copy=function(){return t(e).unknown(r)},e=arguments.length?Array.from(e,tm):[0,1],Am(n)},scaleImplicit:tv,scaleLinear:Pm,scaleLog:function t(){const e=Im(cm()).domain([1,10]);return e.copy=()=>am(e,t()).base(e.base()),Jy.apply(e,arguments),e},scaleOrdinal:ev,scalePoint:iv,scalePow:Fm,scaleQuantile:function t(){var e,r=[],n=[],i=[];function o(){var t=0,e=Math.max(1,n.length);for(i=new Array(e-1);++t<e;)i[t-1]=Zy(r,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:n[Ny(i,t)]}return a.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?i[e-1]:r[0],e<i.length?i[e]:r[r.length-1]]},a.domain=function(t){if(!arguments.length)return r.slice();r=[];for(let e of t)null==e||isNaN(e=+e)||r.push(e);return r.sort(_y),o()},a.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return i.slice()},a.copy=function(){return t().domain(r).range(n).unknown(e)},Jy.apply(a,arguments)},scaleQuantize:function t(){var e,r=0,n=1,i=1,o=[.5],a=[0,1];function c(t){return null!=t&&t<=t?a[Ny(o,t,0,i)]:e}function u(){var t=-1;for(o=new Array(i);++t<i;)o[t]=((t+1)*n-(t-i)*r)/(i+1);return c}return c.domain=function(t){return arguments.length?([r,n]=t,r=+r,n=+n,u()):[r,n]},c.range=function(t){return arguments.length?(i=(a=Array.from(t)).length-1,u()):a.slice()},c.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,o[0]]:e>=i?[o[i-1],n]:[o[e-1],o[e]]},c.unknown=function(t){return arguments.length?(e=t,c):c},c.thresholds=function(){return o.slice()},c.copy=function(){return t().domain([r,n]).range(a).unknown(e)},Jy.apply(Am(c),arguments)},scaleRadial:function t(){var e,r=um(),n=[0,1],i=!1;function o(t){var n=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(r(t));return isNaN(n)?e:i?Math.round(n):n}return o.invert=function(t){return r.invert(Um(t))},o.domain=function(t){return arguments.length?(r.domain(t),o):r.domain()},o.range=function(t){return arguments.length?(r.range((n=Array.from(t,tm)).map(Um)),o):n.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(i=!!t,o):i},o.clamp=function(t){return arguments.length?(r.clamp(t),o):r.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t(r.domain(),n).round(i).clamp(r.clamp()).unknown(e)},Jy.apply(o,arguments),Am(o)},scaleSequential:function t(){var e=Am(aw()(rm));return e.copy=function(){return cw(e,t())},Qy.apply(e,arguments)},scaleSequentialLog:function t(){var e=Im(aw()).domain([1,10]);return e.copy=function(){return cw(e,t()).base(e.base())},Qy.apply(e,arguments)},scaleSequentialPow:uw,scaleSequentialQuantile:function t(){var e=[],r=rm;function n(t){if(null!=t&&!isNaN(t=+t))return r((Ny(e,t,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(_y),n},n.interpolator=function(t){return arguments.length?(r=t,n):r},n.range=function(){return e.map(((t,n)=>r(n/(e.length-1))))},n.quantiles=function(t){return Array.from({length:t+1},((r,n)=>function(t,e,r){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n=+n)>=n&&(yield n)}}(t,r)),(n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return Yy(t);if(e>=1)return Xy(t);var n,i=(n-1)*e,o=Math.floor(i),a=Xy(Ky(t,o).subarray(0,o+1));return a+(Yy(t.subarray(o+1))-a)*(i-o)}}(e,n/t)))},n.copy=function(){return t(r).domain(e)},Qy.apply(n,arguments)},scaleSequentialSqrt:function(){return uw.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function t(){var e=Rm(aw());return e.copy=function(){return cw(e,t()).constant(e.constant())},Qy.apply(e,arguments)},scaleSqrt:function(){return Fm.apply(null,arguments).exponent(.5)},scaleSymlog:function t(){var e=Rm(cm());return e.copy=function(){return am(e,t()).constant(e.constant())},Jy.apply(e,arguments)},scaleThreshold:function t(){var e,r=[.5],n=[0,1],i=1;function o(t){return null!=t&&t<=t?n[Ny(r,t,0,i)]:e}return o.domain=function(t){return arguments.length?(r=Array.from(t),i=Math.min(r.length,n.length-1),o):r.slice()},o.range=function(t){return arguments.length?(n=Array.from(t),i=Math.min(r.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t().domain(r).range(n).unknown(e)},Jy.apply(o,arguments)},scaleTime:function(){return Jy.apply(ow(Cg,Dg,Mg,Ag,sg,ag,ig,rg,eg,$g).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return Jy.apply(ow(_g,Tg,Eg,Pg,gg,cg,og,ng,eg,Lg).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:jm}),hw=cn;var pw=function(t,e,r){for(var n=-1,i=t.length;++n<i;){var o=t[n],a=e(o);if(null!=a&&(void 0===c?a==a&&!hw(a):r(a,c)))var c=a,u=o}return u};var dw=pw,yw=function(t,e){return t>e},vw=Cf;var mw=function(t){return t&&t.length?dw(t,vw,yw):void 0},gw=Qe(mw);var bw=pw,ww=function(t,e){return t<e},xw=Cf;var Ow=function(t){return t&&t.length?bw(t,xw,ww):void 0},Sw=Qe(Ow),jw=Vi,Aw=Wf,Pw=Wh,Mw=zr;var Ew=Bh,kw=function(t,e){return(Mw(t)?jw:Pw)(t,Aw(e))};var _w=Qe((function(t,e){return Ew(kw(t,e),1)})),Tw=Js;var Cw,Dw=Qe((function(t,e){return Tw(t,e)})),Iw=1e9,Nw=!0,Bw="[DecimalError] ",Rw=Bw+"Invalid argument: ",$w=Bw+"Exponent out of range: ",Lw=Math.floor,zw=Math.pow,Hw=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Fw=1e7,Uw=7,Vw=9007199254740991,Ww=Lw(Vw/Uw),qw={};function Xw(t,e){var r,n,i,o,a,c,u,l,s=t.constructor,f=s.precision;if(!t.s||!e.s)return e.s||(e=new s(t)),Nw?nx(e,f):e;if(u=t.d,l=e.d,a=t.e,i=e.e,u=u.slice(),o=a-i){for(o<0?(n=u,o=-o,c=l.length):(n=l,i=a,c=u.length),o>(c=(a=Math.ceil(f/Uw))>c?a+1:c+1)&&(o=c,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((c=u.length)-(o=l.length)<0&&(o=c,n=l,l=u,u=n),r=0;o;)r=(u[--o]=u[o]+l[o]+r)/Fw|0,u[o]%=Fw;for(r&&(u.unshift(r),++i),c=u.length;0==u[--c];)u.pop();return e.d=u,e.e=i,Nw?nx(e,f):e}function Yw(t,e,r){if(t!==~~t||t<e||t>r)throw Error(Rw+t)}function Kw(t){var e,r,n,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)n=t[e]+"",(r=Uw-n.length)&&(o+=tx(r)),o+=n;a=t[e],(r=Uw-(n=a+"").length)&&(o+=tx(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}qw.absoluteValue=qw.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},qw.comparedTo=qw.cmp=function(t){var e,r,n,i,o=this;if(t=new o.constructor(t),o.s!==t.s)return o.s||-t.s;if(o.e!==t.e)return o.e>t.e^o.s<0?1:-1;for(e=0,r=(n=o.d.length)<(i=t.d.length)?n:i;e<r;++e)if(o.d[e]!==t.d[e])return o.d[e]>t.d[e]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1},qw.decimalPlaces=qw.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*Uw;if(e=t.d[e])for(;e%10==0;e/=10)r--;return r<0?0:r},qw.dividedBy=qw.div=function(t){return Gw(this,new this.constructor(t))},qw.dividedToIntegerBy=qw.idiv=function(t){var e=this.constructor;return nx(Gw(this,new e(t),0,1),e.precision)},qw.equals=qw.eq=function(t){return!this.cmp(t)},qw.exponent=function(){return Jw(this)},qw.greaterThan=qw.gt=function(t){return this.cmp(t)>0},qw.greaterThanOrEqualTo=qw.gte=function(t){return this.cmp(t)>=0},qw.isInteger=qw.isint=function(){return this.e>this.d.length-2},qw.isNegative=qw.isneg=function(){return this.s<0},qw.isPositive=qw.ispos=function(){return this.s>0},qw.isZero=function(){return 0===this.s},qw.lessThan=qw.lt=function(t){return this.cmp(t)<0},qw.lessThanOrEqualTo=qw.lte=function(t){return this.cmp(t)<1},qw.logarithm=qw.log=function(t){var e,r=this,n=r.constructor,i=n.precision,o=i+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(Cw))throw Error(Bw+"NaN");if(r.s<1)throw Error(Bw+(r.s?"NaN":"-Infinity"));return r.eq(Cw)?new n(0):(Nw=!1,e=Gw(ex(r,o),ex(t,o),o),Nw=!0,nx(e,i))},qw.minus=qw.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?ix(e,t):Xw(e,(t.s=-t.s,t))},qw.modulo=qw.mod=function(t){var e,r=this,n=r.constructor,i=n.precision;if(!(t=new n(t)).s)throw Error(Bw+"NaN");return r.s?(Nw=!1,e=Gw(r,t,0,1).times(t),Nw=!0,r.minus(e)):nx(new n(r),i)},qw.naturalExponential=qw.exp=function(){return Zw(this)},qw.naturalLogarithm=qw.ln=function(){return ex(this)},qw.negated=qw.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},qw.plus=qw.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?Xw(e,t):ix(e,(t.s=-t.s,t))},qw.precision=qw.sd=function(t){var e,r,n,i=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(Rw+t);if(e=Jw(i)+1,r=(n=i.d.length-1)*Uw+1,n=i.d[n]){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},qw.squareRoot=qw.sqrt=function(){var t,e,r,n,i,o,a,c=this,u=c.constructor;if(c.s<1){if(!c.s)return new u(0);throw Error(Bw+"NaN")}for(t=Jw(c),Nw=!1,0==(i=Math.sqrt(+c))||i==1/0?(((e=Kw(c.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=Lw((t+1)/2)-(t<0||t%2),n=new u(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new u(i.toString()),i=a=(r=u.precision)+3;;)if(n=(o=n).plus(Gw(c,o,a+2)).times(.5),Kw(o.d).slice(0,a)===(e=Kw(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(nx(o,r+1,0),o.times(o).eq(c)){n=o;break}}else if("9999"!=e)break;a+=4}return Nw=!0,nx(n,r)},qw.times=qw.mul=function(t){var e,r,n,i,o,a,c,u,l,s=this,f=s.constructor,h=s.d,p=(t=new f(t)).d;if(!s.s||!t.s)return new f(0);for(t.s*=s.s,r=s.e+t.e,(u=h.length)<(l=p.length)&&(o=h,h=p,p=o,a=u,u=l,l=a),o=[],n=a=u+l;n--;)o.push(0);for(n=l;--n>=0;){for(e=0,i=u+n;i>n;)c=o[i]+p[n]*h[i-n-1]+e,o[i--]=c%Fw|0,e=c/Fw|0;o[i]=(o[i]+e)%Fw|0}for(;!o[--a];)o.pop();return e?++r:o.shift(),t.d=o,t.e=r,Nw?nx(t,f.precision):t},qw.toDecimalPlaces=qw.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(Yw(t,0,Iw),void 0===e?e=n.rounding:Yw(e,0,8),nx(r,t+Jw(r)+1,e))},qw.toExponential=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=ox(n,!0):(Yw(t,0,Iw),void 0===e?e=i.rounding:Yw(e,0,8),r=ox(n=nx(new i(n),t+1,e),!0,t+1)),r},qw.toFixed=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?ox(i):(Yw(t,0,Iw),void 0===e?e=o.rounding:Yw(e,0,8),r=ox((n=nx(new o(i),t+Jw(i)+1,e)).abs(),!1,t+Jw(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},qw.toInteger=qw.toint=function(){var t=this,e=t.constructor;return nx(new e(t),Jw(t)+1,e.rounding)},qw.toNumber=function(){return+this},qw.toPower=qw.pow=function(t){var e,r,n,i,o,a,c=this,u=c.constructor,l=+(t=new u(t));if(!t.s)return new u(Cw);if(!(c=new u(c)).s){if(t.s<1)throw Error(Bw+"Infinity");return c}if(c.eq(Cw))return c;if(n=u.precision,t.eq(Cw))return nx(c,n);if(a=(e=t.e)>=(r=t.d.length-1),o=c.s,a){if((r=l<0?-l:l)<=Vw){for(i=new u(Cw),e=Math.ceil(n/Uw+4),Nw=!1;r%2&&ax((i=i.times(c)).d,e),0!==(r=Lw(r/2));)ax((c=c.times(c)).d,e);return Nw=!0,t.s<0?new u(Cw).div(i):nx(i,n)}}else if(o<0)throw Error(Bw+"NaN");return o=o<0&&1&t.d[Math.max(e,r)]?-1:1,c.s=1,Nw=!1,i=t.times(ex(c,n+12)),Nw=!0,(i=Zw(i)).s=o,i},qw.toPrecision=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?n=ox(i,(r=Jw(i))<=o.toExpNeg||r>=o.toExpPos):(Yw(t,1,Iw),void 0===e?e=o.rounding:Yw(e,0,8),n=ox(i=nx(new o(i),t,e),t<=(r=Jw(i))||r<=o.toExpNeg,t)),n},qw.toSignificantDigits=qw.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(Yw(t,1,Iw),void 0===e?e=r.rounding:Yw(e,0,8)),nx(new r(this),t,e)},qw.toString=qw.valueOf=qw.val=qw.toJSON=qw[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=Jw(t),r=t.constructor;return ox(t,e<=r.toExpNeg||e>=r.toExpPos)};var Gw=function(){function t(t,e){var r,n=0,i=t.length;for(t=t.slice();i--;)r=t[i]*e+n,t[i]=r%Fw|0,n=r/Fw|0;return n&&t.unshift(n),t}function e(t,e,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]<e[r]?1:0,t[r]=n*Fw+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,i,o,a){var c,u,l,s,f,h,p,d,y,v,m,g,b,w,x,O,S,j,A=n.constructor,P=n.s==i.s?1:-1,M=n.d,E=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(Bw+"Division by zero");for(u=n.e-i.e,S=E.length,x=M.length,d=(p=new A(P)).d=[],l=0;E[l]==(M[l]||0);)++l;if(E[l]>(M[l]||0)&&--u,(g=null==o?o=A.precision:a?o+(Jw(n)-Jw(i))+1:o)<0)return new A(0);if(g=g/Uw+2|0,l=0,1==S)for(s=0,E=E[0],g++;(l<x||s)&&g--;l++)b=s*Fw+(M[l]||0),d[l]=b/E|0,s=b%E|0;else{for((s=Fw/(E[0]+1)|0)>1&&(E=t(E,s),M=t(M,s),S=E.length,x=M.length),w=S,v=(y=M.slice(0,S)).length;v<S;)y[v++]=0;(j=E.slice()).unshift(0),O=E[0],E[1]>=Fw/2&&++O;do{s=0,(c=e(E,y,S,v))<0?(m=y[0],S!=v&&(m=m*Fw+(y[1]||0)),(s=m/O|0)>1?(s>=Fw&&(s=Fw-1),1==(c=e(f=t(E,s),y,h=f.length,v=y.length))&&(s--,r(f,S<h?j:E,h))):(0==s&&(c=s=1),f=E.slice()),(h=f.length)<v&&f.unshift(0),r(y,f,v),-1==c&&(c=e(E,y,S,v=y.length))<1&&(s++,r(y,S<v?j:E,v)),v=y.length):0===c&&(s++,y=[0]),d[l++]=s,c&&y[0]?y[v++]=M[w]||0:(y=[M[w]],v=1)}while((w++<x||void 0!==y[0])&&g--)}return d[0]||d.shift(),p.e=u,nx(p,a?o+Jw(p)+1:o)}}();function Zw(t,e){var r,n,i,o,a,c=0,u=0,l=t.constructor,s=l.precision;if(Jw(t)>16)throw Error($w+Jw(t));if(!t.s)return new l(Cw);for(null==e?(Nw=!1,a=s):a=e,o=new l(.03125);t.abs().gte(.1);)t=t.times(o),u+=5;for(a+=Math.log(zw(2,u))/Math.LN10*2+5|0,r=n=i=new l(Cw),l.precision=a;;){if(n=nx(n.times(t),a),r=r.times(++c),Kw((o=i.plus(Gw(n,r,a))).d).slice(0,a)===Kw(i.d).slice(0,a)){for(;u--;)i=nx(i.times(i),a);return l.precision=s,null==e?(Nw=!0,nx(i,s)):i}i=o}}function Jw(t){for(var e=t.e*Uw,r=t.d[0];r>=10;r/=10)e++;return e}function Qw(t,e,r){if(e>t.LN10.sd())throw Nw=!0,r&&(t.precision=r),Error(Bw+"LN10 precision limit exceeded");return nx(new t(t.LN10),e)}function tx(t){for(var e="";t--;)e+="0";return e}function ex(t,e){var r,n,i,o,a,c,u,l,s,f=1,h=t,p=h.d,d=h.constructor,y=d.precision;if(h.s<1)throw Error(Bw+(h.s?"NaN":"-Infinity"));if(h.eq(Cw))return new d(0);if(null==e?(Nw=!1,l=y):l=e,h.eq(10))return null==e&&(Nw=!0),Qw(d,l);if(l+=10,d.precision=l,n=(r=Kw(p)).charAt(0),o=Jw(h),!(Math.abs(o)<15e14))return u=Qw(d,l+2,y).times(o+""),h=ex(new d(n+"."+r.slice(1)),l-10).plus(u),d.precision=y,null==e?(Nw=!0,nx(h,y)):h;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=Kw((h=h.times(t)).d)).charAt(0),f++;for(o=Jw(h),n>1?(h=new d("0."+r),o++):h=new d(n+"."+r.slice(1)),c=a=h=Gw(h.minus(Cw),h.plus(Cw),l),s=nx(h.times(h),l),i=3;;){if(a=nx(a.times(s),l),Kw((u=c.plus(Gw(a,new d(i),l))).d).slice(0,l)===Kw(c.d).slice(0,l))return c=c.times(2),0!==o&&(c=c.plus(Qw(d,l+2,y).times(o+""))),c=Gw(c,new d(f),l),d.precision=y,null==e?(Nw=!0,nx(c,y)):c;c=u,i+=2}}function rx(t,e){var r,n,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(n,i)){if(i-=n,r=r-n-1,t.e=Lw(r/Uw),t.d=[],n=(r+1)%Uw,r<0&&(n+=Uw),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=Uw;n<i;)t.d.push(+e.slice(n,n+=Uw));e=e.slice(n),n=Uw-e.length}else n-=i;for(;n--;)e+="0";if(t.d.push(+e),Nw&&(t.e>Ww||t.e<-Ww))throw Error($w+r)}else t.s=0,t.e=0,t.d=[0];return t}function nx(t,e,r){var n,i,o,a,c,u,l,s,f=t.d;for(a=1,o=f[0];o>=10;o/=10)a++;if((n=e-a)<0)n+=Uw,i=e,l=f[s=0];else{if((s=Math.ceil((n+1)/Uw))>=(o=f.length))return t;for(l=o=f[s],a=1;o>=10;o/=10)a++;i=(n%=Uw)-Uw+a}if(void 0!==r&&(c=l/(o=zw(10,a-i-1))%10|0,u=e<0||void 0!==f[s+1]||l%o,u=r<4?(c||u)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||u||6==r&&(n>0?i>0?l/zw(10,a-i):0:f[s-1])%10&1||r==(t.s<0?8:7))),e<1||!f[0])return u?(o=Jw(t),f.length=1,e=e-o-1,f[0]=zw(10,(Uw-e%Uw)%Uw),t.e=Lw(-e/Uw)||0):(f.length=1,f[0]=t.e=t.s=0),t;if(0==n?(f.length=s,o=1,s--):(f.length=s+1,o=zw(10,Uw-n),f[s]=i>0?(l/zw(10,a-i)%zw(10,i)|0)*o:0),u)for(;;){if(0==s){(f[0]+=o)==Fw&&(f[0]=1,++t.e);break}if(f[s]+=o,f[s]!=Fw)break;f[s--]=0,o=1}for(n=f.length;0===f[--n];)f.pop();if(Nw&&(t.e>Ww||t.e<-Ww))throw Error($w+Jw(t));return t}function ix(t,e){var r,n,i,o,a,c,u,l,s,f,h=t.constructor,p=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),Nw?nx(e,p):e;if(u=t.d,f=e.d,n=e.e,l=t.e,u=u.slice(),a=l-n){for((s=a<0)?(r=u,a=-a,c=f.length):(r=f,n=l,c=u.length),a>(i=Math.max(Math.ceil(p/Uw),c)+2)&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for((s=(i=u.length)<(c=f.length))&&(c=i),i=0;i<c;i++)if(u[i]!=f[i]){s=u[i]<f[i];break}a=0}for(s&&(r=u,u=f,f=r,e.s=-e.s),c=u.length,i=f.length-c;i>0;--i)u[c++]=0;for(i=f.length;i>a;){if(u[--i]<f[i]){for(o=i;o&&0===u[--o];)u[o]=Fw-1;--u[o],u[i]+=Fw}u[i]-=f[i]}for(;0===u[--c];)u.pop();for(;0===u[0];u.shift())--n;return u[0]?(e.d=u,e.e=n,Nw?nx(e,p):e):new h(0)}function ox(t,e,r){var n,i=Jw(t),o=Kw(t.d),a=o.length;return e?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+tx(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+tx(-i-1)+o,r&&(n=r-a)>0&&(o+=tx(n))):i>=a?(o+=tx(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+tx(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=tx(n))),t.s<0?"-"+o:o}function ax(t,e){if(t.length>e)return t.length=e,!0}function cx(t){if(!t||"object"!=typeof t)throw Error(Bw+"Object expected");var e,r,n,i=["precision",1,Iw,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if(void 0!==(n=t[r=i[e]])){if(!(Lw(n)===n&&n>=i[e+1]&&n<=i[e+2]))throw Error(Rw+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(Rw+r+": "+n);this[r]=new this(n)}return this}var ux=function t(e){var r,n,i;function o(t){var e=this;if(!(e instanceof o))return new o(t);if(e.constructor=o,t instanceof o)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(Rw+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):rx(e,t.toString())}if("string"!=typeof t)throw Error(Rw+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!Hw.test(t))throw Error(Rw+t);rx(e,t)}if(o.prototype=qw,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=t,o.config=o.set=cx,void 0===e&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<i.length;)e.hasOwnProperty(n=i[r++])||(e[n]=this[n]);return o.config(e),o}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});Cw=new ux(1);var lx=ux;function sx(t){return function(t){if(Array.isArray(t))return fx(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return fx(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fx(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var hx=function(t){return t},px={"@@functional/placeholder":!0},dx=function(t){return t===px},yx=function(t){return function e(){return 0===arguments.length||1===arguments.length&&dx(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},vx=function t(e,r){return 1===e?r:yx((function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.filter((function(t){return t!==px})).length;return a>=e?r.apply(void 0,i):t(e-a,yx((function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=i.map((function(t){return dx(t)?e.shift():t}));return r.apply(void 0,sx(o).concat(e))})))}))},mx=function(t){return vx(t.length,t)},gx=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},bx=mx((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),wx=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return hx;var n=e.reverse(),i=n[0],o=n.slice(1);return function(){return o.reduce((function(t,e){return e(t)}),i.apply(void 0,arguments))}},xx=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Ox=function(t){var e=null,r=null;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return e&&i.every((function(t,r){return t===e[r]}))?r:(e=i,r=t.apply(void 0,i))}};var Sx=mx((function(t,e,r){var n=+t;return n+r*(+e-n)})),jx=mx((function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)})),Ax=mx((function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))})),Px={rangeStep:function(t,e,r){for(var n=new lx(t),i=0,o=[];n.lt(e)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o},getDigitCount:function(t){return 0===t?1:Math.floor(new lx(t).abs().log(10).toNumber())+1},interpolateNumber:Sx,uninterpolateNumber:jx,uninterpolateTruncation:Ax};function Mx(t){return function(t){if(Array.isArray(t))return _x(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||kx(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ex(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(t,e)||kx(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kx(t,e){if(t){if("string"==typeof t)return _x(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_x(t,e):void 0}}function _x(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Tx(t){var e=Ex(t,2),r=e[0],n=e[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function Cx(t,e,r){if(t.lte(0))return new lx(0);var n=Px.getDigitCount(t.toNumber()),i=new lx(10).pow(n),o=t.div(i),a=1!==n?.05:.1,c=new lx(Math.ceil(o.div(a).toNumber())).add(r).mul(a).mul(i);return e?c:new lx(Math.ceil(c))}function Dx(t,e,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new lx(0),tickMin:new lx(0),tickMax:new lx(0)};var o,a=Cx(new lx(e).sub(t).div(r-1),n,i);o=t<=0&&e>=0?new lx(0):(o=new lx(t).add(e).div(2)).sub(new lx(o).mod(a));var c=Math.ceil(o.sub(t).div(a).toNumber()),u=Math.ceil(new lx(e).sub(o).div(a).toNumber()),l=c+u+1;return l>r?Dx(t,e,r,n,i+1):(l<r&&(u=e>0?u+(r-l):u,c=e>0?c:c+(r-l)),{step:a,tickMin:o.sub(new lx(c).mul(a)),tickMax:o.add(new lx(u).mul(a))})}var Ix=Ox((function(t){var e=Ex(t,2),r=e[0],n=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),c=Ex(Tx([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(Mx(gx(0,i-1).map((function(){return 1/0})))):[].concat(Mx(gx(0,i-1).map((function(){return-1/0}))),[l]);return r>n?xx(s):s}if(u===l)return function(t,e,r){var n=1,i=new lx(t);if(!i.isint()&&r){var o=Math.abs(t);o<1?(n=new lx(10).pow(Px.getDigitCount(t)-1),i=new lx(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new lx(Math.floor(t)))}else 0===t?i=new lx(Math.floor((e-1)/2)):r||(i=new lx(Math.floor(t)));var a=Math.floor((e-1)/2);return wx(bx((function(t){return i.add(new lx(t-a).mul(n)).toNumber()})),gx)(0,e)}(u,i,o);var f=Dx(u,l,a,o),h=f.step,p=f.tickMin,d=f.tickMax,y=Px.rangeStep(p,d.add(new lx(.1).mul(h)),h);return r>n?xx(y):y})),Nx=Ox((function(t,e){var r=Ex(t,2),n=r[0],i=r[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Ex(Tx([n,i]),2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[n,i];if(c===u)return[c];var l=Math.max(e,2),s=Cx(new lx(u).sub(c).div(l-1),o,0),f=[].concat(Mx(Px.rangeStep(new lx(c),new lx(u).sub(new lx(.99).mul(s)),s)),[u]);return n>i?xx(f):f})),Bx="production"===process.env.NODE_ENV,Rx="Invariant failed";function $x(t,e){if(!t){if(Bx)throw new Error(Rx);var r="function"==typeof e?e():e,n=r?"".concat(Rx,": ").concat(r):Rx;throw new Error(n)}}var Lx=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function zx(){return zx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},zx.apply(this,arguments)}function Hx(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Fx(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fx(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ux(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Vx(t){var e=t.offset,r=t.layout,n=t.width,i=t.dataKey,o=t.data,a=t.dataPointFormatter,c=t.xAxis,u=t.yAxis,l=Ux(t,Lx),s=ua(l,!1);"x"===t.direction&&"number"!==c.type&&("production"!==process.env.NODE_ENV?$x(!1,'ErrorBar requires Axis type property to be "number".'):$x(!1));var f=o.map((function(t){var o=a(t,i),l=o.x,f=o.y,h=o.value,p=o.errorVal;if(!p)return null;var d,y,v=[];if(Array.isArray(p)){var m=Hx(p,2);d=m[0],y=m[1]}else d=y=p;if("vertical"===r){var g=c.scale,b=f+e,w=b+n,x=b-n,O=g(h-d),S=g(h+y);v.push({x1:S,y1:w,x2:S,y2:x}),v.push({x1:O,y1:b,x2:S,y2:b}),v.push({x1:O,y1:w,x2:O,y2:x})}else if("horizontal"===r){var j=u.scale,A=l+e,P=A-n,M=A+n,E=j(h-d),k=j(h+y);v.push({x1:P,y1:k,x2:M,y2:k}),v.push({x1:A,y1:E,x2:A,y2:k}),v.push({x1:P,y1:E,x2:M,y2:E})}return Y.createElement(ba,zx({className:"recharts-errorBar",key:"bar-".concat(v.map((function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)})))},s),v.map((function(t){return Y.createElement("line",zx({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))})))}));return Y.createElement(ba,{className:"recharts-errorBars"},f)}function Wx(t){return Wx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wx(t)}function qx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qx(Object(r),!0).forEach((function(e){Yx(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qx(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Yx(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Wx(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Wx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Wx(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Vx.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},Vx.displayName="ErrorBar";var Kx=function(t){var e,r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=ia(r,_h);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(n||[]).reduce((function(t,e){var r=e.item,n=e.props,i=n.sectors||n.data||[];return t.concat(i.map((function(t){return{type:a.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(n||[]).map((function(t){var e=t.item,r=e.props,n=r.dataKey,i=r.name,o=r.legendType;return{inactive:r.hide,dataKey:n,type:a.props.iconType||o||"square",color:iO(e),value:i||n,payload:e.props}})),Xx(Xx(Xx({},a.props),_h.getWithHeight(a,i)),{},{payload:e,item:a})):null};function Gx(t){return Gx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gx(t)}function Zx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Jx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zx(Object(r),!0).forEach((function(e){Qx(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zx(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Qx(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Gx(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Gx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Gx(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tO(t){return function(t){if(Array.isArray(t))return eO(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return eO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eO(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function rO(t,e,r){return ho(t)||ho(e)?r:Do(e)?fo(t,e,r):bn(e)?e(t):r}function nO(t,e,r,n){var i=_w(t,(function(t){return rO(t,e)}));if("number"===r){var o=i.filter((function(t){return Co(t)||parseFloat(t)}));return o.length?[Sw(o),gw(o)]:[1/0,-1/0]}return(n?i.filter((function(t){return!ho(t)})):i).map((function(t){return Do(t)||t instanceof Date?t:""}))}var iO=function(t){var e,r=t.type.displayName,n=t.props,i=n.stroke,o=n.fill;switch(r){case"Line":e=i;break;case"Area":case"Radar":e=i&&"none"!==i?i:o;break;default:e=o}return e},oO=function(t,e,r,n,i){var o=na(e.props.children,Vx).filter((function(t){return function(t,e,r){return!!ho(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===r?"xAxis"===e:"y"!==r||"yAxis"===e)}(n,i,t.props.direction)}));if(o&&o.length){var a=o.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var n=rO(e,r,0),i=Array.isArray(n)?[Sw(n),gw(n)]:[n,n],o=a.reduce((function(t,r){var n=rO(e,r,0),o=i[0]-Math.abs(Array.isArray(n)?n[0]:n),a=i[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(o,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]}),[1/0,-1/0])}return null},aO=function(t,e,r,n,i){var o=e.map((function(e){var o=e.props.dataKey;return"number"===r&&o&&oO(t,e,o,n)||nO(t,o,r,i)}));if("number"===r)return o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return o.reduce((function(t,e){for(var r=0,n=e.length;r<n;r++)a[e[r]]||(a[e[r]]=!0,t.push(e[r]));return t}),[])},cO=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},uO=function(t,e,r){if(!t)return null;var n=t.scale,i=t.duplicateDomain,o=t.type,a=t.range,c="scaleBand"===t.realScaleType?n.bandwidth()/2:2,u=(e||r)&&"category"===o&&n.bandwidth?n.bandwidth()/c:0;return u="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*_o(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=i?i.indexOf(t):t;return{coordinate:n(e)+u,value:t,offset:u}})).filter((function(t){return!ko(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:n(t)+u,value:t,index:e,offset:u}})):n.ticks&&!r?n.ticks(t.tickCount).map((function(t){return{coordinate:n(t)+u,value:t,offset:u}})):n.domain().map((function(t,e){return{coordinate:n(t)+u,value:i?i[t]:t,index:e,offset:u}}))},lO=new WeakMap,sO=function(t,e){if("function"!=typeof e)return t;lO.has(t)||lO.set(t,new WeakMap);var r=lO.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},fO=1e-4,hO={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var i=0,o=0,a=0;a<e;++a){var c=ko(t[a][r][1])?t[a][r][0]:t[a][r][1];c>=0?(t[a][r][0]=i,t[a][r][1]=i+c,i=t[a][r][1]):(t[a][r][0]=o,t[a][r][1]=o+c,o=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,i,o=0,a=t[0].length;o<a;++o){for(i=r=0;r<n;++r)i+=t[r][o][1]||0;if(i)for(r=0;r<n;++r)t[r][o][1]/=i}Zc(t,e)}},none:Zc,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,i=t[e[0]],o=i.length;n<o;++n){for(var a=0,c=0;a<r;++a)c+=t[a][n][1]||0;i[n][1]+=i[n][0]=-c/2}Zc(t,e)}},wiggle:function(t,e){if((i=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,i,o=0,a=1;a<n;++a){for(var c=0,u=0,l=0;c<i;++c){for(var s=t[e[c]],f=s[a][1]||0,h=(f-(s[a-1][1]||0))/2,p=0;p<c;++p){var d=t[e[p]];h+=(d[a][1]||0)-(d[a-1][1]||0)}u+=f,l+=h*f}r[a-1][1]+=r[a-1][0]=o,u&&(o-=l/u)}r[a-1][1]+=r[a-1][0]=o,Zc(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var i=0,o=0;o<e;++o){var a=ko(t[o][r][1])?t[o][r][0]:t[o][r][1];a>=0?(t[o][r][0]=i,t[o][r][1]=i+a,i=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}}},pO=function(t,e,r){var n=e.map((function(t){return t.props.dataKey})),i=hO[r],o=function(){var t=Za([]),e=Jc,r=Zc,n=Qc;function i(i){var o,a,c=Array.from(t.apply(this,arguments),tu),u=c.length,l=-1;for(const t of i)for(o=0,++l;o<u;++o)(c[o][l]=[0,+n(t,c[o].key,l,i)]).data=t;for(o=0,a=sc(e(c));o<u;++o)c[a[o]].index=o;return r(c,a),c}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:Za(Array.from(e)),i):t},i.value=function(t){return arguments.length?(n="function"==typeof t?t:Za(+t),i):n},i.order=function(t){return arguments.length?(e=null==t?Jc:"function"==typeof t?t:Za(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(r=null==t?Zc:t,i):r},i}().keys(n).value((function(t,e){return+rO(t,e,0)})).order(Jc).offset(i);return o(t)};function dO(t){var e=t.axis,r=t.ticks,n=t.bandSize,i=t.entry,o=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!ho(i[e.dataKey])){var c=Lo(r,"value",i[e.dataKey]);if(c)return c.coordinate+n/2}return r[o]?r[o].coordinate+n/2:null}var u=rO(i,ho(a)?e.dataKey:a);return ho(u)?null:e.scale(u)}var yO=function(t){var e=t.axis,r=t.ticks,n=t.offset,i=t.bandSize,o=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var c=rO(o,e.dataKey,e.domain[a]);return ho(c)?null:e.scale(c)-i/2+n},vO=function(t,e,r){return Object.keys(t).reduce((function(n,i){var o=t[i].stackedData.reduce((function(t,n){var i=n.slice(e,r+1).reduce((function(t,e){return[Sw(e.concat([t[0]]).filter(Co)),gw(e.concat([t[1]]).filter(Co))]}),[1/0,-1/0]);return[Math.min(t[0],i[0]),Math.max(t[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],n[0]),Math.max(o[1],n[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},mO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,gO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,bO=function(t,e,r){if(bn(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(Co(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(mO.test(t[0])){var i=+mO.exec(t[0])[1];n[0]=e[0]-i}else bn(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(Co(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(gO.test(t[1])){var o=+gO.exec(t[1])[1];n[1]=e[1]+o}else bn(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},wO=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var i=kp(e,(function(t){return t.coordinate})),o=1/0,a=1,c=i.length;a<c;a++){var u=i[a],l=i[a-1];o=Math.min((u.coordinate||0)-(l.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},xO=function(t,e,r){return t&&t.length?Dw(t,fo(r,"type.defaultProps.domain"))?e:t:e},OO=function(t,e){var r=t.props,n=r.dataKey,i=r.name,o=r.unit,a=r.formatter,c=r.tooltipType,u=r.chartType,l=r.hide;return Jx(Jx({},ua(t,!1)),{},{dataKey:n,unit:o,formatter:a,name:i||n,color:iO(t),value:rO(e,n),type:c,payload:e,chartType:u,hide:l})};function SO(t){return SO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},SO(t)}function jO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function AO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jO(Object(r),!0).forEach((function(e){PO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function PO(t,e,r){return e=function(t){var e=function(t,e){if("object"!=SO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=SO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==SO(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var MO=Math.PI/180,EO=function(t){return 180*t/Math.PI},kO=function(t,e,r,n){return{x:t+Math.cos(-MO*n)*r,y:e+Math.sin(-MO*n)*r}},_O=function(t,e){var r=t.x,n=t.y,i=e.cx,o=e.cy,a=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(n-o,2))}({x:r,y:n},{x:i,y:o});if(a<=0)return{radius:a};var c=(r-i)/a,u=Math.acos(c);return n>o&&(u=2*Math.PI-u),{radius:a,angle:EO(u),angleInRadian:u}},TO=function(t,e){var r=e.startAngle,n=e.endAngle,i=Math.floor(r/360),o=Math.floor(n/360);return t+360*Math.min(i,o)},CO=function(t,e){var r=t.x,n=t.y,i=_O({x:r,y:n},e),o=i.radius,a=i.angle,c=e.innerRadius,u=e.outerRadius;if(o<c||o>u)return!1;if(0===o)return!0;var l,s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.floor(e/360),i=Math.floor(r/360),o=Math.min(n,i);return{startAngle:e-360*o,endAngle:r-360*o}}(e),f=s.startAngle,h=s.endAngle,p=a;if(f<=h){for(;p>h;)p-=360;for(;p<f;)p+=360;l=p>=f&&p<=h}else{for(;p>f;)p-=360;for(;p<h;)p+=360;l=p>=h&&p<=f}return l?AO(AO({},e),{},{radius:o,angle:TO(p,e)}):null};function DO(t){return DO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},DO(t)}var IO=["offset"];function NO(t){return function(t){if(Array.isArray(t))return BO(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return BO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return BO(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function BO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function RO(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function $O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function LO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$O(Object(r),!0).forEach((function(e){zO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$O(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zO(t,e,r){return e=function(t){var e=function(t,e){if("object"!=DO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=DO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==DO(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function HO(){return HO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},HO.apply(this,arguments)}var FO=function(t){var e=t.value,r=t.formatter,n=ho(t.children)?e:t.children;return bn(r)?r(n):n},UO=function(t,e,r){var n,i,o=t.position,a=t.viewBox,c=t.offset,u=t.className,l=a,s=l.cx,f=l.cy,h=l.innerRadius,p=l.outerRadius,d=l.startAngle,y=l.endAngle,v=l.clockWise,m=(h+p)/2,g=function(t,e){return _o(e-t)*Math.min(Math.abs(e-t),360)}(d,y),b=g>=0?1:-1;"insideStart"===o?(n=d+b*c,i=v):"insideEnd"===o?(n=y-b*c,i=!v):"end"===o&&(n=y+b*c,i=v),i=g<=0?i:!i;var w=kO(s,f,m,n),x=kO(s,f,m,n+359*(i?1:-1)),O="M".concat(w.x,",").concat(w.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(x.x,",").concat(x.y),S=ho(t.id)?No("recharts-radial-line-"):t.id;return Y.createElement("text",HO({},r,{dominantBaseline:"central",className:Lr("recharts-radial-bar-label",u)}),Y.createElement("defs",null,Y.createElement("path",{id:S,d:O})),Y.createElement("textPath",{xlinkHref:"#".concat(S)},e))},VO=function(t){var e=t.viewBox,r=t.offset,n=t.position,i=e,o=i.cx,a=i.cy,c=i.innerRadius,u=i.outerRadius,l=(i.startAngle+i.endAngle)/2;if("outside"===n){var s=kO(o,a,u+r,l),f=s.x;return{x:f,y:s.y,textAnchor:f>=o?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var h=kO(o,a,(c+u)/2,l);return{x:h.x,y:h.y,textAnchor:"middle",verticalAnchor:"middle"}},WO=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,i=t.position,o=e,a=o.x,c=o.y,u=o.width,l=o.height,s=l>=0?1:-1,f=s*n,h=s>0?"end":"start",p=s>0?"start":"end",d=u>=0?1:-1,y=d*n,v=d>0?"end":"start",m=d>0?"start":"end";if("top"===i)return LO(LO({},{x:a+u/2,y:c-s*n,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(c-r.y,0),width:u}:{});if("bottom"===i)return LO(LO({},{x:a+u/2,y:c+l+f,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(r.y+r.height-(c+l),0),width:u}:{});if("left"===i){var g={x:a-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"};return LO(LO({},g),r?{width:Math.max(g.x-r.x,0),height:l}:{})}if("right"===i){var b={x:a+u+y,y:c+l/2,textAnchor:m,verticalAnchor:"middle"};return LO(LO({},b),r?{width:Math.max(r.x+r.width-b.x,0),height:l}:{})}var w=r?{width:u,height:l}:{};return"insideLeft"===i?LO({x:a+y,y:c+l/2,textAnchor:m,verticalAnchor:"middle"},w):"insideRight"===i?LO({x:a+u-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===i?LO({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===i?LO({x:a+u/2,y:c+l-f,textAnchor:"middle",verticalAnchor:h},w):"insideTopLeft"===i?LO({x:a+y,y:c+f,textAnchor:m,verticalAnchor:p},w):"insideTopRight"===i?LO({x:a+u-y,y:c+f,textAnchor:v,verticalAnchor:p},w):"insideBottomLeft"===i?LO({x:a+y,y:c+l-f,textAnchor:m,verticalAnchor:h},w):"insideBottomRight"===i?LO({x:a+u-y,y:c+l-f,textAnchor:v,verticalAnchor:h},w):dn(i)&&(Co(i.x)||To(i.x))&&(Co(i.y)||To(i.y))?LO({x:a+Bo(i.x,u),y:c+Bo(i.y,l),textAnchor:"end",verticalAnchor:"end"},w):LO({x:a+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)},qO=function(t){return"cx"in t&&Co(t.cx)};function XO(t){var e,r=t.offset,n=LO({offset:void 0===r?5:r},RO(t,IO)),i=n.viewBox,o=n.position,a=n.value,c=n.children,u=n.content,l=n.className,s=void 0===l?"":l,f=n.textBreakAll;if(!i||ho(a)&&ho(c)&&!K(u)&&!bn(u))return null;if(K(u))return ot(u,n);if(bn(u)){if(K(e=at(u,n)))return e}else e=FO(n);var h=qO(i),p=ua(n,!0);if(h&&("insideStart"===o||"insideEnd"===o||"end"===o))return UO(n,e,p);var d=h?VO(n):WO(n);return Y.createElement(ky,HO({className:Lr("recharts-label",s)},p,d,{breakAll:f}),e)}XO.displayName="Label";var YO=function(t){var e=t.cx,r=t.cy,n=t.angle,i=t.startAngle,o=t.endAngle,a=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,h=t.top,p=t.left,d=t.width,y=t.height,v=t.clockWise,m=t.labelViewBox;if(m)return m;if(Co(d)&&Co(y)){if(Co(s)&&Co(f))return{x:s,y:f,width:d,height:y};if(Co(h)&&Co(p))return{x:h,y:p,width:d,height:y}}return Co(s)&&Co(f)?{x:s,y:f,width:0,height:0}:Co(e)&&Co(r)?{cx:e,cy:r,startAngle:i||n||0,endAngle:o||n||0,innerRadius:u||0,outerRadius:l||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};XO.parseViewBox=YO,XO.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=t.children,i=YO(t),o=na(n,XO).map((function(t,r){return ot(t,{viewBox:e||i,key:"label-".concat(r)})}));if(!r)return o;var a=function(t,e){return t?!0===t?Y.createElement(XO,{key:"label-implicit",viewBox:e}):Do(t)?Y.createElement(XO,{key:"label-implicit",viewBox:e,value:t}):K(t)?t.type===XO?ot(t,{key:"label-implicit",viewBox:e}):Y.createElement(XO,{key:"label-implicit",content:t,viewBox:e}):bn(t)?Y.createElement(XO,{key:"label-implicit",content:t,viewBox:e}):dn(t)?Y.createElement(XO,HO({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||i);return[a].concat(NO(o))};var KO=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},GO=Qe(KO);function ZO(t){return ZO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ZO(t)}var JO=["valueAccessor"],QO=["data","dataKey","clockWise","id","textBreakAll"];function tS(t){return function(t){if(Array.isArray(t))return eS(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return eS(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eS(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eS(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function rS(){return rS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},rS.apply(this,arguments)}function nS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function iS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nS(Object(r),!0).forEach((function(e){oS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function oS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=ZO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ZO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ZO(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function aS(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var cS=function(t){return Array.isArray(t.value)?GO(t.value):t.value};function uS(t){var e=t.valueAccessor,r=void 0===e?cS:e,n=aS(t,JO),i=n.data,o=n.dataKey,a=n.clockWise,c=n.id,u=n.textBreakAll,l=aS(n,QO);return i&&i.length?Y.createElement(ba,{className:"recharts-label-list"},i.map((function(t,e){var n=ho(o)?r(t,e):rO(t&&t.payload,o),i=ho(c)?{}:{id:"".concat(c,"-").concat(e)};return Y.createElement(XO,rS({},ua(t,!0),l,i,{parentViewBox:t.parentViewBox,value:n,textBreakAll:u,viewBox:XO.parseViewBox(ho(a)?t:iS(iS({},t),{},{clockWise:a})),key:"label-".concat(e),index:e}))}))):null}function lS(t){return lS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lS(t)}function sS(){return sS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},sS.apply(this,arguments)}function fS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function hS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fS(Object(r),!0).forEach((function(e){pS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function pS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=lS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=lS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==lS(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}uS.displayName="LabelList",uS.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=na(t.children,uS).map((function(t,r){return ot(t,{data:e,key:"labelList-".concat(r)})}));return r?[function(t,e){return t?!0===t?Y.createElement(uS,{key:"labelList-implicit",data:e}):Y.isValidElement(t)||bn(t)?Y.createElement(uS,{key:"labelList-implicit",data:e,content:t}):dn(t)?Y.createElement(uS,rS({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(tS(n)):n};var dS=function(t){var e=t.cx,r=t.cy,n=t.radius,i=t.angle,o=t.sign,a=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(a?1:-1)+n,s=Math.asin(c/l)/MO,f=u?i:i+o*s,h=u?i-o*s:i;return{center:kO(e,r,l,f),circleTangency:kO(e,r,n,f),lineTangency:kO(e,r,l*Math.cos(s*MO),h),theta:s}},yS=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.startAngle,a=function(t,e){return _o(e-t)*Math.min(Math.abs(e-t),359.999)}(o,t.endAngle),c=o+a,u=kO(e,r,i,o),l=kO(e,r,i,c),s="M ".concat(u.x,",").concat(u.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o>c),",\n ").concat(l.x,",").concat(l.y,"\n ");if(n>0){var f=kO(e,r,n,o),h=kO(e,r,n,c);s+="L ".concat(h.x,",").concat(h.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},vS={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},mS=function(t){var e=hS(hS({},vS),t),r=e.cx,n=e.cy,i=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,c=e.forceCornerRadius,u=e.cornerIsExternal,l=e.startAngle,s=e.endAngle,f=e.className;if(o<i||l===s)return null;var h,p=Lr("recharts-sector",f),d=o-i,y=Bo(a,d,0,!0);return h=y>0&&Math.abs(l-s)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,s=_o(l-u),f=dS({cx:e,cy:r,radius:i,angle:u,sign:s,cornerRadius:o,cornerIsExternal:c}),h=f.circleTangency,p=f.lineTangency,d=f.theta,y=dS({cx:e,cy:r,radius:i,angle:l,sign:-s,cornerRadius:o,cornerIsExternal:c}),v=y.circleTangency,m=y.lineTangency,g=y.theta,b=c?Math.abs(u-l):Math.abs(u-l)-d-g;if(b<0)return a?"M ".concat(p.x,",").concat(p.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):yS({cx:e,cy:r,innerRadius:n,outerRadius:i,startAngle:u,endAngle:l});var w="M ".concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(n>0){var x=dS({cx:e,cy:r,radius:n,angle:u,sign:s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=x.circleTangency,S=x.lineTangency,j=x.theta,A=dS({cx:e,cy:r,radius:n,angle:l,sign:-s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),P=A.circleTangency,M=A.lineTangency,E=A.theta,k=c?Math.abs(u-l):Math.abs(u-l)-j-E;if(k<0&&0===o)return"".concat(w,"L").concat(e,",").concat(r,"Z");w+="L".concat(M.x,",").concat(M.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(P.x,",").concat(P.y,"\n A").concat(n,",").concat(n,",0,").concat(+(k>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else w+="L".concat(e,",").concat(r,"Z");return w}({cx:r,cy:n,innerRadius:i,outerRadius:o,cornerRadius:Math.min(y,d/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:l,endAngle:s}):yS({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:l,endAngle:s}),Y.createElement("path",sS({},ua(e,!0),{className:p,d:h,role:"img"}))};function gS(t){return gS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gS(t)}function bS(){return bS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},bS.apply(this,arguments)}function wS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wS(Object(r),!0).forEach((function(e){OS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function OS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=gS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=gS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gS(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var SS,jS,AS,PS,MS,ES,kS,_S,TS,CS,DS,IS,NS={curveBasisClosed:function(t){return new $c(t)},curveBasisOpen:function(t){return new Lc(t)},curveBasis:function(t){return new Rc(t)},curveBumpX:function(t){return new mc(t,!0)},curveBumpY:function(t){return new mc(t,!1)},curveLinearClosed:function(t){return new zc(t)},curveLinear:hc,curveMonotoneX:function(t){return new Wc(t)},curveMonotoneY:function(t){return new qc(t)},curveNatural:function(t){return new Yc(t)},curveStep:function(t){return new Gc(t,.5)},curveStepAfter:function(t){return new Gc(t,1)},curveStepBefore:function(t){return new Gc(t,0)}},BS=function(t){return t.x===+t.x&&t.y===+t.y},RS=function(t){return t.x},$S=function(t){return t.y},LS=function(t){var e,r=t.type,n=void 0===r?"linear":r,i=t.points,o=void 0===i?[]:i,a=t.baseLine,c=t.layout,u=t.connectNulls,l=void 0!==u&&u,s=function(t,e){if(bn(t))return t;var r="curve".concat(Ga(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?NS[r]||hc:NS["".concat(r).concat("vertical"===e?"Y":"X")]}(n,c),f=l?o.filter((function(t){return BS(t)})):o;if(Array.isArray(a)){var h=l?a.filter((function(t){return BS(t)})):a,p=f.map((function(t,e){return xS(xS({},t),{},{base:h[e]})}));return(e="vertical"===c?vc().y($S).x1(RS).x0((function(t){return t.base.x})):vc().x(RS).y1($S).y0((function(t){return t.base.y}))).defined(BS).curve(s),e(p)}return(e="vertical"===c&&Co(a)?vc().y($S).x1(RS).x0(a):Co(a)?vc().x(RS).y1($S).y0(a):yc().x(RS).y($S)).defined(BS).curve(s),e(f)},zS=function(t){var e=t.className,r=t.points,n=t.path,i=t.pathRef;if(!(r&&r.length||n))return null;var o=r&&r.length?LS(t):n;return Y.createElement("path",bS({},ua(t,!1),qo(t),{className:Lr("recharts-curve",e),d:o,ref:i}))},HS={exports:{}};function FS(){if(jS)return SS;jS=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return SS=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(n,i){for(var o,a,c=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(n),u=1;u<arguments.length;u++){for(var l in o=Object(arguments[u]))e.call(o,l)&&(c[l]=o[l]);if(t){a=t(o);for(var s=0;s<a.length;s++)r.call(o,a[s])&&(c[a[s]]=o[a[s]])}}return c},SS}function US(){if(PS)return AS;PS=1;return AS="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function VS(){return ES?MS:(ES=1,MS=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var WS=So;HS.exports=function(){if(CS)return TS;CS=1;var t=So,e=FS(),r=US(),n=VS(),i=function(){if(_S)return kS;_S=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=US(),r={},n=VS();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function i(i,o,a,c,u){if("production"!==process.env.NODE_ENV)for(var l in i)if(n(i,l)){var s;try{if("function"!=typeof i[l]){var f=Error((c||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=i[l](o,l,c,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((c||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in r)){r[s.message]=!0;var h=u?u():"";t("Failed "+a+" type: "+s.message+(null!=h?h:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},kS=i}(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),TS=function(c,u){var l="function"==typeof Symbol&&Symbol.iterator,s="@@iterator",f="<<anonymous>>",h={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:y(a),arrayOf:function(t){return y((function(e,n,i,o,a){if("function"!=typeof t)return new d("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c))return new d("Invalid "+o+" `"+a+"` of type `"+b(c)+"` supplied to `"+i+"`, expected an array.");for(var u=0;u<c.length;u++){var l=t(c,u,i,o,a+"["+u+"]",r);if(l instanceof Error)return l}return null}))},element:y((function(t,e,r,n,i){var o=t[e];return c(o)?null:new d("Invalid "+n+" `"+i+"` of type `"+b(o)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:y((function(e,r,n,i,o){var a=e[r];return t.isValidElementType(a)?null:new d("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return y((function(e,r,n,i,o){if(!(e[r]instanceof t)){var a=t.name||f;return new d("Invalid "+i+" `"+o+"` of type `"+((c=e[r]).constructor&&c.constructor.name?c.constructor.name:f)+"` supplied to `"+n+"`, expected instance of `"+a+"`.")}var c;return null}))},node:y((function(t,e,r,n,i){return g(t[e])?null:new d("Invalid "+n+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return y((function(e,i,o,a,c){if("function"!=typeof t)return new d("Property `"+c+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var u=e[i],l=b(u);if("object"!==l)return new d("Invalid "+a+" `"+c+"` of type `"+l+"` supplied to `"+o+"`, expected an object.");for(var s in u)if(n(u,s)){var f=t(u,s,o,a,c+"."+s,r);if(f instanceof Error)return f}return null}))},oneOf:function(t){return Array.isArray(t)?y((function(e,r,n,i,o){for(var a=e[r],c=0;c<t.length;c++)if(p(a,t[c]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===w(e)?String(e):e}));return new d("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+u+".")})):("production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var i=t[e];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(i)+" at index "+e+"."),a}return y((function(e,i,o,a,c){for(var u=[],l=0;l<t.length;l++){var s=(0,t[l])(e,i,o,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&u.push(s.data.expectedType)}return new d("Invalid "+a+" `"+c+"` supplied to `"+o+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")}))},shape:function(t){return y((function(e,n,i,o,a){var c=e[n],u=b(c);if("object"!==u)return new d("Invalid "+o+" `"+a+"` of type `"+u+"` supplied to `"+i+"`, expected `object`.");for(var l in t){var s=t[l];if("function"!=typeof s)return m(i,o,a,l,w(s));var f=s(c,l,i,o,a+"."+l,r);if(f)return f}return null}))},exact:function(t){return y((function(i,o,a,c,u){var l=i[o],s=b(l);if("object"!==s)return new d("Invalid "+c+" `"+u+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},i[o],t);for(var h in f){var p=t[h];if(n(t,h)&&"function"!=typeof p)return m(a,c,u,h,w(p));if(!p)return new d("Invalid "+c+" `"+u+"` key `"+h+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var y=p(l,h,a,c,u+"."+h,r);if(y)return y}return null}))}};function p(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function d(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function y(t){if("production"!==process.env.NODE_ENV)var e={},n=0;function i(i,a,c,l,s,h,p){if(l=l||f,h=h||c,p!==r){if(u){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=l+":"+c;!e[v]&&n<3&&(o("You are manually calling a React.PropTypes validation function for the `"+h+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[v]=!0,n++)}}return null==a[c]?i?null===a[c]?new d("The "+s+" `"+h+"` is marked as required in `"+l+"`, but its value is `null`."):new d("The "+s+" `"+h+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(a,c,l,s,h)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function v(t){return y((function(e,r,n,i,o,a){var c=e[r];return b(c)!==t?new d("Invalid "+i+" `"+o+"` of type `"+w(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function m(t,e,r,n,i){return new d((t||"React class")+": "+e+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function g(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(g);if(null===t||c(t))return!0;var e=function(t){var e=t&&(l&&t[l]||t[s]);if("function"==typeof e)return e}(t);if(!e)return!1;var r,n=e.call(t);if(e!==t.entries){for(;!(r=n.next()).done;)if(!g(r.value))return!1}else for(;!(r=n.next()).done;){var i=r.value;if(i&&!g(i[1]))return!1}return!0;default:return!1}}function b(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function w(t){if(null==t)return""+t;var e=b(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function x(t){var e=w(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return d.prototype=Error.prototype,h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},TS}()(WS.isElement,!0)}else HS.exports=function(){if(IS)return DS;IS=1;var t=US();function e(){}function r(){}return r.resetWarningCache=e,DS=function(){function n(e,r,n,i,o,a){if(a!==t){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function i(){return n}n.isRequired=n;var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:e};return o.PropTypes=o,o}}()();var qS=Qe(HS.exports),XS=Object.getOwnPropertyNames,YS=Object.getOwnPropertySymbols,KS=Object.prototype.hasOwnProperty;function GS(t,e){return function(r,n,i){return t(r,n,i)&&e(r,n,i)}}function ZS(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var i=n.cache,o=i.get(e),a=i.get(r);if(o&&a)return o===r&&a===e;i.set(e,r),i.set(r,e);var c=t(e,r,n);return i.delete(e),i.delete(r),c}}function JS(t){return XS(t).concat(YS(t))}var QS=Object.hasOwn||function(t,e){return KS.call(t,e)};function tj(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var ej="_owner",rj=Object.getOwnPropertyDescriptor,nj=Object.keys;function ij(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function oj(t,e){return tj(t.getTime(),e.getTime())}function aj(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var u=e.entries(),l=!1,s=0;(i=u.next())&&!i.done;){var f=n.value,h=f[0],p=f[1],d=i.value,y=d[0],v=d[1];l||o[s]||!(l=r.equals(h,y,c,s,t,e,r)&&r.equals(p,v,h,y,t,e,r))||(o[s]=!0),s++}if(!l)return!1;c++}return!0}function cj(t,e,r){var n,i=nj(t),o=i.length;if(nj(e).length!==o)return!1;for(;o-- >0;){if((n=i[o])===ej&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!QS(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function uj(t,e,r){var n,i,o,a=JS(t),c=a.length;if(JS(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===ej&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!QS(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(i=rj(t,n),o=rj(e,n),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function lj(t,e){return tj(t.valueOf(),e.valueOf())}function sj(t,e){return t.source===e.source&&t.flags===e.flags}function fj(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),u=!1,l=0;(i=c.next())&&!i.done;)u||o[l]||!(u=r.equals(n.value,i.value,n.value,i.value,t,e,r))||(o[l]=!0),l++;if(!u)return!1}return!0}function hj(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var pj="[object Arguments]",dj="[object Boolean]",yj="[object Date]",vj="[object Map]",mj="[object Number]",gj="[object Object]",bj="[object RegExp]",wj="[object Set]",xj="[object String]",Oj=Array.isArray,Sj="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,jj=Object.assign,Aj=Object.prototype.toString.call.bind(Object.prototype.toString);var Pj=Mj();function Mj(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,i=t.createInternalComparator,o=t.createState,a=t.strict,c=void 0!==a&&a,u=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,i={areArraysEqual:n?uj:ij,areDatesEqual:oj,areMapsEqual:n?GS(aj,uj):aj,areObjectsEqual:n?uj:cj,arePrimitiveWrappersEqual:lj,areRegExpsEqual:sj,areSetsEqual:n?GS(fj,uj):fj,areTypedArraysEqual:n?uj:hj};if(r&&(i=jj({},i,r(i))),e){var o=ZS(i.areArraysEqual),a=ZS(i.areMapsEqual),c=ZS(i.areObjectsEqual),u=ZS(i.areSetsEqual);i=jj({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return i}(t),l=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,i=t.areObjectsEqual,o=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,u=t.areTypedArraysEqual;return function(t,l,s){if(t===l)return!0;if(null==t||null==l||"object"!=typeof t||"object"!=typeof l)return t!=t&&l!=l;var f=t.constructor;if(f!==l.constructor)return!1;if(f===Object)return i(t,l,s);if(Oj(t))return e(t,l,s);if(null!=Sj&&Sj(t))return u(t,l,s);if(f===Date)return r(t,l,s);if(f===RegExp)return a(t,l,s);if(f===Map)return n(t,l,s);if(f===Set)return c(t,l,s);var h=Aj(t);return h===yj?r(t,l,s):h===bj?a(t,l,s):h===vj?n(t,l,s):h===wj?c(t,l,s):h===gj?"function"!=typeof t.then&&"function"!=typeof l.then&&i(t,l,s):h===pj?i(t,l,s):(h===dj||h===mj||h===xj)&&o(t,l,s)}}(u),s=i?i(l):(e=l,function(t,r,n,i,o,a,c){return e(t,r,c)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,i=t.equals,o=t.strict;if(n)return function(t,a){var c=n(),u=c.cache,l=void 0===u?e?new WeakMap:void 0:u,s=c.meta;return r(t,a,{cache:l,equals:i,meta:s,strict:o})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(t,e){return r(t,e,a)}}({circular:n,comparator:l,createState:o,equals:s,strict:c})}function Ej(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(i){r<0&&(r=i),i-r>e?(t(i),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function kj(t){return kj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kj(t)}function _j(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Tj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tj(t,e)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tj(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Cj(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var i=_j(n),o=i[0],a=i.slice(1);return"number"==typeof o?void Ej(r.bind(null,a),o):(r(o),void Ej(r.bind(null,a)))}"object"===kj(n)&&t(n),"function"==typeof n&&n()}};return{stop:function(){e=!0},start:function(t){e=!1,r(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function Dj(t){return Dj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dj(t)}function Ij(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Nj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ij(Object(r),!0).forEach((function(e){Bj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ij(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Bj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Dj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Dj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Dj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Mj({strict:!0}),Mj({circular:!0}),Mj({circular:!0,strict:!0}),Mj({createInternalComparator:function(){return tj}}),Mj({strict:!0,createInternalComparator:function(){return tj}}),Mj({circular:!0,createInternalComparator:function(){return tj}}),Mj({circular:!0,createInternalComparator:function(){return tj},strict:!0});var Rj=function(t){return t},$j=function(t,e){return Object.keys(e).reduce((function(r,n){return Nj(Nj({},r),{},Bj({},n,t(n,e[n])))}),{})},Lj=function(t,e,r){return t.map((function(t){return"".concat((n=t,n.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(r);var n})).join(",")},zj="production"!==process.env.NODE_ENV,Hj=function(t,e,r,n,i,o,a,c){if(zj&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,i,o,a,c],l=0;console.warn(e.replace(/%s/g,(function(){return u[l++]})))}};function Fj(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||Vj(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uj(t){return function(t){if(Array.isArray(t))return Wj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Vj(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vj(t,e){if(t){if("string"==typeof t)return Wj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wj(t,e):void 0}}function Wj(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var qj=1e-4,Xj=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Yj=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},Kj=function(t,e){return function(r){var n=Xj(t,e);return Yj(n,r)}},Gj=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],i=e[1],o=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,i=0,o=1,a=1;break;case"ease":n=.25,i=.1,o=.25,a=1;break;case"ease-in":n=.42,i=0,o=1,a=1;break;case"ease-out":n=.42,i=0,o=.58,a=1;break;case"ease-in-out":n=0,i=0,o=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),l=Fj(u,4);n=l[0],i=l[1],o=l[2],a=l[3]}else Hj(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",e)}Hj([n,o,i,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",e);var s,f,h=Kj(n,o),p=Kj(i,a),d=(s=n,f=o,function(t){var e=Xj(s,f),r=[].concat(Uj(e.map((function(t,e){return t*e})).slice(1)),[0]);return Yj(r,t)}),y=function(t){for(var e,r=t>1?1:t,n=r,i=0;i<8;++i){var o=h(n)-r,a=d(n);if(Math.abs(o-r)<qj||a<qj)return p(n);n=(e=n-o/a)>1?1:e<0?0:e}return p(n)};return y.isStepper=!1,y},Zj=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Gj(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,i=void 0===n?8:n,o=t.dt,a=void 0===o?17:o,c=function(t,e,n){var o=n+(-(t-e)*r-n*i)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<qj&&Math.abs(o)<qj?[e,0]:[c,o]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return Gj(n);Hj(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",e)}return"function"==typeof n?n:(Hj(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function Jj(t){return Jj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jj(t)}function Qj(t){return function(t){if(Array.isArray(t))return oA(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||iA(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function eA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tA(Object(r),!0).forEach((function(e){rA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function rA(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Jj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Jj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Jj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nA(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||iA(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iA(t,e){if(t){if("string"==typeof t)return oA(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oA(t,e):void 0}}function oA(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var aA=function(t,e,r){return t+(e-t)*r},cA=function(t){return t.from!==t.to},uA=function t(e,r,n){var i=$j((function(t,r){if(cA(r)){var n=nA(e(r.from,r.to,r.velocity),2),i=n[0],o=n[1];return eA(eA({},r),{},{from:i,velocity:o})}return r}),r);return n<1?$j((function(t,e){return cA(e)?eA(eA({},e),{},{velocity:aA(e.velocity,i[t].velocity,n),from:aA(e.from,i[t].from,n)}):e}),r):t(e,i,n-1)},lA=function(t,e,r,n,i){var o,a,c,u,l=(o=t,a=e,[Object.keys(o),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=l.reduce((function(r,n){return eA(eA({},r),{},rA({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return eA(eA({},r),{},rA({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),h=-1,p=function(){return null};return p=r.isStepper?function(n){c||(c=n);var o=(n-c)/r.dt;f=uA(r,f,o),i(eA(eA(eA({},t),e),$j((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(cA).length&&(h=requestAnimationFrame(p))}:function(o){u||(u=o);var a=(o-u)/n,c=$j((function(t,e){return aA.apply(void 0,Qj(e).concat([r(a)]))}),s);if(i(eA(eA(eA({},t),e),c)),a<1)h=requestAnimationFrame(p);else{var l=$j((function(t,e){return aA.apply(void 0,Qj(e).concat([r(1)]))}),s);i(eA(eA(eA({},t),e),l))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(h)}}};function sA(t){return sA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sA(t)}var fA=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function hA(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function pA(t){return function(t){if(Array.isArray(t))return dA(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return dA(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dA(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dA(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function yA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yA(Object(r),!0).forEach((function(e){mA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mA(t,e,r){return(e=bA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,bA(n.key),n)}}function bA(t){var e=function(t,e){if("object"!==sA(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==sA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===sA(e)?e:String(e)}function wA(t,e){return wA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wA(t,e)}function xA(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=jA(t);if(e){var i=jA(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return OA(this,r)}}function OA(t,e){if(e&&("object"===sA(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return SA(t)}function SA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jA(t){return jA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jA(t)}var AA=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wA(t,e)}(o,Z);var e,r,n,i=xA(o);function o(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var n=(r=i.call(this,t,e)).props,a=n.isActive,c=n.attributeName,u=n.from,l=n.to,s=n.steps,f=n.children,h=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(SA(r)),r.changeStyle=r.changeStyle.bind(SA(r)),!a||h<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:l}),OA(r);if(s&&s.length)r.state={style:s[0].style};else if(u){if("function"==typeof f)return r.state={style:u},OA(r);r.state={style:c?mA({},c,u):u}}else r.state={style:{}};return r}return e=o,(r=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,i=e.attributeName,o=e.shouldReAnimate,a=e.to,c=e.from,u=this.state.style;if(n)if(r){if(!(Pj(t.to,a)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=l||o?c:t.to;if(this.state&&u){var f={style:i?mA({},i,s):s};(i&&[i]!==s||!i&&u!==s)&&this.setState(f)}this.runAnimation(vA(vA({},this.props),{},{from:s,begin:0}))}}else{var h={style:i?mA({},i,a):a};this.state&&u&&(i&&u[i]!==a||!i&&u!==a)&&this.setState(h)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,i=t.duration,o=t.easing,a=t.begin,c=t.onAnimationEnd,u=t.onAnimationStart,l=lA(r,n,Zj(o),i,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=l()},i,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,i=t.onAnimationStart,o=r[0],a=o.style,c=o.duration,u=void 0===c?0:c;return this.manager.start([i].concat(pA(r.reduce((function(t,n,i){if(0===i)return t;var o=n.duration,a=n.easing,c=void 0===a?"ease":a,u=n.style,l=n.properties,s=n.onAnimationEnd,f=i>0?r[i-1]:n,h=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(pA(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:o,easing:c}),o]);var p=Lj(h,o,c),d=vA(vA(vA({},f.style),u),{},{transition:p});return[].concat(pA(t),[d,o,s]).filter(Rj)}),[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Cj());var e=t.begin,r=t.duration,n=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,u=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof o&&"function"!=typeof l&&"spring"!==o)if(u.length>1)this.runStepAnimation(t);else{var f=n?mA({},n,i):i,h=Lj(Object.keys(f),r,o);s.start([a,e,vA(vA({},f),{},{transition:h}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children;t.begin;var r=t.duration;t.attributeName,t.easing;var n=t.isActive;t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart;var i=hA(t,fA),o=G.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!n||0===o||r<=0)return e;var c=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,o=e.className;return ot(t,vA(vA({},i),{},{style:vA(vA({},n),a),className:o}))};return 1===o?c(G.only(e)):Y.createElement("div",null,G.map(e,(function(t){return c(t)})))}}])&&gA(e.prototype,r),n&&gA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}();function PA(t){return PA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},PA(t)}function MA(){return MA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},MA.apply(this,arguments)}function EA(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return kA(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kA(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kA(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _A(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function TA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_A(Object(r),!0).forEach((function(e){CA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_A(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function CA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=PA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=PA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==PA(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}AA.displayName="Animate",AA.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},AA.propTypes={from:qS.oneOfType([qS.object,qS.string]),to:qS.oneOfType([qS.object,qS.string]),attributeName:qS.string,duration:qS.number,begin:qS.number,easing:qS.oneOfType([qS.string,qS.func]),steps:qS.arrayOf(qS.shape({duration:qS.number.isRequired,style:qS.object.isRequired,easing:qS.oneOfType([qS.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),qS.func]),properties:qS.arrayOf("string"),onAnimationEnd:qS.func})),children:qS.oneOfType([qS.node,qS.func]),isActive:qS.bool,canBegin:qS.bool,onAnimationEnd:qS.func,shouldReAnimate:qS.bool,onAnimationStart:qS.func,onAnimationReStart:qS.func},qS.object,qS.object,qS.object,qS.element,qS.object,qS.object,qS.object,qS.oneOfType([qS.array,qS.element]),qS.any;var DA=function(t,e,r,n,i){var o,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,u=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&i instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(o+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+u*s[0],",").concat(e)),o+="L ".concat(t+r-u*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+c*s[1])),o+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-u*s[2],",").concat(e+n)),o+="L ".concat(t+u*s[3],",").concat(e+n),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-c*s[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var h=Math.min(a,i);o="M ".concat(t,",").concat(e+c*h,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t+u*h,",").concat(e,"\n L ").concat(t+r-u*h,",").concat(e,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t+r,",").concat(e+c*h,"\n L ").concat(t+r,",").concat(e+n-c*h,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t+r-u*h,",").concat(e+n,"\n L ").concat(t+u*h,",").concat(e+n,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t,",").concat(e+n-c*h," Z")}else o="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return o},IA=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,i=e.x,o=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var u=Math.min(i,i+a),l=Math.max(i,i+a),s=Math.min(o,o+c),f=Math.max(o,o+c);return r>=u&&r<=l&&n>=s&&n<=f}return!1},NA={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},BA=function(t){var e=TA(TA({},NA),t),r=Q(),n=EA(et(-1),2),i=n[0],o=n[1];nt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,u=e.width,l=e.height,s=e.radius,f=e.className,h=e.animationEasing,p=e.animationDuration,d=e.animationBegin,y=e.isAnimationActive,v=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||0===u||0===l)return null;var m=Lr("recharts-rectangle",f);return v?Y.createElement(AA,{canBegin:i>0,from:{width:u,height:l,x:a,y:c},to:{width:u,height:l,x:a,y:c},duration:p,animationEasing:h,isActive:v},(function(t){var n=t.width,o=t.height,a=t.x,c=t.y;return Y.createElement(AA,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:y,easing:h},Y.createElement("path",MA({},ua(e,!0),{className:m,d:DA(a,c,n,o,s),ref:r})))})):Y.createElement("path",MA({},ua(e,!0),{className:m,d:DA(a,c,u,l,s)}))};function RA(){return RA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},RA.apply(this,arguments)}var $A=function(t){var e=t.cx,r=t.cy,n=t.r,i=Lr("recharts-dot",t.className);return e===+e&&r===+r&&n===+n?Y.createElement("circle",RA({},ua(t,!1),qo(t),{className:i,cx:e,cy:r,r:n})):null};function LA(t){return LA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},LA(t)}var zA=["x","y","top","left","width","height","className"];function HA(){return HA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},HA.apply(this,arguments)}function FA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function UA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=LA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=LA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==LA(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function VA(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var WA=function(t,e,r,n,i,o){return"M".concat(t,",").concat(i,"v").concat(n,"M").concat(o,",").concat(e,"h").concat(r)},qA=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,i=void 0===n?0:n,o=t.top,a=void 0===o?0:o,c=t.left,u=void 0===c?0:c,l=t.width,s=void 0===l?0:l,f=t.height,h=void 0===f?0:f,p=t.className,d=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?FA(Object(r),!0).forEach((function(e){UA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):FA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:i,top:a,left:u,width:s,height:h},VA(t,zA));return Co(r)&&Co(i)&&Co(s)&&Co(h)&&Co(a)&&Co(u)?Y.createElement("path",HA({},ua(d,!0),{className:Lr("recharts-cross",p),d:WA(r,i,s,h,a,u)})):null},XA=Gl(Object.getPrototypeOf,Object),YA=rn,KA=XA,GA=nn,ZA=Function.prototype,JA=Object.prototype,QA=ZA.toString,tP=JA.hasOwnProperty,eP=QA.call(Object);var rP=Qe((function(t){if(!GA(t)||"[object Object]"!=YA(t))return!1;var e=KA(t);if(null===e)return!0;var r=tP.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&QA.call(r)==eP})),nP=rn,iP=nn;var oP=Qe((function(t){return!0===t||!1===t||iP(t)&&"[object Boolean]"==nP(t)}));function aP(t){return aP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aP(t)}function cP(){return cP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},cP.apply(this,arguments)}function uP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return lP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lP(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function sP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?sP(Object(r),!0).forEach((function(e){hP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=aP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=aP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==aP(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var pP=function(t,e,r,n,i){var o,a=r-n;return o="M ".concat(t,",").concat(e),o+="L ".concat(t+r,",").concat(e),o+="L ".concat(t+r-a/2,",").concat(e+i),o+="L ".concat(t+r-a/2-n,",").concat(e+i),o+="L ".concat(t,",").concat(e," Z")},dP={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},yP=function(t){var e=fP(fP({},dP),t),r=Q(),n=uP(et(-1),2),i=n[0],o=n[1];nt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,u=e.upperWidth,l=e.lowerWidth,s=e.height,f=e.className,h=e.animationEasing,p=e.animationDuration,d=e.animationBegin,y=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||s!==+s||0===u&&0===l||0===s)return null;var v=Lr("recharts-trapezoid",f);return y?Y.createElement(AA,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:c},to:{upperWidth:u,lowerWidth:l,height:s,x:a,y:c},duration:p,animationEasing:h,isActive:y},(function(t){var n=t.upperWidth,o=t.lowerWidth,a=t.height,c=t.x,u=t.y;return Y.createElement(AA,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:h},Y.createElement("path",cP({},ua(e,!0),{className:v,d:pP(c,u,n,o,a),ref:r})))})):Y.createElement("g",null,Y.createElement("path",cP({},ua(e,!0),{className:v,d:pP(a,c,u,l,s)})))},vP=["option","shapeType","propTransformer","activeClassName","isActive"];function mP(t){return mP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mP(t)}function gP(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function bP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function wP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bP(Object(r),!0).forEach((function(e){xP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=mP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=mP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==mP(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function OP(t,e){return wP(wP({},e),t)}function SP(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return Y.createElement(BA,r);case"trapezoid":return Y.createElement(yP,r);case"sector":return Y.createElement(mS,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return Y.createElement(su,r);break;default:return null}}function jP(t){var e,r=t.option,n=t.shapeType,i=t.propTransformer,o=void 0===i?OP:i,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,u=t.isActive,l=gP(t,vP);if(K(r))e=ot(r,wP(wP({},l),function(t){return K(t)?t.props:t}(r)));else if(bn(r))e=r(l);else if(rP(r)&&!oP(r)){var s=o(r,l);e=Y.createElement(SP,{shapeType:n,elementProps:s})}else{var f=l;e=Y.createElement(SP,{shapeType:n,elementProps:f})}return u?Y.createElement(ba,{className:c},e):e}function AP(t,e){return null!=e&&"trapezoids"in t.props}function PP(t,e){return null!=e&&"sectors"in t.props}function MP(t,e){return null!=e&&"points"in t.props}function EP(t,e){var r,n,i=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,o=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return i&&o}function kP(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function _P(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function TP(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,i=function(t,e){var r;return AP(t,e)?r="trapezoids":PP(t,e)?r="sectors":MP(t,e)&&(r="points"),r}(r,e),o=function(t,e){var r,n;return AP(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:PP(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:MP(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=Dw(o,t),c=r.props[i].filter((function(t){var n=function(t,e){var r;return AP(t,e)?r=EP:PP(t,e)?r=kP:MP(t,e)&&(r=_P),r}(r,e);return n(t,e)})),u=r.props[i].indexOf(c[c.length-1]);return a&&n===u}));return n.indexOf(a[a.length-1])}var CP=Math.ceil,DP=Math.max;var IP=kd,NP=1/0;var BP=function(t,e,r,n){for(var i=-1,o=DP(CP((e-t)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=t,t+=r;return a},RP=Ap,$P=function(t){return t?(t=IP(t))===NP||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};var LP=Qe(function(t){return function(e,r,n){return n&&"number"!=typeof n&&RP(e,r,n)&&(r=n=void 0),e=$P(e),void 0===r?(r=e,e=0):r=$P(r),n=void 0===n?e<r?1:-1:$P(n),BP(e,r,n,t)}}());function zP(t){return zP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zP(t)}function HP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function FP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?HP(Object(r),!0).forEach((function(e){UP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):HP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function UP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=zP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=zP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==zP(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var VP=["Webkit","Moz","O","ms"];function WP(t){return WP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},WP(t)}function qP(){return qP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qP.apply(this,arguments)}function XP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function YP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?XP(Object(r),!0).forEach((function(e){eM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):XP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function KP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,rM(n.key),n)}}function GP(t,e,r){return e=JP(e),function(t,e){if(e&&("object"===WP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return QP(t)}(t,ZP()?Reflect.construct(e,r||[],JP(t).constructor):e.apply(t,r))}function ZP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ZP=function(){return!!t})()}function JP(t){return JP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},JP(t)}function QP(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tM(t,e){return tM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},tM(t,e)}function eM(t,e,r){return(e=rM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rM(t){var e=function(t,e){if("object"!=WP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=WP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==WP(e)?e:String(e)}var nM=function(t){return t.changedTouches&&!!t.changedTouches.length},iM=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),eM(QP(r=GP(this,e,[t])),"handleDrag",(function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)})),eM(QP(r),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),eM(QP(r),"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,i=t.startIndex;null==n||n({endIndex:e,startIndex:i})})),r.detachDragEndListener()})),eM(QP(r),"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),eM(QP(r),"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),eM(QP(r),"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),eM(QP(r),"handleSlideDragStart",(function(t){var e=nM(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()})),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(QP(r),"startX"),endX:r.handleTravellerDragStart.bind(QP(r),"endX")},r.state={},r}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tM(t,e)}(e,Z),r=e,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var r=t.startX,n=t.endX,i=this.state.scaleValues,o=this.props,a=o.gap,c=o.data.length-1,u=Math.min(r,n),l=Math.max(r,n),s=e.getIndexInRange(i,u),f=e.getIndexInRange(i,l);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,i=e.dataKey,o=rO(r[t],i,t);return bn(n)?n(o,t):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,i=e.endX,o=this.props,a=o.x,c=o.width,u=o.travellerWidth,l=o.startIndex,s=o.endIndex,f=o.onChange,h=t.pageX-r;h>0?h=Math.min(h,a+c-u-i,a+c-u-n):h<0&&(h=Math.max(h,a-n,a-i));var p=this.getIndex({startX:n+h,endX:i+h});p.startIndex===l&&p.endIndex===s||!f||f(p),this.setState({startX:n+h,endX:i+h,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=nM(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,i=e.endX,o=e.startX,a=this.state[n],c=this.props,u=c.x,l=c.width,s=c.travellerWidth,f=c.onChange,h=c.gap,p=c.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,u+l-s-a):y<0&&(y=Math.max(y,u-a)),d[n]=a+y;var v=this.getIndex(d),m=v.startIndex,g=v.endIndex;this.setState(eM(eM({},n,a+y),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=p.length-1,("startX"===n&&(i>o?m%h==0:g%h==0)||i<o&&g===t||"endX"===n&&(i>o?g%h==0:m%h==0)||i>o&&g===t)&&f(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,i=n.scaleValues,o=n.startX,a=n.endX,c=this.state[e],u=i.indexOf(c);if(-1!==u){var l=u+t;if(!(-1===l||l>=i.length)){var s=i[l];"startX"===e&&s>=a||"endX"===e&&s<=o||this.setState(eM({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.fill,a=t.stroke;return Y.createElement("rect",{stroke:a,fill:o,x:e,y:r,width:n,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.data,a=t.children,c=t.padding,u=G.only(a);return u?Y.cloneElement(u,{x:e,y:r,width:n,height:i,margin:c,compact:!0,data:o}):null}},{key:"renderTravellerLayer",value:function(t,r){var n=this,i=this.props,o=i.y,a=i.travellerWidth,c=i.height,u=i.traveller,l=i.ariaLabel,s=i.data,f=i.startIndex,h=i.endIndex,p=Math.max(t,this.props.x),d=YP(YP({},ua(this.props,!1)),{},{x:p,y:o,width:a,height:c}),y=l||"Min value: ".concat(s[f].name,", Max value: ").concat(s[h].name);return Y.createElement(ba,{tabIndex:0,role:"slider","aria-label":y,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),n.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){n.setState({isTravellerFocused:!0})},onBlur:function(){n.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(u,d))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,i=r.height,o=r.stroke,a=r.travellerWidth,c=Math.min(t,e)+a,u=Math.max(Math.abs(e-t)-a,0);return Y.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:c,y:n,width:u,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,i=t.height,o=t.travellerWidth,a=t.stroke,c=this.state,u=c.startX,l=c.endX,s={pointerEvents:"none",fill:a};return Y.createElement(ba,{className:"recharts-brush-texts"},Y.createElement(ky,qP({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:n+i/2},s),this.getTextOfTick(e)),Y.createElement(ky,qP({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+o+5,y:n+i/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,i=t.x,o=t.y,a=t.width,c=t.height,u=t.alwaysShowText,l=this.state,s=l.startX,f=l.endX,h=l.isTextActive,p=l.isSlideMoving,d=l.isTravellerMoving,y=l.isTravellerFocused;if(!e||!e.length||!Co(i)||!Co(o)||!Co(a)||!Co(c)||a<=0||c<=0)return null;var v=Lr("recharts-brush",r),m=1===Y.Children.count(n),g=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),n=VP.reduce((function(t,n){return FP(FP({},t),{},UP({},n+r,e))}),{});return n[t]=e,n}("userSelect","none");return Y.createElement(ba,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),m&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(h||p||d||y||u)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,i=t.height,o=t.stroke,a=Math.floor(r+i/2)-1;return Y.createElement(Y.Fragment,null,Y.createElement("rect",{x:e,y:r,width:n,height:i,fill:o,stroke:"none"}),Y.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),Y.createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return Y.isValidElement(t)?Y.cloneElement(t,r):bn(t)?t(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return YP({prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,i=t.x,o=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,u=iv().domain(LP(0,c)).range([i,i+o-a]),l=u.domain().map((function(t){return u(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(n),scale:u,scaleValues:l}}({data:r,width:n,x:i,travellerWidth:o,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+n-o]);var l=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i}return e>=t[n]?n:r}}],n&&KP(r.prototype,n),i&&KP(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();eM(iM,"displayName","Brush"),eM(iM,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var oM=Fh;var aM=zu,cM=Wf,uM=function(t,e){var r;return oM(t,(function(t,n,i){return!(r=e(t,n,i))})),!!r},lM=zr,sM=Ap;var fM=Qe((function(t,e,r){var n=lM(t)?aM:uM;return r&&sM(t,e,r)&&(e=void 0),n(t,cM(e))})),hM=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},pM=fp;var dM=function(t,e,r){"__proto__"==e&&pM?pM(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r},yM=dM,vM=zh,mM=Wf;var gM=function(t,e){var r={};return e=mM(e),vM(t,(function(t,n,i){yM(r,n,e(t,n,i))})),r},bM=Qe(gM);var wM=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0},xM=Fh;var OM=wM,SM=function(t,e){var r=!0;return xM(t,(function(t,n,i){return r=!!e(t,n,i)})),r},jM=Wf,AM=zr,PM=Ap;var MM=Qe((function(t,e,r){var n=AM(t)?OM:SM;return r&&PM(t,e,r)&&(e=void 0),n(t,jM(e))})),EM=["x","y"];function kM(t){return kM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kM(t)}function _M(){return _M=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},_M.apply(this,arguments)}function TM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function CM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?TM(Object(r),!0).forEach((function(e){DM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):TM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function DM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=kM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=kM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==kM(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function IM(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function NM(t,e){var r=t.x,n=t.y,i=IM(t,EM),o="".concat(r),a=parseInt(o,10),c="".concat(n),u=parseInt(c,10),l="".concat(e.height||i.height),s=parseInt(l,10),f="".concat(e.width||i.width),h=parseInt(f,10);return CM(CM(CM(CM(CM({},e),i),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:h,name:e.name,radius:e.radius})}function BM(t){return Y.createElement(jP,_M({shapeType:"rectangle",propTransformer:NM,activeClassName:"recharts-active-bar"},t))}var RM,$M=["value","background"];function LM(t){return LM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},LM(t)}function zM(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function HM(){return HM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},HM.apply(this,arguments)}function FM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function UM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?FM(Object(r),!0).forEach((function(e){GM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):FM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function VM(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ZM(n.key),n)}}function WM(t,e,r){return e=XM(e),function(t,e){if(e&&("object"===LM(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return YM(t)}(t,qM()?Reflect.construct(e,r||[],XM(t).constructor):e.apply(t,r))}function qM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(qM=function(){return!!t})()}function XM(t){return XM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},XM(t)}function YM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function KM(t,e){return KM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},KM(t,e)}function GM(t,e,r){return(e=ZM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ZM(t){var e=function(t,e){if("object"!=LM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=LM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==LM(e)?e:String(e)}var JM=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return GM(YM(t=WM(this,e,[].concat(n))),"state",{isAnimationFinished:!1}),GM(YM(t),"id",No("recharts-bar-")),GM(YM(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),GM(YM(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&KM(t,e)}(e,Z),r=e,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,i=r.dataKey,o=r.activeIndex,a=r.activeBar,c=ua(this.props,!1);return t&&t.map((function(t,r){var u=r===o,l=u?a:n,s=UM(UM(UM({},c),t),{},{isActive:u,option:l,index:r,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return Y.createElement(ba,HM({className:"recharts-bar-rectangle"},Xo(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value)}),Y.createElement(BM,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,i=e.isAnimationActive,o=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state.prevData;return Y.createElement(AA,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t,o=r.map((function(t,e){var r=l&&l[e];if(r){var o=$o(r.x,t.x),a=$o(r.y,t.y),c=$o(r.width,t.width),u=$o(r.height,t.height);return UM(UM({},t),{},{x:o(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===n){var s=$o(0,t.height)(i);return UM(UM({},t),{},{y:t.y+t.height-s,height:s})}var f=$o(0,t.width)(i);return UM(UM({},t),{},{width:f})}));return Y.createElement(ba,null,t.renderRectanglesStatically(o))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&Dw(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,i=e.activeIndex,o=ua(this.props.background,!1);return r.map((function(e,r){e.value;var a=e.background,c=zM(e,$M);if(!a)return null;var u=UM(UM(UM(UM(UM({},c),{},{fill:"#eee"},a),o),Xo(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return Y.createElement(BM,HM({option:t.props.background,isActive:r===i},u))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,i=r.xAxis,o=r.yAxis,a=r.layout,c=na(r.children,Vx);if(!c)return null;var u="vertical"===a?n[0].height/2:n[0].width/2,l=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:rO(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return Y.createElement(ba,s,c.map((function(t){return Y.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,offset:u,dataPointFormatter:l})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,i=t.xAxis,o=t.yAxis,a=t.left,c=t.top,u=t.width,l=t.height,s=t.isAnimationActive,f=t.background,h=t.id;if(e||!r||!r.length)return null;var p=this.state.isAnimationFinished,d=Lr("recharts-bar",n),y=i&&i.allowDataOverflow,v=o&&o.allowDataOverflow,m=y||v,g=ho(h)?this.id:h;return Y.createElement(ba,{className:d},y||v?Y.createElement("defs",null,Y.createElement("clipPath",{id:"clipPath-".concat(g)},Y.createElement("rect",{x:y?a:a-u/2,y:v?c:c-l/2,width:y?u:2*u,height:v?l:2*l}))):null,Y.createElement(ba,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(g,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,g),(!s||p)&&uS.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],n&&VM(r.prototype,n),i&&VM(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();function QM(t){return QM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},QM(t)}function tE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,iE(n.key),n)}}function eE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function rE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?eE(Object(r),!0).forEach((function(e){nE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):eE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function nE(t,e,r){return(e=iE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function iE(t){var e=function(t,e){if("object"!=QM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=QM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==QM(e)?e:String(e)}RM=JM,GM(JM,"displayName","Bar"),GM(JM,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!nd.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),GM(JM,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,i=t.bandSize,o=t.xAxis,a=t.yAxis,c=t.xAxisTicks,u=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,h=t.offset,p=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!p)return null;var d=e.layout,y=r.props,v=y.dataKey,m=y.children,g=y.minPointSize,b="horizontal"===d?a:o,w=l?b.scale.domain():null,x=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){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]}({numericAxis:b}),O=na(m,qd),S=f.map((function(t,e){var n,f,h,y,m,b;l?n=function(t,e){if(!e||2!==e.length||!Co(e[0])||!Co(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!Co(t[0])||t[0]<r)&&(i[0]=r),(!Co(t[1])||t[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i}(l[s+e],w):(n=rO(t,v),Array.isArray(n)||(n=[x,n]));var S=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var i="number"==typeof r;return i?t(r,n):(i||("production"!==process.env.NODE_ENV?$x(!1,"minPointSize callback function received a value with type of ".concat(kM(r),". Currently only numbers are supported.")):$x(!1)),e)}}(g,RM.defaultProps.minPointSize)(n[1],e);if("horizontal"===d){var j,A=[a.scale(n[0]),a.scale(n[1])],P=A[0],M=A[1];f=yO({axis:o,ticks:c,bandSize:i,offset:p.offset,entry:t,index:e}),h=null!==(j=null!=M?M:P)&&void 0!==j?j:void 0,y=p.size;var E=P-M;if(m=Number.isNaN(E)?0:E,b={x:f,y:a.y,width:y,height:a.height},Math.abs(S)>0&&Math.abs(m)<Math.abs(S)){var k=_o(m||S)*(Math.abs(S)-Math.abs(m));h-=k,m+=k}}else{var _=[o.scale(n[0]),o.scale(n[1])],T=_[0],C=_[1];if(f=T,h=yO({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:t,index:e}),y=C-T,m=p.size,b={x:o.x,y:h,width:o.width,height:m},Math.abs(S)>0&&Math.abs(y)<Math.abs(S))y+=_o(y||S)*(Math.abs(S)-Math.abs(y))}return UM(UM(UM({},t),{},{x:f,y:h,width:y,height:m,value:l?n:n[1],payload:t,background:b},O&&O[e]&&O[e].props),{},{tooltipPayload:[OO(r,t)],tooltipPosition:{x:f+y/2,y:h+m/2}})}));return UM({data:S,layout:d},h)}));var oE=function(t,e,r,n,i){var o=t.width,a=t.height,c=t.layout,u=t.children,l=Object.keys(e),s={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!ia(u,JM);return l.reduce((function(o,a){var u,l,h,p,d,y=e[a],v=y.orientation,m=y.domain,g=y.padding,b=void 0===g?{}:g,w=y.mirror,x=y.reversed,O="".concat(v).concat(w?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var S=m[1]-m[0],j=1/0,A=y.categoricalDomain.sort();A.forEach((function(t,e){e>0&&(j=Math.min((t||0)-(A[e-1]||0),j))}));var P=j/S,M="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(u=P*M/2),"no-gap"===y.padding){var E=Bo(t.barCategoryGap,P*M),k=P*M/2;u=k-E-(k-E)/M*E}}l="xAxis"===n?[r.left+(b.left||0)+(u||0),r.left+r.width-(b.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(u||0),r.top+r.height-(b.bottom||0)-(u||0)]:y.range,x&&(l=[l[1],l[0]]);var _=function(t,e,r){var n=t.scale,i=t.type,o=t.layout,a=t.axisType;if("auto"===n)return"radial"===o&&"radiusAxis"===a?{scale:rv(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:Pm(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:iv(),realScaleType:"point"}:"category"===i?{scale:rv(),realScaleType:"band"}:{scale:Pm(),realScaleType:"linear"};if(go(n)){var c="scale".concat(Ga(n));return{scale:(fw[c]||iv)(),realScaleType:fw[c]?c:"point"}}return bn(n)?{scale:n}:{scale:iv(),realScaleType:"point"}}(y,i,f),T=_.scale,C=_.realScaleType;T.domain(m).range(l),function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),i=Math.min(n[0],n[1])-fO,o=Math.max(n[0],n[1])+fO,a=t(e[0]),c=t(e[r-1]);(a<i||a>o||c<i||c>o)&&t.domain([e[0],e[r-1]])}}(T);var D=function(t,e){var r=e.realScaleType,n=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(i&&"number"===n&&o&&("auto"===o[0]||"auto"===o[1])){var u=t.domain();if(!u.length)return null;var l=Ix(u,i,a);return t.domain([Sw(l),gw(l)]),{niceTicks:l}}if(i&&"number"===n){var s=t.domain();return{niceTicks:Nx(s,i,a)}}return null}(T,rE(rE({},y),{},{realScaleType:C}));"xAxis"===n?(d="top"===v&&!w||"bottom"===v&&w,h=r.left,p=s[O]-d*y.height):"yAxis"===n&&(d="left"===v&&!w||"right"===v&&w,h=s[O]-d*y.width,p=r.top);var I=rE(rE(rE({},y),D),{},{realScaleType:C,x:h,y:p,scale:T,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return I.bandSize=wO(I,D),y.hide||"xAxis"!==n?y.hide||(s[O]+=(d?-1:1)*I.width):s[O]+=(d?-1:1)*I.height,rE(rE({},o),{},nE({},a,I))}),{})},aE=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return{x:Math.min(r,i),y:Math.min(n,o),width:Math.abs(i-r),height:Math.abs(o-n)}},cE=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}var e,r,n;return e=t,r=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&tE(e.prototype,r),n&&tE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();nE(cE,"EPS",1e-4);var uE=function(t){var e=Object.keys(t).reduce((function(e,r){return rE(rE({},e),{},nE({},r,cE.create(t[r])))}),{});return rE(rE({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return bM(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:i})}))},isInRange:function(t){return MM(t,(function(t,r){return e[r].isInRange(t)}))}})};var lE=function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),i=n*Math.PI/180,o=Math.atan(r/e),a=i>o&&i<Math.PI-o?r/Math.sin(i):e/Math.cos(i);return Math.abs(a)},sE=$i((function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}}),(function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}));function fE(t){return fE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fE(t)}var hE=ut(void 0),pE=ut(void 0),dE=ut(void 0),yE=ut({}),vE=ut(void 0),mE=ut(0),gE=ut(0),bE=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,i=e.offset,o=t.clipPathId,a=t.children,c=t.width,u=t.height,l=sE(i);return Y.createElement(hE.Provider,{value:r},Y.createElement(pE.Provider,{value:n},Y.createElement(yE.Provider,{value:i},Y.createElement(dE.Provider,{value:l},Y.createElement(vE.Provider,{value:o},Y.createElement(mE.Provider,{value:u},Y.createElement(gE.Provider,{value:c},a)))))))};function wE(t){var e=Object.keys(t);return 0===e.length?"There are no available ids.":"Available ids are: ".concat(e,".")}var xE=function(t){var e=ct(hE);null==e&&("production"!==process.env.NODE_ENV?$x(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):$x(!1));var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?$x(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(fE(t),"]. ").concat(wE(e))):$x(!1)),r},OE=function(t){var e=ct(pE);null==e&&("production"!==process.env.NODE_ENV?$x(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):$x(!1));var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?$x(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(fE(t),"]. ").concat(wE(e))):$x(!1)),r},SE=function(){return ct(gE)},jE=function(){return ct(mE)};function AE(t){return AE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},AE(t)}function PE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ME(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?PE(Object(r),!0).forEach((function(e){EE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):PE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function EE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=AE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=AE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==AE(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kE(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return _E(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _E(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _E(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function TE(){return TE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},TE.apply(this,arguments)}function CE(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxisId,o=t.yAxisId,a=t.shape,c=t.className,u=t.alwaysShow,l=ct(vE),s=xE(i),f=OE(o),h=ct(dE);if(!l||!h)return null;xa(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=function(t,e,r,n,i,o,a,c,u){var l=i.x,s=i.y,f=i.width,h=i.height;if(r){var p=u.y,d=t.y.apply(p,{position:o});if(hM(u,"discard")&&!t.y.isInRange(d))return null;var y=[{x:l+f,y:d},{x:l,y:d}];return"left"===c?y.reverse():y}if(e){var v=u.x,m=t.x.apply(v,{position:o});if(hM(u,"discard")&&!t.x.isInRange(m))return null;var g=[{x:m,y:s+h},{x:m,y:s}];return"top"===a?g.reverse():g}if(n){var b=u.segment.map((function(e){return t.apply(e,{position:o})}));return hM(u,"discard")&&fM(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(uE({x:s.scale,y:f.scale}),Do(e),Do(r),n&&2===n.length,h,t.position,s.orientation,f.orientation,t);if(!p)return null;var d=kE(p,2),y=d[0],v=y.x,m=y.y,g=d[1],b=g.x,w=g.y,x=ME(ME({clipPath:hM(t,"hidden")?"url(#".concat(l,")"):void 0},ua(t,!0)),{},{x1:v,y1:m,x2:b,y2:w});return Y.createElement(ba,{className:Lr("recharts-reference-line",c)},function(t,e){return Y.isValidElement(t)?Y.cloneElement(t,e):bn(t)?t(e):Y.createElement("line",TE({},e,{className:"recharts-reference-line-line"}))}(a,x),XO.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;return aE({x:e,y:r},{x:n,y:i})}({x1:v,y1:m,x2:b,y2:w})))}function DE(t){return DE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},DE(t)}function IE(){return IE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},IE.apply(this,arguments)}function NE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function BE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?NE(Object(r),!0).forEach((function(e){RE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function RE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=DE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=DE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==DE(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}CE.displayName="ReferenceLine",CE.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function $E(t){var e=t.x,r=t.y,n=t.r,i=t.alwaysShow,o=t.clipPathId,a=Do(e),c=Do(r);if(xa(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!a||!c)return null;var u=function(t){var e=t.x,r=t.y,n=t.xAxis,i=t.yAxis,o=uE({x:n.scale,y:i.scale}),a=o.apply({x:e,y:r},{bandAware:!0});return hM(t,"discard")&&!o.isInRange(a)?null:a}(t);if(!u)return null;var l=u.x,s=u.y,f=t.shape,h=t.className,p=BE(BE({clipPath:hM(t,"hidden")?"url(#".concat(o,")"):void 0},ua(t,!0)),{},{cx:l,cy:s});return Y.createElement(ba,{className:Lr("recharts-reference-dot",h)},$E.renderDot(f,p),XO.renderCallByParent(t,{x:l-n,y:s-n,width:2*n,height:2*n}))}function LE(t){return LE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},LE(t)}function zE(){return zE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},zE.apply(this,arguments)}function HE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function FE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?HE(Object(r),!0).forEach((function(e){UE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):HE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function UE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=LE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=LE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==LE(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}$E.displayName="ReferenceDot",$E.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},$E.renderDot=function(t,e){return Y.isValidElement(t)?Y.cloneElement(t,e):bn(t)?t(e):Y.createElement($A,IE({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))};function VE(t){var e=t.x1,r=t.x2,n=t.y1,i=t.y2,o=t.className,a=t.alwaysShow,c=t.clipPathId;xa(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=Do(e),l=Do(r),s=Do(n),f=Do(i),h=t.shape;if(!(u||l||s||f||h))return null;var p=function(t,e,r,n,i){var o=i.x1,a=i.x2,c=i.y1,u=i.y2,l=i.xAxis,s=i.yAxis;if(!l||!s)return null;var f=uE({x:l.scale,y:s.scale}),h={x:t?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},p={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!hM(i,"discard")||f.isInRange(h)&&f.isInRange(p)?aE(h,p):null}(u,l,s,f,t);if(!p&&!h)return null;var d=hM(t,"hidden")?"url(#".concat(c,")"):void 0;return Y.createElement(ba,{className:Lr("recharts-reference-area",o)},VE.renderRect(h,FE(FE({clipPath:d},ua(t,!0)),p)),XO.renderCallByParent(t,p))}function WE(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],i=0;i<t.length;i+=e){if(void 0!==r&&!0!==r(t[i]))return;n.push(t[i])}return n}function qE(t,e,r,n,i){if(t*e<t*n||t*e>t*i)return!1;var o=r();return t*(e-t*o/2-n)>=0&&t*(e+t*o/2-i)<=0}function XE(t){return XE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},XE(t)}function YE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function KE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?YE(Object(r),!0).forEach((function(e){GE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):YE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function GE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=XE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=XE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==XE(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ZE(t,e,r){var n=t.tick,i=t.ticks,o=t.viewBox,a=t.minTickGap,c=t.orientation,u=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!i||!i.length||!n)return[];if(Co(u)||nd.isSsr)return function(t,e){return WE(t,e+1)}(i,"number"==typeof u&&Co(u)?u:0);var h=[],p="top"===c||"bottom"===c?"width":"height",d=s&&"width"===p?ty(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(t,n){var i=bn(l)?l(t.value,n):t.value;return"width"===p?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return lE(n,r)}(ty(i,{fontSize:e,letterSpacing:r}),d,f):ty(i,{fontSize:e,letterSpacing:r})[p]},v=i.length>=2?_o(i[1].coordinate-i[0].coordinate):1,m=function(t,e,r){var n="width"===r,i=t.x,o=t.y,a=t.width,c=t.height;return 1===e?{start:n?i:o,end:n?i+a:o+c}:{start:n?i+a:o+c,end:n?i:o}}(o,v,p);return"equidistantPreserveStart"===u?function(t,e,r,n,i){for(var o,a=(n||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,h=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:WE(n,s)};var o,a=l,h=function(){return void 0===o&&(o=r(e,a)),o},p=e.coordinate,d=0===l||qE(t,p,h,f,u);d||(l=0,f=c,s+=1),d&&(f=p+t*(h()/2+i),l+=s)};s<=a.length;)if(o=h())return o.v;return[]}(v,m,y,i,a):(h="preserveStart"===u||"preserveStartEnd"===u?function(t,e,r,n,i,o){var a=(n||[]).slice(),c=a.length,u=e.start,l=e.end;if(o){var s=n[c-1],f=r(s,c-1),h=t*(s.coordinate+t*f/2-l);a[c-1]=s=KE(KE({},s),{},{tickCoord:h>0?s.coordinate-h*t:s.coordinate}),qE(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+i),a[c-1]=KE(KE({},s),{},{isShow:!0}))}for(var p=o?c-1:c,d=function(e){var n,o=a[e],c=function(){return void 0===n&&(n=r(o,e)),n};if(0===e){var s=t*(o.coordinate-t*c()/2-u);a[e]=o=KE(KE({},o),{},{tickCoord:s<0?o.coordinate-s*t:o.coordinate})}else a[e]=o=KE(KE({},o),{},{tickCoord:o.coordinate});qE(t,o.tickCoord,c,u,l)&&(u=o.tickCoord+t*(c()/2+i),a[e]=KE(KE({},o),{},{isShow:!0}))},y=0;y<p;y++)d(y);return a}(v,m,y,i,a,"preserveStartEnd"===u):function(t,e,r,n,i){for(var o=(n||[]).slice(),a=o.length,c=e.start,u=e.end,l=function(e){var n,l=o[e],s=function(){return void 0===n&&(n=r(l,e)),n};if(e===a-1){var f=t*(l.coordinate+t*s()/2-u);o[e]=l=KE(KE({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else o[e]=l=KE(KE({},l),{},{tickCoord:l.coordinate});qE(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+i),o[e]=KE(KE({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return o}(v,m,y,i,a),h.filter((function(t){return t.isShow})))}VE.displayName="ReferenceArea",VE.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},VE.renderRect=function(t,e){return Y.isValidElement(t)?Y.cloneElement(t,e):bn(t)?t(e):Y.createElement(BA,zE({},e,{className:"recharts-reference-area-rect"}))};var JE=["viewBox"],QE=["viewBox"],tk=["ticks"];function ek(t){return ek="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ek(t)}function rk(){return rk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},rk.apply(this,arguments)}function nk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ik(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nk(Object(r),!0).forEach((function(e){fk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ok(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function ak(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,hk(n.key),n)}}function ck(t,e,r){return e=lk(e),function(t,e){if(e&&("object"===ek(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,uk()?Reflect.construct(e,r||[],lk(t).constructor):e.apply(t,r))}function uk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(uk=function(){return!!t})()}function lk(t){return lk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},lk(t)}function sk(t,e){return sk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},sk(t,e)}function fk(t,e,r){return(e=hk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hk(t){var e=function(t,e){if("object"!=ek(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ek(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ek(e)?e:String(e)}var pk=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=ck(this,e,[t])).state={fontSize:"",letterSpacing:""},r}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&sk(t,e)}(e,lt),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=ok(t,JE),i=this.props,o=i.viewBox,a=ok(i,QE);return!zo(r,o)||!zo(n,a)||!zo(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,i,o,a,c=this.props,u=c.x,l=c.y,s=c.width,f=c.height,h=c.orientation,p=c.tickSize,d=c.mirror,y=c.tickMargin,v=d?-1:1,m=t.tickSize||p,g=Co(t.tickCoord)?t.tickCoord:t.coordinate;switch(h){case"top":e=r=t.coordinate,a=(n=(i=l+ +!d*f)-v*m)-v*y,o=g;break;case"left":n=i=t.coordinate,o=(e=(r=u+ +!d*s)-v*m)-v*y,a=g;break;case"right":n=i=t.coordinate,o=(e=(r=u+ +d*s)+v*m)+v*y,a=g;break;default:e=r=t.coordinate,a=(n=(i=l+ +d*f)+v*m)+v*y,o=g}return{line:{x1:e,y1:n,x2:r,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.orientation,a=t.mirror,c=t.axisLine,u=ik(ik(ik({},ua(this.props,!1)),ua(c,!1)),{},{fill:"none"});if("top"===o||"bottom"===o){var l=+("top"===o&&!a||"bottom"===o&&a);u=ik(ik({},u),{},{x1:e,y1:r+l*i,x2:e+n,y2:r+l*i})}else{var s=+("left"===o&&!a||"right"===o&&a);u=ik(ik({},u),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+i})}return Y.createElement("line",rk({},u,{className:Lr("recharts-cartesian-axis-line",fo(c,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var i=this,o=this.props,a=o.tickLine,c=o.stroke,u=o.tick,l=o.tickFormatter,s=o.unit,f=ZE(ik(ik({},this.props),{},{ticks:t}),r,n),h=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),d=ua(this.props,!1),y=ua(u,!1),v=ik(ik({},d),{},{fill:"none"},ua(a,!1)),m=f.map((function(t,r){var n=i.getTickLineCoord(t),o=n.line,m=n.tick,g=ik(ik(ik(ik({textAnchor:h,verticalAnchor:p},d),{},{stroke:"none",fill:c},y),m),{},{index:r,payload:t,visibleTicksCount:f.length,tickFormatter:l});return Y.createElement(ba,rk({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},Xo(i.props,t,r)),a&&Y.createElement("line",rk({},v,o,{className:Lr("recharts-cartesian-axis-tick-line",fo(a,"className"))})),u&&e.renderTickItem(u,g,"".concat(bn(l)?l(t.value,r):t.value).concat(s||"")))}));return Y.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,i=e.height,o=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,u=c.ticks,l=ok(c,tk),s=u;return bn(o)&&(s=u&&u.length>0?o(this.props):o(l)),n<=0||i<=0||!s||!s.length?null:Y.createElement(ba,{className:Lr("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),XO.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(t,e,r){return Y.isValidElement(t)?Y.cloneElement(t,e):bn(t)?t(e):Y.createElement(ky,rk({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&ak(r.prototype,n),i&&ak(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();fk(pk,"displayName","CartesianAxis"),fk(pk,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var dk=["type","layout","connectNulls","ref"];function yk(t){return yk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yk(t)}function vk(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function mk(){return mk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},mk.apply(this,arguments)}function gk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function bk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gk(Object(r),!0).forEach((function(e){Ek(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function wk(t){return function(t){if(Array.isArray(t))return xk(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return xk(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xk(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xk(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ok(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,kk(n.key),n)}}function Sk(t,e,r){return e=Ak(e),function(t,e){if(e&&("object"===yk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Pk(t)}(t,jk()?Reflect.construct(e,r||[],Ak(t).constructor):e.apply(t,r))}function jk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(jk=function(){return!!t})()}function Ak(t){return Ak=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ak(t)}function Pk(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mk(t,e){return Mk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Mk(t,e)}function Ek(t,e,r){return(e=kk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kk(t){var e=function(t,e){if("object"!=yk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=yk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==yk(e)?e:String(e)}var _k=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Ek(Pk(t=Sk(this,e,[].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),Ek(Pk(t),"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),Ek(Pk(t),"getStrokeDasharray",(function(r,n,i){var o=i.reduce((function(t,e){return t+e}));if(!o)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/o),c=r%o,u=n-r,l=[],s=0,f=0;s<i.length;f+=i[s],++s)if(f+i[s]>c){l=[].concat(wk(i.slice(0,s)),[c-f]);break}var h=l.length%2==0?[0,u]:[u];return[].concat(wk(e.repeat(i,a)),wk(l),h).map((function(t){return"".concat(t,"px")})).join(", ")})),Ek(Pk(t),"id",No("recharts-line-")),Ek(Pk(t),"pathRef",(function(e){t.mainCurve=e})),Ek(Pk(t),"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),Ek(Pk(t),"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mk(t,e)}(e,Z),r=e,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.points,i=r.xAxis,o=r.yAxis,a=r.layout,c=na(r.children,Vx);if(!c)return null;var u=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:rO(t.payload,e)}},l={clipPath:t?"url(#clipPath-".concat(e,")"):null};return Y.createElement(ba,l,c.map((function(t){return Y.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,dataPointFormatter:u})})))}},{key:"renderDots",value:function(t,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.dot,a=i.points,c=i.dataKey,u=ua(this.props,!1),l=ua(o,!0),s=a.map((function(t,r){var n=bk(bk(bk({key:"dot-".concat(r),r:3},u),l),{},{value:t.value,dataKey:c,cx:t.x,cy:t.y,index:r,payload:t.payload});return e.renderDotItem(o,n)})),f={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return Y.createElement(ba,mk({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(t,e,r,n){var i=this.props,o=i.type,a=i.layout,c=i.connectNulls;i.ref;var u=vk(i,dk),l=bk(bk(bk({},ua(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:o,layout:a,connectNulls:c});return Y.createElement(zS,mk({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.strokeDasharray,a=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=n.animateNewValues,h=n.width,p=n.height,d=this.state,y=d.prevPoints,v=d.totalLength;return Y.createElement(AA,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(y){var c=y.length/i.length,u=i.map((function(t,e){var r=Math.floor(e*c);if(y[r]){var n=y[r],i=$o(n.x,t.x),o=$o(n.y,t.y);return bk(bk({},t),{},{x:i(a),y:o(a)})}if(f){var u=$o(2*h,t.x),l=$o(p/2,t.y);return bk(bk({},t),{},{x:u(a),y:l(a)})}return bk(bk({},t),{},{x:t.x,y:t.y})}));return r.renderCurveStatically(u,t,e)}var l,s=$o(0,v)(a);if(o){var d="".concat(o).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=r.getStrokeDasharray(s,v,d)}else l=r.generateSimpleStrokeDasharray(v,s);return r.renderCurveStatically(i,t,e,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,i=r.isAnimationActive,o=this.state,a=o.prevPoints,c=o.totalLength;return i&&n&&n.length&&(!a&&c>0||!Dw(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,i=e.points,o=e.className,a=e.xAxis,c=e.yAxis,u=e.top,l=e.left,s=e.width,f=e.height,h=e.isAnimationActive,p=e.id;if(r||!i||!i.length)return null;var d=this.state.isAnimationFinished,y=1===i.length,v=Lr("recharts-line",o),m=a&&a.allowDataOverflow,g=c&&c.allowDataOverflow,b=m||g,w=ho(p)?this.id:p,x=null!==(t=ua(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,j=x.strokeWidth,A=void 0===j?2:j,P=(ca(n)?n:{}).clipDot,M=void 0===P||P,E=2*S+A;return Y.createElement(ba,{className:v},m||g?Y.createElement("defs",null,Y.createElement("clipPath",{id:"clipPath-".concat(w)},Y.createElement("rect",{x:m?l:l-s/2,y:g?u:u-f/2,width:m?s:2*s,height:g?f:2*f})),!M&&Y.createElement("clipPath",{id:"clipPath-dots-".concat(w)},Y.createElement("rect",{x:l-E/2,y:u-E/2,width:s+E,height:f+E}))):null,!y&&this.renderCurve(b,w),this.renderErrorBar(b,w),(y||n)&&this.renderDots(b,M,w),(!h||d)&&uS.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var r=t.length%2!=0?[].concat(wk(t),[0]):t,n=[],i=0;i<e;++i)n=[].concat(wk(n),wk(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(Y.isValidElement(t))r=Y.cloneElement(t,e);else if(bn(t))r=t(e);else{var n=Lr("recharts-line-dot",t?t.className:"");r=Y.createElement($A,mk({},e,{className:n}))}return r}}],n&&Ok(r.prototype,n),i&&Ok(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();Ek(_k,"displayName","Line"),Ek(_k,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!nd.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),Ek(_k,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,a=t.dataKey,c=t.bandSize,u=t.displayedData,l=t.offset,s=e.layout;return bk({points:u.map((function(t,e){var u=rO(t,a);return"horizontal"===s?{x:dO({axis:r,ticks:i,bandSize:c,entry:t,index:e}),y:ho(u)?null:n.scale(u),value:u,payload:t}:{x:ho(u)?null:r.scale(u),y:dO({axis:n,ticks:o,bandSize:c,entry:t,index:e}),value:u,payload:t}})),layout:s},l)}));var Tk,Ck=["layout","type","stroke","connectNulls","isRange","ref"];function Dk(t){return Dk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dk(t)}function Ik(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Nk(){return Nk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Nk.apply(this,arguments)}function Bk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Rk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Bk(Object(r),!0).forEach((function(e){Vk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $k(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Wk(n.key),n)}}function Lk(t,e,r){return e=Hk(e),function(t,e){if(e&&("object"===Dk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Fk(t)}(t,zk()?Reflect.construct(e,r||[],Hk(t).constructor):e.apply(t,r))}function zk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(zk=function(){return!!t})()}function Hk(t){return Hk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Hk(t)}function Fk(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Uk(t,e){return Uk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Uk(t,e)}function Vk(t,e,r){return(e=Wk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wk(t){var e=function(t,e){if("object"!=Dk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Dk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Dk(e)?e:String(e)}var qk=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Vk(Fk(t=Lk(this,e,[].concat(n))),"state",{isAnimationFinished:!0}),Vk(Fk(t),"id",No("recharts-area-")),Vk(Fk(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),bn(e)&&e()})),Vk(Fk(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),bn(e)&&e()})),t}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Uk(t,e)}(e,Z),r=e,n=[{key:"renderDots",value:function(t,r,n){var i=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(i&&!o)return null;var a=this.props,c=a.dot,u=a.points,l=a.dataKey,s=ua(this.props,!1),f=ua(c,!0),h=u.map((function(t,r){var n=Rk(Rk(Rk({key:"dot-".concat(r),r:3},s),f),{},{dataKey:l,cx:t.x,cy:t.y,index:r,value:t.value,payload:t.payload});return e.renderDotItem(c,n)})),p={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return Y.createElement(ba,Nk({className:"recharts-area-dots"},p),h)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].x,a=n[n.length-1].x,c=t*Math.abs(o-a),u=gw(n.map((function(t){return t.y||0})));return Co(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(gw(r.map((function(t){return t.y||0}))),u)),Co(u)?Y.createElement("rect",{x:o<a?o:o-c,y:0,width:c,height:Math.floor(u+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].y,a=n[n.length-1].y,c=t*Math.abs(o-a),u=gw(n.map((function(t){return t.x||0})));return Co(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(gw(r.map((function(t){return t.x||0}))),u)),Co(u)?Y.createElement("rect",{x:0,y:o<a?o:o-c,width:u+(i?parseInt("".concat(i),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,r,n){var i=this.props,o=i.layout,a=i.type,c=i.stroke,u=i.connectNulls,l=i.isRange;i.ref;var s=Ik(i,Ck);return Y.createElement(ba,{clipPath:r?"url(#clipPath-".concat(n,")"):null},Y.createElement(zS,Nk({},ua(s,!0),{points:t,connectNulls:u,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&Y.createElement(zS,Nk({},ua(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:t})),"none"!==c&&l&&Y.createElement(zS,Nk({},ua(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.baseLine,a=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=this.state,h=f.prevPoints,p=f.prevBaseLine;return Y.createElement(AA,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"area-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(h){var c,u=h.length/i.length,l=i.map((function(t,e){var r=Math.floor(e*u);if(h[r]){var n=h[r],i=$o(n.x,t.x),o=$o(n.y,t.y);return Rk(Rk({},t),{},{x:i(a),y:o(a)})}return t}));return c=Co(o)&&"number"==typeof o?$o(p,o)(a):ho(o)||ko(o)?$o(p,0)(a):o.map((function(t,e){var r=Math.floor(e*u);if(p[r]){var n=p[r],i=$o(n.x,t.x),o=$o(n.y,t.y);return Rk(Rk({},t),{},{x:i(a),y:o(a)})}return t})),r.renderAreaStatically(l,c,t,e)}return Y.createElement(ba,null,Y.createElement("defs",null,Y.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),Y.createElement(ba,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(i,o,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,i=r.baseLine,o=r.isAnimationActive,a=this.state,c=a.prevPoints,u=a.prevBaseLine,l=a.totalLength;return o&&n&&n.length&&(!c&&l>0||!Dw(c,n)||!Dw(u,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,i,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,i=e.points,o=e.className,a=e.top,c=e.left,u=e.xAxis,l=e.yAxis,s=e.width,f=e.height,h=e.isAnimationActive,p=e.id;if(r||!i||!i.length)return null;var d=this.state.isAnimationFinished,y=1===i.length,v=Lr("recharts-area",o),m=u&&u.allowDataOverflow,g=l&&l.allowDataOverflow,b=m||g,w=ho(p)?this.id:p,x=null!==(t=ua(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,j=x.strokeWidth,A=void 0===j?2:j,P=(ca(n)?n:{}).clipDot,M=void 0===P||P,E=2*S+A;return Y.createElement(ba,{className:v},m||g?Y.createElement("defs",null,Y.createElement("clipPath",{id:"clipPath-".concat(w)},Y.createElement("rect",{x:m?c:c-s/2,y:g?a:a-f/2,width:m?s:2*s,height:g?f:2*f})),!M&&Y.createElement("clipPath",{id:"clipPath-dots-".concat(w)},Y.createElement("rect",{x:c-E/2,y:a-E/2,width:s+E,height:f+E}))):null,y?null:this.renderArea(b,w),(n||y)&&this.renderDots(b,M,w),(!h||d)&&uS.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],n&&$k(r.prototype,n),i&&$k(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();function Xk(){return Xk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Xk.apply(this,arguments)}Tk=qk,Vk(qk,"displayName","Area"),Vk(qk,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!nd.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),Vk(qk,"getBaseValue",(function(t,e,r,n){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if(Co(c)&&"number"==typeof c)return c;var u="horizontal"===i?n:r,l=u.scale.domain();if("number"===u.type){var s=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===c?l[0]:"dataMax"===c?l[1]:l[0]})),Vk(qk,"getComposedData",(function(t){var e,r=t.props,n=t.item,i=t.xAxis,o=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,u=t.bandSize,l=t.dataKey,s=t.stackedData,f=t.dataStartIndex,h=t.displayedData,p=t.offset,d=r.layout,y=s&&s.length,v=Tk.getBaseValue(r,n,i,o),m="horizontal"===d,g=!1,b=h.map((function(t,e){var r;y?r=s[f+e]:(r=rO(t,l),Array.isArray(r)?g=!0:r=[v,r]);var n=null==r[1]||y&&null==rO(t,l);return m?{x:dO({axis:i,ticks:a,bandSize:u,entry:t,index:e}),y:n?null:o.scale(r[1]),value:r,payload:t}:{x:n?null:i.scale(r[1]),y:dO({axis:o,ticks:c,bandSize:u,entry:t,index:e}),value:r,payload:t}}));return e=y||g?b.map((function(t){var e=Array.isArray(t.value)?t.value[0]:null;return m?{x:t.x,y:null!=e&&null!=t.y?o.scale(e):null}:{x:null!=e?i.scale(e):null,y:t.y}})):m?o.scale(v):i.scale(v),Rk({points:b,baseLine:e,layout:d,isRange:g},p)})),Vk(qk,"renderDotItem",(function(t,e){return Y.isValidElement(t)?Y.cloneElement(t,e):bn(t)?t(e):Y.createElement($A,Nk({},e,{className:"recharts-area-dot"}))}));var Yk=function(t){var e=t.xAxisId,r=SE(),n=jE(),i=xE(e);return null==i?null:Y.createElement(pk,Xk({},i,{className:Lr("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return uO(t,!0)}}))};function Kk(){return Kk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Kk.apply(this,arguments)}Yk.displayName="XAxis",Yk.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var Gk=function(t){var e=t.yAxisId,r=SE(),n=jE(),i=OE(e);return null==i?null:Y.createElement(pk,Kk({},i,{className:Lr("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return uO(t,!0)}}))};function Zk(t){return function(t){if(Array.isArray(t))return Jk(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Jk(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jk(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jk(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Gk.displayName="YAxis",Gk.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var Qk=function(t,e,r,n,i){var o=na(t,CE),a=na(t,$E),c=[].concat(Zk(o),Zk(a)),u=na(t,VE),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===r&&hM(e.props,"extendDomain")&&Co(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),u.length){var h="".concat(s,"1"),p="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===r&&hM(e.props,"extendDomain")&&Co(e.props[h])&&Co(e.props[p])){var n=e.props[h],i=e.props[p];return[Math.min(t[0],n,i),Math.max(t[1],n,i)]}return t}),f)}return i&&i.length&&(f=i.reduce((function(t,e){return Co(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},t_={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new i(n,o||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,i,o,a){var c=r?r+t:t;if(!this._events[c])return!1;var u,l,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,n),!0;case 4:return s.fn.call(s.context,e,n,i),!0;case 5:return s.fn.call(s.context,e,n,i,o),!0;case 6:return s.fn.call(s.context,e,n,i,o,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];s.fn.apply(s.context,u)}else{var h,p=s.length;for(l=0;l<p;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,n);break;case 4:s[l].fn.call(s[l].context,e,n,i);break;default:if(!u)for(h=1,u=new Array(f-1);h<f;h++)u[h-1]=arguments[h];s[l].fn.apply(s[l].context,u)}}return!0},c.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var c=this._events[o];if(c.fn)c.fn!==e||i&&!c.once||n&&c.context!==n||a(this,o);else{for(var u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||i&&!c[u].once||n&&c[u].context!==n)&&l.push(c[u]);l.length?this._events[o]=1===l.length?l[0]:l:a(this,o)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c}(t_);var e_=new(Qe(t_.exports)),r_="recharts.syncMouseEvents";function n_(t){return n_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n_(t)}function i_(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a_(n.key),n)}}function o_(t,e,r){return(e=a_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a_(t){var e=function(t,e){if("object"!=n_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=n_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n_(e)?e:String(e)}var c_=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o_(this,"activeIndex",0),o_(this,"coordinateList",[]),o_(this,"layout","horizontal")}var e,r,n;return e=t,r=[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,i=t.container,o=void 0===i?null:i,a=t.layout,c=void 0===a?null:a,u=t.offset,l=void 0===u?null:u,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(e=null!=n?n:this.coordinateList)&&void 0!==e?e:[],this.container=null!=o?o:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,i=r.y,o=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,u=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=n+a+c,s=i+this.offset.top+o/2+u;this.mouseHandlerCallback({pageX:l,pageY:s})}}}],r&&i_(e.prototype,r),n&&i_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function u_(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,o=t.endAngle;return{points:[kO(e,r,n,i),kO(e,r,n,o)],cx:e,cy:r,radius:n,startAngle:i,endAngle:o}}function l_(t,e,r){var n,i,o,a;if("horizontal"===t)o=n=e.x,i=r.top,a=r.top+r.height;else if("vertical"===t)a=i=e.y,n=r.left,o=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return u_(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,h=kO(c,u,l,f),p=kO(c,u,s,f);n=h.x,i=h.y,o=p.x,a=p.y}return[{x:n,y:i},{x:o,y:a}]}function s_(t){return s_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s_(t)}function f_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f_(Object(r),!0).forEach((function(e){p_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function p_(t,e,r){return e=function(t){var e=function(t,e){if("object"!=s_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s_(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d_(t){var e,r=t.element,n=t.tooltipEventType,i=t.isActive,o=t.activeCoordinate,a=t.activePayload,c=t.offset,u=t.activeTooltipIndex,l=t.tooltipAxisBandSize,s=t.layout,f=t.chartName;if(!r||!r.props.cursor||!i||!o||"ScatterChart"!==f&&"axis"!==n)return null;var h=zS;if("ScatterChart"===f)e=o,h=qA;else if("BarChart"===f)e=function(t,e,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-i:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-i,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(s,o,c,l),h=BA;else if("radial"===s){var p=u_(o),d=p.cx,y=p.cy,v=p.radius;e={cx:d,cy:y,startAngle:p.startAngle,endAngle:p.endAngle,innerRadius:v,outerRadius:v},h=mS}else e={points:l_(s,o,c)},h=zS;var m=h_(h_(h_(h_({stroke:"#ccc",pointerEvents:"none"},c),e),ua(r.props.cursor,!1)),{},{payload:a,payloadIndex:u,className:"recharts-tooltip-cursor"});return K(r.props.cursor)?ot(r.props.cursor,m):at(h,m)}var y_=["item"],v_=["children","className","width","height","style","compact","title","desc"];function m_(t){return m_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m_(t)}function g_(){return g_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},g_.apply(this,arguments)}function b_(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||E_(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w_(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function x_(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,D_(n.key),n)}}function O_(t,e,r){return e=j_(e),function(t,e){if(e&&("object"===m_(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return A_(t)}(t,S_()?Reflect.construct(e,r||[],j_(t).constructor):e.apply(t,r))}function S_(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(S_=function(){return!!t})()}function j_(t){return j_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},j_(t)}function A_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function P_(t,e){return P_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},P_(t,e)}function M_(t){return function(t){if(Array.isArray(t))return k_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||E_(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E_(t,e){if(t){if("string"==typeof t)return k_(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k_(t,e):void 0}}function k_(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function __(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function T_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?__(Object(r),!0).forEach((function(e){C_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):__(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function C_(t,e,r){return(e=D_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function D_(t){var e=function(t,e){if("object"!=m_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=m_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==m_(e)?e:String(e)}var I_={xAxis:["bottom","top"],yAxis:["left","right"]},N_={width:"100%",height:"100%"},B_={x:0,y:0};function R_(t){return t}var $_=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,i=e.dataEndIndex,o=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(M_(t),M_(r)):t}),[]);return o.length>0?o:t&&t.length&&Co(n)&&Co(i)?t.slice(n,i+1):[]};function L_(t){return"number"===t?[0,"auto"]:void 0}var z_=function(t,e,r,n){var i=t.graphicalItems,o=t.tooltipAxis,a=$_(e,t);return r<0||!i||!i.length||r>=a.length?null:i.reduce((function(i,c){var u,l,s=null!==(u=c.props.data)&&void 0!==u?u:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory)?l=Lo(void 0===s?a:s,o.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(M_(i),[OO(c,l)]):i}),[])},H_=function(t,e,r,n){var i=n||{x:t.chartX,y:t.chartY},o=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(i,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,u=0;u<a;u++){var l=u>0?n[u-1].coordinate:n[a-1].coordinate,s=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,h=void 0;if(_o(s-l)!==_o(f-s)){var p=[];if(_o(f-s)===_o(c[1]-c[0])){h=f;var d=s+c[1]-c[0];p[0]=Math.min(d,(d+l)/2),p[1]=Math.max(d,(d+l)/2)}else{h=l;var y=f+c[1]-c[0];p[0]=Math.min(s,(y+s)/2),p[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(h+s)/2),Math.max(s,(h+s)/2)];if(t>v[0]&&t<=v[1]||t>=p[0]&&t<=p[1]){o=n[u].index;break}}else{var m=Math.min(l,f),g=Math.max(l,f);if(t>(m+s)/2&&t<=(g+s)/2){o=n[u].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){o=r[b].index;break}return o}(o,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=z_(t,e,l,s),h=function(t,e,r,n){var i=e.find((function(t){return t&&t.index===r}));if(i){if("horizontal"===t)return{x:i.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:i.coordinate};if("centric"===t){var o=i.coordinate,a=n.radius;return T_(T_(T_({},n),kO(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,u=n.angle;return T_(T_(T_({},n),kO(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return B_}(r,a,l,i);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:h}}return null},F_=function(t,e){var r=e.axes,n=e.graphicalItems,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,h=cO(l,i);return r.reduce((function(e,r){var p,d=r.props,y=d.type,v=d.dataKey,m=d.allowDataOverflow,g=d.allowDuplicatedCategory,b=d.scale,w=d.ticks,x=d.includeHidden,O=r.props[o];if(e[O])return e;var S,j,A,P=$_(t.data,{graphicalItems:n.filter((function(t){return t.props[o]===O})),dataStartIndex:c,dataEndIndex:u}),M=P.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],i=null==t?void 0:t[1];if(n&&i&&Co(n)&&Co(i))return!0}return!1})(r.props.domain,m,y)&&(S=bO(r.props.domain,null,m),!h||"number"!==y&&"auto"===b||(A=nO(P,v,"category")));var E=L_(y);if(!S||0===S.length){var k,_=null!==(k=r.props.domain)&&void 0!==k?k:E;if(v){if(S=nO(P,v,y),"category"===y&&h){var T=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(S);g&&T?(j=S,S=LP(0,M)):g||(S=xO(_,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(M_(t),[e])}),[]))}else if("category"===y)S=g?S.filter((function(t){return""!==t&&!ho(t)})):xO(_,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||ho(e)?t:[].concat(M_(t),[e])}),[]);else if("number"===y){var C=function(t,e,r,n,i){var o=e.map((function(e){return oO(t,e,r,i,n)})).filter((function(t){return!ho(t)}));return o&&o.length?o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(P,n.filter((function(t){return t.props[o]===O&&(x||!t.props.hide)})),v,i,l);C&&(S=C)}!h||"number"!==y&&"auto"===b||(A=nO(P,v,"category"))}else S=h?LP(0,M):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:vO(a[O].stackGroups,c,u):aO(P,n.filter((function(t){return t.props[o]===O&&(x||!t.props.hide)})),y,l,!0);if("number"===y)S=Qk(s,S,O,i,w),_&&(S=bO(_,S,m));else if("category"===y&&_){var D=_;S.every((function(t){return D.indexOf(t)>=0}))&&(S=D)}}return T_(T_({},e),{},C_({},O,T_(T_({},r.props),{},{axisType:i,domain:S,categoricalDomain:A,duplicateDomain:j,originalDomain:null!==(p=r.props.domain)&&void 0!==p?p:E,isCategorical:h,layout:l})))}),{})},U_=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=na(l,i),h={};return f&&f.length?h=F_(t,{axes:f,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(h=function(t,e){var r=e.graphicalItems,n=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=$_(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),h=f.length,p=cO(l,i),d=-1;return r.reduce((function(t,e){var y,v=e.props[o],m=L_("number");return t[v]?t:(d++,p?y=LP(0,h):a&&a[v]&&a[v].hasStack?(y=vO(a[v].stackGroups,c,u),y=Qk(s,y,v,i)):(y=bO(m,aO(f,r.filter((function(t){return t.props[o]===v&&!t.props.hide})),"number",l),n.defaultProps.allowDataOverflow),y=Qk(s,y,v,i)),T_(T_({},t),{},C_({},v,T_(T_({axisType:i},n.defaultProps),{},{hide:!0,orientation:fo(I_,"".concat(i,".").concat(d%2),null),domain:y,originalDomain:m,isCategorical:p,layout:l}))))}),{})}(t,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),h},V_=function(t){var e=t.children,r=t.defaultShowTooltip,n=ia(e,iM),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(i=n.props.startIndex),n.props.endIndex>=0&&(o=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},W_=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},q_=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),i=void 0===n?{}:n,o=t.yAxisMap,a=void 0===o?{}:o,c=r.width,u=r.height,l=r.children,s=r.margin||{},f=ia(l,iM),h=ia(l,_h),p=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:T_(T_({},t),{},C_({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),d=Object.keys(i).reduce((function(t,e){var r=i[e],n=r.orientation;return r.mirror||r.hide?t:T_(T_({},t),{},C_({},n,fo(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),y=T_(T_({},d),p),v=y.bottom;f&&(y.bottom+=f.props.height||iM.defaultProps.height),h&&e&&(y=function(t,e,r,n){var i=r.children,o=r.width,a=r.margin,c=o-(a.left||0)-(a.right||0),u=Kx({children:i,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,h=u.align,p=u.verticalAlign,d=u.layout;if(("vertical"===d||"horizontal"===d&&"middle"===p)&&"center"!==h&&Co(t[h]))return Jx(Jx({},t),{},Qx({},h,t[h]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===h)&&"middle"!==p&&Co(t[p]))return Jx(Jx({},t),{},Qx({},p,t[p]+(f||0)))}return t}(y,0,r,e));var m=c-y.left-y.right,g=u-y.top-y.bottom;return T_(T_({brushBottom:v},y),{},{width:Math.max(m,0),height:Math.max(g,0)})},X_=function(t){var e,r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,o=void 0===i?"axis":i,a=t.validateTooltipEventTypes,c=void 0===a?["axis"]:a,u=t.axisComponents,l=t.legendContent,s=t.formatAxisMap,f=t.defaultProps,h=function(t,e){var r=e.graphicalItems,n=e.stackGroups,i=e.offset,o=e.updateId,a=e.dataStartIndex,c=e.dataEndIndex,l=t.barSize,s=t.layout,f=t.barGap,h=t.barCategoryGap,p=t.maxBarSize,d=W_(s),y=d.numericAxisName,v=d.cateAxisName,m=function(t){return!(!t||!t.length)&&t.some((function(t){var e=Qo(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),g=m&&function(t){var e=t.barSize,r=t.stackGroups,n=void 0===r?{}:r;if(!n)return{};for(var i={},o=Object.keys(n),a=0,c=o.length;a<c;a++)for(var u=n[o[a]].stackGroups,l=Object.keys(u),s=0,f=l.length;s<f;s++){var h=u[l[s]],p=h.items,d=h.cateAxisId,y=p.filter((function(t){return Qo(t.type).indexOf("Bar")>=0}));if(y&&y.length){var v=y[0].props.barSize,m=y[0].props[d];i[m]||(i[m]=[]),i[m].push({item:y[0],stackList:y.slice(1),barSize:ho(v)?e:v})}}return i}({barSize:l,stackGroups:n}),b=[];return r.forEach((function(r,l){var d=$_(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:c}),m=r.props,w=m.dataKey,x=m.maxBarSize,O=r.props["".concat(y,"Id")],S=r.props["".concat(v,"Id")],j=u.reduce((function(t,n){var i,o,a=e["".concat(n.axisType,"Map")],c=r.props["".concat(n.axisType,"Id")];a&&a[c]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?$x(!1,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(i=null==r||null===(o=r.type)||void 0===o?void 0:o.displayName)&&void 0!==i?i:"")):$x(!1));var u=a[c];return T_(T_({},t),{},C_(C_({},n.axisType,u),"".concat(n.axisType,"Ticks"),uO(u)))}),{}),A=j[v],P=j["".concat(v,"Ticks")],M=n&&n[O]&&n[O].hasStack&&function(t,e){var r=t.props.stackId;if(Do(r)){var n=e[r];if(n){var i=n.items.indexOf(t);return i>=0?n.stackedData[i]:null}}return null}(r,n[O].stackGroups),E=Qo(r.type).indexOf("Bar")>=0,k=wO(A,P),_=[];if(E){var T,C,D=ho(x)?p:x,I=null!==(T=null!==(C=wO(A,P,!0))&&void 0!==C?C:D)&&void 0!==T?T:0;_=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,c=o.length;if(c<1)return null;var u,l=Bo(e,n,0,!0),s=[];if(o[0].barSize===+o[0].barSize){var f=!1,h=n/c,p=o.reduce((function(t,e){return t+e.barSize||0}),0);(p+=(c-1)*l)>=n&&(p-=(c-1)*l,l=0),p>=n&&h>0&&(f=!0,p=c*(h*=.9));var d={offset:((n-p)/2>>0)-l,size:0};u=o.reduce((function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+l,size:f?h:e.barSize}},n=[].concat(tO(t),[r]);return d=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:d})})),n}),s)}else{var y=Bo(r,n,0,!0);n-2*y-(c-1)*l<=0&&(l=0);var v=(n-2*y-(c-1)*l)/c;v>1&&(v>>=0);var m=a===+a?Math.min(v,a):v;u=o.reduce((function(t,e,r){var n=[].concat(tO(t),[{item:e.item,position:{offset:y+(v+l)*r+(v-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:n[n.length-1].position})})),n}),s)}return u}({barGap:f,barCategoryGap:h,bandSize:I!==k?I:k,sizeList:g[S],maxBarSize:D}),I!==k&&(_=_.map((function(t){return T_(T_({},t),{},{position:T_(T_({},t.position),{},{offset:t.position.offset-I/2})})})))}var N,B,R=r&&r.type&&r.type.getComposedData;R&&b.push({props:T_(T_({},R(T_(T_({},j),{},{displayedData:d,props:t,dataKey:w,item:r,bandSize:k,barPosition:_,offset:i,stackedData:M,layout:s,dataStartIndex:a,dataEndIndex:c}))),{},C_(C_(C_({key:r.key||"item-".concat(l)},y,j[y]),v,j[v]),"animationId",o)),childIndex:(N=r,B=t.children,ra(B).indexOf(N)),item:r})})),b},p=function(t,e){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,c=t.updateId;if(!oa({props:i}))return null;var l=i.children,f=i.layout,p=i.stackOffset,d=i.data,y=i.reverseStackOrder,v=W_(f),m=v.numericAxisName,g=v.cateAxisName,b=na(l,n),w=function(t,e,r,n,i,o){if(!t)return null;var a=(o?e.reverse():e).reduce((function(t,e){var i=e.props,o=i.stackId;if(i.hide)return t;var a=e.props[r],c=t[a]||{hasStack:!1,stackGroups:{}};if(Do(o)){var u=c.stackGroups[o]||{numericAxisId:r,cateAxisId:n,items:[]};u.items.push(e),c.hasStack=!0,c.stackGroups[o]=u}else c.stackGroups[No("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return Jx(Jx({},t),{},Qx({},a,c))}),{});return Object.keys(a).reduce((function(e,o){var c=a[o];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,o){var a=c.stackGroups[o];return Jx(Jx({},e),{},Qx({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:pO(t,a.items,i)}))}),{})),Jx(Jx({},e),{},Qx({},o,c))}),{})}(d,b,"".concat(m,"Id"),"".concat(g,"Id"),p,y),x=u.reduce((function(t,e){var r="".concat(e.axisType,"Map");return T_(T_({},t),{},C_({},r,U_(i,T_(T_({},e),{},{graphicalItems:b,stackGroups:e.axisType===m&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),O=q_(T_(T_({},x),{},{props:i,graphicalItems:b}),null==e?void 0:e.legendBBox);Object.keys(x).forEach((function(t){x[t]=s(i,x[t],O,t.replace("Map",""),r)}));var S,j,A=x["".concat(g,"Map")],P=(S=Ro(A),{tooltipTicks:j=uO(S,!1,!0),orderedTooltipTicks:kp(j,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:wO(S,j)}),M=h(i,T_(T_({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:c,graphicalItems:b,stackGroups:w,offset:O}));return T_(T_({formattedGraphicalItems:M,graphicalItems:b,offset:O,stackGroups:w},P),x)};return e=function(t){function e(t){var n,i,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),C_(A_(o=O_(this,e,[t])),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),C_(A_(o),"accessibilityManager",new c_),C_(A_(o),"handleLegendBBoxUpdate",(function(t){if(t){var e=o.state,r=e.dataStartIndex,n=e.dataEndIndex,i=e.updateId;o.setState(T_({legendBBox:t},p({props:o.props,dataStartIndex:r,dataEndIndex:n,updateId:i},T_(T_({},o.state),{},{legendBBox:t}))))}})),C_(A_(o),"handleReceiveSyncEvent",(function(t,e,r){if(o.props.syncId===t){if(r===o.eventEmitterSymbol&&"function"!=typeof o.props.syncMethod)return;o.applySyncEvent(e)}})),C_(A_(o),"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==o.state.dataStartIndex||r!==o.state.dataEndIndex){var n=o.state.updateId;o.setState((function(){return T_({dataStartIndex:e,dataEndIndex:r},p({props:o.props,dataStartIndex:e,dataEndIndex:r,updateId:n},o.state))})),o.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),C_(A_(o),"handleMouseEnter",(function(t){var e=o.getMouseInfo(t);if(e){var r=T_(T_({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseEnter;bn(n)&&n(r,t)}})),C_(A_(o),"triggeredAfterMouseMove",(function(t){var e=o.getMouseInfo(t),r=e?T_(T_({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseMove;bn(n)&&n(r,t)})),C_(A_(o),"handleItemMouseEnter",(function(t){o.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),C_(A_(o),"handleItemMouseLeave",(function(){o.setState((function(){return{isTooltipActive:!1}}))})),C_(A_(o),"handleMouseMove",(function(t){t.persist(),o.throttleTriggeredAfterMouseMove(t)})),C_(A_(o),"handleMouseLeave",(function(t){o.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};o.setState(e),o.triggerSyncEvent(e);var r=o.props.onMouseLeave;bn(r)&&r(e,t)})),C_(A_(o),"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&Jo[e]?Jo[e]:null}(t),n=fo(o.props,"".concat(r));r&&bn(n)&&n(null!==(e=/.*touch.*/i.test(r)?o.getMouseInfo(t.changedTouches[0]):o.getMouseInfo(t))&&void 0!==e?e:{},t)})),C_(A_(o),"handleClick",(function(t){var e=o.getMouseInfo(t);if(e){var r=T_(T_({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onClick;bn(n)&&n(r,t)}})),C_(A_(o),"handleMouseDown",(function(t){var e=o.props.onMouseDown;bn(e)&&e(o.getMouseInfo(t),t)})),C_(A_(o),"handleMouseUp",(function(t){var e=o.props.onMouseUp;bn(e)&&e(o.getMouseInfo(t),t)})),C_(A_(o),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),C_(A_(o),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseDown(t.changedTouches[0])})),C_(A_(o),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseUp(t.changedTouches[0])})),C_(A_(o),"triggerSyncEvent",(function(t){void 0!==o.props.syncId&&e_.emit(r_,o.props.syncId,t,o.eventEmitterSymbol)})),C_(A_(o),"applySyncEvent",(function(t){var e=o.props,r=e.layout,n=e.syncMethod,i=o.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)o.setState(T_({dataStartIndex:a,dataEndIndex:c},p({props:o.props,dataStartIndex:a,dataEndIndex:c,updateId:i},o.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=o.state,h=f.offset,d=f.tooltipTicks;if(!h)return;if("function"==typeof n)s=n(d,t);else if("value"===n){s=-1;for(var y=0;y<d.length;y++)if(d[y].value===t.activeLabel){s=y;break}}var v=T_(T_({},h),{},{x:h.left,y:h.top}),m=Math.min(u,v.x+v.width),g=Math.min(l,v.y+v.height),b=d[s]&&d[s].value,w=z_(o.state,o.props.data,s),x=d[s]?{x:"horizontal"===r?d[s].coordinate:m,y:"horizontal"===r?g:d[s].coordinate}:B_;o.setState(T_(T_({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else o.setState(t)})),C_(A_(o),"renderCursor",(function(t){var e,n=o.state,i=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,u=n.offset,l=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=o.getTooltipEventType(),h=null!==(e=t.props.active)&&void 0!==e?e:i,p=o.props.layout,d=t.key||"_recharts-cursor";return Y.createElement(d_,{key:d,activeCoordinate:a,activePayload:c,activeTooltipIndex:l,chartName:r,element:t,isActive:h,layout:p,offset:u,tooltipAxisBandSize:s,tooltipEventType:f})})),C_(A_(o),"renderPolarAxis",(function(t,e,r){var n=fo(t,"type.axisType"),i=fo(o.state,"".concat(n,"Map")),a=i&&i[t.props["".concat(n,"Id")]];return ot(t,T_(T_({},a),{},{className:n,key:t.key||"".concat(e,"-").concat(r),ticks:uO(a,!0)}))})),C_(A_(o),"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,i=e.polarRadius,a=o.state,c=a.radiusAxisMap,u=a.angleAxisMap,l=Ro(c),s=Ro(u),f=s.cx,h=s.cy,p=s.innerRadius,d=s.outerRadius;return ot(t,{polarAngles:Array.isArray(n)?n:uO(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(i)?i:uO(l,!0).map((function(t){return t.coordinate})),cx:f,cy:h,innerRadius:p,outerRadius:d,key:t.key||"polar-grid",radialLines:r})})),C_(A_(o),"renderLegend",(function(){var t=o.state.formattedGraphicalItems,e=o.props,r=e.children,n=e.width,i=e.height,a=o.props.margin||{},c=n-(a.left||0)-(a.right||0),u=Kx({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:l});if(!u)return null;var s=u.item,f=w_(u,y_);return ot(s,T_(T_({},f),{},{chartWidth:n,chartHeight:i,margin:a,onBBoxUpdate:o.handleLegendBBoxUpdate}))})),C_(A_(o),"renderTooltip",(function(){var t,e=o.props,r=e.children,n=e.accessibilityLayer,i=ia(r,yd);if(!i)return null;var a=o.state,c=a.isTooltipActive,u=a.activeCoordinate,l=a.activePayload,s=a.activeLabel,f=a.offset,h=null!==(t=i.props.active)&&void 0!==t?t:c;return ot(i,{viewBox:T_(T_({},f),{},{x:f.left,y:f.top}),active:h,label:s,payload:h?l:[],coordinate:u,accessibilityLayer:n})})),C_(A_(o),"renderBrush",(function(t){var e=o.props,r=e.margin,n=e.data,i=o.state,a=i.offset,c=i.dataStartIndex,u=i.dataEndIndex,l=i.updateId;return ot(t,{key:t.key||"_recharts-brush",onChange:sO(o.handleBrushChange,t.props.onChange),data:n,x:Co(t.props.x)?t.props.x:a.left,y:Co(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Co(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),C_(A_(o),"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=A_(o).clipPathId,i=o.state,a=i.xAxisMap,c=i.yAxisMap,u=i.offset,l=t.props,s=l.xAxisId,f=l.yAxisId;return ot(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[s],yAxis:c[f],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:n})})),C_(A_(o),"renderActivePoints",(function(t){var r=t.item,n=t.activePoint,i=t.basePoint,o=t.childIndex,a=t.isRange,c=[],u=r.props.key,l=r.item.props,s=l.activeDot,f=T_(T_({index:o,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:iO(r.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(u,"-activePoint-").concat(o)},ua(s,!1)),qo(s));return c.push(e.renderActiveDot(s,f)),i?c.push(e.renderActiveDot(s,T_(T_({},f),{},{cx:i.x,cy:i.y,key:"".concat(u,"-basePoint-").concat(o)}))):a&&c.push(null),c})),C_(A_(o),"renderGraphicChild",(function(t,e,r){var n=o.filterFormatItem(t,e,r);if(!n)return null;var i=o.getTooltipEventType(),a=o.state,c=a.isTooltipActive,u=a.tooltipAxis,l=a.activeTooltipIndex,s=a.activeLabel,f=ia(o.props.children,yd),h=n.props,p=h.points,d=h.isRange,y=h.baseLine,v=n.item.props,m=v.activeDot,g=v.hide,b=v.activeBar,w=v.activeShape,x=Boolean(!g&&c&&f&&(m||b||w)),O={};"axis"!==i&&f&&"click"===f.props.trigger?O={onClick:sO(o.handleItemMouseEnter,t.props.onClick)}:"axis"!==i&&(O={onMouseLeave:sO(o.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:sO(o.handleItemMouseEnter,t.props.onMouseEnter)});var S=ot(t,T_(T_({},n.props),O));if(x){if(!(l>=0)){var j,A=(null!==(j=o.getItemByXY(o.state.activeCoordinate))&&void 0!==j?j:{graphicalItem:S}).graphicalItem,P=A.item,M=void 0===P?t:P,E=A.childIndex,k=T_(T_(T_({},n.props),O),{},{activeIndex:E});return[ot(M,k),null,null]}var _,T;if(u.dataKey&&!u.allowDuplicatedCategory){var C="function"==typeof u.dataKey?function(t){return"function"==typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());_=Lo(p,C,s),T=d&&y&&Lo(y,C,s)}else _=null==p?void 0:p[l],T=d&&y&&y[l];if(w||b){var D=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[ot(t,T_(T_(T_({},n.props),O),{},{activeIndex:D})),null,null]}if(!ho(_))return[S].concat(M_(o.renderActivePoints({item:n,activePoint:_,basePoint:T,childIndex:l,isRange:d})))}return d?[S,null,null]:[S,null]})),C_(A_(o),"renderCustomized",(function(t,e,r){return ot(t,T_(T_({key:"recharts-customized-".concat(r)},o.props),o.state))})),C_(A_(o),"renderMap",{CartesianGrid:{handler:R_,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:R_},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:R_},YAxis:{handler:R_},Brush:{handler:o.renderBrush,once:!0},Bar:{handler:o.renderGraphicChild},Line:{handler:o.renderGraphicChild},Area:{handler:o.renderGraphicChild},Radar:{handler:o.renderGraphicChild},RadialBar:{handler:o.renderGraphicChild},Scatter:{handler:o.renderGraphicChild},Pie:{handler:o.renderGraphicChild},Funnel:{handler:o.renderGraphicChild},Tooltip:{handler:o.renderCursor,once:!0},PolarGrid:{handler:o.renderPolarGrid,once:!0},PolarAngleAxis:{handler:o.renderPolarAxis},PolarRadiusAxis:{handler:o.renderPolarAxis},Customized:{handler:o.renderCustomized}}),o.clipPathId="".concat(null!==(n=t.id)&&void 0!==n?n:No("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=$d(o.triggeredAfterMouseMove,null!==(i=t.throttleDelay)&&void 0!==i?i:1e3/60),o.state={},o}var n,i,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&P_(t,e)}(e,lt),n=e,i=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,i=t.layout,o=ia(e,yd);if(o){var a=o.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=z_(this.state,r,a,c),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===i?{x:l,y:s}:{y:l,x:s},h=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));h&&(f=T_(T_({},f),h.props.points[a].tooltipPosition),u=h.props.points[a].tooltipPayload);var p={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(p),this.renderCursor(o),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){return this.props.accessibilityLayer?(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}}),null):null;var r,n}},{key:"componentDidUpdate",value:function(t){la([ia(t.children,yd)],[ia(this.props.children,yd)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=ia(this.props.children,yd);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return c.indexOf(e)>=0?e:o}return o}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),i={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},o={chartX:Math.round(t.pageX-i.left),chartY:Math.round(t.pageY-i.top)},a=n.width/r.offsetWidth||1,c=this.inRange(o.chartX,o.chartY,a);if(!c)return null;var u=this.state,l=u.xAxisMap,s=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&s){var f=Ro(l).scale,h=Ro(s).scale,p=f&&f.invert?f.invert(o.chartX):null,d=h&&h.invert?h.invert(o.chartY):null;return T_(T_({},o),{},{xValue:p,yValue:d})}var y=H_(this.state,this.props.data,this.props.layout,c);return y?T_(T_({},o),y):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,i=t/r,o=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return i>=a.left&&i<=a.left+a.width&&o>=a.top&&o<=a.top+a.height?{x:i,y:o}:null}var c=this.state,u=c.angleAxisMap,l=c.radiusAxisMap;if(u&&l){var s=Ro(u);return CO({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=ia(t,yd),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),T_(T_({},qo(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){e_.on(r_,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){e_.removeListener(r_,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,i=0,o=n.length;i<o;i++){var a=n[i];if(a.item===t||a.props.key===t.key||e===Qo(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,i=e.height,o=e.width;return Y.createElement("defs",null,Y.createElement("clipPath",{id:t},Y.createElement("rect",{x:r,y:n,height:i,width:o})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=b_(e,2),n=r[0],i=r[1];return T_(T_({},t),{},C_({},n,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=b_(e,2),n=r[0],i=r[1];return T_(T_({},t),{},C_({},n,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var i=0,o=r.length;i<o;i++){var a=r[i],c=a.props,u=a.item,l=Qo(u.type);if("Bar"===l){var s=(c.data||[]).find((function(e){return IA(t,e)}));if(s)return{graphicalItem:a,payload:s}}else if("RadialBar"===l){var f=(c.data||[]).find((function(e){return CO(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if(AP(a,n)||PP(a,n)||MP(a,n)){var h=TP({graphicalItem:a,activeTooltipItem:n,itemData:u.props.data}),p=void 0===u.props.activeIndex?h:u.props.activeIndex;return{graphicalItem:T_(T_({},a),{},{childIndex:p}),payload:MP(a,n)?u.props.data[h]:a.props.data[h]}}}return null}},{key:"render",value:function(){var t,e=this;if(!oa(this))return null;var r,n,i=this.props,o=i.children,a=i.className,c=i.width,u=i.height,l=i.style,s=i.compact,f=i.title,h=i.desc,p=w_(i,v_),d=ua(p,!1);if(s)return Y.createElement(bE,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Y.createElement(ya,g_({},d,{width:c,height:u,title:f,desc:h}),this.renderClipPath(),fa(o,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=null!==(r=this.props.tabIndex)&&void 0!==r?r:0,d.role=null!==(n=this.props.role)&&void 0!==n?n:"application",d.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},d.onFocus=function(){e.accessibilityManager.focus()});var y=this.parseEventsOfWrapper();return Y.createElement(bE,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Y.createElement("div",g_({className:Lr("recharts-wrapper",a),style:T_({position:"relative",cursor:"default",width:c,height:u},l)},y,{ref:function(t){e.container=t},role:null!==(t=d.role)&&void 0!==t?t:"region"}),Y.createElement(ya,g_({},d,{width:c,height:u,title:f,desc:h,style:N_}),this.renderClipPath(),fa(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&x_(n.prototype,i),a&&x_(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(),C_(e,"displayName",r),C_(e,"defaultProps",T_({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),C_(e,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,i=t.children,o=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var h=V_(t);return T_(T_(T_({},h),{},{updateId:0},p(T_(T_({props:t},h),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(r!==e.prevDataKey||n!==e.prevData||o!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||u!==e.prevStackOffset||!zo(l,e.prevMargin)){var d=V_(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=T_(T_({},H_(e,n,c)),{},{updateId:e.updateId+1}),m=T_(T_(T_({},d),y),v);return T_(T_(T_({},m),p(T_({props:t},m),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(!la(i,e.prevChildren)){var g,b,w,x,O=ia(i,iM),S=O&&null!==(g=null===(b=O.props)||void 0===b?void 0:b.startIndex)&&void 0!==g?g:s,j=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,A=S!==s||j!==f,P=!ho(n)&&!A?e.updateId:e.updateId+1;return T_(T_({updateId:P},p(T_(T_({props:t},e),{},{updateId:P,dataStartIndex:S,dataEndIndex:j}),e)),{},{prevChildren:i,dataStartIndex:S,dataEndIndex:j})}return null})),C_(e,"renderActiveDot",(function(t,e){var r;return r=K(t)?ot(t,e):bn(t)?t(e):Y.createElement($A,e),Y.createElement(ba,{className:"recharts-active-dot",key:e.key},r)})),e},Y_=X_({chartName:"LineChart",GraphicalChild:_k,axisComponents:[{axisType:"xAxis",AxisComp:Yk},{axisType:"yAxis",AxisComp:Gk}],formatAxisMap:oE}),K_=X_({chartName:"AreaChart",GraphicalChild:qk,axisComponents:[{axisType:"xAxis",AxisComp:Yk},{axisType:"yAxis",AxisComp:Gk}],formatAxisMap:oE});const G_=({data:r,dataKey:n,width:i="100%",height:o="100%",areaType:a="linear",showTooltip:c=!1,isAnimated:u=!1,formatter:l,sampleRate:s,style:f})=>{const{isNetGain:h}=mr({data:r,dataKey:n}),p=h?wr.mint():wr.coolElegance(),d=crypto.randomUUID(),y=s?br({arr:r||[],n:s}):r,v=y?.map((t=>({...t,[n]:Number(t[n])||0}))),m={cursor:c?"crosshair":"default",...f};return e(Wd,{width:i,minHeight:o,children:t(K_,{data:v,margin:{top:20,right:0,left:0,bottom:20},style:m,children:[e("defs",{children:t("linearGradient",{id:d,x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:p,stopOpacity:.8}),e("stop",{offset:"95%",stopColor:p,stopOpacity:0})]})}),e(Gk,{domain:["dataMin","dataMax"],hide:!0}),e(qk,{type:a,dataKey:n,stroke:p,fill:`url(#${d})`,isAnimationActive:u}),c&&e(yd,{cursor:!1,formatter:l})]})})},Z_=()=>{const t=u({ssr:!1});return e(l,{children:e(s,{bgColor:{base:"rgba(255, 143, 163, 0.9)",sm:"rgba(255, 117, 143, 0.9)",md:"rgba(255, 77, 109, 0.9)",lg:"rgba(201, 24, 74, 0.9)",xl:"rgba(164, 19, 60, 0.9)","2xl":"rgba(128, 15, 47, 0.9)"},color:{base:"black",md:"white"},position:"absolute",top:"0",right:"0",padding:"2",fontSize:"xs",zIndex:"5",width:"10rem",children:t})})},J_=({children:t,...r})=>e(f,{border:"solid 1px",borderColor:wr.coolElegance(),padding:"1",borderRadius:"lg",bg:"white",width:"fit-content",size:"sm",...r,children:t}),Q_=({isSelected:t,children:r,...n})=>e(h,{paddingX:"1",fontSize:"sm",color:t?"brand.500":wr.coolElegance(),bg:"transparent",border:"solid 1px",borderColor:t?"brand.50":"transparent",boxShadow:"none",_hover:{bg:"brand.50",color:"brand.500"},...n,children:r}),tT=({children:t,...r})=>e(p,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:wr.coolElegance(),boxShadow:"none",borderRadius:"xl",...r,children:t}),eT=r=>{const{size:n,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,errorMessage:u,label:l,labelPosition:s="left",spaceBetween:f,...h}=r;let p;return c||(p=e(xt,{})),t(d,{as:y,flexDir:"column",isInvalid:Boolean(u),isDisabled:i,isReadOnly:o,isRequired:a,...h,children:[t(y,{w:"full",justifyContent:f?"space-between":"auto",children:["left"===s&&e(v,{fontSize:n,m:"0",mr:"3",children:l}),e(m,{icon:p,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,isInvalid:Boolean(u),size:n}),"right"===s&&e(v,{fontSize:n,m:"0",ml:"3",children:l})]}),e(y,{w:"full",children:u&&e(g,{size:n,children:u})})]})},rT=({children:t,onSubmit:r,...n})=>e(y,{as:"form",onSubmit:t=>{t.preventDefault(),r&&r(t)},noValidate:!0,gap:"6",flexDir:"column",...n,children:t});var nT=function(){return nT=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},nT.apply(this,arguments)};function iT(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var oT=function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},aT={k:1e3,m:1e6,b:1e9},cT=function(t){var e=t.value,r=t.groupSeparator,n=void 0===r?",":r,i=t.decimalSeparator,o=void 0===i?".":i,a=t.allowDecimals,c=void 0===a||a,u=t.decimalsLimit,l=void 0===u?2:u,s=t.allowNegativeValue,f=void 0===s||s,h=t.disableAbbreviations,p=void 0!==h&&h,d=t.prefix,y=void 0===d?"":d,v=t.transformRawValue,m=(void 0===v?function(t){return t}:v)(e);if("-"===m)return m;var g=p?[]:["k","m","b"],b=new RegExp("((^|\\D)-\\d)|(-".concat(oT(y),")")).test(m),w=RegExp("(\\d+)-?".concat(oT(y))).exec(e)||[],x=w[0],O=w[1],S=function(t,e){void 0===e&&(e=",");var r=new RegExp(oT(e),"g");return t.replace(r,"")}(y?x?m.replace(x,"").concat(O):m.replace(y,""):m,n),j=function(t,e){var r=oT(e.join("")),n=new RegExp("[^\\d".concat(r,"]"),"gi");return t.replace(n,"")}(S,iT([n,o],g,!0)),A=j;if(!p){if(g.some((function(t){return t===j.toLowerCase().replace(o,"")})))return"";var P=function(t,e){void 0===e&&(e=".");var r=new RegExp("(\\d+(".concat(oT(e),"\\d*)?)([kmb])$"),"i"),n=t.match(r);if(n){var i=n[1],o=n[3],a=aT[o.toLowerCase()];return Number(i.replace(e,"."))*a}}(j,o);P&&(A=String(P))}var M=b&&f?"-":"";if(o&&A.includes(o)){var E=j.split(o),k=E[0],_=E[1],T=l&&_?_.slice(0,l):_,C=c?"".concat(o).concat(T):"";return"".concat(M).concat(k).concat(C)}return"".concat(M).concat(A)},uT=function(t,e){var r=e.groupSeparator,n=void 0===r?",":r,i=e.decimalSeparator,o=void 0===i?".":i,a=new RegExp("\\d([^".concat(oT(n)).concat(oT(o),"0-9]+)")),c=t.match(a);return c?c[1]:void 0},lT=function(t){var e=t.value,r=t.decimalSeparator,n=t.intlConfig,i=t.decimalScale,o=t.prefix,a=void 0===o?"":o,c=t.suffix,u=void 0===c?"":c;if(""===e||void 0===e)return"";if("-"===e)return"-";var l=new RegExp("^\\d?-".concat(a?"".concat(oT(a),"?"):"","\\d")).test(e),s="."!==r?sT(e,r,l):e;r&&"-"!==r&&s.startsWith(r)&&(s="0"+s);var f={minimumFractionDigits:i||0,maximumFractionDigits:20},h=(n?new Intl.NumberFormat(n.locale,n.currency?nT(nT({},f),{style:"currency",currency:n.currency}):f):new Intl.NumberFormat(void 0,f)).formatToParts(Number(s)),p=fT(h,t),d=uT(p,nT({},t)),y=e.slice(-1)===r?r:"",v=(s.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return void 0===i&&v&&r&&(p=p.includes(r)?p.replace(RegExp("(\\d+)(".concat(oT(r),")(\\d+)"),"g"),"$1$2".concat(v)):d&&!u?p.replace(d,"".concat(r).concat(v).concat(d)):"".concat(p).concat(r).concat(v)),u&&y?"".concat(p).concat(y).concat(u):d&&y?p.replace(d,"".concat(y).concat(d)):d&&u?p.replace(d,"".concat(y).concat(u)):[p,y,u].join("")},sT=function(t,e,r){var n=t;return e&&"."!==e&&(n=n.replace(RegExp(oT(e),"g"),"."),r&&"-"===e&&(n="-".concat(n.slice(1)))),n},fT=function(t,e){var r=e.prefix,n=e.groupSeparator,i=e.decimalSeparator,o=e.decimalScale,a=e.disableGroupSeparators,c=void 0!==a&&a;return t.reduce((function(t,e,a){var u=e.type,l=e.value;return 0===a&&r?"minusSign"===u?[l,r]:"currency"===u?iT(iT([],t,!0),[r],!1):[r,l]:"currency"===u?r?t:iT(iT([],t,!0),[l],!1):"group"===u?c?t:iT(iT([],t,!0),[void 0!==n?n:l],!1):"decimal"===u?void 0!==o&&0===o?t:iT(iT([],t,!0),[void 0!==i?i:l],!1):iT(iT([],t,!0),"fraction"===u?[void 0!==o?l.slice(0,o):l]:[l],!1)}),[""]).join("")},hT={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},pT=function(t){return RegExp(/\d/,"gi").test(t)},dT=J((function(t,e){var r=t.allowDecimals,n=void 0===r||r,i=t.allowNegativeValue,o=void 0===i||i,a=t.id,c=t.name,u=t.className,l=t.customInput,s=t.decimalsLimit,f=t.defaultValue,h=t.disabled,p=void 0!==h&&h,d=t.maxLength,y=t.value,v=t.onValueChange,m=t.fixedDecimalLength,g=t.placeholder,b=t.decimalScale,w=t.prefix,x=t.suffix,O=t.intlConfig,S=t.step,j=t.min,A=t.max,P=t.disableGroupSeparators,M=void 0!==P&&P,E=t.disableAbbreviations,k=void 0!==E&&E,_=t.decimalSeparator,T=t.groupSeparator,C=t.onChange,D=t.onFocus,I=t.onBlur,N=t.onKeyDown,B=t.onKeyUp,R=t.transformRawValue,$=t.formatValueOnBlur,L=void 0===$||$,z=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}(t,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue","formatValueOnBlur"]);if(_&&pT(_))throw new Error("decimalSeparator cannot be a number");if(T&&pT(T))throw new Error("groupSeparator cannot be a number");var H=it((function(){return function(t){var e=t||{},r=e.locale,n=e.currency;return(r?new Intl.NumberFormat(r,n?{currency:n,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(t,e,r){return"currency"===e.type?nT(nT({},t),0===r?{currencySymbol:e.value,prefix:e.value}:{currencySymbol:e.value,suffix:e.value}):"group"===e.type?nT(nT({},t),{groupSeparator:e.value}):"decimal"===e.type?nT(nT({},t),{decimalSeparator:e.value}):t}),hT)}(O)}),[O]),F=_||H.decimalSeparator||"",U=T||H.groupSeparator||"";if(F&&U&&F===U&&!1===M)throw new Error("decimalSeparator cannot be the same as groupSeparator");var V={decimalSeparator:F,groupSeparator:U,disableGroupSeparators:M,intlConfig:O,prefix:w||H.prefix,suffix:x},W={decimalSeparator:F,groupSeparator:U,allowDecimals:n,decimalsLimit:s||m||2,allowNegativeValue:o,disableAbbreviations:k,prefix:w||H.prefix,transformRawValue:R},q=et((function(){return null!=f?lT(nT(nT({},V),{decimalScale:b,value:String(f)})):null!=y?lT(nT(nT({},V),{decimalScale:b,value:String(y)})):""})),X=q[0],K=q[1],G=et(!1),Z=G[0],J=G[1],rt=et(0),ot=rt[0],at=rt[1],ct=et(0),ut=ct[0],lt=ct[1],st=et(null),ft=st[0],ht=st[1],pt=Q(null);tt(e,(function(){return pt.current}));var dt=function(t,e){J(!0);var r=function(t){var e=t.selectionStart,r=t.value,n=t.lastKeyStroke,i=t.stateValue,o=t.groupSeparator,a=e,c=r;if(i&&a){var u=r.split("");return"Backspace"===n&&i[a]===o&&(u.splice(a-1,1),a-=1),"Delete"===n&&i[a]===o&&(u.splice(a,1),a+=1),{modifiedValue:c=u.join(""),cursorPosition:a}}return{modifiedValue:c,cursorPosition:e}}({selectionStart:e,value:t,lastKeyStroke:ft,stateValue:X,groupSeparator:U}),n=r.modifiedValue,i=r.cursorPosition,o=cT(nT({value:n},W));if(!(d&&o.replace(/-/g,"").length>d)){if(""===o||"-"===o||o===F)return v&&v(void 0,c,{float:null,formatted:"",value:""}),K(o),void at(1);var a=F?o.replace(F,"."):o,u=parseFloat(a),l=lT(nT({value:o},V));if(null!=i){var s=i+(l.length-t.length);s=s<=0?w?w.length:0:s,at(s),lt(ut+1)}if(K(l),v)v(o,c,{float:u,formatted:l,value:o})}};nt((function(){null==y&&null==f&&K("")}),[f,y]),nt((function(){Z&&"-"!==X&&pt.current&&document.activeElement===pt.current&&pt.current.setSelectionRange(ot,ot)}),[X,ot,pt,Z,ut]);var yt=nT({type:"text",inputMode:"decimal",id:a,name:c,className:u,onChange:function(t){var e=t.target,r=e.value,n=e.selectionStart;dt(r,n),C&&C(t)},onBlur:function(t){var e=t.target.value,r=cT(nT({value:e},W));if("-"===r||r===F||!r)return K(""),void(I&&I(t));var n=function(t,e,r){if(void 0!==r&&t.length>1){if(0===r)return t.replace(e,"");if(t.includes(e)){var n=t.split(e),i=n[0];if((c=n[1]).length===r)return t;if(c.length>r)return"".concat(i).concat(e).concat(c.slice(0,r))}var o=t.length>r?new RegExp("(\\d+)(\\d{".concat(r,"})")):new RegExp("(\\d)(\\d+)"),a=t.match(o);if(a){i=a[1];var c=a[2];return"".concat(i).concat(e).concat(c)}}return t}(r,F,m),i=function(t,e,r){if(void 0===e&&(e="."),void 0===r||""===t||void 0===t)return t;if(!t.match(/\d/g))return"";var n=t.split(e),i=n[0],o=n[1];if(0===r)return i;var a=o||"";if(a.length<r)for(;a.length<r;)a+="0";else a=a.slice(0,r);return"".concat(i).concat(e).concat(a)}(n,F,void 0!==b?b:m),o=parseFloat(i.replace(F,".")),a=lT(nT(nT({},V),{value:i}));v&&L&&v(i,c,{float:o,formatted:a,value:i}),K(a),I&&I(t)},onFocus:function(t){return D&&D(t),X?X.length:0},onKeyDown:function(t){var e=t.key;if(ht(e),S&&("ArrowUp"===e||"ArrowDown"===e)){t.preventDefault(),at(X.length);var r=parseFloat(null!=y?String(y).replace(F,"."):cT(nT({value:X},W)))||0,n="ArrowUp"===e?r+S:r-S;if(void 0!==j&&n<Number(j))return;if(void 0!==A&&n>Number(A))return;var i=String(S).includes(".")?Number(String(S).split(".")[1].length):void 0;dt(String(i?n.toFixed(i):n).replace(".",F))}N&&N(t)},onKeyUp:function(t){var e=t.key,r=t.currentTarget.selectionStart;if("ArrowUp"!==e&&"ArrowDown"!==e&&"-"!==X){var n=uT(X,{groupSeparator:U,decimalSeparator:F});if(n&&r&&r>X.length-n.length&&pt.current){var i=X.length-n.length;pt.current.setSelectionRange(i,i)}}B&&B(t)},placeholder:g,disabled:p,value:null==y||"-"===X||F&&X===F?X:lT(nT(nT({},V),{decimalScale:Z?void 0:b,value:String(y)})),ref:pt},z);if(l){var vt=l;return Y.createElement(vt,nT({},yt))}return Y.createElement("input",nT({},yt))}));dT.displayName="CurrencyInput";const yT=r=>{const{size:n,isDisabled:i,isReadOnly:o,isRequired:a,spellCheck:c=!1,name:u,label:l,register:s,errorMessage:f,helperText:h,leftAddon:p,leftElement:y,rightAddon:m,rightElement:P,type:M="text",...E}=r,k=gr(n),_=s?s(u):void 0,T="currency"===M?{as:dT,placeholder:"$0.00",prefix:"$",allowNegative:!1,disableAbbreviations:!0}:{};return t(d,{isInvalid:Boolean(f),isDisabled:i,isReadOnly:o,isRequired:a,children:[l&&e(v,{size:n,children:l}),t(b,{size:n,children:[p&&e(w,{bg:"transparent",children:p}),y&&e(x,{w:"auto",ml:"2",children:y}),e(O,{size:n,spellCheck:c,paddingLeft:y&&"2.25em",paddingRight:P&&"2.25em",type:"currency"===M?"text":M,..._,...T,...E}),P&&e(S,{w:"auto",mr:"2",children:P}),m&&e(j,{children:m})]}),f&&e(g,{size:n,children:f}),h&&e(A,{fontSize:k,children:h})]})};var vT=t=>null==t;var mT=t=>!vT(t)&&!Array.isArray(t)&&(t=>"object"==typeof t)(t)&&!(t=>t instanceof Date)(t),gT=t=>{const e=t.constructor&&t.constructor.prototype;return mT(e)&&e.hasOwnProperty("isPrototypeOf")},bT="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function wT(t){let e;const r=Array.isArray(t);if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else{if(bT&&(t instanceof Blob||t instanceof FileList)||!r&&!mT(t))return t;if(e=r?[]:{},r||gT(t))for(const r in t)t.hasOwnProperty(r)&&(e[r]=wT(t[r]));else e=t}return e}var xT=t=>Array.isArray(t)?t.filter(Boolean):[],OT=t=>void 0===t,ST=(t,e,r)=>{if(!e||!mT(t))return r;const n=xT(e.split(/[,[\].]+?/)).reduce(((t,e)=>vT(t)?t:t[e]),t);return OT(n)||n===t?OT(t[e])?r:t[e]:n},jT=t=>"boolean"==typeof t;const AT="onBlur",PT="onChange",MT="onSubmit",ET="onTouched",kT="all",_T="max",TT="min",CT="maxLength",DT="minLength",IT="pattern",NT="required",BT="validate",RT=Y.createContext(null);var $T=t=>mT(t)&&!Object.keys(t).length,LT=t=>Array.isArray(t)?t:[t];var zT=t=>"string"==typeof t,HT=t=>/^\w*$/.test(t),FT=t=>xT(t.replace(/["|']|\]/g,"").split(/\.|\[/)),UT=(t,e,r)=>{let n=-1;const i=HT(e)?[e]:FT(e),o=i.length,a=o-1;for(;++n<o;){const e=i[n];let o=r;if(n!==a){const r=t[e];o=mT(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}t[e]=o,t=t[e]}return t},VT=(t,e,r,n,i)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:i||!0}}:{},WT=()=>{const t="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const r=(16*Math.random()+t)%16|0;return("x"==e?r:3&r|8).toString(16)}))},qT=(t,e,r={})=>r.shouldFocus||OT(r.shouldFocus)?r.focusName||`${t}.${OT(r.focusIndex)?e:r.focusIndex}.`:"",XT=t=>({isOnSubmit:!t||t===MT,isOnBlur:t===AT,isOnChange:t===PT,isOnAll:t===kT,isOnTouch:t===ET});const YT=(t,e,r,n)=>{for(const i of r||Object.keys(t)){const r=ST(t,i);if(r){const{_f:t,...o}=r;if(t){if(t.refs&&t.refs[0]&&e(t.refs[0],i)&&!n)break;if(t.ref&&e(t.ref,t.name)&&!n)break;YT(o,e)}else mT(o)&&YT(o,e)}}};var KT=(t,e,r)=>{const n=xT(ST(t,r));return UT(n,"root",e[r]),UT(t,r,n),t},GT=t=>zT(t),ZT=t=>t instanceof RegExp;const JT={value:!1,isValid:!1},QT={value:!0,isValid:!0};const tC={isValid:!1,value:null};function eC(t,e,r="validate"){if(GT(t)||Array.isArray(t)&&t.every(GT)||jT(t)&&!t)return{type:r,message:GT(t)?t:"",ref:e}}var rC=t=>mT(t)&&!ZT(t)?t:{value:t,message:""},nC=async(t,e,r,n,i)=>{const{ref:o,refs:a,required:c,maxLength:u,minLength:l,min:s,max:f,pattern:h,validate:p,name:d,valueAsNumber:y,mount:v,disabled:m}=t._f,g=ST(e,d);if(!v||m)return{};const b=a?a[0]:o,w=t=>{n&&b.reportValidity&&(b.setCustomValidity(jT(t)?"":t||""),b.reportValidity())},x={},O="radio"===o.type;const S=(t=>"checkbox"===t.type)(o),j=O||S,A=(y||(t=>"file"===t.type)(o))&&OT(o.value)&&OT(g)||(t=>{if(!bT)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)})(o)&&""===o.value||""===g||Array.isArray(g)&&!g.length,P=VT.bind(null,d,r,x),M=(t,e,r,n=CT,i=DT)=>{const a=t?e:r;x[d]={type:t?n:i,message:a,ref:o,...P(t?n:i,a)}};if(i?!Array.isArray(g)||!g.length:c&&(!j&&(A||vT(g))||jT(g)&&!g||S&&!(t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter((t=>t&&t.checked&&!t.disabled)).map((t=>t.value));return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!OT(t[0].attributes.value)?OT(t[0].value)||""===t[0].value?QT:{value:t[0].value,isValid:!0}:QT:JT}return JT})(a).isValid||O&&!(E=a,Array.isArray(E)?E.reduce(((t,e)=>e&&e.checked&&!e.disabled?{isValid:!0,value:e.value}:t),tC):tC).isValid)){const{value:t,message:e}=GT(c)?{value:!!c,message:c}:rC(c);if(t&&(x[d]={type:NT,message:e,ref:b,...P(NT,e)},!r))return w(e),x}var E;if(!(A||vT(s)&&vT(f))){let t,e;const n=rC(f),i=rC(s);if(vT(g)||isNaN(g)){const r=o.valueAsDate||new Date(g),a=t=>new Date((new Date).toDateString()+" "+t),c="time"==o.type,u="week"==o.type;zT(n.value)&&g&&(t=c?a(g)>a(n.value):u?g>n.value:r>new Date(n.value)),zT(i.value)&&g&&(e=c?a(g)<a(i.value):u?g<i.value:r<new Date(i.value))}else{const r=o.valueAsNumber||(g?+g:g);vT(n.value)||(t=r>n.value),vT(i.value)||(e=r<i.value)}if((t||e)&&(M(!!t,n.message,i.message,_T,TT),!r))return w(x[d].message),x}if((u||l)&&!A&&(zT(g)||i&&Array.isArray(g))){const t=rC(u),e=rC(l),n=!vT(t.value)&&g.length>+t.value,i=!vT(e.value)&&g.length<+e.value;if((n||i)&&(M(n,t.message,e.message),!r))return w(x[d].message),x}if(h&&!A&&zT(g)){const{value:t,message:e}=rC(h);if(ZT(t)&&!g.match(t)&&(x[d]={type:IT,message:e,ref:o,...P(IT,e)},!r))return w(e),x}if(p)if("function"==typeof p){const t=eC(await p(g,e),b);if(t&&(x[d]={...t,...P(BT,t.message)},!r))return w(t.message),x}else if(mT(p)){let t={};for(const n in p){if(!$T(t)&&!r)break;const i=eC(await p[n](g,e),b,n);i&&(t={...i,...P(n,i.message)},w(i.message),r&&(x[d]=t))}if(!$T(t)&&(x[d]={ref:b,...t},!r))return x}return w(!0),x},iC=(t,e)=>[...t,...LT(e)],oC=t=>Array.isArray(t)?t.map((()=>{})):void 0;function aC(t,e,r){return[...t.slice(0,e),...LT(r),...t.slice(e)]}var cC=(t,e,r)=>Array.isArray(t)?(OT(t[r])&&(t[r]=void 0),t.splice(r,0,t.splice(e,1)[0]),t):[],uC=(t,e)=>[...LT(e),...LT(t)];var lC=(t,e)=>OT(e)?[]:function(t,e){let r=0;const n=[...t];for(const t of e)n.splice(t-r,1),r++;return xT(n).length?n:[]}(t,LT(e).sort(((t,e)=>t-e))),sC=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]};function fC(t,e){const r=Array.isArray(e)?e:HT(e)?[e]:FT(e),n=1===r.length?t:function(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=OT(t)?n++:t[e[n++]];return t}(t,r),i=r.length-1,o=r[i];return n&&delete n[o],0!==i&&(mT(n)&&$T(n)||Array.isArray(n)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!OT(t[e]))return!1;return!0}(n))&&fC(t,r.slice(0,-1)),t}var hC=(t,e,r)=>(t[e]=r,t);function pC(t){const e=Y.useContext(RT),{control:r=e.control,name:n,keyName:i="id",shouldUnregister:o}=t,[a,c]=Y.useState(r._getFieldArray(n)),u=Y.useRef(r._getFieldArray(n).map(WT)),l=Y.useRef(a),s=Y.useRef(n),f=Y.useRef(!1);s.current=n,l.current=a,r._names.array.add(n),t.rules&&r.register(n,t.rules),function(t){const e=Y.useRef(t);e.current=t,Y.useEffect((()=>{const r=!t.disabled&&e.current.subject&&e.current.subject.subscribe({next:e.current.next});return()=>{r&&r.unsubscribe()}}),[t.disabled])}({next:({values:t,name:e})=>{if(e===s.current||!e){const e=ST(t,s.current);Array.isArray(e)&&(c(e),u.current=e.map(WT))}},subject:r._subjects.array});const h=Y.useCallback((t=>{f.current=!0,r._updateFieldArray(n,t)}),[r,n]);return Y.useEffect((()=>{if(r._state.action=!1,((t,e,r)=>!r&&(e.watchAll||e.watch.has(t)||[...e.watch].some((e=>t.startsWith(e)&&/^\.\w+/.test(t.slice(e.length))))))(n,r._names)&&r._subjects.state.next({...r._formState}),f.current&&(!XT(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then((t=>{const e=ST(t.errors,n),i=ST(r._formState.errors,n);(i?!e&&i.type||e&&(i.type!==e.type||i.message!==e.message):e&&e.type)&&(e?UT(r._formState.errors,n,e):fC(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const t=ST(r._fields,n);!t||!t._f||XT(r._options.reValidateMode).isOnSubmit&&XT(r._options.mode).isOnSubmit||nC(t,r._formValues,r._options.criteriaMode===kT,r._options.shouldUseNativeValidation,!0).then((t=>!$T(t)&&r._subjects.state.next({errors:KT(r._formState.errors,t,n)})))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&YT(r._fields,((t,e)=>{if(r._names.focus&&e.startsWith(r._names.focus)&&t.focus)return t.focus(),1})),r._names.focus="",r._updateValid(),f.current=!1}),[a,n,r]),Y.useEffect((()=>(!ST(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||o)&&r.unregister(n)})),[n,r,i,o]),{swap:Y.useCallback(((t,e)=>{const i=r._getFieldArray(n);sC(i,t,e),sC(u.current,t,e),h(i),c(i),r._updateFieldArray(n,i,sC,{argA:t,argB:e},!1)}),[h,n,r]),move:Y.useCallback(((t,e)=>{const i=r._getFieldArray(n);cC(i,t,e),cC(u.current,t,e),h(i),c(i),r._updateFieldArray(n,i,cC,{argA:t,argB:e},!1)}),[h,n,r]),prepend:Y.useCallback(((t,e)=>{const i=LT(wT(t)),o=uC(r._getFieldArray(n),i);r._names.focus=qT(n,0,e),u.current=uC(u.current,i.map(WT)),h(o),c(o),r._updateFieldArray(n,o,uC,{argA:oC(t)})}),[h,n,r]),append:Y.useCallback(((t,e)=>{const i=LT(wT(t)),o=iC(r._getFieldArray(n),i);r._names.focus=qT(n,o.length-1,e),u.current=iC(u.current,i.map(WT)),h(o),c(o),r._updateFieldArray(n,o,iC,{argA:oC(t)})}),[h,n,r]),remove:Y.useCallback((t=>{const e=lC(r._getFieldArray(n),t);u.current=lC(u.current,t),h(e),c(e),r._updateFieldArray(n,e,lC,{argA:t})}),[h,n,r]),insert:Y.useCallback(((t,e,i)=>{const o=LT(wT(e)),a=aC(r._getFieldArray(n),t,o);r._names.focus=qT(n,t,i),u.current=aC(u.current,t,o.map(WT)),h(a),c(a),r._updateFieldArray(n,a,aC,{argA:t,argB:oC(e)})}),[h,n,r]),update:Y.useCallback(((t,e)=>{const i=wT(e),o=hC(r._getFieldArray(n),t,i);u.current=[...o].map(((e,r)=>e&&r!==t?u.current[r]:WT())),h(o),c([...o]),r._updateFieldArray(n,o,hC,{argA:t,argB:i},!0,!1)}),[h,n,r]),replace:Y.useCallback((t=>{const e=LT(wT(t));u.current=e.map(WT),h([...e]),c([...e]),r._updateFieldArray(n,[...e],(t=>t),{},!0,!1)}),[h,n,r]),fields:Y.useMemo((()=>a.map(((t,e)=>({...t,[i]:u.current[e]||WT()})))),[a,i])}}const dC=({name:r,control:n,register:i,defaultValues:o,onArrayAppend:a,onArrayRemove:c})=>{const{fields:u,append:l,remove:s}=pC({control:n,name:r}),f=Object.keys(o).reduce(((t,e)=>({...t,[e]:o[e]})),{});return t(P,{children:[u.map(((n,o)=>e(P,{children:t(P,{pb:6,position:"relative",children:[Object.keys(n).filter((t=>"id"!==t)).map((t=>e(yT,{label:t,name:`${r}.${o}.${t}`,register:i},`${t}-${n.id}`))),e(M,{label:"Delete",children:e(y,{position:"absolute",top:"0",right:"0",children:e(h,{"aria-label":"Delete",size:"sm",variant:"ghost",onClick:()=>{s(o),c&&c(o)},minW:"2rem",p:"0",children:"X"})})})]})},n.id))),e(y,{children:e(h,{size:"sm",onClick:()=>{l(f),a&&a(f)},ml:"auto",children:"+"})})]})},yC=({data:r,dataKey:n,width:i="100%",height:o="100%",lineType:a="linear",showTooltip:c=!1,isAnimated:u=!1,formatter:l,sampleRate:s,style:f})=>{const{isNetGain:h}=mr({data:r,dataKey:n}),p=h?wr.mint():wr.heroicRed(),d=s?br({arr:r||[],n:s}):r,y=d?.map((t=>({...t,[n]:Number(t[n])||0}))),v={cursor:c?"crosshair":"default",...f};return e(Wd,{width:i,minHeight:o,children:t(Y_,{data:y,style:v,children:[e(Gk,{domain:["dataMin","dataMax"],hide:!0}),e(_k,{isAnimationActive:u,type:a,dataKey:n,stroke:p,strokeWidth:"2",dot:!1,scale:"threshold"}),c&&e(yd,{cursor:!1,formatter:l})]})})},vC=({isOpen:r,onClose:n,headerContent:i=null,footerContent:o=null,children:a,isCentered:c=!0,size:u={base:"md",md:"xl"},bodyMinHeight:l,bodyBackground:s="transparent",isDisabledCloseButton:f,...h})=>t(E,{isOpen:r,onClose:n,isCentered:c,size:u,...h,children:[e(k,{}),t(_,{minWidth:jC,children:[e(T,{children:i}),e(C,{isDisabled:f}),e(D,{minH:l||0,bg:s,children:a}),o&&e(I,{borderTop:"solid 1px",borderColor:wr.coolElegance(),children:o})]})]}),mC=({isLoading:r,hasMore:n,setLastEvaluatedKeyParams:i,lastEvaluatedKey:o,...a})=>{const[c,u]=et([]),[l,s]=et(1);return t(y,{w:"full",justifyContent:"flex-end",alignItems:"center",direction:"row",gap:4,...a,children:[e(h,{onClick:()=>{if(2===l)return i(void 0),u([]),void s((t=>t-1));const t=c.length-1,e=c[t-1];i(e),u((t=>t.slice(0,-1))),s((t=>t-1))},isLoading:r,isDisabled:1===l,children:"Previous"}),e(h,{onClick:()=>{if(o){const t={lastEvaluatedPKey:o.pKey,lastEvaluatedSKey:o.sKey};i(t),u((e=>[...e,t])),s((t=>t+1))}},isLoading:r,isDisabled:!n,children:"Next"})]})},gC=r=>{const{children:n,size:i,isDisabled:o,isReadOnly:a,isRequired:c,name:u,register:l,errorMessage:s,helperText:f,label:h,...p}=r,y=gr(i),m=l?l(u):void 0;return t(d,{isInvalid:Boolean(s),isDisabled:o,isReadOnly:a,isRequired:c,children:[h&&e(v,{size:i,children:h}),e(N,{icon:e(vt,{}),size:i,...m,...p,children:n}),s&&e(g,{size:i,children:s}),f&&e(A,{fontSize:y,children:f})]})},bC=B({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}),wC=({boxSize:t=8,color:r="brand",...n})=>{const i="neutral"===r?wr.sonicSilver():"brand.500";return e(y,{width:"full",justifyContent:"center",alignItems:"center",minHeight:Number.isFinite(Number(t))?3*Number(t):`calc(${t} * 3)`,...n,children:e(y,{width:t,height:t,animation:`${bC} 2000ms infinite linear`,children:e(re,{boxSize:t,__css:{path:{fill:i}}})})})},xC=r=>{const{label:n,rightIcon:i,leftIcon:o,onClose:a,...c}=r,[u,l]=et(!0);return u?t(R,{...c,children:[o&&e($,{as:o}),e(L,{children:n}),i&&e(z,{as:i}),a&&e(H,{onClick:()=>{a(),l(!1)}})]}):null},OC=({description:r,title:n,onClose:i,isClosable:o,status:a})=>{let c,u;switch(a){case"error":u=st;break;case"success":u=xt;break;case"warning":u=$t,c="yellow";break;case"loading":c="brand",u=X;break;default:c="brand",u=$t}return t(F,{as:y,colorScheme:c,justifyContent:"space-between",status:a,children:[t(y,{alignItems:"center",mr:"4",children:[e(U,{children:e(u,{size:"sm"})}),t(P,{children:[e(V,{children:n}),e(W,{children:r})]})]}),o&&e(q,{onClick:i})]})},SC=()=>{const t=u({ssr:!1}),e="base"===t||"sm"===t,r="md"===t,n="lg"===t||"xl"===t||"2xl"===t;return{breakpoint:t,isSmallBreakpoint:e,isMediumBreakpoint:r,isLargeBreakpoint:n,isAboveSmallBreakpoint:r||n,isBelowLargeBreakpoint:r||e}},jC="22rem";export{G_ as CfAreaChart,Z_ as CfBreakpointDebugger,J_ as CfButtonGroup,Q_ as CfButtonGroupButton,tT as CfCard,eT as CfCheckbox,rT as CfForm,yT as CfInput,dC as CfInputArray,yC as CfLineChart,vC as CfModal,mC as CfPagination,gC as CfSelect,wC as CfSpinner,xC as CfTag,OC as CfToast,st as IconAlert,ft as IconArrowDown,ht as IconArrowUp,ue as IconAvax,pt as IconBank,dt as IconBarChart,le as IconBch,se as IconBtc,yt as IconCalendar,vt as IconCaretDown,mt as IconCaretLeft,gt as IconCaretRight,bt as IconCaretUp,wt as IconCent,xt as IconCheck,Ot as IconChecking,St as IconClose,jt as IconConnect,At as IconCopy,Pt as IconDollar,Mt as IconDownload,Et as IconEdit,kt as IconEnter,_t as IconEnterInverted,fe as IconEth,Tt as IconExchange,Ct as IconFilter,Dt as IconHelp,It as IconHistory,Nt as IconHome,Bt as IconIndicatorDown,Rt as IconIndicatorUp,$t as IconInfo,he as IconLink,pe as IconLtc,Lt as IconMail,zt as IconMenu,Ht as IconMore,Ft as IconNotification,Ut as IconOverview,Vt as IconPercent,Wt as IconPieChart,qt as IconPlus,ce as IconRefresh,Xt as IconReports,Yt as IconReservesSuccess,Kt as IconReservesWarning,Gt as IconSearch,Zt as IconSettings,Jt as IconSettlement,Qt as IconSignIn,te as IconSignOut,ee as IconSort,re as IconSpinner,ne as IconSupport,ie as IconTrash,oe as IconUpload,ae as IconUser,de as IconXlm,Ze as aggregateAmounts,Rr as coreTheme,cr as dateToTimestamp,ur as formatPercentage,vr as formatUsd,mr as getDelta,jC as layoutMinWidth,br as pullFromEnd,wr as uiColors,Or as usdToNumber,SC as useCfBreakpoint};
|
|
26
18
|
//# sourceMappingURL=index.js.map
|