diff --git a/docs/my-website/docs/proxy/deploy.md b/docs/my-website/docs/proxy/deploy.md index 815252429d..f9a7db2d41 100644 --- a/docs/my-website/docs/proxy/deploy.md +++ b/docs/my-website/docs/proxy/deploy.md @@ -11,40 +11,37 @@ You can find the Dockerfile to build litellm proxy [here](https://github.com/Ber -**Step 1. Create a file called `litellm_config.yaml`** +### Step 1. CREATE config.yaml - Example `litellm_config.yaml` (the `os.environ/` prefix means litellm will read `AZURE_API_BASE` from the env) - ```yaml - model_list: - - model_name: azure-gpt-3.5 - litellm_params: - model: azure/ - api_base: os.environ/AZURE_API_BASE - api_key: os.environ/AZURE_API_KEY - api_version: "2023-07-01-preview" - ``` +Example `litellm_config.yaml` -**Step 2. Run litellm docker image** +```yaml +model_list: + - model_name: azure-gpt-3.5 + litellm_params: + model: azure/ + api_base: os.environ/AZURE_API_BASE # runs os.getenv("AZURE_API_BASE") + api_key: os.environ/AZURE_API_KEY # runs os.getenv("AZURE_API_KEY") + api_version: "2023-07-01-preview" +``` - See the latest available ghcr docker image here: - https://github.com/berriai/litellm/pkgs/container/litellm - Your litellm config.yaml should be called `litellm_config.yaml` in the directory you run this command. - The `-v` command will mount that file - Pass `AZURE_API_KEY` and `AZURE_API_BASE` since we set them in step 1 +### Step 2. RUN Docker Image - ```shell - docker run \ - -v $(pwd)/litellm_config.yaml:/app/config.yaml \ - -e AZURE_API_KEY=d6*********** \ - -e AZURE_API_BASE=https://openai-***********/ \ - -p 4000:4000 \ - ghcr.io/berriai/litellm:main-latest \ - --config /app/config.yaml --detailed_debug - ``` +```shell +docker run \ + -v $(pwd)/litellm_config.yaml:/app/config.yaml \ + -e AZURE_API_KEY=d6*********** \ + -e AZURE_API_BASE=https://openai-***********/ \ + -p 4000:4000 \ + ghcr.io/berriai/litellm:main-latest \ + --config /app/config.yaml --detailed_debug +``` -**Step 3. Send a Test Request** +Get Latest Image 👉 [here](https://github.com/berriai/litellm/pkgs/container/litellm) + +### Step 3. TEST Request Pass `model=azure-gpt-3.5` this was set on step 1 diff --git a/docs/my-website/docs/routing.md b/docs/my-website/docs/routing.md index 028b40b6fd..0aa7901c05 100644 --- a/docs/my-website/docs/routing.md +++ b/docs/my-website/docs/routing.md @@ -278,6 +278,36 @@ router_settings: routing_strategy_args: {"ttl": 10} ``` +### Set Lowest Latency Buffer + +Set a buffer within which deployments are candidates for making calls to. + +E.g. + +if you have 5 deployments + +``` +https://litellm-prod-1.openai.azure.com/: 0.07s +https://litellm-prod-2.openai.azure.com/: 0.1s +https://litellm-prod-3.openai.azure.com/: 0.1s +https://litellm-prod-4.openai.azure.com/: 0.1s +https://litellm-prod-5.openai.azure.com/: 4.66s +``` + +to prevent initially overloading `prod-1`, with all requests - we can set a buffer of 50%, to consider deployments `prod-2, prod-3, prod-4`. + +**In Router** +```python +router = Router(..., routing_strategy_args={"lowest_latency_buffer": 0.5}) +``` + +**In Proxy** + +```yaml +router_settings: + routing_strategy_args: {"lowest_latency_buffer": 0.5} +``` + diff --git a/litellm/integrations/langfuse.py b/litellm/integrations/langfuse.py index b1c0e4b097..60c32e212b 100644 --- a/litellm/integrations/langfuse.py +++ b/litellm/integrations/langfuse.py @@ -79,7 +79,7 @@ class LangFuseLogger: print_verbose, level="DEFAULT", status_message=None, - ): + ) -> dict: # Method definition try: @@ -111,6 +111,7 @@ class LangFuseLogger: pass # end of processing langfuse ######################## + print(f"response obj type: {type(response_obj)}") if ( level == "ERROR" and status_message is not None @@ -140,8 +141,11 @@ class LangFuseLogger: input = prompt output = response_obj["data"] print_verbose(f"OUTPUT IN LANGFUSE: {output}; original: {response_obj}") + trace_id = None + generation_id = None if self._is_langfuse_v2(): - self._log_langfuse_v2( + print("INSIDE V2 LANGFUSE") + trace_id, generation_id = self._log_langfuse_v2( user_id, metadata, litellm_params, @@ -171,10 +175,12 @@ class LangFuseLogger: f"Langfuse Layer Logging - final response object: {response_obj}" ) verbose_logger.info(f"Langfuse Layer Logging - logging success") + + return {"trace_id": trace_id, "generation_id": generation_id} except: traceback.print_exc() verbose_logger.debug(f"Langfuse Layer Error - {traceback.format_exc()}") - pass + return {"trace_id": None, "generation_id": None} async def _async_log_event( self, kwargs, response_obj, start_time, end_time, user_id, print_verbose @@ -246,7 +252,7 @@ class LangFuseLogger: response_obj, level, print_verbose, - ): + ) -> tuple: import langfuse try: @@ -272,18 +278,21 @@ class LangFuseLogger: ## DO NOT SET TRACE_NAME if trace-id set. this can lead to overwriting of past traces. trace_name = f"litellm-{kwargs.get('call_type', 'completion')}" - trace_params = { - "name": trace_name, - "input": input, - "user_id": metadata.get("trace_user_id", user_id), - "id": trace_id or existing_trace_id, - "session_id": metadata.get("session_id", None), - } + if existing_trace_id is not None: + trace_params = {"id": existing_trace_id} + else: # don't overwrite an existing trace + trace_params = { + "name": trace_name, + "input": input, + "user_id": metadata.get("trace_user_id", user_id), + "id": trace_id, + "session_id": metadata.get("session_id", None), + } - if level == "ERROR": - trace_params["status_message"] = output - else: - trace_params["output"] = output + if level == "ERROR": + trace_params["status_message"] = output + else: + trace_params["output"] = output cost = kwargs.get("response_cost", None) print_verbose(f"trace: {cost}") @@ -341,7 +350,8 @@ class LangFuseLogger: kwargs["cache_hit"] = False tags.append(f"cache_hit:{kwargs['cache_hit']}") clean_metadata["cache_hit"] = kwargs["cache_hit"] - trace_params.update({"tags": tags}) + if existing_trace_id is None: + trace_params.update({"tags": tags}) proxy_server_request = litellm_params.get("proxy_server_request", None) if proxy_server_request: @@ -363,6 +373,7 @@ class LangFuseLogger: print_verbose(f"trace_params: {trace_params}") + print(f"trace_params: {trace_params}") trace = self.Langfuse.trace(**trace_params) generation_id = None @@ -414,6 +425,10 @@ class LangFuseLogger: print_verbose(f"generation_params: {generation_params}") - trace.generation(**generation_params) + generation_client = trace.generation(**generation_params) + + print(f"LANGFUSE TRACE ID - {generation_client.trace_id}") + return generation_client.trace_id, generation_id except Exception as e: verbose_logger.debug(f"Langfuse Layer Error - {traceback.format_exc()}") + return None, None diff --git a/litellm/llms/ollama.py b/litellm/llms/ollama.py index 740747c8e4..03fe513bc2 100644 --- a/litellm/llms/ollama.py +++ b/litellm/llms/ollama.py @@ -238,12 +238,13 @@ def get_ollama_response( ## RESPONSE OBJECT model_response["choices"][0]["finish_reason"] = "stop" if optional_params.get("format", "") == "json": + function_call = json.loads(response_json["response"]) message = litellm.Message( content=None, tool_calls=[ { "id": f"call_{str(uuid.uuid4())}", - "function": {"arguments": response_json["response"], "name": ""}, + "function": {"name": function_call["name"], "arguments": json.dumps(function_call["arguments"])}, "type": "function", } ], @@ -335,15 +336,13 @@ async def ollama_acompletion(url, data, model_response, encoding, logging_obj): ## RESPONSE OBJECT model_response["choices"][0]["finish_reason"] = "stop" if data.get("format", "") == "json": + function_call = json.loads(response_json["response"]) message = litellm.Message( content=None, tool_calls=[ { "id": f"call_{str(uuid.uuid4())}", - "function": { - "arguments": response_json["response"], - "name": "", - }, + "function": {"name": function_call["name"], "arguments": json.dumps(function_call["arguments"])}, "type": "function", } ], diff --git a/litellm/llms/ollama_chat.py b/litellm/llms/ollama_chat.py index 917336d05c..fb0d76b05e 100644 --- a/litellm/llms/ollama_chat.py +++ b/litellm/llms/ollama_chat.py @@ -285,15 +285,13 @@ def get_ollama_response( ## RESPONSE OBJECT model_response["choices"][0]["finish_reason"] = "stop" if data.get("format", "") == "json": + function_call = json.loads(response_json["message"]["content"]) message = litellm.Message( content=None, tool_calls=[ { "id": f"call_{str(uuid.uuid4())}", - "function": { - "arguments": response_json["message"]["content"], - "name": "", - }, + "function": {"name": function_call["name"], "arguments": json.dumps(function_call["arguments"])}, "type": "function", } ], @@ -415,15 +413,13 @@ async def ollama_acompletion( ## RESPONSE OBJECT model_response["choices"][0]["finish_reason"] = "stop" if data.get("format", "") == "json": + function_call = json.loads(response_json["message"]["content"]) message = litellm.Message( content=None, tool_calls=[ { "id": f"call_{str(uuid.uuid4())}", - "function": { - "arguments": response_json["message"]["content"], - "name": function_name or "", - }, + "function": {"name": function_call["name"], "arguments": json.dumps(function_call["arguments"])}, "type": "function", } ], diff --git a/litellm/main.py b/litellm/main.py index 454f7f7169..cdea40d119 100644 --- a/litellm/main.py +++ b/litellm/main.py @@ -360,7 +360,7 @@ def mock_completion( model: str, messages: List, stream: Optional[bool] = False, - mock_response: str = "This is a mock request", + mock_response: Union[str, Exception] = "This is a mock request", logging=None, **kwargs, ): @@ -387,6 +387,20 @@ def mock_completion( - If 'stream' is True, it returns a response that mimics the behavior of a streaming completion. """ try: + ## LOGGING + if logging is not None: + logging.pre_call( + input=messages, + api_key="mock-key", + ) + if isinstance(mock_response, Exception): + raise litellm.APIError( + status_code=500, # type: ignore + message=str(mock_response), + llm_provider="openai", # type: ignore + model=model, # type: ignore + request=httpx.Request(method="POST", url="https://api.openai.com/v1/"), + ) model_response = ModelResponse(stream=stream) if stream is True: # don't try to access stream object, diff --git a/litellm/proxy/_experimental/out/404.html b/litellm/proxy/_experimental/out/404.html index 6d3d33c80b..763a2541ba 100644 --- a/litellm/proxy/_experimental/out/404.html +++ b/litellm/proxy/_experimental/out/404.html @@ -1 +1 @@ -404: This page could not be found.LiteLLM Dashboard

404

This page could not be found.

\ No newline at end of file +404: This page could not be found.LiteLLM Dashboard

404

This page could not be found.

\ No newline at end of file diff --git a/litellm/proxy/_experimental/out/_next/static/kbGdRQFfI6W3bEwfzmJDI/_buildManifest.js b/litellm/proxy/_experimental/out/_next/static/7aR2yOE4Bz0za1EnxRCsv/_buildManifest.js similarity index 100% rename from litellm/proxy/_experimental/out/_next/static/kbGdRQFfI6W3bEwfzmJDI/_buildManifest.js rename to litellm/proxy/_experimental/out/_next/static/7aR2yOE4Bz0za1EnxRCsv/_buildManifest.js diff --git a/litellm/proxy/_experimental/out/_next/static/kbGdRQFfI6W3bEwfzmJDI/_ssgManifest.js b/litellm/proxy/_experimental/out/_next/static/7aR2yOE4Bz0za1EnxRCsv/_ssgManifest.js similarity index 100% rename from litellm/proxy/_experimental/out/_next/static/kbGdRQFfI6W3bEwfzmJDI/_ssgManifest.js rename to litellm/proxy/_experimental/out/_next/static/7aR2yOE4Bz0za1EnxRCsv/_ssgManifest.js diff --git a/litellm/proxy/_experimental/out/_next/static/chunks/447-9f8d32190ff7d16d.js b/litellm/proxy/_experimental/out/_next/static/chunks/447-9f8d32190ff7d16d.js deleted file mode 100644 index 6b7086a347..0000000000 --- a/litellm/proxy/_experimental/out/_next/static/chunks/447-9f8d32190ff7d16d.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[447],{12215:function(e,t,n){n.d(t,{iN:function(){return h},R_:function(){return d},EV:function(){return g},ez:function(){return p}});var r=n(41785),o=n(76991),a=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function i(e){var t=e.r,n=e.g,o=e.b,a=(0,r.py)(t,n,o);return{h:360*a.h,s:a.s,v:a.v}}function l(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.vq)(t,n,o,!1))}function s(e,t,n){var r;return(r=Math.round(e.h)>=60&&240>=Math.round(e.h)?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function c(e,t,n){var r;return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)))}function u(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function d(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.uA)(e),d=5;d>0;d-=1){var p=i(r),f=l((0,o.uA)({h:s(p,d,!0),s:c(p,d,!0),v:u(p,d,!0)}));n.push(f)}n.push(l(r));for(var m=1;m<=4;m+=1){var g=i(r),h=l((0,o.uA)({h:s(g,m),s:c(g,m),v:u(g,m)}));n.push(h)}return"dark"===t.theme?a.map(function(e){var r,a,i,s=e.index,c=e.opacity;return l((r=(0,o.uA)(t.backgroundColor||"#141414"),a=(0,o.uA)(n[s]),i=100*c/100,{r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b}))}):n}var p={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},f={},m={};Object.keys(p).forEach(function(e){f[e]=d(p[e]),f[e].primary=f[e][5],m[e]=d(p[e],{theme:"dark",backgroundColor:"#141414"}),m[e].primary=m[e][5]}),f.red,f.volcano;var g=f.gold;f.orange,f.yellow,f.lime,f.green,f.cyan;var h=f.blue;f.geekblue,f.purple,f.magenta,f.grey,f.grey},8985:function(e,t,n){n.d(t,{E4:function(){return ej},jG:function(){return A},ks:function(){return U},bf:function(){return F},CI:function(){return eD},fp:function(){return X},xy:function(){return eM}});var r,o,a=n(50833),i=n(80406),l=n(63787),s=n(5239),c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)},u=n(24050),d=n(64090),p=n.t(d,2);n(61475),n(92536);var f=n(47365),m=n(65127);function g(e){return e.join("%")}var h=function(){function e(t){(0,f.Z)(this,e),(0,a.Z)(this,"instanceId",void 0),(0,a.Z)(this,"cache",new Map),this.instanceId=t}return(0,m.Z)(e,[{key:"get",value:function(e){return this.opGet(g(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(g(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),b="data-token-hash",v="data-css-hash",y="__cssinjs_instance__",E=d.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(v,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[y]=t[y]||e,t[y]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(v,"]"))).forEach(function(t){var n,o=t.getAttribute(v);r[o]?t[y]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0})}return new h(e)}(),defaultCache:!0}),S=n(6976),w=n(22127),x=function(){function e(){(0,f.Z)(this,e),(0,a.Z)(this,"cache",void 0),(0,a.Z)(this,"keys",void 0),(0,a.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,m.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t;o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e)}else o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=(0,i.Z)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),k+=1}return(0,m.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),T=new x;function A(e){var t=Array.isArray(e)?e:[e];return T.has(t)||T.set(t,new C(t)),T.get(t)}var I=new WeakMap,N={},R=new WeakMap;function _(e){var t=R.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof C?t+=r.id:r&&"object"===(0,S.Z)(r)?t+=_(r):t+=r}),R.set(e,t)),t}function P(e,t){return c("".concat(t,"_").concat(_(e)))}var M="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),L="_bAmBoO_",D=void 0,j=(0,w.Z)();function F(e){return"number"==typeof e?"".concat(e,"px"):e}function B(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(i)return e;var l=(0,s.Z)((0,s.Z)({},o),{},(r={},(0,a.Z)(r,b,t),(0,a.Z)(r,v,n),r)),c=Object.keys(l).map(function(e){var t=l[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"")}var U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Z=function(e,t,n){var r,o={},a={};return Object.entries(e).forEach(function(e){var t=(0,i.Z)(e,2),r=t[0],l=t[1];if(null!=n&&null!==(s=n.preserve)&&void 0!==s&&s[r])a[r]=l;else if(("string"==typeof l||"number"==typeof l)&&!(null!=n&&null!==(c=n.ignore)&&void 0!==c&&c[r])){var s,c,u,d=U(r,null==n?void 0:n.prefix);o[d]="number"!=typeof l||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[r]?String(l):"".concat(l,"px"),a[r]="var(".concat(d,")")}}),[a,(r={scope:null==n?void 0:n.scope},Object.keys(o).length?".".concat(t).concat(null!=r&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(o).map(function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):"")]},z=n(24800),H=(0,s.Z)({},p).useInsertionEffect,G=H?function(e,t,n){return H(function(){return e(),t()},n)}:function(e,t,n){d.useMemo(e,n),(0,z.Z)(function(){return t(!0)},n)},$=void 0!==(0,s.Z)({},p).useInsertionEffect?function(e){var t=[],n=!1;return d.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function W(e,t,n,r,o){var a=d.useContext(E).cache,s=g([e].concat((0,l.Z)(t))),c=$([s]),u=function(e){a.opUpdate(s,function(t){var r=(0,i.Z)(t||[void 0,void 0],2),o=r[0],a=[void 0===o?0:o,r[1]||n()];return e?e(a):a})};d.useMemo(function(){u()},[s]);var p=a.opGet(s)[1];return G(function(){null==o||o(p)},function(e){return u(function(t){var n=(0,i.Z)(t,2),r=n[0],a=n[1];return e&&0===r&&(null==o||o(p)),[r+1,a]}),function(){a.opUpdate(s,function(t){var n=(0,i.Z)(t||[],2),o=n[0],l=void 0===o?0:o,u=n[1];return 0==l-1?(c(function(){(e||!a.opGet(s))&&(null==r||r(u,!1))}),null):[l-1,u]})}},[s]),p}var V={},q=new Map,Y=function(e,t,n,r){var o=n.getDerivativeToken(e),a=(0,s.Z)((0,s.Z)({},o),t);return r&&(a=r(a)),a},K="token";function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,d.useContext)(E),o=r.cache.instanceId,a=r.container,p=n.salt,f=void 0===p?"":p,m=n.override,g=void 0===m?V:m,h=n.formatToken,S=n.getComputedToken,w=n.cssVar,x=function(e,t){for(var n=I,r=0;r=(q.get(e)||0)}),n.length-r.length>0&&r.forEach(function(e){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(b,'="').concat(e,'"]')).forEach(function(e){if(e[y]===o){var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)}}),q.delete(e)})},function(e){var t=(0,i.Z)(e,4),n=t[0],r=t[3];if(w&&r){var l=(0,u.hq)(r,c("css-variables-".concat(n._themeKey)),{mark:v,prepend:"queue",attachTo:a,priority:-999});l[y]=o,l.setAttribute(b,n._themeKey)}})}var Q=n(14749),J={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ee="comm",et="rule",en="decl",er=Math.abs,eo=String.fromCharCode;function ea(e,t,n){return e.replace(t,n)}function ei(e,t){return 0|e.charCodeAt(t)}function el(e,t,n){return e.slice(t,n)}function es(e){return e.length}function ec(e,t){return t.push(e),e}function eu(e,t){for(var n="",r=0;r0?f[v]+" "+y:ea(y,/&\f/g,f[v])).trim())&&(s[b++]=E);return ev(e,t,n,0===o?et:l,s,c,u,d)}function eO(e,t,n,r,o){return ev(e,t,n,en,el(e,0,r),el(e,r+1,-1),r,o)}var ek="data-ant-cssinjs-cache-path",eC="_FILE_STYLE__",eT=!0,eA="_multi_value_";function eI(e){var t,n,r;return eu((r=function e(t,n,r,o,a,i,l,s,c){for(var u,d,p,f=0,m=0,g=l,h=0,b=0,v=0,y=1,E=1,S=1,w=0,x="",O=a,k=i,C=o,T=x;E;)switch(v=w,w=ey()){case 40:if(108!=v&&58==ei(T,g-1)){-1!=(d=T+=ea(ew(w),"&","&\f"),p=er(f?s[f-1]:0),d.indexOf("&\f",p))&&(S=-1);break}case 34:case 39:case 91:T+=ew(w);break;case 9:case 10:case 13:case 32:T+=function(e){for(;eh=eE();)if(eh<33)ey();else break;return eS(e)>2||eS(eh)>3?"":" "}(v);break;case 92:T+=function(e,t){for(var n;--t&&ey()&&!(eh<48)&&!(eh>102)&&(!(eh>57)||!(eh<65))&&(!(eh>70)||!(eh<97)););return n=eg+(t<6&&32==eE()&&32==ey()),el(eb,e,n)}(eg-1,7);continue;case 47:switch(eE()){case 42:case 47:ec(ev(u=function(e,t){for(;ey();)if(e+eh===57)break;else if(e+eh===84&&47===eE())break;return"/*"+el(eb,t,eg-1)+"*"+eo(47===e?e:ey())}(ey(),eg),n,r,ee,eo(eh),el(u,2,-2),0,c),c);break;default:T+="/"}break;case 123*y:s[f++]=es(T)*S;case 125*y:case 59:case 0:switch(w){case 0:case 125:E=0;case 59+m:-1==S&&(T=ea(T,/\f/g,"")),b>0&&es(T)-g&&ec(b>32?eO(T+";",o,r,g-1,c):eO(ea(T," ","")+";",o,r,g-2,c),c);break;case 59:T+=";";default:if(ec(C=ex(T,n,r,f,m,a,s,x,O=[],k=[],g,i),i),123===w){if(0===m)e(T,n,C,C,O,i,g,s,k);else switch(99===h&&110===ei(T,3)?100:h){case 100:case 108:case 109:case 115:e(t,C,C,o&&ec(ex(t,C,C,0,0,a,s,x,a,O=[],g,k),k),a,k,g,s,o?O:k);break;default:e(T,C,C,C,[""],k,0,s,k)}}}f=m=b=0,y=S=1,x=T="",g=l;break;case 58:g=1+es(T),b=v;default:if(y<1){if(123==w)--y;else if(125==w&&0==y++&&125==(eh=eg>0?ei(eb,--eg):0,ef--,10===eh&&(ef=1,ep--),eh))continue}switch(T+=eo(w),w*y){case 38:S=m>0?1:(T+="\f",-1);break;case 44:s[f++]=(es(T)-1)*S,S=1;break;case 64:45===eE()&&(T+=ew(ey())),h=eE(),m=g=es(x=T+=function(e){for(;!eS(eE());)ey();return el(eb,e,eg)}(eg)),w++;break;case 45:45===v&&2==es(T)&&(y=0)}}return i}("",null,null,null,[""],(n=t=e,ep=ef=1,em=es(eb=n),eg=0,t=[]),0,[0],t),eb="",r),ed).replace(/\{%%%\:[^;];}/g,";")}var eN=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,c=r.parentSelectors,d=n.hashId,p=n.layer,f=(n.path,n.hashPriority),m=n.transformers,g=void 0===m?[]:m;n.linters;var h="",b={};function v(t){var r=t.getName(d);if(!b[r]){var o=e(t.style,n,{root:!1,parentSelectors:c}),a=(0,i.Z)(o,1)[0];b[r]="@keyframes ".concat(t.getName(d)).concat(a)}}if((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n})(Array.isArray(t)?t:[t]).forEach(function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)h+="".concat(r,"\n");else if(r._keyframe)v(r);else{var u=g.reduce(function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},r);Object.keys(u).forEach(function(t){var r=u[t];if("object"!==(0,S.Z)(r)||!r||"animationName"===t&&r._keyframe||"object"===(0,S.Z)(r)&&r&&("_skip_check_"in r||eA in r)){function p(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;J[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),r=t.getName(d)),h+="".concat(n,":").concat(r,";")}var m,g=null!==(m=null==r?void 0:r.value)&&void 0!==m?m:r;"object"===(0,S.Z)(r)&&null!=r&&r[eA]&&Array.isArray(g)?g.forEach(function(e){p(t,e)}):p(t,g)}else{var y=!1,E=t.trim(),w=!1;(o||a)&&d?E.startsWith("@")?y=!0:E=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat((0,l.Z)(n.slice(1))).join(" ")}).join(",")}(t,d,f):o&&!d&&("&"===E||""===E)&&(E="",w=!0);var x=e(r,n,{root:w,injectHash:y,parentSelectors:[].concat((0,l.Z)(c),[E])}),O=(0,i.Z)(x,2),k=O[0],C=O[1];b=(0,s.Z)((0,s.Z)({},b),C),h+="".concat(E).concat(k)}})}}),o){if(p&&(void 0===D&&(D=function(e,t,n){if((0,w.Z)()){(0,u.hq)(e,M);var r,o,a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",null==t||t(a),document.body.appendChild(a);var i=n?n(a):null===(r=getComputedStyle(a).content)||void 0===r?void 0:r.includes(L);return null===(o=a.parentNode)||void 0===o||o.removeChild(a),(0,u.jL)(M),i}return!1}("@layer ".concat(M," { .").concat(M,' { content: "').concat(L,'"!important; } }'),function(e){e.className=M})),D)){var y=p.split(","),E=y[y.length-1].trim();h="@layer ".concat(E," {").concat(h,"}"),y.length>1&&(h="@layer ".concat(p,"{%%%:%}").concat(h))}}else h="{".concat(h,"}");return[h,b]};function eR(e,t){return c("".concat(e.join("%")).concat(t))}function e_(){return null}var eP="style";function eM(e,t){var n=e.token,o=e.path,s=e.hashId,c=e.layer,p=e.nonce,f=e.clientOnly,m=e.order,g=void 0===m?0:m,h=d.useContext(E),S=h.autoClear,x=(h.mock,h.defaultCache),O=h.hashPriority,k=h.container,C=h.ssrInline,T=h.transformers,A=h.linters,I=h.cache,N=n._tokenKey,R=[N].concat((0,l.Z)(o)),_=W(eP,R,function(){var e=R.join("|");if(!function(){if(!r&&(r={},(0,w.Z)())){var e,t=document.createElement("div");t.className=ek,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var n=getComputedStyle(t).content||"";(n=n.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),n=(0,i.Z)(t,2),o=n[0],a=n[1];r[o]=a});var o=document.querySelector("style[".concat(ek,"]"));o&&(eT=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}(),r[e]){var n=function(e){var t=r[e],n=null;if(t&&(0,w.Z)()){if(eT)n=eC;else{var o=document.querySelector("style[".concat(v,'="').concat(r[e],'"]'));o?n=o.innerHTML:delete r[e]}}return[n,t]}(e),a=(0,i.Z)(n,2),l=a[0],u=a[1];if(l)return[l,N,u,{},f,g]}var d=eN(t(),{hashId:s,hashPriority:O,layer:c,path:o.join("-"),transformers:T,linters:A}),p=(0,i.Z)(d,2),m=p[0],h=p[1],b=eI(m),y=eR(R,b);return[b,N,y,h,f,g]},function(e,t){var n=(0,i.Z)(e,3)[2];(t||S)&&j&&(0,u.jL)(n,{mark:v})},function(e){var t=(0,i.Z)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(j&&n!==eC){var a={mark:v,prepend:"queue",attachTo:k,priority:g},l="function"==typeof p?p():p;l&&(a.csp={nonce:l});var s=(0,u.hq)(n,r,a);s[y]=I.instanceId,s.setAttribute(b,N),Object.keys(o).forEach(function(e){(0,u.hq)(eI(o[e]),"_effect-".concat(e),a)})}}),P=(0,i.Z)(_,3),M=P[0],L=P[1],D=P[2];return function(e){var t,n;return t=C&&!j&&x?d.createElement("style",(0,Q.Z)({},(n={},(0,a.Z)(n,b,L),(0,a.Z)(n,v,D),n),{dangerouslySetInnerHTML:{__html:M}})):d.createElement(e_,null),d.createElement(d.Fragment,null,t,e)}}var eL="cssVar",eD=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,a=e.ignore,s=e.token,c=e.scope,p=void 0===c?"":c,f=(0,d.useContext)(E),m=f.cache.instanceId,g=f.container,h=s._tokenKey,S=[].concat((0,l.Z)(e.path),[n,p,h]);return W(eL,S,function(){var e=Z(t(),n,{prefix:r,unitless:o,ignore:a,scope:p}),l=(0,i.Z)(e,2),s=l[0],c=l[1],u=eR(S,c);return[s,c,u,n]},function(e){var t=(0,i.Z)(e,3)[2];j&&(0,u.jL)(t,{mark:v})},function(e){var t=(0,i.Z)(e,3),r=t[1],o=t[2];if(r){var a=(0,u.hq)(r,o,{mark:v,prepend:"queue",attachTo:g,priority:-999});a[y]=m,a.setAttribute(b,n)}})};o={},(0,a.Z)(o,eP,function(e,t,n){var r=(0,i.Z)(e,6),o=r[0],a=r[1],l=r[2],s=r[3],c=r[4],u=r[5],d=(n||{}).plain;if(c)return null;var p=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return p=B(o,a,l,f,d),s&&Object.keys(s).forEach(function(e){if(!t[e]){t[e]=!0;var n=eI(s[e]);p+=B(n,a,"_effect-".concat(e),f,d)}}),[u,l,p]}),(0,a.Z)(o,K,function(e,t,n){var r=(0,i.Z)(e,5),o=r[2],a=r[3],l=r[4],s=(n||{}).plain;if(!a)return null;var c=o._tokenKey,u=B(a,l,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s);return[-999,c,u]}),(0,a.Z)(o,eL,function(e,t,n){var r=(0,i.Z)(e,4),o=r[1],a=r[2],l=r[3],s=(n||{}).plain;if(!o)return null;var c=B(o,l,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s);return[-999,a,c]});var ej=function(){function e(t,n){(0,f.Z)(this,e),(0,a.Z)(this,"name",void 0),(0,a.Z)(this,"style",void 0),(0,a.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,m.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function eF(e){return e.notSplit=!0,e}eF(["borderTop","borderBottom"]),eF(["borderTop"]),eF(["borderBottom"]),eF(["borderLeft","borderRight"]),eF(["borderLeft"]),eF(["borderRight"])},60688:function(e,t,n){n.d(t,{Z:function(){return A}});var r=n(14749),o=n(80406),a=n(50833),i=n(6787),l=n(64090),s=n(16480),c=n.n(s),u=n(12215),d=n(67689),p=n(5239),f=n(6976),m=n(24050),g=n(74687),h=n(53850);function b(e){return"object"===(0,f.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,f.Z)(e.icon)||"function"==typeof e.icon)}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):(delete t[n],t[n.replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=r),t},{})}function y(e){return(0,u.R_)(e)[0]}function E(e){return e?Array.isArray(e)?e:[e]:[]}var S=function(e){var t=(0,l.useContext)(d.Z),n=t.csp,r=t.prefixCls,o="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(o=o.replace(/anticon/g,r)),(0,l.useEffect)(function(){var t=e.current,r=(0,g.A)(t);(0,m.hq)(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})},[])},w=["icon","className","onClick","style","primaryColor","secondaryColor"],x={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},O=function(e){var t,n,r=e.icon,o=e.className,a=e.onClick,s=e.style,c=e.primaryColor,u=e.secondaryColor,d=(0,i.Z)(e,w),f=l.useRef(),m=x;if(c&&(m={primaryColor:c,secondaryColor:u||y(c)}),S(f),t=b(r),n="icon should be icon definiton, but got ".concat(r),(0,h.ZP)(t,"[@ant-design/icons] ".concat(n)),!b(r))return null;var g=r;return g&&"function"==typeof g.icon&&(g=(0,p.Z)((0,p.Z)({},g),{},{icon:g.icon(m.primaryColor,m.secondaryColor)})),function e(t,n,r){return r?l.createElement(t.tag,(0,p.Z)((0,p.Z)({key:n},v(t.attrs)),r),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})):l.createElement(t.tag,(0,p.Z)({key:n},v(t.attrs)),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))}))}(g.icon,"svg-".concat(g.name),(0,p.Z)((0,p.Z)({className:o,onClick:a,style:s,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:f}))};function k(e){var t=E(e),n=(0,o.Z)(t,2),r=n[0],a=n[1];return O.setTwoToneColors({primaryColor:r,secondaryColor:a})}O.displayName="IconReact",O.getTwoToneColors=function(){return(0,p.Z)({},x)},O.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;x.primaryColor=t,x.secondaryColor=n||y(t),x.calculated=!!n};var C=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];k(u.iN.primary);var T=l.forwardRef(function(e,t){var n,s=e.className,u=e.icon,p=e.spin,f=e.rotate,m=e.tabIndex,g=e.onClick,h=e.twoToneColor,b=(0,i.Z)(e,C),v=l.useContext(d.Z),y=v.prefixCls,S=void 0===y?"anticon":y,w=v.rootClassName,x=c()(w,S,(n={},(0,a.Z)(n,"".concat(S,"-").concat(u.name),!!u.name),(0,a.Z)(n,"".concat(S,"-spin"),!!p||"loading"===u.name),n),s),k=m;void 0===k&&g&&(k=-1);var T=E(h),A=(0,o.Z)(T,2),I=A[0],N=A[1];return l.createElement("span",(0,r.Z)({role:"img","aria-label":u.name},b,{ref:t,tabIndex:k,onClick:g,className:x}),l.createElement(O,{icon:u,primaryColor:I,secondaryColor:N,style:f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0}))});T.displayName="AntdIcon",T.getTwoToneColor=function(){var e=O.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},T.setTwoToneColor=k;var A=T},67689:function(e,t,n){var r=(0,n(64090).createContext)({});t.Z=r},99537:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},90507:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},77136:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},81303:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},20383:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},31413:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},20653:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},41311:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},40388:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},66155:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},50459:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},96871:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},97766:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},41785:function(e,t,n){n.d(t,{T6:function(){return p},VD:function(){return f},WE:function(){return c},Yt:function(){return m},lC:function(){return a},py:function(){return s},rW:function(){return o},s:function(){return d},ve:function(){return l},vq:function(){return u}});var r=n(27974);function o(e,t,n){return{r:255*(0,r.sh)(e,255),g:255*(0,r.sh)(t,255),b:255*(0,r.sh)(n,255)}}function a(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),a=Math.min(e,t,n),i=0,l=0,s=(o+a)/2;if(o===a)l=0,i=0;else{var c=o-a;switch(l=s>.5?c/(2-o-a):c/(o+a),o){case e:i=(t-n)/c+(t1&&(n-=1),n<1/6)?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)a=n,l=n,o=n;else{var o,a,l,s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;o=i(c,s,e+1/3),a=i(c,s,e),l=i(c,s,e-1/3)}return{r:255*o,g:255*a,b:255*l}}function s(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),a=Math.min(e,t,n),i=0,l=o-a;if(o===a)i=0;else{switch(o){case e:i=(t-n)/l+(t>16,g:(65280&e)>>8,b:255&e}}},6564:function(e,t,n){n.d(t,{R:function(){return r}});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},76991:function(e,t,n){n.d(t,{uA:function(){return i}});var r=n(41785),o=n(6564),a=n(27974);function i(e){var t={r:0,g:0,b:0},n=1,i=null,l=null,s=null,c=!1,p=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=u.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=u.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=u.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=u.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=u.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=u.hex8.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"}:(n=u.hex6.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"}:(n=u.hex4.exec(e))?{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=u.hex3.exec(e))&&{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),c=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(i=(0,a.JX)(e.s),l=(0,a.JX)(e.v),t=(0,r.WE)(e.h,i,l),c=!0,p="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(i=(0,a.JX)(e.s),s=(0,a.JX)(e.l),t=(0,r.ve)(e.h,i,s),c=!0,p="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,a.Yq)(n),{ok:c,format:e.format||p,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:RegExp("rgb"+s),rgba:RegExp("rgba"+c),hsl:RegExp("hsl"+s),hsla:RegExp("hsla"+c),hsv:RegExp("hsv"+s),hsva:RegExp("hsva"+c),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function d(e){return!!u.CSS_UNIT.exec(String(e))}},6336:function(e,t,n){n.d(t,{C:function(){return l}});var r=n(41785),o=n(6564),a=n(76991),i=n(27974),l=function(){function e(t,n){if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.Yt)(t)),this.originalInput=t;var o,i=(0,a.uA)(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,i.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,i.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,i.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.R);t=0;return!t&&r&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,i.V2)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-(t/100*255)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-(t/100*255)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-(t/100*255)))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,i.V2)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,i.V2)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,i.V2)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100;return new e({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;iMath.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function a(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function i(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:function(){return l},JX:function(){return i},V2:function(){return o},Yq:function(){return a},sh:function(){return r}})},88804:function(e,t,n){n.d(t,{Z:function(){return y}});var r,o=n(80406),a=n(64090),i=n(89542),l=n(22127);n(53850);var s=n(74084),c=a.createContext(null),u=n(63787),d=n(24800),p=[],f=n(24050);function m(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?function(e){if("undefined"==typeof document)return 0;if(void 0===r){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var a=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;a===i&&(i=n.clientWidth),document.body.removeChild(n),r=a-i}return r}():n}var g="rc-util-locker-".concat(Date.now()),h=0,b=!1,v=function(e){return!1!==e&&((0,l.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},y=a.forwardRef(function(e,t){var n,r,y,E,S=e.open,w=e.autoLock,x=e.getContainer,O=(e.debug,e.autoDestroy),k=void 0===O||O,C=e.children,T=a.useState(S),A=(0,o.Z)(T,2),I=A[0],N=A[1],R=I||S;a.useEffect(function(){(k||S)&&N(S)},[S,k]);var _=a.useState(function(){return v(x)}),P=(0,o.Z)(_,2),M=P[0],L=P[1];a.useEffect(function(){var e=v(x);L(null!=e?e:null)});var D=function(e,t){var n=a.useState(function(){return(0,l.Z)()?document.createElement("div"):null}),r=(0,o.Z)(n,1)[0],i=a.useRef(!1),s=a.useContext(c),f=a.useState(p),m=(0,o.Z)(f,2),g=m[0],h=m[1],b=s||(i.current?void 0:function(e){h(function(t){return[e].concat((0,u.Z)(t))})});function v(){r.parentElement||document.body.appendChild(r),i.current=!0}function y(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),i.current=!1}return(0,d.Z)(function(){return e?s?s(v):v():y(),y},[e]),(0,d.Z)(function(){g.length&&(g.forEach(function(e){return e()}),h(p))},[g]),[r,b]}(R&&!M,0),j=(0,o.Z)(D,2),F=j[0],B=j[1],U=null!=M?M:F;n=!!(w&&S&&(0,l.Z)()&&(U===F||U===document.body)),r=a.useState(function(){return h+=1,"".concat(g,"_").concat(h)}),y=(0,o.Z)(r,1)[0],(0,d.Z)(function(){if(n){var e=function(e){if("undefined"==typeof document||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:m(n),height:m(r)}}(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,f.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),y)}else(0,f.jL)(y);return function(){(0,f.jL)(y)}},[n,y]);var Z=null;C&&(0,s.Yr)(C)&&t&&(Z=C.ref);var z=(0,s.x1)(Z,t);if(!R||!(0,l.Z)()||void 0===M)return null;var H=!1===U||("boolean"==typeof E&&(b=E),b),G=C;return t&&(G=a.cloneElement(C,{ref:z})),a.createElement(c.Provider,{value:B},H?G:(0,i.createPortal)(G,U))})},44101:function(e,t,n){n.d(t,{Z:function(){return z}});var r=n(5239),o=n(80406),a=n(6787),i=n(88804),l=n(16480),s=n.n(l),c=n(46505),u=n(97472),d=n(74687),p=n(54811),f=n(91010),m=n(24800),g=n(76158),h=n(64090),b=n(14749),v=n(49367),y=n(74084);function E(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,l=a.content,c=o.x,u=o.y,d=h.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var f=n.points[0],m=n.points[1],g=f[0],b=f[1],v=m[0],y=m[1];g!==v&&["t","b"].includes(g)?"t"===g?p.top=0:p.bottom=0:p.top=void 0===u?0:u,b!==y&&["l","r"].includes(b)?"l"===b?p.left=0:p.right=0:p.left=void 0===c?0:c}return h.createElement("div",{ref:d,className:s()("".concat(t,"-arrow"),i),style:p},l)}function S(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?h.createElement(v.ZP,(0,b.Z)({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return h.createElement("div",{style:{zIndex:r},className:s()("".concat(t,"-mask"),n)})}):null}var w=h.memo(function(e){return e.children},function(e,t){return t.cache}),x=h.forwardRef(function(e,t){var n=e.popup,a=e.className,i=e.prefixCls,l=e.style,u=e.target,d=e.onVisibleChanged,p=e.open,f=e.keepDom,g=e.fresh,x=e.onClick,O=e.mask,k=e.arrow,C=e.arrowPos,T=e.align,A=e.motion,I=e.maskMotion,N=e.forceRender,R=e.getPopupContainer,_=e.autoDestroy,P=e.portal,M=e.zIndex,L=e.onMouseEnter,D=e.onMouseLeave,j=e.onPointerEnter,F=e.ready,B=e.offsetX,U=e.offsetY,Z=e.offsetR,z=e.offsetB,H=e.onAlign,G=e.onPrepare,$=e.stretch,W=e.targetWidth,V=e.targetHeight,q="function"==typeof n?n():n,Y=p||f,K=(null==R?void 0:R.length)>0,X=h.useState(!R||!K),Q=(0,o.Z)(X,2),J=Q[0],ee=Q[1];if((0,m.Z)(function(){!J&&K&&u&&ee(!0)},[J,K,u]),!J)return null;var et="auto",en={left:"-1000vw",top:"-1000vh",right:et,bottom:et};if(F||!p){var er,eo=T.points,ea=T.dynamicInset||(null===(er=T._experimental)||void 0===er?void 0:er.dynamicInset),ei=ea&&"r"===eo[0][1],el=ea&&"b"===eo[0][0];ei?(en.right=Z,en.left=et):(en.left=B,en.right=et),el?(en.bottom=z,en.top=et):(en.top=U,en.bottom=et)}var es={};return $&&($.includes("height")&&V?es.height=V:$.includes("minHeight")&&V&&(es.minHeight=V),$.includes("width")&&W?es.width=W:$.includes("minWidth")&&W&&(es.minWidth=W)),p||(es.pointerEvents="none"),h.createElement(P,{open:N||Y,getContainer:R&&function(){return R(u)},autoDestroy:_},h.createElement(S,{prefixCls:i,open:p,zIndex:M,mask:O,motion:I}),h.createElement(c.Z,{onResize:H,disabled:!p},function(e){return h.createElement(v.ZP,(0,b.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:N,leavedClassName:"".concat(i,"-hidden")},A,{onAppearPrepare:G,onEnterPrepare:G,visible:p,onVisibleChanged:function(e){var t;null==A||null===(t=A.onVisibleChanged)||void 0===t||t.call(A,e),d(e)}}),function(n,o){var c=n.className,u=n.style,d=s()(i,c,a);return h.createElement("div",{ref:(0,y.sQ)(e,t,o),className:d,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},en),es),u),{},{boxSizing:"border-box",zIndex:M},l),onMouseEnter:L,onMouseLeave:D,onPointerEnter:j,onClick:x},k&&h.createElement(E,{prefixCls:i,arrow:k,arrowPos:C,align:T}),h.createElement(w,{cache:!p&&!g},q))})}))}),O=h.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,y.Yr)(n),a=h.useCallback(function(e){(0,y.mH)(t,r?r(e):e)},[r]),i=(0,y.x1)(a,n.ref);return o?h.cloneElement(n,{ref:i}):n}),k=h.createContext(null);function C(e){return e?Array.isArray(e)?e:[e]:[]}var T=n(73193);function A(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function I(e){return e.ownerDocument.defaultView}function N(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=I(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function _(e){return R(parseFloat(e),0)}function P(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=I(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,a=t.borderTopWidth,i=t.borderBottomWidth,l=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,m=_(a),g=_(i),h=_(l),b=_(s),v=R(Math.round(c.width/p*1e3)/1e3),y=R(Math.round(c.height/u*1e3)/1e3),E=m*y,S=h*v,w=0,x=0;if("clip"===r){var O=_(o);w=O*v,x=O*y}var k=c.x+S-w,C=c.y+E-x,T=k+c.width+2*w-S-b*v-(p-f-h-b)*v,A=C+c.height+2*x-E-g*y-(u-d-m-g)*y;n.left=Math.max(n.left,k),n.top=Math.max(n.top,C),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,A)}}),n}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?parseFloat(r[1])/100*e:parseFloat(n)}function L(e,t){var n=(0,o.Z)(t||[],2),r=n[0],a=n[1];return[M(e.width,r),M(e.height,a)]}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function j(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function F(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}var B=n(63787);n(53850);var U=n(19223),Z=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"],z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.Z;return h.forwardRef(function(t,n){var i,l,b,v,y,E,S,w,_,M,z,H,G,$,W,V,q,Y=t.prefixCls,K=void 0===Y?"rc-trigger-popup":Y,X=t.children,Q=t.action,J=t.showAction,ee=t.hideAction,et=t.popupVisible,en=t.defaultPopupVisible,er=t.onPopupVisibleChange,eo=t.afterPopupVisibleChange,ea=t.mouseEnterDelay,ei=t.mouseLeaveDelay,el=void 0===ei?.1:ei,es=t.focusDelay,ec=t.blurDelay,eu=t.mask,ed=t.maskClosable,ep=t.getPopupContainer,ef=t.forceRender,em=t.autoDestroy,eg=t.destroyPopupOnHide,eh=t.popup,eb=t.popupClassName,ev=t.popupStyle,ey=t.popupPlacement,eE=t.builtinPlacements,eS=void 0===eE?{}:eE,ew=t.popupAlign,ex=t.zIndex,eO=t.stretch,ek=t.getPopupClassNameFromAlign,eC=t.fresh,eT=t.alignPoint,eA=t.onPopupClick,eI=t.onPopupAlign,eN=t.arrow,eR=t.popupMotion,e_=t.maskMotion,eP=t.popupTransitionName,eM=t.popupAnimation,eL=t.maskTransitionName,eD=t.maskAnimation,ej=t.className,eF=t.getTriggerDOMNode,eB=(0,a.Z)(t,Z),eU=h.useState(!1),eZ=(0,o.Z)(eU,2),ez=eZ[0],eH=eZ[1];(0,m.Z)(function(){eH((0,g.Z)())},[]);var eG=h.useRef({}),e$=h.useContext(k),eW=h.useMemo(function(){return{registerSubPopup:function(e,t){eG.current[e]=t,null==e$||e$.registerSubPopup(e,t)}}},[e$]),eV=(0,f.Z)(),eq=h.useState(null),eY=(0,o.Z)(eq,2),eK=eY[0],eX=eY[1],eQ=(0,p.Z)(function(e){(0,u.S)(e)&&eK!==e&&eX(e),null==e$||e$.registerSubPopup(eV,e)}),eJ=h.useState(null),e0=(0,o.Z)(eJ,2),e1=e0[0],e2=e0[1],e4=h.useRef(null),e3=(0,p.Z)(function(e){(0,u.S)(e)&&e1!==e&&(e2(e),e4.current=e)}),e6=h.Children.only(X),e5=(null==e6?void 0:e6.props)||{},e8={},e9=(0,p.Z)(function(e){var t,n;return(null==e1?void 0:e1.contains(e))||(null===(t=(0,d.A)(e1))||void 0===t?void 0:t.host)===e||e===e1||(null==eK?void 0:eK.contains(e))||(null===(n=(0,d.A)(eK))||void 0===n?void 0:n.host)===e||e===eK||Object.values(eG.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),e7=A(K,eR,eM,eP),te=A(K,e_,eD,eL),tt=h.useState(en||!1),tn=(0,o.Z)(tt,2),tr=tn[0],to=tn[1],ta=null!=et?et:tr,ti=(0,p.Z)(function(e){void 0===et&&to(e)});(0,m.Z)(function(){to(et||!1)},[et]);var tl=h.useRef(ta);tl.current=ta;var ts=h.useRef([]);ts.current=[];var tc=(0,p.Z)(function(e){var t;ti(e),(null!==(t=ts.current[ts.current.length-1])&&void 0!==t?t:ta)!==e&&(ts.current.push(e),null==er||er(e))}),tu=h.useRef(),td=function(){clearTimeout(tu.current)},tp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;td(),0===t?tc(e):tu.current=setTimeout(function(){tc(e)},1e3*t)};h.useEffect(function(){return td},[]);var tf=h.useState(!1),tm=(0,o.Z)(tf,2),tg=tm[0],th=tm[1];(0,m.Z)(function(e){(!e||ta)&&th(!0)},[ta]);var tb=h.useState(null),tv=(0,o.Z)(tb,2),ty=tv[0],tE=tv[1],tS=h.useState([0,0]),tw=(0,o.Z)(tS,2),tx=tw[0],tO=tw[1],tk=function(e){tO([e.clientX,e.clientY])},tC=(i=eT?tx:e1,l=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:eS[ey]||{}}),v=(b=(0,o.Z)(l,2))[0],y=b[1],E=h.useRef(0),S=h.useMemo(function(){return eK?N(eK):[]},[eK]),w=h.useRef({}),ta||(w.current={}),_=(0,p.Z)(function(){if(eK&&i&&ta){var e,t,n,a,l,s,c,d=eK.ownerDocument,p=I(eK).getComputedStyle(eK),f=p.width,m=p.height,g=p.position,h=eK.style.left,b=eK.style.top,v=eK.style.right,E=eK.style.bottom,x=eK.style.overflow,O=(0,r.Z)((0,r.Z)({},eS[ey]),ew),k=d.createElement("div");if(null===(e=eK.parentElement)||void 0===e||e.appendChild(k),k.style.left="".concat(eK.offsetLeft,"px"),k.style.top="".concat(eK.offsetTop,"px"),k.style.position=g,k.style.height="".concat(eK.offsetHeight,"px"),k.style.width="".concat(eK.offsetWidth,"px"),eK.style.left="0",eK.style.top="0",eK.style.right="auto",eK.style.bottom="auto",eK.style.overflow="hidden",Array.isArray(i))n={x:i[0],y:i[1],width:0,height:0};else{var C=i.getBoundingClientRect();n={x:C.x,y:C.y,width:C.width,height:C.height}}var A=eK.getBoundingClientRect(),N=d.documentElement,_=N.clientWidth,M=N.clientHeight,B=N.scrollWidth,U=N.scrollHeight,Z=N.scrollTop,z=N.scrollLeft,H=A.height,G=A.width,$=n.height,W=n.width,V=O.htmlRegion,q="visible",Y="visibleFirst";"scroll"!==V&&V!==Y&&(V=q);var K=V===Y,X=P({left:-z,top:-Z,right:B-z,bottom:U-Z},S),Q=P({left:0,top:0,right:_,bottom:M},S),J=V===q?Q:X,ee=K?Q:J;eK.style.left="auto",eK.style.top="auto",eK.style.right="0",eK.style.bottom="0";var et=eK.getBoundingClientRect();eK.style.left=h,eK.style.top=b,eK.style.right=v,eK.style.bottom=E,eK.style.overflow=x,null===(t=eK.parentElement)||void 0===t||t.removeChild(k);var en=R(Math.round(G/parseFloat(f)*1e3)/1e3),er=R(Math.round(H/parseFloat(m)*1e3)/1e3);if(!(0===en||0===er||(0,u.S)(i)&&!(0,T.Z)(i))){var eo=O.offset,ea=O.targetOffset,ei=L(A,eo),el=(0,o.Z)(ei,2),es=el[0],ec=el[1],eu=L(n,ea),ed=(0,o.Z)(eu,2),ep=ed[0],ef=ed[1];n.x-=ep,n.y-=ef;var em=O.points||[],eg=(0,o.Z)(em,2),eh=eg[0],eb=D(eg[1]),ev=D(eh),eE=j(n,eb),ex=j(A,ev),eO=(0,r.Z)({},O),ek=eE.x-ex.x+es,eC=eE.y-ex.y+ec,eT=tt(ek,eC),eA=tt(ek,eC,Q),eN=j(n,["t","l"]),eR=j(A,["t","l"]),e_=j(n,["b","r"]),eP=j(A,["b","r"]),eM=O.overflow||{},eL=eM.adjustX,eD=eM.adjustY,ej=eM.shiftX,eF=eM.shiftY,eB=function(e){return"boolean"==typeof e?e:e>=0};tn();var eU=eB(eD),eZ=ev[0]===eb[0];if(eU&&"t"===ev[0]&&(l>ee.bottom||w.current.bt)){var ez=eC;eZ?ez-=H-$:ez=eN.y-eP.y-ec;var eH=tt(ek,ez),eG=tt(ek,ez,Q);eH>eT||eH===eT&&(!K||eG>=eA)?(w.current.bt=!0,eC=ez,ec=-ec,eO.points=[F(ev,0),F(eb,0)]):w.current.bt=!1}if(eU&&"b"===ev[0]&&(aeT||eW===eT&&(!K||eV>=eA)?(w.current.tb=!0,eC=e$,ec=-ec,eO.points=[F(ev,0),F(eb,0)]):w.current.tb=!1}var eq=eB(eL),eY=ev[1]===eb[1];if(eq&&"l"===ev[1]&&(c>ee.right||w.current.rl)){var eX=ek;eY?eX-=G-W:eX=eN.x-eP.x-es;var eQ=tt(eX,eC),eJ=tt(eX,eC,Q);eQ>eT||eQ===eT&&(!K||eJ>=eA)?(w.current.rl=!0,ek=eX,es=-es,eO.points=[F(ev,1),F(eb,1)]):w.current.rl=!1}if(eq&&"r"===ev[1]&&(seT||e1===eT&&(!K||e2>=eA)?(w.current.lr=!0,ek=e0,es=-es,eO.points=[F(ev,1),F(eb,1)]):w.current.lr=!1}tn();var e4=!0===ej?0:ej;"number"==typeof e4&&(sQ.right&&(ek-=c-Q.right-es,n.x>Q.right-e4&&(ek+=n.x-Q.right+e4)));var e3=!0===eF?0:eF;"number"==typeof e3&&(aQ.bottom&&(eC-=l-Q.bottom-ec,n.y>Q.bottom-e3&&(eC+=n.y-Q.bottom+e3)));var e6=A.x+ek,e5=A.y+eC,e8=n.x,e9=n.y;null==eI||eI(eK,eO);var e7=et.right-A.x-(ek+A.width),te=et.bottom-A.y-(eC+A.height);y({ready:!0,offsetX:ek/en,offsetY:eC/er,offsetR:e7/en,offsetB:te/er,arrowX:((Math.max(e6,e8)+Math.min(e6+G,e8+W))/2-e6)/en,arrowY:((Math.max(e5,e9)+Math.min(e5+H,e9+$))/2-e5)/er,scaleX:en,scaleY:er,align:eO})}function tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=A.x+e,o=A.y+t,a=Math.max(r,n.left),i=Math.max(o,n.top);return Math.max(0,(Math.min(r+G,n.right)-a)*(Math.min(o+H,n.bottom)-i))}function tn(){l=(a=A.y+eC)+H,c=(s=A.x+ek)+G}}}),M=function(){y(function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})})},(0,m.Z)(M,[ey]),(0,m.Z)(function(){ta||M()},[ta]),[v.ready,v.offsetX,v.offsetY,v.offsetR,v.offsetB,v.arrowX,v.arrowY,v.scaleX,v.scaleY,v.align,function(){E.current+=1;var e=E.current;Promise.resolve().then(function(){E.current===e&&_()})}]),tT=(0,o.Z)(tC,11),tA=tT[0],tI=tT[1],tN=tT[2],tR=tT[3],t_=tT[4],tP=tT[5],tM=tT[6],tL=tT[7],tD=tT[8],tj=tT[9],tF=tT[10],tB=(z=void 0===Q?"hover":Q,h.useMemo(function(){var e=C(null!=J?J:z),t=C(null!=ee?ee:z),n=new Set(e),r=new Set(t);return ez&&(n.has("hover")&&(n.delete("hover"),n.add("click")),r.has("hover")&&(r.delete("hover"),r.add("click"))),[n,r]},[ez,z,J,ee])),tU=(0,o.Z)(tB,2),tZ=tU[0],tz=tU[1],tH=tZ.has("click"),tG=tz.has("click")||tz.has("contextMenu"),t$=(0,p.Z)(function(){tg||tF()});H=function(){tl.current&&eT&&tG&&tp(!1)},(0,m.Z)(function(){if(ta&&e1&&eK){var e=N(e1),t=N(eK),n=I(eK),r=new Set([n].concat((0,B.Z)(e),(0,B.Z)(t)));function o(){t$(),H()}return r.forEach(function(e){e.addEventListener("scroll",o,{passive:!0})}),n.addEventListener("resize",o,{passive:!0}),t$(),function(){r.forEach(function(e){e.removeEventListener("scroll",o),n.removeEventListener("resize",o)})}}},[ta,e1,eK]),(0,m.Z)(function(){t$()},[tx,ey]),(0,m.Z)(function(){ta&&!(null!=eS&&eS[ey])&&t$()},[JSON.stringify(ew)]);var tW=h.useMemo(function(){var e=function(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}(null===(l=e[s])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(eS,K,tj,eT);return s()(e,null==ek?void 0:ek(tj))},[tj,ek,eS,K,eT]);h.useImperativeHandle(n,function(){return{nativeElement:e4.current,forceAlign:t$}});var tV=h.useState(0),tq=(0,o.Z)(tV,2),tY=tq[0],tK=tq[1],tX=h.useState(0),tQ=(0,o.Z)(tX,2),tJ=tQ[0],t0=tQ[1],t1=function(){if(eO&&e1){var e=e1.getBoundingClientRect();tK(e.width),t0(e.height)}};function t2(e,t,n,r){e8[e]=function(o){var a;null==r||r(o),tp(t,n);for(var i=arguments.length,l=Array(i>1?i-1:0),s=1;s1?n-1:0),o=1;o1?n-1:0),o=1;o{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"}))}},8903:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(69703),o=n(64090);let a=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 10.5858L9.17157 7.75736L7.75736 9.17157L10.5858 12L7.75736 14.8284L9.17157 16.2426L12 13.4142L14.8284 16.2426L16.2426 14.8284L13.4142 12L16.2426 9.17157L14.8284 7.75736L12 10.5858Z"}))}},9853:function(e,t,n){n.d(t,{Z:function(){return mv}});var r,o,a,i,l,s,c,u,d,p,f,m,g,h,b,v,y,E,S,w,x,O={};n.r(O),n.d(O,{scaleBand:function(){return ou},scaleDiverging:function(){return function e(){var t=a3(sp()(aU));return t.copy=function(){return sc(t,e())},oo.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=io(sp()).domain([.1,1,10]);return t.copy=function(){return sc(t,e()).base(t.base())},oo.apply(t,arguments)}},scaleDivergingPow:function(){return sf},scaleDivergingSqrt:function(){return sm},scaleDivergingSymlog:function(){return function e(){var t=il(sp());return t.copy=function(){return sc(t,e()).constant(t.constant())},oo.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,aF),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,aF):[0,1],a3(r)}},scaleImplicit:function(){return os},scaleLinear:function(){return a6},scaleLog:function(){return function e(){let t=io(a$()).domain([1,10]);return t.copy=()=>aG(t,e()).base(t.base()),or.apply(t,arguments),t}},scaleOrdinal:function(){return oc},scalePoint:function(){return od},scalePow:function(){return ip},scaleQuantile:function(){return function e(){var t,n=[],r=[],o=[];function a(){var e=0,t=Math.max(1,r.length);for(o=Array(t-1);++e2&&void 0!==arguments[2]?arguments[2]:o4;if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,a=Math.floor(o),i=+n(e[a],a,e);return i+(+n(e[a+1],a+1,e)-i)*(o-a)}}(n,e/t);return i}function i(e){return null==e||isNaN(e=+e)?t:r[o6(o,e)]}return i.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t=o?[a[o-1],r]:[a[t-1],a[t]]},l.unknown=function(e){return arguments.length&&(t=e),l},l.thresholds=function(){return a.slice()},l.copy=function(){return e().domain([n,r]).range(i).unknown(t)},or.apply(a3(l),arguments)}},scaleRadial:function(){return function e(){var t,n=aW(),r=[0,1],o=!1;function a(e){var r,a=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(a)?t:o?Math.round(a):a}return a.invert=function(e){return n.invert(ig(e))},a.domain=function(e){return arguments.length?(n.domain(e),a):n.domain()},a.range=function(e){return arguments.length?(n.range((r=Array.from(e,aF)).map(ig)),a):r.slice()},a.rangeRound=function(e){return a.range(e).round(!0)},a.round=function(e){return arguments.length?(o=!!e,a):o},a.clamp=function(e){return arguments.length?(n.clamp(e),a):n.clamp()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},or.apply(a,arguments),a3(a)}},scaleSequential:function(){return function e(){var t=a3(ss()(aU));return t.copy=function(){return sc(t,e())},oo.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=io(ss()).domain([1,10]);return t.copy=function(){return sc(t,e()).base(t.base())},oo.apply(t,arguments)}},scaleSequentialPow:function(){return su},scaleSequentialQuantile:function(){return function e(){var t=[],n=aU;function r(e){if(null!=e&&!isNaN(e=+e))return n((o6(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n=+n)||t.push(n);return t.sort(oJ),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(n,r)=>(function(e,t,n){if(!(!(r=(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,void 0))).length)||isNaN(t=+t))){if(t<=0||r<2)return ib(e);if(t>=1)return ih(e);var r,o=(r-1)*t,a=Math.floor(o),i=ih((function e(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,a=arguments.length>4?arguments[4]:void 0;if(n=Math.floor(n),r=Math.floor(Math.max(0,r)),o=Math.floor(Math.min(t.length-1,o)),!(r<=n&&n<=o))return t;for(a=void 0===a?iv:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oJ;if(e===oJ)return iv;if("function"!=typeof e)throw TypeError("compare is not a function");return(t,n)=>{let r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(a);o>r;){if(o-r>600){let i=o-r+1,l=n-r+1,s=Math.log(i),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(i-c)/i)*(l-i/2<0?-1:1),d=Math.max(r,Math.floor(n-l*c/i+u)),p=Math.min(o,Math.floor(n+(i-l)*c/i+u));e(t,n,d,p,a)}let i=t[n],l=r,s=o;for(iy(t,r,n),a(t[o],i)>0&&iy(t,r,o);la(t[l],i);)++l;for(;a(t[s],i)>0;)--s}0===a(t[r],i)?iy(t,r,s):iy(t,++s,o),s<=n&&(r=s+1),n<=s&&(o=s-1)}return t})(e,a).subarray(0,a+1));return i+(ib(e.subarray(a+1))-i)*(o-a)}})(t,r/e))},r.copy=function(){return e(n).domain(t)},oo.apply(r,arguments)}},scaleSequentialSqrt:function(){return sd},scaleSequentialSymlog:function(){return function e(){var t=il(ss());return t.copy=function(){return sc(t,e()).constant(t.constant())},oo.apply(t,arguments)}},scaleSqrt:function(){return im},scaleSymlog:function(){return function e(){var t=il(a$());return t.copy=function(){return aG(t,e()).constant(t.constant())},or.apply(t,arguments)}},scaleThreshold:function(){return function e(){var t,n=[.5],r=[0,1],o=1;function a(e){return null!=e&&e<=e?r[o6(n,e,0,o)]:t}return a.domain=function(e){return arguments.length?(o=Math.min((n=Array.from(e)).length,r.length-1),a):n.slice()},a.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),a):r.slice()},a.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e().domain(n).range(r).unknown(t)},or.apply(a,arguments)}},scaleTime:function(){return si},scaleUtc:function(){return sl},tickFormat:function(){return a4}});var k=n(69703),C=n(54942),T=n(2898),A=n(99250),I=n(65492),N=n(64090),R=function(){for(var e,t,n=0,r="",o=arguments.length;n0?1:-1},G=function(e){return D()(e)&&e.indexOf("%")===e.length-1},$=function(e){return z()(e)&&!F()(e)},W=function(e){return $(e)||D()(e)},V=0,q=function(e){var t=++V;return"".concat(e||"").concat(t)},Y=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!$(e)&&!D()(e))return r;if(G(e)){var a=e.indexOf("%");n=t*parseFloat(e.slice(0,a))/100}else n=+e;return F()(n)&&(n=r),o&&n>t&&(n=t),n},K=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},X=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r2?n-2:0),o=2;o=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ev={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},ey=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},eE=null,eS=null,ew=function e(t){if(t===eE&&Array.isArray(eS))return eS;var n=[];return N.Children.forEach(t,function(t){en()(t)||((0,M.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))}),eS=n,eE=t,n};function ex(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(function(e){return ey(e)}):[ey(t)],ew(e).forEach(function(e){var t=U()(e,"type.displayName")||U()(e,"type.name");-1!==r.indexOf(t)&&n.push(e)}),n}function eO(e,t){var n=ex(e,t);return n&&n[0]}var ek=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!!$(n)&&!(n<=0)&&!!$(r)&&!(r<=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"],eT=function(e,t,n,r){var o,a=null!==(o=null==ed?void 0:ed[r])&&void 0!==o?o:[];return!eo()(e)&&(r&&a.includes(t)||ec.includes(t))||n&&ep.includes(t)},eA=function(e,t,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,N.isValidElement)(e)&&(r=e.props),!ei()(r))return null;var o={};return Object.keys(r).forEach(function(e){var a;eT(null===(a=r)||void 0===a?void 0:a[e],e,t,n)&&(o[e]=r[e])}),o},eI=function e(t,n){if(t===n)return!0;var r=N.Children.count(t);if(r!==N.Children.count(n))return!1;if(0===r)return!0;if(1===r)return eN(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o=0)n.push(e);else if(e){var a=ey(e.type),i=t[a]||{},l=i.handler,s=i.once;if(l&&(!s||!r[a])){var c=l(e,a,o);n.push(c),r[a]=!0}}}),n},e_=function(e){var t=e&&e.type;return t&&ev[t]?ev[t]:null};function eP(e){return(eP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eL(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&(e=P()(e,h,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=S.current.getBoundingClientRect();return C(n.width,n.height),t.observe(S.current),function(){t.disconnect()}},[C,h]);var T=(0,N.useMemo)(function(){var e=O.containerWidth,t=O.containerHeight;if(e<0||t<0)return null;ee(G(l)||G(c),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",l,c),ee(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=G(l)?e:l,o=G(c)?t:c;r&&r>0&&(n?o=n/r:o&&(n=o*r),f&&o>f&&(o=f)),ee(n>0||o>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,o,l,c,d,p,r);var a=!Array.isArray(m)&&(0,M.isElement)(m)&&ey(m.type).endsWith("Chart");return N.Children.map(m,function(e){return(0,M.isElement)(e)?(0,N.cloneElement)(e,eL({width:n,height:o},a?{style:eL({height:"100%",width:"100%",maxHeight:o,maxWidth:n},e.props.style)}:{})):e})},[r,m,c,f,p,d,O,l]);return N.createElement("div",{id:b?"".concat(b):void 0,className:R("recharts-responsive-container",v),style:eL(eL({},void 0===E?{}:E),{},{width:l,height:c,minWidth:d,minHeight:p,maxHeight:f}),ref:S},T)}),eF=n(1646),eB=n.n(eF),eU=n(97572),eZ=n.n(eU),ez=n(209),eH=n.n(ez),eG=n(72986),e$=n.n(eG);function eW(e,t){if(!e)throw Error("Invariant failed")}var eV=["children","width","height","viewBox","className","style","title","desc"];function eq(){return(eq=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,eV),u=o||{width:n,height:r,x:0,y:0},d=R("recharts-surface",a);return N.createElement("svg",eq({},eA(c,!0,"svg"),{className:d,width:n,height:r,style:i,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),N.createElement("title",null,l),N.createElement("desc",null,s),t)}var eK=["children","className"];function eX(){return(eX=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,eK),a=R("recharts-layer",r);return N.createElement("g",eX({className:a},eA(o,!0),{ref:t}),n)});function eJ(e){return(eJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function e0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function tc(e,t){return to(e.getTime(),t.getTime())}function tu(e,t,n){if(e.size!==t.size)return!1;for(var r,o,a={},i=e.entries(),l=0;(r=i.next())&&!r.done;){for(var s=t.entries(),c=!1,u=0;(o=s.next())&&!o.done;){var d=r.value,p=d[0],f=d[1],m=o.value,g=m[0],h=m[1];!c&&!a[u]&&(c=n.equals(p,g,l,u,e,t,n)&&n.equals(f,h,p,g,e,t,n))&&(a[u]=!0),u++}if(!c)return!1;l++}return!0}function td(e,t,n){var r,o=tl(e),a=o.length;if(tl(t).length!==a)return!1;for(;a-- >0;)if((r=o[a])===ta&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!tr(t,r)||!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function tp(e,t,n){var r,o,a,i=tn(e),l=i.length;if(tn(t).length!==l)return!1;for(;l-- >0;)if((r=i[l])===ta&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!tr(t,r)||!n.equals(e[r],t[r],r,r,e,t,n)||(o=ti(e,r),a=ti(t,r),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable)))return!1;return!0}function tf(e,t){return to(e.valueOf(),t.valueOf())}function tm(e,t){return e.source===t.source&&e.flags===t.flags}function tg(e,t,n){if(e.size!==t.size)return!1;for(var r,o,a={},i=e.values();(r=i.next())&&!r.done;){for(var l=t.values(),s=!1,c=0;(o=l.next())&&!o.done;)!s&&!a[c]&&(s=n.equals(r.value,o.value,r.value,o.value,e,t,n))&&(a[c]=!0),c++;if(!s)return!1}return!0}function th(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var tb=Array.isArray,tv="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,ty=Object.assign,tE=Object.prototype.toString.call.bind(Object.prototype.toString),tS=tw();function tw(e){void 0===e&&(e={});var t,n,r,o,a,i,l,s,c,u=e.circular,d=e.createInternalComparator,p=e.createState,f=e.strict,m=(n=(t=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?tp:ts,areDatesEqual:tc,areMapsEqual:r?te(tu,tp):tu,areObjectsEqual:r?tp:td,arePrimitiveWrappersEqual:tf,areRegExpsEqual:tm,areSetsEqual:r?te(tg,tp):tg,areTypedArraysEqual:r?tp:th};if(n&&(o=ty({},o,n(o))),t){var a=tt(o.areArraysEqual),i=tt(o.areMapsEqual),l=tt(o.areObjectsEqual),s=tt(o.areSetsEqual);o=ty({},o,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:l,areSetsEqual:s})}return o}(e)).areArraysEqual,r=t.areDatesEqual,o=t.areMapsEqual,a=t.areObjectsEqual,i=t.arePrimitiveWrappersEqual,l=t.areRegExpsEqual,s=t.areSetsEqual,c=t.areTypedArraysEqual,function(e,t,u){if(e===t)return!0;if(null==e||null==t||"object"!=typeof e||"object"!=typeof t)return e!=e&&t!=t;var d=e.constructor;if(d!==t.constructor)return!1;if(d===Object)return a(e,t,u);if(tb(e))return n(e,t,u);if(null!=tv&&tv(e))return c(e,t,u);if(d===Date)return r(e,t,u);if(d===RegExp)return l(e,t,u);if(d===Map)return o(e,t,u);if(d===Set)return s(e,t,u);var p=tE(e);return"[object Date]"===p?r(e,t,u):"[object RegExp]"===p?l(e,t,u):"[object Map]"===p?o(e,t,u):"[object Set]"===p?s(e,t,u):"[object Object]"===p?"function"!=typeof e.then&&"function"!=typeof t.then&&a(e,t,u):"[object Arguments]"===p?a(e,t,u):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&i(e,t,u)}),g=d?d(m):function(e,t,n,r,o,a,i){return m(e,t,i)};return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,a=e.strict;if(r)return function(e,i){var l=r(),s=l.cache;return n(e,i,{cache:void 0===s?t?new WeakMap:void 0:s,equals:o,meta:l.meta,strict:a})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:a})};var i={cache:void 0,equals:o,meta:void 0,strict:a};return function(e,t){return n(e,t,i)}}({circular:void 0!==u&&u,comparator:m,createState:p,equals:g,strict:void 0!==f&&f})}function tx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame(function r(o){if(n<0&&(n=o),o-n>t)e(o),n=-1;else{var a;a=r,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(a)}})}function tO(e){return(tO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0&&e<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var p=tH(a,l),f=tH(i,s),m=(e=a,t=l,function(n){var r;return tz([].concat(function(e){if(Array.isArray(e))return tU(e)}(r=tZ(e,t).map(function(e,t){return e*t}).slice(1))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||tB(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),n)}),g=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o,a=p(n)-t,i=m(n);if(1e-4>Math.abs(a-t)||i<1e-4)break;n=(o=n-a/i)>1?1:o<0?0:o}return f(n)};return g.isStepper=!1,g},t$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,a=e.dt,i=void 0===a?17:a,l=function(e,t,r){var a=r+(-(e-t)*n-r*o)*i/1e3,l=r*i/1e3+e;return 1e-4>Math.abs(l-t)&&1e-4>Math.abs(a)?[t,0]:[l,a]};return l.isStepper=!0,l.dt=i,l},tW=function(){for(var e=arguments.length,t=Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0?n[o-1]:r,p=c||Object.keys(s);if("function"==typeof l||"spring"===l)return[].concat(t6(e),[t.runJSAnimation.bind(t,{from:d.style,to:s,duration:a,easing:l}),a]);var f=tj(p,a,l),m=t9(t9(t9({},d.style),s),{},{transition:f});return[].concat(t6(e),[m,a,u]).filter(tP)},[i,Math.max(void 0===l?0:l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){if(!this.manager){var t,n,r;this.manager=(t=function(){return null},n=!1,r=function e(r){if(!n){if(Array.isArray(r)){if(!r.length)return;var o=function(e){if(Array.isArray(e))return e}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return tk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tk(e,t)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],i=o.slice(1);if("number"==typeof a){tx(e.bind(null,i),a);return}e(a),tx(e.bind(null,i));return}"object"===tO(r)&&t(r),"function"==typeof r&&r()}},{stop:function(){n=!0},start:function(e){n=!1,r(e)},subscribe:function(e){return t=e,function(){t=function(){return null}}}})}var o=e.begin,a=e.duration,i=e.attributeName,l=e.to,s=e.easing,c=e.onAnimationStart,u=e.onAnimationEnd,d=e.steps,p=e.children,f=this.manager;if(this.unSubscribe=f.subscribe(this.handleStyleChange),"function"==typeof s||"function"==typeof p||"spring"===s){this.runJSAnimation(e);return}if(d.length>1){this.runStepAnimation(e);return}var m=i?t7({},i,l):l,g=tj(Object.keys(m),a,s);f.start([c,o,t9(t9({},m),{},{transition:g}),a,u])}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration),r=(e.attributeName,e.easing,e.isActive),o=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,t3)),a=N.Children.count(t),i=tD(this.state.style);if("function"==typeof t)return t(i);if(!r||0===a||n<=0)return t;var l=function(e){var t=e.props,n=t.style,r=t.className;return(0,N.cloneElement)(e,t9(t9({},o),{},{style:t9(t9({},void 0===n?{}:n),i),className:r}))};return 1===a?l(N.Children.only(t)):N.createElement("div",null,N.Children.map(t,function(e){return l(e)}))}}],ne(a.prototype,n),r&&ne(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);ni.displayName="Animate",ni.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},ni.propTypes={from:e5().oneOfType([e5().object,e5().string]),to:e5().oneOfType([e5().object,e5().string]),attributeName:e5().string,duration:e5().number,begin:e5().number,easing:e5().oneOfType([e5().string,e5().func]),steps:e5().arrayOf(e5().shape({duration:e5().number.isRequired,style:e5().object.isRequired,easing:e5().oneOfType([e5().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),e5().func]),properties:e5().arrayOf("string"),onAnimationEnd:e5().func})),children:e5().oneOfType([e5().node,e5().func]),isActive:e5().bool,canBegin:e5().bool,onAnimationEnd:e5().func,shouldReAnimate:e5().bool,onAnimationStart:e5().func,onAnimationReStart:e5().func};var nl=n(42859),ns=["children","appearOptions","enterOptions","leaveOptions"];function nc(e){return(nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nu(){return(nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce(function(e,t){return e+(Number.isFinite(t.duration)&&t.duration>0?t.duration:0)},0):Number.isFinite(n)?n:0},nE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nm(e,t)}(a,e);var t,n,r,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nh(a);if(t){var r=nh(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===nc(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return ng(e)}(this,e)});function a(){var e;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,a),nb(ng(e=o.call(this)),"handleEnter",function(t,n){var r=e.props,o=r.appearOptions,a=r.enterOptions;e.handleStyleActive(n?o:a)}),nb(ng(e),"handleExit",function(){var t=e.props.leaveOptions;e.handleStyleActive(t)}),e.state={isActive:!1},e}return n=[{key:"handleStyleActive",value:function(e){if(e){var t=e.onAnimationEnd?function(){e.onAnimationEnd()}:null;this.setState(np(np({},e),{},{onAnimationEnd:t,isActive:!0}))}}},{key:"parseTimeout",value:function(){var e=this.props,t=e.appearOptions,n=e.enterOptions,r=e.leaveOptions;return ny(t)+ny(n)+ny(r)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=(t.appearOptions,t.enterOptions,t.leaveOptions,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,ns));return N.createElement(nl.Transition,nu({},r,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return N.createElement(ni,e.state,N.Children.only(n))})}}],nf(a.prototype,n),r&&nf(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.Component);function nS(e){var t=e.component,n=e.children,r=e.appear,o=e.enter,a=e.leave;return N.createElement(nl.TransitionGroup,{component:t},N.Children.map(n,function(e,t){return N.createElement(nE,{appearOptions:r,enterOptions:o,leaveOptions:a,key:"child-".concat(t)},e)}))}function nw(e){return(nw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nx(e,t,n){var r;return(r=function(e,t){if("object"!==nw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nw(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===nw(r)?r:String(r))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}nE.propTypes={appearOptions:e5().object,enterOptions:e5().object,leaveOptions:e5().object,children:e5().element},nS.propTypes={appear:e5().object,enter:e5().object,leave:e5().object,children:e5().oneOfType([e5().array,e5().element]),component:e5().any},nS.defaultProps={component:"span"};var nO="recharts-tooltip-wrapper",nk={visibility:"hidden"};function nC(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,a=e.position,i=e.reverseDirection,l=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&$(a[r]))return a[r];var u=n[r]-l-o,d=n[r]+o;return t[r]?i[r]?u:d:i[r]?us[r]+c?Math.max(u,s[r]):Math.max(d,s[r])}function nT(e){return(nT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nI(e){for(var t=1;t1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.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 e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)!==this.state.dismissedAtCoordinate.x||(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var e,t,n,r,o,a,i,l,s,c,u,d,p,f,m,g,h,b,v,y,E=this,S=this.props,w=S.active,x=S.allowEscapeViewBox,O=S.animationDuration,k=S.animationEasing,C=S.children,T=S.coordinate,A=S.hasPayload,I=S.isAnimationActive,_=S.offset,P=S.position,M=S.reverseDirection,L=S.useTranslate3d,D=S.viewBox,j=S.wrapperStyle,F=(p=(e={allowEscapeViewBox:x,coordinate:T,offsetTopLeft:_,position:P,reverseDirection:M,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:L,viewBox:D}).allowEscapeViewBox,f=e.coordinate,m=e.offsetTopLeft,g=e.position,h=e.reverseDirection,b=e.tooltipBox,v=e.useTranslate3d,y=e.viewBox,b.height>0&&b.width>0&&f?(n=(t={translateX:u=nC({allowEscapeViewBox:p,coordinate:f,key:"x",offsetTopLeft:m,position:g,reverseDirection:h,tooltipDimension:b.width,viewBox:y,viewBoxDimension:y.width}),translateY:d=nC({allowEscapeViewBox:p,coordinate:f,key:"y",offsetTopLeft:m,position:g,reverseDirection:h,tooltipDimension:b.height,viewBox:y,viewBoxDimension:y.height}),useTranslate3d:v}).translateX,r=t.translateY,c=tD({transform:t.useTranslate3d?"translate3d(".concat(n,"px, ").concat(r,"px, 0)"):"translate(".concat(n,"px, ").concat(r,"px)")})):c=nk,{cssProperties:c,cssClasses:(i=(o={translateX:u,translateY:d,coordinate:f}).coordinate,l=o.translateX,s=o.translateY,R(nO,(nx(a={},"".concat(nO,"-right"),$(l)&&i&&$(i.x)&&l>=i.x),nx(a,"".concat(nO,"-left"),$(l)&&i&&$(i.x)&&l=i.y),nx(a,"".concat(nO,"-top"),$(s)&&i&&$(i.y)&&s0;return N.createElement(nD,{allowEscapeViewBox:o,animationDuration:a,animationEasing:i,isAnimationActive:u,active:r,coordinate:s,hasPayload:E,offset:d,position:m,reverseDirection:g,useTranslate3d:h,viewBox:b,wrapperStyle:v},(e=nH(nH({},this.props),{},{payload:y}),N.isValidElement(l)?N.cloneElement(l,e):"function"==typeof l?N.createElement(l,e):N.createElement(e3,e)))}}],nG(a.prototype,n),r&&nG(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);nV(nK,"displayName","Tooltip"),nV(nK,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!nj.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 nX=n(9332),nQ=n.n(nX);let nJ=Math.cos,n0=Math.sin,n1=Math.sqrt,n2=Math.PI,n4=2*n2;var n3={draw(e,t){let n=n1(t/n2);e.moveTo(n,0),e.arc(0,0,n,0,n4)}};let n6=n1(1/3),n5=2*n6,n8=n0(n2/10)/n0(7*n2/10),n9=n0(n4/10)*n8,n7=-nJ(n4/10)*n8,re=n1(3),rt=n1(3)/2,rn=1/n1(12),rr=(rn/2+1)*3;function ro(e){return function(){return e}}function ra(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ri(){let e=ra(["M",",",""]);return ri=function(){return e},e}function rl(){let e=ra(["Z"]);return rl=function(){return e},e}function rs(){let e=ra(["L",",",""]);return rs=function(){return e},e}function rc(){let e=ra(["Q",",",",",",",""]);return rc=function(){return e},e}function ru(){let e=ra(["C",",",",",",",",",",",""]);return ru=function(){return e},e}function rd(){let e=ra(["M",",",""]);return rd=function(){return e},e}function rp(){let e=ra(["L",",",""]);return rp=function(){return e},e}function rf(){let e=ra(["L",",",""]);return rf=function(){return e},e}function rm(){let e=ra(["A",",",",0,0,",",",",",""]);return rm=function(){return e},e}function rg(){let e=ra(["M",",",""]);return rg=function(){return e},e}function rh(){let e=ra(["L",",",""]);return rh=function(){return e},e}function rb(){let e=ra(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""]);return rb=function(){return e},e}function rv(){let e=ra(["A",",",",0,",",",",",",",""]);return rv=function(){return e},e}function ry(){let e=ra(["M",",","h","v","h","Z"]);return ry=function(){return e},e}let rE=Math.PI,rS=2*rE,rw=rS-1e-6;function rx(e){this._+=e[0];for(let t=1,n=e.length;t1e-6){if(Math.abs(u*l-s*c)>1e-6&&o){let p=n-a,f=r-i,m=l*l+s*s,g=Math.sqrt(m),h=Math.sqrt(d),b=o*Math.tan((rE-Math.acos((m+d-(p*p+f*f))/(2*g*h)))/2),v=b/h,y=b/g;Math.abs(v-1)>1e-6&&this._append(rf(),e+v*c,t+v*u),this._append(rm(),o,o,+(u*p>c*f),this._x1=e+y*l,this._y1=t+y*s)}else this._append(rp(),this._x1=e,this._y1=t)}}arc(e,t,n,r,o,a){if(e=+e,t=+t,a=!!a,(n=+n)<0)throw Error("negative radius: ".concat(n));let i=n*Math.cos(r),l=n*Math.sin(r),s=e+i,c=t+l,u=1^a,d=a?r-o:o-r;null===this._x1?this._append(rg(),s,c):(Math.abs(this._x1-s)>1e-6||Math.abs(this._y1-c)>1e-6)&&this._append(rh(),s,c),n&&(d<0&&(d=d%rS+rS),d>rw?this._append(rb(),n,n,u,e-i,t-l,n,n,u,this._x1=s,this._y1=c):d>1e-6&&this._append(rv(),n,n,+(d>=rE),u,this._x1=e+n*Math.cos(o),this._y1=t+n*Math.sin(o)))}rect(e,t,n,r){this._append(ry(),this._x0=this._x1=+e,this._y0=this._y1=+t,n=+n,+r,-n)}toString(){return this._}constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?rx:function(e){let t=Math.floor(e);if(!(t>=0))throw Error("invalid digits: ".concat(e));if(t>15)return rx;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw RangeError("invalid digits: ".concat(n));t=e}return e},()=>new rO(t)}function rC(e){return(rC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}rO.prototype,n1(3),n1(3);var rT=["type","size","sizeType"];function rA(){return(rA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,rT)),{},{type:r,size:a,sizeType:l}),c=s.className,u=s.cx,d=s.cy,p=eA(s,!0);return u===+u&&d===+d&&a===+a?N.createElement("path",rA({},p,{className:R("recharts-symbols",c),transform:"translate(".concat(u,", ").concat(d,")"),d:(t=rR["symbol".concat(nQ()(r))]||n3,(function(e,t){let n=null,r=rk(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:ro(e||n3),t="function"==typeof t?t:ro(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:ro(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:ro(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o})().type(t).size(rP(a,l,r))())})):null};function rL(e){return(rL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rD(){return(rD=Object.assign?Object.assign.bind():function(e){for(var t=1;t');var f=t.inactive?i:t.color;return N.createElement("li",rD({className:d,style:s,key:"legend-item-".concat(n)},em(e.props,t,n)),N.createElement(eY,{width:r,height:r,viewBox:l,style:c},e.renderIcon(t)),N.createElement("span",{className:"recharts-legend-item-text",style:{color:f}},u?u(p,t,n):p))})}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;return t&&t.length?N.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===n?r:"left"}},this.renderItems()):null}}],rF(a.prototype,n),r&&rF(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);function rG(e){return(rG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}rZ(rH,"displayName","Legend"),rZ(rH,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var r$=["ref"];function rW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rV(e){for(var t=1;t1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t))}else(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?rV({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,a=r.align,i=r.verticalAlign,l=r.margin,s=r.chartWidth,c=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===a&&"vertical"===o?{left:((s||0)-this.getBBoxSnapshot().width)/2}:"right"===a?{right:l&&l.right||0}:{left:l&&l.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===i?{top:((c||0)-this.getBBoxSnapshot().height)/2}:"bottom"===i?{bottom:l&&l.bottom||0}:{top:l&&l.top||0}),rV(rV({},t),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,o=t.height,a=t.wrapperStyle,i=t.payloadUniqBy,l=t.payload,s=rV(rV({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(a)),a);return N.createElement("div",{className:"recharts-legend-wrapper",style:s,ref:function(t){e.wrapperNode=t}},function(e,t){if(N.isValidElement(e))return N.cloneElement(e,t);if("function"==typeof e)return N.createElement(e,t);t.ref;var n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,r$);return N.createElement(rH,n)}(n,rV(rV({},this.props),{},{payload:nU(l,i,r0)})))}}],r=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&$(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],n&&rq(a.prototype,n),r&&rq(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);function r2(){return(r2=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?1:-1,s=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(i>0&&o instanceof Array){for(var u=[0,0,0,0],d=0;d<4;d++)u[d]=o[d]>i?i:o[d];a="M".concat(e,",").concat(t+l*u[0]),u[0]>0&&(a+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(e+s*u[0],",").concat(t)),a+="L ".concat(e+n-s*u[1],",").concat(t),u[1]>0&&(a+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n ").concat(e+n,",").concat(t+l*u[1])),a+="L ".concat(e+n,",").concat(t+r-l*u[2]),u[2]>0&&(a+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n ").concat(e+n-s*u[2],",").concat(t+r)),a+="L ".concat(e+s*u[3],",").concat(t+r),u[3]>0&&(a+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n ").concat(e,",").concat(t+r-l*u[3])),a+="Z"}else if(i>0&&o===+o&&o>0){var p=Math.min(i,o);a="M ".concat(e,",").concat(t+l*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+s*p,",").concat(t,"\n L ").concat(e+n-s*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n,",").concat(t+l*p,"\n L ").concat(e+n,",").concat(t+r-l*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n-s*p,",").concat(t+r,"\n L ").concat(e+s*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e,",").concat(t+r-l*p," Z")}else a="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return a},oe=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,a=t.y,i=t.width,l=t.height;return!!(Math.abs(i)>0&&Math.abs(l)>0)&&n>=Math.min(o,o+i)&&n<=Math.max(o,o+i)&&r>=Math.min(a,a+l)&&r<=Math.max(a,a+l)},ot={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},on=function(e){var t,n=r9(r9({},ot),e),r=(0,N.useRef)(),o=function(e){if(Array.isArray(e))return e}(t=(0,N.useState)(-1))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,2)||function(e,t){if(e){if("string"==typeof e)return r5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r5(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],i=o[1];(0,N.useEffect)(function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&i(e)}catch(e){}},[]);var l=n.x,s=n.y,c=n.width,u=n.height,d=n.radius,p=n.className,f=n.animationEasing,m=n.animationDuration,g=n.animationBegin,h=n.isAnimationActive,b=n.isUpdateAnimationActive;if(l!==+l||s!==+s||c!==+c||u!==+u||0===c||0===u)return null;var v=R("recharts-rectangle",p);return b?N.createElement(ni,{canBegin:a>0,from:{width:c,height:u,x:l,y:s},to:{width:c,height:u,x:l,y:s},duration:m,animationEasing:f,isActive:b},function(e){var t=e.width,o=e.height,i=e.x,l=e.y;return N.createElement(ni,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:m,isActive:h,easing:f},N.createElement("path",r6({},eA(n,!0),{className:v,d:r7(i,l,t,o,d),ref:r})))}):N.createElement("path",r6({},eA(n,!0),{className:v,d:r7(l,s,c,u,d)}))};function or(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function oo(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}class oa extends Map{get(e){return super.get(oi(this,e))}has(e){return super.has(oi(this,e))}set(e,t){return super.set(function(e,t){let{_intern:n,_key:r}=e,o=r(t);return n.has(o)?n.get(o):(n.set(o,t),t)}(this,e),t)}delete(e){return super.delete(function(e,t){let{_intern:n,_key:r}=e,o=r(t);return n.has(o)&&(t=n.get(o),n.delete(o)),t}(this,e))}constructor(e,t=ol){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(let[t,n]of e)this.set(t,n)}}function oi(e,t){let{_intern:n,_key:r}=e,o=r(t);return n.has(o)?n.get(o):t}function ol(e){return null!==e&&"object"==typeof e?e.valueOf():e}let os=Symbol("implicit");function oc(){var e=new oa,t=[],n=[],r=os;function o(o){let a=e.get(o);if(void 0===a){if(r!==os)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();for(let r of(t=[],e=new oa,n))e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return oc(t,n).unknown(r)},or.apply(o,arguments),o}function ou(){var e,t,n=oc().unknown(void 0),r=n.domain,o=n.range,a=0,i=1,l=!1,s=0,c=0,u=.5;function d(){var n=r().length,d=i1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||nj.isSsr)return{width:0,height:0};var r=(Object.keys(t=om({},n)).forEach(function(e){t[e]||delete t[e]}),t),o=JSON.stringify({text:e,copyStyle:r});if(og.widthCache[o])return og.widthCache[o];try{var a=document.getElementById(ob);a||((a=document.createElement("span")).setAttribute("id",ob),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var i=om(om({},oh),r);Object.assign(a.style,i),a.textContent="".concat(e);var l=a.getBoundingClientRect(),s={width:l.width,height:l.height};return og.widthCache[o]=s,++og.cacheCount>2e3&&(og.cacheCount=0,og.widthCache={}),s}catch(e){return{width:0,height:0}}};function oy(e){return(oy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oS(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oF(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce(function(e,t){var a=t.word,i=t.width,l=e[e.length-1];return l&&(null==r||o||l.width+i+ni||t.reduce(function(e,t){return e.width>t.width?e:t}).width>Number(r),t]},m=0,g=l.length-1,h=0;m<=g&&h<=l.length-1;){var b=Math.floor((m+g)/2),v=oj(f(b-1),2),y=v[0],E=v[1],S=oj(f(b),1)[0];if(y||S||(m=b+1),y&&S&&(g=b-1),!y&&S){a=E;break}h++}return a||p},oz=function(e){return[{words:en()(e)?[]:e.toString().split(oB)}]},oH=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,a=e.breakAll,i=e.maxLines;if((t||n)&&!nj.isSsr){var l=oU({breakAll:a,children:r,style:o});return l?oZ({breakAll:a,children:r,maxLines:i,style:o},l.wordsWithComputedWidth,l.spaceWidth,t,n):oz(r)}return oz(r)},oG="#808080",o$=function(e){var t,n=e.x,r=void 0===n?0:n,o=e.y,a=void 0===o?0:o,i=e.lineHeight,l=void 0===i?"1em":i,s=e.capHeight,c=void 0===s?"0.71em":s,u=e.scaleToFit,d=void 0!==u&&u,p=e.textAnchor,f=e.verticalAnchor,m=e.fill,g=void 0===m?oG:m,h=oD(e,oP),b=(0,N.useMemo)(function(){return oH({breakAll:h.breakAll,children:h.children,maxLines:h.maxLines,scaleToFit:d,style:h.style,width:h.width})},[h.breakAll,h.children,h.maxLines,d,h.style,h.width]),v=h.dx,y=h.dy,E=h.angle,S=h.className,w=h.breakAll,x=oD(h,oM);if(!W(r)||!W(a))return null;var O=r+($(v)?v:0),k=a+($(y)?y:0);switch(void 0===f?"end":f){case"start":t=o_("calc(".concat(c,")"));break;case"middle":t=o_("calc(".concat((b.length-1)/2," * -").concat(l," + (").concat(c," / 2))"));break;default:t=o_("calc(".concat(b.length-1," * -").concat(l,")"))}var C=[];if(d){var T=b[0].width,A=h.width;C.push("scale(".concat(($(A)?A/T:1)/T,")"))}return E&&C.push("rotate(".concat(E,", ").concat(O,", ").concat(k,")")),C.length&&(x.transform=C.join(" ")),N.createElement("text",oL({},eA(x,!0),{x:O,y:k,className:R("recharts-text",S),textAnchor:void 0===p?"start":p,fill:g.includes("url")?oG:g}),b.map(function(e,n){var r=e.words.join(w?"":" ");return N.createElement("tspan",{x:O,dy:0===n?t:l,key:r},r)}))};let oW=Math.sqrt(50),oV=Math.sqrt(10),oq=Math.sqrt(2);function oY(e,t,n){let r,o,a;let i=(t-e)/Math.max(0,n),l=Math.floor(Math.log10(i)),s=i/Math.pow(10,l),c=s>=oW?10:s>=oV?5:s>=oq?2:1;return(l<0?(r=Math.round(e*(a=Math.pow(10,-l)/c)),o=Math.round(t*a),r/at&&--o,a=-a):(r=Math.round(e/(a=Math.pow(10,l)*c)),o=Math.round(t/a),r*at&&--o),o0))return[];if(e===t)return[e];let r=t=o))return[];let l=a-o+1,s=Array(l);if(r){if(i<0)for(let e=0;et?1:e>=t?0:NaN}function o0(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function o1(e){let t,n,r;function o(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o>>1;0>n(e[t],r)?o=t+1:a=t}while(ooJ(e(t),n),r=(t,n)=>e(t)-n):(t=e===oJ||e===o0?e:o2,n=e,r=e),{left:o,center:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,i=o(e,t,n,a-1);return i>n&&r(e[i-1],t)>-r(e[i],t)?i-1:i},right:function(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o>>1;0>=n(e[t],r)?o=t+1:a=t}while(o>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?am(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?am(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ar.exec(e))?new ah(t[1],t[2],t[3],1):(t=ao.exec(e))?new ah(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=aa.exec(e))?am(t[1],t[2],t[3],t[4]):(t=ai.exec(e))?am(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=al.exec(e))?aw(t[1],t[2]/100,t[3]/100,1):(t=as.exec(e))?aw(t[1],t[2]/100,t[3]/100,t[4]):ac.hasOwnProperty(e)?af(ac[e]):"transparent"===e?new ah(NaN,NaN,NaN,0):null}function af(e){return new ah(e>>16&255,e>>8&255,255&e,1)}function am(e,t,n,r){return r<=0&&(e=t=n=NaN),new ah(e,t,n,r)}function ag(e,t,n,r){var o;return 1==arguments.length?((o=e)instanceof o9||(o=ap(o)),o)?new ah((o=o.rgb()).r,o.g,o.b,o.opacity):new ah:new ah(e,t,n,null==r?1:r)}function ah(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ab(){return"#".concat(aS(this.r)).concat(aS(this.g)).concat(aS(this.b))}function av(){let e=ay(this.opacity);return"".concat(1===e?"rgb(":"rgba(").concat(aE(this.r),", ").concat(aE(this.g),", ").concat(aE(this.b)).concat(1===e?")":", ".concat(e,")"))}function ay(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function aE(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function aS(e){return((e=aE(e))<16?"0":"")+e.toString(16)}function aw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new aO(e,t,n,r)}function ax(e){if(e instanceof aO)return new aO(e.h,e.s,e.l,e.opacity);if(e instanceof o9||(e=ap(e)),!e)return new aO;if(e instanceof aO)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,l=a-o,s=(a+o)/2;return l?(i=t===a?(n-r)/l+(n0&&s<1?0:i,new aO(i,l,s,e.opacity)}function aO(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ak(e){return(e=(e||0)%360)<0?e+360:e}function aC(e){return Math.max(0,Math.min(1,e||0))}function aT(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function aA(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}o5(o9,ap,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:au,formatHex:au,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ax(this).formatHsl()},formatRgb:ad,toString:ad}),o5(ah,ag,o8(o9,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ah(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ah(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ah(aE(this.r),aE(this.g),aE(this.b),ay(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:ab,formatHex:ab,formatHex8:function(){return"#".concat(aS(this.r)).concat(aS(this.g)).concat(aS(this.b)).concat(aS((isNaN(this.opacity)?1:this.opacity)*255))},formatRgb:av,toString:av})),o5(aO,function(e,t,n,r){return 1==arguments.length?ax(e):new aO(e,t,n,null==r?1:r)},o8(o9,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new aO(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new aO(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ah(aT(e>=240?e-240:e+120,o,r),aT(e,o,r),aT(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new aO(ak(this.h),aC(this.s),aC(this.l),ay(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ay(this.opacity);return"".concat(1===e?"hsl(":"hsla(").concat(ak(this.h),", ").concat(100*aC(this.s),"%, ").concat(100*aC(this.l),"%").concat(1===e?")":", ".concat(e,")"))}}));var aI=e=>()=>e;function aN(e,t){var n=t-e;return n?function(t){return e+t*n}:aI(isNaN(e)?t:e)}var aR=function e(t){var n,r=1==(n=+(n=t))?aN:function(e,t){var r,o,a;return t-e?(r=e,o=t,r=Math.pow(r,a=n),o=Math.pow(o,a)-r,a=1/a,function(e){return Math.pow(r+e*o,a)}):aI(isNaN(e)?t:e)};function o(e,t){var n=r((e=ag(e)).r,(t=ag(t)).r),o=r(e.g,t.g),a=r(e.b,t.b),i=aN(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return o.gamma=e,o}(1);function a_(e){return function(t){var n,r,o=t.length,a=Array(o),i=Array(o),l=Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,l=rl&&(i=t.slice(l,i),c[s]?c[s]+=i:c[++s]=i),(o=o[0])===(a=a[0])?c[s]?c[s]+=a:c[++s]=a:(c[++s]=null,u.push({i:s,x:aP(o,a)})),l=aL.lastIndex;return lt&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),r=s>2?aH:az,o=a=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(i.map(e),l,s)))(e(c(t)))}return d.invert=function(n){return c(t((a||(a=r(l,i.map(e),aP)))(n)))},d.domain=function(e){return arguments.length?(i=Array.from(e,aF),u()):i.slice()},d.range=function(e){return arguments.length?(l=Array.from(e),u()):l.slice()},d.rangeRound=function(e){return l=Array.from(e),s=aj,u()},d.clamp=function(e){return arguments.length?(c=!!e||aU,u()):c!==aU},d.interpolate=function(e){return arguments.length?(s=e,u()):s},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function aW(){return a$()(aU,aU)}var aV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function aq(e){var t;if(!(t=aV.exec(e)))throw Error("invalid format: "+e);return new aY({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function aY(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function aK(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function aX(e){return(e=aK(Math.abs(e)))?e[1]:NaN}function aQ(e,t){var n=aK(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+Array(o-r.length+2).join("0")}aq.prototype=aY.prototype,aY.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 aJ={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>aQ(100*e,t),r:aQ,s:function(e,t){var n=aK(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(b=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,i=r.length;return a===i?r:a>i?r+Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+Array(1-a).join("0")+aK(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function a0(e){return e}var a1=Array.prototype.map,a2=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function a4(e,t,n,r){var o,a,i=oQ(e,t,n);switch((r=aq(null==r?",f":r)).type){case"s":var l=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(a=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(aX(l)/3)))-aX(Math.abs(i))))||(r.precision=a),E(r,l);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(a=Math.max(0,aX(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(o=Math.abs(o=i)))-aX(o))+1)||(r.precision=a-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(a=Math.max(0,-aX(Math.abs(i))))||(r.precision=a-("%"===r.type)*2)}return y(r)}function a3(e){var t=e.domain;return e.ticks=function(e){var n=t();return oK(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return a4(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,a=t(),i=0,l=a.length-1,s=a[i],c=a[l],u=10;for(c0;){if((o=oX(s,c,n))===r)return a[i]=s,a[l]=c,t(a);if(o>0)s=Math.floor(s/o)*o,c=Math.ceil(c/o)*o;else if(o<0)s=Math.ceil(s*o)/o,c=Math.floor(c*o)/o;else break;r=o}return e},e}function a6(){var e=aW();return e.copy=function(){return aG(e,a6())},or.apply(e,arguments),a3(e)}function a5(e,t){e=e.slice();var n,r=0,o=e.length-1,a=e[r],i=e[o];return i-e(-t,n)}function io(e){let t,n;let r=e(a8,a9),o=r.domain,a=10;function i(){var i,l;return t=(i=a)===Math.E?Math.log:10===i&&Math.log10||2===i&&Math.log2||(i=Math.log(i),e=>Math.log(e)/i),n=10===(l=a)?it:l===Math.E?Math.exp:e=>Math.pow(l,e),o()[0]<0?(t=ir(t),n=ir(n),e(a7,ie)):e(a8,a9),r}return r.base=function(e){return arguments.length?(a=+e,i()):a},r.domain=function(e){return arguments.length?(o(e),i()):o()},r.ticks=e=>{let r,i;let l=o(),s=l[0],c=l[l.length-1],u=c0){for(;d<=p;++d)for(r=1;rc)break;m.push(i)}}else for(;d<=p;++d)for(r=a-1;r>=1;--r)if(!((i=d>0?r/n(-d):r*n(d))c)break;m.push(i)}2*m.length{if(null==e&&(e=10),null==o&&(o=10===a?"s":","),"function"!=typeof o&&(a%1||null!=(o=aq(o)).precision||(o.trim=!0),o=y(o)),e===1/0)return o;let i=Math.max(1,a*e/r.ticks().length);return e=>{let r=e/n(Math.round(t(e)));return r*ao(a5(o(),{floor:e=>n(Math.floor(t(e))),ceil:e=>n(Math.ceil(t(e)))})),r}function ia(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ii(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function il(e){var t=1,n=e(ia(1),ii(t));return n.constant=function(n){return arguments.length?e(ia(t=+n),ii(t)):t},a3(n)}function is(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ic(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function iu(e){return e<0?-e*e:e*e}function id(e){var t=e(aU,aU),n=1;return t.exponent=function(t){return arguments.length?1==(n=+t)?e(aU,aU):.5===n?e(ic,iu):e(is(n),is(1/n)):n},a3(t)}function ip(){var e=id(a$());return e.copy=function(){return aG(e,ip()).exponent(e.exponent())},or.apply(e,arguments),e}function im(){return ip.apply(null,arguments).exponent(.5)}function ig(e){return Math.sign(e)*e*e}function ih(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n=o)&&(n=o)}return n}function ib(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function iv(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(et?1:0)}function iy(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}y=(v=function(e){var t,n,r,o=void 0===e.grouping||void 0===e.thousands?a0:(t=a1.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,a=[],i=0,l=t[0],s=0;o>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(e.substring(o-=l,o+l)),!((s+=l+1)>r));)l=t[i=(i+1)%t.length];return a.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",l=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?a0:(r=a1.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return r[+e]})}),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function p(e){var t=(e=aq(e)).fill,n=e.align,r=e.sign,p=e.symbol,f=e.zero,m=e.width,g=e.comma,h=e.precision,v=e.trim,y=e.type;"n"===y?(g=!0,y="g"):aJ[y]||(void 0===h&&(h=12),v=!0,y="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var E="$"===p?a:"#"===p&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",S="$"===p?i:/[%p]/.test(y)?c:"",w=aJ[y],x=/[defgprs%]/.test(y);function O(e){var a,i,c,p=E,O=S;if("c"===y)O=w(e)+O,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?d:w(Math.abs(e),h),v&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==r&&(k=!1),p=(k?"("===r?r:u:"-"===r||"("===r?"":r)+p,O=("s"===y?a2[8+b/3]:"")+O+(k&&"("===r?")":""),x){for(a=-1,i=e.length;++a(c=e.charCodeAt(a))||c>57){O=(46===c?l+e.slice(a+1):e.slice(a))+O,e=e.slice(0,a);break}}}g&&!f&&(e=o(e,1/0));var C=p.length+e.length+O.length,T=C>1)+p+e+O+T.slice(C);break;default:e=T+p+e+O}return s(e)}return h=void 0===h?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),O.toString=function(){return e+""},O}return{format:p,formatPrefix:function(e,t){var n=p(((e=aq(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(aX(t)/3))),o=Math.pow(10,-r),a=a2[8+r/3];return function(e){return n(o*e)+a}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,E=v.formatPrefix;let iE=new Date,iS=new Date;function iw(e,t,n,r){function o(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{let t=o(e),n=o.ceil(e);return e-t(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,a)=>{let i;let l=[];if(n=o.ceil(n),a=null==a?1:Math.floor(a),!(n0))return l;do l.push(i=new Date(+n)),t(n,a),e(n);while(iiw(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(o.count=(t,r)=>(iE.setTime(+t),iS.setTime(+r),e(iE),e(iS),Math.floor(n(iE,iS))),o.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null),o}let ix=iw(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ix.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?iw(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ix:null,ix.range;let iO=iw(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());iO.range;let ik=iw(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());ik.range;let iC=iw(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());iC.range;let iT=iw(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());iT.range;let iA=iw(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());iA.range;let iI=iw(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);iI.range;let iN=iw(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1);iN.range;let iR=iw(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5));function i_(e){return iw(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}iR.range;let iP=i_(0),iM=i_(1),iL=i_(2),iD=i_(3),ij=i_(4),iF=i_(5),iB=i_(6);function iU(e){return iw(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/6048e5)}iP.range,iM.range,iL.range,iD.range,ij.range,iF.range,iB.range;let iZ=iU(0),iz=iU(1),iH=iU(2),iG=iU(3),i$=iU(4),iW=iU(5),iV=iU(6);iZ.range,iz.range,iH.range,iG.range,i$.range,iW.range,iV.range;let iq=iw(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());iq.range;let iY=iw(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());iY.range;let iK=iw(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());iK.every=e=>isFinite(e=Math.floor(e))&&e>0?iw(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,iK.range;let iX=iw(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function iQ(e,t,n,r,o,a){let i=[[iO,1,1e3],[iO,5,5e3],[iO,15,15e3],[iO,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function l(t,n,r){let o=Math.abs(n-t)/r,a=o1(e=>{let[,,t]=e;return t}).right(i,o);if(a===i.length)return e.every(oQ(t/31536e6,n/31536e6,r));if(0===a)return ix.every(Math.max(oQ(t,n,r),1));let[l,s]=i[o/i[a-1][2]isFinite(e=Math.floor(e))&&e>0?iw(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,iX.range;let[iJ,i0]=iQ(iX,iY,iZ,iR,iA,iC),[i1,i2]=iQ(iK,iq,iP,iI,iT,ik);function i4(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function i3(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function i6(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var i5={"-":"",_:" ",0:"0"},i8=/^\s*\d+/,i9=/^%/,i7=/[\\^$*+?|[\]().{}]/g;function le(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a[e.toLowerCase(),t]))}function lo(e,t,n){var r=i8.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function la(e,t,n){var r=i8.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function li(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ll(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ls(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function lc(e,t,n){var r=i8.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function lu(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ld(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function lp(e,t,n){var r=i8.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function lf(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function lm(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function lg(e,t,n){var r=i8.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function lh(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function lb(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function lv(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ly(e,t,n){var r=i8.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function lE(e,t,n){var r=i8.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function lS(e,t,n){var r=i9.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function lw(e,t,n){var r=i8.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function lx(e,t,n){var r=i8.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function lO(e,t){return le(e.getDate(),t,2)}function lk(e,t){return le(e.getHours(),t,2)}function lC(e,t){return le(e.getHours()%12||12,t,2)}function lT(e,t){return le(1+iI.count(iK(e),e),t,3)}function lA(e,t){return le(e.getMilliseconds(),t,3)}function lI(e,t){return lA(e,t)+"000"}function lN(e,t){return le(e.getMonth()+1,t,2)}function lR(e,t){return le(e.getMinutes(),t,2)}function l_(e,t){return le(e.getSeconds(),t,2)}function lP(e){var t=e.getDay();return 0===t?7:t}function lM(e,t){return le(iP.count(iK(e)-1,e),t,2)}function lL(e){var t=e.getDay();return t>=4||0===t?ij(e):ij.ceil(e)}function lD(e,t){return e=lL(e),le(ij.count(iK(e),e)+(4===iK(e).getDay()),t,2)}function lj(e){return e.getDay()}function lF(e,t){return le(iM.count(iK(e)-1,e),t,2)}function lB(e,t){return le(e.getFullYear()%100,t,2)}function lU(e,t){return le((e=lL(e)).getFullYear()%100,t,2)}function lZ(e,t){return le(e.getFullYear()%1e4,t,4)}function lz(e,t){var n=e.getDay();return le((e=n>=4||0===n?ij(e):ij.ceil(e)).getFullYear()%1e4,t,4)}function lH(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+le(t/60|0,"0",2)+le(t%60,"0",2)}function lG(e,t){return le(e.getUTCDate(),t,2)}function l$(e,t){return le(e.getUTCHours(),t,2)}function lW(e,t){return le(e.getUTCHours()%12||12,t,2)}function lV(e,t){return le(1+iN.count(iX(e),e),t,3)}function lq(e,t){return le(e.getUTCMilliseconds(),t,3)}function lY(e,t){return lq(e,t)+"000"}function lK(e,t){return le(e.getUTCMonth()+1,t,2)}function lX(e,t){return le(e.getUTCMinutes(),t,2)}function lQ(e,t){return le(e.getUTCSeconds(),t,2)}function lJ(e){var t=e.getUTCDay();return 0===t?7:t}function l0(e,t){return le(iZ.count(iX(e)-1,e),t,2)}function l1(e){var t=e.getUTCDay();return t>=4||0===t?i$(e):i$.ceil(e)}function l2(e,t){return e=l1(e),le(i$.count(iX(e),e)+(4===iX(e).getUTCDay()),t,2)}function l4(e){return e.getUTCDay()}function l3(e,t){return le(iz.count(iX(e)-1,e),t,2)}function l6(e,t){return le(e.getUTCFullYear()%100,t,2)}function l5(e,t){return le((e=l1(e)).getUTCFullYear()%100,t,2)}function l8(e,t){return le(e.getUTCFullYear()%1e4,t,4)}function l9(e,t){var n=e.getUTCDay();return le((e=n>=4||0===n?i$(e):i$.ceil(e)).getUTCFullYear()%1e4,t,4)}function l7(){return"+0000"}function se(){return"%"}function st(e){return+e}function sn(e){return Math.floor(+e/1e3)}function sr(e){return new Date(e)}function so(e){return e instanceof Date?+e:+new Date(+e)}function sa(e,t,n,r,o,a,i,l,s,c){var u=aW(),d=u.invert,p=u.domain,f=c(".%L"),m=c(":%S"),g=c("%I:%M"),h=c("%I %p"),b=c("%a %d"),v=c("%b %d"),y=c("%B"),E=c("%Y");function S(e){return(s(e)1)for(var n,r,o,a=1,i=e[t[0]],l=i.length;a=0;)n[t]=t;return n}function sv(e,t){return e[t]}function sy(e){let t=[];return t.key=e,t}w=(S=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,a=e.days,i=e.shortDays,l=e.months,s=e.shortMonths,c=ln(o),u=lr(o),d=ln(a),p=lr(a),f=ln(i),m=lr(i),g=ln(l),h=lr(l),b=ln(s),v=lr(s),y={a:function(e){return i[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:lO,e:lO,f:lI,g:lU,G:lz,H:lk,I:lC,j:lT,L:lA,m:lN,M:lR,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:st,s:sn,S:l_,u:lP,U:lM,V:lD,w:lj,W:lF,x:null,X:null,y:lB,Y:lZ,Z:lH,"%":se},E={a:function(e){return i[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:lG,e:lG,f:lY,g:l5,G:l9,H:l$,I:lW,j:lV,L:lq,m:lK,M:lX,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:st,s:sn,S:lQ,u:lJ,U:l0,V:l2,w:l4,W:l3,x:null,X:null,y:l6,Y:l8,Z:l7,"%":se},S={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=h.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return O(e,t,n,r)},d:lm,e:lm,f:lE,g:lu,G:lc,H:lh,I:lh,j:lg,L:ly,m:lf,M:lb,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:lp,Q:lw,s:lx,S:lv,u:la,U:li,V:ll,w:lo,W:ls,x:function(e,t,r){return O(e,n,t,r)},X:function(e,t,n){return O(e,r,t,n)},y:lu,Y:lc,Z:ld,"%":lS};function w(e,t){return function(n){var r,o,a,i=[],l=-1,s=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++l53)return null;"w"in a||(a.w=1),"Z"in a?(r=(o=(r=i3(i6(a.y,0,1))).getUTCDay())>4||0===o?iz.ceil(r):iz(r),r=iN.offset(r,(a.V-1)*7),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(o=(r=i4(i6(a.y,0,1))).getDay())>4||0===o?iM.ceil(r):iM(r),r=iI.offset(r,(a.V-1)*7),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),o="Z"in a?i3(i6(a.y,0,1)).getUTCDay():i4(i6(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,i3(a)):i4(a)}}function O(e,t,n,r){for(var o,a,i=0,l=t.length,s=n.length;i=s)return -1;if(37===(o=t.charCodeAt(i++))){if(!(a=S[(o=t.charAt(i++))in i5?t.charAt(i++):o])||(r=a(e,n,r))<0)return -1}else if(o!=n.charCodeAt(r++))return -1}return r}return y.x=w(n,y),y.X=w(r,y),y.c=w(t,y),E.x=w(n,E),E.X=w(r,E),E.c=w(t,E),{format:function(e){var t=w(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=x(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",E);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e+="",!0);return t.toString=function(){return e},t}}}({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"]})).format,S.parse,x=S.utcFormat,S.utcParse,Array.prototype.slice;var sE=n(5037),sS=n.n(sE),sw=n(30264),sx=n.n(sw),sO=n(20734),sk=n.n(sO),sC=n(93574),sT=n.n(sC),sA=n(6122),sI=n.n(sA);function sN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=t?n.apply(void 0,o):e(t-i,sM(function(){for(var e=arguments.length,t=Array(e),r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);nr&&(o=r,a=n),[o,a]}function sV(e,t,n){if(e.lte(0))return new(sI())(0);var r=sZ.getDigitCount(e.toNumber()),o=new(sI())(10).pow(r),a=e.div(o),i=1!==r?.05:.1,l=new(sI())(Math.ceil(a.div(i).toNumber())).add(n).mul(i).mul(o);return t?l:new(sI())(Math.ceil(l))}function sq(e,t,n){var r=1,o=new(sI())(e);if(!o.isint()&&n){var a=Math.abs(e);a<1?(r=new(sI())(10).pow(sZ.getDigitCount(e)-1),o=new(sI())(Math.floor(o.div(r).toNumber())).mul(r)):a>1&&(o=new(sI())(Math.floor(e)))}else 0===e?o=new(sI())(Math.floor((t-1)/2)):n||(o=new(sI())(Math.floor(e)));var i=Math.floor((t-1)/2);return sF(sj(function(e){return o.add(new(sI())(e-i).mul(r)).toNumber()}),sD)(0,t)}var sY=sU(function(e){var t=sH(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=Math.max(o,2),l=sH(sW([n,r]),2),s=l[0],c=l[1];if(s===-1/0||c===1/0){var u=c===1/0?[s].concat(sz(sD(0,o-1).map(function(){return 1/0}))):[].concat(sz(sD(0,o-1).map(function(){return-1/0})),[c]);return n>r?sB(u):u}if(s===c)return sq(s,o,a);var d=function e(t,n,r,o){var a,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new(sI())(0),tickMin:new(sI())(0),tickMax:new(sI())(0)};var l=sV(new(sI())(n).sub(t).div(r-1),o,i),s=Math.ceil((a=t<=0&&n>=0?new(sI())(0):(a=new(sI())(t).add(n).div(2)).sub(new(sI())(a).mod(l))).sub(t).div(l).toNumber()),c=Math.ceil(new(sI())(n).sub(a).div(l).toNumber()),u=s+c+1;return u>r?e(t,n,r,o,i+1):(u0?c+(r-u):c,s=n>0?s:s+(r-u)),{step:l,tickMin:a.sub(new(sI())(s).mul(l)),tickMax:a.add(new(sI())(c).mul(l))})}(s,c,i,a),p=d.step,f=d.tickMin,m=d.tickMax,g=sZ.rangeStep(f,m.add(new(sI())(.1).mul(p)),p);return n>r?sB(g):g});sU(function(e){var t=sH(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=Math.max(o,2),l=sH(sW([n,r]),2),s=l[0],c=l[1];if(s===-1/0||c===1/0)return[n,r];if(s===c)return sq(s,o,a);var u=sV(new(sI())(c).sub(s).div(i-1),a,0),d=sF(sj(function(e){return new(sI())(s).add(new(sI())(e).mul(u)).toNumber()}),sD)(0,i).filter(function(e){return e>=s&&e<=c});return n>r?sB(d):d});var sK=sU(function(e,t){var n=sH(e,2),r=n[0],o=n[1],a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=sH(sW([r,o]),2),l=i[0],s=i[1];if(l===-1/0||s===1/0)return[r,o];if(l===s)return[l];var c=sV(new(sI())(s).sub(l).div(Math.max(t,2)-1),a,0),u=[].concat(sz(sZ.rangeStep(new(sI())(l),new(sI())(s).sub(new(sI())(.99).mul(c)),c)),[s]);return r>o?sB(u):u}),sX=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function sQ(){return(sQ=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,sX),!1);"x"===e.direction&&"number"!==l.type&&eW(!1);var u=a.map(function(e){var a,u,d=i(e,o),p=d.x,f=d.y,m=d.value,g=d.errorVal;if(!g)return null;var h=[];if(Array.isArray(g)){var b=function(e){if(Array.isArray(e))return e}(g)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(g,2)||function(e,t){if(e){if("string"==typeof e)return sJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sJ(e,t)}}(g,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a=b[0],u=b[1]}else a=u=g;if("vertical"===n){var v=l.scale,y=f+t,E=y+r,S=y-r,w=v(m-a),x=v(m+u);h.push({x1:x,y1:E,x2:x,y2:S}),h.push({x1:w,y1:y,x2:x,y2:y}),h.push({x1:w,y1:E,x2:w,y2:S})}else if("horizontal"===n){var O=s.scale,k=p+t,C=k-r,T=k+r,A=O(m-a),I=O(m+u);h.push({x1:C,y1:I,x2:T,y2:I}),h.push({x1:k,y1:A,x2:k,y2:I}),h.push({x1:C,y1:A,x2:T,y2:A})}return N.createElement(eQ,sQ({className:"recharts-errorBar",key:"bar-".concat(h.map(function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))},c),h.map(function(e){return N.createElement("line",sQ({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))}))});return N.createElement(eQ,{className:"recharts-errorBars"},u)}function s1(e){return(s1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s4(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,i=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(i<=1)return 0;if(o&&"angleAxis"===o.axisType&&1e-6>=Math.abs(Math.abs(o.range[1]-o.range[0])-360))for(var l=o.range,s=0;s0?r[s-1].coordinate:r[i-1].coordinate,u=r[s].coordinate,d=s>=i-1?r[0].coordinate:r[s+1].coordinate,p=void 0;if(H(u-c)!==H(d-u)){var f=[];if(H(d-u)===H(l[1]-l[0])){p=d;var m=u+l[1]-l[0];f[0]=Math.min(m,(m+c)/2),f[1]=Math.max(m,(m+c)/2)}else{p=c;var g=d+l[1]-l[0];f[0]=Math.min(u,(g+u)/2),f[1]=Math.max(u,(g+u)/2)}var h=[Math.min(u,(p+u)/2),Math.max(u,(p+u)/2)];if(e>h[0]&&e<=h[1]||e>=f[0]&&e<=f[1]){a=r[s].index;break}}else{var b=Math.min(c,d),v=Math.max(c,d);if(e>(b+u)/2&&e<=(v+u)/2){a=r[s].index;break}}}else for(var y=0;y0&&y(n[y].coordinate+n[y-1].coordinate)/2&&e<=(n[y].coordinate+n[y+1].coordinate)/2||y===i-1&&e>(n[y].coordinate+n[y-1].coordinate)/2){a=n[y].index;break}return a},co=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,a=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:a;break;default:t=a}return t},ca=function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},a=Object.keys(r),i=0,l=a.length;i=0});if(g&&g.length){var h=g[0].props.barSize,b=g[0].props[m];o[b]||(o[b]=[]),o[b].push({item:g[0],stackList:g.slice(1),barSize:en()(h)?t:h})}}return o},ci=function(e){var t,n=e.barGap,r=e.barCategoryGap,o=e.bandSize,a=e.sizeList,i=void 0===a?[]:a,l=e.maxBarSize,s=i.length;if(s<1)return null;var c=Y(n,o,0,!0),u=[];if(i[0].barSize===+i[0].barSize){var d=!1,p=o/s,f=i.reduce(function(e,t){return e+t.barSize||0},0);(f+=(s-1)*c)>=o&&(f-=(s-1)*c,c=0),f>=o&&p>0&&(d=!0,p*=.9,f=s*p);var m={offset:((o-f)/2>>0)-c,size:0};t=i.reduce(function(e,t){var n={item:t.item,position:{offset:m.offset+m.size+c,size:d?p:t.barSize}},r=[].concat(s7(e),[n]);return m=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:m})}),r},u)}else{var g=Y(r,o,0,!0);o-2*g-(s-1)*c<=0&&(c=0);var h=(o-2*g-(s-1)*c)/s;h>1&&(h>>=0);var b=l===+l?Math.min(h,l):h;t=i.reduce(function(e,t,n){var r=[].concat(s7(e),[{item:t.item,position:{offset:g+(h+c)*n+(h-b)/2,size:b}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},u)}return t},cl=function(e,t,n,r){var o=n.children,a=n.width,i=n.margin,l=s3({children:o,legendWidth:a-(i.left||0)-(i.right||0)});if(l){var s=r||{},c=s.width,u=s.height,d=l.align,p=l.verticalAlign,f=l.layout;if(("vertical"===f||"horizontal"===f&&"middle"===p)&&"center"!==d&&$(e[d]))return s8(s8({},e),{},s9({},d,e[d]+(c||0)));if(("horizontal"===f||"vertical"===f&&"center"===d)&&"middle"!==p&&$(e[p]))return s8(s8({},e),{},s9({},p,e[p]+(u||0)))}return e},cs=function(e,t,n,r,o){var a=ex(t.props.children,s0).filter(function(e){var t;return t=e.props.direction,!!en()(o)||("horizontal"===r?"yAxis"===o:"vertical"===r||"x"===t?"xAxis"===o:"y"!==t||"yAxis"===o)});if(a&&a.length){var i=a.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=ct(t,n,0),o=Array.isArray(r)?[sx()(r),sS()(r)]:[r,r],a=i.reduce(function(e,n){var r=ct(t,n,0),a=o[0]-Math.abs(Array.isArray(r)?r[0]:r),i=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(a,e[0]),Math.max(i,e[1])]},[1/0,-1/0]);return[Math.min(a[0],e[0]),Math.max(a[1],e[1])]},[1/0,-1/0])}return null},cc=function(e,t,n,r,o){var a=t.map(function(t){return cs(e,t,n,o,r)}).filter(function(e){return!en()(e)});return a&&a.length?a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null},cu=function(e,t,n,r,o){var a=t.map(function(t){var a=t.props.dataKey;return"number"===n&&a&&cs(e,t,a,r)||cn(e,a,n,o)});if("number"===n)return a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var i={};return a.reduce(function(e,t){for(var n=0,r=t.length;n=2?2*H(i[0]-i[1])*s:s,t&&(e.ticks||e.niceTicks))?(e.ticks||e.niceTicks).map(function(e){return{coordinate:r(o?o.indexOf(e):e)+s,value:e,offset:s}}).filter(function(e){return!F()(e.coordinate)}):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(e,t){return{coordinate:r(e)+s,value:e,index:t,offset:s}}):r.ticks&&!n?r.ticks(e.tickCount).map(function(e){return{coordinate:r(e)+s,value:e,offset:s}}):r.domain().map(function(e,t){return{coordinate:r(e)+s,value:o?o[e]:e,index:t,offset:s}})},cm=new WeakMap,cg=function(e,t){if("function"!=typeof t)return e;cm.has(e)||cm.set(e,new WeakMap);var n=cm.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},ch=function(e,t,n){var r=e.scale,o=e.type,a=e.layout,i=e.axisType;if("auto"===r)return"radial"===a&&"radiusAxis"===i?{scale:ou(),realScaleType:"band"}:"radial"===a&&"angleAxis"===i?{scale:a6(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:od(),realScaleType:"point"}:"category"===o?{scale:ou(),realScaleType:"band"}:{scale:a6(),realScaleType:"linear"};if(D()(r)){var l="scale".concat(nQ()(r));return{scale:(O[l]||od)(),realScaleType:O[l]?l:"point"}}return eo()(r)?{scale:r}:{scale:od(),realScaleType:"point"}},cb=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-1e-4,a=Math.max(r[0],r[1])+1e-4,i=e(t[0]),l=e(t[n-1]);(ia||la)&&e.domain([t[0],t[n-1]])}},cv=function(e,t){if(!e)return null;for(var n=0,r=e.length;nr)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]=0?(e[i][n][0]=o,e[i][n][1]=o+l,o=e[i][n][1]):(e[i][n][0]=a,e[i][n][1]=a+l,a=e[i][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,a=0,i=e[0].length;a0){for(var n,r=0,o=e[t[0]],a=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,a=0,i=1;i=0?(e[a][n][0]=o,e[a][n][1]=o+i,o=e[a][n][1]):(e[a][n][0]=0,e[a][n][1]=0)}}},cS=function(e,t,n){var r=t.map(function(e){return e.props.dataKey}),o=cE[n];return(function(){var e=ro([]),t=sb,n=sg,r=sv;function o(o){var a,i,l=Array.from(e.apply(this,arguments),sy),s=l.length,c=-1;for(let e of o)for(a=0,++c;a=0?0:o<0?o:r}return n[0]},cC=function(e,t){var n=e.props.stackId;if(W(n)){var r=t[n];if(r){var o=r.items.indexOf(e);return o>=0?r.stackedData[o]:null}}return null},cT=function(e,t,n){return Object.keys(e).reduce(function(r,o){var a=e[o].stackedData.reduce(function(e,r){var o=r.slice(t,n+1).reduce(function(e,t){return[sx()(t.concat([e[0]]).filter($)),sS()(t.concat([e[1]]).filter($))]},[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]},[1/0,-1/0]);return[Math.min(a[0],r[0]),Math.max(a[1],r[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},cA=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cI=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cN=function(e,t,n){if(eo()(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if($(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(cA.test(e[0])){var o=+cA.exec(e[0])[1];r[0]=t[0]-o}else eo()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if($(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(cI.test(e[1])){var a=+cI.exec(e[1])[1];r[1]=t[1]+a}else eo()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},cR=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=eZ()(t,function(e){return e.coordinate}),a=1/0,i=1,l=o.length;i0&&t.handleDrag(e.changedTouches[0])}),cq(cW(t),"handleDragEnd",function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var e=t.props,n=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:n,startIndex:o})}),t.detachDragEndListener()}),cq(cW(t),"handleLeaveWrapper",function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))}),cq(cW(t),"handleEnterSlideOrTraveller",function(){t.setState({isTextActive:!0})}),cq(cW(t),"handleLeaveSlideOrTraveller",function(){t.setState({isTextActive:!1})}),cq(cW(t),"handleSlideDragStart",function(e){var n=cX(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()}),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(cW(t),"startX"),endX:t.handleTravellerDragStart.bind(cW(t),"endX")},t.state={},t}return n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,o=this.props,i=o.gap,l=o.data.length-1,s=a.getIndexInRange(r,Math.min(t,n)),c=a.getIndexInRange(r,Math.max(t,n));return{startIndex:s-s%i,endIndex:c===l?l:c-c%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,a=ct(n[e],o,e);return eo()(r)?r(a,e):a}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,a=this.props,i=a.x,l=a.width,s=a.travellerWidth,c=a.startIndex,u=a.endIndex,d=a.onChange,p=e.pageX-n;p>0?p=Math.min(p,i+l-s-o,i+l-s-r):p<0&&(p=Math.max(p,i-r,i-o));var f=this.getIndex({startX:r+p,endX:o+p});(f.startIndex!==c||f.endIndex!==u)&&d&&d(f),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=cX(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,a=n.endX,i=n.startX,l=this.state[o],s=this.props,c=s.x,u=s.width,d=s.travellerWidth,p=s.onChange,f=s.gap,m=s.data,g={startX:this.state.startX,endX:this.state.endX},h=e.pageX-r;h>0?h=Math.min(h,c+u-d-l):h<0&&(h=Math.max(h,c-l)),g[o]=l+h;var b=this.getIndex(g),v=b.startIndex,y=b.endIndex,E=function(){var e=m.length-1;return"startX"===o&&(a>i?v%f==0:y%f==0)||ai?y%f==0:v%f==0)||a>i&&y===e};this.setState((cq(t={},o,l+h),cq(t,"brushMoveStartX",e.pageX),t),function(){p&&E()&&p(b)})}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,a=r.startX,i=r.endX,l=this.state[t],s=o.indexOf(l);if(-1!==s){var c=s+e;if(-1!==c&&!(c>=o.length)){var u=o[c];"startX"===t&&u>=i||"endX"===t&&u<=a||this.setState(cq({},t,u),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.fill,i=e.stroke;return N.createElement("rect",{stroke:i,fill:a,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.data,i=e.children,l=e.padding,s=N.Children.only(i);return s?N.cloneElement(s,{x:t,y:n,width:r,height:o,margin:l,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var n=this,r=this.props,o=r.y,i=r.travellerWidth,l=r.height,s=r.traveller,c=r.ariaLabel,u=r.data,d=r.startIndex,p=r.endIndex,f=Math.max(e,this.props.x),m=cH(cH({},eA(this.props,!1)),{},{x:f,y:o,width:i,height:l}),g=c||"Min value: ".concat(u[d].name,", Max value: ").concat(u[p].name);return N.createElement(eQ,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),n.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,t))},onFocus:function(){n.setState({isTravellerFocused:!0})},onBlur:function(){n.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},a.renderTraveller(s,m))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,a=n.stroke,i=n.travellerWidth;return N.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:Math.min(e,t)+i,y:r,width:Math.max(Math.abs(t-e)-i,0),height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,a=e.travellerWidth,i=e.stroke,l=this.state,s=l.startX,c=l.endX,u={pointerEvents:"none",fill:i};return N.createElement(eQ,{className:"recharts-brush-texts"},N.createElement(o$,cZ({textAnchor:"end",verticalAnchor:"middle",x:Math.min(s,c)-5,y:r+o/2},u),this.getTextOfTick(t)),N.createElement(o$,cZ({textAnchor:"start",verticalAnchor:"middle",x:Math.max(s,c)+a+5,y:r+o/2},u),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,a=e.y,i=e.width,l=e.height,s=e.alwaysShowText,c=this.state,u=c.startX,d=c.endX,p=c.isTextActive,f=c.isSlideMoving,m=c.isTravellerMoving,g=c.isTravellerFocused;if(!t||!t.length||!$(o)||!$(a)||!$(i)||!$(l)||i<=0||l<=0)return null;var h=R("recharts-brush",n),b=1===N.Children.count(r),v=cB("userSelect","none");return N.createElement(eQ,{className:h,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:v},this.renderBackground(),b&&this.renderPanorama(),this.renderSlide(u,d),this.renderTravellerLayer(u,"startX"),this.renderTravellerLayer(d,"endX"),(p||f||m||g||s)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=e.stroke,i=Math.floor(n+o/2)-1;return N.createElement(N.Fragment,null,N.createElement("rect",{x:t,y:n,width:r,height:o,fill:a,stroke:"none"}),N.createElement("line",{x1:t+1,y1:i,x2:t+r-1,y2:i,fill:"none",stroke:"#fff"}),N.createElement("line",{x1:t+1,y1:i+2,x2:t+r-1,y2:i+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return N.isValidElement(e)?N.cloneElement(e,t):eo()(e)?e(t):a.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,a=e.travellerWidth,i=e.updateId,l=e.startIndex,s=e.endIndex;if(n!==t.prevData||i!==t.prevUpdateId)return cH({prevData:n,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:r},n&&n.length?cK({data:n,width:r,x:o,travellerWidth:a,startIndex:l,endIndex:s}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||a!==t.prevTravellerWidth)){t.scale.range([o,o+r-a]);var c=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:n,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=e.length,r=0,o=n-1;o-r>1;){var a=Math.floor((r+o)/2);e[a]>t?o=a:r=a}return t>=e[o]?o:r}}],n&&cG(a.prototype,n),r&&cG(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);function cJ(e){return(cJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c1(e){for(var t=1;ta&&(l=2*Math.PI-l),{radius:i,angle:180*l/Math.PI,angleInRadian:l}},c5=function(e){var t=e.startAngle,n=e.endAngle,r=Math.min(Math.floor(t/360),Math.floor(n/360));return{startAngle:t-360*r,endAngle:n-360*r}},c8=function(e,t){var n,r=c6({x:e.x,y:e.y},t),o=r.radius,a=r.angle,i=t.innerRadius,l=t.outerRadius;if(ol)return!1;if(0===o)return!0;var s=c5(t),c=s.startAngle,u=s.endAngle,d=a;if(c<=u){for(;d>u;)d-=360;for(;d=c&&d<=u}else{for(;d>c;)d-=360;for(;d=u&&d<=c}return n?c1(c1({},t),{},{radius:o,angle:d+360*Math.min(Math.floor(t.startAngle/360),Math.floor(t.endAngle/360))}):null};function c9(e){return(c9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c7=["offset"];function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?1:-1;"insideStart"===a?(r=f+v*l,o=g):"insideEnd"===a?(r=m-v*l,o=!g):"end"===a&&(r=m+v*l,o=g),o=b<=0?o:!o;var y=c4(c,u,h,r),E=c4(c,u,h,r+(o?1:-1)*359),S="M".concat(y.x,",").concat(y.y,"\n A").concat(h,",").concat(h,",0,1,").concat(o?0:1,",\n ").concat(E.x,",").concat(E.y),w=en()(e.id)?q("recharts-radial-line-"):e.id;return N.createElement("text",ur({},n,{dominantBaseline:"central",className:R("recharts-radial-bar-label",s)}),N.createElement("defs",null,N.createElement("path",{id:w,d:S})),N.createElement("textPath",{xlinkHref:"#".concat(w)},t))},ui=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.cx,a=t.cy,i=t.innerRadius,l=t.outerRadius,s=(t.startAngle+t.endAngle)/2;if("outside"===r){var c=c4(o,a,l+n,s),u=c.x;return{x:u,y:c.y,textAnchor:u>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var d=c4(o,a,(i+l)/2,s);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}},ul=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,a=t.x,i=t.y,l=t.width,s=t.height,c=s>=0?1:-1,u=c*r,d=c>0?"end":"start",p=c>0?"start":"end",f=l>=0?1:-1,m=f*r,g=f>0?"end":"start",h=f>0?"start":"end";if("top"===o)return un(un({},{x:a+l/2,y:i-c*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(i-n.y,0),width:l}:{});if("bottom"===o)return un(un({},{x:a+l/2,y:i+s+u,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(i+s),0),width:l}:{});if("left"===o){var b={x:a-m,y:i+s/2,textAnchor:g,verticalAnchor:"middle"};return un(un({},b),n?{width:Math.max(b.x-n.x,0),height:s}:{})}if("right"===o){var v={x:a+l+m,y:i+s/2,textAnchor:h,verticalAnchor:"middle"};return un(un({},v),n?{width:Math.max(n.x+n.width-v.x,0),height:s}:{})}var y=n?{width:l,height:s}:{};return"insideLeft"===o?un({x:a+m,y:i+s/2,textAnchor:h,verticalAnchor:"middle"},y):"insideRight"===o?un({x:a+l-m,y:i+s/2,textAnchor:g,verticalAnchor:"middle"},y):"insideTop"===o?un({x:a+l/2,y:i+u,textAnchor:"middle",verticalAnchor:p},y):"insideBottom"===o?un({x:a+l/2,y:i+s-u,textAnchor:"middle",verticalAnchor:d},y):"insideTopLeft"===o?un({x:a+m,y:i+u,textAnchor:h,verticalAnchor:p},y):"insideTopRight"===o?un({x:a+l-m,y:i+u,textAnchor:g,verticalAnchor:p},y):"insideBottomLeft"===o?un({x:a+m,y:i+s-u,textAnchor:h,verticalAnchor:d},y):"insideBottomRight"===o?un({x:a+l-m,y:i+s-u,textAnchor:g,verticalAnchor:d},y):ei()(o)&&($(o.x)||G(o.x))&&($(o.y)||G(o.y))?un({x:a+Y(o.x,l),y:i+Y(o.y,s),textAnchor:"end",verticalAnchor:"end"},y):un({x:a+l/2,y:i+s/2,textAnchor:"middle",verticalAnchor:"middle"},y)};function us(e){var t,n=e.offset,r=un({offset:void 0===n?5:n},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,c7)),o=r.viewBox,a=r.position,i=r.value,l=r.children,s=r.content,c=r.className,u=r.textBreakAll;if(!o||en()(i)&&en()(l)&&!(0,N.isValidElement)(s)&&!eo()(s))return null;if((0,N.isValidElement)(s))return(0,N.cloneElement)(s,r);if(eo()(s)){if(t=(0,N.createElement)(s,r),(0,N.isValidElement)(t))return t}else t=uo(r);var d="cx"in o&&$(o.cx),p=eA(r,!0);if(d&&("insideStart"===a||"insideEnd"===a||"end"===a))return ua(r,t,p);var f=d?ui(r):ul(r);return N.createElement(o$,ur({className:R("recharts-label",void 0===c?"":c)},p,f,{breakAll:u}),t)}us.displayName="Label";var uc=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,a=e.endAngle,i=e.r,l=e.radius,s=e.innerRadius,c=e.outerRadius,u=e.x,d=e.y,p=e.top,f=e.left,m=e.width,g=e.height,h=e.clockWise,b=e.labelViewBox;if(b)return b;if($(m)&&$(g)){if($(u)&&$(d))return{x:u,y:d,width:m,height:g};if($(p)&&$(f))return{x:p,y:f,width:m,height:g}}return $(u)&&$(d)?{x:u,y:d,width:0,height:0}:$(t)&&$(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:a||r||0,innerRadius:s||0,outerRadius:c||l||i||0,clockWise:h}:e.viewBox?e.viewBox:{}};us.parseViewBox=uc,us.renderCallByParent=function(e,t){var n,r,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&o&&!e.label)return null;var a=e.children,i=uc(e),l=ex(a,us).map(function(e,n){return(0,N.cloneElement)(e,{viewBox:t||i,key:"label-".concat(n)})});return o?[(n=e.label,r=t||i,n?!0===n?N.createElement(us,{key:"label-implicit",viewBox:r}):W(n)?N.createElement(us,{key:"label-implicit",viewBox:r,value:n}):(0,N.isValidElement)(n)?n.type===us?(0,N.cloneElement)(n,{key:"label-implicit",viewBox:r}):N.createElement(us,{key:"label-implicit",content:n,viewBox:r}):eo()(n)?N.createElement(us,{key:"label-implicit",content:n,viewBox:r}):ei()(n)?N.createElement(us,ur({viewBox:r},n,{key:"label-implicit"})):null:null)].concat(function(e){if(Array.isArray(e))return ue(e)}(l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ue(e,t)}}(l)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):l};var uu=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},ud=n(50924),up=n.n(ud),uf=function(e){return null};uf.displayName="Cell";var um=n(36887),ug=n.n(um);function uh(e){return(uh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ub=["valueAccessor"],uv=["data","dataKey","clockWise","id","textBreakAll"];function uy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var uO=function(e){return Array.isArray(e.value)?ug()(e.value):e.value};function uk(e){var t=e.valueAccessor,n=void 0===t?uO:t,r=ux(e,ub),o=r.data,a=r.dataKey,i=r.clockWise,l=r.id,s=r.textBreakAll,c=ux(r,uv);return o&&o.length?N.createElement(eQ,{className:"recharts-label-list"},o.map(function(e,t){var r=en()(a)?n(e,t):ct(e&&e.payload,a),o=en()(l)?{}:{id:"".concat(l,"-").concat(t)};return N.createElement(us,uE({},eA(e,!0),c,o,{parentViewBox:e.parentViewBox,value:r,textBreakAll:s,viewBox:us.parseViewBox(en()(i)?e:uw(uw({},e),{},{clockWise:i})),key:"label-".concat(t),index:t}))})):null}uk.displayName="LabelList",uk.renderCallByParent=function(e,t){var n,r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=ex(e.children,uk).map(function(e,n){return(0,N.cloneElement)(e,{data:t,key:"labelList-".concat(n)})});return r?[(n=e.label)?!0===n?N.createElement(uk,{key:"labelList-implicit",data:t}):N.isValidElement(n)||eo()(n)?N.createElement(uk,{key:"labelList-implicit",data:t,content:n}):ei()(n)?N.createElement(uk,uE({data:t},n,{key:"labelList-implicit"})):null:null].concat(function(e){if(Array.isArray(e))return uy(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return uy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uy(e,t)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):o};var uC=n(23393),uT=n.n(uC),uA=n(90849),uI=n.n(uA);function uN(e){return(uN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uR(){return(uR=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:s},to:{upperWidth:c,lowerWidth:u,height:d,x:l,y:s},duration:m,animationEasing:f,isActive:h},function(e){var t=e.upperWidth,o=e.lowerWidth,i=e.height,l=e.x,s=e.y;return N.createElement(ni,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:m,easing:f},N.createElement("path",uR({},eA(n,!0),{className:b,d:uL(l,s,t,o,i),ref:r})))}):N.createElement("g",null,N.createElement("path",uR({},eA(n,!0),{className:b,d:uL(l,s,c,u,d)})))};function uF(e){return(uF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uB(){return(uB=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(i>s),",\n ").concat(u.x,",").concat(u.y,"\n ");if(o>0){var p=c4(n,r,o,i),f=c4(n,r,o,s);d+="L ".concat(f.x,",").concat(f.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(l)>180),",").concat(+(i<=s),",\n ").concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(n,",").concat(r," Z");return d},uG=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,i=e.forceCornerRadius,l=e.cornerIsExternal,s=e.startAngle,c=e.endAngle,u=H(c-s),d=uz({cx:t,cy:n,radius:o,angle:s,sign:u,cornerRadius:a,cornerIsExternal:l}),p=d.circleTangency,f=d.lineTangency,m=d.theta,g=uz({cx:t,cy:n,radius:o,angle:c,sign:-u,cornerRadius:a,cornerIsExternal:l}),h=g.circleTangency,b=g.lineTangency,v=g.theta,y=l?Math.abs(s-c):Math.abs(s-c)-m-v;if(y<0)return i?"M ".concat(f.x,",").concat(f.y,"\n a").concat(a,",").concat(a,",0,0,1,").concat(2*a,",0\n a").concat(a,",").concat(a,",0,0,1,").concat(-(2*a),",0\n "):uH({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:s,endAngle:c});var E="M ".concat(f.x,",").concat(f.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(y>180),",").concat(+(u<0),",").concat(h.x,",").concat(h.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(b.x,",").concat(b.y,"\n ");if(r>0){var S=uz({cx:t,cy:n,radius:r,angle:s,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),w=S.circleTangency,x=S.lineTangency,O=S.theta,k=uz({cx:t,cy:n,radius:r,angle:c,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),C=k.circleTangency,T=k.lineTangency,A=k.theta,I=l?Math.abs(s-c):Math.abs(s-c)-O-A;if(I<0&&0===a)return"".concat(E,"L").concat(t,",").concat(n,"Z");E+="L".concat(T.x,",").concat(T.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(C.x,",").concat(C.y,"\n A").concat(r,",").concat(r,",0,").concat(+(I>180),",").concat(+(u>0),",").concat(w.x,",").concat(w.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(x.x,",").concat(x.y,"Z")}else E+="L".concat(t,",").concat(n,"Z");return E},u$={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},uW=function(e){var t,n=uZ(uZ({},u$),e),r=n.cx,o=n.cy,a=n.innerRadius,i=n.outerRadius,l=n.cornerRadius,s=n.forceCornerRadius,c=n.cornerIsExternal,u=n.startAngle,d=n.endAngle,p=n.className;if(i0&&360>Math.abs(u-d)?uG({cx:r,cy:o,innerRadius:a,outerRadius:i,cornerRadius:Math.min(g,m/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:d}):uH({cx:r,cy:o,innerRadius:a,outerRadius:i,startAngle:u,endAngle:d}),N.createElement("path",uB({},eA(n,!0),{className:f,d:t,role:"img"}))},uV=["option","shapeType","propTransformer","activeClassName","isActive"];function uq(e){return(uq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uK(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,uV);if((0,N.isValidElement)(n))t=(0,N.cloneElement)(n,uK(uK({},l),(0,N.isValidElement)(n)?n.props:n));else if(eo()(n))t=n(l);else if(uT()(n)&&!uI()(n)){var s=(void 0===o?function(e,t){return uK(uK({},t),e)}:o)(n,l);t=N.createElement(uX,{shapeType:r,elementProps:s})}else t=N.createElement(uX,{shapeType:r,elementProps:l});return i?N.createElement(eQ,{className:void 0===a?"recharts-active-shape":a},t):t}function uJ(e,t){return null!=t&&"trapezoids"in e.props}function u0(e,t){return null!=t&&"sectors"in e.props}function u1(e,t){return null!=t&&"points"in e.props}function u2(e,t){var n,r,o=e.x===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,a=e.y===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return o&&a}function u4(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function u3(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function u6(e){return(u6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u5=["x","y"];function u8(){return(u8=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u5),a=parseInt("".concat(n),10),i=parseInt("".concat(r),10),l=parseInt("".concat(t.height||o.height),10),s=parseInt("".concat(t.width||o.width),10);return u7(u7(u7(u7(u7({},t),o),a?{x:a}:{}),i?{y:i}:{}),{},{height:l,width:s,name:t.name,radius:t.radius})}function dt(e){return N.createElement(uQ,u8({shapeType:"rectangle",propTransformer:de,activeClassName:"recharts-active-bar"},e))}var dn=["value","background"];function dr(e){return(dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function da(){return(da=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,dn);if(!i)return null;var s=dl(dl(dl(dl(dl({},l),{},{fill:"#eee"},i),a),em(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:r,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return N.createElement(dt,da({option:e.props.background,isActive:n===o},s))})}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,o=n.xAxis,a=n.yAxis,i=n.layout,l=ex(n.children,s0);if(!l)return null;var s="vertical"===i?r[0].height/2:r[0].width/2,c=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:ct(e,t)}};return N.createElement(eQ,{clipPath:e?"url(#clipPath-".concat(t,")"):null},l.map(function(e){return N.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:r,xAxis:o,yAxis:a,layout:i,offset:s,dataPointFormatter:c})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=e.xAxis,a=e.yAxis,i=e.left,l=e.top,s=e.width,c=e.height,u=e.isAnimationActive,d=e.background,p=e.id;if(t||!n||!n.length)return null;var f=this.state.isAnimationFinished,m=R("recharts-bar",r),g=o&&o.allowDataOverflow,h=a&&a.allowDataOverflow,b=g||h,v=en()(p)?this.id:p;return N.createElement(eQ,{className:m},g||h?N.createElement("defs",null,N.createElement("clipPath",{id:"clipPath-".concat(v)},N.createElement("rect",{x:g?i:i-s/2,y:h?l:l-c/2,width:g?s:2*s,height:h?c:2*c}))):null,N.createElement(eQ,{className:"recharts-bar-rectangles",clipPath:b?"url(#clipPath-".concat(v,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(b,v),(!u||f)&&uk.renderCallByParent(this.props,n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],n&&ds(a.prototype,n),r&&ds(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);function dg(e){return(dg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dh(e,t){for(var n=0;n0&&Math.abs(b)0&&Math.abs(g)1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var a=this.bandwidth?this.bandwidth():0;return this.scale(e)+a}if(n){var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],t=[{key:"create",value:function(e){return new n(e)}}],e&&dh(n.prototype,e),t&&dh(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();dy(dw,"EPS",1e-4);var dx=function(e){var t=Object.keys(e).reduce(function(t,n){return dv(dv({},t),{},dy({},n,dw.create(e[n])))},{});return dv(dv({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return up()(e,function(e,n){return t[n].apply(e,{bandAware:r,position:o})})},isInRange:function(e){return e$()(e,function(e,n){return t[n].isInRange(e)})}})},dO=function(e){var t=e.width,n=e.height,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(r%180+180)%180*Math.PI/180,a=Math.atan(n/t);return Math.abs(o>a&&oe.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0;--t)o[t]=(i[t]-o[t+1])/a[t];for(t=0,a[r-1]=(e[r]+o[r-1])/2;t=d;--p)l.point(b[p],v[p]);l.lineEnd(),l.areaEnd()}}h&&(b[u]=+e(f,u,c),v[u]=+t(f,u,c),l.point(r?+r(f,u,c):b[u],n?+n(f,u,c):v[u]))}if(m)return l=null,m+""||null}function u(){return pT().defined(o).curve(i).context(a)}return e="function"==typeof e?e:void 0===e?pk:ro(+e),t="function"==typeof t?t:void 0===t?ro(0):ro(+t),n="function"==typeof n?n:void 0===n?pC:ro(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:ro(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:ro(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:ro(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:ro(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:ro(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:ro(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(o="function"==typeof e?e:ro(!!e),c):o},c.curve=function(e){return arguments.length?(i=e,null!=a&&(l=i(a)),c):i},c.context=function(e){return arguments.length?(null==e?a=l=null:l=i(a=e),c):a},c}function pI(e){return(pI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pN(){return(pN=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var pP={curveBasisClosed:function(e){return new pu(e)},curveBasisOpen:function(e){return new pd(e)},curveBasis:function(e){return new pc(e)},curveBumpX:function(e){return new pp(e,!0)},curveBumpY:function(e){return new pp(e,!1)},curveLinearClosed:function(e){return new pf(e)},curveLinear:pg,curveMonotoneX:function(e){return new py(e)},curveMonotoneY:function(e){return new pE(e)},curveNatural:function(e){return new pw(e)},curveStep:function(e){return new pO(e,.5)},curveStepAfter:function(e){return new pO(e,1)},curveStepBefore:function(e){return new pO(e,0)}},pM=function(e){return e.x===+e.x&&e.y===+e.y},pL=function(e){return e.x},pD=function(e){return e.y},pj=function(e,t){if(eo()(e))return e;var n="curve".concat(nQ()(e));return("curveMonotone"===n||"curveBump"===n)&&t?pP["".concat(n).concat("vertical"===t?"Y":"X")]:pP[n]||pg},pF=function(e){var t,n=e.type,r=e.points,o=void 0===r?[]:r,a=e.baseLine,i=e.layout,l=e.connectNulls,s=void 0!==l&&l,c=pj(void 0===n?"linear":n,i),u=s?o.filter(function(e){return pM(e)}):o;if(Array.isArray(a)){var d=s?a.filter(function(e){return pM(e)}):a,p=u.map(function(e,t){return p_(p_({},e),{},{base:d[t]})});return(t="vertical"===i?pA().y(pD).x1(pL).x0(function(e){return e.base.x}):pA().x(pL).y1(pD).y0(function(e){return e.base.y})).defined(pM).curve(c),t(p)}return(t="vertical"===i&&$(a)?pA().y(pD).x1(pL).x0(a):$(a)?pA().x(pL).y1(pD).y0(a):pT().x(pL).y(pD)).defined(pM).curve(c),t(u)},pB=function(e){var t=e.className,n=e.points,r=e.path,o=e.pathRef;if((!n||!n.length)&&!r)return null;var a=n&&n.length?pF(e):r;return N.createElement("path",pN({},eA(e,!1),ef(e),{className:R("recharts-curve",t),d:a,ref:o}))};function pU(e){return(pU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var pZ=["x","y","top","left","width","height","className"];function pz(){return(pz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,pZ));return $(n)&&$(o)&&$(u)&&$(p)&&$(i)&&$(s)?N.createElement("path",pz({},eA(m,!0),{className:R("recharts-cross",f),d:"M".concat(n,",").concat(i,"v").concat(p,"M").concat(s,",").concat(o,"h").concat(u)})):null};function p$(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,a=e.endAngle;return{points:[c4(t,n,r,o),c4(t,n,r,a)],cx:t,cy:n,radius:r,startAngle:o,endAngle:a}}function pW(e){return(pW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pq(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p2(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0?a:e&&e.length&&$(r)&&$(o)?e.slice(r,o+1):[]};function fc(e){return"number"===e?[0,"auto"]:void 0}var fu=function(e,t,n,r){var o=e.graphicalItems,a=e.tooltipAxis,i=fs(t,e);return n<0||!o||!o.length||n>=i.length?null:o.reduce(function(o,l){var s,c,u=null!==(s=l.props.data)&&void 0!==s?s:t;return(u&&e.dataStartIndex+e.dataEndIndex!==0&&(u=u.slice(e.dataStartIndex,e.dataEndIndex+1)),c=a.dataKey&&!a.allowDuplicatedCategory?J(void 0===u?i:u,a.dataKey,r):u&&u[n]||i[n])?[].concat(p5(o),[cP(l,c)]):o},[])},fd=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},a="horizontal"===n?o.x:"vertical"===n?o.y:"centric"===n?o.angle:o.radius,i=e.orderedTooltipTicks,l=e.tooltipAxis,s=e.tooltipTicks,c=cr(a,i,s,l);if(c>=0&&s){var u=s[c]&&s[c].value,d=fu(e,t,c,u),p=fl(n,i,c,o);return{activeTooltipIndex:c,activeLabel:u,activePayload:d,activeCoordinate:p}}return null},fp=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,u=e.children,d=e.stackOffset,p=cd(c,o);return n.reduce(function(t,n){var f=n.props,m=f.type,g=f.dataKey,h=f.allowDataOverflow,b=f.allowDuplicatedCategory,v=f.scale,y=f.ticks,E=f.includeHidden,S=n.props[a];if(t[S])return t;var w=fs(e.data,{graphicalItems:r.filter(function(e){return e.props[a]===S}),dataStartIndex:l,dataEndIndex:s}),x=w.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&$(r)&&$(o))return!0}return!1})(n.props.domain,h,m)&&(C=cN(n.props.domain,null,h),p&&("number"===m||"auto"!==v)&&(A=cn(w,g,"category")));var O=fc(m);if(!C||0===C.length){var k,C,T,A,I,N=null!==(I=n.props.domain)&&void 0!==I?I:O;if(g){if(C=cn(w,g,m),"category"===m&&p){var R=X(C);b&&R?(T=C,C=eB()(0,x)):b||(C=c_(N,C,n).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(p5(e),[t])},[]))}else if("category"===m)C=b?C.filter(function(e){return""!==e&&!en()(e)}):c_(N,C,n).reduce(function(e,t){return e.indexOf(t)>=0||""===t||en()(t)?e:[].concat(p5(e),[t])},[]);else if("number"===m){var _=cc(w,r.filter(function(e){return e.props[a]===S&&(E||!e.props.hide)}),g,o,c);_&&(C=_)}p&&("number"===m||"auto"!==v)&&(A=cn(w,g,"category"))}else C=p?eB()(0,x):i&&i[S]&&i[S].hasStack&&"number"===m?"expand"===d?[0,1]:cT(i[S].stackGroups,l,s):cu(w,r.filter(function(e){return e.props[a]===S&&(E||!e.props.hide)}),m,c,!0);"number"===m?(C=d9(u,C,S,o,y),N&&(C=cN(N,C,h))):"category"===m&&N&&C.every(function(e){return N.indexOf(e)>=0})&&(C=N)}return fe(fe({},t),{},ft({},S,fe(fe({},n.props),{},{axisType:o,domain:C,categoricalDomain:A,duplicateDomain:T,originalDomain:null!==(k=n.props.domain)&&void 0!==k?k:O,isCategorical:p,layout:c})))},{})},ff=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,u=e.children,d=fs(e.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:s}),p=d.length,f=cd(c,o),m=-1;return n.reduce(function(e,t){var g,h=t.props[a],b=fc("number");return e[h]?e:(m++,g=f?eB()(0,p):i&&i[h]&&i[h].hasStack?d9(u,g=cT(i[h].stackGroups,l,s),h,o):d9(u,g=cN(b,cu(d,n.filter(function(e){return e.props[a]===h&&!e.props.hide}),"number",c),r.defaultProps.allowDataOverflow),h,o),fe(fe({},e),{},ft({},h,fe(fe({axisType:o},r.defaultProps),{},{hide:!0,orientation:U()(fr,"".concat(o,".").concat(m%2),null),domain:g,originalDomain:b,isCategorical:f,layout:c}))))},{})},fm=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,a=t.graphicalItems,i=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.children,u="".concat(r,"Id"),d=ex(c,o),p={};return d&&d.length?p=fp(e,{axes:d,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:i,dataStartIndex:l,dataEndIndex:s}):a&&a.length&&(p=ff(e,{Axis:o,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:i,dataStartIndex:l,dataEndIndex:s})),p},fg=function(e){var t=K(e),n=cf(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:eZ()(n,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:cR(t,n)}},fh=function(e){var t=e.children,n=e.defaultShowTooltip,r=eO(t,cQ),o=0,a=0;return e.data&&0!==e.data.length&&(a=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(a=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!n}},fb=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},fv=function(e,t){var n=e.props,r=e.graphicalItems,o=e.xAxisMap,a=void 0===o?{}:o,i=e.yAxisMap,l=void 0===i?{}:i,s=n.width,c=n.height,u=n.children,d=n.margin||{},p=eO(u,cQ),f=eO(u,r1),m=Object.keys(l).reduce(function(e,t){var n=l[t],r=n.orientation;return n.mirror||n.hide?e:fe(fe({},e),{},ft({},r,e[r]+n.width))},{left:d.left||0,right:d.right||0}),g=Object.keys(a).reduce(function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:fe(fe({},e),{},ft({},r,U()(e,"".concat(r))+n.height))},{top:d.top||0,bottom:d.bottom||0}),h=fe(fe({},g),m),b=h.bottom;p&&(h.bottom+=p.props.height||cQ.defaultProps.height),f&&t&&(h=cl(h,r,n,t));var v=s-h.left-h.right,y=c-h.top-h.bottom;return fe(fe({brushBottom:b},h),{},{width:Math.max(v,0),height:Math.max(y,0)})};function fy(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;oe*o)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-o)<=0}function fS(e){return(fS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fx(e){for(var t=1;t=2?H(c[1].coordinate-c[0].coordinate):1,S=(r="width"===b,o=u.x,a=u.y,i=u.width,l=u.height,1===E?{start:r?o:a,end:r?o+i:a+l}:{start:r?o+i:a+l,end:r?o:a});return"equidistantPreserveStart"===f?function(e,t,n,r,o){for(var a,i=(r||[]).slice(),l=t.start,s=t.end,c=0,u=1,d=l;u<=i.length;)if(a=function(){var t,a=null==r?void 0:r[c];if(void 0===a)return{v:fy(r,u)};var i=c,p=function(){return void 0===t&&(t=n(a,i)),t},f=a.coordinate,m=0===c||fE(e,f,p,d,s);m||(c=0,d=l,u+=1),m&&(d=f+e*(p()/2+o),c+=u)}())return a.v;return[]}(E,S,y,c,d):("preserveStart"===f||"preserveStartEnd"===f?function(e,t,n,r,o,a){var i=(r||[]).slice(),l=i.length,s=t.start,c=t.end;if(a){var u=r[l-1],d=n(u,l-1),p=e*(u.coordinate+e*d/2-c);i[l-1]=u=fx(fx({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate}),fE(e,u.tickCoord,function(){return d},s,c)&&(c=u.tickCoord-e*(d/2+o),i[l-1]=fx(fx({},u),{},{isShow:!0}))}for(var f=a?l-1:l,m=function(t){var r,a=i[t],l=function(){return void 0===r&&(r=n(a,t)),r};if(0===t){var u=e*(a.coordinate-e*l()/2-s);i[t]=a=fx(fx({},a),{},{tickCoord:u<0?a.coordinate-u*e:a.coordinate})}else i[t]=a=fx(fx({},a),{},{tickCoord:a.coordinate});fE(e,a.tickCoord,l,s,c)&&(s=a.tickCoord+e*(l()/2+o),i[t]=fx(fx({},a),{},{isShow:!0}))},g=0;g0?c.coordinate-d*e:c.coordinate})}else a[t]=c=fx(fx({},c),{},{tickCoord:c.coordinate});fE(e,c.tickCoord,u,l,s)&&(s=c.tickCoord-e*(u()/2+o),a[t]=fx(fx({},c),{},{isShow:!0}))},u=i-1;u>=0;u--)c(u);return a}(E,S,y,c,d)).filter(function(e){return e.isShow})}var fk=["viewBox"],fC=["viewBox"],fT=["ticks"];function fA(e){return(fA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fI(){return(fI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function fP(e,t){for(var n=0;n0?this.props:c)),r<=0||o<=0||!u||!u.length)?null:N.createElement(eQ,{className:R("recharts-cartesian-axis",i),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(u,this.state.fontSize,this.state.letterSpacing),us.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(e,t,n){return N.isValidElement(e)?N.cloneElement(e,t):eo()(e)?e(t):N.createElement(o$,fI({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&fP(a.prototype,n),r&&fP(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.Component);function fB(){return(fB=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&(O=Math.min((e||0)-(k[t-1]||0),O))});var C=O/x,T="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(s=C*T/2),"no-gap"===g.padding){var A=Y(e.barCategoryGap,C*T),I=C*T/2;s=I-A-(I-A)/T*A}}c="xAxis"===r?[n.left+(y.left||0)+(s||0),n.left+n.width-(y.right||0)-(s||0)]:"yAxis"===r?"horizontal"===l?[n.top+n.height-(y.bottom||0),n.top+(y.top||0)]:[n.top+(y.top||0)+(s||0),n.top+n.height-(y.bottom||0)-(s||0)]:g.range,S&&(c=[c[1],c[0]]);var N=ch(g,o,d),R=N.scale,_=N.realScaleType;R.domain(b).range(c),cb(R);var P=cx(R,dv(dv({},g),{},{realScaleType:_}));"xAxis"===r?(m="top"===h&&!E||"bottom"===h&&E,p=n.left,f=u[w]-m*g.height):"yAxis"===r&&(m="left"===h&&!E||"right"===h&&E,p=u[w]-m*g.width,f=n.top);var M=dv(dv(dv({},g),P),{},{realScaleType:_,x:p,y:f,scale:R,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return M.bandSize=cR(M,P),g.hide||"xAxis"!==r?g.hide||(u[w]+=(m?-1:1)*M.width):u[w]+=(m?-1:1)*M.height,dv(dv({},a),{},dy({},i,M))},{})}}).chartName,i=r.GraphicalChild,s=void 0===(l=r.defaultTooltipEventType)?"axis":l,u=void 0===(c=r.validateTooltipEventTypes)?["axis"]:c,d=r.axisComponents,p=r.legendContent,f=r.formatAxisMap,m=r.defaultProps,g=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,a=t.updateId,i=t.dataStartIndex,l=t.dataEndIndex,s=e.barSize,c=e.layout,u=e.barGap,p=e.barCategoryGap,f=e.maxBarSize,m=fb(c),g=m.numericAxisName,h=m.cateAxisName,b=!!n&&!!n.length&&n.some(function(e){var t=ey(e&&e.type);return t&&t.indexOf("Bar")>=0})&&ca({barSize:s,stackGroups:r}),v=[];return n.forEach(function(n,s){var m,y=fs(e.data,{graphicalItems:[n],dataStartIndex:i,dataEndIndex:l}),E=n.props,S=E.dataKey,w=E.maxBarSize,x=n.props["".concat(g,"Id")],O=n.props["".concat(h,"Id")],k=d.reduce(function(e,r){var o,a=t["".concat(r.axisType,"Map")],i=n.props["".concat(r.axisType,"Id")];a&&a[i]||"zAxis"===r.axisType||eW(!1);var l=a[i];return fe(fe({},e),{},(ft(o={},r.axisType,l),ft(o,"".concat(r.axisType,"Ticks"),cf(l)),o))},{}),C=k[h],T=k["".concat(h,"Ticks")],A=r&&r[x]&&r[x].hasStack&&cC(n,r[x].stackGroups),I=ey(n.type).indexOf("Bar")>=0,N=cR(C,T),R=[];if(I){var _,P,M=en()(w)?f:w,L=null!==(_=null!==(P=cR(C,T,!0))&&void 0!==P?P:M)&&void 0!==_?_:0;R=ci({barGap:u,barCategoryGap:p,bandSize:L!==N?L:N,sizeList:b[O],maxBarSize:M}),L!==N&&(R=R.map(function(e){return fe(fe({},e),{},{position:fe(fe({},e.position),{},{offset:e.position.offset-L/2})})}))}var D=n&&n.type&&n.type.getComposedData;D&&v.push({props:fe(fe({},D(fe(fe({},k),{},{displayedData:y,props:e,dataKey:S,item:n,bandSize:N,barPosition:R,offset:o,stackedData:A,layout:c,dataStartIndex:i,dataEndIndex:l}))),{},(ft(m={key:n.key||"item-".concat(s)},g,k[g]),ft(m,h,k[h]),ft(m,"animationId",a),m)),childIndex:ew(e.children).indexOf(n),item:n})}),v},h=function(e,t){var n=e.props,r=e.dataStartIndex,o=e.dataEndIndex,l=e.updateId;if(!ek({props:n}))return null;var s=n.children,c=n.layout,u=n.stackOffset,p=n.data,m=n.reverseStackOrder,h=fb(c),b=h.numericAxisName,v=h.cateAxisName,y=ex(s,i),E=cw(p,y,"".concat(b,"Id"),"".concat(v,"Id"),u,m),S=d.reduce(function(e,t){var a="".concat(t.axisType,"Map");return fe(fe({},e),{},ft({},a,fm(n,fe(fe({},t),{},{graphicalItems:y,stackGroups:t.axisType===b&&E,dataStartIndex:r,dataEndIndex:o}))))},{}),w=fv(fe(fe({},S),{},{props:n,graphicalItems:y}),null==t?void 0:t.legendBBox);Object.keys(S).forEach(function(e){S[e]=f(n,S[e],w,e.replace("Map",""),a)});var x=fg(S["".concat(v,"Map")]),O=g(n,fe(fe({},S),{},{dataStartIndex:r,dataEndIndex:o,updateId:l,graphicalItems:y,stackGroups:E,offset:w}));return fe(fe({formattedGraphicalItems:O,graphicalItems:y,offset:w,stackGroups:E},x),S)},o=function(e){(function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p4(e,t)})(i,e);var t,n,r,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=p6(i);if(t){var r=p6(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===pQ(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return p3(e)}(this,e)});function i(e){var t,n,r;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),ft(p3(r=o.call(this,e)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ft(p3(r),"accessibilityManager",new pi),ft(p3(r),"handleLegendBBoxUpdate",function(e){if(e){var t=r.state,n=t.dataStartIndex,o=t.dataEndIndex,a=t.updateId;r.setState(fe({legendBBox:e},h({props:r.props,dataStartIndex:n,dataEndIndex:o,updateId:a},fe(fe({},r.state),{},{legendBBox:e}))))}}),ft(p3(r),"handleReceiveSyncEvent",function(e,t,n){r.props.syncId===e&&(n!==r.eventEmitterSymbol||"function"==typeof r.props.syncMethod)&&r.applySyncEvent(t)}),ft(p3(r),"handleBrushChange",function(e){var t=e.startIndex,n=e.endIndex;if(t!==r.state.dataStartIndex||n!==r.state.dataEndIndex){var o=r.state.updateId;r.setState(function(){return fe({dataStartIndex:t,dataEndIndex:n},h({props:r.props,dataStartIndex:t,dataEndIndex:n,updateId:o},r.state))}),r.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}}),ft(p3(r),"handleMouseEnter",function(e){var t=r.getMouseInfo(e);if(t){var n=fe(fe({},t),{},{isTooltipActive:!0});r.setState(n),r.triggerSyncEvent(n);var o=r.props.onMouseEnter;eo()(o)&&o(n,e)}}),ft(p3(r),"triggeredAfterMouseMove",function(e){var t=r.getMouseInfo(e),n=t?fe(fe({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};r.setState(n),r.triggerSyncEvent(n);var o=r.props.onMouseMove;eo()(o)&&o(n,e)}),ft(p3(r),"handleItemMouseEnter",function(e){r.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),ft(p3(r),"handleItemMouseLeave",function(){r.setState(function(){return{isTooltipActive:!1}})}),ft(p3(r),"handleMouseMove",function(e){e.persist(),r.throttleTriggeredAfterMouseMove(e)}),ft(p3(r),"handleMouseLeave",function(e){var t={isTooltipActive:!1};r.setState(t),r.triggerSyncEvent(t);var n=r.props.onMouseLeave;eo()(n)&&n(t,e)}),ft(p3(r),"handleOuterEvent",function(e){var t,n=e_(e),o=U()(r.props,"".concat(n));n&&eo()(o)&&o(null!==(t=/.*touch.*/i.test(n)?r.getMouseInfo(e.changedTouches[0]):r.getMouseInfo(e))&&void 0!==t?t:{},e)}),ft(p3(r),"handleClick",function(e){var t=r.getMouseInfo(e);if(t){var n=fe(fe({},t),{},{isTooltipActive:!0});r.setState(n),r.triggerSyncEvent(n);var o=r.props.onClick;eo()(o)&&o(n,e)}}),ft(p3(r),"handleMouseDown",function(e){var t=r.props.onMouseDown;eo()(t)&&t(r.getMouseInfo(e),e)}),ft(p3(r),"handleMouseUp",function(e){var t=r.props.onMouseUp;eo()(t)&&t(r.getMouseInfo(e),e)}),ft(p3(r),"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&r.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),ft(p3(r),"handleTouchStart",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&r.handleMouseDown(e.changedTouches[0])}),ft(p3(r),"handleTouchEnd",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&r.handleMouseUp(e.changedTouches[0])}),ft(p3(r),"triggerSyncEvent",function(e){void 0!==r.props.syncId&&pe.emit(pt,r.props.syncId,e,r.eventEmitterSymbol)}),ft(p3(r),"applySyncEvent",function(e){var t=r.props,n=t.layout,o=t.syncMethod,a=r.state.updateId,i=e.dataStartIndex,l=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)r.setState(fe({dataStartIndex:i,dataEndIndex:l},h({props:r.props,dataStartIndex:i,dataEndIndex:l,updateId:a},r.state)));else if(void 0!==e.activeTooltipIndex){var s=e.chartX,c=e.chartY,u=e.activeTooltipIndex,d=r.state,p=d.offset,f=d.tooltipTicks;if(!p)return;if("function"==typeof o)u=o(f,e);else if("value"===o){u=-1;for(var m=0;m=0){if(s.dataKey&&!s.allowDuplicatedCategory){var x="function"==typeof s.dataKey?function(e){return"function"==typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());k=J(f,x,u),C=m&&g&&J(g,x,u)}else k=null==f?void 0:f[c],C=m&&g&&g[c];if(E||y){var O=void 0!==e.props.activeIndex?e.props.activeIndex:c;return[(0,N.cloneElement)(e,fe(fe(fe({},o.props),S),{},{activeIndex:O})),null,null]}if(!en()(k))return[w].concat(p5(r.renderActivePoints({item:o,activePoint:k,basePoint:C,childIndex:c,isRange:m})))}else{var k,C,T,A=(null!==(T=r.getItemByXY(r.state.activeCoordinate))&&void 0!==T?T:{graphicalItem:w}).graphicalItem,I=A.item,R=void 0===I?e:I,_=A.childIndex,P=fe(fe(fe({},o.props),S),{},{activeIndex:_});return[(0,N.cloneElement)(R,P),null,null]}}return m?[w,null,null]:[w,null]}),ft(p3(r),"renderCustomized",function(e,t,n){return(0,N.cloneElement)(e,fe(fe({key:"recharts-customized-".concat(n)},r.props),r.state))}),ft(p3(r),"renderMap",{CartesianGrid:{handler:r.renderGrid,once:!0},ReferenceArea:{handler:r.renderReferenceElement},ReferenceLine:{handler:fi},ReferenceDot:{handler:r.renderReferenceElement},XAxis:{handler:fi},YAxis:{handler:fi},Brush:{handler:r.renderBrush,once:!0},Bar:{handler:r.renderGraphicChild},Line:{handler:r.renderGraphicChild},Area:{handler:r.renderGraphicChild},Radar:{handler:r.renderGraphicChild},RadialBar:{handler:r.renderGraphicChild},Scatter:{handler:r.renderGraphicChild},Pie:{handler:r.renderGraphicChild},Funnel:{handler:r.renderGraphicChild},Tooltip:{handler:r.renderCursor,once:!0},PolarGrid:{handler:r.renderPolarGrid,once:!0},PolarAngleAxis:{handler:r.renderPolarAxis},PolarRadiusAxis:{handler:r.renderPolarAxis},Customized:{handler:r.renderCustomized}}),r.clipPathId="".concat(null!==(t=e.id)&&void 0!==t?t:q("recharts"),"-clip"),r.throttleTriggeredAfterMouseMove=P()(r.triggeredAfterMouseMove,null!==(n=e.throttleDelay)&&void 0!==n?n:1e3/60),r.state={},r}return n=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,o=e.layout,a=eO(t,nK);if(a){var i=a.props.defaultIndex;if("number"==typeof i&&!(i<0)&&!(i>this.state.tooltipTicks.length)){var l=this.state.tooltipTicks[i]&&this.state.tooltipTicks[i].value,s=fu(this.state,n,i,l),c=this.state.tooltipTicks[i].coordinate,u=(this.state.offset.top+r)/2,d="horizontal"===o?{x:c,y:u}:{y:c,x:u},p=this.state.formattedGraphicalItems.find(function(e){return"Scatter"===e.item.type.name});p&&(d=fe(fe({},d),p.props.points[i].tooltipPosition),s=p.props.points[i].tooltipPayload);var f={activeTooltipIndex:i,isTooltipActive:!0,activeLabel:l,activePayload:s,activeCoordinate:d};this.setState(f),this.renderCursor(a),this.accessibilityManager.setIndex(i)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin){var n,r;this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}})}return null}},{key:"componentDidUpdate",value:function(e){eI([eO(e.children,nK)],[eO(this.props.children,nK)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=eO(this.props.children,nK);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return u.indexOf(t)>=0?t:s}return s}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=this.container,n=t.getBoundingClientRect(),r={top:n.top+window.scrollY-document.documentElement.clientTop,left:n.left+window.scrollX-document.documentElement.clientLeft},o={chartX:Math.round(e.pageX-r.left),chartY:Math.round(e.pageY-r.top)},a=n.width/t.offsetWidth||1,i=this.inRange(o.chartX,o.chartY,a);if(!i)return null;var l=this.state,s=l.xAxisMap,c=l.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&c){var u=K(s).scale,d=K(c).scale,p=u&&u.invert?u.invert(o.chartX):null,f=d&&d.invert?d.invert(o.chartY):null;return fe(fe({},o),{},{xValue:p,yValue:f})}var m=fd(this.state,this.props.data,this.props.layout,i);return m?fe(fe({},o),m):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,a=t/n;if("horizontal"===r||"vertical"===r){var i=this.state.offset;return o>=i.left&&o<=i.left+i.width&&a>=i.top&&a<=i.top+i.height?{x:o,y:a}:null}var l=this.state,s=l.angleAxisMap,c=l.radiusAxisMap;return s&&c?c8({x:o,y:a},K(s)):null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=eO(e,nK),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),fe(fe({},ef(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){pe.on(pt,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){pe.removeListener(pt,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,a=r.length;o=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var fX=function(e){var t=e.fill;if(!t||"none"===t)return null;var n=e.fillOpacity,r=e.x,o=e.y,a=e.width,i=e.height;return N.createElement("rect",{x:r,y:o,width:a,height:i,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function fQ(e,t){var n;if(N.isValidElement(e))n=N.cloneElement(e,t);else if(eo()(e))n=e(t);else{var r=t.x1,o=t.y1,a=t.x2,i=t.y2,l=t.key,s=eA(fK(t,fG),!1),c=(s.offset,fK(s,f$));n=N.createElement("line",fY({},c,{x1:r,y1:o,x2:a,y2:i,fill:"none",key:l}))}return n}function fJ(e){var t=e.x,n=e.width,r=e.horizontal,o=void 0===r||r,a=e.horizontalPoints;if(!o||!a||!a.length)return null;var i=a.map(function(r,a){return fQ(o,fq(fq({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:"line-".concat(a),index:a}))});return N.createElement("g",{className:"recharts-cartesian-grid-horizontal"},i)}function f0(e){var t=e.y,n=e.height,r=e.vertical,o=void 0===r||r,a=e.verticalPoints;if(!o||!a||!a.length)return null;var i=a.map(function(r,a){return fQ(o,fq(fq({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:"line-".concat(a),index:a}))});return N.createElement("g",{className:"recharts-cartesian-grid-vertical"},i)}function f1(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,o=e.y,a=e.width,i=e.height,l=e.horizontalPoints,s=e.horizontal;if(!(void 0===s||s)||!t||!t.length)return null;var c=l.map(function(e){return Math.round(e+o-o)}).sort(function(e,t){return e-t});o!==c[0]&&c.unshift(0);var u=c.map(function(e,l){var s=c[l+1]?c[l+1]-e:o+i-e;if(s<=0)return null;var u=l%t.length;return N.createElement("rect",{key:"react-".concat(l),y:e,x:r,height:s,width:a,stroke:"none",fill:t[u],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return N.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function f2(e){var t=e.vertical,n=e.verticalFill,r=e.fillOpacity,o=e.x,a=e.y,i=e.width,l=e.height,s=e.verticalPoints;if(!(void 0===t||t)||!n||!n.length)return null;var c=s.map(function(e){return Math.round(e+o-o)}).sort(function(e,t){return e-t});o!==c[0]&&c.unshift(0);var u=c.map(function(e,t){var s=c[t+1]?c[t+1]-e:o+i-e;if(s<=0)return null;var u=t%n.length;return N.createElement("rect",{key:"react-".concat(t),x:e,y:a,width:s,height:l,stroke:"none",fill:n[u],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return N.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var f4=function(e,t){var n=e.xAxis,r=e.width,o=e.height,a=e.offset;return cp(fO(fq(fq(fq({},fF.defaultProps),n),{},{ticks:cf(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),a.left,a.left+a.width,t)},f3=function(e,t){var n=e.yAxis,r=e.width,o=e.height,a=e.offset;return cp(fO(fq(fq(fq({},fF.defaultProps),n),{},{ticks:cf(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),a.top,a.top+a.height,t)},f6={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function f5(e){var t,n,r,o,a,i,l=d$(),s=dW(),c=(0,N.useContext)(dF),u=fq(fq({},e),{},{stroke:null!==(t=e.stroke)&&void 0!==t?t:f6.stroke,fill:null!==(n=e.fill)&&void 0!==n?n:f6.fill,horizontal:null!==(r=e.horizontal)&&void 0!==r?r:f6.horizontal,horizontalFill:null!==(o=e.horizontalFill)&&void 0!==o?o:f6.horizontalFill,vertical:null!==(a=e.vertical)&&void 0!==a?a:f6.vertical,verticalFill:null!==(i=e.verticalFill)&&void 0!==i?i:f6.verticalFill}),d=u.x,p=u.y,f=u.width,m=u.height,g=u.xAxis,h=u.yAxis,b=u.syncWithTicks,v=u.horizontalValues,y=u.verticalValues;if(!$(f)||f<=0||!$(m)||m<=0||!$(d)||d!==+d||!$(p)||p!==+p)return null;var E=u.verticalCoordinatesGenerator||f4,S=u.horizontalCoordinatesGenerator||f3,w=u.horizontalPoints,x=u.verticalPoints;if((!w||!w.length)&&eo()(S)){var O=v&&v.length,k=S({yAxis:h?fq(fq({},h),{},{ticks:O?v:h.ticks}):void 0,width:l,height:s,offset:c},!!O||b);ee(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(fW(k),"]")),Array.isArray(k)&&(w=k)}if((!x||!x.length)&&eo()(E)){var C=y&&y.length,T=E({xAxis:g?fq(fq({},g),{},{ticks:C?y:g.ticks}):void 0,width:l,height:s,offset:c},!!C||b);ee(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(fW(T),"]")),Array.isArray(T)&&(x=T)}return N.createElement("g",{className:"recharts-cartesian-grid"},N.createElement(fX,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height}),N.createElement(fJ,fY({},u,{offset:c,horizontalPoints:w})),N.createElement(f0,fY({},u,{offset:c,verticalPoints:x})),N.createElement(f1,fY({},u,{horizontalPoints:w})),N.createElement(f2,fY({},u,{verticalPoints:x})))}f5.displayName="CartesianGrid";let f8=(e,t)=>{let[n,r]=(0,N.useState)(t);(0,N.useEffect)(()=>{let t=()=>{r(window.innerWidth),e()};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[e,n])},f9=e=>{var t=(0,k._T)(e,[]);return N.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),N.createElement("path",{d:"M8 12L14 6V18L8 12Z"}))},f7=e=>{var t=(0,k._T)(e,[]);return N.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),N.createElement("path",{d:"M16 12L10 18V6L16 12Z"}))},me=(0,I.fn)("Legend"),mt=e=>{let{name:t,color:n,onClick:r,activeLegend:o}=e,a=!!r;return N.createElement("li",{className:(0,A.q)(me("legendItem"),"group inline-flex items-center px-2 py-0.5 rounded-tremor-small transition whitespace-nowrap",a?"cursor-pointer":"cursor-default","text-tremor-content",a?"hover:bg-tremor-background-subtle":"","dark:text-dark-tremor-content",a?"dark:hover:bg-dark-tremor-background-subtle":""),onClick:e=>{e.stopPropagation(),null==r||r(t,n)}},N.createElement("svg",{className:(0,A.q)("flex-none h-2 w-2 mr-1.5",(0,I.bM)(n,T.K.text).textColor,o&&o!==t?"opacity-40":"opacity-100"),fill:"currentColor",viewBox:"0 0 8 8"},N.createElement("circle",{cx:4,cy:4,r:4})),N.createElement("p",{className:(0,A.q)("whitespace-nowrap truncate text-tremor-default","text-tremor-content",a?"group-hover:text-tremor-content-emphasis":"","dark:text-dark-tremor-content",o&&o!==t?"opacity-40":"opacity-100",a?"dark:group-hover:text-dark-tremor-content-emphasis":"")},t))},mn=e=>{let{icon:t,onClick:n,disabled:r}=e,[o,a]=N.useState(!1),i=N.useRef(null);return N.useEffect(()=>(o?i.current=setInterval(()=>{null==n||n()},300):clearInterval(i.current),()=>clearInterval(i.current)),[o,n]),(0,N.useEffect)(()=>{r&&(clearInterval(i.current),a(!1))},[r]),N.createElement("button",{type:"button",className:(0,A.q)(me("legendSliderButton"),"w-5 group inline-flex items-center truncate rounded-tremor-small transition",r?"cursor-not-allowed":"cursor-pointer",r?"text-tremor-content-subtle":"text-tremor-content hover:text-tremor-content-emphasis hover:bg-tremor-background-subtle",r?"dark:text-dark-tremor-subtle":"dark:text-dark-tremor dark:hover:text-tremor-content-emphasis dark:hover:bg-dark-tremor-background-subtle"),disabled:r,onClick:e=>{e.stopPropagation(),null==n||n()},onMouseDown:e=>{e.stopPropagation(),a(!0)},onMouseUp:e=>{e.stopPropagation(),a(!1)}},N.createElement(t,{className:"w-full"}))},mr=N.forwardRef((e,t)=>{var n,r;let{categories:o,colors:a=T.s,className:i,onClickLegendItem:l,activeLegend:s,enableLegendSlider:c=!1}=e,u=(0,k._T)(e,["categories","colors","className","onClickLegendItem","activeLegend","enableLegendSlider"]),d=N.useRef(null),[p,f]=N.useState(null),[m,g]=N.useState(null),h=N.useRef(null),b=(0,N.useCallback)(()=>{let e=null==d?void 0:d.current;e&&f({left:e.scrollLeft>0,right:e.scrollWidth-e.clientWidth>e.scrollLeft})},[f]),v=(0,N.useCallback)(e=>{var t;let n=null==d?void 0:d.current,r=null!==(t=null==n?void 0:n.clientWidth)&&void 0!==t?t:0;n&&c&&(n.scrollTo({left:"left"===e?n.scrollLeft-r:n.scrollLeft+r,behavior:"smooth"}),setTimeout(()=>{b()},400))},[c,b]);N.useEffect(()=>{let e=e=>{"ArrowLeft"===e?v("left"):"ArrowRight"===e&&v("right")};return m?(e(m),h.current=setInterval(()=>{e(m)},300)):clearInterval(h.current),()=>clearInterval(h.current)},[m,v]);let y=e=>{e.stopPropagation(),"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||(e.preventDefault(),g(e.key))},E=e=>{e.stopPropagation(),g(null)};return N.useEffect(()=>{let e=null==d?void 0:d.current;return c&&(b(),null==e||e.addEventListener("keydown",y),null==e||e.addEventListener("keyup",E)),()=>{null==e||e.removeEventListener("keydown",y),null==e||e.removeEventListener("keyup",E)}},[b,c]),N.createElement("ol",Object.assign({ref:t,className:(0,A.q)(me("root"),"relative overflow-hidden",i)},u),N.createElement("div",{ref:d,tabIndex:0,className:(0,A.q)("h-full flex",c?(null==p?void 0:p.right)||(null==p?void 0:p.left)?"pl-4 pr-12 items-center overflow-auto snap-mandatory [&::-webkit-scrollbar]:hidden [scrollbar-width:none]":"":"flex-wrap")},o.map((e,t)=>N.createElement(mt,{key:"item-".concat(t),name:e,color:a[t],onClick:l,activeLegend:s}))),c&&((null==p?void 0:p.right)||(null==p?void 0:p.left))?N.createElement(N.Fragment,null,N.createElement("div",{className:(0,A.q)("from-tremor-background","dark:from-dark-tremor-background","absolute top-0 bottom-0 left-0 w-4 bg-gradient-to-r to-transparent pointer-events-none")}),N.createElement("div",{className:(0,A.q)("to-tremor-background","dark:to-dark-tremor-background","absolute top-0 bottom-0 right-10 w-4 bg-gradient-to-r from-transparent pointer-events-none")}),N.createElement("div",{className:(0,A.q)("bg-tremor-background","dark:bg-dark-tremor-background","absolute flex top-0 pr-1 bottom-0 right-0 items-center justify-center h-full")},N.createElement(mn,{icon:f9,onClick:()=>{g(null),v("left")},disabled:!(null==p?void 0:p.left)}),N.createElement(mn,{icon:f7,onClick:()=>{g(null),v("right")},disabled:!(null==p?void 0:p.right)}))):null)});mr.displayName="Legend";let mo=(e,t,n,r,o,a)=>{let{payload:i}=e,l=(0,N.useRef)(null);f8(()=>{var e,t;n((t=null===(e=l.current)||void 0===e?void 0:e.clientHeight)?Number(t)+20:60)});let s=i.filter(e=>"none"!==e.type);return N.createElement("div",{ref:l,className:"flex items-center justify-end"},N.createElement(mr,{categories:s.map(e=>e.value),colors:s.map(e=>t.get(e.value)),onClickLegendItem:o,activeLegend:r,enableLegendSlider:a}))},ma=e=>{let{children:t}=e;return N.createElement("div",{className:(0,A.q)("rounded-tremor-default text-tremor-default border","bg-tremor-background shadow-tremor-dropdown border-tremor-border","dark:bg-dark-tremor-background dark:shadow-dark-tremor-dropdown dark:border-dark-tremor-border")},t)},mi=e=>{let{value:t,name:n,color:r}=e;return N.createElement("div",{className:"flex items-center justify-between space-x-8"},N.createElement("div",{className:"flex items-center space-x-2"},N.createElement("span",{className:(0,A.q)("shrink-0 rounded-tremor-full border-2 h-3 w-3","border-tremor-background shadow-tremor-card","dark:border-dark-tremor-background dark:shadow-dark-tremor-card",(0,I.bM)(r,T.K.background).bgColor)}),N.createElement("p",{className:(0,A.q)("text-right whitespace-nowrap","text-tremor-content","dark:text-dark-tremor-content")},n)),N.createElement("p",{className:(0,A.q)("font-medium tabular-nums text-right whitespace-nowrap","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},t))},ml=e=>{let{active:t,payload:n,label:r,categoryColors:o,valueFormatter:a}=e;if(t&&n){let e=n.filter(e=>"none"!==e.type);return N.createElement(ma,null,N.createElement("div",{className:(0,A.q)("border-tremor-border border-b px-4 py-2","dark:border-dark-tremor-border")},N.createElement("p",{className:(0,A.q)("font-medium","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},r)),N.createElement("div",{className:(0,A.q)("px-4 py-2 space-y-1")},e.map((e,t)=>{var n;let{value:r,name:i}=e;return N.createElement(mi,{key:"id-".concat(t),value:a(r),name:i,color:null!==(n=o.get(i))&&void 0!==n?n:C.fr.Blue})})))}return null},ms=(0,I.fn)("Flex"),mc={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},mu={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},md={row:"flex-row",col:"flex-col","row-reverse":"flex-row-reverse","col-reverse":"flex-col-reverse"},mp=N.forwardRef((e,t)=>{let{flexDirection:n="row",justifyContent:r="between",alignItems:o="center",children:a,className:i}=e,l=(0,k._T)(e,["flexDirection","justifyContent","alignItems","children","className"]);return N.createElement("div",Object.assign({ref:t,className:(0,A.q)(ms("root"),"flex w-full",md[n],mc[r],mu[o],i)},l),a)});mp.displayName="Flex";var mf=n(71801);let mm=e=>{let{noDataText:t="No data"}=e;return N.createElement(mp,{alignItems:"center",justifyContent:"center",className:(0,A.q)("w-full h-full border border-dashed rounded-tremor-default","border-tremor-border","dark:border-dark-tremor-border")},N.createElement(mf.Z,{className:(0,A.q)("text-tremor-content","dark:text-dark-tremor-content")},t))},mg=(e,t)=>{let n=new Map;return e.forEach((e,r)=>{n.set(e,t[r])}),n},mh=(e,t,n)=>[e?"auto":null!=t?t:0,null!=n?n:"auto"];function mb(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null===e||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o of n)if(!r.includes(o)||!mb(e[o],t[o]))return!1;return!0}let mv=N.forwardRef((e,t)=>{let{data:n=[],categories:r=[],index:o,colors:a=T.s,valueFormatter:i=I.Cj,layout:l="horizontal",stack:s=!1,relative:c=!1,startEndOnly:u=!1,animationDuration:d=900,showAnimation:p=!1,showXAxis:f=!0,showYAxis:m=!0,yAxisWidth:g=56,intervalType:h="equidistantPreserveStart",showTooltip:b=!0,showLegend:v=!0,showGridLines:y=!0,autoMinValue:E=!1,minValue:S,maxValue:w,allowDecimals:x=!0,noDataText:O,onValueChange:R,enableLegendSlider:_=!1,customTooltip:P,rotateLabelX:M,tickGap:L=5,className:D}=e,j=(0,k._T)(e,["data","categories","index","colors","valueFormatter","layout","stack","relative","startEndOnly","animationDuration","showAnimation","showXAxis","showYAxis","yAxisWidth","intervalType","showTooltip","showLegend","showGridLines","autoMinValue","minValue","maxValue","allowDecimals","noDataText","onValueChange","enableLegendSlider","customTooltip","rotateLabelX","tickGap","className"]),F=f||m?20:0,[B,U]=(0,N.useState)(60),Z=mg(r,a),[z,H]=N.useState(void 0),[G,$]=(0,N.useState)(void 0),W=!!R;function V(e,t,n){var r,o,a,i;n.stopPropagation(),R&&(mb(z,Object.assign(Object.assign({},e.payload),{value:e.value}))?($(void 0),H(void 0),null==R||R(null)):($(null===(o=null===(r=e.tooltipPayload)||void 0===r?void 0:r[0])||void 0===o?void 0:o.dataKey),H(Object.assign(Object.assign({},e.payload),{value:e.value})),null==R||R(Object.assign({eventType:"bar",categoryClicked:null===(i=null===(a=e.tooltipPayload)||void 0===a?void 0:a[0])||void 0===i?void 0:i.dataKey},e.payload))))}let q=mh(E,S,w);return N.createElement("div",Object.assign({ref:t,className:(0,A.q)("w-full h-80",D)},j),N.createElement(ej,{className:"h-full w-full"},(null==n?void 0:n.length)?N.createElement(fH,{data:n,stackOffset:s?"sign":c?"expand":"none",layout:"vertical"===l?"vertical":"horizontal",onClick:W&&(G||z)?()=>{H(void 0),$(void 0),null==R||R(null)}:void 0},y?N.createElement(f5,{className:(0,A.q)("stroke-1","stroke-tremor-border","dark:stroke-dark-tremor-border"),horizontal:"vertical"!==l,vertical:"vertical"===l}):null,"vertical"!==l?N.createElement(fU,{padding:{left:F,right:F},hide:!f,dataKey:o,interval:u?"preserveStartEnd":h,tick:{transform:"translate(0, 6)"},ticks:u?[n[0][o],n[n.length-1][o]]:void 0,fill:"",stroke:"",className:(0,A.q)("mt-4 text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,axisLine:!1,angle:null==M?void 0:M.angle,dy:null==M?void 0:M.verticalShift,height:null==M?void 0:M.xAxisHeight,minTickGap:L}):N.createElement(fU,{hide:!f,type:"number",tick:{transform:"translate(-3, 0)"},domain:q,fill:"",stroke:"",className:(0,A.q)("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,axisLine:!1,tickFormatter:i,minTickGap:L,allowDecimals:x,angle:null==M?void 0:M.angle,dy:null==M?void 0:M.verticalShift,height:null==M?void 0:M.xAxisHeight}),"vertical"!==l?N.createElement(fz,{width:g,hide:!m,axisLine:!1,tickLine:!1,type:"number",domain:q,tick:{transform:"translate(-3, 0)"},fill:"",stroke:"",className:(0,A.q)("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickFormatter:c?e=>"".concat((100*e).toString()," %"):i,allowDecimals:x}):N.createElement(fz,{width:g,hide:!m,dataKey:o,axisLine:!1,tickLine:!1,ticks:u?[n[0][o],n[n.length-1][o]]:void 0,type:"category",interval:"preserveStartEnd",tick:{transform:"translate(0, 6)"},fill:"",stroke:"",className:(0,A.q)("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content")}),N.createElement(nK,{wrapperStyle:{outline:"none"},isAnimationActive:!1,cursor:{fill:"#d1d5db",opacity:"0.15"},content:b?e=>{let{active:t,payload:n,label:r}=e;return P?N.createElement(P,{payload:null==n?void 0:n.map(e=>{var t;return Object.assign(Object.assign({},e),{color:null!==(t=Z.get(e.dataKey))&&void 0!==t?t:C.fr.Gray})}),active:t,label:r}):N.createElement(ml,{active:t,payload:n,label:r,valueFormatter:i,categoryColors:Z})}:N.createElement(N.Fragment,null),position:{y:0}}),v?N.createElement(r1,{verticalAlign:"top",height:B,content:e=>{let{payload:t}=e;return mo({payload:t},Z,U,G,W?e=>{W&&(e!==G||z?($(e),null==R||R({eventType:"category",categoryClicked:e})):($(void 0),null==R||R(null)),H(void 0))}:void 0,_)}}):null,r.map(e=>{var t;return N.createElement(dm,{className:(0,A.q)((0,I.bM)(null!==(t=Z.get(e))&&void 0!==t?t:C.fr.Gray,T.K.background).fillColor,R?"cursor-pointer":""),key:e,name:e,type:"linear",stackId:s||c?"a":void 0,dataKey:e,fill:"",isAnimationActive:p,animationDuration:d,shape:e=>((e,t,n,r)=>{let{fillOpacity:o,name:a,payload:i,value:l}=e,{x:s,width:c,y:u,height:d}=e;return"horizontal"===r&&d<0?(u+=d,d=Math.abs(d)):"vertical"===r&&c<0&&(s+=c,c=Math.abs(c)),N.createElement("rect",{x:s,y:u,width:c,height:d,opacity:t||n&&n!==a?mb(t,Object.assign(Object.assign({},i),{value:l}))?o:.3:o})})(e,z,G,l),onClick:V})})):N.createElement(mm,{noDataText:O})))});mv.displayName="BarChart"},5:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(69703),o=n(64090),a=n(58437),i=n(54942),l=n(2898),s=n(99250),c=n(65492);let u={xs:{paddingX:"px-2",paddingY:"py-0.5",fontSize:"text-xs"},sm:{paddingX:"px-2.5",paddingY:"py-0.5",fontSize:"text-sm"},md:{paddingX:"px-3",paddingY:"py-0.5",fontSize:"text-md"},lg:{paddingX:"px-3.5",paddingY:"py-0.5",fontSize:"text-lg"},xl:{paddingX:"px-4",paddingY:"py-1",fontSize:"text-xl"}},d={xs:{height:"h-4",width:"w-4"},sm:{height:"h-4",width:"w-4"},md:{height:"h-4",width:"w-4"},lg:{height:"h-5",width:"w-5"},xl:{height:"h-6",width:"w-6"}},p=(0,c.fn)("Badge"),f=o.forwardRef((e,t)=>{let{color:n,icon:f,size:m=i.u8.SM,tooltip:g,className:h,children:b}=e,v=(0,r._T)(e,["color","icon","size","tooltip","className","children"]),y=f||null,{tooltipProps:E,getReferenceProps:S}=(0,a.l)();return o.createElement("span",Object.assign({ref:(0,c.lq)([t,E.refs.setReference]),className:(0,s.q)(p("root"),"w-max flex-shrink-0 inline-flex justify-center items-center cursor-default rounded-tremor-full",n?(0,s.q)((0,c.bM)(n,l.K.background).bgColor,(0,c.bM)(n,l.K.text).textColor,"bg-opacity-20 dark:bg-opacity-25"):(0,s.q)("bg-tremor-brand-muted text-tremor-brand-emphasis","dark:bg-dark-tremor-brand-muted dark:text-dark-tremor-brand-emphasis"),u[m].paddingX,u[m].paddingY,u[m].fontSize,h)},S,v),o.createElement(a.Z,Object.assign({text:g},E)),y?o.createElement(y,{className:(0,s.q)(p("icon"),"shrink-0 -ml-1 mr-1.5",d[m].height,d[m].width)}):null,o.createElement("p",{className:(0,s.q)(p("text"),"text-sm whitespace-nowrap")},b))});f.displayName="Badge"},61244:function(e,t,n){n.d(t,{Z:function(){return g}});var r=n(69703),o=n(64090),a=n(58437),i=n(54942),l=n(99250),s=n(65492),c=n(2898);let u={xs:{paddingX:"px-1.5",paddingY:"py-1.5"},sm:{paddingX:"px-1.5",paddingY:"py-1.5"},md:{paddingX:"px-2",paddingY:"py-2"},lg:{paddingX:"px-2",paddingY:"py-2"},xl:{paddingX:"px-2.5",paddingY:"py-2.5"}},d={xs:{height:"h-3",width:"w-3"},sm:{height:"h-5",width:"w-5"},md:{height:"h-5",width:"w-5"},lg:{height:"h-7",width:"w-7"},xl:{height:"h-9",width:"w-9"}},p={simple:{rounded:"",border:"",ring:"",shadow:""},light:{rounded:"rounded-tremor-default",border:"",ring:"",shadow:""},shadow:{rounded:"rounded-tremor-default",border:"border",ring:"",shadow:"shadow-tremor-card dark:shadow-dark-tremor-card"},solid:{rounded:"rounded-tremor-default",border:"border-2",ring:"ring-1",shadow:""},outlined:{rounded:"rounded-tremor-default",border:"border",ring:"ring-2",shadow:""}},f=(e,t)=>{switch(e){case"simple":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:"",borderColor:"",ringColor:""};case"light":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:t?(0,l.q)((0,s.bM)(t,c.K.background).bgColor,"bg-opacity-20"):"bg-tremor-brand-muted dark:bg-dark-tremor-brand-muted",borderColor:"",ringColor:""};case"shadow":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:t?(0,l.q)((0,s.bM)(t,c.K.background).bgColor,"bg-opacity-20"):"bg-tremor-background dark:bg-dark-tremor-background",borderColor:"border-tremor-border dark:border-dark-tremor-border",ringColor:""};case"solid":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand-inverted dark:text-dark-tremor-brand-inverted",bgColor:t?(0,l.q)((0,s.bM)(t,c.K.background).bgColor,"bg-opacity-20"):"bg-tremor-brand dark:bg-dark-tremor-brand",borderColor:"border-tremor-brand-inverted dark:border-dark-tremor-brand-inverted",ringColor:"ring-tremor-ring dark:ring-dark-tremor-ring"};case"outlined":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:t?(0,l.q)((0,s.bM)(t,c.K.background).bgColor,"bg-opacity-20"):"bg-tremor-background dark:bg-dark-tremor-background",borderColor:t?(0,s.bM)(t,c.K.ring).borderColor:"border-tremor-brand-subtle dark:border-dark-tremor-brand-subtle",ringColor:t?(0,l.q)((0,s.bM)(t,c.K.ring).ringColor,"ring-opacity-40"):"ring-tremor-brand-muted dark:ring-dark-tremor-brand-muted"}}},m=(0,s.fn)("Icon"),g=o.forwardRef((e,t)=>{let{icon:n,variant:c="simple",tooltip:g,size:h=i.u8.SM,color:b,className:v}=e,y=(0,r._T)(e,["icon","variant","tooltip","size","color","className"]),E=f(c,b),{tooltipProps:S,getReferenceProps:w}=(0,a.l)();return o.createElement("span",Object.assign({ref:(0,s.lq)([t,S.refs.setReference]),className:(0,l.q)(m("root"),"inline-flex flex-shrink-0 items-center",E.bgColor,E.textColor,E.borderColor,E.ringColor,p[c].rounded,p[c].border,p[c].shadow,p[c].ring,u[h].paddingX,u[h].paddingY,v)},w,y),o.createElement(a.Z,Object.assign({text:g},S)),o.createElement(n,{className:(0,l.q)(m("icon"),"shrink-0",d[h].height,d[h].width)}))});g.displayName="Icon"},2179:function(e,t,n){n.d(t,{Z:function(){return O}});var r=n(69703),o=n(58437),a=n(64090);let i=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],l=e=>({_s:e,status:i[e],isEnter:e<3,isMounted:6!==e,isResolved:2===e||e>4}),s=e=>e?6:5,c=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return s(t)}},u=e=>"object"==typeof e?[e.enter,e.exit]:[e,e],d=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),p=(e,t,n,r,o)=>{clearTimeout(r.current);let a=l(e);t(a),n.current=a,o&&o({current:a})},f=function(){let{enter:e=!0,exit:t=!0,preEnter:n,preExit:r,timeout:o,initialEntered:i,mountOnEnter:f,unmountOnExit:m,onStateChange:g}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[h,b]=(0,a.useState)(()=>l(i?2:s(f))),v=(0,a.useRef)(h),y=(0,a.useRef)(),[E,S]=u(o),w=(0,a.useCallback)(()=>{let e=c(v.current._s,m);e&&p(e,b,v,y,g)},[g,m]),x=(0,a.useCallback)(o=>{let a=e=>{switch(p(e,b,v,y,g),e){case 1:E>=0&&(y.current=setTimeout(w,E));break;case 4:S>=0&&(y.current=setTimeout(w,S));break;case 0:case 3:y.current=d(a,e)}},i=v.current.isEnter;"boolean"!=typeof o&&(o=!i),o?i||a(e?n?0:1:2):i&&a(t?r?3:4:s(m))},[w,g,e,t,n,r,E,S,m]);return(0,a.useEffect)(()=>()=>clearTimeout(y.current),[]),[h,x,w]};var m=n(54942),g=n(99250),h=n(65492);let b=e=>{var t=(0,r._T)(e,[]);return a.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),a.createElement("path",{d:"M18.364 5.636L16.95 7.05A7 7 0 1 0 19 12h2a9 9 0 1 1-2.636-6.364z"}))};var v=n(2898);let y={xs:{height:"h-4",width:"w-4"},sm:{height:"h-5",width:"w-5"},md:{height:"h-5",width:"w-5"},lg:{height:"h-6",width:"w-6"},xl:{height:"h-6",width:"w-6"}},E=e=>"light"!==e?{xs:{paddingX:"px-2.5",paddingY:"py-1.5",fontSize:"text-xs"},sm:{paddingX:"px-4",paddingY:"py-2",fontSize:"text-sm"},md:{paddingX:"px-4",paddingY:"py-2",fontSize:"text-md"},lg:{paddingX:"px-4",paddingY:"py-2.5",fontSize:"text-lg"},xl:{paddingX:"px-4",paddingY:"py-3",fontSize:"text-xl"}}:{xs:{paddingX:"",paddingY:"",fontSize:"text-xs"},sm:{paddingX:"",paddingY:"",fontSize:"text-sm"},md:{paddingX:"",paddingY:"",fontSize:"text-md"},lg:{paddingX:"",paddingY:"",fontSize:"text-lg"},xl:{paddingX:"",paddingY:"",fontSize:"text-xl"}},S=(e,t)=>{switch(e){case"primary":return{textColor:t?(0,h.bM)("white").textColor:"text-tremor-brand-inverted dark:text-dark-tremor-brand-inverted",hoverTextColor:t?(0,h.bM)("white").textColor:"text-tremor-brand-inverted dark:text-dark-tremor-brand-inverted",bgColor:t?(0,h.bM)(t,v.K.background).bgColor:"bg-tremor-brand dark:bg-dark-tremor-brand",hoverBgColor:t?(0,h.bM)(t,v.K.darkBackground).hoverBgColor:"hover:bg-tremor-brand-emphasis dark:hover:bg-dark-tremor-brand-emphasis",borderColor:t?(0,h.bM)(t,v.K.border).borderColor:"border-tremor-brand dark:border-dark-tremor-brand",hoverBorderColor:t?(0,h.bM)(t,v.K.darkBorder).hoverBorderColor:"hover:border-tremor-brand-emphasis dark:hover:border-dark-tremor-brand-emphasis"};case"secondary":return{textColor:t?(0,h.bM)(t,v.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",hoverTextColor:t?(0,h.bM)(t,v.K.text).textColor:"hover:text-tremor-brand-emphasis dark:hover:text-dark-tremor-brand-emphasis",bgColor:(0,h.bM)("transparent").bgColor,hoverBgColor:t?(0,g.q)((0,h.bM)(t,v.K.background).hoverBgColor,"hover:bg-opacity-20 dark:hover:bg-opacity-20"):"hover:bg-tremor-brand-faint dark:hover:bg-dark-tremor-brand-faint",borderColor:t?(0,h.bM)(t,v.K.border).borderColor:"border-tremor-brand dark:border-dark-tremor-brand"};case"light":return{textColor:t?(0,h.bM)(t,v.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",hoverTextColor:t?(0,h.bM)(t,v.K.darkText).hoverTextColor:"hover:text-tremor-brand-emphasis dark:hover:text-dark-tremor-brand-emphasis",bgColor:(0,h.bM)("transparent").bgColor,borderColor:"",hoverBorderColor:""}}},w=(0,h.fn)("Button"),x=e=>{let{loading:t,iconSize:n,iconPosition:r,Icon:o,needMargin:i,transitionStatus:l}=e,s=i?r===m.zS.Left?(0,g.q)("-ml-1","mr-1.5"):(0,g.q)("-mr-1","ml-1.5"):"",c=(0,g.q)("w-0 h-0"),u={default:c,entering:c,entered:n,exiting:n,exited:c};return t?a.createElement(b,{className:(0,g.q)(w("icon"),"animate-spin shrink-0",s,u.default,u[l]),style:{transition:"width 150ms"}}):a.createElement(o,{className:(0,g.q)(w("icon"),"shrink-0",n,s)})},O=a.forwardRef((e,t)=>{let{icon:n,iconPosition:i=m.zS.Left,size:l=m.u8.SM,color:s,variant:c="primary",disabled:u,loading:d=!1,loadingText:p,children:b,tooltip:v,className:O}=e,k=(0,r._T)(e,["icon","iconPosition","size","color","variant","disabled","loading","loadingText","children","tooltip","className"]),C=d||u,T=void 0!==n||d,A=d&&p,I=!(!b&&!A),N=(0,g.q)(y[l].height,y[l].width),R="light"!==c?(0,g.q)("rounded-tremor-default border","shadow-tremor-input","dark:shadow-dark-tremor-input"):"",_=S(c,s),P=E(c)[l],{tooltipProps:M,getReferenceProps:L}=(0,o.l)(300),[D,j]=f({timeout:50});return(0,a.useEffect)(()=>{j(d)},[d]),a.createElement("button",Object.assign({ref:(0,h.lq)([t,M.refs.setReference]),className:(0,g.q)(w("root"),"flex-shrink-0 inline-flex justify-center items-center group font-medium outline-none",R,P.paddingX,P.paddingY,P.fontSize,_.textColor,_.bgColor,_.borderColor,_.hoverBorderColor,C?"opacity-50 cursor-not-allowed":(0,g.q)(S(c,s).hoverTextColor,S(c,s).hoverBgColor,S(c,s).hoverBorderColor),O),disabled:C},L,k),a.createElement(o.Z,Object.assign({text:v},M)),T&&i!==m.zS.Right?a.createElement(x,{loading:d,iconSize:N,iconPosition:i,Icon:n,transitionStatus:D.status,needMargin:I}):null,A||b?a.createElement("span",{className:(0,g.q)(w("text"),"text-tremor-default whitespace-nowrap")},A?p:b):null,T&&i===m.zS.Right?a.createElement(x,{loading:d,iconSize:N,iconPosition:i,Icon:n,transitionStatus:D.status,needMargin:I}):null)});O.displayName="Button"},47047:function(e,t,n){n.d(t,{Z:function(){return b}});var r=n(69703),o=n(64090);n(50027),n(18174),n(21871);var a=n(41213),i=n(46457),l=n(54518);let s=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"}))};var c=n(8903),u=n(25163),d=n(70129);let p=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},t),o.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))};var f=n(99250),m=n(65492),g=n(91753);let h=(0,m.fn)("MultiSelect"),b=o.forwardRef((e,t)=>{let{defaultValue:n,value:m,onValueChange:b,placeholder:v="Select...",placeholderSearch:y="Search",disabled:E=!1,icon:S,children:w,className:x}=e,O=(0,r._T)(e,["defaultValue","value","onValueChange","placeholder","placeholderSearch","disabled","icon","children","className"]),[k,C]=(0,i.Z)(n,m),{reactElementChildren:T,optionsAvailable:A}=(0,o.useMemo)(()=>{let e=o.Children.toArray(w).filter(o.isValidElement);return{reactElementChildren:e,optionsAvailable:(0,g.n0)("",e)}},[w]),[I,N]=(0,o.useState)(""),R=(null!=k?k:[]).length>0,_=(0,o.useMemo)(()=>I?(0,g.n0)(I,T):A,[I,T,A]),P=()=>{N("")};return o.createElement(u.R,Object.assign({as:"div",ref:t,defaultValue:k,value:k,onChange:e=>{null==b||b(e),C(e)},disabled:E,className:(0,f.q)("w-full min-w-[10rem] relative text-tremor-default",x)},O,{multiple:!0}),e=>{let{value:t}=e;return o.createElement(o.Fragment,null,o.createElement(u.R.Button,{className:(0,f.q)("w-full outline-none text-left whitespace-nowrap truncate rounded-tremor-default focus:ring-2 transition duration-100 border pr-8 py-1.5","border-tremor-border shadow-tremor-input focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:shadow-dark-tremor-input dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",S?"pl-11 -ml-0.5":"pl-3",(0,g.um)(t.length>0,E))},S&&o.createElement("span",{className:(0,f.q)("absolute inset-y-0 left-0 flex items-center ml-px pl-2.5")},o.createElement(S,{className:(0,f.q)(h("Icon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),o.createElement("div",{className:"h-6 flex items-center"},t.length>0?o.createElement("div",{className:"flex flex-nowrap overflow-x-scroll [&::-webkit-scrollbar]:hidden [scrollbar-width:none] gap-x-1 mr-5 -ml-1.5 relative"},A.filter(e=>t.includes(e.props.value)).map((e,n)=>{var r;return o.createElement("div",{key:n,className:(0,f.q)("max-w-[100px] lg:max-w-[200px] flex justify-center items-center pl-2 pr-1.5 py-1 font-medium","rounded-tremor-small","bg-tremor-background-muted dark:bg-dark-tremor-background-muted","bg-tremor-background-subtle dark:bg-dark-tremor-background-subtle","text-tremor-content-default dark:text-dark-tremor-content-default","text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis")},o.createElement("div",{className:"text-xs truncate "},null!==(r=e.props.children)&&void 0!==r?r:e.props.value),o.createElement("div",{onClick:n=>{n.preventDefault();let r=t.filter(t=>t!==e.props.value);null==b||b(r),C(r)}},o.createElement(p,{className:(0,f.q)(h("clearIconItem"),"cursor-pointer rounded-tremor-full w-3.5 h-3.5 ml-2","text-tremor-content-subtle hover:text-tremor-content","dark:text-dark-tremor-content-subtle dark:hover:text-tremor-content")})))})):o.createElement("span",null,v)),o.createElement("span",{className:(0,f.q)("absolute inset-y-0 right-0 flex items-center mr-2.5")},o.createElement(l.Z,{className:(0,f.q)(h("arrowDownIcon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}))),R&&!E?o.createElement("button",{type:"button",className:(0,f.q)("absolute inset-y-0 right-0 flex items-center mr-8"),onClick:e=>{e.preventDefault(),C([]),null==b||b([])}},o.createElement(c.Z,{className:(0,f.q)(h("clearIconAllItems"),"flex-none h-4 w-4","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})):null,o.createElement(d.u,{className:"absolute z-10 w-full",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},o.createElement(u.R.Options,{className:(0,f.q)("divide-y overflow-y-auto outline-none rounded-tremor-default max-h-[228px] left-0 border my-1","bg-tremor-background border-tremor-border divide-tremor-border shadow-tremor-dropdown","dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border dark:shadow-dark-tremor-dropdown")},o.createElement("div",{className:(0,f.q)("flex items-center w-full px-2.5","bg-tremor-background-muted","dark:bg-dark-tremor-background-muted")},o.createElement("span",null,o.createElement(s,{className:(0,f.q)("flex-none w-4 h-4 mr-2","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),o.createElement("input",{name:"search",type:"input",autoComplete:"off",placeholder:y,className:(0,f.q)("w-full focus:outline-none focus:ring-none bg-transparent text-tremor-default py-2","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis"),onKeyDown:e=>{"Space"===e.code&&""!==e.target.value&&e.stopPropagation()},onChange:e=>N(e.target.value),value:I})),o.createElement(a.Z.Provider,Object.assign({},{onBlur:{handleResetSearch:P}},{value:{selectedValue:t}}),_))))})});b.displayName="MultiSelect"},76628:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(69703);n(50027),n(18174),n(21871);var o=n(41213),a=n(64090),i=n(99250),l=n(65492),s=n(25163);let c=(0,l.fn)("MultiSelectItem"),u=a.forwardRef((e,t)=>{let{value:n,className:u,children:d}=e,p=(0,r._T)(e,["value","className","children"]),{selectedValue:f}=(0,a.useContext)(o.Z),m=(0,l.NZ)(n,f);return a.createElement(s.R.Option,Object.assign({className:(0,i.q)(c("root"),"flex justify-start items-center cursor-default text-tremor-default p-2.5","ui-active:bg-tremor-background-muted ui-active:text-tremor-content-strong ui-selected:text-tremor-content-strong text-tremor-content-emphasis","dark:ui-active:bg-dark-tremor-background-muted dark:ui-active:text-dark-tremor-content-strong dark:ui-selected:text-dark-tremor-content-strong dark:ui-selected:bg-dark-tremor-background-muted dark:text-dark-tremor-content-emphasis",u),ref:t,key:n,value:n},p),a.createElement("input",{type:"checkbox",className:(0,i.q)(c("checkbox"),"flex-none focus:ring-none focus:outline-none cursor-pointer mr-2.5","accent-tremor-brand","dark:accent-dark-tremor-brand"),checked:m,readOnly:!0}),a.createElement("span",{className:"whitespace-nowrap truncate"},null!=d?d:n))});u.displayName="MultiSelectItem"},95093:function(e,t,n){n.d(t,{Z:function(){return m}});var r=n(69703),o=n(64090),a=n(54518),i=n(8903),l=n(99250),s=n(65492),c=n(91753),u=n(25163),d=n(70129),p=n(46457);let f=(0,s.fn)("Select"),m=o.forwardRef((e,t)=>{let{defaultValue:n,value:s,onValueChange:m,placeholder:g="Select...",disabled:h=!1,icon:b,enableClear:v=!0,children:y,className:E}=e,S=(0,r._T)(e,["defaultValue","value","onValueChange","placeholder","disabled","icon","enableClear","children","className"]),[w,x]=(0,p.Z)(n,s),O=(0,o.useMemo)(()=>{let e=o.Children.toArray(y).filter(o.isValidElement);return(0,c.sl)(e)},[y]);return o.createElement(u.R,Object.assign({as:"div",ref:t,defaultValue:w,value:w,onChange:e=>{null==m||m(e),x(e)},disabled:h,className:(0,l.q)("w-full min-w-[10rem] relative text-tremor-default",E)},S),e=>{var t;let{value:n}=e;return o.createElement(o.Fragment,null,o.createElement(u.R.Button,{className:(0,l.q)("w-full outline-none text-left whitespace-nowrap truncate rounded-tremor-default focus:ring-2 transition duration-100 border pr-8 py-2","border-tremor-border shadow-tremor-input focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:shadow-dark-tremor-input dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",b?"pl-10":"pl-3",(0,c.um)((0,c.Uh)(n),h))},b&&o.createElement("span",{className:(0,l.q)("absolute inset-y-0 left-0 flex items-center ml-px pl-2.5")},o.createElement(b,{className:(0,l.q)(f("Icon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),o.createElement("span",{className:"w-[90%] block truncate"},n&&null!==(t=O.get(n))&&void 0!==t?t:g),o.createElement("span",{className:(0,l.q)("absolute inset-y-0 right-0 flex items-center mr-3")},o.createElement(a.Z,{className:(0,l.q)(f("arrowDownIcon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}))),v&&w?o.createElement("button",{type:"button",className:(0,l.q)("absolute inset-y-0 right-0 flex items-center mr-8"),onClick:e=>{e.preventDefault(),x(""),null==m||m("")}},o.createElement(i.Z,{className:(0,l.q)(f("clearIcon"),"flex-none h-4 w-4","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})):null,o.createElement(d.u,{className:"absolute z-10 w-full",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},o.createElement(u.R.Options,{className:(0,l.q)("divide-y overflow-y-auto outline-none rounded-tremor-default max-h-[228px] left-0 border my-1","bg-tremor-background border-tremor-border divide-tremor-border shadow-tremor-dropdown","dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border dark:shadow-dark-tremor-dropdown")},y)))})});m.displayName="Select"},27166:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(69703),o=n(64090),a=n(25163),i=n(99250);let l=(0,n(65492).fn)("SelectItem"),s=o.forwardRef((e,t)=>{let{value:n,icon:s,className:c,children:u}=e,d=(0,r._T)(e,["value","icon","className","children"]);return o.createElement(a.R.Option,Object.assign({className:(0,i.q)(l("root"),"flex justify-start items-center cursor-default text-tremor-default px-2.5 py-2.5","ui-active:bg-tremor-background-muted ui-active:text-tremor-content-strong ui-selected:text-tremor-content-strong ui-selected:bg-tremor-background-muted text-tremor-content-emphasis","dark:ui-active:bg-dark-tremor-background-muted dark:ui-active:text-dark-tremor-content-strong dark:ui-selected:text-dark-tremor-content-strong dark:ui-selected:bg-dark-tremor-background-muted dark:text-dark-tremor-content-emphasis",c),ref:t,key:n,value:n},d),s&&o.createElement(s,{className:(0,i.q)(l("icon"),"flex-none w-5 h-5 mr-1.5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}),o.createElement("span",{className:"whitespace-nowrap truncate"},null!=u?u:n))});s.displayName="SelectItem"},12224:function(e,t,n){n.d(t,{Z:function(){return I}});var r=n(69703),o=n(64090),a=n(83891),i=n(20044),l=n(10641),s=n(92381),c=n(71454),u=n(36601),d=n(37700),p=n(84152),f=n(34797),m=n(18318),g=n(71014),h=n(67409),b=n(39790);let v=(0,o.createContext)(null),y=Object.assign((0,m.yV)(function(e,t){let n=(0,s.M)(),{id:r="headlessui-label-".concat(n),passive:a=!1,...i}=e,l=function e(){let t=(0,o.useContext)(v);if(null===t){let t=Error("You used a