@reltio/segmentation 1.4.25 → 1.4.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/753.bundle.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 753.bundle.js.LICENSE.txt */
2
- (self.webpackChunk_reltio_segmentation=self.webpackChunk_reltio_segmentation||[]).push([[753],{17871:(t,e,n)=>{"use strict";n.d(e,{j_:()=>L,b6:()=>p,vD:()=>K,Jx:()=>N,XL:()=>H,mg:()=>pt,Ji:()=>P});var r=n(8156),o=n(47111),i=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self,function(t,e,n,r,o,i,a,s){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;(u=new Error(e.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}});const a=(0,r.createContext)(null);function s(t){google.maps.event.removeListener(t)}function u(t=[]){t.forEach(s)}function c({updaterMap:t,eventMap:e,prevProps:n,nextProps:r,instance:o}){const i=function(t,e,n){const r=(o=n,i=function(n,r,o){return"function"==typeof t[o]&&n.push(google.maps.event.addListener(e,r,t[o])),n},a=[],Object.keys(o).reduce((function(t,e){return i(t,o[e],e)}),a));var o,i,a;return r}(r,o,e);return((t,e,n,r)=>{const o={};var i,a;i=t,a=(t,i)=>{const a=n[i];a!==e[i]&&(o[i]=a,t(r,a))},Object.keys(i).forEach((function(t){return a(i[t],t)}))})(t,n,r,o),i}const l={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},f={extraMapTypes(t,e){e.forEach((function(e,n){t.mapTypes.set(String(n),e)}))},center(t,e){t.setCenter(e)},clickableIcons(t,e){t.setClickableIcons(e)},heading(t,e){t.setHeading(e)},mapTypeId(t,e){t.setMapTypeId(e)},options(t,e){t.setOptions(e)},streetView(t,e){t.setStreetView(e)},tilt(t,e){t.setTilt(e)},zoom(t,e){t.setZoom(e)}};class p extends r.PureComponent{constructor(){super(...arguments),this.state={map:null},this.registeredEvents=[],this.mapRef=null,this.getInstance=()=>null===this.mapRef?null:new google.maps.Map(this.mapRef,this.props.options),this.panTo=t=>{const e=this.getInstance();e&&e.panTo(t)},this.setMapCallback=()=>{null!==this.state.map&&this.props.onLoad&&this.props.onLoad(this.state.map)},this.getRef=t=>{this.mapRef=t}}componentDidMount(){const t=this.getInstance();this.registeredEvents=c({updaterMap:f,eventMap:l,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{map:t}}),this.setMapCallback)}componentDidUpdate(t){null!==this.state.map&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:f,eventMap:l,prevProps:t,nextProps:this.props,instance:this.state.map}))}componentWillUnmount(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),u(this.registeredEvents))}render(){return r.createElement("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName},r.createElement(a.Provider,{value:this.state.map},null!==this.state.map?this.props.children:r.createElement(r.Fragment,null)))}}function h(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}const d="undefined"!=typeof document,g=({url:t,id:e,nonce:n})=>d?new Promise((function(r,o){const i=document.getElementById(e),a=window;if(i){const n=i.getAttribute("data-state");if(i.src===t&&"error"!==n){if("ready"===n)return r(e);{const t=a.initMap,n=i.onerror;return a.initMap=function(){t&&t(),r(e)},void(i.onerror=function(t){n&&n(t),o(t)})}}i.remove()}const s=document.createElement("script");s.type="text/javascript",s.src=t,s.id=e,s.async=!0,s.nonce=n,s.onerror=function(t){s.setAttribute("data-state","error"),o(t)},a.initMap=function(){s.setAttribute("data-state","ready"),r(e)},document.head.appendChild(s)})).catch((t=>{throw console.error("injectScript error: ",t),t})):Promise.reject(new Error("document is undefined")),y=t=>!((!t.href||0!==t.href.indexOf("https://fonts.googleapis.com/css?family=Roboto"))&&("style"===t.tagName.toLowerCase()&&t.styleSheet&&t.styleSheet.cssText&&0===t.styleSheet.cssText.replace("\r\n","").indexOf(".gm-style")?(t.styleSheet.cssText="",0):"style"===t.tagName.toLowerCase()&&t.innerHTML&&0===t.innerHTML.replace("\r\n","").indexOf(".gm-style")?(t.innerHTML="",0):"style"!==t.tagName.toLowerCase()||t.styleSheet||t.innerHTML)),v=()=>{const t=document.getElementsByTagName("head")[0],e=t.insertBefore.bind(t);t.insertBefore=function(n,r){y(n)||Reflect.apply(e,t,[n,r])};const n=t.appendChild.bind(t);t.appendChild=function(e){y(e)||Reflect.apply(n,t,[e])}};function m({googleMapsApiKey:t,googleMapsClientId:e,version:n="weekly",language:r,region:o,libraries:a,channel:s,mapIds:u}){const c=[];return i(t&&e||!(t&&e),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),t?c.push(`key=${t}`):e&&c.push(`client=${e}`),n&&c.push(`v=${n}`),r&&c.push(`language=${r}`),o&&c.push(`region=${o}`),a&&a.length&&c.push(`libraries=${a.sort().join(",")}`),s&&c.push(`channel=${s}`),u&&u.length&&c.push(`map_ids=${u.join(",")}`),c.push("callback=initMap"),`https://maps.googleapis.com/maps/api/js?${c.join("&")}`}let b=!1;function x(){return r.createElement("div",null,"Loading...")}const O={id:"script-loader",version:"weekly"};class w extends r.PureComponent{constructor(){super(...arguments),this.check=r.createRef(),this.state={loaded:!1},this.cleanupCallback=()=>{delete window.google.maps,this.injectScript()},this.isCleaningUp=()=>{return t=this,e=void 0,r=function*(){return new Promise((function(t){if(b){if(d){const e=window.setInterval((function(){b||(window.clearInterval(e),t())}),1)}}else t()}))},new((n=void 0)||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}));var t,e,n,r},this.cleanup=()=>{b=!0;const t=document.getElementById(this.props.id);t&&t.parentNode&&t.parentNode.removeChild(t),Array.prototype.slice.call(document.getElementsByTagName("script")).filter((function(t){return"string"==typeof t.src&&t.src.includes("maps.googleapis")})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)})),Array.prototype.slice.call(document.getElementsByTagName("link")).filter((function(t){return"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"===t.href})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)})),Array.prototype.slice.call(document.getElementsByTagName("style")).filter((function(t){return void 0!==t.innerText&&t.innerText.length>0&&t.innerText.includes(".gm-")})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))},this.injectScript=()=>{this.props.preventGoogleFontsLoading&&v(),i(!!this.props.id,'LoadScript requires "id" prop to be a string: %s',this.props.id);const t={id:this.props.id,nonce:this.props.nonce,url:m(this.props)};g(t).then((()=>{this.props.onLoad&&this.props.onLoad(),this.setState((function(){return{loaded:!0}}))})).catch((t=>{this.props.onError&&this.props.onError(t),console.error(`\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (${this.props.googleMapsApiKey||"-"}) or Client ID (${this.props.googleMapsClientId||"-"}) to <LoadScript />\n Otherwise it is a Network issue.\n `)}))}}componentDidMount(){if(d){if(window.google&&window.google.maps&&!b)return void console.error("google api is already presented");this.isCleaningUp().then(this.injectScript).catch((function(t){console.error("Error at injecting script after cleaning up: ",t)}))}}componentDidUpdate(t){this.props.libraries!==t.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),d&&t.language!==this.props.language&&(this.cleanup(),this.setState((function(){return{loaded:!1}}),this.cleanupCallback))}componentWillUnmount(){if(d){this.cleanup();const t=()=>{this.check.current||(delete window.google,b=!1)};window.setTimeout(t,1),this.props.onUnmount&&this.props.onUnmount()}}render(){return r.createElement(r.Fragment,null,r.createElement("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||r.createElement(x,null))}}let S;w.defaultProps=O;const M=r.createElement(x,null);r.memo((function(t){var{loadingElement:e,onLoad:n,onError:o,onUnmount:a,children:s}=t,u=h(t,["loadingElement","onLoad","onError","onUnmount","children"]);const{isLoaded:c,loadError:l}=function({id:t=O.id,version:e=O.version,nonce:n,googleMapsApiKey:o,googleMapsClientId:a,language:s,region:u,libraries:c,preventGoogleFontsLoading:l,channel:f,mapIds:p}){const h=r.useRef(!1),[y,b]=r.useState(!1),[x,w]=r.useState(void 0);r.useEffect((function(){return h.current=!0,()=>{h.current=!1}}),[]),r.useEffect((function(){d&&l&&v()}),[l]),r.useEffect((function(){y&&i(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")}),[y]);const M=m({version:e,googleMapsApiKey:o,googleMapsClientId:a,language:s,region:u,libraries:c,channel:f,mapIds:p});r.useEffect((function(){function e(){h.current&&(b(!0),S=M)}d&&(window.google&&window.google.maps&&S===M?e():g({id:t,url:M,nonce:n}).then(e).catch((function(t){h.current&&w(t),console.warn(`\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (${o||"-"}) or Client ID (${a||"-"})\n Otherwise it is a Network issue.\n `),console.error(t)})))}),[t,M,n]);const E=r.useRef();return r.useEffect((function(){E.current&&c!==E.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),E.current=c}),[c]),{isLoaded:y,loadError:x,url:M}}(u);return r.useEffect((function(){c&&"function"==typeof n&&n()}),[c,n]),r.useEffect((function(){l&&"function"==typeof o&&o(l)}),[l,o]),r.useEffect((function(){return()=>{a&&a()}}),[a]),c?s:e||M}));var E=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(o=r;0!=o--;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(i=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!t(e[a],n[a]))return!1}return!0}return e!=e&&n!=n};const k="__googleMapsScriptId";class C{constructor({apiKey:t,channel:e,client:n,id:r=k,libraries:o=[],language:i,region:a,version:s,mapIds:u,nonce:c,retries:l=3,url:f="https://maps.googleapis.com/maps/api/js"}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.version=s,this.apiKey=t,this.channel=e,this.client=n,this.id=r||k,this.libraries=o,this.language=i,this.region=a,this.mapIds=u,this.nonce=c,this.retries=l,this.url=f,C.instance){if(!E(this.options,C.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(C.instance.options)}`);return C.instance}C.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url}}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+=`?callback=${this.CALLBACK}`,this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((t,e)=>{this.loadCallback((n=>{n?e(n.error):t(window.google)}))}))}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){if(document.getElementById(this.id))return void this.callback();const t=this.createUrl(),e=document.createElement("script");e.id=this.id,e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,this.nonce&&(e.nonce=this.nonce),document.head.appendChild(e)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),t)}else this.onerrorEvent=t,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((t=>{t(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}function P({id:t=O.id,version:e=O.version,nonce:n,googleMapsApiKey:o,language:i,region:a,libraries:s,preventGoogleFontsLoading:u,mapIds:c}){const l=r.useRef(!1),[f,p]=r.useState(!1),[h,g]=r.useState(void 0);r.useEffect((function(){return l.current=!0,()=>{l.current=!1}}),[]);const y=r.useMemo((function(){return new C({id:t,apiKey:o,version:e,libraries:s,language:i,region:a,mapIds:c,nonce:n})}),[t,o,e,s,i,a,c,n]);r.useEffect((function(){f||y.load().then((function(){l.current&&p(!0)})).catch((function(t){g(t)}))}),[]),r.useEffect((function(){d&&u&&v()}),[u]);const m=r.useRef();return r.useEffect((function(){m.current&&s!==m.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),m.current=s}),[s]),{isLoaded:f,loadError:h}}const A={},j={options(t,e){t.setOptions(e)}};class T extends r.PureComponent{constructor(){super(...arguments),this.state={trafficLayer:null},this.setTrafficLayerCallback=()=>{null!==this.state.trafficLayer&&this.props.onLoad&&this.props.onLoad(this.state.trafficLayer)},this.registeredEvents=[]}componentDidMount(){const t=new google.maps.TrafficLayer(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=c({updaterMap:j,eventMap:A,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{trafficLayer:t}}),this.setTrafficLayerCallback)}componentDidUpdate(t){null!==this.state.trafficLayer&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:j,eventMap:A,prevProps:t,nextProps:this.props,instance:this.state.trafficLayer}))}componentWillUnmount(){null!==this.state.trafficLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),u(this.registeredEvents),this.state.trafficLayer.setMap(null))}render(){return null}}T.contextType=a;class _ extends r.PureComponent{constructor(){super(...arguments),this.state={bicyclingLayer:null},this.setBicyclingLayerCallback=()=>{null!==this.state.bicyclingLayer&&(this.state.bicyclingLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.bicyclingLayer))}}componentDidMount(){const t=new google.maps.BicyclingLayer;this.setState((function(){return{bicyclingLayer:t}}),this.setBicyclingLayerCallback)}componentWillUnmount(){null!==this.state.bicyclingLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))}render(){return null}}_.contextType=a;class D extends r.PureComponent{constructor(){super(...arguments),this.state={transitLayer:null},this.setTransitLayerCallback=()=>{null!==this.state.transitLayer&&(this.state.transitLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.transitLayer))}}componentDidMount(){const t=new google.maps.TransitLayer;this.setState((function(){return{transitLayer:t}}),this.setTransitLayerCallback)}componentWillUnmount(){null!==this.state.transitLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))}render(){return null}}D.contextType=a;const B={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},I={drawingMode(t,e){t.setDrawingMode(e)},options(t,e){t.setOptions(e)}};class L extends r.PureComponent{constructor(t){super(t),this.registeredEvents=[],this.state={drawingManager:null},this.setDrawingManagerCallback=()=>{null!==this.state.drawingManager&&this.props.onLoad&&this.props.onLoad(this.state.drawingManager)},i(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing)}componentDidMount(){const t=new google.maps.drawing.DrawingManager(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=c({updaterMap:I,eventMap:B,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{drawingManager:t}}),this.setDrawingManagerCallback)}componentDidUpdate(t){null!==this.state.drawingManager&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:I,eventMap:B,prevProps:t,nextProps:this.props,instance:this.state.drawingManager}))}componentWillUnmount(){null!==this.state.drawingManager&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),u(this.registeredEvents),this.state.drawingManager.setMap(null))}render(){return r.createElement(r.Fragment,null)}}L.contextType=a;const z={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},R={animation(t,e){t.setAnimation(e)},clickable(t,e){t.setClickable(e)},cursor(t,e){t.setCursor(e)},draggable(t,e){t.setDraggable(e)},icon(t,e){t.setIcon(e)},label(t,e){t.setLabel(e)},map(t,e){t.setMap(e)},opacity(t,e){t.setOpacity(e)},options(t,e){t.setOptions(e)},position(t,e){t.setPosition(e)},shape(t,e){t.setShape(e)},title(t,e){t.setTitle(e)},visible(t,e){t.setVisible(e)},zIndex(t,e){t.setZIndex(e)}};class N extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[]}componentDidMount(){const t=Object.assign(Object.assign(Object.assign({},this.props.options||{}),this.props.clusterer?{}:{map:this.context}),{position:this.props.position});this.marker=new google.maps.Marker(t),this.props.clusterer?this.props.clusterer.addMarker(this.marker,!!this.props.noClustererRedraw):this.marker.setMap(this.context),this.registeredEvents=c({updaterMap:R,eventMap:z,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)}componentDidUpdate(t){this.marker&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:R,eventMap:z,prevProps:t,nextProps:this.props,instance:this.marker}))}componentWillUnmount(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),u(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))}render(){let t=null;return this.props.children&&(t=r.Children.map(this.props.children,(t=>{if(!r.isValidElement(t))return t;let e=t;return r.cloneElement(e,{anchor:this.marker})}))),t||null}}N.contextType=a;var W=function(){function t(e,n){e.getClusterer().extend(t,google.maps.OverlayView),this.cluster=e,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=n,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.setMap(e.getMap())}return t.prototype.onAdd=function(){var t,e,n=this;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div),this.boundsChangedListener=google.maps.event.addListener(this.getMap(),"boundschanged",(function(){e=t})),google.maps.event.addDomListener(this.div,"mousedown",(function(){t=!0,e=!1})),google.maps.event.addDomListener(this.div,"click",(function(r){if(t=!1,!e){var o=n.cluster.getClusterer();if(google.maps.event.trigger(o,"click",n.cluster),google.maps.event.trigger(o,"clusterclick",n.cluster),o.getZoomOnClick()){var i=o.getMaxZoom(),a=n.cluster.getBounds();o.getMap().fitBounds(a),setTimeout((function(){o.getMap().fitBounds(a),null!==i&&o.getMap().getZoom()>i&&o.getMap().setZoom(i+1)}),100)}r.cancelBubble=!0,r.stopPropagation&&r.stopPropagation()}})),google.maps.event.addDomListener(this.div,"mouseover",(function(){google.maps.event.trigger(n.cluster.getClusterer(),"mouseover",n.cluster)})),google.maps.event.addDomListener(this.div,"mouseout",(function(){google.maps.event.trigger(n.cluster.getClusterer(),"mouseout",n.cluster)}))},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),null!==this.boundsChangedListener&&google.maps.event.removeListener(this.boundsChangedListener),google.maps.event.clearInstanceListeners(this.div),this.div.parentNode.removeChild(this.div),this.div=null)},t.prototype.draw=function(){if(this.visible&&null!==this.div&&this.center){var t=this.getPosFromLatLng(this.center),e=t.x,n=t.y;this.div.style.top=n+"px",this.div.style.left=e+"px"}},t.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},t.prototype.show=function(){if(this.div&&this.center){var t,e="",n=this.backgroundPosition.split(" "),r=parseInt(n[0].replace(/^\s+|\s+$/g,""),10),o=parseInt(n[1].replace(/^\s+|\s+$/g,""),10),i=this.getPosFromLatLng(this.center);t=null===this.sums||void 0===this.sums.title||""===this.sums.title?this.cluster.getClusterer().getTitle():this.sums.title,this.div.style.cssText=this.createCss(i),e="<img alt='"+t+"' src='"+this.url+"' style='position: absolute; top: "+o+"px; left: "+r+"px; ",this.cluster.getClusterer().enableRetinaIcons||(e+="clip: rect("+-1*o+"px, "+(-1*r+this.width)+"px, "+(-1*o+this.height)+"px, "+-1*r+"px);"),e+="'>",this.div.innerHTML=e+"<div style='position: absolute;top: "+this.anchorText[0]+"px;left: "+this.anchorText[1]+"px;color: "+this.textColor+";font-size: "+this.textSize+"px;font-family: "+this.fontFamily+";font-weight: "+this.fontWeight+";font-style: "+this.fontStyle+";text-decoration: "+this.textDecoration+";text-align: center;width: "+this.width+"px;line-height:"+this.height+"px;'>"+this.sums.text+"</div>",this.div.title=t,this.div.style.display=""}this.visible=!0},t.prototype.useStyle=function(t){this.sums=t;var e=this.cluster.getClusterer().getStyles(),n=e[Math.min(e.length-1,Math.max(0,t.index-1))];this.url=n.url,this.height=n.height,this.width=n.width,n.className&&(this.className=this.clusterClassName+" "+n.className),this.anchorText=n.anchorText||[0,0],this.anchorIcon=n.anchorIcon||[this.height/2,this.width/2],this.textColor=n.textColor||"black",this.textSize=n.textSize||11,this.textDecoration=n.textDecoration||"none",this.fontWeight=n.fontWeight||"bold",this.fontStyle=n.fontStyle||"normal",this.fontFamily=n.fontFamily||"Arial,sans-serif",this.backgroundPosition=n.backgroundPosition||"0 0"},t.prototype.setCenter=function(t){this.center=t},t.prototype.createCss=function(t){var e=[];return e.push("cursor: pointer;"),e.push("position: absolute; top: "+t.y+"px; left: "+t.x+"px;"),e.push("width: "+this.width+"px; height: "+this.height+"px;"),e.join("")},t.prototype.getPosFromLatLng=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x-=this.anchorIcon[1],e.y-=this.anchorIcon[0],e},t}(),F=function(){function t(t){this.markerClusterer=t,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new W(this,this.markerClusterer.getStyles())}return t.prototype.getSize=function(){return this.markers.length},t.prototype.getMarkers=function(){return this.markers},t.prototype.getCenter=function(){return this.center},t.prototype.getMap=function(){return this.map},t.prototype.getClusterer=function(){return this.markerClusterer},t.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center,this.center),e=this.getMarkers(),n=0;n<e.length;n++){var r=e[n].getPosition();r&&t.extend(r)}return t},t.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},t.prototype.addMarker=function(t){if(this.isMarkerAlreadyAdded(t))return!1;var e;if(this.center){if(this.averageCenter&&(e=t.getPosition())){var n=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(n-1)+e.lat())/n,(this.center.lng()*(n-1)+e.lng())/n),this.calculateBounds()}}else(e=t.getPosition())&&(this.center=e,this.calculateBounds());t.isAdded=!0,this.markers.push(t);var r=this.markers.length,o=this.markerClusterer.getMaxZoom(),i=this.map.getZoom();if(null!==o&&void 0!==i&&i>o)t.getMap()!==this.map&&t.setMap(this.map);else if(r<this.minClusterSize)t.getMap()!==this.map&&t.setMap(this.map);else if(r===this.minClusterSize)for(var a=0;a<r;a++)this.markers[a].setMap(null);else t.setMap(null);return!0},t.prototype.isMarkerInClusterBounds=function(t){if(null!==this.bounds){var e=t.getPosition();if(e)return this.bounds.contains(e)}return!1},t.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},t.prototype.updateIcon=function(){var t=this.markers.length,e=this.markerClusterer.getMaxZoom(),n=this.map.getZoom();null!==e&&void 0!==n&&n>e||t<this.minClusterSize?this.clusterIcon.hide():(this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show())},t.prototype.isMarkerAlreadyAdded=function(t){if(this.markers.includes)return this.markers.includes(t);for(var e=0;e<this.markers.length;e++)if(t===this.markers[e])return!0;return!1},t}(),U=function(t,e){var n=t.length,r=n.toString().length,o=Math.min(r,e);return{text:n.toString(),index:o,title:""}},V=[53,56,66,78,90],q=function(){function t(e,n,r){void 0===n&&(n=[]),void 0===r&&(r={}),this.extend(t,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=r.gridSize||60,this.minClusterSize=r.minimumClusterSize||2,this.maxZoom=r.maxZoom||null,this.styles=r.styles||[],this.title=r.title||"",this.zoomOnClick=!0,void 0!==r.zoomOnClick&&(this.zoomOnClick=r.zoomOnClick),this.averageCenter=!1,void 0!==r.averageCenter&&(this.averageCenter=r.averageCenter),this.ignoreHidden=!1,void 0!==r.ignoreHidden&&(this.ignoreHidden=r.ignoreHidden),this.enableRetinaIcons=!1,void 0!==r.enableRetinaIcons&&(this.enableRetinaIcons=r.enableRetinaIcons),this.imagePath=r.imagePath||"https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",this.imageExtension=r.imageExtension||"png",this.imageSizes=r.imageSizes||V,this.calculator=r.calculator||U,this.batchSize=r.batchSize||2e3,this.batchSizeIE=r.batchSizeIE||500,this.clusterClass=r.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(n,!0),this.setMap(e)}return t.prototype.onAdd=function(){var t=this;this.activeMap=this.getMap(),this.ready=!0,this.repaint(),this.listeners=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){t.resetViewport(!1),t.getMap().getZoom()!==(t.get("minZoom")||0)&&t.getMap().getZoom()!==t.get("maxZoom")||google.maps.event.trigger(t,"idle")})),google.maps.event.addListener(this.getMap(),"idle",(function(){t.redraw()}))]},t.prototype.onRemove=function(){for(var t=0;t<this.markers.length;t++)this.markers[t].getMap()!==this.activeMap&&this.markers[t].setMap(this.activeMap);for(t=0;t<this.clusters.length;t++)this.clusters[t].remove();for(this.clusters=[],t=0;t<this.listeners.length;t++)google.maps.event.removeListener(this.listeners[t]);this.listeners=[],this.activeMap=null,this.ready=!1},t.prototype.draw=function(){},t.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var t=0;t<this.imageSizes.length;t++)this.styles.push({url:this.imagePath+(t+1)+"."+this.imageExtension,height:this.imageSizes[t],width:this.imageSizes[t]})},t.prototype.fitMapToMarkers=function(){for(var t=this.getMarkers(),e=new google.maps.LatLngBounds,n=0;n<t.length;n++){var r=t[n].getPosition();r&&e.extend(r)}this.getMap().fitBounds(e)},t.prototype.getGridSize=function(){return this.gridSize},t.prototype.setGridSize=function(t){this.gridSize=t},t.prototype.getMinimumClusterSize=function(){return this.minClusterSize},t.prototype.setMinimumClusterSize=function(t){this.minClusterSize=t},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.setMaxZoom=function(t){this.maxZoom=t},t.prototype.getStyles=function(){return this.styles},t.prototype.setStyles=function(t){this.styles=t},t.prototype.getTitle=function(){return this.title},t.prototype.setTitle=function(t){this.title=t},t.prototype.getZoomOnClick=function(){return this.zoomOnClick},t.prototype.setZoomOnClick=function(t){this.zoomOnClick=t},t.prototype.getAverageCenter=function(){return this.averageCenter},t.prototype.setAverageCenter=function(t){this.averageCenter=t},t.prototype.getIgnoreHidden=function(){return this.ignoreHidden},t.prototype.setIgnoreHidden=function(t){this.ignoreHidden=t},t.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},t.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons=t},t.prototype.getImageExtension=function(){return this.imageExtension},t.prototype.setImageExtension=function(t){this.imageExtension=t},t.prototype.getImagePath=function(){return this.imagePath},t.prototype.setImagePath=function(t){this.imagePath=t},t.prototype.getImageSizes=function(){return this.imageSizes},t.prototype.setImageSizes=function(t){this.imageSizes=t},t.prototype.getCalculator=function(){return this.calculator},t.prototype.setCalculator=function(t){this.calculator=t},t.prototype.getBatchSizeIE=function(){return this.batchSizeIE},t.prototype.setBatchSizeIE=function(t){this.batchSizeIE=t},t.prototype.getClusterClass=function(){return this.clusterClass},t.prototype.setClusterClass=function(t){this.clusterClass=t},t.prototype.getMarkers=function(){return this.markers},t.prototype.getTotalMarkers=function(){return this.markers.length},t.prototype.getClusters=function(){return this.clusters},t.prototype.getTotalClusters=function(){return this.clusters.length},t.prototype.addMarker=function(t,e){this.pushMarkerTo(t),e||this.redraw()},t.prototype.addMarkers=function(t,e){for(var n in t)t.hasOwnProperty(n)&&this.pushMarkerTo(t[n]);e||this.redraw()},t.prototype.pushMarkerTo=function(t){var e=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",(function(){e.ready&&(t.isAdded=!1,e.repaint())})),t.isAdded=!1,this.markers.push(t)},t.prototype.removeMarker_=function(t){var e=-1;if(this.markers.indexOf)e=this.markers.indexOf(t);else for(var n=0;n<this.markers.length;n++)if(t===this.markers[n]){e=n;break}return-1!==e&&(t.setMap(null),this.markers.splice(e,1),!0)},t.prototype.removeMarker=function(t,e){var n=this.removeMarker_(t);return!e&&n&&this.repaint(),n},t.prototype.removeMarkers=function(t,e){for(var n=!1,r=0;r<t.length;r++)n=n||this.removeMarker_(t[r]);return!e&&n&&this.repaint(),n},t.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]},t.prototype.repaint=function(){var t=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout((function(){for(var e=0;e<t.length;e++)t[e].remove()}),0)},t.prototype.getExtendedBounds=function(t){var e=this.getProjection(),n=e.fromLatLngToDivPixel(new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()));n.x+=this.gridSize,n.y-=this.gridSize;var r=e.fromLatLngToDivPixel(new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()));return r.x-=this.gridSize,r.y+=this.gridSize,t.extend(e.fromDivPixelToLatLng(n)),t.extend(e.fromDivPixelToLatLng(r)),t},t.prototype.redraw=function(){this.createClusters(0)},t.prototype.resetViewport=function(t){for(var e=0;e<this.clusters.length;e++)this.clusters[e].remove();for(this.clusters=[],e=0;e<this.markers.length;e++){var n=this.markers[e];n.isAdded=!1,t&&n.setMap(null)}},t.prototype.distanceBetweenPoints=function(t,e){var n=(e.lat()-t.lat())*Math.PI/180,r=(e.lng()-t.lng())*Math.PI/180,o=Math.sin(n/2)*Math.sin(n/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2);return 2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))*6371},t.prototype.isMarkerInBounds=function(t,e){var n=t.getPosition();return!!n&&e.contains(n)},t.prototype.addToClosestCluster=function(t){for(var e,n=4e4,r=null,o=0;o<this.clusters.length;o++){var i=(e=this.clusters[o]).getCenter(),a=t.getPosition();if(i&&a){var s=this.distanceBetweenPoints(i,a);s<n&&(n=s,r=e)}}r&&r.isMarkerInClusterBounds(t)?r.addMarker(t):((e=new F(this)).addMarker(t),this.clusters.push(e))},t.prototype.createClusters=function(t){var e=this;if(this.ready){0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),null!==this.timerRefStatic&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var n=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),r=this.getExtendedBounds(n),o=Math.min(t+this.batchSize,this.markers.length),i=t;i<o;i++){var a=this.markers[i];!a.isAdded&&this.isMarkerInBounds(a,r)&&(!this.ignoreHidden||this.ignoreHidden&&a.getVisible())&&this.addToClosestCluster(a)}if(o<this.markers.length)this.timerRefStatic=window.setTimeout((function(){e.createClusters(o)}),0);else for(this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this),i=0;i<this.clusters.length;i++)this.clusters[i].updateIcon()}},t.prototype.extend=function(t,e){return function(t){for(var e in t.prototype)this.prototype[e]=t.prototype[e];return this}.apply(t,[e])},t}();const G={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},Z={averageCenter(t,e){t.setAverageCenter(e)},batchSizeIE(t,e){t.setBatchSizeIE(e)},calculator(t,e){t.setCalculator(e)},clusterClass(t,e){t.setClusterClass(e)},enableRetinaIcons(t,e){t.setEnableRetinaIcons(e)},gridSize(t,e){t.setGridSize(e)},ignoreHidden(t,e){t.setIgnoreHidden(e)},imageExtension(t,e){t.setImageExtension(e)},imagePath(t,e){t.setImagePath(e)},imageSizes(t,e){t.setImageSizes(e)},maxZoom(t,e){t.setMaxZoom(e)},minimumClusterSize(t,e){t.setMinimumClusterSize(e)},styles(t,e){t.setStyles(e)},title(t,e){t.setTitle(e)},zoomOnClick(t,e){t.setZoomOnClick(e)}};class H extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={markerClusterer:null},this.setClustererCallback=()=>{null!==this.state.markerClusterer&&this.props.onLoad&&this.props.onLoad(this.state.markerClusterer)}}componentDidMount(){if(this.context){const t=new q(this.context,[],this.props.options);this.registeredEvents=c({updaterMap:Z,eventMap:G,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{markerClusterer:t}}),this.setClustererCallback)}}componentDidUpdate(t){this.state.markerClusterer&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:Z,eventMap:G,prevProps:t,nextProps:this.props,instance:this.state.markerClusterer}))}componentWillUnmount(){null!==this.state.markerClusterer&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),u(this.registeredEvents),this.state.markerClusterer.setMap(null))}render(){return null!==this.state.markerClusterer?this.props.children(this.state.markerClusterer):null}}H.contextType=a;var $=function(){function t(e){void 0===e&&(e={}),this.extend(t,google.maps.OverlayView),this.content=e.content||"",this.disableAutoPan=e.disableAutoPan||!1,this.maxWidth=e.maxWidth||0,this.pixelOffset=e.pixelOffset||new google.maps.Size(0,0),this.position=e.position||new google.maps.LatLng(0,0),this.zIndex=e.zIndex||null,this.boxClass=e.boxClass||"infoBox",this.boxStyle=e.boxStyle||{},this.closeBoxMargin=e.closeBoxMargin||"2px",this.closeBoxURL=e.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",""===e.closeBoxURL&&(this.closeBoxURL=""),this.infoBoxClearance=e.infoBoxClearance||new google.maps.Size(1,1),void 0===e.visible&&(void 0===e.isHidden?e.visible=!0:e.visible=!e.isHidden),this.isHidden=!e.visible,this.alignBottom=e.alignBottom||!1,this.pane=e.pane||"floatPane",this.enableEventPropagation=e.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return t.prototype.createInfoBoxDiv=function(){var t=this;function e(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()}if(!this.div){if(this.div=document.createElement("div"),this.setBoxStyle(),"string"==typeof this.content?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content)),this.getPanes()[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(0!==this.maxWidth&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var n=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-n.left-n.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var r=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],o=0;o<r.length;o++)this.eventListeners.push(google.maps.event.addDomListener(this.div,r[o],e));this.eventListeners.push(google.maps.event.addDomListener(this.div,"mouseover",(function(){t.div&&(t.div.style.cursor="default")})))}this.contextListener=google.maps.event.addDomListener(this.div,"contextmenu",(function(n){n.returnValue=!1,n.preventDefault&&n.preventDefault(),t.enableEventPropagation||e(n)})),google.maps.event.trigger(this,"domready")}},t.prototype.getCloseBoxImg=function(){var t="";return""!==this.closeBoxURL&&(t='<img alt=""',t+=' aria-hidden="true"',t+=" src='"+this.closeBoxURL+"'",t+=" align=right",t+=" style='",t+=" position: relative;",t+=" cursor: pointer;",t+=" margin: "+this.closeBoxMargin+";",t+="'>"),t},t.prototype.addClickHandler=function(){if(this.div&&this.div.firstChild&&""!==this.closeBoxURL){var t=this.div.firstChild;this.closeListener=google.maps.event.addDomListener(t,"click",this.getCloseClickHandler())}else this.closeListener=null},t.prototype.getCloseClickHandler=function(){var t=this;return function(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),google.maps.event.trigger(t,"closeclick"),t.close()}},t.prototype.panBox=function(t){if(this.div&&!t){var e=this.getMap();if(e instanceof google.maps.Map){var n=0,r=0,o=e.getBounds();o&&!o.contains(this.position)&&e.setCenter(this.position);var i=e.getDiv(),a=i.offsetWidth,s=i.offsetHeight,u=this.pixelOffset.width,c=this.pixelOffset.height,l=this.div.offsetWidth,f=this.div.offsetHeight,p=this.infoBoxClearance.width,h=this.infoBoxClearance.height,d=this.getProjection().fromLatLngToContainerPixel(this.position);null!==d&&(d.x<-u+p?n=d.x+u-p:d.x+l+u+p>a&&(n=d.x+l+u+p-a),this.alignBottom?d.y<-c+h+f?r=d.y+c-h-f:d.y+c+h>s&&(r=d.y+c+h-s):d.y<-c+h?r=d.y+c-h:d.y+f+c+h>s&&(r=d.y+f+c+h-s)),0===n&&0===r||e.panBy(n,r)}}},t.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var t=this.boxStyle;for(var e in t)t.hasOwnProperty(e)&&(this.div.style[e]=t[e]);if(this.div.style.webkitTransform="translateZ(0)",void 0!==this.div.style.opacity&&""!==this.div.style.opacity){var n=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*n+')"',this.div.style.filter="alpha(opacity="+100*n+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",null!==this.zIndex&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},t.prototype.getBoxWidths=function(){var t={top:0,bottom:0,left:0,right:0};if(!this.div)return t;if(document.defaultView&&document.defaultView.getComputedStyle){var e=this.div.ownerDocument,n=e&&e.defaultView?e.defaultView.getComputedStyle(this.div,""):null;n&&(t.top=parseInt(n.borderTopWidth||"",10)||0,t.bottom=parseInt(n.borderBottomWidth||"",10)||0,t.left=parseInt(n.borderLeftWidth||"",10)||0,t.right=parseInt(n.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var r=this.div.currentStyle;r&&(t.top=parseInt(r.borderTopWidth||"",10)||0,t.bottom=parseInt(r.borderBottomWidth||"",10)||0,t.left=parseInt(r.borderLeftWidth||"",10)||0,t.right=parseInt(r.borderRightWidth||"",10)||0)}return t},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},t.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var t=this.getProjection().fromLatLngToDivPixel(this.position);null!==t&&(this.div.style.left=t.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(t.y+this.pixelOffset.height)+"px":this.div.style.top=t.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},t.prototype.setOptions=function(t){void 0===t&&(t={}),void 0!==t.boxClass&&(this.boxClass=t.boxClass,this.setBoxStyle()),void 0!==t.boxStyle&&(this.boxStyle=t.boxStyle,this.setBoxStyle()),void 0!==t.content&&this.setContent(t.content),void 0!==t.disableAutoPan&&(this.disableAutoPan=t.disableAutoPan),void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.pixelOffset&&(this.pixelOffset=t.pixelOffset),void 0!==t.alignBottom&&(this.alignBottom=t.alignBottom),void 0!==t.position&&this.setPosition(t.position),void 0!==t.zIndex&&this.setZIndex(t.zIndex),void 0!==t.closeBoxMargin&&(this.closeBoxMargin=t.closeBoxMargin),void 0!==t.closeBoxURL&&(this.closeBoxURL=t.closeBoxURL),void 0!==t.infoBoxClearance&&(this.infoBoxClearance=t.infoBoxClearance),void 0!==t.isHidden&&(this.isHidden=t.isHidden),void 0!==t.visible&&(this.isHidden=!t.visible),void 0!==t.enableEventPropagation&&(this.enableEventPropagation=t.enableEventPropagation),this.div&&this.draw()},t.prototype.setContent=function(t){this.content=t,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),"string"==typeof t?this.div.innerHTML=this.getCloseBoxImg()+t:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(t)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px","string"==typeof t?this.div.innerHTML=this.getCloseBoxImg()+t:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(t))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},t.prototype.setPosition=function(t){this.position=t,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},t.prototype.setVisible=function(t){this.isHidden=!t,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},t.prototype.setZIndex=function(t){this.zIndex=t,this.div&&(this.div.style.zIndex=t+""),google.maps.event.trigger(this,"zindex_changed")},t.prototype.getContent=function(){return this.content},t.prototype.getPosition=function(){return this.position},t.prototype.getZIndex=function(){return this.zIndex},t.prototype.getVisible=function(){return null!=this.getMap()&&!this.isHidden},t.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},t.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},t.prototype.open=function(t,e){var n=this;e&&(this.position=e.getPosition(),this.moveListener=google.maps.event.addListener(e,"position_changed",(function(){var t=e.getPosition();n.setPosition(t)})),this.mapListener=google.maps.event.addListener(e,"map_changed",(function(){n.setMap(e.map)}))),this.setMap(t),this.div&&this.panBox()},t.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var t=0;t<this.eventListeners.length;t++)google.maps.event.removeListener(this.eventListeners[t]);this.eventListeners=null}this.moveListener&&(google.maps.event.removeListener(this.moveListener),this.moveListener=null),this.mapListener&&(google.maps.event.removeListener(this.mapListener),this.mapListener=null),this.contextListener&&(google.maps.event.removeListener(this.contextListener),this.contextListener=null),this.setMap(null)},t.prototype.extend=function(t,e){return function(t){for(var e in t.prototype)this.prototype.hasOwnProperty(e)||(this.prototype[e]=t.prototype[e]);return this}.apply(t,[e])},t}();const Y={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},X={options(t,e){t.setOptions(e)},position(t,e){e instanceof google.maps.LatLng?t.setPosition(e):t.setPosition(new google.maps.LatLng(e.lat,e.lng))},visible(t,e){t.setVisible(e)},zIndex(t,e){t.setZIndex(e)}};class K extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=null,this.state={infoBox:null},this.open=(t,e)=>{e?t.open(this.context,e):t.getPosition()?t.open(this.context):i(!1,"You must provide either an anchor or a position prop for <InfoBox>.")},this.setInfoBoxCallback=()=>{const{anchor:t,onLoad:e}=this.props,{infoBox:n}=this.state;null!==n&&null!==this.containerElement&&(n.setContent(this.containerElement),this.open(n,t),e&&e(n))}}componentDidMount(){const{options:t}=this.props,e=t||{},{position:n}=e,r=h(e,["position"]);let o;!n||n instanceof google.maps.LatLng||(o=new google.maps.LatLng(n.lat,n.lng));const i=new $(Object.assign(Object.assign({},r),o?{position:o}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=c({updaterMap:X,eventMap:Y,prevProps:{},nextProps:this.props,instance:i}),this.setState({infoBox:i},this.setInfoBoxCallback)}componentDidUpdate(t){const{infoBox:e}=this.state;null!==e&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:X,eventMap:Y,prevProps:t,nextProps:this.props,instance:e}))}componentWillUnmount(){const{onUnmount:t}=this.props,{infoBox:e}=this.state;null!==e&&(t&&t(e),u(this.registeredEvents),e.close())}render(){return this.containerElement?o.createPortal(r.Children.only(this.props.children),this.containerElement):null}}K.contextType=a;var Q={exports:{}};!function(t){function e(t,e,n,r){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(t,e,n,r)}e.prototype.run=function(t,e,n,r){this._init(t,e,n,r);for(var o=0;o<this._datasetLength;o++)if(1!==this._visited[o]){this._visited[o]=1;var i=this._regionQuery(o);if(i.length<this.minPts)this.noise.push(o);else{var a=this.clusters.length;this.clusters.push([]),this._addToCluster(o,a),this._expandCluster(a,i)}}return this.clusters},e.prototype._init=function(t,e,n,r){if(t){if(!(t instanceof Array))throw Error("Dataset must be of type array, "+typeof t+" given");this.dataset=t,this.clusters=[],this.noise=[],this._datasetLength=t.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}e&&(this.epsilon=e),n&&(this.minPts=n),r&&(this.distance=r)},e.prototype._expandCluster=function(t,e){for(var n=0;n<e.length;n++){var r=e[n];if(1!==this._visited[r]){this._visited[r]=1;var o=this._regionQuery(r);o.length>=this.minPts&&(e=this._mergeArrays(e,o))}1!==this._assigned[r]&&this._addToCluster(r,t)}},e.prototype._addToCluster=function(t,e){this.clusters[e].push(t),this._assigned[t]=1},e.prototype._regionQuery=function(t){for(var e=[],n=0;n<this._datasetLength;n++)this.distance(this.dataset[t],this.dataset[n])<this.epsilon&&e.push(n);return e},e.prototype._mergeArrays=function(t,e){for(var n=e.length,r=0;r<n;r++){var o=e[r];t.indexOf(o)<0&&t.push(o)}return t},e.prototype._euclideanDistance=function(t,e){for(var n=0,r=Math.min(t.length,e.length);r--;)n+=(t[r]-e[r])*(t[r]-e[r]);return Math.sqrt(n)},t.exports&&(t.exports=e)}(Q);var J={exports:{}};!function(t){function e(t,e,n){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(t,e,n)}e.prototype.init=function(t,e,n){this.assignments=[],this.centroids=[],void 0!==t&&(this.dataset=t),void 0!==e&&(this.k=e),void 0!==n&&(this.distance=n)},e.prototype.run=function(t,e){this.init(t,e);for(var n=this.dataset.length,r=0;r<this.k;r++)this.centroids[r]=this.randomCentroid();for(var o=!0;o;){o=this.assign();for(var i=0;i<this.k;i++){for(var a=new Array(l),s=0,u=0;u<l;u++)a[u]=0;for(var c=0;c<n;c++){var l=this.dataset[c].length;if(i===this.assignments[c]){for(u=0;u<l;u++)a[u]+=this.dataset[c][u];s++}}if(s>0){for(u=0;u<l;u++)a[u]/=s;this.centroids[i]=a}else this.centroids[i]=this.randomCentroid(),o=!0}}return this.getClusters()},e.prototype.randomCentroid=function(){var t,e,n=this.dataset.length-1;do{e=Math.round(Math.random()*n),t=this.dataset[e]}while(this.centroids.indexOf(t)>=0);return t},e.prototype.assign=function(){for(var t,e=!1,n=this.dataset.length,r=0;r<n;r++)(t=this.argmin(this.dataset[r],this.centroids,this.distance))!=this.assignments[r]&&(this.assignments[r]=t,e=!0);return e},e.prototype.getClusters=function(){for(var t,e=new Array(this.k),n=0;n<this.assignments.length;n++)void 0===e[t=this.assignments[n]]&&(e[t]=[]),e[t].push(n);return e},e.prototype.argmin=function(t,e,n){for(var r,o=Number.MAX_VALUE,i=0,a=e.length,s=0;s<a;s++)(r=n(t,e[s]))<o&&(o=r,i=s);return i},e.prototype.distance=function(t,e){for(var n=0,r=Math.min(t.length,e.length);r--;){var o=t[r]-e[r];n+=o*o}return Math.sqrt(n)},t.exports&&(t.exports=e)}(J);var tt,et={exports:{}},nt={exports:{}};!function(t){function e(t,e,n){this._queue=[],this._priorities=[],this._sorting="desc",this._init(t,e,n)}e.prototype.insert=function(t,e){for(var n=this._queue.length,r=n;r--;){var o=this._priorities[r];"desc"===this._sorting?e>o&&(n=r):e<o&&(n=r)}this._insertAt(t,e,n)},e.prototype.remove=function(t){for(var e=this._queue.length;e--;)if(t===this._queue[e]){this._queue.splice(e,1),this._priorities.splice(e,1);break}},e.prototype.forEach=function(t){this._queue.forEach(t)},e.prototype.getElements=function(){return this._queue},e.prototype.getElementPriority=function(t){return this._priorities[t]},e.prototype.getPriorities=function(){return this._priorities},e.prototype.getElementsWithPriorities=function(){for(var t=[],e=0,n=this._queue.length;e<n;e++)t.push([this._queue[e],this._priorities[e]]);return t},e.prototype._init=function(t,e,n){if(t&&e){if(this._queue=[],this._priorities=[],t.length!==e.length)throw new Error("Arrays must have the same length");for(var r=0;r<t.length;r++)this.insert(t[r],e[r])}n&&(this._sorting=n)},e.prototype._insertAt=function(t,e,n){this._queue.length===n?(this._queue.push(t),this._priorities.push(e)):(this._queue.splice(n,0,t),this._priorities.splice(n,0,e))},t.exports&&(t.exports=e)}(nt),function(t){if(t.exports)var e=nt.exports;function n(t,e,n,r){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(t,e,n,r)}n.prototype.run=function(t,n,r,o){this._init(t,n,r,o);for(var i=0,a=this.dataset.length;i<a;i++)if(1!==this._processed[i]){this._processed[i]=1,this.clusters.push([i]);var s=this.clusters.length-1;this._orderedList.push(i);var u=new e(null,null,"asc"),c=this._regionQuery(i);void 0!==this._distanceToCore(i)&&(this._updateQueue(i,c,u),this._expandCluster(s,u))}return this.clusters},n.prototype.getReachabilityPlot=function(){for(var t=[],e=0,n=this._orderedList.length;e<n;e++){var r=this._orderedList[e],o=this._reachability[r];t.push([r,o])}return t},n.prototype._init=function(t,e,n,r){if(t){if(!(t instanceof Array))throw Error("Dataset must be of type array, "+typeof t+" given");this.dataset=t,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}e&&(this.epsilon=e),n&&(this.minPts=n),r&&(this.distance=r)},n.prototype._updateQueue=function(t,e,n){var r=this;this._coreDistance=this._distanceToCore(t),e.forEach((function(e){if(void 0===r._processed[e]){var o=r.distance(r.dataset[t],r.dataset[e]),i=Math.max(r._coreDistance,o);void 0===r._reachability[e]?(r._reachability[e]=i,n.insert(e,i)):i<r._reachability[e]&&(r._reachability[e]=i,n.remove(e),n.insert(e,i))}}))},n.prototype._expandCluster=function(t,e){for(var n=e.getElements(),r=0,o=n.length;r<o;r++){var i=n[r];if(void 0===this._processed[i]){var a=this._regionQuery(i);this._processed[i]=1,this.clusters[t].push(i),this._orderedList.push(i),void 0!==this._distanceToCore(i)&&(this._updateQueue(i,a,e),this._expandCluster(t,e))}}},n.prototype._distanceToCore=function(t){for(var e=this.epsilon,n=0;n<e;n++)if(this._regionQuery(t,n).length>=this.minPts)return n},n.prototype._regionQuery=function(t,e){e=e||this.epsilon;for(var n=[],r=0,o=this.dataset.length;r<o;r++)this.distance(this.dataset[t],this.dataset[r])<e&&n.push(r);return n},n.prototype._euclideanDistance=function(t,e){for(var n=0,r=Math.min(t.length,e.length);r--;)n+=(t[r]-e[r])*(t[r]-e[r]);return Math.sqrt(n)},t.exports&&(t.exports=n)}(et),(tt={exports:{}}).exports&&(tt.exports={DBSCAN:Q.exports,KMEANS:J.exports,OPTICS:et.exports,PriorityQueue:nt.exports});var rt;!function(t,e){t.exports=function(){function t(n,r,o,i,a,s){if(!(a-i<=o)){var u=i+a>>1;e(n,r,u,i,a,s%2),t(n,r,o,i,u-1,s+1),t(n,r,o,u+1,a,s+1)}}function e(t,r,o,i,a,s){for(;a>i;){if(a-i>600){var u=a-i+1,c=o-i+1,l=Math.log(u),f=.5*Math.exp(2*l/3),p=.5*Math.sqrt(l*f*(u-f)/u)*(c-u/2<0?-1:1);e(t,r,o,Math.max(i,Math.floor(o-c*f/u+p)),Math.min(a,Math.floor(o+(u-c)*f/u+p)),s)}var h=r[2*o+s],d=i,g=a;for(n(t,r,i,o),r[2*a+s]>h&&n(t,r,i,a);d<g;){for(n(t,r,d,g),d++,g--;r[2*d+s]<h;)d++;for(;r[2*g+s]>h;)g--}r[2*i+s]===h?n(t,r,i,g):n(t,r,++g,a),g<=o&&(i=g+1),o<=g&&(a=g-1)}}function n(t,e,n,o){r(t,n,o),r(e,2*n,2*o),r(e,2*n+1,2*o+1)}function r(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function o(t,e,n,r){var o=t-n,i=e-r;return o*o+i*i}var i=function(t){return t[0]},a=function(t){return t[1]},s=function(e,n,r,o,s){void 0===n&&(n=i),void 0===r&&(r=a),void 0===o&&(o=64),void 0===s&&(s=Float64Array),this.nodeSize=o,this.points=e;for(var u=e.length<65536?Uint16Array:Uint32Array,c=this.ids=new u(e.length),l=this.coords=new s(2*e.length),f=0;f<e.length;f++)c[f]=f,l[2*f]=n(e[f]),l[2*f+1]=r(e[f]);t(c,l,o,0,c.length-1,0)};s.prototype.range=function(t,e,n,r){return function(t,e,n,r,o,i,a){for(var s,u,c=[0,t.length-1,0],l=[];c.length;){var f=c.pop(),p=c.pop(),h=c.pop();if(p-h<=a)for(var d=h;d<=p;d++)s=e[2*d],u=e[2*d+1],s>=n&&s<=o&&u>=r&&u<=i&&l.push(t[d]);else{var g=Math.floor((h+p)/2);s=e[2*g],u=e[2*g+1],s>=n&&s<=o&&u>=r&&u<=i&&l.push(t[g]);var y=(f+1)%2;(0===f?n<=s:r<=u)&&(c.push(h),c.push(g-1),c.push(y)),(0===f?o>=s:i>=u)&&(c.push(g+1),c.push(p),c.push(y))}}return l}(this.ids,this.coords,t,e,n,r,this.nodeSize)},s.prototype.within=function(t,e,n){return function(t,e,n,r,i,a){for(var s=[0,t.length-1,0],u=[],c=i*i;s.length;){var l=s.pop(),f=s.pop(),p=s.pop();if(f-p<=a)for(var h=p;h<=f;h++)o(e[2*h],e[2*h+1],n,r)<=c&&u.push(t[h]);else{var d=Math.floor((p+f)/2),g=e[2*d],y=e[2*d+1];o(g,y,n,r)<=c&&u.push(t[d]);var v=(l+1)%2;(0===l?n-i<=g:r-i<=y)&&(s.push(p),s.push(d-1),s.push(v)),(0===l?n+i>=g:r+i>=y)&&(s.push(d+1),s.push(f),s.push(v))}}return u}(this.ids,this.coords,t,e,n,this.nodeSize)};var u,c={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},l=Math.fround||(u=new Float32Array(1),function(t){return u[0]=+t,u[0]}),f=function(t){this.options=m(Object.create(c),t),this.trees=new Array(this.options.maxZoom+1)};function p(t,e,n,r,o){return{x:l(t),y:l(e),zoom:1/0,id:n,parentId:-1,numPoints:r,properties:o}}function h(t,e){var n=t.geometry.coordinates,r=n[0],o=n[1];return{x:l(y(r)),y:l(v(o)),zoom:1/0,index:e,parentId:-1}}function d(t){return{type:"Feature",id:t.id,properties:g(t),geometry:{type:"Point",coordinates:[(r=t.x,360*(r-.5)),(e=t.y,n=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(n))/Math.PI-90)]}};var e,n,r}function g(t){var e=t.numPoints,n=e>=1e4?Math.round(e/1e3)+"k":e>=1e3?Math.round(e/100)/10+"k":e;return m(m({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:n})}function y(t){return t/360+.5}function v(t){var e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function m(t,e){for(var n in e)t[n]=e[n];return t}function b(t){return t.x}function x(t){return t.y}return f.prototype.load=function(t){var e=this.options,n=e.log,r=e.minZoom,o=e.maxZoom,i=e.nodeSize;n&&console.time("total time");var a="prepare "+t.length+" points";n&&console.time(a),this.points=t;for(var u=[],c=0;c<t.length;c++)t[c].geometry&&u.push(h(t[c],c));this.trees[o+1]=new s(u,b,x,i,Float32Array),n&&console.timeEnd(a);for(var l=o;l>=r;l--){var f=+Date.now();u=this._cluster(u,l),this.trees[l]=new s(u,b,x,i,Float32Array),n&&console.log("z%d: %d clusters in %dms",l,u.length,+Date.now()-f)}return n&&console.timeEnd("total time"),this},f.prototype.getClusters=function(t,e){var n=((t[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,t[1])),o=180===t[2]?180:((t[2]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)n=-180,o=180;else if(n>o){var a=this.getClusters([n,r,180,i],e),s=this.getClusters([-180,r,o,i],e);return a.concat(s)}for(var u=this.trees[this._limitZoom(e)],c=[],l=0,f=u.range(y(n),v(i),y(o),v(r));l<f.length;l+=1){var p=f[l],h=u.points[p];c.push(h.numPoints?d(h):this.points[h.index])}return c},f.prototype.getChildren=function(t){var e=this._getOriginId(t),n=this._getOriginZoom(t),r="No cluster with the specified id.",o=this.trees[n];if(!o)throw new Error(r);var i=o.points[e];if(!i)throw new Error(r);for(var a=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=[],u=0,c=o.within(i.x,i.y,a);u<c.length;u+=1){var l=c[u],f=o.points[l];f.parentId===t&&s.push(f.numPoints?d(f):this.points[f.index])}if(0===s.length)throw new Error(r);return s},f.prototype.getLeaves=function(t,e,n){e=e||10,n=n||0;var r=[];return this._appendLeaves(r,t,e,n,0),r},f.prototype.getTile=function(t,e,n){var r=this.trees[this._limitZoom(t)],o=Math.pow(2,t),i=this.options,a=i.extent,s=i.radius/a,u=(n-s)/o,c=(n+1+s)/o,l={features:[]};return this._addTileFeatures(r.range((e-s)/o,u,(e+1+s)/o,c),r.points,e,n,o,l),0===e&&this._addTileFeatures(r.range(1-s/o,u,1,c),r.points,o,n,o,l),e===o-1&&this._addTileFeatures(r.range(0,u,s/o,c),r.points,-1,n,o,l),l.features.length?l:null},f.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e<=this.options.maxZoom;){var n=this.getChildren(t);if(e++,1!==n.length)break;t=n[0].properties.cluster_id}return e},f.prototype._appendLeaves=function(t,e,n,r,o){for(var i=0,a=this.getChildren(e);i<a.length;i+=1){var s=a[i],u=s.properties;if(u&&u.cluster?o+u.point_count<=r?o+=u.point_count:o=this._appendLeaves(t,u.cluster_id,n,r,o):o<r?o++:t.push(s),t.length===n)break}return o},f.prototype._addTileFeatures=function(t,e,n,r,o,i){for(var a=0,s=t;a<s.length;a+=1){var u=e[s[a]],c=u.numPoints,l=void 0,f=void 0,p=void 0;if(c)l=g(u),f=u.x,p=u.y;else{var h=this.points[u.index];l=h.properties,f=y(h.geometry.coordinates[0]),p=v(h.geometry.coordinates[1])}var d={type:1,geometry:[[Math.round(this.options.extent*(f*o-n)),Math.round(this.options.extent*(p*o-r))]],tags:l},m=void 0;c?m=u.id:this.options.generateId?m=u.index:this.points[u.index].id&&(m=this.points[u.index].id),void 0!==m&&(d.id=m),i.features.push(d)}},f.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(+t,this.options.maxZoom+1))},f.prototype._cluster=function(t,e){for(var n=[],r=this.options,o=r.radius,i=r.extent,a=r.reduce,s=r.minPoints,u=o/(i*Math.pow(2,e)),c=0;c<t.length;c++){var l=t[c];if(!(l.zoom<=e)){l.zoom=e;for(var f=this.trees[e+1],h=f.within(l.x,l.y,u),d=l.numPoints||1,g=d,y=0,v=h;y<v.length;y+=1){var m=v[y],b=f.points[m];b.zoom>e&&(g+=b.numPoints||1)}if(g>d&&g>=s){for(var x=l.x*d,O=l.y*d,w=a&&d>1?this._map(l,!0):null,S=(c<<5)+(e+1)+this.points.length,M=0,E=h;M<E.length;M+=1){var k=E[M],C=f.points[k];if(!(C.zoom<=e)){C.zoom=e;var P=C.numPoints||1;x+=C.x*P,O+=C.y*P,C.parentId=S,a&&(w||(w=this._map(l,!0)),a(w,this._map(C)))}}l.parentId=S,n.push(p(x/g,O/g,S,g,w))}else if(n.push(l),g>1)for(var A=0,j=h;A<j.length;A+=1){var T=j[A],_=f.points[T];_.zoom<=e||(_.zoom=e,n.push(_))}}}return n},f.prototype._getOriginId=function(t){return t-this.points.length>>5},f.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},f.prototype._map=function(t,e){if(t.numPoints)return e?m({},t.properties):t.properties;var n=this.points[t.index].properties,r=this.options.map(n);return e&&r===n?m({},r):r},f}()}({exports:{}}),function(t){t.CLUSTERING_BEGIN="clusteringbegin",t.CLUSTERING_END="clusteringend",t.CLUSTER_CLICK="click"}(rt||(rt={}));const ot={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},it={options(t,e){t.setOptions(e)},position(t,e){t.setPosition(e)},zIndex(t,e){t.setZIndex(e)}};class at extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=null,this.state={infoWindow:null},this.open=(t,e)=>{e?t.open(this.context,e):t.getPosition()?t.open(this.context):i(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")},this.setInfoWindowCallback=()=>{null!==this.state.infoWindow&&null!==this.containerElement&&(this.state.infoWindow.setContent(this.containerElement),this.open(this.state.infoWindow,this.props.anchor),this.props.onLoad&&this.props.onLoad(this.state.infoWindow))}}componentDidMount(){const t=new google.maps.InfoWindow(Object.assign({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=c({updaterMap:it,eventMap:ot,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{infoWindow:t}}),this.setInfoWindowCallback)}componentDidUpdate(t){null!==this.state.infoWindow&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:it,eventMap:ot,prevProps:t,nextProps:this.props,instance:this.state.infoWindow}))}componentWillUnmount(){null!==this.state.infoWindow&&(u(this.registeredEvents),this.state.infoWindow.close())}render(){return this.containerElement?o.createPortal(r.Children.only(this.props.children),this.containerElement):r.createElement(r.Fragment,null)}}at.contextType=a;const st={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},ut={draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},path(t,e){t.setPath(e)},visible(t,e){t.setVisible(e)}};class ct extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={polyline:null},this.setPolylineCallback=()=>{null!==this.state.polyline&&this.props.onLoad&&this.props.onLoad(this.state.polyline)}}componentDidMount(){const t=new google.maps.Polyline(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=c({updaterMap:ut,eventMap:st,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{polyline:t}}),this.setPolylineCallback)}componentDidUpdate(t){null!==this.state.polyline&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:ut,eventMap:st,prevProps:t,nextProps:this.props,instance:this.state.polyline}))}componentWillUnmount(){null!==this.state.polyline&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),u(this.registeredEvents),this.state.polyline.setMap(null))}render(){return r.createElement(r.Fragment,null)}}ct.contextType=a;const lt={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},ft={draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},path(t,e){t.setPath(e)},paths(t,e){t.setPaths(e)},visible(t,e){t.setVisible(e)}};class pt extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={polygon:null},this.setPolygonCallback=()=>{null!==this.state.polygon&&this.props.onLoad&&this.props.onLoad(this.state.polygon)}}componentDidMount(){const t=new google.maps.Polygon(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=c({updaterMap:ft,eventMap:lt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{polygon:t}}),this.setPolygonCallback)}componentDidUpdate(t){null!==this.state.polygon&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:ft,eventMap:lt,prevProps:t,nextProps:this.props,instance:this.state.polygon}))}componentWillUnmount(){null!==this.state.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),u(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))}render(){return null}}pt.contextType=a;const ht={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},dt={bounds(t,e){t.setBounds(e)},draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},visible(t,e){t.setVisible(e)}};class gt extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={rectangle:null},this.setRectangleCallback=()=>{null!==this.state.rectangle&&this.props.onLoad&&this.props.onLoad(this.state.rectangle)}}componentDidMount(){const t=new google.maps.Rectangle(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=c({updaterMap:dt,eventMap:ht,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{rectangle:t}}),this.setRectangleCallback)}componentDidUpdate(t){null!==this.state.rectangle&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:dt,eventMap:ht,prevProps:t,nextProps:this.props,instance:this.state.rectangle}))}componentWillUnmount(){null!==this.state.rectangle&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),u(this.registeredEvents),this.state.rectangle.setMap(null))}render(){return r.createElement(r.Fragment,null)}}gt.contextType=a;const yt={onCenterChanged:"center_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRadiusChanged:"radius_changed",onRightClick:"rightclick"},vt={center(t,e){t.setCenter(e)},draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},radius(t,e){t.setRadius(e)},visible(t,e){t.setVisible(e)}};class mt extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={circle:null},this.setCircleCallback=()=>{null!==this.state.circle&&this.props.onLoad&&this.props.onLoad(this.state.circle)}}componentDidMount(){const t=new google.maps.Circle(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=c({updaterMap:vt,eventMap:yt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{circle:t}}),this.setCircleCallback)}componentDidUpdate(t){null!==this.state.circle&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:vt,eventMap:yt,prevProps:t,nextProps:this.props,instance:this.state.circle}))}componentWillUnmount(){null!==this.state.circle&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),u(this.registeredEvents),this.state.circle&&this.state.circle.setMap(null))}render(){return r.createElement(r.Fragment,null)}}mt.contextType=a;const bt={onAddFeature:"addfeature",onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onRightClick:"rightclick",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},xt={add(t,e){t.add(e)},addgeojson(t,e,n){t.addGeoJson(e,n)},contains(t,e){t.contains(e)},foreach(t,e){t.forEach(e)},loadgeojson(t,e,n,r){t.loadGeoJson(e,n,r)},overridestyle(t,e,n){t.overrideStyle(e,n)},remove(t,e){t.remove(e)},revertstyle(t,e){t.revertStyle(e)},controlposition(t,e){t.setControlPosition(e)},controls(t,e){t.setControls(e)},drawingmode(t,e){t.setDrawingMode(e)},map(t,e){t.setMap(e)},style(t,e){t.setStyle(e)},togeojson(t,e){t.toGeoJson(e)}};class Ot extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={data:null},this.setDataCallback=()=>{null!==this.state.data&&this.props.onLoad&&this.props.onLoad(this.state.data)}}componentDidMount(){const t=new google.maps.Data(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=c({updaterMap:xt,eventMap:bt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{data:t}}),this.setDataCallback)}componentDidUpdate(t){null!==this.state.data&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:xt,eventMap:bt,prevProps:t,nextProps:this.props,instance:this.state.data}))}componentWillUnmount(){null!==this.state.data&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),u(this.registeredEvents),this.state.data&&this.state.data.setMap(null))}render(){return null}}Ot.contextType=a;const wt={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},St={options(t,e){t.setOptions(e)},url(t,e){t.setUrl(e)},zIndex(t,e){t.setZIndex(e)}};class Mt extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={kmlLayer:null},this.setKmlLayerCallback=()=>{null!==this.state.kmlLayer&&this.props.onLoad&&this.props.onLoad(this.state.kmlLayer)}}componentDidMount(){const t=new google.maps.KmlLayer(Object.assign(Object.assign({},this.props.options),{map:this.context}));this.registeredEvents=c({updaterMap:St,eventMap:wt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{kmlLayer:t}}),this.setKmlLayerCallback)}componentDidUpdate(t){null!==this.state.kmlLayer&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:St,eventMap:wt,prevProps:t,nextProps:this.props,instance:this.state.kmlLayer}))}componentWillUnmount(){null!==this.state.kmlLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),u(this.registeredEvents),this.state.kmlLayer.setMap(null))}render(){return null}}Mt.contextType=a;const Et=(t,e)=>new e(t.lat,t.lng),kt=(t,e)=>new e(new google.maps.LatLng(t.ne.lat,t.ne.lng),new google.maps.LatLng(t.sw.lat,t.sw.lng)),Ct=(t,e,n)=>t instanceof e?t:n(t,e);function Pt(t){return t?(t instanceof google.maps.LatLng?t:new google.maps.LatLng(t.lat,t.lng))+"":""}function At(t){return t?(t instanceof google.maps.LatLngBounds?t:new google.maps.LatLngBounds(new google.maps.LatLng(t.south,t.east),new google.maps.LatLng(t.north,t.west)))+"":""}class jt extends r.PureComponent{constructor(t){super(t),this.state={paneEl:null,containerStyle:{position:"absolute"}},this.updatePane=()=>{const t=this.props.mapPaneName,e=this.overlayView.getPanes();i(!!t,"OverlayView requires props.mapPaneName but got %s",t),e?this.setState({paneEl:e[t]}):this.setState({paneEl:null})},this.onAdd=()=>{var t,e;this.updatePane(),null===(e=(t=this.props).onLoad)||void 0===e||e.call(t,this.overlayView)},this.onPositionElement=()=>{var t,e;const n=(s=this.overlayView.getProjection(),u=Object.assign({x:0,y:0},this.containerRef.current?(t=this.containerRef.current,"function"==typeof(e=this.props.getPixelPositionOffset)?e(t.offsetWidth,t.offsetHeight):{}):{}),c=this.props.bounds,l=this.props.position,void 0!==c?((t,e,n)=>{const r=t&&t.fromLatLngToDivPixel(n.getNorthEast()),o=t&&t.fromLatLngToDivPixel(n.getSouthWest());return r&&o?{left:`${o.x+e.x}px`,top:`${r.y+e.y}px`,width:r.x-o.x-e.x+"px",height:o.y-r.y-e.y+"px"}:{left:"-9999px",top:"-9999px"}})(s,u,Ct(c,google.maps.LatLngBounds,kt)):((t,e,n)=>{const r=t&&t.fromLatLngToDivPixel(n);if(r){const{x:t,y:n}=r;return{left:`${t+e.x}px`,top:`${n+e.y}px`}}return{left:"-9999px",top:"-9999px"}})(s,u,Ct(l,google.maps.LatLng,Et))),{left:r,top:o,width:i,height:a}=this.state.containerStyle;var s,u,c,l,f,p;p={left:r,top:o,width:i,height:a},((f=n).left!==p.left||f.top!==p.top||f.width!==p.height||f.height!==p.height)&&this.setState({containerStyle:Object.assign(Object.assign({},n),{position:"absolute"})})},this.draw=()=>{this.onPositionElement()},this.onRemove=()=>{var t,e;this.setState((()=>({paneEl:null}))),null===(e=(t=this.props).onUnmount)||void 0===e||e.call(t,this.overlayView)},this.containerRef=r.createRef();const e=new google.maps.OverlayView;e.onAdd=this.onAdd,e.draw=this.draw,e.onRemove=this.onRemove,this.overlayView=e}componentDidMount(){this.overlayView.setMap(this.context)}componentDidUpdate(t){const e=Pt(t.position),n=Pt(this.props.position),r=At(t.bounds),o=At(this.props.bounds);e===n&&r===o||this.overlayView.draw(),t.mapPaneName!==this.props.mapPaneName&&this.updatePane()}componentWillUnmount(){this.overlayView.setMap(null)}render(){const t=this.state.paneEl;return t?o.createPortal(r.createElement("div",{ref:this.containerRef,style:this.state.containerStyle},r.Children.only(this.props.children)),t):null}}jt.FLOAT_PANE="floatPane",jt.MAP_PANE="mapPane",jt.MARKER_LAYER="markerLayer",jt.OVERLAY_LAYER="overlayLayer",jt.OVERLAY_MOUSE_TARGET="overlayMouseTarget",jt.contextType=a;const Tt={onDblClick:"dblclick",onClick:"click"},_t={opacity(t,e){t.setOpacity(e)}};class Dt extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={groundOverlay:null},this.setGroundOverlayCallback=()=>{null!==this.state.groundOverlay&&this.props.onLoad&&this.props.onLoad(this.state.groundOverlay)}}componentDidMount(){i(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");const t=new google.maps.GroundOverlay(this.props.url,this.props.bounds,Object.assign(Object.assign({},this.props.options),{map:this.context}));this.registeredEvents=c({updaterMap:_t,eventMap:Tt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{groundOverlay:t}}),this.setGroundOverlayCallback)}componentDidUpdate(t){null!==this.state.groundOverlay&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:_t,eventMap:Tt,prevProps:t,nextProps:this.props,instance:this.state.groundOverlay}))}componentWillUnmount(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))}render(){return null}}Dt.defaultProps={onLoad:function(){}},Dt.contextType=a;const Bt={},It={data(t,e){t.setData(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)}};class Lt extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={heatmapLayer:null},this.setHeatmapLayerCallback=()=>{null!==this.state.heatmapLayer&&this.props.onLoad&&this.props.onLoad(this.state.heatmapLayer)}}componentDidMount(){i(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),i(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);const t=new google.maps.visualization.HeatmapLayer(Object.assign(Object.assign({},this.props.options||{}),{data:this.props.data,map:this.context}));this.registeredEvents=c({updaterMap:It,eventMap:Bt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{heatmapLayer:t}}),this.setHeatmapLayerCallback)}componentDidUpdate(t){u(this.registeredEvents),this.registeredEvents=c({updaterMap:It,eventMap:Bt,prevProps:t,nextProps:this.props,instance:this.state.heatmapLayer})}componentWillUnmount(){null!==this.state.heatmapLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),u(this.registeredEvents),this.state.heatmapLayer.setMap(null))}render(){return null}}Lt.contextType=a;const zt={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},Rt={register(t,e,n){t.registerPanoProvider(e,n)},links(t,e){t.setLinks(e)},motionTracking(t,e){t.setMotionTracking(e)},options(t,e){t.setOptions(e)},pano(t,e){t.setPano(e)},position(t,e){t.setPosition(e)},pov(t,e){t.setPov(e)},visible(t,e){t.setVisible(e)},zoom(t,e){t.setZoom(e)}};class Nt extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={streetViewPanorama:null},this.setStreetViewPanoramaCallback=()=>{null!==this.state.streetViewPanorama&&this.props.onLoad&&this.props.onLoad(this.state.streetViewPanorama)}}componentDidMount(){const t=this.context.getStreetView();this.registeredEvents=c({updaterMap:Rt,eventMap:zt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{streetViewPanorama:t}}),this.setStreetViewPanoramaCallback)}componentDidUpdate(t){null!==this.state.streetViewPanorama&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:Rt,eventMap:zt,prevProps:t,nextProps:this.props,instance:this.state.streetViewPanorama}))}componentWillUnmount(){null!==this.state.streetViewPanorama&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),u(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))}render(){return null}}Nt.contextType=a;class Wt extends r.PureComponent{constructor(){super(...arguments),this.state={streetViewService:null},this.setStreetViewServiceCallback=()=>{null!==this.state.streetViewService&&this.props.onLoad&&this.props.onLoad(this.state.streetViewService)}}componentDidMount(){const t=new google.maps.StreetViewService;this.setState((function(){return{streetViewService:t}}),this.setStreetViewServiceCallback)}componentWillUnmount(){null!==this.state.streetViewService&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)}render(){return null}}Wt.contextType=a,r.PureComponent;const Ft={onDirectionsChanged:"directions_changed"},Ut={directions(t,e){t.setDirections(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},panel(t,e){t.setPanel(e)},routeIndex(t,e){t.setRouteIndex(e)}};class Vt extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={directionsRenderer:null},this.setDirectionsRendererCallback=()=>{null!==this.state.directionsRenderer&&(this.state.directionsRenderer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.directionsRenderer))}}componentDidMount(){const t=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=c({updaterMap:Ut,eventMap:Ft,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{directionsRenderer:t}}),this.setDirectionsRendererCallback)}componentDidUpdate(t){null!==this.state.directionsRenderer&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:Ut,eventMap:Ft,prevProps:t,nextProps:this.props,instance:this.state.directionsRenderer}))}componentWillUnmount(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),u(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))}render(){return r.createElement(r.Fragment,null)}}Vt.contextType=a,r.PureComponent;const qt={onPlacesChanged:"places_changed"},Gt={bounds(t,e){t.setBounds(e)}};class Zt extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=r.createRef(),this.state={searchBox:null},this.setSearchBoxCallback=()=>{null!==this.state.searchBox&&this.props.onLoad&&this.props.onLoad(this.state.searchBox)}}componentDidMount(){if(i(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places),null!==this.containerElement&&null!==this.containerElement.current){const t=this.containerElement.current.querySelector("input");if(null!==t){const e=new google.maps.places.SearchBox(t,this.props.options);this.registeredEvents=c({updaterMap:Gt,eventMap:qt,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{searchBox:e}}),this.setSearchBoxCallback)}}}componentDidUpdate(t){null!==this.state.searchBox&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:Gt,eventMap:qt,prevProps:t,nextProps:this.props,instance:this.state.searchBox}))}componentWillUnmount(){null!==this.state.searchBox&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),u(this.registeredEvents))}render(){return r.createElement("div",{ref:this.containerElement},r.Children.only(this.props.children))}}Zt.contextType=a;const Ht={onPlaceChanged:"place_changed"},$t={bounds(t,e){t.setBounds(e)},restrictions(t,e){t.setComponentRestrictions(e)},fields(t,e){t.setFields(e)},options(t,e){t.setOptions(e)},types(t,e){t.setTypes(e)}};class Yt extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=r.createRef(),this.state={autocomplete:null},this.setAutocompleteCallback=()=>{null!==this.state.autocomplete&&this.props.onLoad&&this.props.onLoad(this.state.autocomplete)}}componentDidMount(){i(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places);const t=this.containerElement.current.querySelector("input");if(t){const e=new google.maps.places.Autocomplete(t,this.props.options);this.registeredEvents=c({updaterMap:$t,eventMap:Ht,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{autocomplete:e}}),this.setAutocompleteCallback)}}componentDidUpdate(t){u(this.registeredEvents),this.registeredEvents=c({updaterMap:$t,eventMap:Ht,prevProps:t,nextProps:this.props,instance:this.state.autocomplete})}componentWillUnmount(){null!==this.state.autocomplete&&u(this.registeredEvents)}render(){return r.createElement("div",{ref:this.containerElement,className:this.props.className||""},r.Children.only(this.props.children))}}Yt.contextType=a},17374:function(t,e,n){var r;!function(o){"use strict";var i,a=1e9,s={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},u=!0,c="[DecimalError] ",l=c+"Invalid argument: ",f=c+"Exponent out of range: ",p=Math.floor,h=Math.pow,d=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,g=1e7,y=p(1286742750677284.5),v={};function m(t,e){var n,r,o,i,a,s,c,l,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),u?P(e,p):e;if(c=t.d,l=e.d,a=t.e,o=e.e,c=c.slice(),i=a-o){for(i<0?(r=c,i=-i,s=l.length):(r=l,o=a,s=c.length),i>(s=(a=Math.ceil(p/7))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=c.length)-(i=l.length)<0&&(i=s,r=l,l=c,c=r),n=0;i;)n=(c[--i]=c[i]+l[i]+n)/g|0,c[i]%=g;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return e.d=c,e.e=o,u?P(e,p):e}function b(t,e,n){if(t!==~~t||t<e||t>n)throw Error(l+t)}function x(t){var e,n,r,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;e<o;e++)(n=7-(r=t[e]+"").length)&&(i+=E(n)),i+=r;(n=7-(r=(a=t[e])+"").length)&&(i+=E(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}v.absoluteValue=v.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},v.comparedTo=v.cmp=function(t){var e,n,r,o,i=this;if(t=new i.constructor(t),i.s!==t.s)return i.s||-t.s;if(i.e!==t.e)return i.e>t.e^i.s<0?1:-1;for(e=0,n=(r=i.d.length)<(o=t.d.length)?r:o;e<n;++e)if(i.d[e]!==t.d[e])return i.d[e]>t.d[e]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},v.decimalPlaces=v.dp=function(){var t=this,e=t.d.length-1,n=7*(e-t.e);if(e=t.d[e])for(;e%10==0;e/=10)n--;return n<0?0:n},v.dividedBy=v.div=function(t){return O(this,new this.constructor(t))},v.dividedToIntegerBy=v.idiv=function(t){var e=this.constructor;return P(O(this,new e(t),0,1),e.precision)},v.equals=v.eq=function(t){return!this.cmp(t)},v.exponent=function(){return S(this)},v.greaterThan=v.gt=function(t){return this.cmp(t)>0},v.greaterThanOrEqualTo=v.gte=function(t){return this.cmp(t)>=0},v.isInteger=v.isint=function(){return this.e>this.d.length-2},v.isNegative=v.isneg=function(){return this.s<0},v.isPositive=v.ispos=function(){return this.s>0},v.isZero=function(){return 0===this.s},v.lessThan=v.lt=function(t){return this.cmp(t)<0},v.lessThanOrEqualTo=v.lte=function(t){return this.cmp(t)<1},v.logarithm=v.log=function(t){var e,n=this,r=n.constructor,o=r.precision,a=o+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(i))throw Error(c+"NaN");if(n.s<1)throw Error(c+(n.s?"NaN":"-Infinity"));return n.eq(i)?new r(0):(u=!1,e=O(k(n,a),k(t,a),a),u=!0,P(e,o))},v.minus=v.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?A(e,t):m(e,(t.s=-t.s,t))},v.modulo=v.mod=function(t){var e,n=this,r=n.constructor,o=r.precision;if(!(t=new r(t)).s)throw Error(c+"NaN");return n.s?(u=!1,e=O(n,t,0,1).times(t),u=!0,n.minus(e)):P(new r(n),o)},v.naturalExponential=v.exp=function(){return w(this)},v.naturalLogarithm=v.ln=function(){return k(this)},v.negated=v.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},v.plus=v.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?m(e,t):A(e,(t.s=-t.s,t))},v.precision=v.sd=function(t){var e,n,r,o=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(l+t);if(e=S(o)+1,n=7*(r=o.d.length-1)+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return t&&e>n?e:n},v.squareRoot=v.sqrt=function(){var t,e,n,r,o,i,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(c+"NaN")}for(t=S(s),u=!1,0==(o=Math.sqrt(+s))||o==1/0?(((e=x(s.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=p((t+1)/2)-(t<0||t%2),r=new l(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):r=new l(o.toString()),o=a=(n=l.precision)+3;;)if(r=(i=r).plus(O(s,i,a+2)).times(.5),x(i.d).slice(0,a)===(e=x(r.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(P(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=e)break;a+=4}return u=!0,P(r,n)},v.times=v.mul=function(t){var e,n,r,o,i,a,s,c,l,f=this,p=f.constructor,h=f.d,d=(t=new p(t)).d;if(!f.s||!t.s)return new p(0);for(t.s*=f.s,n=f.e+t.e,(c=h.length)<(l=d.length)&&(i=h,h=d,d=i,a=c,c=l,l=a),i=[],r=a=c+l;r--;)i.push(0);for(r=l;--r>=0;){for(e=0,o=c+r;o>r;)s=i[o]+d[r]*h[o-r-1]+e,i[o--]=s%g|0,e=s/g|0;i[o]=(i[o]+e)%g|0}for(;!i[--a];)i.pop();return e?++n:i.shift(),t.d=i,t.e=n,u?P(t,p.precision):t},v.toDecimalPlaces=v.todp=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(b(t,0,a),void 0===e?e=r.rounding:b(e,0,8),P(n,t+S(n)+1,e))},v.toExponential=function(t,e){var n,r=this,o=r.constructor;return void 0===t?n=j(r,!0):(b(t,0,a),void 0===e?e=o.rounding:b(e,0,8),n=j(r=P(new o(r),t+1,e),!0,t+1)),n},v.toFixed=function(t,e){var n,r,o=this,i=o.constructor;return void 0===t?j(o):(b(t,0,a),void 0===e?e=i.rounding:b(e,0,8),n=j((r=P(new i(o),t+S(o)+1,e)).abs(),!1,t+S(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},v.toInteger=v.toint=function(){var t=this,e=t.constructor;return P(new e(t),S(t)+1,e.rounding)},v.toNumber=function(){return+this},v.toPower=v.pow=function(t){var e,n,r,o,a,s,l=this,f=l.constructor,h=+(t=new f(t));if(!t.s)return new f(i);if(!(l=new f(l)).s){if(t.s<1)throw Error(c+"Infinity");return l}if(l.eq(i))return l;if(r=f.precision,t.eq(i))return P(l,r);if(s=(e=t.e)>=(n=t.d.length-1),a=l.s,s){if((n=h<0?-h:h)<=9007199254740991){for(o=new f(i),e=Math.ceil(r/7+4),u=!1;n%2&&T((o=o.times(l)).d,e),0!==(n=p(n/2));)T((l=l.times(l)).d,e);return u=!0,t.s<0?new f(i).div(o):P(o,r)}}else if(a<0)throw Error(c+"NaN");return a=a<0&&1&t.d[Math.max(e,n)]?-1:1,l.s=1,u=!1,o=t.times(k(l,r+12)),u=!0,(o=w(o)).s=a,o},v.toPrecision=function(t,e){var n,r,o=this,i=o.constructor;return void 0===t?r=j(o,(n=S(o))<=i.toExpNeg||n>=i.toExpPos):(b(t,1,a),void 0===e?e=i.rounding:b(e,0,8),r=j(o=P(new i(o),t,e),t<=(n=S(o))||n<=i.toExpNeg,t)),r},v.toSignificantDigits=v.tosd=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(b(t,1,a),void 0===e?e=n.rounding:b(e,0,8)),P(new n(this),t,e)},v.toString=v.valueOf=v.val=v.toJSON=function(){var t=this,e=S(t),n=t.constructor;return j(t,e<=n.toExpNeg||e>=n.toExpPos)};var O=function(){function t(t,e){var n,r=0,o=t.length;for(t=t.slice();o--;)n=t[o]*e+r,t[o]=n%g|0,r=n/g|0;return r&&t.unshift(r),t}function e(t,e,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function n(t,e,n){for(var r=0;n--;)t[n]-=r,r=t[n]<e[n]?1:0,t[n]=r*g+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(r,o,i,a){var s,u,l,f,p,h,d,y,v,m,b,x,O,w,M,E,k,C,A=r.constructor,j=r.s==o.s?1:-1,T=r.d,_=o.d;if(!r.s)return new A(r);if(!o.s)throw Error(c+"Division by zero");for(u=r.e-o.e,k=_.length,M=T.length,y=(d=new A(j)).d=[],l=0;_[l]==(T[l]||0);)++l;if(_[l]>(T[l]||0)&&--u,(x=null==i?i=A.precision:a?i+(S(r)-S(o))+1:i)<0)return new A(0);if(x=x/7+2|0,l=0,1==k)for(f=0,_=_[0],x++;(l<M||f)&&x--;l++)O=f*g+(T[l]||0),y[l]=O/_|0,f=O%_|0;else{for((f=g/(_[0]+1)|0)>1&&(_=t(_,f),T=t(T,f),k=_.length,M=T.length),w=k,m=(v=T.slice(0,k)).length;m<k;)v[m++]=0;(C=_.slice()).unshift(0),E=_[0],_[1]>=g/2&&++E;do{f=0,(s=e(_,v,k,m))<0?(b=v[0],k!=m&&(b=b*g+(v[1]||0)),(f=b/E|0)>1?(f>=g&&(f=g-1),1==(s=e(p=t(_,f),v,h=p.length,m=v.length))&&(f--,n(p,k<h?C:_,h))):(0==f&&(s=f=1),p=_.slice()),(h=p.length)<m&&p.unshift(0),n(v,p,m),-1==s&&(s=e(_,v,k,m=v.length))<1&&(f++,n(v,k<m?C:_,m)),m=v.length):0===s&&(f++,v=[0]),y[l++]=f,s&&v[0]?v[m++]=T[w]||0:(v=[T[w]],m=1)}while((w++<M||void 0!==v[0])&&x--)}return y[0]||y.shift(),d.e=u,P(d,a?i+S(d)+1:i)}}();function w(t,e){var n,r,o,a,s,c=0,l=0,p=t.constructor,d=p.precision;if(S(t)>16)throw Error(f+S(t));if(!t.s)return new p(i);for(null==e?(u=!1,s=d):s=e,a=new p(.03125);t.abs().gte(.1);)t=t.times(a),l+=5;for(s+=Math.log(h(2,l))/Math.LN10*2+5|0,n=r=o=new p(i),p.precision=s;;){if(r=P(r.times(t),s),n=n.times(++c),x((a=o.plus(O(r,n,s))).d).slice(0,s)===x(o.d).slice(0,s)){for(;l--;)o=P(o.times(o),s);return p.precision=d,null==e?(u=!0,P(o,d)):o}o=a}}function S(t){for(var e=7*t.e,n=t.d[0];n>=10;n/=10)e++;return e}function M(t,e,n){if(e>t.LN10.sd())throw u=!0,n&&(t.precision=n),Error(c+"LN10 precision limit exceeded");return P(new t(t.LN10),e)}function E(t){for(var e="";t--;)e+="0";return e}function k(t,e){var n,r,o,a,s,l,f,p,h,d=1,g=t,y=g.d,v=g.constructor,m=v.precision;if(g.s<1)throw Error(c+(g.s?"NaN":"-Infinity"));if(g.eq(i))return new v(0);if(null==e?(u=!1,p=m):p=e,g.eq(10))return null==e&&(u=!0),M(v,p);if(p+=10,v.precision=p,r=(n=x(y)).charAt(0),a=S(g),!(Math.abs(a)<15e14))return f=M(v,p+2,m).times(a+""),g=k(new v(r+"."+n.slice(1)),p-10).plus(f),v.precision=m,null==e?(u=!0,P(g,m)):g;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=x((g=g.times(t)).d)).charAt(0),d++;for(a=S(g),r>1?(g=new v("0."+n),a++):g=new v(r+"."+n.slice(1)),l=s=g=O(g.minus(i),g.plus(i),p),h=P(g.times(g),p),o=3;;){if(s=P(s.times(h),p),x((f=l.plus(O(s,new v(o),p))).d).slice(0,p)===x(l.d).slice(0,p))return l=l.times(2),0!==a&&(l=l.plus(M(v,p+2,m).times(a+""))),l=O(l,new v(d),p),v.precision=m,null==e?(u=!0,P(l,m)):l;l=f,o+=2}}function C(t,e){var n,r,o;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);)++r;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(r,o)){if(o-=r,n=n-r-1,t.e=p(n/7),t.d=[],r=(n+1)%7,n<0&&(r+=7),r<o){for(r&&t.d.push(+e.slice(0,r)),o-=7;r<o;)t.d.push(+e.slice(r,r+=7));r=7-(e=e.slice(r)).length}else r-=o;for(;r--;)e+="0";if(t.d.push(+e),u&&(t.e>y||t.e<-y))throw Error(f+n)}else t.s=0,t.e=0,t.d=[0];return t}function P(t,e,n){var r,o,i,a,s,c,l,d,v=t.d;for(a=1,i=v[0];i>=10;i/=10)a++;if((r=e-a)<0)r+=7,o=e,l=v[d=0];else{if((d=Math.ceil((r+1)/7))>=(i=v.length))return t;for(l=i=v[d],a=1;i>=10;i/=10)a++;o=(r%=7)-7+a}if(void 0!==n&&(s=l/(i=h(10,a-o-1))%10|0,c=e<0||void 0!==v[d+1]||l%i,c=n<4?(s||c)&&(0==n||n==(t.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?o>0?l/h(10,a-o):0:v[d-1])%10&1||n==(t.s<0?8:7))),e<1||!v[0])return c?(i=S(t),v.length=1,e=e-i-1,v[0]=h(10,(7-e%7)%7),t.e=p(-e/7)||0):(v.length=1,v[0]=t.e=t.s=0),t;if(0==r?(v.length=d,i=1,d--):(v.length=d+1,i=h(10,7-r),v[d]=o>0?(l/h(10,a-o)%h(10,o)|0)*i:0),c)for(;;){if(0==d){(v[0]+=i)==g&&(v[0]=1,++t.e);break}if(v[d]+=i,v[d]!=g)break;v[d--]=0,i=1}for(r=v.length;0===v[--r];)v.pop();if(u&&(t.e>y||t.e<-y))throw Error(f+S(t));return t}function A(t,e){var n,r,o,i,a,s,c,l,f,p,h=t.constructor,d=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),u?P(e,d):e;if(c=t.d,p=e.d,r=e.e,l=t.e,c=c.slice(),a=l-r){for((f=a<0)?(n=c,a=-a,s=p.length):(n=p,r=l,s=c.length),a>(o=Math.max(Math.ceil(d/7),s)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((f=(o=c.length)<(s=p.length))&&(s=o),o=0;o<s;o++)if(c[o]!=p[o]){f=c[o]<p[o];break}a=0}for(f&&(n=c,c=p,p=n,e.s=-e.s),s=c.length,o=p.length-s;o>0;--o)c[s++]=0;for(o=p.length;o>a;){if(c[--o]<p[o]){for(i=o;i&&0===c[--i];)c[i]=g-1;--c[i],c[o]+=g}c[o]-=p[o]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(e.d=c,e.e=r,u?P(e,d):e):new h(0)}function j(t,e,n){var r,o=S(t),i=x(t.d),a=i.length;return e?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+E(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+E(-o-1)+i,n&&(r=n-a)>0&&(i+=E(r))):o>=a?(i+=E(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+E(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=E(r))),t.s<0?"-"+i:i}function T(t,e){if(t.length>e)return t.length=e,!0}function _(t){if(!t||"object"!=typeof t)throw Error(c+"Object expected");var e,n,r,o=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<o.length;e+=3)if(void 0!==(r=t[n=o[e]])){if(!(p(r)===r&&r>=o[e+1]&&r<=o[e+2]))throw Error(l+n+": "+r);this[n]=r}if(void 0!==(r=t[n="LN10"])){if(r!=Math.LN10)throw Error(l+n+": "+r);this[n]=new this(r)}return this}(s=function t(e){var n,r,o;function i(t){var e=this;if(!(e instanceof i))return new i(t);if(e.constructor=i,t instanceof i)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(l+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):C(e,t.toString())}if("string"!=typeof t)throw Error(l+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!d.test(t))throw Error(l+t);C(e,t)}if(i.prototype=v,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=t,i.config=i.set=_,void 0===e&&(e={}),e)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)e.hasOwnProperty(r=o[n++])||(e[r]=this[r]);return i.config(e),i}(s)).default=s.Decimal=s,i=new s(1),void 0===(r=function(){return s}.call(e,n,e,t))||(t.exports=r)}()},52180:function(t,e,n){var r;!function(o){"use strict";var i,a,s,u=9e15,c=1e9,l="0123456789abcdef",f="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",p="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",h={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-u,maxE:u,crypto:!1},d=!0,g="[DecimalError] ",y=g+"Invalid argument: ",v=g+"Precision limit exceeded",m=g+"crypto unavailable",b=Math.floor,x=Math.pow,O=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,w=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,S=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,M=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,E=1e7,k=f.length-1,C=p.length-1,P={name:"[object Decimal]"};function A(t){var e,n,r,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;e<o;e++)(n=7-(r=t[e]+"").length)&&(i+=W(n)),i+=r;(n=7-(r=(a=t[e])+"").length)&&(i+=W(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}function j(t,e,n){if(t!==~~t||t<e||t>n)throw Error(y+t)}function T(t,e,n,r){var o,i,a,s;for(i=t[0];i>=10;i/=10)--e;return--e<0?(e+=7,o=0):(o=Math.ceil((e+1)/7),e%=7),i=x(10,7-e),s=t[o]%i|0,null==r?e<3?(0==e?s=s/100|0:1==e&&(s=s/10|0),a=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):a=(n<4&&s+1==i||n>3&&s+1==i/2)&&(t[o+1]/i/100|0)==x(10,e-2)-1||(s==i/2||0==s)&&0==(t[o+1]/i/100|0):e<4?(0==e?s=s/1e3|0:1==e?s=s/100|0:2==e&&(s=s/10|0),a=(r||n<4)&&9999==s||!r&&n>3&&4999==s):a=((r||n<4)&&s+1==i||!r&&n>3&&s+1==i/2)&&(t[o+1]/i/1e3|0)==x(10,e-3)-1,a}function _(t,e,n){for(var r,o,i=[0],a=0,s=t.length;a<s;){for(o=i.length;o--;)i[o]*=e;for(i[0]+=l.indexOf(t.charAt(a++)),r=0;r<i.length;r++)i[r]>n-1&&(void 0===i[r+1]&&(i[r+1]=0),i[r+1]+=i[r]/n|0,i[r]%=n)}return i.reverse()}P.absoluteValue=P.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),B(t)},P.ceil=function(){return B(new this.constructor(this),this.e+1,2)},P.comparedTo=P.cmp=function(t){var e,n,r,o,i=this,a=i.d,s=(t=new i.constructor(t)).d,u=i.s,c=t.s;if(!a||!s)return u&&c?u!==c?u:a===s?0:!a^u<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?u:s[0]?-c:0;if(u!==c)return u;if(i.e!==t.e)return i.e>t.e^u<0?1:-1;for(e=0,n=(r=a.length)<(o=s.length)?r:o;e<n;++e)if(a[e]!==s[e])return a[e]>s[e]^u<0?1:-1;return r===o?0:r>o^u<0?1:-1},P.cosine=P.cos=function(){var t,e,n=this,r=n.constructor;return n.d?n.d[0]?(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(t,e){var n,r,o=e.d.length;o<32?r=(1/X(4,n=Math.ceil(o/3))).toString():(n=16,r="2.3283064365386962890625e-10"),t.precision+=n,e=Y(t,1,e.times(r),new t(1));for(var i=n;i--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return t.precision-=n,e}(r,K(r,n)),r.precision=t,r.rounding=e,B(2==s||3==s?n.neg():n,t,e,!0)):new r(1):new r(NaN)},P.cubeRoot=P.cbrt=function(){var t,e,n,r,o,i,a,s,u,c,l=this,f=l.constructor;if(!l.isFinite()||l.isZero())return new f(l);for(d=!1,(i=l.s*x(l.s*l,1/3))&&Math.abs(i)!=1/0?r=new f(i.toString()):(n=A(l.d),(i=((t=l.e)-n.length+1)%3)&&(n+=1==i||-2==i?"0":"00"),i=x(n,1/3),t=b((t+1)/3)-(t%3==(t<0?-1:2)),(r=new f(n=i==1/0?"5e"+t:(n=i.toExponential()).slice(0,n.indexOf("e")+1)+t)).s=l.s),a=(t=f.precision)+3;;)if(c=(u=(s=r).times(s).times(s)).plus(l),r=D(c.plus(l).times(s),c.plus(u),a+2,1),A(s.d).slice(0,a)===(n=A(r.d)).slice(0,a)){if("9999"!=(n=n.slice(a-3,a+1))&&(o||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(B(r,t+1,1),e=!r.times(r).times(r).eq(l));break}if(!o&&(B(s,t+1,0),s.times(s).times(s).eq(l))){r=s;break}a+=4,o=1}return d=!0,B(r,t,f.rounding,e)},P.decimalPlaces=P.dp=function(){var t,e=this.d,n=NaN;if(e){if(n=7*((t=e.length-1)-b(this.e/7)),t=e[t])for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},P.dividedBy=P.div=function(t){return D(this,new this.constructor(t))},P.dividedToIntegerBy=P.divToInt=function(t){var e=this.constructor;return B(D(this,new e(t),0,1,1),e.precision,e.rounding)},P.equals=P.eq=function(t){return 0===this.cmp(t)},P.floor=function(){return B(new this.constructor(this),this.e+1,3)},P.greaterThan=P.gt=function(t){return this.cmp(t)>0},P.greaterThanOrEqualTo=P.gte=function(t){var e=this.cmp(t);return 1==e||0===e},P.hyperbolicCosine=P.cosh=function(){var t,e,n,r,o,i=this,a=i.constructor,s=new a(1);if(!i.isFinite())return new a(i.s?1/0:NaN);if(i.isZero())return s;n=a.precision,r=a.rounding,a.precision=n+Math.max(i.e,i.sd())+4,a.rounding=1,(o=i.d.length)<32?e=(1/X(4,t=Math.ceil(o/3))).toString():(t=16,e="2.3283064365386962890625e-10"),i=Y(a,1,i.times(e),new a(1),!0);for(var u,c=t,l=new a(8);c--;)u=i.times(i),i=s.minus(u.times(l.minus(u.times(l))));return B(i,a.precision=n,a.rounding=r,!0)},P.hyperbolicSine=P.sinh=function(){var t,e,n,r,o=this,i=o.constructor;if(!o.isFinite()||o.isZero())return new i(o);if(e=i.precision,n=i.rounding,i.precision=e+Math.max(o.e,o.sd())+4,i.rounding=1,(r=o.d.length)<3)o=Y(i,2,o,o,!0);else{t=(t=1.4*Math.sqrt(r))>16?16:0|t,o=Y(i,2,o=o.times(1/X(5,t)),o,!0);for(var a,s=new i(5),u=new i(16),c=new i(20);t--;)a=o.times(o),o=o.times(s.plus(a.times(u.times(a).plus(c))))}return i.precision=e,i.rounding=n,B(o,e,n,!0)},P.hyperbolicTangent=P.tanh=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+7,r.rounding=1,D(n.sinh(),n.cosh(),r.precision=t,r.rounding=e)):new r(n.s)},P.inverseCosine=P.acos=function(){var t,e=this,n=e.constructor,r=e.abs().cmp(1),o=n.precision,i=n.rounding;return-1!==r?0===r?e.isNeg()?R(n,o,i):new n(0):new n(NaN):e.isZero()?R(n,o+4,i).times(.5):(n.precision=o+6,n.rounding=1,e=e.asin(),t=R(n,o+4,i).times(.5),n.precision=o,n.rounding=i,t.minus(e))},P.inverseHyperbolicCosine=P.acosh=function(){var t,e,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(t=r.precision,e=r.rounding,r.precision=t+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,d=!1,n=n.times(n).minus(1).sqrt().plus(n),d=!0,r.precision=t,r.rounding=e,n.ln()):new r(n)},P.inverseHyperbolicSine=P.asinh=function(){var t,e,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,d=!1,n=n.times(n).plus(1).sqrt().plus(n),d=!0,r.precision=t,r.rounding=e,n.ln())},P.inverseHyperbolicTangent=P.atanh=function(){var t,e,n,r,o=this,i=o.constructor;return o.isFinite()?o.e>=0?new i(o.abs().eq(1)?o.s/0:o.isZero()?o:NaN):(t=i.precision,e=i.rounding,r=o.sd(),Math.max(r,t)<2*-o.e-1?B(new i(o),t,e,!0):(i.precision=n=r-o.e,o=D(o.plus(1),new i(1).minus(o),n+t,1),i.precision=t+4,i.rounding=1,o=o.ln(),i.precision=t,i.rounding=e,o.times(.5))):new i(NaN)},P.inverseSine=P.asin=function(){var t,e,n,r,o=this,i=o.constructor;return o.isZero()?new i(o):(e=o.abs().cmp(1),n=i.precision,r=i.rounding,-1!==e?0===e?((t=R(i,n+4,r).times(.5)).s=o.s,t):new i(NaN):(i.precision=n+6,i.rounding=1,o=o.div(new i(1).minus(o.times(o)).sqrt().plus(1)).atan(),i.precision=n,i.rounding=r,o.times(2)))},P.inverseTangent=P.atan=function(){var t,e,n,r,o,i,a,s,u,c=this,l=c.constructor,f=l.precision,p=l.rounding;if(c.isFinite()){if(c.isZero())return new l(c);if(c.abs().eq(1)&&f+4<=C)return(a=R(l,f+4,p).times(.25)).s=c.s,a}else{if(!c.s)return new l(NaN);if(f+4<=C)return(a=R(l,f+4,p).times(.5)).s=c.s,a}for(l.precision=s=f+10,l.rounding=1,t=n=Math.min(28,s/7+2|0);t;--t)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(d=!1,e=Math.ceil(s/7),r=1,u=c.times(c),a=new l(c),o=c;-1!==t;)if(o=o.times(u),i=a.minus(o.div(r+=2)),o=o.times(u),void 0!==(a=i.plus(o.div(r+=2))).d[e])for(t=e;a.d[t]===i.d[t]&&t--;);return n&&(a=a.times(2<<n-1)),d=!0,B(a,l.precision=f,l.rounding=p,!0)},P.isFinite=function(){return!!this.d},P.isInteger=P.isInt=function(){return!!this.d&&b(this.e/7)>this.d.length-2},P.isNaN=function(){return!this.s},P.isNegative=P.isNeg=function(){return this.s<0},P.isPositive=P.isPos=function(){return this.s>0},P.isZero=function(){return!!this.d&&0===this.d[0]},P.lessThan=P.lt=function(t){return this.cmp(t)<0},P.lessThanOrEqualTo=P.lte=function(t){return this.cmp(t)<1},P.logarithm=P.log=function(t){var e,n,r,o,i,a,s,u,c=this,l=c.constructor,f=l.precision,p=l.rounding;if(null==t)t=new l(10),e=!0;else{if(n=(t=new l(t)).d,t.s<0||!n||!n[0]||t.eq(1))return new l(NaN);e=t.eq(10)}if(n=c.d,c.s<0||!n||!n[0]||c.eq(1))return new l(n&&!n[0]?-1/0:1!=c.s?NaN:n?0:1/0);if(e)if(n.length>1)i=!0;else{for(o=n[0];o%10==0;)o/=10;i=1!==o}if(d=!1,a=G(c,s=f+5),r=e?z(l,s+10):G(t,s),T((u=D(a,r,s,1)).d,o=f,p))do{if(a=G(c,s+=10),r=e?z(l,s+10):G(t,s),u=D(a,r,s,1),!i){+A(u.d).slice(o+1,o+15)+1==1e14&&(u=B(u,f+1,0));break}}while(T(u.d,o+=10,p));return d=!0,B(u,f,p)},P.minus=P.sub=function(t){var e,n,r,o,i,a,s,u,c,l,f,p,h=this,g=h.constructor;if(t=new g(t),!h.d||!t.d)return h.s&&t.s?h.d?t.s=-t.s:t=new g(t.d||h.s!==t.s?h:NaN):t=new g(NaN),t;if(h.s!=t.s)return t.s=-t.s,h.plus(t);if(c=h.d,p=t.d,s=g.precision,u=g.rounding,!c[0]||!p[0]){if(p[0])t.s=-t.s;else{if(!c[0])return new g(3===u?-0:0);t=new g(h)}return d?B(t,s,u):t}if(n=b(t.e/7),l=b(h.e/7),c=c.slice(),i=l-n){for((f=i<0)?(e=c,i=-i,a=p.length):(e=p,n=l,a=c.length),i>(r=Math.max(Math.ceil(s/7),a)+2)&&(i=r,e.length=1),e.reverse(),r=i;r--;)e.push(0);e.reverse()}else{for((f=(r=c.length)<(a=p.length))&&(a=r),r=0;r<a;r++)if(c[r]!=p[r]){f=c[r]<p[r];break}i=0}for(f&&(e=c,c=p,p=e,t.s=-t.s),a=c.length,r=p.length-a;r>0;--r)c[a++]=0;for(r=p.length;r>i;){if(c[--r]<p[r]){for(o=r;o&&0===c[--o];)c[o]=E-1;--c[o],c[r]+=E}c[r]-=p[r]}for(;0===c[--a];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(t.d=c,t.e=L(c,n),d?B(t,s,u):t):new g(3===u?-0:0)},P.modulo=P.mod=function(t){var e,n=this,r=n.constructor;return t=new r(t),!n.d||!t.s||t.d&&!t.d[0]?new r(NaN):!t.d||n.d&&!n.d[0]?B(new r(n),r.precision,r.rounding):(d=!1,9==r.modulo?(e=D(n,t.abs(),0,3,1)).s*=t.s:e=D(n,t,0,r.modulo,1),e=e.times(t),d=!0,n.minus(e))},P.naturalExponential=P.exp=function(){return q(this)},P.naturalLogarithm=P.ln=function(){return G(this)},P.negated=P.neg=function(){var t=new this.constructor(this);return t.s=-t.s,B(t)},P.plus=P.add=function(t){var e,n,r,o,i,a,s,u,c,l,f=this,p=f.constructor;if(t=new p(t),!f.d||!t.d)return f.s&&t.s?f.d||(t=new p(t.d||f.s===t.s?f:NaN)):t=new p(NaN),t;if(f.s!=t.s)return t.s=-t.s,f.minus(t);if(c=f.d,l=t.d,s=p.precision,u=p.rounding,!c[0]||!l[0])return l[0]||(t=new p(f)),d?B(t,s,u):t;if(i=b(f.e/7),r=b(t.e/7),c=c.slice(),o=i-r){for(o<0?(n=c,o=-o,a=l.length):(n=l,r=i,a=c.length),o>(a=(i=Math.ceil(s/7))>a?i+1:a+1)&&(o=a,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((a=c.length)-(o=l.length)<0&&(o=a,n=l,l=c,c=n),e=0;o;)e=(c[--o]=c[o]+l[o]+e)/E|0,c[o]%=E;for(e&&(c.unshift(e),++r),a=c.length;0==c[--a];)c.pop();return t.d=c,t.e=L(c,r),d?B(t,s,u):t},P.precision=P.sd=function(t){var e,n=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(y+t);return n.d?(e=N(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},P.round=function(){var t=this,e=t.constructor;return B(new e(t),t.e+1,e.rounding)},P.sine=P.sin=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(t,e){var n,r=e.d.length;if(r<3)return Y(t,2,e,e);n=(n=1.4*Math.sqrt(r))>16?16:0|n,e=Y(t,2,e=e.times(1/X(5,n)),e);for(var o,i=new t(5),a=new t(16),s=new t(20);n--;)o=e.times(e),e=e.times(i.plus(o.times(a.times(o).minus(s))));return e}(r,K(r,n)),r.precision=t,r.rounding=e,B(s>2?n.neg():n,t,e,!0)):new r(NaN)},P.squareRoot=P.sqrt=function(){var t,e,n,r,o,i,a=this,s=a.d,u=a.e,c=a.s,l=a.constructor;if(1!==c||!s||!s[0])return new l(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);for(d=!1,0==(c=Math.sqrt(+a))||c==1/0?(((e=A(s)).length+u)%2==0&&(e+="0"),c=Math.sqrt(e),u=b((u+1)/2)-(u<0||u%2),r=new l(e=c==1/0?"5e"+u:(e=c.toExponential()).slice(0,e.indexOf("e")+1)+u)):r=new l(c.toString()),n=(u=l.precision)+3;;)if(r=(i=r).plus(D(a,i,n+2,1)).times(.5),A(i.d).slice(0,n)===(e=A(r.d)).slice(0,n)){if("9999"!=(e=e.slice(n-3,n+1))&&(o||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(B(r,u+1,1),t=!r.times(r).eq(a));break}if(!o&&(B(i,u+1,0),i.times(i).eq(a))){r=i;break}n+=4,o=1}return d=!0,B(r,u,l.rounding,t)},P.tangent=P.tan=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+10,r.rounding=1,(n=n.sin()).s=1,n=D(n,new r(1).minus(n.times(n)).sqrt(),t+10,0),r.precision=t,r.rounding=e,B(2==s||4==s?n.neg():n,t,e,!0)):new r(NaN)},P.times=P.mul=function(t){var e,n,r,o,i,a,s,u,c,l=this,f=l.constructor,p=l.d,h=(t=new f(t)).d;if(t.s*=l.s,!(p&&p[0]&&h&&h[0]))return new f(!t.s||p&&!p[0]&&!h||h&&!h[0]&&!p?NaN:p&&h?0*t.s:t.s/0);for(n=b(l.e/7)+b(t.e/7),(u=p.length)<(c=h.length)&&(i=p,p=h,h=i,a=u,u=c,c=a),i=[],r=a=u+c;r--;)i.push(0);for(r=c;--r>=0;){for(e=0,o=u+r;o>r;)s=i[o]+h[r]*p[o-r-1]+e,i[o--]=s%E|0,e=s/E|0;i[o]=(i[o]+e)%E|0}for(;!i[--a];)i.pop();return e?++n:i.shift(),t.d=i,t.e=L(i,n),d?B(t,f.precision,f.rounding):t},P.toBinary=function(t,e){return Q(this,2,t,e)},P.toDecimalPlaces=P.toDP=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(j(t,0,c),void 0===e?e=r.rounding:j(e,0,8),B(n,t+n.e+1,e))},P.toExponential=function(t,e){var n,r=this,o=r.constructor;return void 0===t?n=I(r,!0):(j(t,0,c),void 0===e?e=o.rounding:j(e,0,8),n=I(r=B(new o(r),t+1,e),!0,t+1)),r.isNeg()&&!r.isZero()?"-"+n:n},P.toFixed=function(t,e){var n,r,o=this,i=o.constructor;return void 0===t?n=I(o):(j(t,0,c),void 0===e?e=i.rounding:j(e,0,8),n=I(r=B(new i(o),t+o.e+1,e),!1,t+r.e+1)),o.isNeg()&&!o.isZero()?"-"+n:n},P.toFraction=function(t){var e,n,r,o,i,a,s,u,c,l,f,p,h=this,g=h.d,v=h.constructor;if(!g)return new v(h);if(c=n=new v(1),r=u=new v(0),a=(i=(e=new v(r)).e=N(g)-h.e-1)%7,e.d[0]=x(10,a<0?7+a:a),null==t)t=i>0?e:c;else{if(!(s=new v(t)).isInt()||s.lt(c))throw Error(y+s);t=s.gt(e)?i>0?e:c:s}for(d=!1,s=new v(A(g)),l=v.precision,v.precision=i=7*g.length*2;f=D(s,e,0,1,1),1!=(o=n.plus(f.times(r))).cmp(t);)n=r,r=o,o=c,c=u.plus(f.times(o)),u=o,o=e,e=s.minus(f.times(o)),s=o;return o=D(t.minus(n),r,0,1,1),u=u.plus(o.times(c)),n=n.plus(o.times(r)),u.s=c.s=h.s,p=D(c,r,i,1).minus(h).abs().cmp(D(u,n,i,1).minus(h).abs())<1?[c,r]:[u,n],v.precision=l,d=!0,p},P.toHexadecimal=P.toHex=function(t,e){return Q(this,16,t,e)},P.toNearest=function(t,e){var n=this,r=n.constructor;if(n=new r(n),null==t){if(!n.d)return n;t=new r(1),e=r.rounding}else{if(t=new r(t),void 0===e?e=r.rounding:j(e,0,8),!n.d)return t.s?n:t;if(!t.d)return t.s&&(t.s=n.s),t}return t.d[0]?(d=!1,n=D(n,t,0,e,1).times(t),d=!0,B(n)):(t.s=n.s,n=t),n},P.toNumber=function(){return+this},P.toOctal=function(t,e){return Q(this,8,t,e)},P.toPower=P.pow=function(t){var e,n,r,o,i,a,s=this,u=s.constructor,c=+(t=new u(t));if(!(s.d&&t.d&&s.d[0]&&t.d[0]))return new u(x(+s,c));if((s=new u(s)).eq(1))return s;if(r=u.precision,i=u.rounding,t.eq(1))return B(s,r,i);if((e=b(t.e/7))>=t.d.length-1&&(n=c<0?-c:c)<=9007199254740991)return o=F(u,s,n,r),t.s<0?new u(1).div(o):B(o,r,i);if((a=s.s)<0){if(e<t.d.length-1)return new u(NaN);if(0==(1&t.d[e])&&(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(e=0!=(n=x(+s,c))&&isFinite(n)?new u(n+"").e:b(c*(Math.log("0."+A(s.d))/Math.LN10+s.e+1)))>u.maxE+1||e<u.minE-1?new u(e>0?a/0:0):(d=!1,u.rounding=s.s=1,n=Math.min(12,(e+"").length),(o=q(t.times(G(s,r+n)),r)).d&&T((o=B(o,r+5,1)).d,r,i)&&(e=r+10,+A((o=B(q(t.times(G(s,e+n)),e),e+5,1)).d).slice(r+1,r+15)+1==1e14&&(o=B(o,r+1,0))),o.s=a,d=!0,u.rounding=i,B(o,r,i))},P.toPrecision=function(t,e){var n,r=this,o=r.constructor;return void 0===t?n=I(r,r.e<=o.toExpNeg||r.e>=o.toExpPos):(j(t,1,c),void 0===e?e=o.rounding:j(e,0,8),n=I(r=B(new o(r),t,e),t<=r.e||r.e<=o.toExpNeg,t)),r.isNeg()&&!r.isZero()?"-"+n:n},P.toSignificantDigits=P.toSD=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(j(t,1,c),void 0===e?e=n.rounding:j(e,0,8)),B(new n(this),t,e)},P.toString=function(){var t=this,e=t.constructor,n=I(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n},P.truncated=P.trunc=function(){return B(new this.constructor(this),this.e+1,1)},P.valueOf=P.toJSON=function(){var t=this,e=t.constructor,n=I(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};var D=function(){function t(t,e,n){var r,o=0,i=t.length;for(t=t.slice();i--;)r=t[i]*e+o,t[i]=r%n|0,o=r/n|0;return o&&t.unshift(o),t}function e(t,e,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function n(t,e,n,r){for(var o=0;n--;)t[n]-=o,o=t[n]<e[n]?1:0,t[n]=o*r+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(r,o,i,s,u,c){var l,f,p,h,d,g,y,v,m,x,O,w,S,M,k,C,P,A,j,T,_=r.constructor,D=r.s==o.s?1:-1,I=r.d,L=o.d;if(!(I&&I[0]&&L&&L[0]))return new _(r.s&&o.s&&(I?!L||I[0]!=L[0]:L)?I&&0==I[0]||!L?0*D:D/0:NaN);for(c?(d=1,f=r.e-o.e):(c=E,d=7,f=b(r.e/d)-b(o.e/d)),j=L.length,P=I.length,x=(m=new _(D)).d=[],p=0;L[p]==(I[p]||0);p++);if(L[p]>(I[p]||0)&&f--,null==i?(M=i=_.precision,s=_.rounding):M=u?i+(r.e-o.e)+1:i,M<0)x.push(1),g=!0;else{if(M=M/d+2|0,p=0,1==j){for(h=0,L=L[0],M++;(p<P||h)&&M--;p++)k=h*c+(I[p]||0),x[p]=k/L|0,h=k%L|0;g=h||p<P}else{for((h=c/(L[0]+1)|0)>1&&(L=t(L,h,c),I=t(I,h,c),j=L.length,P=I.length),C=j,w=(O=I.slice(0,j)).length;w<j;)O[w++]=0;(T=L.slice()).unshift(0),A=L[0],L[1]>=c/2&&++A;do{h=0,(l=e(L,O,j,w))<0?(S=O[0],j!=w&&(S=S*c+(O[1]||0)),(h=S/A|0)>1?(h>=c&&(h=c-1),1==(l=e(y=t(L,h,c),O,v=y.length,w=O.length))&&(h--,n(y,j<v?T:L,v,c))):(0==h&&(l=h=1),y=L.slice()),(v=y.length)<w&&y.unshift(0),n(O,y,w,c),-1==l&&(l=e(L,O,j,w=O.length))<1&&(h++,n(O,j<w?T:L,w,c)),w=O.length):0===l&&(h++,O=[0]),x[p++]=h,l&&O[0]?O[w++]=I[C]||0:(O=[I[C]],w=1)}while((C++<P||void 0!==O[0])&&M--);g=void 0!==O[0]}x[0]||x.shift()}if(1==d)m.e=f,a=g;else{for(p=1,h=x[0];h>=10;h/=10)p++;m.e=p+f*d-1,B(m,u?i+m.e+1:i,s,g)}return m}}();function B(t,e,n,r){var o,i,a,s,u,c,l,f,p,h=t.constructor;t:if(null!=e){if(!(f=t.d))return t;for(o=1,s=f[0];s>=10;s/=10)o++;if((i=e-o)<0)i+=7,a=e,u=(l=f[p=0])/x(10,o-a-1)%10|0;else if((p=Math.ceil((i+1)/7))>=(s=f.length)){if(!r)break t;for(;s++<=p;)f.push(0);l=u=0,o=1,a=(i%=7)-7+1}else{for(l=s=f[p],o=1;s>=10;s/=10)o++;u=(a=(i%=7)-7+o)<0?0:l/x(10,o-a-1)%10|0}if(r=r||e<0||void 0!==f[p+1]||(a<0?l:l%x(10,o-a-1)),c=n<4?(u||r)&&(0==n||n==(t.s<0?3:2)):u>5||5==u&&(4==n||r||6==n&&(i>0?a>0?l/x(10,o-a):0:f[p-1])%10&1||n==(t.s<0?8:7)),e<1||!f[0])return f.length=0,c?(e-=t.e+1,f[0]=x(10,(7-e%7)%7),t.e=-e||0):f[0]=t.e=0,t;if(0==i?(f.length=p,s=1,p--):(f.length=p+1,s=x(10,7-i),f[p]=a>0?(l/x(10,o-a)%x(10,a)|0)*s:0),c)for(;;){if(0==p){for(i=1,a=f[0];a>=10;a/=10)i++;for(a=f[0]+=s,s=1;a>=10;a/=10)s++;i!=s&&(t.e++,f[0]==E&&(f[0]=1));break}if(f[p]+=s,f[p]!=E)break;f[p--]=0,s=1}for(i=f.length;0===f[--i];)f.pop()}return d&&(t.e>h.maxE?(t.d=null,t.e=NaN):t.e<h.minE&&(t.e=0,t.d=[0])),t}function I(t,e,n){if(!t.isFinite())return Z(t);var r,o=t.e,i=A(t.d),a=i.length;return e?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+W(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(t.e<0?"e":"e+")+t.e):o<0?(i="0."+W(-o-1)+i,n&&(r=n-a)>0&&(i+=W(r))):o>=a?(i+=W(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+W(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=W(r))),i}function L(t,e){var n=t[0];for(e*=7;n>=10;n/=10)e++;return e}function z(t,e,n){if(e>k)throw d=!0,n&&(t.precision=n),Error(v);return B(new t(f),e,1,!0)}function R(t,e,n){if(e>C)throw Error(v);return B(new t(p),e,n,!0)}function N(t){var e=t.length-1,n=7*e+1;if(e=t[e]){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}function W(t){for(var e="";t--;)e+="0";return e}function F(t,e,n,r){var o,i=new t(1),a=Math.ceil(r/7+4);for(d=!1;;){if(n%2&&J((i=i.times(e)).d,a)&&(o=!0),0===(n=b(n/2))){n=i.d.length-1,o&&0===i.d[n]&&++i.d[n];break}J((e=e.times(e)).d,a)}return d=!0,i}function U(t){return 1&t.d[t.d.length-1]}function V(t,e,n){for(var r,o=new t(e[0]),i=0;++i<e.length;){if(!(r=new t(e[i])).s){o=r;break}o[n](r)&&(o=r)}return o}function q(t,e){var n,r,o,i,a,s,u,c=0,l=0,f=0,p=t.constructor,h=p.rounding,g=p.precision;if(!t.d||!t.d[0]||t.e>17)return new p(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(d=!1,u=g):u=e,s=new p(.03125);t.e>-2;)t=t.times(s),f+=5;for(u+=r=Math.log(x(2,f))/Math.LN10*2+5|0,n=i=a=new p(1),p.precision=u;;){if(i=B(i.times(t),u,1),n=n.times(++l),A((s=a.plus(D(i,n,u,1))).d).slice(0,u)===A(a.d).slice(0,u)){for(o=f;o--;)a=B(a.times(a),u,1);if(null!=e)return p.precision=g,a;if(!(c<3&&T(a.d,u-r,h,c)))return B(a,p.precision=g,h,d=!0);p.precision=u+=10,n=i=s=new p(1),l=0,c++}a=s}}function G(t,e){var n,r,o,i,a,s,u,c,l,f,p,h=1,g=t,y=g.d,v=g.constructor,m=v.rounding,b=v.precision;if(g.s<0||!y||!y[0]||!g.e&&1==y[0]&&1==y.length)return new v(y&&!y[0]?-1/0:1!=g.s?NaN:y?0:g);if(null==e?(d=!1,l=b):l=e,v.precision=l+=10,r=(n=A(y)).charAt(0),!(Math.abs(i=g.e)<15e14))return c=z(v,l+2,b).times(i+""),g=G(new v(r+"."+n.slice(1)),l-10).plus(c),v.precision=b,null==e?B(g,b,m,d=!0):g;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=A((g=g.times(t)).d)).charAt(0),h++;for(i=g.e,r>1?(g=new v("0."+n),i++):g=new v(r+"."+n.slice(1)),f=g,u=a=g=D(g.minus(1),g.plus(1),l,1),p=B(g.times(g),l,1),o=3;;){if(a=B(a.times(p),l,1),A((c=u.plus(D(a,new v(o),l,1))).d).slice(0,l)===A(u.d).slice(0,l)){if(u=u.times(2),0!==i&&(u=u.plus(z(v,l+2,b).times(i+""))),u=D(u,new v(h),l,1),null!=e)return v.precision=b,u;if(!T(u.d,l-10,m,s))return B(u,v.precision=b,m,d=!0);v.precision=l+=10,c=a=g=D(f.minus(1),f.plus(1),l,1),p=B(g.times(g),l,1),o=s=1}u=c,o+=2}}function Z(t){return String(t.s*t.s/0)}function H(t,e){var n,r,o;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);r++);for(o=e.length;48===e.charCodeAt(o-1);--o);if(e=e.slice(r,o)){if(o-=r,t.e=n=n-r-1,t.d=[],r=(n+1)%7,n<0&&(r+=7),r<o){for(r&&t.d.push(+e.slice(0,r)),o-=7;r<o;)t.d.push(+e.slice(r,r+=7));r=7-(e=e.slice(r)).length}else r-=o;for(;r--;)e+="0";t.d.push(+e),d&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function $(t,e){var n,r,o,a,s,u,c,l,f;if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(w.test(e))n=16,e=e.toLowerCase();else if(O.test(e))n=2;else{if(!S.test(e))throw Error(y+e);n=8}for((a=e.search(/p/i))>0?(c=+e.slice(a+1),e=e.substring(2,a)):e=e.slice(2),s=(a=e.indexOf("."))>=0,r=t.constructor,s&&(a=(u=(e=e.replace(".","")).length)-a,o=F(r,new r(n),a,2*a)),a=f=(l=_(e,n,E)).length-1;0===l[a];--a)l.pop();return a<0?new r(0*t.s):(t.e=L(l,f),t.d=l,d=!1,s&&(t=D(t,o,4*u)),c&&(t=t.times(Math.abs(c)<54?x(2,c):i.pow(2,c))),d=!0,t)}function Y(t,e,n,r,o){var i,a,s,u,c=t.precision,l=Math.ceil(c/7);for(d=!1,u=n.times(n),s=new t(r);;){if(a=D(s.times(u),new t(e++*e++),c,1),s=o?r.plus(a):r.minus(a),r=D(a.times(u),new t(e++*e++),c,1),void 0!==(a=s.plus(r)).d[l]){for(i=l;a.d[i]===s.d[i]&&i--;);if(-1==i)break}i=s,s=r,r=a,a=i}return d=!0,a.d.length=l+1,a}function X(t,e){for(var n=t;--e;)n*=t;return n}function K(t,e){var n,r=e.s<0,o=R(t,t.precision,1),i=o.times(.5);if((e=e.abs()).lte(i))return s=r?4:1,e;if((n=e.divToInt(o)).isZero())s=r?3:2;else{if((e=e.minus(n.times(o))).lte(i))return s=U(n)?r?2:3:r?4:1,e;s=U(n)?r?1:4:r?3:2}return e.minus(o).abs()}function Q(t,e,n,r){var o,i,s,u,f,p,h,d,g,y=t.constructor,v=void 0!==n;if(v?(j(n,1,c),void 0===r?r=y.rounding:j(r,0,8)):(n=y.precision,r=y.rounding),t.isFinite()){for(v?(o=2,16==e?n=4*n-3:8==e&&(n=3*n-2)):o=e,(s=(h=I(t)).indexOf("."))>=0&&(h=h.replace(".",""),(g=new y(1)).e=h.length-s,g.d=_(I(g),10,o),g.e=g.d.length),i=f=(d=_(h,10,o)).length;0==d[--f];)d.pop();if(d[0]){if(s<0?i--:((t=new y(t)).d=d,t.e=i,d=(t=D(t,g,n,r,0,o)).d,i=t.e,p=a),s=d[n],u=o/2,p=p||void 0!==d[n+1],p=r<4?(void 0!==s||p)&&(0===r||r===(t.s<0?3:2)):s>u||s===u&&(4===r||p||6===r&&1&d[n-1]||r===(t.s<0?8:7)),d.length=n,p)for(;++d[--n]>o-1;)d[n]=0,n||(++i,d.unshift(1));for(f=d.length;!d[f-1];--f);for(s=0,h="";s<f;s++)h+=l.charAt(d[s]);if(v){if(f>1)if(16==e||8==e){for(s=16==e?4:3,--f;f%s;f++)h+="0";for(f=(d=_(h,o,e)).length;!d[f-1];--f);for(s=1,h="1.";s<f;s++)h+=l.charAt(d[s])}else h=h.charAt(0)+"."+h.slice(1);h=h+(i<0?"p":"p+")+i}else if(i<0){for(;++i;)h="0"+h;h="0."+h}else if(++i>f)for(i-=f;i--;)h+="0";else i<f&&(h=h.slice(0,i)+"."+h.slice(i))}else h=v?"0p+0":"0";h=(16==e?"0x":2==e?"0b":8==e?"0o":"")+h}else h=Z(t);return t.s<0?"-"+h:h}function J(t,e){if(t.length>e)return t.length=e,!0}function tt(t){return new this(t).abs()}function et(t){return new this(t).acos()}function nt(t){return new this(t).acosh()}function rt(t,e){return new this(t).plus(e)}function ot(t){return new this(t).asin()}function it(t){return new this(t).asinh()}function at(t){return new this(t).atan()}function st(t){return new this(t).atanh()}function ut(t,e){t=new this(t),e=new this(e);var n,r=this.precision,o=this.rounding,i=r+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(n=e.s<0?R(this,r,o):new this(0)).s=t.s:!t.d||e.isZero()?(n=R(this,i,1).times(.5)).s=t.s:e.s<0?(this.precision=i,this.rounding=1,n=this.atan(D(t,e,i,1)),e=R(this,i,1),this.precision=r,this.rounding=o,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(D(t,e,i,1)):(n=R(this,i,1).times(e.s>0?.25:.75)).s=t.s:n=new this(NaN),n}function ct(t){return new this(t).cbrt()}function lt(t){return B(t=new this(t),t.e+1,2)}function ft(t){if(!t||"object"!=typeof t)throw Error(g+"Object expected");var e,n,r,o=!0===t.defaults,i=["precision",1,c,"rounding",0,8,"toExpNeg",-u,0,"toExpPos",0,u,"maxE",0,u,"minE",-u,0,"modulo",0,9];for(e=0;e<i.length;e+=3)if(n=i[e],o&&(this[n]=h[n]),void 0!==(r=t[n])){if(!(b(r)===r&&r>=i[e+1]&&r<=i[e+2]))throw Error(y+n+": "+r);this[n]=r}if(n="crypto",o&&(this[n]=h[n]),void 0!==(r=t[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(y+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(m);this[n]=!0}else this[n]=!1}return this}function pt(t){return new this(t).cos()}function ht(t){return new this(t).cosh()}function dt(t,e){return new this(t).div(e)}function gt(t){return new this(t).exp()}function yt(t){return B(t=new this(t),t.e+1,3)}function vt(){var t,e,n=new this(0);for(d=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)n.d&&(n=n.plus(e.times(e)));else{if(e.s)return d=!0,new this(1/0);n=e}return d=!0,n.sqrt()}function mt(t){return t instanceof i||t&&"[object Decimal]"===t.name||!1}function bt(t){return new this(t).ln()}function xt(t,e){return new this(t).log(e)}function Ot(t){return new this(t).log(2)}function wt(t){return new this(t).log(10)}function St(){return V(this,arguments,"lt")}function Mt(){return V(this,arguments,"gt")}function Et(t,e){return new this(t).mod(e)}function kt(t,e){return new this(t).mul(e)}function Ct(t,e){return new this(t).pow(e)}function Pt(t){var e,n,r,o,i=0,a=new this(1),s=[];if(void 0===t?t=this.precision:j(t,1,c),r=Math.ceil(t/7),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(r));i<r;)(o=e[i])>=429e7?e[i]=crypto.getRandomValues(new Uint32Array(1))[0]:s[i++]=o%1e7;else{if(!crypto.randomBytes)throw Error(m);for(e=crypto.randomBytes(r*=4);i<r;)(o=e[i]+(e[i+1]<<8)+(e[i+2]<<16)+((127&e[i+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,i):(s.push(o%1e7),i+=4);i=r/4}else for(;i<r;)s[i++]=1e7*Math.random()|0;for(t%=7,(r=s[--i])&&t&&(o=x(10,7-t),s[i]=(r/o|0)*o);0===s[i];i--)s.pop();if(i<0)n=0,s=[0];else{for(n=-1;0===s[0];n-=7)s.shift();for(r=1,o=s[0];o>=10;o/=10)r++;r<7&&(n-=7-r)}return a.e=n,a.d=s,a}function At(t){return B(t=new this(t),t.e+1,this.rounding)}function jt(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function Tt(t){return new this(t).sin()}function _t(t){return new this(t).sinh()}function Dt(t){return new this(t).sqrt()}function Bt(t,e){return new this(t).sub(e)}function It(t){return new this(t).tan()}function Lt(t){return new this(t).tanh()}function zt(t){return B(t=new this(t),t.e+1,1)}(i=function t(e){var n,r,o;function i(t){var e,n,r,o=this;if(!(o instanceof i))return new i(t);if(o.constructor=i,t instanceof i)return o.s=t.s,void(d?!t.d||t.e>i.maxE?(o.e=NaN,o.d=null):t.e<i.minE?(o.e=0,o.d=[0]):(o.e=t.e,o.d=t.d.slice()):(o.e=t.e,o.d=t.d?t.d.slice():t.d));if("number"==(r=typeof t)){if(0===t)return o.s=1/t<0?-1:1,o.e=0,void(o.d=[0]);if(t<0?(t=-t,o.s=-1):o.s=1,t===~~t&&t<1e7){for(e=0,n=t;n>=10;n/=10)e++;return void(d?e>i.maxE?(o.e=NaN,o.d=null):e<i.minE?(o.e=0,o.d=[0]):(o.e=e,o.d=[t]):(o.e=e,o.d=[t]))}return 0*t!=0?(t||(o.s=NaN),o.e=NaN,void(o.d=null)):H(o,t.toString())}if("string"!==r)throw Error(y+t);return 45===(n=t.charCodeAt(0))?(t=t.slice(1),o.s=-1):(43===n&&(t=t.slice(1)),o.s=1),M.test(t)?H(o,t):$(o,t)}if(i.prototype=P,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.EUCLID=9,i.config=i.set=ft,i.clone=t,i.isDecimal=mt,i.abs=tt,i.acos=et,i.acosh=nt,i.add=rt,i.asin=ot,i.asinh=it,i.atan=at,i.atanh=st,i.atan2=ut,i.cbrt=ct,i.ceil=lt,i.cos=pt,i.cosh=ht,i.div=dt,i.exp=gt,i.floor=yt,i.hypot=vt,i.ln=bt,i.log=xt,i.log10=wt,i.log2=Ot,i.max=St,i.min=Mt,i.mod=Et,i.mul=kt,i.pow=Ct,i.random=Pt,i.round=At,i.sign=jt,i.sin=Tt,i.sinh=_t,i.sqrt=Dt,i.sub=Bt,i.tan=It,i.tanh=Lt,i.trunc=zt,void 0===e&&(e={}),e&&!0!==e.defaults)for(o=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<o.length;)e.hasOwnProperty(r=o[n++])||(e[r]=this[r]);return i.config(e),i}(h)).default=i.Decimal=i,f=new i(f),p=new i(p),void 0===(r=function(){return i}.call(e,n,e,t))||(t.exports=r)}()},15554:t=>{"use strict";var e="%[a-f0-9]{2}",n=new RegExp(e,"gi"),r=new RegExp("("+e+")+","gi");function o(t,e){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;e=e||1;var n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],o(n),o(r))}function i(t){try{return decodeURIComponent(t)}catch(i){for(var e=t.match(n),r=1;r<e.length;r++)e=(t=o(e,r).join("")).match(n);return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(t);n;){try{e[n[0]]=decodeURIComponent(n[0])}catch(t){var o=i(n[0]);o!==n[0]&&(e[n[0]]=o)}n=r.exec(t)}e["%C2"]="�";for(var a=Object.keys(e),s=0;s<a.length;s++){var u=a[s];t=t.replace(new RegExp(u,"g"),e[u])}return t}(t)}}},69448:()=>{var t;"function"!=typeof(t=window.Element.prototype).matches&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(t){for(var e=this,n=(e.document||e.ownerDocument).querySelectorAll(t),r=0;n[r]&&n[r]!==e;)++r;return Boolean(n[r])}),"function"!=typeof t.closest&&(t.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(e.matches(t))return e;e=e.parentNode}return null})},10161:t=>{"use strict";var e=Object.prototype.hasOwnProperty,n="~";function r(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function i(t,e,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||t,a),u=n?n+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var t,r,o=[];if(0===this._eventsCount)return o;for(r in t=this._events)e.call(t,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},s.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},s.prototype.emit=function(t,e,r,o,i,a){var s=n?n+t:t;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,r),!0;case 4:return l.fn.call(l.context,e,r,o),!0;case 5:return l.fn.call(l.context,e,r,o,i),!0;case 6:return l.fn.call(l.context,e,r,o,i,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var p,h=l.length;for(c=0;c<h;c++)switch(l[c].once&&this.removeListener(t,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,e);break;case 3:l[c].fn.call(l[c].context,e,r);break;case 4:l[c].fn.call(l[c].context,e,r,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(t,e,n){return i(this,t,e,n,!1)},s.prototype.once=function(t,e,n){return i(this,t,e,n,!0)},s.prototype.removeListener=function(t,e,r,o){var i=n?n+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==e||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==e||o&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&a(this,e)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,t.exports=s},47677:t=>{"use strict";t.exports=function(t,e,n,r,o,i,a,s){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;(u=new Error(e.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},77603:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}},38333:(t,e,n)=>{var r=n(77832);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},34893:t=>{t.exports=function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}},50217:t=>{t.exports=function(t){return t.split("")}},50080:(t,e,n)=>{var r=n(24303);t.exports=function(t,e){var n=!0;return r(t,(function(t,r,o){return n=!!e(t,r,o)})),n}},2229:(t,e,n)=>{var r=n(4795);t.exports=function(t,e,n){for(var o=-1,i=t.length;++o<i;){var a=t[o],s=e(a);if(null!=s&&(void 0===u?s==s&&!r(s):n(s,u)))var u=s,c=a}return c}},21359:t=>{t.exports=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},84134:t=>{t.exports=function(t,e){return t>e}},77832:(t,e,n)=>{var r=n(21359),o=n(22195),i=n(66024);t.exports=function(t,e,n){return e==e?i(t,e,n):r(t,o,n)}},22195:t=>{t.exports=function(t){return t!=t}},17606:t=>{t.exports=function(t,e){return t<e}},93401:(t,e,n)=>{var r=n(24303),o=n(67878);t.exports=function(t,e){var n=-1,i=o(t)?Array(t.length):[];return r(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}},23813:(t,e,n)=>{var r=n(50343),o=n(13324),i=n(68286),a=n(93401),s=n(27095),u=n(47826),c=n(18477),l=n(23059),f=n(86152);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return f(t)?function(e){return o(e,1===t.length?t[0]:t)}:t})):[l];var p=-1;e=r(e,u(i));var h=a(t,(function(t,n,o){return{criteria:r(e,(function(e){return e(t)})),index:++p,value:t}}));return s(h,(function(t,e){return c(t,e,n)}))}},36060:(t,e,n)=>{var r=n(23059),o=n(43114),i=n(75251);t.exports=function(t,e){return i(o(t,e,r),t+"")}},39872:t=>{t.exports=function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+e];return i}},4751:(t,e,n)=>{var r=n(24303);t.exports=function(t,e){var n;return r(t,(function(t,r,o){return!(n=e(t,r,o))})),!!n}},27095:t=>{t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},67326:(t,e,n)=>{var r=n(45386),o=n(38333),i=n(34893),a=n(59950),s=n(78803),u=n(16909);t.exports=function(t,e,n){var c=-1,l=o,f=t.length,p=!0,h=[],d=h;if(n)p=!1,l=i;else if(f>=200){var g=e?null:s(t);if(g)return u(g);p=!1,l=a,d=new r}else d=e?[]:h;t:for(;++c<f;){var y=t[c],v=e?e(y):y;if(y=n||0!==y?y:0,p&&v==v){for(var m=d.length;m--;)if(d[m]===v)continue t;e&&d.push(v),h.push(y)}else l(d,v,n)||(d!==h&&d.push(v),h.push(y))}return h}},23895:(t,e,n)=>{var r=n(39872);t.exports=function(t,e,n){var o=t.length;return n=void 0===n?o:n,!e&&n>=o?t:r(t,e,n)}},27520:(t,e,n)=>{var r=n(4795);t.exports=function(t,e){if(t!==e){var n=void 0!==t,o=null===t,i=t==t,a=r(t),s=void 0!==e,u=null===e,c=e==e,l=r(e);if(!u&&!l&&!a&&t>e||a&&s&&c&&!u&&!l||o&&s&&c||!n&&c||!i)return 1;if(!o&&!a&&!l&&t<e||l&&n&&i&&!o&&!a||u&&n&&i||!s&&i||!c)return-1}return 0}},18477:(t,e,n)=>{var r=n(27520);t.exports=function(t,e,n){for(var o=-1,i=t.criteria,a=e.criteria,s=i.length,u=n.length;++o<s;){var c=r(i[o],a[o]);if(c)return o>=u?c:c*("desc"==n[o]?-1:1)}return t.index-e.index}},83126:(t,e,n)=>{var r=n(23895),o=n(33880),i=n(8435),a=n(66188);t.exports=function(t){return function(e){e=a(e);var n=o(e)?i(e):void 0,s=n?n[0]:e.charAt(0),u=n?r(n,1).join(""):e.slice(1);return s[t]()+u}}},98776:(t,e,n)=>{var r=n(68286),o=n(67878),i=n(90249);t.exports=function(t){return function(e,n,a){var s=Object(e);if(!o(e)){var u=r(n,3);e=i(e),n=function(t){return u(s[t],t,s)}}var c=t(e,n,a);return c>-1?s[u?e[c]:c]:void 0}}},78803:(t,e,n)=>{var r=n(2143),o=n(34291),i=n(16909),a=r&&1/i(new r([,-0]))[1]==1/0?function(t){return new r(t)}:o;t.exports=a},47353:(t,e,n)=>{var r=n(60241)(Object.getPrototypeOf,Object);t.exports=r},33880:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},66024:t=>{t.exports=function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}},8435:(t,e,n)=>{var r=n(50217),o=n(33880),i=n(63344);t.exports=function(t){return o(t)?i(t):r(t)}},63344:t=>{var e="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",r="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+e+"|"+n+")?",s="[\\ufe0e\\ufe0f]?",u=s+a+"(?:\\u200d(?:"+[r,o,i].join("|")+")"+s+a+")*",c="(?:"+[r+e+"?",e,o,i,"[\\ud800-\\udfff]"].join("|")+")",l=RegExp(n+"(?="+n+")|"+c+u,"g");t.exports=function(t){return t.match(l)||[]}},39794:(t,e,n)=>{var r=n(77603),o=n(50080),i=n(68286),a=n(86152),s=n(82406);t.exports=function(t,e,n){var u=a(t)?r:o;return n&&s(t,e,n)&&(e=void 0),u(t,i(e,3))}},55281:(t,e,n)=>{var r=n(98776)(n(12982));t.exports=r},12982:(t,e,n)=>{var r=n(21359),o=n(68286),i=n(38101),a=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var u=null==n?0:i(n);return u<0&&(u=a(s+u,0)),r(t,o(e,3),u)}},35838:(t,e,n)=>{var r=n(62034),o=n(16760);t.exports=function(t,e){return r(o(t,e),1)}},4335:(t,e,n)=>{var r=n(53366),o=n(15125);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==r(t)}},16951:(t,e,n)=>{var r=n(80537);t.exports=function(t){return r(t)&&t!=+t}},80537:(t,e,n)=>{var r=n(53366),o=n(15125);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==r(t)}},97030:(t,e,n)=>{var r=n(53366),o=n(47353),i=n(15125),a=Function.prototype,s=Object.prototype,u=a.toString,c=s.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=o(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},85505:(t,e,n)=>{var r=n(53366),o=n(86152),i=n(15125);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==r(t)}},16760:(t,e,n)=>{var r=n(50343),o=n(68286),i=n(93401),a=n(86152);t.exports=function(t,e){return(a(t)?r:i)(t,o(e,3))}},34519:(t,e,n)=>{var r=n(13940),o=n(26548),i=n(68286);t.exports=function(t,e){var n={};return e=i(e,3),o(t,(function(t,o,i){r(n,o,e(t,o,i))})),n}},71644:(t,e,n)=>{var r=n(2229),o=n(84134),i=n(23059);t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},71130:(t,e,n)=>{var r=n(2229),o=n(17606),i=n(23059);t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},34291:t=>{t.exports=function(){}},51525:(t,e,n)=>{var r=n(87064),o=n(68286),i=n(4751),a=n(86152),s=n(82406);t.exports=function(t,e,n){var u=a(t)?r:i;return n&&s(t,e,n)&&(e=void 0),u(t,o(e,3))}},829:(t,e,n)=>{var r=n(62034),o=n(23813),i=n(36060),a=n(82406),s=i((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,r(e,1),[])}));t.exports=s},12436:(t,e,n)=>{var r=n(54073),o=n(29259);t.exports=function(t,e,n){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(t,e,{leading:i,maxWait:e,trailing:a})}},38101:(t,e,n)=>{var r=n(5707);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},84636:(t,e,n)=>{var r=n(68286),o=n(67326);t.exports=function(t,e){return t&&t.length?o(t,r(e,2)):[]}},23779:(t,e,n)=>{var r=n(83126)("toUpperCase");t.exports=r},34126:(t,e,n)=>{"use strict";var r=n(57785),o=n(37320),i=n(15554);function a(t,e){return e.encode?e.strict?r(t):encodeURIComponent(t):t}function s(t){return Array.isArray(t)?t.sort():"object"==typeof t?s(Object.keys(t)).sort((function(t,e){return Number(t)-Number(e)})).map((function(e){return t[e]})):t}e.extract=function(t){return t.split("?")[1]||""},e.parse=function(t,e){var n=function(t){var e;switch(t.arrayFormat){case"index":return function(t,n,r){e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===r[t]&&(r[t]={}),r[t][e[1]]=n):r[t]=n};case"bracket":return function(t,n,r){e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==r[t]?r[t]=[].concat(r[t],n):r[t]=[n]:r[t]=n};default:return function(t,e,n){void 0!==n[t]?n[t]=[].concat(n[t],e):n[t]=e}}}(e=o({arrayFormat:"none"},e)),r=Object.create(null);return"string"!=typeof t?r:(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var e=t.replace(/\+/g," ").split("="),o=e.shift(),a=e.length>0?e.join("="):void 0;a=void 0===a?null:i(a),n(i(o),a,r)})),Object.keys(r).sort().reduce((function(t,e){var n=r[e];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?t[e]=s(n):t[e]=n,t}),Object.create(null))):r},e.stringify=function(t,e){var n=function(t){switch(t.arrayFormat){case"index":return function(e,n,r){return null===n?[a(e,t),"[",r,"]"].join(""):[a(e,t),"[",a(r,t),"]=",a(n,t)].join("")};case"bracket":return function(e,n){return null===n?a(e,t):[a(e,t),"[]=",a(n,t)].join("")};default:return function(e,n){return null===n?a(e,t):[a(e,t),"=",a(n,t)].join("")}}}(e=o({encode:!0,strict:!0,arrayFormat:"none"},e));return t?Object.keys(t).sort().map((function(r){var o=t[r];if(void 0===o)return"";if(null===o)return a(r,e);if(Array.isArray(o)){var i=[];return o.slice().forEach((function(t){void 0!==t&&i.push(n(r,t,i.length))})),i.join("&")}return a(r,e)+"="+a(o,e)})).filter((function(t){return t.length>0})).join("&"):""}},51095:function(t,e,n){!function(t,e){"use strict";function n(t){return"string"==typeof t||"number"==typeof t}var r=function(){function t(){this._cache={}}var e=t.prototype;return e.set=function(t,e){this._cache[t]=e},e.get=function(t){return this._cache[t]},e.remove=function(t){delete this._cache[t]},e.clear=function(){this._cache={}},e.isValidCacheKey=function(t){return n(t)},t}(),o=r,i=function(){return!0};function a(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(t,r){if("function"==typeof r)throw new Error('[re-reselect] Second argument "options" must be an object. Please use "options.selectorCreator" to provide a custom selectorCreator.');var a={};"function"==typeof t?Object.assign(a,r,{keySelector:t}):Object.assign(a,t);var s=0,u=n.pop(),c=Array.isArray(n[0])?n[0]:[].concat(n);n.push((function(){return s++,u.apply(void 0,arguments)}));var l=a.cacheObject||new o,f=a.selectorCreator||e.createSelector,p=l.isValidCacheKey||i;a.keySelectorCreator&&(a.keySelector=a.keySelectorCreator({keySelector:a.keySelector,inputSelectors:c,resultFunc:u}));var h=function(){var t=a.keySelector.apply(a,arguments);if(p(t)){var e=l.get(t);return void 0===e&&(e=f.apply(void 0,n),l.set(t,e)),e.apply(void 0,arguments)}console.warn('[re-reselect] Invalid cache key "'+t+'" has been returned by keySelector function.')};return h.getMatchingSelector=function(){var t=a.keySelector.apply(a,arguments);return l.get(t)},h.removeMatchingSelector=function(){var t=a.keySelector.apply(a,arguments);l.remove(t)},h.clearCache=function(){l.clear()},h.resultFunc=u,h.dependencies=c,h.cache=l,h.recomputations=function(){return s},h.resetRecomputations=function(){return s=0},h.keySelector=a.keySelector,h}}function s(t){if(void 0===t)throw new Error('Missing the required property "cacheSize".');if(!Number.isInteger(t)||t<=0)throw new Error('The "cacheSize" property must be a positive integer value.')}var u=function(){function t(t){var e=(void 0===t?{}:t).cacheSize;s(e),this._cache={},this._cacheOrdering=[],this._cacheSize=e}var e=t.prototype;return e.set=function(t,e){if(this._cache[t]=e,this._cacheOrdering.push(t),this._cacheOrdering.length>this._cacheSize){var n=this._cacheOrdering[0];this.remove(n)}},e.get=function(t){return this._cache[t]},e.remove=function(t){var e=this._cacheOrdering.indexOf(t);e>-1&&this._cacheOrdering.splice(e,1),delete this._cache[t]},e.clear=function(){this._cache={},this._cacheOrdering=[]},e.isValidCacheKey=function(t){return n(t)},t}(),c=function(){function t(t){var e=(void 0===t?{}:t).cacheSize;s(e),this._cache={},this._cacheOrdering=[],this._cacheSize=e}var e=t.prototype;return e.set=function(t,e){if(this._cache[t]=e,this._registerCacheHit(t),this._cacheOrdering.length>this._cacheSize){var n=this._cacheOrdering[0];this.remove(n)}},e.get=function(t){return this._registerCacheHit(t),this._cache[t]},e.remove=function(t){this._deleteCacheHit(t),delete this._cache[t]},e.clear=function(){this._cache={},this._cacheOrdering=[]},e._registerCacheHit=function(t){this._deleteCacheHit(t),this._cacheOrdering.push(t)},e._deleteCacheHit=function(t){var e=this._cacheOrdering.indexOf(t);e>-1&&this._cacheOrdering.splice(e,1)},e.isValidCacheKey=function(t){return n(t)},t}(),l=function(){function t(){this._cache=new Map}var e=t.prototype;return e.set=function(t,e){this._cache.set(t,e)},e.get=function(t){return this._cache.get(t)},e.remove=function(t){this._cache.delete(t)},e.clear=function(){this._cache.clear()},t}(),f=function(){function t(t){var e=(void 0===t?{}:t).cacheSize;s(e),this._cache=new Map,this._cacheSize=e}var e=t.prototype;return e.set=function(t,e){if(this._cache.set(t,e),this._cache.size>this._cacheSize){var n=this._cache.keys().next().value;this.remove(n)}},e.get=function(t){return this._cache.get(t)},e.remove=function(t){this._cache.delete(t)},e.clear=function(){this._cache.clear()},t}(),p=function(){function t(t){var e=(void 0===t?{}:t).cacheSize;s(e),this._cache=new Map,this._cacheSize=e}var e=t.prototype;return e.set=function(t,e){if(this._cache.set(t,e),this._cache.size>this._cacheSize){var n=this._cache.keys().next().value;this.remove(n)}},e.get=function(t){var e=this._cache.get(t);return this._cache.has(t)&&(this.remove(t),this._cache.set(t,e)),e},e.remove=function(t){this._cache.delete(t)},e.clear=function(){this._cache.clear()},t}();t.FifoCacheObject=u,t.FifoMapCache=f,t.FifoObjectCache=u,t.FlatCacheObject=r,t.FlatMapCache=l,t.FlatObjectCache=r,t.LruCacheObject=p,t.LruMapCache=p,t.LruObjectCache=c,t.createStructuredCachedSelector=function(t){return e.createStructuredSelector(t,a)},t.default=a,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(97698))},98018:(t,e,n)=>{"use strict";var r=n(71600),o=n(67425);e.ZP=void 0;var i=r(n(53100)),a=r(n(98870)),s=r(n(85297)),u=r(n(68230)),c=r(n(60421)),l=r(n(1147)),f=r(n(26290)),p=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==o(t)&&"function"!=typeof t)return{default:t};var n=x(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=i?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}(n(8156)),h=n(80901),d=r(n(1230)),g=r(n(6496)),y=r(n(95099)),v=r(n(80835)),m=r(n(97339)),b=r(n(78310));function x(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(x=function(t){return t?n:e})(t)}var O=n(34841).deepPurple[500],w=function(t){(0,u.default)(o,t);var e,n,r=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=(0,l.default)(e);if(n){var o=(0,l.default)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,c.default)(this,t)});function o(){var t;(0,i.default)(this,o);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return t=r.call.apply(r,[this].concat(n)),(0,f.default)((0,s.default)(t),"buildUrl",(function(e){var n=t.props.storagePath;return e?e.startsWith("http:")||e.startsWith("https:")?e:n+e.replace(/^\/+/,""):""})),(0,f.default)((0,s.default)(t),"getFallbackAvatar",(function(){var e=t.props,n=e.entityType,r=e.classes,o=e.backgroundColor,i=e.color,a=e.className,s=(0,v.default)(n);return p.default.createElement(h.Avatar,{className:(0,b.default)(a,r.avatar),style:{border:"2px solid ".concat(n.typeColor||O),backgroundColor:o||n.typeColor||O,color:i}},s&&s.charAt(0)||p.default.createElement(g.default,null))})),t}return(0,a.default)(o,[{key:"render",value:function(){var t=this.props,e=t.entityType,n=t.classes,r=t.className,o=e.typeIcon||e.typeImage;return o?p.default.createElement(h.Avatar,{className:(0,b.default)(r,n.avatar),style:{border:"2px solid ".concat(e.typeColor||O),backgroundColor:"#FFFFFF"},src:this.buildUrl(o)},this.getFallbackAvatar()):this.getFallbackAvatar()}}]),o}(p.PureComponent);(0,f.default)(w,"propTypes",{entityType:y.default.shape({typeColor:y.default.string,typeIcon:y.default.string,typeImage:y.default.string,label:y.default.string,uri:y.default.string}),className:y.default.string,classes:y.default.shape({avatar:y.default.string}),storagePath:y.default.string,backgroundColor:y.default.string,color:y.default.string}),(0,f.default)(w,"defaultProps",{storagePath:"https://reltio-images.s3.amazonaws.com/api/",entityType:{},color:"#FFFFFF"});var S=(0,d.default)(m.default)(w);e.ZP=S},97339:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={avatar:{"& img":{display:"flex",flexDirection:"row",alignItems:"center","&::before":{width:"100%"}}}}},33788:(t,e,n)=>{"use strict";var r=n(71600);e.Z=void 0;var o=r(n(77028)),i=r(n(53100)),a=r(n(98870)),s=r(n(68230)),u=r(n(60421)),c=r(n(1147)),l=r(n(8156)),f=r(n(15256)),p=r(n(95099)),h=r(n(78310)),d=n(65021);var g={fill:"none",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,d:"\n M 28.398, 39.519\n c -14.533, 8.989-13.168, 29.294, 6.284, 32.279\n c 20.682, 3.175, 43.752-18.226, 46.132-36.005\n c 2.223-16.609-11.404-21.941-21.06-4.372\n c -4.959, 9.022-7.28, 22.401-1.362, 35.663\n c 9.141, 20.487, 31.309, 15.551, 17.568-8.284\n C 66.9, 43.086, 45.263, 29.087, 28.398, 39.519 z\n "},y=[[0,15817265],[.2,16765723],[.33,10931778],[.4,31425],[.45,31425],[.5,15817265],[.55,31425],[.6,31425],[.67,10931778],[.8,16765723],[1,15817265]],v=null,m=function(t){(0,s.default)(m,t);var e,r,p=(e=m,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,c.default)(e);if(r){var o=(0,c.default)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,u.default)(this,t)});function m(){return(0,i.default)(this,m),p.apply(this,arguments)}return(0,a.default)(m,[{key:"componentDidMount",value:function(){!function(t){if("function"==typeof n.g.requestAnimationFrame){var e=Date.now(),r="#ededed",o=450;!function i(){var a=(Date.now()-e)%6e3/6e3;r=(0,d.lerpTable)(1,a,y,!1,d.lerpColor),o=o-4<0?450:o-4,t.style.cssText="stroke-dashoffset: ".concat(o,"; stroke: ").concat(r,";"),v=n.g.requestAnimationFrame(i)}()}}(this._progressPath)}},{key:"componentWillUnmount",value:function(){"function"==typeof n.g.cancelAnimationFrame&&v&&(n.g.cancelAnimationFrame(v),v=null)}},{key:"render",value:function(){var t=this,e=this.props,n=e.size,r=e.className,i=(0,h.default)(f.default.root,r);return l.default.createElement("svg",{className:i,width:n,height:n,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid meet"},l.default.createElement("path",(0,o.default)({},g,{stroke:"rgba(0, 0, 0, 0.05)"})),l.default.createElement("path",(0,o.default)({},g,{ref:function(e){return t._progressPath=e},className:f.default.progressPath})))}}]),m}(l.default.Component);e.Z=m,m.defaultProps={size:80,className:""},m.propTypes={size:p.default.number,className:p.default.string}},15256:(t,e,n)=>{"use strict";var r=n(71600);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,(0,r(n(86698)).default)("<style>.ReltioProgress__root_3VJMk{display:inline-block}.ReltioProgress__progressPath_1BzPW{stroke-dasharray:50,400;will-change:stroke,stroke-dashoffset}</style>"),e.default={root:"ReltioProgress__root_3VJMk",progressPath:"ReltioProgress__progressPath_1BzPW"}},80835:(t,e,n)=>{"use strict";var r=n(71600);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t?(0,o.default)(t,"label")||(0,o.default)(t,"uri","").slice((0,o.default)(t,"uri","").lastIndexOf("/")+1):null};var o=r(n(72579))},65021:(t,e)=>{"use strict";function n(t,e,n,r,o){return r+(t-e)/(n-e)*(o-r)}Object.defineProperty(e,"__esModule",{value:!0}),e.lerp=n,e.lerpColor=function(t,e,r,o,i){var a=255&o,s=(65280&o)>>8,u=(16711680&o)>>16,c=255&i,l=(65280&i)>>8,f=(16711680&i)>>16;return"#"+("00000"+(Math.floor(n(t,e,r,u,f))<<16|Math.floor(n(t,e,r,s,l))<<8|Math.floor(n(t,e,r,a,c))).toString(16)).slice(-6)},e.lerpTable=function(t,e,r,o){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n,a=r.length,s=0;s<a;++s){var u=r[s][0];if(0===s&&e<u)return o?i(e,u,r[s+1][0],r[s][t],r[s+1][t]):r[s][t];if(s===a-1&&e>=u)return o?i(e,r[s-1][0],u,r[s-1][t],r[s][t]):r[s][t];if(e>=u&&e<=r[s+1][0])return i(e,u,r[s+1][0],r[s][t],r[s+1][t])}return 0}},66866:(t,e)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,d=(n&&Symbol.for("react.suspense_list"),n?Symbol.for("react.memo"):60115),g=n?Symbol.for("react.lazy"):60116;n&&Symbol.for("react.block"),n&&Symbol.for("react.fundamental"),n&&Symbol.for("react.responder"),n&&Symbol.for("react.scope");function y(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case l:case f:case i:case s:case a:case h:return t;default:switch(t=t&&t.$$typeof){case c:case p:case g:case d:case u:return t;default:return e}}case o:return e}}}e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isFragment=function(t){return y(t)===i}},48570:(t,e,n)=>{"use strict";t.exports=n(66866)},46847:(t,e,n)=>{"use strict";function r(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=t&&this.setState(t)}function o(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!=n?n:null}.bind(this))}function i(t,e){try{var n=this.props,r=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate)return t;var n=null,a=null,s=null;if("function"==typeof e.componentWillMount?n="componentWillMount":"function"==typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof e.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof e.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof e.componentWillUpdate?s="componentWillUpdate":"function"==typeof e.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var u=t.displayName||t.name,c="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof t.getDerivedStateFromProps&&(e.componentWillMount=r,e.componentWillReceiveProps=o),"function"==typeof e.getSnapshotBeforeUpdate){if("function"!=typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=i;var l=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,t,e,r)}}return t}n.r(e),n.d(e,{polyfill:()=>a}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},2271:(t,e,n)=>{"use strict";function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(t){return c="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(t){return u(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":u(t)},c(t)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?l(t):e}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{p:()=>Ut,r:()=>Wt});var y=n(8156),v=n.n(y),m=n(47677),b=n.n(m);var x=n(56666),O=n(38777),w=function(t){return t===Object(t)?Object.keys(t):[]},S=function(t){return t===Object(t)?Object.values(t):[]};function M(t,e){var n=Object.assign({},t);return C(t)&&C(e)&&w(e).forEach((function(r){C(e[r])&&r in t?n[r]=M(t[r],e[r]):Object.assign(n,(0,x.Z)({},r,e[r]))})),n}var E=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.reduce((function(t,e){return M(t,e)}),t)},k=function(t,e){var n=Object.assign({},t);if(e)for(var r=0;r<e.length;r++)delete n[e[r]];return n},C=function(t){return!(t!==Object(t)||t instanceof Date||Array.isArray(t))},P=function(t){return(t||[]).filter(Boolean)},A=function(t){return"&"===t[0]},j=function(t){return!A(t)},T=function(t){return t.replace(/-(\w)/g,(function(t,e){return e.toUpperCase()}))},_=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=w(t),r={},o=0,i=n.length;o<i;o+=1){var a=n[o],s="[object Object]"!==Object.prototype.toString.call(t[a])||":"===a[0]||"@"===a[0]||e.indexOf(a)>=0;s&&(r[a]=t[a])}return r},D=function(t,e){for(var n=e.map(T),r=w(t),o={},i=0,a=r.length;i<a;i+=1){var s=r[i];(e.indexOf(s)>=0||n.indexOf(T(s))>=0)&&(o[s]=t[s])}return o},B=function t(e,n){for(var r=E.apply(void 0,[{},k(e,n)].concat((0,O.Z)(S(D(e,n))))),o=w(r).filter(A),i=0,a=o.length;i<a;i+=1){var s=o[i],u=t(r[s],n);n.indexOf(s)>=0?(delete r[s],r=E({},r,u)):r[s]=u}return r};function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function L(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach((function(e){(0,x.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var z=["animationName"];const R=function(t){var e=t.style,n=t.className;return L(L({},e?{style:_(e,z)}:{}),n?{className:n}:{})};var N=(0,y.createContext)(R);N.Provider;const W=function(t){if(!t)return[];if("string"==typeof t)return[t];if(!Array.isArray(t)){var e=t;return w(t).reduce((function(t,n){return t.concat(e[n]?[n]:[])}),[])}return t};var F={};const U=function(t){return function(e,n){var r,o=n||F;t.memoize=t.memoize||new WeakMap,t.memoize.has(o)?r=t.memoize.get(o):(r={},t.memoize.set(o,r));var i=W(e).join(" ");return i in r?r[i]:r[i]=t(e||[],n)}};function V(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function q(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?V(Object(n),!0).forEach((function(e){(0,x.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var G=function(t){var e=t&&w(t)[0];return e&&e.split("__")[0].split("--")[0]},Z=function(t,e,n){if(t){var r=t.split(" ")[0],o=[].concat((0,O.Z)(0===e.length?n.map((function(t){return"".concat(r,"--").concat(t.substring(1))})):[]),(0,O.Z)(e.map((function(t){return"".concat(r,"__").concat(t)}))));return 0===e.length?[t].concat((0,O.Z)(o)):o}};const H=function t(e){var n=e.style,r=e.className,o=e.classNames,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R,a=r||G(o)||(null==n?void 0:n.className),s="function"==typeof n?n:U((function(e,r){var s=W(e);b()(Array.isArray(s),"First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."),b()(!r||C(r),"Optional second parameter must be a plain object.");var u=s.filter(A),c=s.filter(j),l=c.length>0?function(t){return S(D(t,c))}:function(t){return[t]},f=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l(B(t,u))},p=Z(a,c,u);return t(q(q(q({},(n||r)&&{style:E.apply(void 0,[{}].concat((0,O.Z)(f(r)),(0,O.Z)(f(n))))}),p&&{className:p.join(" ")}),o&&{classNames:o}),i)})),u=q({},"function"==typeof n?n:{style:n}),c=(0,O.Z)(new Set([].concat((0,O.Z)(u.className?u.className.split(" "):[]),(0,O.Z)(a?a.split(" "):[])))),l=o?P(c.map((function(t){return o[t]}))):c,f=i(q(q({},u),l.length>0?{className:l.join(" ")}:{}));return Object.assign(s,f),s},$=function(t,e,n){var r=e.style,o=e.className,i=e.classNames,a=(0,y.useContext)(N);return(0,y.useMemo)((function(){return H({style:r,className:o,classNames:i},a)}),[r,o,i,a])(n,t)};function Y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function X(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(n),!0).forEach((function(e){(0,x.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var K=n(95099),Q=n.n(K),J=n(47111),tt=n.n(J),et=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},nt="__id__",rt="__display__",ot=function(t,e){b()("id"===e||"display"===e,'Second arg must be either "id" or "display", got: "'.concat(e,'"'));var n=t.indexOf(rt),r=t.indexOf(nt);return n<0&&(n=null),r<0&&(r=null),b()(null!==n||null!==r,"The markup '".concat(t,"' does not contain either of the placeholders '__id__' or '__display__'")),null!==n&&null!==r?"id"===e&&r<=n||"display"===e&&n<=r?0:1:0},it=function(t){var e=/^\/(.+)\/(\w+)?$/;return new RegExp(t.map((function(t){var n,r,o=(n=e.exec(t.toString()),r=3,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),i=o[1],a=o[2];return b()(!a,"RegExp flags are not supported. Change /".concat(i,"/").concat(a," into /").concat(i,"/")),"(".concat(i,")")})).join("|"),"g")},at=function(t){var e=0;return t.indexOf("__id__")>=0&&e++,t.indexOf("__display__")>=0&&e++,e},st=function(){},ut=function(t,e,n){for(var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:st,i=it(e.map((function(t){return t.regex}))),a=2,s=e.map((function(t){var e=t.markup,n=a;return a+=at(e)+1,n})),u=0,c=0;null!==(r=i.exec(t));){var l=s.find((function(t){return!!r[t]})),f=s.indexOf(l),p=e[f],h=p.markup,d=p.displayTransform,g=l+ot(h,"id"),y=l+ot(h,"display"),v=r[g],m=d(v,r[y]),b=t.substring(u,r.index);o(b,u,c),c+=b.length,n(r[0],r.index,c,v,m,f,u),c+=m.length,u=i.lastIndex}u<t.length&&o(t.substring(u),u,c)},ct=function(t,e){var n="";return ut(t,e,(function(t,e,r,o,i){n+=i}),(function(t){n+=t})),n},lt=function(t,e,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"START";if("number"!=typeof n)return n;var i=function(t,e,o){void 0===r&&o+t.length>=n&&(r=e+n-o)},a=function(t,e,i,a,s,u,c){void 0===r&&i+s.length>n&&(r="NULL"===o?null:e+("END"===o?t.length:0))};return ut(t,e,a,i),void 0===r?t.length:r},ft=function(t,e,n,r){return t.substring(0,e)+r+t.substring(n)},pt=function(t,e){var n=[];return ut(t,e,(function(t,e,r,o,i,a,s){n.push({id:o,display:i,childIndex:a,index:e,plainTextIndex:r})})),n},ht=function(t,e){return"".concat(t,"-").concat(e)},dt=function(t){return Object.values(t).reduce((function(t,e){return t+e.results.length}),0)},gt=function(t){var e=et(t),n=t[t.indexOf(rt)+rt.length],r=t[t.indexOf(nt)+nt.length];return new RegExp(e.replace(rt,"([^".concat(et(n||""),"]+?)")).replace(nt,"([^".concat(et(r||""),"]+?)")))},yt=function(t){return y.Children.toArray(t).map((function(t){var e=t.props,n=e.markup,r=e.regex,o=e.displayTransform;return{markup:n,regex:r?vt(r,n):gt(n),displayTransform:o||function(t,e){return e||t}}}))},vt=function(t,e){var n=new RegExp(t.toString()+"|").exec("").length-1,r=at(e);return b()(n===r,"Number of capturing groups in RegExp ".concat(t.toString()," (").concat(n,") does not match the number of placeholders in the markup '").concat(e,"' (").concat(r,")")),t},mt=[{base:"A",letters:/(&#65;|&#9398;|&#65313;|&#192;|&#193;|&#194;|&#7846;|&#7844;|&#7850;|&#7848;|&#195;|&#256;|&#258;|&#7856;|&#7854;|&#7860;|&#7858;|&#550;|&#480;|&#196;|&#478;|&#7842;|&#197;|&#506;|&#461;|&#512;|&#514;|&#7840;|&#7852;|&#7862;|&#7680;|&#260;|&#570;|&#11375;|[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F])/g},{base:"AA",letters:/(&#42802;|[\uA732])/g},{base:"AE",letters:/(&#198;|&#508;|&#482;|[\u00C6\u01FC\u01E2])/g},{base:"AO",letters:/(&#42804;|[\uA734])/g},{base:"AU",letters:/(&#42806;|[\uA736])/g},{base:"AV",letters:/(&#42808;|&#42810;|[\uA738\uA73A])/g},{base:"AY",letters:/(&#42812;|[\uA73C])/g},{base:"B",letters:/(&#66;|&#9399;|&#65314;|&#7682;|&#7684;|&#7686;|&#579;|&#386;|&#385;|[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181])/g},{base:"C",letters:/(&#67;|&#9400;|&#65315;|&#262;|&#264;|&#266;|&#268;|&#199;|&#7688;|&#391;|&#571;|&#42814;|[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E])/g},{base:"D",letters:/(&#68;|&#9401;|&#65316;|&#7690;|&#270;|&#7692;|&#7696;|&#7698;|&#7694;|&#272;|&#395;|&#394;|&#393;|&#42873;|&#208;|[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u00D0])/g},{base:"DZ",letters:/(&#497;|&#452;|[\u01F1\u01C4])/g},{base:"Dz",letters:/(&#498;|&#453;|[\u01F2\u01C5])/g},{base:"E",letters:/(&#69;|&#9402;|&#65317;|&#200;|&#201;|&#202;|&#7872;|&#7870;|&#7876;|&#7874;|&#7868;|&#274;|&#7700;|&#7702;|&#276;|&#278;|&#203;|&#7866;|&#282;|&#516;|&#518;|&#7864;|&#7878;|&#552;|&#7708;|&#280;|&#7704;|&#7706;|&#400;|&#398;|[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E])/g},{base:"F",letters:/(&#70;|&#9403;|&#65318;|&#7710;|&#401;|&#42875;|[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B])/g},{base:"G",letters:/(&#71;|&#9404;|&#65319;|&#500;|&#284;|&#7712;|&#286;|&#288;|&#486;|&#290;|&#484;|&#403;|&#42912;|&#42877;|&#42878;|[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E])/g},{base:"H",letters:/(&#72;|&#9405;|&#65320;|&#292;|&#7714;|&#7718;|&#542;|&#7716;|&#7720;|&#7722;|&#294;|&#11367;|&#11381;|&#42893;|[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D])/g},{base:"I",letters:/(&#73;|&#9406;|&#65321;|&#204;|&#205;|&#206;|&#296;|&#298;|&#300;|&#304;|&#207;|&#7726;|&#7880;|&#463;|&#520;|&#522;|&#7882;|&#302;|&#7724;|&#407;|[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197])/g},{base:"J",letters:/(&#74;|&#9407;|&#65322;|&#308;|&#584;|[\u004A\u24BF\uFF2A\u0134\u0248])/g},{base:"K",letters:/(&#75;|&#9408;|&#65323;|&#7728;|&#488;|&#7730;|&#310;|&#7732;|&#408;|&#11369;|&#42816;|&#42818;|&#42820;|&#42914;|[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2])/g},{base:"L",letters:/(&#76;|&#9409;|&#65324;|&#319;|&#313;|&#317;|&#7734;|&#7736;|&#315;|&#7740;|&#7738;|&#321;|&#573;|&#11362;|&#11360;|&#42824;|&#42822;|&#42880;|[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780])/g},{base:"LJ",letters:/(&#455;|[\u01C7])/g},{base:"Lj",letters:/(&#456;|[\u01C8])/g},{base:"M",letters:/(&#77;|&#9410;|&#65325;|&#7742;|&#7744;|&#7746;|&#11374;|&#412;|[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C])/g},{base:"N",letters:/(&#78;|&#9411;|&#65326;|&#504;|&#323;|&#209;|&#7748;|&#327;|&#7750;|&#325;|&#7754;|&#7752;|&#544;|&#413;|&#42896;|&#42916;|&#330;|[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4\u014A])/g},{base:"NJ",letters:/(&#458;|[\u01CA])/g},{base:"Nj",letters:/(&#459;|[\u01CB])/g},{base:"O",letters:/(&#79;|&#9412;|&#65327;|&#210;|&#211;|&#212;|&#7890;|&#7888;|&#7894;|&#7892;|&#213;|&#7756;|&#556;|&#7758;|&#332;|&#7760;|&#7762;|&#334;|&#558;|&#560;|&#214;|&#554;|&#7886;|&#336;|&#465;|&#524;|&#526;|&#416;|&#7900;|&#7898;|&#7904;|&#7902;|&#7906;|&#7884;|&#7896;|&#490;|&#492;|&#216;|&#510;|&#390;|&#415;|&#42826;|&#42828;|[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C])/g},{base:"OE",letters:/(&#338;|[\u0152])/g},{base:"OI",letters:/(&#418;|[\u01A2])/g},{base:"OO",letters:/(&#42830;|[\uA74E])/g},{base:"OU",letters:/(&#546;|[\u0222])/g},{base:"P",letters:/(&#80;|&#9413;|&#65328;|&#7764;|&#7766;|&#420;|&#11363;|&#42832;|&#42834;|&#42836;|[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754])/g},{base:"Q",letters:/(&#81;|&#9414;|&#65329;|&#42838;|&#42840;|&#586;|[\u0051\u24C6\uFF31\uA756\uA758\u024A])/g},{base:"R",letters:/(&#82;|&#9415;|&#65330;|&#340;|&#7768;|&#344;|&#528;|&#530;|&#7770;|&#7772;|&#342;|&#7774;|&#588;|&#11364;|&#42842;|&#42918;|&#42882;|[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782])/g},{base:"S",letters:/(&#83;|&#9416;|&#65331;|&#7838;|&#346;|&#7780;|&#348;|&#7776;|&#352;|&#7782;|&#7778;|&#7784;|&#536;|&#350;|&#11390;|&#42920;|&#42884;|[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784])/g},{base:"T",letters:/(&#84;|&#9417;|&#65332;|&#7786;|&#356;|&#7788;|&#538;|&#354;|&#7792;|&#7790;|&#358;|&#428;|&#430;|&#574;|&#42886;|[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786])/g},{base:"TH",letters:/(&#222;|[\u00DE])/g},{base:"TZ",letters:/(&#42792;|[\uA728])/g},{base:"U",letters:/(&#85;|&#9418;|&#65333;|&#217;|&#218;|&#219;|&#360;|&#7800;|&#362;|&#7802;|&#364;|&#220;|&#475;|&#471;|&#469;|&#473;|&#7910;|&#366;|&#368;|&#467;|&#532;|&#534;|&#431;|&#7914;|&#7912;|&#7918;|&#7916;|&#7920;|&#7908;|&#7794;|&#370;|&#7798;|&#7796;|&#580;|[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244])/g},{base:"V",letters:/(&#86;|&#9419;|&#65334;|&#7804;|&#7806;|&#434;|&#42846;|&#581;|[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245])/g},{base:"VY",letters:/(&#42848;|[\uA760])/g},{base:"W",letters:/(&#87;|&#9420;|&#65335;|&#7808;|&#7810;|&#372;|&#7814;|&#7812;|&#7816;|&#11378;|[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72])/g},{base:"X",letters:/(&#88;|&#9421;|&#65336;|&#7818;|&#7820;|[\u0058\u24CD\uFF38\u1E8A\u1E8C])/g},{base:"Y",letters:/(&#89;|&#9422;|&#65337;|&#7922;|&#221;|&#374;|&#7928;|&#562;|&#7822;|&#376;|&#7926;|&#7924;|&#435;|&#590;|&#7934;|[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE])/g},{base:"Z",letters:/(&#90;|&#9423;|&#65338;|&#377;|&#7824;|&#379;|&#381;|&#7826;|&#7828;|&#437;|&#548;|&#11391;|&#11371;|&#42850;|[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762])/g},{base:"a",letters:/(&#97;|&#9424;|&#65345;|&#7834;|&#224;|&#225;|&#226;|&#7847;|&#7845;|&#7851;|&#7849;|&#227;|&#257;|&#259;|&#7857;|&#7855;|&#7861;|&#7859;|&#551;|&#481;|&#228;|&#479;|&#7843;|&#229;|&#507;|&#462;|&#513;|&#515;|&#7841;|&#7853;|&#7863;|&#7681;|&#261;|&#11365;|&#592;|[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250])/g},{base:"aa",letters:/(&#42803;|[\uA733])/g},{base:"ae",letters:/(&#230;|&#509;|&#483;|[\u00E6\u01FD\u01E3])/g},{base:"ao",letters:/(&#42805;|[\uA735])/g},{base:"au",letters:/(&#42807;|[\uA737])/g},{base:"av",letters:/(&#42809;|&#42811;|[\uA739\uA73B])/g},{base:"ay",letters:/(&#42813;|[\uA73D])/g},{base:"b",letters:/(&#98;|&#9425;|&#65346;|&#7683;|&#7685;|&#7687;|&#384;|&#387;|&#595;|[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253])/g},{base:"c",letters:/(&#99;|&#9426;|&#65347;|&#263;|&#265;|&#267;|&#269;|&#231;|&#7689;|&#392;|&#572;|&#42815;|&#8580;|[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184])/g},{base:"d",letters:/(&#100;|&#9427;|&#65348;|&#7691;|&#271;|&#7693;|&#7697;|&#7699;|&#7695;|&#273;|&#396;|&#598;|&#599;|&#42874;|&#240;|[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A\u00F0])/g},{base:"dz",letters:/(&#499;|&#454;|[\u01F3\u01C6])/g},{base:"e",letters:/(&#101;|&#9428;|&#65349;|&#232;|&#233;|&#234;|&#7873;|&#7871;|&#7877;|&#7875;|&#7869;|&#275;|&#7701;|&#7703;|&#277;|&#279;|&#235;|&#7867;|&#283;|&#517;|&#519;|&#7865;|&#7879;|&#553;|&#7709;|&#281;|&#7705;|&#7707;|&#583;|&#603;|&#477;|[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD])/g},{base:"f",letters:/(&#102;|&#9429;|&#65350;|&#7711;|&#402;|&#42876;|[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C])/g},{base:"g",letters:/(&#103;|&#9430;|&#65351;|&#501;|&#285;|&#7713;|&#287;|&#289;|&#487;|&#291;|&#485;|&#608;|&#42913;|&#7545;|&#42879;|[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F])/g},{base:"h",letters:/(&#104;|&#9431;|&#65352;|&#293;|&#7715;|&#7719;|&#543;|&#7717;|&#7721;|&#7723;|&#7830;|&#295;|&#11368;|&#11382;|&#613;|[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265])/g},{base:"hv",letters:/(&#405;|[\u0195])/g},{base:"i",letters:/(&#105;|&#9432;|&#65353;|&#236;|&#237;|&#238;|&#297;|&#299;|&#301;|&#239;|&#7727;|&#7881;|&#464;|&#521;|&#523;|&#7883;|&#303;|&#7725;|&#616;|&#305;|[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131])/g},{base:"ij",letters:/(&#307;|[\u0133])/g},{base:"j",letters:/(&#106;|&#9433;|&#65354;|&#309;|&#496;|&#585;|[\u006A\u24D9\uFF4A\u0135\u01F0\u0249])/g},{base:"k",letters:/(&#107;|&#9434;|&#65355;|&#7729;|&#489;|&#7731;|&#311;|&#7733;|&#409;|&#11370;|&#42817;|&#42819;|&#42821;|&#42915;|[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3])/g},{base:"l",letters:/(&#108;|&#9435;|&#65356;|&#320;|&#314;|&#318;|&#7735;|&#7737;|&#316;|&#7741;|&#7739;|&#322;|&#410;|&#619;|&#11361;|&#42825;|&#42881;|&#42823;|[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u0142\u019A\u026B\u2C61\uA749\uA781\uA747])/g},{base:"lj",letters:/(&#457;|[\u01C9])/g},{base:"m",letters:/(&#109;|&#9436;|&#65357;|&#7743;|&#7745;|&#7747;|&#625;|&#623;|[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F])/g},{base:"n",letters:/(&#110;|&#9437;|&#65358;|&#505;|&#324;|&#241;|&#7749;|&#328;|&#7751;|&#326;|&#7755;|&#7753;|&#414;|&#626;|&#329;|&#42897;|&#42917;|&#331;|[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u014B])/g},{base:"nj",letters:/(&#460;|[\u01CC])/g},{base:"o",letters:/(&#111;|&#9438;|&#65359;|&#242;|&#243;|&#244;|&#7891;|&#7889;|&#7895;|&#7893;|&#245;|&#7757;|&#557;|&#7759;|&#333;|&#7761;|&#7763;|&#335;|&#559;|&#561;|&#246;|&#555;|&#7887;|&#337;|&#466;|&#525;|&#527;|&#417;|&#7901;|&#7899;|&#7905;|&#7903;|&#7907;|&#7885;|&#7897;|&#491;|&#493;|&#248;|&#511;|&#596;|&#42827;|&#42829;|&#629;|[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275])/g},{base:"oe",letters:/(&#339;|[\u0153])/g},{base:"oi",letters:/(&#419;|[\u01A3])/g},{base:"ou",letters:/(&#547;|[\u0223])/g},{base:"oo",letters:/(&#42831;|[\uA74F])/g},{base:"p",letters:/(&#112;|&#9439;|&#65360;|&#7765;|&#7767;|&#421;|&#7549;|&#42833;|&#42835;|&#42837;|[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755])/g},{base:"q",letters:/(&#113;|&#9440;|&#65361;|&#587;|&#42839;|&#42841;|[\u0071\u24E0\uFF51\u024B\uA757\uA759])/g},{base:"r",letters:/(&#114;|&#9441;|&#65362;|&#341;|&#7769;|&#345;|&#529;|&#531;|&#7771;|&#7773;|&#343;|&#7775;|&#589;|&#637;|&#42843;|&#42919;|&#42883;|[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783])/g},{base:"s",letters:/(&#115;|&#9442;|&#65363;|&#347;|&#7781;|&#349;|&#7777;|&#353;|&#7783;|&#7779;|&#7785;|&#537;|&#351;|&#575;|&#42921;|&#42885;|&#7835;|&#383;|[\u0073\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u017F])/g},{base:"ss",letters:/(&#223;|[\u00DF])/g},{base:"t",letters:/(&#116;|&#9443;|&#65364;|&#7787;|&#7831;|&#357;|&#7789;|&#539;|&#355;|&#7793;|&#7791;|&#359;|&#429;|&#648;|&#11366;|&#42887;|[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787])/g},{base:"th",letters:/(&#254;|[\u00FE])/g},{base:"tz",letters:/(&#42793;|[\uA729])/g},{base:"u",letters:/(&#117;|&#9444;|&#65365;|&#249;|&#250;|&#251;|&#361;|&#7801;|&#363;|&#7803;|&#365;|&#252;|&#476;|&#472;|&#470;|&#474;|&#7911;|&#367;|&#369;|&#468;|&#533;|&#535;|&#432;|&#7915;|&#7913;|&#7919;|&#7917;|&#7921;|&#7909;|&#7795;|&#371;|&#7799;|&#7797;|&#649;|[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289])/g},{base:"v",letters:/(&#118;|&#9445;|&#65366;|&#7805;|&#7807;|&#651;|&#42847;|&#652;|[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C])/g},{base:"vy",letters:/(&#42849;|[\uA761])/g},{base:"w",letters:/(&#119;|&#9446;|&#65367;|&#7809;|&#7811;|&#373;|&#7815;|&#7813;|&#7832;|&#7817;|&#11379;|[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73])/g},{base:"x",letters:/(&#120;|&#9447;|&#65368;|&#7819;|&#7821;|[\u0078\u24E7\uFF58\u1E8B\u1E8D])/g},{base:"y",letters:/(&#121;|&#9448;|&#65369;|&#7923;|&#253;|&#375;|&#7929;|&#563;|&#7823;|&#255;|&#7927;|&#7833;|&#7925;|&#436;|&#591;|&#7935;|[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF])/g},{base:"z",letters:/(&#122;|&#9449;|&#65370;|&#378;|&#7825;|&#380;|&#382;|&#7827;|&#7829;|&#438;|&#549;|&#576;|&#11372;|&#42851;|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g}],bt=function(t){return function(t){var e=t;return mt.forEach((function(t){e=e.replace(t.letters,t.base)})),e}(t).toLowerCase()},xt=function(t,e,n){return n?bt(t).indexOf(bt(e)):t.toLowerCase().indexOf(e.toLowerCase())},Ot=function(t){return"number"==typeof t},wt=function(t){return t===Object(t)?Object.keys(t):[]},St=function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=(e=[]).concat.apply(e,r);return Object.keys(t).reduce((function(e,n){return t.hasOwnProperty(n)&&!i.includes(n)&&void 0!==t[n]&&(e[n]=t[n]),e}),{})};function Mt(t,e){return function(n){var r=function(r){var i=r.style,a=r.className,s=r.classNames,u=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(r,["style","className","classNames"]),c=e?e(u):void 0,l=$(t,{style:i,className:a,classNames:s},c);return v().createElement(n,o({},u,{style:l}))},i=n.displayName||n.name||"Component";return r.displayName="defaultStyle(".concat(i,")"),r}}var Et=function(t){function e(){var t;return i(this,e),g(l(t=f(this,p(e).apply(this,arguments))),"setCaretElement",(function(e){t.caretElement=e})),t.state={left:void 0,top:void 0},t}return d(e,t),s(e,[{key:"componentDidMount",value:function(){this.notifyCaretPosition()}},{key:"componentDidUpdate",value:function(){this.notifyCaretPosition()}},{key:"notifyCaretPosition",value:function(){if(this.caretElement){var t=this.caretElement,e=t.offsetLeft,n=t.offsetTop;if(this.state.left!==e||this.state.top!==n){var r={left:e,top:n};this.setState(r),this.props.onCaretPositionChange(r)}}}},{key:"render",value:function(){var t,e=this,n=this.props,r=n.selectionStart,i=n.selectionEnd,a=n.value,s=n.style,u=n.children,c=n.containerRef,l=yt(u);r===i&&(t=lt(a,l,r,"START"));var f=[],p={},h=f,d=0;return ut(a,l,(function(t,n,r,o,i,a,s){var u=function(t,e){return t.hasOwnProperty(e)?t[e]++:t[e]=0,e+"_"+t[e]}(p,o);h.push(e.getMentionComponentForMatch(o,i,a,u))}),(function(n,r,o){if(Ot(t)&&t>=r&&t<=r+n.length){var i=t-r;h.push(e.renderSubstring(n.substring(0,i),d)),h=[e.renderSubstring(n.substring(i),d)]}else h.push(e.renderSubstring(n,d));d++})),h.push(" "),h!==f&&f.push(this.renderHighlighterCaret(h)),v().createElement("div",o({},s,{ref:c}),f)}},{key:"renderSubstring",value:function(t,e){return v().createElement("span",o({},this.props.style("substring"),{key:e}),t)}},{key:"getMentionComponentForMatch",value:function(t,e,n,r){var o={id:t,display:e,key:r},i=y.Children.toArray(this.props.children)[n];return v().cloneElement(i,o)}},{key:"renderHighlighterCaret",value:function(t){return v().createElement("span",o({},this.props.style("caret"),{ref:this.setCaretElement,key:"caret"}),t)}}]),e}(y.Component);g(Et,"propTypes",{selectionStart:Q().number,selectionEnd:Q().number,value:Q().string.isRequired,onCaretPositionChange:Q().func.isRequired,containerRef:Q().oneOfType([Q().func,Q().shape({current:"undefined"==typeof Element?Q().any:Q().instanceOf(Element)})]),children:Q().oneOfType([Q().element,Q().arrayOf(Q().element)]).isRequired}),g(Et,"defaultProps",{value:""});var kt=Mt({position:"relative",boxSizing:"border-box",width:"100%",color:"transparent",overflow:"hidden",whiteSpace:"pre-wrap",wordWrap:"break-word",border:"1px solid transparent",textAlign:"start","&singleLine":{whiteSpace:"pre",wordWrap:null},substring:{visibility:"hidden"}},(function(t){return{"&singleLine":t.singleLine}}))(Et),Ct=function(t){function e(){return i(this,e),f(this,p(e).apply(this,arguments))}return d(e,t),s(e,[{key:"render",value:function(){var t=St(this.props,["style","classNames","className"],wt(e.propTypes));return v().createElement("li",o({id:this.props.id,role:"option","aria-selected":this.props.focused},t,this.props.style),this.renderContent())}},{key:"renderContent",value:function(){var t=this.props,e=t.query,n=t.renderSuggestion,r=t.suggestion,o=t.index,i=t.focused,a=this.getDisplay(),s=this.renderHighlightedDisplay(a,e);return n?n(r,e,s,o,i):s}},{key:"getDisplay",value:function(){var t=this.props.suggestion;if("string"==typeof t)return t;var e=t.id,n=t.display;return void 0!==e&&n?n:e}},{key:"renderHighlightedDisplay",value:function(t){var e=this.props,n=e.ignoreAccents,r=e.query,o=e.style,i=xt(t,r,n);return-1===i?v().createElement("span",o("display"),t):v().createElement("span",o("display"),t.substring(0,i),v().createElement("b",o("highlight"),t.substring(i,i+r.length)),t.substring(i+r.length))}}]),e}(y.Component);g(Ct,"propTypes",{id:Q().string.isRequired,query:Q().string.isRequired,index:Q().number.isRequired,ignoreAccents:Q().bool,suggestion:Q().oneOfType([Q().string,Q().shape({id:Q().oneOfType([Q().string,Q().number]).isRequired,display:Q().string})]).isRequired,renderSuggestion:Q().func,focused:Q().bool});var Pt=Mt({cursor:"pointer"},(function(t){return{"&focused":t.focused}}))(Ct);function At(){var t=$(),e=t("spinner");return v().createElement("div",t,v().createElement("div",e,v().createElement("div",e(["element","element1"])),v().createElement("div",e(["element","element2"])),v().createElement("div",e(["element","element3"])),v().createElement("div",e(["element","element4"])),v().createElement("div",e(["element","element5"]))))}var jt=function(t){function e(){var t,n;i(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return g(l(n=f(this,(t=p(e)).call.apply(t,[this].concat(o)))),"handleMouseEnter",(function(t,e){n.props.onMouseEnter&&n.props.onMouseEnter(t)})),g(l(n),"select",(function(t,e){n.props.onSelect(t,e)})),g(l(n),"setUlElement",(function(t){n.ulElement=t})),n}return d(e,t),s(e,[{key:"componentDidUpdate",value:function(){if(this.ulElement&&!(this.ulElement.offsetHeight>=this.ulElement.scrollHeight)&&this.props.scrollFocusedIntoView){var t=this.ulElement.scrollTop,e=this.ulElement.children[this.props.focusIndex].getBoundingClientRect(),n=e.top,r=e.bottom,o=this.ulElement.getBoundingClientRect().top;r=r-o+t,(n=n-o+t)<t?this.ulElement.scrollTop=n:r>this.ulElement.offsetHeight&&(this.ulElement.scrollTop=r-this.ulElement.offsetHeight)}}},{key:"render",value:function(){var t=this.props,e=t.id,n=t.a11ySuggestionsListLabel,r=t.isOpened,i=t.style,a=t.onMouseDown,s=t.containerRef,u=t.position,c=t.left,l=t.top;return r?v().createElement("div",o({},function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((function(t,e){return X(X(X({},t),"function"==typeof e?e:{}),{},{style:X(X({},t.style),"function"==typeof e?e.style:e)})}),{})}({position:u||"absolute",left:c,top:l},i),{onMouseDown:a,ref:s}),v().createElement("ul",o({ref:this.setUlElement,id:e,role:"listbox","aria-label":n},i("list")),this.renderSuggestions()),this.renderLoadingIndicator()):null}},{key:"renderSuggestions",value:function(){var t=this;return Object.values(this.props.suggestions).reduce((function(e,n){var o=n.results,i=n.queryInfo;return[].concat(r(e),r(o.map((function(n,r){return t.renderSuggestion(n,i,e.length+r)}))))}),[])}},{key:"renderSuggestion",value:function(t,e,n){var r=this,o=n===this.props.focusIndex,i=e.childIndex,a=e.query,s=y.Children.toArray(this.props.children)[i].props.renderSuggestion,u=this.props.ignoreAccents;return v().createElement(Pt,{style:this.props.style("item"),key:"".concat(i,"-").concat(Tt(t)),id:ht(this.props.id,n),query:a,index:n,ignoreAccents:u,renderSuggestion:s,suggestion:t,focused:o,onClick:function(){return r.select(t,e)},onMouseEnter:function(){return r.handleMouseEnter(n)}})}},{key:"renderLoadingIndicator",value:function(){if(this.props.isLoading)return v().createElement(At,{style:this.props.style("loadingIndicator")})}}]),e}(y.Component);g(jt,"propTypes",{id:Q().string.isRequired,suggestions:Q().object.isRequired,a11ySuggestionsListLabel:Q().string,focusIndex:Q().number,position:Q().string,left:Q().number,top:Q().number,scrollFocusedIntoView:Q().bool,isLoading:Q().bool,isOpened:Q().bool.isRequired,onSelect:Q().func,ignoreAccents:Q().bool,containerRef:Q().oneOfType([Q().func,Q().shape({current:"undefined"==typeof Element?Q().any:Q().instanceOf(Element)})]),children:Q().oneOfType([Q().element,Q().arrayOf(Q().element)]).isRequired}),g(jt,"defaultProps",{suggestions:{},onSelect:function(){return null}});var Tt=function(t){return"string"==typeof t?t:t.id},_t=Mt({zIndex:1,backgroundColor:"white",marginTop:14,minWidth:100,list:{margin:0,padding:0,listStyleType:"none"}})(jt);function Dt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Bt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Dt(n,!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dt(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var It={TAB:9,RETURN:13,ESC:27,UP:38,DOWN:40},Lt=!1,zt={singleLine:Q().bool,allowSpaceInQuery:Q().bool,allowSuggestionsAboveCursor:Q().bool,forceSuggestionsAboveCursor:Q().bool,ignoreAccents:Q().bool,a11ySuggestionsListLabel:Q().string,value:Q().string,onKeyDown:Q().func,onSelect:Q().func,onBlur:Q().func,onChange:Q().func,suggestionsPortalHost:"undefined"==typeof Element?Q().any:Q().PropTypes.instanceOf(Element),inputRef:Q().oneOfType([Q().func,Q().shape({current:"undefined"==typeof Element?Q().any:Q().instanceOf(Element)})]),children:Q().oneOfType([Q().element,Q().arrayOf(Q().element)]).isRequired},Rt=function(t){function e(t){var n;return i(this,e),g(l(n=f(this,p(e).call(this,t))),"setContainerElement",(function(t){n.containerElement=t})),g(l(n),"getInputProps",(function(){var t=n.props,e=t.readOnly,r=t.disabled,o=t.style;return Bt({},St(n.props,["style","classNames","className"],wt(zt)),{},o("input"),{value:n.getPlainText()},!e&&!r&&{onChange:n.handleChange,onSelect:n.handleSelect,onKeyDown:n.handleKeyDown,onBlur:n.handleBlur,onCompositionStart:n.handleCompositionStart,onCompositionEnd:n.handleCompositionEnd,onScroll:n.updateHighlighterScroll},{},n.isOpened()&&{role:"combobox","aria-controls":n.uuidSuggestionsOverlay,"aria-expanded":!0,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":ht(n.uuidSuggestionsOverlay,n.state.focusIndex)})})),g(l(n),"renderControl",(function(){var t=n.props,e=t.singleLine,r=t.style,o=n.getInputProps();return v().createElement("div",r("control"),n.renderHighlighter(),e?n.renderInput(o):n.renderTextarea(o))})),g(l(n),"renderInput",(function(t){return v().createElement("input",o({type:"text",ref:n.setInputRef},t))})),g(l(n),"renderTextarea",(function(t){return v().createElement("textarea",o({ref:n.setInputRef},t))})),g(l(n),"setInputRef",(function(t){n.inputElement=t;var e=n.props.inputRef;"function"==typeof e?e(t):e&&(e.current=t)})),g(l(n),"setSuggestionsElement",(function(t){n.suggestionsElement=t})),g(l(n),"renderSuggestionsOverlay",(function(){if(!Ot(n.state.selectionStart))return null;var t=n.state.suggestionsPosition,e=t.position,r=t.left,o=t.top,i=v().createElement(_t,{id:n.uuidSuggestionsOverlay,style:n.props.style("suggestions"),position:e,left:r,top:o,focusIndex:n.state.focusIndex,scrollFocusedIntoView:n.state.scrollFocusedIntoView,containerRef:n.setSuggestionsElement,suggestions:n.state.suggestions,onSelect:n.addMention,onMouseDown:n.handleSuggestionsMouseDown,onMouseEnter:n.handleSuggestionsMouseEnter,isLoading:n.isLoading(),isOpened:n.isOpened(),ignoreAccents:n.props.ignoreAccents,a11ySuggestionsListLabel:n.props.a11ySuggestionsListLabel},n.props.children);return n.props.suggestionsPortalHost?tt().createPortal(i,n.props.suggestionsPortalHost):i})),g(l(n),"renderHighlighter",(function(){var t=n.state,e=t.selectionStart,r=t.selectionEnd,o=n.props,i=o.singleLine,a=o.children,s=o.value,u=o.style;return v().createElement(kt,{containerRef:n.setHighlighterElement,style:u("highlighter"),value:s,singleLine:i,selectionStart:e,selectionEnd:r,onCaretPositionChange:n.handleCaretPositionChange},a)})),g(l(n),"setHighlighterElement",(function(t){n.highlighterElement=t})),g(l(n),"handleCaretPositionChange",(function(t){n.setState({caretPosition:t})})),g(l(n),"getPlainText",(function(){return ct(n.props.value||"",yt(n.props.children))})),g(l(n),"executeOnChange",(function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];var i,a;return n.props.onChange?(i=n.props).onChange.apply(i,[t].concat(r)):n.props.valueLink?(a=n.props.valueLink).requestChange.apply(a,[t.target.value].concat(r)):void 0})),g(l(n),"handleChange",(function(t){if(Lt=!1,(document.activeElement&&document.activeElement.contentDocument||document).activeElement===t.target){var e=n.props.value||"",r=yt(n.props.children),o=t.target.value,i=function(t,e,n,r){var o=n.selectionStartBefore,i=n.selectionEndBefore,a=n.selectionEndAfter,s=ct(t,r),u=s.length-e.length;"undefined"===o&&(o=a+u),"undefined"===i&&(i=o),o===i&&i===a&&s.length===e.length&&(o-=1);var c=e.slice(o,a),l=Math.min(o,a),f=i;o===a&&(f=Math.max(i,o+u));var p=lt(t,r,l,"START"),h=lt(t,r,f,"END"),d=lt(t,r,l,"NULL"),g=lt(t,r,f,"NULL"),y=null===d||null===g,v=ft(t,p,h,c);if(!y){var m=ct(v,r);if(m!==e){for(l=0;e[l]===m[l];)l++;c=e.slice(l,a),f=s.lastIndexOf(e.substring(a)),p=lt(t,r,l,"START"),h=lt(t,r,f,"END"),v=ft(t,p,h,c)}}return v}(e,o,{selectionStartBefore:n.state.selectionStart,selectionEndBefore:n.state.selectionEnd,selectionEndAfter:t.target.selectionEnd},r);o=ct(i,r);var a=t.target.selectionStart,s=t.target.selectionEnd,u=!1,c=function(t,e,n){var r=n,o=!1;if(ut(t,e,(function(t,e,i,a,s,u,c){i<=n&&i+s.length>n&&(r=i,o=!0)})),o)return r}(e,r,a);void 0!==c&&n.state.selectionEnd>c&&(s=a=c,u=!0),n.setState({selectionStart:a,selectionEnd:s,setSelectionAfterMentionChange:u});var l=pt(i,r),f={target:{value:i}};n.executeOnChange(f,i,o,l)}})),g(l(n),"handleSelect",(function(t){if(n.setState({selectionStart:t.target.selectionStart,selectionEnd:t.target.selectionEnd}),!Lt){var e=n.inputElement;t.target.selectionStart===t.target.selectionEnd?n.updateMentionsQueries(e.value,t.target.selectionStart):n.clearSuggestions(),n.updateHighlighterScroll(),n.props.onSelect(t)}})),g(l(n),"handleKeyDown",(function(t){if(0!==dt(n.state.suggestions)&&n.suggestionsElement)switch(Object.values(It).indexOf(t.keyCode)>=0&&(t.preventDefault(),t.stopPropagation()),t.keyCode){case It.ESC:return void n.clearSuggestions();case It.DOWN:return void n.shiftFocus(1);case It.UP:return void n.shiftFocus(-1);case It.RETURN:case It.TAB:return void n.selectFocused();default:return}else n.props.onKeyDown(t)})),g(l(n),"shiftFocus",(function(t){var e=dt(n.state.suggestions);n.setState({focusIndex:(e+n.state.focusIndex+t)%e,scrollFocusedIntoView:!0})})),g(l(n),"selectFocused",(function(){var t=n.state,e=t.suggestions,o=t.focusIndex,i=Object.values(e).reduce((function(t,e){var n=e.results,o=e.queryInfo;return[].concat(r(t),r(n.map((function(t){return{result:t,queryInfo:o}}))))}),[])[o],a=i.result,s=i.queryInfo;n.addMention(a,s),n.setState({focusIndex:0})})),g(l(n),"handleBlur",(function(t){var e=n._suggestionsMouseDown;n._suggestionsMouseDown=!1,e||n.setState({selectionStart:null,selectionEnd:null}),window.setTimeout((function(){n.updateHighlighterScroll()}),1),n.props.onBlur(t,e)})),g(l(n),"handleSuggestionsMouseDown",(function(t){n._suggestionsMouseDown=!0})),g(l(n),"handleSuggestionsMouseEnter",(function(t){n.setState({focusIndex:t,scrollFocusedIntoView:!1})})),g(l(n),"updateSuggestionsPosition",(function(){var t=n.state.caretPosition,e=n.props,r=e.suggestionsPortalHost,o=e.allowSuggestionsAboveCursor,i=e.forceSuggestionsAboveCursor;if(t&&n.suggestionsElement){var a=n.suggestionsElement,s=n.highlighterElement,u=s.getBoundingClientRect(),c=Nt(s,"font-size"),l={left:u.left+t.left,top:u.top+t.top+c},f=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(a){var p={};if(r){p.position="fixed";var h=l.left,d=l.top;h-=Nt(a,"margin-left"),d-=Nt(a,"margin-top"),h-=s.scrollLeft,d-=s.scrollTop;var g=Math.max(document.documentElement.clientWidth,window.innerWidth||0);h+a.offsetWidth>g?p.left=Math.max(0,g-a.offsetWidth):p.left=h,o&&d+a.offsetHeight>f&&a.offsetHeight<d-c||i?p.top=Math.max(0,d-a.offsetHeight-c):p.top=d}else{var y=t.left-s.scrollLeft,v=t.top-s.scrollTop;y+a.offsetWidth>n.containerElement.offsetWidth?p.right=0:p.left=y,o&&l.top-s.scrollTop+a.offsetHeight>f&&a.offsetHeight<u.top-c-s.scrollTop?p.top=v-a.offsetHeight-c:p.top=v}p.left===n.state.suggestionsPosition.left&&p.top===n.state.suggestionsPosition.top&&p.position===n.state.suggestionsPosition.position||n.setState({suggestionsPosition:p})}}})),g(l(n),"updateHighlighterScroll",(function(){var t=n.inputElement,e=n.highlighterElement;t&&e&&(e.scrollLeft=t.scrollLeft,e.scrollTop=t.scrollTop,e.height=t.height)})),g(l(n),"handleCompositionStart",(function(){Lt=!0})),g(l(n),"handleCompositionEnd",(function(){Lt=!1})),g(l(n),"setSelection",(function(t,e){if(null!==t&&null!==e){var r=n.inputElement;if(r.setSelectionRange)r.setSelectionRange(t,e);else if(r.createTextRange){var o=r.createTextRange();o.collapse(!0),o.moveEnd("character",e),o.moveStart("character",t),o.select()}}})),g(l(n),"updateMentionsQueries",(function(t,e){n._queryId++,n.suggestions={},n.setState({suggestions:{}});var r=n.props.value||"",o=n.props.children,i=yt(o),a=lt(r,i,e,"NULL");if(null!==a){var s=function(t,e){var n=pt(t,e),r=n[n.length-1];return r?r.plainTextIndex+r.display.length:0}(r.substring(0,a),i),u=t.substring(s,e);v().Children.forEach(o,(function(e,r){if(e){var o=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t instanceof RegExp)return t;var n=e.allowSpaceInQuery,r=et(t);return new RegExp("(?:^|\\s)(".concat(r,"([^").concat(n?"":"\\s").concat(r,"]*))$"))}(e.props.trigger,n.props),i=u.match(o);if(i){var a=s+u.indexOf(i[1],i.index);n.queryData(i[2],r,a,a+i[1].length,t)}}}))}})),g(l(n),"clearSuggestions",(function(){n._queryId++,n.suggestions={},n.setState({suggestions:{},focusIndex:0})})),g(l(n),"queryData",(function(t,e,r,o,i){var a=n.props,s=a.children,u=a.ignoreAccents,c=function(t,e){return t instanceof Array?function(n,r){for(var o=[],i=0,a=t.length;i<a;++i){var s=t[i].display||t[i].id;xt(s,n,e)>=0&&o.push(t[i])}return o}:t}(y.Children.toArray(s)[e].props.data,u),l=c(t,n.updateSuggestions.bind(null,n._queryId,e,t,r,o,i));l instanceof Array&&n.updateSuggestions(n._queryId,e,t,r,o,i,l)})),g(l(n),"updateSuggestions",(function(t,e,r,o,i,a,s){if(t===n._queryId){n.suggestions=Bt({},n.suggestions,g({},e,{queryInfo:{childIndex:e,query:r,querySequenceStart:o,querySequenceEnd:i,plainTextValue:a},results:s}));var u=n.state.focusIndex,c=dt(n.suggestions);n.setState({suggestions:n.suggestions,focusIndex:u>=c?Math.max(c-1,0):u})}})),g(l(n),"addMention",(function(t,e){var r=t.id,o=t.display,i=e.childIndex,a=e.querySequenceStart,s=e.querySequenceEnd,u=e.plainTextValue,c=n.props.value||"",l=yt(n.props.children),f=y.Children.toArray(n.props.children)[i].props,p=f.markup,h=f.displayTransform,d=f.appendSpaceOnAdd,g=f.onAdd,v=lt(c,l,a,"START"),m=v+s-a,b=function(t,e,n){return t.replace(nt,e).replace(rt,n)}(p,r,o);d&&(b+=" ");var x=ft(c,v,m,b);n.inputElement.focus();var O=h(r,o);d&&(O+=" ");var w=a+O.length;n.setState({selectionStart:w,selectionEnd:w,setSelectionAfterMentionChange:!0});var S={target:{value:x}},M=pt(x,l),E=ft(u,a,s,O);n.executeOnChange(S,x,E,M),g&&g(r,o,v,m),n.clearSuggestions()})),g(l(n),"isLoading",(function(){var t=!1;return v().Children.forEach(n.props.children,(function(e){t=t||e&&e.props.isLoading})),t})),g(l(n),"isOpened",(function(){return Ot(n.state.selectionStart)&&(0!==dt(n.state.suggestions)||n.isLoading())})),g(l(n),"_queryId",0),n.suggestions={},n.uuidSuggestionsOverlay=Math.random().toString(16).substring(2),n.handleCopy=n.handleCopy.bind(l(n)),n.handleCut=n.handleCut.bind(l(n)),n.handlePaste=n.handlePaste.bind(l(n)),n.state={focusIndex:0,selectionStart:null,selectionEnd:null,suggestions:{},caretPosition:null,suggestionsPosition:{}},n}return d(e,t),s(e,[{key:"componentDidMount",value:function(){document.addEventListener("copy",this.handleCopy),document.addEventListener("cut",this.handleCut),document.addEventListener("paste",this.handlePaste),this.updateSuggestionsPosition()}},{key:"componentDidUpdate",value:function(t,e){e.suggestionsPosition===this.state.suggestionsPosition&&this.updateSuggestionsPosition(),this.state.setSelectionAfterMentionChange&&(this.setState({setSelectionAfterMentionChange:!1}),this.setSelection(this.state.selectionStart,this.state.selectionEnd))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("copy",this.handleCopy),document.removeEventListener("cut",this.handleCut),document.removeEventListener("paste",this.handlePaste)}},{key:"render",value:function(){return v().createElement("div",o({ref:this.setContainerElement},this.props.style),this.renderControl(),this.renderSuggestionsOverlay())}},{key:"handlePaste",value:function(t){if(t.target===this.inputElement&&this.supportsClipboardActions(t)){t.preventDefault();var e=this.state,n=e.selectionStart,r=e.selectionEnd,o=this.props,i=o.value,a=o.children,s=yt(a),u=lt(i,s,n,"START"),c=lt(i,s,r,"END"),l=t.clipboardData.getData("text/react-mentions"),f=t.clipboardData.getData("text/plain"),p=ft(i,u,c,l||f).replace(/\r/g,""),h=ct(p,s),d={target:Bt({},t.target,{value:p})};this.executeOnChange(d,p,h,pt(p,s))}}},{key:"saveSelectionToClipboard",value:function(t){var e=this.state,n=e.selectionStart,r=e.selectionEnd,o=this.props,i=o.children,a=o.value,s=yt(i),u=lt(a,s,n,"START"),c=lt(a,s,r,"END");t.clipboardData.setData("text/plain",t.target.value.slice(n,r)),t.clipboardData.setData("text/react-mentions",a.slice(u,c))}},{key:"supportsClipboardActions",value:function(t){return!!t.clipboardData}},{key:"handleCopy",value:function(t){t.target===this.inputElement&&this.supportsClipboardActions(t)&&(t.preventDefault(),this.saveSelectionToClipboard(t))}},{key:"handleCut",value:function(t){if(t.target===this.inputElement&&this.supportsClipboardActions(t)){t.preventDefault(),this.saveSelectionToClipboard(t);var e=this.state,n=e.selectionStart,r=e.selectionEnd,o=this.props,i=o.children,a=o.value,s=yt(i),u=lt(a,s,n,"START"),c=lt(a,s,r,"END"),l=[a.slice(0,u),a.slice(c)].join(""),f=ct(l,s),p={target:Bt({},t.target,{value:f})};this.executeOnChange(p,l,f,pt(a,s))}}}]),e}(v().Component);g(Rt,"propTypes",zt),g(Rt,"defaultProps",{ignoreAccents:!1,singleLine:!1,allowSuggestionsAboveCursor:!1,onKeyDown:function(){return null},onSelect:function(){return null},onBlur:function(){return null}});var Nt=function(t,e){var n=parseFloat(window.getComputedStyle(t,null).getPropertyValue(e));return isFinite(n)?n:0},Wt=Mt({position:"relative",overflowY:"visible",input:{display:"block",width:"100%",position:"absolute",margin:0,top:0,left:0,boxSizing:"border-box",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",letterSpacing:"inherit"},"&multiLine":{input:Bt({height:"100%",bottom:0,overflow:"hidden",resize:"none"},"undefined"!=typeof navigator&&/iPhone|iPad|iPod/i.test(navigator.userAgent)?{marginTop:1,marginLeft:-3}:null)}},(function(t){var e=t.singleLine;return{"&singleLine":e,"&multiLine":!e}}))(Rt),Ft={fontWeight:"inherit"},Ut=function(t){var e=t.display,n=t.style,r=t.className,o=t.classNames,i=$(Ft,{style:n,className:r,classNames:o});return v().createElement("strong",i,e)};Ut.propTypes={onAdd:Q().func,onRemove:Q().func,renderSuggestion:Q().func,trigger:Q().oneOfType([Q().string,Q().instanceOf(RegExp)]),markup:Q().string,displayTransform:Q().func,allowSpaceInQuery:Q().bool,isLoading:Q().bool},Ut.defaultProps={trigger:"@",markup:"@[__display__](__id__)",displayTransform:function(t,e){return e||t},onAdd:function(){return null},onRemove:function(){return null},renderSuggestion:null,isLoading:!1,appendSpaceOnAdd:!1}},24217:(t,e,n)=>{"use strict";n.d(e,{rU:()=>l});var r,o=n(8156),i=r||(r={});function a(t){var e=t.pathname;e=void 0===e?"/":e;var n=t.search;return n=void 0===n?"":n,t=void 0===(t=t.hash)?"":t,n&&"?"!==n&&(e+="?"===n.charAt(0)?n:"?"+n),t&&"#"!==t&&(e+="#"===t.charAt(0)?t:"#"+t),e}i.Pop="POP",i.Push="PUSH",i.Replace="REPLACE";var s=n(16782);function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}const c=["onClick","reloadDocument","replace","state","target","to"],l=(0,o.forwardRef)((function(t,e){let{onClick:n,reloadDocument:r,replace:i=!1,state:l,target:f,to:p}=t,h=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,c),d=(0,s.oQ)(p),g=function(t,e){let{target:n,replace:r,state:i}=void 0===e?{}:e,u=(0,s.s0)(),c=(0,s.TH)(),l=(0,s.WU)(t);return(0,o.useCallback)((e=>{if(!(0!==e.button||n&&"_self"!==n||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(e))){e.preventDefault();let n=!!r||a(c)===a(l);u(t,{replace:n,state:i})}}),[c,u,l,r,i,n,t])}(p,{replace:i,state:l,target:f});return(0,o.createElement)("a",u({},h,{href:d,onClick:function(t){n&&n(t),t.defaultPrevented||r||g(t)},ref:e,target:f}))}))},16782:(t,e,n)=>{"use strict";n.d(e,{oQ:()=>f,GV:()=>p,TH:()=>h,s0:()=>d,WU:()=>g});var r,o=n(8156),i=r||(r={});function a(t){var e={};if(t){var n=t.indexOf("#");0<=n&&(e.hash=t.substr(n),t=t.substr(0,n)),0<=(n=t.indexOf("?"))&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function s(t,e){if(!t)throw new Error(e)}i.Pop="POP",i.Push="PUSH",i.Replace="REPLACE";const u=(0,o.createContext)(null),c=(0,o.createContext)(null),l=(0,o.createContext)({outlet:null,matches:[]});function f(t){p()||s(!1);let{basename:e,navigator:n}=(0,o.useContext)(u),{hash:r,pathname:i,search:c}=g(t),l=i;if("/"!==e){let n=function(t){return""===t||""===t.pathname?"/":"string"==typeof t?a(t).pathname:t.pathname}(t),r=null!=n&&n.endsWith("/");l="/"===i?e+(r?"/":""):v([e,i])}return n.createHref({pathname:l,search:c,hash:r})}function p(){return null!=(0,o.useContext)(c)}function h(){return p()||s(!1),(0,o.useContext)(c).location}function d(){p()||s(!1);let{basename:t,navigator:e}=(0,o.useContext)(u),{matches:n}=(0,o.useContext)(l),{pathname:r}=h(),i=JSON.stringify(n.map((t=>t.pathnameBase))),a=(0,o.useRef)(!1);return(0,o.useEffect)((()=>{a.current=!0})),(0,o.useCallback)((function(n,o){if(void 0===o&&(o={}),!a.current)return;if("number"==typeof n)return void e.go(n);let s=y(n,JSON.parse(i),r);"/"!==t&&(s.pathname=v([t,s.pathname])),(o.replace?e.replace:e.push)(s,o.state)}),[t,e,i,r])}function g(t){let{matches:e}=(0,o.useContext)(l),{pathname:n}=h(),r=JSON.stringify(e.map((t=>t.pathnameBase)));return(0,o.useMemo)((()=>y(t,JSON.parse(r),n)),[t,r,n])}function y(t,e,n){let r,o="string"==typeof t?a(t):t,i=""===t||""===o.pathname?"/":o.pathname;if(null==i)r=n;else{let t=e.length-1;if(i.startsWith("..")){let e=i.split("/");for(;".."===e[0];)e.shift(),t-=1;o.pathname=e.join("/")}r=t>=0?e[t]:"/"}let s=function(t,e){void 0===e&&(e="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof t?a(t):t,i=n?n.startsWith("/")?n:function(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach((t=>{".."===t?n.length>1&&n.pop():"."!==t&&n.push(t)})),n.length>1?n.join("/"):"/"}(n,e):e;return{pathname:i,search:m(r),hash:b(o)}}(o,r);return i&&"/"!==i&&i.endsWith("/")&&!s.pathname.endsWith("/")&&(s.pathname+="/"),s}const v=t=>t.join("/").replace(/\/\/+/g,"/"),m=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",b=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:""},27308:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>m});var r=n(59740),o=n(7896),i=n(9249),a=n(87371),s=n(45754),u=n(11987),c=n(95058),l=n(8156),f=n.n(l),p=(n(3528),n(47111),n(81997)),h=n(51774);var d,g,y,v=(0,(n(78951),n(61950),n(64486)).m)(h.S);const m=(d=v,y=g=function(t){(0,s.Z)(h,t);var e,n,l=(e=h,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=(0,c.Z)(e);if(n){var o=(0,c.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,u.Z)(this,t)});function h(t){var e;return(0,i.Z)(this,h),(e=l.call(this)).select=void 0,e.lastRequest=void 0,e.mounted=!1,e.optionsCache={},e.handleInputChange=function(t,n){var r=e.props,o=r.cacheOptions,i=r.onInputChange,a=(0,p.G)(t,n,i);if(!a)return delete e.lastRequest,void e.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(o&&e.optionsCache[a])e.setState({inputValue:a,loadedInputValue:a,loadedOptions:e.optionsCache[a],isLoading:!1,passEmptyOptions:!1});else{var s=e.lastRequest={};e.setState({inputValue:a,isLoading:!0,passEmptyOptions:!e.state.loadedInputValue},(function(){e.loadOptions(a,(function(t){e.mounted&&(t&&(e.optionsCache[a]=t),s===e.lastRequest&&(delete e.lastRequest,e.setState({isLoading:!1,loadedInputValue:a,loadedOptions:t||[],passEmptyOptions:!1})))}))}))}return a},e.state={defaultOptions:Array.isArray(t.defaultOptions)?t.defaultOptions:void 0,inputValue:void 0!==t.inputValue?t.inputValue:"",isLoading:!0===t.defaultOptions,loadedOptions:[],passEmptyOptions:!1},e}return(0,a.Z)(h,[{key:"componentDidMount",value:function(){var t=this;this.mounted=!0;var e=this.props.defaultOptions,n=this.state.inputValue;!0===e&&this.loadOptions(n,(function(e){if(t.mounted){var n=!!t.lastRequest;t.setState({defaultOptions:e||[],isLoading:n})}}))}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){t.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),t.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(t.defaultOptions)?t.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(t,e){var n=this.props.loadOptions;if(!n)return e();var r=n(t,e);r&&"function"==typeof r.then&&r.then(e,(function(){return e()}))}},{key:"render",value:function(){var t=this,e=this.props,n=(e.loadOptions,e.isLoading),i=(0,r.Z)(e,["loadOptions","isLoading"]),a=this.state,s=a.defaultOptions,u=a.inputValue,c=a.isLoading,l=a.loadedInputValue,p=a.loadedOptions,h=a.passEmptyOptions?[]:u&&l?p:s||[];return f().createElement(d,(0,o.Z)({},i,{ref:function(e){t.select=e},options:h,isLoading:c||n,onInputChange:this.handleInputChange}))}}]),h}(l.Component),g.defaultProps={cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1},y)},70347:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>S});var r=n(7896),o=n(38777),i=n(56666),a=n(9249),s=n(87371),u=n(45754),c=n(11987),l=n(95058),f=n(8156),p=n.n(f),h=(n(3528),n(47111),n(81997)),d=n(51774),g=(n(78951),n(61950),n(64486));function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var v,m,b,x=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,n=String(t).toLowerCase(),r=String(e.value).toLowerCase(),o=String(e.label).toLowerCase();return r===n||o===n},O=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({allowCreateWhileLoading:!1,createOptionPosition:"last"},{formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,e,n){return!(!t||e.some((function(e){return x(t,e)}))||n.some((function(e){return x(t,e)})))},getNewOptionData:function(t,e){return{label:e,value:t,__isNew__:!0}}}),w=(v=d.S,b=m=function(t){(0,u.Z)(f,t);var e,n,i=(e=f,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=(0,l.Z)(e);if(n){var o=(0,l.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,c.Z)(this,t)});function f(t){var e;(0,a.Z)(this,f),(e=i.call(this,t)).select=void 0,e.onChange=function(t,n){var r=e.props,i=r.getNewOptionData,a=r.inputValue,s=r.isMulti,u=r.onChange,c=r.onCreateOption,l=r.value,f=r.name;if("select-option"!==n.action)return u(t,n);var p=e.state.newOption,d=Array.isArray(t)?t:[t];if(d[d.length-1]!==p)u(t,n);else if(c)c(a);else{var g=i(a,a),y={action:"create-option",name:f};u(s?[].concat((0,o.Z)((0,h.C)(l)),[g]):g,y)}};var n=t.options||[];return e.state={newOption:void 0,options:n},e}return(0,s.Z)(f,[{key:"UNSAFE_componentWillReceiveProps",value:function(t){var e=t.allowCreateWhileLoading,n=t.createOptionPosition,r=t.formatCreateLabel,i=t.getNewOptionData,a=t.inputValue,s=t.isLoading,u=t.isValidNewOption,c=t.value,l=t.options||[],f=this.state.newOption;f=u(a,(0,h.C)(c),l)?i(a,r(a)):void 0,this.setState({newOption:f,options:!e&&s||!f?l:"first"===n?[f].concat((0,o.Z)(l)):[].concat((0,o.Z)(l),[f])})}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){var t=this,e=this.state.options;return p().createElement(v,(0,r.Z)({},this.props,{ref:function(e){t.select=e},options:e,onChange:this.onChange}))}}]),f}(f.Component),m.defaultProps=O,b);const S=(0,g.m)(w)},87935:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>Ht,bO:()=>H});var r=n(8156),o=n.n(r),i=n(95099),a=n.n(i),s=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty;function l(t,e){return function(n,r,o){return t(n,r,o)&&e(n,r,o)}}function f(t){return function(e,n,r){if(!e||!n||"object"!=typeof e||"object"!=typeof n)return t(e,n,r);var o=r.cache,i=o.get(e),a=o.get(n);if(i&&a)return i===n&&a===e;o.set(e,n),o.set(n,e);var s=t(e,n,r);return o.delete(e),o.delete(n),s}}function p(t){return s(t).concat(u(t))}var h=Object.hasOwn||function(t,e){return c.call(t,e)};function d(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var g="_owner",y=Object.getOwnPropertyDescriptor,v=Object.keys;function m(t,e,n){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function b(t,e){return d(t.getTime(),e.getTime())}function x(t,e,n){if(t.size!==e.size)return!1;for(var r,o,i={},a=t.entries(),s=0;(r=a.next())&&!r.done;){for(var u=e.entries(),c=!1,l=0;(o=u.next())&&!o.done;){var f=r.value,p=f[0],h=f[1],d=o.value,g=d[0],y=d[1];c||i[l]||!(c=n.equals(p,g,s,l,t,e,n)&&n.equals(h,y,p,g,t,e,n))||(i[l]=!0),l++}if(!c)return!1;s++}return!0}function O(t,e,n){var r,o=v(t),i=o.length;if(v(e).length!==i)return!1;for(;i-- >0;){if((r=o[i])===g&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!h(e,r)||!n.equals(t[r],e[r],r,r,t,e,n))return!1}return!0}function w(t,e,n){var r,o,i,a=p(t),s=a.length;if(p(e).length!==s)return!1;for(;s-- >0;){if((r=a[s])===g&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!h(e,r))return!1;if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;if(o=y(t,r),i=y(e,r),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function S(t,e){return d(t.valueOf(),e.valueOf())}function M(t,e){return t.source===e.source&&t.flags===e.flags}function E(t,e,n){if(t.size!==e.size)return!1;for(var r,o,i={},a=t.values();(r=a.next())&&!r.done;){for(var s=e.values(),u=!1,c=0;(o=s.next())&&!o.done;)u||i[c]||!(u=n.equals(r.value,o.value,r.value,o.value,t,e,n))||(i[c]=!0),c++;if(!u)return!1}return!0}function k(t,e){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}var C=Array.isArray,P="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,A=Object.assign,j=Object.prototype.toString.call.bind(Object.prototype.toString),T=_();function _(t){void 0===t&&(t={});var e,n=t.circular,r=void 0!==n&&n,o=t.createInternalComparator,i=t.createState,a=t.strict,s=void 0!==a&&a,u=function(t){var e=t.circular,n=t.createCustomConfig,r=t.strict,o={areArraysEqual:r?w:m,areDatesEqual:b,areMapsEqual:r?l(x,w):x,areObjectsEqual:r?w:O,arePrimitiveWrappersEqual:S,areRegExpsEqual:M,areSetsEqual:r?l(E,w):E,areTypedArraysEqual:r?w:k};if(n&&(o=A({},o,n(o))),e){var i=f(o.areArraysEqual),a=f(o.areMapsEqual),s=f(o.areObjectsEqual),u=f(o.areSetsEqual);o=A({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:u})}return o}(t),c=function(t){var e=t.areArraysEqual,n=t.areDatesEqual,r=t.areMapsEqual,o=t.areObjectsEqual,i=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,s=t.areSetsEqual,u=t.areTypedArraysEqual;return function(t,c,l){if(t===c)return!0;if(null==t||null==c||"object"!=typeof t||"object"!=typeof c)return t!=t&&c!=c;var f=t.constructor;if(f!==c.constructor)return!1;if(f===Object)return o(t,c,l);if(C(t))return e(t,c,l);if(null!=P&&P(t))return u(t,c,l);if(f===Date)return n(t,c,l);if(f===RegExp)return a(t,c,l);if(f===Map)return r(t,c,l);if(f===Set)return s(t,c,l);var p=j(t);return"[object Date]"===p?n(t,c,l):"[object RegExp]"===p?a(t,c,l):"[object Map]"===p?r(t,c,l):"[object Set]"===p?s(t,c,l):"[object Object]"===p?"function"!=typeof t.then&&"function"!=typeof c.then&&o(t,c,l):"[object Arguments]"===p?o(t,c,l):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&i(t,c,l)}}(u);return function(t){var e=t.circular,n=t.comparator,r=t.createState,o=t.equals,i=t.strict;if(r)return function(t,a){var s=r(),u=s.cache,c=void 0===u?e?new WeakMap:void 0:u,l=s.meta;return n(t,a,{cache:c,equals:o,meta:l,strict:i})};if(e)return function(t,e){return n(t,e,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(t,e){return n(t,e,a)}}({circular:r,comparator:c,createState:i,equals:o?o(c):(e=c,function(t,n,r,o,i,a,s){return e(t,n,s)}),strict:s})}function D(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}function B(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=function r(o){n<0&&(n=o),o-n>e?(t(o),n=-1):D(r)};requestAnimationFrame(r)}function I(t){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(t)}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function z(){var t=function(){return null},e=!1,n=function n(r){if(!e){if(Array.isArray(r)){if(!r.length)return;var o=function(t){if(Array.isArray(t))return t}(s=r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(s)||function(t,e){if(t){if("string"==typeof t)return L(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(t,e):void 0}}(s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o.slice(1);return"number"==typeof i?void B(n.bind(null,a),i):(n(i),void B(n.bind(null,a)))}"object"===I(r)&&t(r),"function"==typeof r&&r()}var s};return{stop:function(){e=!0},start:function(t){e=!1,n(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function R(t){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(t)}function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach((function(e){F(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function F(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==R(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===R(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}_({strict:!0}),_({circular:!0}),_({circular:!0,strict:!0}),_({createInternalComparator:function(){return d}}),_({strict:!0,createInternalComparator:function(){return d}}),_({circular:!0,createInternalComparator:function(){return d}}),_({circular:!0,createInternalComparator:function(){return d},strict:!0});var U=["Webkit","Moz","O","ms"],V=["-webkit-","-moz-","-o-","-ms-"],q=["transform","transformOrigin","transition"],G=function(t){return t},Z=function(t,e){return Object.keys(e).reduce((function(n,r){return W(W({},n),{},F({},r,t(r,e[r])))}),{})},H=function(t){return Object.keys(t).reduce((function(t,e){return W(W({},t),function(t,e){if(-1===q.indexOf(t))return F({},t,Number.isNaN(e)?0:e);var n="transition"===t,r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),o=e;return U.reduce((function(t,i,a){return n&&(o=e.replace(/(transform|transform-origin)/gim,"".concat(V[a],"$1"))),W(W({},t),{},F({},i+r,o))}),{})}(e,t[e]))}),t)},$=function(t,e,n){return t.map((function(t){return"".concat((r=t,r.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(n);var r})).join(",")};function Y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||X(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(t,e){if(t){if("string"==typeof t)return K(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(t,e):void 0}}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Q=1e-4,J=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},tt=function(t,e){return t.map((function(t,n){return t*Math.pow(e,n)})).reduce((function(t,e){return t+e}))},et=function(t,e){return function(n){var r=J(t,e);return tt(r,n)}},nt=function(t,e){return function(n){var r,o=J(t,e),i=[].concat(function(t){if(Array.isArray(t))return K(t)}(r=o.map((function(t,e){return t*e})).slice(1))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||X(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]);return tt(i,n)}},rt=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":r=0,o=0,i=1,a=1;break;case"ease":r=.25,o=.1,i=.25,a=1;break;case"ease-in":r=.42,o=0,i=1,a=1;break;case"ease-out":r=.42,o=0,i=.58,a=1;break;case"ease-in-out":r=0,o=0,i=.58,a=1;break;default:var s=e[0].split("(");if("cubic-bezier"===s[0]&&4===s[1].split(")")[0].split(",").length){var u=s[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),c=Y(u,4);r=c[0],o=c[1],i=c[2],a=c[3]}}[r,i,o,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1}));var l=et(r,i),f=et(o,a),p=nt(r,i),h=function(t){return t>1?1:t<0?0:t},d=function(t){for(var e=t>1?1:t,n=e,r=0;r<8;++r){var o=l(n)-e,i=p(n);if(Math.abs(o-e)<Q||i<Q)return f(n);n=h(n-o/i)}return f(n)};return d.isStepper=!1,d},ot=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,n=void 0===e?100:e,r=t.damping,o=void 0===r?8:r,i=t.dt,a=void 0===i?17:i,s=function(t,e,r){var i=r+(-(t-e)*n-r*o)*a/1e3,s=r*a/1e3+t;return Math.abs(s-e)<Q&&Math.abs(i)<Q?[e,0]:[s,i]};return s.isStepper=!0,s.dt=a,s};function it(t){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},it(t)}function at(t){return function(t){if(Array.isArray(t))return ft(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||lt(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function st(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?st(Object(n),!0).forEach((function(e){ct(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ct(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==it(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==it(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===it(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lt(t,e){if(t){if("string"==typeof t)return ft(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ft(t,e):void 0}}function ft(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var pt=function(t,e,n){return t+(e-t)*n},ht=function(t){return t.from!==t.to},dt=function t(e,n,r){var o=Z((function(t,n){if(ht(n)){var r=(a=e(n.from,n.to,n.velocity),s=2,function(t){if(Array.isArray(t))return t}(a)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(a,s)||lt(a,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],i=r[1];return ut(ut({},n),{},{from:o,velocity:i})}var a,s;return n}),n);return r<1?Z((function(t,e){return ht(e)?ut(ut({},e),{},{velocity:pt(e.velocity,o[t].velocity,r),from:pt(e.from,o[t].from,r)}):e}),n):t(e,o,r-1)};function gt(t){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gt(t)}var yt=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function vt(t){return function(t){if(Array.isArray(t))return mt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return mt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bt(Object(n),!0).forEach((function(e){Ot(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ot(t,e,n){return(e=St(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,St(r.key),r)}}function St(t){var e=function(t,e){if("object"!==gt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==gt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===gt(e)?e:String(e)}function Mt(t,e){return Mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Mt(t,e)}function Et(t,e){if(e&&("object"===gt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return kt(t)}function kt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ct(t){return Ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ct(t)}var Pt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mt(t,e)}(u,t);var e,n,i,a,s=(i=u,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ct(i);if(a){var n=Ct(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Et(this,t)});function u(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u);var r=(n=s.call(this,t,e)).props,o=r.isActive,i=r.attributeName,a=r.from,c=r.to,l=r.steps,f=r.children,p=r.duration;if(n.handleStyleChange=n.handleStyleChange.bind(kt(n)),n.changeStyle=n.changeStyle.bind(kt(n)),!o||p<=0)return n.state={style:{}},"function"==typeof f&&(n.state={style:c}),Et(n);if(l&&l.length)n.state={style:l[0].style};else if(a){if("function"==typeof f)return n.state={style:a},Et(n);n.state={style:i?Ot({},i,a):a}}else n.state={style:{}};return n}return e=u,n=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,n=t.canBegin;this.mounted=!0,e&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.isActive,r=e.canBegin,o=e.attributeName,i=e.shouldReAnimate,a=e.to,s=e.from,u=this.state.style;if(r)if(n){if(!(T(t.to,a)&&t.canBegin&&t.isActive)){var c=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var l=c||i?s:t.to;if(this.state&&u){var f={style:o?Ot({},o,l):l};(o&&[o]!==l||!o&&u!==l)&&this.setState(f)}this.runAnimation(xt(xt({},this.props),{},{from:l,begin:0}))}}else{var p={style:o?Ot({},o,a):a};this.state&&u&&(o&&u[o]!==a||!o&&u!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,n=t.from,r=t.to,o=t.duration,i=t.easing,a=t.begin,s=t.onAnimationEnd,u=t.onAnimationStart,c=function(t,e,n,r,o){var i,a,s,u,c=(i=t,a=e,[Object.keys(i),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),l=c.reduce((function(n,r){return ut(ut({},n),{},ct({},r,[t[r],e[r]]))}),{}),f=c.reduce((function(n,r){return ut(ut({},n),{},ct({},r,{from:t[r],velocity:0,to:e[r]}))}),{}),p=-1,h=function(){return null};return h=n.isStepper?function(r){s||(s=r);var i=(r-s)/n.dt;f=dt(n,f,i),o(ut(ut(ut({},t),e),Z((function(t,e){return e.from}),f))),s=r,Object.values(f).filter(ht).length&&(p=requestAnimationFrame(h))}:function(i){u||(u=i);var a=(i-u)/r,s=Z((function(t,e){return pt.apply(void 0,at(e).concat([n(a)]))}),l);if(o(ut(ut(ut({},t),e),s)),a<1)p=requestAnimationFrame(h);else{var c=Z((function(t,e){return pt.apply(void 0,at(e).concat([n(1)]))}),l);o(ut(ut(ut({},t),e),c))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(p)}}}(n,r,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return rt(r);case"spring":return ot();default:if("cubic-bezier"===r.split("(")[0])return rt(r)}return"function"==typeof r?r:null}(i),o,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=c()},o,s])}},{key:"runStepAnimation",value:function(t){var e=this,n=t.steps,r=t.begin,o=t.onAnimationStart,i=n[0],a=i.style,s=i.duration,u=void 0===s?0:s;return this.manager.start([o].concat(vt(n.reduce((function(t,r,o){if(0===o)return t;var i=r.duration,a=r.easing,s=void 0===a?"ease":a,u=r.style,c=r.properties,l=r.onAnimationEnd,f=o>0?n[o-1]:r,p=c||Object.keys(u);if("function"==typeof s||"spring"===s)return[].concat(vt(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:i,easing:s}),i]);var h=$(p,i,s),d=xt(xt(xt({},f.style),u),{},{transition:h});return[].concat(vt(t),[d,i,l]).filter(G)}),[a,Math.max(u,r)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=z());var e=t.begin,n=t.duration,r=t.attributeName,o=t.to,i=t.easing,a=t.onAnimationStart,s=t.onAnimationEnd,u=t.steps,c=t.children,l=this.manager;if(this.unSubscribe=l.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof c&&"spring"!==i)if(u.length>1)this.runStepAnimation(t);else{var f=r?Ot({},r,o):o,p=$(Object.keys(f),n,i);l.start([a,e,xt(xt({},f),{},{transition:p}),n,s])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children,n=(t.begin,t.duration),i=(t.attributeName,t.easing,t.isActive),a=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,yt)),s=r.Children.count(e),u=H(this.state.style);if("function"==typeof e)return e(u);if(!i||0===s||n<=0)return e;var c=function(t){var e=t.props,n=e.style,o=void 0===n?{}:n,i=e.className;return(0,r.cloneElement)(t,xt(xt({},a),{},{style:xt(xt({},o),u),className:i}))};return 1===s?c(r.Children.only(e)):o().createElement("div",null,r.Children.map(e,(function(t){return c(t)})))}}],n&&wt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.PureComponent);Pt.displayName="Animate",Pt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},Pt.propTypes={from:a().oneOfType([a().object,a().string]),to:a().oneOfType([a().object,a().string]),attributeName:a().string,duration:a().number,begin:a().number,easing:a().oneOfType([a().string,a().func]),steps:a().arrayOf(a().shape({duration:a().number.isRequired,style:a().object.isRequired,easing:a().oneOfType([a().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),a().func]),properties:a().arrayOf("string"),onAnimationEnd:a().func})),children:a().oneOfType([a().node,a().func]),isActive:a().bool,canBegin:a().bool,onAnimationEnd:a().func,shouldReAnimate:a().bool,onAnimationStart:a().func,onAnimationReStart:a().func};const At=Pt;var jt=n(44824),Tt=["children","appearOptions","enterOptions","leaveOptions"];function _t(t){return _t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_t(t)}function Dt(){return Dt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Dt.apply(this,arguments)}function Bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function It(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bt(Object(n),!0).forEach((function(e){Ft(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Lt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ut(r.key),r)}}function zt(t,e){return zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zt(t,e)}function Rt(t,e){if(e&&("object"===_t(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Nt(t)}function Nt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Wt(t){return Wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wt(t)}function Ft(t,e,n){return(e=Ut(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ut(t){var e=function(t,e){if("object"!==_t(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==_t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===_t(e)?e:String(e)}void 0===Number.isFinite&&(Number.isFinite=function(t){return"number"==typeof t&&isFinite(t)});var Vt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,n=t.duration;return e&&e.length?e.reduce((function(t,e){return t+(Number.isFinite(e.duration)&&e.duration>0?e.duration:0)}),0):Number.isFinite(n)?n:0},qt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zt(t,e)}(u,t);var e,n,i,a,s=(i=u,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Wt(i);if(a){var n=Wt(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Rt(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),Ft(Nt(t=s.call(this)),"handleEnter",(function(e,n){var r=t.props,o=r.appearOptions,i=r.enterOptions;t.handleStyleActive(n?o:i)})),Ft(Nt(t),"handleExit",(function(){var e=t.props.leaveOptions;t.handleStyleActive(e)})),t.state={isActive:!1},t}return e=u,(n=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(It(It({},t),{},{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,n=t.enterOptions,r=t.leaveOptions;return Vt(e)+Vt(n)+Vt(r)}},{key:"render",value:function(){var t=this,e=this.props,n=e.children,i=(e.appearOptions,e.enterOptions,e.leaveOptions,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(e,Tt));return o().createElement(jt.Transition,Dt({},i,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return o().createElement(At,t.state,r.Children.only(n))}))}}])&&Lt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Component);qt.propTypes={appearOptions:a().object,enterOptions:a().object,leaveOptions:a().object,children:a().element};const Gt=qt;function Zt(t){var e=t.component,n=t.children,i=t.appear,a=t.enter,s=t.leave;return o().createElement(jt.TransitionGroup,{component:e},r.Children.map(n,(function(t,e){return o().createElement(Gt,{appearOptions:i,enterOptions:a,leaveOptions:s,key:"child-".concat(e)},t)})))}Zt.propTypes={appear:a().object,enter:a().object,leave:a().object,children:a().oneOfType([a().array,a().element]),component:a().any},Zt.defaultProps={component:"span"};const Ht=At},46006:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=void 0,function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}e.default=t}(n(95099));var r=s(n(2196)),o=s(n(24812)),i=s(n(8156)),a=s(n(24815));function s(t){return t&&t.__esModule?t:{default:t}}function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}n(22911);var c=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,r.default)(t,e)}))},l=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,o.default)(t,e)}))},f=function(t){var e,n;function r(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).onEnter=function(t,n){var r=e.getClassNames(n?"appear":"enter").className;e.removeClasses(t,"exit"),c(t,r),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var r=e.getClassNames(n?"appear":"enter").activeClassName;e.reflowAndAddClass(t,r),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var r=e.getClassNames("appear").doneClassName,o=e.getClassNames("enter").doneClassName,i=n?r+" "+o:o;e.removeClasses(t,n?"appear":"enter"),c(t,i),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.getClassNames("exit").className;e.removeClasses(t,"appear"),e.removeClasses(t,"enter"),c(t,n),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.getClassNames("exit").activeClassName;e.reflowAndAddClass(t,n),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.getClassNames("exit").doneClassName;e.removeClasses(t,"exit"),c(t,n),e.props.onExited&&e.props.onExited(t)},e.getClassNames=function(t){var n=e.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+t:n[t];return{className:o,activeClassName:r?o+"-active":n[t+"Active"],doneClassName:r?o+"-done":n[t+"Done"]}},e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.removeClasses=function(t,e){var n=this.getClassNames(e),r=n.className,o=n.activeClassName,i=n.doneClassName;r&&l(t,r),o&&l(t,o),i&&l(t,i)},o.reflowAndAddClass=function(t,e){e&&(t&&t.scrollTop,c(t,e))},o.render=function(){var t=u({},this.props);return delete t.classNames,i.default.createElement(a.default,u({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(i.default.Component);f.defaultProps={classNames:""},f.propTypes={};var p=f;e.default=p,t.exports=e.default},639:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=void 0,a(n(95099));var r=a(n(8156)),o=n(47111),i=a(n(49634));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){var e,n;function a(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).handleEnter=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEnter",0,n)},e.handleEntering=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEntering",0,n)},e.handleEntered=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEntered",0,n)},e.handleExit=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExit",1,n)},e.handleExiting=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExiting",1,n)},e.handleExited=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExited",1,n)},e}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s=a.prototype;return s.handleLifecycle=function(t,e,n){var i,a=this.props.children,s=r.default.Children.toArray(a)[e];s.props[t]&&(i=s.props)[t].apply(i,n),this.props[t]&&this.props[t]((0,o.findDOMNode)(this))},s.render=function(){var t=this.props,e=t.children,n=t.in,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,["children","in"]),a=r.default.Children.toArray(e),s=a[0],u=a[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(i.default,o,n?r.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(u,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);s.propTypes={};var u=s;e.default=u,t.exports=e.default},24815:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}return e.default=t,e}(n(95099)),o=s(n(8156)),i=s(n(47111)),a=n(46847);function s(t){return t&&t.__esModule?t:{default:t}}n(22911);var u="unmounted";e.UNMOUNTED=u;var c="exited";e.EXITED=c;var l="entering";e.ENTERING=l;var f="entered";e.ENTERED=f;var p="exiting";e.EXITING=p;var h=function(t){var e,n;function r(e,n){var r;r=t.call(this,e,n)||this;var o,i=n.transitionGroup,a=i&&!i.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?a?(o=c,r.appearStatus=l):o=f:o=e.unmountOnExit||e.mountOnEnter?u:c,r.state={status:o},r.nextCallback=null,r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(t,e){return t.in&&e.status===u?{status:c}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==l&&n!==f&&(e=l):n!==l&&n!==f||(e=p)}this.updateStatus(!1,e)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},a.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e){this.cancelNextCallback();var n=i.default.findDOMNode(this);e===l?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:u})},a.performEnter=function(t,e){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,i=this.getTimeouts(),a=o?i.appear:i.enter;e||r?(this.props.onEnter(t,o),this.safeSetState({status:l},(function(){n.props.onEntering(t,o),n.onTransitionEnd(t,a,(function(){n.safeSetState({status:f},(function(){n.props.onEntered(t,o)}))}))}))):this.safeSetState({status:f},(function(){n.props.onEntered(t)}))},a.performExit=function(t){var e=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(t),this.safeSetState({status:p},(function(){e.props.onExiting(t),e.onTransitionEnd(t,r.exit,(function(){e.safeSetState({status:c},(function(){e.props.onExited(t)}))}))}))):this.safeSetState({status:c},(function(){e.props.onExited(t)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},a.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(t,e,n){this.setNextCallback(n);var r=null==e&&!this.props.addEndListener;t&&!r?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},a.render=function(){var t=this.state.status;if(t===u)return null;var e=this.props,n=e.children,r=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(e,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(t,r);var i=o.default.Children.only(n);return o.default.cloneElement(i,r)},r}(o.default.Component);function d(){}h.contextTypes={transitionGroup:r.object},h.childContextTypes={transitionGroup:function(){}},h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:d,onEntering:d,onEntered:d,onExit:d,onExiting:d,onExited:d},h.UNMOUNTED=0,h.EXITED=1,h.ENTERING=2,h.ENTERED=3,h.EXITING=4;var g=(0,a.polyfill)(h);e.default=g},49634:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=void 0;var r=s(n(95099)),o=s(n(8156)),i=n(46847),a=n(68620);function s(t){return t&&t.__esModule?t:{default:t}}function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var l=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},f=function(t){var e,n;function r(e,n){var r,o=(r=t.call(this,e,n)||this).handleExited.bind(c(c(r)));return r.state={handleExited:o,firstRender:!0},r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},i.componentDidMount=function(){this.appeared=!0,this.mounted=!0},i.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(t,e){var n=e.children,r=e.handleExited;return{children:e.firstRender?(0,a.getInitialChildMapping)(t,r):(0,a.getNextChildMapping)(t,n,r),firstRender:!1}},i.handleExited=function(t,e){var n=(0,a.getChildMapping)(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var n=u({},e.children);return delete n[t.key],{children:n}})))},i.render=function(){var t=this.props,e=t.component,n=t.childFactory,r=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,["component","childFactory"]),i=l(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===e?i:o.default.createElement(e,r,i)},r}(o.default.Component);f.childContextTypes={transitionGroup:r.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(t){return t}};var p=(0,i.polyfill)(f);e.default=p,t.exports=e.default},44824:(t,e,n)=>{"use strict";var r=s(n(46006)),o=s(n(639)),i=s(n(49634)),a=s(n(24815));function s(t){return t&&t.__esModule?t:{default:t}}t.exports={Transition:a.default,TransitionGroup:i.default,ReplaceTransition:o.default,CSSTransition:r.default}},68620:(t,e,n)=>{"use strict";e.__esModule=!0,e.getChildMapping=o,e.mergeChildMappings=i,e.getInitialChildMapping=function(t,e){return o(t.children,(function(n){return(0,r.cloneElement)(n,{onExited:e.bind(null,n),in:!0,appear:a(n,"appear",t),enter:a(n,"enter",t),exit:a(n,"exit",t)})}))},e.getNextChildMapping=function(t,e,n){var s=o(t.children),u=i(e,s);return Object.keys(u).forEach((function(o){var i=u[o];if((0,r.isValidElement)(i)){var c=o in e,l=o in s,f=e[o],p=(0,r.isValidElement)(f)&&!f.props.in;!l||c&&!p?l||!c||p?l&&c&&(0,r.isValidElement)(f)&&(u[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:f.props.in,exit:a(i,"exit",t),enter:a(i,"enter",t)})):u[o]=(0,r.cloneElement)(i,{in:!1}):u[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:a(i,"exit",t),enter:a(i,"enter",t)})}})),u};var r=n(8156);function o(t,e){var n=Object.create(null);return t&&r.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return e&&(0,r.isValidElement)(t)?e(t):t}(t)})),n}function i(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r,o=Object.create(null),i=[];for(var a in t)a in e?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var u in e){if(o[u])for(r=0;r<o[u].length;r++){var c=o[u][r];s[o[u][r]]=n(c)}s[u]=n(u)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}function a(t,e,n){return null!=n[e]?n[e]:t.props[e]}},22911:(t,e,n)=>{"use strict";var r;e.__esModule=!0,e.classNamesShape=e.timeoutsShape=void 0,(r=n(95099))&&r.__esModule,e.timeoutsShape=null,e.classNamesShape=null},31396:(t,e,n)=>{"use strict";n.d(e,{Z:()=>A});var r=n(8156),o=n.n(r),i=n(95099),a=n.n(i),s=n(25473),u=n.n(s),c=n(46847);function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function m(t,e){return m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},m(t,e)}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function x(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function O(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?x(t):e}function w(t){return function(){var e,n=v(t);if(b()){var r=v(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return O(this,e)}}var S=function(t){y(n,t);var e=w(n);function n(){return l(this,n),e.apply(this,arguments)}return p(n,[{key:"render",value:function(){var t=this.props,e=t.children,n=t.className,r=t.split,i=t.style,a=t.size,s=t.eleRef,u=["Pane",r,n],c={flex:1,position:"relative",outline:"none"};return void 0!==a&&("vertical"===r?c.width=a:(c.height=a,c.display="flex"),c.flex="none"),c=Object.assign({},c,i||{}),o().createElement("div",{ref:s,className:u.join(" "),style:c},e)}}]),n}(o().PureComponent);S.propTypes={className:a().string.isRequired,children:a().node.isRequired,size:a().oneOfType([a().string,a().number]),split:a().oneOf(["vertical","horizontal"]),style:u(),eleRef:a().func},S.defaultProps={};var M="Resizer",E=function(t){y(n,t);var e=w(n);function n(){return l(this,n),e.apply(this,arguments)}return p(n,[{key:"render",value:function(){var t=this.props,e=t.className,n=t.onClick,r=t.onDoubleClick,i=t.onMouseDown,a=t.onTouchEnd,s=t.onTouchStart,u=t.resizerClassName,c=t.split,l=t.style,f=[u,c,e];return o().createElement("span",{role:"presentation",className:f.join(" "),style:l,onMouseDown:function(t){return i(t)},onTouchStart:function(t){t.preventDefault(),s(t)},onTouchEnd:function(t){t.preventDefault(),a(t)},onClick:function(t){n&&(t.preventDefault(),n(t))},onDoubleClick:function(t){r&&(t.preventDefault(),r(t))}})}}]),n}(o().Component);function k(t,e){if(t.selection)t.selection.empty();else try{e.getSelection().removeAllRanges()}catch(t){}}function C(t,e,n,r){if("number"==typeof r){var o="number"==typeof e?e:0,i="number"==typeof n&&n>=0?n:1/0;return Math.max(o,Math.min(i,r))}return void 0!==t?t:e}E.propTypes={className:a().string.isRequired,onClick:a().func,onDoubleClick:a().func,onMouseDown:a().func.isRequired,onTouchStart:a().func.isRequired,onTouchEnd:a().func.isRequired,split:a().oneOf(["vertical","horizontal"]),style:u(),resizerClassName:a().string.isRequired},E.defaultProps={resizerClassName:M};var P=function(t){y(n,t);var e=w(n);function n(t){var r;l(this,n),(r=e.call(this,t)).onMouseDown=r.onMouseDown.bind(x(r)),r.onTouchStart=r.onTouchStart.bind(x(r)),r.onMouseMove=r.onMouseMove.bind(x(r)),r.onTouchMove=r.onTouchMove.bind(x(r)),r.onMouseUp=r.onMouseUp.bind(x(r));var o=t.size,i=t.defaultSize,a=t.minSize,s=t.maxSize,u=t.primary,c=void 0!==o?o:C(i,a,s,null);return r.state={active:!1,resized:!1,pane1Size:"first"===u?c:void 0,pane2Size:"second"===u?c:void 0,instanceProps:{size:o}},r}return p(n,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("touchmove",this.onTouchMove),this.setState(n.getSizeUpdate(this.props,this.state))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("touchmove",this.onTouchMove)}},{key:"onMouseDown",value:function(t){var e=Object.assign({},t,{touches:[{clientX:t.clientX,clientY:t.clientY}]});this.onTouchStart(e)}},{key:"onTouchStart",value:function(t){var e=this.props,n=e.allowResize,r=e.onDragStarted,o=e.split;if(n){k(document,window);var i="vertical"===o?t.touches[0].clientX:t.touches[0].clientY;"function"==typeof r&&r(),this.setState({active:!0,position:i})}}},{key:"onMouseMove",value:function(t){var e=Object.assign({},t,{touches:[{clientX:t.clientX,clientY:t.clientY}]});this.onTouchMove(e)}},{key:"onTouchMove",value:function(t){var e=this.props,n=e.allowResize,r=e.maxSize,o=e.minSize,i=e.onChange,a=e.split,s=e.step,u=this.state,c=u.active,l=u.position;if(n&&c){k(document,window);var f="first"===this.props.primary,p=f?this.pane1:this.pane2,d=f?this.pane2:this.pane1;if(p){var g=p,y=d;if(g.getBoundingClientRect){var v=g.getBoundingClientRect().width,m=g.getBoundingClientRect().height,b="vertical"===a?v:m,x=l-("vertical"===a?t.touches[0].clientX:t.touches[0].clientY);if(s){if(Math.abs(x)<s)return;x=~~(x/s)*s}var O=f?x:-x;parseInt(window.getComputedStyle(g).order)>parseInt(window.getComputedStyle(y).order)&&(O=-O);var w=r;if(void 0!==r&&r<=0){var S=this.splitPane;w="vertical"===a?S.getBoundingClientRect().width+r:S.getBoundingClientRect().height+r}var M=b-O,E=l-x;M<o?M=o:void 0!==r&&M>w?M=w:this.setState({position:E,resized:!0}),i&&i(M),this.setState(h({draggedSize:M},f?"pane1Size":"pane2Size",M))}}}}},{key:"onMouseUp",value:function(){var t=this.props,e=t.allowResize,n=t.onDragFinished,r=this.state,o=r.active,i=r.draggedSize;e&&o&&("function"==typeof n&&n(i),this.setState({active:!1}))}},{key:"render",value:function(){var t=this,e=this.props,n=e.allowResize,r=e.children,i=e.className,a=e.onResizerClick,s=e.onResizerDoubleClick,u=e.paneClassName,c=e.pane1ClassName,l=e.pane2ClassName,f=e.paneStyle,p=e.pane1Style,h=e.pane2Style,d=e.resizerClassName,y=e.resizerStyle,v=e.split,m=e.style,b=this.state,x=b.pane1Size,O=b.pane2Size,w=n?"":"disabled",k=d?"".concat(d," ").concat(M):d,C=function(t){return o().Children.toArray(t).filter((function(t){return t}))}(r),P=g({display:"flex",flex:1,height:"100%",position:"absolute",outline:"none",overflow:"hidden",MozUserSelect:"text",WebkitUserSelect:"text",msUserSelect:"text",userSelect:"text"},m);"vertical"===v?Object.assign(P,{flexDirection:"row",left:0,right:0}):Object.assign(P,{bottom:0,flexDirection:"column",minHeight:"100%",top:0,width:"100%"});var A=["SplitPane",i,v,w],j=g({},f,{},p),T=g({},f,{},h),_=["Pane1",u,c].join(" "),D=["Pane2",u,l].join(" ");return o().createElement("div",{className:A.join(" "),ref:function(e){t.splitPane=e},style:P},o().createElement(S,{className:_,key:"pane1",eleRef:function(e){t.pane1=e},size:x,split:v,style:j},C[0]),o().createElement(E,{className:w,onClick:a,onDoubleClick:s,onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onTouchEnd:this.onMouseUp,key:"resizer",resizerClassName:k,split:v,style:y||{}}),o().createElement(S,{className:D,key:"pane2",eleRef:function(e){t.pane2=e},size:O,split:v,style:T},C[1]))}}],[{key:"getDerivedStateFromProps",value:function(t,e){return n.getSizeUpdate(t,e)}},{key:"getSizeUpdate",value:function(t,e){var n={};if(e.instanceProps.size===t.size&&void 0!==t.size)return{};var r=void 0!==t.size?t.size:C(t.defaultSize,t.minSize,t.maxSize,e.draggedSize);void 0!==t.size&&(n.draggedSize=r);var o="first"===t.primary;return n[o?"pane1Size":"pane2Size"]=r,n[o?"pane2Size":"pane1Size"]=void 0,n.instanceProps={size:t.size},n}}]),n}(o().Component);P.propTypes={allowResize:a().bool,children:a().arrayOf(a().node).isRequired,className:a().string,primary:a().oneOf(["first","second"]),minSize:a().oneOfType([a().string,a().number]),maxSize:a().oneOfType([a().string,a().number]),defaultSize:a().oneOfType([a().string,a().number]),size:a().oneOfType([a().string,a().number]),split:a().oneOf(["vertical","horizontal"]),onDragStarted:a().func,onDragFinished:a().func,onChange:a().func,onResizerClick:a().func,onResizerDoubleClick:a().func,style:u(),resizerStyle:u(),paneClassName:a().string,pane1ClassName:a().string,pane2ClassName:a().string,paneStyle:u(),pane1Style:u(),pane2Style:u(),resizerClassName:a().string,step:a().number},P.defaultProps={allowResize:!0,minSize:50,primary:"first",split:"vertical",paneClassName:"",pane1ClassName:"",pane2ClassName:""},(0,c.polyfill)(P);const A=P},2787:t=>{t.exports=["alignContent","MozAlignContent","WebkitAlignContent","MSAlignContent","OAlignContent","alignItems","MozAlignItems","WebkitAlignItems","MSAlignItems","OAlignItems","alignSelf","MozAlignSelf","WebkitAlignSelf","MSAlignSelf","OAlignSelf","all","MozAll","WebkitAll","MSAll","OAll","animation","MozAnimation","WebkitAnimation","MSAnimation","OAnimation","animationDelay","MozAnimationDelay","WebkitAnimationDelay","MSAnimationDelay","OAnimationDelay","animationDirection","MozAnimationDirection","WebkitAnimationDirection","MSAnimationDirection","OAnimationDirection","animationDuration","MozAnimationDuration","WebkitAnimationDuration","MSAnimationDuration","OAnimationDuration","animationFillMode","MozAnimationFillMode","WebkitAnimationFillMode","MSAnimationFillMode","OAnimationFillMode","animationIterationCount","MozAnimationIterationCount","WebkitAnimationIterationCount","MSAnimationIterationCount","OAnimationIterationCount","animationName","MozAnimationName","WebkitAnimationName","MSAnimationName","OAnimationName","animationPlayState","MozAnimationPlayState","WebkitAnimationPlayState","MSAnimationPlayState","OAnimationPlayState","animationTimingFunction","MozAnimationTimingFunction","WebkitAnimationTimingFunction","MSAnimationTimingFunction","OAnimationTimingFunction","backfaceVisibility","MozBackfaceVisibility","WebkitBackfaceVisibility","MSBackfaceVisibility","OBackfaceVisibility","background","MozBackground","WebkitBackground","MSBackground","OBackground","backgroundAttachment","MozBackgroundAttachment","WebkitBackgroundAttachment","MSBackgroundAttachment","OBackgroundAttachment","backgroundBlendMode","MozBackgroundBlendMode","WebkitBackgroundBlendMode","MSBackgroundBlendMode","OBackgroundBlendMode","backgroundClip","MozBackgroundClip","WebkitBackgroundClip","MSBackgroundClip","OBackgroundClip","backgroundColor","MozBackgroundColor","WebkitBackgroundColor","MSBackgroundColor","OBackgroundColor","backgroundImage","MozBackgroundImage","WebkitBackgroundImage","MSBackgroundImage","OBackgroundImage","backgroundOrigin","MozBackgroundOrigin","WebkitBackgroundOrigin","MSBackgroundOrigin","OBackgroundOrigin","backgroundPosition","MozBackgroundPosition","WebkitBackgroundPosition","MSBackgroundPosition","OBackgroundPosition","backgroundRepeat","MozBackgroundRepeat","WebkitBackgroundRepeat","MSBackgroundRepeat","OBackgroundRepeat","backgroundSize","MozBackgroundSize","WebkitBackgroundSize","MSBackgroundSize","OBackgroundSize","blockSize","MozBlockSize","WebkitBlockSize","MSBlockSize","OBlockSize","border","MozBorder","WebkitBorder","MSBorder","OBorder","borderBlockEnd","MozBorderBlockEnd","WebkitBorderBlockEnd","MSBorderBlockEnd","OBorderBlockEnd","borderBlockEndColor","MozBorderBlockEndColor","WebkitBorderBlockEndColor","MSBorderBlockEndColor","OBorderBlockEndColor","borderBlockEndStyle","MozBorderBlockEndStyle","WebkitBorderBlockEndStyle","MSBorderBlockEndStyle","OBorderBlockEndStyle","borderBlockEndWidth","MozBorderBlockEndWidth","WebkitBorderBlockEndWidth","MSBorderBlockEndWidth","OBorderBlockEndWidth","borderBlockStart","MozBorderBlockStart","WebkitBorderBlockStart","MSBorderBlockStart","OBorderBlockStart","borderBlockStartColor","MozBorderBlockStartColor","WebkitBorderBlockStartColor","MSBorderBlockStartColor","OBorderBlockStartColor","borderBlockStartStyle","MozBorderBlockStartStyle","WebkitBorderBlockStartStyle","MSBorderBlockStartStyle","OBorderBlockStartStyle","borderBlockStartWidth","MozBorderBlockStartWidth","WebkitBorderBlockStartWidth","MSBorderBlockStartWidth","OBorderBlockStartWidth","borderBottom","MozBorderBottom","WebkitBorderBottom","MSBorderBottom","OBorderBottom","borderBottomColor","MozBorderBottomColor","WebkitBorderBottomColor","MSBorderBottomColor","OBorderBottomColor","borderBottomLeftRadius","MozBorderBottomLeftRadius","WebkitBorderBottomLeftRadius","MSBorderBottomLeftRadius","OBorderBottomLeftRadius","borderBottomRightRadius","MozBorderBottomRightRadius","WebkitBorderBottomRightRadius","MSBorderBottomRightRadius","OBorderBottomRightRadius","borderBottomStyle","MozBorderBottomStyle","WebkitBorderBottomStyle","MSBorderBottomStyle","OBorderBottomStyle","borderBottomWidth","MozBorderBottomWidth","WebkitBorderBottomWidth","MSBorderBottomWidth","OBorderBottomWidth","borderCollapse","MozBorderCollapse","WebkitBorderCollapse","MSBorderCollapse","OBorderCollapse","borderColor","MozBorderColor","WebkitBorderColor","MSBorderColor","OBorderColor","borderImage","MozBorderImage","WebkitBorderImage","MSBorderImage","OBorderImage","borderImageOutset","MozBorderImageOutset","WebkitBorderImageOutset","MSBorderImageOutset","OBorderImageOutset","borderImageRepeat","MozBorderImageRepeat","WebkitBorderImageRepeat","MSBorderImageRepeat","OBorderImageRepeat","borderImageSlice","MozBorderImageSlice","WebkitBorderImageSlice","MSBorderImageSlice","OBorderImageSlice","borderImageSource","MozBorderImageSource","WebkitBorderImageSource","MSBorderImageSource","OBorderImageSource","borderImageWidth","MozBorderImageWidth","WebkitBorderImageWidth","MSBorderImageWidth","OBorderImageWidth","borderInlineEnd","MozBorderInlineEnd","WebkitBorderInlineEnd","MSBorderInlineEnd","OBorderInlineEnd","borderInlineEndColor","MozBorderInlineEndColor","WebkitBorderInlineEndColor","MSBorderInlineEndColor","OBorderInlineEndColor","borderInlineEndStyle","MozBorderInlineEndStyle","WebkitBorderInlineEndStyle","MSBorderInlineEndStyle","OBorderInlineEndStyle","borderInlineEndWidth","MozBorderInlineEndWidth","WebkitBorderInlineEndWidth","MSBorderInlineEndWidth","OBorderInlineEndWidth","borderInlineStart","MozBorderInlineStart","WebkitBorderInlineStart","MSBorderInlineStart","OBorderInlineStart","borderInlineStartColor","MozBorderInlineStartColor","WebkitBorderInlineStartColor","MSBorderInlineStartColor","OBorderInlineStartColor","borderInlineStartStyle","MozBorderInlineStartStyle","WebkitBorderInlineStartStyle","MSBorderInlineStartStyle","OBorderInlineStartStyle","borderInlineStartWidth","MozBorderInlineStartWidth","WebkitBorderInlineStartWidth","MSBorderInlineStartWidth","OBorderInlineStartWidth","borderLeft","MozBorderLeft","WebkitBorderLeft","MSBorderLeft","OBorderLeft","borderLeftColor","MozBorderLeftColor","WebkitBorderLeftColor","MSBorderLeftColor","OBorderLeftColor","borderLeftStyle","MozBorderLeftStyle","WebkitBorderLeftStyle","MSBorderLeftStyle","OBorderLeftStyle","borderLeftWidth","MozBorderLeftWidth","WebkitBorderLeftWidth","MSBorderLeftWidth","OBorderLeftWidth","borderRadius","MozBorderRadius","WebkitBorderRadius","MSBorderRadius","OBorderRadius","borderRight","MozBorderRight","WebkitBorderRight","MSBorderRight","OBorderRight","borderRightColor","MozBorderRightColor","WebkitBorderRightColor","MSBorderRightColor","OBorderRightColor","borderRightStyle","MozBorderRightStyle","WebkitBorderRightStyle","MSBorderRightStyle","OBorderRightStyle","borderRightWidth","MozBorderRightWidth","WebkitBorderRightWidth","MSBorderRightWidth","OBorderRightWidth","borderSpacing","MozBorderSpacing","WebkitBorderSpacing","MSBorderSpacing","OBorderSpacing","borderStyle","MozBorderStyle","WebkitBorderStyle","MSBorderStyle","OBorderStyle","borderTop","MozBorderTop","WebkitBorderTop","MSBorderTop","OBorderTop","borderTopColor","MozBorderTopColor","WebkitBorderTopColor","MSBorderTopColor","OBorderTopColor","borderTopLeftRadius","MozBorderTopLeftRadius","WebkitBorderTopLeftRadius","MSBorderTopLeftRadius","OBorderTopLeftRadius","borderTopRightRadius","MozBorderTopRightRadius","WebkitBorderTopRightRadius","MSBorderTopRightRadius","OBorderTopRightRadius","borderTopStyle","MozBorderTopStyle","WebkitBorderTopStyle","MSBorderTopStyle","OBorderTopStyle","borderTopWidth","MozBorderTopWidth","WebkitBorderTopWidth","MSBorderTopWidth","OBorderTopWidth","borderWidth","MozBorderWidth","WebkitBorderWidth","MSBorderWidth","OBorderWidth","bottom","MozBottom","WebkitBottom","MSBottom","OBottom","boxDecorationBreak","MozBoxDecorationBreak","WebkitBoxDecorationBreak","MSBoxDecorationBreak","OBoxDecorationBreak","boxShadow","MozBoxShadow","WebkitBoxShadow","MSBoxShadow","OBoxShadow","boxSizing","MozBoxSizing","WebkitBoxSizing","MSBoxSizing","OBoxSizing","breakAfter","MozBreakAfter","WebkitBreakAfter","MSBreakAfter","OBreakAfter","breakBefore","MozBreakBefore","WebkitBreakBefore","MSBreakBefore","OBreakBefore","breakInside","MozBreakInside","WebkitBreakInside","MSBreakInside","OBreakInside","captionSide","MozCaptionSide","WebkitCaptionSide","MSCaptionSide","OCaptionSide","caretColor","MozCaretColor","WebkitCaretColor","MSCaretColor","OCaretColor","ch","MozCh","WebkitCh","MSCh","OCh","clear","MozClear","WebkitClear","MSClear","OClear","clip","MozClip","WebkitClip","MSClip","OClip","clipPath","MozClipPath","WebkitClipPath","MSClipPath","OClipPath","cm","MozCm","WebkitCm","MSCm","OCm","color","MozColor","WebkitColor","MSColor","OColor","columnCount","MozColumnCount","WebkitColumnCount","MSColumnCount","OColumnCount","columnFill","MozColumnFill","WebkitColumnFill","MSColumnFill","OColumnFill","columnGap","MozColumnGap","WebkitColumnGap","MSColumnGap","OColumnGap","columnRule","MozColumnRule","WebkitColumnRule","MSColumnRule","OColumnRule","columnRuleColor","MozColumnRuleColor","WebkitColumnRuleColor","MSColumnRuleColor","OColumnRuleColor","columnRuleStyle","MozColumnRuleStyle","WebkitColumnRuleStyle","MSColumnRuleStyle","OColumnRuleStyle","columnRuleWidth","MozColumnRuleWidth","WebkitColumnRuleWidth","MSColumnRuleWidth","OColumnRuleWidth","columnSpan","MozColumnSpan","WebkitColumnSpan","MSColumnSpan","OColumnSpan","columnWidth","MozColumnWidth","WebkitColumnWidth","MSColumnWidth","OColumnWidth","columns","MozColumns","WebkitColumns","MSColumns","OColumns","content","MozContent","WebkitContent","MSContent","OContent","counterIncrement","MozCounterIncrement","WebkitCounterIncrement","MSCounterIncrement","OCounterIncrement","counterReset","MozCounterReset","WebkitCounterReset","MSCounterReset","OCounterReset","cursor","MozCursor","WebkitCursor","MSCursor","OCursor","deg","MozDeg","WebkitDeg","MSDeg","ODeg","direction","MozDirection","WebkitDirection","MSDirection","ODirection","display","MozDisplay","WebkitDisplay","MSDisplay","ODisplay","dpcm","MozDpcm","WebkitDpcm","MSDpcm","ODpcm","dpi","MozDpi","WebkitDpi","MSDpi","ODpi","dppx","MozDppx","WebkitDppx","MSDppx","ODppx","em","MozEm","WebkitEm","MSEm","OEm","emptyCells","MozEmptyCells","WebkitEmptyCells","MSEmptyCells","OEmptyCells","ex","MozEx","WebkitEx","MSEx","OEx","filter","MozFilter","WebkitFilter","MSFilter","OFilter","flexBasis","MozFlexBasis","WebkitFlexBasis","MSFlexBasis","OFlexBasis","flexDirection","MozFlexDirection","WebkitFlexDirection","MSFlexDirection","OFlexDirection","flexFlow","MozFlexFlow","WebkitFlexFlow","MSFlexFlow","OFlexFlow","flexGrow","MozFlexGrow","WebkitFlexGrow","MSFlexGrow","OFlexGrow","flexShrink","MozFlexShrink","WebkitFlexShrink","MSFlexShrink","OFlexShrink","flexWrap","MozFlexWrap","WebkitFlexWrap","MSFlexWrap","OFlexWrap","float","MozFloat","WebkitFloat","MSFloat","OFloat","font","MozFont","WebkitFont","MSFont","OFont","fontFamily","MozFontFamily","WebkitFontFamily","MSFontFamily","OFontFamily","fontFeatureSettings","MozFontFeatureSettings","WebkitFontFeatureSettings","MSFontFeatureSettings","OFontFeatureSettings","fontKerning","MozFontKerning","WebkitFontKerning","MSFontKerning","OFontKerning","fontLanguageOverride","MozFontLanguageOverride","WebkitFontLanguageOverride","MSFontLanguageOverride","OFontLanguageOverride","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","fontSizeAdjust","MozFontSizeAdjust","WebkitFontSizeAdjust","MSFontSizeAdjust","OFontSizeAdjust","fontStretch","MozFontStretch","WebkitFontStretch","MSFontStretch","OFontStretch","fontStyle","MozFontStyle","WebkitFontStyle","MSFontStyle","OFontStyle","fontSynthesis","MozFontSynthesis","WebkitFontSynthesis","MSFontSynthesis","OFontSynthesis","fontVariant","MozFontVariant","WebkitFontVariant","MSFontVariant","OFontVariant","fontVariantAlternates","MozFontVariantAlternates","WebkitFontVariantAlternates","MSFontVariantAlternates","OFontVariantAlternates","fontVariantCaps","MozFontVariantCaps","WebkitFontVariantCaps","MSFontVariantCaps","OFontVariantCaps","fontVariantEastAsian","MozFontVariantEastAsian","WebkitFontVariantEastAsian","MSFontVariantEastAsian","OFontVariantEastAsian","fontVariantLigatures","MozFontVariantLigatures","WebkitFontVariantLigatures","MSFontVariantLigatures","OFontVariantLigatures","fontVariantNumeric","MozFontVariantNumeric","WebkitFontVariantNumeric","MSFontVariantNumeric","OFontVariantNumeric","fontVariantPosition","MozFontVariantPosition","WebkitFontVariantPosition","MSFontVariantPosition","OFontVariantPosition","fontWeight","MozFontWeight","WebkitFontWeight","MSFontWeight","OFontWeight","fr","MozFr","WebkitFr","MSFr","OFr","grad","MozGrad","WebkitGrad","MSGrad","OGrad","grid","MozGrid","WebkitGrid","MSGrid","OGrid","gridArea","MozGridArea","WebkitGridArea","MSGridArea","OGridArea","gridAutoColumns","MozGridAutoColumns","WebkitGridAutoColumns","MSGridAutoColumns","OGridAutoColumns","gridAutoFlow","MozGridAutoFlow","WebkitGridAutoFlow","MSGridAutoFlow","OGridAutoFlow","gridAutoRows","MozGridAutoRows","WebkitGridAutoRows","MSGridAutoRows","OGridAutoRows","gridColumn","MozGridColumn","WebkitGridColumn","MSGridColumn","OGridColumn","gridColumnEnd","MozGridColumnEnd","WebkitGridColumnEnd","MSGridColumnEnd","OGridColumnEnd","gridColumnGap","MozGridColumnGap","WebkitGridColumnGap","MSGridColumnGap","OGridColumnGap","gridColumnStart","MozGridColumnStart","WebkitGridColumnStart","MSGridColumnStart","OGridColumnStart","gridGap","MozGridGap","WebkitGridGap","MSGridGap","OGridGap","gridRow","MozGridRow","WebkitGridRow","MSGridRow","OGridRow","gridRowEnd","MozGridRowEnd","WebkitGridRowEnd","MSGridRowEnd","OGridRowEnd","gridRowGap","MozGridRowGap","WebkitGridRowGap","MSGridRowGap","OGridRowGap","gridRowStart","MozGridRowStart","WebkitGridRowStart","MSGridRowStart","OGridRowStart","gridTemplate","MozGridTemplate","WebkitGridTemplate","MSGridTemplate","OGridTemplate","gridTemplateAreas","MozGridTemplateAreas","WebkitGridTemplateAreas","MSGridTemplateAreas","OGridTemplateAreas","gridTemplateColumns","MozGridTemplateColumns","WebkitGridTemplateColumns","MSGridTemplateColumns","OGridTemplateColumns","gridTemplateRows","MozGridTemplateRows","WebkitGridTemplateRows","MSGridTemplateRows","OGridTemplateRows","height","MozHeight","WebkitHeight","MSHeight","OHeight","hyphens","MozHyphens","WebkitHyphens","MSHyphens","OHyphens","hz","MozHz","WebkitHz","MSHz","OHz","imageOrientation","MozImageOrientation","WebkitImageOrientation","MSImageOrientation","OImageOrientation","imageRendering","MozImageRendering","WebkitImageRendering","MSImageRendering","OImageRendering","imageResolution","MozImageResolution","WebkitImageResolution","MSImageResolution","OImageResolution","imeMode","MozImeMode","WebkitImeMode","MSImeMode","OImeMode","in","MozIn","WebkitIn","MSIn","OIn","inherit","MozInherit","WebkitInherit","MSInherit","OInherit","initial","MozInitial","WebkitInitial","MSInitial","OInitial","inlineSize","MozInlineSize","WebkitInlineSize","MSInlineSize","OInlineSize","isolation","MozIsolation","WebkitIsolation","MSIsolation","OIsolation","justifyContent","MozJustifyContent","WebkitJustifyContent","MSJustifyContent","OJustifyContent","khz","MozKhz","WebkitKhz","MSKhz","OKhz","left","MozLeft","WebkitLeft","MSLeft","OLeft","letterSpacing","MozLetterSpacing","WebkitLetterSpacing","MSLetterSpacing","OLetterSpacing","lineBreak","MozLineBreak","WebkitLineBreak","MSLineBreak","OLineBreak","lineHeight","MozLineHeight","WebkitLineHeight","MSLineHeight","OLineHeight","listStyle","MozListStyle","WebkitListStyle","MSListStyle","OListStyle","listStyleImage","MozListStyleImage","WebkitListStyleImage","MSListStyleImage","OListStyleImage","listStylePosition","MozListStylePosition","WebkitListStylePosition","MSListStylePosition","OListStylePosition","listStyleType","MozListStyleType","WebkitListStyleType","MSListStyleType","OListStyleType","margin","MozMargin","WebkitMargin","MSMargin","OMargin","marginBlockEnd","MozMarginBlockEnd","WebkitMarginBlockEnd","MSMarginBlockEnd","OMarginBlockEnd","marginBlockStart","MozMarginBlockStart","WebkitMarginBlockStart","MSMarginBlockStart","OMarginBlockStart","marginBottom","MozMarginBottom","WebkitMarginBottom","MSMarginBottom","OMarginBottom","marginInlineEnd","MozMarginInlineEnd","WebkitMarginInlineEnd","MSMarginInlineEnd","OMarginInlineEnd","marginInlineStart","MozMarginInlineStart","WebkitMarginInlineStart","MSMarginInlineStart","OMarginInlineStart","marginLeft","MozMarginLeft","WebkitMarginLeft","MSMarginLeft","OMarginLeft","marginRight","MozMarginRight","WebkitMarginRight","MSMarginRight","OMarginRight","marginTop","MozMarginTop","WebkitMarginTop","MSMarginTop","OMarginTop","mask","MozMask","WebkitMask","MSMask","OMask","maskClip","MozMaskClip","WebkitMaskClip","MSMaskClip","OMaskClip","maskComposite","MozMaskComposite","WebkitMaskComposite","MSMaskComposite","OMaskComposite","maskImage","MozMaskImage","WebkitMaskImage","MSMaskImage","OMaskImage","maskMode","MozMaskMode","WebkitMaskMode","MSMaskMode","OMaskMode","maskOrigin","MozMaskOrigin","WebkitMaskOrigin","MSMaskOrigin","OMaskOrigin","maskPosition","MozMaskPosition","WebkitMaskPosition","MSMaskPosition","OMaskPosition","maskRepeat","MozMaskRepeat","WebkitMaskRepeat","MSMaskRepeat","OMaskRepeat","maskSize","MozMaskSize","WebkitMaskSize","MSMaskSize","OMaskSize","maskType","MozMaskType","WebkitMaskType","MSMaskType","OMaskType","maxHeight","MozMaxHeight","WebkitMaxHeight","MSMaxHeight","OMaxHeight","maxWidth","MozMaxWidth","WebkitMaxWidth","MSMaxWidth","OMaxWidth","minBlockSize","MozMinBlockSize","WebkitMinBlockSize","MSMinBlockSize","OMinBlockSize","minHeight","MozMinHeight","WebkitMinHeight","MSMinHeight","OMinHeight","minInlineSize","MozMinInlineSize","WebkitMinInlineSize","MSMinInlineSize","OMinInlineSize","minWidth","MozMinWidth","WebkitMinWidth","MSMinWidth","OMinWidth","mixBlendMode","MozMixBlendMode","WebkitMixBlendMode","MSMixBlendMode","OMixBlendMode","mm","MozMm","WebkitMm","MSMm","OMm","ms","MozMs","WebkitMs","MSMs","OMs","objectFit","MozObjectFit","WebkitObjectFit","MSObjectFit","OObjectFit","objectPosition","MozObjectPosition","WebkitObjectPosition","MSObjectPosition","OObjectPosition","offsetBlockEnd","MozOffsetBlockEnd","WebkitOffsetBlockEnd","MSOffsetBlockEnd","OOffsetBlockEnd","offsetBlockStart","MozOffsetBlockStart","WebkitOffsetBlockStart","MSOffsetBlockStart","OOffsetBlockStart","offsetInlineEnd","MozOffsetInlineEnd","WebkitOffsetInlineEnd","MSOffsetInlineEnd","OOffsetInlineEnd","offsetInlineStart","MozOffsetInlineStart","WebkitOffsetInlineStart","MSOffsetInlineStart","OOffsetInlineStart","opacity","MozOpacity","WebkitOpacity","MSOpacity","OOpacity","order","MozOrder","WebkitOrder","MSOrder","OOrder","orphans","MozOrphans","WebkitOrphans","MSOrphans","OOrphans","outline","MozOutline","WebkitOutline","MSOutline","OOutline","outlineColor","MozOutlineColor","WebkitOutlineColor","MSOutlineColor","OOutlineColor","outlineOffset","MozOutlineOffset","WebkitOutlineOffset","MSOutlineOffset","OOutlineOffset","outlineStyle","MozOutlineStyle","WebkitOutlineStyle","MSOutlineStyle","OOutlineStyle","outlineWidth","MozOutlineWidth","WebkitOutlineWidth","MSOutlineWidth","OOutlineWidth","overflow","MozOverflow","WebkitOverflow","MSOverflow","OOverflow","overflowWrap","MozOverflowWrap","WebkitOverflowWrap","MSOverflowWrap","OOverflowWrap","overflowX","MozOverflowX","WebkitOverflowX","MSOverflowX","OOverflowX","overflowY","MozOverflowY","WebkitOverflowY","MSOverflowY","OOverflowY","padding","MozPadding","WebkitPadding","MSPadding","OPadding","paddingBlockEnd","MozPaddingBlockEnd","WebkitPaddingBlockEnd","MSPaddingBlockEnd","OPaddingBlockEnd","paddingBlockStart","MozPaddingBlockStart","WebkitPaddingBlockStart","MSPaddingBlockStart","OPaddingBlockStart","paddingBottom","MozPaddingBottom","WebkitPaddingBottom","MSPaddingBottom","OPaddingBottom","paddingInlineEnd","MozPaddingInlineEnd","WebkitPaddingInlineEnd","MSPaddingInlineEnd","OPaddingInlineEnd","paddingInlineStart","MozPaddingInlineStart","WebkitPaddingInlineStart","MSPaddingInlineStart","OPaddingInlineStart","paddingLeft","MozPaddingLeft","WebkitPaddingLeft","MSPaddingLeft","OPaddingLeft","paddingRight","MozPaddingRight","WebkitPaddingRight","MSPaddingRight","OPaddingRight","paddingTop","MozPaddingTop","WebkitPaddingTop","MSPaddingTop","OPaddingTop","pageBreakAfter","MozPageBreakAfter","WebkitPageBreakAfter","MSPageBreakAfter","OPageBreakAfter","pageBreakBefore","MozPageBreakBefore","WebkitPageBreakBefore","MSPageBreakBefore","OPageBreakBefore","pageBreakInside","MozPageBreakInside","WebkitPageBreakInside","MSPageBreakInside","OPageBreakInside","pc","MozPc","WebkitPc","MSPc","OPc","perspective","MozPerspective","WebkitPerspective","MSPerspective","OPerspective","perspectiveOrigin","MozPerspectiveOrigin","WebkitPerspectiveOrigin","MSPerspectiveOrigin","OPerspectiveOrigin","pointerEvents","MozPointerEvents","WebkitPointerEvents","MSPointerEvents","OPointerEvents","position","MozPosition","WebkitPosition","MSPosition","OPosition","pt","MozPt","WebkitPt","MSPt","OPt","px","MozPx","WebkitPx","MSPx","OPx","q","MozQ","WebkitQ","MSQ","OQ","quotes","MozQuotes","WebkitQuotes","MSQuotes","OQuotes","rad","MozRad","WebkitRad","MSRad","ORad","rem","MozRem","WebkitRem","MSRem","ORem","resize","MozResize","WebkitResize","MSResize","OResize","revert","MozRevert","WebkitRevert","MSRevert","ORevert","right","MozRight","WebkitRight","MSRight","ORight","rubyAlign","MozRubyAlign","WebkitRubyAlign","MSRubyAlign","ORubyAlign","rubyMerge","MozRubyMerge","WebkitRubyMerge","MSRubyMerge","ORubyMerge","rubyPosition","MozRubyPosition","WebkitRubyPosition","MSRubyPosition","ORubyPosition","s","MozS","WebkitS","MSS","OS","scrollBehavior","MozScrollBehavior","WebkitScrollBehavior","MSScrollBehavior","OScrollBehavior","scrollSnapCoordinate","MozScrollSnapCoordinate","WebkitScrollSnapCoordinate","MSScrollSnapCoordinate","OScrollSnapCoordinate","scrollSnapDestination","MozScrollSnapDestination","WebkitScrollSnapDestination","MSScrollSnapDestination","OScrollSnapDestination","scrollSnapType","MozScrollSnapType","WebkitScrollSnapType","MSScrollSnapType","OScrollSnapType","shapeImageThreshold","MozShapeImageThreshold","WebkitShapeImageThreshold","MSShapeImageThreshold","OShapeImageThreshold","shapeMargin","MozShapeMargin","WebkitShapeMargin","MSShapeMargin","OShapeMargin","shapeOutside","MozShapeOutside","WebkitShapeOutside","MSShapeOutside","OShapeOutside","tabSize","MozTabSize","WebkitTabSize","MSTabSize","OTabSize","tableLayout","MozTableLayout","WebkitTableLayout","MSTableLayout","OTableLayout","textAlign","MozTextAlign","WebkitTextAlign","MSTextAlign","OTextAlign","textAlignLast","MozTextAlignLast","WebkitTextAlignLast","MSTextAlignLast","OTextAlignLast","textCombineUpright","MozTextCombineUpright","WebkitTextCombineUpright","MSTextCombineUpright","OTextCombineUpright","textDecoration","MozTextDecoration","WebkitTextDecoration","MSTextDecoration","OTextDecoration","textDecorationColor","MozTextDecorationColor","WebkitTextDecorationColor","MSTextDecorationColor","OTextDecorationColor","textDecorationLine","MozTextDecorationLine","WebkitTextDecorationLine","MSTextDecorationLine","OTextDecorationLine","textDecorationStyle","MozTextDecorationStyle","WebkitTextDecorationStyle","MSTextDecorationStyle","OTextDecorationStyle","textEmphasis","MozTextEmphasis","WebkitTextEmphasis","MSTextEmphasis","OTextEmphasis","textEmphasisColor","MozTextEmphasisColor","WebkitTextEmphasisColor","MSTextEmphasisColor","OTextEmphasisColor","textEmphasisPosition","MozTextEmphasisPosition","WebkitTextEmphasisPosition","MSTextEmphasisPosition","OTextEmphasisPosition","textEmphasisStyle","MozTextEmphasisStyle","WebkitTextEmphasisStyle","MSTextEmphasisStyle","OTextEmphasisStyle","textIndent","MozTextIndent","WebkitTextIndent","MSTextIndent","OTextIndent","textOrientation","MozTextOrientation","WebkitTextOrientation","MSTextOrientation","OTextOrientation","textOverflow","MozTextOverflow","WebkitTextOverflow","MSTextOverflow","OTextOverflow","textRendering","MozTextRendering","WebkitTextRendering","MSTextRendering","OTextRendering","textShadow","MozTextShadow","WebkitTextShadow","MSTextShadow","OTextShadow","textTransform","MozTextTransform","WebkitTextTransform","MSTextTransform","OTextTransform","textUnderlinePosition","MozTextUnderlinePosition","WebkitTextUnderlinePosition","MSTextUnderlinePosition","OTextUnderlinePosition","top","MozTop","WebkitTop","MSTop","OTop","touchAction","MozTouchAction","WebkitTouchAction","MSTouchAction","OTouchAction","transform","MozTransform","WebkitTransform","msTransform","OTransform","transformBox","MozTransformBox","WebkitTransformBox","MSTransformBox","OTransformBox","transformOrigin","MozTransformOrigin","WebkitTransformOrigin","MSTransformOrigin","OTransformOrigin","transformStyle","MozTransformStyle","WebkitTransformStyle","MSTransformStyle","OTransformStyle","transition","MozTransition","WebkitTransition","MSTransition","OTransition","transitionDelay","MozTransitionDelay","WebkitTransitionDelay","MSTransitionDelay","OTransitionDelay","transitionDuration","MozTransitionDuration","WebkitTransitionDuration","MSTransitionDuration","OTransitionDuration","transitionProperty","MozTransitionProperty","WebkitTransitionProperty","MSTransitionProperty","OTransitionProperty","transitionTimingFunction","MozTransitionTimingFunction","WebkitTransitionTimingFunction","MSTransitionTimingFunction","OTransitionTimingFunction","turn","MozTurn","WebkitTurn","MSTurn","OTurn","unicodeBidi","MozUnicodeBidi","WebkitUnicodeBidi","MSUnicodeBidi","OUnicodeBidi","unset","MozUnset","WebkitUnset","MSUnset","OUnset","verticalAlign","MozVerticalAlign","WebkitVerticalAlign","MSVerticalAlign","OVerticalAlign","vh","MozVh","WebkitVh","MSVh","OVh","visibility","MozVisibility","WebkitVisibility","MSVisibility","OVisibility","vmax","MozVmax","WebkitVmax","MSVmax","OVmax","vmin","MozVmin","WebkitVmin","MSVmin","OVmin","vw","MozVw","WebkitVw","MSVw","OVw","whiteSpace","MozWhiteSpace","WebkitWhiteSpace","MSWhiteSpace","OWhiteSpace","widows","MozWidows","WebkitWidows","MSWidows","OWidows","width","MozWidth","WebkitWidth","MSWidth","OWidth","willChange","MozWillChange","WebkitWillChange","MSWillChange","OWillChange","wordBreak","MozWordBreak","WebkitWordBreak","MSWordBreak","OWordBreak","wordSpacing","MozWordSpacing","WebkitWordSpacing","MSWordSpacing","OWordSpacing","wordWrap","MozWordWrap","WebkitWordWrap","MSWordWrap","OWordWrap","writingMode","MozWritingMode","WebkitWritingMode","MSWritingMode","OWritingMode","zIndex","MozZIndex","WebkitZIndex","MSZIndex","OZIndex","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","flex","MozFlex","WebkitFlex","MSFlex","OFlex","fr","MozFr","WebkitFr","MSFr","OFr","overflowScrolling","MozOverflowScrolling","WebkitOverflowScrolling","MSOverflowScrolling","OOverflowScrolling","userSelect","MozUserSelect","WebkitUserSelect","MSUserSelect","OUserSelect"]},25473:(t,e,n)=>{var r=n(2787),o=n(95099);t.exports=function(t,e,n){var o=t[e];if(o){var i=[];if(Object.keys(o).forEach((function(t){-1===r.indexOf(t)&&i.push(t)})),i.length)throw new Error("Prop "+e+" passed to "+n+". Has invalid keys "+i.join(", "))}},t.exports.isRequired=function(e,n,r){if(!e[n])throw new Error("Prop "+n+" passed to "+r+" is required");return t.exports(e,n,r)},t.exports.supportingArrays=o.oneOfType([o.arrayOf(t.exports),t.exports])},42400:(t,e,n)=>{"use strict";n.d(e,{$:()=>st});var r=n(8156),o=n.n(r),i=n(75877),a=n(87935),s=n(18149),u=n.n(s),c=n(1842),l=n.n(c),f=n(84618),p=n(18694),h=n(11011),d=n(29259),g=n.n(d),y=n(61049),v=n.n(y),m=n(56974),b=n.n(m),x=n(81224),O=n(79376),w=n(24847);function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}var M=["valueAccessor"],E=["data","dataKey","clockWise","id","textBreakAll"];function k(t){return function(t){if(Array.isArray(t))return C(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return C(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function P(){return P=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},P.apply(this,arguments)}function A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function j(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){T(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function T(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==S(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===S(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var D=function(t){return Array.isArray(t.value)?b()(t.value):t.value};function B(t){var e=t.valueAccessor,n=void 0===e?D:e,r=_(t,M),i=r.data,a=r.dataKey,s=r.clockWise,u=r.id,c=r.textBreakAll,p=_(r,E);return i&&i.length?o().createElement(f.m,{className:"recharts-label-list"},i.map((function(t,e){var r=l()(a)?n(t,e):(0,w.F$)(t&&t.payload,a),i=l()(u)?{}:{id:"".concat(u,"-").concat(e)};return o().createElement(x._,P({},(0,O.L6)(t,!0),p,i,{parentViewBox:t.parentViewBox,value:r,textBreakAll:c,viewBox:x._.parseViewBox(l()(s)?t:j(j({},t),{},{clockWise:s})),key:"label-".concat(e),index:e}))}))):null}function I(t,e){return t?!0===t?o().createElement(B,{key:"labelList-implicit",data:e}):o().isValidElement(t)||v()(t)?o().createElement(B,{key:"labelList-implicit",data:e,content:t}):g()(t)?o().createElement(B,P({data:e},t,{key:"labelList-implicit"})):null:null}B.displayName="LabelList",B.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var o=t.children,i=(0,O.NN)(o,B).map((function(t,n){return(0,r.cloneElement)(t,{data:e,key:"labelList-".concat(n)})}));if(!n)return i;var a=I(t.label,e);return[a].concat(k(i))};var L=n(15027),z=n(79499),R=n(21442),N=n(29742);function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}var F=["x","y"];function U(){return U=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},U.apply(this,arguments)}function V(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function q(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?V(Object(n),!0).forEach((function(e){G(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function G(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==W(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==W(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===W(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Z(t,e){var n=t.x,r=t.y,o=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,F),i="".concat(n),a=parseInt(i,10),s="".concat(r),u=parseInt(s,10),c="".concat(e.height||o.height),l=parseInt(c,10),f="".concat(e.width||o.width),p=parseInt(f,10);return q(q(q(q(q({},e),o),a?{x:a}:{}),u?{y:u}:{}),{},{height:l,width:p,name:e.name,radius:e.radius})}function H(t){return o().createElement(N.bn,U({shapeType:"rectangle",propTransformer:Z,activeClassName:"recharts-active-bar"},t))}var $=["value","background"];function Y(t){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y(t)}function X(){return X=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},X.apply(this,arguments)}function K(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Q(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?K(Object(n),!0).forEach((function(e){it(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function J(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,at(r.key),r)}}function et(t,e){return et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},et(t,e)}function nt(t,e){if(e&&("object"===Y(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return rt(t)}function rt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ot(t){return ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ot(t)}function it(t,e,n){return(e=at(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function at(t){var e=function(t,e){if("object"!==Y(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==Y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===Y(e)?e:String(e)}var st=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&et(t,e)}(d,t);var e,n,r,s,c,h=(s=d,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ot(s);if(c){var n=ot(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return nt(this,t)});function d(){var t;J(this,d);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return it(rt(t=h.call.apply(h,[this].concat(n))),"state",{isAnimationFinished:!1}),it(rt(t),"id",(0,L.EL)("recharts-bar-")),it(rt(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),it(rt(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return e=d,r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],(n=[{key:"renderRectanglesStatically",value:function(t){var e=this,n=this.props,r=n.shape,i=n.dataKey,a=n.activeIndex,s=n.activeBar,u=(0,O.L6)(this.props);return t&&t.map((function(t,n){var c=n===a,l=c?s:r,p=Q(Q(Q({},u),t),{},{isActive:c,option:l,index:n,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return o().createElement(f.m,X({className:"recharts-bar-rectangle"},(0,R.bw)(e.props,t,n),{key:"rectangle-".concat(n)}),o().createElement(H,p))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,n=e.data,r=e.layout,i=e.isAnimationActive,s=e.animationBegin,u=e.animationDuration,c=e.animationEasing,l=e.animationId,p=this.state.prevData;return o().createElement(a.ZP,{begin:s,duration:u,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t,a=n.map((function(t,e){var n=p&&p[e];if(n){var o=(0,L.k4)(n.x,t.x),a=(0,L.k4)(n.y,t.y),s=(0,L.k4)(n.width,t.width),u=(0,L.k4)(n.height,t.height);return Q(Q({},t),{},{x:o(i),y:a(i),width:s(i),height:u(i)})}if("horizontal"===r){var c=(0,L.k4)(0,t.height)(i);return Q(Q({},t),{},{y:t.y+t.height-c,height:c})}var l=(0,L.k4)(0,t.width)(i);return Q(Q({},t),{},{width:l})}));return o().createElement(f.m,null,t.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,n=t.isAnimationActive,r=this.state.prevData;return!(n&&e&&e.length)||r&&u()(r,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,n=e.data,r=e.dataKey,i=e.activeIndex,a=(0,O.L6)(this.props.background);return n.map((function(e,n){e.value;var s=e.background,u=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(e,$);if(!s)return null;var c=Q(Q(Q(Q(Q({},u),{},{fill:"#eee"},s),a),(0,R.bw)(t.props,e,n)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:r,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return o().createElement(H,X({option:t.props.background,isActive:n===i},c))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,i=n.xAxis,a=n.yAxis,s=n.layout,u=n.children,c=(0,O.NN)(u,p.W);if(!c)return null;var l="vertical"===s?r[0].height/2:r[0].width/2,h=function(t,e){var n=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:n,errorVal:(0,w.F$)(t,e)}},d={clipPath:t?"url(#clipPath-".concat(e,")"):null};return o().createElement(f.m,d,c.map((function(t,e){return o().cloneElement(t,{key:"error-bar-".concat(e),data:r,xAxis:i,yAxis:a,layout:s,offset:l,dataPointFormatter:h})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.data,r=t.className,a=t.xAxis,s=t.yAxis,u=t.left,c=t.top,p=t.width,h=t.height,d=t.isAnimationActive,g=t.background,y=t.id;if(e||!n||!n.length)return null;var v=this.state.isAnimationFinished,m=(0,i.Z)("recharts-bar",r),b=a&&a.allowDataOverflow,x=s&&s.allowDataOverflow,O=b||x,w=l()(y)?this.id:y;return o().createElement(f.m,{className:m},b||x?o().createElement("defs",null,o().createElement("clipPath",{id:"clipPath-".concat(w)},o().createElement("rect",{x:b?u:u-p/2,y:x?c:c-h/2,width:b?p:2*p,height:x?h:2*h}))):null,o().createElement(f.m,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(w,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,w),(!d||v)&&B.renderCallByParent(this.props,n))}}])&&tt(e.prototype,n),r&&tt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),d}(r.PureComponent);it(st,"displayName","Bar"),it(st,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!0,isAnimationActive:!z.x.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),it(st,"getComposedData",(function(t){var e=t.props,n=t.item,r=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,s=t.xAxisTicks,u=t.yAxisTicks,c=t.stackedData,l=t.dataStartIndex,f=t.displayedData,p=t.offset,d=(0,w.Bu)(r,n);if(!d)return null;var g=e.layout,y=n.props,v=y.dataKey,m=y.children,b=y.minPointSize,x="horizontal"===g?a:i,S=c?x.scale.domain():null,M=(0,w.Yj)({numericAxis:x}),E=(0,O.NN)(m,h.b),k=f.map((function(t,e){var r,f,p,h,y,m;if(c?r=(0,w.Vv)(c[l+e],S):(r=(0,w.F$)(t,v),Array.isArray(r)||(r=[M,r])),"horizontal"===g){var x,O=[a.scale(r[0]),a.scale(r[1])],k=O[0],C=O[1];f=(0,w.Fy)({axis:i,ticks:s,bandSize:o,offset:d.offset,entry:t,index:e}),p=null!==(x=null!=C?C:k)&&void 0!==x?x:void 0,h=d.size;var P=k-C;if(y=Number.isNaN(P)?0:P,m={x:f,y:a.y,width:h,height:a.height},Math.abs(b)>0&&Math.abs(y)<Math.abs(b)){var A=(0,L.uY)(y||b)*(Math.abs(b)-Math.abs(y));p-=A,y+=A}}else{var j=[i.scale(r[0]),i.scale(r[1])],T=j[0],_=j[1];f=T,p=(0,w.Fy)({axis:a,ticks:u,bandSize:o,offset:d.offset,entry:t,index:e}),h=_-T,y=d.size,m={x:i.x,y:p,width:i.width,height:y},Math.abs(b)>0&&Math.abs(h)<Math.abs(b)&&(h+=(0,L.uY)(h||b)*(Math.abs(b)-Math.abs(h)))}return Q(Q(Q({},t),{},{x:f,y:p,width:h,height:y,value:c?r:r[1],payload:t,background:m},E&&E[e]&&E[e].props),{},{tooltipPayload:[(0,w.Qo)(n,t)],tooltipPosition:{x:f+h/2,y:p+y/2}})}));return Q({data:k,layout:g},p)}))},55484:(t,e,n)=>{"use strict";n.d(e,{q:()=>S});var r=n(8156),o=n.n(r),i=n(61049),a=n.n(i),s=n(15027),u=n(79376),c=["x1","y1","x2","y2","key"],l=["offset"];function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},p.apply(this,arguments)}function h(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){O(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,w(r.key),r)}}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function b(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function x(t){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},x(t)}function O(t,e,n){return(e=w(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t){var e=function(t,e){if("object"!==f(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===f(e)?e:String(e)}var S=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(O,t);var e,n,r,i,f,d=(i=O,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=x(i);if(f){var n=x(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return b(this,t)});function O(){return y(this,O),d.apply(this,arguments)}return e=O,r=[{key:"renderLineItem",value:function(t,e){var n;if(o().isValidElement(t))n=o().cloneElement(t,e);else if(a()(t))n=t(e);else{var r=e.x1,i=e.y1,s=e.x2,f=e.y2,d=e.key,g=h(e,c),y=(0,u.L6)(g),v=(y.offset,h(y,l));n=o().createElement("line",p({},v,{x1:r,y1:i,x2:s,y2:f,fill:"none",key:d}))}return n}}],(n=[{key:"renderHorizontal",value:function(t){var e=this,n=this.props,r=n.x,i=n.width,a=n.horizontal;if(!t||!t.length)return null;var s=t.map((function(t,n){var o=g(g({},e.props),{},{x1:r,y1:t,x2:r+i,y2:t,key:"line-".concat(n),index:n});return O.renderLineItem(a,o)}));return o().createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}},{key:"renderVertical",value:function(t){var e=this,n=this.props,r=n.y,i=n.height,a=n.vertical;if(!t||!t.length)return null;var s=t.map((function(t,n){var o=g(g({},e.props),{},{x1:t,y1:r,x2:t,y2:r+i,key:"line-".concat(n),index:n});return O.renderLineItem(a,o)}));return o().createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}},{key:"renderVerticalStripes",value:function(t){var e=this.props.verticalFill;if(!e||!e.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,a=n.y,s=n.width,u=n.height,c=t.map((function(t){return Math.round(t+i-i)})).sort((function(t,e){return t-e}));i!==c[0]&&c.unshift(0);var l=c.map((function(t,n){var l=c[n+1]?c[n+1]-t:i+s-t;if(l<=0)return null;var f=n%e.length;return o().createElement("rect",{key:"react-".concat(n),x:t,y:a,width:l,height:u,stroke:"none",fill:e[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return o().createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(t){var e=this.props.horizontalFill;if(!e||!e.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,a=n.y,s=n.width,u=n.height,c=t.map((function(t){return Math.round(t+a-a)})).sort((function(t,e){return t-e}));a!==c[0]&&c.unshift(0);var l=c.map((function(t,n){var l=c[n+1]?c[n+1]-t:a+u-t;if(l<=0)return null;var f=n%e.length;return o().createElement("rect",{key:"react-".concat(n),y:t,x:i,height:l,width:s,stroke:"none",fill:e[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return o().createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var t=this.props.fill;if(!t||"none"===t)return null;var e=this.props,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,s=e.height;return o().createElement("rect",{x:r,y:i,width:a,height:s,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,u=t.horizontal,c=t.vertical,l=t.horizontalCoordinatesGenerator,f=t.verticalCoordinatesGenerator,p=t.xAxis,h=t.yAxis,d=t.offset,y=t.chartWidth,v=t.chartHeight,m=t.syncWithTicks,b=t.horizontalValues,x=t.verticalValues;if(!(0,s.hj)(r)||r<=0||!(0,s.hj)(i)||i<=0||!(0,s.hj)(e)||e!==+e||!(0,s.hj)(n)||n!==+n)return null;var O=this.props,w=O.horizontalPoints,S=O.verticalPoints;if((!w||!w.length)&&a()(l)){var M=b&&b.length;w=l({yAxis:h?g(g({},h),{},{ticks:M?b:h.ticks}):void 0,width:y,height:v,offset:d},!!M||m)}if((!S||!S.length)&&a()(f)){var E=x&&x.length;S=f({xAxis:p?g(g({},p),{},{ticks:E?x:p.ticks}):void 0,width:y,height:v,offset:d},!!E||m)}return o().createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),u&&this.renderHorizontal(w),c&&this.renderVertical(S),u&&this.renderHorizontalStripes(w),c&&this.renderVerticalStripes(S))}}])&&v(e.prototype,n),r&&v(e,r),Object.defineProperty(e,"prototype",{writable:!1}),O}(r.PureComponent);O(S,"displayName","CartesianGrid"),O(S,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]})},18694:(t,e,n)=>{"use strict";n.d(e,{W:()=>l});var r=n(8156),o=n.n(r),i=n(84618),a=n(79376),s=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t){var e=t.offset,n=t.layout,r=t.width,l=t.dataKey,f=t.data,p=t.dataPointFormatter,h=t.xAxis,d=t.yAxis,g=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,s),y=(0,a.L6)(g),v=f.map((function(t,a){var s=p(t,l),f=s.x,g=s.y,v=s.value,m=s.errorVal;if(!m)return null;var b,x,O=[];if(Array.isArray(m)){var w=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(m,2);b=w[0],x=w[1]}else b=x=m;if("vertical"===n){var S=h.scale,M=g+e,E=M+r,k=M-r,C=S(v-b),P=S(v+x);O.push({x1:P,y1:E,x2:P,y2:k}),O.push({x1:C,y1:M,x2:P,y2:M}),O.push({x1:C,y1:E,x2:C,y2:k})}else if("horizontal"===n){var A=d.scale,j=f+e,T=j-r,_=j+r,D=A(v-b),B=A(v+x);O.push({x1:T,y1:B,x2:_,y2:B}),O.push({x1:j,y1:D,x2:j,y2:B}),O.push({x1:T,y1:D,x2:_,y2:D})}return o().createElement(i.m,u({className:"recharts-errorBar",key:"bar-".concat(a)},y),O.map((function(t,e){return o().createElement("line",u({},t,{key:"line-".concat(e)}))})))}));return o().createElement(i.m,{className:"recharts-errorBars"},v)}l.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},l.displayName="ErrorBar"},25556:(t,e,n)=>{"use strict";n.d(e,{K:()=>r});var r=function(){return null};r.displayName="XAxis",r.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}},3131:(t,e,n)=>{"use strict";n.d(e,{B:()=>r});var r=function(){return null};r.displayName="YAxis",r.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}},19406:(t,e,n)=>{"use strict";n.d(e,{v:()=>ir});var r=n(8156),o=n.n(r),i=n(1842),a=n.n(i),s=n(61049),u=n.n(s),c=n(2689),l=n.n(c),f=n(72579),p=n.n(f),h=n(829),d=n.n(h),g=n(12436),y=n.n(g),v=n(55281),m=n.n(v),b=n(39794),x=n.n(b),O=n(75877),w=n(22089);function S(t){var e=t.cx,n=t.cy,r=t.radius,o=t.startAngle,i=t.endAngle;return{points:[(0,w.op)(e,n,r,o),(0,w.op)(e,n,r,i)],cx:e,cy:n,radius:r,startAngle:o,endAngle:i}}var M=n(15027),E=n(88089),k=n(79499),C=n(34519),P=n.n(C),A=n(24847),j=n(79376),T=n(42400);function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}function D(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,z(r.key),r)}}function B(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function I(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?B(Object(n),!0).forEach((function(e){L(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function L(t,e,n){return(e=z(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function z(t){var e=function(t,e){if("object"!==_(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===_(e)?e:String(e)}var R=function(t,e){var n=t.x,r=t.y,o=e.x,i=e.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},N=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}var e,n,r;return e=t,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bandAware,r=e.position;if(void 0!==t){if(r)switch(r){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),n=e[0],r=e[e.length-1];return n<=r?t>=n&&t<=r:t>=r&&t<=n}}],r=[{key:"create",value:function(e){return new t(e)}}],n&&D(e.prototype,n),r&&D(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();L(N,"EPS",1e-4);var W=function(t){var e=Object.keys(t).reduce((function(e,n){return I(I({},e),{},L({},n,N.create(t[n])))}),{});return I(I({},e),{},{apply:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return P()(t,(function(t,n){return e[n].apply(t,{bandAware:r,position:o})}))},isInRange:function(t){return x()(t,(function(t,n){return e[n].isInRange(t)}))}})};function F(t){return(t%180+180)%180}function U(t,e,n){if(e<1)return[];if(1===e&&void 0===n)return t;for(var r=[],o=0;o<t.length;o+=e){if(void 0!==n&&!0!==n(t[o]))return;r.push(t[o])}return r}function V(t,e,n,r,o){if(t*e<t*r||t*e>t*o)return!1;var i=n();return t*(e-t*i/2-r)>=0&&t*(e+t*i/2-o)<=0}function q(t){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q(t)}function G(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?G(Object(n),!0).forEach((function(e){H(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function H(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==q(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===q(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $(t,e,n){var r=t.tick,o=t.ticks,i=t.viewBox,a=t.minTickGap,s=t.orientation,c=t.interval,l=t.tickFormatter,f=t.unit,p=t.angle;if(!o||!o.length||!r)return[];if((0,M.hj)(c)||k.x.isSsr)return function(t,e){return U(t,e+1)}(o,"number"==typeof c&&(0,M.hj)(c)?c:0);var h=[],d="top"===s||"bottom"===s?"width":"height",g=f&&"width"===d?(0,E.xE)(f,{fontSize:e,letterSpacing:n}):{width:0,height:0},y=function(t,r){var o=u()(l)?l(t.value,r):t.value;return"width"===d?function(t,e,n){return function(t){var e=t.width,n=t.height,r=F(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*Math.PI/180,o=Math.atan(n/e),i=r>o&&r<Math.PI-o?n/Math.sin(r):e/Math.cos(r);return Math.abs(i)}({width:t.width+e.width,height:t.height+e.height},n)}((0,E.xE)(o,{fontSize:e,letterSpacing:n}),g,p):(0,E.xE)(o,{fontSize:e,letterSpacing:n})[d]},v=o.length>=2?(0,M.uY)(o[1].coordinate-o[0].coordinate):1,m=function(t,e,n){var r="width"===n,o=t.x,i=t.y,a=t.width,s=t.height;return 1===e?{start:r?o:i,end:r?o+a:i+s}:{start:r?o+a:i+s,end:r?o:i}}(i,v,d);return"equidistantPreserveStart"===c?function(t,e,n,r,o){for(var i,a=(r||[]).slice(),s=e.start,u=e.end,c=0,l=1,f=s,p=function(){var e=null==r?void 0:r[c];if(void 0===e)return{v:U(r,l)};var i,a=c,p=function(){return void 0===i&&(i=n(e,a)),i},h=e.coordinate,d=0===c||V(t,h,p,f,u);d||(c=0,f=s,l+=1),d&&(f=h+t*(p()/2+o),c+=l)};l<=a.length;)if(i=p())return i.v;return[]}(v,m,y,o,a):(h="preserveStart"===c||"preserveStartEnd"===c?function(t,e,n,r,o,i){var a=(r||[]).slice(),s=a.length,u=e.start,c=e.end;if(i){var l=r[s-1],f=n(l,s-1),p=t*(l.coordinate+t*f/2-c);a[s-1]=l=Z(Z({},l),{},{tickCoord:p>0?l.coordinate-p*t:l.coordinate}),V(t,l.tickCoord,(function(){return f}),u,c)&&(c=l.tickCoord-t*(f/2+o),a[s-1]=Z(Z({},l),{},{isShow:!0}))}for(var h=i?s-1:s,d=function(e){var r,i=a[e],s=function(){return void 0===r&&(r=n(i,e)),r};if(0===e){var l=t*(i.coordinate-t*s()/2-u);a[e]=i=Z(Z({},i),{},{tickCoord:l<0?i.coordinate-l*t:i.coordinate})}else a[e]=i=Z(Z({},i),{},{tickCoord:i.coordinate});V(t,i.tickCoord,s,u,c)&&(u=i.tickCoord+t*(s()/2+o),a[e]=Z(Z({},i),{},{isShow:!0}))},g=0;g<h;g++)d(g);return a}(v,m,y,o,a,"preserveStartEnd"===c):function(t,e,n,r,o){for(var i=(r||[]).slice(),a=i.length,s=e.start,u=e.end,c=function(e){var r,c=i[e],l=function(){return void 0===r&&(r=n(c,e)),r};if(e===a-1){var f=t*(c.coordinate+t*l()/2-u);i[e]=c=Z(Z({},c),{},{tickCoord:f>0?c.coordinate-f*t:c.coordinate})}else i[e]=c=Z(Z({},c),{},{tickCoord:c.coordinate});V(t,c.tickCoord,l,s,u)&&(u=c.tickCoord-t*(l()/2+o),i[e]=Z(Z({},c),{},{isShow:!0}))},l=a-1;l>=0;l--)c(l);return i}(v,m,y,o,a),h.filter((function(t){return t.isShow})))}var Y=n(19617),X=n(84618),K=n(27741),Q=n(97245);function J(){}function tt(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function et(t){this._context=t}function nt(t){this._context=t}function rt(t){this._context=t}et.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:tt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:tt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},nt.prototype={areaStart:J,areaEnd:J,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:tt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},rt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:tt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class ot{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function it(t){this._context=t}function at(t){this._context=t}function st(t){return new at(t)}function ut(t){return t<0?-1:1}function ct(t,e,n){var r=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(r||o<0&&-0),a=(n-t._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(ut(i)+ut(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function lt(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ft(t,e,n){var r=t._x0,o=t._y0,i=t._x1,a=t._y1,s=(i-r)/3;t._context.bezierCurveTo(r+s,o+s*e,i-s,a-s*n,i,a)}function pt(t){this._context=t}function ht(t){this._context=new dt(t)}function dt(t){this._context=t}function gt(t){this._context=t}function yt(t){var e,n,r=t.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=o[e]/i[e-1],i[e]-=n,a[e]-=n*a[e-1];for(o[r-1]=a[r-1]/i[r-1],e=r-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[r-1]=(t[r]+o[r-1])/2,e=0;e<r-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function vt(t,e){this._context=t,this._t=e}it.prototype={areaStart:J,areaEnd:J,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},at.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},pt.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:ft(this,this._t0,lt(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ft(this,lt(this,n=ct(this,t,e)),n);break;default:ft(this,this._t0,n=ct(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(ht.prototype=Object.create(pt.prototype)).point=function(t,e){pt.prototype.point.call(this,e,t)},dt.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,o,i){this._context.bezierCurveTo(e,t,r,n,i,o)}},gt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=yt(t),o=yt(e),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},vt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var mt=n(16426),bt=n(6677),xt=n(13149);function Ot(t){return t[0]}function wt(t){return t[1]}function St(t,e){var n=(0,bt.Z)(!0),r=null,o=st,i=null,a=(0,xt.d)(s);function s(s){var u,c,l,f=(s=(0,mt.Z)(s)).length,p=!1;for(null==r&&(i=o(l=a())),u=0;u<=f;++u)!(u<f&&n(c=s[u],u,s))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(c,u,s),+e(c,u,s));if(l)return i=null,l+""||null}return t="function"==typeof t?t:void 0===t?Ot:(0,bt.Z)(t),e="function"==typeof e?e:void 0===e?wt:(0,bt.Z)(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,bt.Z)(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,bt.Z)(+t),s):e},s.defined=function(t){return arguments.length?(n="function"==typeof t?t:(0,bt.Z)(!!t),s):n},s.curve=function(t){return arguments.length?(o=t,null!=r&&(i=o(r)),s):o},s.context=function(t){return arguments.length?(null==t?r=i=null:i=o(r=t),s):r},s}function Mt(t,e,n){var r=null,o=(0,bt.Z)(!0),i=null,a=st,s=null,u=(0,xt.d)(c);function c(c){var l,f,p,h,d,g=(c=(0,mt.Z)(c)).length,y=!1,v=new Array(g),m=new Array(g);for(null==i&&(s=a(d=u())),l=0;l<=g;++l){if(!(l<g&&o(h=c[l],l,c))===y)if(y=!y)f=l,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),p=l-1;p>=f;--p)s.point(v[p],m[p]);s.lineEnd(),s.areaEnd()}y&&(v[l]=+t(h,l,c),m[l]=+e(h,l,c),s.point(r?+r(h,l,c):v[l],n?+n(h,l,c):m[l]))}if(d)return s=null,d+""||null}function l(){return St().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?Ot:(0,bt.Z)(+t),e="function"==typeof e?e:void 0===e?(0,bt.Z)(0):(0,bt.Z)(+e),n="function"==typeof n?n:void 0===n?wt:(0,bt.Z)(+n),c.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,bt.Z)(+e),r=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,bt.Z)(+e),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:(0,bt.Z)(+t),c):r},c.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,bt.Z)(+t),n=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,bt.Z)(+t),c):e},c.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:(0,bt.Z)(+t),c):n},c.lineX0=c.lineY0=function(){return l().x(t).y(e)},c.lineY1=function(){return l().x(t).y(n)},c.lineX1=function(){return l().x(r).y(e)},c.defined=function(t){return arguments.length?(o="function"==typeof t?t:(0,bt.Z)(!!t),c):o},c.curve=function(t){return arguments.length?(a=t,null!=i&&(s=a(i)),c):a},c.context=function(t){return arguments.length?(null==t?i=s=null:s=a(i=t),c):i},c}var Et=n(23779),kt=n.n(Et),Ct=n(21442);function Pt(t){return Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pt(t)}function At(){return At=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},At.apply(this,arguments)}function jt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Tt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jt(Object(n),!0).forEach((function(e){_t(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _t(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Pt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==Pt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===Pt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Dt={curveBasisClosed:function(t){return new nt(t)},curveBasisOpen:function(t){return new rt(t)},curveBasis:function(t){return new et(t)},curveBumpX:function(t){return new ot(t,!0)},curveBumpY:function(t){return new ot(t,!1)},curveLinearClosed:function(t){return new it(t)},curveLinear:st,curveMonotoneX:function(t){return new pt(t)},curveMonotoneY:function(t){return new ht(t)},curveNatural:function(t){return new gt(t)},curveStep:function(t){return new vt(t,.5)},curveStepAfter:function(t){return new vt(t,1)},curveStepBefore:function(t){return new vt(t,0)}},Bt=function(t){return t.x===+t.x&&t.y===+t.y},It=function(t){return t.x},Lt=function(t){return t.y},zt=function(t){var e=t.className,n=t.points,r=t.path,i=t.pathRef;if(!(n&&n.length||r))return null;var a=n&&n.length?function(t){var e,n=t.type,r=void 0===n?"linear":n,o=t.points,i=void 0===o?[]:o,a=t.baseLine,s=t.layout,c=t.connectNulls,l=void 0!==c&&c,f=function(t,e){if(u()(t))return t;var n="curve".concat(kt()(t));return"curveMonotone"!==n&&"curveBump"!==n||!e?Dt[n]||st:Dt["".concat(n).concat("vertical"===e?"Y":"X")]}(r,s),p=l?i.filter((function(t){return Bt(t)})):i;if(Array.isArray(a)){var h=l?a.filter((function(t){return Bt(t)})):a,d=p.map((function(t,e){return Tt(Tt({},t),{},{base:h[e]})}));return(e="vertical"===s?Mt().y(Lt).x1(It).x0((function(t){return t.base.x})):Mt().x(It).y1(Lt).y0((function(t){return t.base.y}))).defined(Bt).curve(f),e(d)}return(e="vertical"===s&&(0,M.hj)(a)?Mt().y(Lt).x1(It).x0(a):(0,M.hj)(a)?Mt().x(It).y1(Lt).y0(a):St().x(It).y(Lt)).defined(Bt).curve(f),e(p)}(t):r;return o().createElement("path",At({},(0,j.L6)(t),(0,Ct.Ym)(t),{className:(0,O.Z)("recharts-curve",e),d:a,ref:i}))};function Rt(t){return Rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rt(t)}var Nt=["x","y","top","left","width","height","className"];function Wt(){return Wt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Wt.apply(this,arguments)}function Ft(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ut(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Rt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==Rt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===Rt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Vt=function(t,e,n,r,o,i){return"M".concat(t,",").concat(o,"v").concat(r,"M").concat(i,",").concat(e,"h").concat(n)},qt=function(t){var e=t.x,n=void 0===e?0:e,r=t.y,i=void 0===r?0:r,a=t.top,s=void 0===a?0:a,u=t.left,c=void 0===u?0:u,l=t.width,f=void 0===l?0:l,p=t.height,h=void 0===p?0:p,d=t.className,g=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ft(Object(n),!0).forEach((function(e){Ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({x:n,y:i,top:s,left:c,width:f,height:h},function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Nt));return(0,M.hj)(n)&&(0,M.hj)(i)&&(0,M.hj)(f)&&(0,M.hj)(h)&&(0,M.hj)(s)&&(0,M.hj)(c)?o().createElement("path",Wt({},(0,j.L6)(g,!0),{className:(0,O.Z)("recharts-cross",d),d:Vt(n,i,f,h,s,c)})):null},Gt=n(21844);function Zt(){return Zt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Zt.apply(this,arguments)}var Ht=function(t){var e=t.cx,n=t.cy,r=t.r,i=t.className,a=(0,O.Z)("recharts-dot",i);return e===+e&&n===+n&&r===+r?o().createElement("circle",Zt({},(0,j.L6)(t),(0,Ct.Ym)(t),{className:a,cx:e,cy:n,r})):null},$t=n(43624),Yt=n(47022),Xt=n(75963),Kt=n(81224),Qt=["viewBox"],Jt=["viewBox"],te=["ticks"];function ee(t){return ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ee(t)}function ne(){return ne=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ne.apply(this,arguments)}function re(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function oe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?re(Object(n),!0).forEach((function(e){le(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ie(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function ae(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,fe(r.key),r)}}function se(t,e){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},se(t,e)}function ue(t,e){if(e&&("object"===ee(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function ce(t){return ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ce(t)}function le(t,e,n){return(e=fe(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fe(t){var e=function(t,e){if("object"!==ee(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===ee(e)?e:String(e)}var pe=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&se(t,e)}(c,t);var e,n,r,i,a,s=(i=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ce(i);if(a){var n=ce(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return ue(this,t)});function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=s.call(this,t)).state={fontSize:"",letterSpacing:""},e}return e=c,n=[{key:"shouldComponentUpdate",value:function(t,e){var n=t.viewBox,r=ie(t,Qt),o=this.props,i=o.viewBox,a=ie(o,Jt);return!(0,Yt.w)(n,i)||!(0,Yt.w)(r,a)||!(0,Yt.w)(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,n,r,o,i,a,s=this.props,u=s.x,c=s.y,l=s.width,f=s.height,p=s.orientation,h=s.tickSize,d=s.mirror,g=s.tickMargin,y=d?-1:1,v=t.tickSize||h,m=(0,M.hj)(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=n=t.coordinate,a=(r=(o=c+ +!d*f)-y*v)-y*g,i=m;break;case"left":r=o=t.coordinate,i=(e=(n=u+ +!d*l)-y*v)-y*g,a=m;break;case"right":r=o=t.coordinate,i=(e=(n=u+ +d*l)+y*v)+y*g,a=m;break;default:e=n=t.coordinate,a=(r=(o=c+ +d*f)+y*v)+y*g,i=m}return{line:{x1:e,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,n=e.orientation,r=e.mirror;switch(n){case"left":t=r?"start":"end";break;case"right":t=r?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,n=t.mirror,r="end";switch(e){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,a=t.orientation,s=t.mirror,u=t.axisLine,c=oe(oe(oe({},(0,j.L6)(this.props)),(0,j.L6)(u)),{},{fill:"none"});if("top"===a||"bottom"===a){var l=+("top"===a&&!s||"bottom"===a&&s);c=oe(oe({},c),{},{x1:e,y1:n+l*i,x2:e+r,y2:n+l*i})}else{var f=+("left"===a&&!s||"right"===a&&s);c=oe(oe({},c),{},{x1:e+f*r,y1:n,x2:e+f*r,y2:n+i})}return o().createElement("line",ne({},c,{className:(0,O.Z)("recharts-cartesian-axis-line",p()(u,"className"))}))}},{key:"renderTicks",value:function(t,e,n){var r=this,i=this.props,a=i.tickLine,s=i.stroke,l=i.tick,f=i.tickFormatter,h=i.unit,d=$(oe(oe({},this.props),{},{ticks:t}),e,n),g=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),v=(0,j.L6)(this.props),m=(0,j.L6)(l),b=oe(oe({},v),{},{fill:"none"},(0,j.L6)(a)),x=d.map((function(t,e){var n=r.getTickLineCoord(t),i=n.line,x=n.tick,w=oe(oe(oe(oe({textAnchor:g,verticalAnchor:y},v),{},{stroke:"none",fill:s},m),x),{},{index:e,payload:t,visibleTicksCount:d.length,tickFormatter:f});return o().createElement(X.m,ne({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e)},(0,Ct.bw)(r.props,t,e)),a&&o().createElement("line",ne({},b,i,{className:(0,O.Z)("recharts-cartesian-axis-tick-line",p()(a,"className"))})),l&&c.renderTickItem(l,w,"".concat(u()(f)?f(t.value,e):t.value).concat(h||"")))}));return o().createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var t=this,e=this.props,n=e.axisLine,r=e.width,i=e.height,a=e.ticksGenerator,s=e.className;if(e.hide)return null;var c=this.props,l=c.ticks,f=ie(c,te),p=l;return u()(a)&&(p=l&&l.length>0?a(this.props):a(f)),r<=0||i<=0||!p||!p.length?null:o().createElement(X.m,{className:(0,O.Z)("recharts-cartesian-axis",s),ref:function(e){t.layerReference=e}},n&&this.renderAxisLine(),this.renderTicks(p,this.state.fontSize,this.state.letterSpacing),Kt._.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(t,e,n){return o().isValidElement(t)?o().cloneElement(t,e):u()(t)?t(e):o().createElement(Xt.x,ne({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&ae(e.prototype,n),r&&ae(e,r),Object.defineProperty(e,"prototype",{writable:!1}),c}(r.Component);le(pe,"displayName","CartesianAxis"),le(pe,"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 he=n(78520);function de(t){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},de(t)}function ge(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ye(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ge(Object(n),!0).forEach((function(e){ve(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ve(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==de(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==de(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===de(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var me=["Webkit","Moz","O","ms"];function be(t){return be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},be(t)}function xe(){return xe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},xe.apply(this,arguments)}function Oe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function we(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Oe(Object(n),!0).forEach((function(e){Pe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Se(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ae(r.key),r)}}function Me(t,e){return Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Me(t,e)}function Ee(t,e){if(e&&("object"===be(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ke(t)}function ke(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ce(t){return Ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ce(t)}function Pe(t,e,n){return(e=Ae(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ae(t){var e=function(t,e){if("object"!==be(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==be(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===be(e)?e:String(e)}var je=function(t){return t.changedTouches&&!!t.changedTouches.length},Te=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Me(t,e)}(f,t);var e,n,i,a,s,c=(a=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ce(a);if(s){var n=Ce(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Ee(this,t)});function f(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),Pe(ke(e=c.call(this,t)),"handleDrag",(function(t){e.leaveTimer&&(clearTimeout(e.leaveTimer),e.leaveTimer=null),e.state.isTravellerMoving?e.handleTravellerMove(t):e.state.isSlideMoving&&e.handleSlideDrag(t)})),Pe(ke(e),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleDrag(t.changedTouches[0])})),Pe(ke(e),"handleDragEnd",(function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=e.props,n=t.endIndex,r=t.onDragEnd,o=t.startIndex;null==r||r({endIndex:n,startIndex:o})})),e.detachDragEndListener()})),Pe(ke(e),"handleLeaveWrapper",(function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))})),Pe(ke(e),"handleEnterSlideOrTraveller",(function(){e.setState({isTextActive:!0})})),Pe(ke(e),"handleLeaveSlideOrTraveller",(function(){e.setState({isTextActive:!1})})),Pe(ke(e),"handleSlideDragStart",(function(t){var n=je(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),e.attachDragEndListener()})),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(ke(e),"startX"),endX:e.handleTravellerDragStart.bind(ke(e),"endX")},e.state={},e}return e=f,i=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,n=t.y,r=t.width,i=t.height,a=t.stroke,s=Math.floor(n+i/2)-1;return o().createElement(o().Fragment,null,o().createElement("rect",{x:e,y:n,width:r,height:i,fill:a,stroke:"none"}),o().createElement("line",{x1:e+1,y1:s,x2:e+r-1,y2:s,fill:"none",stroke:"#fff"}),o().createElement("line",{x1:e+1,y1:s+2,x2:e+r-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return o().isValidElement(t)?o().cloneElement(t,e):u()(t)?t(e):f.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var n=t.data,r=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,s=t.startIndex,u=t.endIndex;if(n!==e.prevData||a!==e.prevUpdateId)return we({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?function(t){var e=t.data,n=t.startIndex,r=t.endIndex,o=t.x,i=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var s=e.length,u=(0,he.x)().domain(l()(0,s)).range([o,o+i-a]),c=u.domain().map((function(t){return u(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(r),scale:u,scaleValues:c}}({data:n,width:r,x:o,travellerWidth:i,startIndex:s,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(r!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+r-i]);var c=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(t,e){for(var n=0,r=t.length-1;r-n>1;){var o=Math.floor((n+r)/2);t[o]>e?r=o:n=o}return e>=t[r]?r:n}}],(n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,n=t.endX,r=this.state.scaleValues,o=this.props,i=o.gap,a=o.data.length-1,s=Math.min(e,n),u=Math.max(e,n),c=f.getIndexInRange(r,s),l=f.getIndexInRange(r,u);return{startIndex:c-c%i,endIndex:l===a?a:l-l%i}}},{key:"getTextOfTick",value:function(t){var e=this.props,n=e.data,r=e.tickFormatter,o=e.dataKey,i=(0,A.F$)(n[t],o,t);return u()(r)?r(i,t):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,n=e.slideMoveStartX,r=e.startX,o=e.endX,i=this.props,a=i.x,s=i.width,u=i.travellerWidth,c=i.startIndex,l=i.endIndex,f=i.onChange,p=t.pageX-n;p>0?p=Math.min(p,a+s-u-o,a+s-u-r):p<0&&(p=Math.max(p,a-r,a-o));var h=this.getIndex({startX:r+p,endX:o+p});h.startIndex===c&&h.endIndex===l||!f||f(h),this.setState({startX:r+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var n=je(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,s=this.state[o],u=this.props,c=u.x,l=u.width,f=u.travellerWidth,p=u.onChange,h=u.gap,d=u.data,g={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,c+l-f-s):y<0&&(y=Math.max(y,c-s)),g[o]=s+y;var v=this.getIndex(g),m=v.startIndex,b=v.endIndex;this.setState((Pe(e={},o,s+y),Pe(e,"brushMoveStartX",t.pageX),e),(function(){var t;p&&(t=d.length-1,("startX"===o&&(i>a?m%h==0:b%h==0)||i<a&&b===t||"endX"===o&&(i>a?b%h==0:m%h==0)||i>a&&b===t)&&p(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var n=this,r=this.state,o=r.scaleValues,i=r.startX,a=r.endX,s=this.state[e],u=o.indexOf(s);if(-1!==u){var c=u+t;if(!(-1===c||c>=o.length)){var l=o[c];"startX"===e&&l>=a||"endX"===e&&l<=i||this.setState(Pe({},e,l),(function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,a=t.fill,s=t.stroke;return o().createElement("rect",{stroke:s,fill:a,x:e,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,n=t.y,i=t.width,a=t.height,s=t.data,u=t.children,c=t.padding,l=r.Children.only(u);return l?o().cloneElement(l,{x:e,y:n,width:i,height:a,margin:c,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(t,e){var n=this,r=this.props,i=r.y,a=r.travellerWidth,s=r.height,u=r.traveller,c=Math.max(t,this.props.x),l=we(we({},(0,j.L6)(this.props)),{},{x:c,y:i,width:a,height:s});return o().createElement(X.m,{tabIndex:0,role:"slider",className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),n.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){n.setState({isTravellerFocused:!0})},onBlur:function(){n.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},f.renderTraveller(u,l))}},{key:"renderSlide",value:function(t,e){var n=this.props,r=n.y,i=n.height,a=n.stroke,s=n.travellerWidth,u=Math.min(t,e)+s,c=Math.max(Math.abs(e-t)-s,0);return o().createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:u,y:r,width:c,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,n=t.endIndex,r=t.y,i=t.height,a=t.travellerWidth,s=t.stroke,u=this.state,c=u.startX,l=u.endX,f={pointerEvents:"none",fill:s};return o().createElement(X.m,{className:"recharts-brush-texts"},o().createElement(Xt.x,xe({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,l)-5,y:r+i/2},f),this.getTextOfTick(e)),o().createElement(Xt.x,xe({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,l)+a+5,y:r+i/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.className,r=t.children,i=t.x,a=t.y,s=t.width,u=t.height,c=t.alwaysShowText,l=this.state,f=l.startX,p=l.endX,h=l.isTextActive,d=l.isSlideMoving,g=l.isTravellerMoving,y=l.isTravellerFocused;if(!e||!e.length||!(0,M.hj)(i)||!(0,M.hj)(a)||!(0,M.hj)(s)||!(0,M.hj)(u)||s<=0||u<=0)return null;var v,m,b,x,w=(0,O.Z)("recharts-brush",n),S=1===o().Children.count(r),E=(m="none",b=(v="userSelect").replace(/(\w)/,(function(t){return t.toUpperCase()})),(x=me.reduce((function(t,e){return ye(ye({},t),{},ve({},e+b,m))}),{}))[v]=m,x);return o().createElement(X.m,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:E},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(h||d||g||y||c)&&this.renderText())}}])&&Se(e.prototype,n),i&&Se(e,i),Object.defineProperty(e,"prototype",{writable:!1}),f}(r.PureComponent);Pe(Te,"displayName","Brush"),Pe(Te,"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 _e=n(12076),De=function(t,e){var n=t.alwaysShow,r=t.ifOverflow;return n&&(r="extendDomain"),r===e},Be=n(91745);function Ie(t){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ie(t)}function Le(){return Le=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Le.apply(this,arguments)}function ze(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Re(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ze(Object(n),!0).forEach((function(e){Ne(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ne(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Ie(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==Ie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===Ie(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function We(t){var e=t.x,n=t.y,r=t.r,i=t.alwaysShow,a=t.clipPathId,s=(0,M.P2)(e),u=(0,M.P2)(n);if((0,Be.Z)(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!u)return null;var c=function(t){var e=t.x,n=t.y,r=t.xAxis,o=t.yAxis,i=W({x:r.scale,y:o.scale}),a=i.apply({x:e,y:n},{bandAware:!0});return De(t,"discard")&&!i.isInRange(a)?null:a}(t);if(!c)return null;var l=c.x,f=c.y,p=t.shape,h=t.className,d=Re(Re({clipPath:De(t,"hidden")?"url(#".concat(a,")"):void 0},(0,j.L6)(t,!0)),{},{cx:l,cy:f});return o().createElement(X.m,{className:(0,O.Z)("recharts-reference-dot",h)},We.renderDot(p,d),Kt._.renderCallByParent(t,{x:l-r,y:f-r,width:2*r,height:2*r}))}We.displayName="ReferenceDot",We.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},We.renderDot=function(t,e){return o().isValidElement(t)?o().cloneElement(t,e):u()(t)?t(e):o().createElement(Ht,Le({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))};var Fe=n(51525),Ue=n.n(Fe);function Ve(t){return Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ve(t)}function qe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ge(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qe(Object(n),!0).forEach((function(e){Ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ze(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Ve(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==Ve(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===Ve(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function He(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function $e(){return $e=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},$e.apply(this,arguments)}function Ye(t){var e=t.x,n=t.y,r=t.segment,i=t.xAxis,a=t.yAxis,s=t.shape,c=t.className,l=t.alwaysShow,f=t.clipPathId;(0,Be.Z)(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=function(t,e,n,r,o){var i=o.viewBox,a=i.x,s=i.y,u=i.width,c=i.height,l=o.position;if(n){var f=o.y,p=o.yAxis.orientation,h=t.y.apply(f,{position:l});if(De(o,"discard")&&!t.y.isInRange(h))return null;var d=[{x:a+u,y:h},{x:a,y:h}];return"left"===p?d.reverse():d}if(e){var g=o.x,y=o.xAxis.orientation,v=t.x.apply(g,{position:l});if(De(o,"discard")&&!t.x.isInRange(v))return null;var m=[{x:v,y:s+c},{x:v,y:s}];return"top"===y?m.reverse():m}if(r){var b=o.segment.map((function(e){return t.apply(e,{position:l})}));return De(o,"discard")&&Ue()(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(W({x:i.scale,y:a.scale}),(0,M.P2)(e),(0,M.P2)(n),r&&2===r.length,t);if(!p)return null;var h,d,g,y=(d=2,function(t){if(Array.isArray(t))return t}(h=p)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(h,d)||function(t,e){if(t){if("string"==typeof t)return He(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?He(t,e):void 0}}(h,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=y[0],m=v.x,b=v.y,x=y[1],w=x.x,S=x.y,E=Ge(Ge({clipPath:De(t,"hidden")?"url(#".concat(f,")"):void 0},(0,j.L6)(t,!0)),{},{x1:m,y1:b,x2:w,y2:S});return o().createElement(X.m,{className:(0,O.Z)("recharts-reference-line",c)},function(t,e){return o().isValidElement(t)?o().cloneElement(t,e):u()(t)?t(e):o().createElement("line",$e({},e,{className:"recharts-reference-line-line"}))}(s,E),Kt._.renderCallByParent(t,(g={x1:m,y1:b,x2:w,y2:S},R({x:g.x1,y:g.y1},{x:g.x2,y:g.y2}))))}function Xe(t){return Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xe(t)}function Ke(){return Ke=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ke.apply(this,arguments)}function Qe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Je(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qe(Object(n),!0).forEach((function(e){tn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function tn(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Xe(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==Xe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===Xe(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function en(t){var e=t.x1,n=t.x2,r=t.y1,i=t.y2,a=t.className,s=t.alwaysShow,u=t.clipPathId;(0,Be.Z)(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=(0,M.P2)(e),l=(0,M.P2)(n),f=(0,M.P2)(r),p=(0,M.P2)(i),h=t.shape;if(!(c||l||f||p||h))return null;var d=function(t,e,n,r,o){var i=o.x1,a=o.x2,s=o.y1,u=o.y2,c=o.xAxis,l=o.yAxis;if(!c||!l)return null;var f=W({x:c.scale,y:l.scale}),p={x:t?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},h={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!De(o,"discard")||f.isInRange(p)&&f.isInRange(h)?R(p,h):null}(c,l,f,p,t);if(!d&&!h)return null;var g=De(t,"hidden")?"url(#".concat(u,")"):void 0;return o().createElement(X.m,{className:(0,O.Z)("recharts-reference-area",a)},en.renderRect(h,Je(Je({clipPath:g},(0,j.L6)(t,!0)),d)),Kt._.renderCallByParent(t,d))}function nn(t){return function(t){if(Array.isArray(t))return rn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return rn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rn(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}Ye.displayName="ReferenceLine",Ye.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"},en.displayName="ReferenceArea",en.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},en.renderRect=function(t,e){return o().isValidElement(t)?o().cloneElement(t,e):u()(t)?t(e):o().createElement($t.A,Ke({},e,{className:"recharts-reference-area-rect"}))};var on=function(t,e,n,r,o){var i=(0,j.NN)(t,Ye),a=(0,j.NN)(t,We),s=[].concat(nn(i),nn(a)),u=(0,j.NN)(t,en),c="".concat(r,"Id"),l=r[0],f=e;if(s.length&&(f=s.reduce((function(t,e){if(e.props[c]===n&&De(e.props,"extendDomain")&&(0,M.hj)(e.props[l])){var r=e.props[l];return[Math.min(t[0],r),Math.max(t[1],r)]}return t}),f)),u.length){var p="".concat(l,"1"),h="".concat(l,"2");f=u.reduce((function(t,e){if(e.props[c]===n&&De(e.props,"extendDomain")&&(0,M.hj)(e.props[p])&&(0,M.hj)(e.props[h])){var r=e.props[p],o=e.props[h];return[Math.min(t[0],r,o),Math.max(t[1],r,o)]}return t}),f)}return o&&o.length&&(f=o.reduce((function(t,e){return(0,M.hj)(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},an=n(10161),sn=new(n.n(an)()),un="recharts.syncMouseEvents";function cn(t){return cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cn(t)}function ln(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,pn(r.key),r)}}function fn(t,e,n){return(e=pn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pn(t){var e=function(t,e){if("object"!==cn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==cn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===cn(e)?e:String(e)}var hn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),fn(this,"activeIndex",0),fn(this,"coordinateList",[]),fn(this,"layout","horizontal")}var e,n;return e=t,(n=[{key:"setDetails",value:function(t){var e=t.coordinateList,n=void 0===e?[]:e,r=t.container,o=void 0===r?null:r,i=t.layout,a=void 0===i?null:i,s=t.offset,u=void 0===s?null:s,c=t.mouseHandlerCallback,l=void 0===c?null:c;this.coordinateList=null!=n?n:this.coordinateList,this.container=null!=o?o:this.container,this.layout=null!=a?a:this.layout,this.offset=null!=u?u:this.offset,this.mouseHandlerCallback=null!=l?l:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var n=this.container.getBoundingClientRect(),r=n.x,o=n.y,i=n.height,a=this.coordinateList[this.activeIndex].coordinate,s=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,u=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,c=r+a+s,l=o+this.offset.top+i/2+u;this.mouseHandlerCallback({pageX:c,pageY:l})}}}])&&ln(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),dn=n(29742);function gn(t,e,n){var r,o,i,a;if("horizontal"===t)i=r=e.x,o=n.top,a=n.top+n.height;else if("vertical"===t)a=o=e.y,r=n.left,i=n.left+n.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return S(e);var s=e.cx,u=e.cy,c=e.innerRadius,l=e.outerRadius,f=e.angle,p=(0,w.op)(s,u,c,f),h=(0,w.op)(s,u,l,f);r=p.x,o=p.y,i=h.x,a=h.y}return[{x:r,y:o},{x:i,y:a}]}var yn=["item"],vn=["children","className","width","height","style","compact","title","desc"];function mn(t){return mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mn(t)}function bn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||Pn(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xn(){return xn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},xn.apply(this,arguments)}function On(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function wn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Dn(r.key),r)}}function Sn(t,e){return Sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Sn(t,e)}function Mn(t,e){if(e&&("object"===mn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return En(t)}function En(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kn(t){return kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kn(t)}function Cn(t){return function(t){if(Array.isArray(t))return An(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Pn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pn(t,e){if(t){if("string"==typeof t)return An(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?An(t,e):void 0}}function An(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function jn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Tn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jn(Object(n),!0).forEach((function(e){_n(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _n(t,e,n){return(e=Dn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Dn(t){var e=function(t,e){if("object"!==mn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==mn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===mn(e)?e:String(e)}var Bn={xAxis:["bottom","top"],yAxis:["left","right"]},In={width:"100%",height:"100%"},Ln={x:0,y:0},zn=function(t,e){var n=e.graphicalItems,r=e.dataStartIndex,o=e.dataEndIndex,i=(null!=n?n:[]).reduce((function(t,e){var n=e.props.data;return n&&n.length?[].concat(Cn(t),Cn(n)):t}),[]);return i.length>0?i:t&&t.length&&(0,M.hj)(r)&&(0,M.hj)(o)?t.slice(r,o+1):[]};function Rn(t){return"number"===t?[0,"auto"]:void 0}var Nn,Wn,Fn,Un,Vn,qn,Gn,Zn,Hn,$n,Yn,Xn,Kn,Qn=function(t,e,n,r){var o=t.graphicalItems,i=t.tooltipAxis,a=zn(e,t);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(o,s){var u;if(s.props.hide)return o;var c,l=null!==(u=s.props.data)&&void 0!==u?u:e;if(l&&t.dataStartIndex+t.dataEndIndex!==0&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory){var f=void 0===l?a:l;c=(0,M.Ap)(f,i.dataKey,r)}else c=l&&l[n]||a[n];return c?[].concat(Cn(o),[(0,A.Qo)(s,c)]):o}),[])},Jn=function(t,e,n,r){var o=r||{x:t.chartX,y:t.chartY},i=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(o,n),a=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,c=(0,A.VO)(i,a,u,s);if(c>=0&&u){var l=u[c]&&u[c].value,f=Qn(t,e,c,l),p=function(t,e,n,r){var o=e.find((function(t){return t&&t.index===n}));if(o){if("horizontal"===t)return{x:o.coordinate,y:r.y};if("vertical"===t)return{x:r.x,y:o.coordinate};if("centric"===t){var i=o.coordinate,a=r.radius;return Tn(Tn(Tn({},r),(0,w.op)(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,u=r.angle;return Tn(Tn(Tn({},r),(0,w.op)(r.cx,r.cy,s,u)),{},{angle:u,radius:s})}return Ln}(n,a,c,o);return{activeTooltipIndex:c,activeLabel:l,activePayload:f,activeCoordinate:p}}return null},tr=function(t,e){var n=e.axisType,r=void 0===n?"xAxis":n,o=e.AxisComp,i=e.graphicalItems,s=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,f=t.children,h="".concat(r,"Id"),d=(0,j.NN)(f,o),g={};return d&&d.length?g=function(t,e){var n=e.axes,r=e.graphicalItems,o=e.axisType,i=e.axisIdKey,s=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,f=t.layout,p=t.children,h=t.stackOffset,d=(0,A.NA)(f,o);return n.reduce((function(e,n){var g,y=n.props,v=y.type,m=y.dataKey,b=y.allowDataOverflow,x=y.allowDuplicatedCategory,O=y.scale,w=y.ticks,S=y.includeHidden,E=n.props[i];if(e[E])return e;var k,C,P,j=zn(t.data,{graphicalItems:r.filter((function(t){return t.props[i]===E})),dataStartIndex:u,dataEndIndex:c}),T=j.length;(function(t,e,n){if("number"===n&&!0===e&&Array.isArray(t)){var r=null==t?void 0:t[0],o=null==t?void 0:t[1];if(r&&o&&(0,M.hj)(r)&&(0,M.hj)(o))return!0}return!1})(n.props.domain,b,v)&&(k=(0,A.LG)(n.props.domain,null,b),!d||"number"!==v&&"auto"===O||(P=(0,A.gF)(j,m,"category")));var _=Rn(v);if(!k||0===k.length){var D,B=null!==(D=n.props.domain)&&void 0!==D?D:_;if(m){if(k=(0,A.gF)(j,m,v),"category"===v&&d){var I=(0,M.bv)(k);x&&I?(C=k,k=l()(0,T)):x||(k=(0,A.ko)(B,k,n).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(Cn(t),[e])}),[]))}else if("category"===v)k=x?k.filter((function(t){return""!==t&&!a()(t)})):(0,A.ko)(B,k,n).reduce((function(t,e){return t.indexOf(e)>=0||""===e||a()(e)?t:[].concat(Cn(t),[e])}),[]);else if("number"===v){var L=(0,A.ZI)(j,r.filter((function(t){return t.props[i]===E&&(S||!t.props.hide)})),m,o,f);L&&(k=L)}!d||"number"!==v&&"auto"===O||(P=(0,A.gF)(j,m,"category"))}else k=d?l()(0,T):s&&s[E]&&s[E].hasStack&&"number"===v?"expand"===h?[0,1]:(0,A.EB)(s[E].stackGroups,u,c):(0,A.s6)(j,r.filter((function(t){return t.props[i]===E&&(S||!t.props.hide)})),v,f,!0);if("number"===v)k=on(p,k,E,o,w),B&&(k=(0,A.LG)(B,k,b));else if("category"===v&&B){var z=B;k.every((function(t){return z.indexOf(t)>=0}))&&(k=z)}}return Tn(Tn({},e),{},_n({},E,Tn(Tn({},n.props),{},{axisType:o,domain:k,categoricalDomain:P,duplicateDomain:C,originalDomain:null!==(g=n.props.domain)&&void 0!==g?g:_,isCategorical:d,layout:f})))}),{})}(t,{axes:d,graphicalItems:i,axisType:r,axisIdKey:h,stackGroups:s,dataStartIndex:u,dataEndIndex:c}):i&&i.length&&(g=function(t,e){var n=e.graphicalItems,r=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,s=e.dataStartIndex,u=e.dataEndIndex,c=t.layout,f=t.children,h=zn(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:u}),d=h.length,g=(0,A.NA)(c,o),y=-1;return n.reduce((function(t,e){var v,m=e.props[i],b=Rn("number");return t[m]?t:(y++,g?v=l()(0,d):a&&a[m]&&a[m].hasStack?(v=(0,A.EB)(a[m].stackGroups,s,u),v=on(f,v,m,o)):(v=(0,A.LG)(b,(0,A.s6)(h,n.filter((function(t){return t.props[i]===m&&!t.props.hide})),"number",c),r.defaultProps.allowDataOverflow),v=on(f,v,m,o)),Tn(Tn({},t),{},_n({},m,Tn(Tn({axisType:o},r.defaultProps),{},{hide:!0,orientation:p()(Bn,"".concat(o,".").concat(y%2),null),domain:v,originalDomain:b,isCategorical:g,layout:c}))))}),{})}(t,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:h,stackGroups:s,dataStartIndex:u,dataEndIndex:c})),g},er=function(t){var e,n,r=t.children,o=t.defaultShowTooltip,i=(0,j.sP)(r,Te);return{chartX:0,chartY:0,dataStartIndex:i&&i.props&&i.props.startIndex||0,dataEndIndex:void 0!==(null==i||null===(e=i.props)||void 0===e?void 0:e.endIndex)?null==i||null===(n=i.props)||void 0===n?void 0:n.endIndex:t.data&&t.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:Boolean(o)}},nr=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},rr=n(25556),or=n(3131),ir=(Nn={chartName:"BarChart",GraphicalChild:T.$,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:rr.K},{axisType:"yAxis",AxisComp:or.B}],formatAxisMap:function(t,e,n,r,o){var i=t.width,a=t.height,s=t.layout,u=t.children,c=Object.keys(e),l={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},f=!!(0,j.sP)(u,T.$);return c.reduce((function(i,a){var u,c,p,h,d,g=e[a],y=g.orientation,v=g.domain,m=g.padding,b=void 0===m?{}:m,x=g.mirror,O=g.reversed,w="".concat(y).concat(x?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var S=v[1]-v[0],E=1/0,k=g.categoricalDomain.sort();k.forEach((function(t,e){e>0&&(E=Math.min((t||0)-(k[e-1]||0),E))}));var C=E/S,P="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(u=C*P/2),"no-gap"===g.padding){var j=(0,M.h1)(t.barCategoryGap,C*P),T=C*P/2;u=T-j-(T-j)/P*j}}c="xAxis"===r?[n.left+(b.left||0)+(u||0),n.left+n.width-(b.right||0)-(u||0)]:"yAxis"===r?"horizontal"===s?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(u||0),n.top+n.height-(b.bottom||0)-(u||0)]:g.range,O&&(c=[c[1],c[0]]);var _=(0,A.Hq)(g,o,f),D=_.scale,B=_.realScaleType;D.domain(v).range(c),(0,A.zF)(D);var z=(0,A.g$)(D,I(I({},g),{},{realScaleType:B}));"xAxis"===r?(d="top"===y&&!x||"bottom"===y&&x,p=n.left,h=l[w]-d*g.height):"yAxis"===r&&(d="left"===y&&!x||"right"===y&&x,p=l[w]-d*g.width,h=n.top);var R=I(I(I({},g),z),{},{realScaleType:B,x:p,y:h,scale:D,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return R.bandSize=(0,A.zT)(R,z),g.hide||"xAxis"!==r?g.hide||(l[w]+=(d?-1:1)*R.width):l[w]+=(d?-1:1)*R.height,I(I({},i),{},L({},a,R))}),{})}},Fn=Nn.chartName,Un=Nn.GraphicalChild,qn=void 0===(Vn=Nn.defaultTooltipEventType)?"axis":Vn,Zn=void 0===(Gn=Nn.validateTooltipEventTypes)?["axis"]:Gn,Hn=Nn.axisComponents,$n=Nn.legendContent,Yn=Nn.formatAxisMap,Xn=Nn.defaultProps,Kn=function(t,e){var n=t.props,r=t.dataStartIndex,o=t.dataEndIndex,i=t.updateId;if(!(0,j.TT)({props:n}))return null;var s=n.children,u=n.layout,c=n.stackOffset,l=n.data,f=n.reverseStackOrder,h=nr(u),g=h.numericAxisName,y=h.cateAxisName,v=(0,j.NN)(s,Un),m=(0,A.wh)(l,v,"".concat(g,"Id"),"".concat(y,"Id"),c,f),b=Hn.reduce((function(t,e){var i="".concat(e.axisType,"Map");return Tn(Tn({},t),{},_n({},i,tr(n,Tn(Tn({},e),{},{graphicalItems:v,stackGroups:e.axisType===g&&m,dataStartIndex:r,dataEndIndex:o}))))}),{}),x=function(t,e){var n=t.props,r=t.graphicalItems,o=t.xAxisMap,i=void 0===o?{}:o,a=t.yAxisMap,s=void 0===a?{}:a,u=n.width,c=n.height,l=n.children,f=n.margin||{},h=(0,j.sP)(l,Te),d=(0,j.sP)(l,Q.D),g=Object.keys(s).reduce((function(t,e){var n=s[e],r=n.orientation;return n.mirror||n.hide?t:Tn(Tn({},t),{},_n({},r,t[r]+n.width))}),{left:f.left||0,right:f.right||0}),y=Object.keys(i).reduce((function(t,e){var n=i[e],r=n.orientation;return n.mirror||n.hide?t:Tn(Tn({},t),{},_n({},r,p()(t,"".concat(r))+n.height))}),{top:f.top||0,bottom:f.bottom||0}),v=Tn(Tn({},y),g),m=v.bottom;h&&(v.bottom+=h.props.height||Te.defaultProps.height),d&&e&&(v=(0,A.By)(v,r,n,e));var b=u-v.left-v.right,x=c-v.top-v.bottom;return Tn(Tn({brushBottom:m},v),{},{width:Math.max(b,0),height:Math.max(x,0)})}(Tn(Tn({},b),{},{props:n,graphicalItems:v}),null==e?void 0:e.legendBBox);Object.keys(b).forEach((function(t){b[t]=Yn(n,b[t],x,t.replace("Map",""),Fn)}));var O,w,S,E=(O=b["".concat(y,"Map")],w=(0,M.Kt)(O),{tooltipTicks:S=(0,A.uY)(w,!1,!0),orderedTooltipTicks:d()(S,(function(t){return t.coordinate})),tooltipAxis:w,tooltipAxisBandSize:(0,A.zT)(w,S)}),k=function(t,e){var n=e.graphicalItems,r=e.stackGroups,o=e.offset,i=e.updateId,s=e.dataStartIndex,u=e.dataEndIndex,c=t.barSize,l=t.layout,f=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,d=nr(l),g=d.numericAxisName,y=d.cateAxisName,v=function(t){return!(!t||!t.length)&&t.some((function(t){var e=(0,j.Gf)(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(n),m=v&&(0,A.pt)({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var d=zn(t.data,{graphicalItems:[n],dataStartIndex:s,dataEndIndex:u}),v=n.props,x=v.dataKey,O=v.maxBarSize,w=n.props["".concat(g,"Id")],S=n.props["".concat(y,"Id")],M=Hn.reduce((function(t,r){var o,i=e["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")];i&&i[a]||"zAxis"===r.axisType||function(t,e){throw new Error("Invariant failed")}();var s=i[a];return Tn(Tn({},t),{},(_n(o={},r.axisType,s),_n(o,"".concat(r.axisType,"Ticks"),(0,A.uY)(s)),o))}),{}),E=M[y],k=M["".concat(y,"Ticks")],C=r&&r[w]&&r[w].hasStack&&(0,A.O3)(n,r[w].stackGroups),P=(0,j.Gf)(n.type).indexOf("Bar")>=0,T=(0,A.zT)(E,k),_=[];if(P){var D,B,I=a()(O)?h:O,L=null!==(D=null!==(B=(0,A.zT)(E,k,!0))&&void 0!==B?B:I)&&void 0!==D?D:0;_=(0,A.qz)({barGap:f,barCategoryGap:p,bandSize:L!==T?L:T,sizeList:m[S],maxBarSize:I}),L!==T&&(_=_.map((function(t){return Tn(Tn({},t),{},{position:Tn(Tn({},t.position),{},{offset:t.position.offset-L/2})})})))}var z,R=n&&n.type&&n.type.getComposedData;R&&b.push({props:Tn(Tn({},R(Tn(Tn({},M),{},{displayedData:d,props:t,dataKey:x,item:n,bandSize:T,barPosition:_,offset:o,stackedData:C,layout:l,dataStartIndex:s,dataEndIndex:u}))),{},(z={key:n.key||"item-".concat(c)},_n(z,g,M[g]),_n(z,y,M[y]),_n(z,"animationId",i),z)),childIndex:(0,j.$R)(n,t.children),item:n})})),b}(n,Tn(Tn({},b),{},{dataStartIndex:r,dataEndIndex:o,updateId:i,graphicalItems:v,stackGroups:m,offset:x}));return Tn(Tn({formattedGraphicalItems:k,graphicalItems:v,offset:x,stackGroups:m},E),b)},Wn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Sn(t,e)}(l,t);var e,n,i,s,c=(i=l,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=kn(i);if(s){var n=kn(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Mn(this,t)});function l(t){var e,n,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),_n(En(o=c.call(this,t)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),_n(En(o),"accessibilityManager",new hn),_n(En(o),"handleLegendBBoxUpdate",(function(t){if(t){var e=o.state,n=e.dataStartIndex,r=e.dataEndIndex,i=e.updateId;o.setState(Tn({legendBBox:t},Kn({props:o.props,dataStartIndex:n,dataEndIndex:r,updateId:i},Tn(Tn({},o.state),{},{legendBBox:t}))))}})),_n(En(o),"handleReceiveSyncEvent",(function(t,e,n){if(o.props.syncId===t){if(n===o.eventEmitterSymbol&&"function"!=typeof o.props.syncMethod)return;o.applySyncEvent(e)}})),_n(En(o),"handleBrushChange",(function(t){var e=t.startIndex,n=t.endIndex;if(e!==o.state.dataStartIndex||n!==o.state.dataEndIndex){var r=o.state.updateId;o.setState((function(){return Tn({dataStartIndex:e,dataEndIndex:n},Kn({props:o.props,dataStartIndex:e,dataEndIndex:n,updateId:r},o.state))})),o.triggerSyncEvent({dataStartIndex:e,dataEndIndex:n})}})),_n(En(o),"handleMouseEnter",(function(t){var e=o.getMouseInfo(t);if(e){var n=Tn(Tn({},e),{},{isTooltipActive:!0});o.setState(n),o.triggerSyncEvent(n);var r=o.props.onMouseEnter;u()(r)&&r(n,t)}})),_n(En(o),"triggeredAfterMouseMove",(function(t){var e=o.getMouseInfo(t),n=e?Tn(Tn({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(n),o.triggerSyncEvent(n);var r=o.props.onMouseMove;u()(r)&&r(n,t)})),_n(En(o),"handleItemMouseEnter",(function(t){o.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),_n(En(o),"handleItemMouseLeave",(function(){o.setState((function(){return{isTooltipActive:!1}}))})),_n(En(o),"handleMouseMove",(function(t){t.persist(),o.throttleTriggeredAfterMouseMove(t)})),_n(En(o),"handleMouseLeave",(function(t){var e={isTooltipActive:!1};o.setState(e),o.triggerSyncEvent(e);var n=o.props.onMouseLeave;u()(n)&&n(e,t)})),_n(En(o),"handleOuterEvent",(function(t){var e,n=(0,j.Bh)(t),r=p()(o.props,"".concat(n));n&&u()(r)&&r(null!==(e=/.*touch.*/i.test(n)?o.getMouseInfo(t.changedTouches[0]):o.getMouseInfo(t))&&void 0!==e?e:{},t)})),_n(En(o),"handleClick",(function(t){var e=o.getMouseInfo(t);if(e){var n=Tn(Tn({},e),{},{isTooltipActive:!0});o.setState(n),o.triggerSyncEvent(n);var r=o.props.onClick;u()(r)&&r(n,t)}})),_n(En(o),"handleMouseDown",(function(t){var e=o.props.onMouseDown;u()(e)&&e(o.getMouseInfo(t),t)})),_n(En(o),"handleMouseUp",(function(t){var e=o.props.onMouseUp;u()(e)&&e(o.getMouseInfo(t),t)})),_n(En(o),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),_n(En(o),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseDown(t.changedTouches[0])})),_n(En(o),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseUp(t.changedTouches[0])})),_n(En(o),"triggerSyncEvent",(function(t){void 0!==o.props.syncId&&sn.emit(un,o.props.syncId,t,o.eventEmitterSymbol)})),_n(En(o),"applySyncEvent",(function(t){var e=o.props,n=e.layout,r=e.syncMethod,i=o.state.updateId,a=t.dataStartIndex,s=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)o.setState(Tn({dataStartIndex:a,dataEndIndex:s},Kn({props:o.props,dataStartIndex:a,dataEndIndex:s,updateId:i},o.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,c=t.chartY,l=t.activeTooltipIndex,f=o.state,p=f.offset,h=f.tooltipTicks;if(!p)return;if("function"==typeof r)l=r(h,t);else if("value"===r){l=-1;for(var d=0;d<h.length;d++)if(h[d].value===t.activeLabel){l=d;break}}var g=Tn(Tn({},p),{},{x:p.left,y:p.top}),y=Math.min(u,g.x+g.width),v=Math.min(c,g.y+g.height),m=h[l]&&h[l].value,b=Qn(o.state,o.props.data,l),x=h[l]?{x:"horizontal"===n?h[l].coordinate:y,y:"horizontal"===n?v:h[l].coordinate}:Ln;o.setState(Tn(Tn({},t),{},{activeLabel:m,activeCoordinate:x,activePayload:b,activeTooltipIndex:l}))}else o.setState(t)})),_n(En(o),"verticalCoordinatesGenerator",(function(t,e){var n=t.xAxis,r=t.width,o=t.height,i=t.offset;return(0,A.Rf)($(Tn(Tn(Tn({},pe.defaultProps),n),{},{ticks:(0,A.uY)(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.left,i.left+i.width,e)})),_n(En(o),"horizontalCoordinatesGenerator",(function(t,e){var n=t.yAxis,r=t.width,o=t.height,i=t.offset;return(0,A.Rf)($(Tn(Tn(Tn({},pe.defaultProps),n),{},{ticks:(0,A.uY)(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.top,i.top+i.height,e)})),_n(En(o),"axesTicksGenerator",(function(t){return(0,A.uY)(t,!0)})),_n(En(o),"renderCursor",(function(t){var e,n=o.state,i=n.isTooltipActive,a=n.activeCoordinate,s=n.activePayload,u=n.offset,c=n.activeTooltipIndex,l=n.tooltipAxisBandSize,f=o.getTooltipEventType(),p=null!==(e=t.props.active)&&void 0!==e?e:i;if(!t||!t.props.cursor||!p||!a||"ScatterChart"!==Fn&&"axis"!==f)return null;var h,d=o.props.layout,g=zt;if("ScatterChart"===Fn)h=a,g=qt;else if("BarChart"===Fn)h=function(t,e,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-o:n.left+.5,y:"horizontal"===t?n.top+.5:e.y-o,width:"horizontal"===t?r:n.width-1,height:"horizontal"===t?n.height-1:r}}(d,a,u,l),g=$t.A;else if("radial"===d){var y=S(a),v=y.cx,m=y.cy,b=y.radius;h={cx:v,cy:m,startAngle:y.startAngle,endAngle:y.endAngle,innerRadius:b,outerRadius:b},g=Gt.L}else h={points:gn(d,a,u)},g=zt;var x=t.key||"_recharts-cursor",O=Tn(Tn(Tn(Tn({stroke:"#ccc",pointerEvents:"none"},u),h),(0,j.L6)(t.props.cursor)),{},{payload:s,payloadIndex:c,key:x,className:"recharts-tooltip-cursor"});return(0,r.isValidElement)(t.props.cursor)?(0,r.cloneElement)(t.props.cursor,O):(0,r.createElement)(g,O)})),_n(En(o),"renderPolarAxis",(function(t,e,n){var i=p()(t,"type.axisType"),a=p()(o.state,"".concat(i,"Map")),s=a&&a[t.props["".concat(i,"Id")]];return(0,r.cloneElement)(t,Tn(Tn({},s),{},{className:i,key:t.key||"".concat(e,"-").concat(n),ticks:(0,A.uY)(s,!0)}))})),_n(En(o),"renderXAxis",(function(t,e,n){var r=o.state.xAxisMap[t.props.xAxisId];return o.renderAxis(r,t,e,n)})),_n(En(o),"renderYAxis",(function(t,e,n){var r=o.state.yAxisMap[t.props.yAxisId];return o.renderAxis(r,t,e,n)})),_n(En(o),"renderGrid",(function(t){var e=o.state,n=e.xAxisMap,i=e.yAxisMap,a=e.offset,s=o.props,u=s.width,c=s.height,l=(0,M.Kt)(n),f=m()(i,(function(t){return x()(t.domain,Number.isFinite)}))||(0,M.Kt)(i),p=t.props||{};return(0,r.cloneElement)(t,{key:t.key||"grid",x:(0,M.hj)(p.x)?p.x:a.left,y:(0,M.hj)(p.y)?p.y:a.top,width:(0,M.hj)(p.width)?p.width:a.width,height:(0,M.hj)(p.height)?p.height:a.height,xAxis:l,yAxis:f,offset:a,chartWidth:u,chartHeight:c,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||o.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||o.horizontalCoordinatesGenerator})})),_n(En(o),"renderPolarGrid",(function(t){var e=t.props,n=e.radialLines,i=e.polarAngles,a=e.polarRadius,s=o.state,u=s.radiusAxisMap,c=s.angleAxisMap,l=(0,M.Kt)(u),f=(0,M.Kt)(c),p=f.cx,h=f.cy,d=f.innerRadius,g=f.outerRadius;return(0,r.cloneElement)(t,{polarAngles:Array.isArray(i)?i:(0,A.uY)(f,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(a)?a:(0,A.uY)(l,!0).map((function(t){return t.coordinate})),cx:p,cy:h,innerRadius:d,outerRadius:g,key:t.key||"polar-grid",radialLines:n})})),_n(En(o),"renderLegend",(function(){var t=o.state.formattedGraphicalItems,e=o.props,n=e.children,i=e.width,a=e.height,s=o.props.margin||{},u=i-(s.left||0)-(s.right||0),c=(0,_e.z)({children:n,formattedGraphicalItems:t,legendWidth:u,legendContent:$n});if(!c)return null;var l=c.item,f=On(c,yn);return(0,r.cloneElement)(l,Tn(Tn({},f),{},{chartWidth:i,chartHeight:a,margin:s,onBBoxUpdate:o.handleLegendBBoxUpdate}))})),_n(En(o),"renderTooltip",(function(){var t,e=o.props.children,n=(0,j.sP)(e,K.u);if(!n)return null;var i=o.state,a=i.isTooltipActive,s=i.activeCoordinate,u=i.activePayload,c=i.activeLabel,l=i.offset,f=null!==(t=n.props.active)&&void 0!==t?t:a;return(0,r.cloneElement)(n,{viewBox:Tn(Tn({},l),{},{x:l.left,y:l.top}),active:f,label:c,payload:f?u:[],coordinate:s})})),_n(En(o),"renderBrush",(function(t){var e=o.props,n=e.margin,i=e.data,a=o.state,s=a.offset,u=a.dataStartIndex,c=a.dataEndIndex,l=a.updateId;return(0,r.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:(0,A.DO)(o.handleBrushChange,t.props.onChange),data:i,x:(0,M.hj)(t.props.x)?t.props.x:s.left,y:(0,M.hj)(t.props.y)?t.props.y:s.top+s.height+s.brushBottom-(n.bottom||0),width:(0,M.hj)(t.props.width)?t.props.width:s.width,startIndex:u,endIndex:c,updateId:"brush-".concat(l)})})),_n(En(o),"renderReferenceElement",(function(t,e,n){if(!t)return null;var i=En(o).clipPathId,a=o.state,s=a.xAxisMap,u=a.yAxisMap,c=a.offset,l=t.props,f=l.xAxisId,p=l.yAxisId;return(0,r.cloneElement)(t,{key:t.key||"".concat(e,"-").concat(n),xAxis:s[f],yAxis:u[p],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:i})})),_n(En(o),"renderActivePoints",(function(t){var e=t.item,n=t.activePoint,r=t.basePoint,o=t.childIndex,i=t.isRange,a=[],s=e.props.key,u=e.item.props,c=u.activeDot,f=Tn(Tn({index:o,dataKey:u.dataKey,cx:n.x,cy:n.y,r:4,fill:(0,A.fk)(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(o)},(0,j.L6)(c)),(0,Ct.Ym)(c));return a.push(l.renderActiveDot(c,f)),r?a.push(l.renderActiveDot(c,Tn(Tn({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(o)}))):i&&a.push(null),a})),_n(En(o),"renderGraphicChild",(function(t,e,n){var i=o.filterFormatItem(t,e,n);if(!i)return null;var s=o.getTooltipEventType(),u=o.state,c=u.isTooltipActive,l=u.tooltipAxis,f=u.activeTooltipIndex,p=u.activeLabel,h=o.props.children,d=(0,j.sP)(h,K.u),g=i.props,y=g.points,v=g.isRange,m=g.baseLine,b=i.item.props,x=b.activeDot,O=b.hide,w=b.activeBar,S=b.activeShape,E=Boolean(!O&&c&&d&&(x||w||S)),k={};"axis"!==s&&d&&"click"===d.props.trigger?k={onClick:(0,A.DO)(o.handleItemMouseEnter,t.props.onClick)}:"axis"!==s&&(k={onMouseLeave:(0,A.DO)(o.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:(0,A.DO)(o.handleItemMouseEnter,t.props.onMouseEnter)});var C=(0,r.cloneElement)(t,Tn(Tn({},i.props),k));if(E){if(!(f>=0)){var P,T=(null!==(P=o.getItemByXY(o.state.activeCoordinate))&&void 0!==P?P:{graphicalItem:C}).graphicalItem,_=T.item,D=void 0===_?t:_,B=T.childIndex,I=Tn(Tn(Tn({},i.props),k),{},{activeIndex:B});return[(0,r.cloneElement)(D,I),null,null]}var L,z;if(l.dataKey&&!l.allowDuplicatedCategory){var R="function"==typeof l.dataKey?function(t){return"function"==typeof l.dataKey?l.dataKey(t.payload):null}:"payload.".concat(l.dataKey.toString());L=(0,M.Ap)(y,R,p),z=v&&m&&(0,M.Ap)(m,R,p)}else L=null==y?void 0:y[f],z=v&&m&&m[f];if(S||w){var N=void 0!==t.props.activeIndex?t.props.activeIndex:f;return[(0,r.cloneElement)(t,Tn(Tn(Tn({},i.props),k),{},{activeIndex:N})),null,null]}if(!a()(L))return[C].concat(Cn(o.renderActivePoints({item:i,activePoint:L,basePoint:z,childIndex:f,isRange:v})))}return v?[C,null,null]:[C,null]})),_n(En(o),"renderCustomized",(function(t,e,n){return(0,r.cloneElement)(t,Tn(Tn({key:"recharts-customized-".concat(n)},o.props),o.state))})),_n(En(o),"renderMap",{CartesianGrid:{handler:o.renderGrid,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:o.renderReferenceElement},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:o.renderXAxis},YAxis:{handler:o.renderYAxis},Brush:{handler:o.renderBrush,once:!0},Bar:{handler:o.renderGraphicChild},Line:{handler:o.renderGraphicChild},Area:{handler:o.renderGraphicChild},Radar:{handler:o.renderGraphicChild},RadialBar:{handler:o.renderGraphicChild},Scatter:{handler:o.renderGraphicChild},Pie:{handler:o.renderGraphicChild},Funnel:{handler:o.renderGraphicChild},Tooltip:{handler:o.renderCursor,once:!0},PolarGrid:{handler:o.renderPolarGrid,once:!0},PolarAngleAxis:{handler:o.renderPolarAxis},PolarRadiusAxis:{handler:o.renderPolarAxis},Customized:{handler:o.renderCustomized}}),o.clipPathId="".concat(null!==(e=t.id)&&void 0!==e?e:(0,M.EL)("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=y()(o.triggeredAfterMouseMove,null!==(n=t.throttleDelay)&&void 0!==n?n:1e3/60),o.state={},o}return e=l,n=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(t,e){return this.props.accessibilityLayer?(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=(0,j.sP)(this.props.children,K.u);if(t&&Boolean(t.props.shared)){var e=t.props.shared?"axis":"item";return Zn.indexOf(e)>=0?e:qn}return qn}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=this.container,n=e.getBoundingClientRect(),r=(0,E.os)(n),o={chartX:Math.round(t.pageX-r.left),chartY:Math.round(t.pageY-r.top)},i=n.width/e.offsetWidth||1,a=this.inRange(o.chartX,o.chartY,i);if(!a)return null;var s=this.state,u=s.xAxisMap,c=s.yAxisMap;if("axis"!==this.getTooltipEventType()&&u&&c){var l=(0,M.Kt)(u).scale,f=(0,M.Kt)(c).scale,p=l&&l.invert?l.invert(o.chartX):null,h=f&&f.invert?f.invert(o.chartY):null;return Tn(Tn({},o),{},{xValue:p,yValue:h})}var d=Jn(this.state,this.props.data,this.props.layout,a);return d?Tn(Tn({},o),d):null}},{key:"inRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=t/n,i=e/n;if("horizontal"===r||"vertical"===r){var a=this.state.offset,s=o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height;return s?{x:o,y:i}:null}var u=this.state,c=u.angleAxisMap,l=u.radiusAxisMap;if(c&&l){var f=(0,M.Kt)(c);return(0,w.z3)({x:o,y:i},f)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),n=(0,j.sP)(t,K.u),r={};return n&&"axis"===e&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),Tn(Tn({},(0,Ct.Ym)(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){sn.on(un,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){sn.removeListener(un,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===t||a.props.key===t.key||e===(0,j.Gf)(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(t,e,n,r){var i=this.props,a=i.width,s=i.height;return o().createElement(pe,xn({},t,{className:(0,O.Z)("recharts-".concat(t.axisType," ").concat(t.axisType),t.className),key:e.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:a,height:s},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,n=e.left,r=e.top,i=e.height,a=e.width;return o().createElement("defs",null,o().createElement("clipPath",{id:t},o().createElement("rect",{x:n,y:r,height:i,width:a})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var n=bn(e,2),r=n[0],o=n[1];return Tn(Tn({},t),{},_n({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var n=bn(e,2),r=n[0],o=n[1];return Tn(Tn({},t),{},_n({},r,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,n=e.formattedGraphicalItems,r=e.activeItem;if(n&&n.length)for(var o=0,i=n.length;o<i;o++){var a=n[o],s=a.props,u=a.item,c=(0,j.Gf)(u.type);if("Bar"===c){var l=(s.data||[]).find((function(e){return(0,$t.X)(t,e)}));if(l)return{graphicalItem:a,payload:l}}else if("RadialBar"===c){var f=(s.data||[]).find((function(e){return(0,w.z3)(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if((0,dn.lT)(a,r)||(0,dn.V$)(a,r)||(0,dn.w7)(a,r)){var p=(0,dn.a3)({graphicalItem:a,activeTooltipItem:r,itemData:u.props.data}),h=void 0===u.props.activeIndex?p:u.props.activeIndex;return{graphicalItem:Tn(Tn({},a),{},{childIndex:h}),payload:(0,dn.w7)(a,r)?u.props.data[p]:a.props.data[p]}}}return null}},{key:"render",value:function(){var t=this;if(!(0,j.TT)(this))return null;var e,n,r=this.props,i=r.children,a=r.className,s=r.width,u=r.height,c=r.style,l=r.compact,f=r.title,p=r.desc,h=On(r,vn),d=(0,j.L6)(h);if(l)return o().createElement(Y.T,xn({},d,{width:s,height:u,title:f,desc:p}),this.renderClipPath(),(0,j.eu)(i,this.renderMap));this.props.accessibilityLayer&&(d.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,d.role=null!==(n=this.props.role)&&void 0!==n?n:"img",d.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},d.onFocus=function(){t.accessibilityManager.focus()});var g=this.parseEventsOfWrapper();return o().createElement("div",xn({className:(0,O.Z)("recharts-wrapper",a),style:Tn({position:"relative",cursor:"default",width:s,height:u},c)},g,{ref:function(e){t.container=e},role:"region"}),o().createElement(Y.T,xn({},d,{width:s,height:u,title:f,desc:p,style:In}),this.renderClipPath(),(0,j.eu)(i,this.renderMap)),this.renderLegend(),this.renderTooltip())}}],n&&wn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),l}(r.Component),_n(Wn,"displayName",Fn),_n(Wn,"defaultProps",Tn({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},Xn)),_n(Wn,"getDerivedStateFromProps",(function(t,e){var n=t.dataKey,r=t.data,o=t.children,i=t.width,s=t.height,u=t.layout,c=t.stackOffset,l=t.margin;if(void 0===e.updateId){var f=er(t);return Tn(Tn(Tn({},f),{},{updateId:0},Kn(Tn(Tn({props:t},f),{},{updateId:0}),e)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:s,prevLayout:u,prevStackOffset:c,prevMargin:l,prevChildren:o})}if(n!==e.prevDataKey||r!==e.prevData||i!==e.prevWidth||s!==e.prevHeight||u!==e.prevLayout||c!==e.prevStackOffset||!(0,Yt.w)(l,e.prevMargin)){var p=er(t),h={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},d=Tn(Tn({},Jn(e,r,u)),{},{updateId:e.updateId+1}),g=Tn(Tn(Tn({},p),h),d);return Tn(Tn(Tn({},g),Kn(Tn({props:t},g),e)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:s,prevLayout:u,prevStackOffset:c,prevMargin:l,prevChildren:o})}if(!(0,j.rL)(o,e.prevChildren)){var y=a()(r)?e.updateId+1:e.updateId;return Tn(Tn({updateId:y},Kn(Tn(Tn({props:t},e),{},{updateId:y}),e)),{},{prevChildren:o})}return null})),_n(Wn,"renderActiveDot",(function(t,e){var n;return n=(0,r.isValidElement)(t)?(0,r.cloneElement)(t,e):u()(t)?t(e):o().createElement(Ht,e),o().createElement(X.m,{className:"recharts-active-dot",key:e.key},n)})),Wn)},11011:(t,e,n)=>{"use strict";n.d(e,{b:()=>r});var r=function(t){return null};r.displayName="Cell"},81224:(t,e,n)=>{"use strict";n.d(e,{_:()=>M});var r=n(8156),o=n.n(r),i=n(1842),a=n.n(i),s=n(61049),u=n.n(s),c=n(29259),l=n.n(c),f=n(75877),p=n(75963),h=n(79376),d=n(15027),g=n(22089);function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}var v=["offset"];function m(t){return function(t){if(Array.isArray(t))return b(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){w(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function w(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==y(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===y(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function S(){return S=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},S.apply(this,arguments)}function M(t){var e,n=t.offset,i=O({offset:void 0===n?5:n},function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,v)),s=i.viewBox,c=i.position,y=i.value,m=i.children,b=i.content,x=i.className,w=void 0===x?"":x,M=i.textBreakAll;if(!s||a()(y)&&a()(m)&&!(0,r.isValidElement)(b)&&!u()(b))return null;if((0,r.isValidElement)(b))return(0,r.cloneElement)(b,i);if(u()(b)){if(e=(0,r.createElement)(b,i),(0,r.isValidElement)(e))return e}else e=function(t){var e=t.value,n=t.formatter,r=a()(t.children)?e:t.children;return u()(n)?n(r):r}(i);var E=function(t){return"cx"in t&&(0,d.hj)(t.cx)}(s),k=(0,h.L6)(i,!0);if(E&&("insideStart"===c||"insideEnd"===c||"end"===c))return function(t,e,n){var r,i,s=t.position,u=t.viewBox,c=t.offset,l=t.className,p=u,h=p.cx,y=p.cy,v=p.innerRadius,m=p.outerRadius,b=p.startAngle,x=p.endAngle,O=p.clockWise,w=(v+m)/2,M=function(t,e){return(0,d.uY)(e-t)*Math.min(Math.abs(e-t),360)}(b,x),E=M>=0?1:-1;"insideStart"===s?(r=b+E*c,i=O):"insideEnd"===s?(r=x-E*c,i=!O):"end"===s&&(r=x+E*c,i=O),i=M<=0?i:!i;var k=(0,g.op)(h,y,w,r),C=(0,g.op)(h,y,w,r+359*(i?1:-1)),P="M".concat(k.x,",").concat(k.y,"\n A").concat(w,",").concat(w,",0,1,").concat(i?0:1,",\n ").concat(C.x,",").concat(C.y),A=a()(t.id)?(0,d.EL)("recharts-radial-line-"):t.id;return o().createElement("text",S({},n,{dominantBaseline:"central",className:(0,f.Z)("recharts-radial-bar-label",l)}),o().createElement("defs",null,o().createElement("path",{id:A,d:P})),o().createElement("textPath",{xlinkHref:"#".concat(A)},e))}(i,e,k);var C=E?function(t){var e=t.viewBox,n=t.offset,r=t.position,o=e,i=o.cx,a=o.cy,s=o.innerRadius,u=o.outerRadius,c=(o.startAngle+o.endAngle)/2;if("outside"===r){var l=(0,g.op)(i,a,u+n,c),f=l.x;return{x:f,y:l.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=(s+u)/2,h=(0,g.op)(i,a,p,c);return{x:h.x,y:h.y,textAnchor:"middle",verticalAnchor:"middle"}}(i):function(t){var e=t.viewBox,n=t.parentViewBox,r=t.offset,o=t.position,i=e,a=i.x,s=i.y,u=i.width,c=i.height,f=c>=0?1:-1,p=f*r,h=f>0?"end":"start",g=f>0?"start":"end",y=u>=0?1:-1,v=y*r,m=y>0?"end":"start",b=y>0?"start":"end";if("top"===o)return O(O({},{x:a+u/2,y:s-f*r,textAnchor:"middle",verticalAnchor:h}),n?{height:Math.max(s-n.y,0),width:u}:{});if("bottom"===o)return O(O({},{x:a+u/2,y:s+c+p,textAnchor:"middle",verticalAnchor:g}),n?{height:Math.max(n.y+n.height-(s+c),0),width:u}:{});if("left"===o){var x={x:a-v,y:s+c/2,textAnchor:m,verticalAnchor:"middle"};return O(O({},x),n?{width:Math.max(x.x-n.x,0),height:c}:{})}if("right"===o){var w={x:a+u+v,y:s+c/2,textAnchor:b,verticalAnchor:"middle"};return O(O({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:c}:{})}var S=n?{width:u,height:c}:{};return"insideLeft"===o?O({x:a+v,y:s+c/2,textAnchor:b,verticalAnchor:"middle"},S):"insideRight"===o?O({x:a+u-v,y:s+c/2,textAnchor:m,verticalAnchor:"middle"},S):"insideTop"===o?O({x:a+u/2,y:s+p,textAnchor:"middle",verticalAnchor:g},S):"insideBottom"===o?O({x:a+u/2,y:s+c-p,textAnchor:"middle",verticalAnchor:h},S):"insideTopLeft"===o?O({x:a+v,y:s+p,textAnchor:b,verticalAnchor:g},S):"insideTopRight"===o?O({x:a+u-v,y:s+p,textAnchor:m,verticalAnchor:g},S):"insideBottomLeft"===o?O({x:a+v,y:s+c-p,textAnchor:b,verticalAnchor:h},S):"insideBottomRight"===o?O({x:a+u-v,y:s+c-p,textAnchor:m,verticalAnchor:h},S):l()(o)&&((0,d.hj)(o.x)||(0,d.hU)(o.x))&&((0,d.hj)(o.y)||(0,d.hU)(o.y))?O({x:a+(0,d.h1)(o.x,u),y:s+(0,d.h1)(o.y,c),textAnchor:"end",verticalAnchor:"end"},S):O({x:a+u/2,y:s+c/2,textAnchor:"middle",verticalAnchor:"middle"},S)}(i);return o().createElement(p.x,S({className:(0,f.Z)("recharts-label",w)},k,C,{breakAll:M}),e)}M.displayName="Label";var E=function(t){var e=t.cx,n=t.cy,r=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,s=t.radius,u=t.innerRadius,c=t.outerRadius,l=t.x,f=t.y,p=t.top,h=t.left,g=t.width,y=t.height,v=t.clockWise,m=t.labelViewBox;if(m)return m;if((0,d.hj)(g)&&(0,d.hj)(y)){if((0,d.hj)(l)&&(0,d.hj)(f))return{x:l,y:f,width:g,height:y};if((0,d.hj)(p)&&(0,d.hj)(h))return{x:p,y:h,width:g,height:y}}return(0,d.hj)(l)&&(0,d.hj)(f)?{x:l,y:f,width:0,height:0}:(0,d.hj)(e)&&(0,d.hj)(n)?{cx:e,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:u||0,outerRadius:c||s||a||0,clockWise:v}:t.viewBox?t.viewBox:{}},k=function(t,e){return t?!0===t?o().createElement(M,{key:"label-implicit",viewBox:e}):(0,d.P2)(t)?o().createElement(M,{key:"label-implicit",viewBox:e,value:t}):(0,r.isValidElement)(t)?t.type===M?(0,r.cloneElement)(t,{key:"label-implicit",viewBox:e}):o().createElement(M,{key:"label-implicit",content:t,viewBox:e}):u()(t)?o().createElement(M,{key:"label-implicit",content:t,viewBox:e}):l()(t)?o().createElement(M,S({viewBox:e},t,{key:"label-implicit"})):null:null};M.parseViewBox=E,M.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var o=t.children,i=E(t),a=(0,h.NN)(o,M).map((function(t,n){return(0,r.cloneElement)(t,{viewBox:e||i,key:"label-".concat(n)})}));if(!n)return a;var s=k(t.label,e||i);return[s].concat(m(a))}},97245:(t,e,n)=>{"use strict";n.d(e,{D:()=>N});var r=n(8156),o=n.n(r),i=n(61049),a=n.n(i),s=n(75877),u=n(91745),c=n(19617),l=n(66406),f=n(21442);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},h.apply(this,arguments)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,O(r.key),r)}}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function m(t,e){if(e&&("object"===p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function x(t,e,n){return(e=O(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O(t){var e=function(t,e){if("object"!==p(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===p(e)?e:String(e)}var w=32,S=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(O,t);var e,n,r,i,p=(r=O,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=b(r);if(i){var n=b(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return m(this,t)});function O(){return g(this,O),p.apply(this,arguments)}return e=O,n=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,n=16,r=w/6,i=w/3,a=t.inactive?e:t.color;if("plainline"===t.type)return o().createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:n,x2:w,y2:n,className:"recharts-legend-icon"});if("line"===t.type)return o().createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(n,"h").concat(i,"\n A").concat(r,",").concat(r,",0,1,1,").concat(2*i,",").concat(n,"\n H").concat(w,"M").concat(2*i,",").concat(n,"\n A").concat(r,",").concat(r,",0,1,1,").concat(i,",").concat(n),className:"recharts-legend-icon"});if("rect"===t.type)return o().createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(w,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(o().isValidElement(t.legendIcon)){var s=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t);return delete s.legendIcon,o().cloneElement(t.legendIcon,s)}return o().createElement(l.v,{fill:a,cx:n,cy:n,size:w,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,n=e.payload,r=e.iconSize,i=e.layout,l=e.formatter,p=e.inactiveColor,d={x:0,y:0,width:w,height:w},g={display:"horizontal"===i?"inline-block":"block",marginRight:10},y={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(e,n){var i,v=e.formatter||l,m=(0,s.Z)((x(i={"recharts-legend-item":!0},"legend-item-".concat(n),!0),x(i,"inactive",e.inactive),i));if("none"===e.type)return null;var b=a()(e.value)?null:e.value;(0,u.Z)(!a()(e.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var O=e.inactive?p:e.color;return o().createElement("li",h({className:m,style:g,key:"legend-item-".concat(n)},(0,f.bw)(t.props,e,n)),o().createElement(c.T,{width:r,height:r,viewBox:d,style:y},t.renderIcon(e)),o().createElement("span",{className:"recharts-legend-item-text",style:{color:O}},v?v(b,e,n):b))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,n=t.layout,r=t.align;if(!e||!e.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return o().createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],n&&y(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),O}(r.PureComponent);x(S,"displayName","Legend"),x(S,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var M=n(15027),E=n(32391);function k(t){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k(t)}var C=["ref"];function P(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?P(Object(n),!0).forEach((function(e){L(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function j(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function T(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,z(r.key),r)}}function _(t,e){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_(t,e)}function D(t,e){if(e&&("object"===k(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return B(t)}function B(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function I(t){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},I(t)}function L(t,e,n){return(e=z(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function z(t){var e=function(t,e){if("object"!==k(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==k(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===k(e)?e:String(e)}function R(t){return t.value}var N=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_(t,e)}(u,t);var e,n,r,i,a,s=(i=u,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=I(i);if(a){var n=I(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return D(this,t)});function u(){var t;j(this,u);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return L(B(t=s.call.apply(s,[this].concat(n))),"lastBoundingBox",{width:-1,height:-1}),t}return e=u,r=[{key:"getWithHeight",value:function(t,e){var n=t.props.layout;return"vertical"===n&&(0,M.hj)(t.props.height)?{height:t.props.height}:"horizontal"===n?{width:t.props.width||e}:null}}],(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e))}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?A({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,s=r.margin,u=r.chartWidth,c=r.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:s&&s.right||0}:{left:s&&s.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(n="middle"===a?{top:((c||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),A(A({},e),n)}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,r=e.width,i=e.height,a=e.wrapperStyle,s=e.payloadUniqBy,u=e.payload,c=A(A({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return o().createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(e){t.wrapperNode=e}},function(t,e){if(o().isValidElement(t))return o().cloneElement(t,e);if("function"==typeof t)return o().createElement(t,e);e.ref;var n=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(e,C);return o().createElement(S,n)}(n,A(A({},this.props),{},{payload:(0,E.z)(u,s,R)})))}}])&&T(e.prototype,n),r&&T(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.PureComponent);L(N,"displayName","Legend"),L(N,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},18205:(t,e,n)=>{"use strict";n.d(e,{h:()=>v});var r=n(75877),o=n(8156),i=n.n(o),a=n(12436),s=n.n(a),u=n(48570),c=n(15027),l=n(91745),f=n(79376);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==p(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===p(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var v=(0,o.forwardRef)((function(t,e){var n=t.aspect,a=t.initialDimension,p=void 0===a?{width:-1,height:-1}:a,h=t.width,g=void 0===h?"100%":h,v=t.height,m=void 0===v?"100%":v,b=t.minWidth,x=void 0===b?0:b,O=t.minHeight,w=t.maxHeight,S=t.children,M=t.debounce,E=void 0===M?0:M,k=t.id,C=t.className,P=t.onResize,A=t.style,j=void 0===A?{}:A,T=(0,o.useRef)(null),_=(0,o.useRef)();_.current=P,(0,o.useImperativeHandle)(e,(function(){return T}));var D,B,I=(D=(0,o.useState)({containerWidth:p.width,containerHeight:p.height}),B=2,function(t){if(Array.isArray(t))return t}(D)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(D,B)||function(t,e){if(t){if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}(D,B)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),L=I[0],z=I[1],R=(0,o.useCallback)((function(t,e){z((function(n){var r=Math.round(t),o=Math.round(e);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}}))}),[]);(0,o.useEffect)((function(){var t=function(t){var e,n=t[0].contentRect,r=n.width,o=n.height;R(r,o),null===(e=_.current)||void 0===e||e.call(_,r,o)};E>0&&(t=s()(t,E,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),n=T.current.getBoundingClientRect(),r=n.width,o=n.height;return R(r,o),e.observe(T.current),function(){e.disconnect()}}),[R,E]);var N=(0,o.useMemo)((function(){var t=L.containerWidth,e=L.containerHeight;if(t<0||e<0)return null;(0,l.Z)((0,c.hU)(g)||(0,c.hU)(m),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",g,m),(0,l.Z)(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=(0,c.hU)(g)?t:g,a=(0,c.hU)(m)?e:m;n&&n>0&&(r?a=r/n:a&&(r=a*n),w&&a>w&&(a=w)),(0,l.Z)(r>0||a>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,a,g,m,x,O,n);var s=!Array.isArray(S)&&(0,u.isElement)(S)&&(0,f.Gf)(S.type).endsWith("Chart");return i().Children.map(S,(function(t){return(0,u.isElement)(t)?(0,o.cloneElement)(t,d({width:r,height:a},s?{style:d({height:"100%",width:"100%",maxHeight:a,maxWidth:r},t.props.style)}:{})):t}))}),[n,S,m,w,O,x,L,g]);return i().createElement("div",{id:k?"".concat(k):void 0,className:(0,r.Z)("recharts-responsive-container",C),style:d(d({},j),{},{width:g,height:m,minWidth:x,minHeight:O,maxHeight:w}),ref:T},N)}))},75963:(t,e,n)=>{"use strict";n.d(e,{x:()=>z});var r=n(8156),o=n.n(r),i=n(1842),a=n.n(i),s=n(75877),u=n(15027),c=n(79499),l=n(79376),f=n(88089);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==p(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key,"string"),"symbol"===p(o)?o:String(o)),r)}var o}var y=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,v=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,m=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,b=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,x={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},O=Object.keys(x),w="NaN",S=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=n,this.num=e,this.unit=n,Number.isNaN(e)&&(this.unit=""),""===n||m.test(n)||(this.num=NaN,this.unit=""),O.includes(n)&&(this.num=function(t,e){return t*x[e]}(e,n),this.unit="px")}var e,n,r;return e=t,r=[{key:"parse",value:function(e){var n,r=h(null!==(n=b.exec(e))&&void 0!==n?n:[],3),o=r[1],i=r[2];return new t(parseFloat(o),null!=i?i:"")}}],(n=[{key:"add",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&g(e.prototype,n),r&&g(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function M(t){if(t.includes(w))return w;for(var e=t;e.includes("*")||e.includes("/");){var n,r=h(null!==(n=y.exec(e))&&void 0!==n?n:[],4),o=r[1],i=r[2],a=r[3],s=S.parse(null!=o?o:""),u=S.parse(null!=a?a:""),c="*"===i?s.multiply(u):s.divide(u);if(c.isNaN())return w;e=e.replace(y,c.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var l,f=h(null!==(l=v.exec(e))&&void 0!==l?l:[],4),p=f[1],d=f[2],g=f[3],m=S.parse(null!=p?p:""),b=S.parse(null!=g?g:""),x="+"===d?m.add(b):m.subtract(b);if(x.isNaN())return w;e=e.replace(v,x.toString())}return e}var E=/\(([^()]*)\)/;function k(t){var e=function(t){try{return function(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var n=h(E.exec(e),2)[1];e=e.replace(E,M(n))}return e}(e),M(e)}(t)}catch(t){return w}}(t.slice(5,-1));return e===w?"":e}var C=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],P=["dx","dy","angle","className","breakAll"];function A(){return A=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},A.apply(this,arguments)}function j(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function T(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var D=/[ \f\n\r\t\v\u2028\u2029]+/,B=function(t){var e=t.children,n=t.breakAll,r=t.style;try{var o=[];return a()(e)||(o=n?e.toString().split(""):e.toString().split(D)),{wordsWithComputedWidth:o.map((function(t){return{word:t,width:(0,f.xE)(t,r).width}})),spaceWidth:n?0:(0,f.xE)(" ",r).width}}catch(t){return null}},I=function(t){return[{words:a()(t)?[]:t.toString().split(D)}]},L="#808080",z=function(t){var e=t.x,n=void 0===e?0:e,i=t.y,a=void 0===i?0:i,f=t.lineHeight,p=void 0===f?"1em":f,h=t.capHeight,d=void 0===h?"0.71em":h,g=t.scaleToFit,y=void 0!==g&&g,v=t.textAnchor,m=void 0===v?"start":v,b=t.verticalAnchor,x=void 0===b?"end":b,O=t.fill,w=void 0===O?L:O,S=j(t,C),M=(0,r.useMemo)((function(){return function(t){var e=t.width,n=t.scaleToFit,r=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||n)&&!c.x.isSsr){var s=B({breakAll:i,children:r,style:o});return s?function(t,e,n,r,o){var i=t.maxLines,a=t.children,s=t.style,c=t.breakAll,l=(0,u.hj)(i),f=a,p=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var i=e.word,a=e.width,s=t[t.length-1];if(s&&(null==r||o||s.width+a+n<Number(r)))s.words.push(i),s.width+=a+n;else{var u={words:[i],width:a};t.push(u)}return t}),[])},h=p(e);if(!l)return h;for(var d,g=function(t){var e=f.slice(0,t),n=B({breakAll:c,style:s,children:e+"…"}).wordsWithComputedWidth,o=p(n),a=o.length>i||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(o).width>Number(r);return[a,o]},y=0,v=f.length-1,m=0;y<=v&&m<=f.length-1;){var b=Math.floor((y+v)/2),x=T(g(b-1),2),O=x[0],w=x[1],S=T(g(b),1)[0];if(O||S||(y=b+1),O&&S&&(v=b-1),!O&&S){d=w;break}m++}return d||h}({breakAll:i,children:r,maxLines:a,style:o},s.wordsWithComputedWidth,s.spaceWidth,e,n):I(r)}return I(r)}({breakAll:S.breakAll,children:S.children,maxLines:S.maxLines,scaleToFit:y,style:S.style,width:S.width})}),[S.breakAll,S.children,S.maxLines,y,S.style,S.width]),E=S.dx,_=S.dy,D=S.angle,z=S.className,R=S.breakAll,N=j(S,P);if(!(0,u.P2)(n)||!(0,u.P2)(a))return null;var W,F=n+((0,u.hj)(E)?E:0),U=a+((0,u.hj)(_)?_:0);switch(x){case"start":W=k("calc(".concat(d,")"));break;case"middle":W=k("calc(".concat((M.length-1)/2," * -").concat(p," + (").concat(d," / 2))"));break;default:W=k("calc(".concat(M.length-1," * -").concat(p,")"))}var V=[];if(y){var q=M[0].width,G=S.width;V.push("scale(".concat(((0,u.hj)(G)?G/q:1)/q,")"))}return D&&V.push("rotate(".concat(D,", ").concat(F,", ").concat(U,")")),V.length&&(N.transform=V.join(" ")),o().createElement("text",A({},(0,l.L6)(N,!0),{x:F,y:U,className:(0,s.Z)("recharts-text",z),textAnchor:m,fill:w.includes("url")?L:w}),M.map((function(t,e){return o().createElement("tspan",{x:F,dy:0===e?W:p,key:e},t.words.join(R?"":" "))})))}},27741:(t,e,n)=>{"use strict";n.d(e,{u:()=>X});var r=n(8156),o=n.n(r),i=n(829),a=n.n(i),s=n(1842),u=n.n(s),c=n(75877),l=n(15027);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==f(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===f(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t){return Array.isArray(t)&&(0,l.P2)(t[0])&&(0,l.P2)(t[1])?t.join(" ~ "):t}var v=function(t){var e=t.separator,n=void 0===e?" : ":e,r=t.contentStyle,i=void 0===r?{}:r,s=t.itemStyle,f=void 0===s?{}:s,h=t.labelStyle,g=void 0===h?{}:h,v=t.payload,m=t.formatter,b=t.itemSorter,x=t.wrapperClassName,O=t.labelClassName,w=t.label,S=t.labelFormatter,M=d({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),E=d({margin:0},g),k=!u()(w),C=k?w:"",P=(0,c.Z)("recharts-default-tooltip",x),A=(0,c.Z)("recharts-tooltip-label",O);return k&&S&&null!=v&&(C=S(w,v)),o().createElement("div",{className:P,style:M},o().createElement("p",{className:A,style:E},o().isValidElement(C)?C:"".concat(C)),function(){if(v&&v.length){var t=(b?a()(v,b):v).map((function(t,e){if("none"===t.type)return null;var r=d({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},f),i=t.formatter||m||y,a=t.value,s=t.name,u=a,c=s;if(i&&null!=u&&null!=c){var h=i(a,s,t,e,v);if(Array.isArray(h)){var g=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(h,2);u=g[0],c=g[1]}else u=h}return o().createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:r},(0,l.P2)(c)?o().createElement("span",{className:"recharts-tooltip-item-name"},c):null,(0,l.P2)(c)?o().createElement("span",{className:"recharts-tooltip-item-separator"},n):null,o().createElement("span",{className:"recharts-tooltip-item-value"},u),o().createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return o().createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())},m=n(87935);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function x(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==b(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===b(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var O="recharts-tooltip-wrapper",w={visibility:"hidden"};function S(t){var e,n=t.coordinate,r=t.translateX,o=t.translateY;return(0,c.Z)(O,(x(e={},"".concat(O,"-right"),(0,l.hj)(r)&&n&&(0,l.hj)(n.x)&&r>=n.x),x(e,"".concat(O,"-left"),(0,l.hj)(r)&&n&&(0,l.hj)(n.x)&&r<n.x),x(e,"".concat(O,"-bottom"),(0,l.hj)(o)&&n&&(0,l.hj)(n.y)&&o>=n.y),x(e,"".concat(O,"-top"),(0,l.hj)(o)&&n&&(0,l.hj)(n.y)&&o<n.y),e))}function M(t){var e=t.allowEscapeViewBox,n=t.coordinate,r=t.key,o=t.offsetTopLeft,i=t.position,a=t.reverseDirection,s=t.tooltipDimension,u=t.viewBox,c=t.viewBoxDimension;if(i&&(0,l.hj)(i[r]))return i[r];var f=n[r]-s-o,p=n[r]+o;return e[r]?a[r]?f:p:a[r]?f<u[r]?Math.max(p,u[r]):Math.max(f,u[r]):p+s>u[r]+c?Math.max(f,u[r]):Math.max(p,u[r])}function E(t){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E(t)}function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?k(Object(n),!0).forEach((function(e){B(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function P(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function A(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,I(r.key),r)}}function j(t,e){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},j(t,e)}function T(t,e){if(e&&("object"===E(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _(t)}function _(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function D(t){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},D(t)}function B(t,e,n){return(e=I(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function I(t){var e=function(t,e){if("object"!==E(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===E(e)?e:String(e)}var L=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&j(t,e)}(s,t);var e,n,r,i,a=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=D(r);if(i){var n=D(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return T(this,t)});function s(){var t;P(this,s);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return B(_(t=a.call.apply(a,[this].concat(n))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),B(_(t),"lastBoundingBox",{width:-1,height:-1}),B(_(t),"handleKeyDown",(function(e){var n,r,o,i;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(n=null===(r=t.props.coordinate)||void 0===r?void 0:r.x)&&void 0!==n?n:0,y:null!==(o=null===(i=t.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),t}return e=s,(n=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height)}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)===this.state.dismissedAtCoordinate.x&&(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var t=this,e=this.props,n=e.active,r=e.allowEscapeViewBox,i=e.animationDuration,a=e.animationEasing,s=e.children,u=e.coordinate,c=e.hasPayload,l=e.isAnimationActive,f=e.offset,p=e.position,h=e.reverseDirection,d=e.useTranslate3d,g=e.viewBox,y=e.wrapperStyle,v=function(t){var e,n,r,o=t.allowEscapeViewBox,i=t.coordinate,a=t.offsetTopLeft,s=t.position,u=t.reverseDirection,c=t.tooltipBox,l=t.useTranslate3d,f=t.viewBox;return e=c.height>0&&c.width>0&&i?function(t){var e=t.translateX,n=t.translateY,r=t.useTranslate3d;return(0,m.bO)({transform:r?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")})}({translateX:n=M({allowEscapeViewBox:o,coordinate:i,key:"x",offsetTopLeft:a,position:s,reverseDirection:u,tooltipDimension:c.width,viewBox:f,viewBoxDimension:f.width}),translateY:r=M({allowEscapeViewBox:o,coordinate:i,key:"y",offsetTopLeft:a,position:s,reverseDirection:u,tooltipDimension:c.height,viewBox:f,viewBoxDimension:f.height}),useTranslate3d:l}):w,{cssProperties:e,cssClasses:S({translateX:n,translateY:r,coordinate:i})}}({allowEscapeViewBox:r,coordinate:u,offsetTopLeft:f,position:p,reverseDirection:h,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:d,viewBox:g}),b=v.cssClasses,x=v.cssProperties,O=C(C(C({},l&&n&&(0,m.bO)({transition:"transform ".concat(i,"ms ").concat(a)})),x),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&c?"visible":"hidden",position:"absolute",top:0,left:0},y);return o().createElement("div",{tabIndex:-1,role:"dialog",className:b,style:O,ref:function(e){t.wrapperNode=e}},s)}}])&&A(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(r.PureComponent),z=n(79499),R=n(32391);function N(t){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(t)}function W(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function F(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?W(Object(n),!0).forEach((function(e){H(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function U(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function V(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,$(r.key),r)}}function q(t,e){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},q(t,e)}function G(t,e){if(e&&("object"===N(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Z(t){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Z(t)}function H(t,e,n){return(e=$(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $(t){var e=function(t,e){if("object"!==N(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===N(e)?e:String(e)}function Y(t){return t.dataKey}var X=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&q(t,e)}(s,t);var e,n,r,i,a=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Z(r);if(i){var n=Z(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return G(this,t)});function s(){return U(this,s),a.apply(this,arguments)}return e=s,(n=[{key:"render",value:function(){var t=this.props,e=t.active,n=t.allowEscapeViewBox,r=t.animationDuration,i=t.animationEasing,a=t.content,s=t.coordinate,u=t.filterNull,c=t.isAnimationActive,l=t.offset,f=t.payload,p=t.payloadUniqBy,h=t.position,d=t.reverseDirection,g=t.useTranslate3d,y=t.viewBox,m=t.wrapperStyle,b=null!=f?f:[];u&&b.length&&(b=(0,R.z)(f.filter((function(t){return null!=t.value})),p,Y));var x=b.length>0;return o().createElement(L,{allowEscapeViewBox:n,animationDuration:r,animationEasing:i,isAnimationActive:c,active:e,coordinate:s,hasPayload:x,offset:l,position:h,reverseDirection:d,useTranslate3d:g,viewBox:y,wrapperStyle:m},function(t,e){return o().isValidElement(t)?o().cloneElement(t,e):"function"==typeof t?o().createElement(t,e):o().createElement(v,e)}(a,F(F({},this.props),{},{payload:b})))}}])&&V(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(r.PureComponent);H(X,"displayName","Tooltip"),H(X,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!z.x.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:{}})},84618:(t,e,n)=>{"use strict";n.d(e,{m:()=>c});var r=n(8156),o=n.n(r),i=n(75877),a=n(79376),s=["children","className"];function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}var c=o().forwardRef((function(t,e){var n=t.children,r=t.className,c=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,s),l=(0,i.Z)("recharts-layer",r);return o().createElement("g",u({className:l},(0,a.L6)(c,!0),{ref:e}),n)}))},19617:(t,e,n)=>{"use strict";n.d(e,{T:()=>c});var r=n(8156),o=n.n(r),i=n(75877),a=n(79376),s=["children","width","height","viewBox","className","style","title","desc"];function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}function c(t){var e=t.children,n=t.width,r=t.height,c=t.viewBox,l=t.className,f=t.style,p=t.title,h=t.desc,d=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,s),g=c||{width:n,height:r,x:0,y:0},y=(0,i.Z)("recharts-surface",l);return o().createElement("svg",u({},(0,a.L6)(d,!0,"svg"),{className:y,width:n,height:r,style:f,viewBox:"".concat(g.x," ").concat(g.y," ").concat(g.width," ").concat(g.height)}),o().createElement("title",null,p),o().createElement("desc",null,h),e)}},43624:(t,e,n)=>{"use strict";n.d(e,{X:()=>g,A:()=>v});var r=n(8156),o=n.n(r),i=n(75877),a=n(87935),s=n(79376);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c.apply(this,arguments)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==u(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===u(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d=function(t,e,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,u=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+s*l[0]),l[0]>0&&(i+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(t+u*l[0],",").concat(e)),i+="L ".concat(t+n-u*l[1],",").concat(e),l[1]>0&&(i+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,",\n ").concat(t+n,",").concat(e+s*l[1])),i+="L ".concat(t+n,",").concat(e+r-s*l[2]),l[2]>0&&(i+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,",\n ").concat(t+n-u*l[2],",").concat(e+r)),i+="L ".concat(t+u*l[3],",").concat(e+r),l[3]>0&&(i+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,",\n ").concat(t,",").concat(e+r-s*l[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(t+u*p,",").concat(e,"\n L ").concat(t+n-u*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(t+n,",").concat(e+s*p,"\n L ").concat(t+n,",").concat(e+r-s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(t+n-u*p,",").concat(e+r,"\n L ").concat(t+u*p,",").concat(e+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(t,",").concat(e+r-s*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},g=function(t,e){if(!t||!e)return!1;var n=t.x,r=t.y,o=e.x,i=e.y,a=e.width,s=e.height;if(Math.abs(a)>0&&Math.abs(s)>0){var u=Math.min(o,o+a),c=Math.max(o,o+a),l=Math.min(i,i+s),f=Math.max(i,i+s);return n>=u&&n<=c&&r>=l&&r<=f}return!1},y={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},v=function(t){var e,n,u=p(p({},y),t),f=(0,r.useRef)(),h=(e=(0,r.useState)(-1),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,n)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=h[0],v=h[1];(0,r.useEffect)((function(){if(f.current&&f.current.getTotalLength)try{var t=f.current.getTotalLength();t&&v(t)}catch(t){}}),[]);var m=u.x,b=u.y,x=u.width,O=u.height,w=u.radius,S=u.className,M=u.animationEasing,E=u.animationDuration,k=u.animationBegin,C=u.isAnimationActive,P=u.isUpdateAnimationActive;if(m!==+m||b!==+b||x!==+x||O!==+O||0===x||0===O)return null;var A=(0,i.Z)("recharts-rectangle",S);return P?o().createElement(a.ZP,{canBegin:g>0,from:{width:x,height:O,x:m,y:b},to:{width:x,height:O,x:m,y:b},duration:E,animationEasing:M,isActive:P},(function(t){var e=t.width,n=t.height,r=t.x,i=t.y;return o().createElement(a.ZP,{canBegin:g>0,from:"0px ".concat(-1===g?1:g,"px"),to:"".concat(g,"px 0px"),attributeName:"strokeDasharray",begin:k,duration:E,isActive:C,easing:M},o().createElement("path",c({},(0,s.L6)(u,!0),{className:A,d:d(r,i,e,n,w),ref:f})))})):o().createElement("path",c({},(0,s.L6)(u,!0),{className:A,d:d(m,b,x,O,w)}))}},21844:(t,e,n)=>{"use strict";n.d(e,{L:()=>v});var r=n(8156),o=n.n(r),i=n(75877),a=n(79376),s=n(22089),u=n(15027);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l.apply(this,arguments)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===c(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d=function(t){var e=t.cx,n=t.cy,r=t.radius,o=t.angle,i=t.sign,a=t.isExternal,u=t.cornerRadius,c=t.cornerIsExternal,l=u*(a?1:-1)+r,f=Math.asin(u/l)/s.Wk,p=c?o:o+i*f,h=c?o-i*f:o;return{center:(0,s.op)(e,n,l,p),circleTangency:(0,s.op)(e,n,r,p),lineTangency:(0,s.op)(e,n,l*Math.cos(f*s.Wk),h),theta:f}},g=function(t){var e=t.cx,n=t.cy,r=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=function(t,e){return(0,u.uY)(e-t)*Math.min(Math.abs(e-t),359.999)}(i,t.endAngle),c=i+a,l=(0,s.op)(e,n,o,i),f=(0,s.op)(e,n,o,c),p="M ".concat(l.x,",").concat(l.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>c),",\n ").concat(f.x,",").concat(f.y,"\n ");if(r>0){var h=(0,s.op)(e,n,r,i),d=(0,s.op)(e,n,r,c);p+="L ".concat(d.x,",").concat(d.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=c),",\n ").concat(h.x,",").concat(h.y," Z")}else p+="L ".concat(e,",").concat(n," Z");return p},y={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},v=function(t){var e=p(p({},y),t),n=e.cx,r=e.cy,s=e.innerRadius,c=e.outerRadius,f=e.cornerRadius,h=e.forceCornerRadius,v=e.cornerIsExternal,m=e.startAngle,b=e.endAngle,x=e.className;if(c<s||m===b)return null;var O,w=(0,i.Z)("recharts-sector",x),S=c-s,M=(0,u.h1)(f,S,0,!0);return O=M>0&&Math.abs(m-b)<360?function(t){var e=t.cx,n=t.cy,r=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,s=t.cornerIsExternal,c=t.startAngle,l=t.endAngle,f=(0,u.uY)(l-c),p=d({cx:e,cy:n,radius:o,angle:c,sign:f,cornerRadius:i,cornerIsExternal:s}),h=p.circleTangency,y=p.lineTangency,v=p.theta,m=d({cx:e,cy:n,radius:o,angle:l,sign:-f,cornerRadius:i,cornerIsExternal:s}),b=m.circleTangency,x=m.lineTangency,O=m.theta,w=s?Math.abs(c-l):Math.abs(c-l)-v-O;if(w<0)return a?"M ".concat(y.x,",").concat(y.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):g({cx:e,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:l});var S="M ".concat(y.x,",").concat(y.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(h.x,",").concat(h.y,"\n A").concat(o,",").concat(o,",0,").concat(+(w>180),",").concat(+(f<0),",").concat(b.x,",").concat(b.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,"\n ");if(r>0){var M=d({cx:e,cy:n,radius:r,angle:c,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),E=M.circleTangency,k=M.lineTangency,C=M.theta,P=d({cx:e,cy:n,radius:r,angle:l,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),A=P.circleTangency,j=P.lineTangency,T=P.theta,_=s?Math.abs(c-l):Math.abs(c-l)-C-T;if(_<0&&0===i)return"".concat(S,"L").concat(e,",").concat(n,"Z");S+="L".concat(j.x,",").concat(j.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(A.x,",").concat(A.y,"\n A").concat(r,",").concat(r,",0,").concat(+(_>180),",").concat(+(f>0),",").concat(E.x,",").concat(E.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(k.x,",").concat(k.y,"Z")}else S+="L".concat(e,",").concat(n,"Z");return S}({cx:n,cy:r,innerRadius:s,outerRadius:c,cornerRadius:Math.min(M,S/2),forceCornerRadius:h,cornerIsExternal:v,startAngle:m,endAngle:b}):g({cx:n,cy:r,innerRadius:s,outerRadius:c,startAngle:m,endAngle:b}),o().createElement("path",l({},(0,a.L6)(e,!0),{className:w,d:O,role:"img"}))}},66406:(t,e,n)=>{"use strict";n.d(e,{v:()=>F});var r=n(8156),o=n.n(r),i=n(23779),a=n.n(i);Math.abs,Math.atan2;const s=Math.cos,u=(Math.max,Math.min,Math.sin),c=Math.sqrt,l=Math.PI,f=2*l,p={draw(t,e){const n=c(e/l);t.moveTo(n,0),t.arc(0,0,n,0,f)}},h={draw(t,e){const n=c(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},d=c(1/3),g=2*d,y={draw(t,e){const n=c(e/g),r=n*d;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},v={draw(t,e){const n=c(e),r=-n/2;t.rect(r,r,n,n)}},m=u(l/10)/u(7*l/10),b=u(f/10)*m,x=-s(f/10)*m,O={draw(t,e){const n=c(.8908130915292852*e),r=b*n,o=x*n;t.moveTo(0,-n),t.lineTo(r,o);for(let e=1;e<5;++e){const i=f*e/5,a=s(i),c=u(i);t.lineTo(c*n,-a*n),t.lineTo(a*r-c*o,c*r+a*o)}t.closePath()}},w=c(3),S={draw(t,e){const n=-c(e/(3*w));t.moveTo(0,2*n),t.lineTo(-w*n,-n),t.lineTo(w*n,-n),t.closePath()}},M=-.5,E=c(3)/2,k=1/c(12),C=3*(k/2+1),P={draw(t,e){const n=c(e/C),r=n/2,o=n*k,i=r,a=n*k+n,s=-i,u=a;t.moveTo(r,o),t.lineTo(i,a),t.lineTo(s,u),t.lineTo(M*r-E*o,E*r+M*o),t.lineTo(M*i-E*a,E*i+M*a),t.lineTo(M*s-E*u,E*s+M*u),t.lineTo(M*r+E*o,M*o-E*r),t.lineTo(M*i+E*a,M*a-E*i),t.lineTo(M*s+E*u,M*u-E*s),t.closePath()}};var A=n(6677),j=n(13149);c(3),c(3);var T=n(75877),_=n(79376);function D(t){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(t)}var B=["type","size","sizeType"];function I(){return I=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},I.apply(this,arguments)}function L(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?L(Object(n),!0).forEach((function(e){R(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function R(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==D(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===D(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var N={symbolCircle:p,symbolCross:h,symbolDiamond:y,symbolSquare:v,symbolStar:O,symbolTriangle:S,symbolWye:P},W=Math.PI/180,F=function(t){var e,n,r=t.type,i=void 0===r?"circle":r,s=t.size,u=void 0===s?64:s,c=t.sizeType,l=void 0===c?"area":c,f=z(z({},function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,B)),{},{type:i,size:u,sizeType:l}),h=f.className,d=f.cx,g=f.cy,y=(0,_.L6)(f,!0);return d===+d&&g===+g&&u===+u?o().createElement("path",I({},y,{className:(0,T.Z)("recharts-symbols",h),transform:"translate(".concat(d,", ").concat(g,")"),d:(e=function(t){var e="symbol".concat(a()(t));return N[e]||p}(i),n=function(t,e){let n=null,r=(0,j.d)(o);function o(){let o;if(n||(n=o=r()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),o)return n=null,o+""||null}return t="function"==typeof t?t:(0,A.Z)(t||p),e="function"==typeof e?e:(0,A.Z)(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:(0,A.Z)(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:(0,A.Z)(+t),o):e},o.context=function(t){return arguments.length?(n=null==t?null:t,o):n},o}().type(e).size(function(t,e,n){if("area"===e)return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var r=18*W;return 1.25*t*t*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),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}}(u,l,i)),n())})):null};F.registerSymbol=function(t,e){N["symbol".concat(a()(t))]=e}},29742:(t,e,n)=>{"use strict";n.d(e,{bn:()=>L,a3:()=>V,lT:()=>z,V$:()=>R,w7:()=>N});var r=n(8156),o=n.n(r),i=n(61049),a=n.n(i),s=n(97030),u=n.n(s),c=n(4335),l=n.n(c),f=n(18149),p=n.n(f),h=n(43624),d=n(75877),g=n(87935),y=n(79376);function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function m(){return m=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},m.apply(this,arguments)}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){w(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function w(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==v(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===v(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var S=function(t,e,n,r,o){var i,a=n-r;return i="M ".concat(t,",").concat(e),i+="L ".concat(t+n,",").concat(e),i+="L ".concat(t+n-a/2,",").concat(e+o),(i+="L ".concat(t+n-a/2-r,",").concat(e+o))+"L ".concat(t,",").concat(e," Z")},M={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},E=function(t){var e,n,i=O(O({},M),t),a=(0,r.useRef)(),s=(e=(0,r.useState)(-1),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,n)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],c=s[1];(0,r.useEffect)((function(){if(a.current&&a.current.getTotalLength)try{var t=a.current.getTotalLength();t&&c(t)}catch(t){}}),[]);var l=i.x,f=i.y,p=i.upperWidth,h=i.lowerWidth,v=i.height,x=i.className,w=i.animationEasing,E=i.animationDuration,k=i.animationBegin,C=i.isUpdateAnimationActive;if(l!==+l||f!==+f||p!==+p||h!==+h||v!==+v||0===p&&0===h||0===v)return null;var P=(0,d.Z)("recharts-trapezoid",x);return C?o().createElement(g.ZP,{canBegin:u>0,from:{upperWidth:0,lowerWidth:0,height:v,x:l,y:f},to:{upperWidth:p,lowerWidth:h,height:v,x:l,y:f},duration:E,animationEasing:w,isActive:C},(function(t){var e=t.upperWidth,n=t.lowerWidth,r=t.height,s=t.x,c=t.y;return o().createElement(g.ZP,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:k,duration:E,easing:w},o().createElement("path",m({},(0,y.L6)(i,!0),{className:P,d:S(s,c,e,n,r),ref:a})))})):o().createElement("g",null,o().createElement("path",m({},(0,y.L6)(i,!0),{className:P,d:S(l,f,p,h,v)})))},k=n(21844),C=n(84618),P=n(66406),A=["option","shapeType","propTransformer","activeClassName","isActive"];function j(t){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(t)}function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach((function(e){D(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function D(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==j(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===j(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function B(t,e){return _(_({},e),t)}function I(t){var e=t.shapeType,n=t.elementProps;switch(e){case"rectangle":return o().createElement(h.A,n);case"trapezoid":return o().createElement(E,n);case"sector":return o().createElement(k.L,n);case"symbols":if(function(t,e){return"symbols"===t}(e))return o().createElement(P.v,n);break;default:return null}}function L(t){var e,n=t.option,i=t.shapeType,s=t.propTransformer,c=void 0===s?B:s,f=t.activeClassName,p=void 0===f?"recharts-active-shape":f,h=t.isActive,d=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,A);if((0,r.isValidElement)(n))e=(0,r.cloneElement)(n,_(_({},d),function(t){return(0,r.isValidElement)(t)?t.props:t}(n)));else if(a()(n))e=n(d);else if(u()(n)&&!l()(n)){var g=c(n,d);e=o().createElement(I,{shapeType:i,elementProps:g})}else{var y=d;e=o().createElement(I,{shapeType:i,elementProps:y})}return h?o().createElement(C.m,{className:p},e):e}function z(t,e){return"trapezoids"in t.props}function R(t,e){return"sectors"in t.props}function N(t,e){return"points"in t.props}function W(t,e){var n,r,o=t.x===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.x)||t.x===e.x,i=t.y===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.y)||t.y===e.y;return o&&i}function F(t,e){var n=t.endAngle===e.endAngle,r=t.startAngle===e.startAngle;return n&&r}function U(t,e){var n=t.x===e.x,r=t.y===e.y,o=t.z===e.z;return n&&r&&o}function V(t){var e=t.activeTooltipItem,n=t.graphicalItem,r=t.itemData,o=function(t,e){var n;return z(t)?n="trapezoids":R(t)?n="sectors":N(t)&&(n="points"),n}(n),i=function(t,e){var n,r;return z(t)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:R(t)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:N(t)?e.payload:{}}(n,e),a=r.filter((function(t,r){var a=p()(i,t),s=n.props[o].filter((function(t){var r=function(t,e){var n;return z(t)?n=W:R(t)?n=F:N(t)&&(n=U),n}(n);return r(t,e)})),u=n.props[o].indexOf(s[s.length-1]);return a&&r===u}));return r.indexOf(a[a.length-1])}},24847:(t,e,n)=>{"use strict";n.d(e,{By:()=>Gi,VO:()=>Fi,zF:()=>na,DO:()=>Ji,Bu:()=>ra,zT:()=>ya,qz:()=>qi,pt:()=>Vi,Yj:()=>la,Fy:()=>ca,Rf:()=>Xi,gF:()=>Wi,s6:()=>$i,EB:()=>pa,fk:()=>Ui,wh:()=>sa,O3:()=>fa,uY:()=>Ki,g$:()=>ua,Qo:()=>ma,F$:()=>Ni,NA:()=>Yi,ko:()=>va,ZI:()=>Hi,Hq:()=>ta,LG:()=>ga,Vv:()=>oa});var r={};n.r(r),n.d(r,{scaleBand:()=>o.Z,scaleDiverging:()=>So,scaleDivergingLog:()=>Mo,scaleDivergingPow:()=>ko,scaleDivergingSqrt:()=>Co,scaleDivergingSymlog:()=>Eo,scaleIdentity:()=>Nt,scaleImplicit:()=>Jt.O,scaleLinear:()=>Rt,scaleLog:()=>$t,scaleOrdinal:()=>Jt.Z,scalePoint:()=>o.x,scalePow:()=>oe,scaleQuantile:()=>ye,scaleQuantize:()=>ve,scaleRadial:()=>ue,scaleSequential:()=>go,scaleSequentialLog:()=>yo,scaleSequentialPow:()=>mo,scaleSequentialQuantile:()=>xo,scaleSequentialSqrt:()=>bo,scaleSequentialSymlog:()=>vo,scaleSqrt:()=>ie,scaleSymlog:()=>Qt,scaleThreshold:()=>me,scaleTime:()=>lo,scaleUtc:()=>fo,tickFormat:()=>Lt});var o=n(78520);const i=Math.sqrt(50),a=Math.sqrt(10),s=Math.sqrt(2);function u(t,e,n){const r=(e-t)/Math.max(0,n),o=Math.floor(Math.log10(r)),c=r/Math.pow(10,o),l=c>=i?10:c>=a?5:c>=s?2:1;let f,p,h;return o<0?(h=Math.pow(10,-o)/l,f=Math.round(t*h),p=Math.round(e*h),f/h<t&&++f,p/h>e&&--p,h=-h):(h=Math.pow(10,o)*l,f=Math.round(t/h),p=Math.round(e/h),f*h<t&&++f,p*h>e&&--p),p<f&&.5<=n&&n<2?u(t,e,2*n):[f,p,h]}function c(t,e,n){if(!((n=+n)>0))return[];if((t=+t)==(e=+e))return[t];const r=e<t,[o,i,a]=r?u(e,t,n):u(t,e,n);if(!(i>=o))return[];const s=i-o+1,c=new Array(s);if(r)if(a<0)for(let t=0;t<s;++t)c[t]=(i-t)/-a;else for(let t=0;t<s;++t)c[t]=(i-t)*a;else if(a<0)for(let t=0;t<s;++t)c[t]=(o+t)/-a;else for(let t=0;t<s;++t)c[t]=(o+t)*a;return c}function l(t,e,n){return u(t=+t,e=+e,n=+n)[2]}function f(t,e,n){n=+n;const r=(e=+e)<(t=+t),o=r?l(e,t,n):l(t,e,n);return(r?-1:1)*(o<0?1/-o:o)}function p(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function h(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function d(t){let e,n,r;function o(t,r,o=0,i=t.length){if(o<i){if(0!==e(r,r))return i;do{const e=o+i>>>1;n(t[e],r)<0?o=e+1:i=e}while(o<i)}return o}return 2!==t.length?(e=p,n=(e,n)=>p(t(e),n),r=(e,n)=>t(e)-n):(e=t===p||t===h?t:g,n=t,r=t),{left:o,center:function(t,e,n=0,i=t.length){const a=o(t,e,n,i-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,o=0,i=t.length){if(o<i){if(0!==e(r,r))return i;do{const e=o+i>>>1;n(t[e],r)<=0?o=e+1:i=e}while(o<i)}return o}}}function g(){return 0}function y(t){return null===t?NaN:+t}const v=d(p),m=v.right,b=(v.left,d(y).center,m);function x(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function O(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function w(){}var S=.7,M=1/S,E="\\s*([+-]?\\d+)\\s*",k="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",C="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",P=/^#([0-9a-f]{3,8})$/,A=new RegExp("^rgb\\("+[E,E,E]+"\\)$"),j=new RegExp("^rgb\\("+[C,C,C]+"\\)$"),T=new RegExp("^rgba\\("+[E,E,E,k]+"\\)$"),_=new RegExp("^rgba\\("+[C,C,C,k]+"\\)$"),D=new RegExp("^hsl\\("+[k,C,C]+"\\)$"),B=new RegExp("^hsla\\("+[k,C,C,k]+"\\)$"),I={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function L(){return this.rgb().formatHex()}function z(){return this.rgb().formatRgb()}function R(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=P.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?N(e):3===n?new V(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?W(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?W(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=A.exec(t))?new V(e[1],e[2],e[3],1):(e=j.exec(t))?new V(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=T.exec(t))?W(e[1],e[2],e[3],e[4]):(e=_.exec(t))?W(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=D.exec(t))?H(e[1],e[2]/100,e[3]/100,1):(e=B.exec(t))?H(e[1],e[2]/100,e[3]/100,e[4]):I.hasOwnProperty(t)?N(I[t]):"transparent"===t?new V(NaN,NaN,NaN,0):null}function N(t){return new V(t>>16&255,t>>8&255,255&t,1)}function W(t,e,n,r){return r<=0&&(t=e=n=NaN),new V(t,e,n,r)}function F(t){return t instanceof w||(t=R(t)),t?new V((t=t.rgb()).r,t.g,t.b,t.opacity):new V}function U(t,e,n,r){return 1===arguments.length?F(t):new V(t,e,n,null==r?1:r)}function V(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function q(){return"#"+Z(this.r)+Z(this.g)+Z(this.b)}function G(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Z(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function H(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Y(t,e,n,r)}function $(t){if(t instanceof Y)return new Y(t.h,t.s,t.l,t.opacity);if(t instanceof w||(t=R(t)),!t)return new Y;if(t instanceof Y)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),i=Math.max(e,n,r),a=NaN,s=i-o,u=(i+o)/2;return s?(a=e===i?(n-r)/s+6*(n<r):n===i?(r-e)/s+2:(e-n)/s+4,s/=u<.5?i+o:2-i-o,a*=60):s=u>0&&u<1?0:a,new Y(a,s,u,t.opacity)}function Y(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function X(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function K(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}x(w,R,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:L,formatHex:L,formatHsl:function(){return $(this).formatHsl()},formatRgb:z,toString:z}),x(V,U,O(w,{brighter:function(t){return t=null==t?M:Math.pow(M,t),new V(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?S:Math.pow(S,t),new V(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){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:q,formatHex:q,formatRgb:G,toString:G})),x(Y,(function(t,e,n,r){return 1===arguments.length?$(t):new Y(t,e,n,null==r?1:r)}),O(w,{brighter:function(t){return t=null==t?M:Math.pow(M,t),new Y(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?S:Math.pow(S,t),new Y(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new V(X(t>=240?t-240:t+120,o,r),X(t,o,r),X(t<120?t+240:t-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const Q=t=>()=>t;function J(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Q(isNaN(t)?e:t)}const tt=function t(e){var n=function(t){return 1==(t=+t)?J:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Q(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=U(t)).r,(e=U(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=J(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function et(t){return function(e){var n,r,o=e.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;n<o;++n)r=U(e[n]),i[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return i=t(i),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=i(t),r.g=a(t),r.b=s(t),r+""}}}function nt(t,e){var n,r=e?e.length:0,o=t?Math.min(r,t.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=lt(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<o;++n)a[n]=i[n](t);return a}}function rt(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function ot(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function it(t,e){var n,r={},o={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=lt(t[n],e[n]):o[n]=e[n];return function(t){for(n in r)o[n]=r[n](t);return o}}et((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,s=r<e-1?t[r+2]:2*i-o;return K((n-r/e)*e,a,o,i,s)}})),et((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],i=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return K((n-r/e)*e,o,i,a,s)}}));var at=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,st=new RegExp(at.source,"g");function ut(t,e){var n,r,o,i=at.lastIndex=st.lastIndex=0,a=-1,s=[],u=[];for(t+="",e+="";(n=at.exec(t))&&(r=st.exec(e));)(o=r.index)>i&&(o=e.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:ot(n,r)})),i=st.lastIndex;return i<e.length&&(o=e.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})}function ct(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(n=0;n<r;++n)o[n]=t[n]*(1-i)+e[n]*i;return o}}function lt(t,e){var n,r,o=typeof e;return null==e||"boolean"===o?Q(e):("number"===o?ot:"string"===o?(n=R(e))?(e=n,tt):ut:e instanceof R?tt:e instanceof Date?rt:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?nt:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?it:ot:ct))(t,e)}function ft(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function pt(t){return+t}var ht=[0,1];function dt(t){return t}function gt(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function yt(t,e,n){var r=t[0],o=t[1],i=e[0],a=e[1];return o<r?(r=gt(o,r),i=n(a,i)):(r=gt(r,o),i=n(i,a)),function(t){return i(r(t))}}function vt(t,e,n){var r=Math.min(t.length,e.length)-1,o=new Array(r),i=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)o[a]=gt(t[a],t[a+1]),i[a]=n(e[a],e[a+1]);return function(e){var n=b(t,e,1,r)-1;return i[n](o[n](e))}}function mt(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function bt(){var t,e,n,r,o,i,a=ht,s=ht,u=lt,c=dt;function l(){var t,e,n,u=Math.min(a.length,s.length);return c!==dt&&(t=a[0],e=a[u-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=u>2?vt:yt,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?n:(o||(o=r(a.map(t),s,u)))(t(c(e)))}return f.invert=function(n){return c(e((i||(i=r(s,a.map(t),ot)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,pt),l()):a.slice()},f.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},f.rangeRound=function(t){return s=Array.from(t),u=ft,l()},f.clamp=function(t){return arguments.length?(c=!!t||dt,l()):c!==dt},f.interpolate=function(t){return arguments.length?(u=t,l()):u},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,l()}}function xt(){return bt()(dt,dt)}var Ot,wt=n(82669),St=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Mt(t){if(!(e=St.exec(t)))throw new Error("invalid format: "+t);var e;return new Et({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Et(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function kt(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Ct(t){return(t=kt(Math.abs(t)))?t[1]:NaN}function Pt(t,e){var n=kt(t,e);if(!n)return t+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}Mt.prototype=Et.prototype,Et.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const At={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Pt(100*t,e),r:Pt,s:function(t,e){var n=kt(t,e);if(!n)return t+"";var r=n[0],o=n[1],i=o-(Ot=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+kt(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function jt(t){return t}var Tt,_t,Dt,Bt=Array.prototype.map,It=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Lt(t,e,n,r){var o,i=f(t,e,n);switch((r=Mt(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ct(e)/3)))-Ct(Math.abs(t)))}(i,a))||(r.precision=o),Dt(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ct(e)-Ct(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(t){return Math.max(0,-Ct(Math.abs(t)))}(i))||(r.precision=o-2*("%"===r.type))}return _t(r)}function zt(t){var e=t.domain;return t.ticks=function(t){var n=e();return c(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Lt(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,o,i=e(),a=0,s=i.length-1,u=i[a],c=i[s],f=10;for(c<u&&(o=u,u=c,c=o,o=a,a=s,s=o);f-- >0;){if((o=l(u,c,n))===r)return i[a]=u,i[s]=c,e(i);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o}r=o}return t},t}function Rt(){var t=xt();return t.copy=function(){return mt(t,Rt())},wt.o.apply(t,arguments),zt(t)}function Nt(t){var e;function n(t){return null==t||isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,pt),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return Nt(t).unknown(e)},t=arguments.length?Array.from(t,pt):[0,1],zt(n)}function Wt(t,e){var n,r=0,o=(t=t.slice()).length-1,i=t[r],a=t[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),t[r]=e.floor(i),t[o]=e.ceil(a),t}function Ft(t){return Math.log(t)}function Ut(t){return Math.exp(t)}function Vt(t){return-Math.log(-t)}function qt(t){return-Math.exp(-t)}function Gt(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Zt(t){return(e,n)=>-t(-e,n)}function Ht(t){const e=t(Ft,Ut),n=e.domain;let r,o,i=10;function a(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(i),o=function(t){return 10===t?Gt:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),n()[0]<0?(r=Zt(r),o=Zt(o),t(Vt,qt)):t(Ft,Ut),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(n(t),a()):n()},e.ticks=t=>{const e=n();let a=e[0],s=e[e.length-1];const u=s<a;u&&([a,s]=[s,a]);let l,f,p=r(a),h=r(s);const d=null==t?10:+t;let g=[];if(!(i%1)&&h-p<d){if(p=Math.floor(p),h=Math.ceil(h),a>0){for(;p<=h;++p)for(l=1;l<i;++l)if(f=p<0?l/o(-p):l*o(p),!(f<a)){if(f>s)break;g.push(f)}}else for(;p<=h;++p)for(l=i-1;l>=1;--l)if(f=p>0?l/o(-p):l*o(p),!(f<a)){if(f>s)break;g.push(f)}2*g.length<d&&(g=c(a,s,d))}else g=c(p,h,Math.min(h-p,d)).map(o);return u?g.reverse():g},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=Mt(n)).precision||(n.trim=!0),n=_t(n)),t===1/0)return n;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(r(t)));return e*i<i-.5&&(e*=i),e<=a?n(t):""}},e.nice=()=>n(Wt(n(),{floor:t=>o(Math.floor(r(t))),ceil:t=>o(Math.ceil(r(t)))})),e}function $t(){const t=Ht(bt()).domain([1,10]);return t.copy=()=>mt(t,$t()).base(t.base()),wt.o.apply(t,arguments),t}function Yt(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Xt(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Kt(t){var e=1,n=t(Yt(e),Xt(e));return n.constant=function(n){return arguments.length?t(Yt(e=+n),Xt(e)):e},zt(n)}function Qt(){var t=Kt(bt());return t.copy=function(){return mt(t,Qt()).constant(t.constant())},wt.o.apply(t,arguments)}Tt=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?jt:(e=Bt.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var o=t.length,i=[],a=0,s=e[0],u=0;o>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),i.push(t.substring(o-=s,o+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?jt:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Bt.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=Mt(t)).fill,n=t.align,f=t.sign,p=t.symbol,h=t.zero,d=t.width,g=t.comma,y=t.precision,v=t.trim,m=t.type;"n"===m?(g=!0,m="g"):At[m]||(void 0===y&&(y=12),v=!0,m="g"),(h||"0"===e&&"="===n)&&(h=!0,e="0",n="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",x="$"===p?i:/[%p]/.test(m)?u:"",O=At[m],w=/[defgprs%]/.test(m);function S(t){var o,i,u,p=b,S=x;if("c"===m)S=O(t)+S,t="";else{var M=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:O(Math.abs(t),y),v&&(t=function(t){t:for(var e,n=t.length,r=1,o=-1;r<n;++r)switch(t[r]){case".":o=e=r;break;case"0":0===o&&(o=r),e=r;break;default:if(!+t[r])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),M&&0==+t&&"+"!==f&&(M=!1),p=(M?"("===f?f:c:"-"===f||"("===f?"":f)+p,S=("s"===m?It[8+Ot/3]:"")+S+(M&&"("===f?")":""),w)for(o=-1,i=t.length;++o<i;)if(48>(u=t.charCodeAt(o))||u>57){S=(46===u?a+t.slice(o+1):t.slice(o))+S,t=t.slice(0,o);break}}g&&!h&&(t=r(t,1/0));var E=p.length+t.length+S.length,k=E<d?new Array(d-E+1).join(e):"";switch(g&&h&&(t=r(k+t,k.length?d-S.length:1/0),k=""),n){case"<":t=p+t+S+k;break;case"=":t=p+k+t+S;break;case"^":t=k.slice(0,E=k.length>>1)+p+t+S+k.slice(E);break;default:t=k+p+t+S}return s(t)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),S.toString=function(){return t+""},S}return{format:f,formatPrefix:function(t,e){var n=f(((t=Mt(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Ct(e)/3))),o=Math.pow(10,-r),i=It[8+r/3];return function(t){return n(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),_t=Tt.format,Dt=Tt.formatPrefix;var Jt=n(29939);function te(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function ee(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function ne(t){return t<0?-t*t:t*t}function re(t){var e=t(dt,dt),n=1;function r(){return 1===n?t(dt,dt):.5===n?t(ee,ne):t(te(n),te(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,r()):n},zt(e)}function oe(){var t=re(bt());return t.copy=function(){return mt(t,oe()).exponent(t.exponent())},wt.o.apply(t,arguments),t}function ie(){return oe.apply(null,arguments).exponent(.5)}function ae(t){return Math.sign(t)*t*t}function se(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function ue(){var t,e=xt(),n=[0,1],r=!1;function o(n){var o=se(e(n));return isNaN(o)?t:r?Math.round(o):o}return o.invert=function(t){return e.invert(ae(t))},o.domain=function(t){return arguments.length?(e.domain(t),o):e.domain()},o.range=function(t){return arguments.length?(e.range((n=Array.from(t,pt)).map(ae)),o):n.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(r=!!t,o):r},o.clamp=function(t){return arguments.length?(e.clamp(t),o):e.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return ue(e.domain(),n).round(r).clamp(e.clamp()).unknown(t)},wt.o.apply(o,arguments),zt(o)}function ce(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function le(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function fe(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function pe(t,e,n=0,r=1/0,o){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(o=void 0===o?fe:function(t=p){if(t===p)return fe;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=e-n+1,s=Math.log(i),u=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*u*(i-u)/i)*(a-i/2<0?-1:1);pe(t,e,Math.max(n,Math.floor(e-a*u/i+c)),Math.min(r,Math.floor(e+(i-a)*u/i+c)),o)}const i=t[e];let a=n,s=r;for(he(t,n,e),o(t[r],i)>0&&he(t,n,r);a<s;){for(he(t,a,s),++a,--s;o(t[a],i)<0;)++a;for(;o(t[s],i)>0;)--s}0===o(t[n],i)?he(t,n,s):(++s,he(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function he(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function de(t,e,n){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}(t,n)),(r=t.length)&&!isNaN(e=+e)){if(e<=0||r<2)return le(t);if(e>=1)return ce(t);var r,o=(r-1)*e,i=Math.floor(o),a=ce(pe(t,i).subarray(0,i+1));return a+(le(t.subarray(i+1))-a)*(o-i)}}function ge(t,e,n=y){if((r=t.length)&&!isNaN(e=+e)){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,o=(r-1)*e,i=Math.floor(o),a=+n(t[i],i,t);return a+(+n(t[i+1],i+1,t)-a)*(o-i)}}function ye(){var t,e=[],n=[],r=[];function o(){var t=0,o=Math.max(1,n.length);for(r=new Array(o-1);++t<o;)r[t-1]=ge(e,t/o);return i}function i(e){return null==e||isNaN(e=+e)?t:n[b(r,e)]}return i.invertExtent=function(t){var o=n.indexOf(t);return o<0?[NaN,NaN]:[o>0?r[o-1]:e[0],o<r.length?r[o]:e[e.length-1]]},i.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(p),o()},i.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.quantiles=function(){return r.slice()},i.copy=function(){return ye().domain(e).range(n).unknown(t)},wt.o.apply(i,arguments)}function ve(){var t,e=0,n=1,r=1,o=[.5],i=[0,1];function a(e){return null!=e&&e<=e?i[b(o,e,0,r)]:t}function s(){var t=-1;for(o=new Array(r);++t<r;)o[t]=((t+1)*n-(t-r)*e)/(r+1);return a}return a.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,s()):[e,n]},a.range=function(t){return arguments.length?(r=(i=Array.from(t)).length-1,s()):i.slice()},a.invertExtent=function(t){var a=i.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,o[0]]:a>=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return ve().domain([e,n]).range(i).unknown(t)},wt.o.apply(zt(a),arguments)}function me(){var t,e=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[b(e,o,0,r)]:t}return o.domain=function(t){return arguments.length?(e=Array.from(t),r=Math.min(e.length,n.length-1),o):e.slice()},o.range=function(t){return arguments.length?(n=Array.from(t),r=Math.min(e.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return me().domain(e).range(n).unknown(t)},wt.o.apply(o,arguments)}const be=1e3,xe=6e4,Oe=36e5,we=864e5,Se=6048e5,Me=31536e6,Ee=new Date,ke=new Date;function Ce(t,e,n,r){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),o.round=t=>{const e=o(t),n=o.ceil(t);return t-e<n-t?e:n},o.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),e(n,i),t(n)}while(s<n&&n<r);return a},o.filter=n=>Ce((e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),((t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})),n&&(o.count=(e,r)=>(Ee.setTime(+e),ke.setTime(+r),t(Ee),t(ke),Math.floor(n(Ee,ke))),o.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?e=>r(e)%t==0:e=>o.count(0,e)%t==0):o:null)),o}const Pe=Ce((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));Pe.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Ce((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):Pe:null),Pe.range;const Ae=Ce((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*be)}),((t,e)=>(e-t)/be),(t=>t.getUTCSeconds())),je=(Ae.range,Ce((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*be)}),((t,e)=>{t.setTime(+t+e*xe)}),((t,e)=>(e-t)/xe),(t=>t.getMinutes()))),Te=(je.range,Ce((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*xe)}),((t,e)=>(e-t)/xe),(t=>t.getUTCMinutes()))),_e=(Te.range,Ce((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*be-t.getMinutes()*xe)}),((t,e)=>{t.setTime(+t+e*Oe)}),((t,e)=>(e-t)/Oe),(t=>t.getHours()))),De=(_e.range,Ce((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*Oe)}),((t,e)=>(e-t)/Oe),(t=>t.getUTCHours()))),Be=(De.range,Ce((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*xe)/we),(t=>t.getDate()-1))),Ie=(Be.range,Ce((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/we),(t=>t.getUTCDate()-1))),Le=(Ie.range,Ce((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/we),(t=>Math.floor(t/we))));function ze(t){return Ce((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*xe)/Se))}Le.range;const Re=ze(0),Ne=ze(1),We=ze(2),Fe=ze(3),Ue=ze(4),Ve=ze(5),qe=ze(6);function Ge(t){return Ce((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Se))}Re.range,Ne.range,We.range,Fe.range,Ue.range,Ve.range,qe.range;const Ze=Ge(0),He=Ge(1),$e=Ge(2),Ye=Ge(3),Xe=Ge(4),Ke=Ge(5),Qe=Ge(6),Je=(Ze.range,He.range,$e.range,Ye.range,Xe.range,Ke.range,Qe.range,Ce((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),tn=(Je.range,Ce((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),en=(tn.range,Ce((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear())));en.every=t=>isFinite(t=Math.floor(t))&&t>0?Ce((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,n)=>{e.setFullYear(e.getFullYear()+n*t)})):null,en.range;const nn=Ce((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));function rn(t,e,n,r,o,i){const a=[[Ae,1,be],[Ae,5,5e3],[Ae,15,15e3],[Ae,30,3e4],[i,1,xe],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Oe],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,we],[r,2,1728e5],[n,1,Se],[e,1,2592e6],[e,3,7776e6],[t,1,Me]];function s(e,n,r){const o=Math.abs(n-e)/r,i=d((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(f(e/Me,n/Me,r));if(0===i)return Pe.every(Math.max(f(e,n,r),1));const[s,u]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return s.every(u)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const o=n&&"function"==typeof n.range?n:s(t,e,n),i=o?o.range(t,+e+1):[];return r?i.reverse():i},s]}nn.every=t=>isFinite(t=Math.floor(t))&&t>0?Ce((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null,nn.range;const[on,an]=rn(nn,tn,Ze,Le,De,Te),[sn,un]=rn(en,Je,Re,Be,_e,je);var cn=new Date,ln=new Date;function fn(t,e,n,r){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=function(e){return t(e=new Date(+e)),e},o.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},o.round=function(t){var e=o(t),n=o.ceil(t);return t-e<n-t?e:n},o.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),e(n,i),t(n)}while(a<n&&n<r);return s},o.filter=function(n){return fn((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(o.count=function(e,r){return cn.setTime(+e),ln.setTime(+r),t(cn),t(ln),Math.floor(n(cn,ln))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?function(e){return r(e)%t==0}:function(e){return o.count(0,e)%t==0}):o:null}),o}const pn=864e5,hn=6048e5;function dn(t){return fn((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/hn}))}var gn=dn(0),yn=dn(1),vn=dn(2),mn=dn(3),bn=dn(4),xn=dn(5),On=dn(6),wn=(gn.range,yn.range,vn.range,mn.range,bn.range,xn.range,On.range,fn((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/pn}),(function(t){return t.getUTCDate()-1})));const Sn=wn;function Mn(t){return fn((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/hn}))}wn.range;var En=Mn(0),kn=Mn(1),Cn=Mn(2),Pn=Mn(3),An=Mn(4),jn=Mn(5),Tn=Mn(6),_n=(En.range,kn.range,Cn.range,Pn.range,An.range,jn.range,Tn.range,fn((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/pn),(t=>t.getDate()-1)));const Dn=_n;_n.range;var Bn=fn((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Bn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?fn((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const In=Bn;Bn.range;var Ln=fn((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Ln.every=function(t){return isFinite(t=Math.floor(t))&&t>0?fn((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const zn=Ln;function Rn(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Nn(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Wn(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}Ln.range;var Fn,Un,Vn,qn={"-":"",_:" ",0:"0"},Gn=/^\s*\d+/,Zn=/^%/,Hn=/[\\^$*+?|[\]().{}]/g;function $n(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(e)+o:o)}function Yn(t){return t.replace(Hn,"\\$&")}function Xn(t){return new RegExp("^(?:"+t.map(Yn).join("|")+")","i")}function Kn(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Qn(t,e,n){var r=Gn.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Jn(t,e,n){var r=Gn.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function tr(t,e,n){var r=Gn.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function er(t,e,n){var r=Gn.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function nr(t,e,n){var r=Gn.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function rr(t,e,n){var r=Gn.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function or(t,e,n){var r=Gn.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ir(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ar(t,e,n){var r=Gn.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function sr(t,e,n){var r=Gn.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ur(t,e,n){var r=Gn.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function cr(t,e,n){var r=Gn.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function lr(t,e,n){var r=Gn.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function fr(t,e,n){var r=Gn.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function pr(t,e,n){var r=Gn.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function hr(t,e,n){var r=Gn.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function dr(t,e,n){var r=Gn.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function gr(t,e,n){var r=Zn.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function yr(t,e,n){var r=Gn.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function vr(t,e,n){var r=Gn.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function mr(t,e){return $n(t.getDate(),e,2)}function br(t,e){return $n(t.getHours(),e,2)}function xr(t,e){return $n(t.getHours()%12||12,e,2)}function Or(t,e){return $n(1+Dn.count(In(t),t),e,3)}function wr(t,e){return $n(t.getMilliseconds(),e,3)}function Sr(t,e){return wr(t,e)+"000"}function Mr(t,e){return $n(t.getMonth()+1,e,2)}function Er(t,e){return $n(t.getMinutes(),e,2)}function kr(t,e){return $n(t.getSeconds(),e,2)}function Cr(t){var e=t.getDay();return 0===e?7:e}function Pr(t,e){return $n(En.count(In(t)-1,t),e,2)}function Ar(t){var e=t.getDay();return e>=4||0===e?An(t):An.ceil(t)}function jr(t,e){return t=Ar(t),$n(An.count(In(t),t)+(4===In(t).getDay()),e,2)}function Tr(t){return t.getDay()}function _r(t,e){return $n(kn.count(In(t)-1,t),e,2)}function Dr(t,e){return $n(t.getFullYear()%100,e,2)}function Br(t,e){return $n((t=Ar(t)).getFullYear()%100,e,2)}function Ir(t,e){return $n(t.getFullYear()%1e4,e,4)}function Lr(t,e){var n=t.getDay();return $n((t=n>=4||0===n?An(t):An.ceil(t)).getFullYear()%1e4,e,4)}function zr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+$n(e/60|0,"0",2)+$n(e%60,"0",2)}function Rr(t,e){return $n(t.getUTCDate(),e,2)}function Nr(t,e){return $n(t.getUTCHours(),e,2)}function Wr(t,e){return $n(t.getUTCHours()%12||12,e,2)}function Fr(t,e){return $n(1+Sn.count(zn(t),t),e,3)}function Ur(t,e){return $n(t.getUTCMilliseconds(),e,3)}function Vr(t,e){return Ur(t,e)+"000"}function qr(t,e){return $n(t.getUTCMonth()+1,e,2)}function Gr(t,e){return $n(t.getUTCMinutes(),e,2)}function Zr(t,e){return $n(t.getUTCSeconds(),e,2)}function Hr(t){var e=t.getUTCDay();return 0===e?7:e}function $r(t,e){return $n(gn.count(zn(t)-1,t),e,2)}function Yr(t){var e=t.getUTCDay();return e>=4||0===e?bn(t):bn.ceil(t)}function Xr(t,e){return t=Yr(t),$n(bn.count(zn(t),t)+(4===zn(t).getUTCDay()),e,2)}function Kr(t){return t.getUTCDay()}function Qr(t,e){return $n(yn.count(zn(t)-1,t),e,2)}function Jr(t,e){return $n(t.getUTCFullYear()%100,e,2)}function to(t,e){return $n((t=Yr(t)).getUTCFullYear()%100,e,2)}function eo(t,e){return $n(t.getUTCFullYear()%1e4,e,4)}function no(t,e){var n=t.getUTCDay();return $n((t=n>=4||0===n?bn(t):bn.ceil(t)).getUTCFullYear()%1e4,e,4)}function ro(){return"+0000"}function oo(){return"%"}function io(t){return+t}function ao(t){return Math.floor(+t/1e3)}function so(t){return new Date(t)}function uo(t){return t instanceof Date?+t:+new Date(+t)}function co(t,e,n,r,o,i,a,s,u,c){var l=xt(),f=l.invert,p=l.domain,h=c(".%L"),d=c(":%S"),g=c("%I:%M"),y=c("%I %p"),v=c("%a %d"),m=c("%b %d"),b=c("%B"),x=c("%Y");function O(t){return(u(t)<t?h:s(t)<t?d:a(t)<t?g:i(t)<t?y:r(t)<t?o(t)<t?v:m:n(t)<t?b:x)(t)}return l.invert=function(t){return new Date(f(t))},l.domain=function(t){return arguments.length?p(Array.from(t,uo)):p().map(so)},l.ticks=function(e){var n=p();return t(n[0],n[n.length-1],null==e?10:e)},l.tickFormat=function(t,e){return null==e?O:c(e)},l.nice=function(t){var n=p();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?p(Wt(n,t)):l},l.copy=function(){return mt(l,co(t,e,n,r,o,i,a,s,u,c))},l}function lo(){return wt.o.apply(co(sn,un,en,Je,Re,Be,_e,je,Ae,Un).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function fo(){return wt.o.apply(co(on,an,nn,tn,Ze,Ie,De,Te,Ae,Vn).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function po(){var t,e,n,r,o,i=0,a=1,s=dt,u=!1;function c(e){return null==e||isNaN(e=+e)?o:s(0===n?.5:(e=(r(e)-t)*n,u?Math.max(0,Math.min(1,e)):e))}function l(t){return function(e){var n,r;return arguments.length?([n,r]=e,s=t(n,r),c):[s(0),s(1)]}}return c.domain=function(o){return arguments.length?([i,a]=o,t=r(i=+i),e=r(a=+a),n=t===e?0:1/(e-t),c):[i,a]},c.clamp=function(t){return arguments.length?(u=!!t,c):u},c.interpolator=function(t){return arguments.length?(s=t,c):s},c.range=l(lt),c.rangeRound=l(ft),c.unknown=function(t){return arguments.length?(o=t,c):o},function(o){return r=o,t=o(i),e=o(a),n=t===e?0:1/(e-t),c}}function ho(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function go(){var t=zt(po()(dt));return t.copy=function(){return ho(t,go())},wt.O.apply(t,arguments)}function yo(){var t=Ht(po()).domain([1,10]);return t.copy=function(){return ho(t,yo()).base(t.base())},wt.O.apply(t,arguments)}function vo(){var t=Kt(po());return t.copy=function(){return ho(t,vo()).constant(t.constant())},wt.O.apply(t,arguments)}function mo(){var t=re(po());return t.copy=function(){return ho(t,mo()).exponent(t.exponent())},wt.O.apply(t,arguments)}function bo(){return mo.apply(null,arguments).exponent(.5)}function xo(){var t=[],e=dt;function n(n){if(null!=n&&!isNaN(n=+n))return e((b(t,n,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(p),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.range=function(){return t.map(((n,r)=>e(r/(t.length-1))))},n.quantiles=function(e){return Array.from({length:e+1},((n,r)=>de(t,r/e)))},n.copy=function(){return xo(e).domain(t)},wt.O.apply(n,arguments)}function Oo(t,e){void 0===e&&(e=t,t=lt);for(var n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);n<r;)i[n]=t(o,o=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return i[e](t-e)}}function wo(){var t,e,n,r,o,i,a,s=0,u=.5,c=1,l=1,f=dt,p=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(l*t<l*e?r:o),f(p?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var n,r,o;return arguments.length?([n,r,o]=e,f=Oo(t,[n,r,o]),h):[f(0),f(.5),f(1)]}}return h.domain=function(a){return arguments.length?([s,u,c]=a,t=i(s=+s),e=i(u=+u),n=i(c=+c),r=t===e?0:.5/(e-t),o=e===n?0:.5/(n-e),l=e<t?-1:1,h):[s,u,c]},h.clamp=function(t){return arguments.length?(p=!!t,h):p},h.interpolator=function(t){return arguments.length?(f=t,h):f},h.range=d(lt),h.rangeRound=d(ft),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return i=a,t=a(s),e=a(u),n=a(c),r=t===e?0:.5/(e-t),o=e===n?0:.5/(n-e),l=e<t?-1:1,h}}function So(){var t=zt(wo()(dt));return t.copy=function(){return ho(t,So())},wt.O.apply(t,arguments)}function Mo(){var t=Ht(wo()).domain([.1,1,10]);return t.copy=function(){return ho(t,Mo()).base(t.base())},wt.O.apply(t,arguments)}function Eo(){var t=Kt(wo());return t.copy=function(){return ho(t,Eo()).constant(t.constant())},wt.O.apply(t,arguments)}function ko(){var t=re(wo());return t.copy=function(){return ho(t,ko()).exponent(t.exponent())},wt.O.apply(t,arguments)}function Co(){return ko.apply(null,arguments).exponent(.5)}function Po(t,e){if((o=t.length)>1)for(var n,r,o,i=1,a=t[e[0]],s=a.length;i<o;++i)for(r=a,a=t[e[i]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}Fn=function(t){var e=t.dateTime,n=t.date,r=t.time,o=t.periods,i=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=Xn(o),l=Kn(o),f=Xn(i),p=Kn(i),h=Xn(a),d=Kn(a),g=Xn(s),y=Kn(s),v=Xn(u),m=Kn(u),b={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:mr,e:mr,f:Sr,g:Br,G:Lr,H:br,I:xr,j:Or,L:wr,m:Mr,M:Er,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:io,s:ao,S:kr,u:Cr,U:Pr,V:jr,w:Tr,W:_r,x:null,X:null,y:Dr,Y:Ir,Z:zr,"%":oo},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Rr,e:Rr,f:Vr,g:to,G:no,H:Nr,I:Wr,j:Fr,L:Ur,m:qr,M:Gr,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:io,s:ao,S:Zr,u:Hr,U:$r,V:Xr,w:Kr,W:Qr,x:null,X:null,y:Jr,Y:eo,Z:ro,"%":oo},O={a:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return M(t,e,n,r)},d:ur,e:ur,f:dr,g:or,G:rr,H:lr,I:lr,j:cr,L:hr,m:sr,M:fr,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:ar,Q:yr,s:vr,S:pr,u:Jn,U:tr,V:er,w:Qn,W:nr,x:function(t,e,r){return M(t,n,e,r)},X:function(t,e,n){return M(t,r,e,n)},y:or,Y:rr,Z:ir,"%":gr};function w(t,e){return function(n){var r,o,i,a=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(a.push(t.slice(u,s)),null!=(o=qn[r=t.charAt(++s)])?r=t.charAt(++s):o="e"===r?" ":"0",(i=e[r])&&(r=i(n,o)),a.push(r),u=s+1);return a.push(t.slice(u,s)),a.join("")}}function S(t,e){return function(n){var r,o,i=Wn(1900,void 0,1);if(M(i,t,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Nn(Wn(i.y,0,1))).getUTCDay(),r=o>4||0===o?yn.ceil(r):yn(r),r=Sn.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Rn(Wn(i.y,0,1))).getDay(),r=o>4||0===o?kn.ceil(r):kn(r),r=Dn.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Nn(Wn(i.y,0,1)).getUTCDay():Rn(Wn(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Nn(i)):Rn(i)}}function M(t,e,n,r){for(var o,i,a=0,s=e.length,u=n.length;a<s;){if(r>=u)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=O[o in qn?e.charAt(a++):o])||(r=i(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),x.x=w(n,x),x.X=w(r,x),x.c=w(e,x),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}({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"]}),Un=Fn.format,Fn.parse,Vn=Fn.utcFormat,Fn.utcParse;var Ao=n(16426),jo=n(6677);function To(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function _o(t,e){return t[e]}function Do(t){const e=[];return e.key=t,e}var Bo=n(71644),Io=n.n(Bo),Lo=n(71130),zo=n.n(Lo),Ro=n(1842),No=n.n(Ro),Wo=n(61049),Fo=n.n(Wo),Uo=n(85505),Vo=n.n(Uo),qo=n(72579),Go=n.n(qo),Zo=n(35838),Ho=n.n(Zo),$o=n(16951),Yo=n.n($o),Xo=n(23779),Ko=n.n(Xo),Qo=n(18149),Jo=n.n(Qo),ti=n(829),ei=n.n(ti),ni=n(17374),ri=n.n(ni);function oi(t){return function(t){if(Array.isArray(t))return ii(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ii(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ii(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ii(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ai=function(t){return t},si={"@@functional/placeholder":!0},ui=function(t){return t===si},ci=function(t){return function e(){return 0===arguments.length||1===arguments.length&&ui(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},li=function t(e,n){return 1===e?n:ci((function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter((function(t){return t!==si})).length;return a>=e?n.apply(void 0,o):t(e-a,ci((function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=o.map((function(t){return ui(t)?e.shift():t}));return n.apply(void 0,oi(i).concat(e))})))}))},fi=function(t){return li(t.length,t)},pi=function(t,e){for(var n=[],r=t;r<e;++r)n[r-t]=r;return n},hi=fi((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),di=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)return ai;var r=e.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce((function(t,e){return e(t)}),o.apply(void 0,arguments))}},gi=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},yi=function(t){var e=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e&&o.every((function(t,n){return t===e[n]}))?n:(e=o,n=t.apply(void 0,o))}};const vi=function(t,e,n){for(var r=new(ri())(t),o=0,i=[];r.lt(e)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i},mi=function(t){return 0===t?1:Math.floor(new(ri())(t).abs().log(10).toNumber())+1};fi((function(t,e,n){var r=+t;return r+n*(+e-r)})),fi((function(t,e,n){var r=e-+t;return(n-t)/(r||1/0)})),fi((function(t,e,n){var r=e-+t;return r=r||1/0,Math.max(0,Math.min(1,(n-t)/r))}));function bi(t){return function(t){if(Array.isArray(t))return wi(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Oi(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(t,e)||Oi(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oi(t,e){if(t){if("string"==typeof t)return wi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wi(t,e):void 0}}function wi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Si(t){var e=xi(t,2),n=e[0],r=e[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function Mi(t,e,n){if(t.lte(0))return new(ri())(0);var r=mi(t.toNumber()),o=new(ri())(10).pow(r),i=t.div(o),a=1!==r?.05:.1,s=new(ri())(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return e?s:new(ri())(Math.ceil(s))}function Ei(t,e,n){var r=1,o=new(ri())(t);if(!o.isint()&&n){var i=Math.abs(t);i<1?(r=new(ri())(10).pow(mi(t)-1),o=new(ri())(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new(ri())(Math.floor(t)))}else 0===t?o=new(ri())(Math.floor((e-1)/2)):n||(o=new(ri())(Math.floor(t)));var a=Math.floor((e-1)/2);return di(hi((function(t){return o.add(new(ri())(t-a).mul(r)).toNumber()})),pi)(0,e)}function ki(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(n-1)))return{step:new(ri())(0),tickMin:new(ri())(0),tickMax:new(ri())(0)};var i,a=Mi(new(ri())(e).sub(t).div(n-1),r,o);i=t<=0&&e>=0?new(ri())(0):(i=new(ri())(t).add(e).div(2)).sub(new(ri())(i).mod(a));var s=Math.ceil(i.sub(t).div(a).toNumber()),u=Math.ceil(new(ri())(e).sub(i).div(a).toNumber()),c=s+u+1;return c>n?ki(t,e,n,r,o+1):(c<n&&(u=e>0?u+(n-c):u,s=e>0?s:s+(n-c)),{step:a,tickMin:i.sub(new(ri())(s).mul(a)),tickMax:i.add(new(ri())(u).mul(a))})}var Ci=yi((function(t){var e=xi(t,2),n=e[0],r=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=Si([n,r]),u=xi(s,2),c=u[0],l=u[1];if(c===-1/0||l===1/0){var f=l===1/0?[c].concat(bi(pi(0,o-1).map((function(){return 1/0})))):[].concat(bi(pi(0,o-1).map((function(){return-1/0}))),[l]);return n>r?gi(f):f}if(c===l)return Ei(c,o,i);var p=ki(c,l,a,i),h=p.step,d=p.tickMin,g=p.tickMax,y=vi(d,g.add(new(ri())(.1).mul(h)),h);return n>r?gi(y):y})),Pi=(yi((function(t){var e=xi(t,2),n=e[0],r=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=Si([n,r]),u=xi(s,2),c=u[0],l=u[1];if(c===-1/0||l===1/0)return[n,r];if(c===l)return Ei(c,o,i);var f=Mi(new(ri())(l).sub(c).div(a-1),i,0),p=di(hi((function(t){return new(ri())(c).add(new(ri())(t).mul(f)).toNumber()})),pi),h=p(0,a).filter((function(t){return t>=c&&t<=l}));return n>r?gi(h):h})),yi((function(t,e){var n=xi(t,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Si([r,o]),s=xi(a,2),u=s[0],c=s[1];if(u===-1/0||c===1/0)return[r,o];if(u===c)return[u];var l=Math.max(e,2),f=Mi(new(ri())(c).sub(u).div(l-1),i,0),p=[].concat(bi(vi(new(ri())(u),new(ri())(c).sub(new(ri())(.99).mul(f)),f)),[c]);return r>o?gi(p):p}))),Ai=n(18694),ji=n(15027),Ti=n(79376),_i=n(12076);function Di(t){return Di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Di(t)}function Bi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ii(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bi(Object(n),!0).forEach((function(e){Li(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Li(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Di(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==Di(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===Di(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zi(t){return function(t){if(Array.isArray(t))return Ri(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ri(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ri(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ri(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ni(t,e,n){return No()(t)||No()(e)?n:(0,ji.P2)(e)?Go()(t,e,n):Fo()(e)?e(t):n}function Wi(t,e,n,r){var o=Ho()(t,(function(t){return Ni(t,e)}));if("number"===n){var i=o.filter((function(t){return(0,ji.hj)(t)||parseFloat(t)}));return i.length?[zo()(i),Io()(i)]:[1/0,-1/0]}return(r?o.filter((function(t){return!No()(t)})):o).map((function(t){return(0,ji.P2)(t)||t instanceof Date?t:""}))}var Fi=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(e=null==n?void 0:n.length)&&void 0!==e?e:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var s=o.range,u=0;u<a;u++){var c=u>0?r[u-1].coordinate:r[a-1].coordinate,l=r[u].coordinate,f=u>=a-1?r[0].coordinate:r[u+1].coordinate,p=void 0;if((0,ji.uY)(l-c)!==(0,ji.uY)(f-l)){var h=[];if((0,ji.uY)(f-l)===(0,ji.uY)(s[1]-s[0])){p=f;var d=l+s[1]-s[0];h[0]=Math.min(d,(d+c)/2),h[1]=Math.max(d,(d+c)/2)}else{p=c;var g=f+s[1]-s[0];h[0]=Math.min(l,(g+l)/2),h[1]=Math.max(l,(g+l)/2)}var y=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(t>y[0]&&t<=y[1]||t>=h[0]&&t<=h[1]){i=r[u].index;break}}else{var v=Math.min(c,f),m=Math.max(c,f);if(t>(v+l)/2&&t<=(m+l)/2){i=r[u].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&t>(n[b].coordinate+n[b-1].coordinate)/2&&t<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&t>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}return i},Ui=function(t){var e,n=t.type.displayName,r=t.props,o=r.stroke,i=r.fill;switch(n){case"Line":e=o;break;case"Area":case"Radar":e=o&&"none"!==o?o:i;break;default:e=i}return e},Vi=function(t){var e=t.barSize,n=t.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,s=i.length;a<s;a++)for(var u=r[i[a]].stackGroups,c=Object.keys(u),l=0,f=c.length;l<f;l++){var p=u[c[l]],h=p.items,d=p.cateAxisId,g=h.filter((function(t){return(0,Ti.Gf)(t.type).indexOf("Bar")>=0}));if(g&&g.length){var y=g[0].props.barSize,v=g[0].props[d];o[v]||(o[v]=[]),o[v].push({item:g[0],stackList:g.slice(1),barSize:No()(y)?e:y})}}return o},qi=function(t){var e=t.barGap,n=t.barCategoryGap,r=t.bandSize,o=t.sizeList,i=void 0===o?[]:o,a=t.maxBarSize,s=i.length;if(s<1)return null;var u,c=(0,ji.h1)(e,r,0,!0),l=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=r/s,h=i.reduce((function(t,e){return t+e.barSize||0}),0);(h+=(s-1)*c)>=r&&(h-=(s-1)*c,c=0),h>=r&&p>0&&(f=!0,h=s*(p*=.9));var d={offset:((r-h)/2>>0)-c,size:0};u=i.reduce((function(t,e){var n={item:e.item,position:{offset:d.offset+d.size+c,size:f?p:e.barSize}},r=[].concat(zi(t),[n]);return d=r[r.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){r.push({item:t,position:d})})),r}),l)}else{var g=(0,ji.h1)(n,r,0,!0);r-2*g-(s-1)*c<=0&&(c=0);var y=(r-2*g-(s-1)*c)/s;y>1&&(y>>=0);var v=a===+a?Math.min(y,a):y;u=i.reduce((function(t,e,n){var r=[].concat(zi(t),[{item:e.item,position:{offset:g+(y+c)*n+(y-v)/2,size:v}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){r.push({item:t,position:r[r.length-1].position})})),r}),l)}return u},Gi=function(t,e,n,r){var o=n.children,i=n.width,a=n.margin,s=i-(a.left||0)-(a.right||0),u=(0,_i.z)({children:o,legendWidth:s});if(u){var c=r||{},l=c.width,f=c.height,p=u.align,h=u.verticalAlign,d=u.layout;if(("vertical"===d||"horizontal"===d&&"middle"===h)&&"center"!==p&&(0,ji.hj)(t[p]))return Ii(Ii({},t),{},Li({},p,t[p]+(l||0)));if(("horizontal"===d||"vertical"===d&&"center"===p)&&"middle"!==h&&(0,ji.hj)(t[h]))return Ii(Ii({},t),{},Li({},h,t[h]+(f||0)))}return t},Zi=function(t,e,n,r,o){var i=e.props.children,a=(0,Ti.NN)(i,Ai.W).filter((function(t){return function(t,e,n){return!!No()(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===n?"xAxis"===e:"y"!==n||"yAxis"===e)}(r,o,t.props.direction)}));if(a&&a.length){var s=a.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var r=Ni(e,n,0),o=Array.isArray(r)?[zo()(r),Io()(r)]:[r,r],i=s.reduce((function(t,n){var r=Ni(e,n,0),i=o[0]-Math.abs(Array.isArray(r)?r[0]:r),a=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(i,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]}),[1/0,-1/0])}return null},Hi=function(t,e,n,r,o){var i=e.map((function(e){return Zi(t,e,n,o,r)})).filter((function(t){return!No()(t)}));return i&&i.length?i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null},$i=function(t,e,n,r,o){var i=e.map((function(e){var i=e.props.dataKey;return"number"===n&&i&&Zi(t,e,i,r)||Wi(t,i,n,o)}));if("number"===n)return i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(t,e){for(var n=0,r=e.length;n<r;n++)a[e[n]]||(a[e[n]]=!0,t.push(e[n]));return t}),[])},Yi=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},Xi=function(t,e,n,r){if(r)return t.map((function(t){return t.coordinate}));var o,i,a=t.map((function(t){return t.coordinate===e&&(o=!0),t.coordinate===n&&(i=!0),t.coordinate}));return o||a.push(e),i||a.push(n),a},Ki=function(t,e,n){if(!t)return null;var r=t.scale,o=t.duplicateDomain,i=t.type,a=t.range,s="scaleBand"===t.realScaleType?r.bandwidth()/2:2,u=(e||n)&&"category"===i&&r.bandwidth?r.bandwidth()/s:0;return u="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*(0,ji.uY)(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=o?o.indexOf(t):t;return{coordinate:r(e)+u,value:t,offset:u}})).filter((function(t){return!Yo()(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:r(t)+u,value:t,index:e,offset:u}})):r.ticks&&!n?r.ticks(t.tickCount).map((function(t){return{coordinate:r(t)+u,value:t,offset:u}})):r.domain().map((function(t,e){return{coordinate:r(t)+u,value:o?o[t]:t,index:e,offset:u}}))},Qi=new WeakMap,Ji=function(t,e){if("function"!=typeof e)return t;Qi.has(t)||Qi.set(t,new WeakMap);var n=Qi.get(t);if(n.has(e))return n.get(e);var r=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return n.set(e,r),r},ta=function(t,e,n){var i=t.scale,a=t.type,s=t.layout,u=t.axisType;if("auto"===i)return"radial"===s&&"radiusAxis"===u?{scale:o.Z(),realScaleType:"band"}:"radial"===s&&"angleAxis"===u?{scale:Rt(),realScaleType:"linear"}:"category"===a&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!n)?{scale:o.x(),realScaleType:"point"}:"category"===a?{scale:o.Z(),realScaleType:"band"}:{scale:Rt(),realScaleType:"linear"};if(Vo()(i)){var c="scale".concat(Ko()(i));return{scale:(r[c]||o.x)(),realScaleType:r[c]?c:"point"}}return Fo()(i)?{scale:i}:{scale:o.x(),realScaleType:"point"}},ea=1e-4,na=function(t){var e=t.domain();if(e&&!(e.length<=2)){var n=e.length,r=t.range(),o=Math.min(r[0],r[1])-ea,i=Math.max(r[0],r[1])+ea,a=t(e[0]),s=t(e[n-1]);(a<o||a>i||s<o||s>i)&&t.domain([e[0],e[n-1]])}},ra=function(t,e){if(!t)return null;for(var n=0,r=t.length;n<r;n++)if(t[n].item===e)return t[n].position;return null},oa=function(t,e){if(!e||2!==e.length||!(0,ji.hj)(e[0])||!(0,ji.hj)(e[1]))return t;var n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]),o=[t[0],t[1]];return(!(0,ji.hj)(t[0])||t[0]<n)&&(o[0]=n),(!(0,ji.hj)(t[1])||t[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o},ia={sign:function(t){var e=t.length;if(!(e<=0))for(var n=0,r=t[0].length;n<r;++n)for(var o=0,i=0,a=0;a<e;++a){var s=Yo()(t[a][n][1])?t[a][n][0]:t[a][n][1];s>=0?(t[a][n][0]=o,t[a][n][1]=o+s,o=t[a][n][1]):(t[a][n][0]=i,t[a][n][1]=i+s,i=t[a][n][1])}},expand:function(t,e){if((r=t.length)>0){for(var n,r,o,i=0,a=t[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=t[n][i][1]||0;if(o)for(n=0;n<r;++n)t[n][i][1]/=o}Po(t,e)}},none:Po,silhouette:function(t,e){if((n=t.length)>0){for(var n,r=0,o=t[e[0]],i=o.length;r<i;++r){for(var a=0,s=0;a<n;++a)s+=t[a][r][1]||0;o[r][1]+=o[r][0]=-s/2}Po(t,e)}},wiggle:function(t,e){if((o=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var s=0,u=0,c=0;s<o;++s){for(var l=t[e[s]],f=l[a][1]||0,p=(f-(l[a-1][1]||0))/2,h=0;h<s;++h){var d=t[e[h]];p+=(d[a][1]||0)-(d[a-1][1]||0)}u+=f,c+=p*f}n[a-1][1]+=n[a-1][0]=i,u&&(i-=c/u)}n[a-1][1]+=n[a-1][0]=i,Po(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var n=0,r=t[0].length;n<r;++n)for(var o=0,i=0;i<e;++i){var a=Yo()(t[i][n][1])?t[i][n][0]:t[i][n][1];a>=0?(t[i][n][0]=o,t[i][n][1]=o+a,o=t[i][n][1]):(t[i][n][0]=0,t[i][n][1]=0)}}},aa=function(t,e,n){var r=e.map((function(t){return t.props.dataKey})),o=ia[n],i=function(){var t=(0,jo.Z)([]),e=To,n=Po,r=_o;function o(o){var i,a,s=Array.from(t.apply(this,arguments),Do),u=s.length,c=-1;for(const t of o)for(i=0,++c;i<u;++i)(s[i][c]=[0,+r(t,s[i].key,c,o)]).data=t;for(i=0,a=(0,Ao.Z)(e(s));i<u;++i)s[a[i]].index=i;return n(s,a),s}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:(0,jo.Z)(Array.from(e)),o):t},o.value=function(t){return arguments.length?(r="function"==typeof t?t:(0,jo.Z)(+t),o):r},o.order=function(t){return arguments.length?(e=null==t?To:"function"==typeof t?t:(0,jo.Z)(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(n=null==t?Po:t,o):n},o}().keys(r).value((function(t,e){return+Ni(t,e,0)})).order(To).offset(o);return i(t)},sa=function(t,e,n,r,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce((function(t,e){var o=e.props,i=o.stackId;if(o.hide)return t;var a=e.props[n],s=t[a]||{hasStack:!1,stackGroups:{}};if((0,ji.P2)(i)){var u=s.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};u.items.push(e),s.hasStack=!0,s.stackGroups[i]=u}else s.stackGroups[(0,ji.EL)("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[e]};return Ii(Ii({},t),{},Li({},a,s))}),{});return Object.keys(a).reduce((function(e,i){var s=a[i];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(e,i){var a=s.stackGroups[i];return Ii(Ii({},e),{},Li({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:aa(t,a.items,o)}))}),{})),Ii(Ii({},e),{},Li({},i,s))}),{})},ua=function(t,e){var n=e.realScaleType,r=e.type,o=e.tickCount,i=e.originalDomain,a=e.allowDecimals,s=n||e.scale;if("auto"!==s&&"linear"!==s)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var u=t.domain();if(!u.length)return null;var c=Ci(u,o,a);return t.domain([zo()(c),Io()(c)]),{niceTicks:c}}if(o&&"number"===r){var l=t.domain();return{niceTicks:Pi(l,o,a)}}return null},ca=function(t){var e=t.axis,n=t.ticks,r=t.offset,o=t.bandSize,i=t.entry,a=t.index;if("category"===e.type)return n[a]?n[a].coordinate+r:null;var s=Ni(i,e.dataKey,e.domain[a]);return No()(s)?null:e.scale(s)-o/2+r},la=function(t){var e=t.numericAxis,n=e.scale.domain();if("number"===e.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]},fa=function(t,e){var n=t.props.stackId;if((0,ji.P2)(n)){var r=e[n];if(r){var o=r.items.indexOf(t);return o>=0?r.stackedData[o]:null}}return null},pa=function(t,e,n){return Object.keys(t).reduce((function(r,o){var i=t[o].stackedData.reduce((function(t,r){var o=r.slice(e,n+1).reduce((function(t,e){return[zo()(e.concat([t[0]]).filter(ji.hj)),Io()(e.concat([t[1]]).filter(ji.hj))]}),[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},ha=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,da=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ga=function(t,e,n){if(Fo()(t))return t(e,n);if(!Array.isArray(t))return e;var r=[];if((0,ji.hj)(t[0]))r[0]=n?t[0]:Math.min(t[0],e[0]);else if(ha.test(t[0])){var o=+ha.exec(t[0])[1];r[0]=e[0]-o}else Fo()(t[0])?r[0]=t[0](e[0]):r[0]=e[0];if((0,ji.hj)(t[1]))r[1]=n?t[1]:Math.max(t[1],e[1]);else if(da.test(t[1])){var i=+da.exec(t[1])[1];r[1]=e[1]+i}else Fo()(t[1])?r[1]=t[1](e[1]):r[1]=e[1];return r},ya=function(t,e,n){if(t&&t.scale&&t.scale.bandwidth){var r=t.scale.bandwidth();if(!n||r>0)return r}if(t&&e&&e.length>=2){for(var o=ei()(e,(function(t){return t.coordinate})),i=1/0,a=1,s=o.length;a<s;a++){var u=o[a],c=o[a-1];i=Math.min((u.coordinate||0)-(c.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},va=function(t,e,n){return t&&t.length?Jo()(t,Go()(n,"type.defaultProps.domain"))?e:t:e},ma=function(t,e){var n=t.props,r=n.dataKey,o=n.name,i=n.unit,a=n.formatter,s=n.tooltipType,u=n.chartType;return Ii(Ii({},(0,Ti.L6)(t)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:Ui(t),value:Ni(e,r),type:s,payload:e,chartType:u})}},88089:(t,e,n)=>{"use strict";n.d(e,{xE:()=>p,os:()=>h});var r=n(79499);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===o(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u={widthCache:{},cacheCount:0},c={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},l="recharts_measurement_span";function f(t){var e=a({},t);return Object.keys(e).forEach((function(t){e[t]||delete e[t]})),e}var p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||r.x.isSsr)return{width:0,height:0};var n=f(e),o=JSON.stringify({text:t,copyStyle:n});if(u.widthCache[o])return u.widthCache[o];try{var i=document.getElementById(l);i||((i=document.createElement("span")).setAttribute("id",l),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var s=a(a({},c),n);Object.assign(i.style,s),i.textContent="".concat(t);var p=i.getBoundingClientRect(),h={width:p.width,height:p.height};return u.widthCache[o]=h,++u.cacheCount>2e3&&(u.cacheCount=0,u.widthCache={}),h}catch(t){return{width:0,height:0}}},h=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}}},15027:(t,e,n)=>{"use strict";n.d(e,{uY:()=>f,hU:()=>p,hj:()=>h,P2:()=>d,EL:()=>y,h1:()=>v,Kt:()=>m,bv:()=>b,k4:()=>x,Ap:()=>O});var r=n(85505),o=n.n(r),i=n(16951),a=n.n(i),s=n(72579),u=n.n(s),c=n(80537),l=n.n(c),f=function(t){return 0===t?0:t>0?1:-1},p=function(t){return o()(t)&&t.indexOf("%")===t.length-1},h=function(t){return l()(t)&&!a()(t)},d=function(t){return h(t)||o()(t)},g=0,y=function(t){var e=++g;return"".concat(t||"").concat(e)},v=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!h(t)&&!o()(t))return r;if(p(t)){var s=t.indexOf("%");n=e*parseFloat(t.slice(0,s))/100}else n=+t;return a()(n)&&(n=r),i&&n>e&&(n=e),n},m=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},b=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,n={},r=0;r<e;r++){if(n[t[r]])return!0;n[t[r]]=!0}return!1},x=function(t,e){return h(t)&&h(e)?function(n){return t+n*(e-t)}:function(){return e}};function O(t,e,n){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):u()(t,e))===n})):null}},79499:(t,e,n)=>{"use strict";n.d(e,{x:()=>r});var r={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return r[t]},set:function(t,e){if("string"==typeof t)r[t]=e;else{var n=Object.keys(t);n&&n.length&&n.forEach((function(e){r[e]=t[e]}))}}}},91745:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var r=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o]}},22089:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===r(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Wk:()=>s,op:()=>c,z3:()=>f}),n(1842);var s=Math.PI/180,u=function(t){return 180*t/Math.PI},c=function(t,e,n,r){return{x:t+Math.cos(-s*r)*n,y:e+Math.sin(-s*r)*n}},l=function(t,e){var n=e.startAngle,r=e.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return t+360*Math.min(o,i)},f=function(t,e){var n=function(t,e){var n,r,o,i,a,s,c=t.x,l=t.y,f=e.cx,p=e.cy,h=(o=(n={x:c,y:l}).x,i=n.y,a=(r={x:f,y:p}).x,s=r.y,Math.sqrt(Math.pow(o-a,2)+Math.pow(i-s,2)));if(h<=0)return{radius:h};var d=(c-f)/h,g=Math.acos(d);return l>p&&(g=2*Math.PI-g),{radius:h,angle:u(g),angleInRadian:g}}({x:t.x,y:t.y},e),r=n.radius,o=n.angle,a=e.innerRadius,s=e.outerRadius;if(r<a||r>s)return!1;if(0===r)return!0;var c,f=function(t){var e=t.startAngle,n=t.endAngle,r=Math.floor(e/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:e-360*i,endAngle:n-360*i}}(e),p=f.startAngle,h=f.endAngle,d=o;if(p<=h){for(;d>h;)d-=360;for(;d<p;)d+=360;c=d>=p&&d<=h}else{for(;d>p;)d-=360;for(;d<h;)d+=360;c=d>=h&&d<=p}return c?i(i({},e),{},{radius:r,angle:l(d,e)}):null}},79376:(t,e,n)=>{"use strict";n.d(e,{Gf:()=>w,NN:()=>k,sP:()=>C,TT:()=>P,L6:()=>j,rL:()=>T,eu:()=>D,Bh:()=>B,$R:()=>I});var r=n(72579),o=n.n(r),i=n(1842),a=n.n(i),s=n(85505),u=n.n(s),c=n(61049),l=n.n(c),f=n(29259),p=n.n(f),h=n(8156),d=n(48570),g=n(15027),y=n(47022),v=n(21442),m=["children"],b=["children"];function x(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var O={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},w=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},S=null,M=null,E=function t(e){if(e===S&&Array.isArray(M))return M;var n=[];return h.Children.forEach(e,(function(e){a()(e)||((0,d.isFragment)(e)?n=n.concat(t(e.props.children)):n.push(e))})),M=n,S=e,n};function k(t,e){var n=[],r=[];return r=Array.isArray(e)?e.map((function(t){return w(t)})):[w(e)],E(t).forEach((function(t){var e=o()(t,"type.displayName")||o()(t,"type.name");-1!==r.indexOf(e)&&n.push(t)})),n}function C(t,e){var n=k(t,e);return n&&n[0]}var P=function(t){if(!t||!t.props)return!1;var e=t.props,n=e.width,r=e.height;return!(!(0,g.hj)(n)||n<=0||!(0,g.hj)(r)||r<=0)},A=["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"],j=function(t,e,n){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if((0,h.isValidElement)(t)&&(r=t.props),!p()(r))return null;var o={};return Object.keys(r).forEach((function(t){var i;(function(t,e,n,r){var o,i=null!==(o=null===v.ry||void 0===v.ry?void 0:v.ry[r])&&void 0!==o?o:[];return!l()(t)&&(r&&i.includes(e)||v.Yh.includes(e))||n&&v.nv.includes(e)})(null===(i=r)||void 0===i?void 0:i[t],t,e,n)&&(o[t]=r[t])})),o},T=function t(e,n){if(e===n)return!0;var r=h.Children.count(e);if(r!==h.Children.count(n))return!1;if(0===r)return!0;if(1===r)return _(Array.isArray(e)?e[0]:e,Array.isArray(n)?n[0]:n);for(var o=0;o<r;o++){var i=e[o],a=n[o];if(Array.isArray(i)||Array.isArray(a)){if(!t(i,a))return!1}else if(!_(i,a))return!1}return!0},_=function(t,e){if(a()(t)&&a()(e))return!0;if(!a()(t)&&!a()(e)){var n=t.props||{},r=n.children,o=x(n,m),i=e.props||{},s=i.children,u=x(i,b);return r&&s?(0,y.w)(o,u)&&T(r,s):!r&&!s&&(0,y.w)(o,u)}return!1},D=function(t,e){var n=[],r={};return E(t).forEach((function(t,o){if(function(t){return t&&t.type&&u()(t.type)&&A.indexOf(t.type)>=0}(t))n.push(t);else if(t){var i=w(t.type),a=e[i]||{},s=a.handler,c=a.once;if(s&&(!c||!r[i])){var l=s(t,i,o);n.push(l),r[i]=!0}}})),n},B=function(t){var e=t&&t.type;return e&&O[e]?O[e]:null},I=function(t,e){return E(e).indexOf(t)}},47022:(t,e,n)=>{"use strict";function r(t,e){for(var n in t)if({}.hasOwnProperty.call(t,n)&&(!{}.hasOwnProperty.call(e,n)||t[n]!==e[n]))return!1;for(var r in e)if({}.hasOwnProperty.call(e,r)&&!{}.hasOwnProperty.call(t,r))return!1;return!0}n.d(e,{w:()=>r})},12076:(t,e,n)=>{"use strict";n.d(e,{z:()=>l});var r=n(97245),o=n(24847),i=n(79376);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===a(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l=function(t){var e,n=t.children,a=t.formattedGraphicalItems,s=t.legendWidth,c=t.legendContent,l=(0,i.sP)(n,r.D);return l?(e=l.props&&l.props.payload?l.props&&l.props.payload:"children"===c?(a||[]).reduce((function(t,e){var n=e.item,r=e.props,o=r.sectors||r.data||[];return t.concat(o.map((function(t){return{type:l.props.iconType||n.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(a||[]).map((function(t){var e=t.item,n=e.props,r=n.dataKey,i=n.name,a=n.legendType;return{inactive:n.hide,dataKey:r,type:l.props.iconType||a||"square",color:(0,o.fk)(e),value:i||r,payload:e.props}})),u(u(u({},l.props),r.D.getWithHeight(l,s)),{},{payload:e,item:l})):null}},32391:(t,e,n)=>{"use strict";n.d(e,{z:()=>s});var r=n(84636),o=n.n(r),i=n(61049),a=n.n(i);function s(t,e,n){return!0===e?o()(t,n):a()(e)?o()(t,e):t}},21442:(t,e,n)=>{"use strict";n.d(e,{Yh:()=>s,ry:()=>c,nv:()=>l,Ym:()=>f,bw:()=>p});var r=n(8156),o=n(29259),i=n.n(o);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}var s=["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"],u=["points","pathLength"],c={svg:["viewBox","children"],polygon:u,polyline:u},l=["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"],f=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,r.isValidElement)(t)&&(n=t.props),!i()(n))return null;var o={};return Object.keys(n).forEach((function(t){l.includes(t)&&(o[t]=e||function(e){return n[t](n,e)})})),o},p=function(t,e,n){if(!i()(t)||"object"!==a(t))return null;var r=null;return Object.keys(t).forEach((function(o){var i=t[o];l.includes(o)&&"function"==typeof i&&(r||(r={}),r[o]=function(t,e,n){return function(r){return t(e,n,r),null}}(i,e,n))})),r}},2314:(t,e,n)=>{"use strict";var r=n(75580).compose;e.__esModule=!0,e.composeWithDevTools=function(){if(0!==arguments.length)return"object"==typeof arguments[0]?r:r.apply(null,arguments)},e.devToolsEnhancer=function(){return function(t){return t}}},83273:(t,e,n)=>{"use strict";e.__esModule=!0,e.createDynamicMiddlewares=e.resetMiddlewares=e.removeMiddleware=e.addMiddleware=void 0;var r=n(75580),o=function(){var t=[];return{enhancer:function(e){return function(n){return function(o){var i=t.map((function(t){return t(e)}));return r.compose.apply(void 0,i)(n)(o)}}},addMiddleware:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t=[].concat(t,n)},removeMiddleware:function(e){var n=t.findIndex((function(t){return t===e}));-1!==n?t=t.filter((function(t,e){return e!==n})):console.error("Middleware does not exist!",e)},resetMiddlewares:function(){t=[]}}},i=o();e.default=i.enhancer;var a=i.addMiddleware,s=i.removeMiddleware,u=i.resetMiddlewares;e.addMiddleware=a,e.removeMiddleware=s,e.resetMiddlewares=u,e.createDynamicMiddlewares=o},95174:(t,e,n)=>{"use strict";e.__esModule=!0;var r=n(83273);e.getMiddlewareManager=function(){var t=r.createDynamicMiddlewares();return{getItems:function(){return[]},enhancer:t.enhancer,add:function(e){return t.addMiddleware.apply(t,e),e},remove:function(e){return e.forEach(t.removeMiddleware),e},dispose:function(){t.resetMiddlewares()}}}},12519:function(t,e,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};e.__esModule=!0;var o=n(79329);e.getModuleManager=function(t,e,n){var i,a=null,s=[],u=new Set,c=function(t){if(t){if(!a)throw new Error("setDispatch should be called on ModuleManager before adding any modules.");t.forEach(a)}},l={getReducer:function(t,e){return i?i.reduce(t,e):t||null},setDispatch:function(t){a=t},getItems:function(){return[]},add:function(l){if(l&&0!==l.length){l=l.filter((function(t){return t}));var f=[];l.forEach((function(e){if(!u.has(e.id)){u.add(e.id),s.push(e),function(t){if(t)if(i)for(var e in t)i.add(e,t[e]);else i=o.getRefCountedReducerManager(o.getReducerManager(t,n))}(e.reducerMap);var r=e.middlewares;r&&function(e){e&&t.add(e)}(r),f.push(e)}})),a({type:"@@Internal/ModuleManager/SeedReducers"}),f.forEach((function(t){e.forEach((function(e){e.onModuleAdded&&e.onModuleAdded(t)}));var n={type:"@@Internal/ModuleManager/ModuleAdded",payload:t.id};c(t.initialActions?r([n],t.initialActions):[n])}))}},remove:function(n){n&&(n=n.filter((function(t){return t})).reverse()).forEach((function(n){var r;u.has(n.id)&&(c(n.finalActions),function(t){if(t&&i)for(var e in t)i.remove(e)}(n.reducerMap),(r=n.middlewares)&&t.remove(r),e.forEach((function(t){t.onModuleRemoved&&t.onModuleRemoved(n)})),u.delete(n.id),s=s.filter((function(t){return t.id!==n.id})),c([{type:"@@Internal/ModuleManager/ModuleRemoved",payload:n.id}]))}))},dispose:function(){l.remove(s)}};return l}},79329:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};e.__esModule=!0;var o=n(75580),i=n(24446);function a(t,e){return void 0===e&&(e=o.combineReducers),t&&0!==Object.keys(t).length?e(t):function(t,e){return t||null}}e.getRefCountedReducerManager=function(t){var e=i.getStringRefCounter();for(var n in t.getReducerMap())e.add(n);return{reduce:t.reduce,getReducerMap:t.getReducerMap,add:function(n,r){0===e.getCount(n)&&t.add(n,r),e.add(n)},remove:function(n){e.remove(n),0===e.getCount(n)&&t.remove(n)}}},e.getReducerManager=function(t,e){void 0===e&&(e=o.combineReducers);var n=e(t),i=r({},t),s=[];return{getReducerMap:function(){return i},reduce:function(t,e){if(s.length>0){t=r({},t);for(var o=0,i=s;o<i.length;o++)delete t[i[o]];s=[]}return void 0===t&&(t={}),n(t,e)},add:function(t,r){t&&!i[t]&&(i[t]=r,n=a(i,e))},remove:function(t){t&&i[t]&&(delete i[t],s.push(t),n=a(i,e))}}}},45105:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};e.__esModule=!0;var o=n(24446);e.getRefCountedManager=function(t,e,n){var i=o.getObjectRefCounter(e,n);t.getItems().forEach((function(t){return i.add(t)}));var a=r({},t);return a.add=function(e){if(e){var n=e.filter((function(t){return t})),r=n.filter((function(t){return 0===i.getCount(t)}));t.add(r),n.forEach(i.add)}},a.remove=function(e){e&&e.forEach((function(e){e&&(i.remove(e),0===i.getCount(e)&&t.remove([e]))}))},a.dispose=function(){t.dispose()},a}},88526:function(t,e,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};e.__esModule=!0;var o=n(75580),i=n(2314),a=n(95174),s=n(12519),u=n(45105),c=n(23425);e.createStore=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var l=t.initialState,f=void 0===l?{}:l,p=t.extensions,h=void 0===p?[]:p,d=t.enhancers,g=void 0===d?[]:d,y=t.advancedComposeEnhancers,v=void 0===y?i.composeWithDevTools({}):y,m=t.advancedCombineReducers,b=h.reduce((function(t,e){return e.middleware&&t.push.apply(t,e.middleware),t}),[]),x=u.getRefCountedManager(a.getMiddlewareManager(),(function(t,e){return t===e})),O=v.apply(void 0,r(g,[o.applyMiddleware.apply(void 0,r(b,[x.enhancer]))])),w=u.getRefCountedManager(s.getModuleManager(x,h,m),(function(t,e){return t.id===e.id}),(function(t){return t.retained})),S=o.createStore(w.getReducer,f,O);w.setDispatch(S.dispatch);var M=function(t){var e=c.flatten(t);return w.add(e),{remove:function(){w.remove(e)}}},E=function(t){return M([t])};return h.forEach((function(t){t.onModuleManagerCreated&&t.onModuleManagerCreated({addModule:E,addModules:M})})),S.addModule=E,S.addModules=M,S.dispose=function(){w.dispose(),x.dispose(),h.forEach((function(t){t.dispose&&t.dispose()}))},S.addModules(e),S}},58166:(t,e)=>{"use strict";e.__esModule=!0,e.getMap=function(t){var e=[],n={};return{keys:e,get:function(r){if(r){var o=e.findIndex((function(e){return e&&t(e,r)}));if(-1!==o)return n[o]}},add:function(r,o){r&&-1===e.findIndex((function(e){return e&&t(e,r)}))&&(e.push(r),n[e.length-1]=o)},remove:function(r){if(r){var o=e.findIndex((function(e){return e&&t(e,r)}));if(-1!==o){delete e[o];var i=n[o];return delete n[o],i}}}}}},23425:function(t,e){"use strict";var n=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};e.__esModule=!0,e.flatten=function(t){if(t){for(var e=t.slice(),r=0;r<e.length;)Array.isArray(e[r])?e.splice.apply(e,n([r,1],e[r])):r++;return e}return t}},24446:(t,e)=>{"use strict";e.__esModule=!0,e.getObjectRefCounter=function(t,e){t||(t=function(t,e){return t===e}),e||(e=function(){return!1});var n=[],r=[];return{getCount:function(e){if(null==e)return 0;var o=n.findIndex((function(n){return n&&t(n,e)}));return-1===o?0:r[o]},add:function(o){if(null!=o){var i=n.findIndex((function(e){return e&&t(e,o)})),a=1;-1===i?(i=n.length,n.push(o)):a=r[i]+1,e(o)&&(a=1/0),r[i]=a}},remove:function(o){if(e(o))return!1;var i=n.findIndex((function(e){return e&&t(e,o)}));return-1!==i&&(1===r[i]?(delete n[i],delete r[i],!0):(r[i]=r[i]-1,!1))}}},e.getStringRefCounter=function(){var t={};return{getCount:function(e){return null==e?0:t[e]||0},add:function(e){null!=e&&(t[e]?t[e]++:t[e]=1)},remove:function(e){return null!=e&&!!t[e]&&(1===t[e]?(delete t[e],!0):(t[e]--,!1))}}}},70315:(t,e,n)=>{"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,r(n(88526)),r(n(58166)),r(n(24446)),r(n(95174)),r(n(45105))},78522:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)};e.__esModule=!0;var a=n(8156),s=n(34756),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(){var t=this;return a.createElement(s.ReactReduxContext.Consumer,null,(function(e){return a.createElement(c,i({},t.props,{reactReduxContext:e}))}))},e}(a.Component);e.DynamicModuleLoader=u;var c=function(t){function e(e){var n=t.call(this,e)||this;if(n._providerInitializationNeeded=!1,n._cleanup=function(){n._addedModules&&(n._addedModules.remove(),n._addedModules=void 0)},null==e.reactReduxContext){var r="Tried to render DynamicModuleLoader, but no ReactReduxContext was provided";throw console.error(r),new Error(r)}return n._store=e.reactReduxContext?e.reactReduxContext.store:void 0,n.props.strictMode?n.state={readyToRender:!1}:(n._addModules(),n.state={readyToRender:!0}),n}return o(e,t),e.prototype.render=function(){return this.state.readyToRender?this._providerInitializationNeeded?a.createElement(s.Provider,{store:this._store},a.createElement(u,i({},this.props))):a.createElement(a.Fragment,null,this._renderLoader(),a.createElement(l,{cleanup:this._cleanup})):null},e.prototype._renderLoader=function(){return this.props.children?"function"==typeof this.props.children?this.props.children():this.props.children:null},e.prototype._addModules=function(){var t=this.props,e=t.createStore,n=t.modules;if(this._store)this._addedModules=this._store.addModules(n);else{if(!e)throw new Error("Store could not be resolved from React context");this._store=e(),this._providerInitializationNeeded=!0}},e.prototype.componentDidMount=function(){this.props.strictMode&&(this._addModules(),this.setState({readyToRender:!0}))},e}(a.Component),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(){return null},e.prototype.componentWillUnmount=function(){this.props.cleanup()},e}(a.Component)},66780:(t,e,n)=>{"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,r(n(70315)),r(n(78522))},85383:(t,e,n)=>{"use strict";n.d(e,{ZO:()=>D,$6:()=>k,RE:()=>P,gw:()=>B,rM:()=>A,v_:()=>j,gz:()=>E,Ys:()=>_,qn:()=>M,ib:()=>U,Fm:()=>V,A7:()=>q});var r=function(t){return"@@redux-saga/"+t},o=r("CANCEL_PROMISE"),i=r("IO"),a=r("MULTICAST"),s=r("SELF_CANCELLATION"),u=function(t){return null!=t},c=function(t){return"function"==typeof t},l=function(t){return"string"==typeof t},f=Array.isArray,p=function t(e){return e&&(l(e)||d(e)||c(e)||f(e)&&e.every(t))},h=function(t){return t&&c(t.take)&&c(t.close)},d=function(t){return Boolean(t)&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype};const g=function(t,e){var n;void 0===e&&(e=!0);var r=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,t),e)}));return r[o]=function(){clearTimeout(n)},r};var y=function(t){return t};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var v=function(t){throw t},m=function(t){return{value:t,done:!0}},b="TAKE",x="CALL",O="FORK",w="SELECT",S=function(t,e){var n;return(n={})[i]=!0,n.combinator=!1,n.type=t,n.payload=e,n};function M(t,e){return void 0===t&&(t="*"),p(t)?(u(e)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),S(b,{pattern:t})):h(n=t)&&n[a]&&u(e)&&p(e)?S(b,{channel:t,pattern:e}):h(t)?(u(e)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),S(b,{channel:t})):void 0;var n}function E(t,e){return null==e&&(e=t,t=void 0),S("PUT",{channel:t,action:e})}function k(t){var e=S("ALL",t);return e.combinator=!0,e}function C(t,e){var n,r=null;return c(t)?n=t:(f(t)?(r=t[0],n=t[1]):(r=t.context,n=t.fn),r&&l(n)&&c(r[n])&&(n=r[n])),{context:r,fn:n,args:e}}function P(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return S(x,C(t,n))}function A(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return S(O,C(t,n))}function j(t){return S("JOIN",t)}function T(t){return void 0===t&&(t=s),S("CANCEL",t)}function _(t){void 0===t&&(t=y);for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return S(w,{selector:t,args:n})}function D(t,e){return S("ACTION_CHANNEL",{pattern:t,buffer:e})}var B=P.bind(null,g),I=function(t){return{done:!0,value:t}},L={};function z(t){return h(t)?"channel":c(e=t)&&e.hasOwnProperty("toString")?String(t):c(t)?t.name:String(t);var e}function R(t,e,n){var r,o,i,a=e;function s(e,n){if(a===L)return I(e);if(n&&!o)throw a=L,n;r&&r(e);var s=n?t[o](n):t[a]();return a=s.nextState,i=s.effect,r=s.stateUpdater,o=s.errorState,a===L?I(e):i}return function(t,e,n){void 0===e&&(e=v),void 0===n&&(n="iterator");var r={meta:{name:n},next:t,throw:e,return:m,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}(s,(function(t){return s(null,t)}),n)}function N(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a={done:!1,value:M(t)},s=function(t){return{done:!1,value:A.apply(void 0,[e].concat(r,[t]))}},u=function(t){return i=t};return R({q1:function(){return{nextState:"q2",effect:a,stateUpdater:u}},q2:function(){return{nextState:"q1",effect:s(i)}}},"q1","takeEvery("+z(t)+", "+e.name+")")}function W(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a,s={done:!1,value:M(t)},u=function(t){return{done:!1,value:A.apply(void 0,[e].concat(r,[t]))}},c=function(t){return{done:!1,value:T(t)}},l=function(t){return i=t},f=function(t){return a=t};return R({q1:function(){return{nextState:"q2",effect:s,stateUpdater:f}},q2:function(){return i?{nextState:"q3",effect:c(i)}:{nextState:"q1",effect:u(a),stateUpdater:l}},q3:function(){return{nextState:"q1",effect:u(a),stateUpdater:l}}},"q1","takeLatest("+z(t)+", "+e.name+")")}function F(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a={done:!1,value:M(t)},s=function(t){return{done:!1,value:P.apply(void 0,[e].concat(r,[t]))}},u=function(t){return i=t};return R({q1:function(){return{nextState:"q2",effect:a,stateUpdater:u}},q2:function(){return{nextState:"q1",effect:s(i)}}},"q1","takeLeading("+z(t)+", "+e.name+")")}function U(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return A.apply(void 0,[N,t,e].concat(r))}function V(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return A.apply(void 0,[W,t,e].concat(r))}function q(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return A.apply(void 0,[F,t,e].concat(r))}},97698:(t,e,n)=>{"use strict";n.r(e),n.d(e,{createSelector:()=>u,createSelectorCreator:()=>s,createStructuredSelector:()=>c,defaultEqualityCheck:()=>o,defaultMemoize:()=>i});var r="NOT_FOUND",o=function(t,e){return t===e};function i(t,e){var n,i,a="object"==typeof e?e:{equalityCheck:e},s=a.equalityCheck,u=void 0===s?o:s,c=a.maxSize,l=void 0===c?1:c,f=a.resultEqualityCheck,p=function(t){return function(e,n){if(null===e||null===n||e.length!==n.length)return!1;for(var r=e.length,o=0;o<r;o++)if(!t(e[o],n[o]))return!1;return!0}}(u),h=1===l?(n=p,{get:function(t){return i&&n(i.key,t)?i.value:r},put:function(t,e){i={key:t,value:e}},getEntries:function(){return i?[i]:[]},clear:function(){i=void 0}}):function(t,e){var n=[];function o(t){var o=n.findIndex((function(n){return e(t,n.key)}));if(o>-1){var i=n[o];return o>0&&(n.splice(o,1),n.unshift(i)),i.value}return r}return{get:o,put:function(e,i){o(e)===r&&(n.unshift({key:e,value:i}),n.length>t&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(l,p);function d(){var e=h.get(arguments);if(e===r){if(e=t.apply(null,arguments),f){var n=h.getEntries(),o=n.find((function(t){return f(t.value,e)}));o&&(e=o.value)}h.put(arguments,e)}return e}return d.clearCache=function(){return h.clear()},d}function a(t){var e=Array.isArray(t[0])?t[0]:t;if(!e.every((function(t){return"function"==typeof t}))){var n=e.map((function(t){return"function"==typeof t?"function "+(t.name||"unnamed")+"()":typeof t})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return e}function s(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var i,s=0,u={memoizeOptions:void 0},c=r.pop();if("object"==typeof c&&(u=c,c=r.pop()),"function"!=typeof c)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof c+"]");var l=u,f=l.memoizeOptions,p=void 0===f?n:f,h=Array.isArray(p)?p:[p],d=a(r),g=t.apply(void 0,[function(){return s++,c.apply(null,arguments)}].concat(h)),y=t((function(){for(var t=[],e=d.length,n=0;n<e;n++)t.push(d[n].apply(null,arguments));return i=g.apply(null,t)}));return Object.assign(y,{resultFunc:c,memoizedResultFunc:g,dependencies:d,lastResult:function(){return i},recomputations:function(){return s},resetRecomputations:function(){return s=0}}),y};return o}var u=s(i),c=function(t,e){if(void 0===e&&(e=u),"object"!=typeof t)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof t);var n=Object.keys(t),r=e(n.map((function(e){return t[e]})),(function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.reduce((function(t,e,r){return t[n[r]]=e,t}),{})}));return r}},57785:t=>{"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}},16426:(t,e,n)=>{"use strict";function r(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}n.d(e,{Z:()=>r}),Array.prototype.slice},6677:(t,e,n)=>{"use strict";function r(t){return function(){return t}}n.d(e,{Z:()=>r})},13149:(t,e,n)=>{"use strict";n.d(e,{d:()=>c});const r=Math.PI,o=2*r,i=1e-6,a=o-i;function s(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class u{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?s:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return s;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,o,i){this._append`C${+t},${+e},${+n},${+r},${this._x1=+o},${this._y1=+i}`}arcTo(t,e,n,o,a){if(t=+t,e=+e,n=+n,o=+o,(a=+a)<0)throw new Error(`negative radius: ${a}`);let s=this._x1,u=this._y1,c=n-t,l=o-e,f=s-t,p=u-e,h=f*f+p*p;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(h>i)if(Math.abs(p*c-l*f)>i&&a){let d=n-s,g=o-u,y=c*c+l*l,v=d*d+g*g,m=Math.sqrt(y),b=Math.sqrt(h),x=a*Math.tan((r-Math.acos((y+h-v)/(2*m*b)))/2),O=x/b,w=x/m;Math.abs(O-1)>i&&this._append`L${t+O*f},${e+O*p}`,this._append`A${a},${a},0,0,${+(p*d>f*g)},${this._x1=t+w*c},${this._y1=e+w*l}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,n,s,u,c){if(t=+t,e=+e,c=!!c,(n=+n)<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(s),f=n*Math.sin(s),p=t+l,h=e+f,d=1^c,g=c?s-u:u-s;null===this._x1?this._append`M${p},${h}`:(Math.abs(this._x1-p)>i||Math.abs(this._y1-h)>i)&&this._append`L${p},${h}`,n&&(g<0&&(g=g%o+o),g>a?this._append`A${n},${n},0,1,${d},${t-l},${e-f}A${n},${n},0,1,${d},${this._x1=p},${this._y1=h}`:g>i&&this._append`A${n},${n},0,${+(g>=r)},${d},${this._x1=t+n*Math.cos(u)},${this._y1=e+n*Math.sin(u)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function c(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new u(e)}},76665:(t,e,n)=>{"use strict";function r(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function o(t){return!!t&&!!t[V]}function i(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===q}(t)||Array.isArray(t)||!!t[U]||!!(null===(e=t.constructor)||void 0===e?void 0:e[U])||l(t)||f(t))}function a(t,e,n){void 0===n&&(n=!1),0===s(t)?(n?Object.keys:G)(t).forEach((function(r){n&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(n,r){return e(r,n,t)}))}function s(t){var e=t[V];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:l(t)?2:f(t)?3:0}function u(t,e){return 2===s(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function c(t,e,n){var r=s(t);2===r?t.set(e,n):3===r?t.add(n):t[e]=n}function l(t){return R&&t instanceof Map}function f(t){return N&&t instanceof Set}function p(t){return t.o||t.t}function h(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Z(t);delete e[V];for(var n=G(e),r=0;r<n.length;r++){var o=n[r],i=e[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function d(t,e){return void 0===e&&(e=!1),y(t)||o(t)||!i(t)||(s(t)>1&&(t.set=t.add=t.clear=t.delete=g),Object.freeze(t),e&&a(t,(function(t,e){return d(e,!0)}),!0)),t}function g(){r(2)}function y(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function v(t){var e=H[t];return e||r(18,t),e}function m(){return L}function b(t,e){e&&(v("Patches"),t.u=[],t.s=[],t.v=e)}function x(t){O(t),t.p.forEach(S),t.p=null}function O(t){t===L&&(L=t.l)}function w(t){return L={p:[],l:L,h:t,m:!0,_:0}}function S(t){var e=t[V];0===e.i||1===e.i?e.j():e.g=!0}function M(t,e){e._=e.p.length;var n=e.p[0],o=void 0!==t&&t!==n;return e.h.O||v("ES5").S(e,t,o),o?(n[V].P&&(x(e),r(4)),i(t)&&(t=E(e,t),e.l||C(e,t)),e.u&&v("Patches").M(n[V].t,t,e.u,e.s)):t=E(e,n,[]),x(e),e.u&&e.v(e.u,e.s),t!==F?t:void 0}function E(t,e,n){if(y(e))return e;var r=e[V];if(!r)return a(e,(function(o,i){return k(t,r,e,o,i,n)}),!0),e;if(r.A!==t)return e;if(!r.P)return C(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=h(r.k):r.o,i=o,s=!1;3===r.i&&(i=new Set(o),o.clear(),s=!0),a(i,(function(e,i){return k(t,r,o,e,i,n,s)})),C(t,o,!1),n&&t.u&&v("Patches").N(r,n,t.u,t.s)}return r.o}function k(t,e,n,r,a,s,l){if(o(a)){var f=E(t,a,s&&e&&3!==e.i&&!u(e.R,r)?s.concat(r):void 0);if(c(n,r,f),!o(f))return;t.m=!1}else l&&n.add(a);if(i(a)&&!y(a)){if(!t.h.D&&t._<1)return;E(t,a),e&&e.A.l||C(t,a)}}function C(t,e,n){void 0===n&&(n=!1),!t.l&&t.h.D&&t.m&&d(e,n)}function P(t,e){var n=t[V];return(n?p(n):t)[e]}function A(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function j(t){t.P||(t.P=!0,t.l&&j(t.l))}function T(t){t.o||(t.o=h(t.t))}function _(t,e,n){var r=l(e)?v("MapSet").F(e,n):f(e)?v("MapSet").T(e,n):t.O?function(t,e){var n=Array.isArray(t),r={i:n?1:0,A:e?e.A:m(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=r,i=$;n&&(o=[r],i=Y);var a=Proxy.revocable(o,i),s=a.revoke,u=a.proxy;return r.k=u,r.j=s,u}(e,n):v("ES5").J(e,n);return(n?n.A:m()).p.push(r),r}function D(t){return o(t)||r(22,t),function t(e){if(!i(e))return e;var n,r=e[V],o=s(e);if(r){if(!r.P&&(r.i<4||!v("ES5").K(r)))return r.t;r.I=!0,n=B(e,o),r.I=!1}else n=B(e,o);return a(n,(function(e,o){r&&function(t,e){return 2===s(t)?t.get(e):t[e]}(r.t,e)===o||c(n,e,t(o))})),3===o?new Set(n):n}(t)}function B(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return h(t)}n.d(e,{ZP:()=>J});var I,L,z="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),R="undefined"!=typeof Map,N="undefined"!=typeof Set,W="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,F=z?Symbol.for("immer-nothing"):((I={})["immer-nothing"]=!0,I),U=z?Symbol.for("immer-draftable"):"__$immer_draftable",V=z?Symbol.for("immer-state"):"__$immer_state",q=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),G="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Z=Object.getOwnPropertyDescriptors||function(t){var e={};return G(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e},H={},$={get:function(t,e){if(e===V)return t;var n=p(t);if(!u(n,e))return function(t,e,n){var r,o=A(e,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(t.k):void 0}(t,n,e);var r=n[e];return t.I||!i(r)?r:r===P(t.t,e)?(T(t),t.o[e]=_(t.A.h,r,t)):r},has:function(t,e){return e in p(t)},ownKeys:function(t){return Reflect.ownKeys(p(t))},set:function(t,e,n){var r=A(p(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=P(p(t),e),i=null==o?void 0:o[V];if(i&&i.t===n)return t.o[e]=n,t.R[e]=!1,!0;if(function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}(n,o)&&(void 0!==n||u(t.t,e)))return!0;T(t),j(t)}return t.o[e]===n&&(void 0!==n||e in t.o)||Number.isNaN(n)&&Number.isNaN(t.o[e])||(t.o[e]=n,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==P(t.t,e)||e in t.t?(t.R[e]=!1,T(t),j(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=p(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){r(12)}},Y={};a($,(function(t,e){Y[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Y.deleteProperty=function(t,e){return Y.set.call(this,t,e,void 0)},Y.set=function(t,e,n){return $.set.call(this,t[0],e,n,t[0])};var X=function(){function t(t){var e=this;this.O=W,this.D=!0,this.produce=function(t,n,o){if("function"==typeof t&&"function"!=typeof n){var a=n;n=t;var s=e;return function(t){var e=this;void 0===t&&(t=a);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return s.produce(t,(function(t){var r;return(r=n).call.apply(r,[e,t].concat(o))}))}}var u;if("function"!=typeof n&&r(6),void 0!==o&&"function"!=typeof o&&r(7),i(t)){var c=w(e),l=_(e,t,void 0),f=!0;try{u=n(l),f=!1}finally{f?x(c):O(c)}return"undefined"!=typeof Promise&&u instanceof Promise?u.then((function(t){return b(c,o),M(t,c)}),(function(t){throw x(c),t})):(b(c,o),M(u,c))}if(!t||"object"!=typeof t){if(void 0===(u=n(t))&&(u=t),u===F&&(u=void 0),e.D&&d(u,!0),o){var p=[],h=[];v("Patches").M(t,u,p,h),o(p,h)}return u}r(21,t)},this.produceWithPatches=function(t,n){if("function"==typeof t)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e.produceWithPatches(n,(function(e){return t.apply(void 0,[e].concat(o))}))};var r,o,i=e.produce(t,n,(function(t,e){r=t,o=e}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(t){return[t,r,o]})):[i,r,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){i(t)||r(8),o(t)&&(t=D(t));var e=w(this),n=_(this,t,void 0);return n[V].C=!0,O(e),n},e.finishDraft=function(t,e){var n=(t&&t[V]).A;return b(n,e),M(void 0,n)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!W&&r(20),this.O=t},e.applyPatches=function(t,e){var n;for(n=e.length-1;n>=0;n--){var r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));var i=v("Patches").$;return o(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),K=new X,Q=K.produce;K.produceWithPatches.bind(K),K.setAutoFreeze.bind(K),K.setUseProxies.bind(K),K.applyPatches.bind(K),K.createDraft.bind(K),K.finishDraft.bind(K);const J=Q},75877:(t,e,n)=>{"use strict";function r(t){var e,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=r(t[e]))&&(o&&(o+=" "),o+=n);else for(e in t)t[e]&&(o&&(o+=" "),o+=e);return o}n.d(e,{Z:()=>o});const o=function(){for(var t,e,n=0,o="";n<arguments.length;)(t=arguments[n++])&&(e=r(t))&&(o&&(o+=" "),o+=e);return o}},78520:(t,e,n)=>{"use strict";function r(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),i=new Array(o);++r<o;)i[r]=t+r*n;return i}n.d(e,{Z:()=>a,x:()=>u});var o=n(82669),i=n(29939);function a(){var t,e,n=(0,i.Z)().unknown(void 0),s=n.domain,u=n.range,c=0,l=1,f=!1,p=0,h=0,d=.5;function g(){var n=s().length,o=l<c,i=o?l:c,a=o?c:l;t=(a-i)/Math.max(1,n-p+2*h),f&&(t=Math.floor(t)),i+=(a-i-t*(n-p))*d,e=t*(1-p),f&&(i=Math.round(i),e=Math.round(e));var g=r(n).map((function(e){return i+t*e}));return u(o?g.reverse():g)}return delete n.unknown,n.domain=function(t){return arguments.length?(s(t),g()):s()},n.range=function(t){return arguments.length?([c,l]=t,c=+c,l=+l,g()):[c,l]},n.rangeRound=function(t){return[c,l]=t,c=+c,l=+l,f=!0,g()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(f=!!t,g()):f},n.padding=function(t){return arguments.length?(p=Math.min(1,h=+t),g()):p},n.paddingInner=function(t){return arguments.length?(p=Math.min(1,t),g()):p},n.paddingOuter=function(t){return arguments.length?(h=+t,g()):h},n.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),g()):d},n.copy=function(){return a(s(),[c,l]).round(f).paddingInner(p).paddingOuter(h).align(d)},o.o.apply(g(),arguments)}function s(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return s(e())},t}function u(){return s(a.apply(null,arguments).paddingInner(1))}},82669:(t,e,n)=>{"use strict";function r(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function o(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}n.d(e,{o:()=>r,O:()=>o})},29939:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u,O:()=>s});class r extends Map{constructor(t,e=i){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(o(this,t))}has(t){return super.has(o(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(n),t.delete(r)),n}(this,t))}}function o({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function i(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;var a=n(82669);const s=Symbol("implicit");function u(){var t=new r,e=[],n=[],o=s;function i(r){let i=t.get(r);if(void 0===i){if(o!==s)return o;t.set(r,i=e.push(r)-1)}return n[i%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new r;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(o=t,i):o},i.copy=function(){return u(e,n).unknown(o)},a.o.apply(i,arguments),i}}}]);