1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81133,94184],{21924:function(e,t,n){"use strict";var r=n(10492),i=n(55559),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},55559:function(e,t,n){"use strict";var r=n(58612),i=n(10492),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(r,a,arguments);return u&&c&&u(t,"length").configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))}),t};var applyBind=function(){return s(r,o,arguments)};c?c(e.exports,"apply",{value:applyBind}):e.exports.apply=applyBind},10492:function(e,t,n){"use strict";var r,i=SyntaxError,o=Function,a=TypeError,getEvalledConstructor=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(e){s=null}var throwTypeError=function(){throw new a},u=s?function(){try{return arguments.callee,throwTypeError}catch(e){try{return s(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError,c=n(41405)(),l=Object.getPrototypeOf||function(e){return e.__proto__},f={},p="undefined"==typeof Uint8Array?r:l(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":c?l([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1IteratorPrototype%":c?l(l([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&c?l(new Map()[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&c?l(new Set()[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c?l(""[Symbol.iterator]()):r,"%Symbol%":c?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};try{null.error}catch(e){var d=l(l(e));h["%Error.prototype%"]=d}var doEval=function doEval(e){var t;if("%AsyncFunction%"===e)t=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===e)t=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===e)t=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===e){var n=doEval("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var r=doEval("%AsyncGenerator%");r&&(t=l(r.prototype))}return h[e]=t,t},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n(58612),m=n(17642),b=g.call(Function.call,Array.prototype.concat),v=g.call(Function.apply,Array.prototype.splice),_=g.call(Function.call,String.prototype.replace),x=g.call(Function.call,String.prototype.slice),O=g.call(Function.call,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,stringToPath=function(e){var t=x(e,0,1),n=x(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return _(e,k,function(e,t,n,i){r[r.length]=n?_(i,S,"$1"):t||e}),r},getBaseIntrinsic=function(e,t){var n,r=e;if(m(y,r)&&(r="%"+(n=y[r])[0]+"%"),m(h,r)){var o=h[r];if(o===f&&(o=doEval(r)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=stringToPath(e),r=n.length>0?n[0]:"",o=getBaseIntrinsic("%"+r+"%",t),u=o.name,c=o.value,l=!1,f=o.alias;f&&(r=f[0],v(n,b([0,1],f)));for(var p=1,d=!0;p<n.length;p+=1){var y=n[p],g=x(y,0,1),_=x(y,-1);if(('"'===g||"'"===g||"`"===g||'"'===_||"'"===_||"`"===_)&&g!==_)throw new i("property names with quotes must have matching quotes");if("constructor"!==y&&d||(l=!0),r+="."+y,m(h,u="%"+r+"%"))c=h[u];else if(null!=c){if(!(y in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&p+1>=n.length){var k=s(c,y);c=(d=!!k)&&"get"in k&&!("originalValue"in k.get)?k.get:c[y]}else d=m(c,y),c=c[y];d&&!l&&(h[u]=c)}}return c}},94184:function(e,t){var n;/*! 2 Copyright (c) 2018 Jed Watson. 3 Licensed under the MIT License (MIT), see 4 http://jedwatson.github.io/classnames 5*/!function(){"use strict";var r={}.hasOwnProperty;function classNames(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var o=classNames.apply(null,n);o&&e.push(o)}}else if("object"===i){if(n.toString===Object.prototype.toString)for(var a in n)r.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}}return e.join(" ")}e.exports?(classNames.default=classNames,e.exports=classNames):void 0!==(n=(function(){return classNames}).apply(t,[]))&&(e.exports=n)}()},10251:function(e,t,n){var r=n(82215),i=n(82584),o=n(20609),a=n(98420),s=n(2847),u=n(18923),c=Date.prototype.getTime;function isBuffer(e){return!!e&&"object"==typeof e&&"number"==typeof e.length&&"function"==typeof e.copy&&"function"==typeof e.slice&&(!(e.length>0)||"number"==typeof e[0])}
5e.exports=function deepEqual(e,t,n){var l=n||{};return(l.strict?!!o(e,t):e===t)||(e&&t&&("object"==typeof e||"object"==typeof t)?function(e,t,n){if(typeof e!=typeof t||null==e||null==t||e.prototype!==t.prototype||i(e)!==i(t))return!1;var o,l,f=a(e),p=a(t);if(f!==p)return!1;if(f||p)return e.source===t.source&&s(e)===s(t);if(u(e)&&u(t))return c.call(e)===c.call(t);var h=isBuffer(e),d=isBuffer(t);if(h!==d)return!1;if(h||d){if(e.length!==t.length)return!1;for(o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}if(typeof e!=typeof t)return!1;try{var y=r(e),g=r(t)}catch(e){return!1}if(y.length!==g.length)return!1;for(y.sort(),g.sort(),o=y.length-1;o>=0;o--)if(y[o]!=g[o])return!1;for(o=y.length-1;o>=0;o--)if(!deepEqual(e[l=y[o]],t[l],n))return!1;return!0}(e,t,l):l.strict?o(e,t):e==t)}},4289:function(e,t,n){"use strict";var r=n(82215),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=s&&function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),defineProperty=function(e,t,n,r){(!(t in e)||"function"==typeof r&&"[object Function]"===o.call(r)&&r())&&(u?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},defineProperties=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)defineProperty(e,o[s],t[o[s]],n[o[s]])};defineProperties.supportsDescriptors=!!u,e.exports=defineProperties},17648:function(e){"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r,i=this;if("function"!=typeof i||"[object Function]"!==n.call(i))throw TypeError("Function.prototype.bind called on incompatible "+i);for(var o=t.call(arguments,1),a=Math.max(0,i.length-o.length),s=[],u=0;u<a;u++)s.push("$"+u);if(r=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(!(this instanceof r))return i.apply(e,o.concat(t.call(arguments)));var n=i.apply(this,o.concat(t.call(arguments)));return Object(n)===n?n:this}),i.prototype){var Empty=function(){};Empty.prototype=i.prototype,r.prototype=new Empty,Empty.prototype=null}return r}},58612:function(e,t,n){"use strict";var r=n(17648);e.exports=Function.prototype.bind||r},58908:function(e,t,n){var r;r="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},e.exports=r},41405:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(55419);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},55419:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},99608:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},96410:function(e,t,n){"use strict";var r=n(99608);e.exports=function(){return r()&&!!Symbol.toStringTag}},17642:function(e,t,n){"use strict";var r=n(58612);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},82584:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=n(21924)("Object.prototype.toString"),isStandardArguments=function(e){return(!r||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===i(e)},isLegacyArguments=function(e){return!!isStandardArguments(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},o=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments,e.exports=o?isStandardArguments:isLegacyArguments},18923:function(e){"use strict";
5var t=Date.prototype.getDay,tryDateObject=function(e){try{return t.call(e),!0}catch(e){return!1}},n=Object.prototype.toString,r="function"==typeof Symbol&&!!Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(r?tryDateObject(e):"[object Date]"===n.call(e))}},98420:function(e,t,n){"use strict";var r,i,o,a,s=n(21924),u=n(96410)();if(u){r=s("Object.prototype.hasOwnProperty"),i=s("RegExp.prototype.exec"),o={};var throwRegexMarker=function(){throw o};a={toString:throwRegexMarker,valueOf:throwRegexMarker},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=throwRegexMarker)}var c=s("Object.prototype.toString"),l=Object.getOwnPropertyDescriptor;e.exports=u?function(e){if(!e||"object"!=typeof e)return!1;var t=l(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{i(e,a)}catch(e){return e===o}}:function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"[object RegExp]"===c(e)}},24244:function(e){"use strict";var numberIsNaN=function(e){return e!=e};e.exports=function(e,t){return 0===e&&0===t?1/e==1/t:!!(e===t||numberIsNaN(e)&&numberIsNaN(t))}},20609:function(e,t,n){"use strict";var r=n(4289),i=n(55559),o=n(24244),a=n(75624),s=n(52281),u=i(a(),Object);r(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},75624:function(e,t,n){"use strict";var r=n(24244);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},52281:function(e,t,n){"use strict";var r=n(75624),i=n(4289);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},18987:function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(21414),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],equalsConstructorPrototype=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{equalsConstructorPrototype(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),equalsConstructorPrototypeIfNotBuggy=function(e){if("undefined"==typeof window||!p)return equalsConstructorPrototype(e);try{return equalsConstructorPrototype(e)}catch(e){return!1}};r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),f=[];if(!t&&!n&&!r)throw TypeError("Object.keys called on a non-object");var p=c&&n;if(s&&e.length>0&&!i.call(e,0))for(var h=0;h<e.length;++h)f.push(String(h));if(r&&e.length>0)for(var d=0;d<e.length;++d)f.push(String(d));else for(var y in e)!(p&&"prototype"===y)&&i.call(e,y)&&f.push(String(y));if(u)for(var g=equalsConstructorPrototypeIfNotBuggy(e),m=0;m<l.length;++m)!(g&&"constructor"===l[m])&&i.call(e,l[m])&&f.push(l[m]);return f}}e.exports=r},82215:function(e,t,n){"use strict";var r=Array.prototype.slice,i=n(21414),o=Object.keys,a=o?function(e){return o(e)}:n(18987),s=Object.keys;a.shim=function(){return Object.keys?!function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)}):Object.keys=a,Object.keys||a},e.exports=a},21414:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},75:function(e,t,n){var r=n(34155);(function(){var t,n,i,o;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=r&&r.hrtime?(e.exports=function(){return(t()-o)/1e6},n=r.hrtime,o=(t=function(){var e;return 1e9*(e=n())[0]+e[1]}
5)()-1e9*r.uptime()):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return new Date().getTime()-i},i=new Date().getTime())}).call(this)},54087:function(e,t,n){for(var r=n(75),i="undefined"==typeof window?n.g:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],u=i["cancel"+a]||i["cancelRequest"+a],c=0;!s&&c<o.length;c++)s=i[o[c]+"Request"+a],u=i[o[c]+"Cancel"+a]||i[o[c]+"CancelRequest"+a];if(!s||!u){var l=0,f=0,p=[],h=1e3/60;s=function(e){if(0===p.length){var t=r(),n=Math.max(0,h-(t-l));l=n+t,setTimeout(function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return p.push({handle:++f,callback:e,cancelled:!1}),f},u=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return s.call(i,e)},e.exports.cancel=function(){u.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=u}},89144:function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}();function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var o=_interopRequireDefault(n(94846)),a=_interopRequireDefault(n(79483)),s=_interopRequireDefault(n(2835)),u=_interopRequireDefault(n(34246)),c=_interopRequireDefault(n(54087)),l=_interopRequireDefault(n(27739)),f=_interopRequireDefault(n(67294)),p=_interopRequireDefault(n(49103)),h=1e3/60,d=function(e){function Motion(t){var n=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,Motion),e.call(this,t),this.wasAnimating=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyle=null,this.clearUnreadPropStyle=function(e){var t=!1,i=n.state,o=i.currentStyle,a=i.currentVelocity,s=i.lastIdealStyle,u=i.lastIdealVelocity;for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c)){var l=e[c];"number"==typeof l&&(t||(t=!0,o=r({},o),a=r({},a),s=r({},s),u=r({},u)),o[c]=l,a[c]=0,s[c]=l,u[c]=0)}t&&n.setState({currentStyle:o,currentVelocity:a,lastIdealStyle:s,lastIdealVelocity:u})},this.startAnimationIfNecessary=function(){n.animationID=c.default(function(e){var t=n.props.style;if(l.default(n.state.currentStyle,t,n.state.currentVelocity)){n.wasAnimating&&n.props.onRest&&n.props.onRest(),n.animationID=null,n.wasAnimating=!1,n.accumulatedTime=0;return}n.wasAnimating=!0;var r=e||u.default(),i=r-n.prevTime;if(n.prevTime=r,n.accumulatedTime=n.accumulatedTime+i,n.accumulatedTime>10*h&&(n.accumulatedTime=0),0===n.accumulatedTime){n.animationID=null,n.startAnimationIfNecessary();return}var o=(n.accumulatedTime-Math.floor(n.accumulatedTime/h)*h)/h,a=Math.floor(n.accumulatedTime/h),c={},f={},p={},d={};for(var y in t)if(Object.prototype.hasOwnProperty.call(t,y)){var g=t[y];if("number"==typeof g)p[y]=g,d[y]=0,c[y]=g,f[y]=0;else{for(var m=n.state.lastIdealStyle[y],b=n.state.lastIdealVelocity[y],v=0;v<a;v++){var _=s.default(h/1e3,m,b,g.val,g.stiffness,g.damping,g.precision);m=_[0],b=_[1]}var x=s.default(h/1e3,m,b,g.val,g.stiffness,g.damping,g.precision),O=x[0],k=x[1];p[y]=m+(O-m)*o,d[y]=b+(k-b)*o,c[y]=m,f[y]=b}}n.animationID=null,n.accumulatedTime-=a*h,n.setState({currentStyle:p,currentVelocity:d,lastIdealStyle:c,lastIdealVelocity:f}),n.unreadPropStyle=null,n.startAnimationIfNecessary()})},this.state=this.defaultState()}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(Motion,e),i(Motion,null,[{key:"propTypes",value:{defaultStyle:p.default.objectOf(p.default.number),style:p.default.objectOf(p.default.oneOfType([p.default.number,p.default.object])).isRequired,children:p.default.func.isRequired,onRest:p.default.func},enumerable:!0}]),Motion.prototype.defaultState=function(){var e=this.props,t=e.defaultStyle,n=e.style,r=t||a.default(n),i=o.default(r);return{currentStyle:r,currentVelocity:i,lastIdealStyle:r,lastIdealVelocity:i}},Motion.prototype.componentDidMount=function(){this.prevTime=u.default(),this.startAnimationIfNecessary()},Motion.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyle&&this.clearUnreadPropStyle(this.unreadPropStyle),this.unreadPropStyle=e.style,null==this.animationID&&(this.prevTime=u.default(),this.startAnimationIfNecessary())},Motion.prototype.componentWillUnmount=function(){null!=this.animationID&&(c.default.cancel(this.animationID),this.animationID=null)},Motion.prototype.render=function(){var e=this.props.children(this.state.currentStyle);return e&&f.default.Children.only(e)},Motion}(f.default.Component);t.default=d,e.exports=t.default},26506:function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}();
5function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var o=_interopRequireDefault(n(94846)),a=_interopRequireDefault(n(79483)),s=_interopRequireDefault(n(2835)),u=_interopRequireDefault(n(34246)),c=_interopRequireDefault(n(54087)),l=_interopRequireDefault(n(27739)),f=_interopRequireDefault(n(67294)),p=_interopRequireDefault(n(49103)),h=1e3/60,d=function(e){function StaggeredMotion(t){var n=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,StaggeredMotion),e.call(this,t),this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=n.state,i=t.currentStyles,o=t.currentVelocities,a=t.lastIdealStyles,s=t.lastIdealVelocities,u=!1,c=0;c<e.length;c++){var l=e[c],f=!1;for(var p in l)if(Object.prototype.hasOwnProperty.call(l,p)){var h=l[p];"number"==typeof h&&(f||(f=!0,u=!0,i[c]=r({},i[c]),o[c]=r({},o[c]),a[c]=r({},a[c]),s[c]=r({},s[c])),i[c][p]=h,o[c][p]=0,a[c][p]=h,s[c][p]=0)}}u&&n.setState({currentStyles:i,currentVelocities:o,lastIdealStyles:a,lastIdealVelocities:s})},this.startAnimationIfNecessary=function(){n.animationID=c.default(function(e){var t=n.props.styles(n.state.lastIdealStyles);if(function(e,t,n){for(var r=0;r<e.length;r++)if(!l.default(e[r],t[r],n[r]))return!1;return!0}(n.state.currentStyles,t,n.state.currentVelocities)){n.animationID=null,n.accumulatedTime=0;return}var r=e||u.default(),i=r-n.prevTime;if(n.prevTime=r,n.accumulatedTime=n.accumulatedTime+i,n.accumulatedTime>10*h&&(n.accumulatedTime=0),0===n.accumulatedTime){n.animationID=null,n.startAnimationIfNecessary();return}for(var o=(n.accumulatedTime-Math.floor(n.accumulatedTime/h)*h)/h,a=Math.floor(n.accumulatedTime/h),c=[],f=[],p=[],d=[],y=0;y<t.length;y++){var g=t[y],m={},b={},v={},_={};for(var x in g)if(Object.prototype.hasOwnProperty.call(g,x)){var O=g[x];if("number"==typeof O)m[x]=O,b[x]=0,v[x]=O,_[x]=0;else{for(var k=n.state.lastIdealStyles[y][x],S=n.state.lastIdealVelocities[y][x],P=0;P<a;P++){var T=s.default(h/1e3,k,S,O.val,O.stiffness,O.damping,O.precision);k=T[0],S=T[1]}var M=s.default(h/1e3,k,S,O.val,O.stiffness,O.damping,O.precision),w=M[0],C=M[1];m[x]=k+(w-k)*o,b[x]=S+(C-S)*o,v[x]=k,_[x]=S}}p[y]=m,d[y]=b,c[y]=v,f[y]=_}n.animationID=null,n.accumulatedTime-=a*h,n.setState({currentStyles:p,currentVelocities:d,lastIdealStyles:c,lastIdealVelocities:f}),n.unreadPropStyles=null,n.startAnimationIfNecessary()})},this.state=this.defaultState()}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(StaggeredMotion,e),i(StaggeredMotion,null,[{key:"propTypes",value:{defaultStyles:p.default.arrayOf(p.default.objectOf(p.default.number)),styles:p.default.func.isRequired,children:p.default.func.isRequired},enumerable:!0}]),StaggeredMotion.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,n=e.styles,r=t||n().map(a.default),i=r.map(function(e){return o.default(e)});return{currentStyles:r,currentVelocities:i,lastIdealStyles:r,lastIdealVelocities:i}},StaggeredMotion.prototype.componentDidMount=function(){this.prevTime=u.default(),this.startAnimationIfNecessary()},StaggeredMotion.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles),this.unreadPropStyles=e.styles(this.state.lastIdealStyles),null==this.animationID&&(this.prevTime=u.default(),this.startAnimationIfNecessary())},StaggeredMotion.prototype.componentWillUnmount=function(){null!=this.animationID&&(c.default.cancel(this.animationID),this.animationID=null)},StaggeredMotion.prototype.render=function(){var e=this.props.children(this.state.currentStyles);return e&&f.default.Children.only(e)},StaggeredMotion}(f.default.Component);t.default=d,e.exports=t.default},921:function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}();
5function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var o=_interopRequireDefault(n(94846)),a=_interopRequireDefault(n(79483)),s=_interopRequireDefault(n(2835)),u=_interopRequireDefault(n(48505)),c=_interopRequireDefault(n(34246)),l=_interopRequireDefault(n(54087)),f=_interopRequireDefault(n(27739)),p=_interopRequireDefault(n(67294)),h=_interopRequireDefault(n(49103)),d=1e3/60;function rehydrateStyles(e,t,n){return null==t?e.map(function(e,t){return{key:e.key,data:e.data,style:n[t]}}):e.map(function(e,r){for(var i=0;i<t.length;i++)if(t[i].key===e.key)return{key:t[i].key,data:t[i].data,style:n[r]};return{key:e.key,data:e.data,style:n[r]}})}function mergeAndSync(e,t,n,r,i,a,s,c,l){for(var p=u.default(r,i,function(e,r){var i=t(r);return null==i||f.default(a[e],i,s[e])?(n({key:r.key,data:r.data}),null):{key:r.key,data:r.data,style:i}}),h=[],d=[],y=[],g=[],m=0;m<p.length;m++){for(var b=p[m],v=null,_=0;_<r.length;_++)if(r[_].key===b.key){v=_;break}if(null==v){var x=e(b);h[m]=x,y[m]=x;var O=o.default(b.style);d[m]=O,g[m]=O}else h[m]=a[v],y[m]=c[v],d[m]=s[v],g[m]=l[v]}return[p,h,d,y,g]}var y=function(e){function TransitionMotion(t){var n=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,TransitionMotion),e.call(this,t),this.unmounting=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=mergeAndSync(n.props.willEnter,n.props.willLeave,n.props.didLeave,n.state.mergedPropsStyles,e,n.state.currentStyles,n.state.currentVelocities,n.state.lastIdealStyles,n.state.lastIdealVelocities),i=t[0],o=t[1],a=t[2],s=t[3],u=t[4],c=0;c<e.length;c++){var l=e[c].style,f=!1;for(var p in l)if(Object.prototype.hasOwnProperty.call(l,p)){var h=l[p];"number"==typeof h&&(f||(f=!0,o[c]=r({},o[c]),a[c]=r({},a[c]),s[c]=r({},s[c]),u[c]=r({},u[c]),i[c]={key:i[c].key,data:i[c].data,style:r({},i[c].style)}),o[c][p]=h,a[c][p]=0,s[c][p]=h,u[c][p]=0,i[c].style[p]=h)}}n.setState({currentStyles:o,currentVelocities:a,mergedPropsStyles:i,lastIdealStyles:s,lastIdealVelocities:u})},this.startAnimationIfNecessary=function(){n.unmounting||(n.animationID=l.default(function(e){if(!n.unmounting){var t=n.props.styles,r="function"==typeof t?t(rehydrateStyles(n.state.mergedPropsStyles,n.unreadPropStyles,n.state.lastIdealStyles)):t;if(function(e,t,n,r){if(r.length!==t.length)return!1;for(var i=0;i<r.length;i++)if(r[i].key!==t[i].key)return!1;for(var i=0;i<r.length;i++)if(!f.default(e[i],t[i].style,n[i]))return!1;return!0}(n.state.currentStyles,r,n.state.currentVelocities,n.state.mergedPropsStyles)){n.animationID=null,n.accumulatedTime=0;return}var i=e||c.default(),o=i-n.prevTime;if(n.prevTime=i,n.accumulatedTime=n.accumulatedTime+o,n.accumulatedTime>10*d&&(n.accumulatedTime=0),0===n.accumulatedTime){n.animationID=null,n.startAnimationIfNecessary();return}for(var a=(n.accumulatedTime-Math.floor(n.accumulatedTime/d)*d)/d,u=Math.floor(n.accumulatedTime/d),l=mergeAndSync(n.props.willEnter,n.props.willLeave,n.props.didLeave,n.state.mergedPropsStyles,r,n.state.currentStyles,n.state.currentVelocities,n.state.lastIdealStyles,n.state.lastIdealVelocities),p=l[0],h=l[1],y=l[2],g=l[3],m=l[4],b=0;b<p.length;b++){var v=p[b].style,_={},x={},O={},k={};for(var S in v)if(Object.prototype.hasOwnProperty.call(v,S)){var P=v[S];if("number"==typeof P)_[S]=P,x[S]=0,O[S]=P,k[S]=0;else{for(var T=g[b][S],M=m[b][S],w=0;w<u;w++){var C=s.default(d/1e3,T,M,P.val,P.stiffness,P.damping,P.precision);T=C[0],M=C[1]}var A=s.default(d/1e3,T,M,P.val,P.stiffness,P.damping,P.precision),E=A[0],R=A[1];_[S]=T+(E-T)*a,x[S]=M+(R-M)*a,O[S]=T,k[S]=M}}g[b]=O,m[b]=k,h[b]=_,y[b]=x}n.animationID=null,n.accumulatedTime-=u*d,n.setState({currentStyles:h,currentVelocities:y,lastIdealStyles:g,lastIdealVelocities:m,mergedPropsStyles:p}),n.unreadPropStyles=null,n.startAnimationIfNecessary()}}))},this.state=this.defaultState()}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(TransitionMotion,e),i(TransitionMotion,null,[{key:"propTypes",value:{defaultStyles:h.default.arrayOf(h.default.shape({key:h.default.string.isRequired,data:h.default.any,style:h.default.objectOf(h.default.number).isRequired})),styles:h.default.oneOfType([h.default.func,h.default.arrayOf(h.default.shape({key:h.default.string.isRequired,data:h.default.any,style:h.default.objectOf(h.default.oneOfType([h.default.number,h.default.object])).isRequired}))]).isRequired,children:h.default.func.isRequired,willEnter:h.default.func,willLeave:h.default.func,didLeave:h.default.func},enumerable:!0},{key:"defaultProps",value:{willEnter:function(e){return a.default(e.style)}
5,willLeave:function(){return null},didLeave:function(){}},enumerable:!0}]),TransitionMotion.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,n=e.styles,r=e.willEnter,i=e.willLeave,s=e.didLeave,u="function"==typeof n?n(t):n,c=void 0;c=null==t?u:t.map(function(e){for(var t=0;t<u.length;t++)if(u[t].key===e.key)return u[t];return e});var l=null==t?u.map(function(e){return a.default(e.style)}):t.map(function(e){return a.default(e.style)}),f=null==t?u.map(function(e){return o.default(e.style)}):t.map(function(e){return o.default(e.style)}),p=mergeAndSync(r,i,s,c,u,l,f,l,f),h=p[0];return{currentStyles:p[1],currentVelocities:p[2],lastIdealStyles:p[3],lastIdealVelocities:p[4],mergedPropsStyles:h}},TransitionMotion.prototype.componentDidMount=function(){this.prevTime=c.default(),this.startAnimationIfNecessary()},TransitionMotion.prototype.componentWillReceiveProps=function(e){this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles);var t=e.styles;"function"==typeof t?this.unreadPropStyles=t(rehydrateStyles(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles)):this.unreadPropStyles=t,null==this.animationID&&(this.prevTime=c.default(),this.startAnimationIfNecessary())},TransitionMotion.prototype.componentWillUnmount=function(){this.unmounting=!0,null!=this.animationID&&(l.default.cancel(this.animationID),this.animationID=null)},TransitionMotion.prototype.render=function(){var e=rehydrateStyles(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles),t=this.props.children(e);return t&&p.default.Children.only(t)},TransitionMotion}(p.default.Component);t.default=y,e.exports=t.default},94846:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=0);return t},e.exports=t.default},48505:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t,n){for(var r={},i=0;i<e.length;i++)r[e[i].key]=i;for(var o={},i=0;i<t.length;i++)o[t[i].key]=i;for(var a=[],i=0;i<t.length;i++)a[i]=t[i];for(var i=0;i<e.length;i++)if(!Object.prototype.hasOwnProperty.call(o,e[i].key)){var s=n(i,e[i]);null!=s&&a.push(s)}return a.sort(function(e,n){var i=o[e.key],a=o[n.key],s=r[e.key],u=r[n.key];if(null!=i&&null!=a)return o[e.key]-o[n.key];if(null!=s&&null!=u)return r[e.key]-r[n.key];if(null!=i){for(var c=0;c<t.length;c++){var l=t[c].key;if(Object.prototype.hasOwnProperty.call(r,l)){if(i<o[l]&&u>r[l])return -1;if(i>o[l]&&u<r[l])break}}return 1}for(var c=0;c<t.length;c++){var l=t[c].key;if(Object.prototype.hasOwnProperty.call(r,l)){if(a<o[l]&&s>r[l])return 1;if(a>o[l]&&s<r[l])break}}return -1})},e.exports=t.default},72392:function(e,t){"use strict";t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default},37727:function(e,t,n){"use strict";function _interopRequire(e){return e&&e.__esModule?e.default:e}var r=n(89144);t.y_=_interopRequire(r),_interopRequire(n(26506)),_interopRequire(n(921));var i=n(20124);t.ST=_interopRequire(i);var o=n(72392);t.um=_interopRequire(o),_interopRequire(n(79483)),_interopRequire(n(49566))},49566:function(e,t){"use strict";t.__esModule=!0,t.default=function(){},e.exports=t.default},27739:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t,n){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(0!==n[r])return!1;var i="number"==typeof t[r]?t[r]:t[r].val;if(e[r]!==i)return!1}return!0},e.exports=t.default},20124:function(e,t,n){"use strict";t.__esModule=!0;var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t){return i({},o,t,{val:e})};var o=i({},((r=n(72392))&&r.__esModule?r:{default:r}).default.noWobble,{precision:.01});e.exports=t.default},2835:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t,r,i,o,a,s){var u=r+(-o*(t-i)+-a*r)*e,c=t+u*e;return Math.abs(u)<s&&Math.abs(c-i)<s?(n[0]=i,n[1]=0):(n[0]=c,n[1]=u),n};var n=[0,0];e.exports=t.default},79483:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]="number"==typeof e[n]?e[n]:e[n].val);return t},e.exports=t.default},34246:function(e,t,n){var r=n(34155);(function(){var t,n,i;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=r&&r.hrtime?(e.exports=function(){return(t()-i)/1e6},n=r.hrtime,i=(t=function(){var e;return 1e9*(e=n())[0]+e[1]}
5)()):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return new Date().getTime()-i},i=new Date().getTime())}).call(this)},22217:function(e,t,n){"use strict";var r=n(90292);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,t,n,i,o,a){if(a!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},49103:function(e,t,n){e.exports=n(22217)()},90292:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},23414:function(e,t,n){"use strict";n.d(t,{xL:function(){return rP},FM:function(){return rB},XQ:function(){return ii},pW:function(){return ip},Kc:function(){return oo},dp:function(){return iL},B2:function(){return ol},OO:function(){return makeWidthFlexible}});var r={};n.r(r),n.d(r,{arc:function(){return arc},area:function(){return src_area},areaRadial:function(){return areaRadial},curveBasis:function(){return curve_basis},curveBasisClosed:function(){return curve_basisClosed},curveBasisOpen:function(){return basisOpen},curveBundle:function(){return tM},curveCardinal:function(){return tw},curveCardinalClosed:function(){return tC},curveCardinalOpen:function(){return tA},curveCatmullRom:function(){return tE},curveCatmullRomClosed:function(){return tR},curveCatmullRomOpen:function(){return tj},curveLinear:function(){return curve_linear},curveLinearClosed:function(){return linearClosed},curveMonotoneX:function(){return monotoneX},curveMonotoneY:function(){return monotoneY},curveNatural:function(){return natural},curveStep:function(){return step},curveStepAfter:function(){return stepAfter},curveStepBefore:function(){return stepBefore},line:function(){return src_line},lineRadial:function(){return src_lineRadial},linkHorizontal:function(){return linkHorizontal},linkRadial:function(){return linkRadial},linkVertical:function(){return linkVertical},pie:function(){return src_pie},pointRadial:function(){return pointRadial},radialArea:function(){return areaRadial},radialLine:function(){return src_lineRadial},stack:function(){return stack},stackOffsetDiverging:function(){return diverging},stackOffsetExpand:function(){return expand},stackOffsetNone:function(){return none},stackOffsetSilhouette:function(){return silhouette},stackOffsetWiggle:function(){return wiggle},stackOrderAppearance:function(){return appearance},stackOrderAscending:function(){return order_ascending},stackOrderDescending:function(){return order_descending},stackOrderInsideOut:function(){return insideOut},stackOrderNone:function(){return order_none},stackOrderReverse:function(){return reverse},symbol:function(){return symbol},symbolCircle:function(){return tl},symbolCross:function(){return tf},symbolDiamond:function(){return td},symbolSquare:function(){return tv},symbolStar:function(){return tb},symbolTriangle:function(){return tx},symbolWye:function(){return tP},symbols:function(){return tT}});var i=n(71791),o=n.n(i);function src_constant(e){return function(){return e}}function point_x(e){return e[0]}function point_y(e){return e[1]}function RedBlackTree(){this._=null}function RedBlackNode(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function RedBlackRotateLeft(e,t){var n=t.R,r=t.U;r?r.L===t?r.L=n:r.R=n:e._=n,n.U=r,t.U=n,t.R=n.L,t.R&&(t.R.U=t),n.L=t}function RedBlackRotateRight(e,t){var n=t.L,r=t.U;r?r.L===t?r.L=n:r.R=n:e._=n,n.U=r,t.U=n,t.L=n.R,t.L&&(t.L.U=t),n.R=t}function RedBlackFirst(e){for(;e.L;)e=e.L;return e}function createEdge(e,t,n,r){var i=[null,null],o=t6.push(i)-1;return i.left=e,i.right=t,n&&setEdgeEnd(i,e,t,n),r&&setEdgeEnd(i,t,e,r),t3[e.index].halfedges.push(o),t3[t.index].halfedges.push(o),i}function createBorderEdge(e,t,n){var r=[t,n];return r.left=e,r}function setEdgeEnd(e,t,n,r){e[0]||e[1]?e.left===n?e[1]=r:e[0]=r:(e[0]=r,e.left=t,e.right=n)}function cellHalfedgeStart(e,t){return t[+(t.left!==e.site)]}RedBlackTree.prototype={constructor:RedBlackTree,insert:function(e,t){var n,r,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=RedBlackFirst(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;
5)r=n.U,n===r.L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.R&&(RedBlackRotateLeft(this,n),n=(e=n).U),n.C=!1,r.C=!0,RedBlackRotateRight(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.L&&(RedBlackRotateRight(this,n),n=(e=n).U),n.C=!1,r.C=!0,RedBlackRotateLeft(this,r)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,i=e.U,o=e.L,a=e.R;if(n=o?a?RedBlackFirst(a):o:a,i?i.L===e?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=e.C,n.L=o,o.U=n,n!==a?(i=n.U,n.U=e.U,e=n.R,i.L=e,n.R=a,a.U=n):(n.U=i,i=n,e=n.R)):(r=e.C,e=n),e&&(e.U=i),!r){if(e&&e.C){e.C=!1;return}do{if(e===this._)break;if(e===i.L){if((t=i.R).C&&(t.C=!1,i.C=!0,RedBlackRotateLeft(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,RedBlackRotateRight(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,RedBlackRotateLeft(this,i),e=this._;break}}else if((t=i.L).C&&(t.C=!1,i.C=!0,RedBlackRotateRight(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,RedBlackRotateLeft(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,RedBlackRotateRight(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}};var a=[];function Circle(){RedBlackNode(this),this.x=this.y=this.arc=this.site=this.cy=null}function attachCircle(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,o=n.site;if(r!==o){var s=i[0],c=i[1],l=r[0]-s,f=r[1]-c,p=o[0]-s,h=o[1]-c,d=2*(l*h-f*p);if(!(d>=-u)){var y=l*l+f*f,g=p*p+h*h,m=(h*y-f*g)/d,b=(l*g-p*y)/d,v=a.pop()||new Circle;v.arc=e,v.site=i,v.x=m+s,v.y=(v.cy=b+c)+Math.sqrt(m*m+b*b),e.circle=v;for(var _=null,x=t5._;x;)if(v.y<x.y||v.y===x.y&&v.x<=x.x){if(x.L)x=x.L;else{_=x.P;break}}else if(x.R)x=x.R;else{_=x;break}t5.insert(_,v),_||(t1=v)}}}}function detachCircle(e){var t=e.circle;t&&(t.P||(t1=t.N),t5.remove(t),a.push(t),RedBlackNode(t),e.circle=null)}var s=[];function Beach(){RedBlackNode(this),this.edge=this.site=this.circle=null}function createBeach(e){var t=s.pop()||new Beach;return t.site=e,t}function detachBeach(e){detachCircle(e),t2.remove(e),s.push(e),RedBlackNode(e)}function leftBreakPoint(e,t){var n=e.site,r=n[0],i=n[1],o=i-t;if(!o)return r;var a=e.P;if(!a)return-1/0;var s=(n=a.site)[0],u=n[1],c=u-t;if(!c)return s;var l=s-r,f=1/o-1/c,p=l/c;return f?(-p+Math.sqrt(p*p-2*f*(l*l/(-2*c)-u+c/2+i-o/2)))/f+r:(r+s)/2}var u=1e-12;function lexicographic(e,t){return t[1]-e[1]||t[0]-e[0]}function Diagram(e,t){var n,r,i,o=e.sort(lexicographic).pop();for(t6=[],t3=Array(e.length),t2=new RedBlackTree,t5=new RedBlackTree;;)if(i=t1,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))(o[0]!==n||o[1]!==r)&&(function(e){for(var t,n,r,i,o=e[0],a=e[1],s=t2._;s;)if((r=leftBreakPoint(s,a)-o)>1e-6)s=s.L;else if((i=o-function(e,t){var n=e.N;if(n)return leftBreakPoint(n,t);var r=e.site;return r[1]===t?r[0]:1/0}(s,a))>1e-6){if(!s.R){t=s;break}s=s.R}else{r>-.000001?(t=s.P,n=s):i>-.000001?(t=s,n=s.N):t=n=s;break}t3[e.index]={site:e,halfedges:[]};var u=createBeach(e);if(t2.insert(t,u),t||n){if(t===n){detachCircle(t),n=createBeach(t.site),t2.insert(u,n),u.edge=n.edge=createEdge(t.site,u.site),attachCircle(t),attachCircle(n);return}if(!n){u.edge=createEdge(t.site,u.site);return}detachCircle(t),detachCircle(n);var c=t.site,l=c[0],f=c[1],p=e[0]-l,h=e[1]-f,d=n.site,y=d[0]-l,g=d[1]-f,m=2*(p*g-h*y),b=p*p+h*h,v=y*y+g*g,_=[(g*b-h*v)/m+l,(p*v-y*b)/m+f];setEdgeEnd(n.edge,c,d,_),u.edge=createEdge(c,e,null,_),n.edge=createEdge(e,d,null,_),attachCircle(t),attachCircle(n)}}(o),n=o[0],r=o[1]),o=e.pop();else if(i)!function(e){var t=e.circle,n=t.x,r=t.cy,i=[n,r],o=e.P,a=e.N,s=[e];detachBeach(e);for(var u=o;u.circle&&1e-6>Math.abs(n-u.circle.x)&&1e-6>Math.abs(r-u.circle.cy);)o=u.P,s.unshift(u),detachBeach(u),u=o;s.unshift(u),detachCircle(u);for(var c=a;c.circle&&1e-6>Math.abs(n-c.circle.x)&&1e-6>Math.abs(r-c.circle.cy);)a=c.N,s.push(c),detachBeach(c),c=a;s.push(c),detachCircle(c);var l,f=s.length;for(l=1;l<f;++l)c=s[l],u=s[l-1],setEdgeEnd(c.edge,u.site,c.site,i);u=s[0],(c=s[f-1]).edge=createEdge(u.site,c.site,null,i),attachCircle(u),attachCircle(c)}(i.arc);else break;if(!function(){for(var e,t,n,r,i=0,o=t3.length;i<o;++i)if((e=t3[i])&&(r=(t=e.halfedges).length)){var a=Array(r),s=Array(r);for(n=0;n<r;++n)a[n]=n,s[n]=function(e,t){var n=e.site,r=t.left,i=t.right;return(n===i&&(i=r,r=n),i)?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=t[1],i=t[0]):(r=t[0],i=t[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}(e,t6[t[n]]);for(a.sort(function(e,t){return s[t]-s[e]}),n=0;n<r;++n)s[n]=t[a[n]];for(n=0;n<r;++n)t[n]=s[n]}}(),t){var a=+t[0][0],s=+t[0][1],u=+t[1][0],c=+t[1][1];!function(e,t,n,r){for(var i,o=t6.length;o--;)(function(e,t,n,r,i){var o=e[1];if(o)return!0;var a,s,u=e[0],c=e.left,l=e.right,f=c[0],p=c[1],h=l[0],d=l[1],y=(f+h)/2;if(d===p){if(y<t||y>=r)return;if(f>h){if(u){if(u[1]>=i)return}else u=[y,n];o=[y,i]}else{if(u){if(u[1]<n)return}else u=[y,i];o=[y,n]}}else if(a=(f-h)/(d-p),s=(p+d)/2-a*y,a<-1||a>
51){if(f>h){if(u){if(u[1]>=i)return}else u=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(u){if(u[1]<n)return}else u=[(i-s)/a,i];o=[(n-s)/a,n]}}else if(p<d){if(u){if(u[0]>=r)return}else u=[t,a*t+s];o=[r,a*r+s]}else{if(u){if(u[0]<t)return}else u=[r,a*r+s];o=[t,a*t+s]}return e[0]=u,e[1]=o,!0})(i=t6[o],e,t,n,r)&&function(e,t,n,r,i){var o,a=e[0],s=e[1],u=a[0],c=a[1],l=s[0],f=s[1],p=0,h=1,d=l-u,y=f-c;if(o=t-u,d||!(o>0)){if(o/=d,d<0){if(o<p)return;o<h&&(h=o)}else if(d>0){if(o>h)return;o>p&&(p=o)}if(o=r-u,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>p&&(p=o)}else if(d>0){if(o<p)return;o<h&&(h=o)}if(o=n-c,y||!(o>0)){if(o/=y,y<0){if(o<p)return;o<h&&(h=o)}else if(y>0){if(o>h)return;o>p&&(p=o)}if(o=i-c,y||!(o<0)){if(o/=y,y<0){if(o>h)return;o>p&&(p=o)}else if(y>0){if(o<p)return;o<h&&(h=o)}return!(p>0)&&!(h<1)||(p>0&&(e[0]=[u+p*d,c+p*y]),h<1&&(e[1]=[u+h*d,c+h*y]),!0)}}}}}(i,e,t,n,r)&&(Math.abs(i[0][0]-i[1][0])>1e-6||Math.abs(i[0][1]-i[1][1])>1e-6)||delete t6[o]}(a,s,u,c),function(e,t,n,r){var i,o,a,s,u,c,l,f,p,h,d,y,g=t3.length,m=!0;for(i=0;i<g;++i)if(o=t3[i]){for(a=o.site,s=(u=o.halfedges).length;s--;)t6[u[s]]||u.splice(s,1);for(s=0,c=u.length;s<c;)b=o,d=(h=(v=t6[u[s]])[+(v.left===b.site)])[0],y=h[1],f=(l=cellHalfedgeStart(o,t6[u[++s%c]]))[0],p=l[1],(Math.abs(d-f)>1e-6||Math.abs(y-p)>1e-6)&&(u.splice(s,0,t6.push(createBorderEdge(a,h,1e-6>Math.abs(d-e)&&r-y>1e-6?[e,1e-6>Math.abs(f-e)?p:r]:1e-6>Math.abs(y-r)&&n-d>1e-6?[1e-6>Math.abs(p-r)?f:n,r]:1e-6>Math.abs(d-n)&&y-t>1e-6?[n,1e-6>Math.abs(f-n)?p:t]:1e-6>Math.abs(y-t)&&d-e>1e-6?[1e-6>Math.abs(p-t)?f:e,t]:null))-1),++c);c&&(m=!1)}if(m){var b,v,_,x,O,k=1/0;for(i=0,m=null;i<g;++i)(o=t3[i])&&(O=(_=(a=o.site)[0]-e)*_+(x=a[1]-t)*x)<k&&(k=O,m=o);if(m){var S=[e,t],P=[e,r],T=[n,r],M=[n,t];m.halfedges.push(t6.push(createBorderEdge(a=m.site,S,P))-1,t6.push(createBorderEdge(a,P,T))-1,t6.push(createBorderEdge(a,T,M))-1,t6.push(createBorderEdge(a,M,S))-1)}}for(i=0;i<g;++i)(o=t3[i])&&!o.halfedges.length&&delete t3[i]}(a,s,u,c)}this.edges=t6,this.cells=t3,t2=t5=t6=t3=null}function voronoi(){var e=point_x,t=point_y,n=null;function voronoi(r){return new Diagram(r.map(function(n,i){var o=[1e-6*Math.round(e(n,i,r)/1e-6),1e-6*Math.round(t(n,i,r)/1e-6)];return o.index=i,o.data=n,o}),n)}return voronoi.polygons=function(e){return voronoi(e).polygons()},voronoi.links=function(e){return voronoi(e).links()},voronoi.triangles=function(e){return voronoi(e).triangles()},voronoi.x=function(t){return arguments.length?(e="function"==typeof t?t:src_constant(+t),voronoi):e},voronoi.y=function(e){return arguments.length?(t="function"==typeof e?e:src_constant(+e),voronoi):t},voronoi.extent=function(e){return arguments.length?(n=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],voronoi):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},voronoi.size=function(e){return arguments.length?(n=null==e?null:[[0,0],[+e[0],+e[1]]],voronoi):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},voronoi}Diagram.prototype={constructor:Diagram,polygons:function(){var e=this.edges;return this.cells.map(function(t){var n=t.halfedges.map(function(n){return cellHalfedgeStart(t,e[n])});return n.data=t.site.data,n})},triangles:function(){var e=[],t=this.edges;return this.cells.forEach(function(n,r){if(a=(o=n.halfedges).length)for(var i,o,a,s,u=n.site,c=-1,l=t[o[a-1]],f=l.left===u?l.right:l.left;++c<a;)s=f,f=(l=t[o[c]]).left===u?l.right:l.left,s&&f&&r<s.index&&r<f.index&&0>(i=f,(u[0]-i[0])*(s[1]-u[1])-(u[0]-s[0])*(i[1]-u[1]))&&e.push([u.data,s.data,f.data])}),e},links:function(){return this.edges.filter(function(e){return e.right}).map(function(e){return{source:e.left.data,target:e.right.data}})},find:function(e,t,n){for(var r,i,o=this,a=o._found||0,s=o.cells.length;!(i=o.cells[a]);)if(++a>=s)return null;var u=e-i.site[0],c=t-i.site[1],l=u*u+c*c;
5do i=o.cells[r=a],a=null,i.halfedges.forEach(function(n){var r=o.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var u=e-s[0],c=t-s[1],f=u*u+c*c;f<l&&(l=f,a=s.index)}});while(null!==a);return o._found=r,null==n||l<=n*n?i.site:null}};var c=n(67294);function src_define(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function extend(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Color(){}var l="\\s*([+-]?\\d+)\\s*",f="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",p="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h=/^#([0-9a-f]{3,8})$/,d=RegExp("^rgb\\("+[l,l,l]+"\\)$"),y=RegExp("^rgb\\("+[p,p,p]+"\\)$"),g=RegExp("^rgba\\("+[l,l,l,f]+"\\)$"),m=RegExp("^rgba\\("+[p,p,p,f]+"\\)$"),b=RegExp("^hsl\\("+[f,p,p]+"\\)$"),v=RegExp("^hsla\\("+[f,p,p,f]+"\\)$"),_={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function color_formatHex(){return this.rgb().formatHex()}function color_formatRgb(){return this.rgb().formatRgb()}function color(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=h.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?rgbn(t):3===n?new Rgb(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?rgba(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?rgba(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=d.exec(e))?new Rgb(t[1],t[2],t[3],1):(t=y.exec(e))?new Rgb(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=g.exec(e))?rgba(t[1],t[2],t[3],t[4]):(t=m.exec(e))?rgba(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=b.exec(e))?hsla(t[1],t[2]/100,t[3]/100,1):(t=v.exec(e))?hsla(t[1],t[2]/100,t[3]/100,t[4]):_.hasOwnProperty(e)?rgbn(_[e]):"transparent"===e?new Rgb(NaN,NaN,NaN,0):null}function rgbn(e){return new Rgb(e>>16&255,e>>8&255,255&e,1)}function rgba(e,t,n,r){return r<=0&&(e=t=n=NaN),new Rgb(e,t,n,r)}function rgbConvert(e){return(e instanceof Color||(e=color(e)),e)?(e=e.rgb(),new Rgb(e.r,e.g,e.b,e.opacity)):new Rgb}function color_rgb(e,t,n,r){return 1==arguments.length?rgbConvert(e):new Rgb(e,t,n,null==r?1:r)}function Rgb(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function rgb_formatHex(){return"#"+hex(this.r)+hex(this.g)+hex(this.b)}function rgb_formatRgb(){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)||
50))+", "+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+")")}function hex(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function hsla(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Hsl(e,t,n,r)}function hslConvert(e){if(e instanceof Hsl)return new Hsl(e.h,e.s,e.l,e.opacity);if(e instanceof Color||(e=color(e)),!e)return new Hsl;if(e instanceof Hsl)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+(n<r)*6:n===o?(r-t)/s+2:(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new Hsl(a,s,u,e.opacity)}function hsl(e,t,n,r){return 1==arguments.length?hslConvert(e):new Hsl(e,t,n,null==r?1:r)}function Hsl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function hsl2rgb(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function basis(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function d3_interpolate_src_constant(e){return function(){return e}}function linear(e,t){return function(n){return e+n*t}}function nogamma(e,t){var n=t-e;return n?linear(e,n):d3_interpolate_src_constant(isNaN(e)?t:e)}src_define(Color,color,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHsl:function(){return hslConvert(this).formatHsl()},formatRgb:color_formatRgb,toString:color_formatRgb}),src_define(Rgb,color_rgb,extend(Color,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Rgb(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:rgb_formatHex,formatHex:rgb_formatHex,formatRgb:rgb_formatRgb,toString:rgb_formatRgb})),src_define(Hsl,hsl,extend(Color,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Rgb(hsl2rgb(e>=240?e-240:e+120,i,r),hsl2rgb(e,i,r),hsl2rgb(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var x=function rgbGamma(e){var t,n=1==(t=+(t=e))?nogamma:function(e,n){var r,i,o;return n-e?(r=e,i=n,r=Math.pow(r,o=t),i=Math.pow(i,o)-r,o=1/o,function(e){return Math.pow(r+e*i,o)}):d3_interpolate_src_constant(isNaN(e)?n:e)};function rgb(e,t){var r=n((e=color_rgb(e)).r,(t=color_rgb(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=nogamma(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return rgb.gamma=rgbGamma,rgb}(1);function rgbSpline(e){return function(t){var n,r,i=t.length,o=Array(i),a=Array(i),s=Array(i);for(n=0;n<i;++n)r=color_rgb(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}function src_number(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}rgbSpline(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return basis((n-r/t)*t,a,i,o,s)}}),rgbSpline(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return basis((n-r/t)*t,i,o,a,s)}});var O=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,k=RegExp(O.source,"g");function value(e,t){var n,r,i=typeof t;return null==t||"boolean"===i?d3_interpolate_src_constant(t):("number"===i?src_number:"string"===i?(r=color
5(t))?(t=r,x):function(e,t){var n,r,i,o,a,s=O.lastIndex=k.lastIndex=0,u=-1,c=[],l=[];for(e+="",t+="";(i=O.exec(e))&&(o=k.exec(t));)(a=o.index)>s&&(a=t.slice(s,a),c[u]?c[u]+=a:c[++u]=a),(i=i[0])===(o=o[0])?c[u]?c[u]+=o:c[++u]=o:(c[++u]=null,l.push({i:u,x:src_number(i,o)})),s=k.lastIndex;return s<t.length&&(a=t.slice(s),c[u]?c[u]+=a:c[++u]=a),c.length<2?l[0]?(n=l[0].x,function(e){return n(e)+""}):(r=t,function(){return r}):(t=l.length,function(e){for(var n,r=0;r<t;++r)c[(n=l[r]).i]=n.x(e);return c.join("")})}:t instanceof color?x:t instanceof Date?function(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}:(n=t,!ArrayBuffer.isView(n)||n instanceof DataView)?Array.isArray(t)?function(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=Array(i),a=Array(r);for(n=0;n<i;++n)o[n]=value(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?function(e,t){var n,r={},i={};for(n in(null===e||"object"!=typeof e)&&(e={}),(null===t||"object"!=typeof t)&&(t={}),t)n in e?r[n]=value(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}:src_number:function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}})(e,t)}var S=n(37727),P=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M=o().oneOfType([o().string,o().shape({stiffness:o().number,nonAnimatedProps:o().arrayOf(o().string),damping:o().number}),o().bool]),w={animatedProps:o().arrayOf(o().string).isRequired,animation:M,onStart:o().func,onEnd:o().func};function extractAnimatedPropValues(e){var t=e.animatedProps,n=function(e,t){var n={};for(var r in e)!(t.indexOf(r)>=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["animatedProps"]);return t.reduce(function(e,t){return n.hasOwnProperty(t)&&(e[t]=n[t]),e},{})}var C=function(e){function Animation(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,Animation);var t=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(Animation.__proto__||Object.getPrototypeOf(Animation)).call(this,e));return t._motionEndHandler=function(){t.props.onEnd&&t.props.onEnd()},t._renderChildren=function(e){var n=e.i,r=t.props.children,i=t._interpolator,o=c.Children.only(r),a=i?i(n):i,s=a&&a.data||null;return s&&o.props._data&&(s=s.map(function(e,t){var n=o.props._data[t];return T({},e,{parent:n.parent,children:n.children})})),c.cloneElement(o,T({},o.props,a,{data:s||o.props.data||null,_animation:Math.random()}))},t._updateInterpolator(e),t}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(Animation,e),P(Animation,[{key:"componentWillUpdate",value:function(e){this._updateInterpolator(this.props,e),e.onStart&&e.onStart()}},{key:"_updateInterpolator",value:function(e,t){this._interpolator=value(extractAnimatedPropValues(e),t?extractAnimatedPropValues(t):null)}},{key:"render",value:function(){var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S.um.noWobble;if("string"==typeof e)return S.um[e]||S.um.noWobble;var t=e.damping,n=e.stiffness;return T({damping:t||S.um.noWobble.damping,stiffness:n||S.um.noWobble.stiffness},e)}(this.props.animation),t={i:(0,S.ST)(1,e)},n=Math.random();return c.createElement(S.y_,T({defaultStyle:{i:0},style:t,key:n},{onRest:this._motionEndHandler}),this._renderChildren)}}]),Animation}(c.PureComponent);function src_ascending(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function bisector(e){var t;return 1===e.length&&(t=e,e=function(e,n){return src_ascending(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;0>e(t[o],n)?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}C.propTypes=w,C.displayName="Animation";var A=bisector(src_ascending),E=A.right;function src_extent(e,t){var n,r,i,o=e.length,a=-1;if(null==t){for(;++a<o;)if(null!=(n=e[a])&&n>=n)for(r=i=n;++a<o;)null!=(n=e[a])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++a<o;)if(null!=(n=t(e[a],a,e))&&n>=n)for(r=i=n;++a<o;)null!=(n=t(e[a],a,e))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]}A.left;var R=Array.prototype;R.slice,R.map;var j=Math.sqrt(50),N=Math.sqrt(10),L=Math.sqrt(2);function ticks(e,t,n){var r,i,o,a,s=-1;
5if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=tickIncrement(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),o=Array(i=Math.ceil((t=Math.floor(t/a))-e+1));++s<i;)o[s]=(e+s)*a;else for(o=Array(i=Math.ceil((e=Math.floor(e*a))-(t=Math.ceil(t*a))+1));++s<i;)o[s]=(e-s)/a;return r&&o.reverse(),o}function tickIncrement(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=j?10:o>=N?5:o>=L?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=j?10:o>=N?5:o>=L?2:1)}function ticks_tickStep(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=j?i*=10:o>=N?i*=5:o>=L&&(i*=2),t<e?-i:i}function threshold_sturges(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1}function min(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&r>n&&(r=n);return r}function src_range(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=Array(i);++r<i;)o[r]=e+r*n;return o}function sum(e,t){var n,r=e.length,i=-1,o=0;if(null==t)for(;++i<r;)(n=+e[i])&&(o+=n);else for(;++i<r;)(n=+t(e[i],i,e))&&(o+=n);return o}function Map(){}function map_map(e,t){var n=new Map;if(e instanceof Map)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function createObject(){return{}}function setObject(e,t,n){e[t]=n}function createMap(){return map_map()}function setMap(e,t,n){e.set(t,n)}function set_Set(){}Map.prototype=map_map.prototype={constructor:Map,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var D=map_map.prototype;function set(e,t){var n=new set_Set;if(e instanceof set_Set)e.each(function(e){n.add(e)});else if(e){var r=-1,i=e.length;if(null==t)for(;++r<i;)n.add(e[r]);else for(;++r<i;)n.add(t(e[r],r,e))}return n}set_Set.prototype=set.prototype={constructor:set_Set,has:D.has,add:function(e){return this["$"+(e+="")]=e,this},remove:D.remove,clear:D.clear,values:D.keys,size:D.size,empty:D.empty,each:D.each};var F=Array.prototype,I=F.map,H=F.slice,B={name:"implicit"};function ordinal(e){var t=map_map(),n=[],r=B;function scale(i){var o=i+"",a=t.get(o);if(!a){if(r!==B)return r;t.set(o,a=n.push(i))}return e[(a-1)%e.length]}return e=null==e?[]:H.call(e),scale.domain=function(e){if(!arguments.length)return n.slice();n=[],t=map_map();for(var r,i,o=-1,a=e.length;++o<a;)t.has(i=(r=e[o])+"")||t.set(i,n.push(r));return scale},scale.range=function(t){return arguments.length?(e=H.call(t),scale):e.slice()},scale.unknown=function(e){return arguments.length?(r=e,scale):r},scale.copy=function(){return ordinal().domain(n).range(e).unknown(r)},scale}function round(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function d3_scale_src_constant(e){return function(){return e}}function d3_scale_src_number(e){return+e}var V=[0,1];function deinterpolateLinear(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:d3_scale_src_constant(t)}function bimap(e,t,n,r){var i=e[0],o=e[1],a=t[0],s=t[1];return o<i?(i=n(o,i),a=r(s,a)):(i=n(i,o),a=r(a,s)),function(e){return a(i(e))}}function polymap(e,t,n,r){var i=Math.min(e.length,t.length)-1,o=Array(i),a=Array(i),s=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=n(e[s],e[s+1]),a[s]=r(t[s],t[s+1]);return function(t){var n=E(e,t,1,i)-1;return a[n](o[n](t))}}function copy(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function continuous(e,t){var n,r,i,o=V,a=V,s=value,u=!1;function rescale(){return n=Math.min(o.length,a.length)>2?polymap:bimap,r=i=null,scale}function scale(t){return(r||(r=n(o,a,u?function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}:e,s)))(+t)}return scale.invert=function(e){return(i||(i=n(a,o,deinterpolateLinear,u?function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}:t)))(+e)},scale.domain=function(e){return arguments.length?(o=I.call(e,d3_scale_src_number),rescale()):o.slice()},scale.range=function(e){return arguments.length?(a=H.call(e),rescale()):a.slice()}
5,scale.rangeRound=function(e){return a=H.call(e),s=round,rescale()},scale.clamp=function(e){return arguments.length?(u=!!e,rescale()):u},scale.interpolate=function(e){return arguments.length?(s=e,rescale()):s},rescale()}var z=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(e){var t;if(!(t=z.exec(e)))throw Error("invalid format: "+e);return new FormatSpecifier({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function FormatSpecifier(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function formatDecimalParts(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function exponent(e){return(e=formatDecimalParts(Math.abs(e)))?e[1]:NaN}function formatRounded(e,t){var n=formatDecimalParts(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}formatSpecifier.prototype=FormatSpecifier.prototype,FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var q={"%":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.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):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 formatRounded(100*e,t)},r:formatRounded,s:function(e,t){var n=formatDecimalParts(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(t4=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+Array(1-o).join("0")+formatDecimalParts(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function src_identity(e){return e}var U=Array.prototype.map,W=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function linear_linearish(e){var t=e.domain;return e.ticks=function(e){var n=t();return ticks(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return function(e,t,n){var r,i,o=e[0],a=e[e.length-1],s=ticks_tickStep(o,a,null==t?10:t);switch((n=formatSpecifier(null==n?",f":n)).type){case"s":var u=Math.max(Math.abs(o),Math.abs(a));return null!=n.precision||isNaN(i=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(exponent(u)/3)))-exponent(Math.abs(s))))||(n.precision=i),t9(n,u);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=Math.max(0,exponent(Math.abs(Math.max(Math.abs(o),Math.abs(a)))-(r=Math.abs(r=s)))-exponent(r))+1)||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=Math.max(0,-exponent(Math.abs(s))))||(n.precision=i-("%"===n.type)*2)}return t7(n)}(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,s=i[o],u=i[a];return u<s&&(r=s,s=u,u=r,r=o,o=a,a=r),(r=tickIncrement(s,u,n))>0?r=tickIncrement(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=tickIncrement(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,t(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,t(i)),e},e}function linear_linear(){var e=continuous(deinterpolateLinear,src_number);return e.copy=function(){return copy(e,linear_linear())},linear_linearish(e)}function nice(e,t){e=e.slice();var n,r=0,i=e.length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}function deinterpolate(e,t){return(t=Math.log(t/e))?function(n){return Math.log(n/e)/t}:d3_scale_src_constant(t)}function reinterpolate(e,t){return e<0?function(n){return-Math.pow(-t,n)*Math.pow(-e,1-n)}:function(n){return Math.pow(t,n)*Math.pow(e,1-n)}}function pow10(e){return isFinite(e)?+("1e"+e):e<0?0:e}function powp(e){return 10===e?pow10:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function logp(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function reflect(e){return function(t){return-e(-t)}}function raise(e,t){return e<0?-Math.pow(-e,t):Math.pow(e,t)}t7=(t8=function(e){var t,n,r,i=void 0===e.grouping||void 0===e.thousands?src_identity:(t=U.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(e.substring(i-=s,i+s)),!((u+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",u=void 0===e.numerals?src_identity:(r=U.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return r[+e]})}),c=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"-":e.minus+"",f=void 0===e.nan?"NaN":e.nan+"";function newFormat(e){var t=(e=formatSpecifier(e)).fill,n=e.align,r=e.sign,p=e.symbol,h=e.zero,d=e.width,y=e.comma,g=e.precision,m=e.trim,b=e.type;"n"===b?(y=!0,b="g"):q[b]||(void 0===g&&(g=12),m=!0,b="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var v="$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",_="$"===p?a:/[%p]/.test(b)?c:"",x=q[b],O=/[defgprs%]/.test(b);function format(e){var o,a,c,p=v,k=_;if("c"===b)k=x(e)+k,e="";else{var S=(e=+e)<0||1/e<0;
5if(e=isNaN(e)?f:x(Math.abs(e),g),m&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==r&&(S=!1),p=(S?"("===r?r:l:"-"===r||"("===r?"":r)+p,k=("s"===b?W[8+t4/3]:"")+k+(S&&"("===r?")":""),O){for(o=-1,a=e.length;++o<a;)if(48>(c=e.charCodeAt(o))||c>57){k=(46===c?s+e.slice(o+1):e.slice(o))+k,e=e.slice(0,o);break}}}y&&!h&&(e=i(e,1/0));var P=p.length+e.length+k.length,T=P<d?Array(d-P+1).join(t):"";switch(y&&h&&(e=i(T+e,T.length?d-k.length:1/0),T=""),n){case"<":e=p+e+k+T;break;case"=":e=p+T+e+k;break;case"^":e=T.slice(0,P=T.length>>1)+p+e+k+T.slice(P);break;default:e=T+p+e+k}return u(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),format.toString=function(){return e+""},format}return{format:newFormat,formatPrefix:function(e,t){var n=newFormat(((e=formatSpecifier(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(exponent(t)/3))),i=Math.pow(10,-r),o=W[8+r/3];return function(e){return n(i*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})).format,t9=t8.formatPrefix;var Y=new Date,G=new Date;function newInterval(e,t,n,r){function interval(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return interval.floor=function(t){return e(t=new Date(+t)),t},interval.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},interval.round=function(e){var t=interval(e),n=interval.ceil(e);return e-t<n-e?t:n},interval.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},interval.range=function(n,r,i){var o,a=[];if(n=interval.ceil(n),i=null==i?1:Math.floor(i),!(n<r)||!(i>0))return a;do a.push(o=new Date(+n)),t(n,i),e(n);while(o<n&&n<r);return a},interval.filter=function(n){return newInterval(function(t){if(t>=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&&(interval.count=function(t,r){return Y.setTime(+t),G.setTime(+r),e(Y),e(G),Math.floor(n(Y,G))},interval.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?interval.filter(r?function(t){return r(t)%e==0}:function(t){return interval.count(0,t)%e==0}):interval:null}),interval}var X=newInterval(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()});X.every=function(e){return isFinite(e=Math.floor(e))&&e>0?newInterval(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},X.range;var $=newInterval(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()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});function weekday(e){return newInterval(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())*6e4)/6048e5})}$.range;var Z=weekday(0),J=weekday(1),Q=weekday(2),K=weekday(3),ee=weekday(4),et=weekday(5),en=weekday(6);Z.range,J.range,Q.range,K.range,ee.range,et.range,en.range;var er=newInterval(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())*6e4)/864e5},function(e){return e.getDate()-1});er.range;var ei=newInterval(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()});ei.range;var eo=newInterval(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getMinutes()});eo.range;var ea=newInterval(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()});ea.range;var es=newInterval(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});function utcWeekday(e){return newInterval(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)/6048e5})}es.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?newInterval(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):es:null},es.range;var eu=utcWeekday(0),ec=utcWeekday(1),el=utcWeekday(2),ef=utcWeekday(3),ep=utcWeekday(4),eh=utcWeekday(5),ed=utcWeekday(6);eu.range,ec.range,el.range,ef.range,ep.range,eh.range,ed.range;var ey=newInterval(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}
5);ey.range;var eg=newInterval(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()});function localDate(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 utcDate(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 newDate(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}eg.every=function(e){return isFinite(e=Math.floor(e))&&e>0?newInterval(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},eg.range;var em={"-":"",_:" ",0:"0"},eb=/^\s*\d+/,ev=/^%/,e_=/[\\^$*+?|[\]().{}]/g;function pad(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?Array(n-o+1).join(t)+i:i)}function requote(e){return e.replace(e_,"\\$&")}function formatRe(e){return RegExp("^(?:"+e.map(requote).join("|")+")","i")}function formatLookup(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function parseWeekdayNumberSunday(e,t,n){var r=eb.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function parseWeekdayNumberMonday(e,t,n){var r=eb.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function parseWeekNumberSunday(e,t,n){var r=eb.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function parseWeekNumberISO(e,t,n){var r=eb.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function parseWeekNumberMonday(e,t,n){var r=eb.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function parseFullYear(e,t,n){var r=eb.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function parseYear(e,t,n){var r=eb.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function parseZone(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 parseQuarter(e,t,n){var r=eb.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function parseMonthNumber(e,t,n){var r=eb.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function parseDayOfMonth(e,t,n){var r=eb.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function parseDayOfYear(e,t,n){var r=eb.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function parseHour24(e,t,n){var r=eb.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function parseMinutes(e,t,n){var r=eb.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function parseSeconds(e,t,n){var r=eb.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function parseMilliseconds(e,t,n){var r=eb.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function parseMicroseconds(e,t,n){var r=eb.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function parseLiteralPercent(e,t,n){var r=ev.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function parseUnixTimestamp(e,t,n){var r=eb.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function parseUnixTimestampSeconds(e,t,n){var r=eb.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function formatDayOfMonth(e,t){return pad(e.getDate(),t,2)}function formatHour24(e,t){return pad(e.getHours(),t,2)}function formatHour12(e,t){return pad(e.getHours()%12||12,t,2)}function formatDayOfYear(e,t){return pad(1+er.count(X(e),e),t,3)}function formatMilliseconds(e,t){return pad(e.getMilliseconds(),t,3)}function formatMicroseconds(e,t){return formatMilliseconds(e,t)+"000"}function formatMonthNumber(e,t){return pad(e.getMonth()+1,t,2)}function formatMinutes(e,t){return pad(e.getMinutes(),t,2)}function formatSeconds(e,t){return pad(e.getSeconds(),t,2)}function formatWeekdayNumberMonday(e){var t=e.getDay();return 0===t?7:t}function formatWeekNumberSunday(e,t){return pad(Z.count(X(e)-1,e),t,2)}function dISO(e){var t=e.getDay();return t>=4||0===t?ee(e):ee.ceil(e)}function formatWeekNumberISO(e,t){return e=dISO(e),pad(ee.count(X(e),e)+(4===X(e).getDay()),t,2)}function formatWeekdayNumberSunday(e){return e.getDay()}function formatWeekNumberMonday(e,t){return pad(J.count(X(e)-1,e),t,2)}function formatYear(e,t){return pad(e.getFullYear()%100,t,2)}function formatYearISO(e,t){return pad((e=dISO(e)).getFullYear()%100,t,2)}function formatFullYear(e,t){return pad(e.getFullYear()%1e4,t,4)}function formatFullYearISO(e,t){var n=e.getDay();return pad((e=n>=4||0===n?ee(e):ee.ceil(e)).getFullYear()%1e4,t,4)}function formatZone(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pad(t/60|0,"0",2)+pad(t%60,"0",2)}function formatUTCDayOfMonth(e,t){return pad(e.getUTCDate(),t,2)}function formatUTCHour24(e,t){return pad(e.getUTCHours(),t,2)}function formatUTCHour12(e,t){return pad(e.getUTCHours()%12||12,t,2)}function formatUTCDayOfYear(e,t){return pad(1+ey.count(eg(e),e),t,3)}function formatUTCMilliseconds(e,t){return pad(e.getUTCMilliseconds(),t,3)}function formatUTCMicroseconds(e,t){return formatUTCMilliseconds(e,t)+"000"}function formatUTCMonthNumber(e,t){return pad(e.getUTCMonth()+1,t,2)}function formatUTCMinutes(e,t){return pad(e.getUTCMinutes(),t,2)}function formatUTCSeconds(e,t){return pad(e.getUTCSeconds(),t,2)}function formatUTCWeekdayNumberMonday(e){var t=e.getUTCDay();return 0===t?7:t}function formatUTCWeekNumberSunday(e,t){return pad(eu.count(eg(e)-1,e),t,2)}function UTCdISO(e){var t=e.getUTCDay();return t>=4||0===t?ep(e):ep.ceil(e)}function formatUTCWeekNumberISO(e,t){return e=UTCdISO(e),pad(ep.count(eg(e),e)+(4===eg(e).getUTCDay()),t,2)}function formatUTCWeekdayNumberSunday(e){return e.getUTCDay()}function formatUTCWeekNumberMonday(e,t){return pad(ec.count(eg(e)-1,e),t,2)}function formatUTCYear(e,t){return pad(e.getUTCFullYear()%100,t,2)}function formatUTCYearISO(e,t){return pad((e=UTCdISO(e)).getUTCFullYear()%100,t,2)}function formatUTCFullYear(e,t){return pad(e.getUTCFullYear()%1e4,t,4)}function formatUTCFullYearISO(e,t){var n=e.getUTCDay();return pad((e=n>=4||0===n?ep(e):ep.ceil(e)).getUTCFullYear()%1e4,t,4)}function formatUTCZone(){return"+0000"}function formatLiteralPercent(){return"%"}function formatUnixTimestamp(e){return+e}function formatUnixTimestampSeconds(e){return Math.floor(+e/1e3)}function time_date(e){return new Date(e)}function time_number(e){return e instanceof Date?+e:+new Date(+e)}function calendar(e,t,n,r,i,o,a,s,u){var c=continuous(deinterpolateLinear,src_number),l=c.invert,f=c.domain,p=u(".%L"),h=u(":%S"),d=u("%I:%M"),y=u("%I %p"),g=u("%a %d"),m=u("%b %d"),b=u("%B"),v=u("%Y"),_=[[a,1,1e3],[a,5,5e3],[a,15,15e3],[a,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function tickFormat(s){return(a(s)<s?p:o(s)<s?h:i(s)<s?d:r(s)<s?y:t(s)<s?n(s)<s?g:m:e(s)<s?b:v)(s)}function tickInterval(t,n,r,i){if(null==t&&(t=10),"number"==typeof t){var o=Math.abs(r-n)/t,a=bisector(function(e){return e[2]}).right(_,o);a===_.length?(i=ticks_tickStep(n/31536e6,r/31536e6,t),t=e):a?(i=(a=_[o/_[a-1][2]<_[a][2]/o?a-1:a])[1],t=a[0]):(i=Math.max(ticks_tickStep(n,r,t),1),t=s)}return null==i?t:t.every(i)}return c.invert=function(e){return new Date(l(e))},c.domain=function(e){return arguments.length?f(I.call(e,time_number)):f().map(time_date)},c.ticks=function(e,t){var n,r=f(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=tickInterval(e,i,o,t))?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(e,t){return null==t?tickFormat:u(t)},c.nice=function(e,t){var n=f();return(e=tickInterval(e,n[0],n[n.length-1],t))?f(nice(n,e)):c},c.copy=function(){return copy(c,calendar(e,t,n,r,i,o,a,s,u))},c}nt=(ne=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,u=e.shortMonths,c=formatRe(i),l=formatLookup(i),f=formatRe(o),p=formatLookup(o),h=formatRe(a),d=formatLookup(a),y=formatRe(s),g=formatLookup(s),m=formatRe(u),b=formatLookup(u),v={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:formatDayOfMonth,e:formatDayOfMonth,f:formatMicroseconds,g:formatYearISO,G:formatFullYearISO,H:formatHour24,I:formatHour12,j:formatDayOfYear,L:formatMilliseconds,m:formatMonthNumber,M:formatMinutes,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatSeconds,u:formatWeekdayNumberMonday,U:formatWeekNumberSunday,V:formatWeekNumberISO,w:formatWeekdayNumberSunday,W:formatWeekNumberMonday,x:null,X:null,y:formatYear,Y:formatFullYear,Z:formatZone,"%":formatLiteralPercent},_={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:formatUTCDayOfMonth,e:formatUTCDayOfMonth,f:formatUTCMicroseconds,g:formatUTCYearISO,G:formatUTCFullYearISO,H:formatUTCHour24,I:formatUTCHour12,j:formatUTCDayOfYear,L:formatUTCMilliseconds,m:formatUTCMonthNumber,M:formatUTCMinutes,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatUTCSeconds,u:formatUTCWeekdayNumberMonday,U:formatUTCWeekNumberSunday,V:formatUTCWeekNumberISO,w:formatUTCWeekdayNumberSunday,W:formatUTCWeekNumberMonday,x:null,X:null,y:formatUTCYear,Y:formatUTCFullYear,Z:formatUTCZone,"%":formatLiteralPercent},x={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=b[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return parseSpecifier(e,t,n,r)},d:parseDayOfMonth,e:parseDayOfMonth,f:parseMicroseconds,g:parseYear,G:parseFullYear,H:parseHour24,I:parseHour24,j:parseDayOfYear,L:parseMilliseconds,m:parseMonthNumber,M:parseMinutes,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=l[r[0].toLowerCase()],n+r[0].length):-1},q:parseQuarter,Q:parseUnixTimestamp,s:parseUnixTimestampSeconds,S:parseSeconds,u:parseWeekdayNumberMonday,U:parseWeekNumberSunday,V:parseWeekNumberISO,w:parseWeekdayNumberSunday,W:parseWeekNumberMonday,x:function(e,t,r){return parseSpecifier(e,n,t,r)},X:function(e,t,n){return parseSpecifier(e,r,t,n)},y:parseYear,Y:parseFullYear,Z:parseZone,"%":parseLiteralPercent};function newFormat(e,t){return function(n){var r,i,o,a=[],s=-1,u=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(u,s)),null!=(i=em[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),u=s+1);return a.push(e.slice(u,s)),a.join("")}}function newParse(e,t){return function(n){var r,i,o=newDate(1900,void 0,1);if(parseSpecifier(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(!t||"Z"in o||(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){
5if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=utcDate(newDate(o.y,0,1))).getUTCDay())>4||0===i?ec.ceil(r):ec(r),r=ey.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=localDate(newDate(o.y,0,1))).getDay())>4||0===i?J.ceil(r):J(r),r=er.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?utcDate(newDate(o.y,0,1)).getUTCDay():localDate(newDate(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,utcDate(o)):localDate(o)}}function parseSpecifier(e,t,n,r){for(var i,o,a=0,s=t.length,u=n.length;a<s;){if(r>=u)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=x[(i=t.charAt(a++))in em?t.charAt(a++):i])||(r=o(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return v.x=newFormat(n,v),v.X=newFormat(r,v),v.c=newFormat(t,v),_.x=newFormat(n,_),_.X=newFormat(r,_),_.c=newFormat(t,_),{format:function(e){var t=newFormat(e+="",v);return t.toString=function(){return e},t},parse:function(e){var t=newParse(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=newFormat(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=newParse(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,ne.parse,nn=ne.utcFormat,ne.utcParse;var ex=newInterval(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()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});ex.range;var eO=newInterval(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()});eO.range;var ek=newInterval(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getUTCMinutes()});function colors(e){return e.match(/.{6}/g).map(function(e){return"#"+e})}ek.range,colors("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),colors("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),colors("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),colors("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");var eS=Math.PI/180,eP=180/Math.PI,eT=-1.78277*.29227-.1347134789;function cubehelix_cubehelix(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof Cubehelix)return new Cubehelix(e.h,e.s,e.l,e.opacity);e instanceof Rgb||(e=rgbConvert(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(eT*r+-1.7884503806*t-3.5172982438*n)/(eT+-1.7884503806-3.5172982438),o=r-i,a=-((1.97294*(n-i)- -.29227*o)/.90649),s=Math.sqrt(a*a+o*o)/(1.97294*i*(1-i)),u=s?Math.atan2(a,o)*eP-120:NaN;return new Cubehelix(u<0?u+360:u,s,i,e.opacity)}(e):new Cubehelix(e,t,n,null==r?1:r)}function Cubehelix(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function cubehelix(e){return function cubehelixGamma(t){function cubehelix(n,r){var i=e((n=cubehelix_cubehelix(n)).h,(r=cubehelix_cubehelix(r)).h),o=nogamma(n.s,r.s),a=nogamma(n.l,r.l),s=nogamma(n.opacity,r.opacity);return function(e){return n.h=i(e),n.s=o(e),n.l=a(Math.pow(e,t)),n.opacity=s(e),n+""}}return t=+t,cubehelix.gamma=cubehelixGamma,cubehelix}(1)}src_define(Cubehelix,cubehelix_cubehelix,extend(Color,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.428571428571428
56,e),new Cubehelix(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Cubehelix(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*eS,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Rgb(255*(t+n*(-.14861*r+1.78277*i)),255*(t+n*(-.29227*r+-.90649*i)),255*(t+n*(1.97294*r)),this.opacity)}})),cubehelix(function(e,t){var n=t-e;return n?linear(e,n>180||n<-180?n-360*Math.round(n/360):n):d3_interpolate_src_constant(isNaN(e)?t:e)});var eM=cubehelix(nogamma);function ramp(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}eM(cubehelix_cubehelix(300,.5,0),cubehelix_cubehelix(-240,.5,1)),eM(cubehelix_cubehelix(-100,.75,.35),cubehelix_cubehelix(80,1.5,.8)),eM(cubehelix_cubehelix(260,.75,.35),cubehelix_cubehelix(80,1.5,.8)),cubehelix_cubehelix(),ramp(colors("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),ramp(colors("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),ramp(colors("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f36096138
509623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ramp(colors("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));var ew=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,2);throw TypeError("Invalid attempt to destructure non-iterable instance")}(c.version.split("."),0),eC=ew[0],eA=Number(ew[1])>13||Number(eC)>13,eE={},eR={production:!0};function warning(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(!n.g.process||!eR.production)&&(t&&eE[e]||(console.warn(e),eE[e]=!0))}function transformValueToString(e){return"[object Date]"===Object.prototype.toString.call(e)?e.toDateString():e}var ej=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},scales_utils_slicedToArray=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);
5throw TypeError("Invalid attempt to destructure non-iterable instance")};function _toConsumableArray(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eN="linear",eL="ordinal",eD="category",eF="literal",eI="time",eH=(_defineProperty(nr={},eN,linear_linear),_defineProperty(nr,eL,function(){return function pointish(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return pointish(t())},e}((function band(){var e,t,n=ordinal().unknown(void 0),r=n.domain,i=n.range,o=[0,1],a=!1,s=0,u=0,c=.5;function rescale(){var n=r().length,l=o[1]<o[0],f=o[l-0],p=o[1-l];e=(p-f)/Math.max(1,n-s+2*u),a&&(e=Math.floor(e)),f+=(p-f-e*(n-s))*c,t=e*(1-s),a&&(f=Math.round(f),t=Math.round(t));var h=src_range(n).map(function(t){return f+e*t});return i(l?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),rescale()):r()},n.range=function(e){return arguments.length?(o=[+e[0],+e[1]],rescale()):o.slice()},n.rangeRound=function(e){return o=[+e[0],+e[1]],a=!0,rescale()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,rescale()):a},n.padding=function(e){return arguments.length?(s=u=Math.max(0,Math.min(1,e)),rescale()):s},n.paddingInner=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),rescale()):s},n.paddingOuter=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),rescale()):u},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),rescale()):c},n.copy=function(){return band().domain(r()).range(o).round(a).paddingInner(s).paddingOuter(u).align(c)},rescale()})().paddingInner(1))}),_defineProperty(nr,eD,ordinal),_defineProperty(nr,eF,literalScale),_defineProperty(nr,"log",function log(){var e=continuous(deinterpolate,reinterpolate).domain([1,10]),t=e.domain,n=10,r=logp(10),i=powp(10);function rescale(){return r=logp(n),i=powp(n),t()[0]<0&&(r=reflect(r),i=reflect(i)),e}return e.base=function(e){return arguments.length?(n=+e,rescale()):n},e.domain=function(e){return arguments.length?(t(e),rescale()):t()},e.ticks=function(e){var o,a=t(),s=a[0],u=a[a.length-1];(o=u<s)&&(p=s,s=u,u=p);var c,l,f,p=r(s),h=r(u),d=null==e?10:+e,y=[];if(!(n%1)&&h-p<d){if(p=Math.round(p)-1,h=Math.round(h)+1,s>0){for(;p<h;++p)for(l=1,c=i(p);l<n;++l)if(!((f=c*l)<s)){if(f>u)break;y.push(f)}}else for(;p<h;++p)for(l=n-1,c=i(p);l>=1;--l)if(!((f=c*l)<s)){if(f>u)break;y.push(f)}}else y=ticks(p,h,Math.min(h-p,d)).map(i);return o?y.reverse():y},e.tickFormat=function(t,o){if(null==o&&(o=10===n?".0e":","),"function"!=typeof o&&(o=t7(o)),t===1/0)return o;null==t&&(t=10);var a=Math.max(1,n*t/e.ticks().length);return function(e){var t=e/i(Math.round(r(e)));return t*n<n-.5&&(t*=n),t<=a?o(e):""}},e.nice=function(){return t(nice(t(),{floor:function(e){return i(Math.floor(r(e)))},ceil:function(e){return i(Math.ceil(r(e)))}}))},e.copy=function(){return copy(e,log().base(n))},e}),_defineProperty(nr,eI,function(){return calendar(X,$,Z,er,ei,eo,ea,es,nt).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}),_defineProperty(nr,"time-utc",function(){return calendar(eg,ex,eu,ey,eO,ek,ea,es,nn).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}),nr),eB=["color","fill","opacity","stroke"];function toTitleCase(e){return""+e[0].toUpperCase()+e.slice(1)}function getScaleFnFromScaleObject(e){if(!e)return null;var t=e.type,n=e.domain,r=e.range,i=n[0]===n[1]?0===n[0]?[-1,0]:[-n[0],n[0]]:n;if(t===eF)return literalScale(r[0]);var o=eH[t]().domain(i).range(r);return t!==eL||(o.padding(.5),o.invert||(o.invert=function(e){var t=scales_utils_slicedToArray(o.range(),2),n=t[0],r=t[1],i=Math.min(n,r),a=Math.max(n,r);if(e<i+o.padding()*o.step())return o.domain()[0];if(e>a-o.padding()*o.step())return o.domain()[o.domain().length-1];var s=Math.floor((e-i-o.padding()*o.step())/o.step());return o.domain()[s]})),o}function _createScaleObjectForValue(e,t,n,r,i){return n===eF?{type:eF,domain:[],range:[t],distance:0,attr:e,baseValue:void 0,isValue:!0,accessor:r,accessor0:i}:void 0===t?null:{type:eD,range:[t],domain:[],distance:0,attr:e,baseValue:void 0,isValue:!0,accessor:r,accessor0:i}}function getScaleObjectFromProps(e,t){var n,r,i,o,a,s,u,c,l,f,p,h,d,y,g,m,b,v,_,x,O,k,S,P,T,M,w,C,A,E,R,j,N=(a=(n=e)[r=t],s=n["_"+r+"Value"],u=n[r+"Range"],c=n[r+"Distance"],l=n[r+"BaseValue"],p=void 0===(f=n[r+"Type"])?eN:f,h=n[r+"NoFallBack"],y=void 0===(d=n["get"+toTitleCase(r)])?function(e){return e[r]}:d,m=void 0===(g=n["get"+toTitleCase(r)+"0"])?function(e){return e[r+"0"]}:g,b=n[r+"Domain"],h||void 0===a?(void 0!==l&&((i=[].concat(b))[0]>l&&(i[0]=l),i[i.length-1]<l&&(i[i.length-1]=l),b=i),u&&b&&b.length)?{domain:(o={domain:b,range:u,type:p,distance:void 0===c?0:c,attr:r,baseValue:l,accessor:y,accessor0:m}).domain,range:o.range,type:o.type,distance:o.distance,attr:o.attr,baseValue:o.baseValue,isValue:!1,accessor:o.accessor,accessor0:o.accessor0}
5:_createScaleObjectForValue(r,s,n[r+"Type"],y,m):_createScaleObjectForValue(r,a,n[r+"Type"],y,m));if(!N)return null;if(v=N.attr,x=void 0===(_=e._adjustBy)?[]:_,!(void 0===(O=e._adjustWhat)?[]:O).length||!x.length||-1===x.indexOf(v))return N;var L=N.type;return L===eL||L===eD?(k=getScaleFnFromScaleObject(N),S=N.domain,P=N.range,S.length>1?N.distance=Math.abs(k(S[1])-k(S[0])):N.distance=Math.abs(P[1]-P[0])):(T=e._allData,w=void 0===(M=e._adjustWhat)?[]:M,C=N.domain.length,E=(A=N.domain)[0],R=A[C-1],j=N.distance,T.forEach(function(e,t){if(-1!==w.indexOf(t)&&e&&e.length){var n,r,i,o,a,s,u,c,l,f,p=(n=N.domain,r=N.type,i=N.accessor,o=N.accessor0,a=Array.from(new Set(e.map(i))),u=function(e,t){var n=getScaleFnFromScaleObject(t),r=0;if(n)for(var i=void 0,o=n(e[0]),a=1/0,s=void 0,u=1;u<e.length;u++)(s=Math.abs((i=n(e[u]))-o))<a&&(a=s,r=u),o=i;return r}(s=r===eI&&1===a.length?[o(e[0])].concat(_toConsumableArray(a)):a,N),c=[].concat(n),c[0]-=s.length>1?(s[1]-s[0])/2:1===s.length?s[0]-.5:0,c[n.length-1]+=s.length>1?(s[s.length-1]-s[s.length-2])/2:1===s.length?s[0]-.5:0,"log"===r&&n[0]<=0&&(c[0]=Math.min(n[1]/10,1)),l=getScaleFnFromScaleObject(ej({},N,{domain:c})),f=function(e,t,n,r){if(e.length>1){var i=Math.max(n,1);return Math.abs(r(e[i])-r(e[i-1]))}return 1===e.length?Math.abs(r(t[1])-r(t[0])):0}(s,c,u,l),{domain0:c[0],domainN:c[c.length-1],distance:f}),h=p.domain0,d=p.domainN,y=p.distance;E=Math.min(E,h),R=Math.max(R,d),j=Math.max(j,y)}}),N.domain=[E].concat(_toConsumableArray(A.slice(1,-1)),[R]),N.distance=j),N}function getAttributeScale(e,t){return getScaleFnFromScaleObject(getScaleObjectFromProps(e,t))}function _getAttrValue(e,t){return t(e.data?e.data:e)}function _isDefined(e){return void 0!==e}function getAttributeFunctor(e,t){var n=getScaleObjectFromProps(e,t);if(n){var r=getScaleFnFromScaleObject(n);return function(e){return r(_getAttrValue(e,n.accessor))}}return null}function getAttr0Functor(e,t){var n=getScaleObjectFromProps(e,t);if(n){var r=n.domain,i=n.baseValue,o=void 0===i?r[0]:i,a=getScaleFnFromScaleObject(n);return function(e){var t=_getAttrValue(e,n.accessor0);return a(_isDefined(t)?t:o)}}return null}function getAttributeValue(e,t){var n=getScaleObjectFromProps(e,t);return n?(n.isValue||void 0!==e["_"+t+"Value"]||warning("[React-vis] Cannot use data defined "+t+" for this series type. Using fallback value instead."),e["_"+t+"Value"]||n.range[0]):null}function getScalePropTypesByAttribute(e){var t;return _defineProperty(t={},"_"+e+"Value",o().any),_defineProperty(t,e+"Domain",o().array),_defineProperty(t,"get"+toTitleCase(e),o().func),_defineProperty(t,"get"+toTitleCase(e)+"0",o().func),_defineProperty(t,e+"Range",o().array),_defineProperty(t,e+"Type",o().oneOf(Object.keys(eH))),_defineProperty(t,e+"Distance",o().number),_defineProperty(t,e+"BaseValue",o().any),t}function extractScalePropsFromProps(e,t){var n={};return Object.keys(e).forEach(function(r){t.find(function(e){var t=0===r.indexOf(e),n=0===r.indexOf("_"+e),i=0===r.indexOf("get"+toTitleCase(e));return t||n||i})&&(n[r]=e[r])}),n}function getMissingScaleProps(e,t,n){var r={};return n.forEach(function(n){if(e["get"+toTitleCase(n)]||(r["get"+toTitleCase(n)]=function(e){return e[n]}),e["get"+toTitleCase(n)+"0"]||(r["get"+toTitleCase(n)+"0"]=function(e){return e[n+"0"]}),!e[n+"Domain"]){var i,o,a,s;r[n+"Domain"]=(i=e["get"+toTitleCase(n)]||r["get"+toTitleCase(n)],o=e["get"+toTitleCase(n)+"0"]||r["get"+toTitleCase(n)+"0"],a=e[n+"Type"],(s=t.reduce(function(e,t){var n=i(t),r=o(t);return _isDefined(n)&&e.push(n),_isDefined(r)&&e.push(r),e},[])).length?a!==eL&&a!==eD?src_extent(s):set(s).values():[]),e[n+"Padding"]&&(r[n+"Domain"]=function(e,t){if(!e||isNaN(parseFloat(e[0]))||isNaN(parseFloat(e[1])))return e;var n=scales_utils_slicedToArray(e,2),r=n[0],i=n[1],o=(i-r)*(.01*t);return[r-o,i+o]}(r[n+"Domain"],e[n+"Padding"]))}}),r}function literalScale(e){function scale(t){return void 0===t?e:t}function response(){return scale}return scale.domain=response,scale.range=response,scale.unknown=response,scale.copy=response,scale}var eV=["Padding"].map(function(e){return RegExp(e+"$","i")}),ez=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}();function abstract_series_possibleConstructorReturn(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var eq=(Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e})({},getScalePropTypesByAttribute("x"),getScalePropTypesByAttribute("y"),get
5ScalePropTypesByAttribute("size"),getScalePropTypesByAttribute("opacity"),getScalePropTypesByAttribute("color"),{width:o().number,height:o().number,data:o().arrayOf(o().oneOfType([o().object,o().array])),onValueMouseOver:o().func,onValueMouseOut:o().func,onValueClick:o().func,onValueRightClick:o().func,onSeriesMouseOver:o().func,onSeriesMouseOut:o().func,onSeriesClick:o().func,onSeriesRightClick:o().func,onNearestX:o().func,onNearestXY:o().func,style:o().object,animation:M,stack:o().bool}),eU=function(e){function AbstractSeries(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,AbstractSeries);for(var e,t,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n=abstract_series_possibleConstructorReturn(this,(e=AbstractSeries.__proto__||Object.getPrototypeOf(AbstractSeries)).call.apply(e,[this].concat(i))),n._seriesClickHandler=function(e){var t=n.props.onSeriesClick;t&&t({event:e})},n._seriesMouseOutHandler=function(e){var t=n.props.onSeriesMouseOut;t&&t({event:e})},n._seriesMouseOverHandler=function(e){var t=n.props.onSeriesMouseOver;t&&t({event:e})},n._seriesRightClickHandler=function(e){var t=n.props.onSeriesRightClick;t&&t({event:e})},n._valueClickHandler=function(e,t){var r=n.props,i=r.onValueClick,o=r.onSeriesClick;i&&i(e,{event:t}),o&&o({event:t})},n._valueMouseOutHandler=function(e,t){var r=n.props,i=r.onValueMouseOut,o=r.onSeriesMouseOut;i&&i(e,{event:t}),o&&o({event:t})},n._valueMouseOverHandler=function(e,t){var r=n.props,i=r.onValueMouseOver,o=r.onSeriesMouseOver;i&&i(e,{event:t}),o&&o({event:t})},n._valueRightClickHandler=function(e,t){var r=n.props,i=r.onValueRightClick,o=r.onSeriesRightClick;i&&i(e,{event:t}),o&&o({event:t})},abstract_series_possibleConstructorReturn(n,t)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(AbstractSeries,e),ez(AbstractSeries,[{key:"onParentMouseMove",value:function(e){var t=this.props,n=t.onNearestX,r=t.onNearestXY,i=t.data;(n||r)&&i&&(r?this._handleNearestXY(e):this._handleNearestX(e))}},{key:"onParentTouchMove",value:function(e){e.preventDefault(),this.onParentMouseMove(e)}},{key:"onParentTouchStart",value:function(e){e.preventDefault()}},{key:"_getAttr0Functor",value:function(e){return getAttr0Functor(this.props,e)}},{key:"_getAttributeFunctor",value:function(e){return getAttributeFunctor(this.props,e)}},{key:"_getAttributeValue",value:function(e){return getAttributeValue(this.props,e)}},{key:"_getScaleDistance",value:function(e){var t=getScaleObjectFromProps(this.props,e);return t?t.distance:0}},{key:"_getXYCoordinateInContainer",value:function(e){var t=this.props,n=t.marginTop,r=t.marginLeft,i=e.nativeEvent,o=e.currentTarget,a=o.getBoundingClientRect(),s=i.clientX,u=i.clientY;return"touchmove"===i.type&&(s=i.touches[0].pageX,u=i.touches[0].pageY),{x:s-a.left-o.clientLeft-(void 0===r?0:r),y:u-a.top-o.clientTop-(void 0===n?0:n)}}},{key:"_handleNearestX",value:function(e){var t=this.props,n=t.onNearestX,r=t.data,i=Number.POSITIVE_INFINITY,o=null,a=null,s=this._getXYCoordinateInContainer(e),u=this._getAttributeFunctor("x");r.forEach(function(e,t){var n=u(e),r=Math.abs(s.x-n);r<i&&(i=r,o=e,a=t)}),o&&n(o,{innerX:u(o),index:a,event:e.nativeEvent})}},{key:"_handleNearestXY",value:function(e){var t=this.props,n=t.onNearestXY,r=t.data,i=this._getXYCoordinateInContainer(e),o=this._getAttributeFunctor("x"),a=this._getAttributeFunctor("y"),s=voronoi().x(o).y(a)(r).find(i.x,i.y),u=s.data;u&&n(u,{innerX:s[0],innerY:s[1],index:s.index,event:e.nativeEvent})}}],[{key:"getParentConfig",value:function(){return{}}},{key:"requiresSVG",get:function(){return!0}}]),AbstractSeries}(c.PureComponent);eU.displayName="AbstractSeries",eU.propTypes=eq,eU.defaultProps={className:"",stack:!1,style:{}};var eW=["#12939A","#79C7E3","#1A3177","#FF9833","#EF5D28"],eY=["#19CDD7","#DDB27C","#88572C","#F
5F991F","#F15C17","#223F9A","#DA70BF","#125C77","#4DC19C","#776E57","#12939A","#17B8BE","#F6D18A","#B7885E","#FFCB99","#F89570","#829AE3","#E79FD5","#1E96BE","#89DAC1","#B3AD9E"],eG=["#EF5D28","#FF9833"],eX=[1,10],e$="literal",eZ=eW[0],eJ=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function series_utils_defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function isSeriesChild(e){return e.type.prototype instanceof eU}function getSeriesChildren(e){return c.Children.toArray(e).filter(function(e){return e&&isSeriesChild(e)})}function getStackedData(e,t){var n=e.some(function(e){return e&&e.props.stack}),r={};return e.reduce(function(e,i,o){if(!i)return e.push(null),e;var a=i.type.displayName,s=i.props,u=s.data,c=s.cluster,l=void 0===c?"default":c,f=s.stack,p=!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.some(function(e){return e.radius&&e.angle})}(u)?u:u.map(function(e){return eJ({},e,{x:e.radius*Math.cos(e.angle),y:e.radius*Math.sin(e.angle)})});if(!t||!p||!p.length||n&&!f)return e.push(p),e;var h=t+"0",d="y"===t?"x":"y";return e.push(p.map(function(e,n){r[l]||(r[l]={}),r[l][a]||(r[l][a]={});var i,o,s,u=r[l][a][e[d]];if(!u)return r[l][a][e[d]]=(series_utils_defineProperty(s={},h,e[h]),series_utils_defineProperty(s,t,e[t]),s),eJ({},e);var c=eJ({},e,(series_utils_defineProperty(i={},h,u[t]),series_utils_defineProperty(i,t,u[t]+e[t]-(e[h]||0)),i));return r[l][a][e[d]]=(series_utils_defineProperty(o={},h,c[h]),series_utils_defineProperty(o,t,c[t]),o),c})),e},[])}function getRadialDomain(e){return e.reduce(function(e,t){return Math.max(t.radius,e)},0)}var eQ=["xRange","xDomain","x","yRange","yDomain","y","colorRange","colorDomain","color","opacityRange","opacityDomain","opacity","strokeRange","strokeDomain","stroke","fillRange","fillDomain","fill","width","height","marginLeft","marginTop","marginRight","marginBottom","data","angleDomain","angleRange","angle","radiusDomain","radiusRange","radius","innerRadiusDomain","innerRadiusRange","innerRadius"];function getStackParams(e){var t=e._stackBy,n=e.valuePosAttr,r=e.cluster,i=e.sameTypeTotal,o=void 0===i?1:i,a=e.sameTypeIndex,s=void 0===a?0:a;return t!==n||r||(o=1,s=0),{sameTypeTotal:o,sameTypeIndex:s}}var eK=Math.PI,e0=2*eK,e1=e0-1e-6;function Path(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function path(){return new Path}function d3_shape_src_constant(e){return function(){return e}}Path.prototype=path.prototype={constructor:Path,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,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,u=r-t,c=o-e,l=a-t,f=c*c+l*l;if(i<0)throw Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>1e-6){if(Math.abs(l*s-u*c)>1e-6&&i){var p=n-o,h=r-a,d=s*s+u*u,y=Math.sqrt(d),g=Math.sqrt(f),m=i*Math.tan((eK-Math.acos((d+f-(p*p+h*h))/(2*y*g)))/2),b=m/g,v=m/y;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*c)+","+(t+b*l)),this._+="A"+i+","+i+",0,0,"+ +(l*p>c*h)+","+(this._x1=e+v*s)+","+(this._y1=t+v*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,n,r,i,o){e=+e,t=+t,n=+n,o=!!o;var a=n*Math.cos(r),s=n*Math.sin(r),u=e+a,c=t+s,l=1^o,f=o?r-i:i-r;if(n<0)throw Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+u+","+c),n&&(f<0&&(f=f%e0+e0),f>e1?this._+="A"+n+","+n+",0,1,"+l+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=eK)+","+l+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},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 e2=Math.abs,e3=Math.atan2,e5=Math.cos,e6=Math.max,e4=Math.min,e8=
5Math.sin,e7=Math.sqrt,e9=Math.PI,te=e9/2,tt=2*e9;function asin(e){return e>=1?te:e<=-1?-te:Math.asin(e)}function arcInnerRadius(e){return e.innerRadius}function arcOuterRadius(e){return e.outerRadius}function arcStartAngle(e){return e.startAngle}function arcEndAngle(e){return e.endAngle}function arcPadAngle(e){return e&&e.padAngle}function cornerTangents(e,t,n,r,i,o,a){var s=e-n,u=t-r,c=(a?o:-o)/e7(s*s+u*u),l=c*u,f=-c*s,p=e+l,h=t+f,d=n+l,y=r+f,g=(p+d)/2,m=(h+y)/2,b=d-p,v=y-h,_=b*b+v*v,x=i-o,O=p*y-d*h,k=(v<0?-1:1)*e7(e6(0,x*x*_-O*O)),S=(O*v-b*k)/_,P=(-O*b-v*k)/_,T=(O*v+b*k)/_,M=(-O*b+v*k)/_,w=S-g,C=P-m,A=T-g,E=M-m;return w*w+C*C>A*A+E*E&&(S=T,P=M),{cx:S,cy:P,x01:-l,y01:-f,x11:S*(i/x-1),y11:P*(i/x-1)}}function arc(){var e=arcInnerRadius,t=arcOuterRadius,n=d3_shape_src_constant(0),r=null,i=arcStartAngle,o=arcEndAngle,a=arcPadAngle,s=null;function arc(){var u,c,l=+e.apply(this,arguments),f=+t.apply(this,arguments),p=i.apply(this,arguments)-te,h=o.apply(this,arguments)-te,d=e2(h-p),y=h>p;if(s||(s=u=path()),f<l&&(c=f,f=l,l=c),f>1e-12){if(d>tt-1e-12)s.moveTo(f*e5(p),f*e8(p)),s.arc(0,0,f,p,h,!y),l>1e-12&&(s.moveTo(l*e5(h),l*e8(h)),s.arc(0,0,l,h,p,y));else{var g,m,b=p,v=h,_=p,x=h,O=d,k=d,S=a.apply(this,arguments)/2,P=S>1e-12&&(r?+r.apply(this,arguments):e7(l*l+f*f)),T=e4(e2(f-l)/2,+n.apply(this,arguments)),M=T,w=T;if(P>1e-12){var C=asin(P/l*e8(S)),A=asin(P/f*e8(S));(O-=2*C)>1e-12?(C*=y?1:-1,_+=C,x-=C):(O=0,_=x=(p+h)/2),(k-=2*A)>1e-12?(A*=y?1:-1,b+=A,v-=A):(k=0,b=v=(p+h)/2)}var E=f*e5(b),R=f*e8(b),j=l*e5(x),N=l*e8(x);if(T>1e-12){var L,D=f*e5(v),F=f*e8(v),I=l*e5(_),H=l*e8(_);if(d<e9&&(L=function(e,t,n,r,i,o,a,s){var u=n-e,c=r-t,l=a-i,f=s-o,p=f*u-l*c;if(!(p*p<1e-12))return p=(l*(t-o)-f*(e-i))/p,[e+p*u,t+p*c]}(E,R,I,H,D,F,j,N))){var B,V=E-L[0],z=R-L[1],q=D-L[0],U=F-L[1],W=1/e8(((B=(V*q+z*U)/(e7(V*V+z*z)*e7(q*q+U*U)))>1?0:B<-1?e9:Math.acos(B))/2),Y=e7(L[0]*L[0]+L[1]*L[1]);M=e4(T,(l-Y)/(W-1)),w=e4(T,(f-Y)/(W+1))}}k>1e-12?w>1e-12?(g=cornerTangents(I,H,E,R,f,w,y),m=cornerTangents(D,F,j,N,f,w,y),s.moveTo(g.cx+g.x01,g.cy+g.y01),w<T?s.arc(g.cx,g.cy,w,e3(g.y01,g.x01),e3(m.y01,m.x01),!y):(s.arc(g.cx,g.cy,w,e3(g.y01,g.x01),e3(g.y11,g.x11),!y),s.arc(0,0,f,e3(g.cy+g.y11,g.cx+g.x11),e3(m.cy+m.y11,m.cx+m.x11),!y),s.arc(m.cx,m.cy,w,e3(m.y11,m.x11),e3(m.y01,m.x01),!y))):(s.moveTo(E,R),s.arc(0,0,f,b,v,!y)):s.moveTo(E,R),l>1e-12&&O>1e-12?M>1e-12?(g=cornerTangents(j,N,D,F,l,-M,y),m=cornerTangents(E,R,I,H,l,-M,y),s.lineTo(g.cx+g.x01,g.cy+g.y01),M<T?s.arc(g.cx,g.cy,M,e3(g.y01,g.x01),e3(m.y01,m.x01),!y):(s.arc(g.cx,g.cy,M,e3(g.y01,g.x01),e3(g.y11,g.x11),!y),s.arc(0,0,l,e3(g.cy+g.y11,g.cx+g.x11),e3(m.cy+m.y11,m.cx+m.x11),y),s.arc(m.cx,m.cy,M,e3(m.y11,m.x11),e3(m.y01,m.x01),!y))):s.arc(0,0,l,x,_,y):s.lineTo(j,N)}}else s.moveTo(0,0);if(s.closePath(),u)return s=null,u+""||null}return arc.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-e9/2;return[e5(r)*n,e8(r)*n]},arc.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:d3_shape_src_constant(+t),arc):e},arc.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:d3_shape_src_constant(+e),arc):t},arc.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:d3_shape_src_constant(+e),arc):n},arc.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:d3_shape_src_constant(+e),arc):r},arc.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:d3_shape_src_constant(+e),arc):i},arc.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:d3_shape_src_constant(+e),arc):o},arc.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:d3_shape_src_constant(+e),arc):a},arc.context=function(e){return arguments.length?(s=null==e?null:e,arc):s},arc}var tn=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),tr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ti="rv-xy-plot__series rv-xy-plot__series--arc",to=["radius","angle"],ta=tr({},eU.defaultProps,{center:{x:0,y:0},arcClassName:"",className:"",style:{},padAngle:0});
5function modifyRow(e){var t=e.radius,n=e.angle,r=e.angle0,i=-1*n+Math.PI/2;return tr({},e,{x:t*Math.cos(i),y:t*Math.sin(i),angle:i,angle0:-1*r+Math.PI/2})}var ts=function(e){function ArcSeries(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,ArcSeries);var t=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(ArcSeries.__proto__||Object.getPrototypeOf(ArcSeries)).call(this,e)),n=t._getAllScaleProps(e);return t.state={scaleProps:n},t}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(ArcSeries,e),tn(ArcSeries,[{key:"componentWillReceiveProps",value:function(e){this.setState({scaleProps:this._getAllScaleProps(e)})}},{key:"_getAllScaleProps",value:function(e){var t=this._getDefaultScaleProps(e),n=extractScalePropsFromProps(e,to),r=getMissingScaleProps(tr({},t,n),e.data,to);return tr({},t,n,r)}},{key:"_getDefaultScaleProps",value:function(e){var t=Math.min(e.innerWidth/2,e.innerHeight/2);return{radiusRange:[0,t],_radiusValue:t,angleType:"literal"}}},{key:"render",value:function(){var e=this,t=this.props,n=t.arcClassName,r=t.animation,i=t.className,o=t.center,a=t.data,s=t.disableSeries,u=t.hideSeries,l=t.marginLeft,f=t.marginTop,p=t.padAngle,h=t.style;if(!a)return null;if(r){var d=a.map(function(e){return tr({},e)});return c.createElement("g",{className:"rv-xy-plot__series--arc__animation-wrapper"},c.createElement(C,tr({},this.props,{animatedProps:eQ,data:d}),c.createElement(ArcSeries,tr({},this.props,{animation:null,disableSeries:!0,data:d}))),c.createElement(ArcSeries,tr({},this.props,{animation:null,hideSeries:!0,style:{stroke:"red"}})))}var y=this.state.scaleProps,g=y.radiusDomain,m=getAttributeFunctor(y,"radius"),b=getAttr0Functor(y,"radius"),v=getAttributeFunctor(y,"angle"),_=getAttr0Functor(y,"angle"),x=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),O=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),k=this._getAttributeFunctor("opacity"),S=this._getAttributeFunctor("x"),P=this._getAttributeFunctor("y");return c.createElement("g",{className:ti+" "+i,onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,opacity:u?0:1,pointerEvents:s?"none":"all",transform:"translate("+(l+S(o))+","+(f+P(o))+")"},a.map(function(t,r){var i={innerRadius:g[1]===g[0]?0:b(t),outerRadius:m(t),startAngle:_(t)||0,endAngle:v(t)},o=arc().padAngle(p),a=t.style||{},s=t.className||"";return c.createElement("path",{style:tr({opacity:k&&k(t),stroke:O&&O(t),fill:x&&x(t)},h,a),onClick:function(n){return e._valueClickHandler(modifyRow(t),n)},onContextMenu:function(n){return e._valueRightClickHandler(modifyRow(t),n)},onMouseOver:function(n){return e._valueMouseOverHandler(modifyRow(t),n)},onMouseOut:function(n){return e._valueMouseOutHandler(modifyRow(t),n)},key:r,className:ti+"-path "+n+" "+s,d:o(i)})}))}}]),ArcSeries}(eU);function Linear(e){this._context=e}function curve_linear(e){return new Linear(e)}function src_point_x(e){return e[0]}function src_point_y(e){return e[1]}function src_line(){var e=src_point_x,t=src_point_y,n=d3_shape_src_constant(!0),r=null,i=curve_linear,o=null;function line(a){var s,u,c,l=a.length,f=!1;for(null==r&&(o=i(c=path())),s=0;s<=l;++s)!(s<l&&n(u=a[s],s,a))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(u,s,a),+t(u,s,a));if(c)return o=null,c+""||null}return line.x=function(t){return arguments.length?(e="function"==typeof t?t:d3_shape_src_constant(+t),line):e},line.y=function(e){return arguments.length?(t="function"==typeof e?e:d3_shape_src_constant(+e),line):t},line.defined=function(e){return arguments.length?(n="function"==typeof e?e:d3_shape_src_constant(!!e),line):n},line.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),line):i},line.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),line):r},line}function src_area(){var e=src_point_x,t=null,n=d3_shape_src_constant(0),r=src_point_y,i=d3_shape_src_constant(!0),o=null,a=curve_linear,s=null;function area(u){var c,l,f,p,h,d=u.length,y=!1,g=Array(d),m=Array(d);for(null==o&&(s=a(h=path())),c=0;c<=d;++c){if(!(c<d&&i(p=u[c],c,u))===y){if(y=!y)l=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=c-1;f>=l;--f)s.point(g[f],m[f]);s.lineEnd(),s.areaEnd()}}y&&(g[c]=+e(p,c,u),m[c]=+n(p,c,u),s.point(t?+t(p,c,u):g[c],r?+r(p,c,u):m[c]))}if(h)return s=null,h+""||null}function arealine(){return src_line().defined(i).curve(a).context(o)}return area.x=function(n){return arguments.length?(e="function"==typeof n?n:d3_shape_src_constant(+n),t=null,area):e},area.x0=function(t){return arguments.length?(e="function"==typeof t?t:d3_shape_src_constant(+t),area):e},area.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:d3_shape_src_constant(+e),area):t},area.y=function(e){return arguments.length?(n="function"==typeof e?e:d3_shape_src_constant(+e),r=null,area):n},area.y0=function(e){return arguments.length?(n="function"==typeof e?e:d3_shape_src_constant(+e),area):n},area.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:d3_shape_src_constant(+e),area):r},area.lineX0=area.lineY0=function(){return arealine().x(e).y(n)},area.lineY1=function(){return arealine().x(e).y(r)},area.lineX1=function(){return arealine().x(t).y(n)},area.defined=function(e){return arguments.length?(i="function"==typeof e?e:d3_shape_src_constant(!!e),area):i},area.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),area):a},area.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),area):o},area}function descending(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function d3_shape_src_identity(e){return e}function src_pie(){var e=d3_shape_src_identity,t=descending,n=null,r=d3_shape_src_constant(0),i=d3_shape_src_constant(tt),o=d3_shape_src_constant(0);function pie(a){var s,u,c,l,f,p=a.length,h=0,d=Array(p),y=Array(p),g=+r.apply(this,arguments),m=Math.min(tt,Math.max(-tt,i.apply(this,arguments)-g)),b=Math.min(Math.abs(m)/p,o.apply(this,arguments)),v=b*(m<0?-1:1);for(s=0;s<p;++s)(f=y[d[s]=s]=+e(a[s],s,a))>0&&(h+=f);for(null!=t?d.sort(function(e,n){return t(y[e],y[n])}):null!=n&&d.sort(function(e,t){return n(a[e],a[t])}),s=0,c=h?(m-p*v)/h:0;s<p;++s,g=l)l=g+((f=y[u=d[s]])>0?f*c:0)+v,y[u]={data:a[u],index:s,value:f,startAngle:g,endAngle:l,padAngle:b};return y}return pie.value=function(t){return arguments.length?(e="function"==typeof t?t:d3_shape_src_constant(+t),pie):e}
5,pie.sortValues=function(e){return arguments.length?(t=e,n=null,pie):t},pie.sort=function(e){return arguments.length?(n=e,t=null,pie):n},pie.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:d3_shape_src_constant(+e),pie):r},pie.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:d3_shape_src_constant(+e),pie):i},pie.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:d3_shape_src_constant(+e),pie):o},pie}ts.propTypes=tr({},eU.propTypes,getScalePropTypesByAttribute("radius"),getScalePropTypesByAttribute("angle"),{center:o().shape({x:o().number,y:o().number}),arcClassName:o().string,padAngle:o().oneOfType([o().func,o().number])}),ts.defaultProps=ta,ts.displayName="ArcSeries",Linear.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 tu=curveRadial(curve_linear);function Radial(e){this._curve=e}function curveRadial(e){function radial(t){return new Radial(e(t))}return radial._curve=e,radial}function lineRadial(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(curveRadial(e)):t()._curve},e}function src_lineRadial(){return lineRadial(src_line().curve(tu))}function areaRadial(){var e=src_area().curve(tu),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return lineRadial(n())},delete e.lineX0,e.lineEndAngle=function(){return lineRadial(r())},delete e.lineX1,e.lineInnerRadius=function(){return lineRadial(i())},delete e.lineY0,e.lineOuterRadius=function(){return lineRadial(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(curveRadial(e)):t()._curve},e}function pointRadial(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}Radial.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 tc=Array.prototype.slice;function linkSource(e){return e.source}function linkTarget(e){return e.target}function link_link(e){var t=linkSource,n=linkTarget,r=src_point_x,i=src_point_y,o=null;function link(){var a,s=tc.call(arguments),u=t.apply(this,s),c=n.apply(this,s);if(o||(o=a=path()),e(o,+r.apply(this,(s[0]=u,s)),+i.apply(this,s),+r.apply(this,(s[0]=c,s)),+i.apply(this,s)),a)return o=null,a+""||null}return link.source=function(e){return arguments.length?(t=e,link):t},link.target=function(e){return arguments.length?(n=e,link):n},link.x=function(e){return arguments.length?(r="function"==typeof e?e:d3_shape_src_constant(+e),link):r},link.y=function(e){return arguments.length?(i="function"==typeof e?e:d3_shape_src_constant(+e),link):i},link.context=function(e){return arguments.length?(o=null==e?null:e,link):o},link}function curveHorizontal(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function curveVertical(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function link_curveRadial(e,t,n,r,i){var o=pointRadial(t,n),a=pointRadial(t,n=(n+i)/2),s=pointRadial(r,n),u=pointRadial(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function linkHorizontal(){return link_link(curveHorizontal)}function linkVertical(){return link_link(curveVertical)}function linkRadial(){var e=link_link(link_curveRadial);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var tl={draw:function(e,t){var n=Math.sqrt(t/e9);e.moveTo(n,0),e.arc(0,0,n,0,tt)}},tf={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()}},tp=Math.sqrt(1/3),th=2*tp,td={draw:function(e,t){var n=Math.sqrt(t/th),r=n*tp;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},ty=Math.sin(e9/10)/Math.sin(7*e9/10),tg=Math.sin(tt/10)*ty,tm=-Math.cos(tt/10)*ty,tb={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=tg*n,i=tm*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=tt*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},tv={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},t_=Math.sqrt(3),tx={draw:function(e,t){var n=-Math.sqrt(t/(3*t_));e.moveTo(0,2*n),e.lineTo(-t_*n,-n),e.lineTo(t_*n,-n),e.closePath()}}
vendor: 16,384 bytes, line 5
5,tO=Math.sqrt(3)/2,tk=1/Math.sqrt(12),tS=(tk/2+1)*3,tP={draw:function(e,t){var n=Math.sqrt(t/tS),r=n/2,i=n*tk,o=n*tk+n,a=-r;e.moveTo(r,i),e.lineTo(r,o),e.lineTo(a,o),e.lineTo(-.5*r-tO*i,tO*r+-.5*i),e.lineTo(-.5*r-tO*o,tO*r+-.5*o),e.lineTo(-.5*a-tO*o,tO*a+-.5*o),e.lineTo(-.5*r+tO*i,-.5*i-tO*r),e.lineTo(-.5*r+tO*o,-.5*o-tO*r),e.lineTo(-.5*a+tO*o,-.5*o-tO*a),e.closePath()}},tT=[tl,tf,td,tv,tb,tx,tP];function symbol(){var e=d3_shape_src_constant(tl),t=d3_shape_src_constant(64),n=null;function symbol(){var r;if(n||(n=r=path()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return symbol.type=function(t){return arguments.length?(e="function"==typeof t?t:d3_shape_src_constant(t),symbol):e},symbol.size=function(e){return arguments.length?(t="function"==typeof e?e:d3_shape_src_constant(+e),symbol):t},symbol.context=function(e){return arguments.length?(n=null==e?null:e,symbol):n},symbol}function noop(){}function basis_point(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 Basis(e){this._context=e}function curve_basis(e){return new Basis(e)}function BasisClosed(e){this._context=e}function curve_basisClosed(e){return new BasisClosed(e)}function BasisOpen(e){this._context=e}function basisOpen(e){return new BasisOpen(e)}function Bundle(e,t){this._basis=new Basis(e),this._beta=t}Basis.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:basis_point(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:basis_point(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},BasisClosed.prototype={areaStart:noop,areaEnd:noop,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:basis_point(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},BasisOpen.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:basis_point(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Bundle.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,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(i+r*a),this._beta*t[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var tM=function custom(e){function bundle(t){return 1===e?new Basis(t):new Bundle(t,e)}return bundle.beta=function(e){return custom(+e)},bundle}(.85);function cardinal_point(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 Cardinal(e,t){this._context=e,this._k=(1-t)/6}Cardinal.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:cardinal_point(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:cardinal_point(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}};var tw=function custom(e){function cardinal(t){return new Cardinal(t,e)}return cardinal.tension=function(e){return custom(+e)},cardinal}(0);function CardinalClosed(e,t){this._context=e,this._k=(1-t)/6}CardinalClosed.prototype={areaStart:noop,areaEnd:noop,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:cardinal_point(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}};var tC=function custom(e){function cardinal(t){return new CardinalClosed(t,e)}return cardinal.tension=function(e){return custom(+e)},cardinal}(0);function CardinalOpen(e,t){this._context=e,this._k=(1-t)/6}CardinalOpen.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:cardinal_point(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}};var tA=function custom(e){function cardinal(t){return new CardinalOpen(t,e)}return cardinal.tension=function(e){return custom(+e)},cardinal}(0);function catmullRom_point(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>1e-12){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/l,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function CatmullRom(e,t){this._context=e,this._alpha=t}CatmullRom.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:catmullRom_point(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}};var tE=function custom(e){function catmullRom(t){return e?new CatmullRom(t,e):new Cardinal(t,0)}return catmullRom.alpha=function(e){return custom(+e)},catmullRom}(.5);function CatmullRomClosed(e,t){this._context=e,this._alpha=t}CatmullRomClosed.prototype={areaStart:noop,areaEnd:noop,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:catmullRom_point(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}};var tR=function custom(e){function catmullRom(t){return e?new CatmullRomClosed(t,e):new CardinalClosed(t,0)}return catmullRom.alpha=function(e){return custom(+e)},catmullRom}(.5);function CatmullRomOpen(e,t){this._context=e,this._alpha=t}CatmullRomOpen.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:catmullRom_point(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}};var tj=function custom(e){function catmullRom(t){return e?new CatmullRomOpen(t,e):new CardinalOpen(t,0)}return catmullRom.alpha=function(e){return custom(+e)},catmullRom}(.5);function LinearClosed(e){this._context=e}function linearClosed(e){return new LinearClosed(e)}function slope3(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*r)/(r+i)))||0}function slope2(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function monotone_point(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function MonotoneX(e){this._context=e}function MonotoneY(e){this._context=new ReflectContext(e)}function ReflectContext(e){this._context=e}function monotoneX(e){return new MonotoneX(e)}function monotoneY(e){return new MonotoneY(e)}function Natural(e){this._context=e}function controlPoints(e){var t,n,r=e.length-1,i=Array(r),o=Array(r),a=Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(t=0,o[r-1]=(e[r]+i[r-1])/2;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function natural(e){return new Natural(e)}function Step(e,t){this._context=e,this._t=t}function step(e){return new Step(e,.5)}function stepBefore(e){return new Step(e,0)}function stepAfter(e){return new Step(e,1)}function none(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(r=a,a=e[t[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function order_none(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function stackValue(e,t){return e[t]}function stack(){var e=d3_shape_src_constant([]),t=order_none,n=none,r=stackValue;function stack(i){var o,a,s=e.apply(this,arguments),u=i.length,c=s.length,l=Array(c);for(o=0;o<c;++o){for(var f,p=s[o],h=l[o]=Array(u),d=0;d<u;++d)h[d]=f=[0,+r(i[d],p,d,i)],f.data=i[d];h.key=p}for(o=0,a=t(l);o<c;++o)l[a[o]].index=o;return n(l,a),l}return stack.keys=function(t){return arguments.length?(e="function"==typeof t?t:d3_shape_src_constant(tc.call(t)),stack):e},stack.value=function(e){return arguments.length?(r="function"==typeof e?e:d3_shape_src_constant(+e),stack):r},stack.order=function(e){return arguments.length?(t=null==e?order_none:"function"==typeof e?e:d3_shape_src_constant(tc.call(e)),stack):t},stack.offset=function(e){return arguments.length?(n=null==e?none:e,stack):n},stack}function expand(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}none(e,t)}}function diverging(e,t){if((s=e.length)>0)for(var n,r,i,o,a,s,u=0,c=e[t[0]].length;u<c;++u)for(o=a=0,n=0;n<s;++n)(i=(r=e[t[n]][u])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function silhouette(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}none(e,t)}}function wiggle(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,u=0,c=0;s<i;++s){for(var l=e[t[s]],f=l[a][1]||0,p=(f-(l[a-1][1]||0))/2,h=0;h<s;++h){var d=e[t[h]];p+=(d[a][1]||0)-(d[a-1][1]||0)}u+=f,c+=p*f}n[a-1][1]+=n[a-1][0]=o,u&&(o-=c/u)}n[a-1][1]+=n[a-1][0]=o,none(e,t)}}function appearance(e){var t=e.map(peak);return order_none(e).sort(function(e,n){return t[e]-t[n]})}function peak(e){for(var t,n=-1,r=0,i=e.length,o=-1/0;++n<i;)(t=+e[n][1])>o&&(o=t,r=n);return r}function order_ascending(e){var t=e.map(ascending_sum);return order_none(e).sort(function(e,n){return t[e]-t[n]})}function ascending_sum(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}function order_descending(e){return order_ascending(e).reverse()}function insideOut(e){var t,n,r=e.length,i=e.map(ascending_sum),o=appearance(e),a=0,s=0,u=[],c=[];for(t=0;t<r;++t)n=o[t],a<s?(a+=i[n],u.push(n)):(s+=i[n],c.push(n));return c.reverse().concat(u)}function reverse(e){return order_none(e).reverse()}LinearClosed.prototype={areaStart:noop,areaEnd:noop,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))}},MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:monotone_point(this,this._t0,slope2(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==th
5is._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,monotone_point(this,slope2(this,n=slope3(this,e,t)),n);break;default:monotone_point(this,this._t0,n=slope3(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(e,t){MonotoneX.prototype.point.call(this,t,e)},ReflectContext.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=controlPoints(e),i=controlPoints(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a])}(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Step.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(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 tN=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tL=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),tD=function(e){function AreaSeries(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,AreaSeries),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}
5(this,(AreaSeries.__proto__||Object.getPrototypeOf(AreaSeries)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(AreaSeries,e),tL(AreaSeries,[{key:"_renderArea",value:function(e,t,n,i,o,a){var s=src_area();return null!==o&&("string"==typeof o&&r[o]?s=s.curve(r[o]):"function"==typeof o&&(s=s.curve(o))),(s=(s=s.defined(a)).x(t).y0(n).y1(i))(e)}},{key:"render",value:function(){var e=this.props,t=e.animation,n=e.className,r=e.curve,i=e.data,o=e.marginLeft,a=e.marginTop,s=e.style;if(this.props.nullAccessor&&warning("nullAccessor has been renamed to getNull",!0),!i)return null;if(t)return c.createElement(C,tN({},this.props,{animatedProps:eQ}),c.createElement(AreaSeries,tN({},this.props,{animation:null})));var u=this._getAttributeFunctor("x"),l=this._getAttributeFunctor("y"),f=this._getAttr0Functor("y"),p=this._getAttributeValue("stroke")||this._getAttributeValue("color"),h=this._getAttributeValue("fill")||this._getAttributeValue("color"),d=this._getAttributeValue("opacity"),y=Number.isFinite(d)?d:1,g=this.props.nullAccessor||this.props.getNull,m=this._renderArea(i,u,f,l,r,g);return c.createElement("path",{d:m,className:"rv-xy-plot__series rv-xy-plot__series--line "+n,transform:"translate("+o+","+a+")",onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,style:tN({opacity:y,stroke:p,fill:h},s)})}}]),AreaSeries}(eU);tD.displayName="AreaSeries",tD.propTypes=tN({},eU.propTypes,{getNull:o().func}),tD.defaultProps=tN({},eU.defaultProps,{getNull:function(){return!0}});var tF=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tI={style:o().shape({bottom:o().object,left:o().object,right:o().object,top:o().object}),marginTop:o().number,marginBottom:o().number,marginLeft:o().number,marginRight:o().number,innerWidth:o().number,innerHeight:o().number};function Borders(e){var t=e.marginTop,n=e.marginBottom,r=e.marginLeft,i=e.marginRight,o=e.innerWidth,a=e.innerHeight,s=e.style,u=e.className,l=a+t+n,f=o+r+i;return c.createElement("g",{className:"rv-xy-plot__borders "+u},c.createElement("rect",{className:"rv-xy-plot__borders-bottom "+u+"-bottom",style:tF({},s.all,s.bottom),x:0,y:l-n,width:f,height:n}),c.createElement("rect",{className:"rv-xy-plot__borders-left "+u+"-left",style:tF({},s.all,s.left),x:0,y:0,width:r,height:l}),c.createElement("rect",{className:"rv-xy-plot__borders-right "+u+"-right",style:tF({},s.all,s.right),x:f-i,y:0,width:i,height:l}),c.createElement("rect",{className:"rv-xy-plot__borders-top "+u+"-top",style:tF({},s.all,s.top),x:0,y:0,width:f,height:t}))}Borders.displayName="Borders",Borders.defaultProps={className:"",style:{all:{},bottom:{},left:{},right:{},top:{}}},Borders.propTypes=tI,Borders.requiresSVG=!0;var tH=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),tB=function(e){function ChartLabel(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,ChartLabel),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(ChartLabel.__proto__||Object.getPrototypeOf(ChartLabel)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(ChartLabel,e),tH(ChartLabel,[{key:"render",value:function(){var e=this.props,t=e.innerHe
5ight,n=e.innerWidth,r=e.marginBottom,i=e.marginLeft,o=e.marginRight,a=e.marginTop,s=e.className,u=e.includeMargin,l=e.style,f=e.text,p=e.xPercent,h=e.yPercent;return c.createElement("g",{transform:"translate("+((n+(u?i+o:0))*p+(u?0:i))+", "+((t+(u?a+r:0))*h+(u?i:0))+")",className:"rv-xy-plot__axis__title "+s},c.createElement("text",l,f))}}],[{key:"requiresSVG",get:function(){return!0}}]),ChartLabel}(c.PureComponent);tB.displayName="ChartLabel",tB.propTypes={className:o().string,includeMargin:o().bool,style:o().object,text:o().string.isRequired,xPercent:o().number.isRequired,yPercent:o().number.isRequired},tB.defaultProps={className:"",includeMargin:!0,text:"",xPercent:0,yPercent:0,style:{}};var tV={TOP:"top",LEFT:"left",RIGHT:"right",BOTTOM:"bottom"},tz={VERTICAL:"vertical",HORIZONTAL:"horizontal"};function getTicksTotalFromSize(e){return e<700?e>300?10:5:20}function getTickValues(e,t,n){return n||(e.ticks?e.ticks(t):e.domain())}var tq=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tU=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),tW=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickTotal"],tY=function(e){function CircularGridLines(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,CircularGridLines),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(CircularGridLines.__proto__||Object.getPrototypeOf(CircularGridLines)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(CircularGridLines,e),tU(CircularGridLines,[{key:"_getDefaultProps",value:function(){var e=this.props,t=e.innerWidth,n=e.innerHeight,r=e.marginTop;return{left:e.marginLeft,top:r,width:t,height:n,style:{},tickTotal:getTicksTotalFromSize(Math.min(t,n))}}},{key:"render",value:function(){var e=this.props,t=e.animation,n=e.centerX,r=e.centerY;if(t)return c.createElement(C,tq({},this.props,{animatedProps:tW}),c.createElement(CircularGridLines,tq({},this.props,{animation:null})));var i=tq({},this._getDefaultProps(),this.props),o=i.tickTotal,a=i.tickValues,s=i.marginLeft,u=i.marginTop,l=i.rRange,f=i.style,p=getAttributeScale(i,"x"),h=getAttributeScale(i,"y"),d=getTickValues(p,o,a);return c.createElement("g",{transform:"translate("+(p(n)+s)+","+(h(r)+u)+")",className:"rv-xy-plot__circular-grid-lines"},d.reduce(function(e,t,n){var r=p(t);return l&&(r<l[0]||r>l[1])?e:e.concat([c.createElement("circle",tq({cx:0,cy:0,r:r},{key:n,className:"rv-xy-plot__circular-grid-lines__line",style:f}))])},[]))}}]),CircularGridLines}(c.PureComponent);tY.displayName="CircularGridLines",tY.propTypes={centerX:o().number,centerY:o().number,width:o().number,height:o().number,top:o().number,left:o().number,rRange:o().arrayOf(o().number),style:o().object,tickValues:o().arrayOf(o().number),tickTotal:o().number,animation:M,marginTop:o().number,marginBottom:o().number,marginLeft:o().number,marginRight:o().number,innerWidth:o().number,innerHeight:o().number},tY.defaultProps={centerX:0,centerY:0},tY.requiresSVG=!0;var tG=Array.prototype.slice;function d3_contour_src_ascending(e,t){return e-t}function d3_contour_src_constant(e){return function(){return e}}function src_noop(){}var tX=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];
5function blurX(e,t,n){for(var r=e.width,i=e.height,o=(n<<1)+1,a=0;a<i;++a)for(var s=0,u=0;s<r+n;++s)s<r&&(u+=e.data[s+a*r]),s>=n&&(s>=o&&(u-=e.data[s-o+a*r]),t.data[s-n+a*r]=u/Math.min(s+1,r-1+o-s,o))}function blurY(e,t,n){for(var r=e.width,i=e.height,o=(n<<1)+1,a=0;a<r;++a)for(var s=0,u=0;s<i+n;++s)s<i&&(u+=e.data[a+s*r]),s>=n&&(s>=o&&(u-=e.data[a+(s-o)*r]),t.data[a+(s-n)*r]=u/Math.min(s+1,i-1+o-s,o))}function defaultX(e){return e[0]}function defaultY(e){return e[1]}function defaultWeight(){return 1}function d3_geo_src_identity(e){return e}function streamGeometry(e,t){e&&tZ.hasOwnProperty(e.type)&&tZ[e.type](e,t)}var t$={Feature:function(e,t){streamGeometry(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)streamGeometry(n[r].geometry,t)}},tZ={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){streamLine(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)streamLine(n[r],t,0)},Polygon:function(e,t){streamPolygon(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)streamPolygon(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)streamGeometry(n[r],t)}};function streamLine(e,t,n){var r,i=-1,o=e.length-n;for(t.lineStart();++i<o;)r=e[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function streamPolygon(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)streamLine(e[n],t,1);t.polygonEnd()}function stream(e,t){e&&t$.hasOwnProperty(e.type)?t$[e.type](e,t):streamGeometry(e,t)}function Adder(){this.reset()}Adder.prototype={constructor:Adder,reset:function(){this.s=this.t=0},add:function(e){add(tJ,e,this.t),add(this,tJ.s,this.s),this.s?this.t+=tJ.t:this.s=tJ.t},valueOf:function(){return this.s}};var tJ=new Adder;function add(e,t,n){var r=e.s=t+n,i=r-t;e.t=t-(r-i)+(n-i)}var tQ=2*Math.PI,tK=Math.abs,t0=Math.sqrt;function noop_noop(){}var t1,t2,t3,t5,t6,t4,t8,t7,t9,ne,nt,nn,nr,ni,no,na,ns,nu=new Adder,nc=new Adder,nl={point:noop_noop,lineStart:noop_noop,lineEnd:noop_noop,polygonStart:function(){nl.lineStart=areaRingStart,nl.lineEnd=areaRingEnd},polygonEnd:function(){nl.lineStart=nl.lineEnd=nl.point=noop_noop,nu.add(tK(nc)),nc.reset()},result:function(){return nu.reset(),nu/2}};function areaRingStart(){nl.point=areaPointFirst}function areaPointFirst(e,t){nl.point=areaPoint,ni=na=e,no=ns=t}function areaPoint(e,t){nc.add(ns*e-na*t),na=e,ns=t}function areaRingEnd(){areaPoint(ni,no)}var nf,np,nh,nd,ny=1/0,ng=1/0,nm=-1/0,nb=nm,nv={point:function(e,t){e<ny&&(ny=e),e>nm&&(nm=e),t<ng&&(ng=t),t>nb&&(nb=t)},lineStart:noop_noop,lineEnd:noop_noop,polygonStart:noop_noop,polygonEnd:noop_noop,result:function(){var e=[[ny,ng],[nm,nb]];return nm=nb=-(ng=ny=1/0),e}},n_=0,nx=0,nO=0,nk=0,nS=0,nP=0,nT=0,nM=0,nw=0,nC={point:centroidPoint,lineStart:centroidLineStart,lineEnd:centroidLineEnd,polygonStart:function(){nC.lineStart=centroidRingStart,nC.lineEnd=centroidRingEnd},polygonEnd:function(){nC.point=centroidPoint,nC.lineStart=centroidLineStart,nC.lineEnd=centroidLineEnd},result:function(){var e=nw?[nT/nw,nM/nw]:nP?[nk/nP,nS/nP]:nO?[n_/nO,nx/nO]:[NaN,NaN];return n_=nx=nO=nk=nS=nP=nT=nM=nw=0,e}};function centroidPoint(e,t){n_+=e,nx+=t,++nO}function centroidLineStart(){nC.point=centroidPointFirstLine}function centroidPointFirstLine(e,t){nC.point=centroidPointLine,centroidPoint(nh=e,nd=t)}function centroidPointLine(e,t){var n=e-nh,r=t-nd,i=t0(n*n+r*r);nk+=i*(nh+e)/2,nS+=i*(nd+t)/2,nP+=i,centroidPoint(nh=e,nd=t)}function centroidLineEnd(){nC.point=centroidPoint}function centroidRingStart(){nC.point=centroidPointFirstRing}function centroidRingEnd(){centroidPointRing(nf,np)}function centroidPointFirstRing(e,t){nC.point=centroidPointRing,centroidPoint(nf=nh=e,np=nd=t)}function centroidPointRing(e,t){var n=e-nh,r=t-nd,i=t0(n*n+r*r);nk+=i*(nh+e)/2,nS+=i*(nd+t)/2,nP+=i,nT+=(i=nd*e-nh*t)*(nh+e),nM+=i*(nd+t),nw+=3*i,centroidPoint(nh=e,nd=t)}function PathContext(e){this._context=e}PathContext.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,tQ)}},result:noop_noop};var nA,nE,nR,nj,nN,nL=new Adder,nD={point:noop_noop,lineStart:function(){nD.point=lengthPointFirst},lineEnd:function(){nA&&lengthPoint(nE,nR),nD.point=noop_noop}
5,polygonStart:function(){nA=!0},polygonEnd:function(){nA=null},result:function(){return nL.reset(),+nL}};function lengthPointFirst(e,t){nD.point=lengthPoint,nE=nj=e,nR=nN=t}function lengthPoint(e,t){nj-=e,nN-=t,nL.add(t0(nj*nj+nN*nN)),nj=e,nN=t}function PathString(){this._string=[]}function string_circle(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}PathString.prototype={_radius:4.5,_circle:string_circle(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=string_circle(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(!this._string.length)return null;var e=this._string.join("");return this._string=[],e}};var nF=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nI=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),nH=function(e){function ContourSeries(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}
5(this,ContourSeries),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(ContourSeries.__proto__||Object.getPrototypeOf(ContourSeries)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(ContourSeries,e),nI(ContourSeries,[{key:"render",value:function(){var e=this.props,t=e.animation,n=e.bandwidth,r=e.className,i=e.colorRange,o=e.data,a=e.innerHeight,s=e.innerWidth,u=e.marginLeft,l=e.marginTop,f=e.style;if(!o||!s||!a)return null;if(t)return c.createElement(C,nF({},this.props,{animatedProps:eQ}),c.createElement(ContourSeries,nF({},this.props,{animation:null})));var p=this._getAttributeFunctor("x"),h=this._getAttributeFunctor("y"),d=(function(){var e=defaultX,t=defaultY,n=defaultWeight,r=960,i=500,o=20,a=2,s=60,u=270,
5c=155,l=d3_contour_src_constant(20);function density(r){var i=new Float32Array(u*c),f=new Float32Array(u*c);r.forEach(function(r,o,l){var f=+e(r,o,l)+s>>a,p=+t(r,o,l)+s>>a,h=+n(r,o,l);f>=0&&f<u&&p>=0&&p<c&&(i[f+p*u]+=h)}),blurX({width:u,height:c,data:i},{width:u,height:c,data:f},o>>a),blurY({width:u,height:c,data:f},{width:u,height:c,data:i},o>>a),blurX({width:u,height:c,data:i},{width:u,height:c,data:f},o>>a),blurY({width:u,height:c,data:f},{width:u,height:c,data:i},o>>a),blurX({width:u,height:c,data:i},{width:u,height:c,data:f},o>>a),blurY({width:u,height:c,data:f},{width:u,height:c,data:i},o>>a);var p=l(i);if(!Array.isArray(p)){var h=function(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&n>r&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&n>r&&(r=n);return r}(i);p=ticks_tickStep(0,h,p),(p=src_range(0,Math.floor(h/p)*p,p)).shift()}return(function(){var e=1,t=1,n=threshold_sturges,r=smoothLinear;function contours(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(d3_contour_src_ascending);else{var r=src_extent(e),i=r[0],o=r[1];t=ticks_tickStep(i,o,t),t=src_range(Math.floor(i/t)*t,Math.floor(o/t)*t,t)}return t.map(function(t){return contour(e,t)})}function contour(n,i){var o=[],a=[];return function(n,r,i){var o,a,s,u,c,l,f=[],p=[];for(o=a=-1,tX[(u=n[0]>=r)<<1].forEach(stitch);++o<e-1;)tX[(s=u)|(u=n[o+1]>=r)<<1].forEach(stitch);for(tX[u<<0].forEach(stitch);++a<t-1;){for(o=-1,tX[(u=n[a*e+e]>=r)<<1|(c=n[a*e]>=r)<<2].forEach(stitch);++o<e-1;)s=u,u=n[a*e+e+o+1]>=r,l=c,tX[s|u<<1|(c=n[a*e+o+1]>=r)<<2|l<<3].forEach(stitch);tX[u|c<<3].forEach(stitch)}for(o=-1,tX[(c=n[a*e]>=r)<<2].forEach(stitch);++o<e-1;)l=c,tX[(c=n[a*e+o+1]>=r)<<2|l<<3].forEach(stitch);function stitch(e){var t,n,r=[e[0][0]+o,e[0][1]+a],s=[e[1][0]+o,e[1][1]+a],u=index(r),c=index(s);(t=p[u])?(n=f[c])?(delete p[t.end],delete f[n.start],t===n?(t.ring.push(s),i(t.ring)):f[t.start]=p[n.end]={start:t.start,end:n.end,ring:t.ring.concat(n.ring)}):(delete p[t.end],t.ring.push(s),p[t.end=c]=t):(t=f[c])?(n=p[u])?(delete f[t.start],delete p[n.end],t===n?(t.ring.push(s),i(t.ring)):f[n.start]=p[t.end]={start:n.start,end:t.end,ring:n.ring.concat(t.ring)}):(delete f[t.start],t.ring.unshift(r),f[t.start=u]=t):f[u]=p[c]={start:u,end:c,ring:[r,s]}}tX[c<<3].forEach(stitch)}(n,i,function(e){r(e,n,i),function(e){for(var t=0,n=e.length,r=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t<n;)r+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return r}(e)>0?o.push([e]):a.push(e)}),a.forEach(function(e){for(var t,n=0,r=o.length;n<r;++n)if(-1!==function(e,t){for(var n,r=-1,i=t.length;++r<i;)if(n=function(e,t){for(var n=t[0],r=t[1],i=-1,o=0,a=e.length,s=a-1;o<a;s=o++){var u=e[o],c=u[0],l=u[1],f=e[s],p=f[0],h=f[1];if(function(e,t,n){var r,i,o,a;return(t[0]-e[0])*(n[1]-e[1])==(n[0]-e[0])*(t[1]-e[1])&&(i=e[r=+(e[0]===t[0])],o=n[r],a=t[r],i<=o&&o<=a||a<=o&&o<=i)}(u,f,t))return 0;l>r!=h>r&&n<(p-c)*(r-l)/(h-l)+c&&(i=-i)}return i}(e,t[r]))return n;return 0}((t=o[n])[0],e)){t.push(e);return}}),{type:"MultiPolygon",value:i,coordinates:o}}function index(t){return 2*t[0]+t[1]*(e+1)*4}function smoothLinear(n,r,i){n.forEach(function(n){var o,a=n[0],s=n[1],u=0|a,c=0|s,l=r[c*e+u];a>0&&a<e&&u===a&&(o=r[c*e+u-1],n[0]=a+(i-o)/(l-o)-.5),s>0&&s<t&&c===s&&(o=r[(c-1)*e+u],n[1]=s+(i-o)/(l-o)-.5)})}return contours.contour=contour,contours.size=function(n){if(!arguments.length)return[e,t];var r=Math.ceil(n[0]),i=Math.ceil(n[1]);if(!(r>0)||!(i>0))throw Error("invalid size");return e=r,t=i,contours},contours.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?d3_contour_src_constant(tG.call(e)):d3_contour_src_constant(e),contours):n},contours.smooth=function(e){return arguments.length?(r=e?smoothLinear:src_noop,contours):r===smoothLinear},contours})().thresholds(p).size([u,c])(i).map(transform)}function transform(e){return e.value*=Math.pow(2,-2*a),e.coordinates.forEach(transformPolygon),e}function transformPolygon(e){e.forEach(transformRing)}function transformRing(e){e.forEach(transformPoint)}function transformPoint(e){e[0]=e[0]*Math.pow(2,a)-s,e[1]=e[1]*Math.pow(2,a)-s}function resize(){return u=r+2*(s=3*o)>>a,c=i+2*s>>a,density}return density.x=function(t){return arguments.length?(e="function"==typeof t?t:d3_contour_src_constant(+t),density):e},density.y=function(e){return arguments.length?(t="function"==typeof e?e:d3_contour_src_constant(+e),density):t},density.weight=function(e){return arguments.length?(n="function"==typeof e?e:d3_contour_src_constant(+e),density):n},density.size=function(e){if(!arguments.length)return[r,i];var t=Math.ceil(e[0]),n=Math.ceil(e[1]);if(!(t>=0)&&!(t>=0))throw Error("invalid size");return r=t,i=n,resize()},density.cellSize=function(e){if(!arguments.length)return 1<<a;if(!((e=+e)>=1))throw Error("invalid cell size");return a=Math.floor(Math.log(e)/Math.LN2),resize()},density.thresholds=function(e){return arguments.length?(l="function"==typeof e?e:Array.isArray(e)?d3_contour_src_constant(tG.call(e)):d3_contour_src_constant(e),density):l},density.bandwidth=function(e){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((e=+e)>=0))throw Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*e*e+1)-1)/2),resize()},density})().x(function(e){return p(e)}).y(function(e){return h(e)}).size([s,a]).bandwidth(n)(o),y=function(e,t){var n,r,i=4.5;function path(e){return e&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),stream(e,n(r))),r.result()}return path.area=function(e){return stream(e,n(nl)),nl.result()},path.measure=function(e){return stream(e,n(nD)),nD.result()},path.bounds=function(e){return stream(e,n(nv)),nv.result()}
5,path.centroid=function(e){return stream(e,n(nC)),nC.result()},path.projection=function(t){return arguments.length?(n=null==t?(e=null,d3_geo_src_identity):(e=t).stream,path):e},path.context=function(e){return arguments.length?(r=null==e?(t=null,new PathString):new PathContext(t=e),"function"!=typeof i&&r.pointRadius(i),path):t},path.pointRadius=function(e){return arguments.length?(i="function"==typeof e?e:(r.pointRadius(+e),+e),path):i},path.projection(e).context(t)}(),g=d.reduce(function(e,t){return{min:Math.min(e.min,t.value),max:Math.max(e.max,t.value)}},{min:1/0,max:-1/0}),m=g.min,b=g.max,v=linear_linear().domain([m,b]).range(i||eG);return c.createElement("g",{className:"rv-xy-plot__series rv-xy-plot__series--contour "+r,transform:"translate("+u+","+l+")"},d.map(function(e,t){return c.createElement("path",{className:"rv-xy-plot__series--contour-line",key:"rv-xy-plot__series--contour-line-"+t,d:y(e),style:nF({fill:v(e.value)},f)})}))}}]),ContourSeries}(eU);nH.propTypes=nF({},eU.propTypes,{animation:o().bool,bandwidth:o().number,className:o().string,marginLeft:o().number,marginTop:o().number,style:o().object}),nH.defaultProps=nF({},eU.defaultProps,{bandwidth:40,style:{}});var nB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nV=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}();function defaultTitleFormat(e){var t=getFirstNonEmptyValue(e);if(t)return{title:"x",value:transformValueToString(t.x)}}function defaultItemsFormat(e){return e.map(function(e,t){if(e)return{value:e.y,title:t}})}function getFirstNonEmptyValue(e){return(e||[]).find(function(e){return!!e})}(function(e){function Crosshair(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,Crosshair),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(Crosshair.__proto__||Object.getPrototypeOf(Crosshair)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(Crosshair,e),nV(Crosshair,[{key:"_renderCrosshairItems",value:function(){var e=this.props,t=e.values,n=(0,e.itemsFormat)(t);return n?n.filter(function(e){return e}).map(function(e,t){return c.createElement("div",{className:"rv-crosshair__item",key:"item"+t},c.createElement("span",{className:"rv-crosshair__item__title"},e.title),": ",c.createElement("span",{className:"rv-crosshair__item__value"},e.value))}):null}},{key:"_renderCrosshairTitle",value:function(){var e=this.props,t=e.values,n=e.titleFormat,r=e.style,i=n(t);return i?c.createElement("div",{className:"rv-crosshair__title",key:"title",style:r.title},c.createElement("span",{className:"rv-crosshair__title__title"},i.title),": ",c.createElement("span",{className:"rv-crosshair__title__value"},i.value)):null}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.values,i=e.marginTop,o=e.marginLeft,a=e.innerWidth,s=e.innerHeight,u=e.style,l=getFirstNonEmptyValue(r);if(!l)return null;var f=getAttributeFunctor(this.props,"x")(l),p=this.props.orientation;return c.createElement("div",{className:"rv-crosshair "+n,style:{left:o+f+"px",top:i+"px"}},c.createElement("div",{className:"rv-crosshair__line",style:nB({height:s+"px"},u.line)}),c.createElement("div",{className:"rv-crosshair__inner rv-crosshair__inner--"+(void 0===p?f>a/2?"left":"right":p)},t||c.createElement("div",{className:"rv-crosshair__inner__content",style:u.box},c.createElement("div",null,this._renderCrosshairTitle(),this._renderCrosshairItems())
5)))}}],[{key:"defaultProps",get:function(){return{titleFormat:defaultTitleFormat,itemsFormat:defaultItemsFormat,style:{line:{},title:{},box:{}}}}},{key:"propTypes",get:function(){return{className:o().string,values:o().arrayOf(o().oneOfType([o().number,o().string,o().object])),series:o().object,innerWidth:o().number,innerHeight:o().number,marginLeft:o().number,marginTop:o().number,orientation:o().oneOf(["left","right"]),itemsFormat:o().func,titleFormat:o().func,style:o().shape({line:o().object,title:o().object,box:o().object})}}}]),Crosshair})(c.PureComponent).displayName="Crosshair";var nz=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),nq=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nU={stroke:"blue",fill:"blue"};function predefinedComponents(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nU;switch(e){case"diamond":return c.createElement("polygon",{style:n,points:"0 0 "+t/2+" "+t/2+" 0 "+t+" "+-t/2+" "+t/2+" 0 0"});case"star":var r=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}([,,,,,])).map(function(e,n){var r=n/5*Math.PI*2,i=r+Math.PI/10,o=r-Math.PI/10,a=t/2.61;return"\n "+Math.cos(o)*t+" "+Math.sin(o)*t+"\n "+Math.cos(i)*a+" "+Math.sin(i)*a+"\n "}).join(" ");return c.createElement("polygon",{points:r,x:"0",y:"0",height:t,width:t,style:n});case"square":return c.createElement("rect",{x:""+-t/2,y:""+-t/2,height:t,width:t,style:n});default:return c.createElement("circle",{cx:"0",cy:"0",r:t/2,style:n})}}var nW=function(e){function CustomSVGSeries(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,CustomSVGSeries),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(CustomSVGSeries.__proto__||Object.getPrototypeOf(CustomSVGSeries)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(CustomSVGSeries,e),nz(CustomSVGSeries,[{key:"render",value:function(){var e=this,t=this.props,n=t.animation,r=t.className,i=t.customComponent,o=t.data,a=t.innerHe
5ight,s=t.innerWidth,u=t.marginLeft,l=t.marginTop,f=t.style,p=t.size;if(!o||!s||!a)return null;if(n)return c.createElement(C,nq({},this.props,{animatedProps:eQ}),c.createElement(CustomSVGSeries,nq({},this.props,{animation:!1})));var h=this._getAttributeFunctor("x"),d=this._getAttributeFunctor("y"),y=o.map(function(t,n){var r,o,a,s,u,l,y,g,m,b={x:h(t),y:d(t)},v=(o=(r={customComponent:t,positionInPixels:b,defaultType:i,positionFunctions:{x:h,y:d},style:f,propsSize:p}).customComponent,a=r.defaultType,s=r.positionInPixels,r.positionFunctions,u=r.style,l=r.propsSize,y=o.size,g=nq({},u,o.style||{}),(m=o.customComponent)||"string"!=typeof a?m?"string"==typeof m?predefinedComponents(m||a,y,g):m(o,s,g):a(o,s,g):predefinedComponents(a,y||l,g));return c.createElement("g",{className:"rv-xy-plot__series--custom-svg",key:"rv-xy-plot__series--custom-svg-"+n,transform:"translate("+b.x+","+b.y+")",onMouseEnter:function(n){return e._valueMouseOverHandler(t,n)},onMouseLeave:function(n){return e._valueMouseOutHandler(t,n)}},v)});return c.createElement("g",{className:"rv-xy-plot__series rv-xy-plot__series--custom-svg-wrapper "+r,transform:"translate("+u+","+l+")"},y)}}]),CustomSVGSeries}(eU);nW.propTypes={animation:o().bool,className:o().string,customComponent:o().oneOfType([o().string,o().func]),data:o().arrayOf(o().shape({x:o().oneOfType([o().string,o().number]).isRequired,y:o().oneOfType([o().string,o().number]).isRequired})).isRequired,marginLeft:o().number,marginTop:o().number,style:o().object,size:o().number,onValueMouseOver:o().func,onValueMouseOut:o().func},nW.defaultProps=nq({},eU.defaultProps,{animation:!1,customComponent:"circle",style:{},size:2});var nY=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nG=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nX=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),n$=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickSize","tickTotal","tickSizeInner","tickSizeOuter"],nZ=function(e){function DecorativeAxis(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,DecorativeAxis),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(DecorativeAxis.__proto__||Object.getPrototypeOf(DecorativeAxis)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(DecorativeAxis,e),nX(DecorativeAxis,[{key:"render",value:function(){var e,t,n,r,i,o,a,s,u,l,f,p,h,d,y,g,m,b,v,_,x,O,k,S=this.props,P=S.animation,T=S.className,M=S.marginLeft,w=S.marginTop,A=S.axisStart,E=S.axisEnd,R=S.axisDomain,j=S.numberOfTicks,N=S.tickValue,L=S.tickSize,D=S.style;if(P)return c.createElement(C,nG({},this.props,{animatedProps:n$}),c.createElement(DecorativeAxis,nG({},this.props,{animation:null})));var F=this._getAttributeFunctor("x"),I=this._getAttributeFunctor("y");return c.createElement("g",{className:"rv-xy-manipulable-axis rv-xy-plot__axis "+T,transform:"translate("+M+","+w+")"},c.createElement("line",nG({},nG({x1:F({x:A.x}),x2:F({x:E.x}),y1:I({y:A.y}),y2:I({y:E.y})},D.line),{className:"rv-xy-plot__axis__line"})),c.createElement("g",{className:"rv-xy-manipulable-axis__ticks"},(t=(e={axisDomain:R,axisEnd:{x:F(E),y:I(E)},axisStart:{x:F(A),y:I(A)},numberOfTicks:j,tickValue:N,tickSize:L,style:D}).axisDomain,n=e.numberOfTicks,r=e.axisStart,i=e.axisEnd,o=e.tickValue,a=e.tickSize,s=e.style,O=(l=(u={axisStart:r,axisEnd:i,numberOfTicks:n,axisDomain:t}).axisStart,f=u.axisEnd,p=u.numberOfTicks,h=u.axisDomain,y=(d=function(e,t){if(e.x===t.x)return{left:e.y,right:t.y,slope:0,offset:e.x};var n=(e.y-t.y)/(e.x-t.x);return{left:e.x,right:t.x,slope:n,offset:e.y-n*e.x}}(l,f)).left,g=d.right,m=d.slope,b=d.offset,v=(g-y)/p,_=linear_linear().domain([y,g]).range(h),{slope:(x=l.x===f.x)?1/0:m,points:src_range(y,g+v,v).map(function(e){return x?{y:e,x:m*e+b,text:_(e)}:{x:e,y:m*e+b,text:_(e)}}).slice(0,p+1)}).points,k=(r.x===i.x?i.y>r.y?Math.PI/2:3*Math.PI/2:Math.atan((i.y-r.y)/(i.x-r.x)))+Math.PI/2,O.map(function(e,t){var n=nY({x1:0,y1:0,x2:a*Math.cos(k),y2:a*Math.sin(k)},s.ticks),r=nY({x:a*Math.cos(k),y:a*Math.sin(k),textAnchor:"start"},s.text);return c.createElement("g",{key:t,transform:"translate("+e.x+", "+e.y+")",className:"rv-xy-plot__axis__tick"},c.createElement("line",nY({},n,{className:"rv-xy-plot__axis__tick__line"})),c.createElement("text",nY({},r,{className:"rv-xy-plot__axis__tick__text"}),o(e.text)))}))))}}]),DecorativeAxis}(eU),nJ=t7(".2r");function GradientDefs(e){var t=e.className;return c.createElement("defs",{className:"rv-gradient-defs "+t},e.children)}nZ.defaultProps={className:"",numberOfTicks:10,tickValue:function(e){return nJ(e)},tickSize:5,style:{line:{strokeWidth:1},ticks:{strokeWidth:2},text:{}}},nZ.propTypes=nG({},eU.propTypes,{axisDomain:o().arrayOf(o().number).isRequired,axisEnd:o().shape({x:o().oneOfType([o().number,o().string]),y:o().oneOfType([o().number,o().string])}
5).isRequired,axisStart:o().shape({x:o().oneOfType([o().number,o().string]),y:o().oneOfType([o().number,o().string])}).isRequired,className:o().string,numberOfTicks:o().number,tickValue:o().func,tickSize:o().number,style:o().shape({line:o().object,ticks:o().object,text:o().object})}),nZ.displayName="DecorativeAxis",GradientDefs.displayName="GradientDefs",GradientDefs.requiresSVG=!0,GradientDefs.propTypes={className:o().string},GradientDefs.defaultProps={className:""};var nQ=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nK=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}();function grid_lines_defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var n0=tz.VERTICAL,n1=tz.HORIZONTAL,n2={direction:o().oneOf([n0,n1]),attr:o().string.isRequired,width:o().number,height:o().number,top:o().number,left:o().number,style:o().object,tickValues:o().arrayOf(o().oneOfType([o().number,o().string])),tickTotal:o().number,animation:M,marginTop:o().number,marginBottom:o().number,marginLeft:o().number,marginRight:o().number,innerWidth:o().number,innerHeight:o().number},n3=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickTotal"],n5=function(e){function GridLines(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,GridLines),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(GridLines.__proto__||Object.getPrototypeOf(GridLines)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(GridLines,e),nK(GridLines,[{key:"_getDefaultProps",value:function(){var e=this.props,t=e.innerWidth,n=e.innerHeight,r=e.marginTop;return{left:e.marginLeft,top:r,width:t,height:n,tickTotal:getTicksTotalFromSize(e.direction===n0?t:n)}}},{key:"render",value:function(){var e=this.props,t=e.animation,n=e.className;if(t)return c.createElement(C,nQ({},this.props,{animatedProps:n3}),c.createElement(GridLines,nQ({},this.props,{animation:null})));var r=nQ({},this._getDefaultProps(),this.props),i=r.attr,o=r.direction,a=r.width,s=r.height,u=r.style,l=r.tickTotal,f=r.tickValues,p=r.top,h=r.left,d=o===n0,y=d?"y":"x",g=d?"x":"y",m=d?s:a,b=getAttributeScale(r,i),v=getTickValues(b,l,f);return c.createElement("g",{transform:"translate("+h+","+p+")",className:"rv-xy-plot__grid-lines "+n},v.map(function(e,t){var n,r=b(e),i=(grid_lines_defineProperty(n={},g+"1",r),grid_lines_defineProperty(n,g+"2",r),grid_lines_defineProperty(n,y+"1",0),grid_lines_defineProperty(n,y+"2",m),n);return c.createElement("line",nQ({},i,{key:t,className:"rv-xy-plot__grid-lines__line",style:u}))}))}}]),GridLines}(c.PureComponent);n5.displayName="GridLines",n5.defaultProps={direction:n0},n5.propTypes=n2,n5.requiresSVG=!0;var n6=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n4=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),n8=function(e){function HeatmapSeries(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,HeatmapSeries),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(HeatmapSeries.__proto__||Object.getPrototypeOf(HeatmapSeries)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(HeatmapSeries,e),n4(HeatmapSeries,[{key:"render",value:function(){var e=this,t=this.props,n=t.animation,r=t.className,i=t.data,o=t.marginLeft,a=t.marginTop,s=t.style;if(!i)return null;if(n)return c.createElement(C,n6({},this.props,{animatedProps:eQ}),c.createElement(HeatmapSeries,n6({},this.props,{animation:null})));var u=n6({rectStyle:{}},s).rectStyle,l=this._getAttributeFunctor("x"),f=this._getAttributeFunctor("y"),p=this._getAttributeFunctor("op
5acity"),h=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),d=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),y=this._getScaleDistance("x"),g=this._getScaleDistance("y");return c.createElement("g",{className:"rv-xy-plot__series rv-xy-plot__series--heatmap "+r,transform:"translate("+o+","+a+")"},i.map(function(t,n){var r=n6({style:n6({stroke:d&&d(t),fill:h&&h(t),opacity:p&&p(t)},s)},u,{x:l(t)-y/2,y:f(t)-g/2,width:y,height:g,key:n,onClick:function(n){return e._valueClickHandler(t,n)},onContextMenu:function(n){return e._valueRightClickHandler(t,n)},onMouseOver:function(n){return e._valueMouseOverHandler(t,n)},onMouseOut:function(n){return e._valueMouseOutHandler(t,n)}});return c.createElement("rect",r)}))}}],[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"x"===e||"y"===e}}}]),HeatmapSeries}(eU);n8.propTypes=n6({},eU.propTypes),n8.displayName="HeatmapSeries";var n7=Math.PI/3,n9=[0,n7,2*n7,3*n7,4*n7,5*n7];function pointX(e){return e[0]}function pointY(e){return e[1]}var re=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rt=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),rn=function(e){function HexbinSeries(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,HexbinSeries),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(HexbinSeries.__proto__||Object.getPrototypeOf(HexbinSeries)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(HexbinSeries,e),rt(HexbinSeries,[{key:"render",value:function(){var e,t=this,n=this.props,r=n.animation,i=n.className,o=n.colorRange,a=n.data,s=n.innerHeight,u=n.innerWidth,l=n.marginLeft,f=n.marginTop,p=n.radius,h=n.sizeHexagonsWithCount,d=n.style,y=n.xOffset,g=n.yOffset;if(!a)return null;if(r)return c.createElement(C,re({},this.props,{animatedProps:eQ}),c.createElement(HexbinSeries,re({},this.props,{animation:null})));var m=this._getAttributeFunctor("x"),b=this._getAttributeFunctor("y"),v=(function(){var e,t,n,r=0,i=0,o=1,a=1,s=pointX,u=pointY;function hexbin(e){var r,i={},o=[],a=e.length;for(r=0;r<a;++r)if(!(isNaN(l=+s.call(null,c=e[r],r,e))||isNaN(f=+u.call(null,c,r,e)))){var c,l,f,p=Math.round(f/=n),h=Math.round(l=l/t-(1&p)/2),d=f-p;if(3*Math.abs(d)>1){var y=l-h,g=h+(l<h?-1:1)/2,m=p+(f<p?-1:1),b=l-g,v=f-m;y*y+d*d>b*b+v*v&&(h=g+(1&p?1:-1)/2,p=m)}var _=h+"-"+p,x=i[_];x?x.push(c):(o.push(x=i[_]=[c]),x.x=(h+(1&p)/2)*t,x.y=p*n)}return o}function hexagon(e){var t=0,n=0;return n9.map(function(r){var i=Math.sin(r)*e,o=-Math.cos(r)*e,a=i-t,s=o-n;return t=i,n=o,[a,s]})}return hexbin.hexagon=function(t){return"m"+hexagon(null==t?e:+t).join("l")+"z"},hexbin.centers=function(){for(var s=[],u=Math.round(i/n),c=Math.round(r/t),l=u*n;l<a+e;l+=n,++u)for(var f=c*t+(1&u)*t/2;f<o+t/2;f+=t)s.push([f,l]);return s},hexbin.mesh=function(){var t=hexagon(e).slice(0,4).join("l");return hexbin.centers().map(function(e){return"M"+e+"m"+t}).join("")},hexbin.x=function(e){return arguments.length?(s=e,hexbin):s},hexbin.y=function(e){return arguments.length?(u=e,hexbin):u},hexbin.radius=function(r){return arguments.length?(t=2*(e=+r)*Math.sin(n7),n=1.5*e,hexbin):e},hexbin.size=function(e){return arguments.length?(r=i=0,o=+e[0],a=+e[1],hexbin):[o-r,a-i]},hexbin.extent=function(e){return arguments.length?(r=+e[0][0],i=+e[0][1],o=+e[1][0],a=+e[1][1],hexbin):[[r,i],[o,a]]},hexbin.radius(1)})().x(function(e){return m(e)+y}).y(function(e){return b(e)+g}).radius(p).size([u,s]),_=v.hexagon(),x=v(a),O=(e=this.props.countDomain)?e:[0,Math.max.apply(Math,function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}(x.map(function(e){return e.length})))],k=linear_linear().domain(O).range(o),S=linear_linear().domain(O).range([0,p]);return c.createElement("g",{className:"rv-xy-plot__series rv-xy-plot__series--hexbin "+i,transform:"translate("+l+","+f+")"},x.map(function(e,n){var r={style:d,d:h?v.hexagon(S(e.length)):_,fill:k(e.length),transform:"translate("+e.x+", "+e.y+")",key:n,onClick:function(n){return t._valueClickHandler(e,n)},onContextMenu:function(n){return t._valueRightClickHandler(e,n)},onMouseOver:function(n){return t._valueMouseOverHandler(e,n)},onMouseOut:function(n){return t._valueMouseOutHandler(e,n)}};return c.createElement("path",r)}))}}]),HexbinSeries}(eU);rn.propTypes=re({},eU.propTypes,{radius:o().number}),rn.defaultProps={radius:20,colorRange:eG,xOffset:0,yOffset:0},rn.displayName="HexbinSeries";var rr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ri=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}();function highlight_possibleConstructorReturn(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function getLocs(e){return{xLoc:"touchstart"===e.type?e.pageX:e.offsetX,yLoc:"touchstart"===e.type?e.pageY:e.offsetY}}var ro=function(e){function Highlight(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,Highlight);for(var e,t,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n=highlight_possibleConstructorReturn(this,(e=Highlight.__proto__||Object.getPrototypeOf(Highlight)).call.apply(e,[this].concat(i))),n.state={dragging:!1,brushArea:{top:0,right:0,bottom:0,left:0},brushing:!1,startLocX:0,startLocY:0,dragArea:null},highlight_possibleConstructorReturn(n,t)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(Highlight,e),ri(Highlight,[{key:"_getDrawArea",value:function(e,t){var n=this.state,r=n.startLocX,i=n.startLocY,o=this.props,a=o.enableX,s=o.enableY,u=o.highlightWidth,c=o.highlightHeight,l=o.innerWidth,f=o.innerHeight,p=o.marginLeft,h=o.marginRight,d=o.marginBottom,y=o.marginTop;return{bottom:s?Math.max(i,t):c||f+y+d,right:a?Math.max(r,e):u||l+p+h,left
5:a?Math.min(e,r):0,top:s?Math.min(t,i):0}}},{key:"_getDragArea",value:function(e,t){var n=this.props,r=n.enableX,i=n.enableY,o=this.state,a=o.startLocX,s=o.startLocY,u=o.dragArea;return{bottom:u.bottom+(i?t-s:0),left:u.left+(r?e-a:0),right:u.right+(r?e-a:0),top:u.top+(i?t-s:0)}}},{key:"_clickedOutsideDrag",value:function(e,t){var n=this.props,r=n.enableX,i=n.enableY,o=this.state,a=o.dragArea,s=o.brushArea,u=s.left,c=s.right,l=s.top,f=s.bottom,p=a&&(e<u||e>c),h=a&&(t<l||t>f);return r&&i?p||h:r?p:!i||h}},{key:"_convertAreaToCoordinates",value:function(e){var t=this.props,n=t.enableX,r=t.enableY,i=t.marginLeft,o=t.marginTop,a=getAttributeScale(this.props,"x"),s=getAttributeScale(this.props,"y");return n&&r?{bottom:s.invert(e.bottom),left:a.invert(e.left-i),right:a.invert(e.right-i),top:s.invert(e.top)}:r?{bottom:s.invert(e.bottom-o),top:s.invert(e.top-o)}:n?{left:a.invert(e.left-i),right:a.invert(e.right-i)}:{}}},{key:"startBrushing",value:function(e){var t=this,n=this.props,r=n.onBrushStart,i=n.onDragStart,o=n.drag,a=this.state.dragArea,s=getLocs(e.nativeEvent),u=s.xLoc,c=s.yLoc,startArea=function(e,n){t.setState({dragging:e,brushArea:a&&!n?a:{bottom:c,left:u,right:u,top:c},brushing:!e,startLocX:u,startLocY:c})},l=this._clickedOutsideDrag(u,c);if(o&&!a||!o||l){startArea(!1,l),r&&r(e);return}o&&a&&(startArea(!0,l),i&&i(e))}},{key:"stopBrushing",value:function(e){var t=this.state,n=t.brushing,r=t.dragging,i=t.brushArea;if(n||r){var o=this.props,a=o.onBrushEnd,s=o.onDragEnd,u=o.drag,c=5>Math.abs(i.right-i.left),l=5>Math.abs(i.top-i.bottom)||c;this.setState({brushing:!1,dragging:!1,brushArea:u?i:{top:0,right:0,bottom:0,left:0},startLocX:0,startLocY:0,dragArea:u&&!l&&i}),n&&a&&a(l?null:this._convertAreaToCoordinates(i)),u&&s&&s(l?null:this._convertAreaToCoordinates(i))}}},{key:"onBrush",value:function(e){var t=this.props,n=t.onBrush,r=t.onDrag,i=t.drag,o=this.state,a=o.brushing,s=o.dragging,u=getLocs(e.nativeEvent),c=u.xLoc,l=u.yLoc;if(a){var f=this._getDrawArea(c,l);this.setState({brushArea:f}),n&&n(this._convertAreaToCoordinates(f))}if(i&&s){var p=this._getDragArea(c,l);this.setState({brushArea:p}),r&&r(this._convertAreaToCoordinates(p))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.color,r=t.className,i=t.highlightHeight,o=t.highlightWidth,a=t.highlightX,s=t.highlightY,u=t.innerWidth,l=t.innerHeight,f=t.marginLeft,p=t.marginRight,h=t.marginTop,d=t.marginBottom,y=t.opacity,g=this.state.brushArea,m=g.left,b=g.right,v=g.top,_=g.bottom,x=0;a&&(x=getAttributeScale(this.props,"x")(a));var O=0;s&&(O=getAttributeScale(this.props,"y")(s));var k=o||f+p+u,S=i||h+d+l;return c.createElement("g",{transform:"translate("+x+", "+O+")",className:r+" rv-highlight-container"},c.createElement("rect",{className:"rv-mouse-target",fill:"black",opacity:"0",x:"0",y:"0",width:Math.max(k,0),height:Math.max(S,0),onMouseDown:function(t){return e.startBrushing(t)},onMouseMove:function(t){return e.onBrush(t)},onMouseUp:function(t){return e.stopBrushing(t)},onMouseLeave:function(t){return e.stopBrushing(t)},onTouchEnd:function(t){t.preventDefault(),e.stopBrushing(t)},onTouchCancel:function(t){t.preventDefault(),e.stopBrushing(t)},onContextMenu:function(e){return e.preventDefault()},onContextMenuCapture:function(e){return e.preventDefault()}}),c.createElement("rect",{className:"rv-highlight",pointerEvents:"none",opacity:y,fill:n,x:m,y:v,width:Math.min(Math.max(0,b-m),k),height:Math.min(Math.max(0,_-v),S)}))}}]),Highlight}(eU);ro.displayName="HighlightOverlay",ro.defaultProps={color:"rgb(77, 182, 172)",className:"",enableX:!0,enableY:!0,opacity:.3},ro.propTypes=rr({},eU.propTypes,{enableX:o().bool,enableY:o().bool,highlightHeight:o().number,highlightWidth:o().number,highlightX:o().oneOfType([o().string,o().number]),highlightY:o().oneOfType([o().string,o().number]),onBrushStart:o().func,onDragStart:o().func,onBrush:o().func,onDrag:o().func,onBrushEnd:o().func,onDragEnd:o().func});var ra=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rs=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),ru={AUTO:"auto",LEFT:"left",RIGHT:"right",LEFT_EDGE:"leftEdge",RIGHT_EDGE:"rightEdge",BOTTOM:"bottom",TOP:"top",BOTTOM_EDGE:"bottomEdge",TOP_EDGE:"topEdge"},rc={BOTTOM_LEFT:"bottomleft",BOTTOM_RIGHT:"bottomright",TOP_LEFT:"topleft",TOP_RIGHT:"topright"};function defaultFormat(e){return Object.keys(e).map(function(t){return{title:t,value:transformValueToString(e[t])}})}var rl=function(e){function Hint(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,Hint),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(Hint.__proto__||Object.getPrototypeOf(Hint)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(Hint,e),rs(Hint,[{key:"_getAlign",value:function(e,t){var n=this.props,r=n.innerWidth,i=n.innerHeight,o=n.orientation,a=n.align,s=a.horizontal,u=a.vertical,c=o?this._mapOrientationToAlign(o):{horizontal:s,vertical:u};return s===ru.AUTO&&(c.horizontal=e>r/2?ru.LEFT:ru.RIGHT),u===ru.AUTO&&(c.vertical=t>i/2?ru.TOP:ru.BOTTOM),c}},{key:"_getAlignClassNames",value:function(e){var t=this.props.orientation;return(t?"rv-hint--orientation-"+t:"")+" rv-hint--horizontalAlign-"+e.horizontal+"\n rv-hint--verticalAlign-"+e.vertical}},{key:"_getAlignStyle",value:function(e,t,n){return ra({},this._getXCSS(e.horizontal,t),this._getYCSS(e.vertical,n))}},{key:"_getCSSBottom",value:function(e){if(null==e)return{bottom:0};
5var t=this.props,n=t.innerHeight;return{bottom:t.marginBottom+n-e}}},{key:"_getCSSLeft",value:function(e){return null==e?{left:0}:{left:this.props.marginLeft+e}}},{key:"_getCSSRight",value:function(e){if(null==e)return{right:0};var t=this.props,n=t.innerWidth;return{right:t.marginRight+n-e}}},{key:"_getCSSTop",value:function(e){return null==e?{top:0}:{top:this.props.marginTop+e}}},{key:"_getPositionInfo",value:function(){var e=this.props,t=e.value,n=e.getAlignStyle,r=getAttributeFunctor(this.props,"x")(t),i=getAttributeFunctor(this.props,"y")(t),o=this._getAlign(r,i);return{position:n?n(o,r,i):this._getAlignStyle(o,r,i),positionClassName:this._getAlignClassNames(o)}}},{key:"_getXCSS",value:function(e,t){switch(e){case ru.LEFT_EDGE:return this._getCSSLeft(null);case ru.RIGHT_EDGE:return this._getCSSRight(null);case ru.LEFT:return this._getCSSRight(t);case ru.RIGHT:default:return this._getCSSLeft(t)}}},{key:"_getYCSS",value:function(e,t){switch(e){case ru.TOP_EDGE:return this._getCSSTop(null);case ru.BOTTOM_EDGE:return this._getCSSBottom(null);case ru.BOTTOM:return this._getCSSTop(t);case ru.TOP:default:return this._getCSSBottom(t)}}},{key:"_mapOrientationToAlign",value:function(e){switch(e){case rc.BOTTOM_LEFT:return{horizontal:ru.LEFT,vertical:ru.BOTTOM};case rc.BOTTOM_RIGHT:return{horizontal:ru.RIGHT,vertical:ru.BOTTOM};case rc.TOP_LEFT:return{horizontal:ru.LEFT,vertical:ru.TOP};case rc.TOP_RIGHT:return{horizontal:ru.RIGHT,vertical:ru.TOP}}}},{key:"render",value:function(){var e=this.props,t=e.value,n=e.format,r=e.children,i=e.style,o=e.className,a=this._getPositionInfo(),s=a.position,u=a.positionClassName;return c.createElement("div",{className:"rv-hint "+u+" "+o,style:ra({},i,s,{position:"absolute"})},r||c.createElement("div",{className:"rv-hint__content",style:i.content},n(t).map(function(e,t){return c.createElement("div",{key:"rv-hint"+t,style:i.row},c.createElement("span",{className:"rv-hint__title",style:i.title},e.title),": ",c.createElement("span",{className:"rv-hint__value",style:i.value},e.value))})))}}],[{key:"defaultProps",get:function(){return{format:defaultFormat,align:{horizontal:ru.AUTO,vertical:ru.AUTO},style:{}}}},{key:"propTypes",get:function(){return{marginTop:o().number,marginLeft:o().number,innerWidth:o().number,innerHeight:o().number,scales:o().object,value:o().object,format:o().func,style:o().object,className:o().string,align:o().shape({horizontal:o().oneOf([ru.AUTO,ru.LEFT,ru.RIGHT,ru.LEFT_EDGE,ru.RIGHT_EDGE]),vertical:o().oneOf([ru.AUTO,ru.BOTTOM,ru.TOP,ru.BOTTOM_EDGE,ru.TOP_EDGE])}),getAlignStyle:o().func,orientation:o().oneOf([rc.BOTTOM_LEFT,rc.BOTTOM_RIGHT,rc.TOP_LEFT,rc.TOP_RIGHT])}}}]),Hint}(c.PureComponent);rl.displayName="Hint",rl.ORIENTATION=rc,rl.ALIGN=ru;var rf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rp=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}();function bar_series_defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rh=function(e){function BarSeries(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,BarSeries),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(BarSeries.__proto__||Object.getPrototypeOf(BarSeries)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(BarSeries,e),rp(BarSeries,[{key:"render",value:function(){var e=this,t=this.props,n=t.animation,r=t.className,i=t.data,o=t.linePosAttr,a=t.lineSizeAttr,s=t.marginLeft,u=t.marginTop,l=t.style,f=t.valuePosAttr,p=t.valueSizeAttr,h=t.barWidth;if(!i)return null;if(n)return c.createElement(C,rf({},this.props,{animatedProps:eQ}
5),c.createElement(BarSeries,rf({},this.props,{animation:null})));var d=getStackParams(this.props),y=d.sameTypeTotal,g=d.sameTypeIndex,m=this._getScaleDistance(o),b=this._getAttributeFunctor(o),v=this._getAttributeFunctor(f),_=this._getAttr0Functor(f),x=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),O=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),k=this._getAttributeFunctor("opacity"),S=m/2*h;return c.createElement("g",{className:"rv-xy-plot__series rv-xy-plot__series--bar "+r,transform:"translate("+s+","+u+")"},i.map(function(t,n){var r,i=b(t),s=2*S/y-(y-1)/y,u=i-S+s*g+g,h=(bar_series_defineProperty(r={style:rf({opacity:k&&k(t),stroke:O&&O(t),fill:x&&x(t)},l)},o,u),bar_series_defineProperty(r,a,s),bar_series_defineProperty(r,f,Math.min(_(t),v(t))),bar_series_defineProperty(r,p,Math.abs(-_(t)+v(t))),bar_series_defineProperty(r,"onClick",function(n){return e._valueClickHandler(t,n)}),bar_series_defineProperty(r,"onContextMenu",function(n){return e._valueRightClickHandler(t,n)}),bar_series_defineProperty(r,"onMouseOver",function(n){return e._valueMouseOverHandler(t,n)}),bar_series_defineProperty(r,"onMouseOut",function(n){return e._valueMouseOutHandler(t,n)}),bar_series_defineProperty(r,"key",n),r);return c.createElement("rect",h)}))}}],[{key:"propTypes",get:function(){return rf({},eU.propTypes,{linePosAttr:o().string,valuePosAttr:o().string,lineSizeAttr:o().string,valueSizeAttr:o().string,cluster:o().string,barWidth:o().number})}},{key:"defaultProps",get:function(){return{barWidth:.85}}}]),BarSeries}(eU);rh.displayName="BarSeries";var rd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ry=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}();(function(e){function HorizontalBarSeries(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,HorizontalBarSeries),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(HorizontalBarSeries.__proto__||Object.getPrototypeOf(HorizontalBarSeries)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(HorizontalBarSeries,e),ry(HorizontalBarSeries,[{key:"render",value:function(){return c.createElement(rh,rd({},this.props,{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}))}}],[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"y"===e,zeroBaseValue:"x"===e}}}]),HorizontalBarSeries})(eU).displayName="HorizontalBarSeries";var rg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rm=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),rb=function(e){function BarSeriesCanvas(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,BarSeriesCanvas),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(BarSeriesCanvas.__proto__||Object.getPrototypeOf(BarSeriesCanvas)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(BarSeriesCanvas,e),rm(BarSeriesCanvas,[{key:"render",value:function(){return null}}],[{key:"renderLayer",value:function(e,t){var n,r=e.data,i=e.linePosAttr,o=e.lineSizeAttr,a=e.valuePosAttr,s=e.marginTop,u=e.marginBottom;if(r&&0!==r.length){var c=(n=getScaleObjectFromProps(e,i))?n.distance:0,l=getAttributeFunctor(e,i),f=getAttributeFunctor(e,a),p=getAttr0Functor(e,a),h=getAttributeFunctor(e,"fill")||getAttributeFunctor(e,"color"),d=getAttributeFunctor(e,"stroke")||getAttributeFunctor(e,"color"),y=getAttributeFunctor(e,"opacity"),g=c/2*.85,m=2*g,b=getStackParams(e),v=b.sameTypeTotal,_=b.sameTypeIndex;r.forEach(function(e){var n=l(e),r=m/v-(v-1)/v,i=color_rgb(h(e)),c=color_rgb(d(e)),b=y(e)||1,x=n-g+r*_+_,O=Math.min(p(e),f(e)),k="x"===a?O:x,S="y"===a?O:x,P=Math.abs(-p(e)+f(e)),T="height"===o?r:P,M="width"===o?r:P;t.beginPath(),t.rect(k+u,S+s,M,T),t.fillStyle="rgba("+i.r+", "+i.g+", "+i.b+", "+b+")",t.fill(),t.strokeStyle="rgba("+c.r+", "+c.g+", "+c.b+", "+b+")",t.stroke()})}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}]),BarSeriesCanvas}(eU);rb.displayName="BarSeriesCanvas",rb.defaultProps=rg({},eU.defaultProps,{linePosAttr:o().string.isRequired,valuePosAttr:o().string.isRequired,lineSizeAttr:o().string.isRequired,valueSizeAttr:o().string.isRequired}),rb.propTypes=rg({},eU.propTypes);var rv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r_=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),rx=function(e){function HorizontalBarSeriesCanvas(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,HorizontalBarSeriesCanvas),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(HorizontalBarSeriesCanvas.__proto__||Object.getPrototypeOf(HorizontalBarSeriesCanvas)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(HorizontalBarSeriesCanvas,e),r_(HorizontalBarSeriesCanvas,[{key:"render",value:function(){return null}}],[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"y"===e,zeroBaseValue:"x"===e}}},{key:"renderLayer",value:function(e,t){rb.renderLayer(rv({},e,{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}),t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}]),HorizontalBarSeriesCanvas}(eU);rx.displayName="HorizontalBarSeriesCanvas",rx.propTypes=rv({},eU.propTypes);var rO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rk=tz.HORIZONTAL,rS=rO({},n5.propTypes,{direction:o().oneOf([rk])});function HorizontalGridLines(e){return c.createElement(n5,e)}HorizontalGridLines.displayName="HorizontalGridLines",HorizontalGridLines.propTypes=rS,HorizontalGridLines.defaultProps={direction:rk,attr:"y"},HorizontalGridLines.requiresSVG=!0;var rP=HorizontalGridLines,rT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rM=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}();function rect_series_defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rw=function(e){function RectSeries(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,RectSeries),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(RectSeries.__proto__||Object.getPrototypeOf(RectSeries)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(RectSeries,e),rM(RectSeries,[{key:"render",value:function(){var e=this,t=this.props,n=t.animation,r=t.className,i=t.data,o=t.linePosAttr,a=t.lineSizeAttr,s=t.marginLeft,u=t.marginTop,l=t.style,f=t.valuePosAttr,p=t.valueSizeAttr;if(!i)return null;if(n)return c.createElement(C,rT({},this.props,{animatedProps:eQ}),c.createElement(RectSeries,rT({},this.props,{animation:null})));var h=this._getAttributeFunctor(o),d=this._getAttr0Functor(o),y=this._getAttributeFunctor(f),g=this._getAttr0Functor(f),m=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),b=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),v=this._getAttributeFunctor("op
5acity");return c.createElement("g",{className:"rv-xy-plot__series rv-xy-plot__series--rect "+r,transform:"translate("+s+","+u+")"},i.map(function(t,n){var r,i=(rect_series_defineProperty(r={style:rT({opacity:v&&v(t),stroke:b&&b(t),fill:m&&m(t)},l)},o,d(t)),rect_series_defineProperty(r,a,Math.abs(h(t)-d(t))),rect_series_defineProperty(r,f,Math.min(g(t),y(t))),rect_series_defineProperty(r,p,Math.abs(-g(t)+y(t))),rect_series_defineProperty(r,"onClick",function(n){return e._valueClickHandler(t,n)}),rect_series_defineProperty(r,"onContextMenu",function(n){return e._valueRightClickHandler(t,n)}),rect_series_defineProperty(r,"onMouseOver",function(n){return e._valueMouseOverHandler(t,n)}),rect_series_defineProperty(r,"onMouseOut",function(n){return e._valueMouseOutHandler(t,n)}),rect_series_defineProperty(r,"key",n),r);return c.createElement("rect",i)}))}}],[{key:"propTypes",get:function(){return rT({},eU.propTypes,{linePosAttr:o().string,valuePosAttr:o().string,lineSizeAttr:o().string,valueSizeAttr:o().string})}}]),RectSeries}(eU);rw.displayName="RectSeries";var rC=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rA=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}();(function(e){function HorizontalRectSeries(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,HorizontalRectSeries),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(HorizontalRectSeries.__proto__||Object.getPrototypeOf(HorizontalRectSeries)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(HorizontalRectSeries,e),rA(HorizontalRectSeries,[{key:"render",value:function(){return c.createElement(rw,rC({},this.props,{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}))}}],[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"x"===e}}}]),HorizontalRectSeries})(eU).displayName="HorizontalRectSeries";var rE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rR=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),rj=function(e){function RectSeriesCanvas(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,RectSeriesCanvas),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(RectSeriesCanvas.__proto__||Object.getPrototypeOf(RectSeriesCanvas)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(RectSeriesCanvas,e),rR(RectSeriesCanvas,[{key:"render",value:function(){return null}}],[{key:"renderLayer",value:function(e,t){var n=e.data,r=e.linePosAttr,i=e.lineSizeAttr,o=e.marginLeft,a=e.marginTop,s=e.valuePosAttr;if(n&&0!==n.length){var u=getAttributeFunctor(e,r),c=getAttr0Functor(e,r),l=getAttributeFunctor(e,s),f=getAttr0Functor(e,s),p=getAttributeFunctor(e,"fill")||getAttributeFunctor(e,"color"),h=getAttributeFunctor(e,"stroke")||getAttributeFunctor(e,"color"),d=getAttributeFunctor(e,"opacity");
5n.forEach(function(e){var n=color_rgb(p(e)),r=color_rgb(h(e)),y=d(e)||1,g=c(e),m=Math.min(f(e),l(e)),b="x"===s?m:g,v="y"===s?m:g,_=Math.abs(u(e)-c(e)),x=Math.abs(-f(e)+l(e)),O="height"===i?_:x,k="width"===i?_:x;t.beginPath(),t.rect(b+o,v+a,k,O),t.fillStyle="rgba("+n.r+", "+n.g+", "+n.b+", "+y+")",t.fill(),t.strokeStyle="rgba("+r.r+", "+r.g+", "+r.b+", "+y+")",t.stroke()})}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}]),RectSeriesCanvas}(eU);rj.displayName="RectSeriesCanvas",rj.defaultProps=rE({},eU.defaultProps,{linePosAttr:o().string.isRequired,valuePosAttr:o().string.isRequired,lineSizeAttr:o().string.isRequired,valueSizeAttr:o().string.isRequired}),rj.propTypes=rE({},eU.propTypes);var rN=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rL=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),rD=function(e){function HorizontalRectSeriesCanvas(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,HorizontalRectSeriesCanvas),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(HorizontalRectSeriesCanvas.__proto__||Object.getPrototypeOf(HorizontalRectSeriesCanvas)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(HorizontalRectSeriesCanvas,e),rL(HorizontalRectSeriesCanvas,[{key:"render",value:function(){return null}}],[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"x"===e}}},{key:"renderLayer",value:function(e,t){rj.renderLayer(rN({},e,{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}),t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}]),HorizontalRectSeriesCanvas}(eU);rD.displayName="HorizontalRectSeriesCanvas",rD.propTypes=rN({},eU.propTypes);var rF=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rI=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),rH=function(e){function LabelSeries(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,LabelSeries),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(LabelSeries.__proto__||Object.getPrototypeOf(LabelSeries)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(LabelSeries,e),rI(LabelSeries,[{key:"render",value:function(){var e=this,t=this.props,n=t.animation,r=t.allowOffsetToBeReversed,i=t.className,o=t.data,a=t._data,s=t.getLabel,u=t.marginLeft,l=t.marginTop,f=t.rotation,p=t.style,h=t.xRange,d=t.yRange,y=t.labelAnchorX,g=t.labelAnchorY;if(!o)return null;if(n)return c.createElement(C,rF({},this.props,{animatedProps:eQ}),c.createElement(LabelSeries,rF({},this.props,{animation:null,_data:o})));var m=this._getAttributeFunctor("x"),b=this._getAttributeFunctor("y");return c.createElement("g",{className:"rv-xy-plot__series rv-xy-plot__series--label "+i,transform:"translate("+u+","+l+")",
5style:p},o.reduce(function(t,n,i){var o=n.style,u=n.xOffset,l=n.yOffset;if(!s(n))return t;var p=m(n),v=b(n),_=p<(h[1]-h[0])/2,x=v<Math.abs(d[1]-d[0])/2,O=p+(r&&_?-1:1)*(u||0),k=v+(r&&x?-1:1)*(l||0),S=rF({dominantBaseline:g||(x?"text-before-edge":"text-after-edge"),className:"rv-xy-plot__series--label-text",key:i,onClick:function(t){return e._valueClickHandler(n,t)},onContextMenu:function(t){return e._valueRightClickHandler(n,t)},onMouseOver:function(t){return e._valueMouseOverHandler(n,t)},onMouseOut:function(t){return e._valueMouseOutHandler(n,t)},textAnchor:y||(_?"start":"end"),x:O,y:k,transform:"rotate("+(0===n.rotation||n.rotation?n.rotation:f)+","+O+","+k+")"},o),P=s(a?a[i]:n);return t.concat([c.createElement("text",S,P)])},[]))}}]),LabelSeries}(eU);rH.propTypes={animation:o().bool,allowOffsetToBeReversed:o().bool,className:o().string,data:o().arrayOf(o().shape({x:o().oneOfType([o().number,o().string]),y:o().oneOfType([o().number,o().string]),angle:o().number,radius:o().number,label:o().string,xOffset:o().number,yOffset:o().number,style:o().object})).isRequired,marginLeft:o().number,marginTop:o().number,rotation:o().number,style:o().object,xRange:o().arrayOf(o().number),yRange:o().arrayOf(o().number),labelAnchorX:o().string,labelAnchorY:o().string},rH.defaultProps=rF({},eU.defaultProps,{animation:!1,rotation:0,getLabel:function(e){return e.label}}),rH.displayName="LabelSeries";var rB=rH,rV=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rz=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),rq={dashed:"6, 2",solid:null},rU=function(e){function LineSeries(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,LineSeries),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(LineSeries.__proto__||Object.getPrototypeOf(LineSeries)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(LineSeries,e),rz(LineSeries,[{key:"_renderLine",value:function(e,t,n,i,o){var a=src_line();return null!==i&&("string"==typeof i&&r[i]?a=a.curve(r[i]):"function"==typeof i&&(a=a.curve(i))),(a=(a=a.defined(o)).x(t).y(n))(e)}},{key:"render",value:function(){var e=this.props,t=e.animation,n=e.className,r=e.data;if(this.props.nullAccessor&&warning("nullAccessor has been renamed to getNull",!0),!r)return null;if(t)return c.createElement(C,rV({},this.props,{animatedProps:eQ}),c.createElement(LineSeries,rV({},this.props,{animation:null})));var i=this.props,o=i.curve,a=i.marginLeft,s=i.marginTop,u=i.strokeDasharray,l=i.strokeStyle,f=i.strokeWidth,p=i.style,h=this._getAttributeFunctor("x"),d=this._getAttributeFunctor("y"),y=this._getAttributeValue("stroke")||this._getAttributeValue("color"),g=this._getAttributeValue("opacity"),m=Number.isFinite(g)?g:1,b=this.props.nullAccessor||this.props.getNull,v=this._renderLine(r,h,d,o,b);return c.createElement("path",{d:v,className:"rv-xy-plot__series rv-xy-plot__series--line "+n,transform:"translate("+a+","+s+")",onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,style:rV({opacity:m,strokeDasharray:rq[l]||u,strokeWidth:f,stroke:y},p)})}}]),LineSeries}(eU);rU.displayName="LineSeries",rU.propTypes=rV({},eU.propTypes,{strokeStyle:o().oneOf(Object.keys(rq)),curve:o().oneOfType([o().string,o().func]),getNull:o().func}),rU.defaultProps=rV({},eU.defaultProps,{strokeStyle:"solid",style:{},opacity:1,curve:null,className:"",getNull:function(){return!0}});var rW=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rY=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),rG=function(e){function MarkSeries(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,MarkSeries),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(MarkSeries.__proto__||Object.getPrototypeOf(MarkSeries)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(MarkSeries,e),rY(MarkSeries,[{key:"_renderCircle",value:function(e,t,n,r,i){var o=this,a=i.fill,s=i.opacity,u=i.size,l=i.stroke,f=i.x,p=i.y,h={r:u?u(e):5,cx:f(e),cy:p(e),style:rW({opacity:s?s(e):1,stroke:l&&l(e),fill:a&&a(e),strokeWidth:n||1},r),key:t,onClick:function(t){return o._valueClickHandler(e,t)},onContextMenu:function(t){return o._valueRightClickHandler(e,t)},onMouseOver:function(t){return o._valueMouseOverHandler(e,t)},onMouseOut:function(t){return o._valueMouseOutHandler(e,t)}};return c.createElement("circle",h)}},{key:"render",value:function(){var e=this,t=this.props,n=t.animation,r=t.className,i=t.data,o=t.marginLeft,a=t.marginTop,s=t.strokeWidth,u=t.style;this.props.nullAccessor&&warning("nullAccessor has been renamed to getNull",!0);var l=this.props.nullAccessor||this.props.getNull;if(!i)return null;if(n)return c.createElement(C,rW({},this.props,{animatedProps:eQ}),c.createElement(MarkSeries,rW({},this.props,{animation:null})));var f={fill:this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),opacity:this._getAttributeFunctor("op
5acity"),size:this._getAttributeFunctor("size"),stroke:this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),x:this._getAttributeFunctor("x"),y:this._getAttributeFunctor("y")};return c.createElement("g",{className:"rv-xy-plot__series rv-xy-plot__series--mark "+r,transform:"translate("+o+","+a+")"},i.map(function(t,n){return l(t)&&e._renderCircle(t,n,s,u,f)}))}}]),MarkSeries}(eU);rG.displayName="MarkSeries",rG.propTypes=rW({},eU.propTypes,{getNull:o().func,strokeWidth:o().number}),rG.defaultProps={getNull:function(){return!0}};var rX=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),r$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rZ=r$({},rU.propTypes,{lineStyle:o().object,markStyle:o().object}),rJ=function(e){function LineMarkSeries(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,LineMarkSeries),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(LineMarkSeries.__proto__||Object.getPrototypeOf(LineMarkSeries)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(LineMarkSeries,e),rX(LineMarkSeries,[{key:"render",value:function(){var e=this.props,t=e.lineStyle,n=e.markStyle,r=e.style;return c.createElement("g",{className:"rv-xy-plot__series rv-xy-plot__series--linemark"},c.createElement(rU,r$({},this.props,{style:r$({},r,t)})),c.createElement(rG,r$({},this.props,{style:r$({},r,n)})))}}],[{key:"defaultProps",get:function(){return r$({},rU.defaultProps,{lineStyle:{},markStyle:{}})}}]),LineMarkSeries}(eU);rJ.displayName="LineMarkSeries",rJ.propTypes=rZ;var rQ=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rK=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),r0=function(e){function MarkSeriesCanvas(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,MarkSeriesCanvas),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(MarkSeriesCanvas.__proto__||Object.getPrototypeOf(MarkSeriesCanvas)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(MarkSeriesCanvas,e),rK(MarkSeriesCanvas,[{key:"render",value:function(){return null}}],[{key:"renderLayer",value:function(e,t){var n=e.data,r=e.marginLeft,i=e.marginTop,o=getAttributeFunctor(e,"x"),a=getAttributeFunctor(e,"y"),s=getAttributeFunctor(e,"size")||function(e){return 5},u=getAttributeFunctor(e,"fill")||getAttributeFunctor(e,"color"),c=getAttributeFunctor(e,"stroke")||getAttributeFunctor(e,"color"),l=getAttributeFunctor(e,"opacity");n.forEach(function(e){var n=color_rgb(u(e)),f=color_rgb(c(e)),p=l(e)||1;t.beginPath(),t.arc(o(e)+r,a(e)+i,s(e),0,2*Math.PI),t.fillStyle="rgba("+n.r+", "+n.g+", "+n.b+", "+p+")",t.fill(),t.strokeStyle="rgba("+f.r+", "+f.g+", "+f.b+", "+p+")",t.stroke()})}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}]),MarkSeriesCanvas}(eU);r0.displayName="MarkSeriesCanvas",r0.propTypes=rQ({},eU.propTypes);var r1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r2=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),r3=function(e){function LineSeriesCanvas(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,LineSeriesCanvas),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(LineSeriesCanvas.__proto__||Object.getPrototypeOf(LineSeriesCanvas)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(LineSeriesCanvas,e),r2(LineSeriesCanvas,[{key:"render",value:function(){return c.createElement("div",null)}}],[{key:"renderLayer",value:function(e,t){var n=e.curve,i=e.data,o=e.marginLeft,a=e.marginTop,s=e.strokeWidth,u=e.strokeDasharray;if(i&&0!==i.length){var c=getAttributeFunctor(e,"x"),l=getAttributeFunctor(e,"y"),f=color_rgb(getAttributeValue(e,"stroke")||getAttributeValue(e,"color")),p=getAttributeValue(e,"opacity"),h=Number.isFinite(p)?p:1,d=src_line().x(function(e){return c(e)+o}).y(function(e){return l(e)+a});"string"==typeof n&&r[n]?d=d.curve(r[n]):"function"==typeof n&&(d=d.curve(n)),t.beginPath(),t.strokeStyle="rgba("+f.r+", "+f.g+", "+f.b+", "+h+")",t.lineWidth=s,u&&t.setLineDash(u),d.context(t)(i),t.stroke(),t.closePath(),t.lineWidth=1,t.setLineDash([])}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}]),LineSeriesCanvas}(eU);r3.displayName="LineSeriesCanvas",r3.defaultProps=r1({},eU.defaultProps,{strokeWidth:2}),r3.propTypes=r1({},eU.propTypes,{strokeWidth:o().number});var r5=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r6=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),r4=function(e){function LineMarkSeriesCanvas(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,LineMarkSeriesCanvas),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(LineMarkSeriesCanvas.__proto__||Object.getPrototypeOf(LineMarkSeriesCanvas)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(LineMarkSeriesCanvas,e),r6(LineMarkSeriesCanvas,[{key:"render",value:function(){return null}}],[{key:"renderLayer",value:function(e,t){r3.renderLayer(e,t),r0.renderLayer(e,t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}]),LineMarkSeriesCanvas}(eU);
5r4.displayName="LineMarkSeriesCanvas",r4.propTypes=r5({},eU.propTypes);var r8=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r7=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),r9=function(e){function PolygonSeries(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,PolygonSeries),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(PolygonSeries.__proto__||Object.getPrototypeOf(PolygonSeries)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(PolygonSeries,e),r7(PolygonSeries,[{key:"render",value:function(){var e=this,t=this.props,n=t.animation,r=t.color,i=t.className,o=t.data,a=t.marginLeft,s=t.marginTop,u=t.style;if(!o)return null;if(n)return c.createElement(C,r8({},this.props,{animatedProps:eQ}),c.createElement(PolygonSeries,r8({},this.props,{animation:null})));var l=this._getAttributeFunctor("x"),f=this._getAttributeFunctor("y");return c.createElement("path",{className:"rv-xy-plot__series rv-xy-plot__series--polygon "+i,onMouseOver:function(t){return e._seriesMouseOverHandler(o,t)},onMouseOut:function(t){return e._seriesMouseOutHandler(o,t)},onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,fill:r||"#12939A",style:u,d:o.reduce(function(e,t,n){return e+" "+(n?"L":"M")+l(t)+" "+f(t)},"")+" Z",transform:"translate("+a+","+s+")"})}}],[{key:"propTypes",get:function(){return r8({},eU.propTypes)}}]),PolygonSeries}(eU);r9.displayName="PolygonSeries";var ie=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},it=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),ir=function(e){function VerticalBarSeries(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,VerticalBarSeries),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(VerticalBarSeries.__proto__||Object.getPrototypeOf(VerticalBarSeries)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(VerticalBarSeries,e),it(VerticalBarSeries,[{key:"render",value:function(){return c.createElement(rh,ie({},this.props,{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}))}}],[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"x"===e,zeroBaseValue:"y"===e}}}]),VerticalBarSeries}(eU);ir.displayName="VerticalBarSeries";var ii=ir,io=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ia=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),is=function(e){function HorizontalBarSeriesCanvas(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,HorizontalBarSeriesCanvas),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(HorizontalBarSeriesCanvas.__proto__||Object.getPrototypeOf(HorizontalBarSeriesCanvas)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(HorizontalBarSeriesCanvas,e),ia(HorizontalBarSeriesCanvas,[{key:"render",value:function(){return null}}],[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"x"===e,zeroBaseValue:"y"===e}}},{key:"renderLayer",value:function(e,t){rb.renderLayer(io({},e,{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}),t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}]),HorizontalBarSeriesCanvas}(eU);is.displayName="HorizontalBarSeriesCanvas",is.propTypes=io({},eU.propTypes);var iu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ic=tz.VERTICAL,il=iu({},n5.propTypes,{direction:o().oneOf([ic])});function VerticalGridLines(e){return c.createElement(n5,e)}VerticalGridLines.displayName="VerticalGridLines",VerticalGridLines.propTypes=il,VerticalGridLines.defaultProps={direction:ic,attr:"x"},VerticalGridLines.requiresSVG=!0;var ip=VerticalGridLines,ih=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},id=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),iy=function(e){function VerticalRectSeries(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,VerticalRectSeries),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(VerticalRectSeries.__proto__||Object.getPrototypeOf(VerticalRectSeries)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(VerticalRectSeries,e),id(VerticalRectSeries,[{key:"render",value:function(){return c.createElement(rw,ih({},this.props,{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}))}}],[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"y"===e}}}]),VerticalRectSeries}(eU);iy.displayName="VerticalRectSeries";var ig=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},im=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),ib=function(e){function HorizontalRectSeriesCanvas(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,HorizontalRectSeriesCanvas),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(HorizontalRectSeriesCanvas.__proto__||Object.getPrototypeOf(HorizontalRectSeriesCanvas)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(HorizontalRectSeriesCanvas,e),im(HorizontalRectSeriesCanvas,[{key:"render",value:function(){return null}}],[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"y"===e}}},{key:"renderLayer",value:function(e,t){rj.renderLayer(ig({},e,{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}),t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}]),HorizontalRectSeriesCanvas}(eU);ib.displayName="HorizontalRectSeriesCanvas",ib.propTypes=ig({},eU.propTypes);var iv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NOOP=function(e){return e};function Voronoi(e){var t,n,r,i,o=e.className,a=e.extent,s=e.nodes,u=e.onBlur,l=e.onClick,f=e.onMouseUp,p=e.onMouseDown,h=e.onHover,d=e.polygonStyle,y=e.style,g=e.x,m=e.y,b=voronoi().x(g||getAttributeFunctor(e,"x")).y(m||getAttributeFunctor(e,"y")).extent(a||(t=e.innerWidth,n=e.innerHe
5ight,[[r=e.marginLeft,i=e.marginTop],[t+r,n+i]])).polygons(s),handleTouchEvent=function(e){return function(t){t.preventDefault();var n=function(e){var t=e.nativeEvent,n=t.pageX,r=t.pageY,i=document.elementFromPoint(n,r);if(!i)return -1;var o=i.parentNode;return Array.prototype.indexOf.call(o.childNodes,i)}(t);n>-1&&n<b.length&&e(b[n].data)}};return c.createElement("g",{className:o+" rv-voronoi",style:y,onTouchEnd:handleTouchEvent(f),onTouchStart:handleTouchEvent(p),onTouchMove:handleTouchEvent(h),onTouchCancel:handleTouchEvent(u)},b.map(function(e,t){return c.createElement("path",{className:"rv-voronoi__cell "+(e.data&&e.data.className||""),d:"M"+e.join("L")+"Z",onClick:function(){return l(e.data)},onMouseUp:function(){return f(e.data)},onMouseDown:function(){return p(e.data)},onMouseOver:function(){return h(e.data)},onMouseOut:function(){return u(e.data)},fill:"none",style:iv({pointerEvents:"all"},d,e.data&&e.data.style),key:t})}))}Voronoi.requiresSVG=!0,Voronoi.displayName="Voronoi",Voronoi.defaultProps={className:"",onBlur:NOOP,onClick:NOOP,onHover:NOOP,onMouseDown:NOOP,onMouseUp:NOOP},Voronoi.propTypes={className:o().string,extent:o().arrayOf(o().arrayOf(o().number)),nodes:o().arrayOf(o().object).isRequired,onBlur:o().func,onClick:o().func,onHover:o().func,onMouseDown:o().func,onMouseUp:o().func,x:o().func,y:o().func};var i_=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),ix=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iO=function(e){function WhiskerSeries(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,WhiskerSeries),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(WhiskerSeries.__proto__||Object.getPrototypeOf(WhiskerSeries)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(WhiskerSeries,e),i_(WhiskerSeries,[{key:"render",value:function(){var e=this.props,t=e.animation,n=e.className,r=e.crossBarWidth,i=e.data,o=e.marginLeft,a=e.marginTop,s=e.strokeWidth,u=e.style;if(!i)return null;if(t)return c.createElement(C,ix({},this.props,{animatedProps:eQ}),c.createElement(WhiskerSeries,ix({},this.props,{animation:null})));var l={crossBarWidth:r,opacityFunctor:this._getAttributeFunctor("opacity"),sizeFunctor:this._getAttributeFunctor("size"),strokeFunctor:this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),strokeWidth:s,style:u,xFunctor:this._getAttributeFunctor("x"),yFunctor:this._getAttributeFunctor("y"),valueClickHandler:this._valueClickHandler,valueRightClickHandler:this._valueRightClickHandler,valueMouseOverHandler:this._valueMouseOverHandler,valueMouseOutHandler:this._valueMouseOutHandler};return c.createElement("g",{className:"rv-xy-plot__series rv-xy-plot__series--whisker "+n,transform:"translate("+o+","+a+")"},i.map(function(e,t){var n=l.crossBarWidth,r=l.opacityFunctor,i=l.sizeFunctor,o=l.strokeFunctor,a=l.strokeWidth,s=l.style,u=l.valueClickHandler,f=l.valueMouseOutHandler,p=l.valueMouseOverHandler,h=l.valueRightClickHandler,d=l.xFunctor,y=l.yFunctor,g=i?i(e):0,m=d(e),b=y(e),v=d({x:e.x+e.xVariance/2}),_=d({x:e.x-e.xVariance/2}),x=y({y:e.y+e.yVariance/2}),O=y({y:e.y-e.yVariance/2}),k=v&&m+g<v,S=x&&b-g>x;if(!k&&!S)return null;var P=ix({opacity:r?r(e):1,stroke:o&&o(e),strokeWidth:a||1},s),T=n/2;return c.createElement("g",{className:"mark-whiskers",key:t,onClick:function(t){return u(e,t)},onContextMenu:function(t){return h(e,t)},onMouseOver:function(t){return p(e,t)},onMouseOut:function(t){return f(e,t)}},k?c.createElement("g",{className:"x-whiskers"},c.createElement("line",{x1:m+g,y1:b,x2:v,y2:b,style:P}),c.createElement("line",{x1:m-g,y1:b,x2:_,y2:b,style:P}),c.createElement("line",{x1:v,y1:b-T,x2:v,y2:b+T,style:P}),c.createElement("line",{x1:_,y1:b-T,x2:_,y2:b+T,style:P})):null,S?c.createElement("g",{className:"y-whiskers"},c.createElement("line",{x1:m,y1:b-g,x2:m,y2:x,style:P}),c.createElement("line",{x1:m,y1:b+g,x2:m,y2:O,style:P}),c.createElement("line",{x1:m-T,y1:x,x2:m+T,y2:x,style:P}),c.createElement("line",{x1:m-T,y1:O,x2:m+T,y2:O,style:P})):null)}))}}]),WhiskerSeries}(eU);iO.displayName="WhiskerSeries",iO.propTypes=ix({},eU.propTypes,{strokeWidth:o().number}),iO.defaultProps=ix({},eU.defaultProps,{crossBarWidth:6,size:0,strokeWidth:1});var ik=n(10251),iS=n.n(ik),iP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function getInnerDimensions(e,t){var n=e.margin,r=e.width,i=e.he
5ight,o=iP({},t,"number"==typeof n?{left:n,right:n,top:n,bottom:n}:n),a=o.left,s=void 0===a?0:a,u=o.top,c=void 0===u?0:u,l=o.right,f=void 0===l?0:l,p=o.bottom,h=void 0===p?0:p;return{marginLeft:s,marginTop:c,marginRight:f,marginBottom:h,innerHeight:i-h-c,innerWidth:r-s-f}}function getRadialLayoutMargin(e,t,n){var r=e/2-n,i=t/2-n;return{bottom:i,left:r,right:r,top:i}}var iT=o().oneOfType([o().shape({left:o().number,top:o().number,right:o().number,bottom:o().number}),o().number]),iM={left:40,right:10,top:10,bottom:40},iw=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),iC=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function drawLayers(e,t,n,r,i){e.clearRect(0,0,n,t),r.forEach(function(t){var n=t.interpolator,r=t.newProps,o=t.animation?n?n(i/30):n:function(){return{}};t.renderLayer(iC({},r,o),e)})}var iA=function(e){function CanvasWrapper(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,CanvasWrapper),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(CanvasWrapper.__proto__||Object.getPrototypeOf(CanvasWrapper)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(CanvasWrapper,e),iw(CanvasWrapper,[{key:"componentDidMount",value:function(){var e=this.canvas.getContext("2d");if(e){var t=this.props.pixelRatio;e&&(e.scale(t,t),this.drawChildren(null,this.props,e))}}},{key:"componentDidUpdate",value:function(e){this.drawChildren(e,this.props,this.canvas.getContext("2d"))}},{key:"drawChildren",value:function(e,t,n){var r,i,o,a,s=t.children,u=t.innerHeight,c=t.innerWidth,l=t.marginBottom,f=t.marginLeft,p=t.marginRight,h=t.marginTop;if(n){var d=s.find(function(e){return e.props.animation}),y=u+h+l,g=c+f+p,m=(r=t.children,i=e?e.children:[],r.map(function(e,t){var n=i[t]?i[t].props:{},r=e.props,o=value(extractAnimatedPropValues(iC({},n,{animatedProps:eQ})),r?extractAnimatedPropValues(iC({},r,{animatedProps:eQ})):null);return{renderLayer:e.type.renderLayer,newProps:e.props,animation:e.props.animation,interpolator:o}}));if(!d){drawLayers(n,y,g,m);return}o=0,a=setInterval(function(){if(!n){clearInterval(a);return}drawLayers(n,y,g,m,o),o>30&&clearInterval(a),o+=1},1)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.innerHeight,r=t.innerWidth,i=t.marginBottom,o=t.marginLeft,a=t.marginRight,s=t.marginTop,u=t.pixelRatio,l=n+s+i,f=r+o+a;return c.createElement("div",{style:{left:0,top:0},className:"rv-xy-canvas"},c.createElement("canvas",{className:"rv-xy-canvas-element",height:l*u,width:f*u,style:{height:l+"px",width:f+"px"},ref:function(t){return e.canvas=t}}),this.props.children)}}],[{key:"defaultProps",get:function(){return{pixelRatio:window&&window.devicePixelRatio||1}}}]),CanvasWrapper}(c.Component);iA.displayName="CanvasWrapper",iA.propTypes={marginBottom:o().number.isRequired,marginLeft:o().number.isRequired,marginRight:o().number.isRequired,marginTop:o().number.isRequired,innerHeight:o().number.isRequired,innerWidth:o().number.isRequired,pixelRatio:o().number.isRequired};var iE=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),iR=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ij=["x","y","radius","angle","color","fill","stroke","opacity","size"];function cleanseData(e){return e.map(function(e){return Array.isArray(e)?e.map(function(e){return iR({},e,{parent:null})}):e})}var iN=function(e){function XYPlot(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,XYPlot);var t=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(XYPlot.__proto__||Object.getPrototypeOf(XYPlot)).call(this,e));_initialiseProps.call(t);var n=e.stackBy,r=getStackedData(getSeriesChildren(e.children),n);return t.state={scaleMixins:t._getScaleMixins(r,e),data:r},t}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(XYPlot,e),iE(XYPlot,null,[{key:"defaultProps",get:function(){return{className:""}}},{key:"propTypes",get:function(){return{animation:M,className:o().string,dontCheckIfEmpty:o().bool,height:o().number.isRequired,margin:iT,onClick:o().func,onDoubleClick:o().func,onMouseDown:o().func,onMouseUp:o().func,onMouseEnter:o().func,onMouseLeave:o().func,onMouseMove:o().func,onTouchStart:o().func,onTouchMove:o().func,onTouchEnd:o().func,onTouchCancel:o().func,onWheel:o().func,stackBy:o().oneOf(ij),style:o().object,width:o().number.isRequired}}}
5]),iE(XYPlot,[{key:"componentWillReceiveProps",value:function(e){var t,n,r,i=getStackedData(getSeriesChildren(e.children),e.stackBy),o=this.state.scaleMixins,a=this._getScaleMixins(i,e);n=iR({},a,{_allData:(t=e.hasTreeStructure)?cleanseData(a._allData):a._allData}),r=iR({},o,{_allData:t?cleanseData(o._allData):o._allData}),iS()(n,r)||this.setState({scaleMixins:a,data:i})}},{key:"_getClonedChildComponents",value:function(){var e,t,n,r,i=this,o=this.props,a=this.props.animation,s=this.state,u=s.scaleMixins,l=s.data,f=getInnerDimensions(this.props,iM),p=c.Children.toArray(this.props.children),h=(t=[],e={},p.filter(isSeriesChild).forEach(function(t){var n=t.type.displayName,r=t.props.cluster;e[n]||(e[n]={sameTypeTotal:0,sameTypeIndex:0,clusters:new Set}),e[n].clusters.add(r),e[n].sameTypeTotal++}),n=0,p.forEach(function(r){var i=void 0;if(isSeriesChild(r)){var o=e[r.type.displayName],a=eW[n%eW.length];i=eJ({},o,{seriesIndex:n,_colorValue:a,_opacityValue:1}),o.sameTypeIndex++,n++,r.props.cluster&&(i.cluster=r.props.cluster,i.clusters=Array.from(o.clusters),i.sameTypeTotal=i.clusters.length,i.sameTypeIndex=i.clusters.indexOf(r.props.cluster))}t.push(i)}),t),d=(r=eB.reduce(function(e,t){var n=o[t+"Domain"],r=o[t+"Range"],i=o[t+"Type"];return n&&r&&i?ej({},e,_defineProperty({},t,eH[i]().domain(n).range(r))):e},{}),p.map(function(e){return eB.reduce(function(t,n){if(e.props&&void 0!==e.props[n]){var i=e.props[n],o=r[n];return ej({},t,_defineProperty({},"_"+n+"Value",o?o(i):i))}return t},{})}));return p.map(function(e,t){var n=null;return h[t]&&(n={data:l[h[t].seriesIndex]}),c.cloneElement(e,iR({},f,{animation:a},n&&e.type.prototype&&e.type.prototype.render?{ref:function(e){return i["series"+h[t].seriesIndex]=e}}:{},h[t],u,e.props,d[t],n))})}},{key:"_getDefaultScaleProps",value:function(e){var t=getInnerDimensions(e,iM),n=t.innerWidth,r=t.innerHeight,i=["color","fill","stroke"].reduce(function(t,n){var r,i,o="category"===e[n+"Type"]?eY:eG;return iR({},t,(r={},(i=n+"Range")in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r))},{});return iR({xRange:[0,n],yRange:[r,0]},i,{opacityType:e$,sizeRange:eX})}},{key:"_getScaleMixins",value:function(e,t){var n,r=e.filter(function(e){return e}),i=(n=[]).concat.apply(n,function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}(r)),o=this._getDefaultScaleProps(t),a=Object.keys(t).reduce(function(e,n){return eV.every(function(e){return!n.match(e)})||(e[n]=t[n]),e},{}),s=extractScalePropsFromProps(t,ij),u=getMissingScaleProps(iR({},o,a,s),i,ij),c=getSeriesChildren(t.children),l={},f=new Set,p=new Set;return c.forEach(function(n,r){n&&e[r]&&ij.forEach(function(e){var i=n.type.getParentConfig(e,n.props),o=i.isDomainAdjustmentNeeded,a=i.zeroBaseValue;if(o&&(f.add(e),p.add(r)),a){var s=t[e+"Domain"];l[e+"BaseValue"]=s?s[0]:0}})}),iR({},o,l,s,u,{_allData:e,_adjustBy:Array.from(f),_adjustWhat:Array.from(p),_stackBy:t.stackBy})}},{key:"_isPlotEmpty",value:function(){var e=this.state.data;return!e||!e.length||!e.some(function(e){return e&&e.some(function(e){return e})})}},{key:"renderCanvasComponents",value:function(e,t){var n=e.filter(function(e){return e&&!e.type.requiresSVG&&e.type.isCanvas});if(0===n.length)return null;var r=n[0].props,i=r.marginLeft,o=r.marginTop,a=r.marginBottom,s=r.marginRight,u=r.innerHeight,l=r.innerWidth;return c.createElement(iA,{innerHeight:u,innerWidth:l,marginLeft:i,marginTop:o,marginBottom:a,marginRight:s},n)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.dontCheckIfEmpty,r=e.style,i=e.width,o=e.height;if(!n&&this._isPlotEmpty())return c.createElement("div",{className:"rv-xy-plot "+t,style:iR({width:i+"px",height:o+"px"},this.props.style)});var a=this._getClonedChildComponents();return c.createElement("div",{style:{width:i+"px",height:o+"px"},className:"rv-xy-plot "+t},c.createElement("svg",{className:"rv-xy-plot__inner",width:i,height:o,style:r,onClick:this._clickHandler,onDoubleClick:this._doubleClickHandler,onMouseDown:this._mouseDownHandler,onMouseUp:this._mouseUpHandler,onMouseMove:this._mouseMoveHandler,onMouseLeave:this._mouseLeaveHandler,onMouseEnter:this._mouseEnterHandler,onTouchStart:this._mouseDownHandler,onTouchMove:this._touchMoveHandler,onTouchEnd:this._touchEndHandler,onTouchCancel:this._touchCancelHandler,onWheel:this._wheelHandler},a.filter(function(e){return e&&e.type.requiresSVG})),this.renderCanvasComponents(a,this.props),a.filter(function(e){return e&&!e.type.requiresSVG&&!e.type.isCanvas}))}}]),XYPlot}(c.Component),_initialiseProps=function(){var e=this;this._clickHandler=function(t){var n=e.props.onClick;n&&n(t)},this._doubleClickHandler=function(t){var n=e.props.onDoubleClick;n&&n(t)},this._mouseDownHandler=function(t){var n=e.props,r=n.onMouseDown,i=n.children;
5r&&r(t),getSeriesChildren(i).forEach(function(n,r){var i=e["series"+r];i&&i.onParentMouseDown&&i.onParentMouseDown(t)})},this._mouseEnterHandler=function(t){var n=e.props,r=n.onMouseEnter,i=n.children;r&&r(t),getSeriesChildren(i).forEach(function(n,r){var i=e["series"+r];i&&i.onParentMouseEnter&&i.onParentMouseEnter(t)})},this._mouseLeaveHandler=function(t){var n=e.props,r=n.onMouseLeave,i=n.children;r&&r(t),getSeriesChildren(i).forEach(function(n,r){var i=e["series"+r];i&&i.onParentMouseLeave&&i.onParentMouseLeave(t)})},this._mouseMoveHandler=function(t){var n=e.props,r=n.onMouseMove,i=n.children;r&&r(t),getSeriesChildren(i).forEach(function(n,r){var i=e["series"+r];i&&i.onParentMouseMove&&i.onParentMouseMove(t)})},this._mouseUpHandler=function(t){var n=e.props,r=n.onMouseUp,i=n.children;r&&r(t),getSeriesChildren(i).forEach(function(n,r){var i=e["series"+r];i&&i.onParentMouseUp&&i.onParentMouseUp(t)})},this._touchCancelHandler=function(t){var n=e.props.onTouchCancel;n&&n(t)},this._touchEndHandler=function(t){var n=e.props.onTouchEnd;n&&n(t)},this._touchMoveHandler=function(t){var n=e.props,r=n.onTouchMove,i=n.children;r&&r(t),getSeriesChildren(i).forEach(function(n,r){var i=e["series"+r];i&&i.onParentTouchMove&&i.onParentTouchMove(t)})},this._touchStartHandler=function(t){var n=e.props,r=n.onTouchStart,i=n.children;r&&r(t),getSeriesChildren(i).forEach(function(n,r){var i=e["series"+r];i&&i.onParentTouchStart&&i.onParentTouchStart(t)})},this._wheelHandler=function(t){var n=e.props.onWheel;n&&n(t)}};iN.displayName="XYPlot";var iL=iN,iD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iF=tV.LEFT,iI=tV.RIGHT,iH=tV.TOP,iB=tV.BOTTOM,iV={height:o().number.isRequired,style:o().object,orientation:o().oneOf([iF,iI,iH,iB]).isRequired,width:o().number.isRequired};function AxisLine(e){var t=e.orientation,n=e.width,r=e.height,i=e.style,o=void 0;return o=t===iF?{x1:n,x2:n,y1:0,y2:r}:t===iI?{x1:0,x2:0,y1:0,y2:r}:t===iH?{x1:0,x2:n,y1:r,y2:r}:{x1:0,x2:n,y1:0,y2:0},c.createElement("line",iD({},o,{className:"rv-xy-plot__axis__line",style:i}))}AxisLine.defaultProps={style:{}},AxisLine.displayName="AxisLine",AxisLine.propTypes=iV;var iz=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iq=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}();function axis_ticks_defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iU=tV.LEFT,iW=tV.RIGHT,iY=tV.TOP,iG=tV.BOTTOM,iX={height:o().number.isRequired,orientation:o().oneOf([iU,iW,iY,iG]).isRequired,style:o().object,width:o().number.isRequired},i$=function(e){function AxisTicks(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,AxisTicks),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(AxisTicks.__proto__||Object.getPrototypeOf(AxisTicks)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(AxisTicks,e),iq(AxisTicks,[{key:"_areTicksWrapped",value:function(){var e=this.props.orientation;return e===iU||e===iY}},{key:"_getTickContainerPropsGetterFn",value:function(){return this._isAxisVertical()?function(e){return{transform:"translate(0, "+e+")"}}:function(e){return{transform:"translate("+e+", 0)"}}}},{key:"_getTickLabelProps",value:function(){var e=this.props,t=e.orientation,n=e.tickLabelAngle,r=e.tickSize,i=e.tickSizeOuter,o=e.tickPadding,a=void 0;a=t===iU||t===iG&&n?"end":t===iW||t===iY&&n?"start":"middle";var s=this._isAxisVertical(),u=(this._areTicksWrapped()?-1:1)*((void 0===i?r:i)+(void 0===o?r:o));return{textAnchor:a,dy:t===iY||n?"0":t===iG?"0.72em":"0.32em",transform:(s?"translate("+u+", 0)":"translate(0, "+u+")")+(n?" rotate("+n+")":"")}}},{key:"_getTickLineProps",value:function(){var e,t=this.props,n=t.tickSize,r=t.tickSizeOuter,i=void 0===r?n:r,o=t.tickSizeInner,a=void 0===o?n:o,s=this._isAxisVertical(),u=s?"y":"x",c=s?"x":"y",l=this._areTicksWrapped()?-1:1;return axis_ticks_defineProperty(e={},u+"1",0),axis_ticks_defineProperty(e,u+"2",0),axis_ticks_defineProperty(e,c+"1",-l*a),axis_ticks_defineProperty(e,c+"2",l*i),e}},{key:"_isAxisVertical",value:function(){var e=this.props.orientation;return e===iU||e===iW}},{key:"render",value:function(){var e=this.props,t=e.attr,n=e.orientation,r=e.width,i=e.he
5ight,o=e.style,a=e.tickFormat,s=e.tickTotal,u=e.tickValues,l=n===iU?r:0,f=n===iY?i:0,p=getAttributeScale(this.props,t),h=getTickValues(p,s,u),d=a||(p.tickFormat?p.tickFormat(s):function(e){return e}),y=this._getTickContainerPropsGetterFn(),g=this._getTickLineProps(),m=this._getTickLabelProps(),b=h.map(function(e,t){var n=p(e),i=d(e,t,p,s),a=c.isValidElement(i)&&!["tspan","textPath"].includes(i.type),u=i&&"string"!=typeof i.type;return c.createElement("g",iz({key:t},y(n,0),{className:"rv-xy-plot__axis__tick",style:o}),c.createElement("line",iz({},g,{className:"rv-xy-plot__axis__tick__line",style:iz({},o,o.line)})),a?c.cloneElement(i,u?iz({},m,{containerWidth:r,tickCount:h.length}):void 0):c.createElement("text",iz({},m,{className:"rv-xy-plot__axis__tick__text",style:iz({},o,o.text)}),i))});return c.createElement("g",{transform:"translate("+l+", "+f+")",className:"rv-xy-plot__axis__ticks"},b)}}]),AxisTicks}(c.Component);i$.defaultProps={style:{}},i$.displayName="AxisTicks",i$.propTypes=iX,i$.requiresSVG=!0;var iZ=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function axis_title_defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iJ=tV.LEFT,iQ=tV.RIGHT,iK=tV.TOP,i0=tV.BOTTOM,transformation=function(e,t){var n;return axis_title_defineProperty(n={},iJ,{end:{x:16,y:6,rotation:-90,textAnchor:"end"},middle:{x:16,y:t/2-6,rotation:-90,textAnchor:"middle"},start:{x:16,y:t-6,rotation:-90,textAnchor:"start"}}),axis_title_defineProperty(n,iQ,{end:{x:-8,y:6,rotation:-90,textAnchor:"end"},middle:{x:-8,y:t/2-6,rotation:-90,textAnchor:"middle"},start:{x:-8,y:t-6,rotation:-90,textAnchor:"start"}}),axis_title_defineProperty(n,iK,{start:{x:6,y:16,rotation:0,textAnchor:"start"},middle:{x:e/2-6,y:16,rotation:0,textAnchor:"middle"},end:{x:e-6,y:16,rotation:0,textAnchor:"end"}}),axis_title_defineProperty(n,i0,{start:{x:6,y:-6,rotation:0,textAnchor:"start"},middle:{x:e/2-6,y:-6,rotation:0,textAnchor:"middle"},end:{x:e-6,y:-6,rotation:0,textAnchor:"end"}}),n},i1={width:o().number.isRequired,height:o().number.isRequired,orientation:o().oneOf([iJ,iQ,iK,i0]).isRequired,style:o().object,title:o().string.isRequired};function AxisTitle(e){var t=e.orientation,n=e.position,r=e.width,i=e.height,o=e.style,a=e.title,s=t===iJ?r:0,u=t===iK?i:0,l=transformation(r,i)[t][n],f=l.x,p=l.y,h=l.rotation,d=l.textAnchor;return c.createElement("g",{transform:"translate("+s+", "+u+")",className:"rv-xy-plot__axis__title"},c.createElement("g",{style:iZ({textAnchor:d},o),transform:"translate("+f+", "+p+") rotate("+h+")"},c.createElement("text",{style:o},a)))}AxisTitle.displayName="AxisTitle",AxisTitle.propTypes=i1,AxisTitle.defaultProps={position:"end"};var i2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i3=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),i5=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickSize","tickTotal","tickSizeInner","tickSizeOuter"],i6=tV.LEFT,i4=tV.RIGHT,i8=tV.TOP,i7=tV.BOTTOM,i9={orientation:o().oneOf([i6,i4,i8,i7]),attr:o().string.isRequired,attrAxis:o().string,width:o().number,height:o().number,top:o().number,left:o().number,title:o().string,style:o().object,className:o().string,hideTicks:o().bool,hideLine:o().bool,on0:o().bool,tickLabelAngle:o().number,tickSize:o().number,tickSizeInner:o().number,tickSizeOuter:o().number,tickPadding:o().number,tickValues:o().arrayOf(o().oneOfType([o().number,o().string])),tickFormat:o().func,tickTotal:o().number,marginTop:o().number,marginBottom:o().number,marginLeft:o().number,marginRight:o().number,innerWidth:o().number,innerHe
5ight:o().number},oe=function(e){function Axis(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,Axis),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(Axis.__proto__||Object.getPrototypeOf(Axis)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(Axis,e),i3(Axis,[{key:"_getDefaultAxisProps",value:function(){var e=this.props,t=e.innerWidth,n=e.innerHeight,r=e.marginTop,i=e.marginBottom,o=e.marginLeft,a=e.marginRight,s=e.orientation;return s===i7?{tickTotal:getTicksTotalFromSize(t),top:n+r,left:o,width:t,height:i}:s===i8?{tickTotal:getTicksTotalFromSize(t),top:0,left:o,width:t,height:r}:s===i6?{tickTotal:getTicksTotalFromSize(n),top:r,left:0,width:o,height:n}:{tickTotal:getTicksTotalFromSize(n),top:r,left:o+t,width:a,height:n}}},{key:"render",value:function(){var e=this.props.animation;if(e){var t=e.nonAnimatedProps?i5.filter(function(t){return 0>e.nonAnimatedProps.indexOf(t)}):i5;return c.createElement(C,i2({},this.props,{animatedProps:t}),c.createElement(Axis,i2({},this.props,{animation:null})))}var n=i2({},this._getDefaultAxisProps(),this.props),r=n.attrAxis,i=n.className,o=n.height,a=n.hideLine,s=n.hideTicks,u=n.left,l=n.marginTop,f=n.on0,p=n.orientation,h=n.position,d=n.style,y=n.title,g=n.top,m=n.width,b=[i6,i4].indexOf(p)>-1,v=u,_=g;if(f){var x=getAttributeScale(n,r);b?v=x(0):_=l+x(0)}return c.createElement("g",{transform:"translate("+v+","+_+")",className:"rv-xy-plot__axis "+(b?"rv-xy-plot__axis--vertical":"rv-xy-plot__axis--horizontal")+" "+i,style:d},!a&&c.createElement(AxisLine,{height:o,width:m,orientation:p,style:i2({},d,d.line)}),!s&&c.createElement(i$,i2({},n,{style:i2({},d,d.ticks)})),y?c.createElement(AxisTitle,{position:h,title:y,height:o,width:m,style:i2({},d,d.title),orientation:p}):null)}}]),Axis}(c.PureComponent);oe.displayName="Axis",oe.propTypes=i9,oe.defaultProps={className:"",on0:!1,style:{},tickSize:6,tickPadding:8,orientation:i7},oe.requiresSVG=!0;var ot=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},on=tV.TOP,or=tV.BOTTOM,oi=ot({},oe.propTypes,{orientation:o().oneOf([on,or])});function XAxis(e){return c.createElement(oe,e)}XAxis.displayName="XAxis",XAxis.propTypes=oi,XAxis.defaultProps={orientation:or,attr:"x",attrAxis:"y"},XAxis.requiresSVG=!0;var oo=XAxis,oa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},os=tV.LEFT,ou=tV.RIGHT,oc=oa({},oe.propTypes,{orientation:o().oneOf([os,ou])});function YAxis(e){return c.createElement(oe,e)}YAxis.displayName="YAxis",YAxis.propTypes=oc,YAxis.defaultProps={orientation:os,attr:"y",attrAxis:"x"},YAxis.requiresSVG=!0;var ol=YAxis,of={className:o().string,height:o().number,endColor:o().string,endTitle:o().oneOfType([o().number,o().string]).isRequired,midColor:o().string,midTitle:o().oneOfType([o().number,o().string]),startColor:o().string,startTitle:o().oneOfType([o().number,o().string]).isRequired,width:o().number},op={className:"",startColor:eG[0],endColor:eG[1]};function ContinuousColorLegend(e){var t=e.startColor,n=e.midColor,r=e.endColor,i=e.startTitle,o=e.midTitle,a=e.endTitle,s=e.height,u=e.width,l=e.className,f=[t];return n&&f.push(n),f.push(r),c.createElement("div",{className:"rv-continuous-color-legend "+l,style:{width:u,height:s}},c.createElement("div",{className:"rv-gradient",style:{background:"linear-gradient(to right, "+f.join(",")+")"}}),c.createElement("div",{className:"rv-legend-titles"},c.createElement("span",{className:"rv-legend-titles__left"},i),c.createElement("span",{className:"rv-legend-titles__right"},a),o?c.createElement("span",{className:"rv-legend-titles__center"},o):null))}ContinuousColorLegend.displayName="ContinuousColorLegend",ContinuousColorLegend.propTypes=of,ContinuousColorLegend.defaultProps=op;var oh={className:o().string,circlesTotal:o().number,endSize:o().number,endTitle:o().oneOfType([o().number,o().string]).isRequired,height:o().number,startSize:o().number,startTitle:o().oneOfType([o().number,o().string]).isRequired,width:o().number};function ContinuousSizeLegend(e){for(var t=e.startTitle,n=e.endTitle,r=e.startSize,i=e.endSize,o=e.circlesTotal,a=e.height,s=e.width,u=e.className,l=[],f=(i-r)/(o-1),p=0;p<o;p++){var h=f*p+r;l.push(c.createElement("div",{key:p,className:"rv-bubble",style:{width:h,height:h,borderRadius:h/2}})),l.push(" ")}return c.createElement("div",{className:"rv-continuous-size-legend "+u,style:{width:s,height:a}},c.createElement("div",{className:"rv-bubbles",style:{height:i}},l,c.createElement("div",{className:"rv-spacer"})),c.createElement("div",{className:"rv-legend-titles"},c.createElement("span",{className:"rv-legend-titles__left"},t),c.createElement("span",{className:"rv-legend-titles__right"},n)))}ContinuousSizeLegend.displayName="ContinuousSizeLegend",ContinuousSizeLegend.propTypes=oh,ContinuousSizeLegend.defaultProps={circlesTotal:10,className:"",endSize:20,startSize:2};var od=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oy={dashed:"6, 2",solid:null};function DiscreteColorLegendItem(e){var t=e.color,n=e.strokeDasharray,r=e.strokeStyle,i=e.strokeWidth,o=e.disabled,a=e.onClick,s=e.orientation,u=e.onMouseEnter,l=e.onMouseLeave,f=e.title,p="rv-discrete-color-legend-item "+s;o&&(p+=" disabled"),a&&(p+=" clickable");var h=oy[r]||n;return c.createElement("div",{className:p,onClick:a,onMouseEnter:u,onMouseLeave:l},c.createElement("svg",{className:"rv-discrete-color-legend-item__color",height:2,width:14},c.createElement("path",{className:"rv-discrete-color-legend-item__color__path",d:"M 0, 1 L 14, 1",style:od({},i?{strokeWidth:i}:{},h?{strokeDasharray:h}:{},{stroke:o?null:t})})),c.createElement("span",{className:"rv-discrete-color-legend-item__title"},f))}DiscreteColorLegendItem.propTypes={color:o().string.isRequired,disabled:o().bool,title:o().oneOfType([o().string,o().element]).isRequired,onClick:o().func,onMouseEnter:o().func,onMouseLeave:o().func,orientation:o().oneOf(["vertical","horizontal"]).isRequired,strokeDasharray:o().string,
5strokeWidth:o().number,strokeStyle:o().oneOf(Object.keys(oy))},DiscreteColorLegendItem.defaultProps={disabled:!1,strokeStyle:"solid"},DiscreteColorLegendItem.displayName="DiscreteColorLegendItem";var og=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function DiscreteColorLegend(e){var t=e.className,n=e.colors,r=e.height,i=e.items,o=e.onItemClick,a=e.onItemMouseEnter,s=e.onItemMouseLeave,u=e.orientation,l=e.style,f=e.width;return c.createElement("div",{className:"rv-discrete-color-legend "+u+" "+t,style:og({width:f,height:r},l)},i.map(function(e,t){return c.createElement(DiscreteColorLegendItem,{title:e.title?e.title:e,color:e.color?e.color:n[t%n.length],strokeDasharray:e.strokeDasharray,strokeStyle:e.strokeStyle,strokeWidth:e.strokeWidth,disabled:!!e.disabled,orientation:u,key:t,onClick:o?function(n){return o(e,t,n)}:null,onMouseEnter:a?function(n){return a(e,t,n)}:null,onMouseLeave:a?function(n){return s(e,t,n)}:null})}))}DiscreteColorLegend.displayName="DiscreteColorLegendItem",DiscreteColorLegend.propTypes={className:o().string,items:o().arrayOf(o().oneOfType([o().shape({title:o().oneOfType([o().string,o().element]).isRequired,color:o().string,disabled:o().bool}),o().string.isRequired,o().element])).isRequired,onItemClick:o().func,onItemMouseEnter:o().func,onItemMouseLeave:o().func,height:o().number,width:o().number,orientation:o().oneOf(["vertical","horizontal"])},DiscreteColorLegend.defaultProps={className:"",colors:eW,orientation:"vertical"};var om=(Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e})({},DiscreteColorLegend.propTypes,{searchText:o().string,onSearchChange:o().func,searchPlaceholder:o().string,searchFn:o().func});function SearchableDiscreteColorLegend(e){var t=e.className,n=e.colors,r=e.height,i=e.items,o=e.onItemClick,a=e.onSearchChange,s=e.orientation,u=e.searchFn,l=e.searchPlaceholder,f=e.searchText,p=e.width,h=u(i,f);return c.createElement("div",{className:"rv-search-wrapper "+t,style:{width:p,height:r}},c.createElement("form",{className:"rv-search-wrapper__form"},c.createElement("input",{type:"search",placeholder:l,className:"rv-search-wrapper__form__input",value:f,onChange:a?function(e){return a(e.target.value)}:null})),c.createElement("div",{className:"rv-search-wrapper__contents"},c.createElement(DiscreteColorLegend,{colors:n,items:h,onItemClick:o,orientation:s})))}SearchableDiscreteColorLegend.propTypes=om,SearchableDiscreteColorLegend.defaultProps={className:"",searchText:"",searchFn:function(e,t){return e.filter(function(e){return -1!==String(e.title||e).toLowerCase().indexOf(t)})}},SearchableDiscreteColorLegend.displayName="SearchableDiscreteColorLegend";var ob=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),ov=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function parallel_coordinates_possibleConstructorReturn(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var o_="rv-parallel-coordinates-chart",ox=t7(".2r"),oO=function(e){function ParallelCoordinates(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,ParallelCoordinates);for(var e,t,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n=parallel_coordinates_possibleConstructorReturn(this,(e=ParallelCoordinates.__proto__||Object.getPrototypeOf(ParallelCoordinates)).call.apply(e,[this].concat(i))),n.state={brushFilters:{}},parallel_coordinates_possibleConstructorReturn(n,t)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(ParallelCoordinates,e),ob(ParallelCoordinates,[{key:"render",value:function(){var e,t,n,r,i,o,a,s,u,l,f,p,h,d,y,g,m,b=this,v=this.state.brushFilters,_=this.props,x=_.animation,O=_.brushing,k=_.className,S=_.children,P=_.colorRange,T=_.data,M=_.domains,w=_.he
5ight,C=_.hideInnerMostValues,A=_.margin,E=_.onMouseLeave,R=_.onMouseEnter,j=_.showMarks,N=_.style,L=_.tickFormat,D=_.width,F=(t=(e={domains:M,animation:x,hideInnerMostValues:C,style:N,tickFormat:L}).animation,n=e.domains,r=e.style,i=e.tickFormat,n.map(function(e,n){var o=e.domain;return c.createElement(nZ,{animation:t,key:n+"-axis",axisStart:{x:e.name,y:0},axisEnd:{x:e.name,y:1},axisDomain:o,numberOfTicks:5,tickValue:function(t){return e.tickFormat?e.tickFormat(t):i(t)},style:r.axes})})),I=(a=(o={animation:x,brushFilters:v,colorRange:P,domains:M,data:T,showMarks:j,style:N}).animation,s=o.brushFilters,u=o.colorRange,l=o.domains,f=o.data,p=o.style,h=o.showMarks,d=l.reduce(function(e,t){var n=t.domain;return e[t.name]=linear_linear().domain(n).range([0,1]),e},{}),f.map(function(e,t){var n=!0,r=l.map(function(t,r){var i=t.getValue,o=t.name,a=d[o](i?i(e):e[o]),u=s[o];return u&&(a<u.min||a>u.max)&&(n=!1),{x:o,y:a}}),i=o_+"-line",o=i+" "+o_+"-line-unselected",f={animation:a,className:n?i:o,key:t+"-polygon",data:r,color:e.color||u[t%u.length],style:ov({},p.lines,e.style||{})};return n||(f.style=ov({},f.style,p.deselectedLineStyle)),h?c.createElement(rJ,f):c.createElement(rU,f)})),H=c.createElement(rB,{animation:!0,key:k,className:o_+"-label",data:(g=(y={domains:M,style:N.labels}).domains,m=y.style,g.map(function(e,t){return{x:e.name,y:1.1,label:e.name,style:m}}))}),B=getInnerDimensions(this.props,iM),V=B.marginLeft,z=B.marginRight;return c.createElement(iL,{height:w,width:D,margin:A,dontCheckIfEmpty:!0,className:k+" "+o_,onMouseLeave:E,onMouseEnter:R,xType:"ordinal",yDomain:[0,1]},S,F.concat(I).concat(H),O&&M.map(function(e){var trigger=function(t){var n,r,i;b.setState({brushFilters:ov({},v,(n={},r=e.name,i=t?{min:t.bottom,max:t.top}:null,r in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n))})};return c.createElement(ro,{key:e.name,drag:!0,highlightX:e.name,onBrushEnd:trigger,onDragEnd:trigger,highlightWidth:(D-V-z)/M.length,enableX:!1})}))}}]),ParallelCoordinates}(c.Component);oO.displayName="ParallelCoordinates",oO.propTypes={animation:M,brushing:o().bool,className:o().string,colorType:o().string,colorRange:o().arrayOf(o().string),data:o().arrayOf(o().object).isRequired,domains:o().arrayOf(o().shape({name:o().string.isRequired,domain:o().arrayOf(o().number).isRequired,tickFormat:o().func})).isRequired,height:o().number.isRequired,margin:iT,style:o().shape({axes:o().object,labels:o().object,lines:o().object}),showMarks:o().bool,tickFormat:o().func,width:o().number.isRequired},oO.defaultProps={className:"",colorType:"category",colorRange:eW,style:{axes:{line:{},ticks:{},text:{}},labels:{fontSize:10,textAnchor:"middle"},lines:{strokeWidth:1,strokeOpacity:1},deselectedLineStyle:{strokeOpacity:.1}},tickFormat:ox};var ok=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oS="rv-radar-chart",oP=t7(".2r");function getCoordinate(e){return 1e-12>=Math.abs(e)?e=0:e>0?1e-12>=Math.abs(e-.5)&&(e=.5):e<0&&1e-12>=Math.abs(e+.5)&&(e=-.5),e}function RadarChart(e){var t,n,r,i,o,a,s,u,l,f,p,h,d,y,g,m,b,v,_,x,O,k=e.animation,S=e.className,P=e.children,T=e.colorRange,M=e.data,w=e.domains,C=e.height,A=e.hideInnerMostValues,E=e.margin,R=e.onMouseLeave,j=e.onMouseEnter,N=e.startingAngle,L=e.style,D=e.tickFormat,F=e.width,I=e.renderAxesOverPolygons,H=e.onValueMouseOver,B=e.onValueMouseOut,V=e.onSeriesMouseOver,z=e.onSeriesMouseOut,q=(n=(t={domains:w,animation:k,hideInnerMostValues:A,startingAngle:N,style:L,tickFormat:D}).animation,r=t.domains,i=t.startingAngle,o=t.style,a=t.tickFormat,s=t.hideInnerMostValues,r.map(function(e,t){var u=t/r.length*Math.PI*2+i,l=e.domain;return c.createElement(nZ,{animation:n,key:t+"-axis",axisStart:{x:0,y:0},axisEnd:{x:getCoordinate(Math.cos(u)),y:getCoordinate(Math.sin(u))},axisDomain:l,numberOfTicks:5,tickValue:function(t){return s&&t===l[0]?"":e.tickFormat?e.tickFormat(t):a(t)},style:o.axes})})),U=(l=(u={animation:k,colorRange:T,domains:w,data:M,startingAngle:N,style:L,onSeriesM
5ouseOver:V,onSeriesMouseOut:z}).animation,f=u.colorRange,p=u.domains,h=u.data,d=u.style,y=u.startingAngle,g=u.onSeriesMouseOver,m=u.onSeriesMouseOut,b=p.reduce(function(e,t){var n=t.domain;return e[t.name]=linear_linear().domain(n).range([0,1]),e},{}),h.map(function(e,t){var n=p.map(function(t,n){var r=t.name,i=t.getValue,o=i?i(e):e[r],a=n/p.length*Math.PI*2+y,s=Math.max(b[r](o),0);return{x:s*Math.cos(a),y:s*Math.sin(a),name:e.name}});return c.createElement(r9,{animation:l,className:oS+"-polygon",key:t+"-polygon",data:n,style:ok({stroke:e.color||e.stroke||f[t%f.length],fill:e.color||e.fill||f[t%f.length]},d.polygons),onSeriesMouseOver:g,onSeriesMouseOut:m})})),W=function(e){var t=e.animation,n=e.domains,r=e.data,i=e.startingAngle,o=e.style,a=e.onValueMouseOver,s=e.onValueMouseOut;if(a){var u=n.reduce(function(e,t){var n=t.domain;return e[t.name]=linear_linear().domain(n).range([0,1]),e},{});return r.map(function(e,r){var l=n.map(function(t,r){var o=t.name,a=t.getValue,s=a?a(e):e[o],c=r/n.length*Math.PI*2+i,l=Math.max(u[o](s),0);return{x:l*Math.cos(c),y:l*Math.sin(c),domain:o,value:s,dataName:e.name}});return c.createElement(rG,{animation:t,className:oS+"-polygonPoint",key:r+"-polygonPoint",data:l,size:10,style:ok({},o.polygons,{fill:"transparent",stroke:"transparent"}),onValueMouseOver:a,onValueMouseOut:s})})}}({animation:k,colorRange:T,domains:w,data:M,startingAngle:N,style:L,onValueMouseOver:H,onValueMouseOut:B}),Y=c.createElement(rB,{animation:k,key:S,className:oS+"-label",data:(_=(v={domains:w,style:L.labels,startingAngle:N}).domains,x=v.startingAngle,O=v.style,_.map(function(e,t){var n=e.name,r=t/_.length*Math.PI*2+x;return{x:1.2*Math.cos(r),y:1.2*Math.sin(r),label:n,style:O}}))});return c.createElement(iL,{height:C,width:F,margin:E,dontCheckIfEmpty:!0,className:S+" "+oS,onMouseLeave:R,onMouseEnter:j,xDomain:[-1,1],yDomain:[-1,1]},P,!I&&q.concat(U).concat(Y).concat(W),I&&U.concat(Y).concat(q).concat(W))}RadarChart.displayName="RadarChart",RadarChart.propTypes={animation:M,className:o().string,colorType:o().string,colorRange:o().arrayOf(o().string),data:o().arrayOf(o().object).isRequired,domains:o().arrayOf(o().shape({name:o().string.isRequired,domain:o().arrayOf(o().number).isRequired,tickFormat:o().func})).isRequired,height:o().number.isRequired,hideInnerMostValues:o().bool,margin:iT,startingAngle:o().number,style:o().shape({axes:o().object,labels:o().object,polygons:o().object}),tickFormat:o().func,width:o().number.isRequired,renderAxesOverPolygons:o().bool,onValueMouseOver:o().func,onValueMouseOut:o().func,onSeriesMouseOver:o().func,onSeriesMouseOut:o().func},RadarChart.defaultProps={className:"",colorType:"category",colorRange:eW,hideInnerMostValues:!0,startingAngle:Math.PI/2,style:{axes:{line:{},ticks:{},text:{}},labels:{fontSize:10,textAnchor:"middle"},polygons:{strokeWidth:.5,strokeOpacity:1,fillOpacity:.1}},tickFormat:oP,renderAxesOverPolygons:!1};var oT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function RadialChart(e){var t,n,r,i=e.animation,o=e.className,a=e.children,s=e.colorType,u=e.data,l=e.getAngle,f=e.getLabel,p=e.getSubLabel,h=e.height,d=e.hideRootNode,y=e.innerRadius,g=e.labelsAboveChildren,m=e.labelsRadiusMultiplier,b=e.labelsStyle,v=e.margin,_=e.onMouseLeave,x=e.onMouseEnter,O=e.radius,k=e.showLabels,S=e.style,P=e.width,T=(n=(t={data:u,height:h,hideRootNode:d,width:P,getAngle:l}).data,r=t.getAngle,src_pie().sort(null).value(r)(n).reverse().map(function(e,t){return oT({},e.data,{angle0:e.startAngle,angle:e.endAngle,radius0:e.data.innerRadius||0,radius:e.data.radius||1,color:e.data.color||t})})),M=getRadialDomain(T),w=oT({colorType:s},e,{animation:i,radiusDomain:[0,M],data:T,radiusNoFallBack:!0,style:S,arcClassName:"rv-radial-chart__series--pie__slice"});O&&(w.radiusDomain=[0,1],w.radiusRange=[y||0,O],w.radiusType="linear");var C=O||Math.min(P,h)/2-15,A=getRadialLayoutMargin(P,h,C),E=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1.1,r=t.getLabel,i=t.getSubLabel;return e.reduce(function(e,t){var o=t.angle,a=t.angle0,s=t.radius,u=-1*((o+a)/2)+Math.PI/2,c=[];return r(t)&&c.push({angle:u,radius:s*n,label:r(t)}),i(t)&&c.push({angle:u,radius:s*n,label:i(t),style:{fontSize:10},yOffset:12}),e.concat(c)},[])}(T,{getLabel:f,getSubLabel:p},m);return c.createElement(iL,{height:h,width:P,margin:oT({},v,A),className:o+" rv-radial-chart",onMouseLeave:_,onMouseEnter:x,xDomain:[-M,M],yDomain:[-M,M]},c.createElement(ts,oT({},w,{getAngle:function(e){return e.angle}})),k&&!g&&c.createElement(rB,{data:E,style:b}),a,k&&g&&c.createElement(rB,{data:E,style:b}))}function targetDepth(e){return e.target.depth}function justify(e,t){return e.sourceLinks.length?e.depth:t-1}function constant_constant(e){return function(){return e}}function ascendingSourceBreadth(e,t){return ascendingBreadth(e.source,t.source)||e.index-t.index}function ascendingTargetBreadth(e,t){return ascendingBreadth(e.target,t.target)||e.index-t.index}function ascendingBreadth(e,t){return e.y0-t.y0}function sankey_value(e){return e.value}function nodeCenter(e){return(e.y0+e.y1)/2}function weightedSource(e){return nodeCenter(e.source)*e.value}function weightedTarget(e){return nodeCenter(e.target)*e.value}function defaultId(e){return e.index}
5function defaultNodes(e){return e.nodes}function defaultLinks(e){return e.links}function find(e,t){var n=e.get(t);if(!n)throw Error("missing: "+t);return n}function horizontalSource(e){return[e.source.x1,e.y0]}function horizontalTarget(e){return[e.target.x0,e.y1]}RadialChart.displayName="RadialChart",RadialChart.propTypes={animation:M,className:o().string,colorType:o().string,data:o().arrayOf(o().shape({angle:o().number,className:o().string,label:o().string,radius:o().number,style:o().object})).isRequired,getAngle:o().func,getAngle0:o().func,padAngle:o().oneOfType([o().func,o().number]),getRadius:o().func,getRadius0:o().func,getLabel:o().func,height:o().number.isRequired,labelsAboveChildren:o().bool,labelsStyle:o().object,margin:iT,onValueClick:o().func,onValueMouseOver:o().func,onValueMouseOut:o().func,showLabels:o().bool,style:o().object,subLabel:o().func,width:o().number.isRequired},RadialChart.defaultProps={className:"",colorType:"category",colorRange:eW,padAngle:0,getAngle:function(e){return e.angle},getAngle0:function(e){return e.angle0},getRadius:function(e){return e.radius},getRadius0:function(e){return e.radius0},getLabel:function(e){return e.label},getSubLabel:function(e){return e.subLabel}};var oM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ow=eW[1];function SankeyLink(e){var t=e.animation,n=e.data,r=e.node,i=e.opacity,o=e.color,a=e.strokeWidth,s=e.style,u=e.onLinkClick,l=e.onLinkMouseOver,f=e.onLinkMouseOut;return t?c.createElement(C,oM({},e,{animatedProps:eQ}),c.createElement(SankeyLink,oM({},e,{animation:null}))):c.createElement("path",oM({d:n},s,{className:"rv-sankey__link",opacity:Number.isFinite(i)?i:.7,stroke:o||ow,onClick:function(e){return u(r,e)},onMouseOver:function(e){return l(r,e)},onMouseOut:function(e){return f(r,e)},strokeWidth:a,fill:"none"}))}SankeyLink.displayName="SankeyLink",SankeyLink.requiresSVG=!0;var oC=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function sankey_toConsumableArray(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}var sankey_NOOP=function(e){return e},oA={justify:justify,center:function(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?min(e.sourceLinks,targetDepth)-1:0},left:function(e){return e.depth},right:function(e,t){return t-1-e.height}},oE={top:20,left:20,right:20,bottom:20};function Sankey(e){var t=e.align,n=e.animation,r=e.children,i=e.className,o=e.hasVoronoi,a=e.height,s=e.hideLabels,u=e.labelRotation,l=e.layout,f=e.links,p=e.linkOpacity,h=e.margin,d=e.nodePadding,y=e.nodes,g=e.nodeWidth,m=e.onValueClick,b=e.onValueMouseOver,v=e.onValueMouseOut,_=e.onLinkClick,x=e.onLinkMouseOver,O=e.onLinkMouseOut,k=e.style,S=e.width,P=[].concat(sankey_toConsumableArray(Array(y.length))).map(function(e,t){return oC({},y[t])}),T=[].concat(sankey_toConsumableArray(Array(f.length))).map(function(e,t){return oC({},f[t])}),M=getInnerDimensions({margin:h,height:a,width:S},oE),w=M.marginLeft,C=M.marginTop,A=M.marginRight,E=M.marginBottom,R=(function(){var e=0,t=0,n=1,r=1,i=24,o=8,a=defaultId,s=justify,u=defaultNodes,c=defaultLinks,l=32;function sankey(){var f={nodes:u.apply(null,arguments),links:c.apply(null,arguments)};return function(e){e.nodes.forEach(function(e,t){e.index=t,e.sourceLinks=[],e.targetLinks=[]});var t=map_map(e.nodes,a);e.links.forEach(function(e,n){e.index=n;var r=e.source,i=e.target;"object"!=typeof r&&(r=e.source=find(t,r)),"object"!=typeof i&&(i=e.target=find(t,i)),r.sourceLinks.push(e),i.targetLinks.push(e)})}(f),function(e){e.nodes.forEach(function(e){e.value=Math.max(sum(e.sourceLinks,sankey_value),sum(e.targetLinks,sankey_value))})}(f),function(t){for(r=t.nodes,o=[],a=0;r.length;++a,r=o,o=[])r.forEach(function(e){e.depth=a,e.sourceLinks.forEach(function(e){0>o.indexOf(e.target)&&o.push(e.target)})});for(r=t.nodes,o=[],a=0;r.length;++a,r=o,o=[])r.forEach(function(e){e.height=a,e.targetLinks.forEach(function(e){0>o.indexOf(e.source)&&o.push(e.source)})});var r,o,a,u=(n-e-i)/(a-1);
5t.nodes.forEach(function(t){t.x1=(t.x0=e+Math.max(0,Math.min(a-1,Math.floor(s.call(null,t,a))))*u)+i})}(f),function(e){var n,i=(function(){var e,t,n,r=[],i=[];function apply(n,i,o,a){if(i>=r.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var s,u,c,l=-1,f=n.length,p=r[i++],h=map_map(),d=o();++l<f;)(c=h.get(s=p(u=n[l])+""))?c.push(u):h.set(s,[u]);return h.each(function(e,t){a(d,t,apply(e,i,o,a))}),d}return n={object:function(e){return apply(e,0,createObject,setObject)},map:function(e){return apply(e,0,createMap,setMap)},entries:function(e){return function entries(e,n){if(++n>r.length)return e;var o,a=i[n-1];return null!=t&&n>=r.length?o=e.entries():(o=[],e.each(function(e,t){o.push({key:t,values:entries(e,n)})})),null!=a?o.sort(function(e,t){return a(e.key,t.key)}):o}(apply(e,0,createMap,setMap),0)},key:function(e){return r.push(e),n},sortKeys:function(e){return i[r.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}})().key(function(e){return e.x0}).sortKeys(src_ascending).entries(e.nodes).map(function(e){return e.values});n=min(i,function(e){return(r-t-(e.length-1)*o)/sum(e,sankey_value)}),i.forEach(function(e){e.forEach(function(e,t){e.y1=(e.y0=t)+e.value*n})}),e.links.forEach(function(e){e.width=e.value*n}),resolveCollisions();for(var a=1,s=l;s>0;--s)(function(e){i.slice().reverse().forEach(function(t){t.forEach(function(t){if(t.sourceLinks.length){var n=(sum(t.sourceLinks,weightedTarget)/sum(t.sourceLinks,sankey_value)-nodeCenter(t))*e;t.y0+=n,t.y1+=n}})})})(a*=.99),resolveCollisions(),function(e){i.forEach(function(t){t.forEach(function(t){if(t.targetLinks.length){var n=(sum(t.targetLinks,weightedSource)/sum(t.targetLinks,sankey_value)-nodeCenter(t))*e;t.y0+=n,t.y1+=n}})})}(a),resolveCollisions();function resolveCollisions(){i.forEach(function(e){var n,i,a,s=t,u=e.length;for(e.sort(ascendingBreadth),a=0;a<u;++a)(i=s-(n=e[a]).y0)>0&&(n.y0+=i,n.y1+=i),s=n.y1+o;if((i=s-o-r)>0)for(s=n.y0-=i,n.y1-=i,a=u-2;a>=0;--a)(i=(n=e[a]).y1+o-s)>0&&(n.y0-=i,n.y1-=i),s=n.y0})}}(f,l),computeLinkBreadths(f),f}function computeLinkBreadths(e){e.nodes.forEach(function(e){e.sourceLinks.sort(ascendingTargetBreadth),e.targetLinks.sort(ascendingSourceBreadth)}),e.nodes.forEach(function(e){var t=e.y0,n=t;e.sourceLinks.forEach(function(e){e.y0=t+e.width/2,t+=e.width}),e.targetLinks.forEach(function(e){e.y1=n+e.width/2,n+=e.width})})}return sankey.update=function(e){return computeLinkBreadths(e),e},sankey.nodeId=function(e){return arguments.length?(a="function"==typeof e?e:constant_constant(e),sankey):a},sankey.nodeAlign=function(e){return arguments.length?(s="function"==typeof e?e:constant_constant(e),sankey):s},sankey.nodeWidth=function(e){return arguments.length?(i=+e,sankey):i},sankey.nodePadding=function(e){return arguments.length?(o=+e,sankey):o},sankey.nodes=function(e){return arguments.length?(u="function"==typeof e?e:constant_constant(e),sankey):u},sankey.links=function(e){return arguments.length?(c="function"==typeof e?e:constant_constant(e),sankey):c},sankey.size=function(i){return arguments.length?(e=t=0,n=+i[0],r=+i[1],sankey):[n-e,r-t]},sankey.extent=function(i){return arguments.length?(e=+i[0][0],n=+i[1][0],t=+i[0][1],r=+i[1][1],sankey):[[e,t],[n,r]]},sankey.iterations=function(e){return arguments.length?(l=+e,sankey):l},sankey})().extent([[w,C],[S-A,a-E-C]]).nodeWidth(g).nodePadding(d).nodes(P).links(T).nodeAlign(oA[t]).iterations(l);R(P);var j=R.nodeWidth(),N=linkHorizontal().source(horizontalSource).target(horizontalTarget);return c.createElement(iL,oC({},e,{yType:"literal",className:"rv-sankey "+i}),T.map(function(e,t){return c.createElement(SankeyLink,{style:k.links,data:N(e),opacity:e.opacity||p,color:e.color,onLinkClick:_,onLinkMouseOver:x,onLinkMouseOut:O,strokeWidth:Math.max(e.width,1),node:e,nWidth:j,key:"link-"+t})}),c.createElement(iy,{animation:n,className:i+" rv-sankey__node",data:P.map(function(e){return oC({},e,{y:e.y1-C,y0:e.y0-C,x:e.x1,x0:e.x0,color:e.color||eW[0],sourceLinks:null,targetLinks:null})}),style:k.rects,onValueClick:m,onValueMouseOver:b,onValueMouseOut:v,colorType:"literal"}),!s&&c.createElement(rB,{animation:n,className:i,rotation:u,labelAnchorY:"text-before-edge",data:P.map(function(e,t){return oC({x:e.x0+(e.x0<S/2?j+10:-10),y:(e.y0+e.y1)/2-C,label:e.name,style:oC({textAnchor:e.x0<S/2?"start":"end",dy:"-.5em"},k.labels)},y[t])})}),o&&c.createElement(Voronoi,{className:"rv-sankey__voronoi",extent:[[-w,-C],[S+A,a+E]],nodes:P,onClick:m,onHover:b,onBlur:v,x:function(e){return e.x0+(e.x1-e.x0)/2},y:function(e){return e.y0+(e.y1-e.y0)/2}}),r)}function treemap_round(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function dice(e,t,n,r,i){for(var o,a=e.children,s=-1,u=a.length,c=e.value&&(r-t)/e.value;++s<u;)(o=a[s]).y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*c}function partition(){var e=1,t=1,n=0,r=!1;function partition(i){var o,a=i.height+1;return i.x0=i.y0=n,i.x1=e,i.y1=t/a,i.eachBefore((o=t,function(e){e.children&&dice(e,e.x0,o*(e.depth+1)/a,e.x1,o*(e.depth+2)/a);var t=e.x0,r=e.y0,i=e.x1-n,s=e.y1-n;i<t&&(t=i=(t+i)/2),s<r&&(r=s=(r+s)/2),e.x0=t,e.y0=r,e.x1=i,e.y1=s})),r&&i.eachBefore(treemap_round),i}return partition.round=function(e){return arguments.length?(r=!!e,partition):r},partition.size=function(n){return arguments.length?(e=+n[0],t=+n[1],partition):[e,t]},partition.padding=function(e){return arguments.length?(n=+e,partition):n},partition}function count(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function hierarchy(e,t){var n,r,i,o,a,s=new Node(e),u=+e.value&&(s.value=e.value),c=[s];for(null==t&&(t=defaultChildren);n=c.pop();)if(u&&(n.value=+n.data.value),(i=t(n.data))&&(a=i.length))for(n.children=Array(a),o=a-1;o>=0;--o)c.push(r=n.children[o]=new Node(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(computeHeight)}function defaultChildren(e){return e.children}function copyData(e){e.data=e.data.data}function computeHeight(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Node(e){this.data=e,this.depth=this.height=0,this.parent=null}Sankey.defaultProps={align:"justify",className:"",hasVoronoi:!1,hideLabels:!1,labelRotation:0,layout:50,margin:oE,nodePadding:10,nodeWidth:10,onValueMouseOver:sankey_NOOP,onValueClick:sankey_NOOP,onValueMouseOut:sankey_NOOP,onLinkClick:sankey_NOOP,onLinkMouseOver:sankey_NOOP,onLinkMouseOut:sankey_NOOP,style:{links:{},rects:{},labels:{}}},Sankey.propTypes={align:o().oneOf(["justify","left","right","center"]),className:o().string,hasVoronoi:o().bool,height:o().number.isRequired,hideLabels:o().bool,labelRotation:o().number,layout:o().number,links:o().arrayOf(o().shape({source:o().oneOfType([o().number,o().object]).isRequired,target:o().oneOfType([o().number,o().object]).isRequired})).isRequired,margin:iT,nodePadding:o().number,nodes:o().arrayOf(o().object).isRequired,nodeWidth:o().number,onValueMouseOver:o().func,onValueClick:o().func,onValueMouseOut:o().func,onLinkClick:o().func,onLinkMouseOver:o().func,onLinkMouseOut:o().func,style:o().shape({links:o().object,rects:o().object,labels:o().object}),width:o().number.isRequired},Node.prototype=hierarchy.prototype={constructor:Node,count:function(){return this.eachAfter(count)},each:function(e){var t,n,r,i,o=this,a=[o];do for(t=a.reverse(),a=[];o=t.pop();)if(e(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);while(a.length);return this},eachAfter:function(e){for(var t,n,r,i=this,o=[i],a=[];i=o.pop();)if(a.push(i),t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n]);for(;i=a.pop();)e(i);return this},eachBefore:function(e){for(var t,n,r=this,i=[r];r=i.pop();)if(e(r),t=r.children)for(n=t.length-1;n>=0;--n)i.push(t[n]);return this},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)r.push(t=t.parent);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each(function(t){e.push(t)}),e},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return hierarchy(this).eachBefore(copyData)}};var oR=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oj="rv-sunburst",oN=["onValueMouseOver","onValueMouseOut","onValueClick","onValueRightClick","onSeriesM
5ouseOver","onSeriesMouseOut","onSeriesClick","onSeriesRightClick"],sunburst_NOOP=function(){};function Sunburst(e){var t,n,r,i,o,a,s,u,l,f,p,h,d,y,g,m,b=e.getAngle,v=e.getAngle0,_=e.animation,x=e.className,O=e.children,k=e.data,S=e.height,P=e.hideRootNode,T=e.getLabel,M=e.width,w=e.getSize,C=e.colorType,A=(n=(t={data:k,height:S,hideRootNode:P,width:M,getSize:w}).data,r=t.height,i=t.hideRootNode,o=t.width,a=t.getSize,s=partition(),u=hierarchy(n).sum(a),l=Math.min(o,r)/2-10,f=linear_linear().range([0,2*Math.PI]),p=(function pow(){var e=1,t=continuous(function(t,n){return(n=raise(n,e)-(t=raise(t,e)))?function(r){return(raise(r,e)-t)/n}:d3_scale_src_constant(n)},function(t,n){return n=raise(n,e)-(t=raise(t,e)),function(r){return raise(t+n*r,1/e)}}),n=t.domain;return t.exponent=function(t){return arguments.length?(e=+t,n(n())):e},t.copy=function(){return copy(t,pow().exponent(e))},linear_linearish(t)})().exponent(.5).range([0,l]),s(u).descendants().reduce(function(e,t,n){return i&&0===n?e:e.concat([oR({angle0:Math.max(0,Math.min(2*Math.PI,f(t.x0))),angle:Math.max(0,Math.min(2*Math.PI,f(t.x1))),radius0:Math.max(0,p(t.y0)),radius:Math.max(0,p(t.y1)),depth:t.depth,parent:t.parent},t.data)])},[])),E=getRadialDomain(A),R=getRadialLayoutMargin(M,S,E),j=(d=(h={getAngle:b,getAngle0:v,getLabel:T,getRadius0:function(e){return e.radius0}}).getAngle,y=h.getAngle0,g=h.getLabel,m=h.getRadius0,A.filter(g).map(function(e){var t=-1*d(e)+Math.PI/2,n=(-1*y(e)+Math.PI/2+t)/2,r=!e.dontRotateLabel,i=-n/(2*Math.PI)*360;return oR({},e,{children:null,angle:null,radius:null,x:m(e)*Math.cos(n),y:m(e)*Math.sin(n),style:oR({textAnchor:i>90?"end":"start"},e.labelStyle),rotation:r?i>90?i+180:90===i?90:i:null})}));return c.createElement(iL,{height:S,hasTreeStructure:!0,width:M,className:oj+" "+x,margin:R,xDomain:[-E,E],yDomain:[-E,E]},c.createElement(ts,oR({colorType:C},e,{animation:_,radiusDomain:[0,E],data:_?A.map(function(e,t){return oR({},e,{parent:null,children:null,index:t})}):A,_data:_?A:null,arcClassName:oj+"__series--radial__arc"},oN.reduce(function(t,n){var r=e[n];return t[n]=_?function(e,t){return r?r(A[e.index],t):sunburst_NOOP}:r,t},{}))),j.length>0&&c.createElement(rB,{data:j,getLabel:T}),O)}function treemap_slice(e,t,n,r,i){for(var o,a=e.children,s=-1,u=a.length,c=e.value&&(i-n)/e.value;++s<u;)(o=a[s]).x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*c}Sunburst.displayName="Sunburst",Sunburst.propTypes={animation:M,getAngle:o().func,getAngle0:o().func,className:o().string,colorType:o().string,data:o().object.isRequired,height:o().number.isRequired,hideRootNode:o().bool,getLabel:o().func,onValueClick:o().func,onValueMouseOver:o().func,onValueMouseOut:o().func,getSize:o().func,width:o().number.isRequired,padAngle:o().oneOfType([o().func,o().number])},Sunburst.defaultProps={getAngle:function(e){return e.angle},getAngle0:function(e){return e.angle0},className:"",colorType:"literal",getColor:function(e){return e.color},hideRootNode:!1,getLabel:function(e){return e.label},getSize:function(e){return e.size},padAngle:0};var oL=(1+Math.sqrt(5))/2;function squarifyRatio(e,t,n,r,i,o){for(var a,s,u,c,l,f,p,h,d,y,g,m=[],b=t.children,v=0,_=0,x=b.length,O=t.value;v<x;){u=i-n,c=o-r;do l=b[_++].value;while(!l&&_<x);for(f=p=l,d=Math.max(p/(g=l*l*(y=Math.max(c/u,u/c)/(O*e))),g/f);_<x;++_){if(l+=s=b[_].value,s<f&&(f=s),s>p&&(p=s),(h=Math.max(p/(g=l*l*y),g/f))>d){l-=s;break}d=h}m.push(a={value:l,dice:u<c,children:b.slice(v,_)}),a.dice?dice(a,n,r,i,O?r+=c*l/O:o):treemap_slice(a,n,r,O?n+=u*l/O:i,o),O-=l,v=_}return m}var oD=function custom(e){function squarify(t,n,r,i,o){squarifyRatio(e,t,n,r,i,o)}return squarify.ratio=function(e){return custom((e=+e)>1?e:1)},squarify}(oL),oF=function custom(e){function resquarify(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,s,u,c,l,f=-1,p=a.length,h=t.value;++f<p;){for(u=(s=a[f]).children,c=s.value=0,l=u.length;c<l;++c)s.value+=u[c].value;s.dice?dice(s,n,r,i,r+=(o-r)*s.value/h):treemap_slice(s,n,r,n+=(i-n)*s.value/h,o),h-=s.value}else t._squarify=a=squarifyRatio(e,t,n,r,i,o),a.ratio=e}return resquarify.ratio=function(e){return custom((e=+e)>1?e:1)},resquarify}(oL),oI=Array.prototype.slice;function enclosesNot(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function enclosesWeak(e,t){var n=e.r-t.r+1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function enclosesWeakAll(e,t){for(var n=0;n<t.length;++n)if(!enclosesWeak(e,t[n]))return!1;return!0}function encloseBasis2(e,t){var n=e.x,r=e.y,i=e.r,o=t.x,a=t.y,s=t.r,u=o-n,c=a-r,l=s-i,f=Math.sqrt(u*u+c*c);return{x:(n+o+u/f*l)/2,y:(r+a+c/f*l)/2,r:(f+i+s)/2}}function encloseBasis3(e,t,n){var r=e.x,i=e.y,o=e.r,a=t.x,s=t.y,u=t.r,c=n.x,l=n.y,f=n.r,p=r-a,h=r-c,d=i-s,y=i-l,g=u-o,m=f-o,b=r*r+i*i-o*o,v=b-a*a-s*s+u*u,_=b-c*c-l*l+f*f,x=h*d-p*y,O=(d*_-y*v)/(2*x)-r,k=(y*g-d*m)/x,S=(h*v-p*_)/(2*x)-i,P=(p*m-h*g)/x,T=k*k+P*P-1,M=2*(o+O*k+S*P),w=O*O+S*S-o*o,C=-(T?(M+Math.sqrt(M*M-4*T*w))/(2*T):w/M);return{x:r+O+k*C,y:i+S+P*C,r:C}}function place(e,t,n){var r,i,o,a,s=e.x-t.x,u=e.y-t.y,c=s*s+u*u;c?(i=t.r+n.r,i*=i,a=e.r+n.r,i>(a*=a)?(r=(c+a-i)/(2*c),o=Math.sqrt(Math.max(0,a/c-r*r)),n.x=e.x-r*s-o*u,n.y=e.y-r*u+o*s):(r=(c+i-a)/(2*c),o=Math.sqrt(Math.max(0,i/c-r*r)),n.x=t.x+r*s-o*u,n.y=t.y+r*u+o*s)):(n.x=t.x+n.r,n.y=t.y)}function intersects(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function score(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function siblings_Node(e){this._=e,this.next=null,this.previous=null}function required(e){if("function"!=typeof e)throw Error();return e}function constantZero(){return 0}function d3_hierarchy_src_constant(e){return function(){return e}}function defaultRadius(e){return Math.sqrt(e.value)}function radiusLeaf(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function packChildren(e,t){return function(n){if(r=n.children){var r,i,o,a=r.length,s=e(n)*t||0;if(s)for(i=0;i<a;++i)r[i].r+=s;if(o=function(e){var t,n,r,i,o,a,s,u,c,l,f;if(!(i=e.length))return 0;if((t=e[0]).x=0,t.y=0,!(i>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(i>2))return t.r+n.r;place(n,t,r=e[2]),t=new siblings_Node(t),n=new siblings_Node(n),r=new siblings_Node(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;t:for(s=3;s<i;
5++s){place(t._,n._,r=e[s]),r=new siblings_Node(r),u=n.next,c=t.previous,l=n._.r,f=t._.r;do if(l<=f){if(intersects(u._,r._)){n=u,t.next=n,n.previous=t,--s;continue t}l+=u._.r,u=u.next}else{if(intersects(c._,r._)){(t=c).next=n,n.previous=t,--s;continue t}f+=c._.r,c=c.previous}while(u!==c.next);for(r.previous=t,r.next=n,t.next=n.previous=n=r,o=score(t);(r=r.next)!==n;)(a=score(r))<o&&(t=r,o=a);n=t.next}for(t=[n._],r=n;(r=r.next)!==n;)t.push(r._);for(s=0,r=function(e){for(var t,n,r=0,i=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}(oI.call(e))).length,o=[];r<i;)t=e[r],n&&enclosesWeak(n,t)?++r:(n=function(e){switch(e.length){case 1:var t;return{x:(t=e[0]).x,y:t.y,r:t.r};case 2:return encloseBasis2(e[0],e[1]);case 3:return encloseBasis3(e[0],e[1],e[2])}}(o=function(e,t){var n,r;if(enclosesWeakAll(t,e))return[t];for(n=0;n<e.length;++n)if(enclosesNot(t,e[n])&&enclosesWeakAll(encloseBasis2(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(enclosesNot(encloseBasis2(e[n],e[r]),t)&&enclosesNot(encloseBasis2(e[n],t),e[r])&&enclosesNot(encloseBasis2(e[r],t),e[n])&&enclosesWeakAll(encloseBasis3(e[n],e[r],t),e))return[e[n],e[r],t];throw Error()}(o,t)),r=0);return n}(t);s<i;++s)t=e[s],t.x-=r.x,t.y-=r.y;return r.r}(r),s)for(i=0;i<a;++i)r[i].r-=s;n.r=o+s}}}function translateChild(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}var oH=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oB=["colorRange","colorDomain","color","opacityRange","opacityDomain","opacity","x0","x1","y0","y1","r"];function TreemapLeaf(e){var t=e.animation,n=e.getLabel,r=e.mode,i=e.node,o=e.onLeafClick,a=e.onLeafMouseOver,s=e.onLeafMouseOut,u=e.r,l=e.scales,f=e.x0,p=e.x1,h=e.y0,d=e.y1,y=e.style;if(t)return c.createElement(C,oH({},e,{animatedProps:oB}),c.createElement(TreemapLeaf,oH({},e,{animation:null})));var g="circlePack"===r,m=l.color(i),b=l.opacity(i),v=m?hsl(m).l>.57?"#222":"#fff":null,_=n(i.data),x=oH({top:g?h-u:h,left:g?f-u:f,width:g?2*u:p-f,height:g?2*u:d-h,background:m,opacity:b,color:v},y,i.data.style);return c.createElement("div",{className:"rv-treemap__leaf "+(g?"rv-treemap__leaf--circle":""),onMouseEnter:function(e){return a(i,e)},onMouseLeave:function(e){return s(i,e)},onClick:function(e){return o(i,e)},style:x},c.createElement("div",{className:"rv-treemap__leaf__content"},_))}TreemapLeaf.propTypes={animation:M,height:o().number.isRequired,mode:o().string,node:o().object.isRequired,onLeafClick:o().func,onLeafMouseOver:o().func,onLeafMouseOut:o().func,scales:o().object.isRequired,width:o().number.isRequired,r:o().number.isRequired,x0:o().number.isRequired,x1:o().number.isRequired,y0:o().number.isRequired,y1:o().number.isRequired};var oV=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function TreemapDOM(e){var t=e.animation,n=e.className,r=e.height,i=e.hideRootNode,o=e.getLabel,a=e.mode,s=e.nodes,u=e.width,l=e.scales,f=e.style,p="circlePack"===a;return c.createElement("div",{className:"rv-treemap "+(p?"rv-treemap-circle-packed":"")+" "+n,style:{height:r,width:u}},s.map(function(n,r){if(i&&!r)return null;var a=oV({animation:t,node:n,getLabel:o},e,{x0:p?n.x:n.x0,x1:p?n.x:n.x1,y0:p?n.y:n.y0,y1:p?n.y:n.y1,r:p?n.r:1,scales:l,style:f});return c.createElement(TreemapLeaf,oV({},a,{key:"leaf-"+r}))}))}TreemapDOM.displayName="TreemapDOM";var oz=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oq=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),oU=function(e){function TreemapSVG(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,TreemapSVG),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(TreemapSVG.__proto__||Object.getPrototypeOf(TreemapSVG)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(TreemapSVG,e),oq(TreemapSVG,[{key:"getCircularNodes",value:function(){var e=this.props,t=e.animation,n=e.hideRootNode,r=e.nodes,i=e.onLeafMouseOver,o=e.onLeafMouseOut,a=e.onLeafClick,s=e.scales,u=e.style,l=r.reduce(function(e,t,r){if(!r&&n)return e;var i=t.x,o=t.y,a=t.r;return{maxY:Math.max(o+a,e.maxY),minY:Math.min(o-a,e.minY),maxX:Math.max(i+1.2*a,e.maxX),minX:Math.min(i-1.2*a,e.minX),rows:e.rows.concat([{x:i,y:o,size:a,c
5olor:s.color(t)}])}},{rows:[],maxY:-1/0,minY:1/0,maxX:-1/0,minX:1/0}),f=l.rows,p=l.minY,h=l.maxY,d=l.minX,y=l.maxX;return{updatedNodes:c.createElement(rG,{animation:t,className:"rv-treemap__leaf rv-treemap__leaf--circle",onSeriesMouseEnter:i,onSeriesMouseLeave:o,onSeriesClick:a,data:f,colorType:"literal",getColor:function(e){return e.color},sizeType:"literal",getSize:function(e){return e.size},style:u}),minY:p,maxY:h,minX:d,maxX:y}}},{key:"getNonCircularNodes",value:function(){var e=this.props,t=e.animation,n=e.hideRootNode,r=e.nodes,i=e.onLeafMouseOver,o=e.onLeafMouseOut,a=e.onLeafClick,s=e.scales,u=e.style,l=s.color;return r.reduce(function(e,r,s){if(!s&&n)return e;var f=r.x0,p=r.x1,h=r.y1,d=r.y0,y=h-d,g=p-f;e.maxY=Math.max(d+y,e.maxY),e.minY=Math.min(d,e.minY),e.maxX=Math.max(f+g,e.maxX),e.minX=Math.min(f,e.minX);var m=[{x:f,y:d},{x:f,y:d+y},{x:f+g,y:d+y},{x:f+g,y:d}];return e.updatedNodes=e.updatedNodes.concat([c.createElement(r9,{animation:t,className:"rv-treemap__leaf",key:s,color:l(r),type:"literal",onSeriesMouseEnter:i,onSeriesMouseLeave:o,onSeriesClick:a,data:m,style:oz({},u,r.style)})]),e},{updatedNodes:[],maxY:-1/0,minY:1/0,maxX:-1/0,minX:1/0})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.height,r=e.mode,i=e.nodes,o=e.width,a="circlePack"===r,s=a?this.getCircularNodes():this.getNonCircularNodes(),u=s.minY,l=s.maxY,f=s.minX,p=s.maxX,h=s.updatedNodes,d=i.reduce(function(e,t){return t.data.title?e.concat(oz({},t.data,{x:t.x0||t.x,y:t.y0||t.y,label:""+t.data.title})):e},[]);return c.createElement(iL,oz({className:"rv-treemap "+(a?"rv-treemap-circle-packed":"")+" "+t,width:o,height:n,yDomain:[l,u],xDomain:[f,p],colorType:"literal",hasTreeStructure:!0},this.props),h,c.createElement(rB,{data:d}))}}]),TreemapSVG}(c.Component);oU.displayName="TreemapSVG";var oW=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),oY=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oG={squarify:oD,resquarify:oF,slice:treemap_slice,dice:dice,slicedice:function(e,t,n,r,i){(1&e.depth?treemap_slice:dice)(e,t,n,r,i)},binary:function(e,t,n,r,i){var o,a,s=e.children,u=s.length,c=Array(u+1);for(c[0]=a=o=0;o<u;++o)c[o+1]=a+=s[o].value;!function partition(e,t,n,r,i,o,a){if(e>=t-1){var u=s[e];u.x0=r,u.y0=i,u.x1=o,u.y1=a;return}for(var l=c[e],f=n/2+l,p=e+1,h=t-1;p<h;){var d=p+h>>>1;c[d]<f?p=d+1:h=d}f-c[p-1]<c[p]-f&&e+1<p&&--p;var y=c[p]-l,g=n-y;if(o-r>a-i){var m=(r*g+o*y)/n;partition(e,p,y,r,i,m,a),partition(p,t,g,m,i,o,a)}else{var b=(i*g+a*y)/n;partition(e,p,y,r,i,o,b),partition(p,t,g,r,b,o,a)}}(0,u,e.value,t,n,r,i)}},treemap_NOOP=function(e){return e},oX=["opacity","color"];function _getScaleFns(e){var t=e.data.children||[],n=oY({},e,getMissingScaleProps(e,t,oX),{_allData:t});return{opacity:getAttributeFunctor(n,"opacity"),color:getAttributeFunctor(n,"color")}}var o$=function(e){function Treemap(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,Treemap);var t=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(Treemap.__proto__||Object.getPrototypeOf(Treemap)).call(this,e));return t.state=oY({scales:_getScaleFns(e)},getInnerDimensions(e,e.margin)),t}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(Treemap,e),oW(Treemap,[{key:"componentWillReceiveProps",value:function(e){this.setState(oY({scales:_getScaleFns(e)},getInnerDimensions(e,e.margin)))}},{key:"_getNodesToRender",value:function(){var e=this.state,t=e.innerWidth,n=e.innerHe
5ight,r=this.props,i=r.data,o=r.mode,a=r.padding,s=r.sortFunction,u=r.getSize;if(!i)return[];if("partition"===o||"partition-pivot"===o){var c=partition().size("partition-pivot"===o?[n,t]:[t,n]).padding(a)(hierarchy(i).sum(u).sort(function(e,t){return s(e,t,u)})).descendants();return"partition-pivot"===o?c.map(function(e){return oY({},e,{x0:e.y0,x1:e.y1,y0:e.x0,y1:e.x1})}):c}if("circlePack"===o)return(function(){var e=null,t=1,n=1,r=constantZero;function pack(i){return i.x=t/2,i.y=n/2,e?i.eachBefore(radiusLeaf(e)).eachAfter(packChildren(r,.5)).eachBefore(translateChild(1)):i.eachBefore(radiusLeaf(defaultRadius)).eachAfter(packChildren(constantZero,1)).eachAfter(packChildren(r,i.r/Math.min(t,n))).eachBefore(translateChild(Math.min(t,n)/(2*i.r))),i}return pack.radius=function(t){return arguments.length?(e=null==t?null:required(t),pack):e},pack.size=function(e){return arguments.length?(t=+e[0],n=+e[1],pack):[t,n]},pack.padding=function(e){return arguments.length?(r="function"==typeof e?e:d3_hierarchy_src_constant(+e),pack):r},pack})().size([t,n]).padding(a)(hierarchy(i).sum(u).sort(function(e,t){return s(e,t,u)})).descendants();var l=oG[o];return(function(){var e=oD,t=!1,n=1,r=1,i=[0],o=constantZero,a=constantZero,s=constantZero,u=constantZero,c=constantZero;function treemap(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(positionNode),i=[0],t&&e.eachBefore(treemap_round),e}function positionNode(t){var n=i[t.depth],r=t.x0+n,l=t.y0+n,f=t.x1-n,p=t.y1-n;f<r&&(r=f=(r+f)/2),p<l&&(l=p=(l+p)/2),t.x0=r,t.y0=l,t.x1=f,t.y1=p,t.children&&(n=i[t.depth+1]=o(t)/2,r+=c(t)-n,l+=a(t)-n,f-=s(t)-n,p-=u(t)-n,f<r&&(r=f=(r+f)/2),p<l&&(l=p=(l+p)/2),e(t,r,l,f,p))}return treemap.round=function(e){return arguments.length?(t=!!e,treemap):t},treemap.size=function(e){return arguments.length?(n=+e[0],r=+e[1],treemap):[n,r]},treemap.tile=function(t){return arguments.length?(e=required(t),treemap):e},treemap.padding=function(e){return arguments.length?treemap.paddingInner(e).paddingOuter(e):treemap.paddingInner()},treemap.paddingInner=function(e){return arguments.length?(o="function"==typeof e?e:d3_hierarchy_src_constant(+e),treemap):o},treemap.paddingOuter=function(e){return arguments.length?treemap.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):treemap.paddingTop()},treemap.paddingTop=function(e){return arguments.length?(a="function"==typeof e?e:d3_hierarchy_src_constant(+e),treemap):a},treemap.paddingRight=function(e){return arguments.length?(s="function"==typeof e?e:d3_hierarchy_src_constant(+e),treemap):s},treemap.paddingBottom=function(e){return arguments.length?(u="function"==typeof e?e:d3_hierarchy_src_constant(+e),treemap):u},treemap.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:d3_hierarchy_src_constant(+e),treemap):c},treemap})(l).tile(l).size([t,n]).padding(a)(hierarchy(i).sum(u).sort(function(e,t){return s(e,t,u)})).descendants()}},{key:"render",value:function(){var e=this.props.renderMode,t=this.state.scales,n=this._getNodesToRender(),r="SVG"===e?oU:TreemapDOM;return c.createElement(r,oY({},this.props,{nodes:n,scales:t}))}}]),Treemap}(c.Component);o$.displayName="Treemap",o$.propTypes={animation:M,className:o().string,data:o().object.isRequired,height:o().number.isRequired,hideRootNode:o().bool,margin:iT,mode:o().oneOf(Object.keys(oG).concat(["circlePack","partition","partition-pivot"])),onLeafClick:o().func,onLeafMouseOver:o().func,onLeafMouseOut:o().func,useCirclePacking:o().bool,padding:o().number.isRequired,sortFunction:o().func,width:o().number.isRequired,getSize:o().func,getColor:o().func},o$.defaultProps={className:"",colorRange:eG,_colorValue:eZ,data:{children:[]},hideRootNode:!1,margin:{left:40,right:10,top:10,bottom:40},mode:"squarify",onLeafClick:treemap_NOOP,onLeafMouseOver:treemap_NOOP,onLeafMouseOut:treemap_NOOP,opacityType:e$,_opacityValue:1,padding:1,sortFunction:function(e,t,n){return n?n(e)-n(t):0},getSize:function(e){return e.size},getColor:function(e){return e.color},getLabel:function(e){return e.title}};var oZ=n(58908),oJ=n.n(oZ),oQ=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oK=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),o0="container",o1=[],o2=null;function debounceEmitResize(){oJ().clearTimeout(o2),o2=oJ().setTimeout(emitResize,100)}function emitResize(){o1.forEach(function(e){return e()})}function makeFlexible(e,t,n){var r=function(r){function ResultClass(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,ResultClass);var t=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(ResultClass.__proto__||Object.getPrototypeOf(ResultClass)).call(this,e));return t._onResize=function(){var e,n=(e=t[o0],eA?e:e&&e.getDOMNode()),r=n.offsetHeight,i=n.offsetWidth,o=t.state.height===r?{}:{height:r},a=t.state.width===i?{}:{width:i};t.setState(oQ({},o,a))},t.state={height:0,width:0},t}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(ResultClass,r),oK(ResultClass,null,[{key:"propTypes",get:function(){var t=e.propT
5ypes;return t.height,t.width,function(e,t){var n={};for(var r in e)!(t.indexOf(r)>=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["height","width"])}}]),oK(ResultClass,[{key:"componentDidMount",value:function(){var e;this._onResize(),this.cancelSubscription=(e=this._onResize,o1.push(e),1===o1.length&&oJ().addEventListener("resize",debounceEmitResize),function(){var t;(t=o1.indexOf(e))>-1&&o1.splice(t,1),0===o1.length&&(oJ().clearTimeout(o2),oJ().removeEventListener("resize",debounceEmitResize))})}},{key:"componentWillReceiveProps",value:function(){this._onResize()}},{key:"componentWillUnmount",value:function(){this.cancelSubscription()}},{key:"render",value:function(){var r=this,i=this.state,o=i.height,a=i.width,s=oQ({},this.props,{animation:0===o&&0===a?null:this.props.animation}),u=oQ({},n?{height:o}:{},t?{width:a}:{});return c.createElement("div",{ref:function(e){return r[o0]=e},style:{width:"100%",height:"100%"}},c.createElement(e,oQ({},u,s)))}}]),ResultClass}(c.Component);return r.displayName="Flexible"+(e.displayName||e.name||"Component"),r}function makeWidthFlexible(e){return makeFlexible(e,!0,!1)}makeWidthFlexible(iL),makeFlexible(iL,!1,!0),makeFlexible(iL,!0,!0)},61572:function(e,t,n){"use strict";var r=n(16779);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,t,n,i,o,a){if(a!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},71791:function(e,t,n){e.exports=n(61572)()},16779:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},53697:function(e){"use strict";var t=Object,n=TypeError;e.exports=function(){if(this!=null&&this!==t(this))throw new n("RegExp.prototype.flags getter called on non-object");var e="";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e}},2847:function(e,t,n){"use strict";var r=n(4289),i=n(55559),o=n(53697),a=n(71721),s=n(32753),u=i(o);r(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},71721:function(e,t,n){"use strict";var r=n(53697),i=n(4289).supportsDescriptors,o=Object.getOwnPropertyDescriptor,a=TypeError;e.exports=function(){if(!i)throw new a("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if("gim"===/a/mig.flags){var e=o(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof/a/.dotAll)return e.get}return r}},32753:function(e,t,n){"use strict";var r=n(4289).supportsDescriptors,i=n(71721),o=Object.getOwnPropertyDescriptor,a=Object.defineProperty,s=TypeError,u=Object.getPrototypeOf,c=/a/;e.exports=function(){if(!r||!u)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=i(),t=u(c),n=o(t,"flags");return n&&n.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.