commit ab23309dfce12acfd00bdc6c22b2696e78d8b12b Author: dapplion Date: Wed Jul 31 19:51:21 2019 +0200 Updates diff --git a/asset-manifest.json b/asset-manifest.json new file mode 100644 index 0000000..222e774 --- /dev/null +++ b/asset-manifest.json @@ -0,0 +1,15 @@ +{ + "files": { + "main.css": "/augmented-tbc-design/static/css/main.31240ce3.chunk.css", + "main.js": "/augmented-tbc-design/static/js/main.58438057.chunk.js", + "main.js.map": "/augmented-tbc-design/static/js/main.58438057.chunk.js.map", + "runtime~main.js": "/augmented-tbc-design/static/js/runtime~main.1a6ed195.js", + "runtime~main.js.map": "/augmented-tbc-design/static/js/runtime~main.1a6ed195.js.map", + "static/js/2.ab415a41.chunk.js": "/augmented-tbc-design/static/js/2.ab415a41.chunk.js", + "static/js/2.ab415a41.chunk.js.map": "/augmented-tbc-design/static/js/2.ab415a41.chunk.js.map", + "index.html": "/augmented-tbc-design/index.html", + "precache-manifest.23c303303147e64e86ad760375b6c629.js": "/augmented-tbc-design/precache-manifest.23c303303147e64e86ad760375b6c629.js", + "service-worker.js": "/augmented-tbc-design/service-worker.js", + "static/css/main.31240ce3.chunk.css.map": "/augmented-tbc-design/static/css/main.31240ce3.chunk.css.map" + } +} \ No newline at end of file diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..67a6402 Binary files /dev/null and b/favicon.ico differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..85f163d --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +Augmented Bonding Curve Design
\ No newline at end of file diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..f99717a --- /dev/null +++ b/manifest.json @@ -0,0 +1,15 @@ +{ + "short_name": "Your Orders", + "name": "Your Orders", + "icons": [ + { + "src": "favicon.ico", + "sizes": "64x64 32x32 24x24 16x16", + "type": "image/x-icon" + } + ], + "start_url": ".", + "display": "standalone", + "theme_color": "#000000", + "background_color": "#ffffff" +} diff --git a/precache-manifest.23c303303147e64e86ad760375b6c629.js b/precache-manifest.23c303303147e64e86ad760375b6c629.js new file mode 100644 index 0000000..4fbf8a0 --- /dev/null +++ b/precache-manifest.23c303303147e64e86ad760375b6c629.js @@ -0,0 +1,22 @@ +self.__precacheManifest = (self.__precacheManifest || []).concat([ + { + "revision": "7fd4c080d34b55c3b8b040917af1935f", + "url": "/augmented-tbc-design/index.html" + }, + { + "revision": "b625b669a41bc1dd357b", + "url": "/augmented-tbc-design/static/css/main.31240ce3.chunk.css" + }, + { + "revision": "2f9c9320df13e4e5c22b", + "url": "/augmented-tbc-design/static/js/2.ab415a41.chunk.js" + }, + { + "revision": "b625b669a41bc1dd357b", + "url": "/augmented-tbc-design/static/js/main.58438057.chunk.js" + }, + { + "revision": "707b94664485cbbcc81b", + "url": "/augmented-tbc-design/static/js/runtime~main.1a6ed195.js" + } +]); \ No newline at end of file diff --git a/service-worker.js b/service-worker.js new file mode 100644 index 0000000..4b1bf49 --- /dev/null +++ b/service-worker.js @@ -0,0 +1,39 @@ +/** + * Welcome to your Workbox-powered service worker! + * + * You'll need to register this file in your web app and you should + * disable HTTP caching for this file too. + * See https://goo.gl/nhQhGp + * + * The rest of the code is auto-generated. Please don't update this file + * directly; instead, make changes to your Workbox build configuration + * and re-run your build process. + * See https://goo.gl/2aRDsh + */ + +importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"); + +importScripts( + "/augmented-tbc-design/precache-manifest.23c303303147e64e86ad760375b6c629.js" +); + +self.addEventListener('message', (event) => { + if (event.data && event.data.type === 'SKIP_WAITING') { + self.skipWaiting(); + } +}); + +workbox.core.clientsClaim(); + +/** + * The workboxSW.precacheAndRoute() method efficiently caches and responds to + * requests for URLs in the manifest. + * See https://goo.gl/S9QRab + */ +self.__precacheManifest = [].concat(self.__precacheManifest || []); +workbox.precaching.precacheAndRoute(self.__precacheManifest, {}); + +workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/augmented-tbc-design/index.html"), { + + blacklist: [/^\/_/,/\/[^\/]+\.[^\/]+$/], +}); diff --git a/static/css/main.31240ce3.chunk.css b/static/css/main.31240ce3.chunk.css new file mode 100644 index 0000000..d78a659 --- /dev/null +++ b/static/css/main.31240ce3.chunk.css @@ -0,0 +1,2 @@ +#root{background-color:#f5f7f8;min-height:100vh} +/*# sourceMappingURL=main.31240ce3.chunk.css.map */ \ No newline at end of file diff --git a/static/css/main.31240ce3.chunk.css.map b/static/css/main.31240ce3.chunk.css.map new file mode 100644 index 0000000..7b33bf3 --- /dev/null +++ b/static/css/main.31240ce3.chunk.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["app.css"],"names":[],"mappings":"AAAA,MACE,wBAAyB,CACzB,gBACF","file":"main.31240ce3.chunk.css","sourcesContent":["#root {\n background-color: #f5f7f8;\n min-height: 100vh;\n}\n"]} \ No newline at end of file diff --git a/static/js/2.ab415a41.chunk.js b/static/js/2.ab415a41.chunk.js new file mode 100644 index 0000000..e71c88e --- /dev/null +++ b/static/js/2.ab415a41.chunk.js @@ -0,0 +1,2 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(e,t,n){e.exports=n(212)()},function(e,t,n){"use strict";e.exports=n(207)},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";function r(e){var t,n,o="";if(e)if("object"===typeof e)if(e.push)for(t=0;t0?1:-1},N=function(e){return w()(e)&&e.indexOf("%")===e.length-1},I=function(e){return C()(e)&&!M()(e)},R=function(e){return I(e)||w()(e)},D=0,L=function(e){var t=++D;return"".concat(e||"").concat(t)},z=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!I(e)&&!w()(e))return r;if(N(e)){var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return M()(n)&&(n=r),o&&n>t&&(n=t),n},F=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},U=function(e,t){return I(e)&&I(t)?function(n){return e+n*(t-e)}:function(){return t}},B=function(e,t,n){return e&&e.length?e.find(function(e){return e&&T()(e,t)===n}):null};function W(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var H={"aria-current":p.a.string,"aria-details":p.a.any,"aria-disabled":p.a.any,"aria-hidden":p.a.any,"aria-invalid":p.a.any,"aria-keyshortcuts":p.a.any,"aria-label":p.a.any,"aria-roledescription":p.a.any,"aria-autocomplete":p.a.any,"aria-checked":p.a.any,"aria-expanded":p.a.any,"aria-haspopup":p.a.any,"aria-level":p.a.any,"aria-modal":p.a.any,"aria-multiline":p.a.any,"aria-multiselectable":p.a.any,"aria-orientation":p.a.any,"aria-placeholder":p.a.any,"aria-pressed":p.a.any,"aria-readonly":p.a.any,"aria-required":p.a.any,"aria-selected":p.a.any,"aria-sort":p.a.any,"aria-valuemax":p.a.any,"aria-valuemin":p.a.any,"aria-valuenow":p.a.any,"aria-valuetext":p.a.any,"aria-atomic":p.a.any,"aria-busy":p.a.any,"aria-live":p.a.any,"aria-relevant":p.a.any,"aria-dropeffect":p.a.any,"aria-grabbed":p.a.any,"aria-activedescendant":p.a.any,"aria-colcount":p.a.any,"aria-colindex":p.a.any,"aria-colspan":p.a.any,"aria-controls":p.a.any,"aria-describedby":p.a.any,"aria-errormessage":p.a.any,"aria-flowto":p.a.any,"aria-labelledby":p.a.any,"aria-owns":p.a.any,"aria-posinset":p.a.any,"aria-rowcount":p.a.any,"aria-rowindex":p.a.any,"aria-rowspan":p.a.any,"aria-setsize":p.a.any,alignmentBaseline:p.a.string,angle:p.a.number,baselineShift:p.a.string,clip:p.a.string,clipPath:p.a.string,clipRule:p.a.string,color:p.a.string,colorInterpolation:p.a.string,colorInterpolationFilters:p.a.string,colorProfile:p.a.string,colorRendering:p.a.string,cursor:p.a.string,direction:p.a.oneOf(["ltr","rtl","inherit"]),display:p.a.string,dominantBaseline:p.a.string,enableBackground:p.a.string,fill:p.a.string,fillOpacity:p.a.oneOfType([p.a.string,p.a.number]),fillRule:p.a.oneOf(["nonzero","evenodd","inherit"]),filter:p.a.string,floodColor:p.a.string,floodOpacity:p.a.oneOfType([p.a.string,p.a.number]),font:p.a.string,fontFamily:p.a.string,fontSize:p.a.oneOfType([p.a.number,p.a.string]),fontSizeAdjust:p.a.oneOfType([p.a.number,p.a.string]),fontStretch:p.a.oneOf(["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]),fontStyle:p.a.oneOf(["normal","italic","oblique","inherit"]),fontVariant:p.a.oneOf(["normal","small-caps","inherit"]),fontWeight:p.a.oneOf(["normal","bold","bolder","lighter",100,200,300,400,500,600,700,800,900,"inherit"]),glyphOrientationHorizontal:p.a.string,glyphOrientationVertical:p.a.string,imageRendering:p.a.oneOf(["auto","optimizeSpeed","optimizeQuality","inherit"]),kerning:p.a.oneOfType([p.a.number,p.a.string]),letterSpacing:p.a.oneOfType([p.a.number,p.a.string]),lightingColor:p.a.string,lineHeight:p.a.oneOfType([p.a.number,p.a.string]),markerEnd:p.a.string,markerMid:p.a.string,markerStart:p.a.string,mask:p.a.string,opacity:p.a.oneOfType([p.a.number,p.a.string]),overflow:p.a.oneOf(["visible","hidden","scroll","auto","inherit"]),pointerEvents:p.a.oneOf(["visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","none","inherit"]),shapeRendering:p.a.oneOf(["auto","optimizeSpeed","crispEdges","geometricPrecision","inherit"]),stopColor:p.a.string,stopOpacity:p.a.oneOfType([p.a.number,p.a.string]),stroke:p.a.oneOfType([p.a.number,p.a.string]),strokeDasharray:p.a.string,strokeDashoffset:p.a.oneOfType([p.a.number,p.a.string]),strokeLinecap:p.a.oneOf(["butt","round","square","inherit"]),strokeLinejoin:p.a.oneOf(["miter","round","bevel","inherit"]),strokeMiterlimit:p.a.oneOfType([p.a.number,p.a.string]),strokeOpacity:p.a.oneOfType([p.a.number,p.a.string]),strokeWidth:p.a.oneOfType([p.a.number,p.a.string]),textAnchor:p.a.oneOf(["start","middle","end","inherit"]),textDecoration:p.a.oneOf(["none","underline","overline","line-through","blink","inherit"]),textRendering:p.a.oneOf(["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]),unicodeBidi:p.a.oneOf(["normal","embed","bidi-override","inherit"]),visibility:p.a.oneOf(["visible","hidden","collapse","inherit"]),wordSpacing:p.a.oneOfType([p.a.number,p.a.string]),writingMode:p.a.oneOf(["lr-tb","rl-tb","tb-rl","lr","rl","tb","inherit"]),transform:p.a.string,role:p.a.string,focusable:p.a.string,tabIndex:p.a.string,style:p.a.object,width:p.a.number,height:p.a.number,dx:p.a.number,dy:p.a.number,x:p.a.number,y:p.a.number,r:p.a.number,radius:p.a.oneOfType([p.a.number,p.a.array])},G={onClick:p.a.func,onMouseDown:p.a.func,onMouseUp:p.a.func,onMouseOver:p.a.func,onMouseMove:p.a.func,onMouseOut:p.a.func,onMouseEnter:p.a.func,onMouseLeave:p.a.func,onTouchEnd:p.a.func,onTouchMove:p.a.func,onTouchStart:p.a.func,onTouchCancel:p.a.func},q={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},$=["plainline","line","square","rect","circle","cross","diamond","star","triangle","wye","none"],X=["none"],Y=function(e){return"string"===typeof e?e:e?e.displayName||e.name||"Component":""},K=function(e,t){var n=[],r=[];return r=S()(t)?t.map(function(e){return Y(e)}):[Y(t)],s.a.Children.forEach(e,function(e){var t=e&&e.type&&(e.type.displayName||e.type.name);-1!==r.indexOf(t)&&n.push(e)}),n},Q=function(e,t){var n=K(e,t);return n&&n[0]},Z=function(e){if(!e||a()(e))return null;var t=s.a.isValidElement(e)?e.props:e;if(!_()(t))return null;var n=null;for(var r in t)({}).hasOwnProperty.call(t,r)&&H[r]&&(n||(n={}),n[r]=t[r]);return n},J=function(e,t){return function(n){return e(t,n),null}},ee=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||a()(e))return null;var r=s.a.isValidElement(e)?e.props:e;if(!_()(r))return null;var o=null;for(var i in r)({}).hasOwnProperty.call(r,i)&&G[i]&&(o||(o={}),o[i]=t||(n?J(r[i],r):r[i]));return o},te=function(e,t,n){return function(r){return e(t,n,r),null}},ne=function(e,t,n){if(!_()(e))return null;var r=null;for(var o in e)({}).hasOwnProperty.call(e,o)&&G[o]&&a()(e[o])&&(r||(r={}),r[o]=te(e[o],t,n));return r},re=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!I(n)||n<=0||!I(r)||r<=0)},oe=function(){return!("undefined"!==typeof window&&window.document&&window.document.createElement&&window.setTimeout)},ie=["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"],ae=function(e,t){if(b()(e)&&b()(t))return!0;if(!b()(e)&&!b()(t)){var n=e.props||{},r=n.children,o=V(n,["children"]),i=t.props||{},a=i.children,u=V(i,["children"]);return r&&a?h(o,u)&&ue(r,a):!r&&!a&&h(o,u)}return!1},ue=function e(t,n){if(t===n)return!0;if(l.Children.count(t)!==l.Children.count(n))return!1;var r=l.Children.count(t);if(0===r)return!0;if(1===r)return ae(S()(t)?t[0]:t,S()(n)?n[0]:n);for(var o=0;o=0}(e))n.push(e);else if(e&&t[Y(e.type)]){var i=Y(e.type),a=t[i],u=a.handler,c=a.once;if(c&&!r[i]||!c){var l=u(e,i,o);S()(l)?n=[n].concat(W(l)):n.push(l),r[i]=!0}}}),n},le=function(e){var t=e&&e.type;return t&&q[t]?q[t]:null},se=function(e,t){var n=-1;return l.Children.forEach(t,function(t,r){t===e&&(n=r)}),n};function fe(){return(fe=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var he={width:p.a.number.isRequired,height:p.a.number.isRequired,viewBox:p.a.shape({x:p.a.number,y:p.a.number,width:p.a.number,height:p.a.number}),className:p.a.string,style:p.a.object,children:p.a.oneOfType([p.a.arrayOf(p.a.node),p.a.node])};function de(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,i=e.className,a=e.style,u=pe(e,["children","width","height","viewBox","className","style"]),c=o||{width:n,height:r,x:0,y:0},l=m()("recharts-surface",i),f=Z(u);return s.a.createElement("svg",fe({},f,{className:l,width:n,height:r,style:a,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height),version:"1.1"}),t)}de.propTypes=he;var ye=de,ve=Math.PI,me=2*ve,ge=me-1e-6;function be(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function xe(){return new be}be.prototype=xe.prototype={constructor:be,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,u=n-e,c=r-t,l=i-e,s=a-t,f=l*l+s*s;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>1e-6)if(Math.abs(s*u-c*l)>1e-6&&o){var p=n-i,h=r-a,d=u*u+c*c,y=p*p+h*h,v=Math.sqrt(d),m=Math.sqrt(f),g=o*Math.tan((ve-Math.acos((d+f-y)/(2*v*m)))/2),b=g/m,x=g/v;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*l)+","+(t+b*s)),this._+="A"+o+","+o+",0,0,"+ +(s*p>l*h)+","+(this._x1=e+x*u)+","+(this._y1=t+x*c)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,o,i){e=+e,t=+t;var a=(n=+n)*Math.cos(r),u=n*Math.sin(r),c=e+a,l=t+u,s=1^i,f=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-l)>1e-6)&&(this._+="L"+c+","+l),n&&(f<0&&(f=f%me+me),f>ge?this._+="A"+n+","+n+",0,1,"+s+","+(e-a)+","+(t-u)+"A"+n+","+n+",0,1,"+s+","+(this._x1=c)+","+(this._y1=l):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=ve)+","+s+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var we=xe,Oe=function(e){return function(){return e}},_e=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,1e-12),ke=Math.PI,Se=2*ke;function Ee(e){this._context=e}Ee.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var Te=function(e){return new Ee(e)};function je(e){return e[0]}function Me(e){return e[1]}var Pe=function(){var e=je,t=Me,n=Oe(!0),r=null,o=Te,i=null;function a(a){var u,c,l,s=a.length,f=!1;for(null==r&&(i=o(l=we())),u=0;u<=s;++u)!(u=s;--f)u.point(v[f],m[f]);u.lineEnd(),u.areaEnd()}y&&(v[l]=+e(p,l,c),m[l]=+n(p,l,c),u.point(t?+t(p,l,c):v[l],r?+r(p,l,c):m[l]))}if(h)return u=null,h+""||null}function l(){return Pe().defined(o).curve(a).context(i)}return c.x=function(n){return arguments.length?(e="function"===typeof n?n:Oe(+n),t=null,c):e},c.x0=function(t){return arguments.length?(e="function"===typeof t?t:Oe(+t),c):e},c.x1=function(e){return arguments.length?(t=null==e?null:"function"===typeof e?e:Oe(+e),c):t},c.y=function(e){return arguments.length?(n="function"===typeof e?e:Oe(+e),r=null,c):n},c.y0=function(e){return arguments.length?(n="function"===typeof e?e:Oe(+e),c):n},c.y1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:Oe(+e),c):r},c.lineX0=c.lineY0=function(){return l().x(e).y(n)},c.lineY1=function(){return l().x(e).y(r)},c.lineX1=function(){return l().x(t).y(n)},c.defined=function(e){return arguments.length?(o="function"===typeof e?e:Oe(!!e),c):o},c.curve=function(e){return arguments.length?(a=e,null!=i&&(u=a(i)),c):a},c.context=function(e){return arguments.length?(null==e?i=u=null:u=a(i=e),c):i},c};Ne(Te);function Ae(e){this._curve=e}function Ne(e){function t(t){return new Ae(e(t))}return t._curve=e,t}Ae.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var Ie=Array.prototype.slice;var Re={draw:function(e,t){var n=Math.sqrt(t/ke);e.moveTo(n,0),e.arc(0,0,n,0,Se)}},De={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Le=Math.sqrt(1/3),ze=2*Le,Fe={draw:function(e,t){var n=Math.sqrt(t/ze),r=n*Le;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Ue=Math.sin(ke/10)/Math.sin(7*ke/10),Be=Math.sin(Se/10)*Ue,We=-Math.cos(Se/10)*Ue,Ve={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=Be*n,o=We*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=Se*i/5,u=Math.cos(a),c=Math.sin(a);e.lineTo(c*n,-u*n),e.lineTo(u*r-c*o,c*r+u*o)}e.closePath()}},He={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},Ge=Math.sqrt(3),qe={draw:function(e,t){var n=-Math.sqrt(t/(3*Ge));e.moveTo(0,2*n),e.lineTo(-Ge*n,-n),e.lineTo(Ge*n,-n),e.closePath()}},$e=Math.sqrt(3)/2,Xe=1/Math.sqrt(12),Ye=3*(Xe/2+1),Ke={draw:function(e,t){var n=Math.sqrt(t/Ye),r=n/2,o=n*Xe,i=r,a=n*Xe+n,u=-i,c=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(u,c),e.lineTo(-.5*r-$e*o,$e*r+-.5*o),e.lineTo(-.5*i-$e*a,$e*i+-.5*a),e.lineTo(-.5*u-$e*c,$e*u+-.5*c),e.lineTo(-.5*r+$e*o,-.5*o-$e*r),e.lineTo(-.5*i+$e*a,-.5*a-$e*i),e.lineTo(-.5*u+$e*c,-.5*c-$e*u),e.closePath()}},Qe=function(){};function Ze(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Je(e){this._context=e}Je.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:Ze(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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ze(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function et(e){this._context=e}et.prototype={areaStart:Qe,areaEnd:Qe,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ze(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function tt(e){this._context=e}tt.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ze(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function nt(e,t){this._basis=new Je(e),this._beta=t}nt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,o=e[0],i=t[0],a=e[n]-o,u=t[n]-i,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*e[c]+(1-this._beta)*(o+r*a),this._beta*t[c]+(1-this._beta)*(i+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};(function e(t){function n(e){return 1===t?new Je(e):new nt(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function rt(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function ot(e,t){this._context=e,this._k=(1-t)/6}ot.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:rt(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:rt(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new ot(e,t)}return n.tension=function(t){return e(+t)},n})(0);function it(e,t){this._context=e,this._k=(1-t)/6}it.prototype={areaStart:Qe,areaEnd:Qe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:rt(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new it(e,t)}return n.tension=function(t){return e(+t)},n})(0);function at(e,t){this._context=e,this._k=(1-t)/6}at.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:rt(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new at(e,t)}return n.tension=function(t){return e(+t)},n})(0);function ut(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>_e){var u=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*u-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,o=(o*u-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>_e){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,s=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*l+e._x1*e._l23_2a-t*e._l12_2a)/s,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/s}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function ct(e,t){this._context=e,this._alpha=t}ct.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:ut(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new ct(e,t):new ot(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function lt(e,t){this._context=e,this._alpha=t}lt.prototype={areaStart:Qe,areaEnd:Qe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ut(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new lt(e,t):new it(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function st(e,t){this._context=e,this._alpha=t}st.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ut(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new st(e,t):new at(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ft(e){this._context=e}ft.prototype={areaStart:Qe,areaEnd:Qe,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function pt(e){return e<0?-1:1}function ht(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),u=(i*o+a*r)/(r+o);return(pt(i)+pt(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(u))||0}function dt(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function yt(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,u=(i-r)/3;e._context.bezierCurveTo(r+u,o+u*t,i-u,a-u*n,i,a)}function vt(e){this._context=e}function mt(e){this._context=new gt(e)}function gt(e){this._context=e}function bt(e){this._context=e}function xt(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var Ot=function(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],u=a.length;i=0;)n[t]=t;return n};function kt(e,t){return e[t]}var St,Et,Tt;function jt(e){return(jt="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pt(){return(Pt=Object.assign||function(e){for(var t=1;t=0&&n>=0?{width:t,height:n}:null}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,u=r.margin,c=r.chartWidth,l=r.chartHeight;e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((c||0)-(this.getBBox()||{width:0}).width)/2}:"right"===i?{right:u&&u.right||0}:{left:u&&u.left||0});e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((l||0)-(this.getBBox()||{height:0}).height)/2}:"bottom"===a?{bottom:u&&u.bottom||0}:{top:u&&u.top||0});return en({},t,n)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-t)>1||Math.abs(o.height-n)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},function(){r&&r(o)})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},function(){r&&r(null)})}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,o=t.height,i=t.wrapperStyle,u=t.paylodUniqBy,c=t.payload,l=en({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(i),i);return s.a.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(t){e.wrapperNode=t}},function(e,t){return s.a.isValidElement(e)?s.a.cloneElement(e,t):a()(e)?e(t):s.a.createElement(Zt,t)}(n,en({},this.props,{payload:cn(u,c)})))}}])&&nn(n.prototype,r),o&&nn(n,o),t}(),Yt.displayName="Legend",Yt.propTypes={content:p.a.oneOfType([p.a.element,p.a.func]),wrapperStyle:p.a.object,chartWidth:p.a.number,chartHeight:p.a.number,width:p.a.number,height:p.a.number,iconSize:p.a.number,iconType:p.a.oneOf(ln),layout:p.a.oneOf(["horizontal","vertical"]),align:p.a.oneOf(["center","left","right"]),verticalAlign:p.a.oneOf(["top","bottom","middle"]),margin:p.a.shape({top:p.a.number,left:p.a.number,bottom:p.a.number,right:p.a.number}),payload:p.a.arrayOf(p.a.shape({value:p.a.any,id:p.a.any,type:p.a.oneOf($)})),paylodUniqBy:p.a.oneOfType([p.a.func,p.a.bool]),formatter:p.a.func,onMouseEnter:p.a.func,onMouseLeave:p.a.func,onClick:p.a.func,onBBoxUpdate:p.a.func},Yt.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"},Xt=Kt))||Xt,fn=n(24),pn=n.n(fn),hn=n(36),dn=n.n(hn);function yn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;dn()(function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):dn()(r)})}function vn(e){return(vn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mn(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function gn(){var e=function(){return null},t=!1;return{stop:function(){t=!0},start:function(n){t=!1,function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=mn(r),i=o[0],a=o.slice(1);return"number"===typeof i?void yn(n.bind(null,a),i):(n(i),void yn(n.bind(null,a)))}"object"===vn(r)&&e(r),"function"===typeof r&&r()}}(n)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}var bn=n(109),xn=n.n(bn);function wn(e){return(wn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function On(e,t){if(e===t)return!0;if("object"!==wn(e)||null===e||"object"!==wn(t)||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=hasOwnProperty.bind(t),i=0;i=0&&e<=1});var u,c,l=Fn(r,i),s=Fn(o,a),f=(u=r,c=i,function(e){var t=Dn(Ln(u,c).map(function(e,t){return e*t}).slice(1)).concat([0]);return zn(t,e)}),p=function(e){for(var t,n=e>1?1:e,r=n,o=0;o<8;++o){var i=l(r)-n,a=f(r);if(Math.abs(i-n)<1e-4||a<1e-4)return s(r);r=(t=r-i/a)>1?1:t<0?0:t}return s(r)};return p.isStepper=!1,p},Bn=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,u=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,u=r*a/1e3+e;return Math.abs(u-t)<1e-4&&Math.abs(i)<1e-4?[t,0]:[u,i]};return u.isStepper=!0,u.dt=a,u}()}return"function"===typeof r?r:null},Wn=n(164),Vn=n.n(Wn);function Hn(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function nr(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0?n[o-1]:r,p=l||Object.keys(c);if("function"===typeof u||"spring"===u)return nr(e).concat([t.runJSAnimation.bind(t,{from:f.style,to:c,duration:i,easing:u}),i]);var h=Rn(p,i,u),d=rr({},f.style,c,{transition:h});return nr(e).concat([d,i,s]).filter(An)},[a,Math.max(c,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=gn());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,u=e.onAnimationEnd,c=e.steps,l=e.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!==typeof i&&"function"!==typeof l&&"spring"!==i)if(c.length>1)this.runStepAnimation(e);else{var f=r?or({},r,o):o,p=Rn(Object.keys(f),n,i);s.start([a,t,rr({},f,{transition:p}),n,u])}else this.runJSAnimation(e)}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration,e.attributeName,e.easing,e.isActive),r=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,tr(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),o=l.Children.count(t),i=In(this.state.style);if("function"===typeof t)return t(i);if(!n||0===o)return t;var a=function(e){var t=e.props,n=t.style,o=void 0===n?{}:n,a=t.className;return Object(l.cloneElement)(e,rr({},r,{style:rr({},o,i),className:a}))};return 1===o?a(l.Children.only(t)):s.a.createElement("div",null,l.Children.map(t,function(e){return a(e)}))}}])&&ir(n.prototype,r),o&&ir(n,o),t}(),Yn.displayName="Animate",Yn.propTypes={from:p.a.oneOfType([p.a.object,p.a.string]),to:p.a.oneOfType([p.a.object,p.a.string]),attributeName:p.a.string,duration:p.a.number,begin:p.a.number,easing:p.a.oneOfType([p.a.string,p.a.func]),steps:p.a.arrayOf(p.a.shape({duration:p.a.number.isRequired,style:p.a.object.isRequired,easing:p.a.oneOfType([p.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),p.a.func]),properties:p.a.arrayOf("string"),onAnimationEnd:p.a.func})),children:p.a.oneOfType([p.a.node,p.a.func]),isActive:p.a.bool,canBegin:p.a.bool,onAnimationEnd:p.a.func,shouldReAnimate:p.a.bool,onAnimationStart:p.a.func,onAnimationReStart:p.a.func},Yn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},Xn=Kn))||Xn,fr=n(81);function pr(e){return(pr="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hr(){return(hr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function yr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vr(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce(function(e,t){return e+(C()(t.duration)&&t.duration>0?t.duration:0)},0):C()(n)?n:0},wr=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e,t,n,r=this,o=this.props,i=o.payload,u=o.isAnimationActive,l=o.animationDuration,f=o.animationEasing,p=o.filterNull,h=function(e,t){return!0===e?c()(t,Qr):a()(e)?c()(t,e):t}(o.paylodUniqBy,p&&i&&i.length?i.filter(function(e){return!b()(e.value)}):i),d=h&&h.length,y=this.props,v=y.content,g=y.viewBox,x=y.coordinate,w=y.position,O=y.active,_=y.offset,k=Hr({pointerEvents:"none",visibility:O&&d?"visible":"hidden",position:"absolute",top:0},y.wrapperStyle);if(w&&I(w.x)&&I(w.y))t=w.x,n=w.y;else{var S=this.state,E=S.boxWidth,T=S.boxHeight;E>0&&T>0&&x?(t=w&&I(w.x)?w.x:Math.max(x.x+E+_>g.x+g.width?x.x-E-_:x.x+_,g.x),n=w&&I(w.y)?w.y:Math.max(x.y+T+_>g.y+g.height?x.y-T-_:x.y+_,g.y)):k.visibility="hidden"}k=Hr({},k,In({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})),u&&O&&(k=Hr({},k,In({transition:"transform ".concat(l,"ms ").concat(f)})));var j=m()(Kr,(Gr(e={},"".concat(Kr,"-right"),I(t)&&x&&I(x.x)&&t>=x.x),Gr(e,"".concat(Kr,"-left"),I(t)&&x&&I(x.x)&&t=x.y),Gr(e,"".concat(Kr,"-top"),I(n)&&x&&I(x.y)&&n0?no()(n.updateDimensionsImmediate,e.debounce):n.updateDimensionsImmediate,n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lo(e,t)}(t,l["Component"]),n=t,(r=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.getContainerSize();e&&this.setState(e)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"getContainerSize",value:function(){return this.container?{containerWidth:this.container.clientWidth,containerHeight:this.container.clientHeight}:null}},{key:"renderChart",value:function(){var e=this.state,t=e.containerWidth,n=e.containerHeight;if(t<0||n<0)return null;var r=this.props,o=r.aspect,i=r.width,a=r.height,u=(r.minWidth,r.minHeight,r.maxHeight),c=r.children;N(i)||N(a);var l=N(i)?t:i,f=N(a)?n:a;return o&&o>0&&(l?f=l/o:f&&(l=f*o),u&&f>u&&(f=u)),s.a.cloneElement(c,{width:l,height:f})}},{key:"render",value:function(){var e=this,t=this.props,n=t.minWidth,r=t.minHeight,o=t.width,i=t.height,a=t.maxHeight,u=t.id,c=t.className,l={width:o,height:i,minWidth:n,minHeight:r,maxHeight:a};return s.a.createElement("div",{id:u,className:m()("recharts-responsive-container",c),style:l,ref:function(t){e.container=t}},this.renderChart(),s.a.createElement(oo.a,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize}))}}])&&ao(n.prototype,r),o&&ao(n,o),t}();so.displayName="ResponsiveContainer",so.propTypes={aspect:p.a.number,width:p.a.oneOfType([p.a.string,p.a.number]),height:p.a.oneOfType([p.a.string,p.a.number]),minHeight:p.a.oneOfType([p.a.string,p.a.number]),minWidth:p.a.oneOfType([p.a.string,p.a.number]),maxHeight:p.a.oneOfType([p.a.string,p.a.number]),children:p.a.node.isRequired,debounce:p.a.number,id:p.a.oneOfType([p.a.string,p.a.number]),className:p.a.oneOfType([p.a.string,p.a.number])},so.defaultProps={width:"100%",height:"100%",debounce:0};var fo=so,po=n(166),ho=n.n(po);function yo(){return(yo=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var mo={className:p.a.string,children:p.a.oneOfType([p.a.arrayOf(p.a.node),p.a.node])};function go(e){var t=e.children,n=e.className,r=vo(e,["children","className"]),o=m()("recharts-layer",n);return s.a.createElement("g",yo({className:o},r),t)}go.propTypes=mo;var bo=go,xo=n(84),wo=n.n(xo);function Oo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i},"")},jo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||oe())return{width:0,height:0};var n="".concat(e),r=To(t),o="".concat(n,"-").concat(r);if(ko.widthCache[o])return ko.widthCache[o];try{var i=document.getElementById("recharts_measurement_span");i||((i=document.createElement("span")).setAttribute("id","recharts_measurement_span"),document.body.appendChild(i));var a=function(e){for(var t=1;t2e3&&(ko.cacheCount=0,ko.widthCache={}),c}catch(l){return{width:0,height:0}}};function Mo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Po(e){return(Po="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Co(){return(Co=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function No(e,t){for(var n=0;nt?1:e>=t?0:NaN},Xo=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return $o(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)>0?o=i:r=i+1}return r}}};var Yo=Xo($o),Ko=Yo.right,Qo=(Yo.left,Ko);var Zo=function(e){return null===e?NaN:+e},Jo=Array.prototype,ei=(Jo.slice,Jo.map,function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r0)return[e];if((r=t0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++u=0?(i>=ti?10:i>=ni?5:i>=ri?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=ti?10:i>=ni?5:i>=ri?2:1)}function ai(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=ti?o*=10:i>=ni?o*=5:i>=ri&&(o*=2),t=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}};function ci(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function li(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e)}return this}function si(){}function fi(e,t){var n=new si;if(e instanceof si)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Pi.exec(e))?Fi(parseInt(t[1],16)):(t=Ci.exec(e))?new Vi(t[1],t[2],t[3],1):(t=Ai.exec(e))?new Vi(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ni.exec(e))?Ui(t[1],t[2],t[3],t[4]):(t=Ii.exec(e))?Ui(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ri.exec(e))?Gi(t[1],t[2]/100,t[3]/100,1):(t=Di.exec(e))?Gi(t[1],t[2]/100,t[3]/100,t[4]):Li.hasOwnProperty(e)?Fi(Li[e]):"transparent"===e?new Vi(NaN,NaN,NaN,0):null}function Fi(e){return new Vi(e>>16&255,e>>8&255,255&e,1)}function Ui(e,t,n,r){return r<=0&&(e=t=n=NaN),new Vi(e,t,n,r)}function Bi(e){return e instanceof Si||(e=zi(e)),e?new Vi((e=e.rgb()).r,e.g,e.b,e.opacity):new Vi}function Wi(e,t,n,r){return 1===arguments.length?Bi(e):new Vi(e,t,n,null==r?1:r)}function Vi(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Hi(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Gi(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new $i(e,t,n,r)}function qi(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof $i)return new $i(e.h,e.s,e.l,e.opacity);if(e instanceof Si||(e=zi(e)),!e)return new $i;if(e instanceof $i)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,u=i-o,c=(i+o)/2;return u?(a=t===i?(n-r)/u+6*(n0&&c<1?0:a,new $i(a,u,c,e.opacity)}(e):new $i(e,t,n,null==r?1:r)}function $i(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Xi(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}_i(Si,zi,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),_i(Vi,Wi,ki(Si,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Vi(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Vi(this.r*e,this.g*e,this.b*e,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:function(){return"#"+Hi(this.r)+Hi(this.g)+Hi(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"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===e?")":", "+e+")")}})),_i($i,qi,ki(Si,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new $i(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new $i(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Vi(Xi(e>=240?e-240:e+120,o,r),Xi(e,o,r),Xi(e<120?e+240:e-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}}));var Yi=Math.PI/180,Ki=180/Math.PI,Qi=.96422,Zi=1,Ji=.82521,ea=4/29,ta=6/29,na=3*ta*ta,ra=ta*ta*ta;function oa(e){if(e instanceof aa)return new aa(e.l,e.a,e.b,e.opacity);if(e instanceof ha)return da(e);e instanceof Vi||(e=Bi(e));var t,n,r=sa(e.r),o=sa(e.g),i=sa(e.b),a=ua((.2225045*r+.7168786*o+.0606169*i)/Zi);return r===o&&o===i?t=n=a:(t=ua((.4360747*r+.3850649*o+.1430804*i)/Qi),n=ua((.0139322*r+.0971045*o+.7141733*i)/Ji)),new aa(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ia(e,t,n,r){return 1===arguments.length?oa(e):new aa(e,t,n,null==r?1:r)}function aa(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ua(e){return e>ra?Math.pow(e,1/3):e/na+ea}function ca(e){return e>ta?e*e*e:na*(e-ea)}function la(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function sa(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function fa(e){if(e instanceof ha)return new ha(e.h,e.c,e.l,e.opacity);if(e instanceof aa||(e=oa(e)),0===e.a&&0===e.b)return new ha(NaN,0180||n<-180?n-360*Math.round(n/360):n):Ea(isNaN(e)?t:e)}function Ma(e){return 1===(e=+e)?Pa:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ea(isNaN(t)?n:t)}}function Pa(e,t){var n=t-e;return n?Ta(e,n):Ea(isNaN(e)?t:e)}var Ca=function e(t){var n=Ma(t);function r(e,t){var r=n((e=Wi(e)).r,(t=Wi(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Pa(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Aa(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),u=new Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,u=ri&&(o=t.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:Na(n,r)})),i=Ra.lastIndex;return i180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:Na(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,u,c),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:Na(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,u,c),function(e,t,n,r,i,a){if(e!==n||t!==r){var u=i.push(o(i)+"scale(",null,",",null,")");a.push({i:u-4,x:Na(e,n)},{i:u-2,x:Na(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,u,c),i=a=null,function(e){for(var t,n=-1,r=c.length;++nr&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function tu(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?nu:tu,o=i=null,f}function f(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),u,c)))(e(l(t)))}return f.invert=function(n){return l(t((i||(i=r(u,a.map(e),Na)))(n)))},f.domain=function(e){return arguments.length?(a=mi.call(e,Ka),l===Za||(l=eu(a)),s()):a.slice()},f.range=function(e){return arguments.length?(u=gi.call(e),s()):u.slice()},f.rangeRound=function(e){return u=gi.call(e),c=Ba,s()},f.clamp=function(e){return arguments.length?(l=e?eu(a):Za,f):l!==Za},f.interpolate=function(e){return arguments.length?(c=e,s()):c},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,s()}}function iu(e,t){return ou()(e,t)}var au=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]},uu=function(e){return(e=au(Math.abs(e)))?e[1]:NaN},cu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function lu(e){return new su(e)}function su(e){if(!(t=cu.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}lu.prototype=su.prototype,su.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var fu,pu,hu,du,yu=function(e){e:for(var t,n=e.length,r=1,o=-1;r0){if(!+e[r])break e;o=0}}return o>0?e.slice(0,o)+e.slice(t+1):e},vu=function(e,t){var n=au(e,t);if(!n)return e+"";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")},mu={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return vu(100*e,t)},r:vu,s:function(e,t){var n=au(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(fu=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")+au(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},gu=function(e){return e},bu=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];pu=function(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var o=e.length,i=[],a=0,u=t[0],c=0;o>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),i.push(e.substring(o-=u,o+u)),!((c+=u+1)>r));)u=t[a=(a+1)%t.length];return i.reverse().join(n)}):gu,o=e.currency,i=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(e.numerals):gu,u=e.percent||"%";function c(e){var t=(e=lu(e)).fill,n=e.align,c=e.sign,l=e.symbol,s=e.zero,f=e.width,p=e.comma,h=e.precision,d=e.trim,y=e.type;"n"===y?(p=!0,y="g"):mu[y]||(null==h&&(h=12),d=!0,y="g"),(s||"0"===t&&"="===n)&&(s=!0,t="0",n="=");var v="$"===l?o[0]:"#"===l&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",m="$"===l?o[1]:/[%p]/.test(y)?u:"",g=mu[y],b=/[defgprs%]/.test(y);function x(e){var o,u,l,x=v,w=m;if("c"===y)w=g(e)+w,e="";else{var O=(e=+e)<0;if(e=g(Math.abs(e),h),d&&(e=yu(e)),O&&0===+e&&(O=!1),x=(O?"("===c?c:"-":"-"===c||"("===c?"":c)+x,w=("s"===y?bu[8+fu/3]:"")+w+(O&&"("===c?")":""),b)for(o=-1,u=e.length;++o(l=e.charCodeAt(o))||l>57){w=(46===l?i+e.slice(o+1):e.slice(o))+w,e=e.slice(0,o);break}}p&&!s&&(e=r(e,1/0));var _=x.length+e.length+w.length,k=_>1)+x+e+w+k.slice(_);break;default:e=k+x+e+w}return a(e)}return h=null==h?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),x.toString=function(){return e+""},x}return{format:c,formatPrefix:function(e,t){var n=c(((e=lu(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(uu(t)/3))),o=Math.pow(10,-r),i=bu[8+r/3];return function(e){return n(o*e)+i}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),hu=pu.format,du=pu.formatPrefix;var xu=function(e,t,n,r){var o,i=ai(e,t,n);switch((r=lu(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(uu(t)/3)))-uu(Math.abs(e)))}(i,a))||(r.precision=o),du(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,uu(t)-uu(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-uu(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return hu(r)};function wu(e){var t=e.domain;return e.ticks=function(e){var n=t();return oi(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return xu(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,u=o[i],c=o[a];return c0?r=ii(u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=ii(u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r,n)),r>0?(o[i]=Math.floor(u/r)*r,o[a]=Math.ceil(c/r)*r,t(o)):r<0&&(o[i]=Math.ceil(u*r)/r,o[a]=Math.floor(c*r)/r,t(o)),e},e}function Ou(){var e=iu(Za,Za);return e.copy=function(){return ru(e,Ou())},ci.apply(e,arguments),wu(e)}function _u(e){var t;function n(e){return isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=mi.call(t,Ka),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return _u(e).unknown(t)},e=arguments.length?mi.call(e,Ka):[0,1],wu(n)}var ku=function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a0){for(;pc)break;y.push(f)}}else for(;p=1;--s)if(!((f=l*s)c)break;y.push(f)}}else y=oi(p,h,Math.min(h-p,d)).map(n);return r?y.reverse():y},r.tickFormat=function(e,o){if(null==o&&(o=10===i?".0e":","),"function"!==typeof o&&(o=hu(o)),e===1/0)return o;null==e&&(e=10);var a=Math.max(1,i*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*i0?r[o-1]:t[0],o=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return Hu().domain([t,n]).range(i).unknown(e)},ci.apply(wu(a),arguments)}function Gu(){var e,t=[.5],n=[0,1],r=1;function o(o){return o<=o?n[Qo(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=gi.call(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=gi.call(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return Gu().domain(t).range(n).unknown(e)},ci.apply(o,arguments)}var qu=new Date,$u=new Date;function Xu(e,t,n,r){function o(t){return e(t=new Date(+t)),t}return o.floor=o,o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t0))return u;do{u.push(a=new Date(+n)),t(n,i),e(n)}while(a=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(o.count=function(t,r){return qu.setTime(+t),$u.setTime(+r),e(qu),e($u),Math.floor(n(qu,$u))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e===0}:function(t){return o.count(0,t)%e===0}):o:null}),o}var Yu=Xu(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Yu.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Xu(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Yu:null};var Ku=Yu,Qu=(Yu.range,6e4),Zu=6048e5,Ju=Xu(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()}),ec=Ju,tc=(Ju.range,Xu(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+t*Qu)},function(e,t){return(t-e)/Qu},function(e){return e.getMinutes()})),nc=tc,rc=(tc.range,Xu(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-e.getMinutes()*Qu)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()})),oc=rc,ic=(rc.range,Xu(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Qu)/864e5},function(e){return e.getDate()-1})),ac=ic;ic.range;function uc(e){return Xu(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Qu)/Zu})}var cc=uc(0),lc=uc(1),sc=uc(2),fc=uc(3),pc=uc(4),hc=uc(5),dc=uc(6),yc=(cc.range,lc.range,sc.range,fc.range,pc.range,hc.range,dc.range,Xu(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()})),vc=yc,mc=(yc.range,Xu(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()}));mc.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Xu(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var gc=mc,bc=(mc.range,Xu(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Qu)},function(e,t){return(t-e)/Qu},function(e){return e.getUTCMinutes()})),xc=bc,wc=(bc.range,Xu(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()})),Oc=wc,_c=(wc.range,Xu(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1})),kc=_c;_c.range;function Sc(e){return Xu(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/Zu})}var Ec=Sc(0),Tc=Sc(1),jc=Sc(2),Mc=Sc(3),Pc=Sc(4),Cc=Sc(5),Ac=Sc(6),Nc=(Ec.range,Tc.range,jc.range,Mc.range,Pc.range,Cc.range,Ac.range,Xu(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()})),Ic=Nc,Rc=(Nc.range,Xu(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()}));Rc.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Xu(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var Dc=Rc;Rc.range;function Lc(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function zc(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Fc(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}var Uc,Bc,Wc,Vc,Hc={"-":"",_:" ",0:"0"},Gc=/^\s*\d+/,qc=/^%/,$c=/[\\^$*+?|[\]().{}]/g;function Xc(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i68?1900:2e3),n+r[0].length):-1}function il(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function al(e,t,n){var r=Gc.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ul(e,t,n){var r=Gc.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function cl(e,t,n){var r=Gc.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ll(e,t,n){var r=Gc.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function sl(e,t,n){var r=Gc.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function fl(e,t,n){var r=Gc.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function pl(e,t,n){var r=Gc.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function hl(e,t,n){var r=Gc.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function dl(e,t,n){var r=qc.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function yl(e,t,n){var r=Gc.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function vl(e,t,n){var r=Gc.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function ml(e,t){return Xc(e.getDate(),t,2)}function gl(e,t){return Xc(e.getHours(),t,2)}function bl(e,t){return Xc(e.getHours()%12||12,t,2)}function xl(e,t){return Xc(1+ac.count(gc(e),e),t,3)}function wl(e,t){return Xc(e.getMilliseconds(),t,3)}function Ol(e,t){return wl(e,t)+"000"}function _l(e,t){return Xc(e.getMonth()+1,t,2)}function kl(e,t){return Xc(e.getMinutes(),t,2)}function Sl(e,t){return Xc(e.getSeconds(),t,2)}function El(e){var t=e.getDay();return 0===t?7:t}function Tl(e,t){return Xc(cc.count(gc(e),e),t,2)}function jl(e,t){var n=e.getDay();return e=n>=4||0===n?pc(e):pc.ceil(e),Xc(pc.count(gc(e),e)+(4===gc(e).getDay()),t,2)}function Ml(e){return e.getDay()}function Pl(e,t){return Xc(lc.count(gc(e),e),t,2)}function Cl(e,t){return Xc(e.getFullYear()%100,t,2)}function Al(e,t){return Xc(e.getFullYear()%1e4,t,4)}function Nl(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Xc(t/60|0,"0",2)+Xc(t%60,"0",2)}function Il(e,t){return Xc(e.getUTCDate(),t,2)}function Rl(e,t){return Xc(e.getUTCHours(),t,2)}function Dl(e,t){return Xc(e.getUTCHours()%12||12,t,2)}function Ll(e,t){return Xc(1+kc.count(Dc(e),e),t,3)}function zl(e,t){return Xc(e.getUTCMilliseconds(),t,3)}function Fl(e,t){return zl(e,t)+"000"}function Ul(e,t){return Xc(e.getUTCMonth()+1,t,2)}function Bl(e,t){return Xc(e.getUTCMinutes(),t,2)}function Wl(e,t){return Xc(e.getUTCSeconds(),t,2)}function Vl(e){var t=e.getUTCDay();return 0===t?7:t}function Hl(e,t){return Xc(Ec.count(Dc(e),e),t,2)}function Gl(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Pc(e):Pc.ceil(e),Xc(Pc.count(Dc(e),e)+(4===Dc(e).getUTCDay()),t,2)}function ql(e){return e.getUTCDay()}function $l(e,t){return Xc(Tc.count(Dc(e),e),t,2)}function Xl(e,t){return Xc(e.getUTCFullYear()%100,t,2)}function Yl(e,t){return Xc(e.getUTCFullYear()%1e4,t,4)}function Kl(){return"+0000"}function Ql(){return"%"}function Zl(e){return+e}function Jl(e){return Math.floor(+e/1e3)}!function(e){Uc=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,u=e.months,c=e.shortMonths,l=Kc(o),s=Qc(o),f=Kc(i),p=Qc(i),h=Kc(a),d=Qc(a),y=Kc(u),v=Qc(u),m=Kc(c),g=Qc(c),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return u[e.getMonth()]},c:null,d:ml,e:ml,f:Ol,H:gl,I:bl,j:xl,L:wl,m:_l,M:kl,p:function(e){return o[+(e.getHours()>=12)]},Q:Zl,s:Jl,S:Sl,u:El,U:Tl,V:jl,w:Ml,W:Pl,x:null,X:null,y:Cl,Y:Al,Z:Nl,"%":Ql},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return u[e.getUTCMonth()]},c:null,d:Il,e:Il,f:Fl,H:Rl,I:Dl,j:Ll,L:zl,m:Ul,M:Bl,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:Zl,s:Jl,S:Wl,u:Vl,U:Hl,V:Gl,w:ql,W:$l,x:null,X:null,y:Xl,Y:Yl,Z:Kl,"%":Ql},w={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=d[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:ul,e:ul,f:hl,H:ll,I:ll,j:cl,L:pl,m:al,M:sl,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=s[r[0].toLowerCase()],n+r[0].length):-1},Q:yl,s:vl,S:fl,u:Jc,U:el,V:tl,w:Zc,W:nl,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:ol,Y:rl,Z:il,"%":dl};function O(e,t){return function(n){var r,o,i,a=[],u=-1,c=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++u53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=zc(Fc(i.y))).getUTCDay(),r=o>4||0===o?Tc.ceil(r):Tc(r),r=kc.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=t(Fc(i.y))).getDay(),r=o>4||0===o?lc.ceil(r):lc(r),r=ac.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?zc(Fc(i.y)).getUTCDay():t(Fc(i.y)).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,zc(i)):t(i)}}function k(e,t,n,r){for(var o,i,a=0,u=t.length,c=n.length;a=c)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in Hc?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=O(n,b),b.X=O(r,b),b.c=O(t,b),x.x=O(n,x),x.X=O(r,x),x.c=O(t,x),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=_(e+="",Lc);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=_(e,zc);return t.toString=function(){return e},t}}}(e),Bc=Uc.format,Uc.parse,Wc=Uc.utcFormat,Vc=Uc.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});Date.prototype.toISOString||Wc("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Vc("%Y-%m-%dT%H:%M:%S.%LZ");var es=1e3,ts=60*es,ns=60*ts,rs=24*ns,os=7*rs,is=30*rs,as=365*rs;function us(e){return new Date(e)}function cs(e){return e instanceof Date?+e:+new Date(+e)}function ls(e,t,n,r,o,i,a,u,c){var l=iu(Za,Za),s=l.invert,f=l.domain,p=c(".%L"),h=c(":%S"),d=c("%I:%M"),y=c("%I %p"),v=c("%a %d"),m=c("%b %d"),g=c("%B"),b=c("%Y"),x=[[a,1,es],[a,5,5*es],[a,15,15*es],[a,30,30*es],[i,1,ts],[i,5,5*ts],[i,15,15*ts],[i,30,30*ts],[o,1,ns],[o,3,3*ns],[o,6,6*ns],[o,12,12*ns],[r,1,rs],[r,2,2*rs],[n,1,os],[t,1,is],[t,3,3*is],[e,1,as]];function w(u){return(a(u)1&&void 0!==arguments[1]?arguments[1]:{}).bandAware;if(void 0!==e){if(t){var n=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+n}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}},{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}}]),e}();qs.EPS=1e-4;var $s,Xs,Ys,Ks=function(){function e(t){Us(this,e),this.scales=Fs()(t,qs.create),Object.assign(this,this.scales)}return Ws(e,null,[{key:"create",value:function(e){return new this(e)}}]),Ws(e,[{key:"apply",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).bandAware,n=this.scales;return Fs()(e,function(e,r){return n[r].apply(e,{bandAware:t})})}},{key:"isInRange",value:function(e){var t=this.scales;return Ls()(e,function(e,n){return t[n].isInRange(e)})}}]),e}();function Qs(e){return(Qs="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zs(){return(Zs=Object.assign||function(e){for(var t=1;t=0?1:-1,c=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var s=[],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+u*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(e+c*s[0],",").concat(t)),i+="L ".concat(e+n-c*s[1],",").concat(t),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(e+n,",").concat(t+u*s[1])),i+="L ".concat(e+n,",").concat(t+r-u*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(e+n-c*s[2],",").concat(t+r)),i+="L ".concat(e+c*s[3],",").concat(t+r),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(e,",").concat(t+r-u*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(e,",").concat(t+u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+c*p,",").concat(t,"\n L ").concat(e+n-c*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+n,",").concat(t+u*p,"\n L ").concat(e+n,",").concat(t+r-u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+n-c*p,",").concat(t+r,"\n L ").concat(e+c*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e,",").concat(t+r-u*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},wf=y((cf=uf=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i0,from:{width:o,height:i,x:n,y:r},to:{width:o,height:i,x:n,y:r},duration:p,animationEasing:f,isActive:y},function(t){var n=t.width,r=t.height,o=t.x,i=t.y;return s.a.createElement(Tr,{canBegin:c>0,from:"0px ".concat(-1===c?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:p,isActive:d,easing:f},s.a.createElement("path",pf({},Z(e.props),ee(e.props),{className:v,d:xf(o,i,n,r,a),ref:function(t){e.node=t}})))}):s.a.createElement("path",pf({},Z(this.props),ee(this.props),{className:v,d:xf(n,r,o,i,a)}))}}])&&hf(n.prototype,r),o&&hf(n,o),t}(),uf.displayName="Rectangle",uf.propTypes=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Rf(e,t){for(var n=0;n=0});if(i&&i.length){var a=i.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=Hf(t,n,0),o=S()(r)?[Vo()(r),Bo()(r)]:[r,r],i=a.reduce(function(e,n){var r=Hf(t,n,0),i=o[0]-Math.abs(S()(r)?r[0]:r),a=o[1]+Math.abs(S()(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]},[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]},[1/0,-1/0])}return null},Yf=function(e,t,n,r){var o=t.map(function(t){var o=t.props.dataKey;return"number"===n&&o&&Xf(e,t,o)||Gf(e,o,n,r)});if("number"===n)return o.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var i={};return o.reduce(function(e,t){for(var n=0,r=t.length;n=0||t.indexOf("AreaChart")>=0)?{scale:Oi(),realScaleType:"point"}:"category"===o?{scale:wi(),realScaleType:"band"}:{scale:Ou(),realScaleType:"linear"};if(w()(n)){var c="scale".concat(n.slice(0,1).toUpperCase()).concat(n.slice(1));return{scale:(r[c]||Oi)(),realScaleType:r[c]?c:"point"}}return a()(n)?{scale:n}:{scale:Oi(),realScaleType:"point"}},tp=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-1e-4,i=Math.max(r[0],r[1])+1e-4,a=e(t[0]),u=e(t[n-1]);(ai||ui)&&e.domain([t[0],t[n-1]])}},np={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n=0?(e[a][n][0]=o,e[a][n][1]=o+u,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+u,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i0){for(var n,r=0,o=e[t[0]],i=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a=2){for(var n=Mr()(t,function(e){return e.coordinate}),r=1/0,o=1,i=n.length;oi&&(c=2*Math.PI-c),{radius:a,angle:mp(c),angleInRadian:c}},xp=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},wp=function(e,t){var n=e.x,r=e.y,o=bp({x:n,y:r},t),i=o.radius,a=o.angle,u=t.innerRadius,c=t.outerRadius;if(ic)return!1;if(0===i)return!0;var l,s=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),f=s.startAngle,p=s.endAngle,h=a;if(f<=p){for(;h>p;)h-=360;for(;h=f&&h<=p}else{for(;h>f;)h-=360;for(;h=p&&h<=f}return l?dp({},t,{radius:i,angle:xp(h,t)}):null};function Op(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0?1:-1;"insideStart"===i?(r=d+w*u,o=v):"insideEnd"===i?(r=y-w*u,o=!v):"end"===i&&(r=y+w*u,o=v),o=x<=0?o:!o;var O=gp(l,f,g,r),_=gp(l,f,g,r+359*(o?1:-1)),k="M".concat(O.x,",").concat(O.y,"\n A").concat(g,",").concat(g,",0,1,").concat(o?0:1,",\n ").concat(_.x,",").concat(_.y),S=b()(e.id)?L("recharts-radial-line-"):e.id;return s.a.createElement("text",_p({},n,{dominantBaseline:"central",className:m()("recharts-radial-bar-label",c)}),s.a.createElement("defs",null,s.a.createElement("path",{id:S,d:k})),s.a.createElement("textPath",{xlinkHref:"#".concat(S)},t))},Pp=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.cx,i=t.cy,a=t.innerRadius,u=t.outerRadius,c=(t.startAngle+t.endAngle)/2;if("outside"===r){var l=gp(o,i,u+n,c),s=l.x;return{x:s,y:l.y,textAnchor:s>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"end"};var f=gp(o,i,(a+u)/2,c);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},Cp=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.x,i=t.y,a=t.width,u=t.height,c=u>=0?1:-1;return"top"===r?{x:o+a/2,y:i-c*n,textAnchor:"middle",verticalAnchor:c>0?"end":"start"}:"bottom"===r?{x:o+a/2,y:i+u+c*n,textAnchor:"middle",verticalAnchor:"start"}:"left"===r?{x:o-n,y:i+u/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===r?{x:o+a+n,y:i+u/2,textAnchor:"start",verticalAnchor:"middle"}:"insideLeft"===r?{x:o+n,y:i+u/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===r?{x:o+a-n,y:i+u/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===r?{x:o+a/2,y:i+c*n,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===r?{x:o+a/2,y:i+u-c*n,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===r?{x:o+n,y:i+c*n,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===r?{x:o+a-n,y:i+c*n,textAnchor:"end",verticalAnchor:"start"}:"insideBottomLeft"===r?{x:o+n,y:i+u-c*n,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===r?{x:o+a-n,y:i+u-c*n,textAnchor:"end",verticalAnchor:"end"}:_()(r)&&(I(r.x)||N(r.x))&&(I(r.y)||N(r.y))?{x:o+z(r.x,a),y:i+z(r.y,u),textAnchor:"end",verticalAnchor:"end"}:{x:o+a/2,y:i+u/2,textAnchor:"middle",verticalAnchor:"middle"}},Ap=function(e){return I(e.cx)};function Np(e){var t,n=e.viewBox,r=e.position,o=e.value,i=e.children,u=e.content,c=e.className,f=void 0===c?"":c;if(!n||b()(o)&&b()(i)&&!Object(l.isValidElement)(u)&&!a()(u))return null;if(Object(l.isValidElement)(u))return Object(l.cloneElement)(u,e);if(a()(u)){if(t=u(e),Object(l.isValidElement)(t))return t}else t=jp(e);var p=Ap(n),h=Z(e);if(p&&("insideStart"===r||"insideEnd"===r||"end"===r))return Mp(e,t,h);var d=p?Pp(e):Cp(e);return s.a.createElement(Fo,_p({className:m()("recharts-label",f)},h,d),t)}Np.displayName="Label",Np.defaultProps={offset:5},Np.propTypes=Tp;var Ip=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,u=e.radius,c=e.innerRadius,l=e.outerRadius,s=e.x,f=e.y,p=e.top,h=e.left,d=e.width,y=e.height,v=e.clockWise;if(I(d)&&I(y)){if(I(s)&&I(f))return{x:s,y:f,width:d,height:y};if(I(p)&&I(h))return{x:p,y:h,width:d,height:y}}return I(s)&&I(f)?{x:s,y:f,width:0,height:0}:I(t)&&I(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:c||0,outerRadius:l||u||a||0,clockWise:v}:e.viewBox?e.viewBox:{}};Np.parseViewBox=Ip,Np.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=Ip(e),i=K(r,Np).map(function(e,n){return Object(l.cloneElement)(e,{viewBox:t||o,key:"label-".concat(n)})});return n?[function(e,t){return e?!0===e?s.a.createElement(Np,{key:"label-implicit",viewBox:t}):R(e)?s.a.createElement(Np,{key:"label-implicit",viewBox:t,value:e}):Object(l.isValidElement)(e)?e.type===Np?Object(l.cloneElement)(e,{key:"label-implicit",viewBox:t}):s.a.createElement(Np,{key:"label-implicit",content:e,viewBox:t}):a()(e)?s.a.createElement(Np,{key:"label-implicit",content:e,viewBox:t}):_()(e)?s.a.createElement(Np,_p({viewBox:t},e,{key:"label-implicit"})):null:null}(e.label,t||o)].concat(Op(i)):i};var Rp,Dp,Lp,zp=Np;function Fp(e){return(Fp="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Up(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function th(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ch={id:p.a.string,data:p.a.arrayOf(p.a.object),valueAccessor:p.a.func,clockWise:p.a.bool,dataKey:p.a.oneOfType([p.a.string,p.a.number,p.a.func])},Ah={valueAccessor:function(e){return S()(e.value)?Sh()(e.value):e.value}};function Nh(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,o=e.clockWise,i=e.id,a=Ph(e,["data","valueAccessor","dataKey","clockWise","id"]);return t&&t.length?s.a.createElement(bo,{className:"recharts-label-list"},t.map(function(e,t){var u=b()(r)?n(e,t):Hf(e&&e.payload,r),c=b()(i)?{}:{id:"".concat(i,"-").concat(t)};return s.a.createElement(zp,Th({},Z(e),a,c,{index:t,value:u,viewBox:zp.parseViewBox(b()(o)?e:jh({},e,{clockWise:o})),key:"label-".concat(t)}))})):null}Nh.propTypes=Ch,Nh.displayName="LabelList";Nh.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=K(r,Nh).map(function(e,n){return Object(l.cloneElement)(e,{data:t,key:"labelList-".concat(n)})});return n?[function(e,t){return e?!0===e?s.a.createElement(Nh,{key:"labelList-implicit",data:t}):s.a.isValidElement(e)||a()(e)?s.a.createElement(Nh,{key:"labelList-implicit",data:t,content:e}):_()(e)?s.a.createElement(Nh,Th({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t)].concat(Eh(o)):o},Nh.defaultProps=Ah;var Ih,Rh,Dh,Lh=Nh;function zh(e){return(zh="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fh(){return(Fh=Object.assign||function(e){for(var t=1;t0||!pn()(u,r)||!pn()(c,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,o,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=e.className,i=e.top,a=e.left,u=e.xAxis,c=e.yAxis,l=e.width,f=e.height,p=e.isAnimationActive,h=e.id;if(t||!r||!r.length)return null;var d=this.state.isAnimationFinished,y=1===r.length,v=m()("recharts-area",o),g=u&&u.allowDataOverflow||c&&c.allowDataOverflow,x=b()(h)?this.id:h;return s.a.createElement(bo,{className:v},g?s.a.createElement("defs",null,s.a.createElement("clipPath",{id:"clipPath-".concat(x)},s.a.createElement("rect",{x:a,y:i,width:l,height:parseInt(f,10)}))):null,y?null:this.renderArea(g,x),(n||y)&&this.renderDots(g,x),(!p||d)&&Lh.renderCallByParent(this.props,r))}}])&&Wh(n.prototype,r),o&&Wh(n,o),t}(),Rh.displayName="Area",Rh.propTypes=Uh({},H,G,{className:p.a.string,dataKey:p.a.oneOfType([p.a.string,p.a.number,p.a.func]).isRequired,type:p.a.oneOfType([p.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),p.a.func]),unit:p.a.oneOfType([p.a.string,p.a.number]),name:p.a.oneOfType([p.a.string,p.a.number]),yAxisId:p.a.oneOfType([p.a.string,p.a.number]),xAxisId:p.a.oneOfType([p.a.string,p.a.number]),yAxis:p.a.object,xAxis:p.a.object,stackId:p.a.oneOfType([p.a.number,p.a.string]),legendType:p.a.oneOf($),tooltipType:p.a.oneOf(X),connectNulls:p.a.bool,activeDot:p.a.oneOfType([p.a.object,p.a.element,p.a.func,p.a.bool]),dot:p.a.oneOfType([p.a.func,p.a.element,p.a.object,p.a.bool]),label:p.a.oneOfType([p.a.func,p.a.element,p.a.object,p.a.bool]),hide:p.a.bool,layout:p.a.oneOf(["horizontal","vertical"]),baseLine:p.a.oneOfType([p.a.number,p.a.array]),isRange:p.a.bool,points:p.a.arrayOf(p.a.shape({x:p.a.number,y:p.a.number,value:p.a.oneOfType([p.a.number,p.a.array])})),onAnimationStart:p.a.func,onAnimationEnd:p.a.func,animationId:p.a.number,isAnimationActive:p.a.bool,animationBegin:p.a.number,animationDuration:p.a.number,animationEasing:p.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),id:p.a.string}),Rh.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!oe(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},Rh.getBaseValue=function(e,t,n){var r=e.layout,o=e.baseValue;if(I(o))return o;var i="horizontal"===r?n:t,a=i.scale.domain();if("number"===i.type){var u=Math.max(a[0],a[1]),c=Math.min(a[0],a[1]);return"dataMin"===o?c:"dataMax"===o?u:u<0?u:Math.max(Math.min(a[0],a[1]),0)}return"dataMin"===o?a[0]:"dataMax"===o?a[1]:a[0]},Rh.getComposedData=function(e){var t,n=e.props,r=e.xAxis,o=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,u=e.bandSize,c=e.dataKey,l=e.stackedData,s=e.dataStartIndex,f=e.displayedData,p=e.offset,h=n.layout,d=l&&l.length,y=Yh.getBaseValue(n,r,o),v=!1,m=f.map(function(e,t){var n;return d?n=l[s+t]:(n=Hf(e,c),S()(n)?v=!0:n=[y,n]),"horizontal"===h?{x:ip({axis:r,ticks:i,bandSize:u,entry:e,index:t}),y:b()(n[1])?null:o.scale(n[1]),value:n,payload:e}:{x:b()(n[1])?null:r.scale(n[1]),y:ip({axis:o,ticks:a,bandSize:u,entry:e,index:t}),value:n,payload:e}});return t=d||v?m.map(function(e){return"horizontal"===h?{x:e.x,y:b()(T()(e,"value[0]"))?null:o.scale(T()(e,"value[0]"))}:{x:b()(T()(e,"value[0]"))?null:r.scale(T()(e,"value[0]")),y:e.y}}):"horizontal"===h?o.scale(y):r.scale(y),Uh({points:m,baseLine:t,layout:h,isRange:v},p)},Rh.renderDotItem=function(e,t){return s.a.isValidElement(e)?s.a.cloneElement(e,t):a()(e)?e(t):s.a.createElement(Rs,Fh({},t,{className:"recharts-area-dot"}))},Ih=Dh))||Ih,Kh=Yh;function Qh(e){return(Qh="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zh(e,t){for(var n=0;n180),",").concat(+(i>u),",\n ").concat(l.x,",").concat(l.y,"\n ");if(r>0){var f=gp(t,n,r,i),p=gp(t,n,r,u);s+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=u),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(t,",").concat(n," Z");return s},Bd=y((Pd=Md=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Dd(this,Ld(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zd(e,t)}(t,l["Component"]),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,u=e.cornerIsExternal,c=e.startAngle,l=e.endAngle,f=e.className;if(o0&&Math.abs(c-l)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,u=e.cornerIsExternal,c=e.startAngle,l=e.endAngle,s=A(l-c),f=Fd({cx:t,cy:n,radius:o,angle:c,sign:s,cornerRadius:i,cornerIsExternal:u}),p=f.circleTangency,h=f.lineTangency,d=f.theta,y=Fd({cx:t,cy:n,radius:o,angle:l,sign:-s,cornerRadius:i,cornerIsExternal:u}),v=y.circleTangency,m=y.lineTangency,g=y.theta,b=Math.abs(c-l)-d-g;if(b<0)return a?"M ".concat(h.x,",").concat(h.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 "):Ud({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:l});var x="M ".concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(r>0){var w=Fd({cx:t,cy:n,radius:r,angle:c,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),O=w.circleTangency,_=w.lineTangency,k=w.theta,S=Fd({cx:t,cy:n,radius:r,angle:l,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),E=S.circleTangency,T=S.lineTangency,j=S.theta,M=Math.abs(c-l)-k-j;if(M<0)return"".concat(x,"L").concat(t,",").concat(n,"Z");x+="L".concat(T.x,",").concat(T.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(E.x,",").concat(E.y,"\n A").concat(r,",").concat(r,",0,").concat(+(M>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(_.x,",").concat(_.y,"Z")}else x+="L".concat(t,",").concat(n,"Z");return x}({cx:t,cy:n,innerRadius:r,outerRadius:o,cornerRadius:Math.min(y,d/2),forceCornerRadius:a,cornerIsExternal:u,startAngle:c,endAngle:l}):Ud({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:l}),s.a.createElement("path",Id({},Z(this.props),ee(this.props),{className:h,d:p}))}}])&&Rd(n.prototype,r),o&&Rd(n,o),t}(),Md.displayName="Sector",Md.propTypes=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function $d(e,t){for(var n=0;n=2?A(v[1].coordinate-v[0].coordinate):1;if(1===b?(n="width"===y?f:p,r="width"===y?f+h:p+d):(n="width"===y?f+h:p+d,r="width"===y?f:p),t){var x=o[g-1],w=a()(i)?i(x.value):x.value,O=jo(w)[y]+m,_=b*(x.coordinate+b*O/2-r);v[g-1]=x=Hd({},x,{tickCoord:_>0?x.coordinate-_*b:x.coordinate}),b*(x.tickCoord-b*O/2-n)>=0&&b*(x.tickCoord+b*O/2-r)<=0&&(r=x.tickCoord-b*(O/2+l),v[g-1]=Hd({},x,{isShow:!0}))}for(var k=t?g-1:g,S=0;S=0&&b*(E.tickCoord+b*j/2-r)<=0&&(n=E.tickCoord+b*(j/2+l),v[S]=Hd({},E,{isShow:!0}))}return v.filter(function(e){return e.isShow})}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,u=e.orientation,c=e.minTickGap,l=e.unit,s=i.x,f=i.y,p=i.width,h=i.height,d="top"===u||"bottom"===u?"width":"height",y=l&&"width"===d?jo(l)[d]:0,v=(r||[]).slice(),m=v.length,g=m>=2?A(v[1].coordinate-v[0].coordinate):1;1===g?(t="width"===d?s:f,n="width"===d?s+p:f+h):(t="width"===d?s+p:f+h,n="width"===d?s:f);for(var b=m-1;b>=0;b--){var x=v[b],w=a()(o)?o(x.value):x.value,O=jo(w)[d]+y;if(b===m-1){var _=g*(x.coordinate+g*O/2-n);v[b]=x=Hd({},x,{tickCoord:_>0?x.coordinate-_*g:x.coordinate})}else v[b]=x=Hd({},x,{tickCoord:x.coordinate});g*(x.tickCoord-g*O/2-t)>=0&&g*(x.tickCoord+g*O/2-n)<=0&&(n=x.tickCoord-g*(O/2+c),v[b]=Hd({},x,{isShow:!0}))}return v.filter(function(e){return e.isShow})}},{key:"renderTickItem",value:function(e,t,n){return s.a.isValidElement(e)?s.a.cloneElement(e,t):a()(e)?e(t):s.a.createElement(Fo,Vd({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=qd(e,["viewBox"]),o=this.props,i=o.viewBox,a=qd(o,["viewBox"]);return!h(n,i)||!h(r,a)||!h(t,this.state)}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,u=this.props,c=u.x,l=u.y,s=u.width,f=u.height,p=u.orientation,h=u.tickSize,d=u.mirror,y=u.tickMargin,v=d?-1:1,m=e.tickSize||h,g=I(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(o=l+!d*f)-v*m)-v*y,i=g;break;case"left":r=o=e.coordinate,i=(t=(n=c+!d*s)-v*m)-v*y,a=g;break;case"right":r=o=e.coordinate,i=(t=(n=c+d*s)+v*m)+v*y,a=g;break;default:t=n=e.coordinate,a=(r=(o=l+d*f)+v*m)+v*y,i=g}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){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 e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.orientation,a=e.axisLine,u=e.mirror,c=Hd({},Z(this.props),{fill:"none"},Z(a));if("top"===i||"bottom"===i){var l="top"===i&&!u||"bottom"===i&&u;c=Hd({},c,{x1:t,y1:n+l*o,x2:t+r,y2:n+l*o})}else{var f="left"===i&&!u||"right"===i&&u;c=Hd({},c,{x1:t+f*r,y1:n,x2:t+f*r,y2:n+o})}return s.a.createElement("line",Vd({className:"recharts-cartesian-axis-line"},c))}},{key:"renderTicks",value:function(e){var n=this,r=this.props,o=r.tickLine,i=r.stroke,u=r.tick,c=r.tickFormatter,l=r.unit,f=t.getTicks(Hd({},this.props,{ticks:e})),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),d=Z(this.props),y=Z(u),v=Hd({},d,{fill:"none"},Z(o)),m=f.map(function(e,t){var r=n.getTickLineCoord(e),m=r.line,g=r.tick,b=Hd({textAnchor:p,verticalAnchor:h},d,{stroke:"none",fill:i},y,g,{index:t,payload:e,visibleTicksCount:f.length});return s.a.createElement(bo,Vd({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},ne(n.props,e,t)),o&&s.a.createElement("line",Vd({className:"recharts-cartesian-axis-tick-line"},v,m)),u&&n.constructor.renderTickItem(u,b,"".concat(a()(c)?c(e.value):e.value).concat(l||"")))});return s.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this.props,t=e.axisLine,n=e.width,r=e.height,o=e.ticksGenerator,i=e.className;if(e.hide)return null;var u=this.props,c=u.ticks,l=qd(u,["ticks"]),f=c;return a()(o)&&(f=c&&c.length>0?o(this.props):o(l)),n<=0||r<=0||!f||!f.length?null:s.a.createElement(bo,{className:m()("recharts-cartesian-axis",i)},t&&this.renderAxisLine(),this.renderTicks(f),zp.renderCallByParent(this.props))}}])&&$d(n.prototype,r),o&&$d(n,o),t}();Qd.displayName="CartesianAxis",Qd.propTypes=Hd({},H,G,{className:p.a.string,x:p.a.number,y:p.a.number,width:p.a.number,height:p.a.number,orientation:p.a.oneOf(["top","bottom","left","right"]),viewBox:p.a.shape({x:p.a.number,y:p.a.number,width:p.a.number,height:p.a.number}),tick:p.a.oneOfType([p.a.bool,p.a.func,p.a.object,p.a.element]),axisLine:p.a.oneOfType([p.a.bool,p.a.object]),tickLine:p.a.oneOfType([p.a.bool,p.a.object]),mirror:p.a.bool,tickMargin:p.a.number.isRequired,minTickGap:p.a.number,ticks:p.a.array,tickSize:p.a.number,stroke:p.a.string,tickFormatter:p.a.func,ticksGenerator:p.a.func,interval:p.a.oneOfType([p.a.number,p.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])])}),Qd.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 Zd=Qd;function Jd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ey,ty,ny,ry=["Webkit","Moz","O","ms"],oy=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,function(e){return e.toUpperCase()}),r=ry.reduce(function(e,r){return function(e){for(var t=1;t0&&n.handleDrag(e.changedTouches[0])},n.handleDragEnd=function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1})},n.handleLeaveWrapper=function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=setTimeout(n.handleDragEnd,n.props.leaveTimeOut))},n.handleEnterSlideOrTraveller=function(){n.setState({isTextActive:!0})},n.handleLeaveSlideOrTraveller=function(){n.setState({isTextActive:!1})},n.handleSlideDragStart=function(e){var t=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX})},n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(fy(fy(n)),"startX"),endX:n.handleTravellerDragStart.bind(fy(fy(n)),"endX")},n.state=e.data&&e.data.length?n.updateScale(e):{},n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sy(e,t)}(t,l["Component"]),n=t,o=[{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],(r=[{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,o=n.width,i=n.x,a=n.travellerWidth,u=n.updateId;(e.data!==r||e.updateId!==u)&&e.data&&e.data.length?this.setState(this.updateScale(e)):e.width===o&&e.x===i&&e.travellerWidth===a||(this.scale.range([e.x,e.x+e.width-e.travellerWidth]),this.scaleValues=this.scale.domain().map(function(e){return t.scale(e)}),this.setState({startX:this.scale(e.startIndex),endX:this.scale(e.endIndex)}))}},{key:"componentWillUnmount",value:function(){this.scale=null,this.scaleValues=null,this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null)}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.props,o=r.gap,i=r.data.length-1,a=Math.min(t,n),u=Math.max(t,n),c=this.constructor.getIndexInRange(this.scaleValues,a),l=this.constructor.getIndexInRange(this.scaleValues,u);return{startIndex:c-c%o,endIndex:l===i?i:l-l%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=Hf(n[e],o,e);return a()(r)?r(i):i}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,u=i.width,c=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+u-c-o,a+u-c-r):p<0&&(p=Math.max(p,a-r,a-o));var h=this.getIndex({startX:r+p,endX:o+p});h.startIndex===l&&h.endIndex===s||!f||f(h),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX})}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,u=this.state[o],c=this.props,l=c.x,s=c.width,f=c.travellerWidth,p=c.onChange,h=c.gap,d=c.data,y={startX:this.state.startX,endX:this.state.endX},v=e.pageX-r;v>0?v=Math.min(v,l+s-f-u):v<0&&(v=Math.max(v,l-u)),y[o]=u+v;var m=this.getIndex(y),g=m.startIndex,b=m.endIndex;this.setState((uy(t={},o,u+v),uy(t,"brushMoveStartX",e.pageX),t),function(){p&&function(){var e=d.length-1;return"startX"===o&&(i>a?g%h===0:b%h===0)||ia?b%h===0:g%h===0)||i>a&&b===e}()&&p(m)})}},{key:"updateScale",value:function(e){var t=this,n=e.data,r=e.startIndex,o=e.endIndex,i=e.x,a=e.width,u=e.travellerWidth,c=n.length;return this.scale=Oi().domain(gd()(0,c)).range([i,i+a-u]),this.scaleValues=this.scale.domain().map(function(e){return t.scale(e)}),{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:this.scale(r),endX:this.scale(o)}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.fill,a=e.stroke;return s.a.createElement("rect",{stroke:a,fill:i,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.data,a=e.children,u=e.padding,c=l.Children.only(a);return c?s.a.cloneElement(c,{x:t,y:n,width:r,height:o,margin:u,compact:!0,data:i}):null}},{key:"renderTraveller",value:function(e,t){var n=this.props,r=n.y,o=n.travellerWidth,i=n.height,a=n.stroke,u=Math.floor(r+i/2)-1,c=Math.max(e,this.props.x);return s.a.createElement(bo,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},s.a.createElement("rect",{x:c,y:r,width:o,height:i,fill:a,stroke:"none"}),s.a.createElement("line",{x1:c+1,y1:u,x2:c+o-1,y2:u,fill:"none",stroke:"#fff"}),s.a.createElement("line",{x1:c+1,y1:u+2,x2:c+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,i=n.stroke;return s.a.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:Math.min(e,t),y:r,width:Math.abs(t-e),height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,i=e.travellerWidth,a=e.stroke,u=this.state,c=u.startX,l=u.endX,f={pointerEvents:"none",fill:a};return s.a.createElement(bo,{className:"recharts-brush-texts"},s.a.createElement(Fo,ay({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,l)-5,y:r+o/2},f),this.getTextOfTick(t)),s.a.createElement(Fo,ay({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,l)+i+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,i=e.y,a=e.width,u=e.height,c=this.state,l=c.startX,f=c.endX,p=c.isTextActive,h=c.isSlideMoving,d=c.isTravellerMoving;if(!t||!t.length||!I(o)||!I(i)||!I(a)||!I(u)||a<=0||u<=0)return null;var y=m()("recharts-brush",n),v=1===s.a.Children.count(r),g=oy("userSelect","none");return s.a.createElement(bo,{className:y,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(l,f),this.renderTraveller(l,"startX"),this.renderTraveller(f,"endX"),(p||h||d)&&this.renderText())}}])&&cy(n.prototype,r),o&&cy(n,o),t}(),ty.displayName="Brush",ty.propTypes={className:p.a.string,fill:p.a.string,stroke:p.a.string,x:p.a.number,y:p.a.number,width:p.a.number,height:p.a.number.isRequired,travellerWidth:p.a.number,gap:p.a.number,padding:p.a.shape({top:p.a.number,right:p.a.number,bottom:p.a.number,left:p.a.number}),dataKey:p.a.oneOfType([p.a.string,p.a.number,p.a.func]),data:p.a.array,startIndex:p.a.number,endIndex:p.a.number,tickFormatter:p.a.func,children:p.a.node,onChange:p.a.func,updateId:p.a.oneOfType([p.a.string,p.a.number]),leaveTimeOut:p.a.number},ty.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3},ey=ny))||ey,hy=n(171),dy=new(n.n(hy).a);dy.setMaxListeners&&dy.setMaxListeners(10);var yy="recharts.syncMouseEvents";function vy(e){return(vy="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function my(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gy(){return(gy=Object.assign||function(e){for(var t=1;t0&&n.handleMouseMove(e.changedTouches[0])},n.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])},n.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])},n.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return Qf(Zd.getTicks(xy({},Zd.defaultProps,t,{ticks:Zf(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},n.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return Qf(Zd.getTicks(xy({},Zd.defaultProps,t,{ticks:Zf(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},n.axesTicksGenerator=function(e){return Zf(e,!0)},n.tooltipTicksGenerator=function(e){var t=F(e),n=Zf(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Mr()(n,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:pp(t)}},n.renderCursor=function(e){var r=n.state,o=r.isTooltipActive,i=r.activeCoordinate,a=r.activePayload,u=r.offset;if(!e||!e.props.cursor||!o||!i)return null;var c,s=n.props.layout,f=_h;if("ScatterChart"===t)c=i,f=Cd;else if("BarChart"===t)c=n.getCursorRectangle(),f=wf;else if("radial"===s){var p=n.getCursorPoints(),h=p.cx,d=p.cy,y=p.radius;c={cx:h,cy:d,startAngle:p.startAngle,endAngle:p.endAngle,innerRadius:y,outerRadius:y},f=Bd}else c={points:n.getCursorPoints()},f=_h;var v=e.key||"_recharts-cursor",m=xy({stroke:"#ccc",pointerEvents:"none"},u,c,Z(e.props.cursor),{payload:a,key:v,className:"recharts-tooltip-cursor"});return Object(l.isValidElement)(e.props.cursor)?Object(l.cloneElement)(e.props.cursor,m):Object(l.createElement)(f,m)},n.renderPolarAxis=function(e,t,r){var o=e.type.axisType,i=n.state["".concat(o,"Map")][e.props["".concat(o,"Id")]];return Object(l.cloneElement)(e,xy({},i,{className:o,key:e.key||"".concat(t,"-").concat(r),ticks:Zf(i,!0)}))},n.renderXAxis=function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)},n.renderYAxis=function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)},n.renderGrid=function(e){var t=n.state,r=t.xAxisMap,o=t.yAxisMap,i=t.offset,a=n.props,u=a.width,c=a.height,s=F(r),f=vd()(o,function(e){return Ls()(e.domain,Number.isFinite)})||F(o),p=e.props||{};return Object(l.cloneElement)(e,{key:e.key||"grid",x:I(p.x)?p.x:i.left,y:I(p.y)?p.y:i.top,width:I(p.width)?p.width:i.width,height:I(p.height)?p.height:i.height,xAxis:s,yAxis:f,offset:i,chartWidth:u,chartHeight:c,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(e){var t=n.state,r=t.radiusAxisMap,o=t.angleAxisMap,i=F(r),a=F(o),u=a.cx,c=a.cy,s=a.innerRadius,f=a.outerRadius;return Object(l.cloneElement)(e,{polarAngles:Zf(a,!0).map(function(e){return e.coordinate}),polarRadius:Zf(i,!0).map(function(e){return e.coordinate}),cx:u,cy:c,innerRadius:s,outerRadius:f,key:e.key||"polar-grid"})},n.renderBrush=function(e){var t=n.props,r=t.margin,o=t.data,i=n.state,a=i.offset,u=i.dataStartIndex,c=i.dataEndIndex,s=i.updateId;return Object(l.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:Jf(n.handleBrushChange,null,e.props.onChange),data:o,x:I(e.props.x)?e.props.x:a.left,y:I(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:I(e.props.width)?e.props.width:a.width,startIndex:u,endIndex:c,updateId:"brush-".concat(s)})},n.renderReferenceElement=function(e,t,r){if(!e)return null;var o=Sy(Sy(n)).clipPathId,i=n.state,a=i.xAxisMap,u=i.yAxisMap,c=i.offset,s=e.props,f=s.xAxisId,p=s.yAxisId;return Object(l.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:a[f],yAxis:u[p],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:o})},n.renderGraphicChild=function(e,t,r){var o=n.filterFormatItem(e,t,r);if(!o)return null;var i,a,u=Object(l.cloneElement)(e,o.props),c=n.state,s=c.isTooltipActive,f=c.tooltipAxis,p=c.activeTooltipIndex,h=c.activeLabel,d=n.props.children,y=Q(d,eo),v=o.props,m=v.points,g=v.isRange,x=v.baseLine,w=o.item.props,O=w.activeDot;return!w.hide&&s&&y&&O&&p>=0&&(f.dataKey&&!f.allowDuplicatedCategory?(i=B(m,"payload.".concat(f.dataKey),h),a=g&&x&&B(x,"payload.".concat(f.dataKey),h)):(i=m[p],a=g&&x&&x[p]),!b()(i))?[u].concat(by(n.renderActivePoints({item:o,activePoint:i,basePoint:a,childIndex:p,isRange:g}))):g?[u,null,null]:[u,null]},n.renderCustomized=function(e){return Object(l.cloneElement)(e,xy({},n.props,n.state))};var u=n.constructor.createDefaultState(e);return n.state=xy({},u,{updateId:0},n.updateStateOfAxisMapsOffsetAndStackGroups(xy({props:e},u,{updateId:0}))),n.uniqueChartId=b()(e.id)?L("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=xd()(n.triggeredAfterMouseMove,e.throttleDelay)),n}var f,p,d;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ky(e,t)}(r,l.Component),f=r,d=[{key:"getAxisNameByLayout",value:function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}}},{key:"renderActiveDot",value:function(e,t){var n;return n=Object(l.isValidElement)(e)?Object(l.cloneElement)(e,t):a()(e)?e(t):s.a.createElement(Rs,t),s.a.createElement(bo,{className:"recharts-active-dot",key:t.key},n)}}],(p=[{key:"componentDidMount",value:function(){b()(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,o=n.children,i=n.width,a=n.height,u=n.layout,c=n.stackOffset,l=n.margin,s=this.state.updateId;if(e.data===r&&e.width===i&&e.height===a&&e.layout===u&&e.stackOffset===c&&h(e.margin,l)){if(!ue(e.children,o)){var f=b()(e.data)?s+1:s;this.setState(function(n){return xy({updateId:f},t.updateStateOfAxisMapsOffsetAndStackGroups(xy({props:e},n,{updateId:f})))})}}else{var p=this.constructor.createDefaultState(e);this.setState(xy({},p,{updateId:s+1},this.updateStateOfAxisMapsOffsetAndStackGroups(xy({props:e},p,{updateId:s+1}))))}b()(this.props.syncId)&&!b()(e.syncId)&&this.addListener(),!b()(this.props.syncId)&&b()(e.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){b()(this.props.syncId)||this.removeListener(),"function"===typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getAxisMap",value:function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,u=t.dataStartIndex,c=t.dataEndIndex,l=e.children,s="".concat(r,"Id"),f=K(l,o),p={};return f&&f.length?p=this.getAxisMapByAxes(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c}):i&&i.length&&(p=this.getAxisMapByItems(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c})),p}},{key:"getAxisMapByAxes",value:function(e,t){var n=this,r=t.axes,o=t.graphicalItems,i=t.axisType,a=t.axisIdKey,u=t.stackGroups,c=t.dataStartIndex,l=t.dataEndIndex,s=e.layout,f=e.children,p=e.stackOffset,h=Kf(s,i);return r.reduce(function(t,r){var d=r.props,y=d.type,v=d.dataKey,m=d.allowDataOverflow,g=d.allowDuplicatedCategory,x=d.scale,w=d.ticks,O=r.props[a],_=n.constructor.getDisplayedData(e,{graphicalItems:o.filter(function(e){return e.props[a]===O}),dataStartIndex:c,dataEndIndex:l}),k=_.length;if(!t[O]){var E,T,j;if(v){if(E=Gf(_,v,y),"category"===y&&h){var M=function(e){if(!S()(e))return!1;for(var t=e.length,n={},r=0;r=0?e:by(e).concat([t])},[]))}else if("category"===y)E=g?E.filter(function(e){return""!==e&&!b()(e)}):hp(r.props.domain,E,r).reduce(function(e,t){return e.indexOf(t)>=0||""===t||b()(t)?e:by(e).concat([t])},[]);else if("number"===y){var P=function(e,t,n,r){var o=t.map(function(t){return Xf(e,t,n,r)}).filter(function(e){return!b()(e)});return o&&o.length?o.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null}(_,o.filter(function(e){return e.props[a]===O&&!e.props.hide}),v,i);P&&(E=P)}!h||"number"!==y&&"auto"===x||(j=Gf(_,v,"category"))}else E=h?gd()(0,k):u&&u[O]&&u[O].hasStack&&"number"===y?"expand"===p?[0,1]:cp(u[O].stackGroups,c,l):Yf(_,o.filter(function(e){return e.props[a]===O&&!e.props.hide}),y,!0);return"number"===y&&(E=up(f,E,O,i,w),r.props.domain&&(E=fp(r.props.domain,E,m))),xy({},t,wy({},O,xy({},r.props,{axisType:i,domain:E,categoricalDomain:j,duplicateDomain:T,originalDomain:r.props.domain,isCategorial:h,layout:s})))}return t},{})}},{key:"getAxisMapByItems",value:function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,u=t.dataStartIndex,c=t.dataEndIndex,l=e.layout,s=e.children,f=this.constructor.getDisplayedData(e,{graphicalItems:n,dataStartIndex:u,dataEndIndex:c}),p=f.length,h=Kf(l,o),d=-1;return n.reduce(function(e,t){var y,v=t.props[i];return e[v]?e:(d++,h?y=gd()(0,p):a&&a[v]&&a[v].hasStack?(y=cp(a[v].stackGroups,u,c),y=up(s,y,v,o)):(y=fp(r.defaultProps.domain,Yf(f,n.filter(function(e){return e.props[i]===v&&!e.props.hide}),"number"),r.defaultProps.allowDataOverflow),y=up(s,y,v,o)),xy({},e,wy({},v,xy({axisType:o},r.defaultProps,{hide:!0,orientation:Ey[o]&&Ey[o][d%2],domain:y,originalDomain:r.defaultProps.domain,isCategorial:h,layout:l}))))},{})}},{key:"getActiveCoordinate",value:function(e,t,n){var r=this.props.layout,o=e.find(function(e){return e&&e.index===t});if(o){if("horizontal"===r)return{x:o.coordinate,y:n.y};if("vertical"===r)return{x:n.x,y:o.coordinate};if("centric"===r){var i=o.coordinate,a=n.radius;return xy({},n,gp(n.cx,n.cy,a,i),{angle:i,radius:a})}var u=o.coordinate,c=n.angle;return xy({},n,gp(n.cx,n.cy,u,c),{angle:c,radius:u})}return Ty}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return"undefined"!==typeof e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}}(this.container)),n=this.inRange(t.chartX,t.chartY);if(!n)return null;var r=this.state,i=r.xAxisMap,a=r.yAxisMap;if("axis"!==o&&i&&a){var u=F(i).scale,c=F(a).scale;return xy({},t,{xValue:u&&u.invert?u.invert(t.chartX):null,yValue:c&&c.invert?c.invert(t.chartY):null})}var l=this.state,s=l.orderedTooltipTicks,f=l.tooltipAxis,p=l.tooltipTicks,h=function(e,t,n,r){var o=-1,i=t.length;if(i>1){if(r&&"angleAxis"===r.axisType&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var a=r.range,u=0;u0?n[u-1].coordinate:n[i-1].coordinate,l=n[u].coordinate,s=u>=i-1?n[0].coordinate:n[u+1].coordinate,f=void 0;if(A(l-c)!==A(s-l)){var p=[];if(A(s-l)===A(a[1]-a[0])){f=s;var h=l+a[1]-a[0];p[0]=Math.min(h,(h+c)/2),p[1]=Math.max(h,(h+c)/2)}else{f=c;var d=s+a[1]-a[0];p[0]=Math.min(l,(d+l)/2),p[1]=Math.max(l,(d+l)/2)}var y=[Math.min(l,(f+l)/2),Math.max(l,(f+l)/2)];if(e>y[0]&&e<=y[1]||e>=p[0]&&e<=p[1]){o=n[u].index;break}}else{var v=Math.min(c,s),m=Math.max(c,s);if(e>(v+l)/2&&e<=(m+l)/2){o=n[u].index;break}}}else for(var g=0;g0&&g(t[g].coordinate+t[g-1].coordinate)/2&&e<=(t[g].coordinate+t[g+1].coordinate)/2||g===i-1&&e>(t[g].coordinate+t[g-1].coordinate)/2){o=t[g].index;break}}else o=0;return o}(this.calculateTooltipPos(n),s,p,f);if(h>=0&&p){var d=p[h]&&p[h].value;return xy({},t,{activeTooltipIndex:h,activeLabel:d,activePayload:this.getTooltipContent(h,d),activeCoordinate:this.getActiveCoordinate(s,h,n)})}return null}},{key:"getTooltipContent",value:function(e,t){var n=this.state,r=n.graphicalItems,o=n.tooltipAxis,i=this.constructor.getDisplayedData(this.props,this.state);return e<0||!r||!r.length||e>=i.length?null:r.reduce(function(n,r){if(r.props.hide)return n;var a,u=r.props,c=u.dataKey,l=u.name,s=u.unit,f=u.formatter,p=u.data,h=u.tooltipType;return(a=o.dataKey&&!o.allowDuplicatedCategory?B(p||i,o.dataKey,t):i[e])?by(n).concat([xy({},Z(r),{dataKey:c,unit:s,formatter:f,name:l||c,color:qf(r),value:Hf(a,c),type:h,payload:a})]):n},[])}},{key:"getFormatItems",value:function(e,t){var n=this,r=t.graphicalItems,o=t.stackGroups,a=t.offset,u=t.updateId,c=t.dataStartIndex,l=t.dataEndIndex,s=e.barSize,f=e.layout,p=e.barGap,h=e.barCategoryGap,d=e.maxBarSize,y=this.constructor.getAxisNameByLayout(f),v=y.numericAxisName,m=y.cateAxisName,g=this.constructor.hasBar(r),x=g&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,u=i.length;a=0});if(y&&y.length){var v=y[0].props.barSize,m=y[0].props[d];o[m]||(o[m]=[]),o[m].push({item:y[0],stackList:y.slice(1),barSize:b()(v)?t:v})}}return o}({barSize:s,stackGroups:o}),w=[];return r.forEach(function(r,s){var y,O=n.constructor.getDisplayedData(e,{dataStartIndex:c,dataEndIndex:l},r),_=r.props,k=_.dataKey,S=_.maxBarSize,E=r.props["".concat(v,"Id")],T=r.props["".concat(m,"Id")],j=i.reduce(function(e,n){var o,i=t["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],u=i&&i[a];return xy({},e,(wy(o={},n.axisType,u),wy(o,"".concat(n.axisType,"Ticks"),Zf(u)),o))},{}),M=j[m],P=j["".concat(m,"Ticks")],C=o&&o[E]&&o[E].hasStack&&function(e,t){var n=e.props.stackId;if(R(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i=0?r.stackedData[o]:null}}return null}(r,o[E].stackGroups),A=pp(M,P),N=b()(S)?d:S,I=g&&function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,u=i.length;if(u<1)return null;var c,l=z(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var s=!1,f=r/u,p=i.reduce(function(e,t){return e+t.barSize||0},0);(p+=(u-1)*l)>=r&&(p-=(u-1)*l,l=0),p>=r&&f>0&&(s=!0,p=u*(f*=.9));var h={offset:((r-p)/2>>0)-l,size:0};c=i.reduce(function(e,t){var n=Bf(e).concat([{item:t.item,position:{offset:h.offset+h.size+l,size:s?f:t.barSize}}]);return h=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){n.push({item:e,position:h})}),n},[])}else{var d=z(n,r,0,!0);r-2*d-(u-1)*l<=0&&(l=0);var y=(r-2*d-(u-1)*l)/u;y>1&&(y>>=0);var v=a===+a?Math.min(y,a):y;c=i.reduce(function(e,t,n){var r=Bf(e).concat([{item:t.item,position:{offset:d+(y+l)*n+(y-v)/2,size:v}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},[])}return c}({barGap:p,barCategoryGap:h,bandSize:A,sizeList:x[T],maxBarSize:N}),D=r&&r.type&&r.type.getComposedData;D&&w.push({props:xy({},D(xy({},j,{displayedData:O,props:e,dataKey:k,item:r,bandSize:A,barPosition:I,offset:a,stackedData:C,layout:f,dataStartIndex:c,dataEndIndex:l,onItemMouseLeave:Jf(n.handleItemMouseLeave,null,r.props.onMouseLeave),onItemMouseEnter:Jf(n.handleItemMouseEnter,null,r.props.onMouseEnter)})),(y={key:r.key||"item-".concat(s)},wy(y,v,j[v]),wy(y,m,j[m]),wy(y,"animationId",u),y)),childIndex:se(r,e.children),item:r})}),w}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,width:"horizontal"===e?o:r.width-1,height:"horizontal"===e?r.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,u=i.offset;if("horizontal"===o)n=e=a.x,t=u.top,r=u.top+u.height;else if("vertical"===o)r=t=a.y,e=u.left,n=u.left+u.width;else if(!b()(a.cx)||!b()(a.cy)){if("centric"!==o){var c=a.cx,l=a.cy,s=a.radius,f=a.startAngle,p=a.endAngle;return{points:[gp(c,l,s,f),gp(c,l,s,p)],cx:c,cy:l,radius:s,startAngle:f,endAngle:p}}var h=a.cx,d=a.cy,y=a.innerRadius,v=a.outerRadius,m=a.angle,g=gp(h,d,y,m),x=gp(h,d,v,m);e=g.x,t=g.y,n=x.x,r=x.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"calculateTooltipPos",value:function(e){var t=this.props.layout;return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var u=F(i);return wp({x:e,y:t},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=Q(e,eo)&&"axis"===o?{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}:{};return xy({},ee(this.props,this.handleOuterEvent),t)}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(e){var r=this,o=e.props,a=e.dataStartIndex,u=e.dataEndIndex,l=e.updateId;if(!re({props:o}))return null;var s=o.children,f=o.layout,p=o.stackOffset,h=o.data,d=o.reverseStackOrder,y=this.constructor.getAxisNameByLayout(f),v=y.numericAxisName,m=y.cateAxisName,g=K(s,n),b=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce(function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],u=e[a]||{hasStack:!1,stackGroups:{}};if(R(i)){var c=u.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),u.hasStack=!0,u.stackGroups[i]=c}else u.stackGroups[L("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return Wf({},e,Vf({},a,u))},{});return Object.keys(a).reduce(function(t,i){var u=a[i];return u.hasStack&&(u.stackGroups=Object.keys(u.stackGroups).reduce(function(t,i){var a=u.stackGroups[i];return Wf({},t,Vf({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:rp(e,a.items,o)}))},{})),Wf({},t,Vf({},i,u))},{})}(h,g,"".concat(v,"Id"),"".concat(m,"Id"),p,d),x=i.reduce(function(e,t){return xy({},e,wy({},"".concat(t.axisType,"Map"),r.getAxisMap(o,xy({},t,{graphicalItems:g,stackGroups:t.axisType===v&&b,dataStartIndex:a,dataEndIndex:u}))))},{}),w=this.calculateOffset(xy({},x,{props:o,graphicalItems:g}));Object.keys(x).forEach(function(e){x[e]=c(o,x[e],w,e.replace("Map",""),t)});var O=x["".concat(m,"Map")],_=this.tooltipTicksGenerator(O),k=this.getFormatItems(o,xy({},x,{dataStartIndex:a,dataEndIndex:u,updateId:l,graphicalItems:g,stackGroups:b,offset:w}));return xy({formatedGraphicalItems:k,graphicalItems:g,offset:w,stackGroups:b},_,x)}},{key:"addListener",value:function(){dy.on(yy,this.handleReceiveSyncEvent),dy.setMaxListeners&&dy._maxListeners&&dy.setMaxListeners(dy._maxListeners+1)}},{key:"removeListener",value:function(){dy.removeListener(yy,this.handleReceiveSyncEvent),dy.setMaxListeners&&dy._maxListeners&&dy.setMaxListeners(dy._maxListeners-1)}},{key:"calculateOffset",value:function(e){var t=e.props,n=e.graphicalItems,r=e.xAxisMap,o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,u=t.width,c=t.height,l=t.children,s=t.margin||{},f=Q(l,py),p=Q(l,sn),h=Object.keys(a).reduce(function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:xy({},e,wy({},r,e[r]+n.width))},{left:s.left||0,right:s.right||0}),d=Object.keys(o).reduce(function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:xy({},e,wy({},r,e[r]+n.height))},{top:s.top||0,bottom:s.bottom||0}),y=xy({},d,h),v=y.bottom;return f&&(y.bottom+=f.props.height||py.defaultProps.height),p&&this.legendInstance&&(y=function(e,t,n,r){var o=n.children,i=n.width,a=n.height,u=n.margin,c=i-(u.left||0)-(u.right||0),l=a-(u.top||0)-(u.bottom||0),s=$f({children:o,items:t,legendWidth:c,legendHeight:l}),f=e;if(s){var p=r||{},h=s.align,d=s.verticalAlign,y=s.layout;("vertical"===y||"horizontal"===y&&"center"===d)&&I(e[h])&&(f=Wf({},e,Vf({},h,f[h]+(p.width||0)))),("horizontal"===y||"vertical"===y&&"center"===h)&&I(e[d])&&(f=Wf({},e,Vf({},d,f[d]+(p.height||0))))}return f}(y,n,t,this.legendInstance.getBBox())),xy({brushBottom:v},y,{width:u-y.left-y.right,height:c-y.top-y.bottom})}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;b()(t)||dy.emit(yy,t,this.uniqueChartId,e)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formatedGraphicalItems,o=0,i=r.length;o=0})},y.getDisplayedData=function(e,t,n){var r=t.graphicalItems,o=t.dataStartIndex,i=t.dataEndIndex,a=(r||[]).reduce(function(e,t){var n=t.props.data;return n&&n.length?by(e).concat(by(n)):e},[]);if(a&&a.length>0)return a;if(n&&n.props&&n.props.data&&n.props.data.length>0)return n.props.data;var u=e.data;return u&&u.length&&I(o)&&I(i)?u.slice(o,i+1):[]},y}({chartName:"AreaChart",GraphicalChild:Kh,axisComponents:[{axisType:"xAxis",AxisComp:id},{axisType:"yAxis",AxisComp:dd}],formatAxisMap:function(e,t,n,r,o){var i=e.width,a=e.height,u=e.layout,c=Object.keys(t),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};return c.reduce(function(e,i){var a,c,s,f,p=t[i],h=p.orientation,d=p.domain,y=p.padding,v=void 0===y?{}:y,m=p.mirror,g=p.reversed,b="".concat(h).concat(m?"Mirror":"");a="xAxis"===r?[n.left+(v.left||0),n.left+n.width-(v.right||0)]:"yAxis"===r?"horizontal"===u?[n.top+n.height-(v.bottom||0),n.top+(v.top||0)]:[n.top+(v.top||0),n.top+n.height-(v.bottom||0)]:p.range,g&&(a=[a[1],a[0]]);var x=ep(p,o),w=x.scale,O=x.realScaleType;w.domain(d).range(a),tp(w);var _=op(w,Vs({},p,{realScaleType:O}));"xAxis"===r?(f="top"===h&&!m||"bottom"===h&&m,c=n.left,s=l[b]-f*p.height):"yAxis"===r&&(f="left"===h&&!m||"right"===h&&m,c=l[b]-f*p.width,s=n.top);var k=Vs({},p,_,{realScaleType:O,x:c,y:s,scale:w,width:"xAxis"===r?n.width:p.width,height:"yAxis"===r?n.height:p.height});return k.bandSize=pp(k,_),p.hide||"xAxis"!==r?p.hide||(l[b]+=(f?-1:1)*k.width):l[b]+=(f?-1:1)*k.height,Vs({},e,Hs({},i,k))},{})}});n.d(t,"d",function(){return sn}),n.d(t,"g",function(){return eo}),n.d(t,"f",function(){return fo}),n.d(t,"e",function(){return Qp}),n.d(t,"c",function(){return sh}),n.d(t,"a",function(){return Kh}),n.d(t,"h",function(){return id}),n.d(t,"i",function(){return dd}),n.d(t,"b",function(){return jy})},function(e,t,n){"use strict";var r=n(2),o=n(7),i=n(1),a=n.n(i),u=(n(0),n(79)),c=n.n(u),l=n(404);var s=function(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r},f=n(177),p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i=t.defaultTheme,u=t.withTheme,p=void 0!==u&&u,h=t.name,d=Object(o.a)(t,["defaultTheme","withTheme","name"]),y=h,v=Object(l.a)(e,Object(r.a)({defaultTheme:i,Component:n,name:h||n.displayName,classNamePrefix:y},d)),m=a.a.forwardRef(function(e,t){e.classes;var u,c=e.innerRef,l=Object(o.a)(e,["classes","innerRef"]),d=v(e),y=l;return("string"===typeof h||p)&&(u=Object(f.a)()||i,h&&(y=s({theme:u,name:h,props:l})),p&&!y.theme&&(y.theme=u)),a.a.createElement(n,Object(r.a)({ref:c||t,classes:d},y))});return c()(m,n),m}},h=n(35);t.a=function(e,t){return p(e,Object(r.a)({defaultTheme:h.a},t))}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(1),o=n.n(r),i="undefined"!==typeof window?o.a.useLayoutEffect:o.a.useEffect;function a(e){var t=o.a.useRef(e);return i(function(){t.current=e}),o.a.useCallback(function(e){return(0,t.current)(e)},[])}},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"b",function(){return c}),n.d(t,"a",function(){return l}),n.d(t,"d",function(){return s});n(13);function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return en?n:e}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length/3,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(function(e){return e+e})),n?"rgb(".concat(n.map(function(e){return parseInt(e,16)}).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(["Material-UI: unsupported `".concat(e,"` color."),"We support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()."].join("\n"));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map(function(e){return parseFloat(e)})}}function i(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function a(e,t){var n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e){var t="hsl"===(e=o(e)).type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,a=t[2]/100,u=r*Math.min(a,1-a),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return a-u*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",s=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),i({type:l,values:s})}(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){return e=o(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,i(e)}function l(e,t){if(e=o(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return i(e)}function s(e,t){if(e=o(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return i(e)}},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(1),o=n.n(r);function i(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function a(e,t){return o.a.useMemo(function(){return null==e&&null==t?null:function(n){i(e,n),i(t,n)}},[e,t])}},function(e,t,n){var r=n(144);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(130),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(208)},function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map(function(e){return i(e,n)})}function u(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]}(e))}function c(e,t,n){var r={};return n.isMergeableObject(e)&&u(e).forEach(function(t){r[t]=i(e[t],n)}),u(t).forEach(function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"===typeof n?n:l}(o,n)(e[o],t[o],n):r[o]=i(t[o],n)}),r}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):c(e,t,n):i(t,n)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})};var s=l;e.exports=s},function(e,t,n){var r=n(98);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(159),o=n(373),i=n(49);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(268),o=n(321),i=n(49),a=n(6),u=n(330);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):u(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});n(13);function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){var r=n(33),o=n(6),i=n(28),a="[object String]";e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&r(e)==a}},,function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){var r=n(59),o=n(266),i=n(267),a="[object Null]",u="[object Undefined]",c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?u:a:c&&c in Object(e)?o(e):i(e)}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";var r=n(176),o=Object(r.a)();t.a=o},function(e,t,n){(function(t){for(var r=n(339),o="undefined"===typeof window?t:window,i=["moz","webkit"],a="AnimationFrame",u=o["request"+a],c=o["cancel"+a]||o["cancelRequest"+a],l=0;!u&&l1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])});e.exports=u},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,u=void 0===n?i.standard:n,c=t.easing,l=void 0===c?o.easeInOut:c,s=t.delay,f=void 0===s?0:s;Object(r.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"===typeof u?u:a(u)," ").concat(l," ").concat("string"===typeof f?f:a(f))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},function(e,t,n){e.exports=n(211)},function(e,t,n){var r=n(159),o=n(374),i=n(49);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},,function(e,t,n){var r=n(45);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(270),o=n(271),i=n(272),a=n(273),u=n(274);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t0?r:e)-l/100).concat(u,")")},between:p,only:function(e){return p(e,e)},width:function(e){return n[e]}},s)}},function(e,t,n){"use strict";var r=n(214),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function c(e){return r.isMemo(e)?a:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var l=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(d){var o=h(n);o&&o!==d&&e(t,o,r)}var a=s(n);f&&(a=a.concat(f(n)));for(var u=c(t),y=c(n),v=0;vu)throw r=0,new Error("Call stack overflow for "+l);if(""===e)throw new Error(i+"(): '"+l+"' must contain a non-whitespace string");var s=function(e){var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,o=r.exec(e);for(;o;)o&&o[1]&&(-1===n.indexOf(o[1].toLowerCase())&&(t.push(o[1]),n.push(o[1].toLowerCase())),o=r.exec(e));return t}(e=function(e,t){e=e.replace(/((?:\-[a-z]+\-)?calc)/g,"");var r,i="",a=e;for(;r=c.exec(a);){r[0].index>0&&(i+=a.substring(0,r[0].index));var u=o("(",")",a.substring([0].index));if(""===u.body)throw new Error("'"+e+"' must contain a non-whitespace string");var l=n(u.body,"",t);i+=u.pre+l,a=u.post}return i+a}(e,l));if(s.length>1||e.indexOf("var(")>-1)return i+"("+e+")";var f=s[0]||"";"%"===f&&(e=e.replace(/\b[0-9\.]+%/g,function(e){return.01*parseFloat(e.slice(0,-1))}));var p,h=e.replace(new RegExp(f,"gi"),"");try{p=a.eval(h)}catch(d){return i+"("+e+")"}return"%"===f&&(p*=100),(i.length||"%"===f)&&(p=Math.round(p*t)/t),p+=f}return r=0,t=Math.pow(10,void 0===t?5:t),e=e.replace(/\n+/g," "),i(e,/((?:\-[a-z]+\-)?calc)\(/,n)}},function(e,t,n){var r=n(65),o=n(117),i=n(86),a=Object.defineProperty;t.f=n(46)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(u){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(45);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(243),o=n(91);e.exports=function(e){return r(o(e))}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(9),o=n(91),i=n(32),a=n(94),u="["+a+"]",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),s=function(e,t,n){var o={},u=i(function(){return!!a[e]()||"\u200b\x85"!="\u200b\x85"[e]()}),c=o[e]=u?t(f):a[e];n&&(o[n]=c),r(r.P+r.F*u,"String",o)},f=s.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(l,"")),e};e.exports=s},function(e,t){e.exports="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(e,t){e.exports=function(e,t){return e===t||e!==e&&t!==t}},function(e,t,n){var r=n(37)(n(21),"Map");e.exports=r},function(e,t,n){var r=n(284),o=n(291),i=n(293),a=n(294),u=n(295);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=n}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(6),o=n(48),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},function(e,t,n){var r=n(14),o=n(367),i=n(158),a="Expected a function",u=Math.max,c=Math.min;e.exports=function(e,t,n){var l,s,f,p,h,d,y=0,v=!1,m=!1,g=!0;if("function"!=typeof e)throw new TypeError(a);function b(t){var n=l,r=s;return l=s=void 0,y=t,p=e.apply(r,n)}function x(e){var n=e-d;return void 0===d||n>=t||n<0||m&&e-y>=f}function w(){var e=o();if(x(e))return O(e);h=setTimeout(w,function(e){var n=t-(e-d);return m?c(n,f-(e-y)):n}(e))}function O(e){return h=void 0,g&&l?b(e):(l=s=void 0,p)}function _(){var e=o(),n=x(e);if(l=arguments,s=this,d=e,n){if(void 0===h)return function(e){return y=e,h=setTimeout(w,t),v?b(e):p}(d);if(m)return clearTimeout(h),h=setTimeout(w,t),b(d)}return void 0===h&&(h=setTimeout(w,t)),p}return t=i(t)||0,r(n)&&(v=!!n.leading,f=(m="maxWait"in n)?u(i(n.maxWait)||0,t):f,g="trailing"in n?!!n.trailing:g),_.cancel=function(){void 0!==h&&clearTimeout(h),y=0,l=d=s=h=void 0},_.flush=function(){return void 0===h?p:O(o())},_}},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(l){return void n(l)}u.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var a=e.apply(t,n);function u(e){r(a,o,i,u,c,"next",e)}function c(e){r(a,o,i,u,c,"throw",e)}u(void 0)})}}n.d(t,"a",function(){return o})},function(e,t,n){var r=n(33),o=n(341),i=n(28),a="[object Object]",u=Function.prototype,c=Object.prototype,l=u.toString,s=c.hasOwnProperty,f=l.call(Object);e.exports=function(e){if(!i(e)||r(e)!=a)return!1;var t=o(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==f}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getTickValues",{enumerable:!0,get:function(){return r.getTickValues}}),Object.defineProperty(t,"getNiceTickValues",{enumerable:!0,get:function(){return r.getNiceTickValues}}),Object.defineProperty(t,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return r.getTickValuesFixedDomain}});var r=n(376)},function(e,t,n){var r=n(380),o=n(151),i=n(27);e.exports=function(e,t){var n={};return t=i(t,3),o(e,function(e,o,i){r(n,o,t(e,o,i))}),n}},function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var r=n(242),o=n(119),i=n(90),a=n(86),u=n(66),c=n(117),l=Object.getOwnPropertyDescriptor;t.f=n(46)?l:function(e,t){if(e=i(e),t=a(t,!0),c)try{return l(e,t)}catch(n){}if(u(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(66),o=n(90),i=n(245)(!1),a=n(127)("IE_PROTO");e.exports=function(e,t){var n,u=o(e),c=0,l=[];for(n in u)n!=a&&r(u,n)&&l.push(n);for(;t.length>c;)r(u,n=t[c++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){var r=n(122)("keys"),o=n(121);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(89);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(45),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(44))},function(e,t,n){var r=n(68),o=n(275),i=n(276),a=n(277),u=n(278),c=n(279);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=u,l.prototype.set=c,e.exports=l},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}},function(e,t,n){var r=n(99),o=n(134),i=n(100),a=1,u=2;e.exports=function(e,t,n,c,l,s){var f=n&a,p=e.length,h=t.length;if(p!=h&&!(f&&h>p))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var y=-1,v=!0,m=n&u?new r:void 0;for(s.set(e,t),s.set(t,e);++y-1}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i=0||(o[n]=e[n]);return o}(t,["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(e,r);var i=o.default.Children.only(n);return o.default.cloneElement(i,r)},r}(o.default.Component);function h(){}p.contextTypes={transitionGroup:r.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4;var d=(0,a.polyfill)(p);t.default=d},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,u=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?u="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(u="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==u){var c=e.displayName||e.name,l="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==u?"\n "+u:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",function(){return a}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(0))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=u(n(0)),o=u(n(1)),i=n(153),a=n(361);function u(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),i=s(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i:o.default.createElement(t,r,i)},r}(o.default.Component);f.childContextTypes={transitionGroup:r.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var p=(0,i.polyfill)(f);t.default=p,e.exports=t.default},function(e,t,n){var r=n(135),o=n(362);e.exports=function e(t,n,i,a,u){var c=-1,l=t.length;for(i||(i=o),u||(u=[]);++c0&&i(s)?n>1?e(s,n-1,i,a,u):r(u,s):a||(u[u.length]=s)}return u}},function(e,t,n){var r=n(74),o=n(47);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,function(e,r,o){i[++n]=t(e,r,o)}),i}},function(e,t,n){var r=n(14),o=n(48),i=NaN,a=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=c.test(e);return n||l.test(e)?s(e.slice(2),n?2:8):u.test(e)?i:+e}},function(e,t,n){var r=n(48);e.exports=function(e,t,n){for(var o=-1,i=e.length;++o(u=(a=Math.ceil(p/v))>u?a+1:u+1)&&(i=u,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((u=l.length)-(i=s.length)<0&&(i=u,r=s,s=l,l=r),n=0;i;)n=(l[--i]=l[i]+s[i]+n)/y|0,l[i]%=y;for(n&&(l.unshift(n),++o),u=l.length;0==l[--u];)l.pop();return t.d=l,t.e=o,c?M(t,p):t}function x(e,t,n){if(e!==~~e||en)throw Error(s+e)}function w(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;te.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;te.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*v;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},g.dividedBy=g.div=function(e){return O(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this.constructor;return M(O(this,new t(e),0,1),t.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return k(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return 0===this.s},g.lessThan=g.lt=function(e){return this.cmp(e)<0},g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,n=this,r=n.constructor,o=r.precision,a=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(i))throw Error(l+"NaN");if(n.s<1)throw Error(l+(n.s?"NaN":"-Infinity"));return n.eq(i)?new r(0):(c=!1,t=O(T(n,a),T(e,a),a),c=!0,M(t,o))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?P(t,e):b(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(l+"NaN");return n.s?(c=!1,t=O(n,e,0,1).times(e),c=!0,n.minus(t)):M(new r(n),o)},g.naturalExponential=g.exp=function(){return _(this)},g.naturalLogarithm=g.ln=function(){return T(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?b(t,e):P(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(s+e);if(t=k(o)+1,n=(r=o.d.length-1)*v+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,o,i,a,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(l+"NaN")}for(e=k(u),c=!1,0==(o=Math.sqrt(+u))||o==1/0?(((t=w(u.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=p((e+1)/2)-(e<0||e%2),r=new s(t=o==1/0?"1e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new s(o.toString()),o=a=(n=s.precision)+3;;)if(r=(i=r).plus(O(u,i,a+2)).times(.5),w(i.d).slice(0,a)===(t=w(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(M(i,n+1,0),i.times(i).eq(u)){r=i;break}}else if("9999"!=t)break;a+=4}return c=!0,M(r,n)},g.times=g.mul=function(e){var t,n,r,o,i,a,u,l,s,f=this,p=f.constructor,h=f.d,d=(e=new p(e)).d;if(!f.s||!e.s)return new p(0);for(e.s*=f.s,n=f.e+e.e,(l=h.length)<(s=d.length)&&(i=h,h=d,d=i,a=l,l=s,s=a),i=[],r=a=l+s;r--;)i.push(0);for(r=s;--r>=0;){for(t=0,o=l+r;o>r;)u=i[o]+d[r]*h[o-r-1]+t,i[o--]=u%y|0,t=u/y|0;i[o]=(i[o]+t)%y|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,c?M(e,p.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(x(e,0,a),void 0===t?t=r.rounding:x(t,0,8),M(n,e+k(n)+1,t))},g.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=C(r,!0):(x(e,0,a),void 0===t?t=o.rounding:x(t,0,8),n=C(r=M(new o(r),e+1,t),!0,e+1)),n},g.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?C(o):(x(e,0,a),void 0===t?t=i.rounding:x(t,0,8),n=C((r=M(new i(o),e+k(o)+1,t)).abs(),!1,e+k(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return M(new t(e),k(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,o,a,u,s=this,f=s.constructor,h=+(e=new f(e));if(!e.s)return new f(i);if(!(s=new f(s)).s){if(e.s<1)throw Error(l+"Infinity");return s}if(s.eq(i))return s;if(r=f.precision,e.eq(i))return M(s,r);if(u=(t=e.e)>=(n=e.d.length-1),a=s.s,u){if((n=h<0?-h:h)<=9007199254740991){for(o=new f(i),t=Math.ceil(r/v+4),c=!1;n%2&&A((o=o.times(s)).d,t),0!==(n=p(n/2));)A((s=s.times(s)).d,t);return c=!0,e.s<0?new f(i).div(o):M(o,r)}}else if(a<0)throw Error(l+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,c=!1,o=e.times(T(s,r+12)),c=!0,(o=_(o)).s=a,o},g.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=C(o,(n=k(o))<=i.toExpNeg||n>=i.toExpPos):(x(e,1,a),void 0===t?t=i.rounding:x(t,0,8),r=C(o=M(new i(o),e,t),e<=(n=k(o))||n<=i.toExpNeg,e)),r},g.toSignificantDigits=g.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(x(e,1,a),void 0===t?t=n.rounding:x(t,0,8)),M(new n(this),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=k(e),n=e.constructor;return C(e,t<=n.toExpNeg||t>=n.toExpPos)};var O=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%y|0,r=n/y|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;ot[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]1;)e.shift()}return function(r,o,i,a){var u,c,s,f,p,h,d,m,g,b,x,w,O,_,S,E,T,j,P=r.constructor,C=r.s==o.s?1:-1,A=r.d,N=o.d;if(!r.s)return new P(r);if(!o.s)throw Error(l+"Division by zero");for(c=r.e-o.e,T=N.length,S=A.length,m=(d=new P(C)).d=[],s=0;N[s]==(A[s]||0);)++s;if(N[s]>(A[s]||0)&&--c,(w=null==i?i=P.precision:a?i+(k(r)-k(o))+1:i)<0)return new P(0);if(w=w/v+2|0,s=0,1==T)for(f=0,N=N[0],w++;(s1&&(N=e(N,f),A=e(A,f),T=N.length,S=A.length),_=T,b=(g=A.slice(0,T)).length;b=y/2&&++E;do{f=0,(u=t(N,g,T,b))<0?(x=g[0],T!=b&&(x=x*y+(g[1]||0)),(f=x/E|0)>1?(f>=y&&(f=y-1),1==(u=t(p=e(N,f),g,h=p.length,b=g.length))&&(f--,n(p,T16)throw Error(f+k(e));if(!e.s)return new p(i);for(null==t?(c=!1,u=d):u=t,a=new p(.03125);e.abs().gte(.1);)e=e.times(a),s+=5;for(u+=Math.log(h(2,s))/Math.LN10*2+5|0,n=r=o=new p(i),p.precision=u;;){if(r=M(r.times(e),u),n=n.times(++l),w((a=o.plus(O(r,n,u))).d).slice(0,u)===w(o.d).slice(0,u)){for(;s--;)o=M(o.times(o),u);return p.precision=d,null==t?(c=!0,M(o,d)):o}o=a}}function k(e){for(var t=e.e*v,n=e.d[0];n>=10;n/=10)t++;return t}function S(e,t,n){if(t>e.LN10.sd())throw c=!0,n&&(e.precision=n),Error(l+"LN10 precision limit exceeded");return M(new e(e.LN10),t)}function E(e){for(var t="";e--;)t+="0";return t}function T(e,t){var n,r,o,a,u,s,f,p,h,d=1,y=e,v=y.d,m=y.constructor,g=m.precision;if(y.s<1)throw Error(l+(y.s?"NaN":"-Infinity"));if(y.eq(i))return new m(0);if(null==t?(c=!1,p=g):p=t,y.eq(10))return null==t&&(c=!0),S(m,p);if(p+=10,m.precision=p,r=(n=w(v)).charAt(0),a=k(y),!(Math.abs(a)<15e14))return f=S(m,p+2,g).times(a+""),y=T(new m(r+"."+n.slice(1)),p-10).plus(f),m.precision=g,null==t?(c=!0,M(y,g)):y;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=w((y=y.times(e)).d)).charAt(0),d++;for(a=k(y),r>1?(y=new m("0."+n),a++):y=new m(r+"."+n.slice(1)),s=u=y=O(y.minus(i),y.plus(i),p),h=M(y.times(y),p),o=3;;){if(u=M(u.times(h),p),w((f=s.plus(O(u,new m(o),p))).d).slice(0,p)===w(s.d).slice(0,p))return s=s.times(2),0!==a&&(s=s.plus(S(m,p+2,g).times(a+""))),s=O(s,new m(d),p),m.precision=g,null==t?(c=!0,M(s,g)):s;s=f,o+=2}}function j(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=p(n/v),e.d=[],r=(n+1)%v,n<0&&(r+=v),rm||e.e<-m))throw Error(f+n)}else e.s=0,e.e=0,e.d=[0];return e}function M(e,t,n){var r,o,i,a,u,l,s,d,g=e.d;for(a=1,i=g[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=v,o=t,s=g[d=0];else{if((d=Math.ceil((r+1)/v))>=(i=g.length))return e;for(s=i=g[d],a=1;i>=10;i/=10)a++;o=(r%=v)-v+a}if(void 0!==n&&(u=s/(i=h(10,a-o-1))%10|0,l=t<0||void 0!==g[d+1]||s%i,l=n<4?(u||l)&&(0==n||n==(e.s<0?3:2)):u>5||5==u&&(4==n||l||6==n&&(r>0?o>0?s/h(10,a-o):0:g[d-1])%10&1||n==(e.s<0?8:7))),t<1||!g[0])return l?(i=k(e),g.length=1,t=t-i-1,g[0]=h(10,(v-t%v)%v),e.e=p(-t/v)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(0==r?(g.length=d,i=1,d--):(g.length=d+1,i=h(10,v-r),g[d]=o>0?(s/h(10,a-o)%h(10,o)|0)*i:0),l)for(;;){if(0==d){(g[0]+=i)==y&&(g[0]=1,++e.e);break}if(g[d]+=i,g[d]!=y)break;g[d--]=0,i=1}for(r=g.length;0===g[--r];)g.pop();if(c&&(e.e>m||e.e<-m))throw Error(f+k(e));return e}function P(e,t){var n,r,o,i,a,u,l,s,f,p,h=e.constructor,d=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),c?M(t,d):t;if(l=e.d,p=t.d,r=t.e,s=e.e,l=l.slice(),a=s-r){for((f=a<0)?(n=l,a=-a,u=p.length):(n=p,r=s,u=l.length),a>(o=Math.max(Math.ceil(d/v),u)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((f=(o=l.length)<(u=p.length))&&(u=o),o=0;o0;--o)l[u++]=0;for(o=p.length;o>a;){if(l[--o]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)0&&(o+1===a&&(i+="."),i+=E(r))),e.s<0?"-"+i:i}function A(e,t){if(e.length>t)return e.length=t,!0}function N(e){if(!e||"object"!==typeof e)throw Error(l+"Object expected");var t,n,r,o=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=o[t+1]&&r<=o[t+2]))throw Error(s+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(s+n+": "+r);this[n]=new this(r)}return this}(u=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(s+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):j(t,e.toString())}if("string"!==typeof e)throw Error(s+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!d.test(e))throw Error(s+e);j(t,e)}if(i.prototype=g,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=e,i.config=i.set=N,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n=t?n.apply(void 0,c):e(t-s,u(function(){for(var e=arguments.length,t=new Array(e),o=0;o0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,u=c,console&&console.warn&&console.warn(u)}return e}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=function(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var c=o[e];if(void 0===c)return!1;if("function"===typeof c)i(c,this,t);else{var l=c.length,s=d(c,l);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},u.prototype.listeners=function(e){return p(this,e,!0)},u.prototype.rawListeners=function(e){return p(this,e,!1)},u.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},u.prototype.listenerCount=h,u.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){function n(e){return(n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t){return"function"===typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t,n){var r=n(398),o=n(399),i=n(400);e.exports=function(e,t){return r(e)||o(e,t)||i()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};t.default=r},function(e,t,n){"use strict";var r=n(18),o=n(2),i=n(7),a=n(23),u=n.n(a);function c(e){return!0===(null!=(t=e)&&"object"===typeof t&&!1===Array.isArray(t))&&"[object Object]"===Object.prototype.toString.call(e);var t}function l(e){var t,n;return!1!==c(e)&&("function"===typeof(t=e.constructor)&&(!1!==c(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}n(13);var s=n(78);function f(e,t,n){var i;return Object(o.a)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(o.a)({paddingLeft:t(2),paddingRight:t(2)},n,Object(r.a)({},e.up("sm"),Object(o.a)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(i={minHeight:56},Object(r.a)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(i,e.up("sm"),{minHeight:64}),i)},n)}var p={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},h={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},y={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={black:"#000",white:"#fff"},m=n(15),g={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:v.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.08)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.14)",disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)"}},b={text:{primary:v.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:v.white,hover:"rgba(255, 255, 255, 0.1)",hoverOpacity:.1,selected:"rgba(255, 255, 255, 0.2)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)"}};function x(e,t,n,r){e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(m.d)(e.main,r):"dark"===t&&(e.dark=Object(m.a)(e.main,1.5*r)))}function w(e){return Math.round(1e5*e)/1e5}var O={textTransform:"uppercase"},_='"Roboto", "Helvetica", "Arial", sans-serif';function k(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,a=void 0===r?_:r,c=n.fontSize,l=void 0===c?14:c,s=n.fontWeightLight,f=void 0===s?300:s,p=n.fontWeightRegular,h=void 0===p?400:p,d=n.fontWeightMedium,y=void 0===d?500:d,v=n.fontWeightBold,m=void 0===v?700:v,g=n.htmlFontSize,b=void 0===g?16:g,x=n.allVariants,k=Object(i.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants"]),S=l/14,E=function(e){return"".concat(e/b*S,"rem")},T=function(e,t,n,r,i){return Object(o.a)({fontFamily:a,fontWeight:e,fontSize:E(t),lineHeight:n},a===_?{letterSpacing:"".concat(w(r/t),"em")}:{},{},i,{},x)},j={h1:T(f,96,1,-1.5),h2:T(f,60,1,-.5),h3:T(h,48,1.04,0),h4:T(h,34,1.17,.25),h5:T(h,24,1.33,0),h6:T(y,20,1.6,.15),subtitle1:T(h,16,1.75,.15),subtitle2:T(y,14,1.57,.1),body1:T(h,16,1.5,.15),body2:T(h,14,1.43,.15),button:T(y,14,1.75,.4,O),caption:T(h,12,1.66,.4),overline:T(h,12,2.66,1,O)};return u()(Object(o.a)({htmlFontSize:b,pxToRem:E,round:w,fontFamily:a,fontSize:l,fontWeightLight:f,fontWeightRegular:h,fontWeightMedium:y,fontWeightBold:m},j),k,{clone:!1})}var S=.2,E=.14,T=.12;function j(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(S,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(E,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(T,")")].join(",")}var M=["none",j(0,1,3,0,0,1,1,0,0,2,1,-1),j(0,1,5,0,0,2,2,0,0,3,1,-2),j(0,1,8,0,0,3,4,0,0,3,3,-2),j(0,2,4,-1,0,4,5,0,0,1,10,0),j(0,3,5,-1,0,5,8,0,0,1,14,0),j(0,3,5,-1,0,6,10,0,0,1,18,0),j(0,4,5,-2,0,7,10,1,0,2,16,1),j(0,5,5,-3,0,8,10,1,0,3,14,2),j(0,5,6,-3,0,9,12,1,0,3,16,2),j(0,6,6,-3,0,10,14,1,0,4,18,3),j(0,6,7,-4,0,11,15,1,0,4,20,3),j(0,7,8,-4,0,12,17,2,0,5,22,4),j(0,7,8,-4,0,13,19,2,0,5,24,4),j(0,7,9,-4,0,14,21,2,0,5,26,4),j(0,8,9,-5,0,15,22,2,0,6,28,5),j(0,8,10,-5,0,16,24,2,0,6,30,5),j(0,8,11,-5,0,17,26,2,0,6,32,5),j(0,9,11,-5,0,18,28,2,0,7,34,6),j(0,9,12,-6,0,19,29,2,0,7,36,6),j(0,10,13,-6,0,20,31,3,0,8,38,7),j(0,10,13,-6,0,21,33,3,0,8,40,7),j(0,10,14,-6,0,22,35,3,0,8,42,7),j(0,11,14,-7,0,23,36,3,0,9,44,8),j(0,11,15,-7,0,24,38,3,0,9,46,8)],P={borderRadius:4};var C=n(61),A={mobileStepper:1e3,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,a=void 0===r?{}:r,c=e.palette,w=void 0===c?{}:c,O=e.shadows,_=e.spacing,S=e.typography,E=void 0===S?{}:S,T=Object(i.a)(e,["breakpoints","mixins","palette","shadows","spacing","typography"]),j=function(e){var t=e.primary,n=void 0===t?{light:p[300],main:p[500],dark:p[700]}:t,r=e.secondary,a=void 0===r?{light:h.A200,main:h.A400,dark:h.A700}:r,c=e.error,l=void 0===c?{light:y[300],main:y[500],dark:y[700]}:c,s=e.type,f=void 0===s?"light":s,w=e.contrastThreshold,O=void 0===w?3:w,_=e.tonalOffset,k=void 0===_?.2:_,S=Object(i.a)(e,["primary","secondary","error","type","contrastThreshold","tonalOffset"]);function E(e){return Object(m.c)(e,b.text.primary)>=O?b.text.primary:g.text.primary}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;return!(e=Object(o.a)({},e)).main&&e[t]&&(e.main=e[t]),x(e,"light",n,k),x(e,"dark",r,k),e.contrastText||(e.contrastText=E(e.main)),e}var j={dark:b,light:g};return u()(Object(o.a)({common:v,type:f,primary:T(n),secondary:T(a,"A400","A200","A700"),error:T(l),grey:d,contrastThreshold:O,getContrastText:E,augmentColor:T,tonalOffset:k},j[f]),S,{clone:!1})}(w),N=Object(s.a)(n),I=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;e="function"===typeof t?t:function(e){return t*e};var n=function(){for(var t=arguments.length,n=new Array(t),r=0;rA.length&&A.push(e)}function R(e,t,n){return null==e?0:function e(t,n,r,o){var u=typeof t;"undefined"!==u&&"boolean"!==u||(t=null);var c=!1;if(null===t)c=!0;else switch(u){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case i:case a:c=!0}}if(c)return r(o,t,""===n?"."+D(t,0):n),1;if(c=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;lthis.eventPool.length&&this.eventPool.push(e)}function fe(e){e.eventPool=[],e.getPooled=le,e.release=se}o(ce.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:ue,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ue,this._dispatchInstances=this._dispatchListeners=null}}),ce.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ce.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,fe(n),n},fe(ce);var pe=ce.extend({data:null}),he=ce.extend({data:null}),de=[9,13,27,32],ye=G&&"CompositionEvent"in window,ve=null;G&&"documentMode"in document&&(ve=document.documentMode);var me=G&&"TextEvent"in window&&!ve,ge=G&&(!ye||ve&&8=ve),be=String.fromCharCode(32),xe={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},we=!1;function Oe(e,t){switch(e){case"keyup":return-1!==de.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function _e(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var ke=!1;var Se={eventTypes:xe,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(ye)e:{switch(e){case"compositionstart":o=xe.compositionStart;break e;case"compositionend":o=xe.compositionEnd;break e;case"compositionupdate":o=xe.compositionUpdate;break e}o=void 0}else ke?Oe(e,n)&&(o=xe.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=xe.compositionStart);return o?(ge&&"ko"!==n.locale&&(ke||o!==xe.compositionStart?o===xe.compositionEnd&&ke&&(i=ie()):(re="value"in(ne=r)?ne.value:ne.textContent,ke=!0)),o=pe.getPooled(o,t,n,r),i?o.data=i:null!==(i=_e(n))&&(o.data=i),H(o),i=o):i=null,(e=me?function(e,t){switch(e){case"compositionend":return _e(t);case"keypress":return 32!==t.which?null:(we=!0,be);case"textInput":return(e=t.data)===be&&we?null:e;default:return null}}(e,n):function(e,t){if(ke)return"compositionend"===e||!ye&&Oe(e,t)?(e=ie(),oe=re=ne=null,ke=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1