@sailingrotevista/rotevista-webapp 2.0.8 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Ul=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ze(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var SA={exports:{}},Xd={},PA={exports:{}},ke={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Sc=Symbol.for("react.element"),XN=Symbol.for("react.portal"),YN=Symbol.for("react.fragment"),QN=Symbol.for("react.strict_mode"),JN=Symbol.for("react.profiler"),eL=Symbol.for("react.provider"),tL=Symbol.for("react.context"),nL=Symbol.for("react.forward_ref"),rL=Symbol.for("react.suspense"),iL=Symbol.for("react.memo"),oL=Symbol.for("react.lazy"),eb=Symbol.iterator;function aL(e){return e===null||typeof e!="object"?null:(e=eb&&e[eb]||e["@@iterator"],typeof e=="function"?e:null)}var OA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},TA=Object.assign,AA={};function Fs(e,t,n){this.props=e,this.context=t,this.refs=AA,this.updater=n||OA}Fs.prototype.isReactComponent={};Fs.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Fs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function EA(){}EA.prototype=Fs.prototype;function O0(e,t,n){this.props=e,this.context=t,this.refs=AA,this.updater=n||OA}var T0=O0.prototype=new EA;T0.constructor=O0;TA(T0,Fs.prototype);T0.isPureReactComponent=!0;var tb=Array.isArray,kA=Object.prototype.hasOwnProperty,A0={current:null},MA={key:!0,ref:!0,__self:!0,__source:!0};function CA(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)kA.call(t,r)&&!MA.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var u=Array(l),f=0;f<l;f++)u[f]=arguments[f+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Sc,type:e,key:o,ref:s,props:i,_owner:A0.current}}function sL(e,t){return{$$typeof:Sc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function E0(e){return typeof e=="object"&&e!==null&&e.$$typeof===Sc}function lL(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var nb=/\/+/g;function Om(e,t){return typeof e=="object"&&e!==null&&e.key!=null?lL(""+e.key):t.toString(36)}function rh(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Sc:case XN:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Om(s,0):r,tb(i)?(n="",e!=null&&(n=e.replace(nb,"$&/")+"/"),rh(i,t,n,"",function(f){return f})):i!=null&&(E0(i)&&(i=sL(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(nb,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",tb(e))for(var l=0;l<e.length;l++){o=e[l];var u=r+Om(o,l);s+=rh(o,t,n,u,i)}else if(u=aL(e),typeof u=="function")for(e=u.call(e),l=0;!(o=e.next()).done;)o=o.value,u=r+Om(o,l++),s+=rh(o,t,n,u,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function xf(e,t,n){if(e==null)return e;var r=[],i=0;return rh(e,r,"","",function(o){return t.call(n,o,i++)}),r}function uL(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var pn={current:null},ih={transition:null},cL={ReactCurrentDispatcher:pn,ReactCurrentBatchConfig:ih,ReactCurrentOwner:A0};function jA(){throw Error("act(...) is not supported in production builds of React.")}ke.Children={map:xf,forEach:function(e,t,n){xf(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return xf(e,function(){t++}),t},toArray:function(e){return xf(e,function(t){return t})||[]},only:function(e){if(!E0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ke.Component=Fs;ke.Fragment=YN;ke.Profiler=JN;ke.PureComponent=O0;ke.StrictMode=QN;ke.Suspense=rL;ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cL;ke.act=jA;ke.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=TA({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=A0.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)kA.call(t,u)&&!MA.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&l!==void 0?l[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){l=Array(u);for(var f=0;f<u;f++)l[f]=arguments[f+2];r.children=l}return{$$typeof:Sc,type:e.type,key:i,ref:o,props:r,_owner:s}};ke.createContext=function(e){return e={$$typeof:tL,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:eL,_context:e},e.Consumer=e};ke.createElement=CA;ke.createFactory=function(e){var t=CA.bind(null,e);return t.type=e,t};ke.createRef=function(){return{current:null}};ke.forwardRef=function(e){return{$$typeof:nL,render:e}};ke.isValidElement=E0;ke.lazy=function(e){return{$$typeof:oL,_payload:{_status:-1,_result:e},_init:uL}};ke.memo=function(e,t){return{$$typeof:iL,type:e,compare:t===void 0?null:t}};ke.startTransition=function(e){var t=ih.transition;ih.transition={};try{e()}finally{ih.transition=t}};ke.unstable_act=jA;ke.useCallback=function(e,t){return pn.current.useCallback(e,t)};ke.useContext=function(e){return pn.current.useContext(e)};ke.useDebugValue=function(){};ke.useDeferredValue=function(e){return pn.current.useDeferredValue(e)};ke.useEffect=function(e,t){return pn.current.useEffect(e,t)};ke.useId=function(){return pn.current.useId()};ke.useImperativeHandle=function(e,t,n){return pn.current.useImperativeHandle(e,t,n)};ke.useInsertionEffect=function(e,t){return pn.current.useInsertionEffect(e,t)};ke.useLayoutEffect=function(e,t){return pn.current.useLayoutEffect(e,t)};ke.useMemo=function(e,t){return pn.current.useMemo(e,t)};ke.useReducer=function(e,t,n){return pn.current.useReducer(e,t,n)};ke.useRef=function(e){return pn.current.useRef(e)};ke.useState=function(e){return pn.current.useState(e)};ke.useSyncExternalStore=function(e,t,n){return pn.current.useSyncExternalStore(e,t,n)};ke.useTransition=function(){return pn.current.useTransition()};ke.version="18.3.1";PA.exports=ke;var j=PA.exports;const D=Ze(j);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var fL=j,hL=Symbol.for("react.element"),dL=Symbol.for("react.fragment"),pL=Object.prototype.hasOwnProperty,mL=fL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vL={key:!0,ref:!0,__self:!0,__source:!0};function $A(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)pL.call(t,r)&&!vL.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:hL,type:e,key:o,ref:s,props:i,_owner:mL.current}}Xd.Fragment=dL;Xd.jsx=$A;Xd.jsxs=$A;SA.exports=Xd;var O=SA.exports,Uv={},NA={exports:{}},Fn={},LA={exports:{}},IA={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t($,q){var V=$.length;$.push(q);e:for(;0<V;){var te=V-1>>>1,Q=$[te];if(0<i(Q,q))$[te]=q,$[V]=Q,V=te;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var q=$[0],V=$.pop();if(V!==q){$[0]=V;e:for(var te=0,Q=$.length,ae=Q>>>1;te<ae;){var fe=2*(te+1)-1,he=$[fe],ce=fe+1,Ve=$[ce];if(0>i(he,V))ce<Q&&0>i(Ve,he)?($[te]=Ve,$[ce]=V,te=ce):($[te]=he,$[fe]=V,te=fe);else if(ce<Q&&0>i(Ve,V))$[te]=Ve,$[ce]=V,te=ce;else break e}}return q}function i($,q){var V=$.sortIndex-q.sortIndex;return V!==0?V:$.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],f=[],d=1,h=null,m=3,v=!1,b=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w($){for(var q=n(f);q!==null;){if(q.callback===null)r(f);else if(q.startTime<=$)r(f),q.sortIndex=q.expirationTime,t(u,q);else break;q=n(f)}}function E($){if(x=!1,w($),!b)if(n(u)!==null)b=!0,Z(P);else{var q=n(f);q!==null&&G(E,q.startTime-$)}}function P($,q){b=!1,x&&(x=!1,y(C),C=-1),v=!0;var V=m;try{for(w(q),h=n(u);h!==null&&(!(h.expirationTime>q)||$&&!z());){var te=h.callback;if(typeof te=="function"){h.callback=null,m=h.priorityLevel;var Q=te(h.expirationTime<=q);q=e.unstable_now(),typeof Q=="function"?h.callback=Q:h===n(u)&&r(u),w(q)}else r(u);h=n(u)}if(h!==null)var ae=!0;else{var fe=n(f);fe!==null&&G(E,fe.startTime-q),ae=!1}return ae}finally{h=null,m=V,v=!1}}var A=!1,M=null,C=-1,N=5,B=-1;function z(){return!(e.unstable_now()-B<N)}function R(){if(M!==null){var $=e.unstable_now();B=$;var q=!0;try{q=M(!0,$)}finally{q?K():(A=!1,M=null)}}else A=!1}var K;if(typeof _=="function")K=function(){_(R)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,W=H.port2;H.port1.onmessage=R,K=function(){W.postMessage(null)}}else K=function(){S(R,0)};function Z($){M=$,A||(A=!0,K())}function G($,q){C=S(function(){$(e.unstable_now())},q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function($){$.callback=null},e.unstable_continueExecution=function(){b||v||(b=!0,Z(P))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function($){switch(m){case 1:case 2:case 3:var q=3;break;default:q=m}var V=m;m=q;try{return $()}finally{m=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,q){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var V=m;m=$;try{return q()}finally{m=V}},e.unstable_scheduleCallback=function($,q,V){var te=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?te+V:te):V=te,$){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=V+Q,$={id:d++,callback:q,priorityLevel:$,startTime:V,expirationTime:Q,sortIndex:-1},V>te?($.sortIndex=V,t(f,$),n(u)===null&&$===n(f)&&(x?(y(C),C=-1):x=!0,G(E,V-te))):($.sortIndex=Q,t(u,$),b||v||(b=!0,Z(P))),$},e.unstable_shouldYield=z,e.unstable_wrapCallback=function($){var q=m;return function(){var V=m;m=q;try{return $.apply(this,arguments)}finally{m=V}}}})(IA);LA.exports=IA;var gL=LA.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var yL=j,Dn=gL;function re(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var DA=new Set,xu={};function ua(e,t){ss(e,t),ss(e+"Capture",t)}function ss(e,t){for(xu[e]=t,e=0;e<t.length;e++)DA.add(t[e])}var yi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wv=Object.prototype.hasOwnProperty,xL=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rb={},ib={};function _L(e){return Wv.call(ib,e)?!0:Wv.call(rb,e)?!1:xL.test(e)?ib[e]=!0:(rb[e]=!0,!1)}function bL(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function wL(e,t,n,r){if(t===null||typeof t>"u"||bL(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function mn(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Gt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Gt[e]=new mn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Gt[t]=new mn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Gt[e]=new mn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Gt[e]=new mn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Gt[e]=new mn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Gt[e]=new mn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Gt[e]=new mn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Gt[e]=new mn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Gt[e]=new mn(e,5,!1,e.toLowerCase(),null,!1,!1)});var k0=/[\-:]([a-z])/g;function M0(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(k0,M0);Gt[t]=new mn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(k0,M0);Gt[t]=new mn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(k0,M0);Gt[t]=new mn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Gt[e]=new mn(e,1,!1,e.toLowerCase(),null,!1,!1)});Gt.xlinkHref=new mn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Gt[e]=new mn(e,1,!1,e.toLowerCase(),null,!0,!0)});function C0(e,t,n,r){var i=Gt.hasOwnProperty(t)?Gt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(wL(t,n,i,r)&&(n=null),r||i===null?_L(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ai=yL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_f=Symbol.for("react.element"),Ca=Symbol.for("react.portal"),ja=Symbol.for("react.fragment"),j0=Symbol.for("react.strict_mode"),Hv=Symbol.for("react.profiler"),RA=Symbol.for("react.provider"),zA=Symbol.for("react.context"),$0=Symbol.for("react.forward_ref"),Zv=Symbol.for("react.suspense"),Gv=Symbol.for("react.suspense_list"),N0=Symbol.for("react.memo"),Bi=Symbol.for("react.lazy"),BA=Symbol.for("react.offscreen"),ob=Symbol.iterator;function Sl(e){return e===null||typeof e!="object"?null:(e=ob&&e[ob]||e["@@iterator"],typeof e=="function"?e:null)}var dt=Object.assign,Tm;function Wl(e){if(Tm===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Tm=t&&t[1]||""}return`
|
|
34
|
+
`+Tm+e}var Am=!1;function Em(e,t){if(!e||Am)return"";Am=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(f){var r=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){r=f}e.call(t.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var i=f.stack.split(`
|
|
35
|
+
`),o=r.stack.split(`
|
|
36
|
+
`),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var u=`
|
|
37
|
+
`+i[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{Am=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wl(e):""}function SL(e){switch(e.tag){case 5:return Wl(e.type);case 16:return Wl("Lazy");case 13:return Wl("Suspense");case 19:return Wl("SuspenseList");case 0:case 2:case 15:return e=Em(e.type,!1),e;case 11:return e=Em(e.type.render,!1),e;case 1:return e=Em(e.type,!0),e;default:return""}}function Kv(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ja:return"Fragment";case Ca:return"Portal";case Hv:return"Profiler";case j0:return"StrictMode";case Zv:return"Suspense";case Gv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case zA:return(e.displayName||"Context")+".Consumer";case RA:return(e._context.displayName||"Context")+".Provider";case $0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case N0:return t=e.displayName||null,t!==null?t:Kv(e.type)||"Memo";case Bi:t=e._payload,e=e._init;try{return Kv(e(t))}catch{}}return null}function PL(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Kv(t);case 8:return t===j0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function oo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function FA(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function OL(e){var t=FA(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bf(e){e._valueTracker||(e._valueTracker=OL(e))}function VA(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=FA(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function qv(e,t){var n=t.checked;return dt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ab(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=oo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function UA(e,t){t=t.checked,t!=null&&C0(e,"checked",t,!1)}function Xv(e,t){UA(e,t);var n=oo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Yv(e,t.type,n):t.hasOwnProperty("defaultValue")&&Yv(e,t.type,oo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function sb(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Yv(e,t,n){(t!=="number"||yh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Hl=Array.isArray;function Ya(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+oo(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Qv(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(re(91));return dt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function lb(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(re(92));if(Hl(n)){if(1<n.length)throw Error(re(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:oo(n)}}function WA(e,t){var n=oo(t.value),r=oo(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ub(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function HA(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Jv(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?HA(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var wf,ZA=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(wf=wf||document.createElement("div"),wf.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=wf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _u(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},TL=["Webkit","ms","Moz","O"];Object.keys(Jl).forEach(function(e){TL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jl[t]=Jl[e]})});function GA(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Jl.hasOwnProperty(e)&&Jl[e]?(""+t).trim():t+"px"}function KA(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=GA(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var AL=dt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function eg(e,t){if(t){if(AL[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(re(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(re(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(re(61))}if(t.style!=null&&typeof t.style!="object")throw Error(re(62))}}function tg(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ng=null;function L0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rg=null,Qa=null,Ja=null;function cb(e){if(e=Tc(e)){if(typeof rg!="function")throw Error(re(280));var t=e.stateNode;t&&(t=tp(t),rg(e.stateNode,e.type,t))}}function qA(e){Qa?Ja?Ja.push(e):Ja=[e]:Qa=e}function XA(){if(Qa){var e=Qa,t=Ja;if(Ja=Qa=null,cb(e),t)for(e=0;e<t.length;e++)cb(t[e])}}function YA(e,t){return e(t)}function QA(){}var km=!1;function JA(e,t,n){if(km)return e(t,n);km=!0;try{return YA(e,t,n)}finally{km=!1,(Qa!==null||Ja!==null)&&(QA(),XA())}}function bu(e,t){var n=e.stateNode;if(n===null)return null;var r=tp(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(re(231,t,typeof n));return n}var ig=!1;if(yi)try{var Pl={};Object.defineProperty(Pl,"passive",{get:function(){ig=!0}}),window.addEventListener("test",Pl,Pl),window.removeEventListener("test",Pl,Pl)}catch{ig=!1}function EL(e,t,n,r,i,o,s,l,u){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(d){this.onError(d)}}var eu=!1,xh=null,_h=!1,og=null,kL={onError:function(e){eu=!0,xh=e}};function ML(e,t,n,r,i,o,s,l,u){eu=!1,xh=null,EL.apply(kL,arguments)}function CL(e,t,n,r,i,o,s,l,u){if(ML.apply(this,arguments),eu){if(eu){var f=xh;eu=!1,xh=null}else throw Error(re(198));_h||(_h=!0,og=f)}}function ca(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function e2(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function fb(e){if(ca(e)!==e)throw Error(re(188))}function jL(e){var t=e.alternate;if(!t){if(t=ca(e),t===null)throw Error(re(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return fb(i),e;if(o===r)return fb(i),t;o=o.sibling}throw Error(re(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(re(189))}}if(n.alternate!==r)throw Error(re(190))}if(n.tag!==3)throw Error(re(188));return n.stateNode.current===n?e:t}function t2(e){return e=jL(e),e!==null?n2(e):null}function n2(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=n2(e);if(t!==null)return t;e=e.sibling}return null}var r2=Dn.unstable_scheduleCallback,hb=Dn.unstable_cancelCallback,$L=Dn.unstable_shouldYield,NL=Dn.unstable_requestPaint,xt=Dn.unstable_now,LL=Dn.unstable_getCurrentPriorityLevel,I0=Dn.unstable_ImmediatePriority,i2=Dn.unstable_UserBlockingPriority,bh=Dn.unstable_NormalPriority,IL=Dn.unstable_LowPriority,o2=Dn.unstable_IdlePriority,Yd=null,Br=null;function DL(e){if(Br&&typeof Br.onCommitFiberRoot=="function")try{Br.onCommitFiberRoot(Yd,e,void 0,(e.current.flags&128)===128)}catch{}}var Or=Math.clz32?Math.clz32:BL,RL=Math.log,zL=Math.LN2;function BL(e){return e>>>=0,e===0?32:31-(RL(e)/zL|0)|0}var Sf=64,Pf=4194304;function Zl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function wh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Zl(l):(o&=s,o!==0&&(r=Zl(o)))}else s=n&~i,s!==0?r=Zl(s):o!==0&&(r=Zl(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Or(t),i=1<<n,r|=e[n],t&=~i;return r}function FL(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function VL(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Or(o),l=1<<s,u=i[s];u===-1?(!(l&n)||l&r)&&(i[s]=FL(l,t)):u<=t&&(e.expiredLanes|=l),o&=~l}}function ag(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function a2(){var e=Sf;return Sf<<=1,!(Sf&4194240)&&(Sf=64),e}function Mm(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Pc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Or(t),e[t]=n}function UL(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Or(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function D0(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Or(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Be=0;function s2(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var l2,R0,u2,c2,f2,sg=!1,Of=[],Xi=null,Yi=null,Qi=null,wu=new Map,Su=new Map,Ui=[],WL="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function db(e,t){switch(e){case"focusin":case"focusout":Xi=null;break;case"dragenter":case"dragleave":Yi=null;break;case"mouseover":case"mouseout":Qi=null;break;case"pointerover":case"pointerout":wu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Su.delete(t.pointerId)}}function Ol(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Tc(t),t!==null&&R0(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function HL(e,t,n,r,i){switch(t){case"focusin":return Xi=Ol(Xi,e,t,n,r,i),!0;case"dragenter":return Yi=Ol(Yi,e,t,n,r,i),!0;case"mouseover":return Qi=Ol(Qi,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return wu.set(o,Ol(wu.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Su.set(o,Ol(Su.get(o)||null,e,t,n,r,i)),!0}return!1}function h2(e){var t=Do(e.target);if(t!==null){var n=ca(t);if(n!==null){if(t=n.tag,t===13){if(t=e2(n),t!==null){e.blockedOn=t,f2(e.priority,function(){u2(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function oh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=lg(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ng=r,n.target.dispatchEvent(r),ng=null}else return t=Tc(n),t!==null&&R0(t),e.blockedOn=n,!1;t.shift()}return!0}function pb(e,t,n){oh(e)&&n.delete(t)}function ZL(){sg=!1,Xi!==null&&oh(Xi)&&(Xi=null),Yi!==null&&oh(Yi)&&(Yi=null),Qi!==null&&oh(Qi)&&(Qi=null),wu.forEach(pb),Su.forEach(pb)}function Tl(e,t){e.blockedOn===t&&(e.blockedOn=null,sg||(sg=!0,Dn.unstable_scheduleCallback(Dn.unstable_NormalPriority,ZL)))}function Pu(e){function t(i){return Tl(i,e)}if(0<Of.length){Tl(Of[0],e);for(var n=1;n<Of.length;n++){var r=Of[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Xi!==null&&Tl(Xi,e),Yi!==null&&Tl(Yi,e),Qi!==null&&Tl(Qi,e),wu.forEach(t),Su.forEach(t),n=0;n<Ui.length;n++)r=Ui[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ui.length&&(n=Ui[0],n.blockedOn===null);)h2(n),n.blockedOn===null&&Ui.shift()}var es=Ai.ReactCurrentBatchConfig,Sh=!0;function GL(e,t,n,r){var i=Be,o=es.transition;es.transition=null;try{Be=1,z0(e,t,n,r)}finally{Be=i,es.transition=o}}function KL(e,t,n,r){var i=Be,o=es.transition;es.transition=null;try{Be=4,z0(e,t,n,r)}finally{Be=i,es.transition=o}}function z0(e,t,n,r){if(Sh){var i=lg(e,t,n,r);if(i===null)Bm(e,t,r,Ph,n),db(e,r);else if(HL(i,e,t,n,r))r.stopPropagation();else if(db(e,r),t&4&&-1<WL.indexOf(e)){for(;i!==null;){var o=Tc(i);if(o!==null&&l2(o),o=lg(e,t,n,r),o===null&&Bm(e,t,r,Ph,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Bm(e,t,r,null,n)}}var Ph=null;function lg(e,t,n,r){if(Ph=null,e=L0(r),e=Do(e),e!==null)if(t=ca(e),t===null)e=null;else if(n=t.tag,n===13){if(e=e2(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ph=e,null}function d2(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(LL()){case I0:return 1;case i2:return 4;case bh:case IL:return 16;case o2:return 536870912;default:return 16}default:return 16}}var Zi=null,B0=null,ah=null;function p2(){if(ah)return ah;var e,t=B0,n=t.length,r,i="value"in Zi?Zi.value:Zi.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return ah=i.slice(e,1<r?1-r:void 0)}function sh(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Tf(){return!0}function mb(){return!1}function Vn(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Tf:mb,this.isPropagationStopped=mb,this}return dt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Tf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Tf)},persist:function(){},isPersistent:Tf}),t}var Vs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},F0=Vn(Vs),Oc=dt({},Vs,{view:0,detail:0}),qL=Vn(Oc),Cm,jm,Al,Qd=dt({},Oc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:V0,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Al&&(Al&&e.type==="mousemove"?(Cm=e.screenX-Al.screenX,jm=e.screenY-Al.screenY):jm=Cm=0,Al=e),Cm)},movementY:function(e){return"movementY"in e?e.movementY:jm}}),vb=Vn(Qd),XL=dt({},Qd,{dataTransfer:0}),YL=Vn(XL),QL=dt({},Oc,{relatedTarget:0}),$m=Vn(QL),JL=dt({},Vs,{animationName:0,elapsedTime:0,pseudoElement:0}),eI=Vn(JL),tI=dt({},Vs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),nI=Vn(tI),rI=dt({},Vs,{data:0}),gb=Vn(rI),iI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oI={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},aI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=aI[e])?!!t[e]:!1}function V0(){return sI}var lI=dt({},Oc,{key:function(e){if(e.key){var t=iI[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=sh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?oI[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:V0,charCode:function(e){return e.type==="keypress"?sh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?sh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),uI=Vn(lI),cI=dt({},Qd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yb=Vn(cI),fI=dt({},Oc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:V0}),hI=Vn(fI),dI=dt({},Vs,{propertyName:0,elapsedTime:0,pseudoElement:0}),pI=Vn(dI),mI=dt({},Qd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),vI=Vn(mI),gI=[9,13,27,32],U0=yi&&"CompositionEvent"in window,tu=null;yi&&"documentMode"in document&&(tu=document.documentMode);var yI=yi&&"TextEvent"in window&&!tu,m2=yi&&(!U0||tu&&8<tu&&11>=tu),xb=" ",_b=!1;function v2(e,t){switch(e){case"keyup":return gI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function g2(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $a=!1;function xI(e,t){switch(e){case"compositionend":return g2(t);case"keypress":return t.which!==32?null:(_b=!0,xb);case"textInput":return e=t.data,e===xb&&_b?null:e;default:return null}}function _I(e,t){if($a)return e==="compositionend"||!U0&&v2(e,t)?(e=p2(),ah=B0=Zi=null,$a=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return m2&&t.locale!=="ko"?null:t.data;default:return null}}var bI={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function bb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!bI[e.type]:t==="textarea"}function y2(e,t,n,r){qA(r),t=Oh(t,"onChange"),0<t.length&&(n=new F0("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nu=null,Ou=null;function wI(e){k2(e,0)}function Jd(e){var t=Ia(e);if(VA(t))return e}function SI(e,t){if(e==="change")return t}var x2=!1;if(yi){var Nm;if(yi){var Lm="oninput"in document;if(!Lm){var wb=document.createElement("div");wb.setAttribute("oninput","return;"),Lm=typeof wb.oninput=="function"}Nm=Lm}else Nm=!1;x2=Nm&&(!document.documentMode||9<document.documentMode)}function Sb(){nu&&(nu.detachEvent("onpropertychange",_2),Ou=nu=null)}function _2(e){if(e.propertyName==="value"&&Jd(Ou)){var t=[];y2(t,Ou,e,L0(e)),JA(wI,t)}}function PI(e,t,n){e==="focusin"?(Sb(),nu=t,Ou=n,nu.attachEvent("onpropertychange",_2)):e==="focusout"&&Sb()}function OI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jd(Ou)}function TI(e,t){if(e==="click")return Jd(t)}function AI(e,t){if(e==="input"||e==="change")return Jd(t)}function EI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Er=typeof Object.is=="function"?Object.is:EI;function Tu(e,t){if(Er(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Wv.call(t,i)||!Er(e[i],t[i]))return!1}return!0}function Pb(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ob(e,t){var n=Pb(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Pb(n)}}function b2(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?b2(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function w2(){for(var e=window,t=yh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yh(e.document)}return t}function W0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function kI(e){var t=w2(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&b2(n.ownerDocument.documentElement,n)){if(r!==null&&W0(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Ob(n,o);var s=Ob(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var MI=yi&&"documentMode"in document&&11>=document.documentMode,Na=null,ug=null,ru=null,cg=!1;function Tb(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cg||Na==null||Na!==yh(r)||(r=Na,"selectionStart"in r&&W0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ru&&Tu(ru,r)||(ru=r,r=Oh(ug,"onSelect"),0<r.length&&(t=new F0("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Na)))}function Af(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var La={animationend:Af("Animation","AnimationEnd"),animationiteration:Af("Animation","AnimationIteration"),animationstart:Af("Animation","AnimationStart"),transitionend:Af("Transition","TransitionEnd")},Im={},S2={};yi&&(S2=document.createElement("div").style,"AnimationEvent"in window||(delete La.animationend.animation,delete La.animationiteration.animation,delete La.animationstart.animation),"TransitionEvent"in window||delete La.transitionend.transition);function ep(e){if(Im[e])return Im[e];if(!La[e])return e;var t=La[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in S2)return Im[e]=t[n];return e}var P2=ep("animationend"),O2=ep("animationiteration"),T2=ep("animationstart"),A2=ep("transitionend"),E2=new Map,Ab="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function uo(e,t){E2.set(e,t),ua(t,[e])}for(var Dm=0;Dm<Ab.length;Dm++){var Rm=Ab[Dm],CI=Rm.toLowerCase(),jI=Rm[0].toUpperCase()+Rm.slice(1);uo(CI,"on"+jI)}uo(P2,"onAnimationEnd");uo(O2,"onAnimationIteration");uo(T2,"onAnimationStart");uo("dblclick","onDoubleClick");uo("focusin","onFocus");uo("focusout","onBlur");uo(A2,"onTransitionEnd");ss("onMouseEnter",["mouseout","mouseover"]);ss("onMouseLeave",["mouseout","mouseover"]);ss("onPointerEnter",["pointerout","pointerover"]);ss("onPointerLeave",["pointerout","pointerover"]);ua("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ua("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ua("onBeforeInput",["compositionend","keypress","textInput","paste"]);ua("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ua("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ua("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),$I=new Set("cancel close invalid load scroll toggle".split(" ").concat(Gl));function Eb(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,CL(r,t,void 0,e),e.currentTarget=null}function k2(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],u=l.instance,f=l.currentTarget;if(l=l.listener,u!==o&&i.isPropagationStopped())break e;Eb(i,l,f),o=u}else for(s=0;s<r.length;s++){if(l=r[s],u=l.instance,f=l.currentTarget,l=l.listener,u!==o&&i.isPropagationStopped())break e;Eb(i,l,f),o=u}}}if(_h)throw e=og,_h=!1,og=null,e}function Je(e,t){var n=t[mg];n===void 0&&(n=t[mg]=new Set);var r=e+"__bubble";n.has(r)||(M2(t,e,2,!1),n.add(r))}function zm(e,t,n){var r=0;t&&(r|=4),M2(n,e,r,t)}var Ef="_reactListening"+Math.random().toString(36).slice(2);function Au(e){if(!e[Ef]){e[Ef]=!0,DA.forEach(function(n){n!=="selectionchange"&&($I.has(n)||zm(n,!1,e),zm(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ef]||(t[Ef]=!0,zm("selectionchange",!1,t))}}function M2(e,t,n,r){switch(d2(t)){case 1:var i=GL;break;case 4:i=KL;break;default:i=z0}n=i.bind(null,t,n,e),i=void 0,!ig||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Bm(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;s=s.return}for(;l!==null;){if(s=Do(l),s===null)return;if(u=s.tag,u===5||u===6){r=o=s;continue e}l=l.parentNode}}r=r.return}JA(function(){var f=o,d=L0(n),h=[];e:{var m=E2.get(e);if(m!==void 0){var v=F0,b=e;switch(e){case"keypress":if(sh(n)===0)break e;case"keydown":case"keyup":v=uI;break;case"focusin":b="focus",v=$m;break;case"focusout":b="blur",v=$m;break;case"beforeblur":case"afterblur":v=$m;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=vb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=YL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=hI;break;case P2:case O2:case T2:v=eI;break;case A2:v=pI;break;case"scroll":v=qL;break;case"wheel":v=vI;break;case"copy":case"cut":case"paste":v=nI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=yb}var x=(t&4)!==0,S=!x&&e==="scroll",y=x?m!==null?m+"Capture":null:m;x=[];for(var _=f,w;_!==null;){w=_;var E=w.stateNode;if(w.tag===5&&E!==null&&(w=E,y!==null&&(E=bu(_,y),E!=null&&x.push(Eu(_,E,w)))),S)break;_=_.return}0<x.length&&(m=new v(m,b,null,n,d),h.push({event:m,listeners:x}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==ng&&(b=n.relatedTarget||n.fromElement)&&(Do(b)||b[xi]))break e;if((v||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,v?(b=n.relatedTarget||n.toElement,v=f,b=b?Do(b):null,b!==null&&(S=ca(b),b!==S||b.tag!==5&&b.tag!==6)&&(b=null)):(v=null,b=f),v!==b)){if(x=vb,E="onMouseLeave",y="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(x=yb,E="onPointerLeave",y="onPointerEnter",_="pointer"),S=v==null?m:Ia(v),w=b==null?m:Ia(b),m=new x(E,_+"leave",v,n,d),m.target=S,m.relatedTarget=w,E=null,Do(d)===f&&(x=new x(y,_+"enter",b,n,d),x.target=w,x.relatedTarget=S,E=x),S=E,v&&b)t:{for(x=v,y=b,_=0,w=x;w;w=Aa(w))_++;for(w=0,E=y;E;E=Aa(E))w++;for(;0<_-w;)x=Aa(x),_--;for(;0<w-_;)y=Aa(y),w--;for(;_--;){if(x===y||y!==null&&x===y.alternate)break t;x=Aa(x),y=Aa(y)}x=null}else x=null;v!==null&&kb(h,m,v,x,!1),b!==null&&S!==null&&kb(h,S,b,x,!0)}}e:{if(m=f?Ia(f):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var P=SI;else if(bb(m))if(x2)P=AI;else{P=OI;var A=PI}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(P=TI);if(P&&(P=P(e,f))){y2(h,P,n,d);break e}A&&A(e,m,f),e==="focusout"&&(A=m._wrapperState)&&A.controlled&&m.type==="number"&&Yv(m,"number",m.value)}switch(A=f?Ia(f):window,e){case"focusin":(bb(A)||A.contentEditable==="true")&&(Na=A,ug=f,ru=null);break;case"focusout":ru=ug=Na=null;break;case"mousedown":cg=!0;break;case"contextmenu":case"mouseup":case"dragend":cg=!1,Tb(h,n,d);break;case"selectionchange":if(MI)break;case"keydown":case"keyup":Tb(h,n,d)}var M;if(U0)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else $a?v2(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(m2&&n.locale!=="ko"&&($a||C!=="onCompositionStart"?C==="onCompositionEnd"&&$a&&(M=p2()):(Zi=d,B0="value"in Zi?Zi.value:Zi.textContent,$a=!0)),A=Oh(f,C),0<A.length&&(C=new gb(C,e,null,n,d),h.push({event:C,listeners:A}),M?C.data=M:(M=g2(n),M!==null&&(C.data=M)))),(M=yI?xI(e,n):_I(e,n))&&(f=Oh(f,"onBeforeInput"),0<f.length&&(d=new gb("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:f}),d.data=M))}k2(h,t)})}function Eu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Oh(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=bu(e,n),o!=null&&r.unshift(Eu(e,o,i)),o=bu(e,t),o!=null&&r.push(Eu(e,o,i))),e=e.return}return r}function Aa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function kb(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,u=l.alternate,f=l.stateNode;if(u!==null&&u===r)break;l.tag===5&&f!==null&&(l=f,i?(u=bu(n,o),u!=null&&s.unshift(Eu(n,u,l))):i||(u=bu(n,o),u!=null&&s.push(Eu(n,u,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var NI=/\r\n?/g,LI=/\u0000|\uFFFD/g;function Mb(e){return(typeof e=="string"?e:""+e).replace(NI,`
|
|
38
|
+
`).replace(LI,"")}function kf(e,t,n){if(t=Mb(t),Mb(e)!==t&&n)throw Error(re(425))}function Th(){}var fg=null,hg=null;function dg(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var pg=typeof setTimeout=="function"?setTimeout:void 0,II=typeof clearTimeout=="function"?clearTimeout:void 0,Cb=typeof Promise=="function"?Promise:void 0,DI=typeof queueMicrotask=="function"?queueMicrotask:typeof Cb<"u"?function(e){return Cb.resolve(null).then(e).catch(RI)}:pg;function RI(e){setTimeout(function(){throw e})}function Fm(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Pu(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Pu(t)}function Ji(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function jb(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Us=Math.random().toString(36).slice(2),Dr="__reactFiber$"+Us,ku="__reactProps$"+Us,xi="__reactContainer$"+Us,mg="__reactEvents$"+Us,zI="__reactListeners$"+Us,BI="__reactHandles$"+Us;function Do(e){var t=e[Dr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[xi]||n[Dr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=jb(e);e!==null;){if(n=e[Dr])return n;e=jb(e)}return t}e=n,n=e.parentNode}return null}function Tc(e){return e=e[Dr]||e[xi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ia(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(re(33))}function tp(e){return e[ku]||null}var vg=[],Da=-1;function co(e){return{current:e}}function nt(e){0>Da||(e.current=vg[Da],vg[Da]=null,Da--)}function Qe(e,t){Da++,vg[Da]=e.current,e.current=t}var ao={},on=co(ao),Sn=co(!1),Jo=ao;function ls(e,t){var n=e.type.contextTypes;if(!n)return ao;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Pn(e){return e=e.childContextTypes,e!=null}function Ah(){nt(Sn),nt(on)}function $b(e,t,n){if(on.current!==ao)throw Error(re(168));Qe(on,t),Qe(Sn,n)}function C2(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(re(108,PL(e)||"Unknown",i));return dt({},n,r)}function Eh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ao,Jo=on.current,Qe(on,e),Qe(Sn,Sn.current),!0}function Nb(e,t,n){var r=e.stateNode;if(!r)throw Error(re(169));n?(e=C2(e,t,Jo),r.__reactInternalMemoizedMergedChildContext=e,nt(Sn),nt(on),Qe(on,e)):nt(Sn),Qe(Sn,n)}var oi=null,np=!1,Vm=!1;function j2(e){oi===null?oi=[e]:oi.push(e)}function FI(e){np=!0,j2(e)}function fo(){if(!Vm&&oi!==null){Vm=!0;var e=0,t=Be;try{var n=oi;for(Be=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}oi=null,np=!1}catch(i){throw oi!==null&&(oi=oi.slice(e+1)),r2(I0,fo),i}finally{Be=t,Vm=!1}}return null}var Ra=[],za=0,kh=null,Mh=0,er=[],tr=0,ea=null,si=1,li="";function Mo(e,t){Ra[za++]=Mh,Ra[za++]=kh,kh=e,Mh=t}function $2(e,t,n){er[tr++]=si,er[tr++]=li,er[tr++]=ea,ea=e;var r=si;e=li;var i=32-Or(r)-1;r&=~(1<<i),n+=1;var o=32-Or(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,si=1<<32-Or(t)+i|n<<i|r,li=o+e}else si=1<<o|n<<i|r,li=e}function H0(e){e.return!==null&&(Mo(e,1),$2(e,1,0))}function Z0(e){for(;e===kh;)kh=Ra[--za],Ra[za]=null,Mh=Ra[--za],Ra[za]=null;for(;e===ea;)ea=er[--tr],er[tr]=null,li=er[--tr],er[tr]=null,si=er[--tr],er[tr]=null}var Ln=null,Nn=null,at=!1,wr=null;function N2(e,t){var n=rr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Lb(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ln=e,Nn=Ji(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ln=e,Nn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ea!==null?{id:si,overflow:li}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=rr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ln=e,Nn=null,!0):!1;default:return!1}}function gg(e){return(e.mode&1)!==0&&(e.flags&128)===0}function yg(e){if(at){var t=Nn;if(t){var n=t;if(!Lb(e,t)){if(gg(e))throw Error(re(418));t=Ji(n.nextSibling);var r=Ln;t&&Lb(e,t)?N2(r,n):(e.flags=e.flags&-4097|2,at=!1,Ln=e)}}else{if(gg(e))throw Error(re(418));e.flags=e.flags&-4097|2,at=!1,Ln=e}}}function Ib(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ln=e}function Mf(e){if(e!==Ln)return!1;if(!at)return Ib(e),at=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!dg(e.type,e.memoizedProps)),t&&(t=Nn)){if(gg(e))throw L2(),Error(re(418));for(;t;)N2(e,t),t=Ji(t.nextSibling)}if(Ib(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(re(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Nn=Ji(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Nn=null}}else Nn=Ln?Ji(e.stateNode.nextSibling):null;return!0}function L2(){for(var e=Nn;e;)e=Ji(e.nextSibling)}function us(){Nn=Ln=null,at=!1}function G0(e){wr===null?wr=[e]:wr.push(e)}var VI=Ai.ReactCurrentBatchConfig;function El(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(re(309));var r=n.stateNode}if(!r)throw Error(re(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(re(284));if(!n._owner)throw Error(re(290,e))}return e}function Cf(e,t){throw e=Object.prototype.toString.call(t),Error(re(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Db(e){var t=e._init;return t(e._payload)}function I2(e){function t(y,_){if(e){var w=y.deletions;w===null?(y.deletions=[_],y.flags|=16):w.push(_)}}function n(y,_){if(!e)return null;for(;_!==null;)t(y,_),_=_.sibling;return null}function r(y,_){for(y=new Map;_!==null;)_.key!==null?y.set(_.key,_):y.set(_.index,_),_=_.sibling;return y}function i(y,_){return y=ro(y,_),y.index=0,y.sibling=null,y}function o(y,_,w){return y.index=w,e?(w=y.alternate,w!==null?(w=w.index,w<_?(y.flags|=2,_):w):(y.flags|=2,_)):(y.flags|=1048576,_)}function s(y){return e&&y.alternate===null&&(y.flags|=2),y}function l(y,_,w,E){return _===null||_.tag!==6?(_=qm(w,y.mode,E),_.return=y,_):(_=i(_,w),_.return=y,_)}function u(y,_,w,E){var P=w.type;return P===ja?d(y,_,w.props.children,E,w.key):_!==null&&(_.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Bi&&Db(P)===_.type)?(E=i(_,w.props),E.ref=El(y,_,w),E.return=y,E):(E=ph(w.type,w.key,w.props,null,y.mode,E),E.ref=El(y,_,w),E.return=y,E)}function f(y,_,w,E){return _===null||_.tag!==4||_.stateNode.containerInfo!==w.containerInfo||_.stateNode.implementation!==w.implementation?(_=Xm(w,y.mode,E),_.return=y,_):(_=i(_,w.children||[]),_.return=y,_)}function d(y,_,w,E,P){return _===null||_.tag!==7?(_=Ko(w,y.mode,E,P),_.return=y,_):(_=i(_,w),_.return=y,_)}function h(y,_,w){if(typeof _=="string"&&_!==""||typeof _=="number")return _=qm(""+_,y.mode,w),_.return=y,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case _f:return w=ph(_.type,_.key,_.props,null,y.mode,w),w.ref=El(y,null,_),w.return=y,w;case Ca:return _=Xm(_,y.mode,w),_.return=y,_;case Bi:var E=_._init;return h(y,E(_._payload),w)}if(Hl(_)||Sl(_))return _=Ko(_,y.mode,w,null),_.return=y,_;Cf(y,_)}return null}function m(y,_,w,E){var P=_!==null?_.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return P!==null?null:l(y,_,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case _f:return w.key===P?u(y,_,w,E):null;case Ca:return w.key===P?f(y,_,w,E):null;case Bi:return P=w._init,m(y,_,P(w._payload),E)}if(Hl(w)||Sl(w))return P!==null?null:d(y,_,w,E,null);Cf(y,w)}return null}function v(y,_,w,E,P){if(typeof E=="string"&&E!==""||typeof E=="number")return y=y.get(w)||null,l(_,y,""+E,P);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case _f:return y=y.get(E.key===null?w:E.key)||null,u(_,y,E,P);case Ca:return y=y.get(E.key===null?w:E.key)||null,f(_,y,E,P);case Bi:var A=E._init;return v(y,_,w,A(E._payload),P)}if(Hl(E)||Sl(E))return y=y.get(w)||null,d(_,y,E,P,null);Cf(_,E)}return null}function b(y,_,w,E){for(var P=null,A=null,M=_,C=_=0,N=null;M!==null&&C<w.length;C++){M.index>C?(N=M,M=null):N=M.sibling;var B=m(y,M,w[C],E);if(B===null){M===null&&(M=N);break}e&&M&&B.alternate===null&&t(y,M),_=o(B,_,C),A===null?P=B:A.sibling=B,A=B,M=N}if(C===w.length)return n(y,M),at&&Mo(y,C),P;if(M===null){for(;C<w.length;C++)M=h(y,w[C],E),M!==null&&(_=o(M,_,C),A===null?P=M:A.sibling=M,A=M);return at&&Mo(y,C),P}for(M=r(y,M);C<w.length;C++)N=v(M,y,C,w[C],E),N!==null&&(e&&N.alternate!==null&&M.delete(N.key===null?C:N.key),_=o(N,_,C),A===null?P=N:A.sibling=N,A=N);return e&&M.forEach(function(z){return t(y,z)}),at&&Mo(y,C),P}function x(y,_,w,E){var P=Sl(w);if(typeof P!="function")throw Error(re(150));if(w=P.call(w),w==null)throw Error(re(151));for(var A=P=null,M=_,C=_=0,N=null,B=w.next();M!==null&&!B.done;C++,B=w.next()){M.index>C?(N=M,M=null):N=M.sibling;var z=m(y,M,B.value,E);if(z===null){M===null&&(M=N);break}e&&M&&z.alternate===null&&t(y,M),_=o(z,_,C),A===null?P=z:A.sibling=z,A=z,M=N}if(B.done)return n(y,M),at&&Mo(y,C),P;if(M===null){for(;!B.done;C++,B=w.next())B=h(y,B.value,E),B!==null&&(_=o(B,_,C),A===null?P=B:A.sibling=B,A=B);return at&&Mo(y,C),P}for(M=r(y,M);!B.done;C++,B=w.next())B=v(M,y,C,B.value,E),B!==null&&(e&&B.alternate!==null&&M.delete(B.key===null?C:B.key),_=o(B,_,C),A===null?P=B:A.sibling=B,A=B);return e&&M.forEach(function(R){return t(y,R)}),at&&Mo(y,C),P}function S(y,_,w,E){if(typeof w=="object"&&w!==null&&w.type===ja&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case _f:e:{for(var P=w.key,A=_;A!==null;){if(A.key===P){if(P=w.type,P===ja){if(A.tag===7){n(y,A.sibling),_=i(A,w.props.children),_.return=y,y=_;break e}}else if(A.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Bi&&Db(P)===A.type){n(y,A.sibling),_=i(A,w.props),_.ref=El(y,A,w),_.return=y,y=_;break e}n(y,A);break}else t(y,A);A=A.sibling}w.type===ja?(_=Ko(w.props.children,y.mode,E,w.key),_.return=y,y=_):(E=ph(w.type,w.key,w.props,null,y.mode,E),E.ref=El(y,_,w),E.return=y,y=E)}return s(y);case Ca:e:{for(A=w.key;_!==null;){if(_.key===A)if(_.tag===4&&_.stateNode.containerInfo===w.containerInfo&&_.stateNode.implementation===w.implementation){n(y,_.sibling),_=i(_,w.children||[]),_.return=y,y=_;break e}else{n(y,_);break}else t(y,_);_=_.sibling}_=Xm(w,y.mode,E),_.return=y,y=_}return s(y);case Bi:return A=w._init,S(y,_,A(w._payload),E)}if(Hl(w))return b(y,_,w,E);if(Sl(w))return x(y,_,w,E);Cf(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,_!==null&&_.tag===6?(n(y,_.sibling),_=i(_,w),_.return=y,y=_):(n(y,_),_=qm(w,y.mode,E),_.return=y,y=_),s(y)):n(y,_)}return S}var cs=I2(!0),D2=I2(!1),Ch=co(null),jh=null,Ba=null,K0=null;function q0(){K0=Ba=jh=null}function X0(e){var t=Ch.current;nt(Ch),e._currentValue=t}function xg(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ts(e,t){jh=e,K0=Ba=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(bn=!0),e.firstContext=null)}function sr(e){var t=e._currentValue;if(K0!==e)if(e={context:e,memoizedValue:t,next:null},Ba===null){if(jh===null)throw Error(re(308));Ba=e,jh.dependencies={lanes:0,firstContext:e}}else Ba=Ba.next=e;return t}var Ro=null;function Y0(e){Ro===null?Ro=[e]:Ro.push(e)}function R2(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Y0(t)):(n.next=i.next,i.next=n),t.interleaved=n,_i(e,r)}function _i(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Fi=!1;function Q0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function z2(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function hi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function eo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$e&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,_i(e,n)}return i=r.interleaved,i===null?(t.next=t,Y0(r)):(t.next=i.next,i.next=t),r.interleaved=t,_i(e,n)}function lh(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,D0(e,n)}}function Rb(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $h(e,t,n,r){var i=e.updateQueue;Fi=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,f=u.next;u.next=null,s===null?o=f:s.next=f,s=u;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=f:l.next=f,d.lastBaseUpdate=u))}if(o!==null){var h=i.baseState;s=0,d=f=u=null,l=o;do{var m=l.lane,v=l.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var b=e,x=l;switch(m=t,v=n,x.tag){case 1:if(b=x.payload,typeof b=="function"){h=b.call(v,h,m);break e}h=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=x.payload,m=typeof b=="function"?b.call(v,h,m):b,m==null)break e;h=dt({},h,m);break e;case 2:Fi=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[l]:m.push(l))}else v={eventTime:v,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(f=d=v,u=h):d=d.next=v,s|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;m=l,l=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(d===null&&(u=h),i.baseState=u,i.firstBaseUpdate=f,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);na|=s,e.lanes=s,e.memoizedState=h}}function zb(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(re(191,i));i.call(r)}}}var Ac={},Fr=co(Ac),Mu=co(Ac),Cu=co(Ac);function zo(e){if(e===Ac)throw Error(re(174));return e}function J0(e,t){switch(Qe(Cu,t),Qe(Mu,e),Qe(Fr,Ac),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Jv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Jv(t,e)}nt(Fr),Qe(Fr,t)}function fs(){nt(Fr),nt(Mu),nt(Cu)}function B2(e){zo(Cu.current);var t=zo(Fr.current),n=Jv(t,e.type);t!==n&&(Qe(Mu,e),Qe(Fr,n))}function ex(e){Mu.current===e&&(nt(Fr),nt(Mu))}var ut=co(0);function Nh(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Um=[];function tx(){for(var e=0;e<Um.length;e++)Um[e]._workInProgressVersionPrimary=null;Um.length=0}var uh=Ai.ReactCurrentDispatcher,Wm=Ai.ReactCurrentBatchConfig,ta=0,ht=null,kt=null,It=null,Lh=!1,iu=!1,ju=0,UI=0;function Xt(){throw Error(re(321))}function nx(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Er(e[n],t[n]))return!1;return!0}function rx(e,t,n,r,i,o){if(ta=o,ht=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,uh.current=e===null||e.memoizedState===null?GI:KI,e=n(r,i),iu){o=0;do{if(iu=!1,ju=0,25<=o)throw Error(re(301));o+=1,It=kt=null,t.updateQueue=null,uh.current=qI,e=n(r,i)}while(iu)}if(uh.current=Ih,t=kt!==null&&kt.next!==null,ta=0,It=kt=ht=null,Lh=!1,t)throw Error(re(300));return e}function ix(){var e=ju!==0;return ju=0,e}function Ir(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return It===null?ht.memoizedState=It=e:It=It.next=e,It}function lr(){if(kt===null){var e=ht.alternate;e=e!==null?e.memoizedState:null}else e=kt.next;var t=It===null?ht.memoizedState:It.next;if(t!==null)It=t,kt=e;else{if(e===null)throw Error(re(310));kt=e,e={memoizedState:kt.memoizedState,baseState:kt.baseState,baseQueue:kt.baseQueue,queue:kt.queue,next:null},It===null?ht.memoizedState=It=e:It=It.next=e}return It}function $u(e,t){return typeof t=="function"?t(e):t}function Hm(e){var t=lr(),n=t.queue;if(n===null)throw Error(re(311));n.lastRenderedReducer=e;var r=kt,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,u=null,f=o;do{var d=f.lane;if((ta&d)===d)u!==null&&(u=u.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var h={lane:d,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};u===null?(l=u=h,s=r):u=u.next=h,ht.lanes|=d,na|=d}f=f.next}while(f!==null&&f!==o);u===null?s=r:u.next=l,Er(r,t.memoizedState)||(bn=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,ht.lanes|=o,na|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Zm(e){var t=lr(),n=t.queue;if(n===null)throw Error(re(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Er(o,t.memoizedState)||(bn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function F2(){}function V2(e,t){var n=ht,r=lr(),i=t(),o=!Er(r.memoizedState,i);if(o&&(r.memoizedState=i,bn=!0),r=r.queue,ox(H2.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||It!==null&&It.memoizedState.tag&1){if(n.flags|=2048,Nu(9,W2.bind(null,n,r,i,t),void 0,null),Dt===null)throw Error(re(349));ta&30||U2(n,t,i)}return i}function U2(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ht.updateQueue,t===null?(t={lastEffect:null,stores:null},ht.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function W2(e,t,n,r){t.value=n,t.getSnapshot=r,Z2(t)&&G2(e)}function H2(e,t,n){return n(function(){Z2(t)&&G2(e)})}function Z2(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Er(e,n)}catch{return!0}}function G2(e){var t=_i(e,1);t!==null&&Tr(t,e,1,-1)}function Bb(e){var t=Ir();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$u,lastRenderedState:e},t.queue=e,e=e.dispatch=ZI.bind(null,ht,e),[t.memoizedState,e]}function Nu(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ht.updateQueue,t===null?(t={lastEffect:null,stores:null},ht.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function K2(){return lr().memoizedState}function ch(e,t,n,r){var i=Ir();ht.flags|=e,i.memoizedState=Nu(1|t,n,void 0,r===void 0?null:r)}function rp(e,t,n,r){var i=lr();r=r===void 0?null:r;var o=void 0;if(kt!==null){var s=kt.memoizedState;if(o=s.destroy,r!==null&&nx(r,s.deps)){i.memoizedState=Nu(t,n,o,r);return}}ht.flags|=e,i.memoizedState=Nu(1|t,n,o,r)}function Fb(e,t){return ch(8390656,8,e,t)}function ox(e,t){return rp(2048,8,e,t)}function q2(e,t){return rp(4,2,e,t)}function X2(e,t){return rp(4,4,e,t)}function Y2(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Q2(e,t,n){return n=n!=null?n.concat([e]):null,rp(4,4,Y2.bind(null,t,e),n)}function ax(){}function J2(e,t){var n=lr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&nx(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function eE(e,t){var n=lr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&nx(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function tE(e,t,n){return ta&21?(Er(n,t)||(n=a2(),ht.lanes|=n,na|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bn=!0),e.memoizedState=n)}function WI(e,t){var n=Be;Be=n!==0&&4>n?n:4,e(!0);var r=Wm.transition;Wm.transition={};try{e(!1),t()}finally{Be=n,Wm.transition=r}}function nE(){return lr().memoizedState}function HI(e,t,n){var r=no(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rE(e))iE(t,n);else if(n=R2(e,t,n,r),n!==null){var i=dn();Tr(n,e,r,i),oE(n,t,r)}}function ZI(e,t,n){var r=no(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rE(e))iE(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,Er(l,s)){var u=t.interleaved;u===null?(i.next=i,Y0(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=R2(e,t,i,r),n!==null&&(i=dn(),Tr(n,e,r,i),oE(n,t,r))}}function rE(e){var t=e.alternate;return e===ht||t!==null&&t===ht}function iE(e,t){iu=Lh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oE(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,D0(e,n)}}var Ih={readContext:sr,useCallback:Xt,useContext:Xt,useEffect:Xt,useImperativeHandle:Xt,useInsertionEffect:Xt,useLayoutEffect:Xt,useMemo:Xt,useReducer:Xt,useRef:Xt,useState:Xt,useDebugValue:Xt,useDeferredValue:Xt,useTransition:Xt,useMutableSource:Xt,useSyncExternalStore:Xt,useId:Xt,unstable_isNewReconciler:!1},GI={readContext:sr,useCallback:function(e,t){return Ir().memoizedState=[e,t===void 0?null:t],e},useContext:sr,useEffect:Fb,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ch(4194308,4,Y2.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ch(4194308,4,e,t)},useInsertionEffect:function(e,t){return ch(4,2,e,t)},useMemo:function(e,t){var n=Ir();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ir();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=HI.bind(null,ht,e),[r.memoizedState,e]},useRef:function(e){var t=Ir();return e={current:e},t.memoizedState=e},useState:Bb,useDebugValue:ax,useDeferredValue:function(e){return Ir().memoizedState=e},useTransition:function(){var e=Bb(!1),t=e[0];return e=WI.bind(null,e[1]),Ir().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ht,i=Ir();if(at){if(n===void 0)throw Error(re(407));n=n()}else{if(n=t(),Dt===null)throw Error(re(349));ta&30||U2(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Fb(H2.bind(null,r,o,e),[e]),r.flags|=2048,Nu(9,W2.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ir(),t=Dt.identifierPrefix;if(at){var n=li,r=si;n=(r&~(1<<32-Or(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ju++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=UI++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},KI={readContext:sr,useCallback:J2,useContext:sr,useEffect:ox,useImperativeHandle:Q2,useInsertionEffect:q2,useLayoutEffect:X2,useMemo:eE,useReducer:Hm,useRef:K2,useState:function(){return Hm($u)},useDebugValue:ax,useDeferredValue:function(e){var t=lr();return tE(t,kt.memoizedState,e)},useTransition:function(){var e=Hm($u)[0],t=lr().memoizedState;return[e,t]},useMutableSource:F2,useSyncExternalStore:V2,useId:nE,unstable_isNewReconciler:!1},qI={readContext:sr,useCallback:J2,useContext:sr,useEffect:ox,useImperativeHandle:Q2,useInsertionEffect:q2,useLayoutEffect:X2,useMemo:eE,useReducer:Zm,useRef:K2,useState:function(){return Zm($u)},useDebugValue:ax,useDeferredValue:function(e){var t=lr();return kt===null?t.memoizedState=e:tE(t,kt.memoizedState,e)},useTransition:function(){var e=Zm($u)[0],t=lr().memoizedState;return[e,t]},useMutableSource:F2,useSyncExternalStore:V2,useId:nE,unstable_isNewReconciler:!1};function xr(e,t){if(e&&e.defaultProps){t=dt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function _g(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:dt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ip={isMounted:function(e){return(e=e._reactInternals)?ca(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=dn(),i=no(e),o=hi(r,i);o.payload=t,n!=null&&(o.callback=n),t=eo(e,o,i),t!==null&&(Tr(t,e,i,r),lh(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=dn(),i=no(e),o=hi(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=eo(e,o,i),t!==null&&(Tr(t,e,i,r),lh(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=dn(),r=no(e),i=hi(n,r);i.tag=2,t!=null&&(i.callback=t),t=eo(e,i,r),t!==null&&(Tr(t,e,r,n),lh(t,e,r))}};function Vb(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Tu(n,r)||!Tu(i,o):!0}function aE(e,t,n){var r=!1,i=ao,o=t.contextType;return typeof o=="object"&&o!==null?o=sr(o):(i=Pn(t)?Jo:on.current,r=t.contextTypes,o=(r=r!=null)?ls(e,i):ao),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ip,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ub(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ip.enqueueReplaceState(t,t.state,null)}function bg(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Q0(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=sr(o):(o=Pn(t)?Jo:on.current,i.context=ls(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(_g(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&ip.enqueueReplaceState(i,i.state,null),$h(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function hs(e,t){try{var n="",r=t;do n+=SL(r),r=r.return;while(r);var i=n}catch(o){i=`
|
|
39
|
+
Error generating stack: `+o.message+`
|
|
40
|
+
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Gm(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function wg(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var XI=typeof WeakMap=="function"?WeakMap:Map;function sE(e,t,n){n=hi(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Rh||(Rh=!0,jg=r),wg(e,t)},n}function lE(e,t,n){n=hi(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){wg(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){wg(e,t),typeof r!="function"&&(to===null?to=new Set([this]):to.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Wb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new XI;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=cD.bind(null,e,t,n),t.then(e,e))}function Hb(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Zb(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=hi(-1,1),t.tag=2,eo(n,t,1))),n.lanes|=1),e)}var YI=Ai.ReactCurrentOwner,bn=!1;function fn(e,t,n,r){t.child=e===null?D2(t,null,n,r):cs(t,e.child,n,r)}function Gb(e,t,n,r,i){n=n.render;var o=t.ref;return ts(t,i),r=rx(e,t,n,r,o,i),n=ix(),e!==null&&!bn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,bi(e,t,i)):(at&&n&&H0(t),t.flags|=1,fn(e,t,r,i),t.child)}function Kb(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!px(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,uE(e,t,o,r,i)):(e=ph(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Tu,n(s,r)&&e.ref===t.ref)return bi(e,t,i)}return t.flags|=1,e=ro(o,r),e.ref=t.ref,e.return=t,t.child=e}function uE(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Tu(o,r)&&e.ref===t.ref)if(bn=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(bn=!0);else return t.lanes=e.lanes,bi(e,t,i)}return Sg(e,t,n,r,i)}function cE(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Qe(Va,Cn),Cn|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Qe(Va,Cn),Cn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Qe(Va,Cn),Cn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Qe(Va,Cn),Cn|=r;return fn(e,t,i,n),t.child}function fE(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Sg(e,t,n,r,i){var o=Pn(n)?Jo:on.current;return o=ls(t,o),ts(t,i),n=rx(e,t,n,r,o,i),r=ix(),e!==null&&!bn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,bi(e,t,i)):(at&&r&&H0(t),t.flags|=1,fn(e,t,n,i),t.child)}function qb(e,t,n,r,i){if(Pn(n)){var o=!0;Eh(t)}else o=!1;if(ts(t,i),t.stateNode===null)fh(e,t),aE(t,n,r),bg(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var u=s.context,f=n.contextType;typeof f=="object"&&f!==null?f=sr(f):(f=Pn(n)?Jo:on.current,f=ls(t,f));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||u!==f)&&Ub(t,s,r,f),Fi=!1;var m=t.memoizedState;s.state=m,$h(t,r,s,i),u=t.memoizedState,l!==r||m!==u||Sn.current||Fi?(typeof d=="function"&&(_g(t,n,d,r),u=t.memoizedState),(l=Fi||Vb(t,n,l,r,m,u,f))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),s.props=r,s.state=u,s.context=f,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,z2(e,t),l=t.memoizedProps,f=t.type===t.elementType?l:xr(t.type,l),s.props=f,h=t.pendingProps,m=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=sr(u):(u=Pn(n)?Jo:on.current,u=ls(t,u));var v=n.getDerivedStateFromProps;(d=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==h||m!==u)&&Ub(t,s,r,u),Fi=!1,m=t.memoizedState,s.state=m,$h(t,r,s,i);var b=t.memoizedState;l!==h||m!==b||Sn.current||Fi?(typeof v=="function"&&(_g(t,n,v,r),b=t.memoizedState),(f=Fi||Vb(t,n,f,r,m,b,u)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,b,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,b,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),s.props=r,s.state=b,s.context=u,r=f):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Pg(e,t,n,r,o,i)}function Pg(e,t,n,r,i,o){fE(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Nb(t,n,!1),bi(e,t,o);r=t.stateNode,YI.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=cs(t,e.child,null,o),t.child=cs(t,null,l,o)):fn(e,t,l,o),t.memoizedState=r.state,i&&Nb(t,n,!0),t.child}function hE(e){var t=e.stateNode;t.pendingContext?$b(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$b(e,t.context,!1),J0(e,t.containerInfo)}function Xb(e,t,n,r,i){return us(),G0(i),t.flags|=256,fn(e,t,n,r),t.child}var Og={dehydrated:null,treeContext:null,retryLane:0};function Tg(e){return{baseLanes:e,cachePool:null,transitions:null}}function dE(e,t,n){var r=t.pendingProps,i=ut.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Qe(ut,i&1),e===null)return yg(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=sp(s,r,0,null),e=Ko(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Tg(n),t.memoizedState=Og,e):sx(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return QI(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var u={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=ro(i,u),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=ro(l,o):(o=Ko(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Tg(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Og,r}return o=e.child,e=o.sibling,r=ro(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function sx(e,t){return t=sp({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function jf(e,t,n,r){return r!==null&&G0(r),cs(t,e.child,null,n),e=sx(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function QI(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Gm(Error(re(422))),jf(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=sp({mode:"visible",children:r.children},i,0,null),o=Ko(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&cs(t,e.child,null,s),t.child.memoizedState=Tg(s),t.memoizedState=Og,o);if(!(t.mode&1))return jf(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(re(419)),r=Gm(o,r,void 0),jf(e,t,s,r)}if(l=(s&e.childLanes)!==0,bn||l){if(r=Dt,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,_i(e,i),Tr(r,e,i,-1))}return dx(),r=Gm(Error(re(421))),jf(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=fD.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Nn=Ji(i.nextSibling),Ln=t,at=!0,wr=null,e!==null&&(er[tr++]=si,er[tr++]=li,er[tr++]=ea,si=e.id,li=e.overflow,ea=t),t=sx(t,r.children),t.flags|=4096,t)}function Yb(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),xg(e.return,t,n)}function Km(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function pE(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(fn(e,t,r.children,n),r=ut.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yb(e,n,t);else if(e.tag===19)Yb(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Qe(ut,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Nh(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Km(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Nh(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Km(t,!0,n,null,o);break;case"together":Km(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function fh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),na|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(re(153));if(t.child!==null){for(e=t.child,n=ro(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ro(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function JI(e,t,n){switch(t.tag){case 3:hE(t),us();break;case 5:B2(t);break;case 1:Pn(t.type)&&Eh(t);break;case 4:J0(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Qe(Ch,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Qe(ut,ut.current&1),t.flags|=128,null):n&t.child.childLanes?dE(e,t,n):(Qe(ut,ut.current&1),e=bi(e,t,n),e!==null?e.sibling:null);Qe(ut,ut.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return pE(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Qe(ut,ut.current),r)break;return null;case 22:case 23:return t.lanes=0,cE(e,t,n)}return bi(e,t,n)}var mE,Ag,vE,gE;mE=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ag=function(){};vE=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,zo(Fr.current);var o=null;switch(n){case"input":i=qv(e,i),r=qv(e,r),o=[];break;case"select":i=dt({},i,{value:void 0}),r=dt({},r,{value:void 0}),o=[];break;case"textarea":i=Qv(e,i),r=Qv(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Th)}eg(n,r);var s;n=null;for(f in i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&i[f]!=null)if(f==="style"){var l=i[f];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(xu.hasOwnProperty(f)?o||(o=[]):(o=o||[]).push(f,null));for(f in r){var u=r[f];if(l=i!=null?i[f]:void 0,r.hasOwnProperty(f)&&u!==l&&(u!=null||l!=null))if(f==="style")if(l){for(s in l)!l.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&l[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(o||(o=[]),o.push(f,n)),n=u;else f==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(o=o||[]).push(f,u)):f==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(f,""+u):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(xu.hasOwnProperty(f)?(u!=null&&f==="onScroll"&&Je("scroll",e),o||l===u||(o=[])):(o=o||[]).push(f,u))}n&&(o=o||[]).push("style",n);var f=o;(t.updateQueue=f)&&(t.flags|=4)}};gE=function(e,t,n,r){n!==r&&(t.flags|=4)};function kl(e,t){if(!at)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Yt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function eD(e,t,n){var r=t.pendingProps;switch(Z0(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yt(t),null;case 1:return Pn(t.type)&&Ah(),Yt(t),null;case 3:return r=t.stateNode,fs(),nt(Sn),nt(on),tx(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Mf(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,wr!==null&&(Lg(wr),wr=null))),Ag(e,t),Yt(t),null;case 5:ex(t);var i=zo(Cu.current);if(n=t.type,e!==null&&t.stateNode!=null)vE(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(re(166));return Yt(t),null}if(e=zo(Fr.current),Mf(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Dr]=t,r[ku]=o,e=(t.mode&1)!==0,n){case"dialog":Je("cancel",r),Je("close",r);break;case"iframe":case"object":case"embed":Je("load",r);break;case"video":case"audio":for(i=0;i<Gl.length;i++)Je(Gl[i],r);break;case"source":Je("error",r);break;case"img":case"image":case"link":Je("error",r),Je("load",r);break;case"details":Je("toggle",r);break;case"input":ab(r,o),Je("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Je("invalid",r);break;case"textarea":lb(r,o),Je("invalid",r)}eg(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&kf(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&kf(r.textContent,l,e),i=["children",""+l]):xu.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&Je("scroll",r)}switch(n){case"input":bf(r),sb(r,o,!0);break;case"textarea":bf(r),ub(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Th)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=HA(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Dr]=t,e[ku]=r,mE(e,t,!1,!1),t.stateNode=e;e:{switch(s=tg(n,r),n){case"dialog":Je("cancel",e),Je("close",e),i=r;break;case"iframe":case"object":case"embed":Je("load",e),i=r;break;case"video":case"audio":for(i=0;i<Gl.length;i++)Je(Gl[i],e);i=r;break;case"source":Je("error",e),i=r;break;case"img":case"image":case"link":Je("error",e),Je("load",e),i=r;break;case"details":Je("toggle",e),i=r;break;case"input":ab(e,r),i=qv(e,r),Je("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=dt({},r,{value:void 0}),Je("invalid",e);break;case"textarea":lb(e,r),i=Qv(e,r),Je("invalid",e);break;default:i=r}eg(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var u=l[o];o==="style"?KA(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&ZA(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&_u(e,u):typeof u=="number"&&_u(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(xu.hasOwnProperty(o)?u!=null&&o==="onScroll"&&Je("scroll",e):u!=null&&C0(e,o,u,s))}switch(n){case"input":bf(e),sb(e,r,!1);break;case"textarea":bf(e),ub(e);break;case"option":r.value!=null&&e.setAttribute("value",""+oo(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Ya(e,!!r.multiple,o,!1):r.defaultValue!=null&&Ya(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Th)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Yt(t),null;case 6:if(e&&t.stateNode!=null)gE(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(re(166));if(n=zo(Cu.current),zo(Fr.current),Mf(t)){if(r=t.stateNode,n=t.memoizedProps,r[Dr]=t,(o=r.nodeValue!==n)&&(e=Ln,e!==null))switch(e.tag){case 3:kf(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&kf(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Dr]=t,t.stateNode=r}return Yt(t),null;case 13:if(nt(ut),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(at&&Nn!==null&&t.mode&1&&!(t.flags&128))L2(),us(),t.flags|=98560,o=!1;else if(o=Mf(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(re(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(re(317));o[Dr]=t}else us(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Yt(t),o=!1}else wr!==null&&(Lg(wr),wr=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ut.current&1?Mt===0&&(Mt=3):dx())),t.updateQueue!==null&&(t.flags|=4),Yt(t),null);case 4:return fs(),Ag(e,t),e===null&&Au(t.stateNode.containerInfo),Yt(t),null;case 10:return X0(t.type._context),Yt(t),null;case 17:return Pn(t.type)&&Ah(),Yt(t),null;case 19:if(nt(ut),o=t.memoizedState,o===null)return Yt(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)kl(o,!1);else{if(Mt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Nh(e),s!==null){for(t.flags|=128,kl(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Qe(ut,ut.current&1|2),t.child}e=e.sibling}o.tail!==null&&xt()>ds&&(t.flags|=128,r=!0,kl(o,!1),t.lanes=4194304)}else{if(!r)if(e=Nh(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),kl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!at)return Yt(t),null}else 2*xt()-o.renderingStartTime>ds&&n!==1073741824&&(t.flags|=128,r=!0,kl(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=xt(),t.sibling=null,n=ut.current,Qe(ut,r?n&1|2:n&1),t):(Yt(t),null);case 22:case 23:return hx(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Cn&1073741824&&(Yt(t),t.subtreeFlags&6&&(t.flags|=8192)):Yt(t),null;case 24:return null;case 25:return null}throw Error(re(156,t.tag))}function tD(e,t){switch(Z0(t),t.tag){case 1:return Pn(t.type)&&Ah(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fs(),nt(Sn),nt(on),tx(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ex(t),null;case 13:if(nt(ut),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(re(340));us()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return nt(ut),null;case 4:return fs(),null;case 10:return X0(t.type._context),null;case 22:case 23:return hx(),null;case 24:return null;default:return null}}var $f=!1,en=!1,nD=typeof WeakSet=="function"?WeakSet:Set,le=null;function Fa(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){mt(e,t,r)}else n.current=null}function Eg(e,t,n){try{n()}catch(r){mt(e,t,r)}}var Qb=!1;function rD(e,t){if(fg=Sh,e=w2(),W0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,u=-1,f=0,d=0,h=e,m=null;t:for(;;){for(var v;h!==n||i!==0&&h.nodeType!==3||(l=s+i),h!==o||r!==0&&h.nodeType!==3||(u=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(v=h.firstChild)!==null;)m=h,h=v;for(;;){if(h===e)break t;if(m===n&&++f===i&&(l=s),m===o&&++d===r&&(u=s),(v=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=v}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(hg={focusedElem:e,selectionRange:n},Sh=!1,le=t;le!==null;)if(t=le,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,le=e;else for(;le!==null;){t=le;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var x=b.memoizedProps,S=b.memoizedState,y=t.stateNode,_=y.getSnapshotBeforeUpdate(t.elementType===t.type?x:xr(t.type,x),S);y.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(re(163))}}catch(E){mt(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,le=e;break}le=t.return}return b=Qb,Qb=!1,b}function ou(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Eg(t,n,o)}i=i.next}while(i!==r)}}function op(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function kg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function yE(e){var t=e.alternate;t!==null&&(e.alternate=null,yE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Dr],delete t[ku],delete t[mg],delete t[zI],delete t[BI])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function xE(e){return e.tag===5||e.tag===3||e.tag===4}function Jb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xE(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Th));else if(r!==4&&(e=e.child,e!==null))for(Mg(e,t,n),e=e.sibling;e!==null;)Mg(e,t,n),e=e.sibling}function Cg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Cg(e,t,n),e=e.sibling;e!==null;)Cg(e,t,n),e=e.sibling}var Ut=null,_r=!1;function Di(e,t,n){for(n=n.child;n!==null;)_E(e,t,n),n=n.sibling}function _E(e,t,n){if(Br&&typeof Br.onCommitFiberUnmount=="function")try{Br.onCommitFiberUnmount(Yd,n)}catch{}switch(n.tag){case 5:en||Fa(n,t);case 6:var r=Ut,i=_r;Ut=null,Di(e,t,n),Ut=r,_r=i,Ut!==null&&(_r?(e=Ut,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ut.removeChild(n.stateNode));break;case 18:Ut!==null&&(_r?(e=Ut,n=n.stateNode,e.nodeType===8?Fm(e.parentNode,n):e.nodeType===1&&Fm(e,n),Pu(e)):Fm(Ut,n.stateNode));break;case 4:r=Ut,i=_r,Ut=n.stateNode.containerInfo,_r=!0,Di(e,t,n),Ut=r,_r=i;break;case 0:case 11:case 14:case 15:if(!en&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Eg(n,t,s),i=i.next}while(i!==r)}Di(e,t,n);break;case 1:if(!en&&(Fa(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){mt(n,t,l)}Di(e,t,n);break;case 21:Di(e,t,n);break;case 22:n.mode&1?(en=(r=en)||n.memoizedState!==null,Di(e,t,n),en=r):Di(e,t,n);break;default:Di(e,t,n)}}function ew(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new nD),t.forEach(function(r){var i=hD.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function vr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:Ut=l.stateNode,_r=!1;break e;case 3:Ut=l.stateNode.containerInfo,_r=!0;break e;case 4:Ut=l.stateNode.containerInfo,_r=!0;break e}l=l.return}if(Ut===null)throw Error(re(160));_E(o,s,i),Ut=null,_r=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(f){mt(i,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)bE(t,e),t=t.sibling}function bE(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vr(t,e),Lr(e),r&4){try{ou(3,e,e.return),op(3,e)}catch(x){mt(e,e.return,x)}try{ou(5,e,e.return)}catch(x){mt(e,e.return,x)}}break;case 1:vr(t,e),Lr(e),r&512&&n!==null&&Fa(n,n.return);break;case 5:if(vr(t,e),Lr(e),r&512&&n!==null&&Fa(n,n.return),e.flags&32){var i=e.stateNode;try{_u(i,"")}catch(x){mt(e,e.return,x)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&UA(i,o),tg(l,s);var f=tg(l,o);for(s=0;s<u.length;s+=2){var d=u[s],h=u[s+1];d==="style"?KA(i,h):d==="dangerouslySetInnerHTML"?ZA(i,h):d==="children"?_u(i,h):C0(i,d,h,f)}switch(l){case"input":Xv(i,o);break;case"textarea":WA(i,o);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?Ya(i,!!o.multiple,v,!1):m!==!!o.multiple&&(o.defaultValue!=null?Ya(i,!!o.multiple,o.defaultValue,!0):Ya(i,!!o.multiple,o.multiple?[]:"",!1))}i[ku]=o}catch(x){mt(e,e.return,x)}}break;case 6:if(vr(t,e),Lr(e),r&4){if(e.stateNode===null)throw Error(re(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(x){mt(e,e.return,x)}}break;case 3:if(vr(t,e),Lr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pu(t.containerInfo)}catch(x){mt(e,e.return,x)}break;case 4:vr(t,e),Lr(e);break;case 13:vr(t,e),Lr(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(cx=xt())),r&4&&ew(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(en=(f=en)||d,vr(t,e),en=f):vr(t,e),Lr(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!d&&e.mode&1)for(le=e,d=e.child;d!==null;){for(h=le=d;le!==null;){switch(m=le,v=m.child,m.tag){case 0:case 11:case 14:case 15:ou(4,m,m.return);break;case 1:Fa(m,m.return);var b=m.stateNode;if(typeof b.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(x){mt(r,n,x)}}break;case 5:Fa(m,m.return);break;case 22:if(m.memoizedState!==null){nw(h);continue}}v!==null?(v.return=m,le=v):nw(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{i=h.stateNode,f?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=h.stateNode,u=h.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,l.style.display=GA("display",s))}catch(x){mt(e,e.return,x)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=f?"":h.memoizedProps}catch(x){mt(e,e.return,x)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:vr(t,e),Lr(e),r&4&&ew(e);break;case 21:break;default:vr(t,e),Lr(e)}}function Lr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(xE(n)){var r=n;break e}n=n.return}throw Error(re(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(_u(i,""),r.flags&=-33);var o=Jb(e);Cg(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=Jb(e);Mg(e,l,s);break;default:throw Error(re(161))}}catch(u){mt(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function iD(e,t,n){le=e,wE(e)}function wE(e,t,n){for(var r=(e.mode&1)!==0;le!==null;){var i=le,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||$f;if(!s){var l=i.alternate,u=l!==null&&l.memoizedState!==null||en;l=$f;var f=en;if($f=s,(en=u)&&!f)for(le=i;le!==null;)s=le,u=s.child,s.tag===22&&s.memoizedState!==null?rw(i):u!==null?(u.return=s,le=u):rw(i);for(;o!==null;)le=o,wE(o),o=o.sibling;le=i,$f=l,en=f}tw(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,le=o):tw(e)}}function tw(e){for(;le!==null;){var t=le;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:en||op(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!en)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:xr(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&zb(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}zb(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var f=t.alternate;if(f!==null){var d=f.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&Pu(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(re(163))}en||t.flags&512&&kg(t)}catch(m){mt(t,t.return,m)}}if(t===e){le=null;break}if(n=t.sibling,n!==null){n.return=t.return,le=n;break}le=t.return}}function nw(e){for(;le!==null;){var t=le;if(t===e){le=null;break}var n=t.sibling;if(n!==null){n.return=t.return,le=n;break}le=t.return}}function rw(e){for(;le!==null;){var t=le;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{op(4,t)}catch(u){mt(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){mt(t,i,u)}}var o=t.return;try{kg(t)}catch(u){mt(t,o,u)}break;case 5:var s=t.return;try{kg(t)}catch(u){mt(t,s,u)}}}catch(u){mt(t,t.return,u)}if(t===e){le=null;break}var l=t.sibling;if(l!==null){l.return=t.return,le=l;break}le=t.return}}var oD=Math.ceil,Dh=Ai.ReactCurrentDispatcher,lx=Ai.ReactCurrentOwner,or=Ai.ReactCurrentBatchConfig,$e=0,Dt=null,Pt=null,Zt=0,Cn=0,Va=co(0),Mt=0,Lu=null,na=0,ap=0,ux=0,au=null,_n=null,cx=0,ds=1/0,ri=null,Rh=!1,jg=null,to=null,Nf=!1,Gi=null,zh=0,su=0,$g=null,hh=-1,dh=0;function dn(){return $e&6?xt():hh!==-1?hh:hh=xt()}function no(e){return e.mode&1?$e&2&&Zt!==0?Zt&-Zt:VI.transition!==null?(dh===0&&(dh=a2()),dh):(e=Be,e!==0||(e=window.event,e=e===void 0?16:d2(e.type)),e):1}function Tr(e,t,n,r){if(50<su)throw su=0,$g=null,Error(re(185));Pc(e,n,r),(!($e&2)||e!==Dt)&&(e===Dt&&(!($e&2)&&(ap|=n),Mt===4&&Wi(e,Zt)),On(e,r),n===1&&$e===0&&!(t.mode&1)&&(ds=xt()+500,np&&fo()))}function On(e,t){var n=e.callbackNode;VL(e,t);var r=wh(e,e===Dt?Zt:0);if(r===0)n!==null&&hb(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&hb(n),t===1)e.tag===0?FI(iw.bind(null,e)):j2(iw.bind(null,e)),DI(function(){!($e&6)&&fo()}),n=null;else{switch(s2(r)){case 1:n=I0;break;case 4:n=i2;break;case 16:n=bh;break;case 536870912:n=o2;break;default:n=bh}n=ME(n,SE.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function SE(e,t){if(hh=-1,dh=0,$e&6)throw Error(re(327));var n=e.callbackNode;if(ns()&&e.callbackNode!==n)return null;var r=wh(e,e===Dt?Zt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Bh(e,r);else{t=r;var i=$e;$e|=2;var o=OE();(Dt!==e||Zt!==t)&&(ri=null,ds=xt()+500,Go(e,t));do try{lD();break}catch(l){PE(e,l)}while(!0);q0(),Dh.current=o,$e=i,Pt!==null?t=0:(Dt=null,Zt=0,t=Mt)}if(t!==0){if(t===2&&(i=ag(e),i!==0&&(r=i,t=Ng(e,i))),t===1)throw n=Lu,Go(e,0),Wi(e,r),On(e,xt()),n;if(t===6)Wi(e,r);else{if(i=e.current.alternate,!(r&30)&&!aD(i)&&(t=Bh(e,r),t===2&&(o=ag(e),o!==0&&(r=o,t=Ng(e,o))),t===1))throw n=Lu,Go(e,0),Wi(e,r),On(e,xt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(re(345));case 2:Co(e,_n,ri);break;case 3:if(Wi(e,r),(r&130023424)===r&&(t=cx+500-xt(),10<t)){if(wh(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){dn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=pg(Co.bind(null,e,_n,ri),t);break}Co(e,_n,ri);break;case 4:if(Wi(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Or(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=xt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*oD(r/1960))-r,10<r){e.timeoutHandle=pg(Co.bind(null,e,_n,ri),r);break}Co(e,_n,ri);break;case 5:Co(e,_n,ri);break;default:throw Error(re(329))}}}return On(e,xt()),e.callbackNode===n?SE.bind(null,e):null}function Ng(e,t){var n=au;return e.current.memoizedState.isDehydrated&&(Go(e,t).flags|=256),e=Bh(e,t),e!==2&&(t=_n,_n=n,t!==null&&Lg(t)),e}function Lg(e){_n===null?_n=e:_n.push.apply(_n,e)}function aD(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Er(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wi(e,t){for(t&=~ux,t&=~ap,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Or(t),r=1<<n;e[n]=-1,t&=~r}}function iw(e){if($e&6)throw Error(re(327));ns();var t=wh(e,0);if(!(t&1))return On(e,xt()),null;var n=Bh(e,t);if(e.tag!==0&&n===2){var r=ag(e);r!==0&&(t=r,n=Ng(e,r))}if(n===1)throw n=Lu,Go(e,0),Wi(e,t),On(e,xt()),n;if(n===6)throw Error(re(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Co(e,_n,ri),On(e,xt()),null}function fx(e,t){var n=$e;$e|=1;try{return e(t)}finally{$e=n,$e===0&&(ds=xt()+500,np&&fo())}}function ra(e){Gi!==null&&Gi.tag===0&&!($e&6)&&ns();var t=$e;$e|=1;var n=or.transition,r=Be;try{if(or.transition=null,Be=1,e)return e()}finally{Be=r,or.transition=n,$e=t,!($e&6)&&fo()}}function hx(){Cn=Va.current,nt(Va)}function Go(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,II(n)),Pt!==null)for(n=Pt.return;n!==null;){var r=n;switch(Z0(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ah();break;case 3:fs(),nt(Sn),nt(on),tx();break;case 5:ex(r);break;case 4:fs();break;case 13:nt(ut);break;case 19:nt(ut);break;case 10:X0(r.type._context);break;case 22:case 23:hx()}n=n.return}if(Dt=e,Pt=e=ro(e.current,null),Zt=Cn=t,Mt=0,Lu=null,ux=ap=na=0,_n=au=null,Ro!==null){for(t=0;t<Ro.length;t++)if(n=Ro[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}Ro=null}return e}function PE(e,t){do{var n=Pt;try{if(q0(),uh.current=Ih,Lh){for(var r=ht.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Lh=!1}if(ta=0,It=kt=ht=null,iu=!1,ju=0,lx.current=null,n===null||n.return===null){Mt=1,Lu=t,Pt=null;break}e:{var o=e,s=n.return,l=n,u=t;if(t=Zt,l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=u,d=l,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var v=Hb(s);if(v!==null){v.flags&=-257,Zb(v,s,l,o,t),v.mode&1&&Wb(o,f,t),t=v,u=f;var b=t.updateQueue;if(b===null){var x=new Set;x.add(u),t.updateQueue=x}else b.add(u);break e}else{if(!(t&1)){Wb(o,f,t),dx();break e}u=Error(re(426))}}else if(at&&l.mode&1){var S=Hb(s);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Zb(S,s,l,o,t),G0(hs(u,l));break e}}o=u=hs(u,l),Mt!==4&&(Mt=2),au===null?au=[o]:au.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=sE(o,u,t);Rb(o,y);break e;case 1:l=u;var _=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof _.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(to===null||!to.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var E=lE(o,l,t);Rb(o,E);break e}}o=o.return}while(o!==null)}AE(n)}catch(P){t=P,Pt===n&&n!==null&&(Pt=n=n.return);continue}break}while(!0)}function OE(){var e=Dh.current;return Dh.current=Ih,e===null?Ih:e}function dx(){(Mt===0||Mt===3||Mt===2)&&(Mt=4),Dt===null||!(na&268435455)&&!(ap&268435455)||Wi(Dt,Zt)}function Bh(e,t){var n=$e;$e|=2;var r=OE();(Dt!==e||Zt!==t)&&(ri=null,Go(e,t));do try{sD();break}catch(i){PE(e,i)}while(!0);if(q0(),$e=n,Dh.current=r,Pt!==null)throw Error(re(261));return Dt=null,Zt=0,Mt}function sD(){for(;Pt!==null;)TE(Pt)}function lD(){for(;Pt!==null&&!$L();)TE(Pt)}function TE(e){var t=kE(e.alternate,e,Cn);e.memoizedProps=e.pendingProps,t===null?AE(e):Pt=t,lx.current=null}function AE(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=tD(n,t),n!==null){n.flags&=32767,Pt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Mt=6,Pt=null;return}}else if(n=eD(n,t,Cn),n!==null){Pt=n;return}if(t=t.sibling,t!==null){Pt=t;return}Pt=t=e}while(t!==null);Mt===0&&(Mt=5)}function Co(e,t,n){var r=Be,i=or.transition;try{or.transition=null,Be=1,uD(e,t,n,r)}finally{or.transition=i,Be=r}return null}function uD(e,t,n,r){do ns();while(Gi!==null);if($e&6)throw Error(re(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(re(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(UL(e,o),e===Dt&&(Pt=Dt=null,Zt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Nf||(Nf=!0,ME(bh,function(){return ns(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=or.transition,or.transition=null;var s=Be;Be=1;var l=$e;$e|=4,lx.current=null,rD(e,n),bE(n,e),kI(hg),Sh=!!fg,hg=fg=null,e.current=n,iD(n),NL(),$e=l,Be=s,or.transition=o}else e.current=n;if(Nf&&(Nf=!1,Gi=e,zh=i),o=e.pendingLanes,o===0&&(to=null),DL(n.stateNode),On(e,xt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Rh)throw Rh=!1,e=jg,jg=null,e;return zh&1&&e.tag!==0&&ns(),o=e.pendingLanes,o&1?e===$g?su++:(su=0,$g=e):su=0,fo(),null}function ns(){if(Gi!==null){var e=s2(zh),t=or.transition,n=Be;try{if(or.transition=null,Be=16>e?16:e,Gi===null)var r=!1;else{if(e=Gi,Gi=null,zh=0,$e&6)throw Error(re(331));var i=$e;for($e|=4,le=e.current;le!==null;){var o=le,s=o.child;if(le.flags&16){var l=o.deletions;if(l!==null){for(var u=0;u<l.length;u++){var f=l[u];for(le=f;le!==null;){var d=le;switch(d.tag){case 0:case 11:case 15:ou(8,d,o)}var h=d.child;if(h!==null)h.return=d,le=h;else for(;le!==null;){d=le;var m=d.sibling,v=d.return;if(yE(d),d===f){le=null;break}if(m!==null){m.return=v,le=m;break}le=v}}}var b=o.alternate;if(b!==null){var x=b.child;if(x!==null){b.child=null;do{var S=x.sibling;x.sibling=null,x=S}while(x!==null)}}le=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,le=s;else e:for(;le!==null;){if(o=le,o.flags&2048)switch(o.tag){case 0:case 11:case 15:ou(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,le=y;break e}le=o.return}}var _=e.current;for(le=_;le!==null;){s=le;var w=s.child;if(s.subtreeFlags&2064&&w!==null)w.return=s,le=w;else e:for(s=_;le!==null;){if(l=le,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:op(9,l)}}catch(P){mt(l,l.return,P)}if(l===s){le=null;break e}var E=l.sibling;if(E!==null){E.return=l.return,le=E;break e}le=l.return}}if($e=i,fo(),Br&&typeof Br.onPostCommitFiberRoot=="function")try{Br.onPostCommitFiberRoot(Yd,e)}catch{}r=!0}return r}finally{Be=n,or.transition=t}}return!1}function ow(e,t,n){t=hs(n,t),t=sE(e,t,1),e=eo(e,t,1),t=dn(),e!==null&&(Pc(e,1,t),On(e,t))}function mt(e,t,n){if(e.tag===3)ow(e,e,n);else for(;t!==null;){if(t.tag===3){ow(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(to===null||!to.has(r))){e=hs(n,e),e=lE(t,e,1),t=eo(t,e,1),e=dn(),t!==null&&(Pc(t,1,e),On(t,e));break}}t=t.return}}function cD(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=dn(),e.pingedLanes|=e.suspendedLanes&n,Dt===e&&(Zt&n)===n&&(Mt===4||Mt===3&&(Zt&130023424)===Zt&&500>xt()-cx?Go(e,0):ux|=n),On(e,t)}function EE(e,t){t===0&&(e.mode&1?(t=Pf,Pf<<=1,!(Pf&130023424)&&(Pf=4194304)):t=1);var n=dn();e=_i(e,t),e!==null&&(Pc(e,t,n),On(e,n))}function fD(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),EE(e,n)}function hD(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(re(314))}r!==null&&r.delete(t),EE(e,n)}var kE;kE=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Sn.current)bn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bn=!1,JI(e,t,n);bn=!!(e.flags&131072)}else bn=!1,at&&t.flags&1048576&&$2(t,Mh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;fh(e,t),e=t.pendingProps;var i=ls(t,on.current);ts(t,n),i=rx(null,t,r,e,i,n);var o=ix();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pn(r)?(o=!0,Eh(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Q0(t),i.updater=ip,t.stateNode=i,i._reactInternals=t,bg(t,r,e,n),t=Pg(null,t,r,!0,o,n)):(t.tag=0,at&&o&&H0(t),fn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(fh(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=pD(r),e=xr(r,e),i){case 0:t=Sg(null,t,r,e,n);break e;case 1:t=qb(null,t,r,e,n);break e;case 11:t=Gb(null,t,r,e,n);break e;case 14:t=Kb(null,t,r,xr(r.type,e),n);break e}throw Error(re(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xr(r,i),Sg(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xr(r,i),qb(e,t,r,i,n);case 3:e:{if(hE(t),e===null)throw Error(re(387));r=t.pendingProps,o=t.memoizedState,i=o.element,z2(e,t),$h(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=hs(Error(re(423)),t),t=Xb(e,t,r,n,i);break e}else if(r!==i){i=hs(Error(re(424)),t),t=Xb(e,t,r,n,i);break e}else for(Nn=Ji(t.stateNode.containerInfo.firstChild),Ln=t,at=!0,wr=null,n=D2(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(us(),r===i){t=bi(e,t,n);break e}fn(e,t,r,n)}t=t.child}return t;case 5:return B2(t),e===null&&yg(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,dg(r,i)?s=null:o!==null&&dg(r,o)&&(t.flags|=32),fE(e,t),fn(e,t,s,n),t.child;case 6:return e===null&&yg(t),null;case 13:return dE(e,t,n);case 4:return J0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cs(t,null,r,n):fn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xr(r,i),Gb(e,t,r,i,n);case 7:return fn(e,t,t.pendingProps,n),t.child;case 8:return fn(e,t,t.pendingProps.children,n),t.child;case 12:return fn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Qe(Ch,r._currentValue),r._currentValue=s,o!==null)if(Er(o.value,s)){if(o.children===i.children&&!Sn.current){t=bi(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=hi(-1,n&-n),u.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var d=f.pending;d===null?u.next=u:(u.next=d.next,d.next=u),f.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),xg(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(re(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),xg(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}fn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ts(t,n),i=sr(i),r=r(i),t.flags|=1,fn(e,t,r,n),t.child;case 14:return r=t.type,i=xr(r,t.pendingProps),i=xr(r.type,i),Kb(e,t,r,i,n);case 15:return uE(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xr(r,i),fh(e,t),t.tag=1,Pn(r)?(e=!0,Eh(t)):e=!1,ts(t,n),aE(t,r,i),bg(t,r,i,n),Pg(null,t,r,!0,e,n);case 19:return pE(e,t,n);case 22:return cE(e,t,n)}throw Error(re(156,t.tag))};function ME(e,t){return r2(e,t)}function dD(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rr(e,t,n,r){return new dD(e,t,n,r)}function px(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pD(e){if(typeof e=="function")return px(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$0)return 11;if(e===N0)return 14}return 2}function ro(e,t){var n=e.alternate;return n===null?(n=rr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ph(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")px(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ja:return Ko(n.children,i,o,t);case j0:s=8,i|=8;break;case Hv:return e=rr(12,n,t,i|2),e.elementType=Hv,e.lanes=o,e;case Zv:return e=rr(13,n,t,i),e.elementType=Zv,e.lanes=o,e;case Gv:return e=rr(19,n,t,i),e.elementType=Gv,e.lanes=o,e;case BA:return sp(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case RA:s=10;break e;case zA:s=9;break e;case $0:s=11;break e;case N0:s=14;break e;case Bi:s=16,r=null;break e}throw Error(re(130,e==null?e:typeof e,""))}return t=rr(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ko(e,t,n,r){return e=rr(7,e,r,t),e.lanes=n,e}function sp(e,t,n,r){return e=rr(22,e,r,t),e.elementType=BA,e.lanes=n,e.stateNode={isHidden:!1},e}function qm(e,t,n){return e=rr(6,e,null,t),e.lanes=n,e}function Xm(e,t,n){return t=rr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function mD(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Mm(0),this.expirationTimes=Mm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mm(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function mx(e,t,n,r,i,o,s,l,u){return e=new mD(e,t,n,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=rr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Q0(o),e}function vD(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ca,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function CE(e){if(!e)return ao;e=e._reactInternals;e:{if(ca(e)!==e||e.tag!==1)throw Error(re(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Pn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(re(171))}if(e.tag===1){var n=e.type;if(Pn(n))return C2(e,n,t)}return t}function jE(e,t,n,r,i,o,s,l,u){return e=mx(n,r,!0,e,i,o,s,l,u),e.context=CE(null),n=e.current,r=dn(),i=no(n),o=hi(r,i),o.callback=t??null,eo(n,o,i),e.current.lanes=i,Pc(e,i,r),On(e,r),e}function lp(e,t,n,r){var i=t.current,o=dn(),s=no(i);return n=CE(n),t.context===null?t.context=n:t.pendingContext=n,t=hi(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=eo(i,t,s),e!==null&&(Tr(e,i,s,o),lh(e,i,s)),s}function Fh(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function aw(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function vx(e,t){aw(e,t),(e=e.alternate)&&aw(e,t)}function gD(){return null}var $E=typeof reportError=="function"?reportError:function(e){console.error(e)};function gx(e){this._internalRoot=e}up.prototype.render=gx.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(re(409));lp(e,t,null,null)};up.prototype.unmount=gx.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ra(function(){lp(null,e,null,null)}),t[xi]=null}};function up(e){this._internalRoot=e}up.prototype.unstable_scheduleHydration=function(e){if(e){var t=c2();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ui.length&&t!==0&&t<Ui[n].priority;n++);Ui.splice(n,0,e),n===0&&h2(e)}};function yx(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function cp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function sw(){}function yD(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var f=Fh(s);o.call(f)}}var s=jE(t,r,e,0,null,!1,!1,"",sw);return e._reactRootContainer=s,e[xi]=s.current,Au(e.nodeType===8?e.parentNode:e),ra(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var f=Fh(u);l.call(f)}}var u=mx(e,0,!1,null,null,!1,!1,"",sw);return e._reactRootContainer=u,e[xi]=u.current,Au(e.nodeType===8?e.parentNode:e),ra(function(){lp(t,u,n,r)}),u}function fp(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var u=Fh(s);l.call(u)}}lp(t,s,e,i)}else s=yD(n,t,e,i,r);return Fh(s)}l2=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Zl(t.pendingLanes);n!==0&&(D0(t,n|1),On(t,xt()),!($e&6)&&(ds=xt()+500,fo()))}break;case 13:ra(function(){var r=_i(e,1);if(r!==null){var i=dn();Tr(r,e,1,i)}}),vx(e,1)}};R0=function(e){if(e.tag===13){var t=_i(e,134217728);if(t!==null){var n=dn();Tr(t,e,134217728,n)}vx(e,134217728)}};u2=function(e){if(e.tag===13){var t=no(e),n=_i(e,t);if(n!==null){var r=dn();Tr(n,e,t,r)}vx(e,t)}};c2=function(){return Be};f2=function(e,t){var n=Be;try{return Be=e,t()}finally{Be=n}};rg=function(e,t,n){switch(t){case"input":if(Xv(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=tp(r);if(!i)throw Error(re(90));VA(r),Xv(r,i)}}}break;case"textarea":WA(e,n);break;case"select":t=n.value,t!=null&&Ya(e,!!n.multiple,t,!1)}};YA=fx;QA=ra;var xD={usingClientEntryPoint:!1,Events:[Tc,Ia,tp,qA,XA,fx]},Ml={findFiberByHostInstance:Do,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},_D={bundleType:Ml.bundleType,version:Ml.version,rendererPackageName:Ml.rendererPackageName,rendererConfig:Ml.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ai.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=t2(e),e===null?null:e.stateNode},findFiberByHostInstance:Ml.findFiberByHostInstance||gD,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lf.isDisabled&&Lf.supportsFiber)try{Yd=Lf.inject(_D),Br=Lf}catch{}}Fn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xD;Fn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yx(t))throw Error(re(200));return vD(e,t,null,n)};Fn.createRoot=function(e,t){if(!yx(e))throw Error(re(299));var n=!1,r="",i=$E;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=mx(e,1,!1,null,null,n,!1,r,i),e[xi]=t.current,Au(e.nodeType===8?e.parentNode:e),new gx(t)};Fn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(re(188)):(e=Object.keys(e).join(","),Error(re(268,e)));return e=t2(t),e=e===null?null:e.stateNode,e};Fn.flushSync=function(e){return ra(e)};Fn.hydrate=function(e,t,n){if(!cp(t))throw Error(re(200));return fp(null,e,t,!0,n)};Fn.hydrateRoot=function(e,t,n){if(!yx(e))throw Error(re(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=$E;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=jE(t,null,e,1,n??null,i,!1,o,s),e[xi]=t.current,Au(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new up(t)};Fn.render=function(e,t,n){if(!cp(t))throw Error(re(200));return fp(null,e,t,!1,n)};Fn.unmountComponentAtNode=function(e){if(!cp(e))throw Error(re(40));return e._reactRootContainer?(ra(function(){fp(null,null,e,!1,function(){e._reactRootContainer=null,e[xi]=null})}),!0):!1};Fn.unstable_batchedUpdates=fx;Fn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!cp(n))throw Error(re(200));if(e==null||e._reactInternals===void 0)throw Error(re(38));return fp(e,t,n,!1,r)};Fn.version="18.3.1-next-f1338f8080-20240426";function NE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(NE)}catch(e){console.error(e)}}NE(),NA.exports=Fn;var bD=NA.exports,lw=bD;Uv.createRoot=lw.createRoot,Uv.hydrateRoot=lw.hydrateRoot;const xx=j.createContext({});function _x(e){const t=j.useRef(null);return t.current===null&&(t.current=e()),t.current}const hp=j.createContext(null),bx=j.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class wD extends j.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function SD({children:e,isPresent:t}){const n=j.useId(),r=j.useRef(null),i=j.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=j.useContext(bx);return j.useInsertionEffect(()=>{const{width:s,height:l,top:u,left:f}=i.current;if(t||!r.current||!s||!l)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return o&&(d.nonce=o),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
|
|
41
|
+
[data-motion-pop-id="${n}"] {
|
|
42
|
+
position: absolute !important;
|
|
43
|
+
width: ${s}px !important;
|
|
44
|
+
height: ${l}px !important;
|
|
45
|
+
top: ${u}px !important;
|
|
46
|
+
left: ${f}px !important;
|
|
47
|
+
}
|
|
48
|
+
`),()=>{document.head.removeChild(d)}},[t]),O.jsx(wD,{isPresent:t,childRef:r,sizeRef:i,children:j.cloneElement(e,{ref:r})})}const PD=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const l=_x(OD),u=j.useId(),f=j.useCallback(h=>{l.set(h,!0);for(const m of l.values())if(!m)return;r&&r()},[l,r]),d=j.useMemo(()=>({id:u,initial:t,isPresent:n,custom:i,onExitComplete:f,register:h=>(l.set(h,!1),()=>l.delete(h))}),o?[Math.random(),f]:[n,f]);return j.useMemo(()=>{l.forEach((h,m)=>l.set(m,!1))},[n]),j.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=O.jsx(SD,{isPresent:n,children:e})),O.jsx(hp.Provider,{value:d,children:e})};function OD(){return new Map}function LE(e=!0){const t=j.useContext(hp);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=j.useId();j.useEffect(()=>{e&&i(o)},[e]);const s=j.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const If=e=>e.key||"";function uw(e){const t=[];return j.Children.forEach(e,n=>{j.isValidElement(n)&&t.push(n)}),t}const wx=typeof window<"u",IE=wx?j.useLayoutEffect:j.useEffect,TD=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:s=!1})=>{const[l,u]=LE(s),f=j.useMemo(()=>uw(e),[e]),d=s&&!l?[]:f.map(If),h=j.useRef(!0),m=j.useRef(f),v=_x(()=>new Map),[b,x]=j.useState(f),[S,y]=j.useState(f);IE(()=>{h.current=!1,m.current=f;for(let E=0;E<S.length;E++){const P=If(S[E]);d.includes(P)?v.delete(P):v.get(P)!==!0&&v.set(P,!1)}},[S,d.length,d.join("-")]);const _=[];if(f!==b){let E=[...f];for(let P=0;P<S.length;P++){const A=S[P],M=If(A);d.includes(M)||(E.splice(P,0,A),_.push(A))}o==="wait"&&_.length&&(E=_),y(uw(E)),x(f);return}const{forceRender:w}=j.useContext(xx);return O.jsx(O.Fragment,{children:S.map(E=>{const P=If(E),A=s&&!l?!1:f===S||d.includes(P),M=()=>{if(v.has(P))v.set(P,!0);else return;let C=!0;v.forEach(N=>{N||(C=!1)}),C&&(w==null||w(),y(m.current),s&&(u==null||u()),r&&r())};return O.jsx(PD,{isPresent:A,initial:!h.current||n?void 0:!1,custom:A?void 0:t,presenceAffectsLayout:i,mode:o,onExitComplete:A?void 0:M,children:E},P)})})},In=e=>e;let DE=In;function Sx(e){let t;return()=>(t===void 0&&(t=e()),t)}const ps=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},di=e=>e*1e3,pi=e=>e/1e3,AD={useManualTiming:!1};function ED(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(f){o.has(f)&&(u.schedule(f),e()),f(s)}const u={schedule:(f,d=!1,h=!1)=>{const v=h&&r?t:n;return d&&o.add(f),v.has(f)||v.add(f),f},cancel:f=>{n.delete(f),o.delete(f)},process:f=>{if(s=f,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,u.process(f))}};return u}const Df=["read","resolveKeyframes","update","preRender","render","postRender"],kD=40;function RE(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Df.reduce((y,_)=>(y[_]=ED(o),y),{}),{read:l,resolveKeyframes:u,update:f,preRender:d,render:h,postRender:m}=s,v=()=>{const y=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(y-i.timestamp,kD),1),i.timestamp=y,i.isProcessing=!0,l.process(i),u.process(i),f.process(i),d.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},b=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:Df.reduce((y,_)=>{const w=s[_];return y[_]=(E,P=!1,A=!1)=>(n||b(),w.schedule(E,P,A)),y},{}),cancel:y=>{for(let _=0;_<Df.length;_++)s[Df[_]].cancel(y)},state:i,steps:s}}const{schedule:rt,cancel:so,state:Wt,steps:Ym}=RE(typeof requestAnimationFrame<"u"?requestAnimationFrame:In,!0),zE=j.createContext({strict:!1}),cw={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ms={};for(const e in cw)ms[e]={isEnabled:t=>cw[e].some(n=>!!t[n])};function MD(e){for(const t in e)ms[t]={...ms[t],...e[t]}}const CD=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Vh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||CD.has(e)}let BE=e=>!Vh(e);function jD(e){e&&(BE=t=>t.startsWith("on")?!Vh(t):e(t))}try{jD(require("@emotion/is-prop-valid").default)}catch{}function $D(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(BE(i)||n===!0&&Vh(i)||!t&&!Vh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function ND(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const dp=j.createContext({});function Iu(e){return typeof e=="string"||Array.isArray(e)}function pp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Px=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ox=["initial",...Px];function mp(e){return pp(e.animate)||Ox.some(t=>Iu(e[t]))}function FE(e){return!!(mp(e)||e.variants)}function LD(e,t){if(mp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Iu(n)?n:void 0,animate:Iu(r)?r:void 0}}return e.inherit!==!1?t:{}}function ID(e){const{initial:t,animate:n}=LD(e,j.useContext(dp));return j.useMemo(()=>({initial:t,animate:n}),[fw(t),fw(n)])}function fw(e){return Array.isArray(e)?e.join(" "):e}const DD=Symbol.for("motionComponentSymbol");function Ua(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function RD(e,t,n){return j.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ua(n)&&(n.current=r))},[t])}const Tx=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),zD="framerAppearId",VE="data-"+Tx(zD),{schedule:Ax}=RE(queueMicrotask,!1),UE=j.createContext({});function BD(e,t,n,r,i){var o,s;const{visualElement:l}=j.useContext(dp),u=j.useContext(zE),f=j.useContext(hp),d=j.useContext(bx).reducedMotion,h=j.useRef(null);r=r||u.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:l,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:d}));const m=h.current,v=j.useContext(UE);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&FD(h.current,n,i,v);const b=j.useRef(!1);j.useInsertionEffect(()=>{m&&b.current&&m.update(n,f)});const x=n[VE],S=j.useRef(!!x&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,x))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,x)));return IE(()=>{m&&(b.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),Ax.render(m.render),S.current&&m.animationState&&m.animationState.animateChanges())}),j.useEffect(()=>{m&&(!S.current&&m.animationState&&m.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,x)}),S.current=!1))}),m}function FD(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:l,layoutScroll:u,layoutRoot:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:WE(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||l&&Ua(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:f})}function WE(e){if(e)return e.options.allowProjection!==!1?e.projection:WE(e.parent)}function VD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,s;e&&MD(e);function l(f,d){let h;const m={...j.useContext(bx),...f,layoutId:UD(f)},{isStatic:v}=m,b=ID(f),x=r(f,v);if(!v&&wx){WD();const S=HD(m);h=S.MeasureLayout,b.visualElement=BD(i,x,m,t,S.ProjectionNode)}return O.jsxs(dp.Provider,{value:b,children:[h&&b.visualElement?O.jsx(h,{visualElement:b.visualElement,...m}):null,n(i,f,RD(x,b.visualElement,d),x,v,b.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(s=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&s!==void 0?s:""})`}`;const u=j.forwardRef(l);return u[DD]=i,u}function UD({layoutId:e}){const t=j.useContext(xx).id;return t&&e!==void 0?t+"-"+e:e}function WD(e,t){j.useContext(zE).strict}function HD(e){const{drag:t,layout:n}=ms;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const ZD=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ex(e){return typeof e!="string"||e.includes("-")?!1:!!(ZD.indexOf(e)>-1||/[A-Z]/u.test(e))}function hw(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function kx(e,t,n,r){if(typeof t=="function"){const[i,o]=hw(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=hw(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Ig=e=>Array.isArray(e),GD=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),KD=e=>Ig(e)?e[e.length-1]||0:e,rn=e=>!!(e&&e.getVelocity);function mh(e){const t=rn(e)?e.get():e;return GD(t)?t.toValue():t}function qD({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const s={latestValues:XD(r,i,o,e),renderState:t()};return n&&(s.onMount=l=>n({props:r,current:l,...s}),s.onUpdate=l=>n(l)),s}const HE=e=>(t,n)=>{const r=j.useContext(dp),i=j.useContext(hp),o=()=>qD(e,t,r,i);return n?o():_x(o)};function XD(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=mh(o[m]);let{initial:s,animate:l}=e;const u=mp(e),f=FE(e);t&&f&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const h=d?l:s;if(h&&typeof h!="boolean"&&!pp(h)){const m=Array.isArray(h)?h:[h];for(let v=0;v<m.length;v++){const b=kx(e,m[v]);if(b){const{transitionEnd:x,transition:S,...y}=b;for(const _ in y){let w=y[_];if(Array.isArray(w)){const E=d?w.length-1:0;w=w[E]}w!==null&&(i[_]=w)}for(const _ in x)i[_]=x[_]}}}return i}const Ws=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],fa=new Set(Ws),ZE=e=>t=>typeof t=="string"&&t.startsWith(e),GE=ZE("--"),YD=ZE("var(--"),Mx=e=>YD(e)?QD.test(e.split("/*")[0].trim()):!1,QD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,KE=(e,t)=>t&&typeof e=="number"?t.transform(e):e,wi=(e,t,n)=>n>t?t:n<e?e:n,Hs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Du={...Hs,transform:e=>wi(0,1,e)},Rf={...Hs,default:1},Ec=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ri=Ec("deg"),Vr=Ec("%"),ge=Ec("px"),JD=Ec("vh"),eR=Ec("vw"),dw={...Vr,parse:e=>Vr.parse(e)/100,transform:e=>Vr.transform(e*100)},tR={borderWidth:ge,borderTopWidth:ge,borderRightWidth:ge,borderBottomWidth:ge,borderLeftWidth:ge,borderRadius:ge,radius:ge,borderTopLeftRadius:ge,borderTopRightRadius:ge,borderBottomRightRadius:ge,borderBottomLeftRadius:ge,width:ge,maxWidth:ge,height:ge,maxHeight:ge,top:ge,right:ge,bottom:ge,left:ge,padding:ge,paddingTop:ge,paddingRight:ge,paddingBottom:ge,paddingLeft:ge,margin:ge,marginTop:ge,marginRight:ge,marginBottom:ge,marginLeft:ge,backgroundPositionX:ge,backgroundPositionY:ge},nR={rotate:Ri,rotateX:Ri,rotateY:Ri,rotateZ:Ri,scale:Rf,scaleX:Rf,scaleY:Rf,scaleZ:Rf,skew:Ri,skewX:Ri,skewY:Ri,distance:ge,translateX:ge,translateY:ge,translateZ:ge,x:ge,y:ge,z:ge,perspective:ge,transformPerspective:ge,opacity:Du,originX:dw,originY:dw,originZ:ge},pw={...Hs,transform:Math.round},Cx={...tR,...nR,zIndex:pw,size:ge,fillOpacity:Du,strokeOpacity:Du,numOctaves:pw},rR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iR=Ws.length;function oR(e,t,n){let r="",i=!0;for(let o=0;o<iR;o++){const s=Ws[o],l=e[s];if(l===void 0)continue;let u=!0;if(typeof l=="number"?u=l===(s.startsWith("scale")?1:0):u=parseFloat(l)===0,!u||n){const f=KE(l,Cx[s]);if(!u){i=!1;const d=rR[s]||s;r+=`${d}(${f}) `}n&&(t[s]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function jx(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,l=!1;for(const u in t){const f=t[u];if(fa.has(u)){s=!0;continue}else if(GE(u)){i[u]=f;continue}else{const d=KE(f,Cx[u]);u.startsWith("origin")?(l=!0,o[u]=d):r[u]=d}}if(t.transform||(s||n?r.transform=oR(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:u="50%",originY:f="50%",originZ:d=0}=o;r.transformOrigin=`${u} ${f} ${d}`}}const aR={offset:"stroke-dashoffset",array:"stroke-dasharray"},sR={offset:"strokeDashoffset",array:"strokeDasharray"};function lR(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?aR:sR;e[o.offset]=ge.transform(-r);const s=ge.transform(t),l=ge.transform(n);e[o.array]=`${s} ${l}`}function mw(e,t,n){return typeof e=="string"?e:ge.transform(t+n*e)}function uR(e,t,n){const r=mw(t,e.x,e.width),i=mw(n,e.y,e.height);return`${r} ${i}`}function $x(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:u=0,...f},d,h){if(jx(e,f,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:v,dimensions:b}=e;m.transform&&(b&&(v.transform=m.transform),delete m.transform),b&&(i!==void 0||o!==void 0||v.transform)&&(v.transformOrigin=uR(b,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),s!==void 0&&lR(m,s,l,u,!1)}const Nx=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),qE=()=>({...Nx(),attrs:{}}),Lx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function XE(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const YE=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function QE(e,t,n,r){XE(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(YE.has(i)?i:Tx(i),t.attrs[i])}const Uh={};function cR(e){Object.assign(Uh,e)}function JE(e,{layout:t,layoutId:n}){return fa.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Uh[e]||e==="opacity")}function Ix(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(rn(i[s])||t.style&&rn(t.style[s])||JE(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function ek(e,t,n){const r=Ix(e,t,n);for(const i in e)if(rn(e[i])||rn(t[i])){const o=Ws.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function fR(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const vw=["x","y","width","height","cx","cy","r"],hR={useVisualState:HE({scrapeMotionValuesFromProps:ek,createRenderState:qE,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const l in i)if(fa.has(l)){o=!0;break}}if(!o)return;let s=!t;if(t)for(let l=0;l<vw.length;l++){const u=vw[l];e[u]!==t[u]&&(s=!0)}s&&rt.read(()=>{fR(n,r),rt.render(()=>{$x(r,i,Lx(n.tagName),e.transformTemplate),QE(n,r)})})}})},dR={useVisualState:HE({scrapeMotionValuesFromProps:Ix,createRenderState:Nx})};function tk(e,t,n){for(const r in t)!rn(t[r])&&!JE(r,n)&&(e[r]=t[r])}function pR({transformTemplate:e},t){return j.useMemo(()=>{const n=Nx();return jx(n,t,e),Object.assign({},n.vars,n.style)},[t])}function mR(e,t){const n=e.style||{},r={};return tk(r,n,e),Object.assign(r,pR(e,t)),r}function vR(e,t){const n={},r=mR(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function gR(e,t,n,r){const i=j.useMemo(()=>{const o=qE();return $x(o,t,Lx(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};tk(o,e.style,e),i.style={...o,...i.style}}return i}function yR(e=!1){return(n,r,i,{latestValues:o},s)=>{const u=(Ex(n)?gR:vR)(r,o,s,n),f=$D(r,typeof n=="string",e),d=n!==j.Fragment?{...f,...u,ref:i}:{},{children:h}=r,m=j.useMemo(()=>rn(h)?h.get():h,[h]);return j.createElement(n,{...d,children:m})}}function xR(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...Ex(r)?hR:dR,preloadedFeatures:e,useRender:yR(i),createVisualElement:t,Component:r};return VD(s)}}function nk(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function vp(e,t,n){const r=e.getProps();return kx(r,t,n!==void 0?n:r.custom,e)}const _R=Sx(()=>window.ScrollTimeline!==void 0);class bR{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(_R()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class wR extends bR{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Dx(e,t){return e?e[t]||e.default||e:void 0}const Dg=2e4;function rk(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Dg;)t+=n,r=e.next(t);return t>=Dg?1/0:t}function Rx(e){return typeof e=="function"}function gw(e,t){e.timeline=t,e.onfinish=null}const zx=e=>Array.isArray(e)&&typeof e[0]=="number",SR={linearEasing:void 0};function PR(e,t){const n=Sx(e);return()=>{var r;return(r=SR[t])!==null&&r!==void 0?r:n()}}const Wh=PR(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ik=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(ps(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function ok(e){return!!(typeof e=="function"&&Wh()||!e||typeof e=="string"&&(e in Rg||Wh())||zx(e)||Array.isArray(e)&&e.every(ok))}const Kl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Rg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Kl([0,.65,.55,1]),circOut:Kl([.55,0,1,.45]),backIn:Kl([.31,.01,.66,-.59]),backOut:Kl([.33,1.53,.69,.99])};function ak(e,t){if(e)return typeof e=="function"&&Wh()?ik(e,t):zx(e)?Kl(e):Array.isArray(e)?e.map(n=>ak(n,t)||Rg.easeOut):Rg[e]}const yr={x:!1,y:!1};function sk(){return yr.x||yr.y}function OR(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function lk(e,t){const n=OR(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function yw(e){return t=>{t.pointerType==="touch"||sk()||e(t)}}function TR(e,t,n={}){const[r,i,o]=lk(e,n),s=yw(l=>{const{target:u}=l,f=t(l);if(typeof f!="function"||!u)return;const d=yw(h=>{f(h),u.removeEventListener("pointerleave",d)});u.addEventListener("pointerleave",d,i)});return r.forEach(l=>{l.addEventListener("pointerenter",s,i)}),o}const uk=(e,t)=>t?e===t?!0:uk(e,t.parentElement):!1,Bx=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,AR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ER(e){return AR.has(e.tagName)||e.tabIndex!==-1}const ql=new WeakSet;function xw(e){return t=>{t.key==="Enter"&&e(t)}}function Qm(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const kR=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=xw(()=>{if(ql.has(n))return;Qm(n,"down");const i=xw(()=>{Qm(n,"up")}),o=()=>Qm(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function _w(e){return Bx(e)&&!sk()}function MR(e,t,n={}){const[r,i,o]=lk(e,n),s=l=>{const u=l.currentTarget;if(!_w(l)||ql.has(u))return;ql.add(u);const f=t(l),d=(v,b)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!_w(v)||!ql.has(u))&&(ql.delete(u),typeof f=="function"&&f(v,{success:b}))},h=v=>{d(v,n.useGlobalTarget||uk(u,v.target))},m=v=>{d(v,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(l=>{!ER(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",s,i),l.addEventListener("focus",f=>kR(f,i),i)}),o}function CR(e){return e==="x"||e==="y"?yr[e]?null:(yr[e]=!0,()=>{yr[e]=!1}):yr.x||yr.y?null:(yr.x=yr.y=!0,()=>{yr.x=yr.y=!1})}const ck=new Set(["width","height","top","left","right","bottom",...Ws]);let vh;function jR(){vh=void 0}const Ur={now:()=>(vh===void 0&&Ur.set(Wt.isProcessing||AD.useManualTiming?Wt.timestamp:performance.now()),vh),set:e=>{vh=e,queueMicrotask(jR)}};function Fx(e,t){e.indexOf(t)===-1&&e.push(t)}function Vx(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ux{constructor(){this.subscriptions=[]}add(t){return Fx(this.subscriptions,t),()=>Vx(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function fk(e,t){return t?e*(1e3/t):0}const bw=30,$R=e=>!isNaN(parseFloat(e));class NR{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Ur.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ur.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=$R(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ux);const r=this.events[t].add(n);return t==="change"?()=>{r(),rt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ur.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>bw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,bw);return fk(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ru(e,t){return new NR(e,t)}function LR(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ru(n))}function IR(e,t){const n=vp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const l=KD(o[s]);LR(e,s,l)}}function DR(e){return!!(rn(e)&&e.add)}function zg(e,t){const n=e.getValue("willChange");if(DR(n))return n.add(t)}function hk(e){return e.props[VE]}const dk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,RR=1e-7,zR=12;function BR(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=dk(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>RR&&++l<zR);return s}function kc(e,t,n,r){if(e===t&&n===r)return In;const i=o=>BR(o,0,1,e,n);return o=>o===0||o===1?o:dk(i(o),t,r)}const pk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,mk=e=>t=>1-e(1-t),vk=kc(.33,1.53,.69,.99),Wx=mk(vk),gk=pk(Wx),yk=e=>(e*=2)<1?.5*Wx(e):.5*(2-Math.pow(2,-10*(e-1))),Hx=e=>1-Math.sin(Math.acos(e)),xk=mk(Hx),_k=pk(Hx),bk=e=>/^0[^.\s]+$/u.test(e);function FR(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||bk(e):!0}const lu=e=>Math.round(e*1e5)/1e5,Zx=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function VR(e){return e==null}const UR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Gx=(e,t)=>n=>!!(typeof n=="string"&&UR.test(n)&&n.startsWith(e)||t&&!VR(n)&&Object.prototype.hasOwnProperty.call(n,t)),wk=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,l]=r.match(Zx);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},WR=e=>wi(0,255,e),Jm={...Hs,transform:e=>Math.round(WR(e))},Bo={test:Gx("rgb","red"),parse:wk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Jm.transform(e)+", "+Jm.transform(t)+", "+Jm.transform(n)+", "+lu(Du.transform(r))+")"};function HR(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Bg={test:Gx("#"),parse:HR,transform:Bo.transform},Wa={test:Gx("hsl","hue"),parse:wk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Vr.transform(lu(t))+", "+Vr.transform(lu(n))+", "+lu(Du.transform(r))+")"},Qt={test:e=>Bo.test(e)||Bg.test(e)||Wa.test(e),parse:e=>Bo.test(e)?Bo.parse(e):Wa.test(e)?Wa.parse(e):Bg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Bo.transform(e):Wa.transform(e)},ZR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function GR(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Zx))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(ZR))===null||n===void 0?void 0:n.length)||0)>0}const Sk="number",Pk="color",KR="var",qR="var(",ww="${}",XR=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function zu(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace(XR,u=>(Qt.test(u)?(r.color.push(o),i.push(Pk),n.push(Qt.parse(u))):u.startsWith(qR)?(r.var.push(o),i.push(KR),n.push(u)):(r.number.push(o),i.push(Sk),n.push(parseFloat(u))),++o,ww)).split(ww);return{values:n,split:l,indexes:r,types:i}}function Ok(e){return zu(e).values}function Tk(e){const{split:t,types:n}=zu(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const l=n[s];l===Sk?o+=lu(i[s]):l===Pk?o+=Qt.transform(i[s]):o+=i[s]}return o}}const YR=e=>typeof e=="number"?0:e;function QR(e){const t=Ok(e);return Tk(e)(t.map(YR))}const lo={test:GR,parse:Ok,createTransformer:Tk,getAnimatableNone:QR},JR=new Set(["brightness","contrast","saturate","opacity"]);function e5(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Zx)||[];if(!r)return e;const i=n.replace(r,"");let o=JR.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const t5=/\b([a-z-]*)\(.*?\)/gu,Fg={...lo,getAnimatableNone:e=>{const t=e.match(t5);return t?t.map(e5).join(" "):e}},n5={...Cx,color:Qt,backgroundColor:Qt,outlineColor:Qt,fill:Qt,stroke:Qt,borderColor:Qt,borderTopColor:Qt,borderRightColor:Qt,borderBottomColor:Qt,borderLeftColor:Qt,filter:Fg,WebkitFilter:Fg},Kx=e=>n5[e];function Ak(e,t){let n=Kx(e);return n!==Fg&&(n=lo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const r5=new Set(["auto","none","0"]);function i5(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!r5.has(o)&&zu(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Ak(n,i)}const Sw=e=>e===Hs||e===ge,Pw=(e,t)=>parseFloat(e.split(", ")[t]),Ow=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Pw(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?Pw(o[1],e):0}},o5=new Set(["x","y","z"]),a5=Ws.filter(e=>!o5.has(e));function s5(e){const t=[];return a5.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const vs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Ow(4,13),y:Ow(5,14)};vs.translateX=vs.x;vs.translateY=vs.y;const qo=new Set;let Vg=!1,Ug=!1;function Ek(){if(Ug){const e=Array.from(qo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=s5(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var l;(l=r.getValue(o))===null||l===void 0||l.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ug=!1,Vg=!1,qo.forEach(e=>e.complete()),qo.clear()}function kk(){qo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ug=!0)})}function l5(){kk(),Ek()}class qx{constructor(t,n,r,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(qo.add(this),Vg||(Vg=!0,rt.read(kk),rt.resolveKeyframes(Ek))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const s=i==null?void 0:i.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const u=r.readValue(n,l);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=l),i&&s===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),qo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,qo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Mk=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),u5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function c5(e){const t=u5.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Ck(e,t,n=1){const[r,i]=c5(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Mk(s)?parseFloat(s):s}return Mx(i)?Ck(i,t,n+1):i}const jk=e=>t=>t.test(e),f5={test:e=>e==="auto",parse:e=>e},$k=[Hs,ge,Vr,Ri,eR,JD,f5],Tw=e=>$k.find(jk(e));class Nk extends qx{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let f=t[u];if(typeof f=="string"&&(f=f.trim(),Mx(f))){const d=Ck(f,n.current);d!==void 0&&(t[u]=d),u===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!ck.has(r)||t.length!==2)return;const[i,o]=t,s=Tw(i),l=Tw(o);if(s!==l)if(Sw(s)&&Sw(l))for(let u=0;u<t.length;u++){const f=t[u];typeof f=="string"&&(t[u]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)FR(t[i])&&r.push(i);r.length&&i5(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=vs[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const s=i.length-1,l=i[s];i[s]=vs[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,f])=>{n.getValue(u).set(f)}),this.resolveNoneKeyframes()}}const Aw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(lo.test(e)||e==="0")&&!e.startsWith("url("));function h5(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function d5(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=Aw(i,t),l=Aw(o,t);return!s||!l?!1:h5(e)||(n==="spring"||Rx(n))&&r}const p5=e=>e!==null;function gp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(p5),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const m5=40;class Lk{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ur.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>m5?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&l5(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ur.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:l,onUpdate:u,isGenerator:f}=this.options;if(!f&&!d5(t,r,i,o))if(s)this.options.duration=0;else{u&&u(gp(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ct=(e,t,n)=>e+(t-e)*n;function ev(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function v5({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;i=ev(u,l,e+1/3),o=ev(u,l,e),s=ev(u,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function Hh(e,t){return n=>n>0?t:e}const tv=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},g5=[Bg,Bo,Wa],y5=e=>g5.find(t=>t.test(e));function Ew(e){const t=y5(e);if(!t)return!1;let n=t.parse(e);return t===Wa&&(n=v5(n)),n}const kw=(e,t)=>{const n=Ew(e),r=Ew(t);if(!n||!r)return Hh(e,t);const i={...n};return o=>(i.red=tv(n.red,r.red,o),i.green=tv(n.green,r.green,o),i.blue=tv(n.blue,r.blue,o),i.alpha=ct(n.alpha,r.alpha,o),Bo.transform(i))},x5=(e,t)=>n=>t(e(n)),Mc=(...e)=>e.reduce(x5),Wg=new Set(["none","hidden"]);function _5(e,t){return Wg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function b5(e,t){return n=>ct(e,t,n)}function Xx(e){return typeof e=="number"?b5:typeof e=="string"?Mx(e)?Hh:Qt.test(e)?kw:P5:Array.isArray(e)?Ik:typeof e=="object"?Qt.test(e)?kw:w5:Hh}function Ik(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>Xx(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function w5(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Xx(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function S5(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],l=e.indexes[s][i[s]],u=(n=e.values[l])!==null&&n!==void 0?n:0;r[o]=u,i[s]++}return r}const P5=(e,t)=>{const n=lo.createTransformer(t),r=zu(e),i=zu(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Wg.has(e)&&!i.values.length||Wg.has(t)&&!r.values.length?_5(e,t):Mc(Ik(S5(r,i),i.values),n):Hh(e,t)};function Dk(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ct(e,t,n):Xx(e)(e,t)}const O5=5;function Rk(e,t,n){const r=Math.max(t-O5,0);return fk(n-e(r),t-r)}const pt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},nv=.001;function T5({duration:e=pt.duration,bounce:t=pt.bounce,velocity:n=pt.velocity,mass:r=pt.mass}){let i,o,s=1-t;s=wi(pt.minDamping,pt.maxDamping,s),e=wi(pt.minDuration,pt.maxDuration,pi(e)),s<1?(i=f=>{const d=f*s,h=d*e,m=d-n,v=Hg(f,s),b=Math.exp(-h);return nv-m/v*b},o=f=>{const h=f*s*e,m=h*n+n,v=Math.pow(s,2)*Math.pow(f,2)*e,b=Math.exp(-h),x=Hg(Math.pow(f,2),s);return(-i(f)+nv>0?-1:1)*((m-v)*b)/x}):(i=f=>{const d=Math.exp(-f*e),h=(f-n)*e+1;return-nv+d*h},o=f=>{const d=Math.exp(-f*e),h=(n-f)*(e*e);return d*h});const l=5/e,u=E5(i,o,l);if(e=di(e),isNaN(u))return{stiffness:pt.stiffness,damping:pt.damping,duration:e};{const f=Math.pow(u,2)*r;return{stiffness:f,damping:s*2*Math.sqrt(r*f),duration:e}}}const A5=12;function E5(e,t,n){let r=n;for(let i=1;i<A5;i++)r=r-e(r)/t(r);return r}function Hg(e,t){return e*Math.sqrt(1-t*t)}const k5=["duration","bounce"],M5=["stiffness","damping","mass"];function Mw(e,t){return t.some(n=>e[n]!==void 0)}function C5(e){let t={velocity:pt.velocity,stiffness:pt.stiffness,damping:pt.damping,mass:pt.mass,isResolvedFromDuration:!1,...e};if(!Mw(e,M5)&&Mw(e,k5))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*wi(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:pt.mass,stiffness:i,damping:o}}else{const n=T5(e);t={...t,...n,mass:pt.mass},t.isResolvedFromDuration=!0}return t}function zk(e=pt.visualDuration,t=pt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:f,mass:d,duration:h,velocity:m,isResolvedFromDuration:v}=C5({...n,velocity:-pi(n.velocity||0)}),b=m||0,x=f/(2*Math.sqrt(u*d)),S=s-o,y=pi(Math.sqrt(u/d)),_=Math.abs(S)<5;r||(r=_?pt.restSpeed.granular:pt.restSpeed.default),i||(i=_?pt.restDelta.granular:pt.restDelta.default);let w;if(x<1){const P=Hg(y,x);w=A=>{const M=Math.exp(-x*y*A);return s-M*((b+x*y*S)/P*Math.sin(P*A)+S*Math.cos(P*A))}}else if(x===1)w=P=>s-Math.exp(-y*P)*(S+(b+y*S)*P);else{const P=y*Math.sqrt(x*x-1);w=A=>{const M=Math.exp(-x*y*A),C=Math.min(P*A,300);return s-M*((b+x*y*S)*Math.sinh(C)+P*S*Math.cosh(C))/P}}const E={calculatedDuration:v&&h||null,next:P=>{const A=w(P);if(v)l.done=P>=h;else{let M=0;x<1&&(M=P===0?di(b):Rk(w,P,A));const C=Math.abs(M)<=r,N=Math.abs(s-A)<=i;l.done=C&&N}return l.value=l.done?s:A,l},toString:()=>{const P=Math.min(rk(E),Dg),A=ik(M=>E.next(P*M).value,P,30);return P+"ms "+A}};return E}function Cw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:u,restDelta:f=.5,restSpeed:d}){const h=e[0],m={done:!1,value:h},v=C=>l!==void 0&&C<l||u!==void 0&&C>u,b=C=>l===void 0?u:u===void 0||Math.abs(l-C)<Math.abs(u-C)?l:u;let x=n*t;const S=h+x,y=s===void 0?S:s(S);y!==S&&(x=y-h);const _=C=>-x*Math.exp(-C/r),w=C=>y+_(C),E=C=>{const N=_(C),B=w(C);m.done=Math.abs(N)<=f,m.value=m.done?y:B};let P,A;const M=C=>{v(m.value)&&(P=C,A=zk({keyframes:[m.value,b(m.value)],velocity:Rk(w,C,m.value),damping:i,stiffness:o,restDelta:f,restSpeed:d}))};return M(0),{calculatedDuration:null,next:C=>{let N=!1;return!A&&P===void 0&&(N=!0,E(C),M(C)),P!==void 0&&C>=P?A.next(C-P):(!N&&E(C),m)}}}const j5=kc(.42,0,1,1),$5=kc(0,0,.58,1),Bk=kc(.42,0,.58,1),N5=e=>Array.isArray(e)&&typeof e[0]!="number",L5={linear:In,easeIn:j5,easeInOut:Bk,easeOut:$5,circIn:Hx,circInOut:_k,circOut:xk,backIn:Wx,backInOut:gk,backOut:vk,anticipate:yk},jw=e=>{if(zx(e)){DE(e.length===4);const[t,n,r,i]=e;return kc(t,n,r,i)}else if(typeof e=="string")return L5[e];return e};function I5(e,t,n){const r=[],i=n||Dk,o=e.length-1;for(let s=0;s<o;s++){let l=i(e[s],e[s+1]);if(t){const u=Array.isArray(t)?t[s]||In:t;l=Mc(u,l)}r.push(l)}return r}function D5(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(DE(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=I5(t,r,i),u=l.length,f=d=>{if(s&&d<e[0])return t[0];let h=0;if(u>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const m=ps(e[h],e[h+1],d);return l[h](m)};return n?d=>f(wi(e[0],e[o-1],d)):f}function R5(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ps(0,t,r);e.push(ct(n,1,i))}}function z5(e){const t=[0];return R5(t,e.length-1),t}function B5(e,t){return e.map(n=>n*t)}function F5(e,t){return e.map(()=>t||Bk).splice(0,e.length-1)}function Zh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=N5(r)?r.map(jw):jw(r),o={done:!1,value:t[0]},s=B5(n&&n.length===t.length?n:z5(t),e),l=D5(s,t,{ease:Array.isArray(i)?i:F5(t,i)});return{calculatedDuration:e,next:u=>(o.value=l(u),o.done=u>=e,o)}}const V5=e=>{const t=({timestamp:n})=>e(n);return{start:()=>rt.update(t,!0),stop:()=>so(t),now:()=>Wt.isProcessing?Wt.timestamp:Ur.now()}},U5={decay:Cw,inertia:Cw,tween:Zh,keyframes:Zh,spring:zk},W5=e=>e/100;class Yx extends Lk{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,s=(i==null?void 0:i.KeyframeResolver)||qx,l=(u,f)=>this.onKeyframesResolved(u,f);this.resolver=new s(o,l,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,l=Rx(n)?n:U5[n]||Zh;let u,f;l!==Zh&&typeof t[0]!="number"&&(u=Mc(W5,Dk(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});o==="mirror"&&(f=l({...this.options,keyframes:[...t].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=rk(d));const{calculatedDuration:h}=d,m=h+i,v=m*(r+1)-i;return{generator:d,mirroredGenerator:f,mapPercentToKeyframes:u,calculatedDuration:h,resolvedDuration:m,totalDuration:v}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:C}=this.options;return{done:!0,value:C[C.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:l,keyframes:u,calculatedDuration:f,totalDuration:d,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:v,repeatType:b,repeatDelay:x,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const y=this.currentTime-m*(this.speed>=0?1:-1),_=this.speed>=0?y<0:y>d;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let w=this.currentTime,E=o;if(v){const C=Math.min(this.currentTime,d)/h;let N=Math.floor(C),B=C%1;!B&&C>=1&&(B=1),B===1&&N--,N=Math.min(N,v+1),!!(N%2)&&(b==="reverse"?(B=1-B,x&&(B-=x/h)):b==="mirror"&&(E=s)),w=wi(0,1,B)*h}const P=_?{done:!1,value:u[0]}:E.next(w);l&&(P.value=l(P.value));let{done:A}=P;!_&&f!==null&&(A=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return M&&i!==void 0&&(P.value=gp(u,this.options,i)),S&&S(P.value),M&&this.finish(),P}get duration(){const{resolved:t}=this;return t?pi(t.calculatedDuration):0}get time(){return pi(this.currentTime)}set time(t){t=di(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=pi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=V5,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const H5=new Set(["opacity","clipPath","filter","transform"]);function Z5(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:l="easeInOut",times:u}={}){const f={[t]:n};u&&(f.offset=u);const d=ak(l,i);return Array.isArray(d)&&(f.easing=d),e.animate(f,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const G5=Sx(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Gh=10,K5=2e4;function q5(e){return Rx(e.type)||e.type==="spring"||!ok(e.ease)}function X5(e,t){const n=new Yx({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<K5;)r=n.sample(o),i.push(r.value),o+=Gh;return{times:void 0,keyframes:i,duration:o-Gh,ease:"linear"}}const Fk={anticipate:yk,backInOut:gk,circInOut:_k};function Y5(e){return e in Fk}class $w extends Lk{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new Nk(o,(s,l)=>this.onKeyframesResolved(s,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:s,motionValue:l,name:u,startTime:f}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof o=="string"&&Wh()&&Y5(o)&&(o=Fk[o]),q5(this.options)){const{onComplete:h,onUpdate:m,motionValue:v,element:b,...x}=this.options,S=X5(t,x);t=S.keyframes,t.length===1&&(t[1]=t[0]),r=S.duration,i=S.times,o=S.ease,s="keyframes"}const d=Z5(l.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return d.startTime=f??this.calcStartTime(),this.pendingTimeline?(gw(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;l.set(gp(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:s,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return pi(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return pi(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=di(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return In;const{animation:r}=n;gw(r,t)}return In}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:s,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:f,onUpdate:d,onComplete:h,element:m,...v}=this.options,b=new Yx({...v,keyframes:r,duration:i,type:o,ease:s,times:l,isGenerator:!0}),x=di(this.time);f.setWithVelocity(b.sample(x-Gh).value,b.sample(x).value,Gh)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:s,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:f}=n.owner.getProps();return G5()&&r&&H5.has(r)&&!u&&!f&&!i&&o!=="mirror"&&s!==0&&l!=="inertia"}}const Q5={type:"spring",stiffness:500,damping:25,restSpeed:10},J5=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),e3={type:"keyframes",duration:.8},t3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},n3=(e,{keyframes:t})=>t.length>2?e3:fa.has(e)?e.startsWith("scale")?J5(t[1]):Q5:t3;function r3({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:l,from:u,elapsed:f,...d}){return!!Object.keys(d).length}const Qx=(e,t,n,r={},i,o)=>s=>{const l=Dx(r,e)||{},u=l.delay||r.delay||0;let{elapsed:f=0}=r;f=f-di(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-f,onUpdate:m=>{t.set(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};r3(l)||(d={...d,...n3(e,d)}),d.duration&&(d.duration=di(d.duration)),d.repeatDelay&&(d.repeatDelay=di(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=gp(d.keyframes,l);if(m!==void 0)return rt.update(()=>{d.onUpdate(m),d.onComplete()}),new wR([])}return!o&&$w.supports(d)?new $w(d):new Yx(d)};function i3({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Vk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:l,...u}=t;r&&(s=r);const f=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in u){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),v=u[h];if(v===void 0||d&&i3(d,h))continue;const b={delay:n,...Dx(s||{},h)};let x=!1;if(window.MotionHandoffAnimation){const y=hk(e);if(y){const _=window.MotionHandoffAnimation(y,h,rt);_!==null&&(b.startTime=_,x=!0)}}zg(e,h),m.start(Qx(h,m,v,e.shouldReduceMotion&&ck.has(h)?{type:!1}:b,e,x));const S=m.animation;S&&f.push(S)}return l&&Promise.all(f).then(()=>{rt.update(()=>{l&&IR(e,l)})}),f}function Zg(e,t,n={}){var r;const i=vp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(Vk(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:m}=o;return o3(e,t,d+f,h,m,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[f,d]=u==="beforeChildren"?[s,l]:[l,s];return f().then(()=>d())}else return Promise.all([s(),l(n.delay)])}function o3(e,t,n=0,r=0,i=1,o){const s=[],l=(e.variantChildren.size-1)*r,u=i===1?(f=0)=>f*r:(f=0)=>l-f*r;return Array.from(e.variantChildren).sort(a3).forEach((f,d)=>{f.notify("AnimationStart",t),s.push(Zg(f,t,{...o,delay:n+u(d)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(s)}function a3(e,t){return e.sortNodePosition(t)}function s3(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Zg(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Zg(e,t,n);else{const i=typeof t=="function"?vp(e,t,n.custom):t;r=Promise.all(Vk(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const l3=Ox.length;function Uk(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Uk(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<l3;n++){const r=Ox[n],i=e.props[r];(Iu(i)||i===!1)&&(t[r]=i)}return t}const u3=[...Px].reverse(),c3=Px.length;function f3(e){return t=>Promise.all(t.map(({animation:n,options:r})=>s3(e,n,r)))}function h3(e){let t=f3(e),n=Nw(),r=!0;const i=u=>(f,d)=>{var h;const m=vp(e,d,u==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:v,transitionEnd:b,...x}=m;f={...f,...x,...b}}return f};function o(u){t=u(e)}function s(u){const{props:f}=e,d=Uk(e.parent)||{},h=[],m=new Set;let v={},b=1/0;for(let S=0;S<c3;S++){const y=u3[S],_=n[y],w=f[y]!==void 0?f[y]:d[y],E=Iu(w),P=y===u?_.isActive:null;P===!1&&(b=S);let A=w===d[y]&&w!==f[y]&&E;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),_.protectedKeys={...v},!_.isActive&&P===null||!w&&!_.prevProp||pp(w)||typeof w=="boolean")continue;const M=d3(_.prevProp,w);let C=M||y===u&&_.isActive&&!A&&E||S>b&&E,N=!1;const B=Array.isArray(w)?w:[w];let z=B.reduce(i(y),{});P===!1&&(z={});const{prevResolvedValues:R={}}=_,K={...R,...z},H=G=>{C=!0,m.has(G)&&(N=!0,m.delete(G)),_.needsAnimating[G]=!0;const $=e.getValue(G);$&&($.liveStyle=!1)};for(const G in K){const $=z[G],q=R[G];if(v.hasOwnProperty(G))continue;let V=!1;Ig($)&&Ig(q)?V=!nk($,q):V=$!==q,V?$!=null?H(G):m.add(G):$!==void 0&&m.has(G)?H(G):_.protectedKeys[G]=!0}_.prevProp=w,_.prevResolvedValues=z,_.isActive&&(v={...v,...z}),r&&e.blockInitialAnimation&&(C=!1),C&&(!(A&&M)||N)&&h.push(...B.map(G=>({animation:G,options:{type:y}})))}if(m.size){const S={};m.forEach(y=>{const _=e.getBaseTarget(y),w=e.getValue(y);w&&(w.liveStyle=!0),S[y]=_??null}),h.push({animation:S})}let x=!!h.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(h):Promise.resolve()}function l(u,f){var d;if(n[u].isActive===f)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(m=>{var v;return(v=m.animationState)===null||v===void 0?void 0:v.setActive(u,f)}),n[u].isActive=f;const h=s(u);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Nw(),r=!0}}}function d3(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!nk(t,e):!1}function Eo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Nw(){return{animate:Eo(!0),whileInView:Eo(),whileHover:Eo(),whileTap:Eo(),whileDrag:Eo(),whileFocus:Eo(),exit:Eo()}}class ho{constructor(t){this.isMounted=!1,this.node=t}update(){}}class p3 extends ho{constructor(t){super(t),t.animationState||(t.animationState=h3(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();pp(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let m3=0;class v3 extends ho{constructor(){super(...arguments),this.id=m3++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const g3={animation:{Feature:p3},exit:{Feature:v3}};function Bu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Cc(e){return{point:{x:e.pageX,y:e.pageY}}}const y3=e=>t=>Bx(t)&&e(t,Cc(t));function uu(e,t,n,r){return Bu(e,t,y3(n),r)}const Lw=(e,t)=>Math.abs(e-t);function x3(e,t){const n=Lw(e.x,t.x),r=Lw(e.y,t.y);return Math.sqrt(n**2+r**2)}class Wk{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=iv(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,v=x3(h.offset,{x:0,y:0})>=3;if(!m&&!v)return;const{point:b}=h,{timestamp:x}=Wt;this.history.push({...b,timestamp:x});const{onStart:S,onMove:y}=this.handlers;m||(S&&S(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=rv(m,this.transformPagePoint),rt.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:v,onSessionEnd:b,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=iv(h.type==="pointercancel"?this.lastMoveEventInfo:rv(m,this.transformPagePoint),this.history);this.startEvent&&v&&v(h,S),b&&b(h,S)},!Bx(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Cc(t),l=rv(s,this.transformPagePoint),{point:u}=l,{timestamp:f}=Wt;this.history=[{...u,timestamp:f}];const{onSessionStart:d}=n;d&&d(t,iv(l,this.history)),this.removeListeners=Mc(uu(this.contextWindow,"pointermove",this.handlePointerMove),uu(this.contextWindow,"pointerup",this.handlePointerUp),uu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),so(this.updatePoint)}}function rv(e,t){return t?{point:t(e.point)}:e}function Iw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function iv({point:e},t){return{point:e,delta:Iw(e,Hk(t)),offset:Iw(e,_3(t)),velocity:b3(t,.1)}}function _3(e){return e[0]}function Hk(e){return e[e.length-1]}function b3(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Hk(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>di(t)));)n--;if(!r)return{x:0,y:0};const o=pi(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const Zk=1e-4,w3=1-Zk,S3=1+Zk,Gk=.01,P3=0-Gk,O3=0+Gk;function Rn(e){return e.max-e.min}function T3(e,t,n){return Math.abs(e-t)<=n}function Dw(e,t,n,r=.5){e.origin=r,e.originPoint=ct(t.min,t.max,e.origin),e.scale=Rn(n)/Rn(t),e.translate=ct(n.min,n.max,e.origin)-e.originPoint,(e.scale>=w3&&e.scale<=S3||isNaN(e.scale))&&(e.scale=1),(e.translate>=P3&&e.translate<=O3||isNaN(e.translate))&&(e.translate=0)}function cu(e,t,n,r){Dw(e.x,t.x,n.x,r?r.originX:void 0),Dw(e.y,t.y,n.y,r?r.originY:void 0)}function Rw(e,t,n){e.min=n.min+t.min,e.max=e.min+Rn(t)}function A3(e,t,n){Rw(e.x,t.x,n.x),Rw(e.y,t.y,n.y)}function zw(e,t,n){e.min=t.min-n.min,e.max=e.min+Rn(t)}function fu(e,t,n){zw(e.x,t.x,n.x),zw(e.y,t.y,n.y)}function E3(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ct(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ct(n,e,r.max):Math.min(e,n)),e}function Bw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function k3(e,{top:t,left:n,bottom:r,right:i}){return{x:Bw(e.x,n,i),y:Bw(e.y,t,r)}}function Fw(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function M3(e,t){return{x:Fw(e.x,t.x),y:Fw(e.y,t.y)}}function C3(e,t){let n=.5;const r=Rn(e),i=Rn(t);return i>r?n=ps(t.min,t.max-r,e.min):r>i&&(n=ps(e.min,e.max-i,t.min)),wi(0,1,n)}function j3(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Gg=.35;function $3(e=Gg){return e===!1?e=0:e===!0&&(e=Gg),{x:Vw(e,"left","right"),y:Vw(e,"top","bottom")}}function Vw(e,t,n){return{min:Uw(e,t),max:Uw(e,n)}}function Uw(e,t){return typeof e=="number"?e:e[t]||0}const Ww=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ha=()=>({x:Ww(),y:Ww()}),Hw=()=>({min:0,max:0}),yt=()=>({x:Hw(),y:Hw()});function Qn(e){return[e("x"),e("y")]}function Kk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function N3({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function L3(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ov(e){return e===void 0||e===1}function Kg({scale:e,scaleX:t,scaleY:n}){return!ov(e)||!ov(t)||!ov(n)}function jo(e){return Kg(e)||qk(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function qk(e){return Zw(e.x)||Zw(e.y)}function Zw(e){return e&&e!=="0%"}function Kh(e,t,n){const r=e-n,i=t*r;return n+i}function Gw(e,t,n,r,i){return i!==void 0&&(e=Kh(e,i,r)),Kh(e,n,r)+t}function qg(e,t=0,n=1,r,i){e.min=Gw(e.min,t,n,r,i),e.max=Gw(e.max,t,n,r,i)}function Xk(e,{x:t,y:n}){qg(e.x,t.translate,t.scale,t.originPoint),qg(e.y,n.translate,n.scale,n.originPoint)}const Kw=.999999999999,qw=1.0000000000001;function I3(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l<i;l++){o=n[l],s=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ga(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Xk(e,s)),r&&jo(o.latestValues)&&Ga(e,o.latestValues))}t.x<qw&&t.x>Kw&&(t.x=1),t.y<qw&&t.y>Kw&&(t.y=1)}function Za(e,t){e.min=e.min+t,e.max=e.max+t}function Xw(e,t,n,r,i=.5){const o=ct(e.min,e.max,i);qg(e,t,n,o,r)}function Ga(e,t){Xw(e.x,t.x,t.scaleX,t.scale,t.originX),Xw(e.y,t.y,t.scaleY,t.scale,t.originY)}function Yk(e,t){return Kk(L3(e.getBoundingClientRect(),t))}function D3(e,t,n){const r=Yk(e,n),{scroll:i}=t;return i&&(Za(r.x,i.offset.x),Za(r.y,i.offset.y)),r}const Qk=({current:e})=>e?e.ownerDocument.defaultView:null,R3=new WeakMap;class z3{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=yt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Cc(d).point)},o=(d,h)=>{const{drag:m,dragPropagation:v,onDragStart:b}=this.getProps();if(m&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=CR(m),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qn(S=>{let y=this.getAxisMotionValue(S).get()||0;if(Vr.test(y)){const{projection:_}=this.visualElement;if(_&&_.layout){const w=_.layout.layoutBox[S];w&&(y=Rn(w)*(parseFloat(y)/100))}}this.originPoint[S]=y}),b&&rt.postRender(()=>b(d,h)),zg(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},s=(d,h)=>{const{dragPropagation:m,dragDirectionLock:v,onDirectionLock:b,onDrag:x}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:S}=h;if(v&&this.currentDirection===null){this.currentDirection=B3(S),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",h.point,S),this.updateAxis("y",h.point,S),this.visualElement.render(),x&&x(d,h)},l=(d,h)=>this.stop(d,h),u=()=>Qn(d=>{var h;return this.getAnimationState(d)==="paused"&&((h=this.getAxisMotionValue(d).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:f}=this.getProps();this.panSession=new Wk(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:Qk(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&rt.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!zf(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=E3(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Ua(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=k3(i.layoutBox,n):this.constraints=!1,this.elastic=$3(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Qn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=j3(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ua(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=D3(r,i.root,this.visualElement.getTransformPagePoint());let s=M3(i.layout.layoutBox,o);if(n){const l=n(N3(s));this.hasMutatedConstraints=!!l,l&&(s=Kk(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},f=Qn(d=>{if(!zf(d,n,this.currentDirection))return;let h=u&&u[d]||{};s&&(h={min:0,max:0});const m=i?200:1e6,v=i?40:1e7,b={type:"inertia",velocity:r?t[d]:0,bounceStiffness:m,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(d,b)});return Promise.all(f).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return zg(this.visualElement,t),r.start(Qx(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qn(n=>{const{drag:r}=this.getProps();if(!zf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[n];o.set(t[n]-ct(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ua(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Qn(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==!1){const u=l.get();i[s]=C3({min:u,max:u},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qn(s=>{if(!zf(s,t,null))return;const l=this.getAxisMotionValue(s),{min:u,max:f}=this.constraints[s];l.set(ct(u,f,i[s]))})}addListeners(){if(!this.visualElement.current)return;R3.set(this.visualElement,this);const t=this.visualElement.current,n=uu(t,"pointerdown",u=>{const{drag:f,dragListener:d=!0}=this.getProps();f&&d&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Ua(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),rt.read(r);const s=Bu(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f})=>{this.isDragging&&f&&(Qn(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=u[d].translate,h.set(h.get()+u[d].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Gg,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function zf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function B3(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class F3 extends ho{constructor(t){super(t),this.removeGroupControls=In,this.removeListeners=In,this.controls=new z3(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||In}unmount(){this.removeGroupControls(),this.removeListeners()}}const Yw=e=>(t,n)=>{e&&rt.postRender(()=>e(t,n))};class V3 extends ho{constructor(){super(...arguments),this.removePointerDownListener=In}onPointerDown(t){this.session=new Wk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Qk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Yw(t),onStart:Yw(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&rt.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=uu(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const gh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Qw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Cl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ge.test(e))e=parseFloat(e);else return e;const n=Qw(e,t.target.x),r=Qw(e,t.target.y);return`${n}% ${r}%`}},U3={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=lo.parse(e);if(i.length>5)return r;const o=lo.createTransformer(e),s=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,u=n.y.scale*t.y;i[0+s]/=l,i[1+s]/=u;const f=ct(l,u,.5);return typeof i[2+s]=="number"&&(i[2+s]/=f),typeof i[3+s]=="number"&&(i[3+s]/=f),o(i)}};class W3 extends j.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;cR(H3),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),gh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||rt.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ax.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Jk(e){const[t,n]=LE(),r=j.useContext(xx);return O.jsx(W3,{...e,layoutGroup:r,switchLayoutGroup:j.useContext(UE),isPresent:t,safeToRemove:n})}const H3={borderRadius:{...Cl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Cl,borderTopRightRadius:Cl,borderBottomLeftRadius:Cl,borderBottomRightRadius:Cl,boxShadow:U3};function Z3(e,t,n){const r=rn(e)?e:Ru(e);return r.start(Qx("",r,t,n)),r.animation}function G3(e){return e instanceof SVGElement&&e.tagName!=="svg"}const K3=(e,t)=>e.depth-t.depth;class q3{constructor(){this.children=[],this.isDirty=!1}add(t){Fx(this.children,t),this.isDirty=!0}remove(t){Vx(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(K3),this.isDirty=!1,this.children.forEach(t)}}function X3(e,t){const n=Ur.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(so(r),e(o-t))};return rt.read(r,!0),()=>so(r)}const eM=["TopLeft","TopRight","BottomLeft","BottomRight"],Y3=eM.length,Jw=e=>typeof e=="string"?parseFloat(e):e,eS=e=>typeof e=="number"||ge.test(e);function Q3(e,t,n,r,i,o){i?(e.opacity=ct(0,n.opacity!==void 0?n.opacity:1,J3(r)),e.opacityExit=ct(t.opacity!==void 0?t.opacity:1,0,ez(r))):o&&(e.opacity=ct(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<Y3;s++){const l=`border${eM[s]}Radius`;let u=tS(t,l),f=tS(n,l);if(u===void 0&&f===void 0)continue;u||(u=0),f||(f=0),u===0||f===0||eS(u)===eS(f)?(e[l]=Math.max(ct(Jw(u),Jw(f),r),0),(Vr.test(f)||Vr.test(u))&&(e[l]+="%")):e[l]=f}(t.rotate||n.rotate)&&(e.rotate=ct(t.rotate||0,n.rotate||0,r))}function tS(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const J3=tM(0,.5,xk),ez=tM(.5,.95,In);function tM(e,t,n){return r=>r<e?0:r>t?1:n(ps(e,t,r))}function nS(e,t){e.min=t.min,e.max=t.max}function Kn(e,t){nS(e.x,t.x),nS(e.y,t.y)}function rS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iS(e,t,n,r,i){return e-=t,e=Kh(e,1/n,r),i!==void 0&&(e=Kh(e,1/i,r)),e}function tz(e,t=0,n=1,r=.5,i,o=e,s=e){if(Vr.test(t)&&(t=parseFloat(t),t=ct(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=ct(o.min,o.max,r);e===o&&(l-=t),e.min=iS(e.min,t,n,l,i),e.max=iS(e.max,t,n,l,i)}function oS(e,t,[n,r,i],o,s){tz(e,t[n],t[r],t[i],t.scale,o,s)}const nz=["x","scaleX","originX"],rz=["y","scaleY","originY"];function aS(e,t,n,r){oS(e.x,t,nz,n?n.x:void 0,r?r.x:void 0),oS(e.y,t,rz,n?n.y:void 0,r?r.y:void 0)}function sS(e){return e.translate===0&&e.scale===1}function nM(e){return sS(e.x)&&sS(e.y)}function lS(e,t){return e.min===t.min&&e.max===t.max}function iz(e,t){return lS(e.x,t.x)&&lS(e.y,t.y)}function uS(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rM(e,t){return uS(e.x,t.x)&&uS(e.y,t.y)}function cS(e){return Rn(e.x)/Rn(e.y)}function fS(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class oz{constructor(){this.members=[]}add(t){Fx(this.members,t),t.scheduleRender()}remove(t){if(Vx(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function az(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:d,rotateX:h,rotateY:m,skewX:v,skewY:b}=n;f&&(r=`perspective(${f}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),v&&(r+=`skewX(${v}deg) `),b&&(r+=`skewY(${b}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(r+=`scale(${l}, ${u})`),r||"none"}const $o={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Xl=typeof window<"u"&&window.MotionDebug!==void 0,av=["","X","Y","Z"],sz={visibility:"hidden"},hS=1e3;let lz=0;function sv(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function iM(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=hk(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",rt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&iM(r)}function oM({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=lz++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Xl&&($o.totalNodes=$o.resolvedTargetDeltas=$o.recalculatedProjection=0),this.nodes.forEach(fz),this.nodes.forEach(vz),this.nodes.forEach(gz),this.nodes.forEach(hz),Xl&&window.MotionDebug.record($o)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new q3)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Ux),this.eventHandlers.get(s).add(l)}notifyListeners(s,...l){const u=this.eventHandlers.get(s);u&&u.notify(...l)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=G3(s),this.instance=s;const{layoutId:u,layout:f,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(f||u)&&(this.isLayoutDirty=!0),e){let h;const m=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=X3(m,250),gh.hasAnimatedSinceResize&&(gh.hasAnimatedSinceResize=!1,this.nodes.forEach(pS))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||f)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeTargetChanged:v,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||d.getDefaultTransition()||wz,{onLayoutAnimationStart:S,onLayoutAnimationComplete:y}=d.getProps(),_=!this.targetLayout||!rM(this.targetLayout,b)||v,w=!m&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||m&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,w);const E={...Dx(x,"layout"),onPlay:S,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else m||pS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,so(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(yz),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&iM(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:u}=this.options;if(l===void 0&&!u)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(dS);return}this.isUpdating||this.nodes.forEach(pz),this.isUpdating=!1,this.nodes.forEach(mz),this.nodes.forEach(uz),this.nodes.forEach(cz),this.clearAllSnapshots();const l=Ur.now();Wt.delta=wi(0,1e3/60,l-Wt.timestamp),Wt.timestamp=l,Wt.isProcessing=!0,Ym.update.process(Wt),Ym.preRender.process(Wt),Ym.render.process(Wt),Wt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ax.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(dz),this.sharedNodes.forEach(xz)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,rt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){rt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=yt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(l=!1),l){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!nM(this.projectionDelta),u=this.getTransformTemplate(),f=u?u(this.latestValues,""):void 0,d=f!==this.prevTransformTemplateValue;s&&(l||jo(this.latestValues)||d)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const l=this.measurePageBox();let u=this.removeElementScroll(l);return s&&(u=this.removeTransform(u)),Sz(u),{animationId:this.root.animationId,measuredBox:l,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:l}=this.options;if(!l)return yt();const u=l.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(Pz))){const{scroll:d}=this.root;d&&(Za(u.x,d.offset.x),Za(u.y,d.offset.y))}return u}removeElementScroll(s){var l;const u=yt();if(Kn(u,s),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return u;for(let f=0;f<this.path.length;f++){const d=this.path[f],{scroll:h,options:m}=d;d!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&Kn(u,s),Za(u.x,h.offset.x),Za(u.y,h.offset.y))}return u}applyTransform(s,l=!1){const u=yt();Kn(u,s);for(let f=0;f<this.path.length;f++){const d=this.path[f];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Ga(u,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),jo(d.latestValues)&&Ga(u,d.latestValues)}return jo(this.latestValues)&&Ga(u,this.latestValues),u}removeTransform(s){const l=yt();Kn(l,s);for(let u=0;u<this.path.length;u++){const f=this.path[u];if(!f.instance||!jo(f.latestValues))continue;Kg(f.latestValues)&&f.updateSnapshot();const d=yt(),h=f.measurePageBox();Kn(d,h),aS(l,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,d)}return jo(this.latestValues)&&aS(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Wt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var l;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==u;if(!(s||f&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=Wt.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=yt(),this.relativeTargetOrigin=yt(),fu(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),Kn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=yt(),this.targetWithTransforms=yt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),A3(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Kn(this.target,this.layout.layoutBox),Xk(this.target,this.targetDelta)):Kn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=yt(),this.relativeTargetOrigin=yt(),fu(this.relativeTargetOrigin,this.target,v.target),Kn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Xl&&$o.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Kg(this.parent.latestValues)||qk(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const l=this.getLead(),u=!!this.resumingFrom||this!==l;let f=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(f=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===Wt.timestamp&&(f=!1),f)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;Kn(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,v=this.treeScale.y;I3(this.layoutCorrected,this.treeScale,this.path,u),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=yt());const{target:b}=l;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(rS(this.prevProjectionDelta.x,this.projectionDelta.x),rS(this.prevProjectionDelta.y,this.projectionDelta.y)),cu(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==v||!fS(this.projectionDelta.x,this.prevProjectionDelta.x)||!fS(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),Xl&&$o.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),s){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ha(),this.projectionDelta=Ha(),this.projectionDeltaWithTransform=Ha()}setAnimationOrigin(s,l=!1){const u=this.snapshot,f=u?u.latestValues:{},d={...this.latestValues},h=Ha();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const m=yt(),v=u?u.source:void 0,b=this.layout?this.layout.source:void 0,x=v!==b,S=this.getStack(),y=!S||S.members.length<=1,_=!!(x&&!y&&this.options.crossfade===!0&&!this.path.some(bz));this.animationProgress=0;let w;this.mixTargetDelta=E=>{const P=E/1e3;mS(h.x,s.x,P),mS(h.y,s.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fu(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),_z(this.relativeTarget,this.relativeTargetOrigin,m,P),w&&iz(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=yt()),Kn(w,this.relativeTarget)),x&&(this.animationValues=d,Q3(d,f,this.latestValues,P,_,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(so(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rt.update(()=>{gh.hasAnimatedSinceResize=!0,this.currentAnimation=Z3(0,hS,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(hS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:u,layout:f,latestValues:d}=s;if(!(!l||!u||!f)){if(this!==s&&this.layout&&f&&aM(this.options.animationType,this.layout.layoutBox,f.layoutBox)){u=this.target||yt();const h=Rn(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+h;const m=Rn(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+m}Kn(l,u),Ga(l,d),cu(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new oz),this.sharedNodes.get(s).add(l);const f=l.options.initialPromotionConfig;l.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:u}={}){const f=this.getStack();f&&f.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const f={};u.z&&sv("z",s,f,this.animationValues);for(let d=0;d<av.length;d++)sv(`rotate${av[d]}`,s,f,this.animationValues),sv(`skew${av[d]}`,s,f,this.animationValues);s.render();for(const d in f)s.setStaticValue(d,f[d]),this.animationValues&&(this.animationValues[d]=f[d]);s.scheduleRender()}getProjectionStyles(s){var l,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return sz;const f={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=mh(s==null?void 0:s.pointerEvents)||"",f.transform=d?d(this.latestValues,""):"none",f;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=mh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!jo(this.latestValues)&&(x.transform=d?d({},""):"none",this.hasProjected=!1),x}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),f.transform=az(this.projectionDeltaWithTransform,this.treeScale,m),d&&(f.transform=d(m,f.transform));const{x:v,y:b}=this.projectionDelta;f.transformOrigin=`${v.origin*100}% ${b.origin*100}% 0`,h.animationValues?f.opacity=h===this?(u=(l=m.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:f.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const x in Uh){if(m[x]===void 0)continue;const{correct:S,applyTo:y}=Uh[x],_=f.transform==="none"?m[x]:S(m[x],h);if(y){const w=y.length;for(let E=0;E<w;E++)f[y[E]]=_}else f[x]=_}return this.options.layoutId&&(f.pointerEvents=h===this?mh(s==null?void 0:s.pointerEvents)||"":"none"),f}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(dS),this.root.sharedNodes.clear()}}}function uz(e){e.updateLayout()}function cz(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?Qn(h=>{const m=s?n.measuredBox[h]:n.layoutBox[h],v=Rn(m);m.min=r[h].min,m.max=m.min+v}):aM(o,n.layoutBox,r)&&Qn(h=>{const m=s?n.measuredBox[h]:n.layoutBox[h],v=Rn(r[h]);m.max=m.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+v)});const l=Ha();cu(l,r,n.layoutBox);const u=Ha();s?cu(u,e.applyTransform(i,!0),n.measuredBox):cu(u,r,n.layoutBox);const f=!nM(l);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:v}=h;if(m&&v){const b=yt();fu(b,n.layoutBox,m.layoutBox);const x=yt();fu(x,r,v.layoutBox),rM(b,x)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=b,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:l,hasLayoutChanged:f,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function fz(e){Xl&&$o.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function hz(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function dz(e){e.clearSnapshot()}function dS(e){e.clearMeasurements()}function pz(e){e.isLayoutDirty=!1}function mz(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function pS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vz(e){e.resolveTargetDelta()}function gz(e){e.calcProjection()}function yz(e){e.resetSkewAndRotation()}function xz(e){e.removeLeadSnapshot()}function mS(e,t,n){e.translate=ct(t.translate,0,n),e.scale=ct(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vS(e,t,n,r){e.min=ct(t.min,n.min,r),e.max=ct(t.max,n.max,r)}function _z(e,t,n,r){vS(e.x,t.x,n.x,r),vS(e.y,t.y,n.y,r)}function bz(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const wz={duration:.45,ease:[.4,0,.1,1]},gS=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),yS=gS("applewebkit/")&&!gS("chrome/")?Math.round:In;function xS(e){e.min=yS(e.min),e.max=yS(e.max)}function Sz(e){xS(e.x),xS(e.y)}function aM(e,t,n){return e==="position"||e==="preserve-aspect"&&!T3(cS(t),cS(n),.2)}function Pz(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Oz=oM({attachResizeListener:(e,t)=>Bu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),lv={current:void 0},sM=oM({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lv.current){const e=new Oz({});e.mount(window),e.setOptions({layoutScroll:!0}),lv.current=e}return lv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Tz={pan:{Feature:V3},drag:{Feature:F3,ProjectionNode:sM,MeasureLayout:Jk}};function _S(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&rt.postRender(()=>o(t,Cc(t)))}class Az extends ho{mount(){const{current:t}=this.node;t&&(this.unmount=TR(t,n=>(_S(this.node,n,"Start"),r=>_S(this.node,r,"End"))))}unmount(){}}class Ez extends ho{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Mc(Bu(this.node.current,"focus",()=>this.onFocus()),Bu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function bS(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&rt.postRender(()=>o(t,Cc(t)))}class kz extends ho{mount(){const{current:t}=this.node;t&&(this.unmount=MR(t,n=>(bS(this.node,n,"Start"),(r,{success:i})=>bS(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Xg=new WeakMap,uv=new WeakMap,Mz=e=>{const t=Xg.get(e.target);t&&t(e)},Cz=e=>{e.forEach(Mz)};function jz({root:e,...t}){const n=e||document;uv.has(n)||uv.set(n,{});const r=uv.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Cz,{root:e,...t})),r[i]}function $z(e,t,n){const r=jz(t);return Xg.set(e,n),r.observe(e),()=>{Xg.delete(e),r.unobserve(e)}}const Nz={some:0,all:1};class Lz extends ho{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Nz[i]},l=u=>{const{isIntersecting:f}=u;if(this.isInView===f||(this.isInView=f,o&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),m=f?d:h;m&&m(u)};return $z(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Iz(t,n))&&this.startObserver()}unmount(){}}function Iz({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Dz={inView:{Feature:Lz},tap:{Feature:kz},focus:{Feature:Ez},hover:{Feature:Az}},Rz={layout:{ProjectionNode:sM,MeasureLayout:Jk}},Yg={current:null},lM={current:!1};function zz(){if(lM.current=!0,!!wx)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Yg.current=e.matches;e.addListener(t),t()}else Yg.current=!1}const Bz=[...$k,Qt,lo],Fz=e=>Bz.find(jk(e)),wS=new WeakMap;function Vz(e,t,n){for(const r in t){const i=t[r],o=n[r];if(rn(i))e.addValue(r,i);else if(rn(o))e.addValue(r,Ru(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Ru(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const SS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Uz{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=qx,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=Ur.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,rt.render(this.render,!1,!0))};const{latestValues:u,renderState:f,onUpdate:d}=s;this.onUpdate=d,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=mp(n),this.isVariantNode=FE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in m){const b=m[v];u[v]!==void 0&&rn(b)&&b.set(u[v],!1)}}mount(t){this.current=t,wS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),lM.current||zz(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Yg.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){wS.delete(this.current),this.projection&&this.projection.unmount(),so(this.notifyUpdate),so(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=fa.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&rt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ms){const n=ms[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):yt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<SS.length;r++){const i=SS[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=Vz(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ru(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Mk(i)||bk(i))?i=parseFloat(i):!Fz(i)&&lo.test(n)&&(i=Ak(t,n)),this.setBaseTarget(t,rn(i)?i.get():i)),rn(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=kx(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!rn(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ux),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class uM extends Uz{constructor(){super(...arguments),this.KeyframeResolver=Nk}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;rn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Wz(e){return window.getComputedStyle(e)}class Hz extends uM{constructor(){super(...arguments),this.type="html",this.renderInstance=XE}readValueFromInstance(t,n){if(fa.has(n)){const r=Kx(n);return r&&r.default||0}else{const r=Wz(t),i=(GE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Yk(t,n)}build(t,n,r){jx(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ix(t,n,r)}}class Zz extends uM{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=yt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(fa.has(n)){const r=Kx(n);return r&&r.default||0}return n=YE.has(n)?n:Tx(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return ek(t,n,r)}build(t,n,r){$x(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){QE(t,n,r,i)}mount(t){this.isSVGTag=Lx(t.tagName),super.mount(t)}}const Gz=(e,t)=>Ex(e)?new Zz(t):new Hz(t,{allowProjection:e!==j.Fragment}),Kz=xR({...g3,...Dz,...Tz,...Rz},Gz),qz=ND(Kz);/**
|
|
49
|
+
* @license lucide-react v0.344.0 - ISC
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the ISC license.
|
|
52
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/var Xz={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
54
|
+
* @license lucide-react v0.344.0 - ISC
|
|
55
|
+
*
|
|
56
|
+
* This source code is licensed under the ISC license.
|
|
57
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
58
|
+
*/const Yz=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Oe=(e,t)=>{const n=j.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:l="",children:u,...f},d)=>j.createElement("svg",{ref:d,...Xz,width:i,height:i,stroke:r,strokeWidth:s?Number(o)*24/Number(i):o,className:["lucide",`lucide-${Yz(e)}`,l].join(" "),...f},[...t.map(([h,m])=>j.createElement(h,m)),...Array.isArray(u)?u:[u]]));return n.displayName=`${e}`,n};/**
|
|
59
|
+
* @license lucide-react v0.344.0 - ISC
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the ISC license.
|
|
62
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
+
*/const Qz=Oe("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/**
|
|
64
|
+
* @license lucide-react v0.344.0 - ISC
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the ISC license.
|
|
67
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/const Jz=Oe("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
69
|
+
* @license lucide-react v0.344.0 - ISC
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the ISC license.
|
|
72
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
+
*/const e4=Oe("Anchor",[["path",{d:"M12 22V8",key:"qkxhtm"}],["path",{d:"M5 12H2a10 10 0 0 0 20 0h-3",key:"1hv3nh"}],["circle",{cx:"12",cy:"5",r:"3",key:"rqqgnr"}]]);/**
|
|
74
|
+
* @license lucide-react v0.344.0 - ISC
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the ISC license.
|
|
77
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
+
*/const t4=Oe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
79
|
+
* @license lucide-react v0.344.0 - ISC
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the ISC license.
|
|
82
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
+
*/const n4=Oe("Battery",[["rect",{width:"16",height:"10",x:"2",y:"7",rx:"2",ry:"2",key:"1w10f2"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}]]);/**
|
|
84
|
+
* @license lucide-react v0.344.0 - ISC
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the ISC license.
|
|
87
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/const r4=Oe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
89
|
+
* @license lucide-react v0.344.0 - ISC
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the ISC license.
|
|
92
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/const cM=Oe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
94
|
+
* @license lucide-react v0.344.0 - ISC
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the ISC license.
|
|
97
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/const i4=Oe("CloudDrizzle",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 19v1",key:"1dk2by"}],["path",{d:"M8 14v1",key:"84yxot"}],["path",{d:"M16 19v1",key:"v220m7"}],["path",{d:"M16 14v1",key:"g12gj6"}],["path",{d:"M12 21v1",key:"q8vafk"}],["path",{d:"M12 16v1",key:"1mx6rx"}]]);/**
|
|
99
|
+
* @license lucide-react v0.344.0 - ISC
|
|
100
|
+
*
|
|
101
|
+
* This source code is licensed under the ISC license.
|
|
102
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
+
*/const o4=Oe("CloudLightning",[["path",{d:"M6 16.326A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 .5 8.973",key:"1cez44"}],["path",{d:"m13 12-3 5h4l-3 5",key:"1t22er"}]]);/**
|
|
104
|
+
* @license lucide-react v0.344.0 - ISC
|
|
105
|
+
*
|
|
106
|
+
* This source code is licensed under the ISC license.
|
|
107
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
+
*/const a4=Oe("CloudRain",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
|
109
|
+
* @license lucide-react v0.344.0 - ISC
|
|
110
|
+
*
|
|
111
|
+
* This source code is licensed under the ISC license.
|
|
112
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
+
*/const s4=Oe("CloudSun",[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}],["path",{d:"M15.947 12.65a4 4 0 0 0-5.925-4.128",key:"dpwdj0"}],["path",{d:"M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z",key:"s09mg5"}]]);/**
|
|
114
|
+
* @license lucide-react v0.344.0 - ISC
|
|
115
|
+
*
|
|
116
|
+
* This source code is licensed under the ISC license.
|
|
117
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
+
*/const PS=Oe("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);/**
|
|
119
|
+
* @license lucide-react v0.344.0 - ISC
|
|
120
|
+
*
|
|
121
|
+
* This source code is licensed under the ISC license.
|
|
122
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
+
*/const l4=Oe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
124
|
+
* @license lucide-react v0.344.0 - ISC
|
|
125
|
+
*
|
|
126
|
+
* This source code is licensed under the ISC license.
|
|
127
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
+
*/const u4=Oe("Droplet",[["path",{d:"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z",key:"c7niix"}]]);/**
|
|
129
|
+
* @license lucide-react v0.344.0 - ISC
|
|
130
|
+
*
|
|
131
|
+
* This source code is licensed under the ISC license.
|
|
132
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
+
*/const c4=Oe("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/**
|
|
134
|
+
* @license lucide-react v0.344.0 - ISC
|
|
135
|
+
*
|
|
136
|
+
* This source code is licensed under the ISC license.
|
|
137
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
+
*/const f4=Oe("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
|
|
139
|
+
* @license lucide-react v0.344.0 - ISC
|
|
140
|
+
*
|
|
141
|
+
* This source code is licensed under the ISC license.
|
|
142
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
+
*/const h4=Oe("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/**
|
|
144
|
+
* @license lucide-react v0.344.0 - ISC
|
|
145
|
+
*
|
|
146
|
+
* This source code is licensed under the ISC license.
|
|
147
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
+
*/const d4=Oe("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
149
|
+
* @license lucide-react v0.344.0 - ISC
|
|
150
|
+
*
|
|
151
|
+
* This source code is licensed under the ISC license.
|
|
152
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
+
*/const p4=Oe("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
|
|
154
|
+
* @license lucide-react v0.344.0 - ISC
|
|
155
|
+
*
|
|
156
|
+
* This source code is licensed under the ISC license.
|
|
157
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
+
*/const m4=Oe("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
|
|
159
|
+
* @license lucide-react v0.344.0 - ISC
|
|
160
|
+
*
|
|
161
|
+
* This source code is licensed under the ISC license.
|
|
162
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
+
*/const fM=Oe("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
164
|
+
* @license lucide-react v0.344.0 - ISC
|
|
165
|
+
*
|
|
166
|
+
* This source code is licensed under the ISC license.
|
|
167
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
168
|
+
*/const hM=Oe("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
169
|
+
* @license lucide-react v0.344.0 - ISC
|
|
170
|
+
*
|
|
171
|
+
* This source code is licensed under the ISC license.
|
|
172
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
+
*/const OS=Oe("Navigation2",[["polygon",{points:"12 2 19 21 12 17 5 21 12 2",key:"x8c0qg"}]]);/**
|
|
174
|
+
* @license lucide-react v0.344.0 - ISC
|
|
175
|
+
*
|
|
176
|
+
* This source code is licensed under the ISC license.
|
|
177
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
+
*/const v4=Oe("PlugZap",[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]]);/**
|
|
179
|
+
* @license lucide-react v0.344.0 - ISC
|
|
180
|
+
*
|
|
181
|
+
* This source code is licensed under the ISC license.
|
|
182
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
183
|
+
*/const dM=Oe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
184
|
+
* @license lucide-react v0.344.0 - ISC
|
|
185
|
+
*
|
|
186
|
+
* This source code is licensed under the ISC license.
|
|
187
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
+
*/const g4=Oe("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
|
|
189
|
+
* @license lucide-react v0.344.0 - ISC
|
|
190
|
+
*
|
|
191
|
+
* This source code is licensed under the ISC license.
|
|
192
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
+
*/const y4=Oe("Radar",[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]]);/**
|
|
194
|
+
* @license lucide-react v0.344.0 - ISC
|
|
195
|
+
*
|
|
196
|
+
* This source code is licensed under the ISC license.
|
|
197
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
+
*/const x4=Oe("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
|
199
|
+
* @license lucide-react v0.344.0 - ISC
|
|
200
|
+
*
|
|
201
|
+
* This source code is licensed under the ISC license.
|
|
202
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
+
*/const _4=Oe("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
204
|
+
* @license lucide-react v0.344.0 - ISC
|
|
205
|
+
*
|
|
206
|
+
* This source code is licensed under the ISC license.
|
|
207
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
+
*/const b4=Oe("Shirt",[["path",{d:"M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z",key:"1wgbhj"}]]);/**
|
|
209
|
+
* @license lucide-react v0.344.0 - ISC
|
|
210
|
+
*
|
|
211
|
+
* This source code is licensed under the ISC license.
|
|
212
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
+
*/const w4=Oe("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
|
|
214
|
+
* @license lucide-react v0.344.0 - ISC
|
|
215
|
+
*
|
|
216
|
+
* This source code is licensed under the ISC license.
|
|
217
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
+
*/const TS=Oe("Snowflake",[["line",{x1:"2",x2:"22",y1:"12",y2:"12",key:"1dnqot"}],["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"m20 16-4-4 4-4",key:"rquw4f"}],["path",{d:"m4 8 4 4-4 4",key:"12s3z9"}],["path",{d:"m16 4-4 4-4-4",key:"1tumq1"}],["path",{d:"m8 20 4-4 4 4",key:"9p200w"}]]);/**
|
|
219
|
+
* @license lucide-react v0.344.0 - ISC
|
|
220
|
+
*
|
|
221
|
+
* This source code is licensed under the ISC license.
|
|
222
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
+
*/const S4=Oe("Sofa",[["path",{d:"M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3",key:"1dgpiv"}],["path",{d:"M2 11v5a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v2H6v-2a2 2 0 0 0-4 0Z",key:"u5qfb7"}],["path",{d:"M4 18v2",key:"jwo5n2"}],["path",{d:"M20 18v2",key:"1ar1qi"}],["path",{d:"M12 4v9",key:"oqhhn3"}]]);/**
|
|
224
|
+
* @license lucide-react v0.344.0 - ISC
|
|
225
|
+
*
|
|
226
|
+
* This source code is licensed under the ISC license.
|
|
227
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
+
*/const Jx=Oe("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
229
|
+
* @license lucide-react v0.344.0 - ISC
|
|
230
|
+
*
|
|
231
|
+
* This source code is licensed under the ISC license.
|
|
232
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
+
*/const pM=Oe("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
|
|
234
|
+
* @license lucide-react v0.344.0 - ISC
|
|
235
|
+
*
|
|
236
|
+
* This source code is licensed under the ISC license.
|
|
237
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
+
*/const mM=Oe("Thermometer",[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]]);/**
|
|
239
|
+
* @license lucide-react v0.344.0 - ISC
|
|
240
|
+
*
|
|
241
|
+
* This source code is licensed under the ISC license.
|
|
242
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
243
|
+
*/const P4=Oe("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
|
|
244
|
+
* @license lucide-react v0.344.0 - ISC
|
|
245
|
+
*
|
|
246
|
+
* This source code is licensed under the ISC license.
|
|
247
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
248
|
+
*/const O4=Oe("Triangle",[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]]);/**
|
|
249
|
+
* @license lucide-react v0.344.0 - ISC
|
|
250
|
+
*
|
|
251
|
+
* This source code is licensed under the ISC license.
|
|
252
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
253
|
+
*/const T4=Oe("Wind",[["path",{d:"M17.7 7.7a2.5 2.5 0 1 1 1.8 4.3H2",key:"1k4u03"}],["path",{d:"M9.6 4.6A2 2 0 1 1 11 8H2",key:"b7d0fd"}],["path",{d:"M12.6 19.4A2 2 0 1 0 14 16H2",key:"1p5cb3"}]]);/**
|
|
254
|
+
* @license lucide-react v0.344.0 - ISC
|
|
255
|
+
*
|
|
256
|
+
* This source code is licensed under the ISC license.
|
|
257
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
258
|
+
*/const cv=Oe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
259
|
+
* @license lucide-react v0.344.0 - ISC
|
|
260
|
+
*
|
|
261
|
+
* This source code is licensed under the ISC license.
|
|
262
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
263
|
+
*/const A4=Oe("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),E4=()=>{const e=window.location.hostname;return e==="localhost"||e==="127.0.0.1"||e.startsWith("192.168.")?"https://192.168.111.240:1881":`https://${e}:1881`},k4=()=>{const[e,t]=j.useState(null),[n,r]=j.useState(null),[i,o]=j.useState(0),[s,l]=j.useState(!0),[u,f]=j.useState(null),[d,h]=j.useState(!1),m=E4(),v=`${m}/api/boat`,b=`${m}/api/boat/control`,x=j.useRef(!1),S=j.useCallback(async()=>{if(x.current)return;x.current=!0;const w=new AbortController,E=setTimeout(()=>w.abort(),4e3);try{const P=await fetch(v,{signal:w.signal});if(clearTimeout(E),!P.ok)throw new Error(`Errore Server: ${P.status}`);const A=await P.json();t(A),r(new Date),l(!1),f(null),h(!1)}catch(P){clearTimeout(E),P.name!=="AbortError"&&(console.error("Fetch Error:",P),f(P.message)),l(!0),h(!1)}finally{x.current=!1}},[v]),y=async(w,E)=>{h(!0);try{if(!(await fetch(b,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({device:w,state:E})})).ok)throw new Error("Comando fallito");setTimeout(S,1e3)}catch(P){console.error("Errore invio comando:",P),h(!1)}};j.useEffect(()=>{let w=null;const E=()=>{w&&(clearInterval(w),w=null),document.hidden||(S(),w=setInterval(S,5e3))};return E(),document.addEventListener("visibilitychange",E),window.addEventListener("pageshow",E),window.addEventListener("focus",E),window.addEventListener("online",E),()=>{w&&clearInterval(w),document.removeEventListener("visibilitychange",E),window.removeEventListener("pageshow",E),window.removeEventListener("focus",E),window.removeEventListener("online",E)}},[]),j.useEffect(()=>{const w=setInterval(()=>{if(!document.hidden)if(n){const E=Math.floor((new Date-n)/1e3);o(E),l(E>30),E>=8&&!d&&!x.current&&S()}else x.current||S()},1e3);return()=>clearInterval(w)},[n,d,S]);const _=i<15?"bg-green-500":i<30?"bg-orange-500":"bg-red-500";return{data:e,secondsSinceLastUpdate:i,isDataStale:s,statusColor:_,isUpdating:d,error:u,apiUrl:m,toggleSwitch:(w,E)=>y(w,E),setShoreLimit:w=>y("shore_limit",w)}};function M4(e,t){const n=j.useRef(t);j.useEffect(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}function C4(e,t,n){t.center!==n.center&&e.setLatLng(t.center),t.radius!=null&&t.radius!==n.radius&&e.setRadius(t.radius)}const j4=1;function $4(e){return Object.freeze({__version:j4,map:e})}function e_(e,t){return Object.freeze({...e,...t})}const vM=j.createContext(null),gM=vM.Provider;function t_(){const e=j.useContext(vM);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function yM(e){function t(n,r){const{instance:i,context:o}=e(n).current;return j.useImperativeHandle(r,()=>i),n.children==null?null:D.createElement(gM,{value:o},n.children)}return j.forwardRef(t)}function N4(e){function t(n,r){const{instance:i}=e(n).current;return j.useImperativeHandle(r,()=>i),null}return j.forwardRef(t)}function xM(e,t){const n=j.useRef();j.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function n_(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}var Qg={exports:{}};/* @preserve
|
|
264
|
+
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
265
|
+
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
266
|
+
*/(function(e,t){(function(n,r){r(t)})(Ul,function(n){var r="1.9.4";function i(a){var c,p,g,T;for(p=1,g=arguments.length;p<g;p++){T=arguments[p];for(c in T)a[c]=T[c]}return a}var o=Object.create||function(){function a(){}return function(c){return a.prototype=c,new a}}();function s(a,c){var p=Array.prototype.slice;if(a.bind)return a.bind.apply(a,p.call(arguments,1));var g=p.call(arguments,2);return function(){return a.apply(c,g.length?g.concat(p.call(arguments)):arguments)}}var l=0;function u(a){return"_leaflet_id"in a||(a._leaflet_id=++l),a._leaflet_id}function f(a,c,p){var g,T,k,I;return I=function(){g=!1,T&&(k.apply(p,T),T=!1)},k=function(){g?T=arguments:(a.apply(p,arguments),setTimeout(I,c),g=!0)},k}function d(a,c,p){var g=c[1],T=c[0],k=g-T;return a===g&&p?a:((a-T)%k+k)%k+T}function h(){return!1}function m(a,c){if(c===!1)return a;var p=Math.pow(10,c===void 0?6:c);return Math.round(a*p)/p}function v(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function b(a){return v(a).split(/\s+/)}function x(a,c){Object.prototype.hasOwnProperty.call(a,"options")||(a.options=a.options?o(a.options):{});for(var p in c)a.options[p]=c[p];return a.options}function S(a,c,p){var g=[];for(var T in a)g.push(encodeURIComponent(p?T.toUpperCase():T)+"="+encodeURIComponent(a[T]));return(!c||c.indexOf("?")===-1?"?":"&")+g.join("&")}var y=/\{ *([\w_ -]+) *\}/g;function _(a,c){return a.replace(y,function(p,g){var T=c[g];if(T===void 0)throw new Error("No value provided for variable "+p);return typeof T=="function"&&(T=T(c)),T})}var w=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"};function E(a,c){for(var p=0;p<a.length;p++)if(a[p]===c)return p;return-1}var P="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function A(a){return window["webkit"+a]||window["moz"+a]||window["ms"+a]}var M=0;function C(a){var c=+new Date,p=Math.max(0,16-(c-M));return M=c+p,window.setTimeout(a,p)}var N=window.requestAnimationFrame||A("RequestAnimationFrame")||C,B=window.cancelAnimationFrame||A("CancelAnimationFrame")||A("CancelRequestAnimationFrame")||function(a){window.clearTimeout(a)};function z(a,c,p){if(p&&N===C)a.call(c);else return N.call(window,s(a,c))}function R(a){a&&B.call(window,a)}var K={__proto__:null,extend:i,create:o,bind:s,get lastId(){return l},stamp:u,throttle:f,wrapNum:d,falseFn:h,formatNum:m,trim:v,splitWords:b,setOptions:x,getParamString:S,template:_,isArray:w,indexOf:E,emptyImageUrl:P,requestFn:N,cancelFn:B,requestAnimFrame:z,cancelAnimFrame:R};function H(){}H.extend=function(a){var c=function(){x(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},p=c.__super__=this.prototype,g=o(p);g.constructor=c,c.prototype=g;for(var T in this)Object.prototype.hasOwnProperty.call(this,T)&&T!=="prototype"&&T!=="__super__"&&(c[T]=this[T]);return a.statics&&i(c,a.statics),a.includes&&(W(a.includes),i.apply(null,[g].concat(a.includes))),i(g,a),delete g.statics,delete g.includes,g.options&&(g.options=p.options?o(p.options):{},i(g.options,a.options)),g._initHooks=[],g.callInitHooks=function(){if(!this._initHooksCalled){p.callInitHooks&&p.callInitHooks.call(this),this._initHooksCalled=!0;for(var k=0,I=g._initHooks.length;k<I;k++)g._initHooks[k].call(this)}},c},H.include=function(a){var c=this.prototype.options;return i(this.prototype,a),a.options&&(this.prototype.options=c,this.mergeOptions(a.options)),this},H.mergeOptions=function(a){return i(this.prototype.options,a),this},H.addInitHook=function(a){var c=Array.prototype.slice.call(arguments,1),p=typeof a=="function"?a:function(){this[a].apply(this,c)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(p),this};function W(a){if(!(typeof L>"u"||!L||!L.Mixin)){a=w(a)?a:[a];for(var c=0;c<a.length;c++)a[c]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Z={on:function(a,c,p){if(typeof a=="object")for(var g in a)this._on(g,a[g],c);else{a=b(a);for(var T=0,k=a.length;T<k;T++)this._on(a[T],c,p)}return this},off:function(a,c,p){if(!arguments.length)delete this._events;else if(typeof a=="object")for(var g in a)this._off(g,a[g],c);else{a=b(a);for(var T=arguments.length===1,k=0,I=a.length;k<I;k++)T?this._off(a[k]):this._off(a[k],c,p)}return this},_on:function(a,c,p,g){if(typeof c!="function"){console.warn("wrong listener type: "+typeof c);return}if(this._listens(a,c,p)===!1){p===this&&(p=void 0);var T={fn:c,ctx:p};g&&(T.once=!0),this._events=this._events||{},this._events[a]=this._events[a]||[],this._events[a].push(T)}},_off:function(a,c,p){var g,T,k;if(this._events&&(g=this._events[a],!!g)){if(arguments.length===1){if(this._firingCount)for(T=0,k=g.length;T<k;T++)g[T].fn=h;delete this._events[a];return}if(typeof c!="function"){console.warn("wrong listener type: "+typeof c);return}var I=this._listens(a,c,p);if(I!==!1){var F=g[I];this._firingCount&&(F.fn=h,this._events[a]=g=g.slice()),g.splice(I,1)}}},fire:function(a,c,p){if(!this.listens(a,p))return this;var g=i({},c,{type:a,target:this,sourceTarget:c&&c.sourceTarget||this});if(this._events){var T=this._events[a];if(T){this._firingCount=this._firingCount+1||1;for(var k=0,I=T.length;k<I;k++){var F=T[k],U=F.fn;F.once&&this.off(a,U,F.ctx),U.call(F.ctx||this,g)}this._firingCount--}}return p&&this._propagateEvent(g),this},listens:function(a,c,p,g){typeof a!="string"&&console.warn('"string" type argument expected');var T=c;typeof c!="function"&&(g=!!c,T=void 0,p=void 0);var k=this._events&&this._events[a];if(k&&k.length&&this._listens(a,T,p)!==!1)return!0;if(g){for(var I in this._eventParents)if(this._eventParents[I].listens(a,c,p,g))return!0}return!1},_listens:function(a,c,p){if(!this._events)return!1;var g=this._events[a]||[];if(!c)return!!g.length;p===this&&(p=void 0);for(var T=0,k=g.length;T<k;T++)if(g[T].fn===c&&g[T].ctx===p)return T;return!1},once:function(a,c,p){if(typeof a=="object")for(var g in a)this._on(g,a[g],c,!0);else{a=b(a);for(var T=0,k=a.length;T<k;T++)this._on(a[T],c,p,!0)}return this},addEventParent:function(a){return this._eventParents=this._eventParents||{},this._eventParents[u(a)]=a,this},removeEventParent:function(a){return this._eventParents&&delete this._eventParents[u(a)],this},_propagateEvent:function(a){for(var c in this._eventParents)this._eventParents[c].fire(a.type,i({layer:a.target,propagatedFrom:a.target},a),!0)}};Z.addEventListener=Z.on,Z.removeEventListener=Z.clearAllEventListeners=Z.off,Z.addOneTimeEventListener=Z.once,Z.fireEvent=Z.fire,Z.hasEventListeners=Z.listens;var G=H.extend(Z);function $(a,c,p){this.x=p?Math.round(a):a,this.y=p?Math.round(c):c}var q=Math.trunc||function(a){return a>0?Math.floor(a):Math.ceil(a)};$.prototype={clone:function(){return new $(this.x,this.y)},add:function(a){return this.clone()._add(V(a))},_add:function(a){return this.x+=a.x,this.y+=a.y,this},subtract:function(a){return this.clone()._subtract(V(a))},_subtract:function(a){return this.x-=a.x,this.y-=a.y,this},divideBy:function(a){return this.clone()._divideBy(a)},_divideBy:function(a){return this.x/=a,this.y/=a,this},multiplyBy:function(a){return this.clone()._multiplyBy(a)},_multiplyBy:function(a){return this.x*=a,this.y*=a,this},scaleBy:function(a){return new $(this.x*a.x,this.y*a.y)},unscaleBy:function(a){return new $(this.x/a.x,this.y/a.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=q(this.x),this.y=q(this.y),this},distanceTo:function(a){a=V(a);var c=a.x-this.x,p=a.y-this.y;return Math.sqrt(c*c+p*p)},equals:function(a){return a=V(a),a.x===this.x&&a.y===this.y},contains:function(a){return a=V(a),Math.abs(a.x)<=Math.abs(this.x)&&Math.abs(a.y)<=Math.abs(this.y)},toString:function(){return"Point("+m(this.x)+", "+m(this.y)+")"}};function V(a,c,p){return a instanceof $?a:w(a)?new $(a[0],a[1]):a==null?a:typeof a=="object"&&"x"in a&&"y"in a?new $(a.x,a.y):new $(a,c,p)}function te(a,c){if(a)for(var p=c?[a,c]:a,g=0,T=p.length;g<T;g++)this.extend(p[g])}te.prototype={extend:function(a){var c,p;if(!a)return this;if(a instanceof $||typeof a[0]=="number"||"x"in a)c=p=V(a);else if(a=Q(a),c=a.min,p=a.max,!c||!p)return this;return!this.min&&!this.max?(this.min=c.clone(),this.max=p.clone()):(this.min.x=Math.min(c.x,this.min.x),this.max.x=Math.max(p.x,this.max.x),this.min.y=Math.min(c.y,this.min.y),this.max.y=Math.max(p.y,this.max.y)),this},getCenter:function(a){return V((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,a)},getBottomLeft:function(){return V(this.min.x,this.max.y)},getTopRight:function(){return V(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(a){var c,p;return typeof a[0]=="number"||a instanceof $?a=V(a):a=Q(a),a instanceof te?(c=a.min,p=a.max):c=p=a,c.x>=this.min.x&&p.x<=this.max.x&&c.y>=this.min.y&&p.y<=this.max.y},intersects:function(a){a=Q(a);var c=this.min,p=this.max,g=a.min,T=a.max,k=T.x>=c.x&&g.x<=p.x,I=T.y>=c.y&&g.y<=p.y;return k&&I},overlaps:function(a){a=Q(a);var c=this.min,p=this.max,g=a.min,T=a.max,k=T.x>c.x&&g.x<p.x,I=T.y>c.y&&g.y<p.y;return k&&I},isValid:function(){return!!(this.min&&this.max)},pad:function(a){var c=this.min,p=this.max,g=Math.abs(c.x-p.x)*a,T=Math.abs(c.y-p.y)*a;return Q(V(c.x-g,c.y-T),V(p.x+g,p.y+T))},equals:function(a){return a?(a=Q(a),this.min.equals(a.getTopLeft())&&this.max.equals(a.getBottomRight())):!1}};function Q(a,c){return!a||a instanceof te?a:new te(a,c)}function ae(a,c){if(a)for(var p=c?[a,c]:a,g=0,T=p.length;g<T;g++)this.extend(p[g])}ae.prototype={extend:function(a){var c=this._southWest,p=this._northEast,g,T;if(a instanceof he)g=a,T=a;else if(a instanceof ae){if(g=a._southWest,T=a._northEast,!g||!T)return this}else return a?this.extend(ce(a)||fe(a)):this;return!c&&!p?(this._southWest=new he(g.lat,g.lng),this._northEast=new he(T.lat,T.lng)):(c.lat=Math.min(g.lat,c.lat),c.lng=Math.min(g.lng,c.lng),p.lat=Math.max(T.lat,p.lat),p.lng=Math.max(T.lng,p.lng)),this},pad:function(a){var c=this._southWest,p=this._northEast,g=Math.abs(c.lat-p.lat)*a,T=Math.abs(c.lng-p.lng)*a;return new ae(new he(c.lat-g,c.lng-T),new he(p.lat+g,p.lng+T))},getCenter:function(){return new he((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new he(this.getNorth(),this.getWest())},getSouthEast:function(){return new he(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(a){typeof a[0]=="number"||a instanceof he||"lat"in a?a=ce(a):a=fe(a);var c=this._southWest,p=this._northEast,g,T;return a instanceof ae?(g=a.getSouthWest(),T=a.getNorthEast()):g=T=a,g.lat>=c.lat&&T.lat<=p.lat&&g.lng>=c.lng&&T.lng<=p.lng},intersects:function(a){a=fe(a);var c=this._southWest,p=this._northEast,g=a.getSouthWest(),T=a.getNorthEast(),k=T.lat>=c.lat&&g.lat<=p.lat,I=T.lng>=c.lng&&g.lng<=p.lng;return k&&I},overlaps:function(a){a=fe(a);var c=this._southWest,p=this._northEast,g=a.getSouthWest(),T=a.getNorthEast(),k=T.lat>c.lat&&g.lat<p.lat,I=T.lng>c.lng&&g.lng<p.lng;return k&&I},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(a,c){return a?(a=fe(a),this._southWest.equals(a.getSouthWest(),c)&&this._northEast.equals(a.getNorthEast(),c)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function fe(a,c){return a instanceof ae?a:new ae(a,c)}function he(a,c,p){if(isNaN(a)||isNaN(c))throw new Error("Invalid LatLng object: ("+a+", "+c+")");this.lat=+a,this.lng=+c,p!==void 0&&(this.alt=+p)}he.prototype={equals:function(a,c){if(!a)return!1;a=ce(a);var p=Math.max(Math.abs(this.lat-a.lat),Math.abs(this.lng-a.lng));return p<=(c===void 0?1e-9:c)},toString:function(a){return"LatLng("+m(this.lat,a)+", "+m(this.lng,a)+")"},distanceTo:function(a){return ze.distance(this,ce(a))},wrap:function(){return ze.wrapLatLng(this)},toBounds:function(a){var c=180*a/40075017,p=c/Math.cos(Math.PI/180*this.lat);return fe([this.lat-c,this.lng-p],[this.lat+c,this.lng+p])},clone:function(){return new he(this.lat,this.lng,this.alt)}};function ce(a,c,p){return a instanceof he?a:w(a)&&typeof a[0]!="object"?a.length===3?new he(a[0],a[1],a[2]):a.length===2?new he(a[0],a[1]):null:a==null?a:typeof a=="object"&&"lat"in a?new he(a.lat,"lng"in a?a.lng:a.lon,a.alt):c===void 0?null:new he(a,c,p)}var Ve={latLngToPoint:function(a,c){var p=this.projection.project(a),g=this.scale(c);return this.transformation._transform(p,g)},pointToLatLng:function(a,c){var p=this.scale(c),g=this.transformation.untransform(a,p);return this.projection.unproject(g)},project:function(a){return this.projection.project(a)},unproject:function(a){return this.projection.unproject(a)},scale:function(a){return 256*Math.pow(2,a)},zoom:function(a){return Math.log(a/256)/Math.LN2},getProjectedBounds:function(a){if(this.infinite)return null;var c=this.projection.bounds,p=this.scale(a),g=this.transformation.transform(c.min,p),T=this.transformation.transform(c.max,p);return new te(g,T)},infinite:!1,wrapLatLng:function(a){var c=this.wrapLng?d(a.lng,this.wrapLng,!0):a.lng,p=this.wrapLat?d(a.lat,this.wrapLat,!0):a.lat,g=a.alt;return new he(p,c,g)},wrapLatLngBounds:function(a){var c=a.getCenter(),p=this.wrapLatLng(c),g=c.lat-p.lat,T=c.lng-p.lng;if(g===0&&T===0)return a;var k=a.getSouthWest(),I=a.getNorthEast(),F=new he(k.lat-g,k.lng-T),U=new he(I.lat-g,I.lng-T);return new ae(F,U)}},ze=i({},Ve,{wrapLng:[-180,180],R:6371e3,distance:function(a,c){var p=Math.PI/180,g=a.lat*p,T=c.lat*p,k=Math.sin((c.lat-a.lat)*p/2),I=Math.sin((c.lng-a.lng)*p/2),F=k*k+Math.cos(g)*Math.cos(T)*I*I,U=2*Math.atan2(Math.sqrt(F),Math.sqrt(1-F));return this.R*U}}),oe=6378137,me={R:oe,MAX_LATITUDE:85.0511287798,project:function(a){var c=Math.PI/180,p=this.MAX_LATITUDE,g=Math.max(Math.min(p,a.lat),-p),T=Math.sin(g*c);return new $(this.R*a.lng*c,this.R*Math.log((1+T)/(1-T))/2)},unproject:function(a){var c=180/Math.PI;return new he((2*Math.atan(Math.exp(a.y/this.R))-Math.PI/2)*c,a.x*c/this.R)},bounds:function(){var a=oe*Math.PI;return new te([-a,-a],[a,a])}()};function ye(a,c,p,g){if(w(a)){this._a=a[0],this._b=a[1],this._c=a[2],this._d=a[3];return}this._a=a,this._b=c,this._c=p,this._d=g}ye.prototype={transform:function(a,c){return this._transform(a.clone(),c)},_transform:function(a,c){return c=c||1,a.x=c*(this._a*a.x+this._b),a.y=c*(this._c*a.y+this._d),a},untransform:function(a,c){return c=c||1,new $((a.x/c-this._b)/this._a,(a.y/c-this._d)/this._c)}};function J(a,c,p,g){return new ye(a,c,p,g)}var Le=i({},ze,{code:"EPSG:3857",projection:me,transformation:function(){var a=.5/(Math.PI*me.R);return J(a,.5,-a,.5)}()}),Se=i({},Le,{code:"EPSG:900913"});function Ue(a){return document.createElementNS("http://www.w3.org/2000/svg",a)}function We(a,c){var p="",g,T,k,I,F,U;for(g=0,k=a.length;g<k;g++){for(F=a[g],T=0,I=F.length;T<I;T++)U=F[T],p+=(T?"L":"M")+U.x+" "+U.y;p+=c?de.svg?"z":"x":""}return p||"M0 0"}var it=document.documentElement.style,Tt="ActiveXObject"in window,vn=Tt&&!document.addEventListener,An="msLaunchUri"in navigator&&!("documentMode"in document),zt=En("webkit"),Kt=En("android"),Y=En("android 2")||En("android 3"),_e=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),be=Kt&&En("Google")&&_e<537&&!("AudioNode"in window),Ie=!!window.opera,_t=!An&&En("chrome"),Ge=En("gecko")&&!zt&&!Ie&&!Tt,gt=!_t&&En("safari"),an=En("phantom"),sn="OTransition"in it,Un=navigator.platform.indexOf("Win")===0,Bt=Tt&&"transition"in it,qt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Y,ln="MozPerspective"in it,hr=!window.L_DISABLE_3D&&(Bt||qt||ln)&&!sn&&!an,gn=typeof orientation<"u"||En("mobile"),qr=gn&&zt,_o=gn&&qt,Mr=!window.PointerEvent&&window.MSPointerEvent,bo=!!(window.PointerEvent||Mr),wo="ontouchstart"in window||!!window.TouchEvent,So=!window.L_NO_TOUCH&&(wo||bo),zc=gn&&Ie,Bc=gn&&Ge,Fc=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Vc=function(){var a=!1;try{var c=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("testPassiveEventSupport",h,c),window.removeEventListener("testPassiveEventSupport",h,c)}catch{}return a}(),Uc=function(){return!!document.createElement("canvas").getContext}(),ga=!!(document.createElementNS&&Ue("svg").createSVGRect),Wc=!!ga&&function(){var a=document.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Hc=!ga&&function(){try{var a=document.createElement("div");a.innerHTML='<v:shape adj="1"/>';var c=a.firstChild;return c.style.behavior="url(#default#VML)",c&&typeof c.adj=="object"}catch{return!1}}(),Zc=navigator.platform.indexOf("Mac")===0,Gc=navigator.platform.indexOf("Linux")===0;function En(a){return navigator.userAgent.toLowerCase().indexOf(a)>=0}var de={ie:Tt,ielt9:vn,edge:An,webkit:zt,android:Kt,android23:Y,androidStock:be,opera:Ie,chrome:_t,gecko:Ge,safari:gt,phantom:an,opera12:sn,win:Un,ie3d:Bt,webkit3d:qt,gecko3d:ln,any3d:hr,mobile:gn,mobileWebkit:qr,mobileWebkit3d:_o,msPointer:Mr,pointer:bo,touch:So,touchNative:wo,mobileOpera:zc,mobileGecko:Bc,retina:Fc,passiveEvents:Vc,canvas:Uc,svg:ga,vml:Hc,inlineSvg:Wc,mac:Zc,linux:Gc},sl=de.msPointer?"MSPointerDown":"pointerdown",ll=de.msPointer?"MSPointerMove":"pointermove",ul=de.msPointer?"MSPointerUp":"pointerup",cl=de.msPointer?"MSPointerCancel":"pointercancel",ya={touchstart:sl,touchmove:ll,touchend:ul,touchcancel:cl},fl={touchstart:Jc,touchmove:Po,touchend:Po,touchcancel:Po},Xr={},hl=!1;function Kc(a,c,p){return c==="touchstart"&&Qc(),fl[c]?(p=fl[c].bind(this,p),a.addEventListener(ya[c],p,!1),p):(console.warn("wrong event specified:",c),h)}function qc(a,c,p){if(!ya[c]){console.warn("wrong event specified:",c);return}a.removeEventListener(ya[c],p,!1)}function Xc(a){Xr[a.pointerId]=a}function Yc(a){Xr[a.pointerId]&&(Xr[a.pointerId]=a)}function dl(a){delete Xr[a.pointerId]}function Qc(){hl||(document.addEventListener(sl,Xc,!0),document.addEventListener(ll,Yc,!0),document.addEventListener(ul,dl,!0),document.addEventListener(cl,dl,!0),hl=!0)}function Po(a,c){if(c.pointerType!==(c.MSPOINTER_TYPE_MOUSE||"mouse")){c.touches=[];for(var p in Xr)c.touches.push(Xr[p]);c.changedTouches=[c],a(c)}}function Jc(a,c){c.MSPOINTER_TYPE_TOUCH&&c.pointerType===c.MSPOINTER_TYPE_TOUCH&&Ft(c),Po(a,c)}function ef(a){var c={},p,g;for(g in a)p=a[g],c[g]=p&&p.bind?p.bind(a):p;return a=c,c.type="dblclick",c.detail=2,c.isTrusted=!1,c._simulated=!0,c}var tf=200;function nf(a,c){a.addEventListener("dblclick",c);var p=0,g;function T(k){if(k.detail!==1){g=k.detail;return}if(!(k.pointerType==="mouse"||k.sourceCapabilities&&!k.sourceCapabilities.firesTouchEvents)){var I=v1(k);if(!(I.some(function(U){return U instanceof HTMLLabelElement&&U.attributes.for})&&!I.some(function(U){return U instanceof HTMLInputElement||U instanceof HTMLSelectElement}))){var F=Date.now();F-p<=tf?(g++,g===2&&c(ef(k))):g=1,p=F}}}return a.addEventListener("click",T),{dblclick:c,simDblclick:T}}function rf(a,c){a.removeEventListener("dblclick",c.dblclick),a.removeEventListener("click",c.simDblclick)}var xa=Hn(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Ci=Hn(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),pl=Ci==="webkitTransition"||Ci==="OTransition"?Ci+"End":"transitionend";function ml(a){return typeof a=="string"?document.getElementById(a):a}function ji(a,c){var p=a.style[c]||a.currentStyle&&a.currentStyle[c];if((!p||p==="auto")&&document.defaultView){var g=document.defaultView.getComputedStyle(a,null);p=g?g[c]:null}return p==="auto"?null:p}function Ce(a,c,p){var g=document.createElement(a);return g.className=c||"",p&&p.appendChild(g),g}function ne(a){var c=a.parentNode;c&&c.removeChild(a)}function lt(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function ot(a){var c=a.parentNode;c&&c.lastChild!==a&&c.appendChild(a)}function un(a){var c=a.parentNode;c&&c.firstChild!==a&&c.insertBefore(a,c.firstChild)}function bt(a,c){if(a.classList!==void 0)return a.classList.contains(c);var p=Cr(a);return p.length>0&&new RegExp("(^|\\s)"+c+"(\\s|$)").test(p)}function pe(a,c){if(a.classList!==void 0)for(var p=b(c),g=0,T=p.length;g<T;g++)a.classList.add(p[g]);else if(!bt(a,c)){var k=Cr(a);kn(a,(k?k+" ":"")+c)}}function Ae(a,c){a.classList!==void 0?a.classList.remove(c):kn(a,v((" "+Cr(a)+" ").replace(" "+c+" "," ")))}function kn(a,c){a.className.baseVal===void 0?a.className=c:a.className.baseVal=c}function Cr(a){return a.correspondingElement&&(a=a.correspondingElement),a.className.baseVal===void 0?a.className:a.className.baseVal}function $t(a,c){"opacity"in a.style?a.style.opacity=c:"filter"in a.style&&Wn(a,c)}function Wn(a,c){var p=!1,g="DXImageTransform.Microsoft.Alpha";try{p=a.filters.item(g)}catch{if(c===1)return}c=Math.round(c*100),p?(p.Enabled=c!==100,p.Opacity=c):a.style.filter+=" progid:"+g+"(opacity="+c+")"}function Hn(a){for(var c=document.documentElement.style,p=0;p<a.length;p++)if(a[p]in c)return a[p];return!1}function yn(a,c,p){var g=c||new $(0,0);a.style[xa]=(de.ie3d?"translate("+g.x+"px,"+g.y+"px)":"translate3d("+g.x+"px,"+g.y+"px,0)")+(p?" scale("+p+")":"")}function Ke(a,c){a._leaflet_pos=c,de.any3d?yn(a,c):(a.style.left=c.x+"px",a.style.top=c.y+"px")}function dr(a){return a._leaflet_pos||new $(0,0)}var $i,Yr,_a;if("onselectstart"in document)$i=function(){we(window,"selectstart",Ft)},Yr=function(){Xe(window,"selectstart",Ft)};else{var Ni=Hn(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);$i=function(){if(Ni){var a=document.documentElement.style;_a=a[Ni],a[Ni]="none"}},Yr=function(){Ni&&(document.documentElement.style[Ni]=_a,_a=void 0)}}function im(){we(window,"dragstart",Ft)}function om(){Xe(window,"dragstart",Ft)}var of,am;function sm(a){for(;a.tabIndex===-1;)a=a.parentNode;a.style&&(af(),of=a,am=a.style.outlineStyle,a.style.outlineStyle="none",we(window,"keydown",af))}function af(){of&&(of.style.outlineStyle=am,of=void 0,am=void 0,Xe(window,"keydown",af))}function p1(a){do a=a.parentNode;while((!a.offsetWidth||!a.offsetHeight)&&a!==document.body);return a}function lm(a){var c=a.getBoundingClientRect();return{x:c.width/a.offsetWidth||1,y:c.height/a.offsetHeight||1,boundingClientRect:c}}var nN={__proto__:null,TRANSFORM:xa,TRANSITION:Ci,TRANSITION_END:pl,get:ml,getStyle:ji,create:Ce,remove:ne,empty:lt,toFront:ot,toBack:un,hasClass:bt,addClass:pe,removeClass:Ae,setClass:kn,getClass:Cr,setOpacity:$t,testProp:Hn,setTransform:yn,setPosition:Ke,getPosition:dr,get disableTextSelection(){return $i},get enableTextSelection(){return Yr},disableImageDrag:im,enableImageDrag:om,preventOutline:sm,restoreOutline:af,getSizedParentNode:p1,getScale:lm};function we(a,c,p,g){if(c&&typeof c=="object")for(var T in c)cm(a,T,c[T],p);else{c=b(c);for(var k=0,I=c.length;k<I;k++)cm(a,c[k],p,g)}return this}var jr="_leaflet_events";function Xe(a,c,p,g){if(arguments.length===1)m1(a),delete a[jr];else if(c&&typeof c=="object")for(var T in c)fm(a,T,c[T],p);else if(c=b(c),arguments.length===2)m1(a,function(F){return E(c,F)!==-1});else for(var k=0,I=c.length;k<I;k++)fm(a,c[k],p,g);return this}function m1(a,c){for(var p in a[jr]){var g=p.split(/\d/)[0];(!c||c(g))&&fm(a,g,null,null,p)}}var um={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function cm(a,c,p,g){var T=c+u(p)+(g?"_"+u(g):"");if(a[jr]&&a[jr][T])return this;var k=function(F){return p.call(g||a,F||window.event)},I=k;!de.touchNative&&de.pointer&&c.indexOf("touch")===0?k=Kc(a,c,k):de.touch&&c==="dblclick"?k=nf(a,k):"addEventListener"in a?c==="touchstart"||c==="touchmove"||c==="wheel"||c==="mousewheel"?a.addEventListener(um[c]||c,k,de.passiveEvents?{passive:!1}:!1):c==="mouseenter"||c==="mouseleave"?(k=function(F){F=F||window.event,dm(a,F)&&I(F)},a.addEventListener(um[c],k,!1)):a.addEventListener(c,I,!1):a.attachEvent("on"+c,k),a[jr]=a[jr]||{},a[jr][T]=k}function fm(a,c,p,g,T){T=T||c+u(p)+(g?"_"+u(g):"");var k=a[jr]&&a[jr][T];if(!k)return this;!de.touchNative&&de.pointer&&c.indexOf("touch")===0?qc(a,c,k):de.touch&&c==="dblclick"?rf(a,k):"removeEventListener"in a?a.removeEventListener(um[c]||c,k,!1):a.detachEvent("on"+c,k),a[jr][T]=null}function Oo(a){return a.stopPropagation?a.stopPropagation():a.originalEvent?a.originalEvent._stopped=!0:a.cancelBubble=!0,this}function hm(a){return cm(a,"wheel",Oo),this}function vl(a){return we(a,"mousedown touchstart dblclick contextmenu",Oo),a._leaflet_disable_click=!0,this}function Ft(a){return a.preventDefault?a.preventDefault():a.returnValue=!1,this}function To(a){return Ft(a),Oo(a),this}function v1(a){if(a.composedPath)return a.composedPath();for(var c=[],p=a.target;p;)c.push(p),p=p.parentNode;return c}function g1(a,c){if(!c)return new $(a.clientX,a.clientY);var p=lm(c),g=p.boundingClientRect;return new $((a.clientX-g.left)/p.x-c.clientLeft,(a.clientY-g.top)/p.y-c.clientTop)}var rN=de.linux&&de.chrome?window.devicePixelRatio:de.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function y1(a){return de.edge?a.wheelDeltaY/2:a.deltaY&&a.deltaMode===0?-a.deltaY/rN:a.deltaY&&a.deltaMode===1?-a.deltaY*20:a.deltaY&&a.deltaMode===2?-a.deltaY*60:a.deltaX||a.deltaZ?0:a.wheelDelta?(a.wheelDeltaY||a.wheelDelta)/2:a.detail&&Math.abs(a.detail)<32765?-a.detail*20:a.detail?a.detail/-32765*60:0}function dm(a,c){var p=c.relatedTarget;if(!p)return!0;try{for(;p&&p!==a;)p=p.parentNode}catch{return!1}return p!==a}var iN={__proto__:null,on:we,off:Xe,stopPropagation:Oo,disableScrollPropagation:hm,disableClickPropagation:vl,preventDefault:Ft,stop:To,getPropagationPath:v1,getMousePosition:g1,getWheelDelta:y1,isExternalTarget:dm,addListener:we,removeListener:Xe},x1=G.extend({run:function(a,c,p,g){this.stop(),this._el=a,this._inProgress=!0,this._duration=p||.25,this._easeOutPower=1/Math.max(g||.5,.2),this._startPos=dr(a),this._offset=c.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=z(this._animate,this),this._step()},_step:function(a){var c=+new Date-this._startTime,p=this._duration*1e3;c<p?this._runFrame(this._easeOut(c/p),a):(this._runFrame(1),this._complete())},_runFrame:function(a,c){var p=this._startPos.add(this._offset.multiplyBy(a));c&&p._round(),Ke(this._el,p),this.fire("step")},_complete:function(){R(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(a){return 1-Math.pow(1-a,this._easeOutPower)}}),je=G.extend({options:{crs:Le,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(a,c){c=x(this,c),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(a),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),c.maxBounds&&this.setMaxBounds(c.maxBounds),c.zoom!==void 0&&(this._zoom=this._limitZoom(c.zoom)),c.center&&c.zoom!==void 0&&this.setView(ce(c.center),c.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Ci&&de.any3d&&!de.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),we(this._proxy,pl,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(a,c,p){if(c=c===void 0?this._zoom:this._limitZoom(c),a=this._limitCenter(ce(a),c,this.options.maxBounds),p=p||{},this._stop(),this._loaded&&!p.reset&&p!==!0){p.animate!==void 0&&(p.zoom=i({animate:p.animate},p.zoom),p.pan=i({animate:p.animate,duration:p.duration},p.pan));var g=this._zoom!==c?this._tryAnimatedZoom&&this._tryAnimatedZoom(a,c,p.zoom):this._tryAnimatedPan(a,p.pan);if(g)return clearTimeout(this._sizeTimer),this}return this._resetView(a,c,p.pan&&p.pan.noMoveStart),this},setZoom:function(a,c){return this._loaded?this.setView(this.getCenter(),a,{zoom:c}):(this._zoom=a,this)},zoomIn:function(a,c){return a=a||(de.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+a,c)},zoomOut:function(a,c){return a=a||(de.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-a,c)},setZoomAround:function(a,c,p){var g=this.getZoomScale(c),T=this.getSize().divideBy(2),k=a instanceof $?a:this.latLngToContainerPoint(a),I=k.subtract(T).multiplyBy(1-1/g),F=this.containerPointToLatLng(T.add(I));return this.setView(F,c,{zoom:p})},_getBoundsCenterZoom:function(a,c){c=c||{},a=a.getBounds?a.getBounds():fe(a);var p=V(c.paddingTopLeft||c.padding||[0,0]),g=V(c.paddingBottomRight||c.padding||[0,0]),T=this.getBoundsZoom(a,!1,p.add(g));if(T=typeof c.maxZoom=="number"?Math.min(c.maxZoom,T):T,T===1/0)return{center:a.getCenter(),zoom:T};var k=g.subtract(p).divideBy(2),I=this.project(a.getSouthWest(),T),F=this.project(a.getNorthEast(),T),U=this.unproject(I.add(F).divideBy(2).add(k),T);return{center:U,zoom:T}},fitBounds:function(a,c){if(a=fe(a),!a.isValid())throw new Error("Bounds are not valid.");var p=this._getBoundsCenterZoom(a,c);return this.setView(p.center,p.zoom,c)},fitWorld:function(a){return this.fitBounds([[-90,-180],[90,180]],a)},panTo:function(a,c){return this.setView(a,this._zoom,{pan:c})},panBy:function(a,c){if(a=V(a).round(),c=c||{},!a.x&&!a.y)return this.fire("moveend");if(c.animate!==!0&&!this.getSize().contains(a))return this._resetView(this.unproject(this.project(this.getCenter()).add(a)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new x1,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),c.noMoveStart||this.fire("movestart"),c.animate!==!1){pe(this._mapPane,"leaflet-pan-anim");var p=this._getMapPanePos().subtract(a).round();this._panAnim.run(this._mapPane,p,c.duration||.25,c.easeLinearity)}else this._rawPanBy(a),this.fire("move").fire("moveend");return this},flyTo:function(a,c,p){if(p=p||{},p.animate===!1||!de.any3d)return this.setView(a,c,p);this._stop();var g=this.project(this.getCenter()),T=this.project(a),k=this.getSize(),I=this._zoom;a=ce(a),c=c===void 0?I:c;var F=Math.max(k.x,k.y),U=F*this.getZoomScale(I,c),ee=T.distanceTo(g)||1,se=1.42,xe=se*se;function Te(wt){var yf=wt?-1:1,ZN=wt?U:F,GN=U*U-F*F+yf*xe*xe*ee*ee,KN=2*ZN*xe*ee,Pm=GN/KN,J1=Math.sqrt(Pm*Pm+1)-Pm,qN=J1<1e-9?-18:Math.log(J1);return qN}function cn(wt){return(Math.exp(wt)-Math.exp(-wt))/2}function Nt(wt){return(Math.exp(wt)+Math.exp(-wt))/2}function Gn(wt){return cn(wt)/Nt(wt)}var xn=Te(0);function Ta(wt){return F*(Nt(xn)/Nt(xn+se*wt))}function VN(wt){return F*(Nt(xn)*Gn(xn+se*wt)-cn(xn))/xe}function UN(wt){return 1-Math.pow(1-wt,1.5)}var WN=Date.now(),Y1=(Te(1)-xn)/se,HN=p.duration?1e3*p.duration:1e3*Y1*.8;function Q1(){var wt=(Date.now()-WN)/HN,yf=UN(wt)*Y1;wt<=1?(this._flyToFrame=z(Q1,this),this._move(this.unproject(g.add(T.subtract(g).multiplyBy(VN(yf)/ee)),I),this.getScaleZoom(F/Ta(yf),I),{flyTo:!0})):this._move(a,c)._moveEnd(!0)}return this._moveStart(!0,p.noMoveStart),Q1.call(this),this},flyToBounds:function(a,c){var p=this._getBoundsCenterZoom(a,c);return this.flyTo(p.center,p.zoom,c)},setMaxBounds:function(a){return a=fe(a),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),a.isValid()?(this.options.maxBounds=a,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(a){var c=this.options.minZoom;return this.options.minZoom=a,this._loaded&&c!==a&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(a):this},setMaxZoom:function(a){var c=this.options.maxZoom;return this.options.maxZoom=a,this._loaded&&c!==a&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(a):this},panInsideBounds:function(a,c){this._enforcingBounds=!0;var p=this.getCenter(),g=this._limitCenter(p,this._zoom,fe(a));return p.equals(g)||this.panTo(g,c),this._enforcingBounds=!1,this},panInside:function(a,c){c=c||{};var p=V(c.paddingTopLeft||c.padding||[0,0]),g=V(c.paddingBottomRight||c.padding||[0,0]),T=this.project(this.getCenter()),k=this.project(a),I=this.getPixelBounds(),F=Q([I.min.add(p),I.max.subtract(g)]),U=F.getSize();if(!F.contains(k)){this._enforcingBounds=!0;var ee=k.subtract(F.getCenter()),se=F.extend(k).getSize().subtract(U);T.x+=ee.x<0?-se.x:se.x,T.y+=ee.y<0?-se.y:se.y,this.panTo(this.unproject(T),c),this._enforcingBounds=!1}return this},invalidateSize:function(a){if(!this._loaded)return this;a=i({animate:!1,pan:!0},a===!0?{animate:!0}:a);var c=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var p=this.getSize(),g=c.divideBy(2).round(),T=p.divideBy(2).round(),k=g.subtract(T);return!k.x&&!k.y?this:(a.animate&&a.pan?this.panBy(k):(a.pan&&this._rawPanBy(k),this.fire("move"),a.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:c,newSize:p}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(a){if(a=this._locateOptions=i({timeout:1e4,watch:!1},a),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var c=s(this._handleGeolocationResponse,this),p=s(this._handleGeolocationError,this);return a.watch?this._locationWatchId=navigator.geolocation.watchPosition(c,p,a):navigator.geolocation.getCurrentPosition(c,p,a),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(a){if(this._container._leaflet_id){var c=a.code,p=a.message||(c===1?"permission denied":c===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:c,message:"Geolocation error: "+p+"."})}},_handleGeolocationResponse:function(a){if(this._container._leaflet_id){var c=a.coords.latitude,p=a.coords.longitude,g=new he(c,p),T=g.toBounds(a.coords.accuracy*2),k=this._locateOptions;if(k.setView){var I=this.getBoundsZoom(T);this.setView(g,k.maxZoom?Math.min(I,k.maxZoom):I)}var F={latlng:g,bounds:T,timestamp:a.timestamp};for(var U in a.coords)typeof a.coords[U]=="number"&&(F[U]=a.coords[U]);this.fire("locationfound",F)}},addHandler:function(a,c){if(!c)return this;var p=this[a]=new c(this);return this._handlers.push(p),this.options[a]&&p.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),ne(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(R(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var a;for(a in this._layers)this._layers[a].remove();for(a in this._panes)ne(this._panes[a]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(a,c){var p="leaflet-pane"+(a?" leaflet-"+a.replace("Pane","")+"-pane":""),g=Ce("div",p,c||this._mapPane);return a&&(this._panes[a]=g),g},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var a=this.getPixelBounds(),c=this.unproject(a.getBottomLeft()),p=this.unproject(a.getTopRight());return new ae(c,p)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(a,c,p){a=fe(a),p=V(p||[0,0]);var g=this.getZoom()||0,T=this.getMinZoom(),k=this.getMaxZoom(),I=a.getNorthWest(),F=a.getSouthEast(),U=this.getSize().subtract(p),ee=Q(this.project(F,g),this.project(I,g)).getSize(),se=de.any3d?this.options.zoomSnap:1,xe=U.x/ee.x,Te=U.y/ee.y,cn=c?Math.max(xe,Te):Math.min(xe,Te);return g=this.getScaleZoom(cn,g),se&&(g=Math.round(g/(se/100))*(se/100),g=c?Math.ceil(g/se)*se:Math.floor(g/se)*se),Math.max(T,Math.min(k,g))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new $(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(a,c){var p=this._getTopLeftPoint(a,c);return new te(p,p.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(a){return this.options.crs.getProjectedBounds(a===void 0?this.getZoom():a)},getPane:function(a){return typeof a=="string"?this._panes[a]:a},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(a,c){var p=this.options.crs;return c=c===void 0?this._zoom:c,p.scale(a)/p.scale(c)},getScaleZoom:function(a,c){var p=this.options.crs;c=c===void 0?this._zoom:c;var g=p.zoom(a*p.scale(c));return isNaN(g)?1/0:g},project:function(a,c){return c=c===void 0?this._zoom:c,this.options.crs.latLngToPoint(ce(a),c)},unproject:function(a,c){return c=c===void 0?this._zoom:c,this.options.crs.pointToLatLng(V(a),c)},layerPointToLatLng:function(a){var c=V(a).add(this.getPixelOrigin());return this.unproject(c)},latLngToLayerPoint:function(a){var c=this.project(ce(a))._round();return c._subtract(this.getPixelOrigin())},wrapLatLng:function(a){return this.options.crs.wrapLatLng(ce(a))},wrapLatLngBounds:function(a){return this.options.crs.wrapLatLngBounds(fe(a))},distance:function(a,c){return this.options.crs.distance(ce(a),ce(c))},containerPointToLayerPoint:function(a){return V(a).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(a){return V(a).add(this._getMapPanePos())},containerPointToLatLng:function(a){var c=this.containerPointToLayerPoint(V(a));return this.layerPointToLatLng(c)},latLngToContainerPoint:function(a){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ce(a)))},mouseEventToContainerPoint:function(a){return g1(a,this._container)},mouseEventToLayerPoint:function(a){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(a))},mouseEventToLatLng:function(a){return this.layerPointToLatLng(this.mouseEventToLayerPoint(a))},_initContainer:function(a){var c=this._container=ml(a);if(c){if(c._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");we(c,"scroll",this._onScroll,this),this._containerId=u(c)},_initLayout:function(){var a=this._container;this._fadeAnimated=this.options.fadeAnimation&&de.any3d,pe(a,"leaflet-container"+(de.touch?" leaflet-touch":"")+(de.retina?" leaflet-retina":"")+(de.ielt9?" leaflet-oldie":"")+(de.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var c=ji(a,"position");c!=="absolute"&&c!=="relative"&&c!=="fixed"&&c!=="sticky"&&(a.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var a=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ke(this._mapPane,new $(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(pe(a.markerPane,"leaflet-zoom-hide"),pe(a.shadowPane,"leaflet-zoom-hide"))},_resetView:function(a,c,p){Ke(this._mapPane,new $(0,0));var g=!this._loaded;this._loaded=!0,c=this._limitZoom(c),this.fire("viewprereset");var T=this._zoom!==c;this._moveStart(T,p)._move(a,c)._moveEnd(T),this.fire("viewreset"),g&&this.fire("load")},_moveStart:function(a,c){return a&&this.fire("zoomstart"),c||this.fire("movestart"),this},_move:function(a,c,p,g){c===void 0&&(c=this._zoom);var T=this._zoom!==c;return this._zoom=c,this._lastCenter=a,this._pixelOrigin=this._getNewPixelOrigin(a),g?p&&p.pinch&&this.fire("zoom",p):((T||p&&p.pinch)&&this.fire("zoom",p),this.fire("move",p)),this},_moveEnd:function(a){return a&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return R(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(a){Ke(this._mapPane,this._getMapPanePos().subtract(a))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(a){this._targets={},this._targets[u(this._container)]=this;var c=a?Xe:we;c(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&c(window,"resize",this._onResize,this),de.any3d&&this.options.transform3DLimit&&(a?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){R(this._resizeRequest),this._resizeRequest=z(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var a=this._getMapPanePos();Math.max(Math.abs(a.x),Math.abs(a.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(a,c){for(var p=[],g,T=c==="mouseout"||c==="mouseover",k=a.target||a.srcElement,I=!1;k;){if(g=this._targets[u(k)],g&&(c==="click"||c==="preclick")&&this._draggableMoved(g)){I=!0;break}if(g&&g.listens(c,!0)&&(T&&!dm(k,a)||(p.push(g),T))||k===this._container)break;k=k.parentNode}return!p.length&&!I&&!T&&this.listens(c,!0)&&(p=[this]),p},_isClickDisabled:function(a){for(;a&&a!==this._container;){if(a._leaflet_disable_click)return!0;a=a.parentNode}},_handleDOMEvent:function(a){var c=a.target||a.srcElement;if(!(!this._loaded||c._leaflet_disable_events||a.type==="click"&&this._isClickDisabled(c))){var p=a.type;p==="mousedown"&&sm(c),this._fireDOMEvent(a,p)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(a,c,p){if(a.type==="click"){var g=i({},a);g.type="preclick",this._fireDOMEvent(g,g.type,p)}var T=this._findEventTargets(a,c);if(p){for(var k=[],I=0;I<p.length;I++)p[I].listens(c,!0)&&k.push(p[I]);T=k.concat(T)}if(T.length){c==="contextmenu"&&Ft(a);var F=T[0],U={originalEvent:a};if(a.type!=="keypress"&&a.type!=="keydown"&&a.type!=="keyup"){var ee=F.getLatLng&&(!F._radius||F._radius<=10);U.containerPoint=ee?this.latLngToContainerPoint(F.getLatLng()):this.mouseEventToContainerPoint(a),U.layerPoint=this.containerPointToLayerPoint(U.containerPoint),U.latlng=ee?F.getLatLng():this.layerPointToLatLng(U.layerPoint)}for(I=0;I<T.length;I++)if(T[I].fire(c,U,!0),U.originalEvent._stopped||T[I].options.bubblingMouseEvents===!1&&E(this._mouseEvents,c)!==-1)return}},_draggableMoved:function(a){return a=a.dragging&&a.dragging.enabled()?a:this,a.dragging&&a.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var a=0,c=this._handlers.length;a<c;a++)this._handlers[a].disable()},whenReady:function(a,c){return this._loaded?a.call(c||this,{target:this}):this.on("load",a,c),this},_getMapPanePos:function(){return dr(this._mapPane)||new $(0,0)},_moved:function(){var a=this._getMapPanePos();return a&&!a.equals([0,0])},_getTopLeftPoint:function(a,c){var p=a&&c!==void 0?this._getNewPixelOrigin(a,c):this.getPixelOrigin();return p.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(a,c){var p=this.getSize()._divideBy(2);return this.project(a,c)._subtract(p)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(a,c,p){var g=this._getNewPixelOrigin(p,c);return this.project(a,c)._subtract(g)},_latLngBoundsToNewLayerBounds:function(a,c,p){var g=this._getNewPixelOrigin(p,c);return Q([this.project(a.getSouthWest(),c)._subtract(g),this.project(a.getNorthWest(),c)._subtract(g),this.project(a.getSouthEast(),c)._subtract(g),this.project(a.getNorthEast(),c)._subtract(g)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(a){return this.latLngToLayerPoint(a).subtract(this._getCenterLayerPoint())},_limitCenter:function(a,c,p){if(!p)return a;var g=this.project(a,c),T=this.getSize().divideBy(2),k=new te(g.subtract(T),g.add(T)),I=this._getBoundsOffset(k,p,c);return Math.abs(I.x)<=1&&Math.abs(I.y)<=1?a:this.unproject(g.add(I),c)},_limitOffset:function(a,c){if(!c)return a;var p=this.getPixelBounds(),g=new te(p.min.add(a),p.max.add(a));return a.add(this._getBoundsOffset(g,c))},_getBoundsOffset:function(a,c,p){var g=Q(this.project(c.getNorthEast(),p),this.project(c.getSouthWest(),p)),T=g.min.subtract(a.min),k=g.max.subtract(a.max),I=this._rebound(T.x,-k.x),F=this._rebound(T.y,-k.y);return new $(I,F)},_rebound:function(a,c){return a+c>0?Math.round(a-c)/2:Math.max(0,Math.ceil(a))-Math.max(0,Math.floor(c))},_limitZoom:function(a){var c=this.getMinZoom(),p=this.getMaxZoom(),g=de.any3d?this.options.zoomSnap:1;return g&&(a=Math.round(a/g)*g),Math.max(c,Math.min(p,a))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ae(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(a,c){var p=this._getCenterOffset(a)._trunc();return(c&&c.animate)!==!0&&!this.getSize().contains(p)?!1:(this.panBy(p,c),!0)},_createAnimProxy:function(){var a=this._proxy=Ce("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(a),this.on("zoomanim",function(c){var p=xa,g=this._proxy.style[p];yn(this._proxy,this.project(c.center,c.zoom),this.getZoomScale(c.zoom,1)),g===this._proxy.style[p]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ne(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var a=this.getCenter(),c=this.getZoom();yn(this._proxy,this.project(a,c),this.getZoomScale(c,1))},_catchTransitionEnd:function(a){this._animatingZoom&&a.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(a,c,p){if(this._animatingZoom)return!0;if(p=p||{},!this._zoomAnimated||p.animate===!1||this._nothingToAnimate()||Math.abs(c-this._zoom)>this.options.zoomAnimationThreshold)return!1;var g=this.getZoomScale(c),T=this._getCenterOffset(a)._divideBy(1-1/g);return p.animate!==!0&&!this.getSize().contains(T)?!1:(z(function(){this._moveStart(!0,p.noMoveStart||!1)._animateZoom(a,c,!0)},this),!0)},_animateZoom:function(a,c,p,g){this._mapPane&&(p&&(this._animatingZoom=!0,this._animateToCenter=a,this._animateToZoom=c,pe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:a,zoom:c,noUpdate:g}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ae(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function oN(a,c){return new je(a,c)}var pr=H.extend({options:{position:"topright"},initialize:function(a){x(this,a)},getPosition:function(){return this.options.position},setPosition:function(a){var c=this._map;return c&&c.removeControl(this),this.options.position=a,c&&c.addControl(this),this},getContainer:function(){return this._container},addTo:function(a){this.remove(),this._map=a;var c=this._container=this.onAdd(a),p=this.getPosition(),g=a._controlCorners[p];return pe(c,"leaflet-control"),p.indexOf("bottom")!==-1?g.insertBefore(c,g.firstChild):g.appendChild(c),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ne(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(a){this._map&&a&&a.screenX>0&&a.screenY>0&&this._map.getContainer().focus()}}),gl=function(a){return new pr(a)};je.include({addControl:function(a){return a.addTo(this),this},removeControl:function(a){return a.remove(),this},_initControlPos:function(){var a=this._controlCorners={},c="leaflet-",p=this._controlContainer=Ce("div",c+"control-container",this._container);function g(T,k){var I=c+T+" "+c+k;a[T+k]=Ce("div",I,p)}g("top","left"),g("top","right"),g("bottom","left"),g("bottom","right")},_clearControlPos:function(){for(var a in this._controlCorners)ne(this._controlCorners[a]);ne(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var _1=pr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(a,c,p,g){return p<g?-1:g<p?1:0}},initialize:function(a,c,p){x(this,p),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var g in a)this._addLayer(a[g],g);for(g in c)this._addLayer(c[g],g,!0)},onAdd:function(a){this._initLayout(),this._update(),this._map=a,a.on("zoomend",this._checkDisabledLayers,this);for(var c=0;c<this._layers.length;c++)this._layers[c].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(a){return pr.prototype.addTo.call(this,a),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var a=0;a<this._layers.length;a++)this._layers[a].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(a,c){return this._addLayer(a,c),this._map?this._update():this},addOverlay:function(a,c){return this._addLayer(a,c,!0),this._map?this._update():this},removeLayer:function(a){a.off("add remove",this._onLayerChange,this);var c=this._getLayer(u(a));return c&&this._layers.splice(this._layers.indexOf(c),1),this._map?this._update():this},expand:function(){pe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var a=this._map.getSize().y-(this._container.offsetTop+50);return a<this._section.clientHeight?(pe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=a+"px"):Ae(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Ae(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var a="leaflet-control-layers",c=this._container=Ce("div",a),p=this.options.collapsed;c.setAttribute("aria-haspopup",!0),vl(c),hm(c);var g=this._section=Ce("section",a+"-list");p&&(this._map.on("click",this.collapse,this),we(c,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var T=this._layersLink=Ce("a",a+"-toggle",c);T.href="#",T.title="Layers",T.setAttribute("role","button"),we(T,{keydown:function(k){k.keyCode===13&&this._expandSafely()},click:function(k){Ft(k),this._expandSafely()}},this),p||this.expand(),this._baseLayersList=Ce("div",a+"-base",g),this._separator=Ce("div",a+"-separator",g),this._overlaysList=Ce("div",a+"-overlays",g),c.appendChild(g)},_getLayer:function(a){for(var c=0;c<this._layers.length;c++)if(this._layers[c]&&u(this._layers[c].layer)===a)return this._layers[c]},_addLayer:function(a,c,p){this._map&&a.on("add remove",this._onLayerChange,this),this._layers.push({layer:a,name:c,overlay:p}),this.options.sortLayers&&this._layers.sort(s(function(g,T){return this.options.sortFunction(g.layer,T.layer,g.name,T.name)},this)),this.options.autoZIndex&&a.setZIndex&&(this._lastZIndex++,a.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;lt(this._baseLayersList),lt(this._overlaysList),this._layerControlInputs=[];var a,c,p,g,T=0;for(p=0;p<this._layers.length;p++)g=this._layers[p],this._addItem(g),c=c||g.overlay,a=a||!g.overlay,T+=g.overlay?0:1;return this.options.hideSingleBase&&(a=a&&T>1,this._baseLayersList.style.display=a?"":"none"),this._separator.style.display=c&&a?"":"none",this},_onLayerChange:function(a){this._handlingClick||this._update();var c=this._getLayer(u(a.target)),p=c.overlay?a.type==="add"?"overlayadd":"overlayremove":a.type==="add"?"baselayerchange":null;p&&this._map.fire(p,c)},_createRadioElement:function(a,c){var p='<input type="radio" class="leaflet-control-layers-selector" name="'+a+'"'+(c?' checked="checked"':"")+"/>",g=document.createElement("div");return g.innerHTML=p,g.firstChild},_addItem:function(a){var c=document.createElement("label"),p=this._map.hasLayer(a.layer),g;a.overlay?(g=document.createElement("input"),g.type="checkbox",g.className="leaflet-control-layers-selector",g.defaultChecked=p):g=this._createRadioElement("leaflet-base-layers_"+u(this),p),this._layerControlInputs.push(g),g.layerId=u(a.layer),we(g,"click",this._onInputClick,this);var T=document.createElement("span");T.innerHTML=" "+a.name;var k=document.createElement("span");c.appendChild(k),k.appendChild(g),k.appendChild(T);var I=a.overlay?this._overlaysList:this._baseLayersList;return I.appendChild(c),this._checkDisabledLayers(),c},_onInputClick:function(){if(!this._preventClick){var a=this._layerControlInputs,c,p,g=[],T=[];this._handlingClick=!0;for(var k=a.length-1;k>=0;k--)c=a[k],p=this._getLayer(c.layerId).layer,c.checked?g.push(p):c.checked||T.push(p);for(k=0;k<T.length;k++)this._map.hasLayer(T[k])&&this._map.removeLayer(T[k]);for(k=0;k<g.length;k++)this._map.hasLayer(g[k])||this._map.addLayer(g[k]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var a=this._layerControlInputs,c,p,g=this._map.getZoom(),T=a.length-1;T>=0;T--)c=a[T],p=this._getLayer(c.layerId).layer,c.disabled=p.options.minZoom!==void 0&&g<p.options.minZoom||p.options.maxZoom!==void 0&&g>p.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var a=this._section;this._preventClick=!0,we(a,"click",Ft),this.expand();var c=this;setTimeout(function(){Xe(a,"click",Ft),c._preventClick=!1})}}),aN=function(a,c,p){return new _1(a,c,p)},pm=pr.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(a){var c="leaflet-control-zoom",p=Ce("div",c+" leaflet-bar"),g=this.options;return this._zoomInButton=this._createButton(g.zoomInText,g.zoomInTitle,c+"-in",p,this._zoomIn),this._zoomOutButton=this._createButton(g.zoomOutText,g.zoomOutTitle,c+"-out",p,this._zoomOut),this._updateDisabled(),a.on("zoomend zoomlevelschange",this._updateDisabled,this),p},onRemove:function(a){a.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(a){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(a.shiftKey?3:1))},_zoomOut:function(a){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(a.shiftKey?3:1))},_createButton:function(a,c,p,g,T){var k=Ce("a",p,g);return k.innerHTML=a,k.href="#",k.title=c,k.setAttribute("role","button"),k.setAttribute("aria-label",c),vl(k),we(k,"click",To),we(k,"click",T,this),we(k,"click",this._refocusOnMap,this),k},_updateDisabled:function(){var a=this._map,c="leaflet-disabled";Ae(this._zoomInButton,c),Ae(this._zoomOutButton,c),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||a._zoom===a.getMinZoom())&&(pe(this._zoomOutButton,c),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||a._zoom===a.getMaxZoom())&&(pe(this._zoomInButton,c),this._zoomInButton.setAttribute("aria-disabled","true"))}});je.mergeOptions({zoomControl:!0}),je.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new pm,this.addControl(this.zoomControl))});var sN=function(a){return new pm(a)},b1=pr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(a){var c="leaflet-control-scale",p=Ce("div",c),g=this.options;return this._addScales(g,c+"-line",p),a.on(g.updateWhenIdle?"moveend":"move",this._update,this),a.whenReady(this._update,this),p},onRemove:function(a){a.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(a,c,p){a.metric&&(this._mScale=Ce("div",c,p)),a.imperial&&(this._iScale=Ce("div",c,p))},_update:function(){var a=this._map,c=a.getSize().y/2,p=a.distance(a.containerPointToLatLng([0,c]),a.containerPointToLatLng([this.options.maxWidth,c]));this._updateScales(p)},_updateScales:function(a){this.options.metric&&a&&this._updateMetric(a),this.options.imperial&&a&&this._updateImperial(a)},_updateMetric:function(a){var c=this._getRoundNum(a),p=c<1e3?c+" m":c/1e3+" km";this._updateScale(this._mScale,p,c/a)},_updateImperial:function(a){var c=a*3.2808399,p,g,T;c>5280?(p=c/5280,g=this._getRoundNum(p),this._updateScale(this._iScale,g+" mi",g/p)):(T=this._getRoundNum(c),this._updateScale(this._iScale,T+" ft",T/c))},_updateScale:function(a,c,p){a.style.width=Math.round(this.options.maxWidth*p)+"px",a.innerHTML=c},_getRoundNum:function(a){var c=Math.pow(10,(Math.floor(a)+"").length-1),p=a/c;return p=p>=10?10:p>=5?5:p>=3?3:p>=2?2:1,c*p}}),lN=function(a){return new b1(a)},uN='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',mm=pr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(de.inlineSvg?uN+" ":"")+"Leaflet</a>"},initialize:function(a){x(this,a),this._attributions={}},onAdd:function(a){a.attributionControl=this,this._container=Ce("div","leaflet-control-attribution"),vl(this._container);for(var c in a._layers)a._layers[c].getAttribution&&this.addAttribution(a._layers[c].getAttribution());return this._update(),a.on("layeradd",this._addAttribution,this),this._container},onRemove:function(a){a.off("layeradd",this._addAttribution,this)},_addAttribution:function(a){a.layer.getAttribution&&(this.addAttribution(a.layer.getAttribution()),a.layer.once("remove",function(){this.removeAttribution(a.layer.getAttribution())},this))},setPrefix:function(a){return this.options.prefix=a,this._update(),this},addAttribution:function(a){return a?(this._attributions[a]||(this._attributions[a]=0),this._attributions[a]++,this._update(),this):this},removeAttribution:function(a){return a?(this._attributions[a]&&(this._attributions[a]--,this._update()),this):this},_update:function(){if(this._map){var a=[];for(var c in this._attributions)this._attributions[c]&&a.push(c);var p=[];this.options.prefix&&p.push(this.options.prefix),a.length&&p.push(a.join(", ")),this._container.innerHTML=p.join(' <span aria-hidden="true">|</span> ')}}});je.mergeOptions({attributionControl:!0}),je.addInitHook(function(){this.options.attributionControl&&new mm().addTo(this)});var cN=function(a){return new mm(a)};pr.Layers=_1,pr.Zoom=pm,pr.Scale=b1,pr.Attribution=mm,gl.layers=aN,gl.zoom=sN,gl.scale=lN,gl.attribution=cN;var $r=H.extend({initialize:function(a){this._map=a},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});$r.addTo=function(a,c){return a.addHandler(c,this),this};var fN={Events:Z},w1=de.touch?"touchstart mousedown":"mousedown",Li=G.extend({options:{clickTolerance:3},initialize:function(a,c,p,g){x(this,g),this._element=a,this._dragStartTarget=c||a,this._preventOutline=p},enable:function(){this._enabled||(we(this._dragStartTarget,w1,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Li._dragging===this&&this.finishDrag(!0),Xe(this._dragStartTarget,w1,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(a){if(this._enabled&&(this._moved=!1,!bt(this._element,"leaflet-zoom-anim"))){if(a.touches&&a.touches.length!==1){Li._dragging===this&&this.finishDrag();return}if(!(Li._dragging||a.shiftKey||a.which!==1&&a.button!==1&&!a.touches)&&(Li._dragging=this,this._preventOutline&&sm(this._element),im(),$i(),!this._moving)){this.fire("down");var c=a.touches?a.touches[0]:a,p=p1(this._element);this._startPoint=new $(c.clientX,c.clientY),this._startPos=dr(this._element),this._parentScale=lm(p);var g=a.type==="mousedown";we(document,g?"mousemove":"touchmove",this._onMove,this),we(document,g?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(a){if(this._enabled){if(a.touches&&a.touches.length>1){this._moved=!0;return}var c=a.touches&&a.touches.length===1?a.touches[0]:a,p=new $(c.clientX,c.clientY)._subtract(this._startPoint);!p.x&&!p.y||Math.abs(p.x)+Math.abs(p.y)<this.options.clickTolerance||(p.x/=this._parentScale.x,p.y/=this._parentScale.y,Ft(a),this._moved||(this.fire("dragstart"),this._moved=!0,pe(document.body,"leaflet-dragging"),this._lastTarget=a.target||a.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),pe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(p),this._moving=!0,this._lastEvent=a,this._updatePosition())}},_updatePosition:function(){var a={originalEvent:this._lastEvent};this.fire("predrag",a),Ke(this._element,this._newPos),this.fire("drag",a)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(a){Ae(document.body,"leaflet-dragging"),this._lastTarget&&(Ae(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Xe(document,"mousemove touchmove",this._onMove,this),Xe(document,"mouseup touchend touchcancel",this._onUp,this),om(),Yr();var c=this._moved&&this._moving;this._moving=!1,Li._dragging=!1,c&&this.fire("dragend",{noInertia:a,distance:this._newPos.distanceTo(this._startPos)})}});function S1(a,c,p){var g,T=[1,4,2,8],k,I,F,U,ee,se,xe,Te;for(k=0,se=a.length;k<se;k++)a[k]._code=Ao(a[k],c);for(F=0;F<4;F++){for(xe=T[F],g=[],k=0,se=a.length,I=se-1;k<se;I=k++)U=a[k],ee=a[I],U._code&xe?ee._code&xe||(Te=sf(ee,U,xe,c,p),Te._code=Ao(Te,c),g.push(Te)):(ee._code&xe&&(Te=sf(ee,U,xe,c,p),Te._code=Ao(Te,c),g.push(Te)),g.push(U));a=g}return a}function P1(a,c){var p,g,T,k,I,F,U,ee,se;if(!a||a.length===0)throw new Error("latlngs not passed");Zn(a)||(console.warn("latlngs are not flat! Only the first ring will be used"),a=a[0]);var xe=ce([0,0]),Te=fe(a),cn=Te.getNorthWest().distanceTo(Te.getSouthWest())*Te.getNorthEast().distanceTo(Te.getNorthWest());cn<1700&&(xe=vm(a));var Nt=a.length,Gn=[];for(p=0;p<Nt;p++){var xn=ce(a[p]);Gn.push(c.project(ce([xn.lat-xe.lat,xn.lng-xe.lng])))}for(F=U=ee=0,p=0,g=Nt-1;p<Nt;g=p++)T=Gn[p],k=Gn[g],I=T.y*k.x-k.y*T.x,U+=(T.x+k.x)*I,ee+=(T.y+k.y)*I,F+=I*3;F===0?se=Gn[0]:se=[U/F,ee/F];var Ta=c.unproject(V(se));return ce([Ta.lat+xe.lat,Ta.lng+xe.lng])}function vm(a){for(var c=0,p=0,g=0,T=0;T<a.length;T++){var k=ce(a[T]);c+=k.lat,p+=k.lng,g++}return ce([c/g,p/g])}var hN={__proto__:null,clipPolygon:S1,polygonCenter:P1,centroid:vm};function O1(a,c){if(!c||!a.length)return a.slice();var p=c*c;return a=mN(a,p),a=pN(a,p),a}function T1(a,c,p){return Math.sqrt(yl(a,c,p,!0))}function dN(a,c,p){return yl(a,c,p)}function pN(a,c){var p=a.length,g=typeof Uint8Array<"u"?Uint8Array:Array,T=new g(p);T[0]=T[p-1]=1,gm(a,T,c,0,p-1);var k,I=[];for(k=0;k<p;k++)T[k]&&I.push(a[k]);return I}function gm(a,c,p,g,T){var k=0,I,F,U;for(F=g+1;F<=T-1;F++)U=yl(a[F],a[g],a[T],!0),U>k&&(I=F,k=U);k>p&&(c[I]=1,gm(a,c,p,g,I),gm(a,c,p,I,T))}function mN(a,c){for(var p=[a[0]],g=1,T=0,k=a.length;g<k;g++)vN(a[g],a[T])>c&&(p.push(a[g]),T=g);return T<k-1&&p.push(a[k-1]),p}var A1;function E1(a,c,p,g,T){var k=g?A1:Ao(a,p),I=Ao(c,p),F,U,ee;for(A1=I;;){if(!(k|I))return[a,c];if(k&I)return!1;F=k||I,U=sf(a,c,F,p,T),ee=Ao(U,p),F===k?(a=U,k=ee):(c=U,I=ee)}}function sf(a,c,p,g,T){var k=c.x-a.x,I=c.y-a.y,F=g.min,U=g.max,ee,se;return p&8?(ee=a.x+k*(U.y-a.y)/I,se=U.y):p&4?(ee=a.x+k*(F.y-a.y)/I,se=F.y):p&2?(ee=U.x,se=a.y+I*(U.x-a.x)/k):p&1&&(ee=F.x,se=a.y+I*(F.x-a.x)/k),new $(ee,se,T)}function Ao(a,c){var p=0;return a.x<c.min.x?p|=1:a.x>c.max.x&&(p|=2),a.y<c.min.y?p|=4:a.y>c.max.y&&(p|=8),p}function vN(a,c){var p=c.x-a.x,g=c.y-a.y;return p*p+g*g}function yl(a,c,p,g){var T=c.x,k=c.y,I=p.x-T,F=p.y-k,U=I*I+F*F,ee;return U>0&&(ee=((a.x-T)*I+(a.y-k)*F)/U,ee>1?(T=p.x,k=p.y):ee>0&&(T+=I*ee,k+=F*ee)),I=a.x-T,F=a.y-k,g?I*I+F*F:new $(T,k)}function Zn(a){return!w(a[0])||typeof a[0][0]!="object"&&typeof a[0][0]<"u"}function k1(a){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Zn(a)}function M1(a,c){var p,g,T,k,I,F,U,ee;if(!a||a.length===0)throw new Error("latlngs not passed");Zn(a)||(console.warn("latlngs are not flat! Only the first ring will be used"),a=a[0]);var se=ce([0,0]),xe=fe(a),Te=xe.getNorthWest().distanceTo(xe.getSouthWest())*xe.getNorthEast().distanceTo(xe.getNorthWest());Te<1700&&(se=vm(a));var cn=a.length,Nt=[];for(p=0;p<cn;p++){var Gn=ce(a[p]);Nt.push(c.project(ce([Gn.lat-se.lat,Gn.lng-se.lng])))}for(p=0,g=0;p<cn-1;p++)g+=Nt[p].distanceTo(Nt[p+1])/2;if(g===0)ee=Nt[0];else for(p=0,k=0;p<cn-1;p++)if(I=Nt[p],F=Nt[p+1],T=I.distanceTo(F),k+=T,k>g){U=(k-g)/T,ee=[F.x-U*(F.x-I.x),F.y-U*(F.y-I.y)];break}var xn=c.unproject(V(ee));return ce([xn.lat+se.lat,xn.lng+se.lng])}var gN={__proto__:null,simplify:O1,pointToSegmentDistance:T1,closestPointOnSegment:dN,clipSegment:E1,_getEdgeIntersection:sf,_getBitCode:Ao,_sqClosestPointOnSegment:yl,isFlat:Zn,_flat:k1,polylineCenter:M1},ym={project:function(a){return new $(a.lng,a.lat)},unproject:function(a){return new he(a.y,a.x)},bounds:new te([-180,-90],[180,90])},xm={R:6378137,R_MINOR:6356752314245179e-9,bounds:new te([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(a){var c=Math.PI/180,p=this.R,g=a.lat*c,T=this.R_MINOR/p,k=Math.sqrt(1-T*T),I=k*Math.sin(g),F=Math.tan(Math.PI/4-g/2)/Math.pow((1-I)/(1+I),k/2);return g=-p*Math.log(Math.max(F,1e-10)),new $(a.lng*c*p,g)},unproject:function(a){for(var c=180/Math.PI,p=this.R,g=this.R_MINOR/p,T=Math.sqrt(1-g*g),k=Math.exp(-a.y/p),I=Math.PI/2-2*Math.atan(k),F=0,U=.1,ee;F<15&&Math.abs(U)>1e-7;F++)ee=T*Math.sin(I),ee=Math.pow((1-ee)/(1+ee),T/2),U=Math.PI/2-2*Math.atan(k*ee)-I,I+=U;return new he(I*c,a.x*c/p)}},yN={__proto__:null,LonLat:ym,Mercator:xm,SphericalMercator:me},xN=i({},ze,{code:"EPSG:3395",projection:xm,transformation:function(){var a=.5/(Math.PI*xm.R);return J(a,.5,-a,.5)}()}),C1=i({},ze,{code:"EPSG:4326",projection:ym,transformation:J(1/180,1,-1/180,.5)}),_N=i({},Ve,{projection:ym,transformation:J(1,0,-1,0),scale:function(a){return Math.pow(2,a)},zoom:function(a){return Math.log(a)/Math.LN2},distance:function(a,c){var p=c.lng-a.lng,g=c.lat-a.lat;return Math.sqrt(p*p+g*g)},infinite:!0});Ve.Earth=ze,Ve.EPSG3395=xN,Ve.EPSG3857=Le,Ve.EPSG900913=Se,Ve.EPSG4326=C1,Ve.Simple=_N;var mr=G.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(a){return a.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(a){return a&&a.removeLayer(this),this},getPane:function(a){return this._map.getPane(a?this.options[a]||a:this.options.pane)},addInteractiveTarget:function(a){return this._map._targets[u(a)]=this,this},removeInteractiveTarget:function(a){return delete this._map._targets[u(a)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(a){var c=a.target;if(c.hasLayer(this)){if(this._map=c,this._zoomAnimated=c._zoomAnimated,this.getEvents){var p=this.getEvents();c.on(p,this),this.once("remove",function(){c.off(p,this)},this)}this.onAdd(c),this.fire("add"),c.fire("layeradd",{layer:this})}}});je.include({addLayer:function(a){if(!a._layerAdd)throw new Error("The provided object is not a Layer.");var c=u(a);return this._layers[c]?this:(this._layers[c]=a,a._mapToAdd=this,a.beforeAdd&&a.beforeAdd(this),this.whenReady(a._layerAdd,a),this)},removeLayer:function(a){var c=u(a);return this._layers[c]?(this._loaded&&a.onRemove(this),delete this._layers[c],this._loaded&&(this.fire("layerremove",{layer:a}),a.fire("remove")),a._map=a._mapToAdd=null,this):this},hasLayer:function(a){return u(a)in this._layers},eachLayer:function(a,c){for(var p in this._layers)a.call(c,this._layers[p]);return this},_addLayers:function(a){a=a?w(a)?a:[a]:[];for(var c=0,p=a.length;c<p;c++)this.addLayer(a[c])},_addZoomLimit:function(a){(!isNaN(a.options.maxZoom)||!isNaN(a.options.minZoom))&&(this._zoomBoundLayers[u(a)]=a,this._updateZoomLevels())},_removeZoomLimit:function(a){var c=u(a);this._zoomBoundLayers[c]&&(delete this._zoomBoundLayers[c],this._updateZoomLevels())},_updateZoomLevels:function(){var a=1/0,c=-1/0,p=this._getZoomSpan();for(var g in this._zoomBoundLayers){var T=this._zoomBoundLayers[g].options;a=T.minZoom===void 0?a:Math.min(a,T.minZoom),c=T.maxZoom===void 0?c:Math.max(c,T.maxZoom)}this._layersMaxZoom=c===-1/0?void 0:c,this._layersMinZoom=a===1/0?void 0:a,p!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ba=mr.extend({initialize:function(a,c){x(this,c),this._layers={};var p,g;if(a)for(p=0,g=a.length;p<g;p++)this.addLayer(a[p])},addLayer:function(a){var c=this.getLayerId(a);return this._layers[c]=a,this._map&&this._map.addLayer(a),this},removeLayer:function(a){var c=a in this._layers?a:this.getLayerId(a);return this._map&&this._layers[c]&&this._map.removeLayer(this._layers[c]),delete this._layers[c],this},hasLayer:function(a){var c=typeof a=="number"?a:this.getLayerId(a);return c in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(a){var c=Array.prototype.slice.call(arguments,1),p,g;for(p in this._layers)g=this._layers[p],g[a]&&g[a].apply(g,c);return this},onAdd:function(a){this.eachLayer(a.addLayer,a)},onRemove:function(a){this.eachLayer(a.removeLayer,a)},eachLayer:function(a,c){for(var p in this._layers)a.call(c,this._layers[p]);return this},getLayer:function(a){return this._layers[a]},getLayers:function(){var a=[];return this.eachLayer(a.push,a),a},setZIndex:function(a){return this.invoke("setZIndex",a)},getLayerId:function(a){return u(a)}}),bN=function(a,c){return new ba(a,c)},Qr=ba.extend({addLayer:function(a){return this.hasLayer(a)?this:(a.addEventParent(this),ba.prototype.addLayer.call(this,a),this.fire("layeradd",{layer:a}))},removeLayer:function(a){return this.hasLayer(a)?(a in this._layers&&(a=this._layers[a]),a.removeEventParent(this),ba.prototype.removeLayer.call(this,a),this.fire("layerremove",{layer:a})):this},setStyle:function(a){return this.invoke("setStyle",a)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var a=new ae;for(var c in this._layers){var p=this._layers[c];a.extend(p.getBounds?p.getBounds():p.getLatLng())}return a}}),wN=function(a,c){return new Qr(a,c)},wa=H.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(a){x(this,a)},createIcon:function(a){return this._createIcon("icon",a)},createShadow:function(a){return this._createIcon("shadow",a)},_createIcon:function(a,c){var p=this._getIconUrl(a);if(!p){if(a==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var g=this._createImg(p,c&&c.tagName==="IMG"?c:null);return this._setIconStyles(g,a),(this.options.crossOrigin||this.options.crossOrigin==="")&&(g.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),g},_setIconStyles:function(a,c){var p=this.options,g=p[c+"Size"];typeof g=="number"&&(g=[g,g]);var T=V(g),k=V(c==="shadow"&&p.shadowAnchor||p.iconAnchor||T&&T.divideBy(2,!0));a.className="leaflet-marker-"+c+" "+(p.className||""),k&&(a.style.marginLeft=-k.x+"px",a.style.marginTop=-k.y+"px"),T&&(a.style.width=T.x+"px",a.style.height=T.y+"px")},_createImg:function(a,c){return c=c||document.createElement("img"),c.src=a,c},_getIconUrl:function(a){return de.retina&&this.options[a+"RetinaUrl"]||this.options[a+"Url"]}});function SN(a){return new wa(a)}var xl=wa.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(a){return typeof xl.imagePath!="string"&&(xl.imagePath=this._detectIconPath()),(this.options.imagePath||xl.imagePath)+wa.prototype._getIconUrl.call(this,a)},_stripUrl:function(a){var c=function(p,g,T){var k=g.exec(p);return k&&k[T]};return a=c(a,/^url\((['"])?(.+)\1\)$/,2),a&&c(a,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var a=Ce("div","leaflet-default-icon-path",document.body),c=ji(a,"background-image")||ji(a,"backgroundImage");if(document.body.removeChild(a),c=this._stripUrl(c),c)return c;var p=document.querySelector('link[href$="leaflet.css"]');return p?p.href.substring(0,p.href.length-11-1):""}}),j1=$r.extend({initialize:function(a){this._marker=a},addHooks:function(){var a=this._marker._icon;this._draggable||(this._draggable=new Li(a,a,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),pe(a,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Ae(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(a){var c=this._marker,p=c._map,g=this._marker.options.autoPanSpeed,T=this._marker.options.autoPanPadding,k=dr(c._icon),I=p.getPixelBounds(),F=p.getPixelOrigin(),U=Q(I.min._subtract(F).add(T),I.max._subtract(F).subtract(T));if(!U.contains(k)){var ee=V((Math.max(U.max.x,k.x)-U.max.x)/(I.max.x-U.max.x)-(Math.min(U.min.x,k.x)-U.min.x)/(I.min.x-U.min.x),(Math.max(U.max.y,k.y)-U.max.y)/(I.max.y-U.max.y)-(Math.min(U.min.y,k.y)-U.min.y)/(I.min.y-U.min.y)).multiplyBy(g);p.panBy(ee,{animate:!1}),this._draggable._newPos._add(ee),this._draggable._startPos._add(ee),Ke(c._icon,this._draggable._newPos),this._onDrag(a),this._panRequest=z(this._adjustPan.bind(this,a))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(a){this._marker.options.autoPan&&(R(this._panRequest),this._panRequest=z(this._adjustPan.bind(this,a)))},_onDrag:function(a){var c=this._marker,p=c._shadow,g=dr(c._icon),T=c._map.layerPointToLatLng(g);p&&Ke(p,g),c._latlng=T,a.latlng=T,a.oldLatLng=this._oldLatLng,c.fire("move",a).fire("drag",a)},_onDragEnd:function(a){R(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",a)}}),lf=mr.extend({options:{icon:new xl,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(a,c){x(this,c),this._latlng=ce(a)},onAdd:function(a){this._zoomAnimated=this._zoomAnimated&&a.options.markerZoomAnimation,this._zoomAnimated&&a.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(a){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&a.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(a){var c=this._latlng;return this._latlng=ce(a),this.update(),this.fire("move",{oldLatLng:c,latlng:this._latlng})},setZIndexOffset:function(a){return this.options.zIndexOffset=a,this.update()},getIcon:function(){return this.options.icon},setIcon:function(a){return this.options.icon=a,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var a=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(a)}return this},_initIcon:function(){var a=this.options,c="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),p=a.icon.createIcon(this._icon),g=!1;p!==this._icon&&(this._icon&&this._removeIcon(),g=!0,a.title&&(p.title=a.title),p.tagName==="IMG"&&(p.alt=a.alt||"")),pe(p,c),a.keyboard&&(p.tabIndex="0",p.setAttribute("role","button")),this._icon=p,a.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&we(p,"focus",this._panOnFocus,this);var T=a.icon.createShadow(this._shadow),k=!1;T!==this._shadow&&(this._removeShadow(),k=!0),T&&(pe(T,c),T.alt=""),this._shadow=T,a.opacity<1&&this._updateOpacity(),g&&this.getPane().appendChild(this._icon),this._initInteraction(),T&&k&&this.getPane(a.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Xe(this._icon,"focus",this._panOnFocus,this),ne(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ne(this._shadow),this._shadow=null},_setPos:function(a){this._icon&&Ke(this._icon,a),this._shadow&&Ke(this._shadow,a),this._zIndex=a.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(a){this._icon&&(this._icon.style.zIndex=this._zIndex+a)},_animateZoom:function(a){var c=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center).round();this._setPos(c)},_initInteraction:function(){if(this.options.interactive&&(pe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),j1)){var a=this.options.draggable;this.dragging&&(a=this.dragging.enabled(),this.dragging.disable()),this.dragging=new j1(this),a&&this.dragging.enable()}},setOpacity:function(a){return this.options.opacity=a,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var a=this.options.opacity;this._icon&&$t(this._icon,a),this._shadow&&$t(this._shadow,a)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var a=this._map;if(a){var c=this.options.icon.options,p=c.iconSize?V(c.iconSize):V(0,0),g=c.iconAnchor?V(c.iconAnchor):V(0,0);a.panInside(this._latlng,{paddingTopLeft:g,paddingBottomRight:p.subtract(g)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function PN(a,c){return new lf(a,c)}var Ii=mr.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(a){this._renderer=a.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(a){return x(this,a),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&a&&Object.prototype.hasOwnProperty.call(a,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),uf=Ii.extend({options:{fill:!0,radius:10},initialize:function(a,c){x(this,c),this._latlng=ce(a),this._radius=this.options.radius},setLatLng:function(a){var c=this._latlng;return this._latlng=ce(a),this.redraw(),this.fire("move",{oldLatLng:c,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(a){return this.options.radius=this._radius=a,this.redraw()},getRadius:function(){return this._radius},setStyle:function(a){var c=a&&a.radius||this._radius;return Ii.prototype.setStyle.call(this,a),this.setRadius(c),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var a=this._radius,c=this._radiusY||a,p=this._clickTolerance(),g=[a+p,c+p];this._pxBounds=new te(this._point.subtract(g),this._point.add(g))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(a){return a.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function ON(a,c){return new uf(a,c)}var _m=uf.extend({initialize:function(a,c,p){if(typeof c=="number"&&(c=i({},p,{radius:c})),x(this,c),this._latlng=ce(a),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(a){return this._mRadius=a,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var a=[this._radius,this._radiusY||this._radius];return new ae(this._map.layerPointToLatLng(this._point.subtract(a)),this._map.layerPointToLatLng(this._point.add(a)))},setStyle:Ii.prototype.setStyle,_project:function(){var a=this._latlng.lng,c=this._latlng.lat,p=this._map,g=p.options.crs;if(g.distance===ze.distance){var T=Math.PI/180,k=this._mRadius/ze.R/T,I=p.project([c+k,a]),F=p.project([c-k,a]),U=I.add(F).divideBy(2),ee=p.unproject(U).lat,se=Math.acos((Math.cos(k*T)-Math.sin(c*T)*Math.sin(ee*T))/(Math.cos(c*T)*Math.cos(ee*T)))/T;(isNaN(se)||se===0)&&(se=k/Math.cos(Math.PI/180*c)),this._point=U.subtract(p.getPixelOrigin()),this._radius=isNaN(se)?0:U.x-p.project([ee,a-se]).x,this._radiusY=U.y-I.y}else{var xe=g.unproject(g.project(this._latlng).subtract([this._mRadius,0]));this._point=p.latLngToLayerPoint(this._latlng),this._radius=this._point.x-p.latLngToLayerPoint(xe).x}this._updateBounds()}});function TN(a,c,p){return new _m(a,c,p)}var Jr=Ii.extend({options:{smoothFactor:1,noClip:!1},initialize:function(a,c){x(this,c),this._setLatLngs(a)},getLatLngs:function(){return this._latlngs},setLatLngs:function(a){return this._setLatLngs(a),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(a){for(var c=1/0,p=null,g=yl,T,k,I=0,F=this._parts.length;I<F;I++)for(var U=this._parts[I],ee=1,se=U.length;ee<se;ee++){T=U[ee-1],k=U[ee];var xe=g(a,T,k,!0);xe<c&&(c=xe,p=g(a,T,k))}return p&&(p.distance=Math.sqrt(c)),p},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return M1(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(a,c){return c=c||this._defaultShape(),a=ce(a),c.push(a),this._bounds.extend(a),this.redraw()},_setLatLngs:function(a){this._bounds=new ae,this._latlngs=this._convertLatLngs(a)},_defaultShape:function(){return Zn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(a){for(var c=[],p=Zn(a),g=0,T=a.length;g<T;g++)p?(c[g]=ce(a[g]),this._bounds.extend(c[g])):c[g]=this._convertLatLngs(a[g]);return c},_project:function(){var a=new te;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,a),this._bounds.isValid()&&a.isValid()&&(this._rawPxBounds=a,this._updateBounds())},_updateBounds:function(){var a=this._clickTolerance(),c=new $(a,a);this._rawPxBounds&&(this._pxBounds=new te([this._rawPxBounds.min.subtract(c),this._rawPxBounds.max.add(c)]))},_projectLatlngs:function(a,c,p){var g=a[0]instanceof he,T=a.length,k,I;if(g){for(I=[],k=0;k<T;k++)I[k]=this._map.latLngToLayerPoint(a[k]),p.extend(I[k]);c.push(I)}else for(k=0;k<T;k++)this._projectLatlngs(a[k],c,p)},_clipPoints:function(){var a=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(a))){if(this.options.noClip){this._parts=this._rings;return}var c=this._parts,p,g,T,k,I,F,U;for(p=0,T=0,k=this._rings.length;p<k;p++)for(U=this._rings[p],g=0,I=U.length;g<I-1;g++)F=E1(U[g],U[g+1],a,g,!0),F&&(c[T]=c[T]||[],c[T].push(F[0]),(F[1]!==U[g+1]||g===I-2)&&(c[T].push(F[1]),T++))}},_simplifyPoints:function(){for(var a=this._parts,c=this.options.smoothFactor,p=0,g=a.length;p<g;p++)a[p]=O1(a[p],c)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(a,c){var p,g,T,k,I,F,U=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(a))return!1;for(p=0,k=this._parts.length;p<k;p++)for(F=this._parts[p],g=0,I=F.length,T=I-1;g<I;T=g++)if(!(!c&&g===0)&&T1(a,F[T],F[g])<=U)return!0;return!1}});function AN(a,c){return new Jr(a,c)}Jr._flat=k1;var Sa=Jr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return P1(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(a){var c=Jr.prototype._convertLatLngs.call(this,a),p=c.length;return p>=2&&c[0]instanceof he&&c[0].equals(c[p-1])&&c.pop(),c},_setLatLngs:function(a){Jr.prototype._setLatLngs.call(this,a),Zn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Zn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var a=this._renderer._bounds,c=this.options.weight,p=new $(c,c);if(a=new te(a.min.subtract(p),a.max.add(p)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(a))){if(this.options.noClip){this._parts=this._rings;return}for(var g=0,T=this._rings.length,k;g<T;g++)k=S1(this._rings[g],a,!0),k.length&&this._parts.push(k)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(a){var c=!1,p,g,T,k,I,F,U,ee;if(!this._pxBounds||!this._pxBounds.contains(a))return!1;for(k=0,U=this._parts.length;k<U;k++)for(p=this._parts[k],I=0,ee=p.length,F=ee-1;I<ee;F=I++)g=p[I],T=p[F],g.y>a.y!=T.y>a.y&&a.x<(T.x-g.x)*(a.y-g.y)/(T.y-g.y)+g.x&&(c=!c);return c||Jr.prototype._containsPoint.call(this,a,!0)}});function EN(a,c){return new Sa(a,c)}var ei=Qr.extend({initialize:function(a,c){x(this,c),this._layers={},a&&this.addData(a)},addData:function(a){var c=w(a)?a:a.features,p,g,T;if(c){for(p=0,g=c.length;p<g;p++)T=c[p],(T.geometries||T.geometry||T.features||T.coordinates)&&this.addData(T);return this}var k=this.options;if(k.filter&&!k.filter(a))return this;var I=cf(a,k);return I?(I.feature=df(a),I.defaultOptions=I.options,this.resetStyle(I),k.onEachFeature&&k.onEachFeature(a,I),this.addLayer(I)):this},resetStyle:function(a){return a===void 0?this.eachLayer(this.resetStyle,this):(a.options=i({},a.defaultOptions),this._setLayerStyle(a,this.options.style),this)},setStyle:function(a){return this.eachLayer(function(c){this._setLayerStyle(c,a)},this)},_setLayerStyle:function(a,c){a.setStyle&&(typeof c=="function"&&(c=c(a.feature)),a.setStyle(c))}});function cf(a,c){var p=a.type==="Feature"?a.geometry:a,g=p?p.coordinates:null,T=[],k=c&&c.pointToLayer,I=c&&c.coordsToLatLng||bm,F,U,ee,se;if(!g&&!p)return null;switch(p.type){case"Point":return F=I(g),$1(k,a,F,c);case"MultiPoint":for(ee=0,se=g.length;ee<se;ee++)F=I(g[ee]),T.push($1(k,a,F,c));return new Qr(T);case"LineString":case"MultiLineString":return U=ff(g,p.type==="LineString"?0:1,I),new Jr(U,c);case"Polygon":case"MultiPolygon":return U=ff(g,p.type==="Polygon"?1:2,I),new Sa(U,c);case"GeometryCollection":for(ee=0,se=p.geometries.length;ee<se;ee++){var xe=cf({geometry:p.geometries[ee],type:"Feature",properties:a.properties},c);xe&&T.push(xe)}return new Qr(T);case"FeatureCollection":for(ee=0,se=p.features.length;ee<se;ee++){var Te=cf(p.features[ee],c);Te&&T.push(Te)}return new Qr(T);default:throw new Error("Invalid GeoJSON object.")}}function $1(a,c,p,g){return a?a(c,p):new lf(p,g&&g.markersInheritOptions&&g)}function bm(a){return new he(a[1],a[0],a[2])}function ff(a,c,p){for(var g=[],T=0,k=a.length,I;T<k;T++)I=c?ff(a[T],c-1,p):(p||bm)(a[T]),g.push(I);return g}function wm(a,c){return a=ce(a),a.alt!==void 0?[m(a.lng,c),m(a.lat,c),m(a.alt,c)]:[m(a.lng,c),m(a.lat,c)]}function hf(a,c,p,g){for(var T=[],k=0,I=a.length;k<I;k++)T.push(c?hf(a[k],Zn(a[k])?0:c-1,p,g):wm(a[k],g));return!c&&p&&T.length>0&&T.push(T[0].slice()),T}function Pa(a,c){return a.feature?i({},a.feature,{geometry:c}):df(c)}function df(a){return a.type==="Feature"||a.type==="FeatureCollection"?a:{type:"Feature",properties:{},geometry:a}}var Sm={toGeoJSON:function(a){return Pa(this,{type:"Point",coordinates:wm(this.getLatLng(),a)})}};lf.include(Sm),_m.include(Sm),uf.include(Sm),Jr.include({toGeoJSON:function(a){var c=!Zn(this._latlngs),p=hf(this._latlngs,c?1:0,!1,a);return Pa(this,{type:(c?"Multi":"")+"LineString",coordinates:p})}}),Sa.include({toGeoJSON:function(a){var c=!Zn(this._latlngs),p=c&&!Zn(this._latlngs[0]),g=hf(this._latlngs,p?2:c?1:0,!0,a);return c||(g=[g]),Pa(this,{type:(p?"Multi":"")+"Polygon",coordinates:g})}}),ba.include({toMultiPoint:function(a){var c=[];return this.eachLayer(function(p){c.push(p.toGeoJSON(a).geometry.coordinates)}),Pa(this,{type:"MultiPoint",coordinates:c})},toGeoJSON:function(a){var c=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(c==="MultiPoint")return this.toMultiPoint(a);var p=c==="GeometryCollection",g=[];return this.eachLayer(function(T){if(T.toGeoJSON){var k=T.toGeoJSON(a);if(p)g.push(k.geometry);else{var I=df(k);I.type==="FeatureCollection"?g.push.apply(g,I.features):g.push(I)}}}),p?Pa(this,{geometries:g,type:"GeometryCollection"}):{type:"FeatureCollection",features:g}}});function N1(a,c){return new ei(a,c)}var kN=N1,pf=mr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(a,c,p){this._url=a,this._bounds=fe(c),x(this,p)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(pe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ne(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(a){return this.options.opacity=a,this._image&&this._updateOpacity(),this},setStyle:function(a){return a.opacity&&this.setOpacity(a.opacity),this},bringToFront:function(){return this._map&&ot(this._image),this},bringToBack:function(){return this._map&&un(this._image),this},setUrl:function(a){return this._url=a,this._image&&(this._image.src=a),this},setBounds:function(a){return this._bounds=fe(a),this._map&&this._reset(),this},getEvents:function(){var a={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(a.zoomanim=this._animateZoom),a},setZIndex:function(a){return this.options.zIndex=a,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var a=this._url.tagName==="IMG",c=this._image=a?this._url:Ce("img");if(pe(c,"leaflet-image-layer"),this._zoomAnimated&&pe(c,"leaflet-zoom-animated"),this.options.className&&pe(c,this.options.className),c.onselectstart=h,c.onmousemove=h,c.onload=s(this.fire,this,"load"),c.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(c.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),a){this._url=c.src;return}c.src=this._url,c.alt=this.options.alt},_animateZoom:function(a){var c=this._map.getZoomScale(a.zoom),p=this._map._latLngBoundsToNewLayerBounds(this._bounds,a.zoom,a.center).min;yn(this._image,p,c)},_reset:function(){var a=this._image,c=new te(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),p=c.getSize();Ke(a,c.min),a.style.width=p.x+"px",a.style.height=p.y+"px"},_updateOpacity:function(){$t(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var a=this.options.errorOverlayUrl;a&&this._url!==a&&(this._url=a,this._image.src=a)},getCenter:function(){return this._bounds.getCenter()}}),MN=function(a,c,p){return new pf(a,c,p)},L1=pf.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var a=this._url.tagName==="VIDEO",c=this._image=a?this._url:Ce("video");if(pe(c,"leaflet-image-layer"),this._zoomAnimated&&pe(c,"leaflet-zoom-animated"),this.options.className&&pe(c,this.options.className),c.onselectstart=h,c.onmousemove=h,c.onloadeddata=s(this.fire,this,"load"),a){for(var p=c.getElementsByTagName("source"),g=[],T=0;T<p.length;T++)g.push(p[T].src);this._url=p.length>0?g:[c.src];return}w(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(c.style,"objectFit")&&(c.style.objectFit="fill"),c.autoplay=!!this.options.autoplay,c.loop=!!this.options.loop,c.muted=!!this.options.muted,c.playsInline=!!this.options.playsInline;for(var k=0;k<this._url.length;k++){var I=Ce("source");I.src=this._url[k],c.appendChild(I)}}});function CN(a,c,p){return new L1(a,c,p)}var I1=pf.extend({_initImage:function(){var a=this._image=this._url;pe(a,"leaflet-image-layer"),this._zoomAnimated&&pe(a,"leaflet-zoom-animated"),this.options.className&&pe(a,this.options.className),a.onselectstart=h,a.onmousemove=h}});function jN(a,c,p){return new I1(a,c,p)}var Nr=mr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(a,c){a&&(a instanceof he||w(a))?(this._latlng=ce(a),x(this,c)):(x(this,a),this._source=c),this.options.content&&(this._content=this.options.content)},openOn:function(a){return a=arguments.length?a:this._source._map,a.hasLayer(this)||a.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(a){return this._map?this.close():(arguments.length?this._source=a:a=this._source,this._prepareOpen(),this.openOn(a._map)),this},onAdd:function(a){this._zoomAnimated=a._zoomAnimated,this._container||this._initLayout(),a._fadeAnimated&&$t(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),a._fadeAnimated&&$t(this._container,1),this.bringToFront(),this.options.interactive&&(pe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(a){a._fadeAnimated?($t(this._container,0),this._removeTimeout=setTimeout(s(ne,void 0,this._container),200)):ne(this._container),this.options.interactive&&(Ae(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(a){return this._latlng=ce(a),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(a){return this._content=a,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var a={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(a.zoomanim=this._animateZoom),a},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ot(this._container),this},bringToBack:function(){return this._map&&un(this._container),this},_prepareOpen:function(a){var c=this._source;if(!c._map)return!1;if(c instanceof Qr){c=null;var p=this._source._layers;for(var g in p)if(p[g]._map){c=p[g];break}if(!c)return!1;this._source=c}if(!a)if(c.getCenter)a=c.getCenter();else if(c.getLatLng)a=c.getLatLng();else if(c.getBounds)a=c.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(a),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var a=this._contentNode,c=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof c=="string")a.innerHTML=c;else{for(;a.hasChildNodes();)a.removeChild(a.firstChild);a.appendChild(c)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var a=this._map.latLngToLayerPoint(this._latlng),c=V(this.options.offset),p=this._getAnchor();this._zoomAnimated?Ke(this._container,a.add(p)):c=c.add(a).add(p);var g=this._containerBottom=-c.y,T=this._containerLeft=-Math.round(this._containerWidth/2)+c.x;this._container.style.bottom=g+"px",this._container.style.left=T+"px"}},_getAnchor:function(){return[0,0]}});je.include({_initOverlay:function(a,c,p,g){var T=c;return T instanceof a||(T=new a(g).setContent(c)),p&&T.setLatLng(p),T}}),mr.include({_initOverlay:function(a,c,p,g){var T=p;return T instanceof a?(x(T,g),T._source=this):(T=c&&!g?c:new a(g,this),T.setContent(p)),T}});var mf=Nr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(a){return a=arguments.length?a:this._source._map,!a.hasLayer(this)&&a._popup&&a._popup.options.autoClose&&a.removeLayer(a._popup),a._popup=this,Nr.prototype.openOn.call(this,a)},onAdd:function(a){Nr.prototype.onAdd.call(this,a),a.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ii||this._source.on("preclick",Oo))},onRemove:function(a){Nr.prototype.onRemove.call(this,a),a.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ii||this._source.off("preclick",Oo))},getEvents:function(){var a=Nr.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(a.preclick=this.close),this.options.keepInView&&(a.moveend=this._adjustPan),a},_initLayout:function(){var a="leaflet-popup",c=this._container=Ce("div",a+" "+(this.options.className||"")+" leaflet-zoom-animated"),p=this._wrapper=Ce("div",a+"-content-wrapper",c);if(this._contentNode=Ce("div",a+"-content",p),vl(c),hm(this._contentNode),we(c,"contextmenu",Oo),this._tipContainer=Ce("div",a+"-tip-container",c),this._tip=Ce("div",a+"-tip",this._tipContainer),this.options.closeButton){var g=this._closeButton=Ce("a",a+"-close-button",c);g.setAttribute("role","button"),g.setAttribute("aria-label","Close popup"),g.href="#close",g.innerHTML='<span aria-hidden="true">×</span>',we(g,"click",function(T){Ft(T),this.close()},this)}},_updateLayout:function(){var a=this._contentNode,c=a.style;c.width="",c.whiteSpace="nowrap";var p=a.offsetWidth;p=Math.min(p,this.options.maxWidth),p=Math.max(p,this.options.minWidth),c.width=p+1+"px",c.whiteSpace="",c.height="";var g=a.offsetHeight,T=this.options.maxHeight,k="leaflet-popup-scrolled";T&&g>T?(c.height=T+"px",pe(a,k)):Ae(a,k),this._containerWidth=this._container.offsetWidth},_animateZoom:function(a){var c=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center),p=this._getAnchor();Ke(this._container,c.add(p))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var a=this._map,c=parseInt(ji(this._container,"marginBottom"),10)||0,p=this._container.offsetHeight+c,g=this._containerWidth,T=new $(this._containerLeft,-p-this._containerBottom);T._add(dr(this._container));var k=a.layerPointToContainerPoint(T),I=V(this.options.autoPanPadding),F=V(this.options.autoPanPaddingTopLeft||I),U=V(this.options.autoPanPaddingBottomRight||I),ee=a.getSize(),se=0,xe=0;k.x+g+U.x>ee.x&&(se=k.x+g-ee.x+U.x),k.x-se-F.x<0&&(se=k.x-F.x),k.y+p+U.y>ee.y&&(xe=k.y+p-ee.y+U.y),k.y-xe-F.y<0&&(xe=k.y-F.y),(se||xe)&&(this.options.keepInView&&(this._autopanning=!0),a.fire("autopanstart").panBy([se,xe]))}},_getAnchor:function(){return V(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),$N=function(a,c){return new mf(a,c)};je.mergeOptions({closePopupOnClick:!0}),je.include({openPopup:function(a,c,p){return this._initOverlay(mf,a,c,p).openOn(this),this},closePopup:function(a){return a=arguments.length?a:this._popup,a&&a.close(),this}}),mr.include({bindPopup:function(a,c){return this._popup=this._initOverlay(mf,this._popup,a,c),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(a){return this._popup&&(this instanceof Qr||(this._popup._source=this),this._popup._prepareOpen(a||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(a){return this._popup&&this._popup.setContent(a),this},getPopup:function(){return this._popup},_openPopup:function(a){if(!(!this._popup||!this._map)){To(a);var c=a.layer||a.target;if(this._popup._source===c&&!(c instanceof Ii)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(a.latlng);return}this._popup._source=c,this.openPopup(a.latlng)}},_movePopup:function(a){this._popup.setLatLng(a.latlng)},_onKeyPress:function(a){a.originalEvent.keyCode===13&&this._openPopup(a)}});var vf=Nr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(a){Nr.prototype.onAdd.call(this,a),this.setOpacity(this.options.opacity),a.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(a){Nr.prototype.onRemove.call(this,a),a.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var a=Nr.prototype.getEvents.call(this);return this.options.permanent||(a.preclick=this.close),a},_initLayout:function(){var a="leaflet-tooltip",c=a+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Ce("div",c),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+u(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(a){var c,p,g=this._map,T=this._container,k=g.latLngToContainerPoint(g.getCenter()),I=g.layerPointToContainerPoint(a),F=this.options.direction,U=T.offsetWidth,ee=T.offsetHeight,se=V(this.options.offset),xe=this._getAnchor();F==="top"?(c=U/2,p=ee):F==="bottom"?(c=U/2,p=0):F==="center"?(c=U/2,p=ee/2):F==="right"?(c=0,p=ee/2):F==="left"?(c=U,p=ee/2):I.x<k.x?(F="right",c=0,p=ee/2):(F="left",c=U+(se.x+xe.x)*2,p=ee/2),a=a.subtract(V(c,p,!0)).add(se).add(xe),Ae(T,"leaflet-tooltip-right"),Ae(T,"leaflet-tooltip-left"),Ae(T,"leaflet-tooltip-top"),Ae(T,"leaflet-tooltip-bottom"),pe(T,"leaflet-tooltip-"+F),Ke(T,a)},_updatePosition:function(){var a=this._map.latLngToLayerPoint(this._latlng);this._setPosition(a)},setOpacity:function(a){this.options.opacity=a,this._container&&$t(this._container,a)},_animateZoom:function(a){var c=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center);this._setPosition(c)},_getAnchor:function(){return V(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),NN=function(a,c){return new vf(a,c)};je.include({openTooltip:function(a,c,p){return this._initOverlay(vf,a,c,p).openOn(this),this},closeTooltip:function(a){return a.close(),this}}),mr.include({bindTooltip:function(a,c){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(vf,this._tooltip,a,c),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(a){if(!(!a&&this._tooltipHandlersAdded)){var c=a?"off":"on",p={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?p.add=this._openTooltip:(p.mouseover=this._openTooltip,p.mouseout=this.closeTooltip,p.click=this._openTooltip,this._map?this._addFocusListeners():p.add=this._addFocusListeners),this._tooltip.options.sticky&&(p.mousemove=this._moveTooltip),this[c](p),this._tooltipHandlersAdded=!a}},openTooltip:function(a){return this._tooltip&&(this instanceof Qr||(this._tooltip._source=this),this._tooltip._prepareOpen(a)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(a){return this._tooltip&&this._tooltip.setContent(a),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(a){var c=typeof a.getElement=="function"&&a.getElement();c&&(we(c,"focus",function(){this._tooltip._source=a,this.openTooltip()},this),we(c,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(a){var c=typeof a.getElement=="function"&&a.getElement();c&&c.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(a){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var c=this;this._map.once("moveend",function(){c._openOnceFlag=!1,c._openTooltip(a)});return}this._tooltip._source=a.layer||a.target,this.openTooltip(this._tooltip.options.sticky?a.latlng:void 0)}},_moveTooltip:function(a){var c=a.latlng,p,g;this._tooltip.options.sticky&&a.originalEvent&&(p=this._map.mouseEventToContainerPoint(a.originalEvent),g=this._map.containerPointToLayerPoint(p),c=this._map.layerPointToLatLng(g)),this._tooltip.setLatLng(c)}});var D1=wa.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(a){var c=a&&a.tagName==="DIV"?a:document.createElement("div"),p=this.options;if(p.html instanceof Element?(lt(c),c.appendChild(p.html)):c.innerHTML=p.html!==!1?p.html:"",p.bgPos){var g=V(p.bgPos);c.style.backgroundPosition=-g.x+"px "+-g.y+"px"}return this._setIconStyles(c,"icon"),c},createShadow:function(){return null}});function LN(a){return new D1(a)}wa.Default=xl;var _l=mr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:de.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(a){x(this,a)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(a){a._addZoomLimit(this)},onRemove:function(a){this._removeAllTiles(),ne(this._container),a._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ot(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(un(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(a){return this.options.opacity=a,this._updateOpacity(),this},setZIndex:function(a){return this.options.zIndex=a,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var a=this._clampZoom(this._map.getZoom());a!==this._tileZoom&&(this._tileZoom=a,this._updateLevels()),this._update()}return this},getEvents:function(){var a={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=f(this._onMoveEnd,this.options.updateInterval,this)),a.move=this._onMove),this._zoomAnimated&&(a.zoomanim=this._animateZoom),a},createTile:function(){return document.createElement("div")},getTileSize:function(){var a=this.options.tileSize;return a instanceof $?a:new $(a,a)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(a){for(var c=this.getPane().children,p=-a(-1/0,1/0),g=0,T=c.length,k;g<T;g++)k=c[g].style.zIndex,c[g]!==this._container&&k&&(p=a(p,+k));isFinite(p)&&(this.options.zIndex=p+a(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!de.ielt9){$t(this._container,this.options.opacity);var a=+new Date,c=!1,p=!1;for(var g in this._tiles){var T=this._tiles[g];if(!(!T.current||!T.loaded)){var k=Math.min(1,(a-T.loaded)/200);$t(T.el,k),k<1?c=!0:(T.active?p=!0:this._onOpaqueTile(T),T.active=!0)}}p&&!this._noPrune&&this._pruneTiles(),c&&(R(this._fadeFrame),this._fadeFrame=z(this._updateOpacity,this))}},_onOpaqueTile:h,_initContainer:function(){this._container||(this._container=Ce("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var a=this._tileZoom,c=this.options.maxZoom;if(a!==void 0){for(var p in this._levels)p=Number(p),this._levels[p].el.children.length||p===a?(this._levels[p].el.style.zIndex=c-Math.abs(a-p),this._onUpdateLevel(p)):(ne(this._levels[p].el),this._removeTilesAtZoom(p),this._onRemoveLevel(p),delete this._levels[p]);var g=this._levels[a],T=this._map;return g||(g=this._levels[a]={},g.el=Ce("div","leaflet-tile-container leaflet-zoom-animated",this._container),g.el.style.zIndex=c,g.origin=T.project(T.unproject(T.getPixelOrigin()),a).round(),g.zoom=a,this._setZoomTransform(g,T.getCenter(),T.getZoom()),h(g.el.offsetWidth),this._onCreateLevel(g)),this._level=g,g}},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(this._map){var a,c,p=this._map.getZoom();if(p>this.options.maxZoom||p<this.options.minZoom){this._removeAllTiles();return}for(a in this._tiles)c=this._tiles[a],c.retain=c.current;for(a in this._tiles)if(c=this._tiles[a],c.current&&!c.active){var g=c.coords;this._retainParent(g.x,g.y,g.z,g.z-5)||this._retainChildren(g.x,g.y,g.z,g.z+2)}for(a in this._tiles)this._tiles[a].retain||this._removeTile(a)}},_removeTilesAtZoom:function(a){for(var c in this._tiles)this._tiles[c].coords.z===a&&this._removeTile(c)},_removeAllTiles:function(){for(var a in this._tiles)this._removeTile(a)},_invalidateAll:function(){for(var a in this._levels)ne(this._levels[a].el),this._onRemoveLevel(Number(a)),delete this._levels[a];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(a,c,p,g){var T=Math.floor(a/2),k=Math.floor(c/2),I=p-1,F=new $(+T,+k);F.z=+I;var U=this._tileCoordsToKey(F),ee=this._tiles[U];return ee&&ee.active?(ee.retain=!0,!0):(ee&&ee.loaded&&(ee.retain=!0),I>g?this._retainParent(T,k,I,g):!1)},_retainChildren:function(a,c,p,g){for(var T=2*a;T<2*a+2;T++)for(var k=2*c;k<2*c+2;k++){var I=new $(T,k);I.z=p+1;var F=this._tileCoordsToKey(I),U=this._tiles[F];if(U&&U.active){U.retain=!0;continue}else U&&U.loaded&&(U.retain=!0);p+1<g&&this._retainChildren(T,k,p+1,g)}},_resetView:function(a){var c=a&&(a.pinch||a.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),c,c)},_animateZoom:function(a){this._setView(a.center,a.zoom,!0,a.noUpdate)},_clampZoom:function(a){var c=this.options;return c.minNativeZoom!==void 0&&a<c.minNativeZoom?c.minNativeZoom:c.maxNativeZoom!==void 0&&c.maxNativeZoom<a?c.maxNativeZoom:a},_setView:function(a,c,p,g){var T=Math.round(c);this.options.maxZoom!==void 0&&T>this.options.maxZoom||this.options.minZoom!==void 0&&T<this.options.minZoom?T=void 0:T=this._clampZoom(T);var k=this.options.updateWhenZooming&&T!==this._tileZoom;(!g||k)&&(this._tileZoom=T,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),T!==void 0&&this._update(a),p||this._pruneTiles(),this._noPrune=!!p),this._setZoomTransforms(a,c)},_setZoomTransforms:function(a,c){for(var p in this._levels)this._setZoomTransform(this._levels[p],a,c)},_setZoomTransform:function(a,c,p){var g=this._map.getZoomScale(p,a.zoom),T=a.origin.multiplyBy(g).subtract(this._map._getNewPixelOrigin(c,p)).round();de.any3d?yn(a.el,T,g):Ke(a.el,T)},_resetGrid:function(){var a=this._map,c=a.options.crs,p=this._tileSize=this.getTileSize(),g=this._tileZoom,T=this._map.getPixelWorldBounds(this._tileZoom);T&&(this._globalTileRange=this._pxBoundsToTileRange(T)),this._wrapX=c.wrapLng&&!this.options.noWrap&&[Math.floor(a.project([0,c.wrapLng[0]],g).x/p.x),Math.ceil(a.project([0,c.wrapLng[1]],g).x/p.y)],this._wrapY=c.wrapLat&&!this.options.noWrap&&[Math.floor(a.project([c.wrapLat[0],0],g).y/p.x),Math.ceil(a.project([c.wrapLat[1],0],g).y/p.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(a){var c=this._map,p=c._animatingZoom?Math.max(c._animateToZoom,c.getZoom()):c.getZoom(),g=c.getZoomScale(p,this._tileZoom),T=c.project(a,this._tileZoom).floor(),k=c.getSize().divideBy(g*2);return new te(T.subtract(k),T.add(k))},_update:function(a){var c=this._map;if(c){var p=this._clampZoom(c.getZoom());if(a===void 0&&(a=c.getCenter()),this._tileZoom!==void 0){var g=this._getTiledPixelBounds(a),T=this._pxBoundsToTileRange(g),k=T.getCenter(),I=[],F=this.options.keepBuffer,U=new te(T.getBottomLeft().subtract([F,-F]),T.getTopRight().add([F,-F]));if(!(isFinite(T.min.x)&&isFinite(T.min.y)&&isFinite(T.max.x)&&isFinite(T.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var ee in this._tiles){var se=this._tiles[ee].coords;(se.z!==this._tileZoom||!U.contains(new $(se.x,se.y)))&&(this._tiles[ee].current=!1)}if(Math.abs(p-this._tileZoom)>1){this._setView(a,p);return}for(var xe=T.min.y;xe<=T.max.y;xe++)for(var Te=T.min.x;Te<=T.max.x;Te++){var cn=new $(Te,xe);if(cn.z=this._tileZoom,!!this._isValidTile(cn)){var Nt=this._tiles[this._tileCoordsToKey(cn)];Nt?Nt.current=!0:I.push(cn)}}if(I.sort(function(xn,Ta){return xn.distanceTo(k)-Ta.distanceTo(k)}),I.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Gn=document.createDocumentFragment();for(Te=0;Te<I.length;Te++)this._addTile(I[Te],Gn);this._level.el.appendChild(Gn)}}}},_isValidTile:function(a){var c=this._map.options.crs;if(!c.infinite){var p=this._globalTileRange;if(!c.wrapLng&&(a.x<p.min.x||a.x>p.max.x)||!c.wrapLat&&(a.y<p.min.y||a.y>p.max.y))return!1}if(!this.options.bounds)return!0;var g=this._tileCoordsToBounds(a);return fe(this.options.bounds).overlaps(g)},_keyToBounds:function(a){return this._tileCoordsToBounds(this._keyToTileCoords(a))},_tileCoordsToNwSe:function(a){var c=this._map,p=this.getTileSize(),g=a.scaleBy(p),T=g.add(p),k=c.unproject(g,a.z),I=c.unproject(T,a.z);return[k,I]},_tileCoordsToBounds:function(a){var c=this._tileCoordsToNwSe(a),p=new ae(c[0],c[1]);return this.options.noWrap||(p=this._map.wrapLatLngBounds(p)),p},_tileCoordsToKey:function(a){return a.x+":"+a.y+":"+a.z},_keyToTileCoords:function(a){var c=a.split(":"),p=new $(+c[0],+c[1]);return p.z=+c[2],p},_removeTile:function(a){var c=this._tiles[a];c&&(ne(c.el),delete this._tiles[a],this.fire("tileunload",{tile:c.el,coords:this._keyToTileCoords(a)}))},_initTile:function(a){pe(a,"leaflet-tile");var c=this.getTileSize();a.style.width=c.x+"px",a.style.height=c.y+"px",a.onselectstart=h,a.onmousemove=h,de.ielt9&&this.options.opacity<1&&$t(a,this.options.opacity)},_addTile:function(a,c){var p=this._getTilePos(a),g=this._tileCoordsToKey(a),T=this.createTile(this._wrapCoords(a),s(this._tileReady,this,a));this._initTile(T),this.createTile.length<2&&z(s(this._tileReady,this,a,null,T)),Ke(T,p),this._tiles[g]={el:T,coords:a,current:!0},c.appendChild(T),this.fire("tileloadstart",{tile:T,coords:a})},_tileReady:function(a,c,p){c&&this.fire("tileerror",{error:c,tile:p,coords:a});var g=this._tileCoordsToKey(a);p=this._tiles[g],p&&(p.loaded=+new Date,this._map._fadeAnimated?($t(p.el,0),R(this._fadeFrame),this._fadeFrame=z(this._updateOpacity,this)):(p.active=!0,this._pruneTiles()),c||(pe(p.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:p.el,coords:a})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),de.ielt9||!this._map._fadeAnimated?z(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(a){return a.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(a){var c=new $(this._wrapX?d(a.x,this._wrapX):a.x,this._wrapY?d(a.y,this._wrapY):a.y);return c.z=a.z,c},_pxBoundsToTileRange:function(a){var c=this.getTileSize();return new te(a.min.unscaleBy(c).floor(),a.max.unscaleBy(c).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var a in this._tiles)if(!this._tiles[a].loaded)return!1;return!0}});function IN(a){return new _l(a)}var Oa=_l.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(a,c){this._url=a,c=x(this,c),c.detectRetina&&de.retina&&c.maxZoom>0?(c.tileSize=Math.floor(c.tileSize/2),c.zoomReverse?(c.zoomOffset--,c.minZoom=Math.min(c.maxZoom,c.minZoom+1)):(c.zoomOffset++,c.maxZoom=Math.max(c.minZoom,c.maxZoom-1)),c.minZoom=Math.max(0,c.minZoom)):c.zoomReverse?c.minZoom=Math.min(c.maxZoom,c.minZoom):c.maxZoom=Math.max(c.minZoom,c.maxZoom),typeof c.subdomains=="string"&&(c.subdomains=c.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(a,c){return this._url===a&&c===void 0&&(c=!0),this._url=a,c||this.redraw(),this},createTile:function(a,c){var p=document.createElement("img");return we(p,"load",s(this._tileOnLoad,this,c,p)),we(p,"error",s(this._tileOnError,this,c,p)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(p.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(p.referrerPolicy=this.options.referrerPolicy),p.alt="",p.src=this.getTileUrl(a),p},getTileUrl:function(a){var c={r:de.retina?"@2x":"",s:this._getSubdomain(a),x:a.x,y:a.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var p=this._globalTileRange.max.y-a.y;this.options.tms&&(c.y=p),c["-y"]=p}return _(this._url,i(c,this.options))},_tileOnLoad:function(a,c){de.ielt9?setTimeout(s(a,this,null,c),0):a(null,c)},_tileOnError:function(a,c,p){var g=this.options.errorTileUrl;g&&c.getAttribute("src")!==g&&(c.src=g),a(p,c)},_onTileRemove:function(a){a.tile.onload=null},_getZoomForUrl:function(){var a=this._tileZoom,c=this.options.maxZoom,p=this.options.zoomReverse,g=this.options.zoomOffset;return p&&(a=c-a),a+g},_getSubdomain:function(a){var c=Math.abs(a.x+a.y)%this.options.subdomains.length;return this.options.subdomains[c]},_abortLoading:function(){var a,c;for(a in this._tiles)if(this._tiles[a].coords.z!==this._tileZoom&&(c=this._tiles[a].el,c.onload=h,c.onerror=h,!c.complete)){c.src=P;var p=this._tiles[a].coords;ne(c),delete this._tiles[a],this.fire("tileabort",{tile:c,coords:p})}},_removeTile:function(a){var c=this._tiles[a];if(c)return c.el.setAttribute("src",P),_l.prototype._removeTile.call(this,a)},_tileReady:function(a,c,p){if(!(!this._map||p&&p.getAttribute("src")===P))return _l.prototype._tileReady.call(this,a,c,p)}});function R1(a,c){return new Oa(a,c)}var z1=Oa.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(a,c){this._url=a;var p=i({},this.defaultWmsParams);for(var g in c)g in this.options||(p[g]=c[g]);c=x(this,c);var T=c.detectRetina&&de.retina?2:1,k=this.getTileSize();p.width=k.x*T,p.height=k.y*T,this.wmsParams=p},onAdd:function(a){this._crs=this.options.crs||a.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var c=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[c]=this._crs.code,Oa.prototype.onAdd.call(this,a)},getTileUrl:function(a){var c=this._tileCoordsToNwSe(a),p=this._crs,g=Q(p.project(c[0]),p.project(c[1])),T=g.min,k=g.max,I=(this._wmsVersion>=1.3&&this._crs===C1?[T.y,T.x,k.y,k.x]:[T.x,T.y,k.x,k.y]).join(","),F=Oa.prototype.getTileUrl.call(this,a);return F+S(this.wmsParams,F,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+I},setParams:function(a,c){return i(this.wmsParams,a),c||this.redraw(),this}});function DN(a,c){return new z1(a,c)}Oa.WMS=z1,R1.wms=DN;var ti=mr.extend({options:{padding:.1},initialize:function(a){x(this,a),u(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),pe(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var a={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(a.zoomanim=this._onAnimZoom),a},_onAnimZoom:function(a){this._updateTransform(a.center,a.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(a,c){var p=this._map.getZoomScale(c,this._zoom),g=this._map.getSize().multiplyBy(.5+this.options.padding),T=this._map.project(this._center,c),k=g.multiplyBy(-p).add(T).subtract(this._map._getNewPixelOrigin(a,c));de.any3d?yn(this._container,k,p):Ke(this._container,k)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var a in this._layers)this._layers[a]._reset()},_onZoomEnd:function(){for(var a in this._layers)this._layers[a]._project()},_updatePaths:function(){for(var a in this._layers)this._layers[a]._update()},_update:function(){var a=this.options.padding,c=this._map.getSize(),p=this._map.containerPointToLayerPoint(c.multiplyBy(-a)).round();this._bounds=new te(p,p.add(c.multiplyBy(1+a*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),B1=ti.extend({options:{tolerance:0},getEvents:function(){var a=ti.prototype.getEvents.call(this);return a.viewprereset=this._onViewPreReset,a},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ti.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var a=this._container=document.createElement("canvas");we(a,"mousemove",this._onMouseMove,this),we(a,"click dblclick mousedown mouseup contextmenu",this._onClick,this),we(a,"mouseout",this._handleMouseOut,this),a._leaflet_disable_events=!0,this._ctx=a.getContext("2d")},_destroyContainer:function(){R(this._redrawRequest),delete this._ctx,ne(this._container),Xe(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var a;this._redrawBounds=null;for(var c in this._layers)a=this._layers[c],a._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ti.prototype._update.call(this);var a=this._bounds,c=this._container,p=a.getSize(),g=de.retina?2:1;Ke(c,a.min),c.width=g*p.x,c.height=g*p.y,c.style.width=p.x+"px",c.style.height=p.y+"px",de.retina&&this._ctx.scale(2,2),this._ctx.translate(-a.min.x,-a.min.y),this.fire("update")}},_reset:function(){ti.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(a){this._updateDashArray(a),this._layers[u(a)]=a;var c=a._order={layer:a,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=c),this._drawLast=c,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(a){this._requestRedraw(a)},_removePath:function(a){var c=a._order,p=c.next,g=c.prev;p?p.prev=g:this._drawLast=g,g?g.next=p:this._drawFirst=p,delete a._order,delete this._layers[u(a)],this._requestRedraw(a)},_updatePath:function(a){this._extendRedrawBounds(a),a._project(),a._update(),this._requestRedraw(a)},_updateStyle:function(a){this._updateDashArray(a),this._requestRedraw(a)},_updateDashArray:function(a){if(typeof a.options.dashArray=="string"){var c=a.options.dashArray.split(/[, ]+/),p=[],g,T;for(T=0;T<c.length;T++){if(g=Number(c[T]),isNaN(g))return;p.push(g)}a.options._dashArray=p}else a.options._dashArray=a.options.dashArray},_requestRedraw:function(a){this._map&&(this._extendRedrawBounds(a),this._redrawRequest=this._redrawRequest||z(this._redraw,this))},_extendRedrawBounds:function(a){if(a._pxBounds){var c=(a.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new te,this._redrawBounds.extend(a._pxBounds.min.subtract([c,c])),this._redrawBounds.extend(a._pxBounds.max.add([c,c]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var a=this._redrawBounds;if(a){var c=a.getSize();this._ctx.clearRect(a.min.x,a.min.y,c.x,c.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var a,c=this._redrawBounds;if(this._ctx.save(),c){var p=c.getSize();this._ctx.beginPath(),this._ctx.rect(c.min.x,c.min.y,p.x,p.y),this._ctx.clip()}this._drawing=!0;for(var g=this._drawFirst;g;g=g.next)a=g.layer,(!c||a._pxBounds&&a._pxBounds.intersects(c))&&a._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(a,c){if(this._drawing){var p,g,T,k,I=a._parts,F=I.length,U=this._ctx;if(F){for(U.beginPath(),p=0;p<F;p++){for(g=0,T=I[p].length;g<T;g++)k=I[p][g],U[g?"lineTo":"moveTo"](k.x,k.y);c&&U.closePath()}this._fillStroke(U,a)}}},_updateCircle:function(a){if(!(!this._drawing||a._empty())){var c=a._point,p=this._ctx,g=Math.max(Math.round(a._radius),1),T=(Math.max(Math.round(a._radiusY),1)||g)/g;T!==1&&(p.save(),p.scale(1,T)),p.beginPath(),p.arc(c.x,c.y/T,g,0,Math.PI*2,!1),T!==1&&p.restore(),this._fillStroke(p,a)}},_fillStroke:function(a,c){var p=c.options;p.fill&&(a.globalAlpha=p.fillOpacity,a.fillStyle=p.fillColor||p.color,a.fill(p.fillRule||"evenodd")),p.stroke&&p.weight!==0&&(a.setLineDash&&a.setLineDash(c.options&&c.options._dashArray||[]),a.globalAlpha=p.opacity,a.lineWidth=p.weight,a.strokeStyle=p.color,a.lineCap=p.lineCap,a.lineJoin=p.lineJoin,a.stroke())},_onClick:function(a){for(var c=this._map.mouseEventToLayerPoint(a),p,g,T=this._drawFirst;T;T=T.next)p=T.layer,p.options.interactive&&p._containsPoint(c)&&(!(a.type==="click"||a.type==="preclick")||!this._map._draggableMoved(p))&&(g=p);this._fireEvent(g?[g]:!1,a)},_onMouseMove:function(a){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var c=this._map.mouseEventToLayerPoint(a);this._handleMouseHover(a,c)}},_handleMouseOut:function(a){var c=this._hoveredLayer;c&&(Ae(this._container,"leaflet-interactive"),this._fireEvent([c],a,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(a,c){if(!this._mouseHoverThrottled){for(var p,g,T=this._drawFirst;T;T=T.next)p=T.layer,p.options.interactive&&p._containsPoint(c)&&(g=p);g!==this._hoveredLayer&&(this._handleMouseOut(a),g&&(pe(this._container,"leaflet-interactive"),this._fireEvent([g],a,"mouseover"),this._hoveredLayer=g)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,a),this._mouseHoverThrottled=!0,setTimeout(s(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(a,c,p){this._map._fireDOMEvent(c,p||c.type,a)},_bringToFront:function(a){var c=a._order;if(c){var p=c.next,g=c.prev;if(p)p.prev=g;else return;g?g.next=p:p&&(this._drawFirst=p),c.prev=this._drawLast,this._drawLast.next=c,c.next=null,this._drawLast=c,this._requestRedraw(a)}},_bringToBack:function(a){var c=a._order;if(c){var p=c.next,g=c.prev;if(g)g.next=p;else return;p?p.prev=g:g&&(this._drawLast=g),c.prev=null,c.next=this._drawFirst,this._drawFirst.prev=c,this._drawFirst=c,this._requestRedraw(a)}}});function F1(a){return de.canvas?new B1(a):null}var bl=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(a){return document.createElement("<lvml:"+a+' class="lvml">')}}catch{}return function(a){return document.createElement("<"+a+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),RN={_initContainer:function(){this._container=Ce("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ti.prototype._update.call(this),this.fire("update"))},_initPath:function(a){var c=a._container=bl("shape");pe(c,"leaflet-vml-shape "+(this.options.className||"")),c.coordsize="1 1",a._path=bl("path"),c.appendChild(a._path),this._updateStyle(a),this._layers[u(a)]=a},_addPath:function(a){var c=a._container;this._container.appendChild(c),a.options.interactive&&a.addInteractiveTarget(c)},_removePath:function(a){var c=a._container;ne(c),a.removeInteractiveTarget(c),delete this._layers[u(a)]},_updateStyle:function(a){var c=a._stroke,p=a._fill,g=a.options,T=a._container;T.stroked=!!g.stroke,T.filled=!!g.fill,g.stroke?(c||(c=a._stroke=bl("stroke")),T.appendChild(c),c.weight=g.weight+"px",c.color=g.color,c.opacity=g.opacity,g.dashArray?c.dashStyle=w(g.dashArray)?g.dashArray.join(" "):g.dashArray.replace(/( *, *)/g," "):c.dashStyle="",c.endcap=g.lineCap.replace("butt","flat"),c.joinstyle=g.lineJoin):c&&(T.removeChild(c),a._stroke=null),g.fill?(p||(p=a._fill=bl("fill")),T.appendChild(p),p.color=g.fillColor||g.color,p.opacity=g.fillOpacity):p&&(T.removeChild(p),a._fill=null)},_updateCircle:function(a){var c=a._point.round(),p=Math.round(a._radius),g=Math.round(a._radiusY||p);this._setPath(a,a._empty()?"M0 0":"AL "+c.x+","+c.y+" "+p+","+g+" 0,"+65535*360)},_setPath:function(a,c){a._path.v=c},_bringToFront:function(a){ot(a._container)},_bringToBack:function(a){un(a._container)}},gf=de.vml?bl:Ue,wl=ti.extend({_initContainer:function(){this._container=gf("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=gf("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ne(this._container),Xe(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ti.prototype._update.call(this);var a=this._bounds,c=a.getSize(),p=this._container;(!this._svgSize||!this._svgSize.equals(c))&&(this._svgSize=c,p.setAttribute("width",c.x),p.setAttribute("height",c.y)),Ke(p,a.min),p.setAttribute("viewBox",[a.min.x,a.min.y,c.x,c.y].join(" ")),this.fire("update")}},_initPath:function(a){var c=a._path=gf("path");a.options.className&&pe(c,a.options.className),a.options.interactive&&pe(c,"leaflet-interactive"),this._updateStyle(a),this._layers[u(a)]=a},_addPath:function(a){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(a._path),a.addInteractiveTarget(a._path)},_removePath:function(a){ne(a._path),a.removeInteractiveTarget(a._path),delete this._layers[u(a)]},_updatePath:function(a){a._project(),a._update()},_updateStyle:function(a){var c=a._path,p=a.options;c&&(p.stroke?(c.setAttribute("stroke",p.color),c.setAttribute("stroke-opacity",p.opacity),c.setAttribute("stroke-width",p.weight),c.setAttribute("stroke-linecap",p.lineCap),c.setAttribute("stroke-linejoin",p.lineJoin),p.dashArray?c.setAttribute("stroke-dasharray",p.dashArray):c.removeAttribute("stroke-dasharray"),p.dashOffset?c.setAttribute("stroke-dashoffset",p.dashOffset):c.removeAttribute("stroke-dashoffset")):c.setAttribute("stroke","none"),p.fill?(c.setAttribute("fill",p.fillColor||p.color),c.setAttribute("fill-opacity",p.fillOpacity),c.setAttribute("fill-rule",p.fillRule||"evenodd")):c.setAttribute("fill","none"))},_updatePoly:function(a,c){this._setPath(a,We(a._parts,c))},_updateCircle:function(a){var c=a._point,p=Math.max(Math.round(a._radius),1),g=Math.max(Math.round(a._radiusY),1)||p,T="a"+p+","+g+" 0 1,0 ",k=a._empty()?"M0 0":"M"+(c.x-p)+","+c.y+T+p*2+",0 "+T+-p*2+",0 ";this._setPath(a,k)},_setPath:function(a,c){a._path.setAttribute("d",c)},_bringToFront:function(a){ot(a._path)},_bringToBack:function(a){un(a._path)}});de.vml&&wl.include(RN);function V1(a){return de.svg||de.vml?new wl(a):null}je.include({getRenderer:function(a){var c=a.options.renderer||this._getPaneRenderer(a.options.pane)||this.options.renderer||this._renderer;return c||(c=this._renderer=this._createRenderer()),this.hasLayer(c)||this.addLayer(c),c},_getPaneRenderer:function(a){if(a==="overlayPane"||a===void 0)return!1;var c=this._paneRenderers[a];return c===void 0&&(c=this._createRenderer({pane:a}),this._paneRenderers[a]=c),c},_createRenderer:function(a){return this.options.preferCanvas&&F1(a)||V1(a)}});var U1=Sa.extend({initialize:function(a,c){Sa.prototype.initialize.call(this,this._boundsToLatLngs(a),c)},setBounds:function(a){return this.setLatLngs(this._boundsToLatLngs(a))},_boundsToLatLngs:function(a){return a=fe(a),[a.getSouthWest(),a.getNorthWest(),a.getNorthEast(),a.getSouthEast()]}});function zN(a,c){return new U1(a,c)}wl.create=gf,wl.pointsToPath=We,ei.geometryToLayer=cf,ei.coordsToLatLng=bm,ei.coordsToLatLngs=ff,ei.latLngToCoords=wm,ei.latLngsToCoords=hf,ei.getFeature=Pa,ei.asFeature=df,je.mergeOptions({boxZoom:!0});var W1=$r.extend({initialize:function(a){this._map=a,this._container=a._container,this._pane=a._panes.overlayPane,this._resetStateTimeout=0,a.on("unload",this._destroy,this)},addHooks:function(){we(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Xe(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ne(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(a){if(!a.shiftKey||a.which!==1&&a.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),$i(),im(),this._startPoint=this._map.mouseEventToContainerPoint(a),we(document,{contextmenu:To,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(a){this._moved||(this._moved=!0,this._box=Ce("div","leaflet-zoom-box",this._container),pe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(a);var c=new te(this._point,this._startPoint),p=c.getSize();Ke(this._box,c.min),this._box.style.width=p.x+"px",this._box.style.height=p.y+"px"},_finish:function(){this._moved&&(ne(this._box),Ae(this._container,"leaflet-crosshair")),Yr(),om(),Xe(document,{contextmenu:To,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(a){if(!(a.which!==1&&a.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var c=new ae(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(c).fire("boxzoomend",{boxZoomBounds:c})}},_onKeyDown:function(a){a.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});je.addInitHook("addHandler","boxZoom",W1),je.mergeOptions({doubleClickZoom:!0});var H1=$r.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(a){var c=this._map,p=c.getZoom(),g=c.options.zoomDelta,T=a.originalEvent.shiftKey?p-g:p+g;c.options.doubleClickZoom==="center"?c.setZoom(T):c.setZoomAround(a.containerPoint,T)}});je.addInitHook("addHandler","doubleClickZoom",H1),je.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Z1=$r.extend({addHooks:function(){if(!this._draggable){var a=this._map;this._draggable=new Li(a._mapPane,a._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),a.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),a.on("zoomend",this._onZoomEnd,this),a.whenReady(this._onZoomEnd,this))}pe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ae(this._map._container,"leaflet-grab"),Ae(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var a=this._map;if(a._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var c=fe(this._map.options.maxBounds);this._offsetLimit=Q(this._map.latLngToContainerPoint(c.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(c.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;a.fire("movestart").fire("dragstart"),a.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(a){if(this._map.options.inertia){var c=this._lastTime=+new Date,p=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(p),this._times.push(c),this._prunePositions(c)}this._map.fire("move",a).fire("drag",a)},_prunePositions:function(a){for(;this._positions.length>1&&a-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var a=this._map.getSize().divideBy(2),c=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=c.subtract(a).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(a,c){return a-(a-c)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var a=this._draggable._newPos.subtract(this._draggable._startPos),c=this._offsetLimit;a.x<c.min.x&&(a.x=this._viscousLimit(a.x,c.min.x)),a.y<c.min.y&&(a.y=this._viscousLimit(a.y,c.min.y)),a.x>c.max.x&&(a.x=this._viscousLimit(a.x,c.max.x)),a.y>c.max.y&&(a.y=this._viscousLimit(a.y,c.max.y)),this._draggable._newPos=this._draggable._startPos.add(a)}},_onPreDragWrap:function(){var a=this._worldWidth,c=Math.round(a/2),p=this._initialWorldOffset,g=this._draggable._newPos.x,T=(g-c+p)%a+c-p,k=(g+c+p)%a-c-p,I=Math.abs(T+p)<Math.abs(k+p)?T:k;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=I},_onDragEnd:function(a){var c=this._map,p=c.options,g=!p.inertia||a.noInertia||this._times.length<2;if(c.fire("dragend",a),g)c.fire("moveend");else{this._prunePositions(+new Date);var T=this._lastPos.subtract(this._positions[0]),k=(this._lastTime-this._times[0])/1e3,I=p.easeLinearity,F=T.multiplyBy(I/k),U=F.distanceTo([0,0]),ee=Math.min(p.inertiaMaxSpeed,U),se=F.multiplyBy(ee/U),xe=ee/(p.inertiaDeceleration*I),Te=se.multiplyBy(-xe/2).round();!Te.x&&!Te.y?c.fire("moveend"):(Te=c._limitOffset(Te,c.options.maxBounds),z(function(){c.panBy(Te,{duration:xe,easeLinearity:I,noMoveStart:!0,animate:!0})}))}}});je.addInitHook("addHandler","dragging",Z1),je.mergeOptions({keyboard:!0,keyboardPanDelta:80});var G1=$r.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(a){this._map=a,this._setPanDelta(a.options.keyboardPanDelta),this._setZoomDelta(a.options.zoomDelta)},addHooks:function(){var a=this._map._container;a.tabIndex<=0&&(a.tabIndex="0"),we(a,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Xe(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var a=document.body,c=document.documentElement,p=a.scrollTop||c.scrollTop,g=a.scrollLeft||c.scrollLeft;this._map._container.focus(),window.scrollTo(g,p)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(a){var c=this._panKeys={},p=this.keyCodes,g,T;for(g=0,T=p.left.length;g<T;g++)c[p.left[g]]=[-1*a,0];for(g=0,T=p.right.length;g<T;g++)c[p.right[g]]=[a,0];for(g=0,T=p.down.length;g<T;g++)c[p.down[g]]=[0,a];for(g=0,T=p.up.length;g<T;g++)c[p.up[g]]=[0,-1*a]},_setZoomDelta:function(a){var c=this._zoomKeys={},p=this.keyCodes,g,T;for(g=0,T=p.zoomIn.length;g<T;g++)c[p.zoomIn[g]]=a;for(g=0,T=p.zoomOut.length;g<T;g++)c[p.zoomOut[g]]=-a},_addHooks:function(){we(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Xe(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(a){if(!(a.altKey||a.ctrlKey||a.metaKey)){var c=a.keyCode,p=this._map,g;if(c in this._panKeys){if(!p._panAnim||!p._panAnim._inProgress)if(g=this._panKeys[c],a.shiftKey&&(g=V(g).multiplyBy(3)),p.options.maxBounds&&(g=p._limitOffset(V(g),p.options.maxBounds)),p.options.worldCopyJump){var T=p.wrapLatLng(p.unproject(p.project(p.getCenter()).add(g)));p.panTo(T)}else p.panBy(g)}else if(c in this._zoomKeys)p.setZoom(p.getZoom()+(a.shiftKey?3:1)*this._zoomKeys[c]);else if(c===27&&p._popup&&p._popup.options.closeOnEscapeKey)p.closePopup();else return;To(a)}}});je.addInitHook("addHandler","keyboard",G1),je.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var K1=$r.extend({addHooks:function(){we(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Xe(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(a){var c=y1(a),p=this._map.options.wheelDebounceTime;this._delta+=c,this._lastMousePos=this._map.mouseEventToContainerPoint(a),this._startTime||(this._startTime=+new Date);var g=Math.max(p-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),g),To(a)},_performZoom:function(){var a=this._map,c=a.getZoom(),p=this._map.options.zoomSnap||0;a._stop();var g=this._delta/(this._map.options.wheelPxPerZoomLevel*4),T=4*Math.log(2/(1+Math.exp(-Math.abs(g))))/Math.LN2,k=p?Math.ceil(T/p)*p:T,I=a._limitZoom(c+(this._delta>0?k:-k))-c;this._delta=0,this._startTime=null,I&&(a.options.scrollWheelZoom==="center"?a.setZoom(c+I):a.setZoomAround(this._lastMousePos,c+I))}});je.addInitHook("addHandler","scrollWheelZoom",K1);var BN=600;je.mergeOptions({tapHold:de.touchNative&&de.safari&&de.mobile,tapTolerance:15});var q1=$r.extend({addHooks:function(){we(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Xe(this._map._container,"touchstart",this._onDown,this)},_onDown:function(a){if(clearTimeout(this._holdTimeout),a.touches.length===1){var c=a.touches[0];this._startPos=this._newPos=new $(c.clientX,c.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(we(document,"touchend",Ft),we(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",c))},this),BN),we(document,"touchend touchcancel contextmenu",this._cancel,this),we(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function a(){Xe(document,"touchend",Ft),Xe(document,"touchend touchcancel",a)},_cancel:function(){clearTimeout(this._holdTimeout),Xe(document,"touchend touchcancel contextmenu",this._cancel,this),Xe(document,"touchmove",this._onMove,this)},_onMove:function(a){var c=a.touches[0];this._newPos=new $(c.clientX,c.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(a,c){var p=new MouseEvent(a,{bubbles:!0,cancelable:!0,view:window,screenX:c.screenX,screenY:c.screenY,clientX:c.clientX,clientY:c.clientY});p._simulated=!0,c.target.dispatchEvent(p)}});je.addInitHook("addHandler","tapHold",q1),je.mergeOptions({touchZoom:de.touch,bounceAtZoomLimits:!0});var X1=$r.extend({addHooks:function(){pe(this._map._container,"leaflet-touch-zoom"),we(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ae(this._map._container,"leaflet-touch-zoom"),Xe(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(a){var c=this._map;if(!(!a.touches||a.touches.length!==2||c._animatingZoom||this._zooming)){var p=c.mouseEventToContainerPoint(a.touches[0]),g=c.mouseEventToContainerPoint(a.touches[1]);this._centerPoint=c.getSize()._divideBy(2),this._startLatLng=c.containerPointToLatLng(this._centerPoint),c.options.touchZoom!=="center"&&(this._pinchStartLatLng=c.containerPointToLatLng(p.add(g)._divideBy(2))),this._startDist=p.distanceTo(g),this._startZoom=c.getZoom(),this._moved=!1,this._zooming=!0,c._stop(),we(document,"touchmove",this._onTouchMove,this),we(document,"touchend touchcancel",this._onTouchEnd,this),Ft(a)}},_onTouchMove:function(a){if(!(!a.touches||a.touches.length!==2||!this._zooming)){var c=this._map,p=c.mouseEventToContainerPoint(a.touches[0]),g=c.mouseEventToContainerPoint(a.touches[1]),T=p.distanceTo(g)/this._startDist;if(this._zoom=c.getScaleZoom(T,this._startZoom),!c.options.bounceAtZoomLimits&&(this._zoom<c.getMinZoom()&&T<1||this._zoom>c.getMaxZoom()&&T>1)&&(this._zoom=c._limitZoom(this._zoom)),c.options.touchZoom==="center"){if(this._center=this._startLatLng,T===1)return}else{var k=p._add(g)._divideBy(2)._subtract(this._centerPoint);if(T===1&&k.x===0&&k.y===0)return;this._center=c.unproject(c.project(this._pinchStartLatLng,this._zoom).subtract(k),this._zoom)}this._moved||(c._moveStart(!0,!1),this._moved=!0),R(this._animRequest);var I=s(c._move,c,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=z(I,this,!0),Ft(a)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,R(this._animRequest),Xe(document,"touchmove",this._onTouchMove,this),Xe(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});je.addInitHook("addHandler","touchZoom",X1),je.BoxZoom=W1,je.DoubleClickZoom=H1,je.Drag=Z1,je.Keyboard=G1,je.ScrollWheelZoom=K1,je.TapHold=q1,je.TouchZoom=X1,n.Bounds=te,n.Browser=de,n.CRS=Ve,n.Canvas=B1,n.Circle=_m,n.CircleMarker=uf,n.Class=H,n.Control=pr,n.DivIcon=D1,n.DivOverlay=Nr,n.DomEvent=iN,n.DomUtil=nN,n.Draggable=Li,n.Evented=G,n.FeatureGroup=Qr,n.GeoJSON=ei,n.GridLayer=_l,n.Handler=$r,n.Icon=wa,n.ImageOverlay=pf,n.LatLng=he,n.LatLngBounds=ae,n.Layer=mr,n.LayerGroup=ba,n.LineUtil=gN,n.Map=je,n.Marker=lf,n.Mixin=fN,n.Path=Ii,n.Point=$,n.PolyUtil=hN,n.Polygon=Sa,n.Polyline=Jr,n.Popup=mf,n.PosAnimation=x1,n.Projection=yN,n.Rectangle=U1,n.Renderer=ti,n.SVG=wl,n.SVGOverlay=I1,n.TileLayer=Oa,n.Tooltip=vf,n.Transformation=ye,n.Util=K,n.VideoOverlay=L1,n.bind=s,n.bounds=Q,n.canvas=F1,n.circle=TN,n.circleMarker=ON,n.control=gl,n.divIcon=LN,n.extend=i,n.featureGroup=wN,n.geoJSON=N1,n.geoJson=kN,n.gridLayer=IN,n.icon=SN,n.imageOverlay=MN,n.latLng=ce,n.latLngBounds=fe,n.layerGroup=bN,n.map=oN,n.marker=PN,n.point=V,n.polygon=EN,n.polyline=AN,n.popup=$N,n.rectangle=zN,n.setOptions=x,n.stamp=u,n.svg=V1,n.svgOverlay=jN,n.tileLayer=R1,n.tooltip=NN,n.transformation=J,n.version=r,n.videoOverlay=CN;var FN=window.L;n.noConflict=function(){return window.L=FN,this},window.L=n})})(Qg,Qg.exports);var Zs=Qg.exports;const zn=Ze(Zs);function yp(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function r_(e,t){return t==null?function(r,i){const o=j.useRef();return o.current||(o.current=e(r,i)),o}:function(r,i){const o=j.useRef();o.current||(o.current=e(r,i));const s=j.useRef(r),{instance:l}=o.current;return j.useEffect(function(){s.current!==r&&(t(l,r,s.current),s.current=r)},[l,r,i]),o}}function _M(e,t){j.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var o;(o=t.layerContainer)==null||o.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function bM(e){return function(n){const r=t_(),i=e(n_(n,r),r);return M4(r.map,n.attribution),xM(i.current,n.eventHandlers),_M(i.current,r),i}}function L4(e,t){const n=j.useRef();j.useEffect(function(){if(t.pathOptions!==n.current){const i=t.pathOptions??{};e.instance.setStyle(i),n.current=i}},[e,t])}function I4(e){return function(n){const r=t_(),i=e(n_(n,r),r);return xM(i.current,n.eventHandlers),_M(i.current,r),L4(i.current,n),i}}function D4(e,t){const n=r_(e,t),r=bM(n);return yM(r)}function wM(e,t){const n=r_(e,t),r=I4(n);return yM(r)}function R4(e,t){const n=r_(e,t),r=bM(n);return N4(r)}function z4(e,t,n){const{opacity:r,zIndex:i}=t;r!=null&&r!==n.opacity&&e.setOpacity(r),i!=null&&i!==n.zIndex&&e.setZIndex(i)}function i_(){return t_().map}function SM(e){const t=i_();return j.useEffect(function(){return t.on(e),function(){t.off(e)}},[t,e]),t}const ai=wM(function({center:t,children:n,...r},i){const o=new Zs.Circle(t,r);return yp(o,e_(i,{overlayContainer:o}))},C4);function Jg(){return Jg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jg.apply(this,arguments)}function B4({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:s,style:l,whenReady:u,zoom:f,...d},h){const[m]=j.useState({className:i,id:o,style:l}),[v,b]=j.useState(null);j.useImperativeHandle(h,()=>(v==null?void 0:v.map)??null,[v]);const x=j.useCallback(y=>{if(y!==null&&v===null){const _=new Zs.Map(y,d);n!=null&&f!=null?_.setView(n,f):e!=null&&_.fitBounds(e,t),u!=null&&_.whenReady(u),b($4(_))}},[]);j.useEffect(()=>()=>{v==null||v.map.remove()},[v]);const S=v?D.createElement(gM,{value:v},r):s??null;return D.createElement("div",Jg({},m,{ref:x}),S)}const PM=j.forwardRef(B4),Jn=D4(function({position:t,...n},r){const i=new Zs.Marker(t,n);return yp(i,e_(r,{overlayContainer:i}))},function(t,n,r){n.position!==r.position&&t.setLatLng(n.position),n.icon!=null&&n.icon!==r.icon&&t.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==r.zIndexOffset&&t.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==r.opacity&&t.setOpacity(n.opacity),t.dragging!=null&&n.draggable!==r.draggable&&(n.draggable===!0?t.dragging.enable():t.dragging.disable())}),Fo=wM(function({positions:t,...n},r){const i=new Zs.Polyline(t,n);return yp(i,e_(r,{overlayContainer:i}))},function(t,n,r){n.positions!==r.positions&&t.setLatLngs(n.positions)}),ey=R4(function({url:t,...n},r){const i=new Zs.TileLayer(t,n_(n,r));return yp(i,r)},function(t,n,r){z4(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)}),F4=new zn.DivIcon({html:'<div style="font-size: 20px; opacity: 0.8; filter: drop-shadow(0 0 5px black);">⛵</div>',className:"boat-marker",iconSize:[30,30],iconAnchor:[15,15]}),V4=e=>new zn.DivIcon({html:`<div style="font-size: 18px; color: ${e?"#ef4444":"rgba(255, 255, 255, 0.85)"}; filter: drop-shadow(0 0 3px black); transition: color 0.5s ease-in-out;">⚓︎</div>`,className:"anchor-marker",iconSize:[20,20],iconAnchor:[10,10]}),U4=new zn.DivIcon({html:'<div style="font-size: 18px; color: #ef4444; filter: drop-shadow(0 0 3px black);">⚓︎</div>',className:"nearby-anchor-marker animate-pulse",iconSize:[20,20],iconAnchor:[10,10]}),Bf=(e,t)=>{if(e==null||isNaN(e))return"";const n=t?e>=0?"N":"S":e>=0?"E":"W",r=Math.abs(e),i=Math.floor(r),o=((r-i)*60).toFixed(4);return`${i}° ${o}'${n}`},W4=(e,t)=>{const n=Math.PI/180,r=-t/(111139*Math.cos(e.lat*n));return[e.lat,e.lon+r]},H4=(e,t,n,r)=>{if(e==="LOCKED"||e==="LEARNING"||e==="SETTLING"||e==="IN_PORTO")return 18;if(n>0&&n<=25&&(r||t<3.5)){if(t<1.5)return 18;if(t<3)return 17;if(t<5)return 15}return t>8?11:(t>5,13)},Z4=e=>e>=19?[{r:15,label:"15m"},{r:30,label:"30m"},{r:45,label:"45m"}]:e===18?[{r:25,label:"25m"},{r:50,label:"50m"},{r:75,label:"75m"}]:e===17?[{r:50,label:"50m"},{r:100,label:"100m"},{r:150,label:"150m"}]:e===16?[{r:100,label:"100m"},{r:200,label:"200m"},{r:300,label:"300m"}]:e===15?[{r:250,label:"250m"},{r:500,label:"500m"},{r:750,label:"750m"}]:e===14?[{r:500,label:"500m"},{r:926,label:"0.5 NM"},{r:1852,label:"1 NM"}]:e===13?[{r:926,label:"0.5 NM"},{r:1852,label:"1 NM"},{r:3704,label:"2 NM"}]:[{r:1852,label:"1 NM"},{r:3704,label:"2 NM"},{r:9260,label:"5 NM"}],G4=(e,t,n,r)=>{const i=Math.PI/180,o=r*463,s=e+o*Math.cos(n*i)/111139,l=t+o*Math.sin(n*i)/(111139*Math.cos(e*i));return[s,l]},K4=e=>{let t="rgba(225, 225, 225, 0.85)";return e==="RED"?t="#ef4444":e==="ORANGE"&&(t="#f97316"),new zn.DivIcon({html:`<div style="width: 8px; height: 8px; background-color: ${t}; border-radius: 50%; border: 1.2px solid rgba(0, 0, 0, 0.6); box-shadow: 0 0 3px rgba(0,0,0,0.5);"></div>`,className:"stationary-vessel-marker",iconSize:[8,8],iconAnchor:[4,4]})},q4=e=>e.risk==="RED"?"#ef4444":e.risk==="ORANGE"?"#f97316":e.color||"rgba(225, 225, 225, 0.85)",o_=e=>e>=18?{nameSize:"15px",subSize:"11px",emojiSize:"26px",markerSize:20,iconSize:[400,64],iconAnchor:[-14,32]}:e<=14?{nameSize:"10px",subSize:"7.5px",emojiSize:"16px",markerSize:12,iconSize:[280,42],iconAnchor:[-8,21]}:{nameSize:"13px",subSize:"9.5px",emojiSize:"22px",markerSize:16,iconSize:[350,56],iconAnchor:[-12,28]},X4=(e,t,n)=>{const r=o_(n);return new zn.DivIcon({html:`<div style="transform: rotate(${e}deg); font-size: ${r.markerSize}px; color: ${t}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;">▲</div>`,className:"moving-vessel-marker",iconSize:[r.markerSize,r.markerSize],iconAnchor:[r.markerSize/2,r.markerSize/2]})},OM=e=>{const t=parseInt(e)||0;return t===36?"⛵":t===37?"🛥️":t===30?"🐟":t>=50&&t<=59?"👨🏻✈️":t===31||t===32||t===52?"🚜":t>=60&&t<=69?"⛴️":t>=70&&t<=79?"📦":t>=80&&t<=89?"🛢️":t>=40&&t<=49?"🚤":""},Y4=(e,t,n,r,i,o,s)=>{let l="rgba(225, 225, 225, 0.85)",u="";if(t==="RED"?(l="#ef4444",u=`(${n} - ${r}m)`):t==="ORANGE"?(l="#f97316",u=`(${n} - ${r}m)`):r<=200&&(u=`${r}m`),i>=120){let h=Math.round(i/60);u=u?`${u} • RIT: ${h} MIN`:`RIT: ${h} MIN`}const f=OM(o),d=o_(s);return new zn.DivIcon({html:`
|
|
267
|
+
<div style="display: flex; flex-direction: row; align-items: center; gap: 5px; white-space: nowrap; text-transform: uppercase;">
|
|
268
|
+
${f?`<span style="font-size: ${d.emojiSize}; line-height: 1;">${f}</span>`:""}
|
|
269
|
+
<div style="display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.15;">
|
|
270
|
+
<span style="font-size: ${d.nameSize}; font-weight: 900; color: ${l}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;">${e}</span>
|
|
271
|
+
${u?`<span style="font-size: ${d.subSize}; font-weight: 900; color: ${l}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; margin-top: 1px;">(${u})</span>`:""}
|
|
272
|
+
</div>
|
|
273
|
+
</div>
|
|
274
|
+
`,className:"ais-vessel-label",iconSize:d.iconSize,iconAnchor:d.iconAnchor})},Q4=(e,t,n,r,i,o,s,l,u,f,d)=>{let h="";l>=120&&(h=` • RIT: ${Math.round(l/60)} MIN`);let m=`${t} kn${h}`,v="";if(o==="RED"){let S=s||"COLLISIONE!",y=r!==null&&r>=0?` in ${Math.round(r)}m`:"";v=i?`🚨 ${i}`:`🚨 ${S} - CPA: ${n}m${y}`}else i?v=`⚠️ ${i}`:r!==null&&r>=0&&(v=`CPA: ${n}m in ${Math.round(r)}m`);const b=OM(f),x=o_(d);return new zn.DivIcon({html:`
|
|
275
|
+
<div style="display: flex; flex-direction: row; align-items: center; gap: 5px; white-space: nowrap; text-transform: uppercase;">
|
|
276
|
+
${b?`<span style="font-size: ${x.emojiSize}; line-height: 1;">${b}</span>`:""}
|
|
277
|
+
<div style="display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.15;">
|
|
278
|
+
<span style="font-size: ${x.nameSize}; font-weight: 900; color: ${u}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;">${e}</span>
|
|
279
|
+
<span style="font-size: ${x.subSize}; font-weight: 900; color: ${u}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; margin-top: 1px;">${m}</span>
|
|
280
|
+
${v?`<span style="font-size: ${x.nameSize}; font-weight: 900; color: ${u}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; margin-top: 2px;">${v}</span>`:""}
|
|
281
|
+
</div>
|
|
282
|
+
</div>
|
|
283
|
+
`,className:"ais-moving-label",iconSize:x.iconSize,iconAnchor:x.iconAnchor})},J4=e=>!e||e<50?"text-gray-300":e<195||e>255?"text-red-500":e<210||e>245?"text-orange-500":"text-gray-400",eB=(e,t,n,r)=>{const i=Math.abs(e),o=r&&n>180,s=o?t*n:1200,l=i/(s>100?s:1200);return l>.9?"text-red-500 animate-pulse font-black":l>.7?"text-orange-500 font-black":o&&i>1e3?"text-yellow-400 font-black":"text-gray-100"},AS=e=>e==null?"text-white":e<=-12?"text-blue-600":e<-4?"text-blue-400":e<4?"text-orange-500":e<=9?"text-white":e<=12?"text-orange-500":"text-red-500",tB=({coords:e,anchorCoords:t,isAnchored:n,trailSegments:r,autoFollow:i,setAutoFollow:o,isMapFull:s,setIsMapFull:l,smartZoom:u,onZoomChange:f})=>{const d=i_(),h=j.useRef(!1);SM({dragstart:()=>{o(!1)},zoomstart:y=>{y&&y.originalEvent&&(h.current=!0)},zoomend:()=>{f&&f(d.getZoom())}}),j.useEffect(()=>{f&&f(d.getZoom())},[d,f]);const m=y=>{h.current=!0;const _=d.getZoom(),w=y==="in"?_+1:_-1;d.setZoom(w),f&&f(w)},v=j.useMemo(()=>n&&t&&t[0]&&t[1]?t:e,[n,t,e]),[b,x]=v,S=j.useRef(!0);return j.useEffect(()=>{const y=setTimeout(()=>{if(d.invalidateSize(!1),i&&b!==0){const w=h.current?d.getZoom():u;d.setView([b,x],w,{animate:!1})}},60),_=setTimeout(()=>{d.invalidateSize(!1)},300);return()=>{clearTimeout(y),clearTimeout(_)}},[s,i,b,x,u,d]),j.useEffect(()=>{if(!i||b===0)return;const y=requestAnimationFrame(()=>{const _=d.getZoom();S.current?(h.current=!1,d.setView([b,x],u,{animate:!1}),S.current=!1,f&&f(u)):!h.current&&_!==u?d.flyTo([b,x],u,{duration:.8}):d.panTo([b,x],{animate:!0,duration:1,easeLinearity:.25})});return()=>cancelAnimationFrame(y)},[i,b,x,u,d,f]),O.jsxs(O.Fragment,{children:[r.map((y,_)=>O.jsx(Fo,{positions:y.positions,color:y.color,weight:y.weight,opacity:y.opacity,lineCap:"round",lineJoin:"round",smoothFactor:0},`trail-seg-${_}`)),O.jsxs("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 flex flex-col gap-3 z-[1000]",children:[O.jsx("button",{onClick:()=>m("in"),className:"w-12 h-12 rounded-2xl bg-black/50 backdrop-blur-xl border border-white/20 flex items-center justify-center text-white shadow-xl active:scale-90 transition-all hover:bg-black/60",children:O.jsx(dM,{size:24})}),O.jsx("button",{onClick:()=>m("out"),className:"w-12 h-12 rounded-2xl bg-black/50 backdrop-blur-xl border border-white/20 flex items-center justify-center text-white shadow-xl active:scale-90 transition-all hover:bg-black/60",children:O.jsx(fM,{size:24})}),O.jsx("button",{onClick:()=>{h.current=!1,o(!0),d.flyTo(v,u,{duration:.6})},className:`w-12 h-12 rounded-2xl backdrop-blur-xl border transition-all flex items-center justify-center shadow-xl active:scale-90 ${i?"bg-cyan-500/40 border-cyan-400 shadow-[0_0_20px_rgba(6,182,212,0.3)]":"bg-black/50 border-white/20"}`,children:O.jsx(pM,{size:24,className:i?"text-white":"text-gray-300"})}),O.jsx("button",{onClick:y=>{y.stopPropagation(),l(_=>!_)},className:"w-12 h-12 rounded-2xl bg-black/50 backdrop-blur-xl border border-white/20 flex items-center justify-center text-white shadow-xl active:scale-90 transition-all hover:bg-black/60",children:s?O.jsx(m4,{size:20}):O.jsx(p4,{size:20})})]})]})},nB=({manager:e,onTabChange:t})=>{var H,W,Z,G,$,q,V,te,Q,ae,fe,he,ce,Ve,ze,oe,me,ye,J,Le,Se,Ue,We,it,Tt,vn,An,zt,Kt,Y,_e,be,Ie,_t,Ge,gt,an,sn,Un,Bt,qt,ln,hr,gn,qr,_o,Mr,bo,wo,So,zc,Bc,Fc,Vc,Uc,ga,Wc,Hc,Zc,Gc,En,de,sl,ll,ul,cl,ya,fl,Xr,hl,Kc,qc,Xc,Yc,dl,Qc,Po,Jc,ef,tf,nf,rf,xa,Ci,pl,ml,ji,Ce;const{data:n,toggleSwitch:r,apiUrl:i,error:o,isUpdating:s}=e,[l,u]=j.useState(!0),[f,d]=j.useState(!1),[h,m]=j.useState(!1),[v,b]=j.useState(!1),x=parseFloat((H=n==null?void 0:n.gps)==null?void 0:H.lat)||36.78,S=parseFloat((W=n==null?void 0:n.gps)==null?void 0:W.lon)||14.54,y=j.useMemo(()=>[x,S],[x,S]),_=((Z=n==null?void 0:n.anchor)==null?void 0:Z.sog)!==void 0?n.anchor.sog:((G=n==null?void 0:n.gps)==null?void 0:G.sog)||0,w=parseFloat((($=n==null?void 0:n.anchor)==null?void 0:$.depth)||((q=n==null?void 0:n.environment)==null?void 0:q.depth)||0),E=!!((V=n==null?void 0:n.anchor)!=null&&V.engine_on),P=((te=n==null?void 0:n.anchor)==null?void 0:te.status)||"MOVING",A=P!=="MOVING",M=j.useMemo(()=>H4(P,_,w,E),[P,_,w,E]),[C,N]=j.useState(M);j.useEffect(()=>{d(!!o)},[o]);const B=j.useMemo(()=>{var ne,lt;return A&&((ne=n==null?void 0:n.anchor)!=null&&ne.lat)&&((lt=n==null?void 0:n.anchor)!=null&<.lon)?{lat:parseFloat(n.anchor.lat),lon:parseFloat(n.anchor.lon)}:{lat:x,lon:S}},[A,(Q=n==null?void 0:n.anchor)==null?void 0:Q.lat,(ae=n==null?void 0:n.anchor)==null?void 0:ae.lon,x,S]),z=j.useMemo(()=>{var ne;return(((ne=n==null?void 0:n.environment)==null?void 0:ne.ais_targets)||[]).some(lt=>lt.risk==="RED"&<.riskMsg==="SOPRA TUA ANCORA!")},[(fe=n==null?void 0:n.environment)==null?void 0:fe.ais_targets]),R=j.useMemo(()=>{var lt;return(((lt=n==null?void 0:n.environment)==null?void 0:lt.ais_targets)||[]).filter(ot=>ot.risk==="RED"||ot.riskMsg==="SOPRA TUA ANCORA!"?!0:ot.dist<=1852)},[(he=n==null?void 0:n.environment)==null?void 0:he.ais_targets]),K=j.useMemo(()=>{var Cr,$t,Wn;const ne=((Cr=n==null?void 0:n.environment)==null?void 0:Cr.gps_history)||[],lt=(($t=n==null?void 0:n.anchor)==null?void 0:$t.engine_on)||!1,ot=((Wn=n==null?void 0:n.anchor)==null?void 0:Wn.status)==="MOVING"?lt?"engine":"sail":"anchor",un={lat:y[0],lon:y[1],m:ot},bt=[...ne,un];if(bt.length<2)return[];const pe=[];let Ae=[[parseFloat(bt[0].lat),parseFloat(bt[0].lon)]],kn=bt[0].m||"sail";for(let Hn=1;Hn<bt.length;Hn++){const yn=bt[Hn],Ke=parseFloat(yn.lat),dr=parseFloat(yn.lon),$i=yn.m||"sail";if($i===kn)Ae.push([Ke,dr]);else{Ae.push([Ke,dr]);let Yr="#38bdf8",_a=3,Ni=.85;kn==="engine"?Yr="#f97316":kn==="anchor"&&(Yr="rgba(220, 220, 220, 0.55)",_a=2,Ni=.6),pe.push({positions:Ae,color:Yr,weight:_a,opacity:Ni}),Ae=[[Ke,dr]],kn=$i}}if(Ae.length>=2){let Hn="#38bdf8",yn=3,Ke=.85;kn==="engine"?Hn="#f97316":kn==="anchor"&&(Hn="rgba(220, 220, 220, 0.55)",yn=2,Ke=.6),pe.push({positions:Ae,color:Hn,weight:yn,opacity:Ke})}return pe},[(ce=n==null?void 0:n.environment)==null?void 0:ce.gps_history,(Ve=n==null?void 0:n.anchor)==null?void 0:Ve.engine_on,(ze=n==null?void 0:n.anchor)==null?void 0:ze.status,y]);return O.jsxs("div",{className:"px-2 pt-5 pb-4 landscape:p-2 landscape:pt-4 space-y-2 landscape:space-y-2",children:[f&&O.jsx("div",{className:"fixed inset-0 z-[5000] flex items-center justify-center p-4 bg-black/80 backdrop-blur-md overflow-y-auto",children:O.jsxs("div",{className:"bg-[#1a1a1a] border border-white/10 p-6 landscape:p-5 rounded-[2rem] shadow-2xl max-w-sm w-full space-y-4 landscape:space-y-3 my-auto",children:[O.jsx("div",{className:"bg-red-500/20 w-12 h-12 rounded-full flex items-center justify-center mx-auto shadow-lg text-red-500",children:O.jsx(Jz,{size:24})}),O.jsxs("div",{className:"space-y-1 text-center",children:[O.jsx("h2",{className:"text-lg font-black uppercase tracking-tight text-white font-mono leading-none",children:"Sicurezza API"}),O.jsx("p",{className:"text-gray-400 text-[11px] font-bold px-2",children:"Autorizza il certificato per ricevere i dati."})]}),O.jsxs("div",{className:"space-y-2 pt-2",children:[O.jsx("button",{onClick:()=>window.open(`${i}`,"_blank"),className:"w-full bg-red-500 hover:bg-red-600 text-white font-black py-3.5 rounded-2xl transition-all shadow-lg active:scale-95 flex items-center justify-center gap-2 uppercase text-[11px] tracking-widest font-mono",children:"1. Autorizza SSL"}),O.jsx("p",{className:"text-[9px] text-gray-300 font-black uppercase tracking-tighter text-center",children:"Poi chiudi la scheda e torna qui"}),O.jsx("button",{onClick:()=>d(!1),className:"w-full bg-white/5 hover:bg-white/10 text-white font-black py-3 rounded-2xl border border-white/10 active:scale-95 uppercase text-[11px] tracking-widest font-mono",children:"2. Ho fatto"})]})]})}),O.jsxs("div",{className:"grid grid-cols-2 gap-2 landscape:gap-2",children:[O.jsx("div",{onClick:()=>t(1),className:"cursor-pointer active:scale-95 transition-transform",children:O.jsx(ES,{title:"BATTERIA",icon:O.jsx(n4,{className:"text-green-500"}),value:`${((me=(oe=n==null?void 0:n.power)==null?void 0:oe.soc)==null?void 0:me.toFixed(1))||"-"}%`,sub:O.jsxs("span",{className:((ye=n==null?void 0:n.power)==null?void 0:ye.dc_draw_w)>=0?"text-green-400":"text-gray-100",children:[((J=n==null?void 0:n.power)==null?void 0:J.dc_draw_w)>0?`+${Math.round(n.power.dc_draw_w)}`:Math.round(((Le=n==null?void 0:n.power)==null?void 0:Le.dc_draw_w)||0),O.jsx("span",{className:"opacity-40 ml-0.5 font-black uppercase text-[12px]",children:"w"})]})})}),O.jsx("div",{onClick:()=>t(4),className:"cursor-pointer active:scale-95 transition-transform",children:O.jsx(ES,{title:"BANCHINA",icon:O.jsx(g4,{className:(Se=n==null?void 0:n.power)!=null&&Se.shore_power?"text-green-500":"text-red-500"}),value:(Ue=n==null?void 0:n.power)!=null&&Ue.shore_power?"ON":"OFF",sub:O.jsxs("div",{className:"flex flex-col items-end leading-none",children:[O.jsxs("span",{className:eB((We=n==null?void 0:n.power)==null?void 0:We.ac_power_w,(it=n==null?void 0:n.switches)==null?void 0:it.shore_limit,(Tt=n==null?void 0:n.power)==null?void 0:Tt.shore_v,(vn=n==null?void 0:n.power)==null?void 0:vn.shore_power),children:[Math.round(((An=n==null?void 0:n.power)==null?void 0:An.ac_power_w)||0),O.jsx("span",{className:"opacity-40 ml-0.5 font-black uppercase text-[12px]",children:"w"})]}),((zt=n==null?void 0:n.power)==null?void 0:zt.shore_power)&&((Kt=n==null?void 0:n.power)==null?void 0:Kt.shore_v)>50&&O.jsxs("span",{className:`${J4((Y=n==null?void 0:n.power)==null?void 0:Y.shore_v)} text-[12px] font-bold mt-1.5`,children:["(",(be=(_e=n==null?void 0:n.power)==null?void 0:_e.shore_v)==null?void 0:be.toFixed(0),"V)"]})]})})})]}),O.jsxs("div",{className:"flex flex-col md:flex-row gap-2 landscape:gap-2 w-full",children:[O.jsxs("div",{className:"w-full md:w-1/2 grid grid-cols-4 md:grid-cols-2 gap-2",children:[O.jsx("div",{onClick:()=>t(2),className:"cursor-pointer active:scale-95 transition-transform h-full",children:O.jsx(Ff,{icon:O.jsx(mM,{size:18}),title:"POZZ.",val:(Ie=n==null?void 0:n.environment)==null?void 0:Ie.temp_pozzetto,color:"text-yellow-500"})}),O.jsx(Ff,{icon:O.jsx(S4,{size:18}),title:"QUADR.",val:(_t=n==null?void 0:n.environment)==null?void 0:_t.temp_quadrato,color:"text-orange-500"}),O.jsx(Ff,{icon:O.jsx(TS,{size:18}),title:"FRIGO",val:(Ge=n==null?void 0:n.environment)==null?void 0:Ge.temp_frigo,color:"text-cyan-400",valueColor:AS((gt=n==null?void 0:n.environment)==null?void 0:gt.temp_frigo)}),O.jsx(Ff,{icon:O.jsx(TS,{size:18}),title:"FREEZER",val:(an=n==null?void 0:n.environment)==null?void 0:an.temp_freezer,color:"text-blue-500",valueColor:AS((sn=n==null?void 0:n.environment)==null?void 0:sn.temp_freezer)})]}),O.jsxs("div",{className:`w-full md:w-1/2 bg-white/5 rounded-[2rem] flex flex-col divide-y divide-white/5 border border-white/10 overflow-hidden shadow-xl ${s?"opacity-60 grayscale-[0.5]":"opacity-100"}`,children:[O.jsx(fv,{icon:O.jsx(u4,{className:"text-blue-400"}),name:"Pompa Acqua",isOn:(Un=n==null?void 0:n.switches)==null?void 0:Un.pump_on,onToggle:ne=>r("pump",ne),disabled:s}),O.jsx(fv,{icon:O.jsx(c4,{className:"text-orange-400"}),name:"Boiler",isOn:(Bt=n==null?void 0:n.switches)==null?void 0:Bt.boiler_on,onToggle:ne=>r("boiler",ne),disabled:s}),O.jsx(fv,{icon:O.jsx(b4,{className:"text-purple-400"}),name:"Lavatrice",isOn:(qt=n==null?void 0:n.switches)==null?void 0:qt.washing_machine_on,onToggle:ne=>r("washer",ne),disabled:s})]})]}),O.jsxs("div",{className:"space-y-3 pb-24 flex flex-col items-center w-full",children:[!h&&O.jsxs("div",{className:"w-full bg-[#121212]/90 backdrop-blur-xl border border-white/10 p-4 rounded-[2rem] shadow-2xl flex flex-col gap-2.5 text-white",children:[O.jsxs("div",{className:"flex items-center gap-2 w-full",children:[O.jsx(e4,{size:14,className:`${((ln=n==null?void 0:n.anchor)==null?void 0:ln.status)==="LOCKED"?"text-cyan-400":((hr=n==null?void 0:n.anchor)==null?void 0:hr.status)==="DRAGGING"||((gn=n==null?void 0:n.anchor)==null?void 0:gn.status)==="DRIFTING"?"text-red-500 animate-pulse":((qr=n==null?void 0:n.anchor)==null?void 0:qr.status)==="LEARNING"||((_o=n==null?void 0:n.anchor)==null?void 0:_o.status)==="SETTLING"?"text-yellow-400 animate-spin-slow":"text-green-400"}`}),O.jsx("span",{className:"text-[11px] font-black uppercase tracking-widest text-white font-mono leading-none whitespace-nowrap",children:((Mr=n==null?void 0:n.anchor)==null?void 0:Mr.description)||"In Navigazione"})]}),((bo=n==null?void 0:n.anchor)==null?void 0:bo.lat)&&O.jsx("div",{className:"w-full flex items-center justify-between mt-0.5 border-b border-white/5 pb-2",children:O.jsx("span",{onClick:ne=>{var un,bt,pe,Ae,kn,Cr,$t;if(ne.stopPropagation(),!((un=n==null?void 0:n.anchor)!=null&&un.status))return;const ot=n.anchor.status==="LOCKED"||n.anchor.status==="DRAGGING"||n.anchor.status==="DRIFTING"||n.anchor.status==="LEARNING"?`⛵ ROTEVISTA: [${n.anchor.description||n.anchor.status}] | D: ${((bt=n.anchor.boat_dist)==null?void 0:bt.toFixed(1))||"0.0"}m | ${Bf(n.anchor.lat,!0)} ${Bf(n.anchor.lon,!1)} | R: ${((pe=n.anchor.radius)==null?void 0:pe.toFixed(0))||"0"}m | Prec: ±${((Ae=n.anchor.std_dev)==null?void 0:Ae.toFixed(1))||"0.0"}m | Fondale: ${((kn=n.anchor.depth)==null?void 0:kn.toFixed(1))||"0.0"}m | Catena: ${((Cr=n.anchor.chain)==null?void 0:Cr.toFixed(0))||"0"}m | Volvo: ${n.anchor.engine_on?"ON":"OFF"} (${(($t=n.anchor.engine_v)==null?void 0:$t.toFixed(1))||"0.0"}V)${n.anchor.score>0?` [Score: ${n.anchor.score}/70]`:""}`:`⛵ ROTEVISTA: ${n.anchor.description||n.anchor.status}`;if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(ot).then(()=>{b(!0),setTimeout(()=>b(!1),2e3)});else{const Wn=document.createElement("textarea");Wn.value=ot,Wn.style.position="fixed",Wn.style.opacity="0",document.body.appendChild(Wn),Wn.focus(),Wn.select(),document.execCommand("copy"),b(!0),setTimeout(()=>b(!1),2e3),document.body.removeChild(Wn)}},className:`text-[10px] font-mono tracking-tight cursor-pointer transition-colors duration-200 uppercase font-black leading-none ${v?"text-green-400 animate-pulse":"text-gray-400 hover:text-white"}`,children:v?"✓ Copiato in appunti":`📌 Posiz: ${Bf(n.anchor.lat,!0)} ${Bf(n.anchor.lon,!1)}`})}),((wo=n==null?void 0:n.anchor)==null?void 0:wo.status)&&O.jsx("div",{className:`grid ${n.anchor.status==="MOVING"&&(!n.anchor.radius||n.anchor.radius===0)?"grid-cols-2 sm:grid-cols-4":"grid-cols-3"} gap-2 py-2.5 border-t border-b border-white/5 text-center bg-white/[0.01] rounded-2xl`,children:n.anchor.status==="MOVING"&&n.anchor.radius>0?O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"flex flex-col",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Distanza"}),O.jsx("span",{className:"text-sm font-black font-mono mt-0.5 text-gray-500",children:"--"})]}),O.jsxs("div",{className:"flex flex-col border-l border-r border-white/5",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-cyan-400 tracking-wider",children:"Raggio Previsto"}),O.jsxs("span",{className:"text-sm font-black font-mono mt-0.5 text-cyan-400",children:[((So=n.anchor.radius)==null?void 0:So.toFixed(0))||"0",O.jsx("span",{className:"text-[10px] font-bold text-gray-400 ml-0.5",children:"m"})]})]}),O.jsxs("div",{className:"flex flex-col font-mono",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Spazio in Baia"}),O.jsx("span",{className:`text-sm font-black mt-0.5 ${n.anchor.description&&n.anchor.description.includes("Ristretto")?"text-orange-400 animate-pulse":"text-green-400"}`,children:n.anchor.description&&n.anchor.description.includes("Ristretto")?"OCCUPATO":"LIBERO"})]})]}):n.anchor.status==="MOVING"?O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"flex flex-col font-mono items-center justify-center",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-cyan-400 tracking-wider",children:"Velocità (SOG)"}),O.jsxs("span",{className:"text-base font-black mt-0.5 text-cyan-400 leading-none",children:[(((zc=n==null?void 0:n.anchor)==null?void 0:zc.sog)!==void 0?n.anchor.sog:((Bc=n==null?void 0:n.gps)==null?void 0:Bc.sog)!==void 0?n.gps.sog:(Fc=n==null?void 0:n.gps)!=null&&Fc.speed?parseFloat(n.gps.speed)*1.94384:0).toFixed(1),O.jsx("span",{className:"text-[10px] font-bold ml-0.5",children:"kn"})]})]}),O.jsxs("div",{className:"flex flex-col font-mono items-center justify-center border-l border-white/5",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-300 tracking-wider",children:"Prua (HDG)"}),O.jsxs("span",{className:"text-base font-black text-white mt-0.5 leading-none",children:[Math.round(((Vc=n==null?void 0:n.environment)==null?void 0:Vc.heading)!==void 0?n.environment.heading:((Uc=n==null?void 0:n.gps)==null?void 0:Uc.cog)||0),"°"]})]})]}):O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"flex flex-col",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Distanza"}),O.jsxs("span",{className:`text-sm font-black font-mono mt-0.5 ${n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING"?"text-orange-500":"text-cyan-400"}`,children:[((ga=n.anchor.boat_dist)==null?void 0:ga.toFixed(1))||"0.0",O.jsx("span",{className:"text-[10px] font-bold text-gray-400 ml-0.5",children:"m"})]})]}),O.jsxs("div",{className:"flex flex-col border-l border-r border-white/5",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Raggio Guardia"}),O.jsxs("span",{className:`text-sm font-black font-mono mt-0.5 ${n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING"?"text-orange-500":"text-white"}`,children:[((Wc=n.anchor.radius)==null?void 0:Wc.toFixed(0))||"0",O.jsx("span",{className:"text-[10px] font-bold text-gray-400 ml-0.5",children:"m"})]})]}),O.jsxs("div",{className:"flex flex-col font-mono",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:(Hc=n==null?void 0:n.trip)!=null&&Hc.anchor_time&&((Zc=n==null?void 0:n.trip)==null?void 0:Zc.anchor_time)!=="0m"?"Tempo Sosta":"Precisione"}),O.jsx("span",{className:`text-sm font-black mt-0.5 ${n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING"?"text-orange-400":"text-cyan-400"}`,children:(Gc=n==null?void 0:n.trip)!=null&&Gc.anchor_time&&((En=n==null?void 0:n.trip)==null?void 0:En.anchor_time)!=="0m"?n.trip.anchor_time:n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING"?"Calcolo...":n.anchor.std_dev>0?`±${n.anchor.std_dev.toFixed(1)}m`:"±0.0m"})]})]})}),O.jsxs("div",{className:"flex justify-between items-start w-full font-mono border-t border-white/5 pt-2 mt-0.5",children:[O.jsxs("div",{className:"flex items-start gap-4 flex-shrink-0",children:[O.jsxs("div",{className:"flex flex-col items-start leading-none",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Fondo"}),O.jsx("span",{className:"text-xs font-black text-white mt-1",children:((de=n==null?void 0:n.anchor)==null?void 0:de.depth)>0?`${n.anchor.depth.toFixed(1)}m`:"--"})]}),(((sl=n==null?void 0:n.anchor)==null?void 0:sl.chain)>0&&((ll=n==null?void 0:n.anchor)==null?void 0:ll.status)!=="MOVING"||((ul=n==null?void 0:n.anchor)==null?void 0:ul.status)==="MOVING"&&((cl=n==null?void 0:n.anchor)==null?void 0:cl.radius)>0&&((ya=n==null?void 0:n.anchor)==null?void 0:ya.chain)>0)&&O.jsxs("div",{className:"flex flex-col items-start leading-none border-l border-white/5 pl-3",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:((fl=n==null?void 0:n.anchor)==null?void 0:fl.status)==="MOVING"?"Suggerita":"Catena"}),O.jsxs("span",{className:"text-xs font-black text-white mt-1",children:[n.anchor.chain.toFixed(0),"m"]})]})]}),O.jsxs("div",{className:"flex flex-col items-end leading-none text-right pl-2 truncate flex-1",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:(Xr=n==null?void 0:n.anchor)!=null&&Xr.engine_on?"Motore":((hl=n==null?void 0:n.anchor)==null?void 0:hl.status)==="LEARNING"&&((Kc=n==null?void 0:n.anchor)!=null&&Kc.low_conf_reason)?"Nota":"Stato"}),O.jsx("div",{className:"mt-1",children:(qc=n==null?void 0:n.anchor)!=null&&qc.engine_on?O.jsxs("span",{className:"text-yellow-400 font-black text-xs whitespace-nowrap animate-pulse flex items-center gap-1",children:["⚡ Volvo: ",(Xc=n.anchor.engine_v)==null?void 0:Xc.toFixed(1),"V ",n.anchor.status!=="MOVING"&&n.anchor.score>0?`[${n.anchor.score}/70]`:""]}):((Yc=n==null?void 0:n.anchor)==null?void 0:Yc.status)==="LEARNING"&&((dl=n==null?void 0:n.anchor)!=null&&dl.low_conf_reason)?O.jsx("span",{className:"text-orange-400 font-bold text-[9.5px] tracking-tight whitespace-nowrap",children:n.anchor.low_conf_reason}):((Qc=n==null?void 0:n.anchor)==null?void 0:Qc.status)!=="MOVING"&&((Po=n==null?void 0:n.anchor)==null?void 0:Po.std_dev)>0?O.jsxs("span",{className:"text-gray-300 font-medium text-xs whitespace-nowrap",children:["Prec: ",O.jsxs("span",{className:"text-cyan-400 font-bold",children:["±",n.anchor.std_dev.toFixed(1),"m"]})]}):O.jsx("span",{className:"text-green-400 font-black text-xs uppercase whitespace-nowrap",children:"Ottima"})})]})]})]}),O.jsx("div",{className:`${h?"map-full-screen":"h-64 landscape:h-80 w-[88%] rounded-[2.5rem]"} overflow-hidden border border-white/10 shadow-2xl relative isolate transition-opacity duration-200`,children:O.jsxs(PM,{center:y,zoom:M,maxZoom:22,style:{height:"100%",width:"100%"},zoomControl:!1,attributionControl:!1,children:[O.jsx(ey,{url:"https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",maxZoom:22,maxNativeZoom:18,errorTileUrl:""}),O.jsx(tB,{coords:y,anchorCoords:(Jc=n==null?void 0:n.anchor)!=null&&Jc.lat&&((ef=n==null?void 0:n.anchor)!=null&&ef.lon)?[parseFloat(n.anchor.lat),parseFloat(n.anchor.lon)]:null,isAnchored:A,trailSegments:K,autoFollow:l,setAutoFollow:u,isMapFull:h,setIsMapFull:m,smartZoom:M,onZoomChange:N}),((tf=n==null?void 0:n.anchor)==null?void 0:tf.lat)&&((nf=n==null?void 0:n.anchor)==null?void 0:nf.lon)&&n.anchor.radius>0&&n.anchor.status==="MOVING"&&O.jsx(ai,{center:[n.anchor.lat,n.anchor.lon],radius:n.anchor.radius,pathOptions:{color:n.anchor.description&&n.anchor.description.includes("Ristretto")?"#f97316":"#22d3ee",fillColor:"#22d3ee",fillOpacity:.04,weight:1.5,dashArray:"4, 8",interactive:!1}}),((rf=n==null?void 0:n.anchor)==null?void 0:rf.lat)&&((xa=n==null?void 0:n.anchor)==null?void 0:xa.lon)&&n.anchor.radius>0&&(n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING")&&O.jsx(ai,{center:[n.anchor.lat,n.anchor.lon],radius:n.anchor.radius,pathOptions:{color:"#f97316",fillOpacity:0,weight:1.5,dashArray:"6, 10",interactive:!1}}),((Ci=n==null?void 0:n.anchor)==null?void 0:Ci.lat)&&((pl=n==null?void 0:n.anchor)==null?void 0:pl.lon)&&n.anchor.radius>0&&(n.anchor.status==="LOCKED"||n.anchor.status==="DRAGGING"||n.anchor.status==="DRIFTING")&&O.jsx(ai,{center:[n.anchor.lat,n.anchor.lon],radius:n.anchor.radius+Math.max(15,n.anchor.radius*.3),pathOptions:{color:n.anchor.status==="DRAGGING"||n.anchor.status==="DRIFTING"?"#ef4444":"#22d3ee",fillOpacity:0,weight:1.5,dashArray:"8, 12",interactive:!1}}),Z4(C).map(ne=>{const lt=W4(B,ne.r);return O.jsxs(D.Fragment,{children:[O.jsx(ai,{center:[B.lat,B.lon],radius:ne.r,pathOptions:{color:"#ffffff",weight:1,opacity:.55,fillOpacity:0,dashArray:"4, 12",interactive:!1}}),O.jsx(Jn,{position:lt,icon:new zn.DivIcon({html:`<div style="font-size: 8px; font-weight: 900; color: rgba(255, 255, 255, 0.90); font-family: monospace; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; white-space: nowrap; text-align: right; width: 100%;">${ne.label}</div>`,className:"range-label-marker",iconSize:[50,10],iconAnchor:[53,5]}),interactive:!1})]},`ring-${ne.r}`)}),R.map(ne=>{var pe;const lt=ne.isMoving!==void 0?ne.isMoving:!ne.isAnchored&&ne.sog>=.3,ot=q4(ne),un=ne.risk==="RED"||ne.risk==="ORANGE",bt=ne.isTactical!==!1&&(ne.isTactical||un||C>=15);return O.jsxs(D.Fragment,{children:[bt&&ne.trail&&ne.trail.length>=2&&O.jsx(Fo,{positions:ne.trail.map(Ae=>[Ae.lat,Ae.lon]),color:"#ffffff",weight:1.5,opacity:.4,dashArray:"2, 6",interactive:!1}),lt?O.jsxs(D.Fragment,{children:[bt&&O.jsx(Fo,{positions:[[ne.lat,ne.lon],G4(ne.lat,ne.lon,ne.cog,ne.sog)],pathOptions:{color:ot,weight:2.5,opacity:.8,dashArray:"6, 6"},interactive:!1}),O.jsx(Jn,{position:[ne.lat,ne.lon],icon:X4(ne.cog,ot,C),interactive:!1}),bt&&O.jsx(Jn,{position:[ne.lat,ne.lon],icon:Q4(ne.name,ne.sog,ne.cpa,ne.tcpa,ne.crossDir,ne.risk,ne.riskMsg,ne.age,ot,ne.type,C),interactive:!1})]}):O.jsxs(D.Fragment,{children:[O.jsx(Jn,{position:[ne.lat,ne.lon],icon:K4(ne.risk),interactive:!1}),bt&&O.jsx(Jn,{position:[ne.lat,ne.lon],icon:Y4(ne.name,ne.risk,ne.riskMsg,ne.dist,ne.age,ne.type,C),interactive:!1}),ne.risk==="RED"&&ne.riskMsg==="SOPRA SUA ANCORA!"&&ne.anchorLat&&ne.anchorLon&&O.jsxs(D.Fragment,{children:[O.jsx(ai,{center:[ne.anchorLat,ne.anchorLon],radius:((pe=n==null?void 0:n.anchor)==null?void 0:pe.radius)||15,pathOptions:{color:"#ef4444",weight:1,opacity:.5,fillColor:"#ef4444",fillOpacity:.05,dashArray:"6, 12",interactive:!1}}),O.jsx(Jn,{position:[ne.anchorLat,ne.anchorLon],icon:U4,zIndexOffset:400,interactive:!1})]})]})]},ne.id)}),((ml=n==null?void 0:n.anchor)==null?void 0:ml.lat)&&((ji=n==null?void 0:n.anchor)==null?void 0:ji.lon)&&n.anchor.status!=="MOVING"&&O.jsx(Jn,{position:[n.anchor.lat,n.anchor.lon],icon:V4(z),zIndexOffset:500}),O.jsx(Jn,{position:y,icon:F4,zIndexOffset:1e3})]})}),!h&&((Ce=n==null?void 0:n.trip)==null?void 0:Ce.total_nav_time)&&n.trip.total_nav_time!=="0m"&&(()=>{var pe,Ae;const ne=parseFloat((pe=n==null?void 0:n.trip)==null?void 0:pe.engine_nm)||0,lt=parseFloat((Ae=n==null?void 0:n.trip)==null?void 0:Ae.sail_nm)||0,ot=ne+lt,un=ot>0?Math.round(ne/ot*100):0,bt=ot>0?Math.round(lt/ot*100):0;return O.jsxs("div",{className:"w-full bg-[#121212]/90 backdrop-blur-xl border border-white/10 p-4 rounded-[2rem] shadow-2xl flex flex-col gap-2 font-mono text-white",children:[O.jsx("span",{className:"text-[9px] font-black text-gray-400 uppercase tracking-widest border-b border-white/5 pb-1.5",children:"Statistiche Ultima Navigazione"}),O.jsxs("div",{className:"grid grid-cols-[75px_55px_1fr_45px] items-center text-[10px] leading-none",children:[O.jsxs("span",{className:"flex items-center gap-1 text-cyan-400 font-bold",children:[O.jsx("span",{className:"text-xs",children:"⛵"})," Vela"]}),O.jsx("span",{className:"text-white font-medium",children:n.trip.sail_time||"0m"}),O.jsx("span",{className:"text-cyan-400 font-bold text-right text-[10px]",children:n.trip.sail_nm||"0.00 NM"}),O.jsxs("span",{className:"text-gray-500 font-normal text-right text-[9px]",children:["(",bt,"%)"]})]}),O.jsxs("div",{className:"grid grid-cols-[75px_55px_1fr_45px] items-center text-[10px] leading-none",children:[O.jsxs("span",{className:"flex items-center gap-1 text-yellow-400 font-bold",children:[O.jsx("span",{className:"text-xs",children:"🚤"})," Motore"]}),O.jsx("span",{className:"text-white font-medium",children:n.trip.engine_time||"0m"}),O.jsx("span",{className:"text-yellow-400 font-bold text-right text-[10px]",children:n.trip.engine_nm||"0.00 NM"}),O.jsxs("span",{className:"text-gray-500 font-normal text-right text-[9px]",children:["(",un,"%)"]})]}),O.jsxs("div",{className:"grid grid-cols-[75px_55px_1fr_45px] items-center text-[10px] border-t border-white/5 pt-2 leading-none",children:[O.jsxs("span",{className:"flex items-center gap-1 text-gray-400 font-bold",children:[O.jsx("span",{className:"text-xs",children:"⏱️"})," Totale"]}),O.jsx("span",{className:"text-gray-200 font-medium",children:n.trip.total_nav_time||"0m"}),O.jsx("span",{className:"text-white font-black text-right text-[11px]",children:n.trip.total_nm||"0.00 NM"}),O.jsx("span",{className:"text-right"})]})]})})()]})]})},ES=({icon:e,title:t,value:n,sub:r})=>O.jsxs("div",{className:"bg-white/5 p-5 rounded-[2rem] border border-white/10 flex flex-row items-center justify-between shadow-lg text-white group hover:bg-white/10 transition-colors h-full",children:[O.jsxs("div",{className:"flex flex-col",children:[O.jsxs("div",{className:"flex items-center gap-1 text-gray-300 text-[9px] font-black tracking-widest uppercase whitespace-nowrap",children:[e," ",t]}),O.jsx("div",{className:"text-3xl font-black mt-1 tracking-tighter",children:n})]}),O.jsx("div",{className:"text-[18px] text-gray-200 font-black uppercase tracking-tight text-right pl-2 leading-tight",children:r})]}),Ff=({icon:e,title:t,val:n,color:r,valueColor:i="text-white"})=>O.jsxs("div",{className:"bg-white/5 py-4 landscape:py-3 rounded-3xl border border-white/5 flex flex-col items-center gap-1 text-center shadow-md hover:bg-white/10 transition-colors h-full justify-center text-white",children:[O.jsx("div",{className:r,children:e}),O.jsx("div",{className:"text-[8px] font-black text-gray-300 uppercase tracking-tighter mt-1",children:t}),O.jsxs("div",{className:`text-lg font-black ${i}`,children:[(n==null?void 0:n.toFixed(1))||"-","°"]})]}),fv=({icon:e,name:t,isOn:n,onToggle:r,disabled:i})=>O.jsxs("div",{className:`flex flex-1 items-center justify-between p-5 landscape:p-4 bg-white/[0.02] text-white transition-all ${i?"pointer-events-none opacity-40":"hover:bg-white/5"}`,children:[O.jsxs("div",{className:"flex items-center gap-3",children:[D.cloneElement(e,{size:20,className:n?e.props.className:"text-gray-700 opacity-50"}),O.jsx("span",{className:"text-sm font-bold text-white tracking-tight uppercase",children:t})]}),O.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[O.jsx("input",{type:"checkbox",className:"sr-only peer",checked:n||!1,onChange:o=>r(o.target.checked),disabled:i}),O.jsx("div",{className:"w-11 h-6 bg-gray-800 rounded-full peer peer-checked:bg-cyan-500 after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:after:translate-x-full shadow-inner"})]})]}),rB=(e,t="#38bdf8")=>new zn.DivIcon({html:`
|
|
284
|
+
<div style="transform: rotate(${e||0}deg); font-size: 22px; color: ${t}; filter: drop-shadow(0 0 5px rgba(0,0,0,0.9)); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;">
|
|
285
|
+
▲
|
|
286
|
+
</div>
|
|
287
|
+
`,className:"own-boat-ais-marker",iconSize:[26,26],iconAnchor:[13,13]}),iB=(e,t,n=14)=>{const i=hu(e.type).color,o=n<=13?6:n===14?8:10,s=n<=13?12:n===14?15:18,l=e.isMoving!==void 0?e.isMoving:!e.isAnchored&&e.sog>=.3,u=t?"border: 2px solid #22d3ee; box-shadow: 0 0 8px #22d3ee;":"border: 1px solid rgba(0,0,0,0.85);";return l?new zn.DivIcon({html:`
|
|
288
|
+
<div style="width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer;">
|
|
289
|
+
<span style="transform: rotate(${e.cog||0}deg); font-size: ${s}px; color: ${i}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; line-height: 1; display: inline-block;">
|
|
290
|
+
▲
|
|
291
|
+
</span>
|
|
292
|
+
</div>
|
|
293
|
+
`,className:"ais-target-moving",iconSize:[32,32],iconAnchor:[16,16]}):new zn.DivIcon({html:`
|
|
294
|
+
<div style="width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer;">
|
|
295
|
+
<div style="width: ${o}px; height: ${o}px; background-color: ${i}; border-radius: 50%; ${u}"></div>
|
|
296
|
+
</div>
|
|
297
|
+
`,className:"ais-target-stationary",iconSize:[32,32],iconAnchor:[16,16]})},kS=(e,t,n,r,i=15)=>{const o=Math.PI/180,s=r*1852*(i/60),l=e+s*Math.cos(n*o)/111139,u=t+s*Math.sin(n*o)/(111139*Math.cos(e*o));return[l,u]},hu=e=>{const t=parseInt(e)||0;return t===36?{emoji:"⛵",label:"Vela",color:"#d946ef"}:t===37?{emoji:"🛥️",label:"Yacht / Motore",color:"#d946ef"}:t===30?{emoji:"🐟",label:"Peschereccio",color:"#ea580c"}:t>=50&&t<=59?{emoji:"👨🏻✈️",label:"Pilota / Servizio",color:"#0284c7"}:t===31||t===32||t===52?{emoji:"🚜",label:"Rimorchiatore",color:"#0284c7"}:t>=60&&t<=69?{emoji:"⛴️",label:"Passeggeri",color:"#2563eb"}:t>=70&&t<=79?{emoji:"📦",label:"Cargo",color:"#16a34a"}:t>=80&&t<=89?{emoji:"🛢️",label:"Cisterna / Tanker",color:"#dc2626"}:t>=40&&t<=49?{emoji:"🚤",label:"Unità Veloce (HSC)",color:"#eab308"}:{emoji:"🚢",label:"Nave",color:"#94a3b8"}},oB=e=>e>=7.5?12:e>=3.5?14:e>=1.5?15:17,Vf=e=>{if(e==null||isNaN(e))return"--";const t=Math.round(e),n=e/1852;return t<500?`${t} m`:t<1852?`${t} m (${n.toFixed(1)} NM)`:`${n.toFixed(1)} NM (${(t/1e3).toFixed(1)} km)`},du=e=>{if(e==null||isNaN(e))return"--";const t=Math.round(e);return t<1852?`${t}m`:`${(e/1852).toFixed(1)} NM`},MS=(e,t)=>{if(e==null||isNaN(e))return"";const n=t?e>=0?"N":"S":e>=0?"E":"W",r=Math.abs(e),i=Math.floor(r),o=((r-i)*60).toFixed(4);return`${i}° ${o}'${n}`},aB=e=>e>=19?[{r:15,label:"15m"},{r:30,label:"30m"},{r:45,label:"45m"}]:e===18?[{r:25,label:"25m"},{r:50,label:"50m"},{r:75,label:"75m"}]:e===17?[{r:50,label:"50m"},{r:100,label:"100m"},{r:150,label:"150m"}]:e===16?[{r:100,label:"100m"},{r:200,label:"200m"},{r:300,label:"300m"}]:e===15?[{r:250,label:"250m"},{r:500,label:"500m"},{r:750,label:"750m"}]:e===14?[{r:500,label:"500m"},{r:926,label:"0.5 NM"},{r:1852,label:"1 NM"}]:e===13?[{r:926,label:"0.5 NM"},{r:1852,label:"1 NM"},{r:3704,label:"2 NM"}]:[{r:1852,label:"1 NM"},{r:3704,label:"2 NM"},{r:9260,label:"5 NM"}],sB=(e,t)=>{const n=Math.PI/180,r=-t/(111139*Math.cos(e.lat*n));return[e.lat,e.lon+r]},lB=e=>{const t=e.risk==="RED",n=t?"#ef4444":"#f97316",r=hu(e.type),o=(e.isMoving!==void 0?e.isMoving:!e.isAnchored&&e.sog>=.3)?`${e.sog} kn • ${e.cog}°`:"ALL'ANCORA";let s="";if(t){const l=e.riskMsg||"COLLISIONE!",u=e.tcpa!==null&&e.tcpa!==void 0&&e.tcpa>=0?` in ${Math.round(e.tcpa)}m`:"",f=e.cpa!==null&&e.cpa!==void 0?` • CPA: ${du(e.cpa)}`:"";s=`🚨 ${l}${f}${u}`}else{const l=e.tcpa!==null&&e.tcpa!==void 0&&e.tcpa>=0?` in ${Math.round(e.tcpa)}m`:"";s=`⚠️ ${e.cpa!==null&&e.cpa!==void 0?`CPA: ${du(e.cpa)}`:`Dist: ${du(e.dist)}`}${l}`}return new zn.DivIcon({html:`
|
|
298
|
+
<div style="
|
|
299
|
+
display: inline-flex;
|
|
300
|
+
flex-direction: row;
|
|
301
|
+
align-items: center;
|
|
302
|
+
gap: 6px;
|
|
303
|
+
background: rgba(15, 23, 42, 0.90);
|
|
304
|
+
backdrop-filter: blur(6px);
|
|
305
|
+
border: 1px solid ${t?"rgba(239, 68, 68, 0.45)":"rgba(249, 115, 22, 0.45)"};
|
|
306
|
+
border-radius: 10px;
|
|
307
|
+
padding: 4px 8px;
|
|
308
|
+
box-shadow: 0 4px 14px rgba(0,0,0,0.55);
|
|
309
|
+
white-space: nowrap;
|
|
310
|
+
font-family: monospace;
|
|
311
|
+
pointer-events: none;
|
|
312
|
+
">
|
|
313
|
+
<span style="font-size: 18px; line-height: 1;">${r.emoji}</span>
|
|
314
|
+
<div style="display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2;">
|
|
315
|
+
<span style="font-size: 13.5px; font-weight: 900; color: ${n}; text-transform: uppercase; letter-spacing: -0.2px;">
|
|
316
|
+
${e.name||"Sconosciuto"}
|
|
317
|
+
</span>
|
|
318
|
+
<span style="font-size: 10px; font-weight: 700; color: #cbd5e1; margin-top: 1px;">
|
|
319
|
+
${o}
|
|
320
|
+
</span>
|
|
321
|
+
<span style="font-size: 11px; font-weight: 900; color: ${n}; margin-top: 1px;">
|
|
322
|
+
${s}
|
|
323
|
+
</span>
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|
|
326
|
+
`,className:"ais-threat-floating-label",iconSize:[320,56],iconAnchor:[-14,28]})},uB=({centerCoords:e,hasValidGps:t,autoCenter:n,setAutoCenter:r,smartZoom:i,flyTarget:o,isTargetSelected:s,cameraSnapshotRef:l,restoreSignal:u,onZoomChange:f,onBoundsChange:d})=>{const h=i_(),m=j.useRef(!1);j.useRef(!1);const v=j.useRef(!0),b=j.useCallback(()=>{f&&f(h.getZoom()),d&&d(h.getBounds().pad(.15))},[h,f,d]);SM({dragstart:()=>{h.stop(),r(!1)},zoomstart:y=>{y&&y.originalEvent&&(m.current=!0)},zoomend:b,moveend:b}),j.useEffect(()=>{b()},[b]);const x=j.useRef(null);j.useEffect(()=>{if(!n||e[0]===0||s)return;if(v.current&&t&&!o){h.setView(e,i,{animate:!1}),x.current=e,v.current=!1,b();return}const y=h.getZoom();if(!m.current&&y!==i){h.flyTo(e,i,{duration:.8}),x.current=e;return}x.current||(x.current=e);const _=(e[0]-x.current[0])*111139,w=(e[1]-x.current[1])*111139*Math.cos(e[0]*Math.PI/180),E=Math.sqrt(_*_+w*w),P=y>=16?25:y>=14?45:100;E>=P&&(h.panTo(e,{animate:!0,duration:.8,easeLinearity:.25}),x.current=e)},[n,e,t,i,s,h,b]),j.useEffect(()=>{if(o&&o.lat&&o.lon){const y=Math.max(h.getZoom(),15);h.flyTo([parseFloat(o.lat),parseFloat(o.lon)],y,{duration:.8})}},[o,h]),j.useEffect(()=>{if(u&&l.current){const y=l.current;h.flyTo(y.center,y.zoom,{duration:.7}),r(y.autoCenter),l.current=null}},[u,l,h,r]);const S=y=>{m.current=!0;const _=h.getZoom(),w=y==="in"?_+1:_-1;h.setZoom(w),f&&f(w)};return O.jsxs("div",{className:"absolute right-3 bottom-48 landscape:right-auto landscape:left-3 landscape:bottom-auto landscape:top-1/2 landscape:-translate-y-1/2 flex flex-col gap-2.5 z-[1000]",children:[O.jsx("button",{onClick:()=>S("in"),className:"w-11 h-11 landscape:w-10 landscape:h-10 rounded-2xl bg-[#161b22]/90 backdrop-blur-xl border border-white/20 flex items-center justify-center text-white active:scale-95 shadow-2xl",children:O.jsx(dM,{size:20})}),O.jsx("button",{onClick:()=>S("out"),className:"w-11 h-11 landscape:w-10 landscape:h-10 rounded-2xl bg-[#161b22]/90 backdrop-blur-xl border border-white/20 flex items-center justify-center text-white active:scale-95 shadow-2xl",children:O.jsx(fM,{size:20})}),O.jsx("button",{onClick:()=>{n?(m.current=!1,h.flyTo(e,i,{duration:.6})):(m.current=!0,r(!0),h.flyTo(e,h.getZoom(),{duration:.5}))},className:`w-11 h-11 landscape:w-10 landscape:h-10 rounded-2xl border transition-all flex items-center justify-center shadow-2xl active:scale-95 ${n?"bg-cyan-500/40 border-cyan-400 text-white shadow-[0_0_15px_rgba(6,182,212,0.4)]":"bg-[#161b22]/90 border-white/20 text-gray-400"}`,title:n?"Tocca per attivare Smart Zoom dinamico":"Tocca per centrare sulla barca",children:O.jsx(pM,{size:20})})]})},cB=()=>{try{const e=localStorage.getItem("rotevista_last_known_gps");if(e){const t=JSON.parse(e);if(t.lat&&t.lon)return[parseFloat(t.lat),parseFloat(t.lon)]}}catch{}return[37.96,23.48]},fB=({manager:e,isNightMode:t=!1,initialMmsi:n=null})=>{var he,ce,Ve,ze,oe,me,ye,J,Le,Se,Ue,We,it,Tt,vn,An,zt,Kt;const{data:r}=e,[i,o]=j.useState(!0),[s,l]=j.useState(null),[u,f]=j.useState(!1),[d,h]=j.useState(14),[m,v]=j.useState(null),[b,x]=j.useState(!1);j.useEffect(()=>{var Y,_e;(Y=r==null?void 0:r.gps)!=null&&Y.lat&&((_e=r==null?void 0:r.gps)!=null&&_e.lon)&&localStorage.setItem("rotevista_last_known_gps",JSON.stringify({lat:r.gps.lat,lon:r.gps.lon}))},[(he=r==null?void 0:r.gps)==null?void 0:he.lat,(ce=r==null?void 0:r.gps)==null?void 0:ce.lon]);const S=Y=>{if(Y)if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(Y).then(()=>{x(!0),setTimeout(()=>x(!1),2e3)});else{const _e=document.createElement("textarea");_e.value=Y,_e.style.position="fixed",_e.style.opacity="0",document.body.appendChild(_e),_e.focus(),_e.select(),document.execCommand("copy"),x(!0),setTimeout(()=>x(!1),2e3),document.body.removeChild(_e)}},y=j.useRef(null),_=j.useRef(!1),[w,E]=j.useState(0),[P,A]=j.useState(null),M=!!((Ve=r==null?void 0:r.gps)!=null&&Ve.lat&&((ze=r==null?void 0:r.gps)!=null&&ze.lon)),C=j.useMemo(()=>cB(),[]),N=parseFloat((oe=r==null?void 0:r.gps)==null?void 0:oe.lat)||C[0],B=parseFloat((me=r==null?void 0:r.gps)==null?void 0:me.lon)||C[1],z=j.useMemo(()=>[N,B],[N,B]),R=((ye=r==null?void 0:r.environment)==null?void 0:ye.heading)||((J=r==null?void 0:r.gps)==null?void 0:J.cog)||0,K=((Le=r==null?void 0:r.anchor)==null?void 0:Le.sog)!==void 0?r.anchor.sog:((Se=r==null?void 0:r.gps)==null?void 0:Se.sog)||0,H=j.useMemo(()=>oB(K),[K]),W=j.useMemo(()=>{var _e;return[...((_e=r==null?void 0:r.environment)==null?void 0:_e.ais_targets)||[]].sort((be,Ie)=>{const _t={RED:3,ORANGE:2,GREY:1},Ge=_t[be.risk]||1,gt=_t[Ie.risk]||1;if(Ge!==gt)return gt-Ge;const an=be.cpa!==null&&be.cpa!==void 0&&be.cpa>=0?be.cpa:be.dist,sn=Ie.cpa!==null&&Ie.cpa!==void 0&&Ie.cpa>=0?Ie.cpa:Ie.dist;return an-sn})},[(Ue=r==null?void 0:r.environment)==null?void 0:Ue.ais_targets]),Z=j.useMemo(()=>m?W.filter(Y=>Y.risk==="RED"||(s==null?void 0:s.id)===Y.id?!0:m.contains([Y.lat,Y.lon])):W,[W,m,s]),G=j.useMemo(()=>({id:"self",name:"ROTEVISTA",isOwnShip:!0,lat:z[0],lon:z[1],sog:K,cog:R}),[z,K,R]),$=j.useMemo(()=>s?s.isOwnShip?G:W.find(_e=>_e.id===s.id)||s:null,[s,W,G]),q=j.useMemo(()=>$&&!$.isOwnShip&&$.lat&&$.lon?{lat:$.lat,lon:$.lon}:{lat:z[0],lon:z[1]},[$,z]),V=j.useMemo(()=>{var an,sn,Un;const Y=((an=r==null?void 0:r.environment)==null?void 0:an.gps_history)||[],be=((sn=r==null?void 0:r.anchor)==null?void 0:sn.engine_on)||!1?"engine":"sail",Ie=Y.filter(Bt=>Bt.m!=="anchor");if(((Un=r==null?void 0:r.anchor)==null?void 0:Un.status)==="MOVING"&&Ie.push({lat:z[0],lon:z[1],m:be}),Ie.length<2)return[];const _t=[];let Ge=[[parseFloat(Ie[0].lat),parseFloat(Ie[0].lon)]],gt=Ie[0].m||"sail";for(let Bt=1;Bt<Ie.length;Bt++){const qt=Ie[Bt],ln=parseFloat(qt.lat),hr=parseFloat(qt.lon),gn=qt.m||"sail";if(gn===gt)Ge.push([ln,hr]);else{Ge.push([ln,hr]);const qr=gt==="engine"?"#f97316":t?"#38bdf8":"#0284c7";_t.push({positions:Ge,color:qr,weight:2.2,opacity:.85}),Ge=[[ln,hr]],gt=gn}}if(Ge.length>=2){const Bt=gt==="engine"?"#f97316":t?"#38bdf8":"#0284c7";_t.push({positions:Ge,color:Bt,weight:2.2,opacity:.85})}return _t},[(We=r==null?void 0:r.environment)==null?void 0:We.gps_history,(it=r==null?void 0:r.anchor)==null?void 0:it.engine_on,(Tt=r==null?void 0:r.anchor)==null?void 0:Tt.status,z,t]),te=Y=>{y.current||(y.current={center:z,zoom:14,autoCenter:i}),l(Y),A(Y),o(!1)},Q=Y=>{l(Y),A(null)},ae=()=>{l(null),A(null),y.current&&E(Y=>Y+1)},fe=()=>{l(null),A(null),f(!1),y.current&&E(Y=>Y+1)};return j.useEffect(()=>{if(!n||_.current||W.length===0)return;const Y=String(n).trim(),_e=W.find(be=>String(be.id||"").split(":").pop()===Y||String(be.id).includes(Y));if(_e&&_e.lat&&_e.lon){_.current=!0,o(!1),l(_e),A(_e);const be=new URL(window.location.href);be.searchParams.delete("mmsi"),window.history.replaceState({},"",be.toString())}},[n,W]),O.jsxs("div",{className:"relative w-full h-full overflow-hidden bg-[#0d1117] text-white",children:[O.jsx("div",{className:"absolute inset-0 z-0",children:O.jsxs(PM,{center:z,zoom:14,maxZoom:20,preferCanvas:!0,style:{height:"100%",width:"100%"},zoomControl:!1,attributionControl:!1,children:[O.jsx(ey,{url:t?"https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Base/MapServer/tile/{z}/{y}/{x}":"https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}",maxZoom:20,maxNativeZoom:16},t?"esri-dark":"esri-light"),O.jsx(ey,{url:"https://tiles.openseamap.org/seamark/{z}/{x}/{y}.png",maxZoom:18,opacity:t?.85:.75}),V.map((Y,_e)=>O.jsx(Fo,{positions:Y.positions,color:Y.color,weight:Y.weight,opacity:Y.opacity,lineCap:"round",lineJoin:"round",interactive:!1},`own-nav-trail-${_e}`)),O.jsx(uB,{centerCoords:z,hasValidGps:M,autoCenter:i,setAutoCenter:o,smartZoom:H,flyTarget:P,isTargetSelected:!!s,cameraSnapshotRef:y,restoreSignal:w,onZoomChange:h,onBoundsChange:v}),aB(d).map(Y=>{const _e=sB(q,Y.r),be=!!s,Ie=be?"#06b6d4":t?"#38bdf8":"#0369a1",_t=be?"#0891b2":t?"#ffffff":"#0f172a",Ge=t?"-1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000":"-1px -1px 0 rgba(255,255,255,0.9), 1px -1px 0 rgba(255,255,255,0.9), -1px 1px 0 rgba(255,255,255,0.9), 1px 1px 0 rgba(255,255,255,0.9)";return O.jsxs(D.Fragment,{children:[O.jsx(ai,{center:[q.lat,q.lon],radius:Y.r,pathOptions:{color:Ie,weight:be?1.8:1.4,opacity:t?.65:.8,fillOpacity:0,dashArray:be?"6, 6":"5, 8",interactive:!1}}),O.jsx(Jn,{position:_e,icon:new zn.DivIcon({html:`<div style="font-size: 9px; font-weight: 900; color: ${_t}; font-family: monospace; text-shadow: ${Ge}; white-space: nowrap; text-align: right; width: 100%;">${Y.label}</div>`,className:"range-label-marker",iconSize:[50,10],iconAnchor:[53,5]}),interactive:!1})]},`ais-ring-${Y.r}`)}),Z.map(Y=>{const _e=Y.isMoving!==void 0?Y.isMoving:!Y.isAnchored&&Y.sog>=.3,be=(s==null?void 0:s.id)===Y.id,_t=hu(Y.type).color,Ge=Y.risk==="RED",gt=Y.risk==="ORANGE",an=Y.trail&&Y.trail.length>=2&&(Ge||gt||be||Y.dist<=3704),sn=_e&&(Ge||gt||be||Y.dist<=5556),Un=Math.max(0,3e3-Math.round(Y.dist||0)),qt=(Ge?1e4:be?8e3:gt?5e3:1e3)+Un;return O.jsxs(D.Fragment,{children:[an&&O.jsx(Fo,{positions:Y.trail.map(ln=>[ln.lat,ln.lon]),color:_t,weight:be?2:1.2,opacity:.5,dashArray:"3, 5",interactive:!1}),sn&&O.jsx(Fo,{positions:[[Y.lat,Y.lon],kS(Y.lat,Y.lon,Y.cog,Y.sog,15)],color:_t,weight:be?3:2,opacity:.85,dashArray:"6, 6",interactive:!1}),Ge&&O.jsx(ai,{center:[Y.lat,Y.lon],radius:Math.max(100,(Y.sog||1)*45),pathOptions:{color:"#ef4444",weight:2.5,fillColor:"#ef4444",fillOpacity:.15,dashArray:"5, 5",interactive:!1}}),!Ge&>&&O.jsx(ai,{center:[Y.lat,Y.lon],radius:Math.max(70,(Y.sog||1)*35),pathOptions:{color:"#f97316",weight:2,fillColor:"#f97316",fillOpacity:.1,dashArray:"6, 6",interactive:!1}}),be&&O.jsx(ai,{center:[Y.lat,Y.lon],radius:Math.max(80,(Y.sog||1)*35),pathOptions:{color:"#22d3ee",weight:2.2,fillColor:"#22d3ee",fillOpacity:.18,dashArray:"3, 5",interactive:!1}}),O.jsx(Jn,{position:[Y.lat,Y.lon],icon:iB(Y,be,d),zIndexOffset:qt,eventHandlers:{click:()=>Q(Y)}}),(Ge||gt||be)&&O.jsx(Jn,{position:[Y.lat,Y.lon],icon:lB(Y),zIndexOffset:qt+100,interactive:!1})]},Y.id)}),K>=.5&&((vn=r==null?void 0:r.anchor)==null?void 0:vn.status)==="MOVING"&&(()=>{var be;const Y=(be=r==null?void 0:r.anchor)!=null&&be.engine_on?"#f97316":t?"#38bdf8":"#0284c7",_e=kS(z[0],z[1],R,K,15);return O.jsx(Fo,{positions:[z,_e],color:Y,weight:2.2,opacity:.9,dashArray:"12, 8, 3, 8",lineCap:"round",lineJoin:"round",interactive:!1})})(),O.jsx(Jn,{position:z,icon:rB(R,(An=r==null?void 0:r.anchor)!=null&&An.engine_on?"#f97316":t?"#38bdf8":"#0284c7"),zIndexOffset:1e3,eventHandlers:{click:()=>Q(G)}})]})}),!u&&!s&&O.jsx("div",{className:"absolute top-3 right-3 z-[1001]",children:O.jsxs("button",{onClick:()=>f(!0),className:"flex items-center gap-2 bg-[#161b22]/90 backdrop-blur-xl border border-white/20 px-3.5 py-2 rounded-2xl shadow-xl active:scale-95 transition-all text-white",children:[O.jsx(OS,{size:15,className:"text-cyan-400"}),O.jsx("span",{className:"text-xs font-black font-mono tracking-wider",children:W.length}),W.some(Y=>Y.risk==="RED")&&O.jsx("span",{className:"bg-red-500 text-white text-[9px] font-black px-1.5 py-0.5 rounded-md animate-pulse",children:"🚨"}),O.jsx(cM,{size:16,className:"text-gray-400"})]})}),(u||s)&&O.jsx("div",{onPointerDownCapture:Y=>Y.stopPropagation(),onTouchStartCapture:Y=>Y.stopPropagation(),className:`absolute top-3 right-3 w-[320px] max-w-[88vw] z-[1001] bg-[#161b22]/95 backdrop-blur-2xl border border-white/15 rounded-3xl shadow-2xl flex flex-col overflow-hidden isolate ${s?"h-auto max-h-[50vh] landscape:max-h-[calc(100vh-5.5rem)]":"h-[40vh] max-h-[40vh] landscape:h-[calc(100vh-5.5rem)] landscape:max-h-[calc(100vh-5.5rem)]"}`,children:$?(()=>{var be,Ie,_t,Ge,gt,an,sn,Un,Bt,qt,ln,hr,gn;if($.isOwnShip){const qr=parseFloat((be=r==null?void 0:r.trip)==null?void 0:be.engine_nm)||0,_o=parseFloat((Ie=r==null?void 0:r.trip)==null?void 0:Ie.sail_nm)||0,Mr=qr+_o,bo=Mr>0?Math.round(qr/Mr*100):0,wo=Mr>0?Math.round(_o/Mr*100):0,So=((_t=r==null?void 0:r.anchor)==null?void 0:_t.depth)||((Ge=r==null?void 0:r.environment)==null?void 0:Ge.depth)||0;return O.jsxs("div",{className:"flex flex-col p-3 font-mono gap-2 overflow-y-auto",children:[O.jsxs("div",{className:"flex items-center justify-between border-b border-white/10 pb-2",children:[O.jsxs("button",{onClick:ae,className:"flex items-center gap-1 text-[11px] font-black text-cyan-400 hover:text-cyan-300 active:scale-95 transition-transform shrink-0",children:[O.jsx("span",{children:"←"})," LISTA"]}),O.jsxs("div",{className:"text-center truncate px-2",children:[O.jsx("h4",{className:"text-sm font-black uppercase text-cyan-400 truncate tracking-tight",children:"⛵ ROTEVISTA"}),O.jsxs("span",{className:"text-[8.5px] text-gray-400 uppercase block tracking-tight mt-0.5",children:[MS(z[0],!0)," ",MS(z[1],!1)]})]}),O.jsx("button",{onClick:fe,className:"text-gray-400 hover:text-white p-1 shrink-0",children:O.jsx(cv,{size:16})})]}),O.jsxs("div",{className:"grid grid-cols-4 gap-1 text-[10px] shrink-0 text-center",children:[O.jsxs("div",{className:"bg-white/5 p-1.5 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"SOG"}),O.jsxs("span",{className:"font-bold text-cyan-400 text-xs",children:[K.toFixed(1),"k"]})]}),O.jsxs("div",{className:"bg-white/5 p-1.5 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Prua"}),O.jsxs("span",{className:"font-bold text-white text-xs",children:[Math.round(R),"°"]})]}),O.jsxs("div",{className:"bg-white/5 p-1.5 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Fondo"}),O.jsx("span",{className:"font-bold text-white text-xs",children:So>0?`${So.toFixed(1)}m`:"--"})]}),O.jsxs("div",{className:"bg-white/5 p-1.5 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Volvo"}),O.jsx("span",{className:`font-bold text-xs ${(gt=r==null?void 0:r.anchor)!=null&>.engine_on?"text-yellow-400 animate-pulse":"text-gray-400"}`,children:(an=r==null?void 0:r.anchor)!=null&&an.engine_on?"ON":"OFF"})]})]}),O.jsxs("div",{className:"bg-white/5 p-2 rounded-xl border border-white/5 flex flex-col gap-1 text-[10px]",children:[O.jsx("span",{className:"text-[8px] font-black text-gray-400 uppercase tracking-widest border-b border-white/5 pb-1",children:"Statistiche Tratta"}),O.jsxs("div",{className:"flex justify-between items-center text-cyan-400 font-bold",children:[O.jsxs("span",{children:["⛵ Vela: ",((sn=r==null?void 0:r.trip)==null?void 0:sn.sail_time)||"0m"]}),O.jsxs("span",{children:[((Un=r==null?void 0:r.trip)==null?void 0:Un.sail_nm)||"0.00 NM"," ",O.jsxs("span",{className:"text-gray-500 font-normal",children:["(",wo,"%)"]})]})]}),O.jsxs("div",{className:"flex justify-between items-center text-yellow-400 font-bold",children:[O.jsxs("span",{children:["🚤 Motore: ",((Bt=r==null?void 0:r.trip)==null?void 0:Bt.engine_time)||"0m"]}),O.jsxs("span",{children:[((qt=r==null?void 0:r.trip)==null?void 0:qt.engine_nm)||"0.00 NM"," ",O.jsxs("span",{className:"text-gray-500 font-normal",children:["(",bo,"%)"]})]})]}),O.jsxs("div",{className:"flex justify-between items-center text-white font-black border-t border-white/5 pt-1 mt-0.5",children:[O.jsxs("span",{children:["⏱️ Totale: ",((ln=r==null?void 0:r.trip)==null?void 0:ln.total_nav_time)||"0m"]}),O.jsx("span",{children:((hr=r==null?void 0:r.trip)==null?void 0:hr.total_nm)||"0.00 NM"})]})]})]})}const Y=hu($.type),_e=$.age!==void 0?$.age<60?`${$.age}s fa`:`${Math.round($.age/60)}m fa`:"";return O.jsxs("div",{className:"flex flex-col p-3 font-mono gap-2 overflow-y-auto",children:[O.jsxs("div",{className:"flex flex-col border-b border-white/10 pb-2 px-1 pt-0.5 shrink-0 gap-1",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsxs("button",{onClick:ae,className:"flex items-center gap-1 text-[11px] font-black text-cyan-400 hover:text-cyan-300 active:scale-95 transition-transform shrink-0 px-1 py-0.5",children:[O.jsx("span",{children:"←"})," LISTA"]}),O.jsxs("div",{className:"flex items-center justify-center gap-1.5 truncate px-2",children:[O.jsx("span",{className:"text-base shrink-0",children:Y.emoji}),O.jsx("h4",{className:"text-sm font-black uppercase text-white truncate tracking-tight",children:$.name||"Sconosciuto"})]}),O.jsx("button",{onClick:fe,className:"text-gray-400 hover:text-white p-1 shrink-0 rounded-lg active:scale-95 transition-transform",children:O.jsx(cv,{size:16})})]}),O.jsxs("div",{className:"flex items-center justify-center gap-1.5 text-[9.5px] font-bold text-gray-300 uppercase tracking-tight",children:[O.jsx("span",{children:Y.label}),O.jsx("span",{className:"text-gray-600",children:"•"}),(gn=$.id)!=null&&gn.includes("mmsi:")?O.jsx("button",{onClick:()=>S($.id.split(":").pop()),className:`flex items-center gap-1 cursor-pointer active:scale-95 transition-all px-1.5 py-0.5 rounded-md border ${b?"text-green-400 bg-green-500/15 border-green-500/30":"text-cyan-400 hover:text-cyan-300 bg-white/5 border-white/10"}`,title:"Tocca per copiare l'MMSI negli appunti",children:b?O.jsxs(O.Fragment,{children:[O.jsx(r4,{size:11,className:"shrink-0 text-green-400"}),O.jsx("span",{className:"text-[9px]",children:"Copiato!"})]}):O.jsxs(O.Fragment,{children:[O.jsx(l4,{size:9,className:"shrink-0 opacity-80"}),O.jsxs("span",{children:["MMSI ",$.id.split(":").pop()]})]})}):O.jsx("span",{className:"text-gray-400",children:"MMSI: --"}),_e&&O.jsxs(O.Fragment,{children:[O.jsx("span",{className:"text-gray-600",children:"•"}),O.jsx("span",{className:"text-gray-400",children:_e})]})]})]}),O.jsxs("div",{className:"grid grid-cols-2 gap-1.5 text-[10px] shrink-0",children:[O.jsxs("div",{className:"bg-white/5 p-2 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"SOG / COG"}),O.jsxs("span",{className:"font-bold text-white text-xs",children:[$.sog," kn @ ",$.cog,"°"]})]}),O.jsxs("div",{className:"bg-white/5 p-2 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Distanza"}),O.jsx("span",{className:"font-bold text-white text-xs truncate",title:Vf($.dist),children:Vf($.dist)})]}),O.jsxs("div",{className:"bg-white/5 p-2 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"CPA Minimo"}),O.jsx("span",{className:"font-bold text-cyan-400 text-xs truncate",title:Vf($.cpa),children:Vf($.cpa)})]}),O.jsxs("div",{className:"bg-white/5 p-2 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Tempo a CPA"}),O.jsx("span",{className:"font-bold text-cyan-400 text-xs",children:$.tcpa!==null&&$.tcpa!==void 0&&$.tcpa>=0?`${Math.round($.tcpa)} min`:"--"})]})]}),$.sightingTxt&&O.jsxs("div",{className:"bg-cyan-500/10 border border-cyan-500/30 px-2.5 py-1.5 rounded-xl text-[9px] text-cyan-200 shrink-0 flex items-center gap-1.5",children:[O.jsx("span",{className:"text-cyan-400 font-black uppercase shrink-0",children:"👀 Vista:"}),O.jsx("span",{className:"truncate",children:$.sightingTxt})]}),$.crossDir&&O.jsxs("div",{className:"bg-white/5 p-2 rounded-xl text-[9px] text-gray-300 border border-white/5 overflow-y-auto leading-normal whitespace-pre-line max-h-20",children:[O.jsx("span",{className:"text-orange-400 font-bold uppercase block mb-1",children:"Analisi Incrocio:"}),$.crossDir]})]})})():O.jsxs("div",{className:"flex flex-col h-full font-mono",children:[O.jsxs("div",{className:"h-10 px-3.5 flex items-center justify-between border-b border-white/10 shrink-0",children:[O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx(OS,{size:14,className:"text-cyan-400"}),O.jsxs("span",{className:"text-[11px] font-black uppercase tracking-wider text-white",children:["Bersagli (",W.length,")"]})]}),O.jsx("button",{onClick:fe,className:"text-gray-400 hover:text-white p-1",children:O.jsx(cv,{size:16})})]}),O.jsxs("div",{className:"flex-1 overflow-y-auto p-1.5 space-y-1.5",children:[O.jsxs("div",{onClick:()=>te(G),className:"p-2 rounded-xl border border-cyan-500/30 bg-cyan-500/10 hover:bg-cyan-500/20 transition-all cursor-pointer flex items-center justify-between",children:[O.jsxs("div",{className:"flex flex-col truncate pr-2",children:[O.jsx("span",{className:"text-[11px] font-black uppercase text-cyan-400 truncate flex items-center gap-1",children:"⛵ ROTEVISTA (LA TUA BARCA)"}),O.jsxs("span",{className:"text-[8px] text-gray-300 mt-0.5",children:[((zt=r==null?void 0:r.anchor)==null?void 0:zt.status)!=="MOVING"?"ALL'ANCORA":(Kt=r==null?void 0:r.anchor)!=null&&Kt.engine_on?"A MOTORE":"A VELA"," • HDG: ",Math.round(R),"°"]})]}),O.jsxs("div",{className:"flex flex-col items-end text-right shrink-0 leading-none",children:[O.jsxs("span",{className:"text-xs font-black text-cyan-400 font-mono",children:[K.toFixed(1)," kn"]}),O.jsx("span",{className:"text-[7.5px] text-gray-400 mt-1",children:"SOG"})]})]}),W.map(Y=>{const _e=Y.risk==="RED",be=Y.risk==="ORANGE",Ie=hu(Y.type);return O.jsxs("div",{onClick:()=>te(Y),className:`p-2 rounded-xl border transition-all cursor-pointer flex items-center justify-between ${_e?"bg-red-500/15 border-red-500/40 text-red-100":be?"bg-orange-500/15 border-orange-500/40 text-orange-100":"bg-white/5 border-white/5 hover:bg-white/10"}`,children:[O.jsxs("div",{className:"flex flex-col truncate pr-2",children:[O.jsxs("div",{className:"flex items-center gap-1.5 truncate",children:[O.jsx("span",{style:{color:Ie.color},className:"text-xs shrink-0",children:Ie.emoji}),O.jsx("span",{className:"text-[11px] font-black uppercase text-white truncate",children:Y.name||"Sconosciuto"}),_e&&O.jsx("span",{className:"text-red-500 text-[9px] shrink-0",children:"🚨"})]}),O.jsxs("span",{className:"text-[9.5px] font-bold text-gray-300 mt-0.5 tracking-tight leading-tight",children:[Ie.label," • ",Y.isMoving?`${Y.sog}k • ${Y.cog}°`:"ALL'ANCORA"]})]}),O.jsxs("div",{className:"flex flex-col items-end text-right shrink-0 leading-none",children:[O.jsx("span",{className:`text-xs font-black ${_e?"text-red-400":be?"text-orange-400":"text-cyan-400"}`,children:Y.cpa!==null&&Y.cpa!==void 0?`CPA: ${du(Y.cpa)}`:du(Y.dist)}),Y.tcpa!==null&&Y.tcpa>=0&&O.jsxs("span",{className:"text-[8.5px] font-bold text-gray-300 mt-1",children:["in ",Math.round(Y.tcpa),"m"]})]})]},Y.id)})]})]})})]})};function TM(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=TM(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ne(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=TM(e))&&(r&&(r+=" "),r+=t);return r}var hB=Array.isArray,Tn=hB,dB=typeof Ul=="object"&&Ul&&Ul.Object===Object&&Ul,AM=dB,pB=AM,mB=typeof self=="object"&&self&&self.Object===Object&&self,vB=pB||mB||Function("return this")(),Kr=vB,gB=Kr,yB=gB.Symbol,jc=yB,CS=jc,EM=Object.prototype,xB=EM.hasOwnProperty,_B=EM.toString,jl=CS?CS.toStringTag:void 0;function bB(e){var t=xB.call(e,jl),n=e[jl];try{e[jl]=void 0;var r=!0}catch{}var i=_B.call(e);return r&&(t?e[jl]=n:delete e[jl]),i}var wB=bB,SB=Object.prototype,PB=SB.toString;function OB(e){return PB.call(e)}var TB=OB,jS=jc,AB=wB,EB=TB,kB="[object Null]",MB="[object Undefined]",$S=jS?jS.toStringTag:void 0;function CB(e){return e==null?e===void 0?MB:kB:$S&&$S in Object(e)?AB(e):EB(e)}var Ei=CB;function jB(e){return e!=null&&typeof e=="object"}var ki=jB,$B=Ei,NB=ki,LB="[object Symbol]";function IB(e){return typeof e=="symbol"||NB(e)&&$B(e)==LB}var Gs=IB,DB=Tn,RB=Gs,zB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,BB=/^\w*$/;function FB(e,t){if(DB(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||RB(e)?!0:BB.test(e)||!zB.test(e)||t!=null&&e in Object(t)}var a_=FB;function VB(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var po=VB;const Ks=Ze(po);var UB=Ei,WB=po,HB="[object AsyncFunction]",ZB="[object Function]",GB="[object GeneratorFunction]",KB="[object Proxy]";function qB(e){if(!WB(e))return!1;var t=UB(e);return t==ZB||t==GB||t==HB||t==KB}var s_=qB;const Pe=Ze(s_);var XB=Kr,YB=XB["__core-js_shared__"],QB=YB,hv=QB,NS=function(){var e=/[^.]+$/.exec(hv&&hv.keys&&hv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function JB(e){return!!NS&&NS in e}var eF=JB,tF=Function.prototype,nF=tF.toString;function rF(e){if(e!=null){try{return nF.call(e)}catch{}try{return e+""}catch{}}return""}var kM=rF,iF=s_,oF=eF,aF=po,sF=kM,lF=/[\\^$.*+?()[\]{}|]/g,uF=/^\[object .+?Constructor\]$/,cF=Function.prototype,fF=Object.prototype,hF=cF.toString,dF=fF.hasOwnProperty,pF=RegExp("^"+hF.call(dF).replace(lF,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mF(e){if(!aF(e)||oF(e))return!1;var t=iF(e)?pF:uF;return t.test(sF(e))}var vF=mF;function gF(e,t){return e==null?void 0:e[t]}var yF=gF,xF=vF,_F=yF;function bF(e,t){var n=_F(e,t);return xF(n)?n:void 0}var ha=bF,wF=ha,SF=wF(Object,"create"),xp=SF,LS=xp;function PF(){this.__data__=LS?LS(null):{},this.size=0}var OF=PF;function TF(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var AF=TF,EF=xp,kF="__lodash_hash_undefined__",MF=Object.prototype,CF=MF.hasOwnProperty;function jF(e){var t=this.__data__;if(EF){var n=t[e];return n===kF?void 0:n}return CF.call(t,e)?t[e]:void 0}var $F=jF,NF=xp,LF=Object.prototype,IF=LF.hasOwnProperty;function DF(e){var t=this.__data__;return NF?t[e]!==void 0:IF.call(t,e)}var RF=DF,zF=xp,BF="__lodash_hash_undefined__";function FF(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=zF&&t===void 0?BF:t,this}var VF=FF,UF=OF,WF=AF,HF=$F,ZF=RF,GF=VF;function qs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qs.prototype.clear=UF;qs.prototype.delete=WF;qs.prototype.get=HF;qs.prototype.has=ZF;qs.prototype.set=GF;var KF=qs;function qF(){this.__data__=[],this.size=0}var XF=qF;function YF(e,t){return e===t||e!==e&&t!==t}var l_=YF,QF=l_;function JF(e,t){for(var n=e.length;n--;)if(QF(e[n][0],t))return n;return-1}var _p=JF,e8=_p,t8=Array.prototype,n8=t8.splice;function r8(e){var t=this.__data__,n=e8(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():n8.call(t,n,1),--this.size,!0}var i8=r8,o8=_p;function a8(e){var t=this.__data__,n=o8(t,e);return n<0?void 0:t[n][1]}var s8=a8,l8=_p;function u8(e){return l8(this.__data__,e)>-1}var c8=u8,f8=_p;function h8(e,t){var n=this.__data__,r=f8(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var d8=h8,p8=XF,m8=i8,v8=s8,g8=c8,y8=d8;function Xs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Xs.prototype.clear=p8;Xs.prototype.delete=m8;Xs.prototype.get=v8;Xs.prototype.has=g8;Xs.prototype.set=y8;var bp=Xs,x8=ha,_8=Kr,b8=x8(_8,"Map"),u_=b8,IS=KF,w8=bp,S8=u_;function P8(){this.size=0,this.__data__={hash:new IS,map:new(S8||w8),string:new IS}}var O8=P8;function T8(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var A8=T8,E8=A8;function k8(e,t){var n=e.__data__;return E8(t)?n[typeof t=="string"?"string":"hash"]:n.map}var wp=k8,M8=wp;function C8(e){var t=M8(this,e).delete(e);return this.size-=t?1:0,t}var j8=C8,$8=wp;function N8(e){return $8(this,e).get(e)}var L8=N8,I8=wp;function D8(e){return I8(this,e).has(e)}var R8=D8,z8=wp;function B8(e,t){var n=z8(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var F8=B8,V8=O8,U8=j8,W8=L8,H8=R8,Z8=F8;function Ys(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ys.prototype.clear=V8;Ys.prototype.delete=U8;Ys.prototype.get=W8;Ys.prototype.has=H8;Ys.prototype.set=Z8;var c_=Ys,MM=c_,G8="Expected a function";function f_(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(G8);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(f_.Cache||MM),n}f_.Cache=MM;var CM=f_;const K8=Ze(CM);var q8=CM,X8=500;function Y8(e){var t=q8(e,function(r){return n.size===X8&&n.clear(),r}),n=t.cache;return t}var Q8=Y8,J8=Q8,e6=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t6=/\\(\\)?/g,n6=J8(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(e6,function(n,r,i,o){t.push(i?o.replace(t6,"$1"):r||n)}),t}),r6=n6;function i6(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var h_=i6,DS=jc,o6=h_,a6=Tn,s6=Gs,RS=DS?DS.prototype:void 0,zS=RS?RS.toString:void 0;function jM(e){if(typeof e=="string")return e;if(a6(e))return o6(e,jM)+"";if(s6(e))return zS?zS.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var l6=jM,u6=l6;function c6(e){return e==null?"":u6(e)}var $M=c6,f6=Tn,h6=a_,d6=r6,p6=$M;function m6(e,t){return f6(e)?e:h6(e,t)?[e]:d6(p6(e))}var NM=m6,v6=Gs;function g6(e){if(typeof e=="string"||v6(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Sp=g6,y6=NM,x6=Sp;function _6(e,t){t=y6(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[x6(t[n++])];return n&&n==r?e:void 0}var d_=_6,b6=d_;function w6(e,t,n){var r=e==null?void 0:b6(e,t);return r===void 0?n:r}var LM=w6;const ar=Ze(LM);function S6(e){return e==null}var P6=S6;const Me=Ze(P6);var O6=Ei,T6=Tn,A6=ki,E6="[object String]";function k6(e){return typeof e=="string"||!T6(e)&&A6(e)&&O6(e)==E6}var M6=k6;const ia=Ze(M6);var IM={exports:{}},Fe={};/**
|
|
327
|
+
* @license React
|
|
328
|
+
* react-is.production.min.js
|
|
329
|
+
*
|
|
330
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
331
|
+
*
|
|
332
|
+
* This source code is licensed under the MIT license found in the
|
|
333
|
+
* LICENSE file in the root directory of this source tree.
|
|
334
|
+
*/var p_=Symbol.for("react.element"),m_=Symbol.for("react.portal"),Pp=Symbol.for("react.fragment"),Op=Symbol.for("react.strict_mode"),Tp=Symbol.for("react.profiler"),Ap=Symbol.for("react.provider"),Ep=Symbol.for("react.context"),C6=Symbol.for("react.server_context"),kp=Symbol.for("react.forward_ref"),Mp=Symbol.for("react.suspense"),Cp=Symbol.for("react.suspense_list"),jp=Symbol.for("react.memo"),$p=Symbol.for("react.lazy"),j6=Symbol.for("react.offscreen"),DM;DM=Symbol.for("react.module.reference");function cr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case p_:switch(e=e.type,e){case Pp:case Tp:case Op:case Mp:case Cp:return e;default:switch(e=e&&e.$$typeof,e){case C6:case Ep:case kp:case $p:case jp:case Ap:return e;default:return t}}case m_:return t}}}Fe.ContextConsumer=Ep;Fe.ContextProvider=Ap;Fe.Element=p_;Fe.ForwardRef=kp;Fe.Fragment=Pp;Fe.Lazy=$p;Fe.Memo=jp;Fe.Portal=m_;Fe.Profiler=Tp;Fe.StrictMode=Op;Fe.Suspense=Mp;Fe.SuspenseList=Cp;Fe.isAsyncMode=function(){return!1};Fe.isConcurrentMode=function(){return!1};Fe.isContextConsumer=function(e){return cr(e)===Ep};Fe.isContextProvider=function(e){return cr(e)===Ap};Fe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===p_};Fe.isForwardRef=function(e){return cr(e)===kp};Fe.isFragment=function(e){return cr(e)===Pp};Fe.isLazy=function(e){return cr(e)===$p};Fe.isMemo=function(e){return cr(e)===jp};Fe.isPortal=function(e){return cr(e)===m_};Fe.isProfiler=function(e){return cr(e)===Tp};Fe.isStrictMode=function(e){return cr(e)===Op};Fe.isSuspense=function(e){return cr(e)===Mp};Fe.isSuspenseList=function(e){return cr(e)===Cp};Fe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pp||e===Tp||e===Op||e===Mp||e===Cp||e===j6||typeof e=="object"&&e!==null&&(e.$$typeof===$p||e.$$typeof===jp||e.$$typeof===Ap||e.$$typeof===Ep||e.$$typeof===kp||e.$$typeof===DM||e.getModuleId!==void 0)};Fe.typeOf=cr;IM.exports=Fe;var $6=IM.exports,N6=Ei,L6=ki,I6="[object Number]";function D6(e){return typeof e=="number"||L6(e)&&N6(e)==I6}var RM=D6;const R6=Ze(RM);var z6=RM;function B6(e){return z6(e)&&e!=+e}var F6=B6;const Qs=Ze(F6);var Pr=function(t){return t===0?0:t>0?1:-1},Vo=function(t){return ia(t)&&t.indexOf("%")===t.length-1},ie=function(t){return R6(t)&&!Qs(t)},V6=function(t){return Me(t)},Ct=function(t){return ie(t)||ia(t)},U6=0,$c=function(t){var n=++U6;return"".concat(t||"").concat(n)},oa=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ie(t)&&!ia(t))return r;var o;if(Vo(t)){var s=t.indexOf("%");o=n*parseFloat(t.slice(0,s))/100}else o=+t;return Qs(o)&&(o=r),i&&o>n&&(o=n),o},Hi=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},W6=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},nr=function(t,n){return ie(t)&&ie(n)?function(r){return t+r*(n-t)}:function(){return n}};function qh(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):ar(r,t))===n})}var H6=function(t,n){return ie(t)&&ie(n)?t-n:ia(t)&&ia(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function rs(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function ty(e){"@babel/helpers - typeof";return ty=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ty(e)}var Z6=["viewBox","children"],G6=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],BS=["points","pathLength"],dv={svg:Z6,polygon:BS,polyline:BS},v_=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Xh=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(j.isValidElement(t)&&(r=t.props),!Ks(r))return null;var i={};return Object.keys(r).forEach(function(o){v_.includes(o)&&(i[o]=n||function(s){return r[o](r,s)})}),i},K6=function(t,n,r){return function(i){return t(n,r,i),null}},Yh=function(t,n,r){if(!Ks(t)||ty(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var s=t[o];v_.includes(o)&&typeof s=="function"&&(i||(i={}),i[o]=K6(s,n,r))}),i},q6=["children"],X6=["children"];function FS(e,t){if(e==null)return{};var n=Y6(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Y6(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ny(e){"@babel/helpers - typeof";return ny=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ny(e)}var VS={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},mi=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},US=null,pv=null,g_=function e(t){if(t===US&&Array.isArray(pv))return pv;var n=[];return j.Children.forEach(t,function(r){Me(r)||($6.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),pv=n,US=t,n};function Ar(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return mi(i)}):r=[mi(t)],g_(e).forEach(function(i){var o=ar(i,"type.displayName")||ar(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function jn(e,t){var n=Ar(e,t);return n&&n[0]}var WS=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!ie(r)||r<=0||!ie(i)||i<=0)},Q6=["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"],J6=function(t){return t&&t.type&&ia(t.type)&&Q6.indexOf(t.type)>=0},eV=function(t){return t&&ny(t)==="object"&&"clipDot"in t},tV=function(t,n,r,i){var o,s=(o=dv==null?void 0:dv[i])!==null&&o!==void 0?o:[];return n.startsWith("data-")||!Pe(t)&&(i&&s.includes(n)||G6.includes(n))||r&&v_.includes(n)},Ee=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(j.isValidElement(t)&&(i=t.props),!Ks(i))return null;var o={};return Object.keys(i).forEach(function(s){var l;tV((l=i)===null||l===void 0?void 0:l[s],s,n,r)&&(o[s]=i[s])}),o},ry=function e(t,n){if(t===n)return!0;var r=j.Children.count(t);if(r!==j.Children.count(n))return!1;if(r===0)return!0;if(r===1)return HS(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var o=t[i],s=n[i];if(Array.isArray(o)||Array.isArray(s)){if(!e(o,s))return!1}else if(!HS(o,s))return!1}return!0},HS=function(t,n){if(Me(t)&&Me(n))return!0;if(!Me(t)&&!Me(n)){var r=t.props||{},i=r.children,o=FS(r,q6),s=n.props||{},l=s.children,u=FS(s,X6);return i&&l?rs(o,u)&&ry(i,l):!i&&!l?rs(o,u):!1}return!1},ZS=function(t,n){var r=[],i={};return g_(t).forEach(function(o,s){if(J6(o))r.push(o);else if(o){var l=mi(o.type),u=n[l]||{},f=u.handler,d=u.once;if(f&&(!d||!i[l])){var h=f(o,l,s);r.push(h),i[l]=!0}}}),r},nV=function(t){var n=t&&t.type;return n&&VS[n]?VS[n]:null},rV=function(t,n){return g_(n).indexOf(t)},iV=["children","width","height","viewBox","className","style","title","desc"];function iy(){return iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iy.apply(this,arguments)}function oV(e,t){if(e==null)return{};var n=aV(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function aV(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function oy(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,s=e.style,l=e.title,u=e.desc,f=oV(e,iV),d=i||{width:n,height:r,x:0,y:0},h=Ne("recharts-surface",o);return D.createElement("svg",iy({},Ee(f,!0,"svg"),{className:h,width:n,height:r,style:s,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),D.createElement("title",null,l),D.createElement("desc",null,u),t)}var sV=["children","className"];function ay(){return ay=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ay.apply(this,arguments)}function lV(e,t){if(e==null)return{};var n=uV(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uV(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var ft=D.forwardRef(function(e,t){var n=e.children,r=e.className,i=lV(e,sV),o=Ne("recharts-layer",r);return D.createElement("g",ay({className:o},Ee(i,!0),{ref:t}),n)}),vi=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o]};function cV(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var fV=cV,hV=fV;function dV(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:hV(e,t,n)}var pV=dV,mV="\\ud800-\\udfff",vV="\\u0300-\\u036f",gV="\\ufe20-\\ufe2f",yV="\\u20d0-\\u20ff",xV=vV+gV+yV,_V="\\ufe0e\\ufe0f",bV="\\u200d",wV=RegExp("["+bV+mV+xV+_V+"]");function SV(e){return wV.test(e)}var zM=SV;function PV(e){return e.split("")}var OV=PV,BM="\\ud800-\\udfff",TV="\\u0300-\\u036f",AV="\\ufe20-\\ufe2f",EV="\\u20d0-\\u20ff",kV=TV+AV+EV,MV="\\ufe0e\\ufe0f",CV="["+BM+"]",sy="["+kV+"]",ly="\\ud83c[\\udffb-\\udfff]",jV="(?:"+sy+"|"+ly+")",FM="[^"+BM+"]",VM="(?:\\ud83c[\\udde6-\\uddff]){2}",UM="[\\ud800-\\udbff][\\udc00-\\udfff]",$V="\\u200d",WM=jV+"?",HM="["+MV+"]?",NV="(?:"+$V+"(?:"+[FM,VM,UM].join("|")+")"+HM+WM+")*",LV=HM+WM+NV,IV="(?:"+[FM+sy+"?",sy,VM,UM,CV].join("|")+")",DV=RegExp(ly+"(?="+ly+")|"+IV+LV,"g");function RV(e){return e.match(DV)||[]}var zV=RV,BV=OV,FV=zM,VV=zV;function UV(e){return FV(e)?VV(e):BV(e)}var WV=UV,HV=pV,ZV=zM,GV=WV,KV=$M;function qV(e){return function(t){t=KV(t);var n=ZV(t)?GV(t):void 0,r=n?n[0]:t.charAt(0),i=n?HV(n,1).join(""):t.slice(1);return r[e]()+i}}var XV=qV,YV=XV,QV=YV("toUpperCase"),JV=QV;const Np=Ze(JV);function Ye(e){return function(){return e}}const ZM=Math.cos,Qh=Math.sin,kr=Math.sqrt,Jh=Math.PI,Lp=2*Jh,uy=Math.PI,cy=2*uy,No=1e-6,eU=cy-No;function GM(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function tU(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return GM;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class nU{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?GM:tU(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,s){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+s}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,l=this._y1,u=r-t,f=i-n,d=s-t,h=l-n,m=d*d+h*h;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(m>No)if(!(Math.abs(h*u-f*d)>No)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let v=r-s,b=i-l,x=u*u+f*f,S=v*v+b*b,y=Math.sqrt(x),_=Math.sqrt(m),w=o*Math.tan((uy-Math.acos((x+m-S)/(2*y*_)))/2),E=w/_,P=w/y;Math.abs(E-1)>No&&this._append`L${t+E*d},${n+E*h}`,this._append`A${o},${o},0,0,${+(h*v>d*b)},${this._x1=t+P*u},${this._y1=n+P*f}`}}arc(t,n,r,i,o,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),u=r*Math.sin(i),f=t+l,d=n+u,h=1^s,m=s?i-o:o-i;this._x1===null?this._append`M${f},${d}`:(Math.abs(this._x1-f)>No||Math.abs(this._y1-d)>No)&&this._append`L${f},${d}`,r&&(m<0&&(m=m%cy+cy),m>eU?this._append`A${r},${r},0,1,${h},${t-l},${n-u}A${r},${r},0,1,${h},${this._x1=f},${this._y1=d}`:m>No&&this._append`A${r},${r},0,${+(m>=uy)},${h},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function y_(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new nU(t)}function x_(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function KM(e){this._context=e}KM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ip(e){return new KM(e)}function qM(e){return e[0]}function XM(e){return e[1]}function YM(e,t){var n=Ye(!0),r=null,i=Ip,o=null,s=y_(l);e=typeof e=="function"?e:e===void 0?qM:Ye(e),t=typeof t=="function"?t:t===void 0?XM:Ye(t);function l(u){var f,d=(u=x_(u)).length,h,m=!1,v;for(r==null&&(o=i(v=s())),f=0;f<=d;++f)!(f<d&&n(h=u[f],f,u))===m&&((m=!m)?o.lineStart():o.lineEnd()),m&&o.point(+e(h,f,u),+t(h,f,u));if(v)return o=null,v+""||null}return l.x=function(u){return arguments.length?(e=typeof u=="function"?u:Ye(+u),l):e},l.y=function(u){return arguments.length?(t=typeof u=="function"?u:Ye(+u),l):t},l.defined=function(u){return arguments.length?(n=typeof u=="function"?u:Ye(!!u),l):n},l.curve=function(u){return arguments.length?(i=u,r!=null&&(o=i(r)),l):i},l.context=function(u){return arguments.length?(u==null?r=o=null:o=i(r=u),l):r},l}function Uf(e,t,n){var r=null,i=Ye(!0),o=null,s=Ip,l=null,u=y_(f);e=typeof e=="function"?e:e===void 0?qM:Ye(+e),t=typeof t=="function"?t:Ye(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?XM:Ye(+n);function f(h){var m,v,b,x=(h=x_(h)).length,S,y=!1,_,w=new Array(x),E=new Array(x);for(o==null&&(l=s(_=u())),m=0;m<=x;++m){if(!(m<x&&i(S=h[m],m,h))===y)if(y=!y)v=m,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),b=m-1;b>=v;--b)l.point(w[b],E[b]);l.lineEnd(),l.areaEnd()}y&&(w[m]=+e(S,m,h),E[m]=+t(S,m,h),l.point(r?+r(S,m,h):w[m],n?+n(S,m,h):E[m]))}if(_)return l=null,_+""||null}function d(){return YM().defined(i).curve(s).context(o)}return f.x=function(h){return arguments.length?(e=typeof h=="function"?h:Ye(+h),r=null,f):e},f.x0=function(h){return arguments.length?(e=typeof h=="function"?h:Ye(+h),f):e},f.x1=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:Ye(+h),f):r},f.y=function(h){return arguments.length?(t=typeof h=="function"?h:Ye(+h),n=null,f):t},f.y0=function(h){return arguments.length?(t=typeof h=="function"?h:Ye(+h),f):t},f.y1=function(h){return arguments.length?(n=h==null?null:typeof h=="function"?h:Ye(+h),f):n},f.lineX0=f.lineY0=function(){return d().x(e).y(t)},f.lineY1=function(){return d().x(e).y(n)},f.lineX1=function(){return d().x(r).y(t)},f.defined=function(h){return arguments.length?(i=typeof h=="function"?h:Ye(!!h),f):i},f.curve=function(h){return arguments.length?(s=h,o!=null&&(l=s(o)),f):s},f.context=function(h){return arguments.length?(h==null?o=l=null:l=s(o=h),f):o},f}class QM{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function rU(e){return new QM(e,!0)}function iU(e){return new QM(e,!1)}const __={draw(e,t){const n=kr(t/Jh);e.moveTo(n,0),e.arc(0,0,n,0,Lp)}},oU={draw(e,t){const n=kr(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},JM=kr(1/3),aU=JM*2,sU={draw(e,t){const n=kr(t/aU),r=n*JM;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},lU={draw(e,t){const n=kr(t),r=-n/2;e.rect(r,r,n,n)}},uU=.8908130915292852,eC=Qh(Jh/10)/Qh(7*Jh/10),cU=Qh(Lp/10)*eC,fU=-ZM(Lp/10)*eC,hU={draw(e,t){const n=kr(t*uU),r=cU*n,i=fU*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const s=Lp*o/5,l=ZM(s),u=Qh(s);e.lineTo(u*n,-l*n),e.lineTo(l*r-u*i,u*r+l*i)}e.closePath()}},mv=kr(3),dU={draw(e,t){const n=-kr(t/(mv*3));e.moveTo(0,n*2),e.lineTo(-mv*n,-n),e.lineTo(mv*n,-n),e.closePath()}},qn=-.5,Xn=kr(3)/2,fy=1/kr(12),pU=(fy/2+1)*3,mU={draw(e,t){const n=kr(t/pU),r=n/2,i=n*fy,o=r,s=n*fy+n,l=-o,u=s;e.moveTo(r,i),e.lineTo(o,s),e.lineTo(l,u),e.lineTo(qn*r-Xn*i,Xn*r+qn*i),e.lineTo(qn*o-Xn*s,Xn*o+qn*s),e.lineTo(qn*l-Xn*u,Xn*l+qn*u),e.lineTo(qn*r+Xn*i,qn*i-Xn*r),e.lineTo(qn*o+Xn*s,qn*s-Xn*o),e.lineTo(qn*l+Xn*u,qn*u-Xn*l),e.closePath()}};function vU(e,t){let n=null,r=y_(i);e=typeof e=="function"?e:Ye(e||__),t=typeof t=="function"?t:Ye(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:Ye(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Ye(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function ed(){}function td(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function tC(e){this._context=e}tC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:td(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:td(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gU(e){return new tC(e)}function nC(e){this._context=e}nC.prototype={areaStart:ed,areaEnd:ed,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:td(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yU(e){return new nC(e)}function rC(e){this._context=e}rC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:td(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function xU(e){return new rC(e)}function iC(e){this._context=e}iC.prototype={areaStart:ed,areaEnd:ed,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function _U(e){return new iC(e)}function GS(e){return e<0?-1:1}function KS(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),l=(o*i+s*r)/(r+i);return(GS(o)+GS(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(l))||0}function qS(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function vv(e,t,n){var r=e._x0,i=e._y0,o=e._x1,s=e._y1,l=(o-r)/3;e._context.bezierCurveTo(r+l,i+l*t,o-l,s-l*n,o,s)}function nd(e){this._context=e}nd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:vv(this,this._t0,qS(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,vv(this,qS(this,n=KS(this,e,t)),n);break;default:vv(this,this._t0,n=KS(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function oC(e){this._context=new aC(e)}(oC.prototype=Object.create(nd.prototype)).point=function(e,t){nd.prototype.point.call(this,t,e)};function aC(e){this._context=e}aC.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function bU(e){return new nd(e)}function wU(e){return new oC(e)}function sC(e){this._context=e}sC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=XS(e),i=XS(t),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[s],t[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function XS(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),s=new Array(n);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,s[t]-=r*s[t-1];for(i[n-1]=s[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(s[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function SU(e){return new sC(e)}function Dp(e,t){this._context=e,this._t=t}Dp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function PU(e){return new Dp(e,.5)}function OU(e){return new Dp(e,0)}function TU(e){return new Dp(e,1)}function gs(e,t){if((s=e.length)>1)for(var n=1,r,i,o=e[t[0]],s,l=o.length;n<s;++n)for(i=o,o=e[t[n]],r=0;r<l;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function hy(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function AU(e,t){return e[t]}function EU(e){const t=[];return t.key=e,t}function kU(){var e=Ye([]),t=hy,n=gs,r=AU;function i(o){var s=Array.from(e.apply(this,arguments),EU),l,u=s.length,f=-1,d;for(const h of o)for(l=0,++f;l<u;++l)(s[l][f]=[0,+r(h,s[l].key,f,o)]).data=h;for(l=0,d=x_(t(s));l<u;++l)s[d[l]].index=l;return n(s,d),s}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:Ye(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:Ye(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?hy:typeof o=="function"?o:Ye(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??gs,i):n},i}function MU(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,s;i<o;++i){for(s=n=0;n<r;++n)s+=e[n][i][1]||0;if(s)for(n=0;n<r;++n)e[n][i][1]/=s}gs(e,t)}}function CU(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var s=0,l=0;s<i;++s)l+=e[s][n][1]||0;r[n][1]+=r[n][0]=-l/2}gs(e,t)}}function jU(e,t){if(!(!((s=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,s;r<o;++r){for(var l=0,u=0,f=0;l<s;++l){for(var d=e[t[l]],h=d[r][1]||0,m=d[r-1][1]||0,v=(h-m)/2,b=0;b<l;++b){var x=e[t[b]],S=x[r][1]||0,y=x[r-1][1]||0;v+=S-y}u+=h,f+=v*h}i[r-1][1]+=i[r-1][0]=n,u&&(n-=f/u)}i[r-1][1]+=i[r-1][0]=n,gs(e,t)}}function Fu(e){"@babel/helpers - typeof";return Fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fu(e)}var $U=["type","size","sizeType"];function dy(){return dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dy.apply(this,arguments)}function YS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function QS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YS(Object(n),!0).forEach(function(r){NU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NU(e,t,n){return t=LU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LU(e){var t=IU(e,"string");return Fu(t)=="symbol"?t:t+""}function IU(e,t){if(Fu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DU(e,t){if(e==null)return{};var n=RU(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function RU(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var lC={symbolCircle:__,symbolCross:oU,symbolDiamond:sU,symbolSquare:lU,symbolStar:hU,symbolTriangle:dU,symbolWye:mU},zU=Math.PI/180,BU=function(t){var n="symbol".concat(Np(t));return lC[n]||__},FU=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*zU;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},VU=function(t,n){lC["symbol".concat(Np(t))]=n},b_=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,o=i===void 0?64:i,s=t.sizeType,l=s===void 0?"area":s,u=DU(t,$U),f=QS(QS({},u),{},{type:r,size:o,sizeType:l}),d=function(){var S=BU(r),y=vU().type(S).size(FU(o,l,r));return y()},h=f.className,m=f.cx,v=f.cy,b=Ee(f,!0);return m===+m&&v===+v&&o===+o?D.createElement("path",dy({},b,{className:Ne("recharts-symbols",h),transform:"translate(".concat(m,", ").concat(v,")"),d:d()})):null};b_.registerSymbol=VU;function ys(e){"@babel/helpers - typeof";return ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ys(e)}function py(){return py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},py.apply(this,arguments)}function JS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function UU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JS(Object(n),!0).forEach(function(r){Vu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cC(r.key),r)}}function ZU(e,t,n){return t&&HU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GU(e,t,n){return t=rd(t),KU(e,uC()?Reflect.construct(t,n||[],rd(e).constructor):t.apply(e,n))}function KU(e,t){if(t&&(ys(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qU(e)}function qU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uC=function(){return!!e})()}function rd(e){return rd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rd(e)}function XU(e,t){if(typeof t!="function"&&t!==null)throw new 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&&my(e,t)}function my(e,t){return my=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},my(e,t)}function Vu(e,t,n){return t=cC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cC(e){var t=YU(e,"string");return ys(t)=="symbol"?t:t+""}function YU(e,t){if(ys(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ys(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yn=32,w_=function(e){function t(){return WU(this,t),GU(this,t,arguments)}return XU(t,e),ZU(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=Yn/2,s=Yn/6,l=Yn/3,u=r.inactive?i:r.color;if(r.type==="plainline")return D.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:Yn,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return D.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(o,"h").concat(l,`
|
|
335
|
+
A`).concat(s,",").concat(s,",0,1,1,").concat(2*l,",").concat(o,`
|
|
336
|
+
H`).concat(Yn,"M").concat(2*l,",").concat(o,`
|
|
337
|
+
A`).concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return D.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(Yn/8,"h").concat(Yn,"v").concat(Yn*3/4,"h").concat(-Yn,"z"),className:"recharts-legend-icon"});if(D.isValidElement(r.legendIcon)){var f=UU({},r);return delete f.legendIcon,D.cloneElement(r.legendIcon,f)}return D.createElement(b_,{fill:u,cx:o,cy:o,size:Yn,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,o=i.payload,s=i.iconSize,l=i.layout,u=i.formatter,f=i.inactiveColor,d={x:0,y:0,width:Yn,height:Yn},h={display:l==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(v,b){var x=v.formatter||u,S=Ne(Vu(Vu({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",v.inactive));if(v.type==="none")return null;var y=Pe(v.value)?null:v.value;vi(!Pe(v.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var _=v.inactive?f:v.color;return D.createElement("li",py({className:S,style:h,key:"legend-item-".concat(b)},Yh(r.props,v,b)),D.createElement(oy,{width:s,height:s,viewBox:d,style:m},r.renderIcon(v)),D.createElement("span",{className:"recharts-legend-item-text",style:{color:_}},x?x(y,v,b):y))})}},{key:"render",value:function(){var r=this.props,i=r.payload,o=r.layout,s=r.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?s:"left"};return D.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(j.PureComponent);Vu(w_,"displayName","Legend");Vu(w_,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var QU=bp;function JU(){this.__data__=new QU,this.size=0}var e9=JU;function t9(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var n9=t9;function r9(e){return this.__data__.get(e)}var i9=r9;function o9(e){return this.__data__.has(e)}var a9=o9,s9=bp,l9=u_,u9=c_,c9=200;function f9(e,t){var n=this.__data__;if(n instanceof s9){var r=n.__data__;if(!l9||r.length<c9-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new u9(r)}return n.set(e,t),this.size=n.size,this}var h9=f9,d9=bp,p9=e9,m9=n9,v9=i9,g9=a9,y9=h9;function Js(e){var t=this.__data__=new d9(e);this.size=t.size}Js.prototype.clear=p9;Js.prototype.delete=m9;Js.prototype.get=v9;Js.prototype.has=g9;Js.prototype.set=y9;var fC=Js,x9="__lodash_hash_undefined__";function _9(e){return this.__data__.set(e,x9),this}var b9=_9;function w9(e){return this.__data__.has(e)}var S9=w9,P9=c_,O9=b9,T9=S9;function id(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new P9;++t<n;)this.add(e[t])}id.prototype.add=id.prototype.push=O9;id.prototype.has=T9;var hC=id;function A9(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var dC=A9;function E9(e,t){return e.has(t)}var pC=E9,k9=hC,M9=dC,C9=pC,j9=1,$9=2;function N9(e,t,n,r,i,o){var s=n&j9,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var f=o.get(e),d=o.get(t);if(f&&d)return f==t&&d==e;var h=-1,m=!0,v=n&$9?new k9:void 0;for(o.set(e,t),o.set(t,e);++h<l;){var b=e[h],x=t[h];if(r)var S=s?r(x,b,h,t,e,o):r(b,x,h,e,t,o);if(S!==void 0){if(S)continue;m=!1;break}if(v){if(!M9(t,function(y,_){if(!C9(v,_)&&(b===y||i(b,y,n,r,o)))return v.push(_)})){m=!1;break}}else if(!(b===x||i(b,x,n,r,o))){m=!1;break}}return o.delete(e),o.delete(t),m}var mC=N9,L9=Kr,I9=L9.Uint8Array,D9=I9;function R9(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var z9=R9;function B9(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var S_=B9,eP=jc,tP=D9,F9=l_,V9=mC,U9=z9,W9=S_,H9=1,Z9=2,G9="[object Boolean]",K9="[object Date]",q9="[object Error]",X9="[object Map]",Y9="[object Number]",Q9="[object RegExp]",J9="[object Set]",eW="[object String]",tW="[object Symbol]",nW="[object ArrayBuffer]",rW="[object DataView]",nP=eP?eP.prototype:void 0,gv=nP?nP.valueOf:void 0;function iW(e,t,n,r,i,o,s){switch(n){case rW:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case nW:return!(e.byteLength!=t.byteLength||!o(new tP(e),new tP(t)));case G9:case K9:case Y9:return F9(+e,+t);case q9:return e.name==t.name&&e.message==t.message;case Q9:case eW:return e==t+"";case X9:var l=U9;case J9:var u=r&H9;if(l||(l=W9),e.size!=t.size&&!u)return!1;var f=s.get(e);if(f)return f==t;r|=Z9,s.set(e,t);var d=V9(l(e),l(t),r,i,o,s);return s.delete(e),d;case tW:if(gv)return gv.call(e)==gv.call(t)}return!1}var oW=iW;function aW(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var vC=aW,sW=vC,lW=Tn;function uW(e,t,n){var r=t(e);return lW(e)?r:sW(r,n(e))}var cW=uW;function fW(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}var hW=fW;function dW(){return[]}var pW=dW,mW=hW,vW=pW,gW=Object.prototype,yW=gW.propertyIsEnumerable,rP=Object.getOwnPropertySymbols,xW=rP?function(e){return e==null?[]:(e=Object(e),mW(rP(e),function(t){return yW.call(e,t)}))}:vW,_W=xW;function bW(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var wW=bW,SW=Ei,PW=ki,OW="[object Arguments]";function TW(e){return PW(e)&&SW(e)==OW}var AW=TW,iP=AW,EW=ki,gC=Object.prototype,kW=gC.hasOwnProperty,MW=gC.propertyIsEnumerable,CW=iP(function(){return arguments}())?iP:function(e){return EW(e)&&kW.call(e,"callee")&&!MW.call(e,"callee")},P_=CW,od={exports:{}};function jW(){return!1}var $W=jW;od.exports;(function(e,t){var n=Kr,r=$W,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===i,l=s?n.Buffer:void 0,u=l?l.isBuffer:void 0,f=u||r;e.exports=f})(od,od.exports);var yC=od.exports,NW=9007199254740991,LW=/^(?:0|[1-9]\d*)$/;function IW(e,t){var n=typeof e;return t=t??NW,!!t&&(n=="number"||n!="symbol"&&LW.test(e))&&e>-1&&e%1==0&&e<t}var O_=IW,DW=9007199254740991;function RW(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=DW}var T_=RW,zW=Ei,BW=T_,FW=ki,VW="[object Arguments]",UW="[object Array]",WW="[object Boolean]",HW="[object Date]",ZW="[object Error]",GW="[object Function]",KW="[object Map]",qW="[object Number]",XW="[object Object]",YW="[object RegExp]",QW="[object Set]",JW="[object String]",e7="[object WeakMap]",t7="[object ArrayBuffer]",n7="[object DataView]",r7="[object Float32Array]",i7="[object Float64Array]",o7="[object Int8Array]",a7="[object Int16Array]",s7="[object Int32Array]",l7="[object Uint8Array]",u7="[object Uint8ClampedArray]",c7="[object Uint16Array]",f7="[object Uint32Array]",et={};et[r7]=et[i7]=et[o7]=et[a7]=et[s7]=et[l7]=et[u7]=et[c7]=et[f7]=!0;et[VW]=et[UW]=et[t7]=et[WW]=et[n7]=et[HW]=et[ZW]=et[GW]=et[KW]=et[qW]=et[XW]=et[YW]=et[QW]=et[JW]=et[e7]=!1;function h7(e){return FW(e)&&BW(e.length)&&!!et[zW(e)]}var d7=h7;function p7(e){return function(t){return e(t)}}var xC=p7,ad={exports:{}};ad.exports;(function(e,t){var n=AM,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,s=o&&n.process,l=function(){try{var u=i&&i.require&&i.require("util").types;return u||s&&s.binding&&s.binding("util")}catch{}}();e.exports=l})(ad,ad.exports);var m7=ad.exports,v7=d7,g7=xC,oP=m7,aP=oP&&oP.isTypedArray,y7=aP?g7(aP):v7,_C=y7,x7=wW,_7=P_,b7=Tn,w7=yC,S7=O_,P7=_C,O7=Object.prototype,T7=O7.hasOwnProperty;function A7(e,t){var n=b7(e),r=!n&&_7(e),i=!n&&!r&&w7(e),o=!n&&!r&&!i&&P7(e),s=n||r||i||o,l=s?x7(e.length,String):[],u=l.length;for(var f in e)(t||T7.call(e,f))&&!(s&&(f=="length"||i&&(f=="offset"||f=="parent")||o&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||S7(f,u)))&&l.push(f);return l}var E7=A7,k7=Object.prototype;function M7(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||k7;return e===n}var C7=M7;function j7(e,t){return function(n){return e(t(n))}}var bC=j7,$7=bC,N7=$7(Object.keys,Object),L7=N7,I7=C7,D7=L7,R7=Object.prototype,z7=R7.hasOwnProperty;function B7(e){if(!I7(e))return D7(e);var t=[];for(var n in Object(e))z7.call(e,n)&&n!="constructor"&&t.push(n);return t}var F7=B7,V7=s_,U7=T_;function W7(e){return e!=null&&U7(e.length)&&!V7(e)}var Nc=W7,H7=E7,Z7=F7,G7=Nc;function K7(e){return G7(e)?H7(e):Z7(e)}var Rp=K7,q7=cW,X7=_W,Y7=Rp;function Q7(e){return q7(e,Y7,X7)}var J7=Q7,sP=J7,eH=1,tH=Object.prototype,nH=tH.hasOwnProperty;function rH(e,t,n,r,i,o){var s=n&eH,l=sP(e),u=l.length,f=sP(t),d=f.length;if(u!=d&&!s)return!1;for(var h=u;h--;){var m=l[h];if(!(s?m in t:nH.call(t,m)))return!1}var v=o.get(e),b=o.get(t);if(v&&b)return v==t&&b==e;var x=!0;o.set(e,t),o.set(t,e);for(var S=s;++h<u;){m=l[h];var y=e[m],_=t[m];if(r)var w=s?r(_,y,m,t,e,o):r(y,_,m,e,t,o);if(!(w===void 0?y===_||i(y,_,n,r,o):w)){x=!1;break}S||(S=m=="constructor")}if(x&&!S){var E=e.constructor,P=t.constructor;E!=P&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof P=="function"&&P instanceof P)&&(x=!1)}return o.delete(e),o.delete(t),x}var iH=rH,oH=ha,aH=Kr,sH=oH(aH,"DataView"),lH=sH,uH=ha,cH=Kr,fH=uH(cH,"Promise"),hH=fH,dH=ha,pH=Kr,mH=dH(pH,"Set"),wC=mH,vH=ha,gH=Kr,yH=vH(gH,"WeakMap"),xH=yH,vy=lH,gy=u_,yy=hH,xy=wC,_y=xH,SC=Ei,el=kM,lP="[object Map]",_H="[object Object]",uP="[object Promise]",cP="[object Set]",fP="[object WeakMap]",hP="[object DataView]",bH=el(vy),wH=el(gy),SH=el(yy),PH=el(xy),OH=el(_y),Lo=SC;(vy&&Lo(new vy(new ArrayBuffer(1)))!=hP||gy&&Lo(new gy)!=lP||yy&&Lo(yy.resolve())!=uP||xy&&Lo(new xy)!=cP||_y&&Lo(new _y)!=fP)&&(Lo=function(e){var t=SC(e),n=t==_H?e.constructor:void 0,r=n?el(n):"";if(r)switch(r){case bH:return hP;case wH:return lP;case SH:return uP;case PH:return cP;case OH:return fP}return t});var TH=Lo,yv=fC,AH=mC,EH=oW,kH=iH,dP=TH,pP=Tn,mP=yC,MH=_C,CH=1,vP="[object Arguments]",gP="[object Array]",Wf="[object Object]",jH=Object.prototype,yP=jH.hasOwnProperty;function $H(e,t,n,r,i,o){var s=pP(e),l=pP(t),u=s?gP:dP(e),f=l?gP:dP(t);u=u==vP?Wf:u,f=f==vP?Wf:f;var d=u==Wf,h=f==Wf,m=u==f;if(m&&mP(e)){if(!mP(t))return!1;s=!0,d=!1}if(m&&!d)return o||(o=new yv),s||MH(e)?AH(e,t,n,r,i,o):EH(e,t,u,n,r,i,o);if(!(n&CH)){var v=d&&yP.call(e,"__wrapped__"),b=h&&yP.call(t,"__wrapped__");if(v||b){var x=v?e.value():e,S=b?t.value():t;return o||(o=new yv),i(x,S,n,r,o)}}return m?(o||(o=new yv),kH(e,t,n,r,i,o)):!1}var NH=$H,LH=NH,xP=ki;function PC(e,t,n,r,i){return e===t?!0:e==null||t==null||!xP(e)&&!xP(t)?e!==e&&t!==t:LH(e,t,n,r,PC,i)}var A_=PC,IH=fC,DH=A_,RH=1,zH=2;function BH(e,t,n,r){var i=n.length,o=i,s=!r;if(e==null)return!o;for(e=Object(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){l=n[i];var u=l[0],f=e[u],d=l[1];if(s&&l[2]){if(f===void 0&&!(u in e))return!1}else{var h=new IH;if(r)var m=r(f,d,u,e,t,h);if(!(m===void 0?DH(d,f,RH|zH,r,h):m))return!1}}return!0}var FH=BH,VH=po;function UH(e){return e===e&&!VH(e)}var OC=UH,WH=OC,HH=Rp;function ZH(e){for(var t=HH(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,WH(i)]}return t}var GH=ZH;function KH(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var TC=KH,qH=FH,XH=GH,YH=TC;function QH(e){var t=XH(e);return t.length==1&&t[0][2]?YH(t[0][0],t[0][1]):function(n){return n===e||qH(n,e,t)}}var JH=QH;function eZ(e,t){return e!=null&&t in Object(e)}var tZ=eZ,nZ=NM,rZ=P_,iZ=Tn,oZ=O_,aZ=T_,sZ=Sp;function lZ(e,t,n){t=nZ(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var s=sZ(t[r]);if(!(o=e!=null&&n(e,s)))break;e=e[s]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&aZ(i)&&oZ(s,i)&&(iZ(e)||rZ(e)))}var uZ=lZ,cZ=tZ,fZ=uZ;function hZ(e,t){return e!=null&&fZ(e,t,cZ)}var dZ=hZ,pZ=A_,mZ=LM,vZ=dZ,gZ=a_,yZ=OC,xZ=TC,_Z=Sp,bZ=1,wZ=2;function SZ(e,t){return gZ(e)&&yZ(t)?xZ(_Z(e),t):function(n){var r=mZ(n,e);return r===void 0&&r===t?vZ(n,e):pZ(t,r,bZ|wZ)}}var PZ=SZ;function OZ(e){return e}var tl=OZ;function TZ(e){return function(t){return t==null?void 0:t[e]}}var AZ=TZ,EZ=d_;function kZ(e){return function(t){return EZ(t,e)}}var MZ=kZ,CZ=AZ,jZ=MZ,$Z=a_,NZ=Sp;function LZ(e){return $Z(e)?CZ(NZ(e)):jZ(e)}var IZ=LZ,DZ=JH,RZ=PZ,zZ=tl,BZ=Tn,FZ=IZ;function VZ(e){return typeof e=="function"?e:e==null?zZ:typeof e=="object"?BZ(e)?RZ(e[0],e[1]):DZ(e):FZ(e)}var mo=VZ;function UZ(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var AC=UZ;function WZ(e){return e!==e}var HZ=WZ;function ZZ(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var GZ=ZZ,KZ=AC,qZ=HZ,XZ=GZ;function YZ(e,t,n){return t===t?XZ(e,t,n):KZ(e,qZ,n)}var QZ=YZ,JZ=QZ;function eG(e,t){var n=e==null?0:e.length;return!!n&&JZ(e,t,0)>-1}var tG=eG;function nG(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var rG=nG;function iG(){}var oG=iG,xv=wC,aG=oG,sG=S_,lG=1/0,uG=xv&&1/sG(new xv([,-0]))[1]==lG?function(e){return new xv(e)}:aG,cG=uG,fG=hC,hG=tG,dG=rG,pG=pC,mG=cG,vG=S_,gG=200;function yG(e,t,n){var r=-1,i=hG,o=e.length,s=!0,l=[],u=l;if(n)s=!1,i=dG;else if(o>=gG){var f=t?null:mG(e);if(f)return vG(f);s=!1,i=pG,u=new fG}else u=t?[]:l;e:for(;++r<o;){var d=e[r],h=t?t(d):d;if(d=n||d!==0?d:0,s&&h===h){for(var m=u.length;m--;)if(u[m]===h)continue e;t&&u.push(h),l.push(d)}else i(u,h,n)||(u!==l&&u.push(h),l.push(d))}return l}var xG=yG,_G=mo,bG=xG;function wG(e,t){return e&&e.length?bG(e,_G(t)):[]}var SG=wG;const _P=Ze(SG);function EC(e,t,n){return t===!0?_P(e,n):Pe(t)?_P(e,t):e}function xs(e){"@babel/helpers - typeof";return xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xs(e)}var PG=["ref"];function bP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ni(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bP(Object(n),!0).forEach(function(r){zp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,MC(r.key),r)}}function TG(e,t,n){return t&&wP(e.prototype,t),n&&wP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function AG(e,t,n){return t=sd(t),EG(e,kC()?Reflect.construct(t,n||[],sd(e).constructor):t.apply(e,n))}function EG(e,t){if(t&&(xs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kG(e)}function kG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kC=function(){return!!e})()}function sd(e){return sd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sd(e)}function MG(e,t){if(typeof t!="function"&&t!==null)throw new 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&&by(e,t)}function by(e,t){return by=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},by(e,t)}function zp(e,t,n){return t=MC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MC(e){var t=CG(e,"string");return xs(t)=="symbol"?t:t+""}function CG(e,t){if(xs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function jG(e,t){if(e==null)return{};var n=$G(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $G(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function NG(e){return e.value}function LG(e,t){if(D.isValidElement(e))return D.cloneElement(e,t);if(typeof e=="function")return D.createElement(e,t);t.ref;var n=jG(t,PG);return D.createElement(w_,n)}var SP=1,is=function(e){function t(){var n;OG(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=AG(this,t,[].concat(i)),zp(n,"lastBoundingBox",{width:-1,height:-1}),n}return MG(t,e),TG(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>SP||Math.abs(i.height-this.lastBoundingBox.height)>SP)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?ni({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,o=i.layout,s=i.align,l=i.verticalAlign,u=i.margin,f=i.chartWidth,d=i.chartHeight,h,m;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(s==="center"&&o==="vertical"){var v=this.getBBoxSnapshot();h={left:((f||0)-v.width)/2}}else h=s==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var b=this.getBBoxSnapshot();m={top:((d||0)-b.height)/2}}else m=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return ni(ni({},h),m)}},{key:"render",value:function(){var r=this,i=this.props,o=i.content,s=i.width,l=i.height,u=i.wrapperStyle,f=i.payloadUniqBy,d=i.payload,h=ni(ni({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return D.createElement("div",{className:"recharts-legend-wrapper",style:h,ref:function(v){r.wrapperNode=v}},LG(o,ni(ni({},this.props),{},{payload:EC(d,f,NG)})))}}],[{key:"getWithHeight",value:function(r,i){var o=ni(ni({},this.defaultProps),r.props),s=o.layout;return s==="vertical"&&ie(r.props.height)?{height:r.props.height}:s==="horizontal"?{width:r.props.width||i}:null}}])}(j.PureComponent);zp(is,"displayName","Legend");zp(is,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var PP=jc,IG=P_,DG=Tn,OP=PP?PP.isConcatSpreadable:void 0;function RG(e){return DG(e)||IG(e)||!!(OP&&e&&e[OP])}var zG=RG,BG=vC,FG=zG;function CC(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=FG),i||(i=[]);++o<s;){var l=e[o];t>0&&n(l)?t>1?CC(l,t-1,n,r,i):BG(i,l):r||(i[i.length]=l)}return i}var jC=CC;function VG(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),l=s.length;l--;){var u=s[e?l:++i];if(n(o[u],u,o)===!1)break}return t}}var UG=VG,WG=UG,HG=WG(),ZG=HG,GG=ZG,KG=Rp;function qG(e,t){return e&&GG(e,t,KG)}var $C=qG,XG=Nc;function YG(e,t){return function(n,r){if(n==null)return n;if(!XG(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=Object(n);(t?o--:++o<i)&&r(s[o],o,s)!==!1;);return n}}var QG=YG,JG=$C,eK=QG,tK=eK(JG),E_=tK,nK=E_,rK=Nc;function iK(e,t){var n=-1,r=rK(e)?Array(e.length):[];return nK(e,function(i,o,s){r[++n]=t(i,o,s)}),r}var NC=iK;function oK(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var aK=oK,TP=Gs;function sK(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=TP(e),s=t!==void 0,l=t===null,u=t===t,f=TP(t);if(!l&&!f&&!o&&e>t||o&&s&&u&&!l&&!f||r&&s&&u||!n&&u||!i)return 1;if(!r&&!o&&!f&&e<t||f&&n&&i&&!r&&!o||l&&n&&i||!s&&i||!u)return-1}return 0}var lK=sK,uK=lK;function cK(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,s=i.length,l=n.length;++r<s;){var u=uK(i[r],o[r]);if(u){if(r>=l)return u;var f=n[r];return u*(f=="desc"?-1:1)}}return e.index-t.index}var fK=cK,_v=h_,hK=d_,dK=mo,pK=NC,mK=aK,vK=xC,gK=fK,yK=tl,xK=Tn;function _K(e,t,n){t.length?t=_v(t,function(o){return xK(o)?function(s){return hK(s,o.length===1?o[0]:o)}:o}):t=[yK];var r=-1;t=_v(t,vK(dK));var i=pK(e,function(o,s,l){var u=_v(t,function(f){return f(o)});return{criteria:u,index:++r,value:o}});return mK(i,function(o,s){return gK(o,s,n)})}var bK=_K;function wK(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var SK=wK,PK=SK,AP=Math.max;function OK(e,t,n){return t=AP(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=AP(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=r[i];return l[t]=n(s),PK(e,this,l)}}var TK=OK;function AK(e){return function(){return e}}var EK=AK,kK=ha,MK=function(){try{var e=kK(Object,"defineProperty");return e({},"",{}),e}catch{}}(),LC=MK,CK=EK,EP=LC,jK=tl,$K=EP?function(e,t){return EP(e,"toString",{configurable:!0,enumerable:!1,value:CK(t),writable:!0})}:jK,NK=$K,LK=800,IK=16,DK=Date.now;function RK(e){var t=0,n=0;return function(){var r=DK(),i=IK-(r-n);if(n=r,i>0){if(++t>=LK)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var zK=RK,BK=NK,FK=zK,VK=FK(BK),UK=VK,WK=tl,HK=TK,ZK=UK;function GK(e,t){return ZK(HK(e,t,WK),e+"")}var KK=GK,qK=l_,XK=Nc,YK=O_,QK=po;function JK(e,t,n){if(!QK(n))return!1;var r=typeof t;return(r=="number"?XK(n)&&YK(t,n.length):r=="string"&&t in n)?qK(n[t],e):!1}var Bp=JK,eq=jC,tq=bK,nq=KK,kP=Bp,rq=nq(function(e,t){if(e==null)return[];var n=t.length;return n>1&&kP(e,t[0],t[1])?t=[]:n>2&&kP(t[0],t[1],t[2])&&(t=[t[0]]),tq(e,eq(t,1),[])}),iq=rq;const k_=Ze(iq);function Uu(e){"@babel/helpers - typeof";return Uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uu(e)}function wy(){return wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wy.apply(this,arguments)}function oq(e,t){return uq(e)||lq(e,t)||sq(e,t)||aq()}function aq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
338
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sq(e,t){if(e){if(typeof e=="string")return MP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MP(e,t)}}function MP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function uq(e){if(Array.isArray(e))return e}function CP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CP(Object(n),!0).forEach(function(r){cq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cq(e,t,n){return t=fq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fq(e){var t=hq(e,"string");return Uu(t)=="symbol"?t:t+""}function hq(e,t){if(Uu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dq(e){return Array.isArray(e)&&Ct(e[0])&&Ct(e[1])?e.join(" ~ "):e}var pq=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,o=i===void 0?{}:i,s=t.itemStyle,l=s===void 0?{}:s,u=t.labelStyle,f=u===void 0?{}:u,d=t.payload,h=t.formatter,m=t.itemSorter,v=t.wrapperClassName,b=t.labelClassName,x=t.label,S=t.labelFormatter,y=t.accessibilityLayer,_=y===void 0?!1:y,w=function(){if(d&&d.length){var R={padding:0,margin:0},K=(m?k_(d,m):d).map(function(H,W){if(H.type==="none")return null;var Z=bv({display:"block",paddingTop:4,paddingBottom:4,color:H.color||"#000"},l),G=H.formatter||h||dq,$=H.value,q=H.name,V=$,te=q;if(G&&V!=null&&te!=null){var Q=G($,q,H,W,d);if(Array.isArray(Q)){var ae=oq(Q,2);V=ae[0],te=ae[1]}else V=Q}return D.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(W),style:Z},Ct(te)?D.createElement("span",{className:"recharts-tooltip-item-name"},te):null,Ct(te)?D.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,D.createElement("span",{className:"recharts-tooltip-item-value"},V),D.createElement("span",{className:"recharts-tooltip-item-unit"},H.unit||""))});return D.createElement("ul",{className:"recharts-tooltip-item-list",style:R},K)}return null},E=bv({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),P=bv({margin:0},f),A=!Me(x),M=A?x:"",C=Ne("recharts-default-tooltip",v),N=Ne("recharts-tooltip-label",b);A&&S&&d!==void 0&&d!==null&&(M=S(x,d));var B=_?{role:"status","aria-live":"assertive"}:{};return D.createElement("div",wy({className:C,style:E},B),D.createElement("p",{className:N,style:P},D.isValidElement(M)?M:"".concat(M)),w())};function Wu(e){"@babel/helpers - typeof";return Wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wu(e)}function Hf(e,t,n){return t=mq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mq(e){var t=vq(e,"string");return Wu(t)=="symbol"?t:t+""}function vq(e,t){if(Wu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $l="recharts-tooltip-wrapper",gq={visibility:"hidden"};function yq(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Ne($l,Hf(Hf(Hf(Hf({},"".concat($l,"-right"),ie(n)&&t&&ie(t.x)&&n>=t.x),"".concat($l,"-left"),ie(n)&&t&&ie(t.x)&&n<t.x),"".concat($l,"-bottom"),ie(r)&&t&&ie(t.y)&&r>=t.y),"".concat($l,"-top"),ie(r)&&t&&ie(t.y)&&r<t.y))}function jP(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,o=e.position,s=e.reverseDirection,l=e.tooltipDimension,u=e.viewBox,f=e.viewBoxDimension;if(o&&ie(o[r]))return o[r];var d=n[r]-l-i,h=n[r]+i;if(t[r])return s[r]?d:h;if(s[r]){var m=d,v=u[r];return m<v?Math.max(h,u[r]):Math.max(d,u[r])}var b=h+l,x=u[r]+f;return b>x?Math.max(d,u[r]):Math.max(h,u[r])}function xq(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function _q(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,o=e.reverseDirection,s=e.tooltipBox,l=e.useTranslate3d,u=e.viewBox,f,d,h;return s.height>0&&s.width>0&&n?(d=jP({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:s.width,viewBox:u,viewBoxDimension:u.width}),h=jP({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:s.height,viewBox:u,viewBoxDimension:u.height}),f=xq({translateX:d,translateY:h,useTranslate3d:l})):f=gq,{cssProperties:f,cssClasses:yq({translateX:d,translateY:h,coordinate:n})}}function _s(e){"@babel/helpers - typeof";return _s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_s(e)}function $P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function NP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$P(Object(n),!0).forEach(function(r){Py(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$P(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,DC(r.key),r)}}function Sq(e,t,n){return t&&wq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pq(e,t,n){return t=ld(t),Oq(e,IC()?Reflect.construct(t,n||[],ld(e).constructor):t.apply(e,n))}function Oq(e,t){if(t&&(_s(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tq(e)}function Tq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IC=function(){return!!e})()}function ld(e){return ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ld(e)}function Aq(e,t){if(typeof t!="function"&&t!==null)throw new 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&&Sy(e,t)}function Sy(e,t){return Sy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Sy(e,t)}function Py(e,t,n){return t=DC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DC(e){var t=Eq(e,"string");return _s(t)=="symbol"?t:t+""}function Eq(e,t){if(_s(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var LP=1,kq=function(e){function t(){var n;bq(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Pq(this,t,[].concat(i)),Py(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Py(n,"handleKeyDown",function(s){if(s.key==="Escape"){var l,u,f,d;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(u=n.props.coordinate)===null||u===void 0?void 0:u.x)!==null&&l!==void 0?l:0,y:(f=(d=n.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&f!==void 0?f:0}})}}),n}return Aq(t,e),Sq(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>LP||Math.abs(r.height-this.state.lastBoundingBox.height)>LP)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,o=i.active,s=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,f=i.children,d=i.coordinate,h=i.hasPayload,m=i.isAnimationActive,v=i.offset,b=i.position,x=i.reverseDirection,S=i.useTranslate3d,y=i.viewBox,_=i.wrapperStyle,w=_q({allowEscapeViewBox:s,coordinate:d,offsetTopLeft:v,position:b,reverseDirection:x,tooltipBox:this.state.lastBoundingBox,useTranslate3d:S,viewBox:y}),E=w.cssClasses,P=w.cssProperties,A=NP(NP({transition:m&&o?"transform ".concat(l,"ms ").concat(u):void 0},P),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&h?"visible":"hidden",position:"absolute",top:0,left:0},_);return D.createElement("div",{tabIndex:-1,className:E,style:A,ref:function(C){r.wrapperNode=C}},f)}}])}(j.PureComponent),Mq=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},nl={isSsr:Mq()};function bs(e){"@babel/helpers - typeof";return bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bs(e)}function IP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function DP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IP(Object(n),!0).forEach(function(r){M_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zC(r.key),r)}}function $q(e,t,n){return t&&jq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nq(e,t,n){return t=ud(t),Lq(e,RC()?Reflect.construct(t,n||[],ud(e).constructor):t.apply(e,n))}function Lq(e,t){if(t&&(bs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Iq(e)}function Iq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RC=function(){return!!e})()}function ud(e){return ud=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ud(e)}function Dq(e,t){if(typeof t!="function"&&t!==null)throw new 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&&Oy(e,t)}function Oy(e,t){return Oy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Oy(e,t)}function M_(e,t,n){return t=zC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zC(e){var t=Rq(e,"string");return bs(t)=="symbol"?t:t+""}function Rq(e,t){if(bs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function zq(e){return e.dataKey}function Bq(e,t){return D.isValidElement(e)?D.cloneElement(e,t):typeof e=="function"?D.createElement(e,t):D.createElement(pq,t)}var ii=function(e){function t(){return Cq(this,t),Nq(this,t,arguments)}return Dq(t,e),$q(t,[{key:"render",value:function(){var r=this,i=this.props,o=i.active,s=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,f=i.content,d=i.coordinate,h=i.filterNull,m=i.isAnimationActive,v=i.offset,b=i.payload,x=i.payloadUniqBy,S=i.position,y=i.reverseDirection,_=i.useTranslate3d,w=i.viewBox,E=i.wrapperStyle,P=b??[];h&&P.length&&(P=EC(b.filter(function(M){return M.value!=null&&(M.hide!==!0||r.props.includeHidden)}),x,zq));var A=P.length>0;return D.createElement(kq,{allowEscapeViewBox:s,animationDuration:l,animationEasing:u,isAnimationActive:m,active:o,coordinate:d,hasPayload:A,offset:v,position:S,reverseDirection:y,useTranslate3d:_,viewBox:w,wrapperStyle:E},Bq(f,DP(DP({},this.props),{},{payload:P})))}}])}(j.PureComponent);M_(ii,"displayName","Tooltip");M_(ii,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!nl.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 Fq=Kr,Vq=function(){return Fq.Date.now()},Uq=Vq,Wq=/\s/;function Hq(e){for(var t=e.length;t--&&Wq.test(e.charAt(t)););return t}var Zq=Hq,Gq=Zq,Kq=/^\s+/;function qq(e){return e&&e.slice(0,Gq(e)+1).replace(Kq,"")}var Xq=qq,Yq=Xq,RP=po,Qq=Gs,zP=NaN,Jq=/^[-+]0x[0-9a-f]+$/i,eX=/^0b[01]+$/i,tX=/^0o[0-7]+$/i,nX=parseInt;function rX(e){if(typeof e=="number")return e;if(Qq(e))return zP;if(RP(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=RP(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Yq(e);var n=eX.test(e);return n||tX.test(e)?nX(e.slice(2),n?2:8):Jq.test(e)?zP:+e}var BC=rX,iX=po,wv=Uq,BP=BC,oX="Expected a function",aX=Math.max,sX=Math.min;function lX(e,t,n){var r,i,o,s,l,u,f=0,d=!1,h=!1,m=!0;if(typeof e!="function")throw new TypeError(oX);t=BP(t)||0,iX(n)&&(d=!!n.leading,h="maxWait"in n,o=h?aX(BP(n.maxWait)||0,t):o,m="trailing"in n?!!n.trailing:m);function v(A){var M=r,C=i;return r=i=void 0,f=A,s=e.apply(C,M),s}function b(A){return f=A,l=setTimeout(y,t),d?v(A):s}function x(A){var M=A-u,C=A-f,N=t-M;return h?sX(N,o-C):N}function S(A){var M=A-u,C=A-f;return u===void 0||M>=t||M<0||h&&C>=o}function y(){var A=wv();if(S(A))return _(A);l=setTimeout(y,x(A))}function _(A){return l=void 0,m&&r?v(A):(r=i=void 0,s)}function w(){l!==void 0&&clearTimeout(l),f=0,r=u=i=l=void 0}function E(){return l===void 0?s:_(wv())}function P(){var A=wv(),M=S(A);if(r=arguments,i=this,u=A,M){if(l===void 0)return b(u);if(h)return clearTimeout(l),l=setTimeout(y,t),v(u)}return l===void 0&&(l=setTimeout(y,t)),s}return P.cancel=w,P.flush=E,P}var uX=lX,cX=uX,fX=po,hX="Expected a function";function dX(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(hX);return fX(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),cX(e,t,{leading:r,maxWait:t,trailing:i})}var pX=dX;const FC=Ze(pX);function Hu(e){"@babel/helpers - typeof";return Hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hu(e)}function FP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FP(Object(n),!0).forEach(function(r){mX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mX(e,t,n){return t=vX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vX(e){var t=gX(e,"string");return Hu(t)=="symbol"?t:t+""}function gX(e,t){if(Hu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yX(e,t){return wX(e)||bX(e,t)||_X(e,t)||xX()}function xX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
339
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _X(e,t){if(e){if(typeof e=="string")return VP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VP(e,t)}}function VP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function wX(e){if(Array.isArray(e))return e}var UP=j.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,o=e.width,s=o===void 0?"100%":o,l=e.height,u=l===void 0?"100%":l,f=e.minWidth,d=f===void 0?0:f,h=e.minHeight,m=e.maxHeight,v=e.children,b=e.debounce,x=b===void 0?0:b,S=e.id,y=e.className,_=e.onResize,w=e.style,E=w===void 0?{}:w,P=j.useRef(null),A=j.useRef();A.current=_,j.useImperativeHandle(t,function(){return Object.defineProperty(P.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),P.current},configurable:!0})});var M=j.useState({containerWidth:i.width,containerHeight:i.height}),C=yX(M,2),N=C[0],B=C[1],z=j.useCallback(function(K,H){B(function(W){var Z=Math.round(K),G=Math.round(H);return W.containerWidth===Z&&W.containerHeight===G?W:{containerWidth:Z,containerHeight:G}})},[]);j.useEffect(function(){var K=function(q){var V,te=q[0].contentRect,Q=te.width,ae=te.height;z(Q,ae),(V=A.current)===null||V===void 0||V.call(A,Q,ae)};x>0&&(K=FC(K,x,{trailing:!0,leading:!1}));var H=new ResizeObserver(K),W=P.current.getBoundingClientRect(),Z=W.width,G=W.height;return z(Z,G),H.observe(P.current),function(){H.disconnect()}},[z,x]);var R=j.useMemo(function(){var K=N.containerWidth,H=N.containerHeight;if(K<0||H<0)return null;vi(Vo(s)||Vo(u),`The width(%s) and height(%s) are both fixed numbers,
|
|
340
|
+
maybe you don't need to use a ResponsiveContainer.`,s,u),vi(!n||n>0,"The aspect(%s) must be greater than zero.",n);var W=Vo(s)?K:s,Z=Vo(u)?H:u;n&&n>0&&(W?Z=W/n:Z&&(W=Z*n),m&&Z>m&&(Z=m)),vi(W>0||Z>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
341
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
342
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
343
|
+
height and width.`,W,Z,s,u,d,h,n);var G=!Array.isArray(v)&&mi(v.type).endsWith("Chart");return D.Children.map(v,function($){return D.isValidElement($)?j.cloneElement($,Zf({width:W,height:Z},G?{style:Zf({height:"100%",width:"100%",maxHeight:Z,maxWidth:W},$.props.style)}:{})):$})},[n,v,u,m,h,d,N,s]);return D.createElement("div",{id:S?"".concat(S):void 0,className:Ne("recharts-responsive-container",y),style:Zf(Zf({},E),{},{width:s,height:u,minWidth:d,minHeight:h,maxHeight:m}),ref:P},R)}),C_=function(t){return null};C_.displayName="Cell";function Zu(e){"@babel/helpers - typeof";return Zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zu(e)}function WP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ty(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WP(Object(n),!0).forEach(function(r){SX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SX(e,t,n){return t=PX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PX(e){var t=OX(e,"string");return Zu(t)=="symbol"?t:t+""}function OX(e,t){if(Zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ea={widthCache:{},cacheCount:0},TX=2e3,AX={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},HP="recharts_measurement_span";function EX(e){var t=Ty({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var pu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||nl.isSsr)return{width:0,height:0};var r=EX(n),i=JSON.stringify({text:t,copyStyle:r});if(Ea.widthCache[i])return Ea.widthCache[i];try{var o=document.getElementById(HP);o||(o=document.createElement("span"),o.setAttribute("id",HP),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var s=Ty(Ty({},AX),r);Object.assign(o.style,s),o.textContent="".concat(t);var l=o.getBoundingClientRect(),u={width:l.width,height:l.height};return Ea.widthCache[i]=u,++Ea.cacheCount>TX&&(Ea.cacheCount=0,Ea.widthCache={}),u}catch{return{width:0,height:0}}},kX=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Gu(e){"@babel/helpers - typeof";return Gu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gu(e)}function cd(e,t){return $X(e)||jX(e,t)||CX(e,t)||MX()}function MX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
344
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CX(e,t){if(e){if(typeof e=="string")return ZP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZP(e,t)}}function ZP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function $X(e){if(Array.isArray(e))return e}function NX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,IX(r.key),r)}}function LX(e,t,n){return t&&GP(e.prototype,t),n&&GP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function IX(e){var t=DX(e,"string");return Gu(t)=="symbol"?t:t+""}function DX(e,t){if(Gu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var KP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,qP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,RX=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,zX=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,VC={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},BX=Object.keys(VC),Ka="NaN";function FX(e,t){return e*VC[t]}var Gf=function(){function e(t,n){NX(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!RX.test(n)&&(this.num=NaN,this.unit=""),BX.includes(n)&&(this.num=FX(t,n),this.unit="px")}return LX(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,i=(r=zX.exec(n))!==null&&r!==void 0?r:[],o=cd(i,3),s=o[1],l=o[2];return new e(parseFloat(s),l??"")}}])}();function UC(e){if(e.includes(Ka))return Ka;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=KP.exec(t))!==null&&n!==void 0?n:[],i=cd(r,4),o=i[1],s=i[2],l=i[3],u=Gf.parse(o??""),f=Gf.parse(l??""),d=s==="*"?u.multiply(f):u.divide(f);if(d.isNaN())return Ka;t=t.replace(KP,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,m=(h=qP.exec(t))!==null&&h!==void 0?h:[],v=cd(m,4),b=v[1],x=v[2],S=v[3],y=Gf.parse(b??""),_=Gf.parse(S??""),w=x==="+"?y.add(_):y.subtract(_);if(w.isNaN())return Ka;t=t.replace(qP,w.toString())}return t}var XP=/\(([^()]*)\)/;function VX(e){for(var t=e;t.includes("(");){var n=XP.exec(t),r=cd(n,2),i=r[1];t=t.replace(XP,UC(i))}return t}function UX(e){var t=e.replace(/\s+/g,"");return t=VX(t),t=UC(t),t}function WX(e){try{return UX(e)}catch{return Ka}}function Sv(e){var t=WX(e.slice(5,-1));return t===Ka?"":t}var HX=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],ZX=["dx","dy","angle","className","breakAll"];function Ay(){return Ay=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ay.apply(this,arguments)}function YP(e,t){if(e==null)return{};var n=GX(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function GX(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function QP(e,t){return YX(e)||XX(e,t)||qX(e,t)||KX()}function KX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
345
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qX(e,t){if(e){if(typeof e=="string")return JP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JP(e,t)}}function JP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function YX(e){if(Array.isArray(e))return e}var WC=/[ \f\n\r\t\v\u2028\u2029]+/,HC=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var o=[];Me(n)||(r?o=n.toString().split(""):o=n.toString().split(WC));var s=o.map(function(u){return{word:u,width:pu(u,i).width}}),l=r?0:pu(" ",i).width;return{wordsWithComputedWidth:s,spaceWidth:l}}catch{return null}},QX=function(t,n,r,i,o){var s=t.maxLines,l=t.children,u=t.style,f=t.breakAll,d=ie(s),h=l,m=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return W.reduce(function(Z,G){var $=G.word,q=G.width,V=Z[Z.length-1];if(V&&(i==null||o||V.width+q+r<Number(i)))V.words.push($),V.width+=q+r;else{var te={words:[$],width:q};Z.push(te)}return Z},[])},v=m(n),b=function(W){return W.reduce(function(Z,G){return Z.width>G.width?Z:G})};if(!d)return v;for(var x="…",S=function(W){var Z=h.slice(0,W),G=HC({breakAll:f,style:u,children:Z+x}).wordsWithComputedWidth,$=m(G),q=$.length>s||b($).width>Number(i);return[q,$]},y=0,_=h.length-1,w=0,E;y<=_&&w<=h.length-1;){var P=Math.floor((y+_)/2),A=P-1,M=S(A),C=QP(M,2),N=C[0],B=C[1],z=S(P),R=QP(z,1),K=R[0];if(!N&&!K&&(y=P+1),N&&K&&(_=P-1),!N&&K){E=B;break}w++}return E||v},eO=function(t){var n=Me(t)?[]:t.toString().split(WC);return[{words:n}]},JX=function(t){var n=t.width,r=t.scaleToFit,i=t.children,o=t.style,s=t.breakAll,l=t.maxLines;if((n||r)&&!nl.isSsr){var u,f,d=HC({breakAll:s,children:i,style:o});if(d){var h=d.wordsWithComputedWidth,m=d.spaceWidth;u=h,f=m}else return eO(i);return QX({breakAll:s,children:i,maxLines:l,style:o},u,f,n,r)}return eO(i)},tO="#808080",fd=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,s=t.lineHeight,l=s===void 0?"1em":s,u=t.capHeight,f=u===void 0?"0.71em":u,d=t.scaleToFit,h=d===void 0?!1:d,m=t.textAnchor,v=m===void 0?"start":m,b=t.verticalAnchor,x=b===void 0?"end":b,S=t.fill,y=S===void 0?tO:S,_=YP(t,HX),w=j.useMemo(function(){return JX({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:h,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,h,_.style,_.width]),E=_.dx,P=_.dy,A=_.angle,M=_.className,C=_.breakAll,N=YP(_,ZX);if(!Ct(r)||!Ct(o))return null;var B=r+(ie(E)?E:0),z=o+(ie(P)?P:0),R;switch(x){case"start":R=Sv("calc(".concat(f,")"));break;case"middle":R=Sv("calc(".concat((w.length-1)/2," * -").concat(l," + (").concat(f," / 2))"));break;default:R=Sv("calc(".concat(w.length-1," * -").concat(l,")"));break}var K=[];if(h){var H=w[0].width,W=_.width;K.push("scale(".concat((ie(W)?W/H:1)/H,")"))}return A&&K.push("rotate(".concat(A,", ").concat(B,", ").concat(z,")")),K.length&&(N.transform=K.join(" ")),D.createElement("text",Ay({},Ee(N,!0),{x:B,y:z,className:Ne("recharts-text",M),textAnchor:v,fill:y.includes("url")?tO:y}),w.map(function(Z,G){var $=Z.words.join(C?"":" ");return D.createElement("tspan",{x:B,dy:G===0?R:l,key:"".concat($,"-").concat(G)},$)}))};function io(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function eY(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function j_(e){let t,n,r;e.length!==2?(t=io,n=(l,u)=>io(e(l),u),r=(l,u)=>e(l)-u):(t=e===io||e===eY?e:tY,n=e,r=e);function i(l,u,f=0,d=l.length){if(f<d){if(t(u,u)!==0)return d;do{const h=f+d>>>1;n(l[h],u)<0?f=h+1:d=h}while(f<d)}return f}function o(l,u,f=0,d=l.length){if(f<d){if(t(u,u)!==0)return d;do{const h=f+d>>>1;n(l[h],u)<=0?f=h+1:d=h}while(f<d)}return f}function s(l,u,f=0,d=l.length){const h=i(l,u,f,d-1);return h>f&&r(l[h-1],u)>-r(l[h],u)?h-1:h}return{left:i,center:s,right:o}}function tY(){return 0}function ZC(e){return e===null?NaN:+e}function*nY(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const rY=j_(io),Lc=rY.right;j_(ZC).center;class nO extends Map{constructor(t,n=aY){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(rO(this,t))}has(t){return super.has(rO(this,t))}set(t,n){return super.set(iY(this,t),n)}delete(t){return super.delete(oY(this,t))}}function rO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function iY({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function oY({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function aY(e){return e!==null&&typeof e=="object"?e.valueOf():e}function sY(e=io){if(e===io)return GC;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function GC(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const lY=Math.sqrt(50),uY=Math.sqrt(10),cY=Math.sqrt(2);function hd(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=lY?10:o>=uY?5:o>=cY?2:1;let l,u,f;return i<0?(f=Math.pow(10,-i)/s,l=Math.round(e*f),u=Math.round(t*f),l/f<e&&++l,u/f>t&&--u,f=-f):(f=Math.pow(10,i)*s,l=Math.round(e/f),u=Math.round(t/f),l*f<e&&++l,u*f>t&&--u),u<l&&.5<=n&&n<2?hd(e,t,n*2):[l,u,f]}function Ey(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,s]=r?hd(t,e,n):hd(e,t,n);if(!(o>=i))return[];const l=o-i+1,u=new Array(l);if(r)if(s<0)for(let f=0;f<l;++f)u[f]=(o-f)/-s;else for(let f=0;f<l;++f)u[f]=(o-f)*s;else if(s<0)for(let f=0;f<l;++f)u[f]=(i+f)/-s;else for(let f=0;f<l;++f)u[f]=(i+f)*s;return u}function ky(e,t,n){return t=+t,e=+e,n=+n,hd(e,t,n)[2]}function My(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?ky(t,e,n):ky(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function iO(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function oO(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function KC(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?GC:sY(i);r>n;){if(r-n>600){const u=r-n+1,f=t-n+1,d=Math.log(u),h=.5*Math.exp(2*d/3),m=.5*Math.sqrt(d*h*(u-h)/u)*(f-u/2<0?-1:1),v=Math.max(n,Math.floor(t-f*h/u+m)),b=Math.min(r,Math.floor(t+(u-f)*h/u+m));KC(e,t,v,b,i)}const o=e[t];let s=n,l=r;for(Nl(e,n,t),i(e[r],o)>0&&Nl(e,n,r);s<l;){for(Nl(e,s,l),++s,--l;i(e[s],o)<0;)++s;for(;i(e[l],o)>0;)--l}i(e[n],o)===0?Nl(e,n,l):(++l,Nl(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Nl(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function fY(e,t,n){if(e=Float64Array.from(nY(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return oO(e);if(t>=1)return iO(e);var r,i=(r-1)*t,o=Math.floor(i),s=iO(KC(e,o).subarray(0,o+1)),l=oO(e.subarray(o+1));return s+(l-s)*(i-o)}}function hY(e,t,n=ZC){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),s=+n(e[o],o,e),l=+n(e[o+1],o+1,e);return s+(l-s)*(i-o)}}function dY(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function fr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Mi(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Cy=Symbol("implicit");function $_(){var e=new nO,t=[],n=[],r=Cy;function i(o){let s=e.get(o);if(s===void 0){if(r!==Cy)return r;e.set(o,s=t.push(o)-1)}return n[s%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new nO;for(const s of o)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return $_(t,n).unknown(r)},fr.apply(i,arguments),i}function Ku(){var e=$_().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,s,l=!1,u=0,f=0,d=.5;delete e.unknown;function h(){var m=t().length,v=i<r,b=v?i:r,x=v?r:i;o=(x-b)/Math.max(1,m-u+f*2),l&&(o=Math.floor(o)),b+=(x-b-o*(m-u))*d,s=o*(1-u),l&&(b=Math.round(b),s=Math.round(s));var S=dY(m).map(function(y){return b+o*y});return n(v?S.reverse():S)}return e.domain=function(m){return arguments.length?(t(m),h()):t()},e.range=function(m){return arguments.length?([r,i]=m,r=+r,i=+i,h()):[r,i]},e.rangeRound=function(m){return[r,i]=m,r=+r,i=+i,l=!0,h()},e.bandwidth=function(){return s},e.step=function(){return o},e.round=function(m){return arguments.length?(l=!!m,h()):l},e.padding=function(m){return arguments.length?(u=Math.min(1,f=+m),h()):u},e.paddingInner=function(m){return arguments.length?(u=Math.min(1,m),h()):u},e.paddingOuter=function(m){return arguments.length?(f=+m,h()):f},e.align=function(m){return arguments.length?(d=Math.max(0,Math.min(1,m)),h()):d},e.copy=function(){return Ku(t(),[r,i]).round(l).paddingInner(u).paddingOuter(f).align(d)},fr.apply(h(),arguments)}function qC(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return qC(t())},e}function mu(){return qC(Ku.apply(null,arguments).paddingInner(1))}function N_(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function XC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ic(){}var qu=.7,dd=1/qu,os="\\s*([+-]?\\d+)\\s*",Xu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Wr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pY=/^#([0-9a-f]{3,8})$/,mY=new RegExp(`^rgb\\(${os},${os},${os}\\)$`),vY=new RegExp(`^rgb\\(${Wr},${Wr},${Wr}\\)$`),gY=new RegExp(`^rgba\\(${os},${os},${os},${Xu}\\)$`),yY=new RegExp(`^rgba\\(${Wr},${Wr},${Wr},${Xu}\\)$`),xY=new RegExp(`^hsl\\(${Xu},${Wr},${Wr}\\)$`),_Y=new RegExp(`^hsla\\(${Xu},${Wr},${Wr},${Xu}\\)$`),aO={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};N_(Ic,Yu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sO,formatHex:sO,formatHex8:bY,formatHsl:wY,formatRgb:lO,toString:lO});function sO(){return this.rgb().formatHex()}function bY(){return this.rgb().formatHex8()}function wY(){return YC(this).formatHsl()}function lO(){return this.rgb().formatRgb()}function Yu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=pY.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?uO(t):n===3?new wn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Kf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Kf(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=mY.exec(e))?new wn(t[1],t[2],t[3],1):(t=vY.exec(e))?new wn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=gY.exec(e))?Kf(t[1],t[2],t[3],t[4]):(t=yY.exec(e))?Kf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=xY.exec(e))?hO(t[1],t[2]/100,t[3]/100,1):(t=_Y.exec(e))?hO(t[1],t[2]/100,t[3]/100,t[4]):aO.hasOwnProperty(e)?uO(aO[e]):e==="transparent"?new wn(NaN,NaN,NaN,0):null}function uO(e){return new wn(e>>16&255,e>>8&255,e&255,1)}function Kf(e,t,n,r){return r<=0&&(e=t=n=NaN),new wn(e,t,n,r)}function SY(e){return e instanceof Ic||(e=Yu(e)),e?(e=e.rgb(),new wn(e.r,e.g,e.b,e.opacity)):new wn}function jy(e,t,n,r){return arguments.length===1?SY(e):new wn(e,t,n,r??1)}function wn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}N_(wn,jy,XC(Ic,{brighter(e){return e=e==null?dd:Math.pow(dd,e),new wn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?qu:Math.pow(qu,e),new wn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new wn(Xo(this.r),Xo(this.g),Xo(this.b),pd(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:cO,formatHex:cO,formatHex8:PY,formatRgb:fO,toString:fO}));function cO(){return`#${Uo(this.r)}${Uo(this.g)}${Uo(this.b)}`}function PY(){return`#${Uo(this.r)}${Uo(this.g)}${Uo(this.b)}${Uo((isNaN(this.opacity)?1:this.opacity)*255)}`}function fO(){const e=pd(this.opacity);return`${e===1?"rgb(":"rgba("}${Xo(this.r)}, ${Xo(this.g)}, ${Xo(this.b)}${e===1?")":`, ${e})`}`}function pd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Xo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Uo(e){return e=Xo(e),(e<16?"0":"")+e.toString(16)}function hO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Sr(e,t,n,r)}function YC(e){if(e instanceof Sr)return new Sr(e.h,e.s,e.l,e.opacity);if(e instanceof Ic||(e=Yu(e)),!e)return new Sr;if(e instanceof Sr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,l=o-i,u=(o+i)/2;return l?(t===o?s=(n-r)/l+(n<r)*6:n===o?s=(r-t)/l+2:s=(t-n)/l+4,l/=u<.5?o+i:2-o-i,s*=60):l=u>0&&u<1?0:s,new Sr(s,l,u,e.opacity)}function OY(e,t,n,r){return arguments.length===1?YC(e):new Sr(e,t,n,r??1)}function Sr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}N_(Sr,OY,XC(Ic,{brighter(e){return e=e==null?dd:Math.pow(dd,e),new Sr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?qu:Math.pow(qu,e),new Sr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new wn(Pv(e>=240?e-240:e+120,i,r),Pv(e,i,r),Pv(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Sr(dO(this.h),qf(this.s),qf(this.l),pd(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=pd(this.opacity);return`${e===1?"hsl(":"hsla("}${dO(this.h)}, ${qf(this.s)*100}%, ${qf(this.l)*100}%${e===1?")":`, ${e})`}`}}));function dO(e){return e=(e||0)%360,e<0?e+360:e}function qf(e){return Math.max(0,Math.min(1,e||0))}function Pv(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const L_=e=>()=>e;function TY(e,t){return function(n){return e+n*t}}function AY(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function EY(e){return(e=+e)==1?QC:function(t,n){return n-t?AY(t,n,e):L_(isNaN(t)?n:t)}}function QC(e,t){var n=t-e;return n?TY(e,n):L_(isNaN(e)?t:e)}const pO=function e(t){var n=EY(t);function r(i,o){var s=n((i=jy(i)).r,(o=jy(o)).r),l=n(i.g,o.g),u=n(i.b,o.b),f=QC(i.opacity,o.opacity);return function(d){return i.r=s(d),i.g=l(d),i.b=u(d),i.opacity=f(d),i+""}}return r.gamma=e,r}(1);function kY(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function MY(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function CY(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=rl(e[s],t[s]);for(;s<n;++s)o[s]=t[s];return function(l){for(s=0;s<r;++s)o[s]=i[s](l);return o}}function jY(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function md(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function $Y(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=rl(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var $y=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ov=new RegExp($y.source,"g");function NY(e){return function(){return e}}function LY(e){return function(t){return e(t)+""}}function IY(e,t){var n=$y.lastIndex=Ov.lastIndex=0,r,i,o,s=-1,l=[],u=[];for(e=e+"",t=t+"";(r=$y.exec(e))&&(i=Ov.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),l[s]?l[s]+=o:l[++s]=o),(r=r[0])===(i=i[0])?l[s]?l[s]+=i:l[++s]=i:(l[++s]=null,u.push({i:s,x:md(r,i)})),n=Ov.lastIndex;return n<t.length&&(o=t.slice(n),l[s]?l[s]+=o:l[++s]=o),l.length<2?u[0]?LY(u[0].x):NY(t):(t=u.length,function(f){for(var d=0,h;d<t;++d)l[(h=u[d]).i]=h.x(f);return l.join("")})}function rl(e,t){var n=typeof t,r;return t==null||n==="boolean"?L_(t):(n==="number"?md:n==="string"?(r=Yu(t))?(t=r,pO):IY:t instanceof Yu?pO:t instanceof Date?jY:MY(t)?kY:Array.isArray(t)?CY:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?$Y:md)(e,t)}function I_(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function DY(e,t){t===void 0&&(t=e,e=rl);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(s){var l=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return o[l](s-l)}}function RY(e){return function(){return e}}function vd(e){return+e}var mO=[0,1];function hn(e){return e}function Ny(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:RY(isNaN(t)?NaN:.5)}function zY(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function BY(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=Ny(i,r),o=n(s,o)):(r=Ny(r,i),o=n(o,s)),function(l){return o(r(l))}}function FY(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=Ny(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(l){var u=Lc(e,l,1,r)-1;return o[u](i[u](l))}}function Dc(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Fp(){var e=mO,t=mO,n=rl,r,i,o,s=hn,l,u,f;function d(){var m=Math.min(e.length,t.length);return s!==hn&&(s=zY(e[0],e[m-1])),l=m>2?FY:BY,u=f=null,h}function h(m){return m==null||isNaN(m=+m)?o:(u||(u=l(e.map(r),t,n)))(r(s(m)))}return h.invert=function(m){return s(i((f||(f=l(t,e.map(r),md)))(m)))},h.domain=function(m){return arguments.length?(e=Array.from(m,vd),d()):e.slice()},h.range=function(m){return arguments.length?(t=Array.from(m),d()):t.slice()},h.rangeRound=function(m){return t=Array.from(m),n=I_,d()},h.clamp=function(m){return arguments.length?(s=m?!0:hn,d()):s!==hn},h.interpolate=function(m){return arguments.length?(n=m,d()):n},h.unknown=function(m){return arguments.length?(o=m,h):o},function(m,v){return r=m,i=v,d()}}function D_(){return Fp()(hn,hn)}function VY(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function gd(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ws(e){return e=gd(Math.abs(e)),e?e[1]:NaN}function UY(e,t){return function(n,r){for(var i=n.length,o=[],s=0,l=e[0],u=0;i>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),o.push(n.substring(i-=l,i+l)),!((u+=l+1)>r));)l=e[s=(s+1)%e.length];return o.reverse().join(t)}}function WY(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var HY=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Qu(e){if(!(t=HY.exec(e)))throw new Error("invalid format: "+e);var t;return new R_({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]})}Qu.prototype=R_.prototype;function R_(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}R_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function ZY(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var yd;function GY(e,t){var n=gd(e,t);if(!n)return yd=void 0,e.toPrecision(t);var r=n[0],i=n[1],o=i-(yd=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+gd(e,Math.max(0,t+o-1))[0]}function vO(e,t){var n=gd(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const gO={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:VY,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)=>vO(e*100,t),r:vO,s:GY,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function yO(e){return e}var xO=Array.prototype.map,_O=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function KY(e){var t=e.grouping===void 0||e.thousands===void 0?yO:UY(xO.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?yO:WY(xO.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function f(h,m){h=Qu(h);var v=h.fill,b=h.align,x=h.sign,S=h.symbol,y=h.zero,_=h.width,w=h.comma,E=h.precision,P=h.trim,A=h.type;A==="n"?(w=!0,A="g"):gO[A]||(E===void 0&&(E=12),P=!0,A="g"),(y||v==="0"&&b==="=")&&(y=!0,v="0",b="=");var M=(m&&m.prefix!==void 0?m.prefix:"")+(S==="$"?n:S==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():""),C=(S==="$"?r:/[%p]/.test(A)?s:"")+(m&&m.suffix!==void 0?m.suffix:""),N=gO[A],B=/[defgprs%]/.test(A);E=E===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function z(R){var K=M,H=C,W,Z,G;if(A==="c")H=N(R)+H,R="";else{R=+R;var $=R<0||1/R<0;if(R=isNaN(R)?u:N(Math.abs(R),E),P&&(R=ZY(R)),$&&+R==0&&x!=="+"&&($=!1),K=($?x==="("?x:l:x==="-"||x==="("?"":x)+K,H=(A==="s"&&!isNaN(R)&&yd!==void 0?_O[8+yd/3]:"")+H+($&&x==="("?")":""),B){for(W=-1,Z=R.length;++W<Z;)if(G=R.charCodeAt(W),48>G||G>57){H=(G===46?i+R.slice(W+1):R.slice(W))+H,R=R.slice(0,W);break}}}w&&!y&&(R=t(R,1/0));var q=K.length+R.length+H.length,V=q<_?new Array(_-q+1).join(v):"";switch(w&&y&&(R=t(V+R,V.length?_-H.length:1/0),V=""),b){case"<":R=K+R+H+V;break;case"=":R=K+V+R+H;break;case"^":R=V.slice(0,q=V.length>>1)+K+R+H+V.slice(q);break;default:R=V+K+R+H;break}return o(R)}return z.toString=function(){return h+""},z}function d(h,m){var v=Math.max(-8,Math.min(8,Math.floor(ws(m)/3)))*3,b=Math.pow(10,-v),x=f((h=Qu(h),h.type="f",h),{suffix:_O[8+v/3]});return function(S){return x(b*S)}}return{format:f,formatPrefix:d}}var Xf,z_,JC;qY({thousands:",",grouping:[3],currency:["$",""]});function qY(e){return Xf=KY(e),z_=Xf.format,JC=Xf.formatPrefix,Xf}function XY(e){return Math.max(0,-ws(Math.abs(e)))}function YY(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ws(t)/3)))*3-ws(Math.abs(e)))}function QY(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ws(t)-ws(e))+1}function ej(e,t,n,r){var i=My(e,t,n),o;switch(r=Qu(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=YY(i,s))&&(r.precision=o),JC(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=QY(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=XY(i))&&(r.precision=o-(r.type==="%")*2);break}}return z_(r)}function vo(e){var t=e.domain;return e.ticks=function(n){var r=t();return Ey(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return ej(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,s=r[i],l=r[o],u,f,d=10;for(l<s&&(f=s,s=l,l=f,f=i,i=o,o=f);d-- >0;){if(f=ky(s,l,n),f===u)return r[i]=s,r[o]=l,t(r);if(f>0)s=Math.floor(s/f)*f,l=Math.ceil(l/f)*f;else if(f<0)s=Math.ceil(s*f)/f,l=Math.floor(l*f)/f;else break;u=f}return e},e}function xd(){var e=D_();return e.copy=function(){return Dc(e,xd())},fr.apply(e,arguments),vo(e)}function tj(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,vd),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return tj(e).unknown(t)},e=arguments.length?Array.from(e,vd):[0,1],vo(n)}function nj(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],s;return o<i&&(s=n,n=r,r=s,s=i,i=o,o=s),e[n]=t.floor(i),e[r]=t.ceil(o),e}function bO(e){return Math.log(e)}function wO(e){return Math.exp(e)}function JY(e){return-Math.log(-e)}function eQ(e){return-Math.exp(-e)}function tQ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function nQ(e){return e===10?tQ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function rQ(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function SO(e){return(t,n)=>-e(-t,n)}function B_(e){const t=e(bO,wO),n=t.domain;let r=10,i,o;function s(){return i=rQ(r),o=nQ(r),n()[0]<0?(i=SO(i),o=SO(o),e(JY,eQ)):e(bO,wO),t}return t.base=function(l){return arguments.length?(r=+l,s()):r},t.domain=function(l){return arguments.length?(n(l),s()):n()},t.ticks=l=>{const u=n();let f=u[0],d=u[u.length-1];const h=d<f;h&&([f,d]=[d,f]);let m=i(f),v=i(d),b,x;const S=l==null?10:+l;let y=[];if(!(r%1)&&v-m<S){if(m=Math.floor(m),v=Math.ceil(v),f>0){for(;m<=v;++m)for(b=1;b<r;++b)if(x=m<0?b/o(-m):b*o(m),!(x<f)){if(x>d)break;y.push(x)}}else for(;m<=v;++m)for(b=r-1;b>=1;--b)if(x=m>0?b/o(-m):b*o(m),!(x<f)){if(x>d)break;y.push(x)}y.length*2<S&&(y=Ey(f,d,S))}else y=Ey(m,v,Math.min(v-m,S)).map(o);return h?y.reverse():y},t.tickFormat=(l,u)=>{if(l==null&&(l=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=Qu(u)).precision==null&&(u.trim=!0),u=z_(u)),l===1/0)return u;const f=Math.max(1,r*l/t.ticks().length);return d=>{let h=d/o(Math.round(i(d)));return h*r<r-.5&&(h*=r),h<=f?u(d):""}},t.nice=()=>n(nj(n(),{floor:l=>o(Math.floor(i(l))),ceil:l=>o(Math.ceil(i(l)))})),t}function rj(){const e=B_(Fp()).domain([1,10]);return e.copy=()=>Dc(e,rj()).base(e.base()),fr.apply(e,arguments),e}function PO(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function OO(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function F_(e){var t=1,n=e(PO(t),OO(t));return n.constant=function(r){return arguments.length?e(PO(t=+r),OO(t)):t},vo(n)}function ij(){var e=F_(Fp());return e.copy=function(){return Dc(e,ij()).constant(e.constant())},fr.apply(e,arguments)}function TO(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function iQ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function oQ(e){return e<0?-e*e:e*e}function V_(e){var t=e(hn,hn),n=1;function r(){return n===1?e(hn,hn):n===.5?e(iQ,oQ):e(TO(n),TO(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},vo(t)}function U_(){var e=V_(Fp());return e.copy=function(){return Dc(e,U_()).exponent(e.exponent())},fr.apply(e,arguments),e}function aQ(){return U_.apply(null,arguments).exponent(.5)}function AO(e){return Math.sign(e)*e*e}function sQ(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function oj(){var e=D_(),t=[0,1],n=!1,r;function i(o){var s=sQ(e(o));return isNaN(s)?r:n?Math.round(s):s}return i.invert=function(o){return e.invert(AO(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,vd)).map(AO)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return oj(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},fr.apply(i,arguments),vo(i)}function aj(){var e=[],t=[],n=[],r;function i(){var s=0,l=Math.max(1,t.length);for(n=new Array(l-1);++s<l;)n[s-1]=hY(e,s/l);return o}function o(s){return s==null||isNaN(s=+s)?r:t[Lc(n,s)]}return o.invertExtent=function(s){var l=t.indexOf(s);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},o.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let l of s)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(io),i()},o.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},o.unknown=function(s){return arguments.length?(r=s,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return aj().domain(e).range(t).unknown(r)},fr.apply(o,arguments)}function sj(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function s(u){return u!=null&&u<=u?i[Lc(r,u,0,n)]:o}function l(){var u=-1;for(r=new Array(n);++u<n;)r[u]=((u+1)*t-(u-n)*e)/(n+1);return s}return s.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,l()):[e,t]},s.range=function(u){return arguments.length?(n=(i=Array.from(u)).length-1,l()):i.slice()},s.invertExtent=function(u){var f=i.indexOf(u);return f<0?[NaN,NaN]:f<1?[e,r[0]]:f>=n?[r[n-1],t]:[r[f-1],r[f]]},s.unknown=function(u){return arguments.length&&(o=u),s},s.thresholds=function(){return r.slice()},s.copy=function(){return sj().domain([e,t]).range(i).unknown(o)},fr.apply(vo(s),arguments)}function lj(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Lc(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var s=t.indexOf(o);return[e[s-1],e[s]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return lj().domain(e).range(t).unknown(n)},fr.apply(i,arguments)}const Tv=new Date,Av=new Date;function jt(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const s=i(o),l=i.ceil(o);return o-s<l-o?s:l},i.offset=(o,s)=>(t(o=new Date(+o),s==null?1:Math.floor(s)),o),i.range=(o,s,l)=>{const u=[];if(o=i.ceil(o),l=l==null?1:Math.floor(l),!(o<s)||!(l>0))return u;let f;do u.push(f=new Date(+o)),t(o,l),e(o);while(f<o&&o<s);return u},i.filter=o=>jt(s=>{if(s>=s)for(;e(s),!o(s);)s.setTime(s-1)},(s,l)=>{if(s>=s)if(l<0)for(;++l<=0;)for(;t(s,-1),!o(s););else for(;--l>=0;)for(;t(s,1),!o(s););}),n&&(i.count=(o,s)=>(Tv.setTime(+o),Av.setTime(+s),e(Tv),e(Av),Math.floor(n(Tv,Av))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?s=>r(s)%o===0:s=>i.count(0,s)%o===0):i)),i}const _d=jt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);_d.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?jt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):_d);_d.range;const ui=1e3,ir=ui*60,ci=ir*60,Si=ci*24,W_=Si*7,EO=Si*30,Ev=Si*365,Wo=jt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ui)},(e,t)=>(t-e)/ui,e=>e.getUTCSeconds());Wo.range;const H_=jt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ui)},(e,t)=>{e.setTime(+e+t*ir)},(e,t)=>(t-e)/ir,e=>e.getMinutes());H_.range;const Z_=jt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ir)},(e,t)=>(t-e)/ir,e=>e.getUTCMinutes());Z_.range;const G_=jt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ui-e.getMinutes()*ir)},(e,t)=>{e.setTime(+e+t*ci)},(e,t)=>(t-e)/ci,e=>e.getHours());G_.range;const K_=jt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ci)},(e,t)=>(t-e)/ci,e=>e.getUTCHours());K_.range;const Rc=jt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ir)/Si,e=>e.getDate()-1);Rc.range;const Vp=jt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Si,e=>e.getUTCDate()-1);Vp.range;const uj=jt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Si,e=>Math.floor(e/Si));uj.range;function da(e){return jt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ir)/W_)}const Up=da(0),bd=da(1),lQ=da(2),uQ=da(3),Ss=da(4),cQ=da(5),fQ=da(6);Up.range;bd.range;lQ.range;uQ.range;Ss.range;cQ.range;fQ.range;function pa(e){return jt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/W_)}const Wp=pa(0),wd=pa(1),hQ=pa(2),dQ=pa(3),Ps=pa(4),pQ=pa(5),mQ=pa(6);Wp.range;wd.range;hQ.range;dQ.range;Ps.range;pQ.range;mQ.range;const q_=jt(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());q_.range;const X_=jt(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());X_.range;const Pi=jt(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());Pi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:jt(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)});Pi.range;const Oi=jt(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());Oi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:jt(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)});Oi.range;function cj(e,t,n,r,i,o){const s=[[Wo,1,ui],[Wo,5,5*ui],[Wo,15,15*ui],[Wo,30,30*ui],[o,1,ir],[o,5,5*ir],[o,15,15*ir],[o,30,30*ir],[i,1,ci],[i,3,3*ci],[i,6,6*ci],[i,12,12*ci],[r,1,Si],[r,2,2*Si],[n,1,W_],[t,1,EO],[t,3,3*EO],[e,1,Ev]];function l(f,d,h){const m=d<f;m&&([f,d]=[d,f]);const v=h&&typeof h.range=="function"?h:u(f,d,h),b=v?v.range(f,+d+1):[];return m?b.reverse():b}function u(f,d,h){const m=Math.abs(d-f)/h,v=j_(([,,S])=>S).right(s,m);if(v===s.length)return e.every(My(f/Ev,d/Ev,h));if(v===0)return _d.every(Math.max(My(f,d,h),1));const[b,x]=s[m/s[v-1][2]<s[v][2]/m?v-1:v];return b.every(x)}return[l,u]}const[vQ,gQ]=cj(Oi,X_,Wp,uj,K_,Z_),[yQ,xQ]=cj(Pi,q_,Up,Rc,G_,H_);function kv(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 Mv(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 Ll(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function _Q(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,s=e.shortDays,l=e.months,u=e.shortMonths,f=Il(i),d=Dl(i),h=Il(o),m=Dl(o),v=Il(s),b=Dl(s),x=Il(l),S=Dl(l),y=Il(u),_=Dl(u),w={a:G,A:$,b:q,B:V,c:null,d:NO,e:NO,f:UQ,g:JQ,G:tJ,H:BQ,I:FQ,j:VQ,L:fj,m:WQ,M:HQ,p:te,q:Q,Q:DO,s:RO,S:ZQ,u:GQ,U:KQ,V:qQ,w:XQ,W:YQ,x:null,X:null,y:QQ,Y:eJ,Z:nJ,"%":IO},E={a:ae,A:fe,b:he,B:ce,c:null,d:LO,e:LO,f:aJ,g:vJ,G:yJ,H:rJ,I:iJ,j:oJ,L:dj,m:sJ,M:lJ,p:Ve,q:ze,Q:DO,s:RO,S:uJ,u:cJ,U:fJ,V:hJ,w:dJ,W:pJ,x:null,X:null,y:mJ,Y:gJ,Z:xJ,"%":IO},P={a:B,A:z,b:R,B:K,c:H,d:jO,e:jO,f:IQ,g:CO,G:MO,H:$O,I:$O,j:jQ,L:LQ,m:CQ,M:$Q,p:N,q:MQ,Q:RQ,s:zQ,S:NQ,u:OQ,U:TQ,V:AQ,w:PQ,W:EQ,x:W,X:Z,y:CO,Y:MO,Z:kQ,"%":DQ};w.x=A(n,w),w.X=A(r,w),w.c=A(t,w),E.x=A(n,E),E.X=A(r,E),E.c=A(t,E);function A(oe,me){return function(ye){var J=[],Le=-1,Se=0,Ue=oe.length,We,it,Tt;for(ye instanceof Date||(ye=new Date(+ye));++Le<Ue;)oe.charCodeAt(Le)===37&&(J.push(oe.slice(Se,Le)),(it=kO[We=oe.charAt(++Le)])!=null?We=oe.charAt(++Le):it=We==="e"?" ":"0",(Tt=me[We])&&(We=Tt(ye,it)),J.push(We),Se=Le+1);return J.push(oe.slice(Se,Le)),J.join("")}}function M(oe,me){return function(ye){var J=Ll(1900,void 0,1),Le=C(J,oe,ye+="",0),Se,Ue;if(Le!=ye.length)return null;if("Q"in J)return new Date(J.Q);if("s"in J)return new Date(J.s*1e3+("L"in J?J.L:0));if(me&&!("Z"in J)&&(J.Z=0),"p"in J&&(J.H=J.H%12+J.p*12),J.m===void 0&&(J.m="q"in J?J.q:0),"V"in J){if(J.V<1||J.V>53)return null;"w"in J||(J.w=1),"Z"in J?(Se=Mv(Ll(J.y,0,1)),Ue=Se.getUTCDay(),Se=Ue>4||Ue===0?wd.ceil(Se):wd(Se),Se=Vp.offset(Se,(J.V-1)*7),J.y=Se.getUTCFullYear(),J.m=Se.getUTCMonth(),J.d=Se.getUTCDate()+(J.w+6)%7):(Se=kv(Ll(J.y,0,1)),Ue=Se.getDay(),Se=Ue>4||Ue===0?bd.ceil(Se):bd(Se),Se=Rc.offset(Se,(J.V-1)*7),J.y=Se.getFullYear(),J.m=Se.getMonth(),J.d=Se.getDate()+(J.w+6)%7)}else("W"in J||"U"in J)&&("w"in J||(J.w="u"in J?J.u%7:"W"in J?1:0),Ue="Z"in J?Mv(Ll(J.y,0,1)).getUTCDay():kv(Ll(J.y,0,1)).getDay(),J.m=0,J.d="W"in J?(J.w+6)%7+J.W*7-(Ue+5)%7:J.w+J.U*7-(Ue+6)%7);return"Z"in J?(J.H+=J.Z/100|0,J.M+=J.Z%100,Mv(J)):kv(J)}}function C(oe,me,ye,J){for(var Le=0,Se=me.length,Ue=ye.length,We,it;Le<Se;){if(J>=Ue)return-1;if(We=me.charCodeAt(Le++),We===37){if(We=me.charAt(Le++),it=P[We in kO?me.charAt(Le++):We],!it||(J=it(oe,ye,J))<0)return-1}else if(We!=ye.charCodeAt(J++))return-1}return J}function N(oe,me,ye){var J=f.exec(me.slice(ye));return J?(oe.p=d.get(J[0].toLowerCase()),ye+J[0].length):-1}function B(oe,me,ye){var J=v.exec(me.slice(ye));return J?(oe.w=b.get(J[0].toLowerCase()),ye+J[0].length):-1}function z(oe,me,ye){var J=h.exec(me.slice(ye));return J?(oe.w=m.get(J[0].toLowerCase()),ye+J[0].length):-1}function R(oe,me,ye){var J=y.exec(me.slice(ye));return J?(oe.m=_.get(J[0].toLowerCase()),ye+J[0].length):-1}function K(oe,me,ye){var J=x.exec(me.slice(ye));return J?(oe.m=S.get(J[0].toLowerCase()),ye+J[0].length):-1}function H(oe,me,ye){return C(oe,t,me,ye)}function W(oe,me,ye){return C(oe,n,me,ye)}function Z(oe,me,ye){return C(oe,r,me,ye)}function G(oe){return s[oe.getDay()]}function $(oe){return o[oe.getDay()]}function q(oe){return u[oe.getMonth()]}function V(oe){return l[oe.getMonth()]}function te(oe){return i[+(oe.getHours()>=12)]}function Q(oe){return 1+~~(oe.getMonth()/3)}function ae(oe){return s[oe.getUTCDay()]}function fe(oe){return o[oe.getUTCDay()]}function he(oe){return u[oe.getUTCMonth()]}function ce(oe){return l[oe.getUTCMonth()]}function Ve(oe){return i[+(oe.getUTCHours()>=12)]}function ze(oe){return 1+~~(oe.getUTCMonth()/3)}return{format:function(oe){var me=A(oe+="",w);return me.toString=function(){return oe},me},parse:function(oe){var me=M(oe+="",!1);return me.toString=function(){return oe},me},utcFormat:function(oe){var me=A(oe+="",E);return me.toString=function(){return oe},me},utcParse:function(oe){var me=M(oe+="",!0);return me.toString=function(){return oe},me}}}var kO={"-":"",_:" ",0:"0"},Rt=/^\s*\d+/,bQ=/^%/,wQ=/[\\^$*+?|[\]().{}]/g;function De(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function SQ(e){return e.replace(wQ,"\\$&")}function Il(e){return new RegExp("^(?:"+e.map(SQ).join("|")+")","i")}function Dl(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function PQ(e,t,n){var r=Rt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function OQ(e,t,n){var r=Rt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function TQ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function AQ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function EQ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function MO(e,t,n){var r=Rt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function CO(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function kQ(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 MQ(e,t,n){var r=Rt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function CQ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function jO(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function jQ(e,t,n){var r=Rt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function $O(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function $Q(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function NQ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function LQ(e,t,n){var r=Rt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function IQ(e,t,n){var r=Rt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function DQ(e,t,n){var r=bQ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function RQ(e,t,n){var r=Rt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function zQ(e,t,n){var r=Rt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function NO(e,t){return De(e.getDate(),t,2)}function BQ(e,t){return De(e.getHours(),t,2)}function FQ(e,t){return De(e.getHours()%12||12,t,2)}function VQ(e,t){return De(1+Rc.count(Pi(e),e),t,3)}function fj(e,t){return De(e.getMilliseconds(),t,3)}function UQ(e,t){return fj(e,t)+"000"}function WQ(e,t){return De(e.getMonth()+1,t,2)}function HQ(e,t){return De(e.getMinutes(),t,2)}function ZQ(e,t){return De(e.getSeconds(),t,2)}function GQ(e){var t=e.getDay();return t===0?7:t}function KQ(e,t){return De(Up.count(Pi(e)-1,e),t,2)}function hj(e){var t=e.getDay();return t>=4||t===0?Ss(e):Ss.ceil(e)}function qQ(e,t){return e=hj(e),De(Ss.count(Pi(e),e)+(Pi(e).getDay()===4),t,2)}function XQ(e){return e.getDay()}function YQ(e,t){return De(bd.count(Pi(e)-1,e),t,2)}function QQ(e,t){return De(e.getFullYear()%100,t,2)}function JQ(e,t){return e=hj(e),De(e.getFullYear()%100,t,2)}function eJ(e,t){return De(e.getFullYear()%1e4,t,4)}function tJ(e,t){var n=e.getDay();return e=n>=4||n===0?Ss(e):Ss.ceil(e),De(e.getFullYear()%1e4,t,4)}function nJ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+De(t/60|0,"0",2)+De(t%60,"0",2)}function LO(e,t){return De(e.getUTCDate(),t,2)}function rJ(e,t){return De(e.getUTCHours(),t,2)}function iJ(e,t){return De(e.getUTCHours()%12||12,t,2)}function oJ(e,t){return De(1+Vp.count(Oi(e),e),t,3)}function dj(e,t){return De(e.getUTCMilliseconds(),t,3)}function aJ(e,t){return dj(e,t)+"000"}function sJ(e,t){return De(e.getUTCMonth()+1,t,2)}function lJ(e,t){return De(e.getUTCMinutes(),t,2)}function uJ(e,t){return De(e.getUTCSeconds(),t,2)}function cJ(e){var t=e.getUTCDay();return t===0?7:t}function fJ(e,t){return De(Wp.count(Oi(e)-1,e),t,2)}function pj(e){var t=e.getUTCDay();return t>=4||t===0?Ps(e):Ps.ceil(e)}function hJ(e,t){return e=pj(e),De(Ps.count(Oi(e),e)+(Oi(e).getUTCDay()===4),t,2)}function dJ(e){return e.getUTCDay()}function pJ(e,t){return De(wd.count(Oi(e)-1,e),t,2)}function mJ(e,t){return De(e.getUTCFullYear()%100,t,2)}function vJ(e,t){return e=pj(e),De(e.getUTCFullYear()%100,t,2)}function gJ(e,t){return De(e.getUTCFullYear()%1e4,t,4)}function yJ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ps(e):Ps.ceil(e),De(e.getUTCFullYear()%1e4,t,4)}function xJ(){return"+0000"}function IO(){return"%"}function DO(e){return+e}function RO(e){return Math.floor(+e/1e3)}var ka,mj,vj;_J({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function _J(e){return ka=_Q(e),mj=ka.format,ka.parse,vj=ka.utcFormat,ka.utcParse,ka}function bJ(e){return new Date(e)}function wJ(e){return e instanceof Date?+e:+new Date(+e)}function Y_(e,t,n,r,i,o,s,l,u,f){var d=D_(),h=d.invert,m=d.domain,v=f(".%L"),b=f(":%S"),x=f("%I:%M"),S=f("%I %p"),y=f("%a %d"),_=f("%b %d"),w=f("%B"),E=f("%Y");function P(A){return(u(A)<A?v:l(A)<A?b:s(A)<A?x:o(A)<A?S:r(A)<A?i(A)<A?y:_:n(A)<A?w:E)(A)}return d.invert=function(A){return new Date(h(A))},d.domain=function(A){return arguments.length?m(Array.from(A,wJ)):m().map(bJ)},d.ticks=function(A){var M=m();return e(M[0],M[M.length-1],A??10)},d.tickFormat=function(A,M){return M==null?P:f(M)},d.nice=function(A){var M=m();return(!A||typeof A.range!="function")&&(A=t(M[0],M[M.length-1],A??10)),A?m(nj(M,A)):d},d.copy=function(){return Dc(d,Y_(e,t,n,r,i,o,s,l,u,f))},d}function SJ(){return fr.apply(Y_(yQ,xQ,Pi,q_,Up,Rc,G_,H_,Wo,mj).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function PJ(){return fr.apply(Y_(vQ,gQ,Oi,X_,Wp,Vp,K_,Z_,Wo,vj).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Hp(){var e=0,t=1,n,r,i,o,s=hn,l=!1,u;function f(h){return h==null||isNaN(h=+h)?u:s(i===0?.5:(h=(o(h)-n)*i,l?Math.max(0,Math.min(1,h)):h))}f.domain=function(h){return arguments.length?([e,t]=h,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),f):[e,t]},f.clamp=function(h){return arguments.length?(l=!!h,f):l},f.interpolator=function(h){return arguments.length?(s=h,f):s};function d(h){return function(m){var v,b;return arguments.length?([v,b]=m,s=h(v,b),f):[s(0),s(1)]}}return f.range=d(rl),f.rangeRound=d(I_),f.unknown=function(h){return arguments.length?(u=h,f):u},function(h){return o=h,n=h(e),r=h(t),i=n===r?0:1/(r-n),f}}function go(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function gj(){var e=vo(Hp()(hn));return e.copy=function(){return go(e,gj())},Mi.apply(e,arguments)}function yj(){var e=B_(Hp()).domain([1,10]);return e.copy=function(){return go(e,yj()).base(e.base())},Mi.apply(e,arguments)}function xj(){var e=F_(Hp());return e.copy=function(){return go(e,xj()).constant(e.constant())},Mi.apply(e,arguments)}function Q_(){var e=V_(Hp());return e.copy=function(){return go(e,Q_()).exponent(e.exponent())},Mi.apply(e,arguments)}function OJ(){return Q_.apply(null,arguments).exponent(.5)}function _j(){var e=[],t=hn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Lc(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(io),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>fY(e,o/r))},n.copy=function(){return _j(t).domain(e)},Mi.apply(n,arguments)}function Zp(){var e=0,t=.5,n=1,r=1,i,o,s,l,u,f=hn,d,h=!1,m;function v(x){return isNaN(x=+x)?m:(x=.5+((x=+d(x))-o)*(r*x<r*o?l:u),f(h?Math.max(0,Math.min(1,x)):x))}v.domain=function(x){return arguments.length?([e,t,n]=x,i=d(e=+e),o=d(t=+t),s=d(n=+n),l=i===o?0:.5/(o-i),u=o===s?0:.5/(s-o),r=o<i?-1:1,v):[e,t,n]},v.clamp=function(x){return arguments.length?(h=!!x,v):h},v.interpolator=function(x){return arguments.length?(f=x,v):f};function b(x){return function(S){var y,_,w;return arguments.length?([y,_,w]=S,f=DY(x,[y,_,w]),v):[f(0),f(.5),f(1)]}}return v.range=b(rl),v.rangeRound=b(I_),v.unknown=function(x){return arguments.length?(m=x,v):m},function(x){return d=x,i=x(e),o=x(t),s=x(n),l=i===o?0:.5/(o-i),u=o===s?0:.5/(s-o),r=o<i?-1:1,v}}function bj(){var e=vo(Zp()(hn));return e.copy=function(){return go(e,bj())},Mi.apply(e,arguments)}function wj(){var e=B_(Zp()).domain([.1,1,10]);return e.copy=function(){return go(e,wj()).base(e.base())},Mi.apply(e,arguments)}function Sj(){var e=F_(Zp());return e.copy=function(){return go(e,Sj()).constant(e.constant())},Mi.apply(e,arguments)}function J_(){var e=V_(Zp());return e.copy=function(){return go(e,J_()).exponent(e.exponent())},Mi.apply(e,arguments)}function TJ(){return J_.apply(null,arguments).exponent(.5)}const zO=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ku,scaleDiverging:bj,scaleDivergingLog:wj,scaleDivergingPow:J_,scaleDivergingSqrt:TJ,scaleDivergingSymlog:Sj,scaleIdentity:tj,scaleImplicit:Cy,scaleLinear:xd,scaleLog:rj,scaleOrdinal:$_,scalePoint:mu,scalePow:U_,scaleQuantile:aj,scaleQuantize:sj,scaleRadial:oj,scaleSequential:gj,scaleSequentialLog:yj,scaleSequentialPow:Q_,scaleSequentialQuantile:_j,scaleSequentialSqrt:OJ,scaleSequentialSymlog:xj,scaleSqrt:aQ,scaleSymlog:ij,scaleThreshold:lj,scaleTime:SJ,scaleUtc:PJ,tickFormat:ej},Symbol.toStringTag,{value:"Module"}));var AJ=Gs;function EJ(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],s=t(o);if(s!=null&&(l===void 0?s===s&&!AJ(s):n(s,l)))var l=s,u=o}return u}var Pj=EJ;function kJ(e,t){return e>t}var MJ=kJ,CJ=Pj,jJ=MJ,$J=tl;function NJ(e){return e&&e.length?CJ(e,$J,jJ):void 0}var LJ=NJ;const Ki=Ze(LJ);function IJ(e,t){return e<t}var DJ=IJ,RJ=Pj,zJ=DJ,BJ=tl;function FJ(e){return e&&e.length?RJ(e,BJ,zJ):void 0}var VJ=FJ;const Gp=Ze(VJ);var UJ=h_,WJ=mo,HJ=NC,ZJ=Tn;function GJ(e,t){var n=ZJ(e)?UJ:HJ;return n(e,WJ(t))}var KJ=GJ,qJ=jC,XJ=KJ;function YJ(e,t){return qJ(XJ(e,t),1)}var QJ=YJ;const JJ=Ze(QJ);var eee=A_;function tee(e,t){return eee(e,t)}var nee=tee;const Ju=Ze(nee);var il=1e9,ree={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},t1,st=!0,ur="[DecimalError] ",Yo=ur+"Invalid argument: ",e1=ur+"Exponent out of range: ",ol=Math.floor,Io=Math.pow,iee=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$n,Lt=1e7,tt=7,Oj=9007199254740991,Sd=ol(Oj/tt),ue={};ue.absoluteValue=ue.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ue.comparedTo=ue.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};ue.decimalPlaces=ue.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*tt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};ue.dividedBy=ue.div=function(e){return gi(this,new this.constructor(e))};ue.dividedToIntegerBy=ue.idiv=function(e){var t=this,n=t.constructor;return qe(gi(t,new n(e),0,1),n.precision)};ue.equals=ue.eq=function(e){return!this.cmp(e)};ue.exponent=function(){return Ot(this)};ue.greaterThan=ue.gt=function(e){return this.cmp(e)>0};ue.greaterThanOrEqualTo=ue.gte=function(e){return this.cmp(e)>=0};ue.isInteger=ue.isint=function(){return this.e>this.d.length-2};ue.isNegative=ue.isneg=function(){return this.s<0};ue.isPositive=ue.ispos=function(){return this.s>0};ue.isZero=function(){return this.s===0};ue.lessThan=ue.lt=function(e){return this.cmp(e)<0};ue.lessThanOrEqualTo=ue.lte=function(e){return this.cmp(e)<1};ue.logarithm=ue.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq($n))throw Error(ur+"NaN");if(n.s<1)throw Error(ur+(n.s?"NaN":"-Infinity"));return n.eq($n)?new r(0):(st=!1,t=gi(ec(n,o),ec(e,o),o),st=!0,qe(t,i))};ue.minus=ue.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Ej(t,e):Tj(t,(e.s=-e.s,e))};ue.modulo=ue.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(ur+"NaN");return n.s?(st=!1,t=gi(n,e,0,1).times(e),st=!0,n.minus(t)):qe(new r(n),i)};ue.naturalExponential=ue.exp=function(){return Aj(this)};ue.naturalLogarithm=ue.ln=function(){return ec(this)};ue.negated=ue.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ue.plus=ue.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Tj(t,e):Ej(t,(e.s=-e.s,e))};ue.precision=ue.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Yo+e);if(t=Ot(i)+1,r=i.d.length-1,n=r*tt+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};ue.squareRoot=ue.sqrt=function(){var e,t,n,r,i,o,s,l=this,u=l.constructor;if(l.s<1){if(!l.s)return new u(0);throw Error(ur+"NaN")}for(e=Ot(l),st=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=Rr(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=ol((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new u(t)):r=new u(i.toString()),n=u.precision,i=s=n+3;;)if(o=r,r=o.plus(gi(l,o,s+2)).times(.5),Rr(o.d).slice(0,s)===(t=Rr(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(qe(o,n+1,0),o.times(o).eq(l)){r=o;break}}else if(t!="9999")break;s+=4}return st=!0,qe(r,n)};ue.times=ue.mul=function(e){var t,n,r,i,o,s,l,u,f,d=this,h=d.constructor,m=d.d,v=(e=new h(e)).d;if(!d.s||!e.s)return new h(0);for(e.s*=d.s,n=d.e+e.e,u=m.length,f=v.length,u<f&&(o=m,m=v,v=o,s=u,u=f,f=s),o=[],s=u+f,r=s;r--;)o.push(0);for(r=f;--r>=0;){for(t=0,i=u+r;i>r;)l=o[i]+v[r]*m[i-r-1]+t,o[i--]=l%Lt|0,t=l/Lt|0;o[i]=(o[i]+t)%Lt|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,st?qe(e,h.precision):e};ue.toDecimalPlaces=ue.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Gr(e,0,il),t===void 0?t=r.rounding:Gr(t,0,8),qe(n,e+Ot(n)+1,t))};ue.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=aa(r,!0):(Gr(e,0,il),t===void 0?t=i.rounding:Gr(t,0,8),r=qe(new i(r),e+1,t),n=aa(r,!0,e+1)),n};ue.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?aa(i):(Gr(e,0,il),t===void 0?t=o.rounding:Gr(t,0,8),r=qe(new o(i),e+Ot(i)+1,t),n=aa(r.abs(),!1,e+Ot(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};ue.toInteger=ue.toint=function(){var e=this,t=e.constructor;return qe(new t(e),Ot(e)+1,t.rounding)};ue.toNumber=function(){return+this};ue.toPower=ue.pow=function(e){var t,n,r,i,o,s,l=this,u=l.constructor,f=12,d=+(e=new u(e));if(!e.s)return new u($n);if(l=new u(l),!l.s){if(e.s<1)throw Error(ur+"Infinity");return l}if(l.eq($n))return l;if(r=u.precision,e.eq($n))return qe(l,r);if(t=e.e,n=e.d.length-1,s=t>=n,o=l.s,s){if((n=d<0?-d:d)<=Oj){for(i=new u($n),t=Math.ceil(r/tt+4),st=!1;n%2&&(i=i.times(l),FO(i.d,t)),n=ol(n/2),n!==0;)l=l.times(l),FO(l.d,t);return st=!0,e.s<0?new u($n).div(i):qe(i,r)}}else if(o<0)throw Error(ur+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,st=!1,i=e.times(ec(l,r+f)),st=!0,i=Aj(i),i.s=o,i};ue.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=Ot(i),r=aa(i,n<=o.toExpNeg||n>=o.toExpPos)):(Gr(e,1,il),t===void 0?t=o.rounding:Gr(t,0,8),i=qe(new o(i),e,t),n=Ot(i),r=aa(i,e<=n||n<=o.toExpNeg,e)),r};ue.toSignificantDigits=ue.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Gr(e,1,il),t===void 0?t=r.rounding:Gr(t,0,8)),qe(new r(n),e,t)};ue.toString=ue.valueOf=ue.val=ue.toJSON=ue[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ot(e),n=e.constructor;return aa(e,t<=n.toExpNeg||t>=n.toExpPos)};function Tj(e,t){var n,r,i,o,s,l,u,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),st?qe(t,h):t;if(u=e.d,f=t.d,s=e.e,i=t.e,u=u.slice(),o=s-i,o){for(o<0?(r=u,o=-o,l=f.length):(r=f,i=s,l=u.length),s=Math.ceil(h/tt),l=s>l?s+1:l+1,o>l&&(o=l,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(l=u.length,o=f.length,l-o<0&&(o=l,r=f,f=u,u=r),n=0;o;)n=(u[--o]=u[o]+f[o]+n)/Lt|0,u[o]%=Lt;for(n&&(u.unshift(n),++i),l=u.length;u[--l]==0;)u.pop();return t.d=u,t.e=i,st?qe(t,h):t}function Gr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Yo+e)}function Rr(e){var t,n,r,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;t<i;t++)r=e[t]+"",n=tt-r.length,n&&(o+=Vi(n)),o+=r;s=e[t],r=s+"",n=tt-r.length,n&&(o+=Vi(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return o+s}var gi=function(){function e(r,i){var o,s=0,l=r.length;for(r=r.slice();l--;)o=r[l]*i+s,r[l]=o%Lt|0,s=o/Lt|0;return s&&r.unshift(s),r}function t(r,i,o,s){var l,u;if(o!=s)u=o>s?1:-1;else for(l=u=0;l<o;l++)if(r[l]!=i[l]){u=r[l]>i[l]?1:-1;break}return u}function n(r,i,o){for(var s=0;o--;)r[o]-=s,s=r[o]<i[o]?1:0,r[o]=s*Lt+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,s){var l,u,f,d,h,m,v,b,x,S,y,_,w,E,P,A,M,C,N=r.constructor,B=r.s==i.s?1:-1,z=r.d,R=i.d;if(!r.s)return new N(r);if(!i.s)throw Error(ur+"Division by zero");for(u=r.e-i.e,M=R.length,P=z.length,v=new N(B),b=v.d=[],f=0;R[f]==(z[f]||0);)++f;if(R[f]>(z[f]||0)&&--u,o==null?_=o=N.precision:s?_=o+(Ot(r)-Ot(i))+1:_=o,_<0)return new N(0);if(_=_/tt+2|0,f=0,M==1)for(d=0,R=R[0],_++;(f<P||d)&&_--;f++)w=d*Lt+(z[f]||0),b[f]=w/R|0,d=w%R|0;else{for(d=Lt/(R[0]+1)|0,d>1&&(R=e(R,d),z=e(z,d),M=R.length,P=z.length),E=M,x=z.slice(0,M),S=x.length;S<M;)x[S++]=0;C=R.slice(),C.unshift(0),A=R[0],R[1]>=Lt/2&&++A;do d=0,l=t(R,x,M,S),l<0?(y=x[0],M!=S&&(y=y*Lt+(x[1]||0)),d=y/A|0,d>1?(d>=Lt&&(d=Lt-1),h=e(R,d),m=h.length,S=x.length,l=t(h,x,m,S),l==1&&(d--,n(h,M<m?C:R,m))):(d==0&&(l=d=1),h=R.slice()),m=h.length,m<S&&h.unshift(0),n(x,h,S),l==-1&&(S=x.length,l=t(R,x,M,S),l<1&&(d++,n(x,M<S?C:R,S))),S=x.length):l===0&&(d++,x=[0]),b[f++]=d,l&&x[0]?x[S++]=z[E]||0:(x=[z[E]],S=1);while((E++<P||x[0]!==void 0)&&_--)}return b[0]||b.shift(),v.e=u,qe(v,s?o+Ot(v)+1:o)}}();function Aj(e,t){var n,r,i,o,s,l,u=0,f=0,d=e.constructor,h=d.precision;if(Ot(e)>16)throw Error(e1+Ot(e));if(!e.s)return new d($n);for(st=!1,l=h,s=new d(.03125);e.abs().gte(.1);)e=e.times(s),f+=5;for(r=Math.log(Io(2,f))/Math.LN10*2+5|0,l+=r,n=i=o=new d($n),d.precision=l;;){if(i=qe(i.times(e),l),n=n.times(++u),s=o.plus(gi(i,n,l)),Rr(s.d).slice(0,l)===Rr(o.d).slice(0,l)){for(;f--;)o=qe(o.times(o),l);return d.precision=h,t==null?(st=!0,qe(o,h)):o}o=s}}function Ot(e){for(var t=e.e*tt,n=e.d[0];n>=10;n/=10)t++;return t}function Cv(e,t,n){if(t>e.LN10.sd())throw st=!0,n&&(e.precision=n),Error(ur+"LN10 precision limit exceeded");return qe(new e(e.LN10),t)}function Vi(e){for(var t="";e--;)t+="0";return t}function ec(e,t){var n,r,i,o,s,l,u,f,d,h=1,m=10,v=e,b=v.d,x=v.constructor,S=x.precision;if(v.s<1)throw Error(ur+(v.s?"NaN":"-Infinity"));if(v.eq($n))return new x(0);if(t==null?(st=!1,f=S):f=t,v.eq(10))return t==null&&(st=!0),Cv(x,f);if(f+=m,x.precision=f,n=Rr(b),r=n.charAt(0),o=Ot(v),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)v=v.times(e),n=Rr(v.d),r=n.charAt(0),h++;o=Ot(v),r>1?(v=new x("0."+n),o++):v=new x(r+"."+n.slice(1))}else return u=Cv(x,f+2,S).times(o+""),v=ec(new x(r+"."+n.slice(1)),f-m).plus(u),x.precision=S,t==null?(st=!0,qe(v,S)):v;for(l=s=v=gi(v.minus($n),v.plus($n),f),d=qe(v.times(v),f),i=3;;){if(s=qe(s.times(d),f),u=l.plus(gi(s,new x(i),f)),Rr(u.d).slice(0,f)===Rr(l.d).slice(0,f))return l=l.times(2),o!==0&&(l=l.plus(Cv(x,f+2,S).times(o+""))),l=gi(l,new x(h),f),x.precision=S,t==null?(st=!0,qe(l,S)):l;l=u,i+=2}}function BO(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=ol(n/tt),e.d=[],r=(n+1)%tt,n<0&&(r+=tt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=tt;r<i;)e.d.push(+t.slice(r,r+=tt));t=t.slice(r),r=tt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),st&&(e.e>Sd||e.e<-Sd))throw Error(e1+n)}else e.s=0,e.e=0,e.d=[0];return e}function qe(e,t,n){var r,i,o,s,l,u,f,d,h=e.d;for(s=1,o=h[0];o>=10;o/=10)s++;if(r=t-s,r<0)r+=tt,i=t,f=h[d=0];else{if(d=Math.ceil((r+1)/tt),o=h.length,d>=o)return e;for(f=o=h[d],s=1;o>=10;o/=10)s++;r%=tt,i=r-tt+s}if(n!==void 0&&(o=Io(10,s-i-1),l=f/o%10|0,u=t<0||h[d+1]!==void 0||f%o,u=n<4?(l||u)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||u||n==6&&(r>0?i>0?f/Io(10,s-i):0:h[d-1])%10&1||n==(e.s<0?8:7))),t<1||!h[0])return u?(o=Ot(e),h.length=1,t=t-o-1,h[0]=Io(10,(tt-t%tt)%tt),e.e=ol(-t/tt)||0):(h.length=1,h[0]=e.e=e.s=0),e;if(r==0?(h.length=d,o=1,d--):(h.length=d+1,o=Io(10,tt-r),h[d]=i>0?(f/Io(10,s-i)%Io(10,i)|0)*o:0),u)for(;;)if(d==0){(h[0]+=o)==Lt&&(h[0]=1,++e.e);break}else{if(h[d]+=o,h[d]!=Lt)break;h[d--]=0,o=1}for(r=h.length;h[--r]===0;)h.pop();if(st&&(e.e>Sd||e.e<-Sd))throw Error(e1+Ot(e));return e}function Ej(e,t){var n,r,i,o,s,l,u,f,d,h,m=e.constructor,v=m.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new m(e),st?qe(t,v):t;if(u=e.d,h=t.d,r=t.e,f=e.e,u=u.slice(),s=f-r,s){for(d=s<0,d?(n=u,s=-s,l=h.length):(n=h,r=f,l=u.length),i=Math.max(Math.ceil(v/tt),l)+2,s>i&&(s=i,n.length=1),n.reverse(),i=s;i--;)n.push(0);n.reverse()}else{for(i=u.length,l=h.length,d=i<l,d&&(l=i),i=0;i<l;i++)if(u[i]!=h[i]){d=u[i]<h[i];break}s=0}for(d&&(n=u,u=h,h=n,t.s=-t.s),l=u.length,i=h.length-l;i>0;--i)u[l++]=0;for(i=h.length;i>s;){if(u[--i]<h[i]){for(o=i;o&&u[--o]===0;)u[o]=Lt-1;--u[o],u[i]+=Lt}u[i]-=h[i]}for(;u[--l]===0;)u.pop();for(;u[0]===0;u.shift())--r;return u[0]?(t.d=u,t.e=r,st?qe(t,v):t):new m(0)}function aa(e,t,n){var r,i=Ot(e),o=Rr(e.d),s=o.length;return t?(n&&(r=n-s)>0?o=o.charAt(0)+"."+o.slice(1)+Vi(r):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Vi(-i-1)+o,n&&(r=n-s)>0&&(o+=Vi(r))):i>=s?(o+=Vi(i+1-s),n&&(r=n-i-1)>0&&(o=o+"."+Vi(r))):((r=i+1)<s&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(o+="."),o+=Vi(r))),e.s<0?"-"+o:o}function FO(e,t){if(e.length>t)return e.length=t,!0}function kj(e){var t,n,r;function i(o){var s=this;if(!(s instanceof i))return new i(o);if(s.constructor=i,o instanceof i){s.s=o.s,s.e=o.e,s.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Yo+o);if(o>0)s.s=1;else if(o<0)o=-o,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(o===~~o&&o<1e7){s.e=0,s.d=[o];return}return BO(s,o.toString())}else if(typeof o!="string")throw Error(Yo+o);if(o.charCodeAt(0)===45?(o=o.slice(1),s.s=-1):s.s=1,iee.test(o))BO(s,o);else throw Error(Yo+o)}if(i.prototype=ue,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=kj,i.config=i.set=oee,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function oee(e){if(!e||typeof e!="object")throw Error(ur+"Object expected");var t,n,r,i=["precision",1,il,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(ol(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Yo+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Yo+n+": "+r);return this}var t1=kj(ree);$n=new t1(1);const He=t1;function aee(e){return cee(e)||uee(e)||lee(e)||see()}function see(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
346
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lee(e,t){if(e){if(typeof e=="string")return Ly(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ly(e,t)}}function uee(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function cee(e){if(Array.isArray(e))return Ly(e)}function Ly(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var fee=function(t){return t},Mj={},Cj=function(t){return t===Mj},VO=function(t){return function n(){return arguments.length===0||arguments.length===1&&Cj(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},hee=function e(t,n){return t===1?n:VO(function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var s=i.filter(function(l){return l!==Mj}).length;return s>=t?n.apply(void 0,i):e(t-s,VO(function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var d=i.map(function(h){return Cj(h)?u.shift():h});return n.apply(void 0,aee(d).concat(u))}))})},Kp=function(t){return hee(t.length,t)},Iy=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},dee=Kp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),pee=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return fee;var i=n.reverse(),o=i[0],s=i.slice(1);return function(){return s.reduce(function(l,u){return u(l)},o.apply(void 0,arguments))}},Dy=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},jj=function(t){var n=null,r=null;return function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return n&&o.every(function(l,u){return l===n[u]})||(n=o,r=t.apply(void 0,o)),r}};function mee(e){var t;return e===0?t=1:t=Math.floor(new He(e).abs().log(10).toNumber())+1,t}function vee(e,t,n){for(var r=new He(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var gee=Kp(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),yee=Kp(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),xee=Kp(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const qp={rangeStep:vee,getDigitCount:mee,interpolateNumber:gee,uninterpolateNumber:yee,uninterpolateTruncation:xee};function Ry(e){return wee(e)||bee(e)||$j(e)||_ee()}function _ee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
347
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bee(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function wee(e){if(Array.isArray(e))return zy(e)}function tc(e,t){return Oee(e)||Pee(e,t)||$j(e,t)||See()}function See(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
348
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $j(e,t){if(e){if(typeof e=="string")return zy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zy(e,t)}}function zy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pee(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),l;!(r=(l=s.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function Oee(e){if(Array.isArray(e))return e}function Nj(e){var t=tc(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function Lj(e,t,n){if(e.lte(0))return new He(0);var r=qp.getDigitCount(e.toNumber()),i=new He(10).pow(r),o=e.div(i),s=r!==1?.05:.1,l=new He(Math.ceil(o.div(s).toNumber())).add(n).mul(s),u=l.mul(i);return t?u:new He(Math.ceil(u))}function Tee(e,t,n){var r=1,i=new He(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new He(10).pow(qp.getDigitCount(e)-1),i=new He(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new He(Math.floor(e)))}else e===0?i=new He(Math.floor((t-1)/2)):n||(i=new He(Math.floor(e)));var s=Math.floor((t-1)/2),l=pee(dee(function(u){return i.add(new He(u-s).mul(r)).toNumber()}),Iy);return l(0,t)}function Ij(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new He(0),tickMin:new He(0),tickMax:new He(0)};var o=Lj(new He(t).sub(e).div(n-1),r,i),s;e<=0&&t>=0?s=new He(0):(s=new He(e).add(t).div(2),s=s.sub(new He(s).mod(o)));var l=Math.ceil(s.sub(e).div(o).toNumber()),u=Math.ceil(new He(t).sub(s).div(o).toNumber()),f=l+u+1;return f>n?Ij(e,t,n,r,i+1):(f<n&&(u=t>0?u+(n-f):u,l=t>0?l:l+(n-f)),{step:o,tickMin:s.sub(new He(l).mul(o)),tickMax:s.add(new He(u).mul(o))})}function Aee(e){var t=tc(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Math.max(i,2),l=Nj([n,r]),u=tc(l,2),f=u[0],d=u[1];if(f===-1/0||d===1/0){var h=d===1/0?[f].concat(Ry(Iy(0,i-1).map(function(){return 1/0}))):[].concat(Ry(Iy(0,i-1).map(function(){return-1/0})),[d]);return n>r?Dy(h):h}if(f===d)return Tee(f,i,o);var m=Ij(f,d,s,o),v=m.step,b=m.tickMin,x=m.tickMax,S=qp.rangeStep(b,x.add(new He(.1).mul(v)),v);return n>r?Dy(S):S}function Eee(e,t){var n=tc(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Nj([r,i]),l=tc(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0)return[r,i];if(u===f)return[u];var d=Math.max(t,2),h=Lj(new He(f).sub(u).div(d-1),o,0),m=[].concat(Ry(qp.rangeStep(new He(u),new He(f).sub(new He(.99).mul(h)),h)),[f]);return r>i?Dy(m):m}var kee=jj(Aee),Mee=jj(Eee),Cee="Invariant failed";function sa(e,t){throw new Error(Cee)}var jee=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Os(e){"@babel/helpers - typeof";return Os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Os(e)}function Pd(){return Pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pd.apply(this,arguments)}function $ee(e,t){return Dee(e)||Iee(e,t)||Lee(e,t)||Nee()}function Nee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
349
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lee(e,t){if(e){if(typeof e=="string")return UO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UO(e,t)}}function UO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Iee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Dee(e){if(Array.isArray(e))return e}function Ree(e,t){if(e==null)return{};var n=zee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zee(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Bee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zj(r.key),r)}}function Vee(e,t,n){return t&&Fee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uee(e,t,n){return t=Od(t),Wee(e,Dj()?Reflect.construct(t,n||[],Od(e).constructor):t.apply(e,n))}function Wee(e,t){if(t&&(Os(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hee(e)}function Hee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dj=function(){return!!e})()}function Od(e){return Od=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Od(e)}function Zee(e,t){if(typeof t!="function"&&t!==null)throw new 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&&By(e,t)}function By(e,t){return By=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},By(e,t)}function Rj(e,t,n){return t=zj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zj(e){var t=Gee(e,"string");return Os(t)=="symbol"?t:t+""}function Gee(e,t){if(Os(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xp=function(e){function t(){return Bee(this,t),Uee(this,t,arguments)}return Zee(t,e),Vee(t,[{key:"render",value:function(){var r=this.props,i=r.offset,o=r.layout,s=r.width,l=r.dataKey,u=r.data,f=r.dataPointFormatter,d=r.xAxis,h=r.yAxis,m=Ree(r,jee),v=Ee(m,!1);this.props.direction==="x"&&d.type!=="number"&&sa();var b=u.map(function(x){var S=f(x,l),y=S.x,_=S.y,w=S.value,E=S.errorVal;if(!E)return null;var P=[],A,M;if(Array.isArray(E)){var C=$ee(E,2);A=C[0],M=C[1]}else A=M=E;if(o==="vertical"){var N=d.scale,B=_+i,z=B+s,R=B-s,K=N(w-A),H=N(w+M);P.push({x1:H,y1:z,x2:H,y2:R}),P.push({x1:K,y1:B,x2:H,y2:B}),P.push({x1:K,y1:z,x2:K,y2:R})}else if(o==="horizontal"){var W=h.scale,Z=y+i,G=Z-s,$=Z+s,q=W(w-A),V=W(w+M);P.push({x1:G,y1:V,x2:$,y2:V}),P.push({x1:Z,y1:q,x2:Z,y2:V}),P.push({x1:G,y1:q,x2:$,y2:q})}return D.createElement(ft,Pd({className:"recharts-errorBar",key:"bar-".concat(P.map(function(te){return"".concat(te.x1,"-").concat(te.x2,"-").concat(te.y1,"-").concat(te.y2)}))},v),P.map(function(te){return D.createElement("line",Pd({},te,{key:"line-".concat(te.x1,"-").concat(te.x2,"-").concat(te.y1,"-").concat(te.y2)}))}))});return D.createElement(ft,{className:"recharts-errorBars"},b)}}])}(D.Component);Rj(Xp,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Rj(Xp,"displayName","ErrorBar");function nc(e){"@babel/helpers - typeof";return nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nc(e)}function WO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ko(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WO(Object(n),!0).forEach(function(r){Kee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kee(e,t,n){return t=qee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qee(e){var t=Xee(e,"string");return nc(t)=="symbol"?t:t+""}function Xee(e,t){if(nc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bj=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,s=jn(n,is);if(!s)return null;var l=is.defaultProps,u=l!==void 0?ko(ko({},l),s.props):{},f;return s.props&&s.props.payload?f=s.props&&s.props.payload:o==="children"?f=(r||[]).reduce(function(d,h){var m=h.item,v=h.props,b=v.sectors||v.data||[];return d.concat(b.map(function(x){return{type:s.props.iconType||m.props.legendType,value:x.name,color:x.fill,payload:x}}))},[]):f=(r||[]).map(function(d){var h=d.item,m=h.type.defaultProps,v=m!==void 0?ko(ko({},m),h.props):{},b=v.dataKey,x=v.name,S=v.legendType,y=v.hide;return{inactive:y,dataKey:b,type:u.iconType||S||"square",color:n1(h),value:x||b,payload:v}}),ko(ko(ko({},u),is.getWithHeight(s,i)),{},{payload:f,item:s})};function rc(e){"@babel/helpers - typeof";return rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rc(e)}function HO(e){return ete(e)||Jee(e)||Qee(e)||Yee()}function Yee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
350
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qee(e,t){if(e){if(typeof e=="string")return Fy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fy(e,t)}}function Jee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ete(e){if(Array.isArray(e))return Fy(e)}function Fy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ZO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZO(Object(n),!0).forEach(function(r){as(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function as(e,t,n){return t=tte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tte(e){var t=nte(e,"string");return rc(t)=="symbol"?t:t+""}function nte(e,t){if(rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bn(e,t,n){return Me(e)||Me(t)?n:Ct(t)?ar(e,t,n):Pe(t)?t(e):n}function vu(e,t,n,r){var i=JJ(e,function(l){return Bn(l,t)});if(n==="number"){var o=i.filter(function(l){return ie(l)||parseFloat(l)});return o.length?[Gp(o),Ki(o)]:[1/0,-1/0]}var s=r?i.filter(function(l){return!Me(l)}):i;return s.map(function(l){return Ct(l)||l instanceof Date?l:""})}var rte=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,s=-1,l=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(l<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var u=o.range,f=0;f<l;f++){var d=f>0?i[f-1].coordinate:i[l-1].coordinate,h=i[f].coordinate,m=f>=l-1?i[0].coordinate:i[f+1].coordinate,v=void 0;if(Pr(h-d)!==Pr(m-h)){var b=[];if(Pr(m-h)===Pr(u[1]-u[0])){v=m;var x=h+u[1]-u[0];b[0]=Math.min(x,(x+d)/2),b[1]=Math.max(x,(x+d)/2)}else{v=d;var S=m+u[1]-u[0];b[0]=Math.min(h,(S+h)/2),b[1]=Math.max(h,(S+h)/2)}var y=[Math.min(h,(v+h)/2),Math.max(h,(v+h)/2)];if(t>y[0]&&t<=y[1]||t>=b[0]&&t<=b[1]){s=i[f].index;break}}else{var _=Math.min(d,m),w=Math.max(d,m);if(t>(_+h)/2&&t<=(w+h)/2){s=i[f].index;break}}}else for(var E=0;E<l;E++)if(E===0&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E>0&&E<l-1&&t>(r[E].coordinate+r[E-1].coordinate)/2&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E===l-1&&t>(r[E].coordinate+r[E-1].coordinate)/2){s=r[E].index;break}return s},n1=function(t){var n,r=t,i=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?vt(vt({},t.type.defaultProps),t.props):t.props,s=o.stroke,l=o.fill,u;switch(i){case"Line":u=s;break;case"Area":case"Radar":u=s&&s!=="none"?s:l;break;default:u=l;break}return u},ite=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var s={},l=Object.keys(o),u=0,f=l.length;u<f;u++)for(var d=o[l[u]].stackGroups,h=Object.keys(d),m=0,v=h.length;m<v;m++){var b=d[h[m]],x=b.items,S=b.cateAxisId,y=x.filter(function(M){return mi(M.type).indexOf("Bar")>=0});if(y&&y.length){var _=y[0].type.defaultProps,w=_!==void 0?vt(vt({},_),y[0].props):y[0].props,E=w.barSize,P=w[S];s[P]||(s[P]=[]);var A=Me(E)?n:E;s[P].push({item:y[0],stackList:y.slice(1),barSize:Me(A)?void 0:oa(A,r,0)})}}return s},ote=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,o=t.sizeList,s=o===void 0?[]:o,l=t.maxBarSize,u=s.length;if(u<1)return null;var f=oa(n,i,0,!0),d,h=[];if(s[0].barSize===+s[0].barSize){var m=!1,v=i/u,b=s.reduce(function(E,P){return E+P.barSize||0},0);b+=(u-1)*f,b>=i&&(b-=(u-1)*f,f=0),b>=i&&v>0&&(m=!0,v*=.9,b=u*v);var x=(i-b)/2>>0,S={offset:x-f,size:0};d=s.reduce(function(E,P){var A={item:P.item,position:{offset:S.offset+S.size+f,size:m?v:P.barSize}},M=[].concat(HO(E),[A]);return S=M[M.length-1].position,P.stackList&&P.stackList.length&&P.stackList.forEach(function(C){M.push({item:C,position:S})}),M},h)}else{var y=oa(r,i,0,!0);i-2*y-(u-1)*f<=0&&(f=0);var _=(i-2*y-(u-1)*f)/u;_>1&&(_>>=0);var w=l===+l?Math.min(_,l):_;d=s.reduce(function(E,P,A){var M=[].concat(HO(E),[{item:P.item,position:{offset:y+(_+f)*A+(_-w)/2,size:w}}]);return P.stackList&&P.stackList.length&&P.stackList.forEach(function(C){M.push({item:C,position:M[M.length-1].position})}),M},h)}return d},ate=function(t,n,r,i){var o=r.children,s=r.width,l=r.margin,u=s-(l.left||0)-(l.right||0),f=Bj({children:o,legendWidth:u});if(f){var d=i||{},h=d.width,m=d.height,v=f.align,b=f.verticalAlign,x=f.layout;if((x==="vertical"||x==="horizontal"&&b==="middle")&&v!=="center"&&ie(t[v]))return vt(vt({},t),{},as({},v,t[v]+(h||0)));if((x==="horizontal"||x==="vertical"&&v==="center")&&b!=="middle"&&ie(t[b]))return vt(vt({},t),{},as({},b,t[b]+(m||0)))}return t},ste=function(t,n,r){return Me(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},Fj=function(t,n,r,i,o){var s=n.props.children,l=Ar(s,Xp).filter(function(f){return ste(i,o,f.props.direction)});if(l&&l.length){var u=l.map(function(f){return f.props.dataKey});return t.reduce(function(f,d){var h=Bn(d,r);if(Me(h))return f;var m=Array.isArray(h)?[Gp(h),Ki(h)]:[h,h],v=u.reduce(function(b,x){var S=Bn(d,x,0),y=m[0]-Math.abs(Array.isArray(S)?S[0]:S),_=m[1]+Math.abs(Array.isArray(S)?S[1]:S);return[Math.min(y,b[0]),Math.max(_,b[1])]},[1/0,-1/0]);return[Math.min(v[0],f[0]),Math.max(v[1],f[1])]},[1/0,-1/0])}return null},lte=function(t,n,r,i,o){var s=n.map(function(l){return Fj(t,l,r,o,i)}).filter(function(l){return!Me(l)});return s&&s.length?s.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]):null},Vj=function(t,n,r,i,o){var s=n.map(function(u){var f=u.props.dataKey;return r==="number"&&f&&Fj(t,u,f,i)||vu(t,f,r,o)});if(r==="number")return s.reduce(function(u,f){return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);var l={};return s.reduce(function(u,f){for(var d=0,h=f.length;d<h;d++)l[f[d]]||(l[f[d]]=!0,u.push(f[d]));return u},[])},Uj=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},Wj=function(t,n,r,i){if(i)return t.map(function(u){return u.coordinate});var o,s,l=t.map(function(u){return u.coordinate===n&&(o=!0),u.coordinate===r&&(s=!0),u.coordinate});return o||l.push(n),s||l.push(r),l},fi=function(t,n,r){if(!t)return null;var i=t.scale,o=t.duplicateDomain,s=t.type,l=t.range,u=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,f=(n||r)&&s==="category"&&i.bandwidth?i.bandwidth()/u:0;if(f=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?Pr(l[0]-l[1])*2*f:f,n&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(h){var m=o?o.indexOf(h):h;return{coordinate:i(m)+f,value:h,offset:f}});return d.filter(function(h){return!Qs(h.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(h,m){return{coordinate:i(h)+f,value:h,index:m,offset:f}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(h){return{coordinate:i(h)+f,value:h,offset:f}}):i.domain().map(function(h,m){return{coordinate:i(h)+f,value:o?o[h]:h,index:m,offset:f}})},jv=new WeakMap,Yf=function(t,n){if(typeof n!="function")return t;jv.has(t)||jv.set(t,new WeakMap);var r=jv.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},ute=function(t,n,r){var i=t.scale,o=t.type,s=t.layout,l=t.axisType;if(i==="auto")return s==="radial"&&l==="radiusAxis"?{scale:Ku(),realScaleType:"band"}:s==="radial"&&l==="angleAxis"?{scale:xd(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:mu(),realScaleType:"point"}:o==="category"?{scale:Ku(),realScaleType:"band"}:{scale:xd(),realScaleType:"linear"};if(ia(i)){var u="scale".concat(Np(i));return{scale:(zO[u]||mu)(),realScaleType:zO[u]?u:"point"}}return Pe(i)?{scale:i}:{scale:mu(),realScaleType:"point"}},GO=1e-4,cte=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),o=Math.min(i[0],i[1])-GO,s=Math.max(i[0],i[1])+GO,l=t(n[0]),u=t(n[r-1]);(l<o||l>s||u<o||u>s)&&t.domain([n[0],n[r-1]])}},fte=function(t,n){if(!t)return null;for(var r=0,i=t.length;r<i;r++)if(t[r].item===n)return t[r].position;return null},hte=function(t,n){if(!n||n.length!==2||!ie(n[0])||!ie(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),o=[t[0],t[1]];return(!ie(t[0])||t[0]<r)&&(o[0]=r),(!ie(t[1])||t[1]>i)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]<r&&(o[1]=r),o},dte=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,s=0,l=0;l<n;++l){var u=Qs(t[l][r][1])?t[l][r][0]:t[l][r][1];u>=0?(t[l][r][0]=o,t[l][r][1]=o+u,o=t[l][r][1]):(t[l][r][0]=s,t[l][r][1]=s+u,s=t[l][r][1])}},pte=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,s=0;s<n;++s){var l=Qs(t[s][r][1])?t[s][r][0]:t[s][r][1];l>=0?(t[s][r][0]=o,t[s][r][1]=o+l,o=t[s][r][1]):(t[s][r][0]=0,t[s][r][1]=0)}},mte={sign:dte,expand:MU,none:gs,silhouette:CU,wiggle:jU,positive:pte},vte=function(t,n,r){var i=n.map(function(l){return l.props.dataKey}),o=mte[r],s=kU().keys(i).value(function(l,u){return+Bn(l,u,0)}).order(hy).offset(o);return s(t)},gte=function(t,n,r,i,o,s){if(!t)return null;var l=s?n.reverse():n,u={},f=l.reduce(function(h,m){var v,b=(v=m.type)!==null&&v!==void 0&&v.defaultProps?vt(vt({},m.type.defaultProps),m.props):m.props,x=b.stackId,S=b.hide;if(S)return h;var y=b[r],_=h[y]||{hasStack:!1,stackGroups:{}};if(Ct(x)){var w=_.stackGroups[x]||{numericAxisId:r,cateAxisId:i,items:[]};w.items.push(m),_.hasStack=!0,_.stackGroups[x]=w}else _.stackGroups[$c("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[m]};return vt(vt({},h),{},as({},y,_))},u),d={};return Object.keys(f).reduce(function(h,m){var v=f[m];if(v.hasStack){var b={};v.stackGroups=Object.keys(v.stackGroups).reduce(function(x,S){var y=v.stackGroups[S];return vt(vt({},x),{},as({},S,{numericAxisId:r,cateAxisId:i,items:y.items,stackedData:vte(t,y.items,o)}))},b)}return vt(vt({},h),{},as({},m,v))},d)},yte=function(t,n){var r=n.realScaleType,i=n.type,o=n.tickCount,s=n.originalDomain,l=n.allowDecimals,u=r||n.scale;if(u!=="auto"&&u!=="linear")return null;if(o&&i==="number"&&s&&(s[0]==="auto"||s[1]==="auto")){var f=t.domain();if(!f.length)return null;var d=kee(f,o,l);return t.domain([Gp(d),Ki(d)]),{niceTicks:d}}if(o&&i==="number"){var h=t.domain(),m=Mee(h,o,l);return{niceTicks:m}}return null};function KO(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,s=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Me(i[t.dataKey])){var l=qh(n,"value",i[t.dataKey]);if(l)return l.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var u=Bn(i,Me(s)?t.dataKey:s);return Me(u)?null:t.scale(u)}var qO=function(t){var n=t.axis,r=t.ticks,i=t.offset,o=t.bandSize,s=t.entry,l=t.index;if(n.type==="category")return r[l]?r[l].coordinate+i:null;var u=Bn(s,n.dataKey,n.domain[l]);return Me(u)?null:n.scale(u)-o/2+i},xte=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return i<=0&&o>=0?0:o<0?o:i}return r[0]},_te=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?vt(vt({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(Ct(o)){var s=n[o];if(s){var l=s.items.indexOf(t);return l>=0?s.stackedData[l]:null}}return null},bte=function(t){return t.reduce(function(n,r){return[Gp(r.concat([n[0]]).filter(ie)),Ki(r.concat([n[1]]).filter(ie))]},[1/0,-1/0])},Hj=function(t,n,r){return Object.keys(t).reduce(function(i,o){var s=t[o],l=s.stackedData,u=l.reduce(function(f,d){var h=bte(d.slice(n,r+1));return[Math.min(f[0],h[0]),Math.max(f[1],h[1])]},[1/0,-1/0]);return[Math.min(u[0],i[0]),Math.max(u[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},XO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,YO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Vy=function(t,n,r){if(Pe(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(ie(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(XO.test(t[0])){var o=+XO.exec(t[0])[1];i[0]=n[0]-o}else Pe(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(ie(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(YO.test(t[1])){var s=+YO.exec(t[1])[1];i[1]=n[1]+s}else Pe(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Td=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var o=k_(n,function(h){return h.coordinate}),s=1/0,l=1,u=o.length;l<u;l++){var f=o[l],d=o[l-1];s=Math.min((f.coordinate||0)-(d.coordinate||0),s)}return s===1/0?0:s}return r?void 0:0},QO=function(t,n,r){return!t||!t.length||Ju(t,ar(r,"type.defaultProps.domain"))?n:t},Zj=function(t,n){var r=t.type.defaultProps?vt(vt({},t.type.defaultProps),t.props):t.props,i=r.dataKey,o=r.name,s=r.unit,l=r.formatter,u=r.tooltipType,f=r.chartType,d=r.hide;return vt(vt({},Ee(t,!1)),{},{dataKey:i,unit:s,formatter:l,name:o||i,color:n1(t),value:Bn(n,i),type:u,payload:n,chartType:f,hide:d})};function ic(e){"@babel/helpers - typeof";return ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ic(e)}function JO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JO(Object(n),!0).forEach(function(r){wte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wte(e,t,n){return t=Ste(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ste(e){var t=Pte(e,"string");return ic(t)=="symbol"?t:t+""}function Pte(e,t){if(ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ad=Math.PI/180,Ote=function(t){return t*180/Math.PI},Ht=function(t,n,r,i){return{x:t+Math.cos(-Ad*i)*r,y:n+Math.sin(-Ad*i)*r}},Tte=function(t,n){var r=t.x,i=t.y,o=n.x,s=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(i-s,2))},Ate=function(t,n){var r=t.x,i=t.y,o=n.cx,s=n.cy,l=Tte({x:r,y:i},{x:o,y:s});if(l<=0)return{radius:l};var u=(r-o)/l,f=Math.acos(u);return i>s&&(f=2*Math.PI-f),{radius:l,angle:Ote(f),angleInRadian:f}},Ete=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360),s=Math.min(i,o);return{startAngle:n-s*360,endAngle:r-s*360}},kte=function(t,n){var r=n.startAngle,i=n.endAngle,o=Math.floor(r/360),s=Math.floor(i/360),l=Math.min(o,s);return t+l*360},tT=function(t,n){var r=t.x,i=t.y,o=Ate({x:r,y:i},n),s=o.radius,l=o.angle,u=n.innerRadius,f=n.outerRadius;if(s<u||s>f)return!1;if(s===0)return!0;var d=Ete(n),h=d.startAngle,m=d.endAngle,v=l,b;if(h<=m){for(;v>m;)v-=360;for(;v<h;)v+=360;b=v>=h&&v<=m}else{for(;v>h;)v-=360;for(;v<m;)v+=360;b=v>=m&&v<=h}return b?eT(eT({},n),{},{radius:s,angle:kte(v,n)}):null};function oc(e){"@babel/helpers - typeof";return oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oc(e)}var Mte=["offset"];function Cte(e){return Lte(e)||Nte(e)||$te(e)||jte()}function jte(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
351
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $te(e,t){if(e){if(typeof e=="string")return Uy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uy(e,t)}}function Nte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lte(e){if(Array.isArray(e))return Uy(e)}function Uy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ite(e,t){if(e==null)return{};var n=Dte(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Dte(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function nT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nT(Object(n),!0).forEach(function(r){Rte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rte(e,t,n){return t=zte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zte(e){var t=Bte(e,"string");return oc(t)=="symbol"?t:t+""}function Bte(e,t){if(oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ac.apply(this,arguments)}var Fte=function(t){var n=t.value,r=t.formatter,i=Me(t.children)?n:t.children;return Pe(r)?r(i):i},Vte=function(t,n){var r=Pr(n-t),i=Math.min(Math.abs(n-t),360);return r*i},Ute=function(t,n,r){var i=t.position,o=t.viewBox,s=t.offset,l=t.className,u=o,f=u.cx,d=u.cy,h=u.innerRadius,m=u.outerRadius,v=u.startAngle,b=u.endAngle,x=u.clockWise,S=(h+m)/2,y=Vte(v,b),_=y>=0?1:-1,w,E;i==="insideStart"?(w=v+_*s,E=x):i==="insideEnd"?(w=b-_*s,E=!x):i==="end"&&(w=b+_*s,E=x),E=y<=0?E:!E;var P=Ht(f,d,S,w),A=Ht(f,d,S,w+(E?1:-1)*359),M="M".concat(P.x,",").concat(P.y,`
|
|
352
|
+
A`).concat(S,",").concat(S,",0,1,").concat(E?0:1,`,
|
|
353
|
+
`).concat(A.x,",").concat(A.y),C=Me(t.id)?$c("recharts-radial-line-"):t.id;return D.createElement("text",ac({},r,{dominantBaseline:"central",className:Ne("recharts-radial-bar-label",l)}),D.createElement("defs",null,D.createElement("path",{id:C,d:M})),D.createElement("textPath",{xlinkHref:"#".concat(C)},n))},Wte=function(t){var n=t.viewBox,r=t.offset,i=t.position,o=n,s=o.cx,l=o.cy,u=o.innerRadius,f=o.outerRadius,d=o.startAngle,h=o.endAngle,m=(d+h)/2;if(i==="outside"){var v=Ht(s,l,f+r,m),b=v.x,x=v.y;return{x:b,y:x,textAnchor:b>=s?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:s,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:s,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:s,y:l,textAnchor:"middle",verticalAnchor:"end"};var S=(u+f)/2,y=Ht(s,l,S,m),_=y.x,w=y.y;return{x:_,y:w,textAnchor:"middle",verticalAnchor:"middle"}},Hte=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,o=t.position,s=n,l=s.x,u=s.y,f=s.width,d=s.height,h=d>=0?1:-1,m=h*i,v=h>0?"end":"start",b=h>0?"start":"end",x=f>=0?1:-1,S=x*i,y=x>0?"end":"start",_=x>0?"start":"end";if(o==="top"){var w={x:l+f/2,y:u-h*i,textAnchor:"middle",verticalAnchor:v};return Et(Et({},w),r?{height:Math.max(u-r.y,0),width:f}:{})}if(o==="bottom"){var E={x:l+f/2,y:u+d+m,textAnchor:"middle",verticalAnchor:b};return Et(Et({},E),r?{height:Math.max(r.y+r.height-(u+d),0),width:f}:{})}if(o==="left"){var P={x:l-S,y:u+d/2,textAnchor:y,verticalAnchor:"middle"};return Et(Et({},P),r?{width:Math.max(P.x-r.x,0),height:d}:{})}if(o==="right"){var A={x:l+f+S,y:u+d/2,textAnchor:_,verticalAnchor:"middle"};return Et(Et({},A),r?{width:Math.max(r.x+r.width-A.x,0),height:d}:{})}var M=r?{width:f,height:d}:{};return o==="insideLeft"?Et({x:l+S,y:u+d/2,textAnchor:_,verticalAnchor:"middle"},M):o==="insideRight"?Et({x:l+f-S,y:u+d/2,textAnchor:y,verticalAnchor:"middle"},M):o==="insideTop"?Et({x:l+f/2,y:u+m,textAnchor:"middle",verticalAnchor:b},M):o==="insideBottom"?Et({x:l+f/2,y:u+d-m,textAnchor:"middle",verticalAnchor:v},M):o==="insideTopLeft"?Et({x:l+S,y:u+m,textAnchor:_,verticalAnchor:b},M):o==="insideTopRight"?Et({x:l+f-S,y:u+m,textAnchor:y,verticalAnchor:b},M):o==="insideBottomLeft"?Et({x:l+S,y:u+d-m,textAnchor:_,verticalAnchor:v},M):o==="insideBottomRight"?Et({x:l+f-S,y:u+d-m,textAnchor:y,verticalAnchor:v},M):Ks(o)&&(ie(o.x)||Vo(o.x))&&(ie(o.y)||Vo(o.y))?Et({x:l+oa(o.x,f),y:u+oa(o.y,d),textAnchor:"end",verticalAnchor:"end"},M):Et({x:l+f/2,y:u+d/2,textAnchor:"middle",verticalAnchor:"middle"},M)},Zte=function(t){return"cx"in t&&ie(t.cx)};function tn(e){var t=e.offset,n=t===void 0?5:t,r=Ite(e,Mte),i=Et({offset:n},r),o=i.viewBox,s=i.position,l=i.value,u=i.children,f=i.content,d=i.className,h=d===void 0?"":d,m=i.textBreakAll;if(!o||Me(l)&&Me(u)&&!j.isValidElement(f)&&!Pe(f))return null;if(j.isValidElement(f))return j.cloneElement(f,i);var v;if(Pe(f)){if(v=j.createElement(f,i),j.isValidElement(v))return v}else v=Fte(i);var b=Zte(o),x=Ee(i,!0);if(b&&(s==="insideStart"||s==="insideEnd"||s==="end"))return Ute(i,v,x);var S=b?Wte(i):Hte(i);return D.createElement(fd,ac({className:Ne("recharts-label",h)},x,S,{breakAll:m}),v)}tn.displayName="Label";var Gj=function(t){var n=t.cx,r=t.cy,i=t.angle,o=t.startAngle,s=t.endAngle,l=t.r,u=t.radius,f=t.innerRadius,d=t.outerRadius,h=t.x,m=t.y,v=t.top,b=t.left,x=t.width,S=t.height,y=t.clockWise,_=t.labelViewBox;if(_)return _;if(ie(x)&&ie(S)){if(ie(h)&&ie(m))return{x:h,y:m,width:x,height:S};if(ie(v)&&ie(b))return{x:v,y:b,width:x,height:S}}return ie(h)&&ie(m)?{x:h,y:m,width:0,height:0}:ie(n)&&ie(r)?{cx:n,cy:r,startAngle:o||i||0,endAngle:s||i||0,innerRadius:f||0,outerRadius:d||u||l||0,clockWise:y}:t.viewBox?t.viewBox:{}},Gte=function(t,n){return t?t===!0?D.createElement(tn,{key:"label-implicit",viewBox:n}):Ct(t)?D.createElement(tn,{key:"label-implicit",viewBox:n,value:t}):j.isValidElement(t)?t.type===tn?j.cloneElement(t,{key:"label-implicit",viewBox:n}):D.createElement(tn,{key:"label-implicit",content:t,viewBox:n}):Pe(t)?D.createElement(tn,{key:"label-implicit",content:t,viewBox:n}):Ks(t)?D.createElement(tn,ac({viewBox:n},t,{key:"label-implicit"})):null:null},Kte=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,o=Gj(t),s=Ar(i,tn).map(function(u,f){return j.cloneElement(u,{viewBox:n||o,key:"label-".concat(f)})});if(!r)return s;var l=Gte(t.label,n||o);return[l].concat(Cte(s))};tn.parseViewBox=Gj;tn.renderCallByParent=Kte;function qte(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Xte=qte;const Yte=Ze(Xte);function sc(e){"@babel/helpers - typeof";return sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sc(e)}var Qte=["valueAccessor"],Jte=["data","dataKey","clockWise","id","textBreakAll"];function ene(e){return ine(e)||rne(e)||nne(e)||tne()}function tne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
354
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nne(e,t){if(e){if(typeof e=="string")return Wy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wy(e,t)}}function rne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ine(e){if(Array.isArray(e))return Wy(e)}function Wy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ed(){return Ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ed.apply(this,arguments)}function rT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function iT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rT(Object(n),!0).forEach(function(r){one(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function one(e,t,n){return t=ane(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ane(e){var t=sne(e,"string");return sc(t)=="symbol"?t:t+""}function sne(e,t){if(sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oT(e,t){if(e==null)return{};var n=lne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lne(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var une=function(t){return Array.isArray(t.value)?Yte(t.value):t.value};function Hr(e){var t=e.valueAccessor,n=t===void 0?une:t,r=oT(e,Qte),i=r.data,o=r.dataKey,s=r.clockWise,l=r.id,u=r.textBreakAll,f=oT(r,Jte);return!i||!i.length?null:D.createElement(ft,{className:"recharts-label-list"},i.map(function(d,h){var m=Me(o)?n(d,h):Bn(d&&d.payload,o),v=Me(l)?{}:{id:"".concat(l,"-").concat(h)};return D.createElement(tn,Ed({},Ee(d,!0),f,v,{parentViewBox:d.parentViewBox,value:m,textBreakAll:u,viewBox:tn.parseViewBox(Me(s)?d:iT(iT({},d),{},{clockWise:s})),key:"label-".concat(h),index:h}))}))}Hr.displayName="LabelList";function cne(e,t){return e?e===!0?D.createElement(Hr,{key:"labelList-implicit",data:t}):D.isValidElement(e)||Pe(e)?D.createElement(Hr,{key:"labelList-implicit",data:t,content:e}):Ks(e)?D.createElement(Hr,Ed({data:t},e,{key:"labelList-implicit"})):null:null}function fne(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=Ar(r,Hr).map(function(s,l){return j.cloneElement(s,{data:t,key:"labelList-".concat(l)})});if(!n)return i;var o=cne(e.label,t);return[o].concat(ene(i))}Hr.renderCallByParent=fne;function lc(e){"@babel/helpers - typeof";return lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lc(e)}function Hy(){return Hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hy.apply(this,arguments)}function aT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aT(Object(n),!0).forEach(function(r){hne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hne(e,t,n){return t=dne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dne(e){var t=pne(e,"string");return lc(t)=="symbol"?t:t+""}function pne(e,t){if(lc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mne=function(t,n){var r=Pr(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Qf=function(t){var n=t.cx,r=t.cy,i=t.radius,o=t.angle,s=t.sign,l=t.isExternal,u=t.cornerRadius,f=t.cornerIsExternal,d=u*(l?1:-1)+i,h=Math.asin(u/d)/Ad,m=f?o:o+s*h,v=Ht(n,r,d,m),b=Ht(n,r,i,m),x=f?o-s*h:o,S=Ht(n,r,d*Math.cos(h*Ad),x);return{center:v,circleTangency:b,lineTangency:S,theta:h}},Kj=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,s=t.startAngle,l=t.endAngle,u=mne(s,l),f=s+u,d=Ht(n,r,o,s),h=Ht(n,r,o,f),m="M ".concat(d.x,",").concat(d.y,`
|
|
355
|
+
A `).concat(o,",").concat(o,`,0,
|
|
356
|
+
`).concat(+(Math.abs(u)>180),",").concat(+(s>f),`,
|
|
357
|
+
`).concat(h.x,",").concat(h.y,`
|
|
358
|
+
`);if(i>0){var v=Ht(n,r,i,s),b=Ht(n,r,i,f);m+="L ".concat(b.x,",").concat(b.y,`
|
|
359
|
+
A `).concat(i,",").concat(i,`,0,
|
|
360
|
+
`).concat(+(Math.abs(u)>180),",").concat(+(s<=f),`,
|
|
361
|
+
`).concat(v.x,",").concat(v.y," Z")}else m+="L ".concat(n,",").concat(r," Z");return m},vne=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,s=t.cornerRadius,l=t.forceCornerRadius,u=t.cornerIsExternal,f=t.startAngle,d=t.endAngle,h=Pr(d-f),m=Qf({cx:n,cy:r,radius:o,angle:f,sign:h,cornerRadius:s,cornerIsExternal:u}),v=m.circleTangency,b=m.lineTangency,x=m.theta,S=Qf({cx:n,cy:r,radius:o,angle:d,sign:-h,cornerRadius:s,cornerIsExternal:u}),y=S.circleTangency,_=S.lineTangency,w=S.theta,E=u?Math.abs(f-d):Math.abs(f-d)-x-w;if(E<0)return l?"M ".concat(b.x,",").concat(b.y,`
|
|
362
|
+
a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0
|
|
363
|
+
a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0
|
|
364
|
+
`):Kj({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:f,endAngle:d});var P="M ".concat(b.x,",").concat(b.y,`
|
|
365
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(h<0),",").concat(v.x,",").concat(v.y,`
|
|
366
|
+
A`).concat(o,",").concat(o,",0,").concat(+(E>180),",").concat(+(h<0),",").concat(y.x,",").concat(y.y,`
|
|
367
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(h<0),",").concat(_.x,",").concat(_.y,`
|
|
368
|
+
`);if(i>0){var A=Qf({cx:n,cy:r,radius:i,angle:f,sign:h,isExternal:!0,cornerRadius:s,cornerIsExternal:u}),M=A.circleTangency,C=A.lineTangency,N=A.theta,B=Qf({cx:n,cy:r,radius:i,angle:d,sign:-h,isExternal:!0,cornerRadius:s,cornerIsExternal:u}),z=B.circleTangency,R=B.lineTangency,K=B.theta,H=u?Math.abs(f-d):Math.abs(f-d)-N-K;if(H<0&&s===0)return"".concat(P,"L").concat(n,",").concat(r,"Z");P+="L".concat(R.x,",").concat(R.y,`
|
|
369
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(h<0),",").concat(z.x,",").concat(z.y,`
|
|
370
|
+
A`).concat(i,",").concat(i,",0,").concat(+(H>180),",").concat(+(h>0),",").concat(M.x,",").concat(M.y,`
|
|
371
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(h<0),",").concat(C.x,",").concat(C.y,"Z")}else P+="L".concat(n,",").concat(r,"Z");return P},gne={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},qj=function(t){var n=sT(sT({},gne),t),r=n.cx,i=n.cy,o=n.innerRadius,s=n.outerRadius,l=n.cornerRadius,u=n.forceCornerRadius,f=n.cornerIsExternal,d=n.startAngle,h=n.endAngle,m=n.className;if(s<o||d===h)return null;var v=Ne("recharts-sector",m),b=s-o,x=oa(l,b,0,!0),S;return x>0&&Math.abs(d-h)<360?S=vne({cx:r,cy:i,innerRadius:o,outerRadius:s,cornerRadius:Math.min(x,b/2),forceCornerRadius:u,cornerIsExternal:f,startAngle:d,endAngle:h}):S=Kj({cx:r,cy:i,innerRadius:o,outerRadius:s,startAngle:d,endAngle:h}),D.createElement("path",Hy({},Ee(n,!0),{className:v,d:S,role:"img"}))};function uc(e){"@babel/helpers - typeof";return uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uc(e)}function Zy(){return Zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zy.apply(this,arguments)}function lT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function uT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lT(Object(n),!0).forEach(function(r){yne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yne(e,t,n){return t=xne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xne(e){var t=_ne(e,"string");return uc(t)=="symbol"?t:t+""}function _ne(e,t){if(uc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cT={curveBasisClosed:yU,curveBasisOpen:xU,curveBasis:gU,curveBumpX:rU,curveBumpY:iU,curveLinearClosed:_U,curveLinear:Ip,curveMonotoneX:bU,curveMonotoneY:wU,curveNatural:SU,curveStep:PU,curveStepAfter:TU,curveStepBefore:OU},Jf=function(t){return t.x===+t.x&&t.y===+t.y},Rl=function(t){return t.x},zl=function(t){return t.y},bne=function(t,n){if(Pe(t))return t;var r="curve".concat(Np(t));return(r==="curveMonotone"||r==="curveBump")&&n?cT["".concat(r).concat(n==="vertical"?"Y":"X")]:cT[r]||Ip},wne=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,o=i===void 0?[]:i,s=t.baseLine,l=t.layout,u=t.connectNulls,f=u===void 0?!1:u,d=bne(r,l),h=f?o.filter(function(x){return Jf(x)}):o,m;if(Array.isArray(s)){var v=f?s.filter(function(x){return Jf(x)}):s,b=h.map(function(x,S){return uT(uT({},x),{},{base:v[S]})});return l==="vertical"?m=Uf().y(zl).x1(Rl).x0(function(x){return x.base.x}):m=Uf().x(Rl).y1(zl).y0(function(x){return x.base.y}),m.defined(Jf).curve(d),m(b)}return l==="vertical"&&ie(s)?m=Uf().y(zl).x1(Rl).x0(s):ie(s)?m=Uf().x(Rl).y1(zl).y0(s):m=YM().x(Rl).y(zl),m.defined(Jf).curve(d),m(h)},gu=function(t){var n=t.className,r=t.points,i=t.path,o=t.pathRef;if((!r||!r.length)&&!i)return null;var s=r&&r.length?wne(t):i;return j.createElement("path",Zy({},Ee(t,!1),Xh(t),{className:Ne("recharts-curve",n),d:s,ref:o}))},Xj={exports:{}},Sne="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Pne=Sne,One=Pne;function Yj(){}function Qj(){}Qj.resetWarningCache=Yj;var Tne=function(){function e(r,i,o,s,l,u){if(u!==One){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Qj,resetWarningCache:Yj};return n.PropTypes=n,n};Xj.exports=Tne();var Ane=Xj.exports;const Re=Ze(Ane),{getOwnPropertyNames:Ene,getOwnPropertySymbols:kne}=Object,{hasOwnProperty:Mne}=Object.prototype;function $v(e,t){return function(r,i,o){return e(r,i,o)&&t(r,i,o)}}function eh(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);const{cache:o}=i,s=o.get(n),l=o.get(r);if(s&&l)return s===r&&l===n;o.set(n,r),o.set(r,n);const u=e(n,r,i);return o.delete(n),o.delete(r),u}}function Cne(e){return e!=null?e[Symbol.toStringTag]:void 0}function fT(e){return Ene(e).concat(kne(e))}const jne=Object.hasOwn||((e,t)=>Mne.call(e,t));function ma(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const $ne="__v",Nne="__o",Lne="_owner",{getOwnPropertyDescriptor:hT,keys:dT}=Object;function Ine(e,t){return e.byteLength===t.byteLength&&kd(new Uint8Array(e),new Uint8Array(t))}function Dne(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Rne(e,t){return e.byteLength===t.byteLength&&kd(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function zne(e,t){return ma(e.getTime(),t.getTime())}function Bne(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Fne(e,t){return e===t}function pT(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),o=e.entries();let s,l,u=0;for(;(s=o.next())&&!s.done;){const f=t.entries();let d=!1,h=0;for(;(l=f.next())&&!l.done;){if(i[h]){h++;continue}const m=s.value,v=l.value;if(n.equals(m[0],v[0],u,h,e,t,n)&&n.equals(m[1],v[1],m[0],v[0],e,t,n)){d=i[h]=!0;break}h++}if(!d)return!1;u++}return!0}const Vne=ma;function Une(e,t,n){const r=dT(e);let i=r.length;if(dT(t).length!==i)return!1;for(;i-- >0;)if(!Jj(e,t,n,r[i]))return!1;return!0}function Bl(e,t,n){const r=fT(e);let i=r.length;if(fT(t).length!==i)return!1;let o,s,l;for(;i-- >0;)if(o=r[i],!Jj(e,t,n,o)||(s=hT(e,o),l=hT(t,o),(s||l)&&(!s||!l||s.configurable!==l.configurable||s.enumerable!==l.enumerable||s.writable!==l.writable)))return!1;return!0}function Wne(e,t){return ma(e.valueOf(),t.valueOf())}function Hne(e,t){return e.source===t.source&&e.flags===t.flags}function mT(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),o=e.values();let s,l;for(;(s=o.next())&&!s.done;){const u=t.values();let f=!1,d=0;for(;(l=u.next())&&!l.done;){if(!i[d]&&n.equals(s.value,l.value,s.value,l.value,e,t,n)){f=i[d]=!0;break}d++}if(!f)return!1}return!0}function kd(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Zne(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Jj(e,t,n,r){return(r===Lne||r===Nne||r===$ne)&&(e.$$typeof||t.$$typeof)?!0:jne(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Gne="[object ArrayBuffer]",Kne="[object Arguments]",qne="[object Boolean]",Xne="[object DataView]",Yne="[object Date]",Qne="[object Error]",Jne="[object Map]",ere="[object Number]",tre="[object Object]",nre="[object RegExp]",rre="[object Set]",ire="[object String]",ore={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},are="[object URL]",sre=Object.prototype.toString;function lre({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:s,areNumbersEqual:l,areObjectsEqual:u,arePrimitiveWrappersEqual:f,areRegExpsEqual:d,areSetsEqual:h,areTypedArraysEqual:m,areUrlsEqual:v,unknownTagComparators:b}){return function(S,y,_){if(S===y)return!0;if(S==null||y==null)return!1;const w=typeof S;if(w!==typeof y)return!1;if(w!=="object")return w==="number"?l(S,y,_):w==="function"?o(S,y,_):!1;const E=S.constructor;if(E!==y.constructor)return!1;if(E===Object)return u(S,y,_);if(Array.isArray(S))return t(S,y,_);if(E===Date)return r(S,y,_);if(E===RegExp)return d(S,y,_);if(E===Map)return s(S,y,_);if(E===Set)return h(S,y,_);const P=sre.call(S);if(P===Yne)return r(S,y,_);if(P===nre)return d(S,y,_);if(P===Jne)return s(S,y,_);if(P===rre)return h(S,y,_);if(P===tre)return typeof S.then!="function"&&typeof y.then!="function"&&u(S,y,_);if(P===are)return v(S,y,_);if(P===Qne)return i(S,y,_);if(P===Kne)return u(S,y,_);if(ore[P])return m(S,y,_);if(P===Gne)return e(S,y,_);if(P===Xne)return n(S,y,_);if(P===qne||P===ere||P===ire)return f(S,y,_);if(b){let A=b[P];if(!A){const M=Cne(S);M&&(A=b[M])}if(A)return A(S,y,_)}return!1}}function ure({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Ine,areArraysEqual:n?Bl:Dne,areDataViewsEqual:Rne,areDatesEqual:zne,areErrorsEqual:Bne,areFunctionsEqual:Fne,areMapsEqual:n?$v(pT,Bl):pT,areNumbersEqual:Vne,areObjectsEqual:n?Bl:Une,arePrimitiveWrappersEqual:Wne,areRegExpsEqual:Hne,areSetsEqual:n?$v(mT,Bl):mT,areTypedArraysEqual:n?$v(kd,Bl):kd,areUrlsEqual:Zne,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const i=eh(r.areArraysEqual),o=eh(r.areMapsEqual),s=eh(r.areObjectsEqual),l=eh(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return r}function cre(e){return function(t,n,r,i,o,s,l){return e(t,n,l)}}function fre({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(l,u){const{cache:f=e?new WeakMap:void 0,meta:d}=n();return t(l,u,{cache:f,equals:r,meta:d,strict:i})};if(e)return function(l,u){return t(l,u,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};const o={cache:void 0,equals:r,meta:void 0,strict:i};return function(l,u){return t(l,u,o)}}const hre=yo();yo({strict:!0});yo({circular:!0});yo({circular:!0,strict:!0});yo({createInternalComparator:()=>ma});yo({strict:!0,createInternalComparator:()=>ma});yo({circular:!0,createInternalComparator:()=>ma});yo({circular:!0,createInternalComparator:()=>ma,strict:!0});function yo(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,o=ure(e),s=lre(o),l=n?n(s):cre(s);return fre({circular:t,comparator:s,createState:r,equals:l,strict:i})}function dre(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function vT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(o){n<0&&(n=o),o-n>t?(e(o),n=-1):dre(i)};requestAnimationFrame(r)}function Gy(e){"@babel/helpers - typeof";return Gy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gy(e)}function pre(e){return yre(e)||gre(e)||vre(e)||mre()}function mre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
372
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vre(e,t){if(e){if(typeof e=="string")return gT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gT(e,t)}}function gT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yre(e){if(Array.isArray(e))return e}function xre(){var e={},t=function(){return null},n=!1,r=function i(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var s=o,l=pre(s),u=l[0],f=l.slice(1);if(typeof u=="number"){vT(i.bind(null,f),u);return}i(u),vT(i.bind(null,f));return}Gy(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(o){n=!1,r(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function cc(e){"@babel/helpers - typeof";return cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cc(e)}function yT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yT(Object(n),!0).forEach(function(r){e$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e$(e,t,n){return t=_re(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _re(e){var t=bre(e,"string");return cc(t)==="symbol"?t:String(t)}function bre(e,t){if(cc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wre=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(o){return i.includes(o)})})},Sre=function(t){return t},Pre=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},yu=function(t,n){return Object.keys(n).reduce(function(r,i){return xT(xT({},r),{},e$({},i,t(i,n[i])))},{})},_T=function(t,n,r){return t.map(function(i){return"".concat(Pre(i)," ").concat(n,"ms ").concat(r)}).join(",")};function Ore(e,t){return Ere(e)||Are(e,t)||t$(e,t)||Tre()}function Tre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
373
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Are(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Ere(e){if(Array.isArray(e))return e}function kre(e){return jre(e)||Cre(e)||t$(e)||Mre()}function Mre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
374
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t$(e,t){if(e){if(typeof e=="string")return Ky(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ky(e,t)}}function Cre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jre(e){if(Array.isArray(e))return Ky(e)}function Ky(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Md=1e-4,n$=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},r$=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},bT=function(t,n){return function(r){var i=n$(t,n);return r$(i,r)}},$re=function(t,n){return function(r){var i=n$(t,n),o=[].concat(kre(i.map(function(s,l){return s*l}).slice(1)),[0]);return r$(o,r)}},wT=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],o=n[1],s=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,o=0,s=1,l=1;break;case"ease":i=.25,o=.1,s=.25,l=1;break;case"ease-in":i=.42,o=0,s=1,l=1;break;case"ease-out":i=.42,o=0,s=.58,l=1;break;case"ease-in-out":i=0,o=0,s=.58,l=1;break;default:{var u=n[0].split("(");if(u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4){var f=u[1].split(")")[0].split(",").map(function(S){return parseFloat(S)}),d=Ore(f,4);i=d[0],o=d[1],s=d[2],l=d[3]}}}var h=bT(i,s),m=bT(o,l),v=$re(i,s),b=function(y){return y>1?1:y<0?0:y},x=function(y){for(var _=y>1?1:y,w=_,E=0;E<8;++E){var P=h(w)-_,A=v(w);if(Math.abs(P-_)<Md||A<Md)return m(w);w=b(w-P/A)}return m(w)};return x.isStepper=!1,x},Nre=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,o=i===void 0?8:i,s=t.dt,l=s===void 0?17:s,u=function(d,h,m){var v=-(d-h)*r,b=m*o,x=m+(v-b)*l/1e3,S=m*l/1e3+d;return Math.abs(S-h)<Md&&Math.abs(x)<Md?[h,0]:[S,x]};return u.isStepper=!0,u.dt=l,u},Lre=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return wT(i);case"spring":return Nre();default:if(i.split("(")[0]==="cubic-bezier")return wT(i)}return typeof i=="function"?i:null};function fc(e){"@babel/helpers - typeof";return fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fc(e)}function ST(e){return Rre(e)||Dre(e)||i$(e)||Ire()}function Ire(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
375
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rre(e){if(Array.isArray(e))return Xy(e)}function PT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PT(Object(n),!0).forEach(function(r){qy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qy(e,t,n){return t=zre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zre(e){var t=Bre(e,"string");return fc(t)==="symbol"?t:String(t)}function Bre(e,t){if(fc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fre(e,t){return Wre(e)||Ure(e,t)||i$(e,t)||Vre()}function Vre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
376
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i$(e,t){if(e){if(typeof e=="string")return Xy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xy(e,t)}}function Xy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ure(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Wre(e){if(Array.isArray(e))return e}var Cd=function(t,n,r){return t+(n-t)*r},Yy=function(t){var n=t.from,r=t.to;return n!==r},Hre=function e(t,n,r){var i=yu(function(o,s){if(Yy(s)){var l=t(s.from,s.to,s.velocity),u=Fre(l,2),f=u[0],d=u[1];return Vt(Vt({},s),{},{from:f,velocity:d})}return s},n);return r<1?yu(function(o,s){return Yy(s)?Vt(Vt({},s),{},{velocity:Cd(s.velocity,i[o].velocity,r),from:Cd(s.from,i[o].from,r)}):s},n):e(t,i,r-1)};const Zre=function(e,t,n,r,i){var o=wre(e,t),s=o.reduce(function(S,y){return Vt(Vt({},S),{},qy({},y,[e[y],t[y]]))},{}),l=o.reduce(function(S,y){return Vt(Vt({},S),{},qy({},y,{from:e[y],velocity:0,to:t[y]}))},{}),u=-1,f,d,h=function(){return null},m=function(){return yu(function(y,_){return _.from},l)},v=function(){return!Object.values(l).filter(Yy).length},b=function(y){f||(f=y);var _=y-f,w=_/n.dt;l=Hre(n,l,w),i(Vt(Vt(Vt({},e),t),m())),f=y,v()||(u=requestAnimationFrame(h))},x=function(y){d||(d=y);var _=(y-d)/r,w=yu(function(P,A){return Cd.apply(void 0,ST(A).concat([n(_)]))},s);if(i(Vt(Vt(Vt({},e),t),w)),_<1)u=requestAnimationFrame(h);else{var E=yu(function(P,A){return Cd.apply(void 0,ST(A).concat([n(1)]))},s);i(Vt(Vt(Vt({},e),t),E))}};return h=n.isStepper?b:x,function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(u)}}};function Ts(e){"@babel/helpers - typeof";return Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ts(e)}var Gre=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Kre(e,t){if(e==null)return{};var n=qre(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Nv(e){return Jre(e)||Qre(e)||Yre(e)||Xre()}function Xre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
377
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yre(e,t){if(e){if(typeof e=="string")return Qy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qy(e,t)}}function Qre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jre(e){if(Array.isArray(e))return Qy(e)}function Qy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OT(Object(n),!0).forEach(function(r){Yl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yl(e,t,n){return t=o$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o$(r.key),r)}}function nie(e,t,n){return t&&tie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function o$(e){var t=rie(e,"string");return Ts(t)==="symbol"?t:String(t)}function rie(e,t){if(Ts(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ts(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iie(e,t){if(typeof t!="function"&&t!==null)throw new 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&&Jy(e,t)}function Jy(e,t){return Jy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Jy(e,t)}function oie(e){var t=aie();return function(){var r=jd(e),i;if(t){var o=jd(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return e0(this,i)}}function e0(e,t){if(t&&(Ts(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t0(e)}function t0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jd(e){return jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jd(e)}var Ti=function(e){iie(n,e);var t=oie(n);function n(r,i){var o;eie(this,n),o=t.call(this,r,i);var s=o.props,l=s.isActive,u=s.attributeName,f=s.from,d=s.to,h=s.steps,m=s.children,v=s.duration;if(o.handleStyleChange=o.handleStyleChange.bind(t0(o)),o.changeStyle=o.changeStyle.bind(t0(o)),!l||v<=0)return o.state={style:{}},typeof m=="function"&&(o.state={style:d}),e0(o);if(h&&h.length)o.state={style:h[0].style};else if(f){if(typeof m=="function")return o.state={style:f},e0(o);o.state={style:u?Yl({},u,f):f}}else o.state={style:{}};return o}return nie(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,s=i.canBegin;this.mounted=!0,!(!o||!s)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,s=o.isActive,l=o.canBegin,u=o.attributeName,f=o.shouldReAnimate,d=o.to,h=o.from,m=this.state.style;if(l){if(!s){var v={style:u?Yl({},u,d):d};this.state&&m&&(u&&m[u]!==d||!u&&m!==d)&&this.setState(v);return}if(!(hre(i.to,d)&&i.canBegin&&i.isActive)){var b=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var x=b||f?h:i.to;if(this.state&&m){var S={style:u?Yl({},u,x):x};(u&&m[u]!==x||!u&&m!==x)&&this.setState(S)}this.runAnimation(gr(gr({},this.props),{},{from:x,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,s=i.from,l=i.to,u=i.duration,f=i.easing,d=i.begin,h=i.onAnimationEnd,m=i.onAnimationStart,v=Zre(s,l,Lre(f),u,this.changeStyle),b=function(){o.stopJSAnimation=v()};this.manager.start([m,d,b,u,h])}},{key:"runStepAnimation",value:function(i){var o=this,s=i.steps,l=i.begin,u=i.onAnimationStart,f=s[0],d=f.style,h=f.duration,m=h===void 0?0:h,v=function(x,S,y){if(y===0)return x;var _=S.duration,w=S.easing,E=w===void 0?"ease":w,P=S.style,A=S.properties,M=S.onAnimationEnd,C=y>0?s[y-1]:S,N=A||Object.keys(P);if(typeof E=="function"||E==="spring")return[].concat(Nv(x),[o.runJSAnimation.bind(o,{from:C.style,to:P,duration:_,easing:E}),_]);var B=_T(N,_,E),z=gr(gr(gr({},C.style),P),{},{transition:B});return[].concat(Nv(x),[z,_,M]).filter(Sre)};return this.manager.start([u].concat(Nv(s.reduce(v,[d,Math.max(m,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=xre());var o=i.begin,s=i.duration,l=i.attributeName,u=i.to,f=i.easing,d=i.onAnimationStart,h=i.onAnimationEnd,m=i.steps,v=i.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof f=="function"||typeof v=="function"||f==="spring"){this.runJSAnimation(i);return}if(m.length>1){this.runStepAnimation(i);return}var x=l?Yl({},l,u):u,S=_T(Object.keys(x),s,f);b.start([d,o,gr(gr({},x),{},{transition:S}),s,h])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var s=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var u=Kre(i,Gre),f=j.Children.count(o),d=this.state.style;if(typeof o=="function")return o(d);if(!l||f===0||s<=0)return o;var h=function(v){var b=v.props,x=b.style,S=x===void 0?{}:x,y=b.className,_=j.cloneElement(v,gr(gr({},u),{},{style:gr(gr({},S),d),className:y}));return _};return f===1?h(j.Children.only(o)):D.createElement("div",null,j.Children.map(o,function(m){return h(m)}))}}]),n}(j.PureComponent);Ti.displayName="Animate";Ti.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ti.propTypes={from:Re.oneOfType([Re.object,Re.string]),to:Re.oneOfType([Re.object,Re.string]),attributeName:Re.string,duration:Re.number,begin:Re.number,easing:Re.oneOfType([Re.string,Re.func]),steps:Re.arrayOf(Re.shape({duration:Re.number.isRequired,style:Re.object.isRequired,easing:Re.oneOfType([Re.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Re.func]),properties:Re.arrayOf("string"),onAnimationEnd:Re.func})),children:Re.oneOfType([Re.node,Re.func]),isActive:Re.bool,canBegin:Re.bool,onAnimationEnd:Re.func,shouldReAnimate:Re.bool,onAnimationStart:Re.func,onAnimationReStart:Re.func};function hc(e){"@babel/helpers - typeof";return hc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hc(e)}function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$d.apply(this,arguments)}function sie(e,t){return fie(e)||cie(e,t)||uie(e,t)||lie()}function lie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
378
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uie(e,t){if(e){if(typeof e=="string")return TT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TT(e,t)}}function TT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function fie(e){if(Array.isArray(e))return e}function AT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ET(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AT(Object(n),!0).forEach(function(r){hie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hie(e,t,n){return t=die(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function die(e){var t=pie(e,"string");return hc(t)=="symbol"?t:t+""}function pie(e,t){if(hc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kT=function(t,n,r,i,o){var s=Math.min(Math.abs(r)/2,Math.abs(i)/2),l=i>=0?1:-1,u=r>=0?1:-1,f=i>=0&&r>=0||i<0&&r<0?1:0,d;if(s>0&&o instanceof Array){for(var h=[0,0,0,0],m=0,v=4;m<v;m++)h[m]=o[m]>s?s:o[m];d="M".concat(t,",").concat(n+l*h[0]),h[0]>0&&(d+="A ".concat(h[0],",").concat(h[0],",0,0,").concat(f,",").concat(t+u*h[0],",").concat(n)),d+="L ".concat(t+r-u*h[1],",").concat(n),h[1]>0&&(d+="A ".concat(h[1],",").concat(h[1],",0,0,").concat(f,`,
|
|
379
|
+
`).concat(t+r,",").concat(n+l*h[1])),d+="L ".concat(t+r,",").concat(n+i-l*h[2]),h[2]>0&&(d+="A ".concat(h[2],",").concat(h[2],",0,0,").concat(f,`,
|
|
380
|
+
`).concat(t+r-u*h[2],",").concat(n+i)),d+="L ".concat(t+u*h[3],",").concat(n+i),h[3]>0&&(d+="A ".concat(h[3],",").concat(h[3],",0,0,").concat(f,`,
|
|
381
|
+
`).concat(t,",").concat(n+i-l*h[3])),d+="Z"}else if(s>0&&o===+o&&o>0){var b=Math.min(s,o);d="M ".concat(t,",").concat(n+l*b,`
|
|
382
|
+
A `).concat(b,",").concat(b,",0,0,").concat(f,",").concat(t+u*b,",").concat(n,`
|
|
383
|
+
L `).concat(t+r-u*b,",").concat(n,`
|
|
384
|
+
A `).concat(b,",").concat(b,",0,0,").concat(f,",").concat(t+r,",").concat(n+l*b,`
|
|
385
|
+
L `).concat(t+r,",").concat(n+i-l*b,`
|
|
386
|
+
A `).concat(b,",").concat(b,",0,0,").concat(f,",").concat(t+r-u*b,",").concat(n+i,`
|
|
387
|
+
L `).concat(t+u*b,",").concat(n+i,`
|
|
388
|
+
A `).concat(b,",").concat(b,",0,0,").concat(f,",").concat(t,",").concat(n+i-l*b," Z")}else d="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return d},mie=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,o=n.x,s=n.y,l=n.width,u=n.height;if(Math.abs(l)>0&&Math.abs(u)>0){var f=Math.min(o,o+l),d=Math.max(o,o+l),h=Math.min(s,s+u),m=Math.max(s,s+u);return r>=f&&r<=d&&i>=h&&i<=m}return!1},vie={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},r1=function(t){var n=ET(ET({},vie),t),r=j.useRef(),i=j.useState(-1),o=sie(i,2),s=o[0],l=o[1];j.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var E=r.current.getTotalLength();E&&l(E)}catch{}},[]);var u=n.x,f=n.y,d=n.width,h=n.height,m=n.radius,v=n.className,b=n.animationEasing,x=n.animationDuration,S=n.animationBegin,y=n.isAnimationActive,_=n.isUpdateAnimationActive;if(u!==+u||f!==+f||d!==+d||h!==+h||d===0||h===0)return null;var w=Ne("recharts-rectangle",v);return _?D.createElement(Ti,{canBegin:s>0,from:{width:d,height:h,x:u,y:f},to:{width:d,height:h,x:u,y:f},duration:x,animationEasing:b,isActive:_},function(E){var P=E.width,A=E.height,M=E.x,C=E.y;return D.createElement(Ti,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:x,isActive:y,easing:b},D.createElement("path",$d({},Ee(n,!0),{className:w,d:kT(M,C,P,A,m),ref:r})))}):D.createElement("path",$d({},Ee(n,!0),{className:w,d:kT(u,f,d,h,m)}))};function n0(){return n0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n0.apply(this,arguments)}var i1=function(t){var n=t.cx,r=t.cy,i=t.r,o=t.className,s=Ne("recharts-dot",o);return n===+n&&r===+r&&i===+i?j.createElement("circle",n0({},Ee(t,!1),Xh(t),{className:s,cx:n,cy:r,r:i})):null};function dc(e){"@babel/helpers - typeof";return dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dc(e)}var gie=["x","y","top","left","width","height","className"];function r0(){return r0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r0.apply(this,arguments)}function MT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MT(Object(n),!0).forEach(function(r){xie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xie(e,t,n){return t=_ie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ie(e){var t=bie(e,"string");return dc(t)=="symbol"?t:t+""}function bie(e,t){if(dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wie(e,t){if(e==null)return{};var n=Sie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sie(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Pie=function(t,n,r,i,o,s){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(s,",").concat(n,"h").concat(r)},Oie=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,s=t.top,l=s===void 0?0:s,u=t.left,f=u===void 0?0:u,d=t.width,h=d===void 0?0:d,m=t.height,v=m===void 0?0:m,b=t.className,x=wie(t,gie),S=yie({x:r,y:o,top:l,left:f,width:h,height:v},x);return!ie(r)||!ie(o)||!ie(h)||!ie(v)||!ie(l)||!ie(f)?null:D.createElement("path",r0({},Ee(S,!0),{className:Ne("recharts-cross",b),d:Pie(r,o,h,v,l,f)}))},Tie=bC,Aie=Tie(Object.getPrototypeOf,Object),Eie=Aie,kie=Ei,Mie=Eie,Cie=ki,jie="[object Object]",$ie=Function.prototype,Nie=Object.prototype,a$=$ie.toString,Lie=Nie.hasOwnProperty,Iie=a$.call(Object);function Die(e){if(!Cie(e)||kie(e)!=jie)return!1;var t=Mie(e);if(t===null)return!0;var n=Lie.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&a$.call(n)==Iie}var Rie=Die;const zie=Ze(Rie);var Bie=Ei,Fie=ki,Vie="[object Boolean]";function Uie(e){return e===!0||e===!1||Fie(e)&&Bie(e)==Vie}var Wie=Uie;const Hie=Ze(Wie);function pc(e){"@babel/helpers - typeof";return pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pc(e)}function Nd(){return Nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nd.apply(this,arguments)}function Zie(e,t){return Xie(e)||qie(e,t)||Kie(e,t)||Gie()}function Gie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
389
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kie(e,t){if(e){if(typeof e=="string")return CT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CT(e,t)}}function CT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Xie(e){if(Array.isArray(e))return e}function jT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $T(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jT(Object(n),!0).forEach(function(r){Yie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yie(e,t,n){return t=Qie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qie(e){var t=Jie(e,"string");return pc(t)=="symbol"?t:t+""}function Jie(e,t){if(pc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var NT=function(t,n,r,i,o){var s=r-i,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-s/2,",").concat(n+o),l+="L ".concat(t+r-s/2-i,",").concat(n+o),l+="L ".concat(t,",").concat(n," Z"),l},eoe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},toe=function(t){var n=$T($T({},eoe),t),r=j.useRef(),i=j.useState(-1),o=Zie(i,2),s=o[0],l=o[1];j.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var w=r.current.getTotalLength();w&&l(w)}catch{}},[]);var u=n.x,f=n.y,d=n.upperWidth,h=n.lowerWidth,m=n.height,v=n.className,b=n.animationEasing,x=n.animationDuration,S=n.animationBegin,y=n.isUpdateAnimationActive;if(u!==+u||f!==+f||d!==+d||h!==+h||m!==+m||d===0&&h===0||m===0)return null;var _=Ne("recharts-trapezoid",v);return y?D.createElement(Ti,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:m,x:u,y:f},to:{upperWidth:d,lowerWidth:h,height:m,x:u,y:f},duration:x,animationEasing:b,isActive:y},function(w){var E=w.upperWidth,P=w.lowerWidth,A=w.height,M=w.x,C=w.y;return D.createElement(Ti,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:x,easing:b},D.createElement("path",Nd({},Ee(n,!0),{className:_,d:NT(M,C,E,P,A),ref:r})))}):D.createElement("g",null,D.createElement("path",Nd({},Ee(n,!0),{className:_,d:NT(u,f,d,h,m)})))},noe=["option","shapeType","propTransformer","activeClassName","isActive"];function mc(e){"@babel/helpers - typeof";return mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mc(e)}function roe(e,t){if(e==null)return{};var n=ioe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ioe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function LT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ld(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LT(Object(n),!0).forEach(function(r){ooe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ooe(e,t,n){return t=aoe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aoe(e){var t=soe(e,"string");return mc(t)=="symbol"?t:t+""}function soe(e,t){if(mc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function loe(e,t){return Ld(Ld({},t),e)}function uoe(e,t){return e==="symbols"}function IT(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return D.createElement(r1,n);case"trapezoid":return D.createElement(toe,n);case"sector":return D.createElement(qj,n);case"symbols":if(uoe(t))return D.createElement(b_,n);break;default:return null}}function coe(e){return j.isValidElement(e)?e.props:e}function foe(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?loe:r,o=e.activeClassName,s=o===void 0?"recharts-active-shape":o,l=e.isActive,u=roe(e,noe),f;if(j.isValidElement(t))f=j.cloneElement(t,Ld(Ld({},u),coe(t)));else if(Pe(t))f=t(u);else if(zie(t)&&!Hie(t)){var d=i(t,u);f=D.createElement(IT,{shapeType:n,elementProps:d})}else{var h=u;f=D.createElement(IT,{shapeType:n,elementProps:h})}return l?D.createElement(ft,{className:s},f):f}function Yp(e,t){return t!=null&&"trapezoids"in e.props}function Qp(e,t){return t!=null&&"sectors"in e.props}function vc(e,t){return t!=null&&"points"in e.props}function hoe(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,o=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&o}function doe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function poe(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function moe(e,t){var n;return Yp(e,t)?n=hoe:Qp(e,t)?n=doe:vc(e,t)&&(n=poe),n}function voe(e,t){var n;return Yp(e,t)?n="trapezoids":Qp(e,t)?n="sectors":vc(e,t)&&(n="points"),n}function goe(e,t){if(Yp(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(Qp(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return vc(e,t)?t.payload:{}}function yoe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=voe(n,t),o=goe(n,t),s=r.filter(function(u,f){var d=Ju(o,u),h=n.props[i].filter(function(b){var x=moe(n,t);return x(b,t)}),m=n.props[i].indexOf(h[h.length-1]),v=f===m;return d&&v}),l=r.indexOf(s[s.length-1]);return l}var xoe=Math.ceil,_oe=Math.max;function boe(e,t,n,r){for(var i=-1,o=_oe(xoe((t-e)/(n||1)),0),s=Array(o);o--;)s[r?o:++i]=e,e+=n;return s}var woe=boe,Soe=BC,DT=1/0,Poe=17976931348623157e292;function Ooe(e){if(!e)return e===0?e:0;if(e=Soe(e),e===DT||e===-DT){var t=e<0?-1:1;return t*Poe}return e===e?e:0}var s$=Ooe,Toe=woe,Aoe=Bp,Lv=s$;function Eoe(e){return function(t,n,r){return r&&typeof r!="number"&&Aoe(t,n,r)&&(n=r=void 0),t=Lv(t),n===void 0?(n=t,t=0):n=Lv(n),r=r===void 0?t<n?1:-1:Lv(r),Toe(t,n,r,e)}}var koe=Eoe,Moe=koe,Coe=Moe(),joe=Coe;const Id=Ze(joe);function gc(e){"@babel/helpers - typeof";return gc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gc(e)}function RT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RT(Object(n),!0).forEach(function(r){l$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function l$(e,t,n){return t=$oe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $oe(e){var t=Noe(e,"string");return gc(t)=="symbol"?t:t+""}function Noe(e,t){if(gc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Loe=["Webkit","Moz","O","ms"],Ioe=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=Loe.reduce(function(o,s){return zT(zT({},o),{},l$({},s+r,n))},{});return i[t]=n,i};function As(e){"@babel/helpers - typeof";return As=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},As(e)}function Dd(){return Dd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dd.apply(this,arguments)}function BT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Iv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BT(Object(n),!0).forEach(function(r){Mn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Doe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c$(r.key),r)}}function Roe(e,t,n){return t&&FT(e.prototype,t),n&&FT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zoe(e,t,n){return t=Rd(t),Boe(e,u$()?Reflect.construct(t,n||[],Rd(e).constructor):t.apply(e,n))}function Boe(e,t){if(t&&(As(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Foe(e)}function Foe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u$=function(){return!!e})()}function Rd(e){return Rd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rd(e)}function Voe(e,t){if(typeof t!="function"&&t!==null)throw new 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&&i0(e,t)}function i0(e,t){return i0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},i0(e,t)}function Mn(e,t,n){return t=c$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c$(e){var t=Uoe(e,"string");return As(t)=="symbol"?t:t+""}function Uoe(e,t){if(As(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(As(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Woe=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,o=t.x,s=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var u=n.length,f=mu().domain(Id(0,u)).range([o,o+s-l]),d=f.domain().map(function(h){return f(h)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:f(r),endX:f(i),scale:f,scaleValues:d}},VT=function(t){return t.changedTouches&&!!t.changedTouches.length},Es=function(e){function t(n){var r;return Doe(this,t),r=zoe(this,t,[n]),Mn(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),Mn(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),Mn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,o=i.endIndex,s=i.onDragEnd,l=i.startIndex;s==null||s({endIndex:o,startIndex:l})}),r.detachDragEndListener()}),Mn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Mn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Mn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Mn(r,"handleSlideDragStart",function(i){var o=VT(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return Voe(t,e),Roe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,o=r.endX,s=this.state.scaleValues,l=this.props,u=l.gap,f=l.data,d=f.length-1,h=Math.min(i,o),m=Math.max(i,o),v=t.getIndexInRange(s,h),b=t.getIndexInRange(s,m);return{startIndex:v-v%u,endIndex:b===d?d:b-b%u}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,s=i.tickFormatter,l=i.dataKey,u=Bn(o[r],l,r);return Pe(s)?s(u,r):u}},{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(r){var i=this.state,o=i.slideMoveStartX,s=i.startX,l=i.endX,u=this.props,f=u.x,d=u.width,h=u.travellerWidth,m=u.startIndex,v=u.endIndex,b=u.onChange,x=r.pageX-o;x>0?x=Math.min(x,f+d-h-l,f+d-h-s):x<0&&(x=Math.max(x,f-s,f-l));var S=this.getIndex({startX:s+x,endX:l+x});(S.startIndex!==m||S.endIndex!==v)&&b&&b(S),this.setState({startX:s+x,endX:l+x,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=VT(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,o=i.brushMoveStartX,s=i.movingTravellerId,l=i.endX,u=i.startX,f=this.state[s],d=this.props,h=d.x,m=d.width,v=d.travellerWidth,b=d.onChange,x=d.gap,S=d.data,y={startX:this.state.startX,endX:this.state.endX},_=r.pageX-o;_>0?_=Math.min(_,h+m-v-f):_<0&&(_=Math.max(_,h-f)),y[s]=f+_;var w=this.getIndex(y),E=w.startIndex,P=w.endIndex,A=function(){var C=S.length-1;return s==="startX"&&(l>u?E%x===0:P%x===0)||l<u&&P===C||s==="endX"&&(l>u?P%x===0:E%x===0)||l>u&&P===C};this.setState(Mn(Mn({},s,f+_),"brushMoveStartX",r.pageX),function(){b&&A()&&b(w)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var o=this,s=this.state,l=s.scaleValues,u=s.startX,f=s.endX,d=this.state[i],h=l.indexOf(d);if(h!==-1){var m=h+r;if(!(m===-1||m>=l.length)){var v=l[m];i==="startX"&&v>=f||i==="endX"&&v<=u||this.setState(Mn({},i,v),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,o=r.y,s=r.width,l=r.height,u=r.fill,f=r.stroke;return D.createElement("rect",{stroke:f,fill:u,x:i,y:o,width:s,height:l})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,o=r.y,s=r.width,l=r.height,u=r.data,f=r.children,d=r.padding,h=j.Children.only(f);return h?D.cloneElement(h,{x:i,y:o,width:s,height:l,margin:d,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(r,i){var o,s,l=this,u=this.props,f=u.y,d=u.travellerWidth,h=u.height,m=u.traveller,v=u.ariaLabel,b=u.data,x=u.startIndex,S=u.endIndex,y=Math.max(r,this.props.x),_=Iv(Iv({},Ee(this.props,!1)),{},{x:y,y:f,width:d,height:h}),w=v||"Min value: ".concat((o=b[x])===null||o===void 0?void 0:o.name,", Max value: ").concat((s=b[S])===null||s===void 0?void 0:s.name);return D.createElement(ft,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(P){["ArrowLeft","ArrowRight"].includes(P.key)&&(P.preventDefault(),P.stopPropagation(),l.handleTravellerMoveKeyboard(P.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(m,_))}},{key:"renderSlide",value:function(r,i){var o=this.props,s=o.y,l=o.height,u=o.stroke,f=o.travellerWidth,d=Math.min(r,i)+f,h=Math.max(Math.abs(i-r)-f,0);return D.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:d,y:s,width:h,height:l})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,o=r.endIndex,s=r.y,l=r.height,u=r.travellerWidth,f=r.stroke,d=this.state,h=d.startX,m=d.endX,v=5,b={pointerEvents:"none",fill:f};return D.createElement(ft,{className:"recharts-brush-texts"},D.createElement(fd,Dd({textAnchor:"end",verticalAnchor:"middle",x:Math.min(h,m)-v,y:s+l/2},b),this.getTextOfTick(i)),D.createElement(fd,Dd({textAnchor:"start",verticalAnchor:"middle",x:Math.max(h,m)+u+v,y:s+l/2},b),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,i=r.data,o=r.className,s=r.children,l=r.x,u=r.y,f=r.width,d=r.height,h=r.alwaysShowText,m=this.state,v=m.startX,b=m.endX,x=m.isTextActive,S=m.isSlideMoving,y=m.isTravellerMoving,_=m.isTravellerFocused;if(!i||!i.length||!ie(l)||!ie(u)||!ie(f)||!ie(d)||f<=0||d<=0)return null;var w=Ne("recharts-brush",o),E=D.Children.count(s)===1,P=Ioe("userSelect","none");return D.createElement(ft,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:P},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(v,b),this.renderTravellerLayer(v,"startX"),this.renderTravellerLayer(b,"endX"),(x||S||y||_||h)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,o=r.y,s=r.width,l=r.height,u=r.stroke,f=Math.floor(o+l/2)-1;return D.createElement(D.Fragment,null,D.createElement("rect",{x:i,y:o,width:s,height:l,fill:u,stroke:"none"}),D.createElement("line",{x1:i+1,y1:f,x2:i+s-1,y2:f,fill:"none",stroke:"#fff"}),D.createElement("line",{x1:i+1,y1:f+2,x2:i+s-1,y2:f+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var o;return D.isValidElement(r)?o=D.cloneElement(r,i):Pe(r)?o=r(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(r,i){var o=r.data,s=r.width,l=r.x,u=r.travellerWidth,f=r.updateId,d=r.startIndex,h=r.endIndex;if(o!==i.prevData||f!==i.prevUpdateId)return Iv({prevData:o,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:s},o&&o.length?Woe({data:o,width:s,x:l,travellerWidth:u,startIndex:d,endIndex:h}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||l!==i.prevX||u!==i.prevTravellerWidth)){i.scale.range([l,l+s-u]);var m=i.scale.domain().map(function(v){return i.scale(v)});return{prevData:o,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:s,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(r,i){for(var o=r.length,s=0,l=o-1;l-s>1;){var u=Math.floor((s+l)/2);r[u]>i?l=u:s=u}return i>=r[l]?l:s}}])}(j.PureComponent);Mn(Es,"displayName","Brush");Mn(Es,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Hoe=E_;function Zoe(e,t){var n;return Hoe(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var Goe=Zoe,Koe=dC,qoe=mo,Xoe=Goe,Yoe=Tn,Qoe=Bp;function Joe(e,t,n){var r=Yoe(e)?Koe:Xoe;return n&&Qoe(e,t,n)&&(t=void 0),r(e,qoe(t))}var eae=Joe;const tae=Ze(eae);var Zr=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},UT=LC;function nae(e,t,n){t=="__proto__"&&UT?UT(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var rae=nae,iae=rae,oae=$C,aae=mo;function sae(e,t){var n={};return t=aae(t),oae(e,function(r,i,o){iae(n,i,t(r,i,o))}),n}var lae=sae;const uae=Ze(lae);function cae(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var fae=cae,hae=E_;function dae(e,t){var n=!0;return hae(e,function(r,i,o){return n=!!t(r,i,o),n}),n}var pae=dae,mae=fae,vae=pae,gae=mo,yae=Tn,xae=Bp;function _ae(e,t,n){var r=yae(e)?mae:vae;return n&&xae(e,t,n)&&(t=void 0),r(e,gae(t))}var bae=_ae;const f$=Ze(bae);var wae=["x","y"];function yc(e){"@babel/helpers - typeof";return yc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yc(e)}function o0(){return o0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o0.apply(this,arguments)}function WT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WT(Object(n),!0).forEach(function(r){Sae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sae(e,t,n){return t=Pae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pae(e){var t=Oae(e,"string");return yc(t)=="symbol"?t:t+""}function Oae(e,t){if(yc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tae(e,t){if(e==null)return{};var n=Aae(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Aae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Eae(e,t){var n=e.x,r=e.y,i=Tae(e,wae),o="".concat(n),s=parseInt(o,10),l="".concat(r),u=parseInt(l,10),f="".concat(t.height||i.height),d=parseInt(f,10),h="".concat(t.width||i.width),m=parseInt(h,10);return Fl(Fl(Fl(Fl(Fl({},t),i),s?{x:s}:{}),u?{y:u}:{}),{},{height:d,width:m,name:t.name,radius:t.radius})}function HT(e){return D.createElement(foe,o0({shapeType:"rectangle",propTransformer:Eae,activeClassName:"recharts-active-bar"},e))}var kae=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var o=ie(r)||V6(r);return o?t(r,i):(o||sa(),n)}},Mae=["value","background"],h$;function ks(e){"@babel/helpers - typeof";return ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ks(e)}function Cae(e,t){if(e==null)return{};var n=jae(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function zd(){return zd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zd.apply(this,arguments)}function ZT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZT(Object(n),!0).forEach(function(r){qi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p$(r.key),r)}}function Nae(e,t,n){return t&>(e.prototype,t),n&>(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lae(e,t,n){return t=Bd(t),Iae(e,d$()?Reflect.construct(t,n||[],Bd(e).constructor):t.apply(e,n))}function Iae(e,t){if(t&&(ks(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dae(e)}function Dae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(d$=function(){return!!e})()}function Bd(e){return Bd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bd(e)}function Rae(e,t){if(typeof t!="function"&&t!==null)throw new 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&&a0(e,t)}function a0(e,t){return a0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},a0(e,t)}function qi(e,t,n){return t=p$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p$(e){var t=zae(e,"string");return ks(t)=="symbol"?t:t+""}function zae(e,t){if(ks(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ks(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var va=function(e){function t(){var n;$ae(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Lae(this,t,[].concat(i)),qi(n,"state",{isAnimationFinished:!1}),qi(n,"id",$c("recharts-bar-")),qi(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),s&&s()}),qi(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),s&&s()}),n}return Rae(t,e),Nae(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,o=this.props,s=o.shape,l=o.dataKey,u=o.activeIndex,f=o.activeBar,d=Ee(this.props,!1);return r&&r.map(function(h,m){var v=m===u,b=v?f:s,x=St(St(St({},d),h),{},{isActive:v,option:b,index:m,dataKey:l,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return D.createElement(ft,zd({className:"recharts-bar-rectangle"},Yh(i.props,h,m),{key:"rectangle-".concat(h==null?void 0:h.x,"-").concat(h==null?void 0:h.y,"-").concat(h==null?void 0:h.value,"-").concat(m)}),D.createElement(HT,x))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,o=i.data,s=i.layout,l=i.isAnimationActive,u=i.animationBegin,f=i.animationDuration,d=i.animationEasing,h=i.animationId,m=this.state.prevData;return D.createElement(Ti,{begin:u,duration:f,isActive:l,easing:d,from:{t:0},to:{t:1},key:"bar-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var b=v.t,x=o.map(function(S,y){var _=m&&m[y];if(_){var w=nr(_.x,S.x),E=nr(_.y,S.y),P=nr(_.width,S.width),A=nr(_.height,S.height);return St(St({},S),{},{x:w(b),y:E(b),width:P(b),height:A(b)})}if(s==="horizontal"){var M=nr(0,S.height),C=M(b);return St(St({},S),{},{y:S.y+S.height-C,height:C})}var N=nr(0,S.width),B=N(b);return St(St({},S),{},{width:B})});return D.createElement(ft,null,r.renderRectanglesStatically(x))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,o=r.isAnimationActive,s=this.state.prevData;return o&&i&&i.length&&(!s||!Ju(s,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,o=i.data,s=i.dataKey,l=i.activeIndex,u=Ee(this.props.background,!1);return o.map(function(f,d){f.value;var h=f.background,m=Cae(f,Mae);if(!h)return null;var v=St(St(St(St(St({},m),{},{fill:"#eee"},h),u),Yh(r.props,f,d)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:s,index:d,className:"recharts-bar-background-rectangle"});return D.createElement(HT,zd({key:"background-bar-".concat(d),option:r.props.background,isActive:d===l},v))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,s=o.data,l=o.xAxis,u=o.yAxis,f=o.layout,d=o.children,h=Ar(d,Xp);if(!h)return null;var m=f==="vertical"?s[0].height/2:s[0].width/2,v=function(S,y){var _=Array.isArray(S.value)?S.value[1]:S.value;return{x:S.x,y:S.y,value:_,errorVal:Bn(S,y)}},b={clipPath:r?"url(#clipPath-".concat(i,")"):null};return D.createElement(ft,b,h.map(function(x){return D.cloneElement(x,{key:"error-bar-".concat(i,"-").concat(x.props.dataKey),data:s,xAxis:l,yAxis:u,layout:f,offset:m,dataPointFormatter:v})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,o=r.data,s=r.className,l=r.xAxis,u=r.yAxis,f=r.left,d=r.top,h=r.width,m=r.height,v=r.isAnimationActive,b=r.background,x=r.id;if(i||!o||!o.length)return null;var S=this.state.isAnimationFinished,y=Ne("recharts-bar",s),_=l&&l.allowDataOverflow,w=u&&u.allowDataOverflow,E=_||w,P=Me(x)?this.id:x;return D.createElement(ft,{className:y},_||w?D.createElement("defs",null,D.createElement("clipPath",{id:"clipPath-".concat(P)},D.createElement("rect",{x:_?f:f-h/2,y:w?d:d-m/2,width:_?h:h*2,height:w?m:m*2}))):null,D.createElement(ft,{className:"recharts-bar-rectangles",clipPath:E?"url(#clipPath-".concat(P,")"):null},b?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(E,P),(!v||S)&&Hr.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])}(j.PureComponent);h$=va;qi(va,"displayName","Bar");qi(va,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!nl.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});qi(va,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,o=e.xAxis,s=e.yAxis,l=e.xAxisTicks,u=e.yAxisTicks,f=e.stackedData,d=e.dataStartIndex,h=e.displayedData,m=e.offset,v=fte(r,n);if(!v)return null;var b=t.layout,x=n.type.defaultProps,S=x!==void 0?St(St({},x),n.props):n.props,y=S.dataKey,_=S.children,w=S.minPointSize,E=b==="horizontal"?s:o,P=f?E.scale.domain():null,A=xte({numericAxis:E}),M=Ar(_,C_),C=h.map(function(N,B){var z,R,K,H,W,Z;f?z=hte(f[d+B],P):(z=Bn(N,y),Array.isArray(z)||(z=[A,z]));var G=kae(w,h$.defaultProps.minPointSize)(z[1],B);if(b==="horizontal"){var $,q=[s.scale(z[0]),s.scale(z[1])],V=q[0],te=q[1];R=qO({axis:o,ticks:l,bandSize:i,offset:v.offset,entry:N,index:B}),K=($=te??V)!==null&&$!==void 0?$:void 0,H=v.size;var Q=V-te;if(W=Number.isNaN(Q)?0:Q,Z={x:R,y:s.y,width:H,height:s.height},Math.abs(G)>0&&Math.abs(W)<Math.abs(G)){var ae=Pr(W||G)*(Math.abs(G)-Math.abs(W));K-=ae,W+=ae}}else{var fe=[o.scale(z[0]),o.scale(z[1])],he=fe[0],ce=fe[1];if(R=he,K=qO({axis:s,ticks:u,bandSize:i,offset:v.offset,entry:N,index:B}),H=ce-he,W=v.size,Z={x:o.x,y:K,width:o.width,height:W},Math.abs(G)>0&&Math.abs(H)<Math.abs(G)){var Ve=Pr(H||G)*(Math.abs(G)-Math.abs(H));H+=Ve}}return St(St(St({},N),{},{x:R,y:K,width:H,height:W,value:f?z:z[1],payload:N,background:Z},M&&M[B]&&M[B].props),{},{tooltipPayload:[Zj(n,N)],tooltipPosition:{x:R+H/2,y:K+W/2}})});return St({data:C,layout:b},m)});function xc(e){"@babel/helpers - typeof";return xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xc(e)}function Bae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m$(r.key),r)}}function Fae(e,t,n){return t&&KT(e.prototype,t),n&&KT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function br(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qT(Object(n),!0).forEach(function(r){Jp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jp(e,t,n){return t=m$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m$(e){var t=Vae(e,"string");return xc(t)=="symbol"?t:t+""}function Vae(e,t){if(xc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var v$=function(t,n,r,i,o){var s=t.width,l=t.height,u=t.layout,f=t.children,d=Object.keys(n),h={left:r.left,leftMirror:r.left,right:s-r.right,rightMirror:s-r.right,top:r.top,topMirror:r.top,bottom:l-r.bottom,bottomMirror:l-r.bottom},m=!!jn(f,va);return d.reduce(function(v,b){var x=n[b],S=x.orientation,y=x.domain,_=x.padding,w=_===void 0?{}:_,E=x.mirror,P=x.reversed,A="".concat(S).concat(E?"Mirror":""),M,C,N,B,z;if(x.type==="number"&&(x.padding==="gap"||x.padding==="no-gap")){var R=y[1]-y[0],K=1/0,H=x.categoricalDomain.sort(H6);if(H.forEach(function(fe,he){he>0&&(K=Math.min((fe||0)-(H[he-1]||0),K))}),Number.isFinite(K)){var W=K/R,Z=x.layout==="vertical"?r.height:r.width;if(x.padding==="gap"&&(M=W*Z/2),x.padding==="no-gap"){var G=oa(t.barCategoryGap,W*Z),$=W*Z/2;M=$-G-($-G)/Z*G}}}i==="xAxis"?C=[r.left+(w.left||0)+(M||0),r.left+r.width-(w.right||0)-(M||0)]:i==="yAxis"?C=u==="horizontal"?[r.top+r.height-(w.bottom||0),r.top+(w.top||0)]:[r.top+(w.top||0)+(M||0),r.top+r.height-(w.bottom||0)-(M||0)]:C=x.range,P&&(C=[C[1],C[0]]);var q=ute(x,o,m),V=q.scale,te=q.realScaleType;V.domain(y).range(C),cte(V);var Q=yte(V,br(br({},x),{},{realScaleType:te}));i==="xAxis"?(z=S==="top"&&!E||S==="bottom"&&E,N=r.left,B=h[A]-z*x.height):i==="yAxis"&&(z=S==="left"&&!E||S==="right"&&E,N=h[A]-z*x.width,B=r.top);var ae=br(br(br({},x),Q),{},{realScaleType:te,x:N,y:B,scale:V,width:i==="xAxis"?r.width:x.width,height:i==="yAxis"?r.height:x.height});return ae.bandSize=Td(ae,Q),!x.hide&&i==="xAxis"?h[A]+=(z?-1:1)*ae.height:x.hide||(h[A]+=(z?-1:1)*ae.width),br(br({},v),{},Jp({},b,ae))},{})},g$=function(t,n){var r=t.x,i=t.y,o=n.x,s=n.y;return{x:Math.min(r,o),y:Math.min(i,s),width:Math.abs(o-r),height:Math.abs(s-i)}},Uae=function(t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2;return g$({x:n,y:r},{x:i,y:o})},y$=function(){function e(t){Bae(this,e),this.scale=t}return Fae(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(i){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+u}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],o=r[r.length-1];return i<=o?n>=i&&n<=o:n>=o&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])}();Jp(y$,"EPS",1e-4);var o1=function(t){var n=Object.keys(t).reduce(function(r,i){return br(br({},r),{},Jp({},i,y$.create(t[i])))},{});return br(br({},n),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.bandAware,l=o.position;return uae(i,function(u,f){return n[f].apply(u,{bandAware:s,position:l})})},isInRange:function(i){return f$(i,function(o,s){return n[s].isInRange(o)})}})};function Wae(e){return(e%180+180)%180}var Hae=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Wae(i),s=o*Math.PI/180,l=Math.atan(r/n),u=s>l&&s<Math.PI-l?r/Math.sin(s):n/Math.cos(s);return Math.abs(u)},Zae=mo,Gae=Nc,Kae=Rp;function qae(e){return function(t,n,r){var i=Object(t);if(!Gae(t)){var o=Zae(n);t=Kae(t),n=function(l){return o(i[l],l,i)}}var s=e(t,n,r);return s>-1?i[o?t[s]:s]:void 0}}var Xae=qae,Yae=s$;function Qae(e){var t=Yae(e),n=t%1;return t===t?n?t-n:t:0}var Jae=Qae,ese=AC,tse=mo,nse=Jae,rse=Math.max;function ise(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:nse(n);return i<0&&(i=rse(r+i,0)),ese(e,tse(t),i)}var ose=ise,ase=Xae,sse=ose,lse=ase(sse),use=lse;const cse=Ze(use);var fse=K8(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),a1=j.createContext(void 0),s1=j.createContext(void 0),x$=j.createContext(void 0),_$=j.createContext({}),b$=j.createContext(void 0),w$=j.createContext(0),S$=j.createContext(0),XT=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,s=t.clipPathId,l=t.children,u=t.width,f=t.height,d=fse(o);return D.createElement(a1.Provider,{value:r},D.createElement(s1.Provider,{value:i},D.createElement(_$.Provider,{value:o},D.createElement(x$.Provider,{value:d},D.createElement(b$.Provider,{value:s},D.createElement(w$.Provider,{value:f},D.createElement(S$.Provider,{value:u},l)))))))},hse=function(){return j.useContext(b$)},P$=function(t){var n=j.useContext(a1);n==null&&sa();var r=n[t];return r==null&&sa(),r},dse=function(){var t=j.useContext(a1);return Hi(t)},pse=function(){var t=j.useContext(s1),n=cse(t,function(r){return f$(r.domain,Number.isFinite)});return n||Hi(t)},O$=function(t){var n=j.useContext(s1);n==null&&sa();var r=n[t];return r==null&&sa(),r},mse=function(){var t=j.useContext(x$);return t},vse=function(){return j.useContext(_$)},l1=function(){return j.useContext(S$)},u1=function(){return j.useContext(w$)};function Ms(e){"@babel/helpers - typeof";return Ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ms(e)}function gse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,A$(r.key),r)}}function xse(e,t,n){return t&&yse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _se(e,t,n){return t=Fd(t),bse(e,T$()?Reflect.construct(t,n||[],Fd(e).constructor):t.apply(e,n))}function bse(e,t){if(t&&(Ms(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wse(e)}function wse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(T$=function(){return!!e})()}function Fd(e){return Fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fd(e)}function Sse(e,t){if(typeof t!="function"&&t!==null)throw new 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&&s0(e,t)}function s0(e,t){return s0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},s0(e,t)}function YT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function QT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YT(Object(n),!0).forEach(function(r){c1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c1(e,t,n){return t=A$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A$(e){var t=Pse(e,"string");return Ms(t)=="symbol"?t:t+""}function Pse(e,t){if(Ms(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ose(e,t){return kse(e)||Ese(e,t)||Ase(e,t)||Tse()}function Tse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
390
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ase(e,t){if(e){if(typeof e=="string")return JT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JT(e,t)}}function JT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ese(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function kse(e){if(Array.isArray(e))return e}function l0(){return l0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l0.apply(this,arguments)}var Mse=function(t,n){var r;return D.isValidElement(t)?r=D.cloneElement(t,n):Pe(t)?r=t(n):r=D.createElement("line",l0({},n,{className:"recharts-reference-line-line"})),r},Cse=function(t,n,r,i,o,s,l,u,f){var d=o.x,h=o.y,m=o.width,v=o.height;if(r){var b=f.y,x=t.y.apply(b,{position:s});if(Zr(f,"discard")&&!t.y.isInRange(x))return null;var S=[{x:d+m,y:x},{x:d,y:x}];return u==="left"?S.reverse():S}if(n){var y=f.x,_=t.x.apply(y,{position:s});if(Zr(f,"discard")&&!t.x.isInRange(_))return null;var w=[{x:_,y:h+v},{x:_,y:h}];return l==="top"?w.reverse():w}if(i){var E=f.segment,P=E.map(function(A){return t.apply(A,{position:s})});return Zr(f,"discard")&&tae(P,function(A){return!t.isInRange(A)})?null:P}return null};function jse(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,o=e.yAxisId,s=e.shape,l=e.className,u=e.alwaysShow,f=hse(),d=P$(i),h=O$(o),m=mse();if(!f||!m)return null;vi(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=o1({x:d.scale,y:h.scale}),b=Ct(t),x=Ct(n),S=r&&r.length===2,y=Cse(v,b,x,S,m,e.position,d.orientation,h.orientation,e);if(!y)return null;var _=Ose(y,2),w=_[0],E=w.x,P=w.y,A=_[1],M=A.x,C=A.y,N=Zr(e,"hidden")?"url(#".concat(f,")"):void 0,B=QT(QT({clipPath:N},Ee(e,!0)),{},{x1:E,y1:P,x2:M,y2:C});return D.createElement(ft,{className:Ne("recharts-reference-line",l)},Mse(s,B),tn.renderCallByParent(e,Uae({x1:E,y1:P,x2:M,y2:C})))}var f1=function(e){function t(){return gse(this,t),_se(this,t,arguments)}return Sse(t,e),xse(t,[{key:"render",value:function(){return D.createElement(jse,this.props)}}])}(D.Component);c1(f1,"displayName","ReferenceLine");c1(f1,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function u0(){return u0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u0.apply(this,arguments)}function Cs(e){"@babel/helpers - typeof";return Cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cs(e)}function eA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eA(Object(n),!0).forEach(function(r){em(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k$(r.key),r)}}function Lse(e,t,n){return t&&Nse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ise(e,t,n){return t=Vd(t),Dse(e,E$()?Reflect.construct(t,n||[],Vd(e).constructor):t.apply(e,n))}function Dse(e,t){if(t&&(Cs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rse(e)}function Rse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(E$=function(){return!!e})()}function Vd(e){return Vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vd(e)}function zse(e,t){if(typeof t!="function"&&t!==null)throw new 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&&c0(e,t)}function c0(e,t){return c0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},c0(e,t)}function em(e,t,n){return t=k$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k$(e){var t=Bse(e,"string");return Cs(t)=="symbol"?t:t+""}function Bse(e,t){if(Cs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fse=function(t){var n=t.x,r=t.y,i=t.xAxis,o=t.yAxis,s=o1({x:i.scale,y:o.scale}),l=s.apply({x:n,y:r},{bandAware:!0});return Zr(t,"discard")&&!s.isInRange(l)?null:l},Qo=function(e){function t(){return $se(this,t),Ise(this,t,arguments)}return zse(t,e),Lse(t,[{key:"render",value:function(){var r=this.props,i=r.x,o=r.y,s=r.r,l=r.alwaysShow,u=r.clipPathId,f=Ct(i),d=Ct(o);if(vi(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!f||!d)return null;var h=Fse(this.props);if(!h)return null;var m=h.x,v=h.y,b=this.props,x=b.shape,S=b.className,y=Zr(this.props,"hidden")?"url(#".concat(u,")"):void 0,_=tA(tA({clipPath:y},Ee(this.props,!0)),{},{cx:m,cy:v});return D.createElement(ft,{className:Ne("recharts-reference-dot",S)},t.renderDot(x,_),tn.renderCallByParent(this.props,{x:m-s,y:v-s,width:2*s,height:2*s}))}}])}(D.Component);em(Qo,"displayName","ReferenceDot");em(Qo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});em(Qo,"renderDot",function(e,t){var n;return D.isValidElement(e)?n=D.cloneElement(e,t):Pe(e)?n=e(t):n=D.createElement(i1,u0({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function f0(){return f0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f0.apply(this,arguments)}function js(e){"@babel/helpers - typeof";return js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},js(e)}function nA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nA(Object(n),!0).forEach(function(r){tm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Use(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C$(r.key),r)}}function Wse(e,t,n){return t&&Use(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hse(e,t,n){return t=Ud(t),Zse(e,M$()?Reflect.construct(t,n||[],Ud(e).constructor):t.apply(e,n))}function Zse(e,t){if(t&&(js(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gse(e)}function Gse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M$=function(){return!!e})()}function Ud(e){return Ud=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ud(e)}function Kse(e,t){if(typeof t!="function"&&t!==null)throw new 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&&h0(e,t)}function h0(e,t){return h0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},h0(e,t)}function tm(e,t,n){return t=C$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C$(e){var t=qse(e,"string");return js(t)=="symbol"?t:t+""}function qse(e,t){if(js(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(js(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xse=function(t,n,r,i,o){var s=o.x1,l=o.x2,u=o.y1,f=o.y2,d=o.xAxis,h=o.yAxis;if(!d||!h)return null;var m=o1({x:d.scale,y:h.scale}),v={x:t?m.x.apply(s,{position:"start"}):m.x.rangeMin,y:r?m.y.apply(u,{position:"start"}):m.y.rangeMin},b={x:n?m.x.apply(l,{position:"end"}):m.x.rangeMax,y:i?m.y.apply(f,{position:"end"}):m.y.rangeMax};return Zr(o,"discard")&&(!m.isInRange(v)||!m.isInRange(b))?null:g$(v,b)},nm=function(e){function t(){return Vse(this,t),Hse(this,t,arguments)}return Kse(t,e),Wse(t,[{key:"render",value:function(){var r=this.props,i=r.x1,o=r.x2,s=r.y1,l=r.y2,u=r.className,f=r.alwaysShow,d=r.clipPathId;vi(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=Ct(i),m=Ct(o),v=Ct(s),b=Ct(l),x=this.props.shape;if(!h&&!m&&!v&&!b&&!x)return null;var S=Xse(h,m,v,b,this.props);if(!S&&!x)return null;var y=Zr(this.props,"hidden")?"url(#".concat(d,")"):void 0;return D.createElement(ft,{className:Ne("recharts-reference-area",u)},t.renderRect(x,rA(rA({clipPath:y},Ee(this.props,!0)),S)),tn.renderCallByParent(this.props,S))}}])}(D.Component);tm(nm,"displayName","ReferenceArea");tm(nm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});tm(nm,"renderRect",function(e,t){var n;return D.isValidElement(e)?n=D.cloneElement(e,t):Pe(e)?n=e(t):n=D.createElement(r1,f0({},t,{className:"recharts-reference-area-rect"})),n});function j$(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function Yse(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Hae(r,n)}function Qse(e,t,n){var r=n==="width",i=e.x,o=e.y,s=e.width,l=e.height;return t===1?{start:r?i:o,end:r?i+s:o+l}:{start:r?i+s:o+l,end:r?i:o}}function Wd(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function Jse(e,t){return j$(e,t+1)}function ele(e,t,n,r,i){for(var o=(r||[]).slice(),s=t.start,l=t.end,u=0,f=1,d=s,h=function(){var b=r==null?void 0:r[u];if(b===void 0)return{v:j$(r,f)};var x=u,S,y=function(){return S===void 0&&(S=n(b,x)),S},_=b.coordinate,w=u===0||Wd(e,_,y,d,l);w||(u=0,d=s,f+=1),w&&(d=_+e*(y()/2+i),u+=f)},m;f<=o.length;)if(m=h(),m)return m.v;return[]}function _c(e){"@babel/helpers - typeof";return _c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_c(e)}function iA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iA(Object(n),!0).forEach(function(r){tle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tle(e,t,n){return t=nle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nle(e){var t=rle(e,"string");return _c(t)=="symbol"?t:t+""}function rle(e,t){if(_c(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ile(e,t,n,r,i){for(var o=(r||[]).slice(),s=o.length,l=t.start,u=t.end,f=function(m){var v=o[m],b,x=function(){return b===void 0&&(b=n(v,m)),b};if(m===s-1){var S=e*(v.coordinate+e*x()/2-u);o[m]=v=Jt(Jt({},v),{},{tickCoord:S>0?v.coordinate-S*e:v.coordinate})}else o[m]=v=Jt(Jt({},v),{},{tickCoord:v.coordinate});var y=Wd(e,v.tickCoord,x,l,u);y&&(u=v.tickCoord-e*(x()/2+i),o[m]=Jt(Jt({},v),{},{isShow:!0}))},d=s-1;d>=0;d--)f(d);return o}function ole(e,t,n,r,i,o){var s=(r||[]).slice(),l=s.length,u=t.start,f=t.end;if(o){var d=r[l-1],h=n(d,l-1),m=e*(d.coordinate+e*h/2-f);s[l-1]=d=Jt(Jt({},d),{},{tickCoord:m>0?d.coordinate-m*e:d.coordinate});var v=Wd(e,d.tickCoord,function(){return h},u,f);v&&(f=d.tickCoord-e*(h/2+i),s[l-1]=Jt(Jt({},d),{},{isShow:!0}))}for(var b=o?l-1:l,x=function(_){var w=s[_],E,P=function(){return E===void 0&&(E=n(w,_)),E};if(_===0){var A=e*(w.coordinate-e*P()/2-u);s[_]=w=Jt(Jt({},w),{},{tickCoord:A<0?w.coordinate-A*e:w.coordinate})}else s[_]=w=Jt(Jt({},w),{},{tickCoord:w.coordinate});var M=Wd(e,w.tickCoord,P,u,f);M&&(u=w.tickCoord+e*(P()/2+i),s[_]=Jt(Jt({},w),{},{isShow:!0}))},S=0;S<b;S++)x(S);return s}function h1(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,s=e.minTickGap,l=e.orientation,u=e.interval,f=e.tickFormatter,d=e.unit,h=e.angle;if(!i||!i.length||!r)return[];if(ie(u)||nl.isSsr)return Jse(i,typeof u=="number"&&ie(u)?u:0);var m=[],v=l==="top"||l==="bottom"?"width":"height",b=d&&v==="width"?pu(d,{fontSize:t,letterSpacing:n}):{width:0,height:0},x=function(w,E){var P=Pe(f)?f(w.value,E):w.value;return v==="width"?Yse(pu(P,{fontSize:t,letterSpacing:n}),b,h):pu(P,{fontSize:t,letterSpacing:n})[v]},S=i.length>=2?Pr(i[1].coordinate-i[0].coordinate):1,y=Qse(o,S,v);return u==="equidistantPreserveStart"?ele(S,y,x,i,s):(u==="preserveStart"||u==="preserveStartEnd"?m=ole(S,y,x,i,s,u==="preserveStartEnd"):m=ile(S,y,x,i,s),m.filter(function(_){return _.isShow}))}var ale=["viewBox"],sle=["viewBox"],lle=["ticks"];function $s(e){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$s(e)}function qa(){return qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qa.apply(this,arguments)}function oA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oA(Object(n),!0).forEach(function(r){d1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dv(e,t){if(e==null)return{};var n=ule(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ule(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function cle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,N$(r.key),r)}}function fle(e,t,n){return t&&aA(e.prototype,t),n&&aA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hle(e,t,n){return t=Hd(t),dle(e,$$()?Reflect.construct(t,n||[],Hd(e).constructor):t.apply(e,n))}function dle(e,t){if(t&&($s(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ple(e)}function ple(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($$=function(){return!!e})()}function Hd(e){return Hd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hd(e)}function mle(e,t){if(typeof t!="function"&&t!==null)throw new 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&&d0(e,t)}function d0(e,t){return d0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},d0(e,t)}function d1(e,t,n){return t=N$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N$(e){var t=vle(e,"string");return $s(t)=="symbol"?t:t+""}function vle(e,t){if($s(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var al=function(e){function t(n){var r;return cle(this,t),r=hle(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return mle(t,e),fle(t,[{key:"shouldComponentUpdate",value:function(r,i){var o=r.viewBox,s=Dv(r,ale),l=this.props,u=l.viewBox,f=Dv(l,sle);return!rs(o,u)||!rs(s,f)||!rs(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.x,s=i.y,l=i.width,u=i.height,f=i.orientation,d=i.tickSize,h=i.mirror,m=i.tickMargin,v,b,x,S,y,_,w=h?-1:1,E=r.tickSize||d,P=ie(r.tickCoord)?r.tickCoord:r.coordinate;switch(f){case"top":v=b=r.coordinate,S=s+ +!h*u,x=S-w*E,_=x-w*m,y=P;break;case"left":x=S=r.coordinate,b=o+ +!h*l,v=b-w*E,y=v-w*m,_=P;break;case"right":x=S=r.coordinate,b=o+ +h*l,v=b+w*E,y=v+w*m,_=P;break;default:v=b=r.coordinate,S=s+ +h*u,x=S+w*E,_=x+w*m,y=P;break}return{line:{x1:v,y1:x,x2:b,y2:S},tick:{x:y,y:_}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,s;switch(i){case"left":s=o?"start":"end";break;case"right":s=o?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,s="end";switch(i){case"left":case"right":s="middle";break;case"top":s=o?"start":"end";break;default:s=o?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,o=r.y,s=r.width,l=r.height,u=r.orientation,f=r.mirror,d=r.axisLine,h=At(At(At({},Ee(this.props,!1)),Ee(d,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var m=+(u==="top"&&!f||u==="bottom"&&f);h=At(At({},h),{},{x1:i,y1:o+m*l,x2:i+s,y2:o+m*l})}else{var v=+(u==="left"&&!f||u==="right"&&f);h=At(At({},h),{},{x1:i+v*s,y1:o,x2:i+v*s,y2:o+l})}return D.createElement("line",qa({},h,{className:Ne("recharts-cartesian-axis-line",ar(d,"className"))}))}},{key:"renderTicks",value:function(r,i,o){var s=this,l=this.props,u=l.tickLine,f=l.stroke,d=l.tick,h=l.tickFormatter,m=l.unit,v=h1(At(At({},this.props),{},{ticks:r}),i,o),b=this.getTickTextAnchor(),x=this.getTickVerticalAnchor(),S=Ee(this.props,!1),y=Ee(d,!1),_=At(At({},S),{},{fill:"none"},Ee(u,!1)),w=v.map(function(E,P){var A=s.getTickLineCoord(E),M=A.line,C=A.tick,N=At(At(At(At({textAnchor:b,verticalAnchor:x},S),{},{stroke:"none",fill:f},y),C),{},{index:P,payload:E,visibleTicksCount:v.length,tickFormatter:h});return D.createElement(ft,qa({className:"recharts-cartesian-axis-tick",key:"tick-".concat(E.value,"-").concat(E.coordinate,"-").concat(E.tickCoord)},Yh(s.props,E,P)),u&&D.createElement("line",qa({},_,M,{className:Ne("recharts-cartesian-axis-tick-line",ar(u,"className"))})),d&&t.renderTickItem(d,N,"".concat(Pe(h)?h(E.value,P):E.value).concat(m||"")))});return D.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var r=this,i=this.props,o=i.axisLine,s=i.width,l=i.height,u=i.ticksGenerator,f=i.className,d=i.hide;if(d)return null;var h=this.props,m=h.ticks,v=Dv(h,lle),b=m;return Pe(u)&&(b=m&&m.length>0?u(this.props):u(v)),s<=0||l<=0||!b||!b.length?null:D.createElement(ft,{className:Ne("recharts-cartesian-axis",f),ref:function(S){r.layerReference=S}},o&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),tn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,o){var s,l=Ne(i.className,"recharts-cartesian-axis-tick-value");return D.isValidElement(r)?s=D.cloneElement(r,At(At({},i),{},{className:l})):Pe(r)?s=r(At(At({},i),{},{className:l})):s=D.createElement(fd,qa({},i,{className:"recharts-cartesian-axis-tick-value"}),o),s}}])}(j.Component);d1(al,"displayName","CartesianAxis");d1(al,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var gle=["x1","y1","x2","y2","key"],yle=["offset"];function la(e){"@babel/helpers - typeof";return la=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},la(e)}function sA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sA(Object(n),!0).forEach(function(r){xle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xle(e,t,n){return t=_le(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _le(e){var t=ble(e,"string");return la(t)=="symbol"?t:t+""}function ble(e,t){if(la(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(la(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ho.apply(this,arguments)}function lA(e,t){if(e==null)return{};var n=wle(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wle(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Sle=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,o=t.y,s=t.width,l=t.height,u=t.ry;return D.createElement("rect",{x:i,y:o,ry:u,width:s,height:l,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function L$(e,t){var n;if(D.isValidElement(e))n=D.cloneElement(e,t);else if(Pe(e))n=e(t);else{var r=t.x1,i=t.y1,o=t.x2,s=t.y2,l=t.key,u=lA(t,gle),f=Ee(u,!1);f.offset;var d=lA(f,yle);n=D.createElement("line",Ho({},d,{x1:r,y1:i,x2:o,y2:s,fill:"none",key:l}))}return n}function Ple(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var s=o.map(function(l,u){var f=nn(nn({},e),{},{x1:t,y1:l,x2:t+n,y2:l,key:"line-".concat(u),index:u});return L$(i,f)});return D.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function Ole(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,o=e.verticalPoints;if(!i||!o||!o.length)return null;var s=o.map(function(l,u){var f=nn(nn({},e),{},{x1:l,y1:t,x2:l,y2:t+n,key:"line-".concat(u),index:u});return L$(i,f)});return D.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function Tle(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,o=e.width,s=e.height,l=e.horizontalPoints,u=e.horizontal,f=u===void 0?!0:u;if(!f||!t||!t.length)return null;var d=l.map(function(m){return Math.round(m+i-i)}).sort(function(m,v){return m-v});i!==d[0]&&d.unshift(0);var h=d.map(function(m,v){var b=!d[v+1],x=b?i+s-m:d[v+1]-m;if(x<=0)return null;var S=v%t.length;return D.createElement("rect",{key:"react-".concat(v),y:m,x:r,height:x,width:o,stroke:"none",fill:t[S],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return D.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}function Ale(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,o=e.x,s=e.y,l=e.width,u=e.height,f=e.verticalPoints;if(!n||!r||!r.length)return null;var d=f.map(function(m){return Math.round(m+o-o)}).sort(function(m,v){return m-v});o!==d[0]&&d.unshift(0);var h=d.map(function(m,v){var b=!d[v+1],x=b?o+l-m:d[v+1]-m;if(x<=0)return null;var S=v%r.length;return D.createElement("rect",{key:"react-".concat(v),x:m,y:s,width:x,height:u,stroke:"none",fill:r[S],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return D.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}var Ele=function(t,n){var r=t.xAxis,i=t.width,o=t.height,s=t.offset;return Wj(h1(nn(nn(nn({},al.defaultProps),r),{},{ticks:fi(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),s.left,s.left+s.width,n)},kle=function(t,n){var r=t.yAxis,i=t.width,o=t.height,s=t.offset;return Wj(h1(nn(nn(nn({},al.defaultProps),r),{},{ticks:fi(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),s.top,s.top+s.height,n)},Ma={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function p0(e){var t,n,r,i,o,s,l=l1(),u=u1(),f=vse(),d=nn(nn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ma.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Ma.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Ma.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Ma.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:Ma.vertical,verticalFill:(s=e.verticalFill)!==null&&s!==void 0?s:Ma.verticalFill,x:ie(e.x)?e.x:f.left,y:ie(e.y)?e.y:f.top,width:ie(e.width)?e.width:f.width,height:ie(e.height)?e.height:f.height}),h=d.x,m=d.y,v=d.width,b=d.height,x=d.syncWithTicks,S=d.horizontalValues,y=d.verticalValues,_=dse(),w=pse();if(!ie(v)||v<=0||!ie(b)||b<=0||!ie(h)||h!==+h||!ie(m)||m!==+m)return null;var E=d.verticalCoordinatesGenerator||Ele,P=d.horizontalCoordinatesGenerator||kle,A=d.horizontalPoints,M=d.verticalPoints;if((!A||!A.length)&&Pe(P)){var C=S&&S.length,N=P({yAxis:w?nn(nn({},w),{},{ticks:C?S:w.ticks}):void 0,width:l,height:u,offset:f},C?!0:x);vi(Array.isArray(N),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(la(N),"]")),Array.isArray(N)&&(A=N)}if((!M||!M.length)&&Pe(E)){var B=y&&y.length,z=E({xAxis:_?nn(nn({},_),{},{ticks:B?y:_.ticks}):void 0,width:l,height:u,offset:f},B?!0:x);vi(Array.isArray(z),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(la(z),"]")),Array.isArray(z)&&(M=z)}return D.createElement("g",{className:"recharts-cartesian-grid"},D.createElement(Sle,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),D.createElement(Ple,Ho({},d,{offset:f,horizontalPoints:A,xAxis:_,yAxis:w})),D.createElement(Ole,Ho({},d,{offset:f,verticalPoints:M,xAxis:_,yAxis:w})),D.createElement(Tle,Ho({},d,{horizontalPoints:A})),D.createElement(Ale,Ho({},d,{verticalPoints:M})))}p0.displayName="CartesianGrid";var Mle=["layout","type","stroke","connectNulls","isRange","ref"],Cle=["key"],I$;function Ns(e){"@babel/helpers - typeof";return Ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ns(e)}function D$(e,t){if(e==null)return{};var n=jle(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jle(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Zo(){return Zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zo.apply(this,arguments)}function uA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uA(Object(n),!0).forEach(function(r){zr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,z$(r.key),r)}}function Nle(e,t,n){return t&&cA(e.prototype,t),n&&cA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lle(e,t,n){return t=Zd(t),Ile(e,R$()?Reflect.construct(t,n||[],Zd(e).constructor):t.apply(e,n))}function Ile(e,t){if(t&&(Ns(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dle(e)}function Dle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R$=function(){return!!e})()}function Zd(e){return Zd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zd(e)}function Rle(e,t){if(typeof t!="function"&&t!==null)throw new 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&&m0(e,t)}function m0(e,t){return m0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},m0(e,t)}function zr(e,t,n){return t=z$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z$(e){var t=zle(e,"string");return Ns(t)=="symbol"?t:t+""}function zle(e,t){if(Ns(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xo=function(e){function t(){var n;$le(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Lle(this,t,[].concat(i)),zr(n,"state",{isAnimationFinished:!0}),zr(n,"id",$c("recharts-area-")),zr(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Pe(s)&&s()}),zr(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Pe(s)&&s()}),n}return Rle(t,e),Nle(t,[{key:"renderDots",value:function(r,i,o){var s=this.props.isAnimationActive,l=this.state.isAnimationFinished;if(s&&!l)return null;var u=this.props,f=u.dot,d=u.points,h=u.dataKey,m=Ee(this.props,!1),v=Ee(f,!0),b=d.map(function(S,y){var _=zi(zi(zi({key:"dot-".concat(y),r:3},m),v),{},{index:y,cx:S.x,cy:S.y,dataKey:h,value:S.value,payload:S.payload,points:d});return t.renderDotItem(f,_)}),x={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return D.createElement(ft,Zo({className:"recharts-area-dots"},x),b)}},{key:"renderHorizontalRect",value:function(r){var i=this.props,o=i.baseLine,s=i.points,l=i.strokeWidth,u=s[0].x,f=s[s.length-1].x,d=r*Math.abs(u-f),h=Ki(s.map(function(m){return m.y||0}));return ie(o)&&typeof o=="number"?h=Math.max(o,h):o&&Array.isArray(o)&&o.length&&(h=Math.max(Ki(o.map(function(m){return m.y||0})),h)),ie(h)?D.createElement("rect",{x:u<f?u:u-d,y:0,width:d,height:Math.floor(h+(l?parseInt("".concat(l),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var i=this.props,o=i.baseLine,s=i.points,l=i.strokeWidth,u=s[0].y,f=s[s.length-1].y,d=r*Math.abs(u-f),h=Ki(s.map(function(m){return m.x||0}));return ie(o)&&typeof o=="number"?h=Math.max(o,h):o&&Array.isArray(o)&&o.length&&(h=Math.max(Ki(o.map(function(m){return m.x||0})),h)),ie(h)?D.createElement("rect",{x:0,y:u<f?u:u-d,width:h+(l?parseInt("".concat(l),10):1),height:Math.floor(d)}):null}},{key:"renderClipRect",value:function(r){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,i,o,s){var l=this.props,u=l.layout,f=l.type,d=l.stroke,h=l.connectNulls,m=l.isRange;l.ref;var v=D$(l,Mle);return D.createElement(ft,{clipPath:o?"url(#clipPath-".concat(s,")"):null},D.createElement(gu,Zo({},Ee(v,!0),{points:r,connectNulls:h,type:f,baseLine:i,layout:u,stroke:"none",className:"recharts-area-area"})),d!=="none"&&D.createElement(gu,Zo({},Ee(this.props,!1),{className:"recharts-area-curve",layout:u,type:f,connectNulls:h,fill:"none",points:r})),d!=="none"&&m&&D.createElement(gu,Zo({},Ee(this.props,!1),{className:"recharts-area-curve",layout:u,type:f,connectNulls:h,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(r,i){var o=this,s=this.props,l=s.points,u=s.baseLine,f=s.isAnimationActive,d=s.animationBegin,h=s.animationDuration,m=s.animationEasing,v=s.animationId,b=this.state,x=b.prevPoints,S=b.prevBaseLine;return D.createElement(Ti,{begin:d,duration:h,isActive:f,easing:m,from:{t:0},to:{t:1},key:"area-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(y){var _=y.t;if(x){var w=x.length/l.length,E=l.map(function(C,N){var B=Math.floor(N*w);if(x[B]){var z=x[B],R=nr(z.x,C.x),K=nr(z.y,C.y);return zi(zi({},C),{},{x:R(_),y:K(_)})}return C}),P;if(ie(u)&&typeof u=="number"){var A=nr(S,u);P=A(_)}else if(Me(u)||Qs(u)){var M=nr(S,0);P=M(_)}else P=u.map(function(C,N){var B=Math.floor(N*w);if(S[B]){var z=S[B],R=nr(z.x,C.x),K=nr(z.y,C.y);return zi(zi({},C),{},{x:R(_),y:K(_)})}return C});return o.renderAreaStatically(E,P,r,i)}return D.createElement(ft,null,D.createElement("defs",null,D.createElement("clipPath",{id:"animationClipPath-".concat(i)},o.renderClipRect(_))),D.createElement(ft,{clipPath:"url(#animationClipPath-".concat(i,")")},o.renderAreaStatically(l,u,r,i)))})}},{key:"renderArea",value:function(r,i){var o=this.props,s=o.points,l=o.baseLine,u=o.isAnimationActive,f=this.state,d=f.prevPoints,h=f.prevBaseLine,m=f.totalLength;return u&&s&&s.length&&(!d&&m>0||!Ju(d,s)||!Ju(h,l))?this.renderAreaWithAnimation(r,i):this.renderAreaStatically(s,l,r,i)}},{key:"render",value:function(){var r,i=this.props,o=i.hide,s=i.dot,l=i.points,u=i.className,f=i.top,d=i.left,h=i.xAxis,m=i.yAxis,v=i.width,b=i.height,x=i.isAnimationActive,S=i.id;if(o||!l||!l.length)return null;var y=this.state.isAnimationFinished,_=l.length===1,w=Ne("recharts-area",u),E=h&&h.allowDataOverflow,P=m&&m.allowDataOverflow,A=E||P,M=Me(S)?this.id:S,C=(r=Ee(s,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},N=C.r,B=N===void 0?3:N,z=C.strokeWidth,R=z===void 0?2:z,K=eV(s)?s:{},H=K.clipDot,W=H===void 0?!0:H,Z=B*2+R;return D.createElement(ft,{className:w},E||P?D.createElement("defs",null,D.createElement("clipPath",{id:"clipPath-".concat(M)},D.createElement("rect",{x:E?d:d-v/2,y:P?f:f-b/2,width:E?v:v*2,height:P?b:b*2})),!W&&D.createElement("clipPath",{id:"clipPath-dots-".concat(M)},D.createElement("rect",{x:d-Z/2,y:f-Z/2,width:v+Z,height:b+Z}))):null,_?null:this.renderArea(A,M),(s||_)&&this.renderDots(A,W,M),(!x||y)&&Hr.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:r.points!==i.curPoints||r.baseLine!==i.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])}(j.PureComponent);I$=xo;zr(xo,"displayName","Area");zr(xo,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!nl.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});zr(xo,"getBaseValue",function(e,t,n,r){var i=e.layout,o=e.baseValue,s=t.props.baseValue,l=s??o;if(ie(l)&&typeof l=="number")return l;var u=i==="horizontal"?r:n,f=u.scale.domain();if(u.type==="number"){var d=Math.max(f[0],f[1]),h=Math.min(f[0],f[1]);return l==="dataMin"?h:l==="dataMax"||d<0?d:Math.max(Math.min(f[0],f[1]),0)}return l==="dataMin"?f[0]:l==="dataMax"?f[1]:f[0]});zr(xo,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,i=e.yAxis,o=e.xAxisTicks,s=e.yAxisTicks,l=e.bandSize,u=e.dataKey,f=e.stackedData,d=e.dataStartIndex,h=e.displayedData,m=e.offset,v=t.layout,b=f&&f.length,x=I$.getBaseValue(t,n,r,i),S=v==="horizontal",y=!1,_=h.map(function(E,P){var A;b?A=f[d+P]:(A=Bn(E,u),Array.isArray(A)?y=!0:A=[x,A]);var M=A[1]==null||b&&Bn(E,u)==null;return S?{x:KO({axis:r,ticks:o,bandSize:l,entry:E,index:P}),y:M?null:i.scale(A[1]),value:A,payload:E}:{x:M?null:r.scale(A[1]),y:KO({axis:i,ticks:s,bandSize:l,entry:E,index:P}),value:A,payload:E}}),w;return b||y?w=_.map(function(E){var P=Array.isArray(E.value)?E.value[0]:null;return S?{x:E.x,y:P!=null&&E.y!=null?i.scale(P):null}:{x:P!=null?r.scale(P):null,y:E.y}}):w=S?i.scale(x):r.scale(x),zi({points:_,baseLine:w,layout:v,isRange:y},m)});zr(xo,"renderDotItem",function(e,t){var n;if(D.isValidElement(e))n=D.cloneElement(e,t);else if(Pe(e))n=e(t);else{var r=Ne("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,o=D$(t,Cle);n=D.createElement(i1,Zo({},o,{key:i,className:r}))}return n});function Ls(e){"@babel/helpers - typeof";return Ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ls(e)}function Ble(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,V$(r.key),r)}}function Vle(e,t,n){return t&&Fle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ule(e,t,n){return t=Gd(t),Wle(e,B$()?Reflect.construct(t,n||[],Gd(e).constructor):t.apply(e,n))}function Wle(e,t){if(t&&(Ls(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hle(e)}function Hle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B$=function(){return!!e})()}function Gd(e){return Gd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gd(e)}function Zle(e,t){if(typeof t!="function"&&t!==null)throw new 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&&v0(e,t)}function v0(e,t){return v0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},v0(e,t)}function F$(e,t,n){return t=V$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V$(e){var t=Gle(e,"string");return Ls(t)=="symbol"?t:t+""}function Gle(e,t){if(Ls(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ls(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function g0(){return g0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g0.apply(this,arguments)}function Kle(e){var t=e.xAxisId,n=l1(),r=u1(),i=P$(t);return i==null?null:j.createElement(al,g0({},i,{className:Ne("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(s){return fi(s,!0)}}))}var Is=function(e){function t(){return Ble(this,t),Ule(this,t,arguments)}return Zle(t,e),Vle(t,[{key:"render",value:function(){return j.createElement(Kle,this.props)}}])}(j.Component);F$(Is,"displayName","XAxis");F$(Is,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Ds(e){"@babel/helpers - typeof";return Ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ds(e)}function qle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,H$(r.key),r)}}function Yle(e,t,n){return t&&Xle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qle(e,t,n){return t=Kd(t),Jle(e,U$()?Reflect.construct(t,n||[],Kd(e).constructor):t.apply(e,n))}function Jle(e,t){if(t&&(Ds(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eue(e)}function eue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(U$=function(){return!!e})()}function Kd(e){return Kd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kd(e)}function tue(e,t){if(typeof t!="function"&&t!==null)throw new 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&&y0(e,t)}function y0(e,t){return y0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},y0(e,t)}function W$(e,t,n){return t=H$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H$(e){var t=nue(e,"string");return Ds(t)=="symbol"?t:t+""}function nue(e,t){if(Ds(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ds(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function x0(){return x0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x0.apply(this,arguments)}var rue=function(t){var n=t.yAxisId,r=l1(),i=u1(),o=O$(n);return o==null?null:j.createElement(al,x0({},o,{className:Ne("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(l){return fi(l,!0)}}))},Rs=function(e){function t(){return qle(this,t),Qle(this,t,arguments)}return tue(t,e),Yle(t,[{key:"render",value:function(){return j.createElement(rue,this.props)}}])}(j.Component);W$(Rs,"displayName","YAxis");W$(Rs,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function fA(e){return sue(e)||aue(e)||oue(e)||iue()}function iue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
391
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oue(e,t){if(e){if(typeof e=="string")return _0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _0(e,t)}}function aue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sue(e){if(Array.isArray(e))return _0(e)}function _0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var b0=function(t,n,r,i,o){var s=Ar(t,f1),l=Ar(t,Qo),u=[].concat(fA(s),fA(l)),f=Ar(t,nm),d="".concat(i,"Id"),h=i[0],m=n;if(u.length&&(m=u.reduce(function(x,S){if(S.props[d]===r&&Zr(S.props,"extendDomain")&&ie(S.props[h])){var y=S.props[h];return[Math.min(x[0],y),Math.max(x[1],y)]}return x},m)),f.length){var v="".concat(h,"1"),b="".concat(h,"2");m=f.reduce(function(x,S){if(S.props[d]===r&&Zr(S.props,"extendDomain")&&ie(S.props[v])&&ie(S.props[b])){var y=S.props[v],_=S.props[b];return[Math.min(x[0],y,_),Math.max(x[1],y,_)]}return x},m)}return o&&o.length&&(m=o.reduce(function(x,S){return ie(S)?[Math.min(x[0],S),Math.max(x[1],S)]:x},m)),m},Z$={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(u,f,d){this.fn=u,this.context=f,this.once=d||!1}function o(u,f,d,h,m){if(typeof d!="function")throw new TypeError("The listener must be a function");var v=new i(d,h||u,m),b=n?n+f:f;return u._events[b]?u._events[b].fn?u._events[b]=[u._events[b],v]:u._events[b].push(v):(u._events[b]=v,u._eventsCount++),u}function s(u,f){--u._eventsCount===0?u._events=new r:delete u._events[f]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var f=[],d,h;if(this._eventsCount===0)return f;for(h in d=this._events)t.call(d,h)&&f.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(d)):f},l.prototype.listeners=function(f){var d=n?n+f:f,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var m=0,v=h.length,b=new Array(v);m<v;m++)b[m]=h[m].fn;return b},l.prototype.listenerCount=function(f){var d=n?n+f:f,h=this._events[d];return h?h.fn?1:h.length:0},l.prototype.emit=function(f,d,h,m,v,b){var x=n?n+f:f;if(!this._events[x])return!1;var S=this._events[x],y=arguments.length,_,w;if(S.fn){switch(S.once&&this.removeListener(f,S.fn,void 0,!0),y){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,d),!0;case 3:return S.fn.call(S.context,d,h),!0;case 4:return S.fn.call(S.context,d,h,m),!0;case 5:return S.fn.call(S.context,d,h,m,v),!0;case 6:return S.fn.call(S.context,d,h,m,v,b),!0}for(w=1,_=new Array(y-1);w<y;w++)_[w-1]=arguments[w];S.fn.apply(S.context,_)}else{var E=S.length,P;for(w=0;w<E;w++)switch(S[w].once&&this.removeListener(f,S[w].fn,void 0,!0),y){case 1:S[w].fn.call(S[w].context);break;case 2:S[w].fn.call(S[w].context,d);break;case 3:S[w].fn.call(S[w].context,d,h);break;case 4:S[w].fn.call(S[w].context,d,h,m);break;default:if(!_)for(P=1,_=new Array(y-1);P<y;P++)_[P-1]=arguments[P];S[w].fn.apply(S[w].context,_)}}return!0},l.prototype.on=function(f,d,h){return o(this,f,d,h,!1)},l.prototype.once=function(f,d,h){return o(this,f,d,h,!0)},l.prototype.removeListener=function(f,d,h,m){var v=n?n+f:f;if(!this._events[v])return this;if(!d)return s(this,v),this;var b=this._events[v];if(b.fn)b.fn===d&&(!m||b.once)&&(!h||b.context===h)&&s(this,v);else{for(var x=0,S=[],y=b.length;x<y;x++)(b[x].fn!==d||m&&!b[x].once||h&&b[x].context!==h)&&S.push(b[x]);S.length?this._events[v]=S.length===1?S[0]:S:s(this,v)}return this},l.prototype.removeAllListeners=function(f){var d;return f?(d=n?n+f:f,this._events[d]&&s(this,d)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(Z$);var lue=Z$.exports;const uue=Ze(lue);var Rv=new uue,zv="recharts.syncMouseEvents";function bc(e){"@babel/helpers - typeof";return bc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bc(e)}function cue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,G$(r.key),r)}}function hue(e,t,n){return t&&fue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bv(e,t,n){return t=G$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G$(e){var t=due(e,"string");return bc(t)=="symbol"?t:t+""}function due(e,t){if(bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pue=function(){function e(){cue(this,e),Bv(this,"activeIndex",0),Bv(this,"coordinateList",[]),Bv(this,"layout","horizontal")}return hue(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,o=i===void 0?null:i,s=n.container,l=s===void 0?null:s,u=n.layout,f=u===void 0?null:u,d=n.offset,h=d===void 0?null:d,m=n.mouseHandlerCallback,v=m===void 0?null:m;this.coordinateList=(r=o??this.coordinateList)!==null&&r!==void 0?r:[],this.container=l??this.container,this.layout=f??this.layout,this.offset=h??this.offset,this.mouseHandlerCallback=v??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),o=i.x,s=i.y,l=i.height,u=this.coordinateList[this.activeIndex].coordinate,f=((n=window)===null||n===void 0?void 0:n.scrollX)||0,d=((r=window)===null||r===void 0?void 0:r.scrollY)||0,h=o+u+f,m=s+this.offset.top+l/2+d;this.mouseHandlerCallback({pageX:h,pageY:m})}}}])}();function mue(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&ie(r)&&ie(i))return!0}return!1}function vue(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function K$(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,o=e.endAngle,s=Ht(t,n,r,i),l=Ht(t,n,r,o);return{points:[s,l],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function gue(e,t,n){var r,i,o,s;if(e==="horizontal")r=t.x,o=r,i=n.top,s=n.top+n.height;else if(e==="vertical")i=t.y,s=i,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,u=t.cy,f=t.innerRadius,d=t.outerRadius,h=t.angle,m=Ht(l,u,f,h),v=Ht(l,u,d,h);r=m.x,i=m.y,o=v.x,s=v.y}else return K$(t);return[{x:r,y:i},{x:o,y:s}]}function wc(e){"@babel/helpers - typeof";return wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wc(e)}function hA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function th(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hA(Object(n),!0).forEach(function(r){yue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yue(e,t,n){return t=xue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xue(e){var t=_ue(e,"string");return wc(t)=="symbol"?t:t+""}function _ue(e,t){if(wc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bue(e){var t,n,r=e.element,i=e.tooltipEventType,o=e.isActive,s=e.activeCoordinate,l=e.activePayload,u=e.offset,f=e.activeTooltipIndex,d=e.tooltipAxisBandSize,h=e.layout,m=e.chartName,v=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!v||!o||!s||m!=="ScatterChart"&&i!=="axis")return null;var b,x=gu;if(m==="ScatterChart")b=s,x=Oie;else if(m==="BarChart")b=vue(h,s,u,d),x=r1;else if(h==="radial"){var S=K$(s),y=S.cx,_=S.cy,w=S.radius,E=S.startAngle,P=S.endAngle;b={cx:y,cy:_,startAngle:E,endAngle:P,innerRadius:w,outerRadius:w},x=qj}else b={points:gue(h,s,u)},x=gu;var A=th(th(th(th({stroke:"#ccc",pointerEvents:"none"},u),b),Ee(v,!1)),{},{payload:l,payloadIndex:f,className:Ne("recharts-tooltip-cursor",v.className)});return j.isValidElement(v)?j.cloneElement(v,A):j.createElement(x,A)}var wue=["item"],Sue=["children","className","width","height","style","compact","title","desc"];function zs(e){"@babel/helpers - typeof";return zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zs(e)}function Xa(){return Xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xa.apply(this,arguments)}function dA(e,t){return Tue(e)||Oue(e,t)||X$(e,t)||Pue()}function Pue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
392
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Tue(e){if(Array.isArray(e))return e}function pA(e,t){if(e==null)return{};var n=Aue(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Aue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Eue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Y$(r.key),r)}}function Mue(e,t,n){return t&&kue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cue(e,t,n){return t=qd(t),jue(e,q$()?Reflect.construct(t,n||[],qd(e).constructor):t.apply(e,n))}function jue(e,t){if(t&&(zs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $ue(e)}function $ue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q$=function(){return!!e})()}function qd(e){return qd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qd(e)}function Nue(e,t){if(typeof t!="function"&&t!==null)throw new 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&&w0(e,t)}function w0(e,t){return w0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},w0(e,t)}function Bs(e){return Due(e)||Iue(e)||X$(e)||Lue()}function Lue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
393
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X$(e,t){if(e){if(typeof e=="string")return S0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S0(e,t)}}function Iue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Due(e){if(Array.isArray(e))return S0(e)}function S0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mA(Object(n),!0).forEach(function(r){ve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ve(e,t,n){return t=Y$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y$(e){var t=Rue(e,"string");return zs(t)=="symbol"?t:t+""}function Rue(e,t){if(zs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zue={xAxis:["bottom","top"],yAxis:["left","right"]},Bue={width:"100%",height:"100%"},Q$={x:0,y:0};function nh(e){return e}var Fue=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Vue=function(t,n,r,i){var o=n.find(function(d){return d&&d.index===r});if(o){if(t==="horizontal")return{x:o.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:o.coordinate};if(t==="centric"){var s=o.coordinate,l=i.radius;return X(X(X({},i),Ht(i.cx,i.cy,l,s)),{},{angle:s,radius:l})}var u=o.coordinate,f=i.angle;return X(X(X({},i),Ht(i.cx,i.cy,u,f)),{},{angle:f,radius:u})}return Q$},rm=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,o=n.dataEndIndex,s=(r??[]).reduce(function(l,u){var f=u.props.data;return f&&f.length?[].concat(Bs(l),Bs(f)):l},[]);return s.length>0?s:t&&t.length&&ie(i)&&ie(o)?t.slice(i,o+1):[]};function J$(e){return e==="number"?[0,"auto"]:void 0}var P0=function(t,n,r,i){var o=t.graphicalItems,s=t.tooltipAxis,l=rm(n,t);return r<0||!o||!o.length||r>=l.length?null:o.reduce(function(u,f){var d,h=(d=f.props.data)!==null&&d!==void 0?d:n;h&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(h=h.slice(t.dataStartIndex,t.dataEndIndex+1));var m;if(s.dataKey&&!s.allowDuplicatedCategory){var v=h===void 0?l:h;m=qh(v,s.dataKey,i)}else m=h&&h[r]||l[r];return m?[].concat(Bs(u),[Zj(f,m)]):u},[])},vA=function(t,n,r,i){var o=i||{x:t.chartX,y:t.chartY},s=Fue(o,r),l=t.orderedTooltipTicks,u=t.tooltipAxis,f=t.tooltipTicks,d=rte(s,l,f,u);if(d>=0&&f){var h=f[d]&&f[d].value,m=P0(t,n,d,h),v=Vue(r,l,d,o);return{activeTooltipIndex:d,activeLabel:h,activePayload:m,activeCoordinate:v}}return null},Uue=function(t,n){var r=n.axes,i=n.graphicalItems,o=n.axisType,s=n.axisIdKey,l=n.stackGroups,u=n.dataStartIndex,f=n.dataEndIndex,d=t.layout,h=t.children,m=t.stackOffset,v=Uj(d,o);return r.reduce(function(b,x){var S,y=x.type.defaultProps!==void 0?X(X({},x.type.defaultProps),x.props):x.props,_=y.type,w=y.dataKey,E=y.allowDataOverflow,P=y.allowDuplicatedCategory,A=y.scale,M=y.ticks,C=y.includeHidden,N=y[s];if(b[N])return b;var B=rm(t.data,{graphicalItems:i.filter(function(Q){var ae,fe=s in Q.props?Q.props[s]:(ae=Q.type.defaultProps)===null||ae===void 0?void 0:ae[s];return fe===N}),dataStartIndex:u,dataEndIndex:f}),z=B.length,R,K,H;mue(y.domain,E,_)&&(R=Vy(y.domain,null,E),v&&(_==="number"||A!=="auto")&&(H=vu(B,w,"category")));var W=J$(_);if(!R||R.length===0){var Z,G=(Z=y.domain)!==null&&Z!==void 0?Z:W;if(w){if(R=vu(B,w,_),_==="category"&&v){var $=W6(R);P&&$?(K=R,R=Id(0,z)):P||(R=QO(G,R,x).reduce(function(Q,ae){return Q.indexOf(ae)>=0?Q:[].concat(Bs(Q),[ae])},[]))}else if(_==="category")P?R=R.filter(function(Q){return Q!==""&&!Me(Q)}):R=QO(G,R,x).reduce(function(Q,ae){return Q.indexOf(ae)>=0||ae===""||Me(ae)?Q:[].concat(Bs(Q),[ae])},[]);else if(_==="number"){var q=lte(B,i.filter(function(Q){var ae,fe,he=s in Q.props?Q.props[s]:(ae=Q.type.defaultProps)===null||ae===void 0?void 0:ae[s],ce="hide"in Q.props?Q.props.hide:(fe=Q.type.defaultProps)===null||fe===void 0?void 0:fe.hide;return he===N&&(C||!ce)}),w,o,d);q&&(R=q)}v&&(_==="number"||A!=="auto")&&(H=vu(B,w,"category"))}else v?R=Id(0,z):l&&l[N]&&l[N].hasStack&&_==="number"?R=m==="expand"?[0,1]:Hj(l[N].stackGroups,u,f):R=Vj(B,i.filter(function(Q){var ae=s in Q.props?Q.props[s]:Q.type.defaultProps[s],fe="hide"in Q.props?Q.props.hide:Q.type.defaultProps.hide;return ae===N&&(C||!fe)}),_,d,!0);if(_==="number")R=b0(h,R,N,o,M),G&&(R=Vy(G,R,E));else if(_==="category"&&G){var V=G,te=R.every(function(Q){return V.indexOf(Q)>=0});te&&(R=V)}}return X(X({},b),{},ve({},N,X(X({},y),{},{axisType:o,domain:R,categoricalDomain:H,duplicateDomain:K,originalDomain:(S=y.domain)!==null&&S!==void 0?S:W,isCategorical:v,layout:d})))},{})},Wue=function(t,n){var r=n.graphicalItems,i=n.Axis,o=n.axisType,s=n.axisIdKey,l=n.stackGroups,u=n.dataStartIndex,f=n.dataEndIndex,d=t.layout,h=t.children,m=rm(t.data,{graphicalItems:r,dataStartIndex:u,dataEndIndex:f}),v=m.length,b=Uj(d,o),x=-1;return r.reduce(function(S,y){var _=y.type.defaultProps!==void 0?X(X({},y.type.defaultProps),y.props):y.props,w=_[s],E=J$("number");if(!S[w]){x++;var P;return b?P=Id(0,v):l&&l[w]&&l[w].hasStack?(P=Hj(l[w].stackGroups,u,f),P=b0(h,P,w,o)):(P=Vy(E,Vj(m,r.filter(function(A){var M,C,N=s in A.props?A.props[s]:(M=A.type.defaultProps)===null||M===void 0?void 0:M[s],B="hide"in A.props?A.props.hide:(C=A.type.defaultProps)===null||C===void 0?void 0:C.hide;return N===w&&!B}),"number",d),i.defaultProps.allowDataOverflow),P=b0(h,P,w,o)),X(X({},S),{},ve({},w,X(X({axisType:o},i.defaultProps),{},{hide:!0,orientation:ar(zue,"".concat(o,".").concat(x%2),null),domain:P,originalDomain:E,isCategorical:b,layout:d})))}return S},{})},Hue=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,o=n.AxisComp,s=n.graphicalItems,l=n.stackGroups,u=n.dataStartIndex,f=n.dataEndIndex,d=t.children,h="".concat(i,"Id"),m=Ar(d,o),v={};return m&&m.length?v=Uue(t,{axes:m,graphicalItems:s,axisType:i,axisIdKey:h,stackGroups:l,dataStartIndex:u,dataEndIndex:f}):s&&s.length&&(v=Wue(t,{Axis:o,graphicalItems:s,axisType:i,axisIdKey:h,stackGroups:l,dataStartIndex:u,dataEndIndex:f})),v},Zue=function(t){var n=Hi(t),r=fi(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:k_(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Td(n,r)}},gA=function(t){var n=t.children,r=t.defaultShowTooltip,i=jn(n,Es),o=0,s=0;return t.data&&t.data.length!==0&&(s=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(s=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:s,activeTooltipIndex:-1,isTooltipActive:!!r}},Gue=function(t){return!t||!t.length?!1:t.some(function(n){var r=mi(n&&n.type);return r&&r.indexOf("Bar")>=0})},yA=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Kue=function(t,n){var r=t.props,i=t.graphicalItems,o=t.xAxisMap,s=o===void 0?{}:o,l=t.yAxisMap,u=l===void 0?{}:l,f=r.width,d=r.height,h=r.children,m=r.margin||{},v=jn(h,Es),b=jn(h,is),x=Object.keys(u).reduce(function(P,A){var M=u[A],C=M.orientation;return!M.mirror&&!M.hide?X(X({},P),{},ve({},C,P[C]+M.width)):P},{left:m.left||0,right:m.right||0}),S=Object.keys(s).reduce(function(P,A){var M=s[A],C=M.orientation;return!M.mirror&&!M.hide?X(X({},P),{},ve({},C,ar(P,"".concat(C))+M.height)):P},{top:m.top||0,bottom:m.bottom||0}),y=X(X({},S),x),_=y.bottom;v&&(y.bottom+=v.props.height||Es.defaultProps.height),b&&n&&(y=ate(y,i,r,n));var w=f-y.left-y.right,E=d-y.top-y.bottom;return X(X({brushBottom:_},y),{},{width:Math.max(w,0),height:Math.max(E,0)})},que=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},eN=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,s=t.validateTooltipEventTypes,l=s===void 0?["axis"]:s,u=t.axisComponents,f=t.legendContent,d=t.formatAxisMap,h=t.defaultProps,m=function(y,_){var w=_.graphicalItems,E=_.stackGroups,P=_.offset,A=_.updateId,M=_.dataStartIndex,C=_.dataEndIndex,N=y.barSize,B=y.layout,z=y.barGap,R=y.barCategoryGap,K=y.maxBarSize,H=yA(B),W=H.numericAxisName,Z=H.cateAxisName,G=Gue(w),$=[];return w.forEach(function(q,V){var te=rm(y.data,{graphicalItems:[q],dataStartIndex:M,dataEndIndex:C}),Q=q.type.defaultProps!==void 0?X(X({},q.type.defaultProps),q.props):q.props,ae=Q.dataKey,fe=Q.maxBarSize,he=Q["".concat(W,"Id")],ce=Q["".concat(Z,"Id")],Ve={},ze=u.reduce(function(zt,Kt){var Y=_["".concat(Kt.axisType,"Map")],_e=Q["".concat(Kt.axisType,"Id")];Y&&Y[_e]||Kt.axisType==="zAxis"||sa();var be=Y[_e];return X(X({},zt),{},ve(ve({},Kt.axisType,be),"".concat(Kt.axisType,"Ticks"),fi(be)))},Ve),oe=ze[Z],me=ze["".concat(Z,"Ticks")],ye=E&&E[he]&&E[he].hasStack&&_te(q,E[he].stackGroups),J=mi(q.type).indexOf("Bar")>=0,Le=Td(oe,me),Se=[],Ue=G&&ite({barSize:N,stackGroups:E,totalSize:que(ze,Z)});if(J){var We,it,Tt=Me(fe)?K:fe,vn=(We=(it=Td(oe,me,!0))!==null&&it!==void 0?it:Tt)!==null&&We!==void 0?We:0;Se=ote({barGap:z,barCategoryGap:R,bandSize:vn!==Le?vn:Le,sizeList:Ue[ce],maxBarSize:Tt}),vn!==Le&&(Se=Se.map(function(zt){return X(X({},zt),{},{position:X(X({},zt.position),{},{offset:zt.position.offset-vn/2})})}))}var An=q&&q.type&&q.type.getComposedData;An&&$.push({props:X(X({},An(X(X({},ze),{},{displayedData:te,props:y,dataKey:ae,item:q,bandSize:Le,barPosition:Se,offset:P,stackedData:ye,layout:B,dataStartIndex:M,dataEndIndex:C}))),{},ve(ve(ve({key:q.key||"item-".concat(V)},W,ze[W]),Z,ze[Z]),"animationId",A)),childIndex:rV(q,y.children),item:q})}),$},v=function(y,_){var w=y.props,E=y.dataStartIndex,P=y.dataEndIndex,A=y.updateId;if(!WS({props:w}))return null;var M=w.children,C=w.layout,N=w.stackOffset,B=w.data,z=w.reverseStackOrder,R=yA(C),K=R.numericAxisName,H=R.cateAxisName,W=Ar(M,r),Z=gte(B,W,"".concat(K,"Id"),"".concat(H,"Id"),N,z),G=u.reduce(function(Q,ae){var fe="".concat(ae.axisType,"Map");return X(X({},Q),{},ve({},fe,Hue(w,X(X({},ae),{},{graphicalItems:W,stackGroups:ae.axisType===K&&Z,dataStartIndex:E,dataEndIndex:P}))))},{}),$=Kue(X(X({},G),{},{props:w,graphicalItems:W}),_==null?void 0:_.legendBBox);Object.keys(G).forEach(function(Q){G[Q]=d(w,G[Q],$,Q.replace("Map",""),n)});var q=G["".concat(H,"Map")],V=Zue(q),te=m(w,X(X({},G),{},{dataStartIndex:E,dataEndIndex:P,updateId:A,graphicalItems:W,stackGroups:Z,offset:$}));return X(X({formattedGraphicalItems:te,graphicalItems:W,offset:$,stackGroups:Z},V),G)},b=function(S){function y(_){var w,E,P;return Eue(this,y),P=Cue(this,y,[_]),ve(P,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ve(P,"accessibilityManager",new pue),ve(P,"handleLegendBBoxUpdate",function(A){if(A){var M=P.state,C=M.dataStartIndex,N=M.dataEndIndex,B=M.updateId;P.setState(X({legendBBox:A},v({props:P.props,dataStartIndex:C,dataEndIndex:N,updateId:B},X(X({},P.state),{},{legendBBox:A}))))}}),ve(P,"handleReceiveSyncEvent",function(A,M,C){if(P.props.syncId===A){if(C===P.eventEmitterSymbol&&typeof P.props.syncMethod!="function")return;P.applySyncEvent(M)}}),ve(P,"handleBrushChange",function(A){var M=A.startIndex,C=A.endIndex;if(M!==P.state.dataStartIndex||C!==P.state.dataEndIndex){var N=P.state.updateId;P.setState(function(){return X({dataStartIndex:M,dataEndIndex:C},v({props:P.props,dataStartIndex:M,dataEndIndex:C,updateId:N},P.state))}),P.triggerSyncEvent({dataStartIndex:M,dataEndIndex:C})}}),ve(P,"handleMouseEnter",function(A){var M=P.getMouseInfo(A);if(M){var C=X(X({},M),{},{isTooltipActive:!0});P.setState(C),P.triggerSyncEvent(C);var N=P.props.onMouseEnter;Pe(N)&&N(C,A)}}),ve(P,"triggeredAfterMouseMove",function(A){var M=P.getMouseInfo(A),C=M?X(X({},M),{},{isTooltipActive:!0}):{isTooltipActive:!1};P.setState(C),P.triggerSyncEvent(C);var N=P.props.onMouseMove;Pe(N)&&N(C,A)}),ve(P,"handleItemMouseEnter",function(A){P.setState(function(){return{isTooltipActive:!0,activeItem:A,activePayload:A.tooltipPayload,activeCoordinate:A.tooltipPosition||{x:A.cx,y:A.cy}}})}),ve(P,"handleItemMouseLeave",function(){P.setState(function(){return{isTooltipActive:!1}})}),ve(P,"handleMouseMove",function(A){A.persist(),P.throttleTriggeredAfterMouseMove(A)}),ve(P,"handleMouseLeave",function(A){P.throttleTriggeredAfterMouseMove.cancel();var M={isTooltipActive:!1};P.setState(M),P.triggerSyncEvent(M);var C=P.props.onMouseLeave;Pe(C)&&C(M,A)}),ve(P,"handleOuterEvent",function(A){var M=nV(A),C=ar(P.props,"".concat(M));if(M&&Pe(C)){var N,B;/.*touch.*/i.test(M)?B=P.getMouseInfo(A.changedTouches[0]):B=P.getMouseInfo(A),C((N=B)!==null&&N!==void 0?N:{},A)}}),ve(P,"handleClick",function(A){var M=P.getMouseInfo(A);if(M){var C=X(X({},M),{},{isTooltipActive:!0});P.setState(C),P.triggerSyncEvent(C);var N=P.props.onClick;Pe(N)&&N(C,A)}}),ve(P,"handleMouseDown",function(A){var M=P.props.onMouseDown;if(Pe(M)){var C=P.getMouseInfo(A);M(C,A)}}),ve(P,"handleMouseUp",function(A){var M=P.props.onMouseUp;if(Pe(M)){var C=P.getMouseInfo(A);M(C,A)}}),ve(P,"handleTouchMove",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&P.throttleTriggeredAfterMouseMove(A.changedTouches[0])}),ve(P,"handleTouchStart",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&P.handleMouseDown(A.changedTouches[0])}),ve(P,"handleTouchEnd",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&P.handleMouseUp(A.changedTouches[0])}),ve(P,"handleDoubleClick",function(A){var M=P.props.onDoubleClick;if(Pe(M)){var C=P.getMouseInfo(A);M(C,A)}}),ve(P,"handleContextMenu",function(A){var M=P.props.onContextMenu;if(Pe(M)){var C=P.getMouseInfo(A);M(C,A)}}),ve(P,"triggerSyncEvent",function(A){P.props.syncId!==void 0&&Rv.emit(zv,P.props.syncId,A,P.eventEmitterSymbol)}),ve(P,"applySyncEvent",function(A){var M=P.props,C=M.layout,N=M.syncMethod,B=P.state.updateId,z=A.dataStartIndex,R=A.dataEndIndex;if(A.dataStartIndex!==void 0||A.dataEndIndex!==void 0)P.setState(X({dataStartIndex:z,dataEndIndex:R},v({props:P.props,dataStartIndex:z,dataEndIndex:R,updateId:B},P.state)));else if(A.activeTooltipIndex!==void 0){var K=A.chartX,H=A.chartY,W=A.activeTooltipIndex,Z=P.state,G=Z.offset,$=Z.tooltipTicks;if(!G)return;if(typeof N=="function")W=N($,A);else if(N==="value"){W=-1;for(var q=0;q<$.length;q++)if($[q].value===A.activeLabel){W=q;break}}var V=X(X({},G),{},{x:G.left,y:G.top}),te=Math.min(K,V.x+V.width),Q=Math.min(H,V.y+V.height),ae=$[W]&&$[W].value,fe=P0(P.state,P.props.data,W),he=$[W]?{x:C==="horizontal"?$[W].coordinate:te,y:C==="horizontal"?Q:$[W].coordinate}:Q$;P.setState(X(X({},A),{},{activeLabel:ae,activeCoordinate:he,activePayload:fe,activeTooltipIndex:W}))}else P.setState(A)}),ve(P,"renderCursor",function(A){var M,C=P.state,N=C.isTooltipActive,B=C.activeCoordinate,z=C.activePayload,R=C.offset,K=C.activeTooltipIndex,H=C.tooltipAxisBandSize,W=P.getTooltipEventType(),Z=(M=A.props.active)!==null&&M!==void 0?M:N,G=P.props.layout,$=A.key||"_recharts-cursor";return D.createElement(bue,{key:$,activeCoordinate:B,activePayload:z,activeTooltipIndex:K,chartName:n,element:A,isActive:Z,layout:G,offset:R,tooltipAxisBandSize:H,tooltipEventType:W})}),ve(P,"renderPolarAxis",function(A,M,C){var N=ar(A,"type.axisType"),B=ar(P.state,"".concat(N,"Map")),z=A.type.defaultProps,R=z!==void 0?X(X({},z),A.props):A.props,K=B&&B[R["".concat(N,"Id")]];return j.cloneElement(A,X(X({},K),{},{className:Ne(N,K.className),key:A.key||"".concat(M,"-").concat(C),ticks:fi(K,!0)}))}),ve(P,"renderPolarGrid",function(A){var M=A.props,C=M.radialLines,N=M.polarAngles,B=M.polarRadius,z=P.state,R=z.radiusAxisMap,K=z.angleAxisMap,H=Hi(R),W=Hi(K),Z=W.cx,G=W.cy,$=W.innerRadius,q=W.outerRadius;return j.cloneElement(A,{polarAngles:Array.isArray(N)?N:fi(W,!0).map(function(V){return V.coordinate}),polarRadius:Array.isArray(B)?B:fi(H,!0).map(function(V){return V.coordinate}),cx:Z,cy:G,innerRadius:$,outerRadius:q,key:A.key||"polar-grid",radialLines:C})}),ve(P,"renderLegend",function(){var A=P.state.formattedGraphicalItems,M=P.props,C=M.children,N=M.width,B=M.height,z=P.props.margin||{},R=N-(z.left||0)-(z.right||0),K=Bj({children:C,formattedGraphicalItems:A,legendWidth:R,legendContent:f});if(!K)return null;var H=K.item,W=pA(K,wue);return j.cloneElement(H,X(X({},W),{},{chartWidth:N,chartHeight:B,margin:z,onBBoxUpdate:P.handleLegendBBoxUpdate}))}),ve(P,"renderTooltip",function(){var A,M=P.props,C=M.children,N=M.accessibilityLayer,B=jn(C,ii);if(!B)return null;var z=P.state,R=z.isTooltipActive,K=z.activeCoordinate,H=z.activePayload,W=z.activeLabel,Z=z.offset,G=(A=B.props.active)!==null&&A!==void 0?A:R;return j.cloneElement(B,{viewBox:X(X({},Z),{},{x:Z.left,y:Z.top}),active:G,label:W,payload:G?H:[],coordinate:K,accessibilityLayer:N})}),ve(P,"renderBrush",function(A){var M=P.props,C=M.margin,N=M.data,B=P.state,z=B.offset,R=B.dataStartIndex,K=B.dataEndIndex,H=B.updateId;return j.cloneElement(A,{key:A.key||"_recharts-brush",onChange:Yf(P.handleBrushChange,A.props.onChange),data:N,x:ie(A.props.x)?A.props.x:z.left,y:ie(A.props.y)?A.props.y:z.top+z.height+z.brushBottom-(C.bottom||0),width:ie(A.props.width)?A.props.width:z.width,startIndex:R,endIndex:K,updateId:"brush-".concat(H)})}),ve(P,"renderReferenceElement",function(A,M,C){if(!A)return null;var N=P,B=N.clipPathId,z=P.state,R=z.xAxisMap,K=z.yAxisMap,H=z.offset,W=A.type.defaultProps||{},Z=A.props,G=Z.xAxisId,$=G===void 0?W.xAxisId:G,q=Z.yAxisId,V=q===void 0?W.yAxisId:q;return j.cloneElement(A,{key:A.key||"".concat(M,"-").concat(C),xAxis:R[$],yAxis:K[V],viewBox:{x:H.left,y:H.top,width:H.width,height:H.height},clipPathId:B})}),ve(P,"renderActivePoints",function(A){var M=A.item,C=A.activePoint,N=A.basePoint,B=A.childIndex,z=A.isRange,R=[],K=M.props.key,H=M.item.type.defaultProps!==void 0?X(X({},M.item.type.defaultProps),M.item.props):M.item.props,W=H.activeDot,Z=H.dataKey,G=X(X({index:B,dataKey:Z,cx:C.x,cy:C.y,r:4,fill:n1(M.item),strokeWidth:2,stroke:"#fff",payload:C.payload,value:C.value},Ee(W,!1)),Xh(W));return R.push(y.renderActiveDot(W,G,"".concat(K,"-activePoint-").concat(B))),N?R.push(y.renderActiveDot(W,X(X({},G),{},{cx:N.x,cy:N.y}),"".concat(K,"-basePoint-").concat(B))):z&&R.push(null),R}),ve(P,"renderGraphicChild",function(A,M,C){var N=P.filterFormatItem(A,M,C);if(!N)return null;var B=P.getTooltipEventType(),z=P.state,R=z.isTooltipActive,K=z.tooltipAxis,H=z.activeTooltipIndex,W=z.activeLabel,Z=P.props.children,G=jn(Z,ii),$=N.props,q=$.points,V=$.isRange,te=$.baseLine,Q=N.item.type.defaultProps!==void 0?X(X({},N.item.type.defaultProps),N.item.props):N.item.props,ae=Q.activeDot,fe=Q.hide,he=Q.activeBar,ce=Q.activeShape,Ve=!!(!fe&&R&&G&&(ae||he||ce)),ze={};B!=="axis"&&G&&G.props.trigger==="click"?ze={onClick:Yf(P.handleItemMouseEnter,A.props.onClick)}:B!=="axis"&&(ze={onMouseLeave:Yf(P.handleItemMouseLeave,A.props.onMouseLeave),onMouseEnter:Yf(P.handleItemMouseEnter,A.props.onMouseEnter)});var oe=j.cloneElement(A,X(X({},N.props),ze));function me(Kt){return typeof K.dataKey=="function"?K.dataKey(Kt.payload):null}if(Ve)if(H>=0){var ye,J;if(K.dataKey&&!K.allowDuplicatedCategory){var Le=typeof K.dataKey=="function"?me:"payload.".concat(K.dataKey.toString());ye=qh(q,Le,W),J=V&&te&&qh(te,Le,W)}else ye=q==null?void 0:q[H],J=V&&te&&te[H];if(ce||he){var Se=A.props.activeIndex!==void 0?A.props.activeIndex:H;return[j.cloneElement(A,X(X(X({},N.props),ze),{},{activeIndex:Se})),null,null]}if(!Me(ye))return[oe].concat(Bs(P.renderActivePoints({item:N,activePoint:ye,basePoint:J,childIndex:H,isRange:V})))}else{var Ue,We=(Ue=P.getItemByXY(P.state.activeCoordinate))!==null&&Ue!==void 0?Ue:{graphicalItem:oe},it=We.graphicalItem,Tt=it.item,vn=Tt===void 0?A:Tt,An=it.childIndex,zt=X(X(X({},N.props),ze),{},{activeIndex:An});return[j.cloneElement(vn,zt),null,null]}return V?[oe,null,null]:[oe,null]}),ve(P,"renderCustomized",function(A,M,C){return j.cloneElement(A,X(X({key:"recharts-customized-".concat(C)},P.props),P.state))}),ve(P,"renderMap",{CartesianGrid:{handler:nh,once:!0},ReferenceArea:{handler:P.renderReferenceElement},ReferenceLine:{handler:nh},ReferenceDot:{handler:P.renderReferenceElement},XAxis:{handler:nh},YAxis:{handler:nh},Brush:{handler:P.renderBrush,once:!0},Bar:{handler:P.renderGraphicChild},Line:{handler:P.renderGraphicChild},Area:{handler:P.renderGraphicChild},Radar:{handler:P.renderGraphicChild},RadialBar:{handler:P.renderGraphicChild},Scatter:{handler:P.renderGraphicChild},Pie:{handler:P.renderGraphicChild},Funnel:{handler:P.renderGraphicChild},Tooltip:{handler:P.renderCursor,once:!0},PolarGrid:{handler:P.renderPolarGrid,once:!0},PolarAngleAxis:{handler:P.renderPolarAxis},PolarRadiusAxis:{handler:P.renderPolarAxis},Customized:{handler:P.renderCustomized}}),P.clipPathId="".concat((w=_.id)!==null&&w!==void 0?w:$c("recharts"),"-clip"),P.throttleTriggeredAfterMouseMove=FC(P.triggeredAfterMouseMove,(E=_.throttleDelay)!==null&&E!==void 0?E:1e3/60),P.state={},P}return Nue(y,S),Mue(y,[{key:"componentDidMount",value:function(){var w,E;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,E=w.children,P=w.data,A=w.height,M=w.layout,C=jn(E,ii);if(C){var N=C.props.defaultIndex;if(!(typeof N!="number"||N<0||N>this.state.tooltipTicks.length-1)){var B=this.state.tooltipTicks[N]&&this.state.tooltipTicks[N].value,z=P0(this.state,P,N,B),R=this.state.tooltipTicks[N].coordinate,K=(this.state.offset.top+A)/2,H=M==="horizontal",W=H?{x:R,y:K}:{y:R,x:K},Z=this.state.formattedGraphicalItems.find(function($){var q=$.item;return q.type.name==="Scatter"});Z&&(W=X(X({},W),Z.props.points[N].tooltipPosition),z=Z.props.points[N].tooltipPayload);var G={activeTooltipIndex:N,isTooltipActive:!0,activeLabel:B,activePayload:z,activeCoordinate:W};this.setState(G),this.renderCursor(C),this.accessibilityManager.setIndex(N)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,E){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==E.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var P,A;this.accessibilityManager.setDetails({offset:{left:(P=this.props.margin.left)!==null&&P!==void 0?P:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0}})}return null}},{key:"componentDidUpdate",value:function(w){ry([jn(w.children,ii)],[jn(this.props.children,ii)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=jn(this.props.children,ii);if(w&&typeof w.props.shared=="boolean"){var E=w.props.shared?"axis":"item";return l.indexOf(E)>=0?E:o}return o}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var E=this.container,P=E.getBoundingClientRect(),A=kX(P),M={chartX:Math.round(w.pageX-A.left),chartY:Math.round(w.pageY-A.top)},C=P.width/E.offsetWidth||1,N=this.inRange(M.chartX,M.chartY,C);if(!N)return null;var B=this.state,z=B.xAxisMap,R=B.yAxisMap,K=this.getTooltipEventType(),H=vA(this.state,this.props.data,this.props.layout,N);if(K!=="axis"&&z&&R){var W=Hi(z).scale,Z=Hi(R).scale,G=W&&W.invert?W.invert(M.chartX):null,$=Z&&Z.invert?Z.invert(M.chartY):null;return X(X({},M),{},{xValue:G,yValue:$},H)}return H?X(X({},M),H):null}},{key:"inRange",value:function(w,E){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,A=this.props.layout,M=w/P,C=E/P;if(A==="horizontal"||A==="vertical"){var N=this.state.offset,B=M>=N.left&&M<=N.left+N.width&&C>=N.top&&C<=N.top+N.height;return B?{x:M,y:C}:null}var z=this.state,R=z.angleAxisMap,K=z.radiusAxisMap;if(R&&K){var H=Hi(R);return tT({x:M,y:C},H)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,E=this.getTooltipEventType(),P=jn(w,ii),A={};P&&E==="axis"&&(P.props.trigger==="click"?A={onClick:this.handleClick}:A={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var M=Xh(this.props,this.handleOuterEvent);return X(X({},M),A)}},{key:"addListener",value:function(){Rv.on(zv,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Rv.removeListener(zv,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,E,P){for(var A=this.state.formattedGraphicalItems,M=0,C=A.length;M<C;M++){var N=A[M];if(N.item===w||N.props.key===w.key||E===mi(N.item.type)&&P===N.childIndex)return N}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,E=this.state.offset,P=E.left,A=E.top,M=E.height,C=E.width;return D.createElement("defs",null,D.createElement("clipPath",{id:w},D.createElement("rect",{x:P,y:A,height:M,width:C})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(E,P){var A=dA(P,2),M=A[0],C=A[1];return X(X({},E),{},ve({},M,C.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(E,P){var A=dA(P,2),M=A[0],C=A[1];return X(X({},E),{},ve({},M,C.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var E;return(E=this.state.xAxisMap)===null||E===void 0||(E=E[w])===null||E===void 0?void 0:E.scale}},{key:"getYScaleByAxisId",value:function(w){var E;return(E=this.state.yAxisMap)===null||E===void 0||(E=E[w])===null||E===void 0?void 0:E.scale}},{key:"getItemByXY",value:function(w){var E=this.state,P=E.formattedGraphicalItems,A=E.activeItem;if(P&&P.length)for(var M=0,C=P.length;M<C;M++){var N=P[M],B=N.props,z=N.item,R=z.type.defaultProps!==void 0?X(X({},z.type.defaultProps),z.props):z.props,K=mi(z.type);if(K==="Bar"){var H=(B.data||[]).find(function($){return mie(w,$)});if(H)return{graphicalItem:N,payload:H}}else if(K==="RadialBar"){var W=(B.data||[]).find(function($){return tT(w,$)});if(W)return{graphicalItem:N,payload:W}}else if(Yp(N,A)||Qp(N,A)||vc(N,A)){var Z=yoe({graphicalItem:N,activeTooltipItem:A,itemData:R.data}),G=R.activeIndex===void 0?Z:R.activeIndex;return{graphicalItem:X(X({},N),{},{childIndex:G}),payload:vc(N,A)?R.data[Z]:N.props.data[Z]}}}return null}},{key:"render",value:function(){var w=this;if(!WS(this))return null;var E=this.props,P=E.children,A=E.className,M=E.width,C=E.height,N=E.style,B=E.compact,z=E.title,R=E.desc,K=pA(E,Sue),H=Ee(K,!1);if(B)return D.createElement(XT,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},D.createElement(oy,Xa({},H,{width:M,height:C,title:z,desc:R}),this.renderClipPath(),ZS(P,this.renderMap)));if(this.props.accessibilityLayer){var W,Z;H.tabIndex=(W=this.props.tabIndex)!==null&&W!==void 0?W:0,H.role=(Z=this.props.role)!==null&&Z!==void 0?Z:"application",H.onKeyDown=function($){w.accessibilityManager.keyboardEvent($)},H.onFocus=function(){w.accessibilityManager.focus()}}var G=this.parseEventsOfWrapper();return D.createElement(XT,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},D.createElement("div",Xa({className:Ne("recharts-wrapper",A),style:X({position:"relative",cursor:"default",width:M,height:C},N)},G,{ref:function(q){w.container=q}}),D.createElement(oy,Xa({},H,{width:M,height:C,title:z,desc:R,style:Bue}),this.renderClipPath(),ZS(P,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(j.Component);ve(b,"displayName",n),ve(b,"defaultProps",X({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},h)),ve(b,"getDerivedStateFromProps",function(S,y){var _=S.dataKey,w=S.data,E=S.children,P=S.width,A=S.height,M=S.layout,C=S.stackOffset,N=S.margin,B=y.dataStartIndex,z=y.dataEndIndex;if(y.updateId===void 0){var R=gA(S);return X(X(X({},R),{},{updateId:0},v(X(X({props:S},R),{},{updateId:0}),y)),{},{prevDataKey:_,prevData:w,prevWidth:P,prevHeight:A,prevLayout:M,prevStackOffset:C,prevMargin:N,prevChildren:E})}if(_!==y.prevDataKey||w!==y.prevData||P!==y.prevWidth||A!==y.prevHeight||M!==y.prevLayout||C!==y.prevStackOffset||!rs(N,y.prevMargin)){var K=gA(S),H={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},W=X(X({},vA(y,w,M)),{},{updateId:y.updateId+1}),Z=X(X(X({},K),H),W);return X(X(X({},Z),v(X({props:S},Z),y)),{},{prevDataKey:_,prevData:w,prevWidth:P,prevHeight:A,prevLayout:M,prevStackOffset:C,prevMargin:N,prevChildren:E})}if(!ry(E,y.prevChildren)){var G,$,q,V,te=jn(E,Es),Q=te&&(G=($=te.props)===null||$===void 0?void 0:$.startIndex)!==null&&G!==void 0?G:B,ae=te&&(q=(V=te.props)===null||V===void 0?void 0:V.endIndex)!==null&&q!==void 0?q:z,fe=Q!==B||ae!==z,he=!Me(w),ce=he&&!fe?y.updateId:y.updateId+1;return X(X({updateId:ce},v(X(X({props:S},y),{},{updateId:ce,dataStartIndex:Q,dataEndIndex:ae}),y)),{},{prevChildren:E,dataStartIndex:Q,dataEndIndex:ae})}return null}),ve(b,"renderActiveDot",function(S,y,_){var w;return j.isValidElement(S)?w=j.cloneElement(S,y):Pe(S)?w=S(y):w=D.createElement(i1,y),D.createElement(ft,{className:"recharts-active-dot",key:_},w)});var x=j.forwardRef(function(y,_){return D.createElement(b,Xa({},y,{ref:_}))});return x.displayName=b.displayName,x},Xue=eN({chartName:"BarChart",GraphicalChild:va,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Is},{axisType:"yAxis",AxisComp:Rs}],formatAxisMap:v$}),Yue=eN({chartName:"AreaChart",GraphicalChild:xo,axisComponents:[{axisType:"xAxis",AxisComp:Is},{axisType:"yAxis",AxisComp:Rs}],formatAxisMap:v$});const Que=({manager:e})=>{const{data:t}=e;if(!t)return O.jsx("div",{className:"p-20 text-center opacity-30 font-mono text-sm",children:"Caricamento dati energia..."});const n=t.power.soc_history_24h,r=t.power.soc,i=[...n,r],o=i.map((m,v)=>({index:v,soc:m})),s=Math.min(...i),l=Math.max(...i),u=i.lastIndexOf(s),f=i.indexOf(l),d=i.length-1,h=t.power.soc_history_7d_minmax;return O.jsxs("div",{className:"px-2 pt-5 pb-24 landscape:pt-4 space-y-2",children:[O.jsxs("div",{className:"flex flex-col landscape:flex-row gap-2 w-full",children:[O.jsxs("div",{className:"w-full landscape:w-1/2 bg-white/5 p-5 rounded-[2rem] border border-white/10 shadow-2xl",children:[O.jsxs("h3",{className:"text-[10px] font-black font-mono text-cyan-400 mb-2 flex items-center gap-2 tracking-widest uppercase",children:[O.jsx(f4,{size:14})," STATO DI CARICA (24h)"]}),O.jsx("div",{className:"h-56 w-full",children:O.jsx(UP,{width:"100%",height:"100%",children:O.jsxs(Yue,{data:o,margin:{top:25,right:65,left:0,bottom:10},children:[O.jsx("defs",{children:O.jsxs("linearGradient",{id:"colorSoc",x1:"0",y1:"0",x2:"0",y2:"1",children:[O.jsx("stop",{offset:"5%",stopColor:r<40?"#ef4444":"#22c55e",stopOpacity:.4}),O.jsx("stop",{offset:"95%",stopColor:"#121212",stopOpacity:0})]})}),O.jsx(p0,{strokeDasharray:"3 3",stroke:"#ffffff40",vertical:!1}),O.jsx(Rs,{domain:[40,100],ticks:[40,60,80,100],tick:{fill:"#666",fontSize:11,fontWeight:"bold"},axisLine:!1,tickLine:!1,width:27}),O.jsx(Is,{dataKey:"index",hide:!0}),O.jsx(xo,{type:"monotone",dataKey:"soc",stroke:r<40?"#ef4444":"#22c55e",strokeWidth:4,fill:"url(#colorSoc)",isAnimationActive:!1}),O.jsx(Qo,{x:f,y:l,r:4,fill:"#22c55e",stroke:"#121212",strokeWidth:2,label:{position:"top",value:`${l.toFixed(0)}%`,fill:"#22c55e",fontSize:10,fontWeight:"bold",dy:-10}}),O.jsx(Qo,{x:u,y:s,r:4,fill:"#ef4444",stroke:"#121212",strokeWidth:2,label:{position:"bottom",value:`${s.toFixed(0)}%`,fill:"#ef4444",fontSize:10,fontWeight:"bold",dy:10}}),O.jsx(Qo,{x:d,y:r,r:6,fill:"#fff",stroke:"#06b6d4",strokeWidth:2,label:{position:"right",value:`${r.toFixed(1)}%`,fill:"#fff",fontSize:13,fontWeight:"900",dx:12}})]})})})]}),O.jsxs("div",{className:"w-full landscape:w-1/2 bg-white/5 p-5 rounded-[2rem] border border-white/10 space-y-5 shadow-2xl",children:[O.jsxs("h3",{className:"text-[10px] font-black font-mono text-orange-400 mb-2 flex items-center gap-2 tracking-widest uppercase",children:[O.jsx(Jx,{size:14})," PRODUZIONE SOLARE"]}),O.jsxs("div",{className:"grid grid-cols-3 gap-2 text-center",children:[O.jsx(Fv,{title:"OGGI",val:t.solar.today_kwh,color:"text-orange-400"}),O.jsx(Fv,{title:"PREV.",val:t.solar.forecast_kwh,color:"text-yellow-400"}),O.jsx(Fv,{title:"IERI",val:t.solar.yesterday_kwh,color:"text-gray-300"})]}),(()=>{const m=t.solar.today_prua_max_w||0,v=t.solar.today_poppa_max_w||0,b=Math.max(m,v,1);return O.jsxs("div",{className:"space-y-5 pt-2",children:[O.jsx(xA,{label:"PRUA",current:t.solar.prua_w,localMax:m,globalMax:b}),O.jsx(xA,{label:"POPPA",current:t.solar.poppa_w,localMax:v,globalMax:b})]})})()]})]}),O.jsxs("div",{className:"bg-white/5 p-5 rounded-[2rem] border border-white/10 shadow-2xl",children:[O.jsxs("h3",{className:"text-[10px] font-black font-mono text-cyan-400 mb-6 flex items-center gap-2 tracking-widest uppercase",children:[O.jsx(P4,{size:14})," MIN/MAX SETTIMANALE"]}),O.jsx("div",{className:"h-64 w-full",children:O.jsx(UP,{width:"100%",height:"100%",children:O.jsxs(Xue,{data:h,margin:{top:25,right:0,left:0,bottom:40},children:[O.jsx("defs",{children:h.map((m,v)=>{const b=m.max-m.min||1,x=(35-m.min)/b*100,S=(65-m.min)/b*100;return O.jsxs("linearGradient",{id:`grad-${v}`,x1:"0",y1:"1",x2:"0",y2:"0",children:[O.jsx("stop",{offset:"0%",stopColor:m.min<35?"#ef4444":m.min<65?"#f97316":"#22c55e"}),x>0&&x<100&&O.jsx("stop",{offset:`${x}%`,stopColor:"#f97316"}),S>0&&S<100&&O.jsx("stop",{offset:`${S}%`,stopColor:"#eab308"}),O.jsx("stop",{offset:"100%",stopColor:m.max>65?"#22c55e":m.max>35?"#eab308":"#ef4444"})]},`grad-${v}`)})}),O.jsx(p0,{strokeDasharray:"3 3",stroke:"#ffffff40",vertical:!1}),O.jsx(Is,{dataKey:"day",axisLine:!1,tickLine:!1,tick:{fill:"#d1d5db",fontSize:11,fontWeight:"bold"}}),O.jsx(Rs,{domain:[0,100],ticks:[0,50,100],hide:!0}),O.jsxs(va,{dataKey:m=>[m.min,m.max],radius:[6,6,6,6],barSize:18,isAnimationActive:!1,children:[h.map((m,v)=>O.jsx(C_,{fill:`url(#grad-${v})`},`cell-${v}`)),O.jsx(Hr,{dataKey:"max",position:"top",content:m=>{const{x:v,y:b,width:x,value:S}=m;return O.jsxs("text",{x:v+x/2,y:b-8,fill:"#fff",fontSize:"10",fontWeight:"900",textAnchor:"middle",children:[S.toFixed(0),"%"]})}}),O.jsx(Hr,{dataKey:"min",position:"bottom",content:m=>{const{x:v,y:b,width:x,value:S,height:y}=m;return O.jsxs("text",{x:v+x/2,y:b+y+18,fill:S<40?"#ef4444":"#d1d5db",fontSize:"10",fontWeight:"bold",textAnchor:"middle",children:[S.toFixed(0),"%"]})}})]})]})})})]})]})},Fv=({title:e,val:t,color:n})=>O.jsxs("div",{className:"bg-white/5 p-3 rounded-2xl border border-white/5",children:[O.jsx("div",{className:"text-[8px] font-black text-gray-300 mb-1 tracking-tighter uppercase",children:e}),O.jsxs("div",{className:`text-xl font-black ${n}`,children:[t.toFixed(1),O.jsx("span",{className:"text-[10px] ml-0.5 opacity-50",children:"kWh"})]})]}),xA=({label:e,current:t,localMax:n,globalMax:r})=>{const i=t/r*100,o=n/r*100;return O.jsxs("div",{className:"space-y-1.5",children:[O.jsxs("div",{className:"flex justify-between text-[10px] font-black",children:[O.jsx("span",{className:"text-gray-300 font-mono tracking-tighter uppercase",children:e}),O.jsxs("span",{className:"text-orange-400 font-mono",children:[t,"W ",O.jsxs("span",{className:"text-gray-300 font-bold uppercase",children:["/ Peak ",n,"W"]})]})]}),O.jsxs("div",{className:"relative h-2.5 w-full",children:[O.jsx("div",{className:"absolute inset-0 bg-white/5 rounded-full"}),o<99&&O.jsx("div",{className:"absolute top-0 bottom-0 border-y border-r border-dashed border-white/10 rounded-r-full",style:{left:`${o}%`,right:0}}),O.jsx("div",{className:"absolute inset-y-0 left-0 bg-white/10 rounded-full",style:{width:`${o}%`}}),O.jsx("div",{className:"absolute inset-y-0 left-0 bg-orange-500 rounded-full transition-all duration-1000 shadow-[0_0_12px_rgba(249,115,22,0.4)]",style:{width:`${i}%`}})]})]})},_A=e=>{const[t,n]=j.useState(e),r=j.useRef(e);return j.useEffect(()=>{const i=r.current;let o=(e-i)%360;o>180&&(o-=360),o<-180&&(o+=360),n(s=>s+o),r.current=e},[e]),t},Ql=e=>e<10?"text-cyan-400":e<18?"text-green-400":e<25?"text-yellow-400":e<35?"text-orange-500":"text-red-500",tN=(e,t=24)=>{if(!e)return O.jsx(PS,{size:t,className:"text-gray-400"});const n=e.precipitation||0,r=e.icon.toLowerCase();return n>=1.5?O.jsx(o4,{size:t,className:"text-purple-400"}):n>=.4?O.jsx(a4,{size:t,className:"text-cyan-400"}):n>0?O.jsx(i4,{size:t,className:"text-cyan-200"}):r.includes("sun")||r.includes("clear")?O.jsx(s4,{size:t,className:"text-yellow-400"}):r.includes("moon")?O.jsx(hM,{size:t,className:"text-blue-300"}):r.includes("cloud")?O.jsx(PS,{size:t,className:"text-gray-400"}):O.jsx(Jx,{size:t,className:"text-orange-400"})},Jue=({manager:e})=>{const{data:t}=e;if(!t)return O.jsx("div",{className:"p-20 text-center opacity-30 font-mono text-sm uppercase text-white",children:"Ricezione dati..."});const n=t.environment,r=Math.min(100,n.wind_now/Math.max(n.wind_max_30m,1)*100);return O.jsxs("div",{className:"px-2 pt-5 pb-24 landscape:pt-4 space-y-2 text-white",children:[O.jsxs("div",{className:"grid grid-cols-2 landscape:grid-cols-4 gap-2",children:[O.jsxs("div",{className:"bg-white/5 p-5 landscape:py-2 landscape:px-5 rounded-[2rem] landscape:rounded-[1.5rem] border border-white/10 flex flex-col landscape:flex-row items-center justify-center landscape:justify-between text-center shadow-xl",children:[O.jsxs("div",{className:"flex flex-col items-center landscape:items-start",children:[O.jsx("div",{className:`text-6xl landscape:text-4xl font-black tracking-tighter ${Ql(n.wind_now)} drop-shadow-lg leading-none`,children:n.wind_now.toFixed(0)}),O.jsx("div",{className:"text-[10px] landscape:text-[8px] font-black text-gray-300 tracking-widest mt-1 uppercase font-mono",children:"Knots"})]}),O.jsx("div",{className:"w-full landscape:w-5 h-3 landscape:h-14 bg-white/10 rounded-full mt-4 landscape:mt-0 overflow-hidden border border-white/5 flex flex-col justify-end",children:O.jsx("div",{className:`bg-current ${Ql(n.wind_now)} transition-all duration-1000 shadow-[0_0_10px_currentColor]`,style:{width:window.innerHeight>window.innerWidth?`${r}%`:"100%",height:window.innerHeight>window.innerWidth?"100%":`${r}%`}})})]}),O.jsxs("div",{className:"bg-white/5 p-5 landscape:py-2 rounded-[2rem] landscape:rounded-[1.5rem] border border-white/10 space-y-4 landscape:space-y-1 justify-center flex flex-col shadow-xl font-mono text-white",children:[O.jsx(Vv,{label:"MIN 30m",val:n.wind_min_30m,color:"text-cyan-400"}),O.jsx("div",{className:"h-px bg-white/5 w-full"}),O.jsx(Vv,{label:"MAX 30m",val:n.wind_max_30m,color:"text-orange-400"}),O.jsx("div",{className:"h-px bg-white/5 w-full"}),O.jsx(Vv,{label:"MAX 24h",val:n.wind_max_24h,color:"text-red-500"})]}),O.jsx(bA,{title:"APPARENTE",windAngle:n.wind_dir_rel,boatAngle:0,color:Ql(n.wind_now)}),O.jsx(bA,{title:"REALE",windAngle:n.wind_dir_true,boatAngle:n.heading,color:Ql(n.wind_now),isTrue:!0})]}),O.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[O.jsx(wA,{icon:O.jsx(mM,{className:"text-yellow-500"}),title:"POZZETTO",val:n.temp_pozzetto,sub:`Umidità: ${n.hum_pozzetto.toFixed(0)}%`}),O.jsx(wA,{icon:tN(n.hourly_forecast[0],28),title:"MODELLO",val:n.temp_forecast,sub:"OpenMeteo"})]}),O.jsxs("div",{className:"bg-white/5 p-3 rounded-[2.5rem] border border-white/10 shadow-2xl",children:[O.jsx("h3",{className:"text-[10px] font-black text-center text-gray-300 tracking-[0.2em] mb-4 uppercase font-mono opacity-50 text-white",children:"Previsione 6 Ore"}),O.jsx("div",{className:"grid grid-cols-3 gap-2",children:n.hourly_forecast.slice(0,6).map((i,o)=>O.jsx(ece,{hour:i},o))})]})]})},bA=({title:e,windAngle:t,boatAngle:n,color:r,isTrue:i=!1})=>{const o=_A(t),s=_A(n);return O.jsxs("div",{className:"bg-white/5 py-3 px-4 landscape:py-2 landscape:px-4 rounded-[2rem] landscape:rounded-[1.5rem] border border-white/10 flex flex-col landscape:flex-row items-center justify-center landscape:justify-between shadow-lg overflow-hidden h-full gap-2 landscape:gap-0",children:[O.jsxs("div",{className:"relative w-28 h-28 landscape:w-16 landscape:h-16 flex items-center justify-center shrink-0",children:[O.jsx("div",{className:"absolute inset-0 border-2 border-white/10 rounded-full"}),i&&O.jsxs("div",{className:"absolute inset-0 flex items-center justify-center text-[8px] font-black opacity-30 text-white",children:[O.jsx("span",{className:"absolute top-0 text-red-500 font-mono",children:"N"}),O.jsx("span",{className:"absolute bottom-0 text-white/50 font-mono",children:"S"})]}),O.jsx("div",{className:"absolute transition-transform duration-1000 ease-in-out",style:{transform:`rotate(${s}deg)`},children:O.jsx(O4,{size:18,fill:"white",className:"text-white opacity-20 scale-x-75 scale-y-125"})}),O.jsx("div",{className:"absolute inset-0 transition-transform duration-1000 ease-in-out",style:{transform:`rotate(${o}deg)`},children:O.jsx("div",{className:`absolute top-0 left-1/2 -translate-x-1/2 -mt-1 ${r}`,children:O.jsx(cM,{size:16,strokeWidth:4,fill:"currentColor"})})})]}),O.jsxs("div",{className:"flex flex-col items-center landscape:items-end leading-none",children:[O.jsx("span",{className:"text-[10px] landscape:text-[7px] font-black text-gray-300 uppercase tracking-tighter font-mono whitespace-nowrap mb-1 landscape:mb-0",children:e}),O.jsxs("span",{className:`text-2xl landscape:text-lg font-black font-mono tracking-tighter ${r} whitespace-nowrap`,children:[t.toFixed(0),"° ",i?"N":""]})]})]})},Vv=({label:e,val:t,color:n})=>O.jsxs("div",{className:"flex justify-between items-baseline px-1 leading-none text-white",children:[O.jsx("span",{className:"text-[9px] landscape:text-[7px] font-black text-gray-300 uppercase font-mono",children:e}),O.jsx("span",{className:`text-lg landscape:text-sm font-black font-mono ${n}`,children:t.toFixed(1)})]}),wA=({icon:e,title:t,val:n,sub:r})=>O.jsxs("div",{className:"bg-white/5 p-5 landscape:py-2 landscape:px-4 rounded-[2rem] landscape:rounded-[1.5rem] border border-white/10 flex flex-col landscape:flex-row items-center landscape:justify-between shadow-lg h-full text-white group hover:bg-white/10 transition-all",children:[O.jsxs("div",{className:"flex flex-col landscape:flex-row items-center gap-1 landscape:gap-3 text-white",children:[O.jsx("div",{className:"bg-white/5 p-2 landscape:p-1.5 rounded-full flex items-center justify-center",children:D.cloneElement(e,{size:18,className:`${e.props.className} landscape:scale-90`})}),O.jsx("span",{className:"text-[9px] font-black text-gray-300 uppercase tracking-widest font-mono whitespace-nowrap",children:t})]}),O.jsxs("div",{className:"flex flex-col items-center landscape:items-end leading-tight text-white",children:[O.jsxs("span",{className:"text-3xl landscape:text-2xl font-black text-white",children:[n.toFixed(1),"°"]}),O.jsx("span",{className:"text-[10px] landscape:text-[8px] font-bold text-gray-300 uppercase font-mono whitespace-nowrap opacity-80",children:r})]})]}),ece=({hour:e})=>O.jsxs("div",{className:"bg-white/5 p-2 rounded-[1.5rem] flex flex-col items-center gap-1.5 border border-white/5 shadow-md overflow-hidden text-white h-full justify-between",children:[O.jsx("span",{className:"text-[9px] font-black text-gray-300 font-mono tracking-tighter uppercase",children:e.time}),O.jsx("div",{className:"my-0.5",children:tN(e,26)}),O.jsxs("span",{className:"text-lg font-black text-white leading-none",children:[e.temp,"°"]}),e.rainChance>15?O.jsx("div",{className:"flex items-center gap-1 text-cyan-400 bg-cyan-400/10 px-1.5 py-0.5 rounded-full",children:O.jsxs("span",{className:"text-[9px] font-black",children:[e.rainChance,"%"]})}):O.jsx("div",{className:"h-4"}),O.jsx("div",{className:"flex flex-col items-center w-full border-t border-white/5 pt-1.5 text-white",children:O.jsxs("div",{className:"flex items-center gap-1 justify-center w-full text-white",children:[O.jsx("span",{className:"text-lg landscape:text-base font-bold text-gray-400 font-mono leading-none",children:e.windSpeed}),O.jsx(t4,{size:10,className:"text-gray-300 shrink-0"}),O.jsx("span",{className:`text-lg landscape:text-base font-black font-mono leading-none ${Ql(e.windGust)}`,children:e.windGust})]})})]}),tce=({manager:e})=>{var u,f;const{data:t,toggleSwitch:n,setShoreLimit:r,isUpdating:i}=e,o=[4,6,10,16],s=((u=t==null?void 0:t.switches)==null?void 0:u.multiplus_on)||!1,l=((f=t==null?void 0:t.switches)==null?void 0:f.shore_limit)||0;return O.jsxs("div",{className:"p-4 space-y-6 pb-32",children:[O.jsx("header",{className:"px-2 pt-4 flex justify-between items-center",children:O.jsxs("div",{children:[O.jsxs("h2",{className:"text-xl font-black text-white flex items-center gap-2",children:[O.jsx(x4,{className:"text-gray-300",size:20}),"CONTROLLI AVANZATI"]}),O.jsx("p",{className:"text-[10px] text-gray-300 font-bold uppercase tracking-widest mt-1",children:"Gestione Sistemi di Bordo"})]})}),O.jsxs("div",{className:"space-y-3",children:[O.jsx("h3",{className:"text-[10px] font-black text-gray-300 tracking-[0.2em] uppercase px-2",children:"Inverter / Caricabatterie"}),O.jsxs("div",{className:"bg-white/5 rounded-[2.5rem] border border-white/10 overflow-hidden shadow-2xl divide-y divide-white/5",children:[O.jsxs("div",{className:"flex items-center justify-between p-6 bg-white/[0.02]",children:[O.jsxs("div",{className:"flex items-center gap-4",children:[O.jsx("div",{className:`p-3 rounded-2xl transition-all duration-500 ${s?"bg-yellow-500/20 shadow-[0_0_20px_rgba(234,179,8,0.2)]":"bg-white/5 grayscale opacity-30"}`,children:O.jsx(Qz,{className:s?"text-yellow-500":"text-white",size:28})}),O.jsxs("div",{className:"flex flex-col",children:[O.jsx("span",{className:"text-[15px] font-black text-white tracking-tight uppercase",children:"Banchina"}),O.jsx("span",{className:`text-[10px] font-black uppercase tracking-widest mt-0.5 ${s?"text-yellow-500":"text-gray-300"}`,children:s?"Stato: ACCESO (Pass-through)":"Stato: SOLO INVERTER"})]})]}),O.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[O.jsx("input",{type:"checkbox",className:"sr-only peer",checked:s,onChange:d=>n("multiplus",d.target.checked),disabled:i}),O.jsx("div",{className:`w-14 h-8 rounded-full peer transition-all shadow-inner relative after:content-[''] after:absolute after:top-[4px] after:left-[4px] after:bg-white after:rounded-full after:h-6 after:w-6 after:transition-all peer-checked:after:translate-x-6 ${s?"bg-yellow-500 shadow-[0_0_15px_rgba(234,179,8,0.4)]":"bg-gray-800"} ${i?"opacity-50":""}`})]})]}),O.jsxs("div",{className:`p-6 transition-all duration-700 ${s?"opacity-100":"opacity-20 grayscale pointer-events-none"}`,children:[O.jsxs("div",{className:"flex justify-between items-end mb-5",children:[O.jsxs("div",{className:"flex items-center gap-3",children:[O.jsx("div",{className:"p-2 bg-cyan-500/10 rounded-xl",children:O.jsx(v4,{size:20,className:"text-cyan-400"})}),O.jsxs("div",{className:"flex flex-col",children:[O.jsx("span",{className:"text-sm font-black uppercase text-white tracking-tight",children:"Limite Banchina"}),O.jsx("span",{className:"text-[9px] font-bold text-gray-300 uppercase tracking-widest",children:"Seleziona Ampere AC"})]})]}),O.jsxs("div",{className:"flex items-baseline gap-1",children:[O.jsx("span",{className:"text-3xl font-black font-mono text-cyan-400",children:l.toFixed(0)}),O.jsx("span",{className:"text-sm font-bold text-gray-600",children:"A"})]})]}),O.jsx("div",{className:"flex gap-2.5 w-full mt-2",children:o.map(d=>O.jsxs("button",{onClick:()=>r(d),disabled:i||!s,className:`flex-1 py-4 rounded-2xl font-black font-mono transition-all active:scale-90 border ${l===d?"bg-cyan-500 border-cyan-400 text-white shadow-[0_0_20px_rgba(6,182,212,0.4)]":"bg-white/5 border-white/5 text-gray-300 hover:bg-white/10"}`,children:[d,"A"]},d))})]}),O.jsxs("div",{className:"p-6 flex items-center justify-between opacity-10 grayscale",children:[O.jsxs("div",{className:"flex items-center gap-4",children:[O.jsx("div",{className:"p-3 bg-white/5 rounded-2xl text-gray-400",children:O.jsx(_4,{size:26})}),O.jsxs("div",{className:"flex flex-col",children:[O.jsx("span",{className:"text-sm font-black text-white uppercase tracking-tight",children:"Safe Power Mode"}),O.jsx("span",{className:"text-[9px] font-bold text-gray-300 uppercase",children:"Configurazione automatica carichi"})]})]}),O.jsx("div",{className:"w-10 h-5 bg-gray-900 rounded-full border border-white/5"})]})]})]})]})},nce=""+new URL("AppIcon-CV7HxdmO.png",import.meta.url).href;function rce(){const[e,t]=j.useState(()=>{if(new URLSearchParams(window.location.search).get("mmsi"))return 3;const b=localStorage.getItem("rotevista_active_tab");return b!==null?parseInt(b,10):0}),[n,r]=j.useState(0),[i,o]=j.useState(()=>localStorage.getItem("rotevista_night_mode")==="true"),[s,l]=j.useState(()=>new URLSearchParams(window.location.search).get("mmsi")||null),u=k4();D.useEffect(()=>{const b=new URLSearchParams(window.location.search).get("mmsi");b&&(l(b),t(3),localStorage.setItem("rotevista_active_tab","3"))},[]);const f=()=>{document.fullscreenElement?document.exitFullscreen&&document.exitFullscreen():document.documentElement.requestFullscreen().catch(v=>console.error(v))},d=v=>{v!==e&&(r(v>e?1:-1),t(v),localStorage.setItem("rotevista_active_tab",String(v)))},h=(v,b)=>{if(v.target.closest(".leaflet-container"))return;const x=50;b.offset.x<-x&&e<4?d(e+1):b.offset.x>x&&e>0&&d(e-1)},m={enter:v=>({x:v>0?"100%":"-100%",opacity:0}),center:{x:0,opacity:1},exit:v=>({x:v<0?"100%":"-100%",opacity:0})};return O.jsxs("div",{className:`h-screen h-[100dvh] bg-[#121212] flex flex-col font-sans overflow-hidden select-none transition-colors duration-700 ${i?"night-mode-active":""}`,children:[O.jsxs("header",{onClick:f,className:"fixed top-0 left-0 right-0 z-[1000] h-16 bg-[#121212]/80 backdrop-blur-lg border-b border-white/10 px-4 flex items-center justify-between cursor-pointer",children:[O.jsxs("div",{className:"flex items-center gap-3",children:[O.jsx("img",{src:nce,alt:"Logo",className:"w-9 h-9 rounded-lg object-cover bg-white/10 shadow-lg"}),O.jsx("h1",{className:"text-xl font-black tracking-widest uppercase font-mono text-white",children:"ROTEVISTA"})]}),O.jsxs("div",{className:"flex items-center gap-3",children:[u.isUpdating&&O.jsxs("div",{className:"flex items-center gap-1.5 text-cyan-400 animate-pulse bg-cyan-400/10 px-2.5 py-1 rounded-lg border border-cyan-400/20 shadow-[0_0_10px_rgba(34,211,238,0.2)]",children:[O.jsx(d4,{size:12,className:"animate-spin"}),O.jsx("span",{className:"text-[10px] font-black uppercase font-mono",children:"Sync"})]}),O.jsx("button",{onClick:v=>{v.stopPropagation();const b=!i;o(b),localStorage.setItem("rotevista_night_mode",String(b))},className:`p-2 rounded-xl border transition-all active:scale-95 ${i?"bg-red-500/20 border-red-500/50 text-red-500":"bg-white/5 border-white/10 text-gray-400"}`,children:i?O.jsx(Jx,{size:16}):O.jsx(hM,{size:16})}),O.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-white/5 rounded-xl border border-white/10 shadow-inner font-mono",children:[O.jsx("span",{className:"text-xs font-bold text-gray-400",children:u.isDataStale?"OFF":`${u.secondsSinceLastUpdate}s`}),O.jsx("div",{className:`w-2 h-2 rounded-full ${u.statusColor} shadow-[0_0_8px_currentColor]`})]})]})]}),O.jsx("main",{className:"flex-1 relative mt-16 landscape:mt-14 h-[calc(100%-4rem)] landscape:h-[calc(100%-3.5rem)] w-full",children:O.jsx(TD,{initial:!1,custom:n,children:O.jsxs(qz.div,{custom:n,variants:m,initial:"enter",animate:"center",exit:"exit",transition:{x:{type:"spring",stiffness:300,damping:32},opacity:{duration:.2}},drag:"x",dragConstraints:{left:0,right:0},dragElastic:.15,onDragEnd:h,onPointerDownCapture:v=>{v.target.closest(".leaflet-container")&&v.stopPropagation()},className:"absolute inset-0 w-full h-full overflow-y-auto px-1 scroll-smooth",children:[e===0&&O.jsx(nB,{manager:u,onTabChange:d}),e===1&&O.jsx(Que,{manager:u}),e===2&&O.jsx(Jue,{manager:u}),e===3&&O.jsx(fB,{manager:u,isNightMode:i,initialMmsi:s}),e===4&&O.jsx(tce,{manager:u})]},e)})}),O.jsxs("nav",{className:"fixed bottom-5 left-1/2 -translate-x-1/2 bg-[#1a1a1a]/90 backdrop-blur-2xl border border-white/10 rounded-full px-4 py-2 flex items-center justify-around w-[92%] max-w-md shadow-[0_20px_50px_rgba(0,0,0,0.6)] z-[1001]",children:[O.jsx(Vl,{icon:O.jsx(h4,{}),label:"Home",isActive:e===0,onClick:()=>d(0)}),O.jsx(Vl,{icon:O.jsx(A4,{}),label:"Energia",isActive:e===1,onClick:()=>d(1)}),O.jsx(Vl,{icon:O.jsx(T4,{}),label:"Ambiente",isActive:e===2,onClick:()=>d(2)}),O.jsx(Vl,{icon:O.jsx(y4,{}),label:"AIS",isActive:e===3,onClick:()=>d(3)}),O.jsx(Vl,{icon:O.jsx(w4,{}),label:"Extra",isActive:e===4,onClick:()=>d(4)})]})]})}const Vl=({icon:e,label:t,isActive:n,onClick:r})=>O.jsxs("button",{onClick:r,className:`flex flex-col items-center gap-1 transition-all duration-300 ${n?"text-cyan-400 scale-110":"text-gray-300"}`,children:[D.cloneElement(e,{size:20,strokeWidth:n?2.5:2}),O.jsx("span",{className:`text-[9px] font-black uppercase tracking-tighter ${n?"opacity-100":"opacity-60"}`,children:t})]});Uv.createRoot(document.getElementById("root")).render(O.jsx(D.StrictMode,{children:O.jsx(rce,{})}));
|