!function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(r,a,function(e){return t[e]}.bind(null,a));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=13)}([function(t,e,n){t.exports=n(19)()},function(t,e){t.exports=React},function(t,e,n){var r;
/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var i=typeof r;if("string"===i||"number"===i)t.push(r);else if(Array.isArray(r)&&r.length){var o=a.apply(null,r);o&&t.push(o)}else if("object"===i)for(var g in r)n.call(r,g)&&r[g]&&t.push(g)}}return t.join(" ")}void 0!==t&&t.exports?(a.default=a,t.exports=a):void 0===(r=function(){return a}.apply(e,[]))||(t.exports=r)}()},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var a=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(r),i=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[n].concat(i).concat([a]).join("\n")}return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},a=0;a<this.length;a++){var i=this[a][0];"number"==typeof i&&(r[i]=!0)}for(a=0;a<t.length;a++){var o=t[a];"number"==typeof o[0]&&r[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),e.push(o))}},e}},function(t,e,n){var r={},a=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),i=function(t){var e={};return function(t){return void 0===e[t]&&(e[t]=function(t){return document.querySelector(t)}.call(this,t)),e[t]}}(),o=null,g=0,C=[],A=n(16);function I(t,e){for(var n=0;n<t.length;n++){var a=t[n],i=r[a.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](a.parts[o]);for(;o<a.parts.length;o++)i.parts.push(h(a.parts[o],e))}else{var g=[];for(o=0;o<a.parts.length;o++)g.push(h(a.parts[o],e));r[a.id]={id:a.id,refs:1,parts:g}}}}function c(t,e){for(var n=[],r={},a=0;a<t.length;a++){var i=t[a],o=e.base?i[0]+e.base:i[0],g={css:i[1],media:i[2],sourceMap:i[3]};r[o]?r[o].parts.push(g):n.push(r[o]={id:o,parts:[g]})}return n}function s(t,e){var n=i(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=C[C.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),C.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function u(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=C.indexOf(t);e>=0&&C.splice(e,1)}function f(t){var e=document.createElement("style");return t.attrs.type="text/css",l(e,t.attrs),s(t,e),e}function l(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function h(t,e){var n,r,a,i;if(e.transform&&t.css){if(!(i=e.transform(t.css)))return function(){};t.css=i}if(e.singleton){var C=g++;n=o||(o=f(e)),r=p.bind(null,n,C,!1),a=p.bind(null,n,C,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",l(e,t.attrs),s(t,e),e}(e),r=function(t,e,n){var r=n.css,a=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&a;(e.convertToAbsoluteUrls||i)&&(r=A(r));a&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var o=new Blob([r],{type:"text/css"}),g=t.href;t.href=URL.createObjectURL(o),g&&URL.revokeObjectURL(g)}.bind(null,n,e),a=function(){u(n),n.href&&URL.revokeObjectURL(n.href)}):(n=f(e),r=function(t,e){var n=e.css,r=e.media;r&&t.setAttribute("media",r);if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),a=function(){u(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else a()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=c(t,e);return I(n,e),function(t){for(var a=[],i=0;i<n.length;i++){var o=n[i];(g=r[o.id]).refs--,a.push(g)}t&&I(c(t,e),e);for(i=0;i<a.length;i++){var g;if(0===(g=a[i]).refs){for(var C=0;C<g.parts.length;C++)g.parts[C]();delete r[g.id]}}}};var d=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function p(t,e,n,r){var a=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=d(e,a);else{var i=document.createTextNode(a),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(i,o[e]):t.appendChild(i)}}},function(t,e,n){var r,a=n(36),i=n(37),o=n(39),g=100,C=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;t.exports=function(t,e){function n(t,i,A){if(r++>g)throw r=0,new Error("Call stack overflow for "+A);if(""===t)throw new Error(i+"(): '"+A+"' must contain a non-whitespace string");var I=function(t){var e=[],n=[],r=/[\.0-9]([%a-z]+)/gi,a=r.exec(t);for(;a;)a&&a[1]&&(-1===n.indexOf(a[1].toLowerCase())&&(e.push(a[1]),n.push(a[1].toLowerCase())),a=r.exec(t));return e}(t=function(t,e){var r,i="",o=t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(;r=C.exec(o);){r[0].index>0&&(i+=o.substring(0,r[0].index));var g=a("(",")",o.substring([0].index));if(""===g.body)throw new Error("'"+t+"' must contain a non-whitespace string");var A=n(g.body,"",e);i+=g.pre+A,o=g.post}return i+o}(t,A));if(I.length>1||t.indexOf("var(")>-1)return i+"("+t+")";var c=I[0]||"";"%"===c&&(t=t.replace(/\b[0-9\.]+%/g,function(t){return.01*parseFloat(t.slice(0,-1))}));var s,u=t.replace(new RegExp(c,"gi"),"");try{s=o.eval(u)}catch(e){return i+"("+t+")"}return"%"===c&&(s*=100),(i.length||"%"===c)&&(s=Math.round(s*e)/e),s+=c}return r=0,e=Math.pow(10,void 0===e?5:e),t=t.replace(/\n+/g," "),i(t,/((?:\-[a-z]+\-)?calc)\(/,n)}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return V}),n.d(e,"b",function(){return B});var r=n(1),a=n.n(r),i=n(0),o=n.n(i),g=n(12);var C=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},A="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},I="object"==typeof A&&A&&A.Object===Object&&A,c="object"==typeof self&&self&&self.Object===Object&&self,s=I||c||Function("return this")(),u=function(){return s.Date.now()},f=s.Symbol,l=Object.prototype,h=l.hasOwnProperty,d=l.toString,p=f?f.toStringTag:void 0;var b=function(t){var e=h.call(t,p),n=t[p];try{t[p]=void 0}catch(t){}var r=d.call(t);return e?t[p]=n:delete t[p],r},m=Object.prototype.toString;var v=function(t){return m.call(t)},y="[object Null]",_="[object Undefined]",w=f?f.toStringTag:void 0;var x=function(t){return null==t?void 0===t?_:y:w&&w in Object(t)?b(t):v(t)};var k=function(t){return null!=t&&"object"==typeof t},T="[object Symbol]";var O=function(t){return"symbol"==typeof t||k(t)&&x(t)==T},E=NaN,P=/^\s+|\s+$/g,S=/^[-+]0x[0-9a-f]+$/i,M=/^0b[01]+$/i,N=/^0o[0-7]+$/i,j=parseInt;var R=function(t){if("number"==typeof t)return t;if(O(t))return E;if(C(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=C(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(P,"");var n=M.test(t);return n||N.test(t)?j(t.slice(2),n?2:8):S.test(t)?E:+t},z="Expected a function",D=Math.max,L=Math.min;var W=function(t,e,n){var r,a,i,o,g,A,I=0,c=!1,s=!1,f=!0;if("function"!=typeof t)throw new TypeError(z);function l(e){var n=r,i=a;return r=a=void 0,I=e,o=t.apply(i,n)}function h(t){var n=t-A;return void 0===A||n>=e||n<0||s&&t-I>=i}function d(){var t=u();if(h(t))return p(t);g=setTimeout(d,function(t){var n=e-(t-A);return s?L(n,i-(t-I)):n}(t))}function p(t){return g=void 0,f&&r?l(t):(r=a=void 0,o)}function b(){var t=u(),n=h(t);if(r=arguments,a=this,A=t,n){if(void 0===g)return function(t){return I=t,g=setTimeout(d,e),c?l(t):o}(A);if(s)return g=setTimeout(d,e),l(A)}return void 0===g&&(g=setTimeout(d,e)),o}return e=R(e)||0,C(n)&&(c=!!n.leading,i=(s="maxWait"in n)?D(R(n.maxWait)||0,e):i,f="trailing"in n?!!n.trailing:f),b.cancel=function(){void 0!==g&&clearTimeout(g),I=0,r=A=a=g=void 0},b.flush=function(){return void 0===g?o:p(u())},b},F=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Z=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),G=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},U=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},Y=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},V=function(t){function e(t){F(this,e);var n=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={width:0,height:0,top:0,left:0},n.resize=W(n.resize.bind(n),t.debounceTime),n.setTarget=n.setTarget.bind(n),n.animationFrameID=null,n}return U(e,t),Z(e,[{key:"componentDidMount",value:function(){var t=this;this.ro=new g.a(function(e,n){var r=function(e){var n=e.contentRect,r=n.left,a=n.top,i=n.width,o=n.height;t.animationFrameID=window.requestAnimationFrame(function(){t.resize({width:i,height:o,top:a,left:r})})},a=!0,i=!1,o=void 0;try{for(var g,C=e[Symbol.iterator]();!(a=(g=C.next()).done);a=!0){r(g.value)}}catch(t){i=!0,o=t}finally{try{!a&&C.return&&C.return()}finally{if(i)throw o}}}),this.ro.observe(this.target)}},{key:"componentWillUnmount",value:function(){window.cancelAnimationFrame(this.animationFrameID),this.ro.disconnect()}},{key:"resize",value:function(t){var e=t.width,n=t.height,r=t.top,a=t.left;this.setState(function(){return{width:e,height:n,top:r,left:a}})}},{key:"setTarget",value:function(t){this.target=t}},{key:"render",value:function(){var t=this.props,e=t.className,n=t.children;return a.a.createElement("div",{style:{width:"100%",height:"100%"},ref:this.setTarget,className:e},n(G({},this.state,{ref:this.target,resize:this.resize})))}}]),e}(a.a.Component);function B(t){var e=function(e){function n(t){F(this,n);var e=Y(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t));return e.state={parentWidth:null,parentHeight:null},e.handleResize=W(e.resize.bind(e),t.windowResizeDebounceTime).bind(e),e}return U(n,e),Z(n,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.handleResize,!1),this.resize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize,!1)}},{key:"resize",value:function(t){if(this.container){var e=this.container.getBoundingClientRect();this.setState(function(t,n){return{parentWidth:e.width,parentHeight:e.height}})}}},{key:"render",value:function(){var e=this,n=this.state,r=n.parentWidth,i=n.parentHeight;return a.a.createElement("div",{style:{width:"100%",height:"100%"},ref:function(t){e.container=t}},null!==r&&null!==i&&a.a.createElement(t,G({parentWidth:r,parentHeight:i},this.props)))}}]),n}(a.a.Component);return e.defaultProps={windowResizeDebounceTime:300},e}V.defaultProps={debounceTime:300},V.propTypes={className:o.a.string,children:o.a.func.isRequired,debounceTime:o.a.number}}).call(this,n(6))},function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return Wt});var r=n(1),a=n.n(r),i=n(5),o=n.n(i),g="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function C(t){return function(){return t}}var A=function(){};A.thatReturns=C,A.thatReturnsFalse=C(!1),A.thatReturnsTrue=C(!0),A.thatReturnsNull=C(null),A.thatReturnsThis=function(){return this},A.thatReturnsArgument=function(t){return t};var I=A,c=function(t){};var s=function(t,e,n,r,a,i,o,g){if(c(e),!t){var C;if(void 0===e)C=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var A=[n,r,a,i,o,g],I=0;(C=new Error(e.replace(/%s/g,function(){return A[I++]}))).name="Invariant Violation"}throw C.framesToPop=1,C}},u=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;(function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}})()&&Object.assign;var h="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";var d=function(t,e){return t(e={exports:{}},e.exports),e.exports}(function(t){t.exports=function(){function t(t,e,n,r,a,i){i!==h&&s(!1,"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")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=I,n.PropTypes=n,n}()}),p="object"==typeof g&&g&&g.Object===Object&&g,b="object"==typeof self&&self&&self.Object===Object&&self,m=p||b||Function("return this")(),v=m.Symbol,y=Object.prototype,_=y.hasOwnProperty,w=y.toString,x=v?v.toStringTag:void 0;var k=function(t){var e=_.call(t,x),n=t[x];try{t[x]=void 0}catch(t){}var r=w.call(t);return e?t[x]=n:delete t[x],r},T=Object.prototype.toString;var O=function(t){return T.call(t)},E="[object Null]",P="[object Undefined]",S=v?v.toStringTag:void 0;var M=function(t){return null==t?void 0===t?P:E:S&&S in Object(t)?k(t):O(t)};var N=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},j="[object AsyncFunction]",R="[object Function]",z="[object GeneratorFunction]",D="[object Proxy]";var L=function(t){if(!N(t))return!1;var e=M(t);return e==R||e==z||e==j||e==D},W=m["__core-js_shared__"],F=function(){var t=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var Z=function(t){return!!F&&F in t},G=Function.prototype.toString;var U=function(t){if(null!=t){try{return G.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Y=/^\[object .+?Constructor\]$/,V=Function.prototype,B=Object.prototype,H=V.toString,K=B.hasOwnProperty,q=RegExp("^"+H.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var X=function(t){return!(!N(t)||Z(t))&&(L(t)?q:Y).test(U(t))};var Q=function(t,e){return null==t?void 0:t[e]};var J=function(t,e){var n=Q(t,e);return X(n)?n:void 0},$=J(Object,"create");var tt=function(){this.__data__=$?$(null):{},this.size=0};var et=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},nt="__lodash_hash_undefined__",rt=Object.prototype.hasOwnProperty;var at=function(t){var e=this.__data__;if($){var n=e[t];return n===nt?void 0:n}return rt.call(e,t)?e[t]:void 0},it=Object.prototype.hasOwnProperty;var ot=function(t){var e=this.__data__;return $?void 0!==e[t]:it.call(e,t)},gt="__lodash_hash_undefined__";var Ct=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=$&&void 0===e?gt:e,this};function At(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}At.prototype.clear=tt,At.prototype.delete=et,At.prototype.get=at,At.prototype.has=ot,At.prototype.set=Ct;var It=At;var ct=function(){this.__data__=[],this.size=0};var st=function(t,e){return t===e||t!=t&&e!=e};var ut=function(t,e){for(var n=t.length;n--;)if(st(t[n][0],e))return n;return-1},ft=Array.prototype.splice;var lt=function(t){var e=this.__data__,n=ut(e,t);return!(n<0||(n==e.length-1?e.pop():ft.call(e,n,1),--this.size,0))};var ht=function(t){var e=this.__data__,n=ut(e,t);return n<0?void 0:e[n][1]};var dt=function(t){return ut(this.__data__,t)>-1};var pt=function(t,e){var n=this.__data__,r=ut(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function bt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}bt.prototype.clear=ct,bt.prototype.delete=lt,bt.prototype.get=ht,bt.prototype.has=dt,bt.prototype.set=pt;var mt=bt,vt=J(m,"Map");var yt=function(){this.size=0,this.__data__={hash:new It,map:new(vt||mt),string:new It}};var _t=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var wt=function(t,e){var n=t.__data__;return _t(e)?n["string"==typeof e?"string":"hash"]:n.map};var xt=function(t){var e=wt(this,t).delete(t);return this.size-=e?1:0,e};var kt=function(t){return wt(this,t).get(t)};var Tt=function(t){return wt(this,t).has(t)};var Ot=function(t,e){var n=wt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Et(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Et.prototype.clear=yt,Et.prototype.delete=xt,Et.prototype.get=kt,Et.prototype.has=Tt,Et.prototype.set=Ot;var Pt=Et,St="Expected a function";function Mt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(St);var n=function(){var r=arguments,a=e?e.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=t.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Mt.Cache||Pt),n}Mt.Cache=Pt;var Nt="__react_svg_text_measurement_id";var jt=Mt(function(t,e){try{var n=document.getElementById(Nt);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.style.width=0,r.style.height=0,r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",Nt),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,e),n.textContent=t,n.getComputedTextLength()}catch(t){return null}},function(t,e){return t+"_"+JSON.stringify(e)}),Rt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},zt=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Dt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Lt=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},Wt=function(t){function e(t){Rt(this,e);var n=Lt(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={wordsByLines:[]},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r["Component"]),zt(e,[{key:"componentWillMount",value:function(){this.updateWordsByLines(this.props,!0)}},{key:"componentWillReceiveProps",value:function(t){var e=this.props.children!==t.children||this.props.style!==t.style;this.updateWordsByLines(t,e)}},{key:"updateWordsByLines",value:function(t,e){if(t.width||t.scaleToFit){if(e){var n=t.children?t.children.toString().split(/\s+/):[];this.wordsWithComputedWidth=n.map(function(e){return{word:e,width:jt(e,t.style)}}),this.spaceWidth=jt(" ",t.style)}var r=this.calculateWordsByLines(this.wordsWithComputedWidth,this.spaceWidth,t.width);this.setState({wordsByLines:r})}else this.updateWordsWithoutCalculate(t)}},{key:"updateWordsWithoutCalculate",value:function(t){var e=t.children?t.children.toString().split(/\s+/):[];this.setState({wordsByLines:[{words:e}]})}},{key:"calculateWordsByLines",value:function(t,e,n){var r=this.props.scaleToFit;return t.reduce(function(t,a){var i=a.word,o=a.width,g=t[t.length-1];if(g&&(null==n||r||g.width+o+e<n))g.words.push(i),g.width+=o+e;else{var C={words:[i],width:o};t.push(C)}return t},[])}},{key:"render",value:function(){var t=this.props,e=t.dx,n=t.dy,r=t.textAnchor,i=t.verticalAnchor,g=t.scaleToFit,C=t.angle,A=t.lineHeight,I=t.capHeight,c=t.innerRef,s=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","innerRef"]),u=this.state.wordsByLines,f=s.x,l=s.y,h=void 0;switch(i){case"start":h=o()("calc("+I+")");break;case"middle":h=o()("calc("+(u.length-1)/2+" * -"+A+" + ("+I+" / 2))");break;default:h=o()("calc("+(u.length-1)+" * -"+A+")")}var d=[];if(g&&u.length){var p=u[0].width,b=this.props.width/p,m=b,v=f-b*f,y=l-m*l;d.push("matrix("+b+", 0, 0, "+m+", "+v+", "+y+")")}return C&&d.push("rotate("+C+", "+f+", "+l+")"),d.length&&(s.transform=d.join(" ")),a.a.createElement("svg",{ref:c,x:e,y:n,fontSize:s.fontSize,style:{overflow:"visible"}},a.a.createElement("text",Dt({},s,{textAnchor:r}),u.map(function(t,e){return a.a.createElement("tspan",{x:f,dy:0===e?h:A,key:e},t.words.join(" "))})))}}]),e}();Wt.defaultProps={x:0,y:0,dx:0,dy:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"},Wt.propTypes={scaleToFit:d.bool,angle:d.number,textAnchor:d.oneOf(["start","middle","end","inherit"]),verticalAnchor:d.oneOf(["start","middle","end"]),style:d.object,innerRef:d.func}}).call(this,n(6))},function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return Wt});var r=n(1),a=n.n(r),i=n(5),o=n.n(i),g="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function C(t){return function(){return t}}var A=function(){};A.thatReturns=C,A.thatReturnsFalse=C(!1),A.thatReturnsTrue=C(!0),A.thatReturnsNull=C(null),A.thatReturnsThis=function(){return this},A.thatReturnsArgument=function(t){return t};var I=A,c=function(t){};var s=function(t,e,n,r,a,i,o,g){if(c(e),!t){var C;if(void 0===e)C=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var A=[n,r,a,i,o,g],I=0;(C=new Error(e.replace(/%s/g,function(){return A[I++]}))).name="Invariant Violation"}throw C.framesToPop=1,C}},u=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;(function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}})()&&Object.assign;var h="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";var d=function(t,e){return t(e={exports:{}},e.exports),e.exports}(function(t){t.exports=function(){function t(t,e,n,r,a,i){i!==h&&s(!1,"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")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=I,n.PropTypes=n,n}()}),p="object"==typeof g&&g&&g.Object===Object&&g,b="object"==typeof self&&self&&self.Object===Object&&self,m=p||b||Function("return this")(),v=m.Symbol,y=Object.prototype,_=y.hasOwnProperty,w=y.toString,x=v?v.toStringTag:void 0;var k=function(t){var e=_.call(t,x),n=t[x];try{t[x]=void 0}catch(t){}var r=w.call(t);return e?t[x]=n:delete t[x],r},T=Object.prototype.toString;var O=function(t){return T.call(t)},E="[object Null]",P="[object Undefined]",S=v?v.toStringTag:void 0;var M=function(t){return null==t?void 0===t?P:E:S&&S in Object(t)?k(t):O(t)};var N=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},j="[object AsyncFunction]",R="[object Function]",z="[object GeneratorFunction]",D="[object Proxy]";var L=function(t){if(!N(t))return!1;var e=M(t);return e==R||e==z||e==j||e==D},W=m["__core-js_shared__"],F=function(){var t=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var Z=function(t){return!!F&&F in t},G=Function.prototype.toString;var U=function(t){if(null!=t){try{return G.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Y=/^\[object .+?Constructor\]$/,V=Function.prototype,B=Object.prototype,H=V.toString,K=B.hasOwnProperty,q=RegExp("^"+H.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var X=function(t){return!(!N(t)||Z(t))&&(L(t)?q:Y).test(U(t))};var Q=function(t,e){return null==t?void 0:t[e]};var J=function(t,e){var n=Q(t,e);return X(n)?n:void 0},$=J(Object,"create");var tt=function(){this.__data__=$?$(null):{},this.size=0};var et=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},nt="__lodash_hash_undefined__",rt=Object.prototype.hasOwnProperty;var at=function(t){var e=this.__data__;if($){var n=e[t];return n===nt?void 0:n}return rt.call(e,t)?e[t]:void 0},it=Object.prototype.hasOwnProperty;var ot=function(t){var e=this.__data__;return $?void 0!==e[t]:it.call(e,t)},gt="__lodash_hash_undefined__";var Ct=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=$&&void 0===e?gt:e,this};function At(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}At.prototype.clear=tt,At.prototype.delete=et,At.prototype.get=at,At.prototype.has=ot,At.prototype.set=Ct;var It=At;var ct=function(){this.__data__=[],this.size=0};var st=function(t,e){return t===e||t!=t&&e!=e};var ut=function(t,e){for(var n=t.length;n--;)if(st(t[n][0],e))return n;return-1},ft=Array.prototype.splice;var lt=function(t){var e=this.__data__,n=ut(e,t);return!(n<0||(n==e.length-1?e.pop():ft.call(e,n,1),--this.size,0))};var ht=function(t){var e=this.__data__,n=ut(e,t);return n<0?void 0:e[n][1]};var dt=function(t){return ut(this.__data__,t)>-1};var pt=function(t,e){var n=this.__data__,r=ut(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function bt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}bt.prototype.clear=ct,bt.prototype.delete=lt,bt.prototype.get=ht,bt.prototype.has=dt,bt.prototype.set=pt;var mt=bt,vt=J(m,"Map");var yt=function(){this.size=0,this.__data__={hash:new It,map:new(vt||mt),string:new It}};var _t=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var wt=function(t,e){var n=t.__data__;return _t(e)?n["string"==typeof e?"string":"hash"]:n.map};var xt=function(t){var e=wt(this,t).delete(t);return this.size-=e?1:0,e};var kt=function(t){return wt(this,t).get(t)};var Tt=function(t){return wt(this,t).has(t)};var Ot=function(t,e){var n=wt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Et(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Et.prototype.clear=yt,Et.prototype.delete=xt,Et.prototype.get=kt,Et.prototype.has=Tt,Et.prototype.set=Ot;var Pt=Et,St="Expected a function";function Mt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(St);var n=function(){var r=arguments,a=e?e.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=t.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Mt.Cache||Pt),n}Mt.Cache=Pt;var Nt="__react_svg_text_measurement_id";var jt=Mt(function(t,e){try{var n=document.getElementById(Nt);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.style.width=0,r.style.height=0,(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",Nt),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,e),n.textContent=t,n.getComputedTextLength()}catch(t){return null}},function(t,e){return t+"_"+JSON.stringify(e)}),Rt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},zt=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Dt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Lt=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},Wt=function(t){function e(t){Rt(this,e);var n=Lt(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={wordsByLines:[]},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r["Component"]),zt(e,[{key:"componentWillMount",value:function(){this.updateWordsByLines(this.props,!0)}},{key:"componentWillReceiveProps",value:function(t){var e=this.props.children!==t.children||this.props.style!==t.style;this.updateWordsByLines(t,e)}},{key:"updateWordsByLines",value:function(t,e){if(t.width||t.scaleToFit){if(e){var n=t.children?t.children.toString().split(/\s+/):[];this.wordsWithComputedWidth=n.map(function(e){return{word:e,width:jt(e,t.style)}}),this.spaceWidth=jt(" ",t.style)}var r=this.calculateWordsByLines(this.wordsWithComputedWidth,this.spaceWidth,t.width);this.setState({wordsByLines:r})}else this.updateWordsWithoutCalculate(t)}},{key:"updateWordsWithoutCalculate",value:function(t){var e=t.children?t.children.toString().split(/\s+/):[];this.setState({wordsByLines:[{words:e}]})}},{key:"calculateWordsByLines",value:function(t,e,n){var r=this.props.scaleToFit;return t.reduce(function(t,a){var i=a.word,o=a.width,g=t[t.length-1];if(g&&(null==n||r||g.width+o+e<n))g.words.push(i),g.width+=o+e;else{var C={words:[i],width:o};t.push(C)}return t},[])}},{key:"render",value:function(){var t=this.props,e=t.dx,n=t.dy,r=t.textAnchor,i=t.verticalAnchor,g=t.scaleToFit,C=t.angle,A=t.lineHeight,I=t.capHeight,c=t.innerRef,s=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","innerRef"]),u=this.state.wordsByLines,f=s.x,l=s.y,h=void 0;switch(i){case"start":h=o()("calc("+I+")");break;case"middle":h=o()("calc("+(u.length-1)/2+" * -"+A+" + ("+I+" / 2))");break;default:h=o()("calc("+(u.length-1)+" * -"+A+")")}var d=[];if(g&&u.length){var p=u[0].width,b=this.props.width/p,m=b,v=f-b*f,y=l-m*l;d.push("matrix("+b+", 0, 0, "+m+", "+v+", "+y+")")}return C&&d.push("rotate("+C+", "+f+", "+l+")"),d.length&&(s.transform=d.join(" ")),a.a.createElement("svg",{ref:c,x:e,y:n,fontSize:s.fontSize,style:{overflow:"visible"}},a.a.createElement("text",Dt({},s,{textAnchor:r}),u.map(function(t,e){return a.a.createElement("tspan",{x:f,dy:0===e?h:A,key:e},t.words.join(" "))})))}}]),e}();Wt.defaultProps={x:0,y:0,dx:0,dy:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"},Wt.propTypes={scaleToFit:d.bool,angle:d.number,textAnchor:d.oneOf(["start","middle","end","inherit"]),verticalAnchor:d.oneOf(["start","middle","end"]),style:d.object,innerRef:d.func}}).call(this,n(6))},function(t,e,n){(function(t){var n;
/**
 * @license
 *
 * chroma.js - JavaScript library for color conversions
 * 
 * Copyright (c) 2011-2017, Gregor Aisch
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 * 
 * 1. Redistributions of source code must retain the above copyright notice, this
 *    list of conditions and the following disclaimer.
 * 
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 *    this list of conditions and the following disclaimer in the documentation
 *    and/or other materials provided with the distribution.
 * 
 * 3. The name Gregor Aisch may not be used to endorse or promote products
 *    derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 */
/**
 * @license
 *
 * chroma.js - JavaScript library for color conversions
 * 
 * Copyright (c) 2011-2017, Gregor Aisch
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 * 
 * 1. Redistributions of source code must retain the above copyright notice, this
 *    list of conditions and the following disclaimer.
 * 
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 *    this list of conditions and the following disclaimer in the documentation
 *    and/or other materials provided with the distribution.
 * 
 * 3. The name Gregor Aisch may not be used to endorse or promote products
 *    derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 */
(function(){var r,a,i,o,g,C,A,I,c,s,u,f,l,h,d,p,b,m,v,y,_,w,x,k,T,O,E,P,S,M,N,j,R,z,D,L,W,F,Z,G,U,Y,V,B,H,K,q,X,Q,J,$,tt,et,nt,rt,at,it,ot,gt,Ct,At,It,ct,st,ut,ft,lt,ht,dt,pt,bt,mt,vt,yt,_t,wt,xt,kt,Tt,Ot,Et=[].slice;wt=function(){var t,e,n,r,a;for(t={},r=0,e=(a="Boolean Number String Function Array Date RegExp Undefined Null".split(" ")).length;r<e;r++)n=a[r],t["[object "+n+"]"]=n.toLowerCase();return function(e){var n;return n=Object.prototype.toString.call(e),t[n]||"object"}}(),q=function(t,e,n){return null==e&&(e=0),null==n&&(n=1),t<e&&(t=e),t>n&&(t=n),t},xt=function(t){return t.length>=3?Array.prototype.slice.call(t):t[0]},_=function(t){var e,n;for(t._clipped=!1,t._unclipped=t.slice(0),e=n=0;n<3;e=++n)e<3?((t[e]<0||t[e]>255)&&(t._clipped=!0),t[e]<0&&(t[e]=0),t[e]>255&&(t[e]=255)):3===e&&(t[e]<0&&(t[e]=0),t[e]>1&&(t[e]=1));return t._clipped||delete t._unclipped,t},o=Math.PI,bt=Math.round,x=Math.cos,P=Math.floor,rt=Math.pow,X=Math.log,vt=Math.sin,yt=Math.sqrt,h=Math.atan2,$=Math.max,l=Math.abs,A=2*o,g=o/3,a=o/180,C=180/o,(y=function(){return arguments[0]instanceof r?arguments[0]:function(t,e,n){n.prototype=t.prototype;var r=new n,a=t.apply(r,e);return Object(a)===a?a:r}(r,arguments,function(){})}).default=y,f=[],void 0!==t&&null!==t&&null!=t.exports&&(t.exports=y),void 0===(n=function(){return y}.apply(e,[]))||(t.exports=n),y.version="1.4.0",u={},c=[],s=!1,r=function(){function t(){var t,e,n,r,a,i,o,g,C;for(i=this,e=[],g=0,r=arguments.length;g<r;g++)null!=(t=arguments[g])&&e.push(t);if(e.length>1&&(o=e[e.length-1]),null!=u[o])i._rgb=_(u[o](xt(e.slice(0,-1))));else{for(s||(c=c.sort(function(t,e){return e.p-t.p}),s=!0),C=0,a=c.length;C<a&&!(o=(n=c[C]).test.apply(n,e));C++);o&&(i._rgb=_(u[o].apply(u,e)))}null==i._rgb&&console.warn("unknown format: "+e),null==i._rgb&&(i._rgb=[0,0,0]),3===i._rgb.length&&i._rgb.push(1)}return t.prototype.toString=function(){return this.hex()},t}(),y._input=u,
/**
  	ColorBrewer colors for chroma.js
  
  	Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The 
  	Pennsylvania State University.
  
  	Licensed under the Apache License, Version 2.0 (the "License"); 
  	you may not use this file except in compliance with the License.
  	You may obtain a copy of the License at	
  	http://www.apache.org/licenses/LICENSE-2.0
  
  	Unless required by applicable law or agreed to in writing, software distributed
  	under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
  	CONDITIONS OF ANY KIND, either express or implied. See the License for the
  	specific language governing permissions and limitations under the License.
  
      @preserve
   */
y.brewer=m={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},function(){var t,e;for(t in e=[],m)e.push(m[t.toLowerCase()]=m[t])}(),y.colors=kt={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Y=function(){var t,e,n,r,a,o,g;return r=(e=xt(arguments))[0],t=e[1],n=e[2],o=(r+16)/116,a=isNaN(t)?o:o+t/500,g=isNaN(n)?o:o-n/200,o=i.Yn*V(o),a=i.Xn*V(a),g=i.Zn*V(g),[Ot(3.2404542*a-1.5371385*o-.4985314*g),Ot(-.969266*a+1.8760108*o+.041556*g),n=Ot(.0556434*a-.2040259*o+1.0572252*g),e.length>3?e[3]:1]},Ot=function(t){return 255*(t<=.00304?12.92*t:1.055*rt(t,1/2.4)-.055)},V=function(t){return t>i.t1?t*t*t:i.t2*(t-i.t0)},i={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},ct=function(){var t,e,n,r,a,i,o;return n=(r=xt(arguments))[0],e=r[1],t=r[2],i=(a=ht(n,e,t))[0],[116*(o=a[1])-16,500*(i-o),200*(o-a[2])]},dt=function(t){return(t/=255)<=.04045?t/12.92:rt((t+.055)/1.055,2.4)},Tt=function(t){return t>i.t3?rt(t,1/3):t/i.t2+i.t0},ht=function(){var t,e,n,r;return n=(r=xt(arguments))[0],e=r[1],t=r[2],n=dt(n),e=dt(e),t=dt(t),[Tt((.4124564*n+.3575761*e+.1804375*t)/i.Xn),Tt((.2126729*n+.7151522*e+.072175*t)/i.Yn),Tt((.0193339*n+.119192*e+.9503041*t)/i.Zn)]},y.lab=function(){return function(t,e,n){n.prototype=t.prototype;var r=new n,a=t.apply(r,e);return Object(a)===a?a:r}(r,Et.call(arguments).concat(["lab"]),function(){})},u.lab=Y,r.prototype.lab=function(){return ct(this._rgb)},d=function(t){var e,n,r,a,i,o,g,C,A,I,c;return 2===(t=function(){var e,n,r;for(r=[],n=0,e=t.length;n<e;n++)a=t[n],r.push(y(a));return r}()).length?(A=function(){var e,n,r;for(r=[],n=0,e=t.length;n<e;n++)a=t[n],r.push(a.lab());return r}(),i=A[0],o=A[1],e=function(t){var e,n;return n=function(){var n,r;for(r=[],e=n=0;n<=2;e=++n)r.push(i[e]+t*(o[e]-i[e]));return r}(),y.lab.apply(y,n)}):3===t.length?(I=function(){var e,n,r;for(r=[],n=0,e=t.length;n<e;n++)a=t[n],r.push(a.lab());return r}(),i=I[0],o=I[1],g=I[2],e=function(t){var e,n;return n=function(){var n,r;for(r=[],e=n=0;n<=2;e=++n)r.push((1-t)*(1-t)*i[e]+2*(1-t)*t*o[e]+t*t*g[e]);return r}(),y.lab.apply(y,n)}):4===t.length?(c=function(){var e,n,r;for(r=[],n=0,e=t.length;n<e;n++)a=t[n],r.push(a.lab());return r}(),i=c[0],o=c[1],g=c[2],C=c[3],e=function(t){var e,n;return n=function(){var n,r;for(r=[],e=n=0;n<=2;e=++n)r.push((1-t)*(1-t)*(1-t)*i[e]+3*(1-t)*(1-t)*t*o[e]+3*(1-t)*t*t*g[e]+t*t*t*C[e]);return r}(),y.lab.apply(y,n)}):5===t.length&&(n=d(t.slice(0,3)),r=d(t.slice(2,5)),e=function(t){return t<.5?n(2*t):r(2*(t-.5))}),e},y.bezier=function(t){var e;return(e=d(t)).scale=function(){return y.scale(e)},e},y.cubehelix=function(t,e,n,r,a){var i,o,g;return null==t&&(t=300),null==e&&(e=-1.5),null==n&&(n=1),null==r&&(r=1),null==a&&(a=[0,1]),i=0,"array"===wt(a)?o=a[1]-a[0]:(o=0,a=[a,a]),(g=function(g){var C,I,c,s,u;return C=A*((t+120)/360+e*g),s=rt(a[0]+o*g,r),I=(0!==i?n[0]+g*i:n)*s*(1-s)/2,c=x(C),u=vt(C),y(_([255*(s+I*(-.14861*c+1.78277*u)),255*(s+I*(-.29227*c-.90649*u)),255*(s+I*(1.97294*c)),1]))}).start=function(e){return null==e?t:(t=e,g)},g.rotations=function(t){return null==t?e:(e=t,g)},g.gamma=function(t){return null==t?r:(r=t,g)},g.hue=function(t){return null==t?n:("array"===wt(n=t)?0===(i=n[1]-n[0])&&(n=n[1]):i=0,g)},g.lightness=function(t){return null==t?a:("array"===wt(t)?(a=t,o=t[1]-t[0]):(a=[t,t],o=0),g)},g.scale=function(){return y.scale(g)},g.hue(n),g},y.random=function(){var t,e;for("0123456789abcdef",t="#",e=0;e<6;++e)t+="0123456789abcdef".charAt(P(16*Math.random()));return new r(t)},f=[],y.interpolate=D=function(t,e,n,r){var a,i,o,g;for(null==n&&(n=.5),null==r&&(r="rgb"),"object"!==wt(t)&&(t=y(t)),"object"!==wt(e)&&(e=y(e)),o=0,i=f.length;o<i;o++)if(r===(a=f[o])[0]){g=a[1](t,e,n,r);break}if(null==g)throw"color mode "+r+" is not supported";return g.alpha(t.alpha()+n*(e.alpha()-t.alpha()))},r.prototype.interpolate=function(t,e,n){return D(this,t,e,n)},y.mix=D,r.prototype.mix=r.prototype.interpolate,u.rgb=function(){var t,e,n,r;for(t in n=[],e=xt(arguments))r=e[t],n.push(r);return n},y.rgb=function(){return function(t,e,n){n.prototype=t.prototype;var r=new n,a=t.apply(r,e);return Object(a)===a?a:r}(r,Et.call(arguments).concat(["rgb"]),function(){})},r.prototype.rgb=function(t){return null==t&&(t=!0),t?this._rgb.map(Math.round).slice(0,3):this._rgb.slice(0,3)},r.prototype.rgba=function(t){return null==t&&(t=!0),t?[Math.round(this._rgb[0]),Math.round(this._rgb[1]),Math.round(this._rgb[2]),this._rgb[3]]:this._rgb.slice(0)},c.push({p:3,test:function(t){var e;return e=xt(arguments),"array"===wt(e)&&3===e.length?"rgb":4===e.length&&"number"===wt(e[3])&&e[3]>=0&&e[3]<=1?"rgb":void 0}}),u.lrgb=u.rgb,F=function(t,e,n,a){var i,o;return i=t._rgb,o=e._rgb,new r(yt(rt(i[0],2)*(1-n)+rt(o[0],2)*n),yt(rt(i[1],2)*(1-n)+rt(o[1],2)*n),yt(rt(i[2],2)*(1-n)+rt(o[2],2)*n),a)},I=function(t){var e,n,a,i,o;for(e=1/t.length,o=[0,0,0,0],a=0,n=t.length;a<n;a++)i=t[a]._rgb,o[0]+=rt(i[0],2)*e,o[1]+=rt(i[1],2)*e,o[2]+=rt(i[2],2)*e,o[3]+=i[3]*e;return o[0]=yt(o[0]),o[1]=yt(o[1]),o[2]=yt(o[2]),o[3]>1&&(o[3]=1),new r(_(o))},f.push(["lrgb",F]),y.average=function(t,e){var n,r,a,i,g,C,A,c,s,u,f,l,d;if(null==e&&(e="rgb"),s=t.length,A=(t=t.map(function(t){return y(t)})).splice(0,1)[0],"lrgb"===e)return I(t);for(c in i=[],g=0,C=0,l=A.get(e))l[c]=l[c]||0,i.push(isNaN(l[c])?0:1),"h"!==e.charAt(c)||isNaN(l[c])||(n=l[c]/180*o,g+=x(n),C+=vt(n));for(r=A.alpha(),f=0,u=t.length;f<u;f++)for(c in d=(a=t[f]).get(e),r+=a.alpha(),l)isNaN(d[c])||(i[c]+=1,"h"===e.charAt(c)?(n=d[c]/180*o,g+=x(n),C+=vt(n)):l[c]+=d[c]);for(c in l)if("h"===e.charAt(c)){for(n=h(C/i[c],g/i[c])/o*180;n<0;)n+=360;for(;n>=360;)n-=360;l[c]=n}else l[c]=l[c]/i[c];return y(l,e).alpha(r/s)},M=function(t){var e,n;if(t.match(/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/))return 4!==t.length&&7!==t.length||(t=t.substr(1)),3===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]),[(n=parseInt(t,16))>>16,n>>8&255,255&n,1];if(t.match(/^#?([A-Fa-f0-9]{8})$/))return 9===t.length&&(t=t.substr(1)),[(n=parseInt(t,16))>>24&255,n>>16&255,n>>8&255,bt((255&n)/255*100)/100];if(null!=u.css&&(e=u.css(t)))return e;throw"unknown color: "+t},gt=function(t,e){var n,r,a,i,o,g;return null==e&&(e="auto"),o=t[0],a=t[1],r=t[2],n=t[3],"auto"===e&&(e=n<1?"rgba":"rgb"),o=Math.round(o),a=Math.round(a),r=Math.round(r),g=(g="000000"+(o<<16|a<<8|r).toString(16)).substr(g.length-6),i=(i="0"+bt(255*n).toString(16)).substr(i.length-2),"#"+function(){switch(e.toLowerCase()){case"rgba":return g+i;case"argb":return i+g;default:return g}}()},u.hex=function(t){return M(t)},y.hex=function(){return function(t,e,n){n.prototype=t.prototype;var r=new n,a=t.apply(r,e);return Object(a)===a?a:r}(r,Et.call(arguments).concat(["hex"]),function(){})},r.prototype.hex=function(t){return null==t&&(t="auto"),gt(this._rgb,t)},c.push({p:4,test:function(t){if(1===arguments.length&&"string"===wt(t))return"hex"}}),R=function(){var t,e,n,r,a,i,o,g,C,A,I,c,s,u;if(a=(t=xt(arguments))[0],I=t[1],o=t[2],0===I)C=r=e=255*o;else{for(u=[0,0,0],n=[0,0,0],c=2*o-(s=o<.5?o*(1+I):o+I-o*I),a/=360,u[0]=a+1/3,u[1]=a,u[2]=a-1/3,i=g=0;g<=2;i=++g)u[i]<0&&(u[i]+=1),u[i]>1&&(u[i]-=1),6*u[i]<1?n[i]=c+6*(s-c)*u[i]:2*u[i]<1?n[i]=s:3*u[i]<2?n[i]=c+(s-c)*(2/3-u[i])*6:n[i]=c;C=(A=[bt(255*n[0]),bt(255*n[1]),bt(255*n[2])])[0],r=A[1],e=A[2]}return t.length>3?[C,r,e,t[3]]:[C,r,e]},At=function(t,e,n){var r,a,i,o,g;return void 0!==t&&t.length>=3&&(t=(o=t)[0],e=o[1],n=o[2]),t/=255,e/=255,n/=255,i=Math.min(t,e,n),a=(($=Math.max(t,e,n))+i)/2,$===i?(g=0,r=Number.NaN):g=a<.5?($-i)/($+i):($-i)/(2-$-i),t===$?r=(e-n)/($-i):e===$?r=2+(n-t)/($-i):n===$&&(r=4+(t-e)/($-i)),(r*=60)<0&&(r+=360),[r,g,a]},y.hsl=function(){return function(t,e,n){n.prototype=t.prototype;var r=new n,a=t.apply(r,e);return Object(a)===a?a:r}(r,Et.call(arguments).concat(["hsl"]),function(){})},u.hsl=R,r.prototype.hsl=function(){return At(this._rgb)},z=function(){var t,e,n,r,a,i,o,g,C,A,I,c,s,u,f,l,h,d;if(a=(t=xt(arguments))[0],l=t[1],d=t[2],d*=255,0===l)C=r=e=d;else switch(360===a&&(a=0),a>360&&(a-=360),a<0&&(a+=360),o=d*(1-l),g=d*(1-l*(n=(a/=60)-(i=P(a)))),h=d*(1-l*(1-n)),i){case 0:C=(A=[d,h,o])[0],r=A[1],e=A[2];break;case 1:C=(I=[g,d,o])[0],r=I[1],e=I[2];break;case 2:C=(c=[o,d,h])[0],r=c[1],e=c[2];break;case 3:C=(s=[o,g,d])[0],r=s[1],e=s[2];break;case 4:C=(u=[h,o,d])[0],r=u[1],e=u[2];break;case 5:C=(f=[d,o,g])[0],r=f[1],e=f[2]}return[C,r,e,t.length>3?t[3]:1]},It=function(){var t,e,n,r,a,i,o,g,C;return i=(o=xt(arguments))[0],n=o[1],t=o[2],a=Math.min(i,n,t),e=($=Math.max(i,n,t))-a,C=$/255,0===$?(r=Number.NaN,g=0):(g=e/$,i===$&&(r=(n-t)/e),n===$&&(r=2+(t-i)/e),t===$&&(r=4+(i-n)/e),(r*=60)<0&&(r+=360)),[r,g,C]},y.hsv=function(){return function(t,e,n){n.prototype=t.prototype;var r=new n,a=t.apply(r,e);return Object(a)===a?a:r}(r,Et.call(arguments).concat(["hsv"]),function(){})},u.hsv=z,r.prototype.hsv=function(){return It(this._rgb)},et=function(t){return"number"===wt(t)&&t>=0&&t<=16777215?[t>>16,t>>8&255,255&t,1]:(console.warn("unknown num color: "+t),[0,0,0,1])},ft=function(){var t;return((t=xt(arguments))[0]<<16)+(t[1]<<8)+t[2]},y.num=function(t){return new r(t,"num")},r.prototype.num=function(t){return null==t&&(t="rgb"),ft(this._rgb,t)},u.num=et,c.push({p:1,test:function(t){if(1===arguments.length&&"number"===wt(t)&&t>=0&&t<=16777215)return"num"}}),S=function(){var t,e,n,r,a,i,o,g,C,A,I,c,s,u,f,l,h,d,p,b;if(g=(n=xt(arguments))[0],a=n[1],e=n[2],o=o/100*255,t=255*(a/=100),0===a)c=o=r=e;else switch(360===g&&(g=0),g>360&&(g-=360),g<0&&(g+=360),I=(A=e*(1-a))+t*(1-(i=(g/=60)-(C=P(g)))),p=A+t*i,b=A+t,C){case 0:c=(s=[b,p,A])[0],o=s[1],r=s[2];break;case 1:c=(u=[I,b,A])[0],o=u[1],r=u[2];break;case 2:c=(f=[A,b,p])[0],o=f[1],r=f[2];break;case 3:c=(l=[A,I,b])[0],o=l[1],r=l[2];break;case 4:c=(h=[p,A,b])[0],o=h[1],r=h[2];break;case 5:c=(d=[b,A,I])[0],o=d[1],r=d[2]}return[c,o,r,n.length>3?n[3]:1]},ot=function(){var t,e,n,r,a,i,o,g,C;return g=(C=xt(arguments))[0],a=C[1],e=C[2],o=Math.min(g,a,e),n=100*(r=($=Math.max(g,a,e))-o)/255,t=o/(255-r)*100,0===r?i=Number.NaN:(g===$&&(i=(a-e)/r),a===$&&(i=2+(e-g)/r),e===$&&(i=4+(g-a)/r),(i*=60)<0&&(i+=360)),[i,n,t]},y.hcg=function(){return function(t,e,n){n.prototype=t.prototype;var r=new n,a=t.apply(r,e);return Object(a)===a?a:r}(r,Et.call(arguments).concat(["hcg"]),function(){})},u.hcg=S,r.prototype.hcg=function(){return ot(this._rgb)},k=function(t){var e,n,r,a,i,o,g,C;if(t=t.toLowerCase(),null!=y.colors&&y.colors[t])return M(y.colors[t]);if(i=t.match(/rgb\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*\)/)){for(g=i.slice(1,4),a=o=0;o<=2;a=++o)g[a]=+g[a];g[3]=1}else if(i=t.match(/rgba\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*,\s*([01]|[01]?\.\d+)\)/))for(g=i.slice(1,5),a=C=0;C<=3;a=++C)g[a]=+g[a];else if(i=t.match(/rgb\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/)){for(g=i.slice(1,4),a=e=0;e<=2;a=++e)g[a]=bt(2.55*g[a]);g[3]=1}else if(i=t.match(/rgba\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/)){for(g=i.slice(1,5),a=n=0;n<=2;a=++n)g[a]=bt(2.55*g[a]);g[3]=+g[3]}else(i=t.match(/hsl\(\s*(\-?\d+(?:\.\d+)?),\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/))?((r=i.slice(1,4))[1]*=.01,r[2]*=.01,(g=R(r))[3]=1):(i=t.match(/hsla\(\s*(\-?\d+(?:\.\d+)?),\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/))&&((r=i.slice(1,4))[1]*=.01,r[2]*=.01,(g=R(r))[3]=+i[4]);return g},it=function(t){var e;return"rgb"===(e=t[3]<1?"rgba":"rgb")?e+"("+t.slice(0,3).map(bt).join(",")+")":"rgba"===e?e+"("+t.slice(0,3).map(bt).join(",")+","+t[3]+")":void 0},pt=function(t){return bt(100*t)/100},j=function(t,e){var n;return n=e<1?"hsla":"hsl",t[0]=pt(t[0]||0),t[1]=pt(100*t[1])+"%",t[2]=pt(100*t[2])+"%","hsla"===n&&(t[3]=e),n+"("+t.join(",")+")"},u.css=function(t){return k(t)},y.css=function(){return function(t,e,n){n.prototype=t.prototype;var r=new n,a=t.apply(r,e);return Object(a)===a?a:r}(r,Et.call(arguments).concat(["css"]),function(){})},r.prototype.css=function(t){return null==t&&(t="rgb"),"rgb"===t.slice(0,3)?it(this._rgb):"hsl"===t.slice(0,3)?j(this.hsl(),this.alpha()):void 0},u.named=function(t){return M(kt[t])},c.push({p:5,test:function(t){if(1===arguments.length&&null!=kt[t])return"named"}}),r.prototype.name=function(t){var e,n;for(n in arguments.length&&(kt[t]&&(this._rgb=M(kt[t])),this._rgb[3]=1),e=this.hex("rgb"),kt)if(e===kt[n])return n;return e},B=function(){var t,e,n,r;return n=(r=xt(arguments))[0],t=r[1],e=r[2],[n,x(e*=a)*t,vt(e)*t]},H=function(){var t,e,n,r,a,i,o,g,C;return o=(n=xt(arguments))[0],a=n[1],i=n[2],t=(g=B(o,a,i))[0],e=g[1],r=g[2],[(C=Y(t,e,r))[0],C[1],r=C[2],n.length>3?n[3]:1]},U=function(){var t,e,n,r,a,i;return a=(i=xt(arguments))[0],t=i[1],e=i[2],n=yt(t*t+e*e),r=(h(e,t)*C+360)%360,0===bt(1e4*n)&&(r=Number.NaN),[a,n,r]},st=function(){var t,e,n,r,a,i,o;return a=(i=xt(arguments))[0],n=i[1],e=i[2],r=(o=ct(a,n,e))[0],t=o[1],e=o[2],U(r,t,e)},y.lch=function(){var t;return t=xt(arguments),new r(t,"lch")},y.hcl=function(){var t;return t=xt(arguments),new r(t,"hcl")},u.lch=H,u.hcl=function(){var t,e,n,r;return e=(r=xt(arguments))[0],t=r[1],n=r[2],H([n,t,e])},r.prototype.lch=function(){return st(this._rgb)},r.prototype.hcl=function(){return st(this._rgb).reverse()},at=function(t){var e,n,r,a,i,o;return null==t&&(t="rgb"),i=(o=xt(arguments))[0],r=o[1],e=o[2],r/=255,e/=255,[(1-(i/=255)-(a=1-Math.max(i,Math.max(r,e))))*(n=a<1?1/(1-a):0),(1-r-a)*n,(1-e-a)*n,a]},w=function(){var t,e,n,r,a,i;return n=(e=xt(arguments))[0],a=e[1],i=e[2],r=e[3],t=e.length>4?e[4]:1,1===r?[0,0,0,t]:[n>=1?0:255*(1-n)*(1-r),a>=1?0:255*(1-a)*(1-r),i>=1?0:255*(1-i)*(1-r),t]},u.cmyk=function(){return w(xt(arguments))},y.cmyk=function(){return function(t,e,n){n.prototype=t.prototype;var r=new n,a=t.apply(r,e);return Object(a)===a?a:r}(r,Et.call(arguments).concat(["cmyk"]),function(){})},r.prototype.cmyk=function(){return at(this._rgb)},u.gl=function(){var t,e,n,r,a;for(r=function(){var t,n;for(e in n=[],t=xt(arguments))a=t[e],n.push(a);return n}.apply(this,arguments),t=n=0;n<=2;t=++n)r[t]*=255;return r},y.gl=function(){return function(t,e,n){n.prototype=t.prototype;var r=new n,a=t.apply(r,e);return Object(a)===a?a:r}(r,Et.call(arguments).concat(["gl"]),function(){})},r.prototype.gl=function(){var t;return[(t=this._rgb)[0]/255,t[1]/255,t[2]/255,t[3]]},ut=function(t,e,n){var r;return t=(r=xt(arguments))[0],e=r[1],n=r[2],.2126*(t=Q(t))+.7152*(e=Q(e))+.0722*(n=Q(n))},Q=function(t){return(t/=255)<=.03928?t/12.92:rt((t+.055)/1.055,2.4)},G=function(t,e,n,a){var i,o;return i=t._rgb,o=e._rgb,new r(i[0]+n*(o[0]-i[0]),i[1]+n*(o[1]-i[1]),i[2]+n*(o[2]-i[2]),a)},f.push(["rgb",G]),r.prototype.luminance=function(t,e){var n,r,a,i,o;return null==e&&(e="rgb"),arguments.length?(i=this._rgb,0===t?i=[0,0,0,this._rgb[3]]:1===t?i=[255,255,255,this[3]]:(n=ut(this._rgb),r=1e-7,a=20,o=function(n,i){var g,C;return g=(C=n.interpolate(i,.5,e)).luminance(),Math.abs(t-g)<r||!a--?C:g>t?o(n,C):o(C,i)},i=n>t?o(y("black"),this).rgba():o(this,y("white")).rgba()),y(i).alpha(this.alpha())):ut(this._rgb)},_t=function(t){var e,n,r,a;return(a=t/100)<66?(r=255,n=-155.25485562709179-.44596950469579133*(n=a-2)+104.49216199393888*X(n),e=a<20?0:.8274096064007395*(e=a-10)-254.76935184120902+115.67994401066147*X(e)):(r=351.97690566805693+.114206453784165*(r=a-55)-40.25366309332127*X(r),n=325.4494125711974+.07943456536662342*(n=a-50)-28.0852963507957*X(n),e=255),[r,n,e]},lt=function(){var t,e,n,r,a,i,o;for(r=(a=xt(arguments))[0],a[1],t=a[2],n=1e3,e=4e4,.4;e-n>.4;)(i=_t(o=.5*(e+n)))[2]/i[0]>=t/r?e=o:n=o;return bt(o)},y.temperature=y.kelvin=function(){return function(t,e,n){n.prototype=t.prototype;var r=new n,a=t.apply(r,e);return Object(a)===a?a:r}(r,Et.call(arguments).concat(["temperature"]),function(){})},u.temperature=u.kelvin=u.K=_t,r.prototype.temperature=function(){return lt(this._rgb)},r.prototype.kelvin=r.prototype.temperature,y.contrast=function(t,e){var n,a,i,o;return"string"!==(i=wt(t))&&"number"!==i||(t=new r(t)),"string"!==(o=wt(e))&&"number"!==o||(e=new r(e)),(n=t.luminance())>(a=e.luminance())?(n+.05)/(a+.05):(a+.05)/(n+.05)},y.distance=function(t,e,n){var a,i,o,g,C,A,I;for(i in null==n&&(n="lab"),"string"!==(C=wt(t))&&"number"!==C||(t=new r(t)),"string"!==(A=wt(e))&&"number"!==A||(e=new r(e)),o=t.get(n),g=e.get(n),I=0,o)I+=(a=(o[i]||0)-(g[i]||0))*a;return Math.sqrt(I)},y.deltaE=function(t,e,n,a){var i,g,C,A,I,c,s,u,f,d,p,b,m,v,y,_,w,k,T,O,E,P,S,M;for(null==n&&(n=1),null==a&&(a=1),"string"!==(y=wt(t))&&"number"!==y||(t=new r(t)),"string"!==(_=wt(e))&&"number"!==_||(e=new r(e)),i=(w=t.lab())[0],C=w[1],I=w[2],g=(k=e.lab())[0],A=k[1],c=k[2],s=yt(C*C+I*I),u=yt(A*A+c*c),O=i<16?.511:.040975*i/(1+.01765*i),T=.0638*s/(1+.0131*s)+.638,v=s<1e-6?0:180*h(I,C)/o;v<0;)v+=360;for(;v>=360;)v-=360;return E=v>=164&&v<=345?.56+l(.2*x(o*(v+168)/180)):.36+l(.4*x(o*(v+35)/180)),m=yt((f=s*s*s*s)/(f+1900)),yt((P=(i-g)/(n*O))*P+(S=(b=s-u)/(a*T))*S+((d=C-A)*d+(p=I-c)*p-b*b)/((M=T*(m*E+1-m))*M))},r.prototype.get=function(t){var e,n,r,a,i;return this,r=(a=t.split("."))[0],e=a[1],i=this[r](),e?(n=r.indexOf(e))>-1?i[n]:console.warn("unknown channel "+e+" in mode "+r):i},r.prototype.set=function(t,e){var n,r,a,i,o;if(this,a=(i=t.split("."))[0],n=i[1])if(o=this[a](),(r=a.indexOf(n))>-1)if("string"===wt(e))switch(e.charAt(0)){case"+":case"-":o[r]+=+e;break;case"*":o[r]*=+e.substr(1);break;case"/":o[r]/=+e.substr(1);break;default:o[r]=+e}else o[r]=e;else console.warn("unknown channel "+n+" in mode "+a);else o=e;return y(o,a).alpha(this.alpha())},r.prototype.clipped=function(){return this._rgb._clipped||!1},r.prototype.alpha=function(t){return arguments.length?y.rgb([this._rgb[0],this._rgb[1],this._rgb[2],t]):this._rgb[3]},r.prototype.darken=function(t){var e;return null==t&&(t=1),this,(e=this.lab())[0]-=i.Kn*t,y.lab(e).alpha(this.alpha())},r.prototype.brighten=function(t){return null==t&&(t=1),this.darken(-t)},r.prototype.darker=r.prototype.darken,r.prototype.brighter=r.prototype.brighten,r.prototype.saturate=function(t){var e;return null==t&&(t=1),this,(e=this.lch())[1]+=t*i.Kn,e[1]<0&&(e[1]=0),y.lch(e).alpha(this.alpha())},r.prototype.desaturate=function(t){return null==t&&(t=1),this.saturate(-t)},r.prototype.premultiply=function(){var t,e;return e=this.rgb(),t=this.alpha(),y(e[0]*t,e[1]*t,e[2]*t,t)},tt=function(t,e){return t*e/255},T=function(t,e){return t>e?e:t},K=function(t,e){return t>e?t:e},mt=function(t,e){return 255*(1-(1-t/255)*(1-e/255))},nt=function(t,e){return e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255))},v=function(t,e){return 255*(1-(1-e/255)/(t/255))},O=function(t,e){return 255===t?255:(t=e/255*255/(1-t/255))>255?255:t},(p=function(t,e,n){if(!p[n])throw"unknown blend mode "+n;return p[n](t,e)}).normal=(b=function(t){return function(e,n){var r,a;return r=y(n).rgb(),a=y(e).rgb(),y(t(r,a),"rgb")}})((E=function(t){return function(e,n){var r,a,i;for(i=[],r=a=0;a<=3;r=++a)i[r]=t(e[r],n[r]);return i}})(function(t,e){return t})),p.multiply=b(E(tt)),p.screen=b(E(mt)),p.overlay=b(E(nt)),p.darken=b(E(T)),p.lighten=b(E(K)),p.dodge=b(E(O)),p.burn=b(E(v)),y.blend=p,y.analyze=function(t){var e,n,r,a;for(r={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0},n=0,e=t.length;n<e;n++)null==(a=t[n])||isNaN(a)||(r.values.push(a),r.sum+=a,a<r.min&&(r.min=a),a>r.max&&(r.max=a),r.count+=1);return r.domain=[r.min,r.max],r.limits=function(t,e){return y.limits(r,t,e)},r},y.scale=function(t,e){var n,r,a,i,o,g,C,A,I,c,s,u,f,l,h,d,p,b,m,v,_;return I="rgb",c=y("#ccc"),l=0,!1,o=[0,1],f=[],u=[0,0],n=!1,a=[],s=!1,A=0,C=1,i=!1,r={},h=!0,g=1,v=function(t){var e,n,r,i,o,g;if(null==t&&(t=["#fff","#000"]),null!=t&&"string"===wt(t)&&null!=y.brewer&&(t=y.brewer[t]||y.brewer[t.toLowerCase()]||t),"array"===wt(t)){for(1===t.length&&(t=[t[0],t[0]]),e=r=0,i=(t=t.slice(0)).length-1;0<=i?r<=i:r>=i;e=0<=i?++r:--r)n=t[e],"string"===wt(n)&&(t[e]=y(n));for(f.length=0,e=g=0,o=t.length-1;0<=o?g<=o:g>=o;e=0<=o?++g:--g)f.push(e/(t.length-1))}return m(),a=t},p=function(t){var e,r;if(null!=n){for(r=n.length-1,e=0;e<r&&t>=n[e];)e++;return e-1}return 0},_=function(t){return t},function(t){var e,r,a,i,o;return o=t,n.length>2&&(i=n.length-1,e=p(t),a=n[0]+(n[1]-n[0])*(0+.5*l),r=n[i-1]+(n[i]-n[i-1])*(1-.5*l),o=A+(n[e]+.5*(n[e+1]-n[e])-a)/(r-a)*(C-A)),o},b=function(t,e){var i,o,s,l,d,b,m;if(null==e&&(e=!1),isNaN(t))return c;if(m=e?t:n&&n.length>2?p(t)/(n.length-2):C!==A?(t-A)/(C-A):1,e||(m=_(m)),1!==g&&(m=rt(m,g)),m=u[0]+m*(1-u[0]-u[1]),m=Math.min(1,Math.max(0,m)),s=Math.floor(1e4*m),h&&r[s])i=r[s];else{if("array"===wt(a))for(o=l=0,b=f.length-1;0<=b?l<=b:l>=b;o=0<=b?++l:--l){if(m<=(d=f[o])){i=a[o];break}if(m>=d&&o===f.length-1){i=a[o];break}if(m>d&&m<f[o+1]){m=(m-d)/(f[o+1]-d),i=y.interpolate(a[o],a[o+1],m,I);break}}else"function"===wt(a)&&(i=a(m));h&&(r[s]=i)}return i},m=function(){return r={}},v(t),(d=function(t){var e;return e=y(b(t)),s&&e[s]?e[s]():e}).classes=function(t){var e;return null!=t?("array"===wt(t)?(n=t,o=[t[0],t[t.length-1]]):(e=y.analyze(o),n=0===t?[e.min,e.max]:y.limits(e,"e",t)),d):n},d.domain=function(t){var e,n,r,i,g,I,c;if(!arguments.length)return o;if(A=t[0],C=t[t.length-1],f=[],r=a.length,t.length===r&&A!==C)for(g=0,i=t.length;g<i;g++)n=t[g],f.push((n-A)/(C-A));else for(e=c=0,I=r-1;0<=I?c<=I:c>=I;e=0<=I?++c:--c)f.push(e/(r-1));return o=[A,C],d},d.mode=function(t){return arguments.length?(I=t,m(),d):I},d.range=function(t,e){return v(t),d},d.out=function(t){return s=t,d},d.spread=function(t){return arguments.length?(l=t,d):l},d.correctLightness=function(t){return null==t&&(t=!0),i=t,m(),_=i?function(t){var e,n,r,a,i,o,g,C,A;for(e=b(0,!0).lab()[0],n=b(1,!0).lab()[0],g=e>n,r=b(t,!0).lab()[0],a=r-(i=e+(n-e)*t),C=0,A=1,o=20;Math.abs(a)>.01&&o-- >0;)g&&(a*=-1),a<0?(C=t,t+=.5*(A-t)):(A=t,t+=.5*(C-t)),r=b(t,!0).lab()[0],a=r-i;return t}:function(t){return t},d},d.padding=function(t){return null!=t?("number"===wt(t)&&(t=[t,t]),u=t,d):u},d.colors=function(e,r){var i,g,C,A,I,c,s,u;if(arguments.length<2&&(r="hex"),I=[],0===arguments.length)I=a.slice(0);else if(1===e)I=[d(.5)];else if(e>1)g=o[0],i=o[1]-g,I=function(){c=[];for(var t=0;0<=e?t<e:t>e;0<=e?t++:t--)c.push(t);return c}.apply(this).map(function(t){return d(g+t/(e-1)*i)});else{if(t=[],s=[],n&&n.length>2)for(C=u=1,A=n.length;1<=A?u<A:u>A;C=1<=A?++u:--u)s.push(.5*(n[C-1]+n[C]));else s=o;I=s.map(function(t){return d(t)})}return y[r]&&(I=I.map(function(t){return t[r]()})),I},d.cache=function(t){return null!=t?(h=t,d):h},d.gamma=function(t){return null!=t?(g=t,d):g},d},null==y.scales&&(y.scales={}),y.scales.cool=function(){return y.scale([y.hsl(180,1,.9),y.hsl(250,.7,.4)])},y.scales.hot=function(){return y.scale(["#000","#f00","#ff0","#fff"],[0,.25,.75,1]).mode("rgb")},y.analyze=function(t,e,n){var r,a,i,o,g,C;if(g={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0},null==n&&(n=function(){return!0}),r=function(t){null==t||isNaN(t)||(g.values.push(t),g.sum+=t,t<g.min&&(g.min=t),t>g.max&&(g.max=t),g.count+=1)},C=function(t,a){if(n(t,a))return null!=e&&"function"===wt(e)?r(e(t)):null!=e&&"string"===wt(e)||"number"===wt(e)?r(t[e]):r(t)},"array"===wt(t))for(o=0,i=t.length;o<i;o++)C(t[o]);else for(a in t)C(t[a],a);return g.domain=[g.min,g.max],g.limits=function(t,e){return y.limits(g,t,e)},g},y.limits=function(t,e,n){var r,a,i,o,g,C,A,I,c,s,u,f,h,d,p,b,m,v,_,w,x,k,T,O,E,S,M,N,j,R,z,D,L,W,F,Z,G,U,Y,V,B,H,K,q,Q,J,tt,et,nt,at,it,ot,gt,Ct,At;if(null==e&&(e="equal"),null==n&&(n=7),"array"===wt(t)&&(t=y.analyze(t)),E=t.min,$=t.max,t.sum,Ct=t.values.sort(function(t,e){return t-e}),1===n)return[E,$];if(T=[],"c"===e.substr(0,1)&&(T.push(E),T.push($)),"e"===e.substr(0,1)){for(T.push(E),w=z=1,F=n-1;1<=F?z<=F:z>=F;w=1<=F?++z:--z)T.push(E+w/n*($-E));T.push($)}else if("l"===e.substr(0,1)){if(E<=0)throw"Logarithmic scales are only possible for values > 0";for(S=Math.LOG10E*X(E),O=Math.LOG10E*X($),T.push(E),w=At=1,Z=n-1;1<=Z?At<=Z:At>=Z;w=1<=Z?++At:--At)T.push(rt(10,S+w/n*(O-S)));T.push($)}else if("q"===e.substr(0,1)){for(T.push(E),w=r=1,H=n-1;1<=H?r<=H:r>=H;w=1<=H?++r:--r)D=(Ct.length-1)*w/n,(L=P(D))===D?T.push(Ct[L]):(W=D-L,T.push(Ct[L]*(1-W)+Ct[L+1]*W));T.push($)}else if("k"===e.substr(0,1)){for(N=Ct.length,d=new Array(N),v=new Array(n),at=!0,j=0,b=null,(b=[]).push(E),w=a=1,K=n-1;1<=K?a<=K:a>=K;w=1<=K?++a:--a)b.push(E+w/n*($-E));for(b.push($);at;){for(x=i=0,q=n-1;0<=q?i<=q:i>=q;x=0<=q?++i:--i)v[x]=0;for(w=o=0,Q=N-1;0<=Q?o<=Q:o>=Q;w=0<=Q?++o:--o){for(gt=Ct[w],M=Number.MAX_VALUE,x=g=0,J=n-1;0<=J?g<=J:g>=J;x=0<=J?++g:--g)(_=l(b[x]-gt))<M&&(M=_,p=x);v[p]++,d[w]=p}for(R=new Array(n),x=C=0,tt=n-1;0<=tt?C<=tt:C>=tt;x=0<=tt?++C:--C)R[x]=null;for(w=A=0,et=N-1;0<=et?A<=et:A>=et;w=0<=et?++A:--A)null===R[m=d[w]]?R[m]=Ct[w]:R[m]+=Ct[w];for(x=I=0,nt=n-1;0<=nt?I<=nt:I>=nt;x=0<=nt?++I:--I)R[x]*=1/v[x];for(at=!1,x=c=0,G=n-1;0<=G?c<=G:c>=G;x=0<=G?++c:--c)if(R[x]!==b[w]){at=!0;break}b=R,++j>200&&(at=!1)}for(k={},x=s=0,U=n-1;0<=U?s<=U:s>=U;x=0<=U?++s:--s)k[x]=[];for(w=u=0,Y=N-1;0<=Y?u<=Y:u>=Y;w=0<=Y?++u:--u)k[m=d[w]].push(Ct[w]);for(it=[],x=f=0,V=n-1;0<=V?f<=V:f>=V;x=0<=V?++f:--f)it.push(k[x][0]),it.push(k[x][k[x].length-1]);for(it=it.sort(function(t,e){return t-e}),T.push(it[0]),w=h=1,B=it.length-1;h<=B;w=h+=2)ot=it[w],isNaN(ot)||-1!==T.indexOf(ot)||T.push(ot)}return T},N=function(t,e,n){var r,a,i,o;return t=(r=xt(arguments))[0],e=r[1],n=r[2],isNaN(t)&&(t=0),(t/=360)<1/3?i=1-((a=(1-e)/3)+(o=(1+e*x(A*t)/x(g-A*t))/3)):t<2/3?a=1-((o=(1-e)/3)+(i=(1+e*x(A*(t-=1/3))/x(g-A*t))/3)):o=1-((i=(1-e)/3)+(a=(1+e*x(A*(t-=2/3))/x(g-A*t))/3)),[255*(o=q(n*o*3)),255*(i=q(n*i*3)),255*(a=q(n*a*3)),r.length>3?r[3]:1]},Ct=function(){var t,e,n,r,a,i,o;return a=(i=xt(arguments))[0],e=i[1],t=i[2],A=2*Math.PI,a/=255,e/=255,t/=255,0===(o=1-Math.min(a,e,t)/(r=(a+e+t)/3))?n=0:(n=(a-e+(a-t))/2,n/=Math.sqrt((a-e)*(a-e)+(a-t)*(e-t)),n=Math.acos(n),t>e&&(n=A-n),n/=A),[360*n,o,r]},y.hsi=function(){return function(t,e,n){n.prototype=t.prototype;var r=new n,a=t.apply(r,e);return Object(a)===a?a:r}(r,Et.call(arguments).concat(["hsi"]),function(){})},u.hsi=N,r.prototype.hsi=function(){return Ct(this._rgb)},L=function(t,e,n,r){var a,i,o,g,C,A,I,c,s,u;return"hsl"===r?(s=t.hsl(),u=e.hsl()):"hsv"===r?(s=t.hsv(),u=e.hsv()):"hcg"===r?(s=t.hcg(),u=e.hcg()):"hsi"===r?(s=t.hsi(),u=e.hsi()):"lch"!==r&&"hcl"!==r||(r="hcl",s=t.hcl(),u=e.hcl()),"h"===r.substr(0,1)&&(i=s[0],I=s[1],g=s[2],o=u[0],c=u[1],C=u[2]),isNaN(i)||isNaN(o)?isNaN(i)?isNaN(o)?a=Number.NaN:(a=o,1!==g&&0!==g||"hsv"===r||(A=c)):(a=i,1!==C&&0!==C||"hsv"===r||(A=I)):a=i+n*(o>i&&o-i>180?o-(i+360):o<i&&i-o>180?o+360-i:o-i),null==A&&(A=I+n*(c-I)),y[r](a,A,g+n*(C-g))},Z=function(t,e,n,r){var a,i;return a=t.num(),i=e.num(),y.num(a+(i-a)*n,"num")},(f=f.concat(function(){var t,e,n,r;for(r=[],e=0,t=(n=["hsv","hsl","hsi","hcl","lch","hcg"]).length;e<t;e++)J=n[e],r.push([J,L]);return r}())).push(["num",Z]),W=function(t,e,n,a){var i,o;return i=t.lab(),o=e.lab(),new r(i[0]+n*(o[0]-i[0]),i[1]+n*(o[1]-i[1]),i[2]+n*(o[2]-i[2]),a)},f.push(["lab",W])}).call(this)}).call(this,n(31)(t))},function(t,e){t.exports=ReactDOM},function(t,e,n){"use strict";(function(t){var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,r){return t[0]===e&&(n=r,!0)}),n}return function(){function e(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n+=1){var a=r[n];t.call(e,a[1],a[0])}},Object.defineProperties(e.prototype,n),e}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,a=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(a):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},o=2,g=["top","right","bottom","left","width","height","size","weight"],C="undefined"!=typeof MutationObserver,A=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,a=0;function g(){n&&(n=!1,t()),r&&A()}function C(){i(g)}function A(){var t=Date.now();if(n){if(t-a<o)return;r=!0}else n=!0,r=!1,setTimeout(C,e);a=t}return A}(this.refresh.bind(this),20)};A.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},A.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},A.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},A.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},A.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),C?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},A.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},A.prototype.onTransitionEnd_=function(t){var e=t.propertyName;void 0===e&&(e=""),g.some(function(t){return!!~e.indexOf(t)})&&this.refresh()},A.getInstance=function(){return this.instance_||(this.instance_=new A),this.instance_},A.instance_=null;var I=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n+=1){var a=r[n];Object.defineProperty(t,a,{value:e[a],enumerable:!1,writable:!1,configurable:!0})}return t},c=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||a},s=p(0,0,0,0);function u(t){return parseFloat(t)||0}function f(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return e.reduce(function(e,n){return e+u(t["border-"+n+"-width"])},0)}function l(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return s;var r=c(t).getComputedStyle(t),a=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n+=1){var a=r[n],i=t["padding-"+a];e[a]=u(i)}return e}(r),i=a.left+a.right,o=a.top+a.bottom,g=u(r.width),C=u(r.height);if("border-box"===r.boxSizing&&(Math.round(g+i)!==e&&(g-=f(r,"left","right")+i),Math.round(C+o)!==n&&(C-=f(r,"top","bottom")+o)),!function(t){return t===c(t).document.documentElement}(t)){var A=Math.round(g+i)-e,I=Math.round(C+o)-n;1!==Math.abs(A)&&(g-=A),1!==Math.abs(I)&&(C-=I)}return p(a.left,a.top,g,C)}var h="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof c(t).SVGGraphicsElement}:function(t){return t instanceof c(t).SVGElement&&"function"==typeof t.getBBox};function d(t){return r?h(t)?function(t){var e=t.getBBox();return p(0,0,e.width,e.height)}(t):l(t):s}function p(t,e,n,r){return{x:t,y:e,width:n,height:r}}var b=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=p(0,0,0,0),this.target=t};b.prototype.isActive=function(){var t=d(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},b.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var m=function(t,e){var n=function(t){var e=t.x,n=t.y,r=t.width,a=t.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(i.prototype);return I(o,{x:e,y:n,width:r,height:a,top:n,right:e+r,bottom:a+n,left:e}),o}(e);I(this,{target:t,contentRect:n})},v=function(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r};v.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof c(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new b(t)),this.controller_.addObserver(this),this.controller_.refresh())}},v.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof c(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},v.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},v.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},v.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new m(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},v.prototype.clearActive=function(){this.activeObservations_.splice(0)},v.prototype.hasActive=function(){return this.activeObservations_.length>0};var y="undefined"!=typeof WeakMap?new WeakMap:new n,_=function(t){if(!(this instanceof _))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=A.getInstance(),n=new v(t,e,this);y.set(this,n)};["observe","unobserve","disconnect"].forEach(function(t){_.prototype[t]=function(){return(e=y.get(this))[t].apply(e,arguments);var e}});var w=void 0!==a.ResizeObserver?a.ResizeObserver:_;e.a=w}).call(this,n(6))},function(t,e,n){t.exports=n(44)},function(t,e,n){var r=n(15);"string"==typeof r&&(r=[[t.i,r,""]]);var a={transform:void 0};n(4)(r,a);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(3)(!1)).push([t.i,".full{max-width:100%;padding:0}h2.dv-title{font-size:16px;line-height:1.2;padding:10px 0;letter-spacing:normal}.dv-description,h2.dv-title{font-family:Circular;margin:0}.dv-description{font-size:14px;line-height:1.5;padding:0 0 2rem}.dv-app{display:flex;flex-direction:column;min-height:100%;margin-top:45px;margin-bottom:45px}.dv-controls{width:100%;padding:1rem 2rem;display:flex;align-items:flex-start;justify-content:center;background-color:#fafafa}.dv-map,.dv-table{width:100%;height:50vh;background-color:#e5e5e5}.dv-table{height:auto;padding:2rem 1rem}.switch-view{padding:2rem 0;border-top:1px solid #ededed;border-bottom:1px solid #ededed}.sliders{padding-top:2rem}.dv-map-controls{position:absolute;top:1rem;right:1rem}.dv-data-table__filter{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;margin-bottom:.5rem}@media (min-width:1024px){.dv-app{flex-direction:row;height:100vh}.dv-controls{width:33.33333%;padding:2rem 4rem;overflow:scroll;height:100%}.dv-map,.dv-table{width:66.66667%}.dv-map,.dv-table{height:100%}.dv-table{overflow:scroll;padding:2rem 4rem}.dv-data-table__filter{flex-direction:row;justify-content:space-between;align-items:center}}.dv-choro-legend svg{width:15px}",""])},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var a,i=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(i)?t:(a=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(a)+")")})}},function(t,e,n){var r=n(18);"string"==typeof r&&(r=[[t.i,r,""]]);var a={transform:void 0};n(4)(r,a);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(3)(!1)).push([t.i,".mw-850{max-width:850px}.mw-650,.mw-850{margin-left:auto;margin-right:auto}.mw-650{max-width:650px}.overflow-auto{overflow:auto}.chart__title{font-size:1.125rem;line-height:1.35rem;margin-bottom:2rem;margin-top:2rem}.chart__meta-container{max-width:650px;margin-left:auto;margin-right:auto}.chart__figure{position:relative}.chart__source{font-size:.75rem;color:#2c2f35}svg{width:100%;height:100%}",""])},function(t,e,n){"use strict";var r=n(20);function a(){}t.exports=function(){function t(t,e,n,a,i,o){if(o!==r){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=a,n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){var r=n(22);"string"==typeof r&&(r=[[t.i,r,""]]);var a={transform:void 0};n(4)(r,a);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(3)(!1)).push([t.i,".dv-search{width:16rem;padding:.5rem .5rem .5rem 2rem;margin:.5rem 0;font-size:14px;color:#333;background:#fff;background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjMyIiB3aWR0aD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE5LjQyNyAyMS40MjdhOC41IDguNSAwIDEgMSAyLTJsNS41ODUgNS41ODVjLjU1LjU1LjU0NiAxLjQzIDAgMS45NzZsLS4wMjQuMDI0YTEuMzk5IDEuMzk5IDAgMCAxLTEuOTc2IDBsLTUuNTg1LTUuNTg1ek0xNC41IDIxYTYuNSA2LjUgMCAxIDAgMC0xMyA2LjUgNi41IDAgMCAwIDAgMTN6IiBmaWxsPSIjOTI5MjkyIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=);background-size:1.5rem;background-repeat:no-repeat;background-position-y:center;background-position-x:.25rem;outline:0;border:1px solid #d4d4d4}.dv-search::-webkit-input-placeholder{color:#333}.dv-search::-moz-placeholder{color:#333}.dv-search:-ms-input-placeholder{color:#333}.dv-search:-moz-placeholder{color:#333}",""])},function(t,e,n){var r=n(24);"string"==typeof r&&(r=[[t.i,r,""]]);var a={transform:void 0};n(4)(r,a);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(3)(!1)).push([t.i,".dv-select{-webkit-appearance:none;-moz-appearance:none;color:#333;background-color:#fff;border:1px solid #ddd;border-radius:0;margin:.5rem 0;padding:.4rem 2rem .4rem .4rem;font-family:Circular;font-size:14px;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' height='20' width='20' fill='%23CCC'%3E%3Cpath d='M4.516 7.548c.436-.446 1.043-.481 1.576 0L10 11.295l3.908-3.747c.533-.481 1.141-.446 1.574 0 .436.445.408 1.197 0 1.615-.406.418-4.695 4.502-4.695 4.502a1.095 1.095 0 0 1-1.576 0S4.924 9.581 4.516 9.163s-.436-1.17 0-1.615z'/%3E%3C/svg%3E\");background-position:top 50% right .5rem;background-origin:padding-box;background-repeat:no-repeat}",""])},function(t,e,n){var r=n(26);"string"==typeof r&&(r=[[t.i,r,""]]);var a={transform:void 0};n(4)(r,a);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(3)(!1)).push([t.i,'.ReactTable{position:relative;display:flex;flex-direction:column;border:1px solid rgba(0,0,0,.1)}.ReactTable *{box-sizing:border-box}.ReactTable .rt-table{flex:auto 1;display:flex;flex-direction:column;align-items:stretch;width:100%;border-collapse:collapse;overflow:auto}.ReactTable .rt-thead{flex:1 0 auto;display:flex;flex-direction:column;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ReactTable .rt-thead.-headerGroups{background:rgba(0,0,0,.03)}.ReactTable .rt-thead.-filters,.ReactTable .rt-thead.-headerGroups{border-bottom:1px solid rgba(0,0,0,.05)}.ReactTable .rt-thead.-filters input,.ReactTable .rt-thead.-filters select{border:1px solid rgba(0,0,0,.1);background:#fff;padding:5px 7px;font-size:inherit;border-radius:3px;font-weight:400;outline:none}.ReactTable .rt-thead.-filters .rt-th{border-right:1px solid rgba(0,0,0,.02)}.ReactTable .rt-thead.-header{box-shadow:0 2px 15px 0 rgba(0,0,0,.15)}.ReactTable .rt-thead .rt-tr{text-align:center}.ReactTable .rt-thead .rt-td,.ReactTable .rt-thead .rt-th{padding:5px;line-height:normal;position:relative;border-right:1px solid rgba(0,0,0,.05);transition:box-shadow .3s cubic-bezier(.175,.885,.32,1.275);box-shadow:inset 0 0 0 0 transparent}.ReactTable .rt-thead .rt-td.-sort-asc,.ReactTable .rt-thead .rt-th.-sort-asc{box-shadow:inset 0 3px 0 0 rgba(0,0,0,.6)}.ReactTable .rt-thead .rt-td.-sort-desc,.ReactTable .rt-thead .rt-th.-sort-desc{box-shadow:inset 0 -3px 0 0 rgba(0,0,0,.6)}.ReactTable .rt-thead .rt-td.-cursor-pointer,.ReactTable .rt-thead .rt-th.-cursor-pointer{cursor:pointer}.ReactTable .rt-thead .rt-td:last-child,.ReactTable .rt-thead .rt-th:last-child{border-right:0}.ReactTable .rt-thead .rt-resizable-header{overflow:visible}.ReactTable .rt-thead .rt-resizable-header:last-child{overflow:hidden}.ReactTable .rt-thead .rt-resizable-header-content{overflow:hidden;text-overflow:ellipsis}.ReactTable .rt-thead .rt-header-pivot{border-right-color:#f7f7f7}.ReactTable .rt-thead .rt-header-pivot:after,.ReactTable .rt-thead .rt-header-pivot:before{left:100%;top:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.ReactTable .rt-thead .rt-header-pivot:after{border-color:hsla(0,0%,100%,0) hsla(0,0%,100%,0) hsla(0,0%,100%,0) #fff;border-width:8px;margin-top:-8px}.ReactTable .rt-thead .rt-header-pivot:before{border-color:hsla(0,0%,40%,0) hsla(0,0%,40%,0) hsla(0,0%,40%,0) #f7f7f7;border-width:10px;margin-top:-10px}.ReactTable .rt-tbody{flex:99999 1 auto;display:flex;flex-direction:column;overflow:auto}.ReactTable .rt-tbody .rt-tr-group{border-bottom:1px solid rgba(0,0,0,.05)}.ReactTable .rt-tbody .rt-tr-group:last-child{border-bottom:0}.ReactTable .rt-tbody .rt-td{border-right:1px solid rgba(0,0,0,.02)}.ReactTable .rt-tbody .rt-td:last-child{border-right:0}.ReactTable .rt-tbody .rt-expandable{cursor:pointer;text-overflow:clip}.ReactTable .rt-tr-group{flex:1 0 auto;display:flex;flex-direction:column;align-items:stretch}.ReactTable .rt-tr{flex:1 0 auto;display:inline-flex}.ReactTable .rt-td,.ReactTable .rt-th{flex:1 0;white-space:nowrap;text-overflow:ellipsis;padding:7px 5px;overflow:hidden;transition:.3s ease;transition-property:width,min-width,padding,opacity}.ReactTable .rt-td.-hidden,.ReactTable .rt-th.-hidden{width:0!important;min-width:0!important;padding:0!important;border:0!important;opacity:0!important}.ReactTable .rt-expander{display:inline-block;position:relative;color:transparent;margin:0 10px}.ReactTable .rt-expander:after{content:"";position:absolute;width:0;height:0;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(-90deg);transform:translate(-50%,-50%) rotate(-90deg);border-left:5.04px solid transparent;border-right:5.04px solid transparent;border-top:7px solid rgba(0,0,0,.8);transition:all .3s cubic-bezier(.175,.885,.32,1.275);cursor:pointer}.ReactTable .rt-expander.-open:after{-webkit-transform:translate(-50%,-50%) rotate(0);transform:translate(-50%,-50%) rotate(0)}.ReactTable .rt-resizer{display:inline-block;position:absolute;width:36px;top:0;bottom:0;right:-18px;cursor:col-resize;z-index:10}.ReactTable .rt-tfoot{flex:1 0 auto;display:flex;flex-direction:column;box-shadow:0 0 15px 0 rgba(0,0,0,.15)}.ReactTable .rt-tfoot .rt-td{border-right:1px solid rgba(0,0,0,.05)}.ReactTable .rt-tfoot .rt-td:last-child{border-right:0}.ReactTable.-striped .rt-tr.-odd{background:rgba(0,0,0,.03)}.ReactTable.-highlight .rt-tbody .rt-tr:not(.-padRow):hover{background:rgba(0,0,0,.05)}.ReactTable .-pagination{z-index:1;display:flex;justify-content:space-between;align-items:stretch;flex-wrap:wrap;padding:3px;box-shadow:0 0 15px 0 rgba(0,0,0,.1);border-top:2px solid rgba(0,0,0,.1)}.ReactTable .-pagination input,.ReactTable .-pagination select{border:1px solid rgba(0,0,0,.1);background:#fff;padding:5px 7px;font-size:inherit;border-radius:3px;font-weight:400;outline:none}.ReactTable .-pagination .-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;width:100%;height:100%;border:0;border-radius:3px;padding:6px;font-size:1em;color:rgba(0,0,0,.6);background:rgba(0,0,0,.1);transition:all .1s ease;cursor:pointer;outline:none}.ReactTable .-pagination .-btn[disabled]{opacity:.5;cursor:default}.ReactTable .-pagination .-btn:not([disabled]):hover{background:rgba(0,0,0,.3);color:#fff}.ReactTable .-pagination .-next,.ReactTable .-pagination .-previous{flex:1 1;text-align:center}.ReactTable .-pagination .-center{flex:1.5 1;text-align:center;margin-bottom:0;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-around}.ReactTable .-pagination .-pageInfo{display:inline-block;margin:3px 10px;white-space:nowrap}.ReactTable .-pagination .-pageJump{display:inline-block}.ReactTable .-pagination .-pageJump input{width:70px;text-align:center}.ReactTable .-pagination .-pageSizeOptions{margin:3px 10px}.ReactTable .rt-noData{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:1;padding:20px;color:rgba(0,0,0,.5)}.ReactTable .-loading,.ReactTable .rt-noData{display:block;position:absolute;background:hsla(0,0%,100%,.8);transition:all .3s ease;pointer-events:none}.ReactTable .-loading{left:0;right:0;top:0;bottom:0;z-index:-1;opacity:0}.ReactTable .-loading>div{position:absolute;display:block;text-align:center;width:100%;top:50%;left:0;font-size:15px;color:rgba(0,0,0,.6);-webkit-transform:translateY(-52%);transform:translateY(-52%);transition:all .3s cubic-bezier(.25,.46,.45,.94)}.ReactTable .-loading.-active{opacity:1;z-index:2;pointer-events:all}.ReactTable .-loading.-active>div{-webkit-transform:translateY(50%);transform:translateY(50%)}.ReactTable .rt-resizing .rt-td,.ReactTable .rt-resizing .rt-th{transition:none!important;cursor:col-resize;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}',""])},function(t,e,n){var r=n(28);"string"==typeof r&&(r=[[t.i,r,""]]);var a={transform:void 0};n(4)(r,a);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(3)(!1)).push([t.i,".ReactTable{border:none}.ReactTable .rt-table{border:1px solid rgba(0,0,0,.1)}.ReactTable .rt-thead.-header{box-shadow:none}.ReactTable .rt-thead{text-align:center;background-color:#fff;color:#2c2f35;padding:.5rem 0;font-weight:700}.ReactTable .rt-td,.ReactTable .rt-th{white-space:normal;padding:10px;font-size:14px}.rt-tr.-even{background-color:#e5e5e5!important}.ReactTable .rt-resizable-header{padding:6px 24px!important;box-shadow:none!important;background-position:100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7XQMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC);background-repeat:no-repeat}.ReactTable .rt-thead .rt-th{display:flex;justify-content:center;align-items:center}.-odd,.-odd .-sticky{background-color:#f4f4f4!important}.rt-tbody{overflow:visible!important}.-centered{justify-content:start;text-align:left}.-centered,.pagination{display:flex;align-items:center}.pagination{justify-content:space-between}.pagination__number-of-entries{font-size:14px;font-style:italic}.pagination__controls{display:flex;justify-content:flex-end;align-items:center;padding:1rem 0}.pagination__page-info{display:flex;align-items:center;padding:0 .5rem;font-size:14px}.pagination__page-jump input{width:4rem;height:2rem;padding:0 .25rem;margin:0 .5rem;border:1px solid #d4d4d4}.pagination__total-pages{padding-left:.25rem}.pagination__btn{padding:0 .5rem;font-size:14px;text-transform:capitalize;font-weight:700;letter-spacing:normal;color:#2c2f35;outline:none;border:none;background-color:transparent;cursor:pointer}.pagination__next .pagination__btn{padding-right:0}.pagination__btn:hover{color:#2ebcb3}.pagination__btn:disabled:hover{color:#2c2f35}.pagination__btn:disabled{cursor:not-allowed}.Table__pageButton--active{color:#2c2f35;font-weight:700}.rt-th.rt-resizable-header.-sort-asc{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAACXBIWXMAAAsTAAALEwEAmpwYAAA58mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxMTEgNzkuMTU4MzI1LCAyMDE1LzA5LzEwLTAxOjEwOjIwICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIgogICAgICAgICAgICB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIKICAgICAgICAgICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNSAoTWFjaW50b3NoKTwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8eG1wOkNyZWF0ZURhdGU+MjAxNi0wOS0yN1QxNDo0MToxNi0wNDowMDwveG1wOkNyZWF0ZURhdGU+CiAgICAgICAgIDx4bXA6TW9kaWZ5RGF0ZT4yMDE2LTA5LTI3VDE0OjQzOjAyLTA0OjAwPC94bXA6TW9kaWZ5RGF0ZT4KICAgICAgICAgPHhtcDpNZXRhZGF0YURhdGU+MjAxNi0wOS0yN1QxNDo0MzowMi0wNDowMDwveG1wOk1ldGFkYXRhRGF0ZT4KICAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9wbmc8L2RjOmZvcm1hdD4KICAgICAgICAgPHBob3Rvc2hvcDpDb2xvck1vZGU+MzwvcGhvdG9zaG9wOkNvbG9yTW9kZT4KICAgICAgICAgPHhtcE1NOkluc3RhbmNlSUQ+eG1wLmlpZDpkMTAxZTcyZS03YmM5LTQyNDQtYTkxYi0zZjhjN2U5YTExYjE8L3htcE1NOkluc3RhbmNlSUQ+CiAgICAgICAgIDx4bXBNTTpEb2N1bWVudElEPmFkb2JlOmRvY2lkOnBob3Rvc2hvcDphMWZkYjAwNC1jNTcwLTExNzktOGMyMy1iNzkyNjY4ZTkwYjk8L3htcE1NOkRvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+eG1wLmRpZDo3ZmUwODc5ZC1hNzhhLTQzYTQtODFmNy1mZTk4NjM0ZjcwN2I8L3htcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkhpc3Rvcnk+CiAgICAgICAgICAgIDxyZGY6U2VxPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5jcmVhdGVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDppbnN0YW5jZUlEPnhtcC5paWQ6N2ZlMDg3OWQtYTc4YS00M2E0LTgxZjctZmU5ODYzNGY3MDdiPC9zdEV2dDppbnN0YW5jZUlEPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDE2LTA5LTI3VDE0OjQxOjE2LTA0OjAwPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNSAoTWFjaW50b3NoKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6YWN0aW9uPnNhdmVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDppbnN0YW5jZUlEPnhtcC5paWQ6ZDEwMWU3MmUtN2JjOS00MjQ0LWE5MWItM2Y4YzdlOWExMWIxPC9zdEV2dDppbnN0YW5jZUlEPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDE2LTA5LTI3VDE0OjQzOjAyLTA0OjAwPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNSAoTWFjaW50b3NoKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MTk8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+MTk8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/Ps/9p2gAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAIlJREFUeNrs0q0NwlAAReFXUxKSTlFHbnLVcZiOgUSj2YMOwB4oFkHiETVNax6GmgbTnxRExbGfOiHGGOYqLIrJbGUuMukc2FmmlTlNwmR2Mk+ZKPOQyUdhMonM9QN1lTLJGKyQefWwSmY/CJPJZO49qOsmsxmCHWUamfpLjczh95+t2Ir9G/YeAPwn67OWPCHxAAAAAElFTkSuQmCC)}.rt-th.rt-resizable-header.-sort-desc{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAACXBIWXMAAAsTAAALEwEAmpwYAAA58mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxMTEgNzkuMTU4MzI1LCAyMDE1LzA5LzEwLTAxOjEwOjIwICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIgogICAgICAgICAgICB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIKICAgICAgICAgICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNSAoTWFjaW50b3NoKTwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8eG1wOkNyZWF0ZURhdGU+MjAxNi0wOS0yN1QxNDo0MToxNC0wNDowMDwveG1wOkNyZWF0ZURhdGU+CiAgICAgICAgIDx4bXA6TW9kaWZ5RGF0ZT4yMDE2LTA5LTI3VDE0OjQyOjQ2LTA0OjAwPC94bXA6TW9kaWZ5RGF0ZT4KICAgICAgICAgPHhtcDpNZXRhZGF0YURhdGU+MjAxNi0wOS0yN1QxNDo0Mjo0Ni0wNDowMDwveG1wOk1ldGFkYXRhRGF0ZT4KICAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9wbmc8L2RjOmZvcm1hdD4KICAgICAgICAgPHBob3Rvc2hvcDpDb2xvck1vZGU+MzwvcGhvdG9zaG9wOkNvbG9yTW9kZT4KICAgICAgICAgPHhtcE1NOkluc3RhbmNlSUQ+eG1wLmlpZDpmMzQzMzEwNS0xZDQxLTQxZjktYjc5ZS1kZDk5NTRhZmUyNTQ8L3htcE1NOkluc3RhbmNlSUQ+CiAgICAgICAgIDx4bXBNTTpEb2N1bWVudElEPmFkb2JlOmRvY2lkOnBob3Rvc2hvcDo5NGQxYTg3MS1jNTcwLTExNzktOGMyMy1iNzkyNjY4ZTkwYjk8L3htcE1NOkRvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+eG1wLmRpZDplNzA0OTcwNy02NDhjLTRkNTEtOGExNi0wZDFlOTdkNTlmZjY8L3htcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkhpc3Rvcnk+CiAgICAgICAgICAgIDxyZGY6U2VxPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5jcmVhdGVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDppbnN0YW5jZUlEPnhtcC5paWQ6ZTcwNDk3MDctNjQ4Yy00ZDUxLThhMTYtMGQxZTk3ZDU5ZmY2PC9zdEV2dDppbnN0YW5jZUlEPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDE2LTA5LTI3VDE0OjQxOjE0LTA0OjAwPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNSAoTWFjaW50b3NoKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6YWN0aW9uPnNhdmVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDppbnN0YW5jZUlEPnhtcC5paWQ6ZjM0MzMxMDUtMWQ0MS00MWY5LWI3OWUtZGQ5OTU0YWZlMjU0PC9zdEV2dDppbnN0YW5jZUlEPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDE2LTA5LTI3VDE0OjQyOjQ2LTA0OjAwPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNSAoTWFjaW50b3NoKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MTk8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+MTk8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/Pha0btIAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAIpJREFUeNrs0iEOwlAURNHWQELCKnBkkquuw7AMJBrNPmAB7APFRpB4BIYU8zGoBlOKgVSMPcl7M1UppfpWqgEbsL/AgqtgE7y/SRNcd8HGwWOwvMkpOO10ZnARvLWga3DZ+WfBOrhvYYdg/VEBwVnw/IIuwXmvNoOb4CO47T2N4Ci4C05+d7TPAQDI0+uzXmmUKgAAAABJRU5ErkJggg==)}",""])},function(t,e,n){var r=n(30);"string"==typeof r&&(r=[[t.i,r,""]]);var a={transform:void 0};n(4)(r,a);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(3)(!1)).push([t.i,".dv-range-slider{width:100%;padding-bottom:1rem;margin-bottom:1rem}.dv-range-slider__range{-webkit-appearance:none;box-sizing:border-box;width:100%;height:5px;border-radius:10px;border:none;background:#e3e3e3;outline:none;padding:0;margin:0}.dv-range-slider__range::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:16px;height:16px;border-radius:50%;border:none;background:#fff;box-shadow:inset 0 0 0 6px #2dd1ac;cursor:pointer}.dv-range-slider__range::-moz-range-thumb{width:16px;height:16px;border-radius:50%;border:none;background:#fff;box-shadow:inset 0 0 0 6px #2dd1ac;cursor:pointer}.dv-range-slider__range::-moz-range-progress{background-color:#2dd1ac}.dv-range-slider__range::-ms-fill-lower{background-color:#2dd1ac}.dv-range-slider__range-secondary::-webkit-slider-thumb{box-shadow:inset 0 0 0 6px #333}.dv-range-slider__range-secondary::-moz-range-thumb{box-shadow:inset 0 0 0 6px #333}.dv-range-slider__range-secondary::-moz-range-progress{background-color:#333}.dv-range-slider__range-secondary::-ms-fill-lower{background-color:#333}::-moz-range-track{background:#e3e3e3;border:0}input::-moz-focus-inner,input::-moz-focus-outer{border:0}.dv-range-slider__label-container{display:flex;justify-content:space-between;align-items:center;padding-bottom:.5rem}.dv-range-slider__label{font-size:14px;color:#333;padding-right:.25rem}.dv-range-slider__value{font-size:14px;color:#888;flex-shrink:0}",""])},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(33);"string"==typeof r&&(r=[[t.i,r,""]]);var a={transform:void 0};n(4)(r,a);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(3)(!1)).push([t.i,'.dv-checkbox-container{display:flex;align-items:flex-start;background-color:transparent}.dv-checkbox-container-horizontal,.dv-checkbox-container-vertical{flex-direction:column}.dv-checkbox-container-horizontal div{width:50%;padding-right:1rem}@media (min-width:1024px){.dv-checkbox-container-horizontal{flex-direction:row;flex-wrap:wrap}.dv-checkbox-container-horizontal div{width:50%;padding-right:1rem}}.dv-checkbox{cursor:pointer}.dv-checkbox input{-webkit-appearance:checkbox;position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;visibility:visible;white-space:nowrap}.dv-checkbox input:checked+.dv-checkbox-label:before{background-color:#333;border-color:#333}.dv-checkbox input:checked+.dv-checkbox-label:after{opacity:1;-webkit-transform:scale(1) rotate(-45deg);transform:scale(1) rotate(-45deg)}.dv-checkbox-label{font-size:14px;display:flex;align-items:center;cursor:pointer;position:relative;padding:0 0 0 1.5rem;margin:.5rem 0;min-height:1rem}.dv-checkbox-label:before{box-sizing:border-box;content:"";position:absolute;left:0;top:calc(50% - 8px);height:18px;width:18px;border:2px solid #333;background-color:transparent}.dv-checkbox-label:after{box-sizing:border-box;content:"";width:9px;height:5px;background:none;border-left:2px solid #fff;border-bottom:2px solid #fff;color:#fff;-webkit-transform:scale(0) rotate(-45deg);transform:scale(0) rotate(-45deg);position:absolute;left:5px;top:calc(50% - 2px)}',""])},function(t,e,n){var r=n(35);"string"==typeof r&&(r=[[t.i,r,""]]);var a={transform:void 0};n(4)(r,a);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(3)(!1)).push([t.i,".dv-btn{font-size:14px;text-transform:none;font-weight:400;letter-spacing:normal;padding:1rem 2rem;background-color:#fff;border:1px solid #333;border-left:none}.dv-btn:first-child{border-left:1px solid #333}.dv-btn:hover{cursor:pointer}.dv-btn.dv-btn-active{background-color:#333;color:#fff}.dv-btn-group{display:flex}",""])},function(t,e){function n(t,e,n){t instanceof RegExp&&(t=r(t,n)),e instanceof RegExp&&(e=r(e,n));var i=a(t,e,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+t.length,i[1]),post:n.slice(i[1]+e.length)}}function r(t,e){var n=e.match(t);return n?n[0]:null}function a(t,e,n){var r,a,i,o,g,C=n.indexOf(t),A=n.indexOf(e,C+1),I=C;if(C>=0&&A>0){for(r=[],i=n.length;I>=0&&!g;)I==C?(r.push(I),C=n.indexOf(t,I+1)):1==r.length?g=[r.pop(),A]:((a=r.pop())<i&&(i=a,o=A),A=n.indexOf(e,I+1)),I=C<A&&C>=0?C:A;r.length&&(g=[i,o])}return g}t.exports=n,n.range=a},function(t,e,n){var r=n(38);function a(t,e,n){var i=t;return function(t,e){var n=[],a="string"==typeof e?new RegExp("\\b("+e+")\\("):e;do{var i=a.exec(t);if(!i)return n;if(void 0===i[1])throw new Error("Missing the first couple of parenthesis to get the function identifier in "+e);var o=i[1],g=i.index,C=r("(",")",t.substring(g));if(!C||C.start!==i[0].length-1)throw new SyntaxError(o+"(): missing closing ')' in the value '"+t+"'");n.push({matches:C,functionIdentifier:o}),t=C.post}while(a.test(t));return n}(t,e).reduce(function(t,r){return t.replace(r.functionIdentifier+"("+r.matches.body+")",function(t,e,n,r,i){return n(a(t,i,n),e,r)}(r.matches.body,r.functionIdentifier,n,i,e))},t)}t.exports=a},function(t,e){function n(t,e,n){t instanceof RegExp&&(t=r(t,n)),e instanceof RegExp&&(e=r(e,n));var i=a(t,e,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+t.length,i[1]),post:n.slice(i[1]+e.length)}}function r(t,e){var n=e.match(t);return n?n[0]:null}function a(t,e,n){var r,a,i,o,g,C=n.indexOf(t),A=n.indexOf(e,C+1),I=C;if(C>=0&&A>0){for(r=[],i=n.length;I>=0&&!g;)I==C?(r.push(I),C=n.indexOf(t,I+1)):1==r.length?g=[r.pop(),A]:((a=r.pop())<i&&(i=a,o=A),A=n.indexOf(e,I+1)),I=C<A&&C>=0?C:A;r.length&&(g=[i,o])}return g}t.exports=n,n.range=a},function(t,e,n){var r=n(40);r.prototype.formulaEval=function(){"use strict";for(var t,e,n,r=[],a=this.value,i=0;i<a.length;i++)1===a[i].type||3===a[i].type?r.push({value:3===a[i].type?a[i].show:a[i].value,type:1}):13===a[i].type?r.push({value:a[i].show,type:1}):0===a[i].type?r[r.length-1]={value:a[i].show+("-"!=a[i].show?"(":"")+r[r.length-1].value+("-"!=a[i].show?")":""),type:0}:7===a[i].type?r[r.length-1]={value:(1!=r[r.length-1].type?"(":"")+r[r.length-1].value+(1!=r[r.length-1].type?")":"")+a[i].show,type:7}:10===a[i].type?(t=r.pop(),e=r.pop(),"P"===a[i].show||"C"===a[i].show?r.push({value:"<sup>"+e.value+"</sup>"+a[i].show+"<sub>"+t.value+"</sub>",type:10}):r.push({value:(1!=e.type?"(":"")+e.value+(1!=e.type?")":"")+"<sup>"+t.value+"</sup>",type:1})):2===a[i].type||9===a[i].type?(t=r.pop(),e=r.pop(),r.push({value:(1!=e.type?"(":"")+e.value+(1!=e.type?")":"")+a[i].show+(1!=t.type?"(":"")+t.value+(1!=t.type?")":""),type:a[i].type})):12===a[i].type&&(t=r.pop(),e=r.pop(),n=r.pop(),r.push({value:a[i].show+"("+n.value+","+e.value+","+t.value+")",type:12}));return r[0].value},t.exports=r},function(t,e,n){var r=n(41);r.prototype.postfixEval=function(t){"use strict";(t=t||{}).PI=Math.PI,t.E=Math.E;for(var e,n,a,i=[],o=this.value,g=void 0!==t.n,C=0;C<o.length;C++)1===o[C].type?i.push({value:o[C].value,type:1}):3===o[C].type?i.push({value:t[o[C].value],type:1}):0===o[C].type?void 0===i[i.length-1].type?i[i.length-1].value.push(o[C]):i[i.length-1].value=o[C].value(i[i.length-1].value):7===o[C].type?void 0===i[i.length-1].type?i[i.length-1].value.push(o[C]):i[i.length-1].value=o[C].value(i[i.length-1].value):8===o[C].type?(e=i.pop(),n=i.pop(),i.push({type:1,value:o[C].value(n.value,e.value)})):10===o[C].type?(e=i.pop(),void 0===(n=i.pop()).type?(n.value=n.concat(e),n.value.push(o[C]),i.push(n)):void 0===e.type?(e.unshift(n),e.push(o[C]),i.push(e)):i.push({type:1,value:o[C].value(n.value,e.value)})):2===o[C].type||9===o[C].type?(e=i.pop(),void 0===(n=i.pop()).type?(console.log(n),(n=n.concat(e)).push(o[C]),i.push(n)):void 0===e.type?(e.unshift(n),e.push(o[C]),i.push(e)):i.push({type:1,value:o[C].value(n.value,e.value)})):12===o[C].type?(void 0!==(e=i.pop()).type&&(e=[e]),n=i.pop(),a=i.pop(),i.push({type:1,value:o[C].value(a.value,n.value,new r(e))})):13===o[C].type&&(g?i.push({value:t[o[C].value],type:3}):i.push([o[C]]));if(i.length>1)throw new r.exception("Uncaught Syntax error");return i[0].value>1e15?"Infinity":parseFloat(i[0].value.toFixed(15))},r.eval=function(t,e,n){return void 0===e?this.lex(t).toPostfix().postfixEval():void 0===n?void 0!==e.length?this.lex(t,e).toPostfix().postfixEval():this.lex(t).toPostfix().postfixEval(e):this.lex(t,e).toPostfix().postfixEval(n)},t.exports=r},function(t,e,n){var r=n(42);r.prototype.toPostfix=function(){"use strict";for(var t,e,n,a,i,o=[],g=[{value:"(",type:4,pre:0}],C=this.value,A=1;A<C.length;A++)if(1===C[A].type||3===C[A].type||13===C[A].type)1===C[A].type&&(C[A].value=Number(C[A].value)),o.push(C[A]);else if(4===C[A].type)g.push(C[A]);else if(5===C[A].type)for(;4!==(e=g.pop()).type;)o.push(e);else if(11===C[A].type){for(;4!==(e=g.pop()).type;)o.push(e);g.push(e)}else{a=(t=C[A]).pre,n=(i=g[g.length-1]).pre;var I="Math.pow"==i.value&&"Math.pow"==t.value;if(a>n)g.push(t);else{for(;n>=a&&!I||I&&a<n;)e=g.pop(),i=g[g.length-1],o.push(e),n=i.pre,I="Math.pow"==t.value&&"Math.pow"==i.value;g.push(t)}}return new r(o)},t.exports=r},function(t,e,n){var r=n(43);function a(t,e){for(var n=0;n<t.length;n++)t[n]+=e;return t}var o=["sin","cos","tan","pi","(",")","P","C","asin","acos","atan","7","8","9","int","cosh","acosh","ln","^","root","4","5","6","/","!","tanh","atanh","Mod","1","2","3","*","sinh","asinh","e","log","0",".","+","-",",","Sigma","n","Pi","pow"],g=["sin","cos","tan","&pi;","(",")","P","C","asin","acos","atan","7","8","9","Int","cosh","acosh"," ln","^","root","4","5","6","&divide;","!","tanh","atanh"," Mod ","1","2","3","&times;","sinh","asinh","e"," log","0",".","+","-",",","&Sigma;","n","&Pi;","pow"],C=[r.math.sin,r.math.cos,r.math.tan,"PI","(",")",r.math.P,r.math.C,r.math.asin,r.math.acos,r.math.atan,"7","8","9",Math.floor,r.math.cosh,r.math.acosh,Math.log,Math.pow,Math.sqrt,"4","5","6",r.math.div,r.math.fact,r.math.tanh,r.math.atanh,r.math.mod,"1","2","3",r.math.mul,r.math.sinh,r.math.asinh,"E",r.math.log,"0",".",r.math.add,r.math.sub,",",r.math.sigma,"n",r.math.Pi,Math.pow],A={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0},I=[0,0,0,3,4,5,10,10,0,0,0,1,1,1,0,0,0,0,10,0,1,1,1,2,7,0,0,2,1,1,1,2,0,0,3,0,1,6,9,9,11,12,13,12,8],c={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0},s={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0},u={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0},f={},l={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0},h={1:!0},d=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];function p(t,e,n,r){for(var a=0;a<r;a++)if(t[n+a]!==e[a])return!1;return!0}r.addToken=function(t){for(i=0;i<t.length;i++){x=t[i].token.length;var e=-1;if(x<d.length)for(y=0;y<d[x].length;y++)if(t[i].token===d[x][y]){e=o.indexOf(d[x][y]);break}-1===e?(o.push(t[i].token),I.push(t[i].type),d.length<=t[i].token.length&&(d[t[i].token.length]=[]),d[t[i].token.length].push(t[i].token),C.push(t[i].value),g.push(t[i].show)):(o[e]=t[i].token,I[e]=t[i].type,C[e]=t[i].value,g[e]=t[i].show)}},r.lex=function(t,e){"use strict";var n,i,b,m,v=[{type:4,value:"(",show:"(",pre:0}],y=[],_=t,w=0,x=c,k=0,T=f,O="";void 0!==e&&r.addToken(e);var E={};for(i=0;i<_.length;i++)if(" "!=_[i]){n="";t:for(b=_.length-i>d.length-2?d.length-1:_.length-i;b>0;b--)for(m=0;m<d[b].length;m++)if(p(_,d[b][m],i,b)){n=d[b][m];break t}if(i+=n.length-1,""===n)throw new r.exception("Can't understand after "+_.slice(i));var P=o.indexOf(n),S=n,M=I[P],N=C[P],j=A[M],R=g[P],z=v[v.length-1];for(D=y.length;D--;)if(0===y[D]&&-1!==[0,2,3,5,9,11,12,13].indexOf(M)){if(!0!==x[M])throw new r.exception(n+" is not allowed after "+O);v.push({value:")",type:5,pre:0,show:")"}),x=s,T=l,a(y,-1).pop()}if(!0!==x[M])throw new r.exception(n+" is not allowed after "+O);if(!0===T[M]&&(M=2,N=r.math.mul,R="&times;",j=3,i-=n.length),E={value:N,type:M,pre:j,show:R},0===M)x=c,T=f,a(y,2).push(2),v.push(E),v.push({value:"(",type:4,pre:0,show:"("});else if(1===M)1===z.type?(z.value+=N,a(y,1)):v.push(E),x=s,T=u;else if(2===M)x=c,T=f,a(y,2),v.push(E);else if(3===M)v.push(E),x=s,T=l;else if(4===M)w+=y.length,y=[],k++,x=c,T=f,v.push(E);else if(5===M){if(!k)throw new r.exception("Closing parenthesis are more than opening one, wait What!!!");for(;w--;)v.push({value:")",type:5,pre:0,show:")"});w=0,k--,x=s,T=l,v.push(E)}else if(6===M){if(z.hasDec)throw new r.exception("Two decimals are not allowed in one number");1!==z.type&&(z={value:0,type:1,pre:0},v.push(z),a(y,-1)),x=h,a(y,1),T=f,z.value+=N,z.hasDec=!0}else 7===M&&(x=s,T=l,a(y,1),v.push(E));8===M?(x=c,T=f,a(y,4).push(4),v.push(E),v.push({value:"(",type:4,pre:0,show:"("})):9===M?(9===z.type?z.value===r.math.add?(z.value=N,z.show=R,a(y,1)):z.value===r.math.sub&&"-"===R&&(z.value=r.math.add,z.show="+",a(y,1)):5!==z.type&&7!==z.type&&1!==z.type&&3!==z.type&&13!==z.type?"-"===S&&(x=c,T=f,a(y,2).push(2),v.push({value:r.math.changeSign,type:0,pre:21,show:"-"}),v.push({value:"(",type:4,pre:0,show:"("})):(v.push(E),a(y,2)),x=c,T=f):10===M?(x=c,T=f,a(y,2),v.push(E)):11===M?(x=c,T=f,v.push(E)):12===M?(x=c,T=f,a(y,6).push(6),v.push(E),v.push({value:"(",type:4,pre:0})):13===M&&(x=s,T=l,v.push(E)),a(y,-1),O=n}for(var D=y.length;D--;)0===y[D]&&(v.push({value:")",show:")",type:5,pre:3}),a(y,-1).pop());if(!0!==x[5])throw new r.exception("complete the expression");for(;k--;)v.push({value:")",show:")",type:5,pre:3});return v.push({type:5,value:")",show:")",pre:0}),new r(v)},t.exports=r},function(t,e){var n=function(t){this.value=t};n.math={isDegree:!0,acos:function(t){return n.math.isDegree?180/Math.PI*Math.acos(t):Math.acos(t)},add:function(t,e){return t+e},asin:function(t){return n.math.isDegree?180/Math.PI*Math.asin(t):Math.asin(t)},atan:function(t){return n.math.isDegree?180/Math.PI*Math.atan(t):Math.atan(t)},acosh:function(t){return Math.log(t+Math.sqrt(t*t-1))},asinh:function(t){return Math.log(t+Math.sqrt(t*t+1))},atanh:function(t){return Math.log((1+t)/(1-t))},C:function(t,e){var r=1,a=t-e,i=e;i<a&&(i=a,a=e);for(var o=i+1;o<=t;o++)r*=o;return r/n.math.fact(a)},changeSign:function(t){return-t},cos:function(t){return n.math.isDegree&&(t=n.math.toRadian(t)),Math.cos(t)},cosh:function(t){return(Math.pow(Math.E,t)+Math.pow(Math.E,-1*t))/2},div:function(t,e){return t/e},fact:function(t){if(t%1!=0)return"NAN";for(var e=1,n=2;n<=t;n++)e*=n;return e},inverse:function(t){return 1/t},log:function(t){return Math.log(t)/Math.log(10)},mod:function(t,e){return t%e},mul:function(t,e){return t*e},P:function(t,e){for(var n=1,r=Math.floor(t)-Math.floor(e)+1;r<=Math.floor(t);r++)n*=r;return n},Pi:function(t,e,n){for(var r=1,a=t;a<=e;a++)r*=Number(n.postfixEval({n:a}));return r},pow10x:function(t){for(var e=1;t--;)e*=10;return e},sigma:function(t,e,n){for(var r=0,a=t;a<=e;a++)r+=Number(n.postfixEval({n:a}));return r},sin:function(t){return n.math.isDegree&&(t=n.math.toRadian(t)),Math.sin(t)},sinh:function(t){return(Math.pow(Math.E,t)-Math.pow(Math.E,-1*t))/2},sub:function(t,e){return t-e},tan:function(t){return n.math.isDegree&&(t=n.math.toRadian(t)),Math.tan(t)},tanh:function(t){return n.sinha(t)/n.cosha(t)},toRadian:function(t){return t*Math.PI/180}},n.exception=function(t){this.message=t},t.exports=n},function(t,e,n){"use strict";n.r(e);n(14);var r=n(1),a=n.n(r),i=(n(17),function(t){return a.a.createElement("h3",{className:"chart__title"},t.title)}),o=function(t){return a.a.createElement("h4",{className:"chart__subtitle"},t.subtitle)},g=function(t){return a.a.createElement("span",{className:"chart__source"},"Source: ",t.source)},C=function(t){return a.a.createElement("div",{className:"chart"},a.a.createElement("div",{className:"chart__meta-container"},t.title?a.a.createElement(i,{title:t.title}):null,t.subtitle?a.a.createElement(o,{subtitle:t.subtitle}):null),a.a.createElement("div",{className:"chart__figure",style:{height:t.height,maxWidth:t.maxWidth,margin:"auto"}},t.children),a.a.createElement("div",{className:"chart__meta-container"},t.source?a.a.createElement(g,{source:t.source}):null))},A=n(2),I=n.n(A),c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function s(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var u={get:function(t,e,n){if(!e)return t;var r=l(e),a=void 0;try{a=r.reduce(function(t,e){return t[e]},t)}catch(t){}return void 0!==a?a:n},set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1],n=arguments[2],r=l(e),a=void 0,i=t;for(;(a=r.shift())&&r.length;)i[a]||(i[a]={}),i=i[a];return i[a]=n,t},takeRight:function(t,e){var n=e>t.length?0:t.length-e;return t.slice(n)},last:function(t){return t[t.length-1]},orderBy:function(t,e,n,r){return t.sort(function(t,a){for(var i=0;i<e.length;i+=1){var o=e[i],g=!1===n[i]||"desc"===n[i],C=o(t,a);if(C)return g?-C:C}return n[0]?t[r]-a[r]:a[r]-t[r]})},range:function(t){for(var e=[],n=0;n<t;n+=1)e.push(t);return e},remove:function(t,e){return t.filter(function(n,r){var a=e(n);return!!a&&(t.splice(r,1),!0)})},clone:function(t){try{return JSON.parse(JSON.stringify(t,function(t,e){return"function"==typeof e?e.toString():e}))}catch(e){return t}},getFirstDefined:function(){for(var t=0;t<arguments.length;t+=1)if(void 0!==(arguments.length<=t?void 0:arguments[t]))return arguments.length<=t?void 0:arguments[t]},sum:function(t){return t.reduce(function(t,e){return t+e},0)},makeTemplateComponent:function(t,e){if(!e)throw new Error("No displayName found for template component:",t);var n=function(e){var n=e.children,r=e.className,i=s(e,["children","className"]);return a.a.createElement("div",c({className:I()(t,r)},i),n)};return n.displayName=e,n},groupBy:function(t,e){return t.reduce(function(t,n,r){var a="function"==typeof e?e(n,r):n[e];return t[a]=f(t[a])?t[a]:[],t[a].push(n),t},{})},isArray:f,splitProps:function(t){var e=t.className,n=t.style,r=s(t,["className","style"]);return{className:e,style:n,rest:r||{}}},compactObject:function(t){var e={};t&&Object.keys(t).map(function(n){return Object.prototype.hasOwnProperty.call(t,n)&&void 0!==t[n]&&void 0!==t[n]&&(e[n]=t[n]),!0});return e},isSortingDesc:function(t){return!("desc"!==t.sort&&!0!==t.desc&&!1!==t.asc)},normalizeComponent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;return"function"==typeof t?Object.getPrototypeOf(t).isReactComponent?a.a.createElement(t,e):t(e):n},asPx:function(t){return t=Number(t),Number.isNaN(t)?null:t+"px"}};function f(t){return Array.isArray(t)}function l(t){return function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(f(e))for(var r=0;r<e.length;r+=1)t(e[r],n);else n.push(e);return n}(t).join(".").replace(/\[/g,".").replace(/\]/g,"").split(".")}var h=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var d=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),h(n,[{key:"componentWillMount",value:function(){this.setStateWithData(this.getDataModel(this.getResolvedState(),!0))}},{key:"componentDidMount",value:function(){this.fireFetchData()}},{key:"componentWillReceiveProps",value:function(t,e){var n=this.getResolvedState(),r=this.getResolvedState(t,e);["sorted","filtered","resized","expanded"].forEach(function(t){var e="default"+(t.charAt(0).toUpperCase()+t.slice(1));JSON.stringify(n[e])!==JSON.stringify(r[e])&&(r[t]=r[e])});["sortable","filterable","resizable"].forEach(function(t){if(n[t]!==r[t]){var e=t.replace("able","")+"ed",a="default"+(e.charAt(0).toUpperCase()+e.slice(1));r[e]=r[a]}}),n.data===r.data&&n.columns===r.columns&&n.pivotBy===r.pivotBy&&n.sorted===r.sorted&&n.filtered===r.filtered||this.setStateWithData(this.getDataModel(r,n.data!==r.data))}},{key:"setStateWithData",value:function(t,e){var n=this,r=this.getResolvedState(),a=this.getResolvedState({},t),i=a.freezeWhenExpanded;if(a.frozen=!1,i)for(var o=Object.keys(a.expanded),g=0;g<o.length;g+=1)if(a.expanded[o[g]]){a.frozen=!0;break}return(r.frozen&&!a.frozen||r.sorted!==a.sorted||r.filtered!==a.filtered||r.showFilters!==a.showFilters||!a.frozen&&r.resolvedData!==a.resolvedData)&&((r.sorted!==a.sorted&&this.props.collapseOnSortingChange||r.filtered!==a.filtered||r.showFilters!==a.showFilters||r.sortedData&&!a.frozen&&r.resolvedData!==a.resolvedData&&this.props.collapseOnDataChange)&&(a.expanded={}),Object.assign(a,this.getSortedData(a))),r.filtered!==a.filtered&&(a.page=0),a.sortedData&&(a.pages=a.manual?a.pages:Math.ceil(a.sortedData.length/a.pageSize),a.page=Math.max(a.page>=a.pages?a.pages-1:a.page,0)),this.setState(a,function(){e&&e(),r.page===a.page&&r.pageSize===a.pageSize&&r.sorted===a.sorted&&r.filtered===a.filtered||n.fireFetchData()})}}]),n}()},p=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,a=!1,i=void 0;try{for(var o,g=t[Symbol.iterator]();!(r=(o=g.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{!r&&g.return&&g.return()}finally{if(a)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},m=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var _=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),m(n,[{key:"getResolvedState",value:function(t,e){return b({},u.compactObject(this.state),u.compactObject(this.props),u.compactObject(e),u.compactObject(t))}},{key:"getDataModel",value:function(t,e){var n=this,r=t.columns,i=t.pivotBy,o=void 0===i?[]:i,g=t.data,C=t.resolveData,A=t.pivotIDKey,I=t.pivotValKey,c=t.subRowsKey,s=t.aggregatedKey,f=t.nestingLevelKey,l=t.originalKey,h=t.indexKey,d=t.groupedByPivotKey,m=t.SubComponent,_=!1;r.forEach(function(t){t.columns&&(_=!0)});var w=[].concat(y(r)),x=r.find(function(t){return t.expander||t.columns&&t.columns.some(function(t){return t.expander})});x&&!x.expander&&(x=x.columns.find(function(t){return t.expander})),m&&!x&&(w=[x={expander:!0}].concat(y(w)));var k=[],T=function(t,e){var r=function(t,e){var r=void 0;if((r=t.expander?b({},n.props.column,n.props.expanderDefaults,t):b({},n.props.column,t)).maxWidth<r.minWidth&&(r.minWidth=r.maxWidth),e&&(r.parentColumn=e),"string"==typeof r.accessor){r.id=r.id||r.accessor;var a=r.accessor;return r.accessor=function(t){return u.get(t,a)},r}if(r.accessor&&!r.id)throw console.warn(r),new Error("A column id is required if using a non-string accessor for column above.");return r.accessor||(r.accessor=function(){}),r}(t,e);return k.push(r),r},O=w.map(function(t){return t.columns?b({},t,{columns:t.columns.map(function(e){return T(e,t)})}):T(t)}).slice(),E=[],P=(O=(O=O.map(function(t){if(t.columns){var e=t.columns.filter(function(t){return!(o.indexOf(t.id)>-1)&&u.getFirstDefined(t.show,!0)});return b({},t,{columns:e})}return t})).filter(function(t){return t.columns?t.columns.length:!(o.indexOf(t.id)>-1)&&u.getFirstDefined(t.show,!0)})).findIndex(function(t){return t.pivot});if(o.length){var S=[];o.forEach(function(t){var e=k.find(function(e){return e.id===t});e&&S.push(e)});var M=S.reduce(function(t,e){return t&&t===e.parentColumn&&e.parentColumn},S[0].parentColumn),N=_&&M.Header,j={Header:N=N||function(){return a.a.createElement("strong",null,"Pivoted")},columns:S.map(function(t){return b({},n.props.pivotDefaults,t,{pivoted:!0})})};P>=0?(j=b({},O[P],j),O.splice(P,1,j)):O.unshift(j)}var R=[],z=[],D=function(t,e){R.push(b({},n.props.column,e,{columns:t})),z=[]};O.forEach(function(t){if(t.columns)return E=E.concat(t.columns),z.length>0&&D(z),void D(t.columns,t);E.push(t),z.push(t)}),_&&z.length>0&&D(z);var L=this.resolvedData;this.resolvedData&&!e||(L=C(g),this.resolvedData=L),L=L.map(function(t,e){return function t(e,n){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=(v(r={},l,e),v(r,h,n),v(r,c,e[c]),v(r,f,a),r);return k.forEach(function(t){t.expander||(i[t.id]=t.accessor(e))}),i[c]&&(i[c]=i[c].map(function(e,n){return t(e,n,a+1)})),i}(t,e)});var W=E.filter(function(t){return!t.expander&&t.aggregate});if(o.length){L=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r===n.length)return e;var a=Object.entries(u.groupBy(e,n[r])).map(function(t){var e,a=p(t,2),i=a[0],o=a[1];return v(e={},A,n[r]),v(e,I,i),v(e,n[r],i),v(e,c,o),v(e,f,r),v(e,d,!0),e});return a=a.map(function(e){var a,i=t(e[c],n,r+1);return b({},e,(v(a={},c,i),v(a,s,!0),a),function(t){var e={};return W.forEach(function(n){var r=t.map(function(t){return t[n.id]});e[n.id]=n.aggregate(r,t)}),e}(i))})}(L,o)}return b({},t,{resolvedData:L,allVisibleColumns:E,headerGroups:R,allDecoratedColumns:k,hasHeaderGroups:_})}},{key:"getSortedData",value:function(t){var e=t.manual,n=t.sorted,r=t.filtered,a=t.defaultFilterMethod,i=t.resolvedData,o=t.allVisibleColumns,g={};return t.allDecoratedColumns.filter(function(t){return t.sortMethod}).forEach(function(t){g[t.id]=t.sortMethod}),{sortedData:e?i:this.sortData(this.filterData(i,r,a,o),n,g)}}},{key:"fireFetchData",value:function(){this.props.onFetchData(this.getResolvedState(),this)}},{key:"getPropOrState",value:function(t){return u.getFirstDefined(this.props[t],this.state[t])}},{key:"getStateOrProp",value:function(t){return u.getFirstDefined(this.state[t],this.props[t])}},{key:"filterData",value:function(t,e,n,r){var a=this,i=t;return e.length&&(i=(i=e.reduce(function(t,e){var a=r.find(function(t){return t.id===e.id});if(!a||!1===a.filterable)return t;var i=a.filterMethod||n;return a.filterAll?i(e,t,a):t.filter(function(t){return i(e,t,a)})},i)).map(function(t){return t[a.props.subRowsKey]?b({},t,v({},a.props.subRowsKey,a.filterData(t[a.props.subRowsKey],e,n,r))):t}).filter(function(t){return!t[a.props.subRowsKey]||t[a.props.subRowsKey].length>0})),i}},{key:"sortData",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.length)return t;var a=(this.props.orderByMethod||u.orderBy)(t,e.map(function(t){return r[t.id]?function(e,n){return r[t.id](e[t.id],n[t.id],t.desc)}:function(e,r){return n.props.defaultSortMethod(e[t.id],r[t.id],t.desc)}}),e.map(function(t){return!t.desc}),this.props.indexKey);return a.forEach(function(t){t[n.props.subRowsKey]&&(t[n.props.subRowsKey]=n.sortData(t[n.props.subRowsKey],e,r))}),a}},{key:"getMinRows",value:function(){return u.getFirstDefined(this.props.minRows,this.getStateOrProp("pageSize"))}},{key:"onPageChange",value:function(t){var e=this.props,n=e.onPageChange,r=e.collapseOnPageChange,a={page:t};r&&(a.expanded={}),this.setStateWithData(a,function(){return n&&n(t)})}},{key:"onPageSizeChange",value:function(t){var e=this.props.onPageSizeChange,n=this.getResolvedState(),r=n.pageSize*n.page,a=Math.floor(r/t);this.setStateWithData({pageSize:t,page:a},function(){return e&&e(t,a)})}},{key:"sortColumn",value:function(t,e){var n=this.getResolvedState(),r=n.sorted,a=n.skipNextSort,i=n.defaultSortDesc,o=Object.prototype.hasOwnProperty.call(t,"defaultSortDesc")?t.defaultSortDesc:i,g=!o;if(a)this.setStateWithData({skipNextSort:!1});else{var C=this.props.onSortedChange,A=u.clone(r||[]).map(function(t){return t.desc=u.isSortingDesc(t),t});if(u.isArray(t)){var I=A.findIndex(function(e){return e.id===t[0].id});if(I>-1)A[I].desc===g?e?A.splice(I,t.length):t.forEach(function(t,e){A[I+e].desc=o}):t.forEach(function(t,e){A[I+e].desc=g}),e||(A=A.slice(I,t.length));else A=e?A.concat(t.map(function(t){return{id:t.id,desc:o}})):t.map(function(t){return{id:t.id,desc:o}})}else{var c=A.findIndex(function(e){return e.id===t.id});if(c>-1){var s=A[c];s.desc===g?e?A.splice(c,1):(s.desc=o,A=[s]):(s.desc=g,e||(A=[s]))}else e?A.push({id:t.id,desc:o}):A=[{id:t.id,desc:o}]}this.setStateWithData({page:!r.length&&A.length||!e?0:this.state.page,sorted:A},function(){return C&&C(A,t,e)})}}},{key:"filterColumn",value:function(t,e){var n=this.getResolvedState().filtered,r=this.props.onFilteredChange,a=(n||[]).filter(function(e){return e.id!==t.id});""!==e&&a.push({id:t.id,value:e}),this.setStateWithData({filtered:a},function(){return r&&r(a,t,e)})}},{key:"resizeColumnStart",value:function(t,e,n){var r=this;t.stopPropagation();var a=t.target.parentElement.getBoundingClientRect().width,i=void 0;i=n?t.changedTouches[0].pageX:t.pageX,this.trapEvents=!0,this.setStateWithData({currentlyResizing:{id:e.id,startX:i,parentWidth:a}},function(){n?(document.addEventListener("touchmove",r.resizeColumnMoving),document.addEventListener("touchcancel",r.resizeColumnEnd),document.addEventListener("touchend",r.resizeColumnEnd)):(document.addEventListener("mousemove",r.resizeColumnMoving),document.addEventListener("mouseup",r.resizeColumnEnd),document.addEventListener("mouseleave",r.resizeColumnEnd))})}},{key:"resizeColumnMoving",value:function(t){t.stopPropagation();var e=this.props.onResizedChange,n=this.getResolvedState(),r=n.resized,a=n.currentlyResizing,i=r.filter(function(t){return t.id!==a.id}),o=void 0;"touchmove"===t.type?o=t.changedTouches[0].pageX:"mousemove"===t.type&&(o=t.pageX);var g=Math.max(a.parentWidth+o-a.startX,11);i.push({id:a.id,value:g}),this.setStateWithData({resized:i},function(){return e&&e(i,t)})}},{key:"resizeColumnEnd",value:function(t){t.stopPropagation();var e="touchend"===t.type||"touchcancel"===t.type;e&&(document.removeEventListener("touchmove",this.resizeColumnMoving),document.removeEventListener("touchcancel",this.resizeColumnEnd),document.removeEventListener("touchend",this.resizeColumnEnd)),document.removeEventListener("mousemove",this.resizeColumnMoving),document.removeEventListener("mouseup",this.resizeColumnEnd),document.removeEventListener("mouseleave",this.resizeColumnEnd),e||this.setStateWithData({skipNextSort:!0,currentlyResizing:!1})}}]),n}()},w=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),x=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};var k=function(t){return a.a.createElement("button",x({type:"button"},t,{className:"-btn"}),t.children)},T=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.getSafePage=n.getSafePage.bind(n),n.changePage=n.changePage.bind(n),n.applyPage=n.applyPage.bind(n),n.state={page:t.page},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r["Component"]),w(e,[{key:"componentWillReceiveProps",value:function(t){this.setState({page:t.page})}},{key:"getSafePage",value:function(t){return Number.isNaN(t)&&(t=this.props.page),Math.min(Math.max(t,0),this.props.pages-1)}},{key:"changePage",value:function(t){t=this.getSafePage(t),this.setState({page:t}),this.props.page!==t&&this.props.onPageChange(t)}},{key:"applyPage",value:function(t){t&&t.preventDefault();var e=this.state.page;this.changePage(""===e?this.props.page:e)}},{key:"render",value:function(){var t=this,e=this.props,n=e.pages,r=e.page,i=e.showPageSizeOptions,o=e.pageSizeOptions,g=e.pageSize,C=e.showPageJump,A=e.canPrevious,c=e.canNext,s=e.onPageSizeChange,u=e.className,f=e.PreviousComponent,l=void 0===f?k:f,h=e.NextComponent,d=void 0===h?k:h;return a.a.createElement("div",{className:I()(u,"-pagination"),style:this.props.style},a.a.createElement("div",{className:"-previous"},a.a.createElement(l,{onClick:function(){A&&t.changePage(r-1)},disabled:!A},this.props.previousText)),a.a.createElement("div",{className:"-center"},a.a.createElement("span",{className:"-pageInfo"},this.props.pageText," ",C?a.a.createElement("div",{className:"-pageJump"},a.a.createElement("input",{type:""===this.state.page?"text":"number",onChange:function(e){var n=e.target.value,r=n-1;if(""===n)return t.setState({page:n});t.setState({page:t.getSafePage(r)})},value:""===this.state.page?"":this.state.page+1,onBlur:this.applyPage,onKeyPress:function(e){13!==e.which&&13!==e.keyCode||t.applyPage()}})):a.a.createElement("span",{className:"-currentPage"},r+1)," ",this.props.ofText," ",a.a.createElement("span",{className:"-totalPages"},n||1)),i&&a.a.createElement("span",{className:"select-wrap -pageSizeOptions"},a.a.createElement("select",{onChange:function(t){return s(Number(t.target.value))},value:g},o.map(function(e,n){return a.a.createElement("option",{key:n,value:e},e," ",t.props.rowsText)})))),a.a.createElement("div",{className:"-next"},a.a.createElement(d,{onClick:function(){c&&t.changePage(r+1)},disabled:!c},this.props.nextText)))}}]),e}(),O=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function E(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var P=function(){return{}},S={data:[],resolveData:function(t){return t},loading:!1,showPagination:!0,showPaginationTop:!1,showPaginationBottom:!0,showPageSizeOptions:!0,pageSizeOptions:[5,10,20,25,50,100],defaultPageSize:20,showPageJump:!0,collapseOnSortingChange:!0,collapseOnPageChange:!0,collapseOnDataChange:!0,freezeWhenExpanded:!1,sortable:!0,multiSort:!0,resizable:!0,filterable:!1,defaultSortDesc:!1,defaultSorted:[],defaultFiltered:[],defaultResized:[],defaultExpanded:{},defaultFilterMethod:function(t,e,n){var r=t.pivotId||t.id;return void 0===e[r]||String(e[r]).startsWith(t.value)},defaultSortMethod:function(t,e,n){return t=null===t||void 0===t?"":t,e=null===e||void 0===e?"":e,(t="string"==typeof t?t.toLowerCase():t)>(e="string"==typeof e?e.toLowerCase():e)?1:t<e?-1:0},onPageChange:void 0,onPageSizeChange:void 0,onSortedChange:void 0,onFilteredChange:void 0,onResizedChange:void 0,onExpandedChange:void 0,pivotBy:void 0,pivotValKey:"_pivotVal",pivotIDKey:"_pivotID",subRowsKey:"_subRows",aggregatedKey:"_aggregated",nestingLevelKey:"_nestingLevel",originalKey:"_original",indexKey:"_index",groupedByPivotKey:"_groupedByPivot",onFetchData:function(){return null},className:"",style:{},getProps:P,getTableProps:P,getTheadGroupProps:P,getTheadGroupTrProps:P,getTheadGroupThProps:P,getTheadProps:P,getTheadTrProps:P,getTheadThProps:P,getTheadFilterProps:P,getTheadFilterTrProps:P,getTheadFilterThProps:P,getTbodyProps:P,getTrGroupProps:P,getTrProps:P,getTdProps:P,getTfootProps:P,getTfootTrProps:P,getTfootTdProps:P,getPaginationProps:P,getLoadingProps:P,getNoDataProps:P,getResizerProps:P,column:{Cell:void 0,Header:void 0,Footer:void 0,Aggregated:void 0,Pivot:void 0,PivotValue:void 0,Expander:void 0,Filter:void 0,sortable:void 0,resizable:void 0,filterable:void 0,show:!0,minWidth:100,className:"",style:{},getProps:P,aggregate:void 0,headerClassName:"",headerStyle:{},getHeaderProps:P,footerClassName:"",footerStyle:{},getFooterProps:P,filterMethod:void 0,filterAll:!1,sortMethod:void 0},expanderDefaults:{sortable:!1,resizable:!1,filterable:!1,width:35},pivotDefaults:{},previousText:"Previous",nextText:"Next",loadingText:"Loading...",noDataText:"No rows found",pageText:"Page",ofText:"of",rowsText:"rows",TableComponent:function(t){var e=t.children,n=t.className,r=E(t,["children","className"]);return a.a.createElement("div",O({className:I()("rt-table",n),role:"grid"},r),e)},TheadComponent:u.makeTemplateComponent("rt-thead","Thead"),TbodyComponent:u.makeTemplateComponent("rt-tbody","Tbody"),TrGroupComponent:function(t){var e=t.children,n=t.className,r=E(t,["children","className"]);return a.a.createElement("div",O({className:I()("rt-tr-group",n),role:"rowgroup"},r),e)},TrComponent:function(t){var e=t.children,n=t.className,r=E(t,["children","className"]);return a.a.createElement("div",O({className:I()("rt-tr",n),role:"row"},r),e)},ThComponent:function(t){var e=t.toggleSort,n=t.className,r=t.children,i=E(t,["toggleSort","className","children"]);return a.a.createElement("div",O({className:I()("rt-th",n),onClick:function(t){return e&&e(t)},role:"columnheader",tabIndex:"-1"},i),r)},TdComponent:function(t){t.toggleSort;var e=t.className,n=t.children,r=E(t,["toggleSort","className","children"]);return a.a.createElement("div",O({className:I()("rt-td",e),role:"gridcell"},r),n)},TfootComponent:u.makeTemplateComponent("rt-tfoot","Tfoot"),FilterComponent:function(t){var e=t.filter,n=t.onChange;return a.a.createElement("input",{type:"text",style:{width:"100%"},value:e?e.value:"",onChange:function(t){return n(t.target.value)}})},ExpanderComponent:function(t){var e=t.isExpanded;return a.a.createElement("div",{className:I()("rt-expander",e&&"-open")},"•")},PivotValueComponent:function(t){var e=t.subRows,n=t.value;return a.a.createElement("span",null,n," ",e&&"("+e.length+")")},AggregatedComponent:function(t){var e=t.subRows,n=t.column,r=e.filter(function(t){return void 0!==t[n.id]}).map(function(t,r){return a.a.createElement("span",{key:r},t[n.id],r<e.length-1?", ":"")});return a.a.createElement("span",null,r)},PivotComponent:void 0,PaginationComponent:T,PreviousComponent:void 0,NextComponent:void 0,LoadingComponent:function(t){var e=t.className,n=t.loading,r=t.loadingText,i=E(t,["className","loading","loadingText"]);return a.a.createElement("div",O({className:I()("-loading",{"-active":n},e)},i),a.a.createElement("div",{className:"-loading-inner"},r))},NoDataComponent:u.makeTemplateComponent("rt-noData","NoData"),ResizerComponent:u.makeTemplateComponent("rt-resizer","Resizer"),PadRowComponent:function(){return a.a.createElement("span",null," ")}},M=n(0),N=n.n(M),j={data:N.a.any,loading:N.a.bool,showPagination:N.a.bool,showPaginationTop:N.a.bool,showPaginationBottom:N.a.bool,showPageSizeOptions:N.a.bool,pageSizeOptions:N.a.array,defaultPageSize:N.a.number,showPageJump:N.a.bool,collapseOnSortingChange:N.a.bool,collapseOnPageChange:N.a.bool,collapseOnDataChange:N.a.bool,freezeWhenExpanded:N.a.bool,sortable:N.a.bool,resizable:N.a.bool,filterable:N.a.bool,defaultSortDesc:N.a.bool,defaultSorted:N.a.array,defaultFiltered:N.a.array,defaultResized:N.a.array,defaultExpanded:N.a.object,defaultFilterMethod:N.a.func,defaultSortMethod:N.a.func,onPageChange:N.a.func,onPageSizeChange:N.a.func,onSortedChange:N.a.func,onFilteredChange:N.a.func,onResizedChange:N.a.func,onExpandedChange:N.a.func,pivotBy:N.a.array,pivotValKey:N.a.string,pivotIDKey:N.a.string,subRowsKey:N.a.string,aggregatedKey:N.a.string,nestingLevelKey:N.a.string,originalKey:N.a.string,indexKey:N.a.string,groupedByPivotKey:N.a.string,onFetchData:N.a.func,className:N.a.string,style:N.a.object,getProps:N.a.func,getTableProps:N.a.func,getTheadGroupProps:N.a.func,getTheadGroupTrProps:N.a.func,getTheadGroupThProps:N.a.func,getTheadProps:N.a.func,getTheadTrProps:N.a.func,getTheadThProps:N.a.func,getTheadFilterProps:N.a.func,getTheadFilterTrProps:N.a.func,getTheadFilterThProps:N.a.func,getTbodyProps:N.a.func,getTrGroupProps:N.a.func,getTrProps:N.a.func,getTdProps:N.a.func,getTfootProps:N.a.func,getTfootTrProps:N.a.func,getTfootTdProps:N.a.func,getPaginationProps:N.a.func,getLoadingProps:N.a.func,getNoDataProps:N.a.func,getResizerProps:N.a.func,columns:N.a.arrayOf(N.a.shape({Cell:N.a.oneOfType([N.a.element,N.a.string,N.a.func]),Header:N.a.oneOfType([N.a.element,N.a.string,N.a.func]),Footer:N.a.oneOfType([N.a.element,N.a.string,N.a.func]),Aggregated:N.a.oneOfType([N.a.element,N.a.string,N.a.func]),Pivot:N.a.oneOfType([N.a.element,N.a.string,N.a.func]),PivotValue:N.a.oneOfType([N.a.element,N.a.string,N.a.func]),Expander:N.a.oneOfType([N.a.element,N.a.string,N.a.func]),Filter:N.a.oneOfType([N.a.element,N.a.func]),sortable:N.a.bool,resizable:N.a.bool,filterable:N.a.bool,show:N.a.bool,minWidth:N.a.number,className:N.a.string,style:N.a.object,getProps:N.a.func,aggregate:N.a.func,headerClassName:N.a.string,headerStyle:N.a.object,getHeaderProps:N.a.func,footerClassName:N.a.string,footerStyle:N.a.object,getFooterProps:N.a.object,filterMethod:N.a.func,filterAll:N.a.bool,sortMethod:N.a.func})),expanderDefaults:N.a.shape({sortable:N.a.bool,resizable:N.a.bool,filterable:N.a.bool,width:N.a.number}),pivotDefaults:N.a.object,previousText:N.a.node,nextText:N.a.node,loadingText:N.a.node,noDataText:N.a.node,pageText:N.a.node,ofText:N.a.node,rowsText:N.a.node,TableComponent:N.a.oneOfType([N.a.func,N.a.element]),TheadComponent:N.a.oneOfType([N.a.func,N.a.element]),TbodyComponent:N.a.oneOfType([N.a.func,N.a.element]),TrGroupComponent:N.a.oneOfType([N.a.func,N.a.element]),TrComponent:N.a.oneOfType([N.a.func,N.a.element]),ThComponent:N.a.oneOfType([N.a.func,N.a.element]),TdComponent:N.a.oneOfType([N.a.func,N.a.element]),TfootComponent:N.a.oneOfType([N.a.func,N.a.element]),FilterComponent:N.a.oneOfType([N.a.func,N.a.element]),ExpanderComponent:N.a.oneOfType([N.a.func,N.a.element]),PivotValueComponent:N.a.oneOfType([N.a.func,N.a.element]),AggregatedComponent:N.a.oneOfType([N.a.func,N.a.element]),PivotComponent:N.a.oneOfType([N.a.func,N.a.element]),PaginationComponent:N.a.oneOfType([N.a.func,N.a.element]),PreviousComponent:N.a.oneOfType([N.a.func,N.a.element]),NextComponent:N.a.oneOfType([N.a.func,N.a.element]),LoadingComponent:N.a.oneOfType([N.a.func,N.a.element]),NoDataComponent:N.a.oneOfType([N.a.func,N.a.element]),ResizerComponent:N.a.oneOfType([N.a.func,N.a.element]),PadRowComponent:N.a.oneOfType([N.a.func,N.a.element])},R=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,a=!1,i=void 0;try{for(var o,g=t[Symbol.iterator]();!(r=(o=g.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{!r&&g.return&&g.return()}finally{if(a)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),z=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},D=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var L=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.getResolvedState=n.getResolvedState.bind(n),n.getDataModel=n.getDataModel.bind(n),n.getSortedData=n.getSortedData.bind(n),n.fireFetchData=n.fireFetchData.bind(n),n.getPropOrState=n.getPropOrState.bind(n),n.getStateOrProp=n.getStateOrProp.bind(n),n.filterData=n.filterData.bind(n),n.sortData=n.sortData.bind(n),n.getMinRows=n.getMinRows.bind(n),n.onPageChange=n.onPageChange.bind(n),n.onPageSizeChange=n.onPageSizeChange.bind(n),n.sortColumn=n.sortColumn.bind(n),n.filterColumn=n.filterColumn.bind(n),n.resizeColumnStart=n.resizeColumnStart.bind(n),n.resizeColumnEnd=n.resizeColumnEnd.bind(n),n.resizeColumnMoving=n.resizeColumnMoving.bind(n),n.state={page:0,pageSize:t.defaultPageSize,sorted:t.defaultSorted,expanded:t.defaultExpanded,filtered:t.defaultFiltered,resized:t.defaultResized,currentlyResizing:!1,skipNextSort:!1},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,_(d(r["Component"]))),D(e,[{key:"render",value:function(){var t=this,e=this.getResolvedState(),n=e.children,r=e.className,i=e.style,o=e.getProps,g=e.getTableProps,C=e.getTheadGroupProps,A=e.getTheadGroupTrProps,c=e.getTheadGroupThProps,s=e.getTheadProps,f=e.getTheadTrProps,l=e.getTheadThProps,h=e.getTheadFilterProps,d=e.getTheadFilterTrProps,p=e.getTheadFilterThProps,b=e.getTbodyProps,m=e.getTrGroupProps,v=e.getTrProps,y=e.getTdProps,_=e.getTfootProps,w=e.getTfootTrProps,x=e.getTfootTdProps,k=e.getPaginationProps,T=e.getLoadingProps,O=e.getNoDataProps,E=e.getResizerProps,P=e.showPagination,M=e.showPaginationTop,N=e.showPaginationBottom,j=e.manual,D=e.loadingText,L=e.noDataText,W=e.sortable,F=e.multiSort,Z=e.resizable,G=e.filterable,U=e.pivotIDKey,Y=e.pivotValKey,V=e.pivotBy,B=e.subRowsKey,H=e.aggregatedKey,K=e.originalKey,q=e.indexKey,X=e.groupedByPivotKey,Q=e.loading,J=e.pageSize,$=e.page,tt=e.sorted,et=e.filtered,nt=e.resized,rt=e.expanded,at=e.pages,it=e.onExpandedChange,ot=e.TableComponent,gt=e.TheadComponent,Ct=e.TbodyComponent,At=e.TrGroupComponent,It=e.TrComponent,ct=e.ThComponent,st=e.TdComponent,ut=e.TfootComponent,ft=e.PaginationComponent,lt=e.LoadingComponent,ht=e.SubComponent,dt=e.NoDataComponent,pt=e.ResizerComponent,bt=e.ExpanderComponent,mt=e.PivotValueComponent,vt=e.PivotComponent,yt=e.AggregatedComponent,_t=e.FilterComponent,wt=e.PadRowComponent,xt=e.resolvedData,kt=e.allVisibleColumns,Tt=e.headerGroups,Ot=e.hasHeaderGroups,Et=e.sortedData,Pt=e.currentlyResizing,St=J*$,Mt=St+J,Nt=j?xt:Et.slice(St,Mt),jt=this.getMinRows(),Rt=u.range(Math.max(jt-Nt.length,0)),zt=kt.some(function(t){return t.Footer}),Dt=G||kt.some(function(t){return t.filterable}),Lt=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return[e.map(function(e,a){var i=z({},e,{_viewIndex:r+=1}),o=n.concat([a]);if(i[B]&&u.get(rt,o)){var g=t(i[B],o,r),C=R(g,2);i[B]=C[0],r=C[1]}return i}),r]}(Nt),Wt=R(Lt,1);Nt=Wt[0];var Ft=$>0,Zt=$+1<at,Gt=u.sum(kt.map(function(t){var e=nt.find(function(e){return e.id===t.id})||{};return u.getFirstDefined(e.value,t.width,t.minWidth)})),Ut=-1,Yt=z({},e,{startRow:St,endRow:Mt,pageRows:Nt,minRows:jt,padRows:Rt,hasColumnFooter:zt,canPrevious:Ft,canNext:Zt,rowMinWidth:Gt}),Vt=u.splitProps(o(Yt,void 0,void 0,this)),Bt=u.splitProps(g(Yt,void 0,void 0,this)),Ht=u.splitProps(b(Yt,void 0,void 0,this)),Kt=T(Yt,void 0,void 0,this),qt=O(Yt,void 0,void 0,this),Xt=function(e,n){var r=function(t){return(nt.find(function(e){return e.id===t.id})||{}).value},i=u.sum(e.columns.map(function(t){return t.width||r(t)?0:t.minWidth})),o=u.sum(e.columns.map(function(t){return u.getFirstDefined(r(t),t.width,t.minWidth)})),g=u.sum(e.columns.map(function(t){return u.getFirstDefined(r(t),t.width,t.maxWidth)})),C=u.splitProps(c(Yt,void 0,e,t)),A=u.splitProps(e.getHeaderProps(Yt,void 0,e,t)),s=[e.headerClassName,C.className,A.className],f=z({},e.headerStyle,C.style,A.style),l=z({},C.rest,A.rest),h={flex:i+" 0 auto",width:u.asPx(o),maxWidth:u.asPx(g)};return a.a.createElement(ct,z({key:n+"-"+e.id,className:I()(s),style:z({},f,h)},l),u.normalizeComponent(e.Header,{data:Et,column:e}))},Qt=function(e,n){var r=nt.find(function(t){return t.id===e.id})||{},i=tt.find(function(t){return t.id===e.id}),o="function"==typeof e.show?e.show():e.show,g=u.getFirstDefined(r.value,e.width,e.minWidth),C=u.getFirstDefined(r.value,e.width,e.maxWidth),A=u.splitProps(l(Yt,void 0,e,t)),c=u.splitProps(e.getHeaderProps(Yt,void 0,e,t)),s=[e.headerClassName,A.className,c.className],f=z({},e.headerStyle,A.style,c.style),h=z({},A.rest,c.rest),d=u.getFirstDefined(e.resizable,Z,!1),p=d?a.a.createElement(pt,z({onMouseDown:function(n){return t.resizeColumnStart(n,e,!1)},onTouchStart:function(n){return t.resizeColumnStart(n,e,!0)}},E("finalState",void 0,e,t))):null,b=u.getFirstDefined(e.sortable,W,!1);return a.a.createElement(ct,z({key:n+"-"+e.id,className:I()(s,d&&"rt-resizable-header",i?i.desc?"-sort-desc":"-sort-asc":"",b&&"-cursor-pointer",!o&&"-hidden",V&&V.slice(0,-1).includes(e.id)&&"rt-header-pivot"),style:z({},f,{flex:g+" 0 auto",width:u.asPx(g),maxWidth:u.asPx(C)}),toggleSort:function(n){b&&t.sortColumn(e,!!F&&n.shiftKey)}},h),a.a.createElement("div",{className:I()(d&&"rt-resizable-header-content")},u.normalizeComponent(e.Header,{data:Et,column:e})),p)},Jt=function(e,n){var r=nt.find(function(t){return t.id===e.id})||{},i=u.getFirstDefined(r.value,e.width,e.minWidth),o=u.getFirstDefined(r.value,e.width,e.maxWidth),g=u.splitProps(p(Yt,void 0,e,t)),C=u.splitProps(e.getHeaderProps(Yt,void 0,e,t)),A=[e.headerClassName,g.className,C.className],c=z({},e.headerStyle,g.style,C.style),s=z({},g.rest,C.rest),f=et.find(function(t){return t.id===e.id}),l=e.Filter||_t,h=u.getFirstDefined(e.filterable,G,!1);return a.a.createElement(ct,z({key:n+"-"+e.id,className:I()(A),style:z({},c,{flex:i+" 0 auto",width:u.asPx(i),maxWidth:u.asPx(o)})},s),h?u.normalizeComponent(l,{column:e,filter:f,onChange:function(n){return t.filterColumn(e,n)}},S.column.Filter):null)},$t=function(e,n){var r=nt.find(function(t){return t.id===e.id})||{},i="function"==typeof e.show?e.show():e.show,o=u.getFirstDefined(r.value,e.width,e.minWidth),g=o,C=u.getFirstDefined(r.value,e.width,e.maxWidth),A=u.splitProps(y(Yt,void 0,e,t)),c=u.splitProps(e.getProps(Yt,void 0,e,t)),s=[A.className,e.className,c.className],f=z({},A.style,e.style,c.style);return a.a.createElement(st,z({key:n+"-"+e.id,className:I()(s,!i&&"hidden"),style:z({},f,{flex:g+" 0 auto",width:u.asPx(o),maxWidth:u.asPx(C)})},A.rest),u.normalizeComponent(wt))},te=function(e,n){var r=m(Yt,void 0,void 0,t),i=u.splitProps(v(Yt,void 0,void 0,t));return a.a.createElement(At,z({key:n},r),a.a.createElement(It,{className:I()("-padRow",(Nt.length+n)%2?"-even":"-odd",i.className),style:i.style||{}},kt.map($t)))},ee=function(e,n){var r=nt.find(function(t){return t.id===e.id})||{},i="function"==typeof e.show?e.show():e.show,o=u.getFirstDefined(r.value,e.width,e.minWidth),g=u.getFirstDefined(r.value,e.width,e.maxWidth),C=u.splitProps(x(Yt,void 0,void 0,t)),A=u.splitProps(e.getProps(Yt,void 0,e,t)),c=u.splitProps(e.getFooterProps(Yt,void 0,e,t)),s=[C.className,e.className,A.className,c.className],f=z({},C.style,e.style,A.style,c.style);return a.a.createElement(st,z({key:n+"-"+e.id,className:I()(s,!i&&"hidden"),style:z({},f,{flex:o+" 0 auto",width:u.asPx(o),maxWidth:u.asPx(g)})},A.rest,C.rest,c.rest),u.normalizeComponent(e.Footer,{data:Et,column:e}))},ne=function(){var n=function(){var n=u.splitProps(k(Yt,void 0,void 0,t));return a.a.createElement(ft,z({},e,{pages:at,canPrevious:Ft,canNext:Zt,onPageChange:t.onPageChange,onPageSizeChange:t.onPageSizeChange,className:n.className,style:n.style},n.rest))}();return a.a.createElement("div",z({className:I()("ReactTable",r,Vt.className),style:z({},i,Vt.style)},Vt.rest),P&&M?a.a.createElement("div",{className:"pagination-top"},n):null,a.a.createElement(ot,z({className:I()(Bt.className,Pt?"rt-resizing":""),style:Bt.style},Bt.rest),Ot?function(){var e=u.splitProps(C(Yt,void 0,void 0,t)),n=u.splitProps(A(Yt,void 0,void 0,t));return a.a.createElement(gt,z({className:I()("-headerGroups",e.className),style:z({},e.style,{minWidth:Gt+"px"})},e.rest),a.a.createElement(It,z({className:n.className,style:n.style},n.rest),Tt.map(Xt)))}():null,function(){var e=u.splitProps(s(Yt,void 0,void 0,t)),n=u.splitProps(f(Yt,void 0,void 0,t));return a.a.createElement(gt,z({className:I()("-header",e.className),style:z({},e.style,{minWidth:Gt+"px"})},e.rest),a.a.createElement(It,z({className:n.className,style:n.style},n.rest),kt.map(Qt)))}(),Dt?function(){var e=u.splitProps(h(Yt,void 0,void 0,t)),n=u.splitProps(d(Yt,void 0,void 0,t));return a.a.createElement(gt,z({className:I()("-filters",e.className),style:z({},e.style,{minWidth:Gt+"px"})},e.rest),a.a.createElement(It,z({className:n.className,style:n.style},n.rest),kt.map(Jt)))}():null,a.a.createElement(Ct,z({className:I()(Ht.className),style:z({},Ht.style,{minWidth:Gt+"px"})},Ht.rest),Nt.map(function(e,n){return function e(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o={original:n[K],row:n,index:n[q],viewIndex:Ut+=1,pageSize:J,page:$,level:i.length,nestingPath:i.concat([r]),aggregated:n[H],groupedByPivot:n[X],subRows:n[B]},g=u.get(rt,o.nestingPath),C=m(Yt,o,void 0,t),A=u.splitProps(v(Yt,o,void 0,t));return a.a.createElement(At,z({key:o.nestingPath.join("_")},C),a.a.createElement(It,z({className:I()(A.className,n._viewIndex%2?"-even":"-odd"),style:A.style},A.rest),kt.map(function(e,r){var i=nt.find(function(t){return t.id===e.id})||{},C="function"==typeof e.show?e.show():e.show,A=u.getFirstDefined(i.value,e.width,e.minWidth),c=u.getFirstDefined(i.value,e.width,e.maxWidth),s=u.splitProps(y(Yt,o,e,t)),f=u.splitProps(e.getProps(Yt,o,e,t)),l=[s.className,e.className,f.className],h=z({},s.style,e.style,f.style),d=z({},o,{isExpanded:g,column:z({},e),value:o.row[e.id],pivoted:e.pivoted,expander:e.expander,resized:nt,show:C,width:A,maxWidth:c,tdProps:s,columnProps:f,classes:l,styles:h}),p=d.value,b=void 0,m=void 0,v=void 0,_=u.normalizeComponent(e.Cell,d,p),w=e.Aggregated||(e.aggregate?e.Cell:yt),x=e.Expander||bt,k=e.PivotValue||mt,T=vt||function(t){return a.a.createElement("div",null,a.a.createElement(x,t),a.a.createElement(k,t))},O=e.Pivot||T;(d.pivoted||d.expander)&&(d.expandable=!0,b=!0,!d.pivoted||d.subRows||ht||(d.expandable=!1)),d.pivoted?(m=o.row[U]===e.id&&d.subRows,v=V.indexOf(e.id)>V.indexOf(o.row[U])&&d.subRows,_=m?u.normalizeComponent(O,z({},d,{value:n[Y]}),n[Y]):v?u.normalizeComponent(w,d,p):null):d.aggregated&&(_=u.normalizeComponent(w,d,p)),d.expander&&(_=u.normalizeComponent(x,d,n[Y]),V&&(d.groupedByPivot&&(_=null),d.subRows||ht||(_=null)));var E=b?function(e){var n=u.clone(rt);return n=g?u.set(n,d.nestingPath,!1):u.set(n,d.nestingPath,{}),t.setStateWithData({expanded:n},function(){return it&&it(n,d.nestingPath,e)})}:function(){},P={onClick:E};return s.rest.onClick&&(P.onClick=function(t){s.rest.onClick(t,function(){return E(t)})}),f.rest.onClick&&(P.onClick=function(t){f.rest.onClick(t,function(){return E(t)})}),a.a.createElement(st,z({key:r+"-"+e.id,className:I()(l,!C&&"hidden",d.expandable&&"rt-expandable",(m||v)&&"rt-pivot"),style:z({},h,{flex:A+" 0 auto",width:u.asPx(A),maxWidth:u.asPx(c)})},s.rest,f.rest,P),_)})),o.subRows&&g&&o.subRows.map(function(t,n){return e(t,n,o.nestingPath)}),ht&&!o.subRows&&g&&ht(o))}(e,n)}),Rt.map(te)),zt?function(){var e=_(Yt,void 0,void 0,t),n=u.splitProps(w(Yt,void 0,void 0,t));return a.a.createElement(ut,z({className:e.className,style:z({},e.style,{minWidth:Gt+"px"})},e.rest),a.a.createElement(It,z({className:I()(n.className),style:n.style},n.rest),kt.map(ee)))}():null),P&&N?a.a.createElement("div",{className:"pagination-bottom"},n):null,!Nt.length&&a.a.createElement(dt,qt,u.normalizeComponent(L)),a.a.createElement(lt,z({loading:Q,loadingText:D},Kt)))};return n?n(Yt,ne,this):ne()}}]),e}();L.propTypes=j,L.defaultProps=S;var W=L;function F(t){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Z(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function G(t){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function U(t,e){return(U=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function V(){return(V=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var B=function(t){return a.a.createElement("button",V({type:"button"},t,{className:"pagination__btn"}),t.children)},H=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e){return!e||"object"!==F(e)&&"function"!=typeof e?Y(t):e}(this,G(e).call(this))).getSafePage=n.getSafePage.bind(Y(Y(n))),n.changePage=n.changePage.bind(Y(Y(n))),n.applyPage=n.applyPage.bind(Y(Y(n))),n.state={page:t.page},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&U(t,e)}(e,a.a.Component),function(t,e,n){e&&Z(t.prototype,e),n&&Z(t,n)}(e,[{key:"componentWillReceiveProps",value:function(t){this.setState({page:t.page})}},{key:"getSafePage",value:function(t){return Number.isNaN(t)&&(t=this.props.page),Math.min(Math.max(t,0),this.props.pages-1)}},{key:"changePage",value:function(t){t=this.getSafePage(t),this.setState({page:t}),this.props.page!==t&&this.props.onPageChange(t)}},{key:"applyPage",value:function(t){t&&t.preventDefault();var e=this.state.page;this.changePage(""===e?this.props.page:e)}},{key:"render",value:function(){var t=this,e=this.props,n=e.pages,r=e.page,i=e.sortedData,o=(e.showPageSizeOptions,e.pageSizeOptions,e.pageSize),g=e.showPageJump,C=e.canPrevious,A=e.canNext,I=(e.onPageSizeChange,e.className,e.PreviousComponent),c=void 0===I?B:I,s=e.NextComponent,u=void 0===s?B:s;return a.a.createElement("div",{className:"pagination",style:this.props.style},a.a.createElement("span",{className:"pagination__number-of-entries"},"Showing ",r*o+1," to"," ",r===n-1?i.length:r*o+o," ","of ",i.length," entries"),a.a.createElement("div",{className:"pagination__controls"},a.a.createElement("div",{className:"pagination__previous"},a.a.createElement(c,{onClick:function(){C&&t.changePage(r-1)},disabled:!C},this.props.previousText)),a.a.createElement("div",{className:"pagination__center"},a.a.createElement("span",{className:"pagination__page-info"},this.props.pageText," ",g?a.a.createElement("div",{className:"pagination__page-jump"},a.a.createElement("input",{type:""===this.state.page?"text":"number",onChange:function(e){var n=e.target.value,r=n-1;if(""===n)return t.setState({page:n});t.setState({page:t.getSafePage(r)})},value:""===this.state.page?"":this.state.page+1,onBlur:this.applyPage,onKeyPress:function(e){13!==e.which&&13!==e.keyCode||t.applyPage()}})):a.a.createElement("span",{className:"pagination__current-page"},r+1)," ",this.props.ofText,a.a.createElement("span",{className:"pagination__total-pages"},n||1))),a.a.createElement("div",{className:"pagination__next"},a.a.createElement(u,{onClick:function(){A&&t.changePage(r+1)},disabled:!A},this.props.nextText))))}}]),e}();n(21);function K(t){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function q(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function X(t,e){return!e||"object"!==K(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Q(t){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function J(t,e){return(J=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var $=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=X(this,Q(e).call(this,t))).state={search:""},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&J(t,e)}(e,a.a.Component),function(t,e,n){e&&q(t.prototype,e),n&&q(t,n)}(e,[{key:"updateSearch",value:function(t){this.setState({search:t.target.value}),this.props.onChange(t.target.value)}},{key:"render",value:function(){var t=this.props,e=t.placeholder,n=t.className,r=t.style;return a.a.createElement("input",{type:"search",placeholder:e||"Search...",onChange:this.updateSearch.bind(this),value:this.state.search,className:"dv-search ".concat(n||""),style:r})}}]),e}();function tt(t){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function et(){return(et=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function nt(t,e){if(null==t)return{};var n,r,a=function(t,e){if(null==t)return{};var n,r,a={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function rt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function at(t,e){return!e||"object"!==tt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function it(t){return(it=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ot(t,e){return(ot=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n(23);n(25),n(27);function gt(t){return(gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ct(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function At(t){return(At=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function It(t,e){return(It=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ct(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var st=function(t){return function(e){function n(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(e=at(this,it(n).call(this,t))).state={search:""},e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ot(t,e)}(n,a.a.Component),function(t,e,n){e&&rt(t.prototype,e),n&&rt(t,n)}(n,[{key:"handleChange",value:function(t){this.setState({search:t})}},{key:"render",value:function(){var e=this.state.search,n=this.props,r=n.data,i=nt(n,["data"]),o=r;return e.length>0&&(o=r.filter(function(t){return Object.keys(t).some(function(n){return"string"==typeof t[n]&&t[n].toLowerCase().includes(e.toLowerCase())})})),a.a.createElement(t,et({data:o},i),a.a.createElement($,{onChange:this.handleChange.bind(this)}))}}]),n}()}(function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e){return!e||"object"!==gt(e)&&"function"!=typeof e?ct(t):e}(this,At(e).call(this,t))).state={filter:"All"},n.updateFilter=n.updateFilter.bind(ct(ct(n))),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&It(t,e)}(e,a.a.Component),function(t,e,n){e&&Ct(t.prototype,e),n&&Ct(t,n)}(e,[{key:"updateFilter",value:function(t){this.setState({filter:t})}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.filter,r=t.columns,i=t.showPagination,o=e.filter(function(t){return n[t.country_type]});return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"dv-data-table__filter"},this.props.children),a.a.createElement(W,{data:o,columns:r,className:"-striped",showPagination:i||!1,showPageSizeOptions:!1,PaginationComponent:H}))}}]),e}());n(29);function ut(t){return(ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ft(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lt(t){return(lt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ht(t,e){return(ht=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function dt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var pt=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e){return!e||"object"!==ut(e)&&"function"!=typeof e?dt(t):e}(this,lt(e).call(this,t))).state={value:n.props.value},n.handleChange=n.handleChange.bind(dt(dt(n))),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ht(t,e)}(e,a.a.Component),function(t,e,n){e&&ft(t.prototype,e),n&&ft(t,n)}(e,[{key:"handleChange",value:function(t){this.setState({value:t.target.value}),this.props.onChange(t.target)}},{key:"render",value:function(){var t=this,e=this.props,n=e.label,r=e.min,i=e.max,o=e.step,g=e.id,C=e.secondary,A=this.state.value,I=Math.round(+A/+i*1*100);return a.a.createElement("div",{className:"dv-range-slider"},a.a.createElement("div",{className:"dv-range-slider__label-container"},a.a.createElement("span",{className:"dv-range-slider__label"},n),a.a.createElement("span",{className:"dv-range-slider__value"},A," out of ",i)),a.a.createElement("input",{id:g,className:"dv-range-slider__range ".concat(C?"dv-range-slider__range-secondary":""),type:"range",value:A,min:r,max:i,step:o||1,onChange:function(e){return t.handleChange(e)},style:{background:"linear-gradient(90deg,".concat(C?"#333":"#2dd1ac"," ").concat(I,"%,#e3e3e3 ").concat(I,"%)")}}))}}]),e}(),bt=function(){return new mt};function mt(){this.reset()}mt.prototype={constructor:mt,reset:function(){this.s=this.t=0},add:function(t){yt(vt,t,this.t),yt(this,vt.s,this.s),this.s?this.t+=vt.t:this.s=vt.t},valueOf:function(){return this.s}};var vt=new mt;function yt(t,e,n){var r=t.s=e+n,a=r-e,i=r-a;t.t=e-i+(n-a)}var _t=1e-6,wt=Math.PI,xt=wt/2,kt=wt/4,Tt=2*wt,Ot=180/wt,Et=wt/180,Pt=Math.abs,St=Math.atan,Mt=Math.atan2,Nt=Math.cos,jt=(Math.ceil,Math.exp),Rt=(Math.floor,Math.log),zt=(Math.pow,Math.sin),Dt=Math.sign||function(t){return t>0?1:t<0?-1:0},Lt=Math.sqrt,Wt=Math.tan;function Ft(t){return t>1?0:t<-1?wt:Math.acos(t)}function Zt(t){return t>1?xt:t<-1?-xt:Math.asin(t)}function Gt(){}function Ut(t,e){t&&Vt.hasOwnProperty(t.type)&&Vt[t.type](t,e)}var Yt={Feature:function(t,e){Ut(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,a=n.length;++r<a;)Ut(n[r].geometry,e)}},Vt={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,a=n.length;++r<a;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){Bt(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,a=n.length;++r<a;)Bt(n[r],e,0)},Polygon:function(t,e){Ht(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,a=n.length;++r<a;)Ht(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,a=n.length;++r<a;)Ut(n[r],e)}};function Bt(t,e,n){var r,a=-1,i=t.length-n;for(e.lineStart();++a<i;)r=t[a],e.point(r[0],r[1],r[2]);e.lineEnd()}function Ht(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)Bt(t[n],e,1);e.polygonEnd()}var Kt=function(t,e){t&&Yt.hasOwnProperty(t.type)?Yt[t.type](t,e):Ut(t,e)};bt(),bt();function qt(t){return[Mt(t[1],t[0]),Zt(t[2])]}function Xt(t){var e=t[0],n=t[1],r=Nt(n);return[r*Nt(e),r*zt(e),zt(n)]}function Qt(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Jt(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function $t(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function te(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function ee(t){var e=Lt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}bt();var ne=function(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n};function re(t,e){return[t>wt?t-Tt:t<-wt?t+Tt:t,e]}function ae(t,e,n){return(t%=Tt)?e||n?ne(oe(t),ge(e,n)):oe(t):e||n?ge(e,n):re}function ie(t){return function(e,n){return[(e+=t)>wt?e-Tt:e<-wt?e+Tt:e,n]}}function oe(t){var e=ie(t);return e.invert=ie(-t),e}function ge(t,e){var n=Nt(t),r=zt(t),a=Nt(e),i=zt(e);function o(t,e){var o=Nt(e),g=Nt(t)*o,C=zt(t)*o,A=zt(e),I=A*n+g*r;return[Mt(C*a-I*i,g*n-A*r),Zt(I*a+C*i)]}return o.invert=function(t,e){var o=Nt(e),g=Nt(t)*o,C=zt(t)*o,A=zt(e),I=A*a-C*i;return[Mt(C*a+A*i,g*n+I*r),Zt(I*n-g*r)]},o}re.invert=re;var Ce=function(t){function e(e){return(e=t(e[0]*Et,e[1]*Et))[0]*=Ot,e[1]*=Ot,e}return t=ae(t[0]*Et,t[1]*Et,t.length>2?t[2]*Et:0),e.invert=function(e){return(e=t.invert(e[0]*Et,e[1]*Et))[0]*=Ot,e[1]*=Ot,e},e};function Ae(t,e,n,r,a,i){if(n){var o=Nt(e),g=zt(e),C=r*n;null==a?(a=e+r*Tt,i=e-C/2):(a=Ie(o,a),i=Ie(o,i),(r>0?a<i:a>i)&&(a+=r*Tt));for(var A,I=a;r>0?I>i:I<i;I-=C)A=qt([o,-g*Nt(I),-g*zt(I)]),t.point(A[0],A[1])}}function Ie(t,e){(e=Xt(e))[0]-=t,ee(e);var n=Ft(-e[1]);return((-e[2]<0?-n:n)+Tt-_t)%Tt}var ce=function(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:Gt,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},se=function(t,e){return Pt(t[0]-e[0])<_t&&Pt(t[1]-e[1])<_t};function ue(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}var fe=function(t,e,n,r,a){var i,o,g=[],C=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],o=t[e];if(se(r,o)){for(a.lineStart(),i=0;i<e;++i)a.point((r=t[i])[0],r[1]);a.lineEnd()}else g.push(n=new ue(r,t,null,!0)),C.push(n.o=new ue(r,null,n,!1)),g.push(n=new ue(o,t,null,!1)),C.push(n.o=new ue(o,null,n,!0))}}),g.length){for(C.sort(e),le(g),le(C),i=0,o=C.length;i<o;++i)C[i].e=n=!n;for(var A,I,c=g[0];;){for(var s=c,u=!0;s.v;)if((s=s.n)===c)return;A=s.z,a.lineStart();do{if(s.v=s.o.v=!0,s.e){if(u)for(i=0,o=A.length;i<o;++i)a.point((I=A[i])[0],I[1]);else r(s.x,s.n.x,1,a);s=s.n}else{if(u)for(A=s.p.z,i=A.length-1;i>=0;--i)a.point((I=A[i])[0],I[1]);else r(s.x,s.p.x,-1,a);s=s.p}A=(s=s.o).z,u=!u}while(!s.v);a.lineEnd()}}};function le(t){if(e=t.length){for(var e,n,r=0,a=t[0];++r<e;)a.n=n=t[r],n.p=a,a=n;a.n=n=t[0],n.p=a}}var he=bt(),de=function(t,e){var n=e[0],r=e[1],a=zt(r),i=[zt(n),-Nt(n),0],o=0,g=0;he.reset(),1===a?r=xt+_t:-1===a&&(r=-xt-_t);for(var C=0,A=t.length;C<A;++C)if(c=(I=t[C]).length)for(var I,c,s=I[c-1],u=s[0],f=s[1]/2+kt,l=zt(f),h=Nt(f),d=0;d<c;++d,u=b,l=v,h=y,s=p){var p=I[d],b=p[0],m=p[1]/2+kt,v=zt(m),y=Nt(m),_=b-u,w=_>=0?1:-1,x=w*_,k=x>wt,T=l*v;if(he.add(Mt(T*w*zt(x),h*y+T*Nt(x))),o+=k?_+w*Tt:_,k^u>=n^b>=n){var O=Jt(Xt(s),Xt(p));ee(O);var E=Jt(i,O);ee(E);var P=(k^_>=0?-1:1)*Zt(E[2]);(r>P||r===P&&(O[0]||O[1]))&&(g+=k^_>=0?1:-1)}}return(o<-_t||o<_t&&he<-_t)^1&g},pe=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},be=function(t){return 1===t.length&&(t=function(t){return function(e,n){return pe(t(e),n)}}(t)),{left:function(e,n,r,a){for(null==r&&(r=0),null==a&&(a=e.length);r<a;){var i=r+a>>>1;t(e[i],n)<0?r=i+1:a=i}return r},right:function(e,n,r,a){for(null==r&&(r=0),null==a&&(a=e.length);r<a;){var i=r+a>>>1;t(e[i],n)>0?a=i:r=i+1}return r}}};var me=be(pe),ve=me.right,ye=(me.left,ve);var _e=Array.prototype,we=(_e.slice,_e.map,Math.sqrt(50)),xe=Math.sqrt(10),ke=Math.sqrt(2),Te=function(t,e,n){var r,a,i,o,g=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e<t)&&(a=t,t=e,e=a),0===(o=Oe(t,e,n))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),i=new Array(a=Math.ceil(e-t+1));++g<a;)i[g]=(t+g)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),i=new Array(a=Math.ceil(t-e+1));++g<a;)i[g]=(t-g)/o;return r&&i.reverse(),i};function Oe(t,e,n){var r=(e-t)/Math.max(0,n),a=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,a);return a>=0?(i>=we?10:i>=xe?5:i>=ke?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(i>=we?10:i>=xe?5:i>=ke?2:1)}function Ee(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),a=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/a;return i>=we?a*=10:i>=xe?a*=5:i>=ke&&(a*=2),e<t?-a:a}var Pe=function(t,e){var n,r,a=t.length,i=-1;if(null==e){for(;++i<a;)if(null!=(n=t[i])&&n>=n)for(r=n;++i<a;)null!=(n=t[i])&&n>r&&(r=n)}else for(;++i<a;)if(null!=(n=e(t[i],i,t))&&n>=n)for(r=n;++i<a;)null!=(n=e(t[i],i,t))&&n>r&&(r=n);return r},Se=function(t){for(var e,n,r,a=t.length,i=-1,o=0;++i<a;)o+=t[i].length;for(n=new Array(o);--a>=0;)for(e=(r=t[a]).length;--e>=0;)n[--o]=r[e];return n};var Me=function(t,e,n,r){return function(a){var i,o,g,C=e(a),A=ce(),I=e(A),c=!1,s={point:u,lineStart:l,lineEnd:h,polygonStart:function(){s.point=d,s.lineStart=p,s.lineEnd=b,o=[],i=[]},polygonEnd:function(){s.point=u,s.lineStart=l,s.lineEnd=h,o=Se(o);var t=de(i,r);o.length?(c||(a.polygonStart(),c=!0),fe(o,je,t,n,a)):t&&(c||(a.polygonStart(),c=!0),a.lineStart(),n(null,null,1,a),a.lineEnd()),c&&(a.polygonEnd(),c=!1),o=i=null},sphere:function(){a.polygonStart(),a.lineStart(),n(null,null,1,a),a.lineEnd(),a.polygonEnd()}};function u(e,n){t(e,n)&&a.point(e,n)}function f(t,e){C.point(t,e)}function l(){s.point=f,C.lineStart()}function h(){s.point=u,C.lineEnd()}function d(t,e){g.push([t,e]),I.point(t,e)}function p(){I.lineStart(),g=[]}function b(){d(g[0][0],g[0][1]),I.lineEnd();var t,e,n,r,C=I.clean(),s=A.result(),u=s.length;if(g.pop(),i.push(g),g=null,u)if(1&C){if((e=(n=s[0]).length-1)>0){for(c||(a.polygonStart(),c=!0),a.lineStart(),t=0;t<e;++t)a.point((r=n[t])[0],r[1]);a.lineEnd()}}else u>1&&2&C&&s.push(s.pop().concat(s.shift())),o.push(s.filter(Ne))}return s}};function Ne(t){return t.length>1}function je(t,e){return((t=t.x)[0]<0?t[1]-xt-_t:xt-t[1])-((e=e.x)[0]<0?e[1]-xt-_t:xt-e[1])}var Re=Me(function(){return!0},function(t){var e,n=NaN,r=NaN,a=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(i,o){var g=i>0?wt:-wt,C=Pt(i-n);Pt(C-wt)<_t?(t.point(n,r=(r+o)/2>0?xt:-xt),t.point(a,r),t.lineEnd(),t.lineStart(),t.point(g,r),t.point(i,r),e=0):a!==g&&C>=wt&&(Pt(n-a)<_t&&(n-=a*_t),Pt(i-g)<_t&&(i-=g*_t),r=function(t,e,n,r){var a,i,o=zt(t-n);return Pt(o)>_t?St((zt(e)*(i=Nt(r))*zt(n)-zt(r)*(a=Nt(e))*zt(t))/(a*i*o)):(e+r)/2}(n,r,i,o),t.point(a,r),t.lineEnd(),t.lineStart(),t.point(g,r),e=0),t.point(n=i,r=o),a=g},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var a;if(null==t)a=n*xt,r.point(-wt,a),r.point(0,a),r.point(wt,a),r.point(wt,0),r.point(wt,-a),r.point(0,-a),r.point(-wt,-a),r.point(-wt,0),r.point(-wt,a);else if(Pt(t[0]-e[0])>_t){var i=t[0]<e[0]?wt:-wt;a=n*i/2,r.point(-i,a),r.point(0,a),r.point(i,a)}else r.point(e[0],e[1])},[-wt,-xt]);var ze=function(t){var e=Nt(t),n=6*Et,r=e>0,a=Pt(e)>_t;function i(t,n){return Nt(t)*Nt(n)>e}function o(t,n,r){var a=[1,0,0],i=Jt(Xt(t),Xt(n)),o=Qt(i,i),g=i[0],C=o-g*g;if(!C)return!r&&t;var A=e*o/C,I=-e*g/C,c=Jt(a,i),s=te(a,A);$t(s,te(i,I));var u=c,f=Qt(s,u),l=Qt(u,u),h=f*f-l*(Qt(s,s)-1);if(!(h<0)){var d=Lt(h),p=te(u,(-f-d)/l);if($t(p,s),p=qt(p),!r)return p;var b,m=t[0],v=n[0],y=t[1],_=n[1];v<m&&(b=m,m=v,v=b);var w=v-m,x=Pt(w-wt)<_t;if(!x&&_<y&&(b=y,y=_,_=b),x||w<_t?x?y+_>0^p[1]<(Pt(p[0]-m)<_t?y:_):y<=p[1]&&p[1]<=_:w>wt^(m<=p[0]&&p[0]<=v)){var k=te(u,(-f+d)/l);return $t(k,s),[p,qt(k)]}}}function g(e,n){var a=r?t:wt-t,i=0;return e<-a?i|=1:e>a&&(i|=2),n<-a?i|=4:n>a&&(i|=8),i}return Me(i,function(t){var e,n,C,A,I;return{lineStart:function(){A=C=!1,I=1},point:function(c,s){var u,f=[c,s],l=i(c,s),h=r?l?0:g(c,s):l?g(c+(c<0?wt:-wt),s):0;if(!e&&(A=C=l)&&t.lineStart(),l!==C&&(!(u=o(e,f))||se(e,u)||se(f,u))&&(f[0]+=_t,f[1]+=_t,l=i(f[0],f[1])),l!==C)I=0,l?(t.lineStart(),u=o(f,e),t.point(u[0],u[1])):(u=o(e,f),t.point(u[0],u[1]),t.lineEnd()),e=u;else if(a&&e&&r^l){var d;h&n||!(d=o(f,e,!0))||(I=0,r?(t.lineStart(),t.point(d[0][0],d[0][1]),t.point(d[1][0],d[1][1]),t.lineEnd()):(t.point(d[1][0],d[1][1]),t.lineEnd(),t.lineStart(),t.point(d[0][0],d[0][1])))}!l||e&&se(e,f)||t.point(f[0],f[1]),e=f,C=l,n=h},lineEnd:function(){C&&t.lineEnd(),e=null},clean:function(){return I|(A&&C)<<1}}},function(e,r,a,i){Ae(i,t,n,a,e,r)},r?[0,-t]:[-wt,t-wt])},De=function(t,e,n,r,a,i){var o,g=t[0],C=t[1],A=0,I=1,c=e[0]-g,s=e[1]-C;if(o=n-g,c||!(o>0)){if(o/=c,c<0){if(o<A)return;o<I&&(I=o)}else if(c>0){if(o>I)return;o>A&&(A=o)}if(o=a-g,c||!(o<0)){if(o/=c,c<0){if(o>I)return;o>A&&(A=o)}else if(c>0){if(o<A)return;o<I&&(I=o)}if(o=r-C,s||!(o>0)){if(o/=s,s<0){if(o<A)return;o<I&&(I=o)}else if(s>0){if(o>I)return;o>A&&(A=o)}if(o=i-C,s||!(o<0)){if(o/=s,s<0){if(o>I)return;o>A&&(A=o)}else if(s>0){if(o<A)return;o<I&&(I=o)}return A>0&&(t[0]=g+A*c,t[1]=C+A*s),I<1&&(e[0]=g+I*c,e[1]=C+I*s),!0}}}}},Le=1e9,We=-Le;function Fe(t,e,n,r){function a(a,i){return t<=a&&a<=n&&e<=i&&i<=r}function i(a,i,g,A){var I=0,c=0;if(null==a||(I=o(a,g))!==(c=o(i,g))||C(a,i)<0^g>0)do{A.point(0===I||3===I?t:n,I>1?r:e)}while((I=(I+g+4)%4)!==c);else A.point(i[0],i[1])}function o(r,a){return Pt(r[0]-t)<_t?a>0?0:3:Pt(r[0]-n)<_t?a>0?2:1:Pt(r[1]-e)<_t?a>0?1:0:a>0?3:2}function g(t,e){return C(t.x,e.x)}function C(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(o){var C,A,I,c,s,u,f,l,h,d,p,b=o,m=ce(),v={point:y,lineStart:function(){v.point=_,A&&A.push(I=[]);d=!0,h=!1,f=l=NaN},lineEnd:function(){C&&(_(c,s),u&&h&&m.rejoin(),C.push(m.result()));v.point=y,h&&b.lineEnd()},polygonStart:function(){b=m,C=[],A=[],p=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,a=A.length;n<a;++n)for(var i,o,g=A[n],C=1,I=g.length,c=g[0],s=c[0],u=c[1];C<I;++C)i=s,o=u,c=g[C],s=c[0],u=c[1],o<=r?u>r&&(s-i)*(r-o)>(u-o)*(t-i)&&++e:u<=r&&(s-i)*(r-o)<(u-o)*(t-i)&&--e;return e}(),n=p&&e,a=(C=Se(C)).length;(n||a)&&(o.polygonStart(),n&&(o.lineStart(),i(null,null,1,o),o.lineEnd()),a&&fe(C,g,e,i,o),o.polygonEnd());b=o,C=A=I=null}};function y(t,e){a(t,e)&&b.point(t,e)}function _(i,o){var g=a(i,o);if(A&&I.push([i,o]),d)c=i,s=o,u=g,d=!1,g&&(b.lineStart(),b.point(i,o));else if(g&&h)b.point(i,o);else{var C=[f=Math.max(We,Math.min(Le,f)),l=Math.max(We,Math.min(Le,l))],m=[i=Math.max(We,Math.min(Le,i)),o=Math.max(We,Math.min(Le,o))];De(C,m,t,e,n,r)?(h||(b.lineStart(),b.point(C[0],C[1])),b.point(m[0],m[1]),g||b.lineEnd(),p=!1):g&&(b.lineStart(),b.point(i,o),p=!1)}f=i,l=o,h=g}return v}}bt();var Ze,Ge,Ue,Ye,Ve=function(t){return t},Be=bt(),He=bt(),Ke={point:Gt,lineStart:Gt,lineEnd:Gt,polygonStart:function(){Ke.lineStart=qe,Ke.lineEnd=Je},polygonEnd:function(){Ke.lineStart=Ke.lineEnd=Ke.point=Gt,Be.add(Pt(He)),He.reset()},result:function(){var t=Be/2;return Be.reset(),t}};function qe(){Ke.point=Xe}function Xe(t,e){Ke.point=Qe,Ze=Ue=t,Ge=Ye=e}function Qe(t,e){He.add(Ye*t-Ue*e),Ue=t,Ye=e}function Je(){Qe(Ze,Ge)}var $e=Ke,tn=1/0,en=tn,nn=-tn,rn=nn;var an,on,gn,Cn,An={point:function(t,e){t<tn&&(tn=t);t>nn&&(nn=t);e<en&&(en=e);e>rn&&(rn=e)},lineStart:Gt,lineEnd:Gt,polygonStart:Gt,polygonEnd:Gt,result:function(){var t=[[tn,en],[nn,rn]];return nn=rn=-(en=tn=1/0),t}},In=0,cn=0,sn=0,un=0,fn=0,ln=0,hn=0,dn=0,pn=0,bn={point:mn,lineStart:vn,lineEnd:wn,polygonStart:function(){bn.lineStart=xn,bn.lineEnd=kn},polygonEnd:function(){bn.point=mn,bn.lineStart=vn,bn.lineEnd=wn},result:function(){var t=pn?[hn/pn,dn/pn]:ln?[un/ln,fn/ln]:sn?[In/sn,cn/sn]:[NaN,NaN];return In=cn=sn=un=fn=ln=hn=dn=pn=0,t}};function mn(t,e){In+=t,cn+=e,++sn}function vn(){bn.point=yn}function yn(t,e){bn.point=_n,mn(gn=t,Cn=e)}function _n(t,e){var n=t-gn,r=e-Cn,a=Lt(n*n+r*r);un+=a*(gn+t)/2,fn+=a*(Cn+e)/2,ln+=a,mn(gn=t,Cn=e)}function wn(){bn.point=mn}function xn(){bn.point=Tn}function kn(){On(an,on)}function Tn(t,e){bn.point=On,mn(an=gn=t,on=Cn=e)}function On(t,e){var n=t-gn,r=e-Cn,a=Lt(n*n+r*r);un+=a*(gn+t)/2,fn+=a*(Cn+e)/2,ln+=a,hn+=(a=Cn*t-gn*e)*(gn+t),dn+=a*(Cn+e),pn+=3*a,mn(gn=t,Cn=e)}var En=bn;function Pn(t){this._context=t}Pn.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,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(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,Tt)}},result:Gt};var Sn,Mn,Nn,jn,Rn,zn=bt(),Dn={point:Gt,lineStart:function(){Dn.point=Ln},lineEnd:function(){Sn&&Wn(Mn,Nn),Dn.point=Gt},polygonStart:function(){Sn=!0},polygonEnd:function(){Sn=null},result:function(){var t=+zn;return zn.reset(),t}};function Ln(t,e){Dn.point=Wn,Mn=jn=t,Nn=Rn=e}function Wn(t,e){jn-=t,Rn-=e,zn.add(Lt(jn*jn+Rn*Rn)),jn=t,Rn=e}var Fn=Dn;function Zn(){this._string=[]}function Gn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}Zn.prototype={_radius:4.5,_circle:Gn(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,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(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Gn(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var Un=function(t,e){var n,r,a=4.5;function i(t){return t&&("function"==typeof a&&r.pointRadius(+a.apply(this,arguments)),Kt(t,n(r))),r.result()}return i.area=function(t){return Kt(t,n($e)),$e.result()},i.measure=function(t){return Kt(t,n(Fn)),Fn.result()},i.bounds=function(t){return Kt(t,n(An)),An.result()},i.centroid=function(t){return Kt(t,n(En)),En.result()},i.projection=function(e){return arguments.length?(n=null==e?(t=null,Ve):(t=e).stream,i):t},i.context=function(t){return arguments.length?(r=null==t?(e=null,new Zn):new Pn(e=t),"function"!=typeof a&&r.pointRadius(a),i):e},i.pointRadius=function(t){return arguments.length?(a="function"==typeof t?t:(r.pointRadius(+t),+t),i):a},i.projection(t).context(e)};function Yn(t){return function(e){var n=new Vn;for(var r in t)n[r]=t[r];return n.stream=e,n}}function Vn(){}function Bn(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Kt(n,t.stream(An)),e(An.result()),null!=r&&t.clipExtent(r),t}function Hn(t,e,n){return Bn(t,function(n){var r=e[1][0]-e[0][0],a=e[1][1]-e[0][1],i=Math.min(r/(n[1][0]-n[0][0]),a/(n[1][1]-n[0][1])),o=+e[0][0]+(r-i*(n[1][0]+n[0][0]))/2,g=+e[0][1]+(a-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([o,g])},n)}function Kn(t,e,n){return Hn(t,[[0,0],e],n)}function qn(t,e,n){return Bn(t,function(n){var r=+e,a=r/(n[1][0]-n[0][0]),i=(r-a*(n[1][0]+n[0][0]))/2,o=-a*n[0][1];t.scale(150*a).translate([i,o])},n)}function Xn(t,e,n){return Bn(t,function(n){var r=+e,a=r/(n[1][1]-n[0][1]),i=-a*n[0][0],o=(r-a*(n[1][1]+n[0][1]))/2;t.scale(150*a).translate([i,o])},n)}Vn.prototype={constructor:Vn,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Qn=16,Jn=Nt(30*Et),$n=function(t,e){return+e?function(t,e){function n(r,a,i,o,g,C,A,I,c,s,u,f,l,h){var d=A-r,p=I-a,b=d*d+p*p;if(b>4*e&&l--){var m=o+s,v=g+u,y=C+f,_=Lt(m*m+v*v+y*y),w=Zt(y/=_),x=Pt(Pt(y)-1)<_t||Pt(i-c)<_t?(i+c)/2:Mt(v,m),k=t(x,w),T=k[0],O=k[1],E=T-r,P=O-a,S=p*E-d*P;(S*S/b>e||Pt((d*E+p*P)/b-.5)>.3||o*s+g*u+C*f<Jn)&&(n(r,a,i,o,g,C,T,O,x,m/=_,v/=_,y,l,h),h.point(T,O),n(T,O,x,m,v,y,A,I,c,s,u,f,l,h))}}return function(e){var r,a,i,o,g,C,A,I,c,s,u,f,l={point:h,lineStart:d,lineEnd:b,polygonStart:function(){e.polygonStart(),l.lineStart=m},polygonEnd:function(){e.polygonEnd(),l.lineStart=d}};function h(n,r){n=t(n,r),e.point(n[0],n[1])}function d(){I=NaN,l.point=p,e.lineStart()}function p(r,a){var i=Xt([r,a]),o=t(r,a);n(I,c,A,s,u,f,I=o[0],c=o[1],A=r,s=i[0],u=i[1],f=i[2],Qn,e),e.point(I,c)}function b(){l.point=h,e.lineEnd()}function m(){d(),l.point=v,l.lineEnd=y}function v(t,e){p(r=t,e),a=I,i=c,o=s,g=u,C=f,l.point=p}function y(){n(I,c,A,s,u,f,a,i,r,o,g,C,Qn,e),l.lineEnd=b,b()}return l}}(t,e):function(t){return Yn({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)};var tr=Yn({point:function(t,e){this.stream.point(t*Et,e*Et)}});function er(t,e,n,r){var a=Nt(r),i=zt(r),o=a*t,g=i*t,C=a/t,A=i/t,I=(i*n-a*e)/t,c=(i*e+a*n)/t;function s(t,r){return[o*t-g*r+e,n-g*t-o*r]}return s.invert=function(t,e){return[C*t-A*e+I,c-A*t-C*e]},s}function nr(t){return rr(function(){return t})()}function rr(t){var e,n,r,a,i,o,g,C,A,I,c=150,s=480,u=250,f=0,l=0,h=0,d=0,p=0,b=0,m=null,v=Re,y=null,_=Ve,w=.5;function x(t){return C(t[0]*Et,t[1]*Et)}function k(t){return(t=C.invert(t[0],t[1]))&&[t[0]*Ot,t[1]*Ot]}function T(){var t=er(c,0,0,b).apply(null,e(f,l)),r=(b?er:function(t,e,n){function r(r,a){return[e+t*r,n-t*a]}return r.invert=function(r,a){return[(r-e)/t,(n-a)/t]},r})(c,s-t[0],u-t[1],b);return n=ae(h,d,p),g=ne(e,r),C=ne(n,g),o=$n(g,w),O()}function O(){return A=I=null,x}return x.stream=function(t){return A&&I===t?A:A=tr(function(t){return Yn({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}(n)(v(o(_(I=t)))))},x.preclip=function(t){return arguments.length?(v=t,m=void 0,O()):v},x.postclip=function(t){return arguments.length?(_=t,y=r=a=i=null,O()):_},x.clipAngle=function(t){return arguments.length?(v=+t?ze(m=t*Et):(m=null,Re),O()):m*Ot},x.clipExtent=function(t){return arguments.length?(_=null==t?(y=r=a=i=null,Ve):Fe(y=+t[0][0],r=+t[0][1],a=+t[1][0],i=+t[1][1]),O()):null==y?null:[[y,r],[a,i]]},x.scale=function(t){return arguments.length?(c=+t,T()):c},x.translate=function(t){return arguments.length?(s=+t[0],u=+t[1],T()):[s,u]},x.center=function(t){return arguments.length?(f=t[0]%360*Et,l=t[1]%360*Et,T()):[f*Ot,l*Ot]},x.rotate=function(t){return arguments.length?(h=t[0]%360*Et,d=t[1]%360*Et,p=t.length>2?t[2]%360*Et:0,T()):[h*Ot,d*Ot,p*Ot]},x.angle=function(t){return arguments.length?(b=t%360*Et,T()):b*Ot},x.precision=function(t){return arguments.length?(o=$n(g,w=t*t),O()):Lt(w)},x.fitExtent=function(t,e){return Hn(x,t,e)},x.fitSize=function(t,e){return Kn(x,t,e)},x.fitWidth=function(t,e){return qn(x,t,e)},x.fitHeight=function(t,e){return Xn(x,t,e)},function(){return e=t.apply(this,arguments),x.invert=e.invert&&k,T()}}function ar(t){var e=0,n=wt/3,r=rr(t),a=r(e,n);return a.parallels=function(t){return arguments.length?r(e=t[0]*Et,n=t[1]*Et):[e*Ot,n*Ot]},a}function ir(t,e){var n=zt(t),r=(n+zt(e))/2;if(Pt(r)<_t)return function(t){var e=Nt(t);function n(t,n){return[t*e,zt(n)/e]}return n.invert=function(t,n){return[t/e,Zt(n*e)]},n}(t);var a=1+n*(2*r-n),i=Lt(a)/r;function o(t,e){var n=Lt(a-2*r*zt(e))/r;return[n*zt(t*=r),i-n*Nt(t)]}return o.invert=function(t,e){var n=i-e;return[Mt(t,Pt(n))/r*Dt(n),Zt((a-(t*t+n*n)*r*r)/(2*r))]},o}var or=function(){return ar(ir).scale(155.424).center([0,33.6442])};var gr=function(){var t,e,n,r,a,i,o=or().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7]),g=or().rotate([154,0]).center([-2,58.5]).parallels([55,65]),C=or().rotate([157,0]).center([-3,19.9]).parallels([8,18]),A={point:function(t,e){i=[t,e]}};function I(t){var e=t[0],o=t[1];return i=null,n.point(e,o),i||(r.point(e,o),i)||(a.point(e,o),i)}function c(){return t=e=null,I}return I.invert=function(t){var e=o.scale(),n=o.translate(),r=(t[0]-n[0])/e,a=(t[1]-n[1])/e;return(a>=.12&&a<.234&&r>=-.425&&r<-.214?g:a>=.166&&a<.234&&r>=-.214&&r<-.115?C:o).invert(t)},I.stream=function(n){return t&&e===n?t:t=function(t){var e=t.length;return{point:function(n,r){for(var a=-1;++a<e;)t[a].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}([o.stream(e=n),g.stream(n),C.stream(n)])},I.precision=function(t){return arguments.length?(o.precision(t),g.precision(t),C.precision(t),c()):o.precision()},I.scale=function(t){return arguments.length?(o.scale(t),g.scale(.35*t),C.scale(t),I.translate(o.translate())):o.scale()},I.translate=function(t){if(!arguments.length)return o.translate();var e=o.scale(),i=+t[0],I=+t[1];return n=o.translate(t).clipExtent([[i-.455*e,I-.238*e],[i+.455*e,I+.238*e]]).stream(A),r=g.translate([i-.307*e,I+.201*e]).clipExtent([[i-.425*e+_t,I+.12*e+_t],[i-.214*e-_t,I+.234*e-_t]]).stream(A),a=C.translate([i-.205*e,I+.212*e]).clipExtent([[i-.214*e+_t,I+.166*e+_t],[i-.115*e-_t,I+.234*e-_t]]).stream(A),c()},I.fitExtent=function(t,e){return Hn(I,t,e)},I.fitSize=function(t,e){return Kn(I,t,e)},I.fitWidth=function(t,e){return qn(I,t,e)},I.fitHeight=function(t,e){return Xn(I,t,e)},I.scale(1070)};function Cr(t){return function(e,n){var r=Nt(e),a=Nt(n),i=t(r*a);return[i*a*zt(e),i*zt(n)]}}function Ar(t){return function(e,n){var r=Lt(e*e+n*n),a=t(r),i=zt(a),o=Nt(a);return[Mt(e*i,r*o),Zt(r&&n*i/r)]}}var Ir=Cr(function(t){return Lt(2/(1+t))});Ir.invert=Ar(function(t){return 2*Zt(t/2)});var cr=Cr(function(t){return(t=Ft(t))&&t/zt(t)});cr.invert=Ar(function(t){return t});function sr(t,e){return[t,Rt(Wt((xt+e)/2))]}sr.invert=function(t,e){return[t,2*St(jt(e))-xt]};var ur=function(){return fr(sr).scale(961/Tt)};function fr(t){var e,n,r,a=nr(t),i=a.center,o=a.scale,g=a.translate,C=a.clipExtent,A=null;function I(){var i=wt*o(),g=a(Ce(a.rotate()).invert([0,0]));return C(null==A?[[g[0]-i,g[1]-i],[g[0]+i,g[1]+i]]:t===sr?[[Math.max(g[0]-i,A),e],[Math.min(g[0]+i,n),r]]:[[A,Math.max(g[1]-i,e)],[n,Math.min(g[1]+i,r)]])}return a.scale=function(t){return arguments.length?(o(t),I()):o()},a.translate=function(t){return arguments.length?(g(t),I()):g()},a.center=function(t){return arguments.length?(i(t),I()):i()},a.clipExtent=function(t){return arguments.length?(null==t?A=e=n=r=null:(A=+t[0][0],e=+t[0][1],n=+t[1][0],r=+t[1][1]),I()):null==A?null:[[A,e],[n,r]]},I()}function lr(t,e){return[t,e]}lr.invert=lr;var hr=1.340264,dr=-.081106,pr=893e-6,br=.003796,mr=Lt(3)/2;function vr(t,e){var n=Zt(mr*zt(e)),r=n*n,a=r*r*r;return[t*Nt(n)/(mr*(hr+3*dr*r+a*(7*pr+9*br*r))),n*(hr+dr*r+a*(pr+br*r))]}vr.invert=function(t,e){for(var n,r=e,a=r*r,i=a*a*a,o=0;o<12&&(i=(a=(r-=n=(r*(hr+dr*a+i*(pr+br*a))-e)/(hr+3*dr*a+i*(7*pr+9*br*a)))*r)*a*a,!(Pt(n)<1e-12));++o);return[mr*t*(hr+3*dr*a+i*(7*pr+9*br*a))/Nt(r),Zt(zt(r)/mr)]};function yr(t,e){var n=Nt(e),r=Nt(t)*n;return[n*zt(t)/r,zt(e)/r]}yr.invert=Ar(St);function _r(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}_r.invert=function(t,e){var n,r=e,a=25;do{var i=r*r,o=i*i;r-=n=(r*(1.007226+i*(.015085+o*(.028874*i-.044475-.005916*o)))-e)/(1.007226+i*(.045255+o*(.259866*i-.311325-.005916*11*o)))}while(Pt(n)>_t&&--a>0);return[t/(.8707+(i=r*r)*(i*(i*i*i*(.003971-.001529*i)-.013791)-.131979)),r]};function wr(t,e){return[Nt(e)*zt(t),zt(e)]}wr.invert=Ar(Zt);function xr(t,e){var n=Nt(e),r=1+Nt(t)*n;return[n*zt(t)/r,zt(e)/r]}xr.invert=Ar(function(t){return 2*St(t)});function kr(t,e){return[Rt(Wt((xt+e)/2)),-t]}kr.invert=function(t,e){return[-e,2*St(jt(t))-xt]};var Tr=function(t){return t},Or=function(t){if(null==t)return Tr;var e,n,r=t.scale[0],a=t.scale[1],i=t.translate[0],o=t.translate[1];return function(t,g){g||(e=n=0);var C=2,A=t.length,I=new Array(A);for(I[0]=(e+=t[0])*r+i,I[1]=(n+=t[1])*a+o;C<A;)I[C]=t[C],++C;return I}},Er=function(t,e){for(var n,r=t.length,a=r-e;a<--r;)n=t[a],t[a++]=t[r],t[r]=n},Pr=function(t,e){return"GeometryCollection"===e.type?{type:"FeatureCollection",features:e.geometries.map(function(e){return Sr(t,e)})}:Sr(t,e)};function Sr(t,e){var n=e.id,r=e.bbox,a=null==e.properties?{}:e.properties,i=Mr(t,e);return null==n&&null==r?{type:"Feature",properties:a,geometry:i}:null==r?{type:"Feature",id:n,properties:a,geometry:i}:{type:"Feature",id:n,bbox:r,properties:a,geometry:i}}function Mr(t,e){var n=Or(t.transform),r=t.arcs;function a(t,e){e.length&&e.pop();for(var a=r[t<0?~t:t],i=0,o=a.length;i<o;++i)e.push(n(a[i],i));t<0&&Er(e,o)}function i(t){return n(t)}function o(t){for(var e=[],n=0,r=t.length;n<r;++n)a(t[n],e);return e.length<2&&e.push(e[0]),e}function g(t){for(var e=o(t);e.length<4;)e.push(e[0]);return e}function C(t){return t.map(g)}return function t(e){var n,r=e.type;switch(r){case"GeometryCollection":return{type:r,geometries:e.geometries.map(t)};case"Point":n=i(e.coordinates);break;case"MultiPoint":n=e.coordinates.map(i);break;case"LineString":n=o(e.arcs);break;case"MultiLineString":n=e.arcs.map(o);break;case"Polygon":n=C(e.arcs);break;case"MultiPolygon":n=e.arcs.map(C);break;default:return null}return{type:r,coordinates:n}}(e)}var Nr={value:function(){}};function jr(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new Rr(r)}function Rr(t){this._=t}function zr(t,e){for(var n,r=0,a=t.length;r<a;++r)if((n=t[r]).name===e)return n.value}function Dr(t,e,n){for(var r=0,a=t.length;r<a;++r)if(t[r].name===e){t[r]=Nr,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Rr.prototype=jr.prototype={constructor:Rr,on:function(t,e){var n,r=this._,a=function(t,e){return t.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}(t+"",r),i=-1,o=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++i<o;)if(n=(t=a[i]).type)r[n]=Dr(r[n],t.name,e);else if(null==e)for(n in r)r[n]=Dr(r[n],t.name,null);return this}for(;++i<o;)if((n=(t=a[i]).type)&&(n=zr(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Rr(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,a=new Array(n),i=0;i<n;++i)a[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=0,n=(r=this._[t]).length;i<n;++i)r[i].value.apply(e,a)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],a=0,i=r.length;a<i;++a)r[a].value.apply(e,n)}};var Lr=jr,Wr="http://www.w3.org/1999/xhtml",Fr={svg:"http://www.w3.org/2000/svg",xhtml:Wr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Zr=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Fr.hasOwnProperty(e)?{space:Fr[e],local:t}:t};var Gr=function(t){var e=Zr(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Wr&&e.documentElement.namespaceURI===Wr?e.createElement(t):e.createElementNS(n,t)}})(e)};function Ur(){}var Yr=function(t){return null==t?Ur:function(){return this.querySelector(t)}};function Vr(){return[]}var Br=function(t){return null==t?Vr:function(){return this.querySelectorAll(t)}},Hr=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Kr=document.documentElement;if(!Kr.matches){var qr=Kr.webkitMatchesSelector||Kr.msMatchesSelector||Kr.mozMatchesSelector||Kr.oMatchesSelector;Hr=function(t){return function(){return qr.call(this,t)}}}}var Xr=Hr,Qr=function(t){return new Array(t.length)};function Jr(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Jr.prototype={constructor:Jr,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var $r="$";function ta(t,e,n,r,a,i){for(var o,g=0,C=e.length,A=i.length;g<A;++g)(o=e[g])?(o.__data__=i[g],r[g]=o):n[g]=new Jr(t,i[g]);for(;g<C;++g)(o=e[g])&&(a[g]=o)}function ea(t,e,n,r,a,i,o){var g,C,A,I={},c=e.length,s=i.length,u=new Array(c);for(g=0;g<c;++g)(C=e[g])&&(u[g]=A=$r+o.call(C,C.__data__,g,e),A in I?a[g]=C:I[A]=C);for(g=0;g<s;++g)(C=I[A=$r+o.call(t,i[g],g,i)])?(r[g]=C,C.__data__=i[g],I[A]=null):n[g]=new Jr(t,i[g]);for(g=0;g<c;++g)(C=e[g])&&I[u[g]]===C&&(a[g]=C)}function na(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var ra=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function aa(t,e){return t.style.getPropertyValue(e)||ra(t).getComputedStyle(t,null).getPropertyValue(e)}function ia(t){return t.trim().split(/^|\s+/)}function oa(t){return t.classList||new ga(t)}function ga(t){this._node=t,this._names=ia(t.getAttribute("class")||"")}function Ca(t,e){for(var n=oa(t),r=-1,a=e.length;++r<a;)n.add(e[r])}function Aa(t,e){for(var n=oa(t),r=-1,a=e.length;++r<a;)n.remove(e[r])}ga.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Ia(){this.textContent=""}function ca(){this.innerHTML=""}function sa(){this.nextSibling&&this.parentNode.appendChild(this)}function ua(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function fa(){return null}function la(){var t=this.parentNode;t&&t.removeChild(this)}function ha(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function da(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var pa={},ba=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(pa={mouseenter:"mouseover",mouseleave:"mouseout"}));function ma(t,e,n){return t=va(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function va(t,e,n){return function(r){var a=ba;ba=r;try{t.call(this,this.__data__,e,n)}finally{ba=a}}}function ya(t){return function(){var e=this.__on;if(e){for(var n,r=0,a=-1,i=e.length;r<i;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++a]=n:this.removeEventListener(n.type,n.listener,n.capture);++a?e.length=a:delete this.__on}}}function _a(t,e,n){var r=pa.hasOwnProperty(t.type)?ma:va;return function(a,i,o){var g,C=this.__on,A=r(e,i,o);if(C)for(var I=0,c=C.length;I<c;++I)if((g=C[I]).type===t.type&&g.name===t.name)return this.removeEventListener(g.type,g.listener,g.capture),this.addEventListener(g.type,g.listener=A,g.capture=n),void(g.value=e);this.addEventListener(t.type,A,n),g={type:t.type,name:t.name,value:e,listener:A,capture:n},C?C.push(g):this.__on=[g]}}function wa(t,e,n,r){var a=ba;t.sourceEvent=ba,ba=t;try{return e.apply(n,r)}finally{ba=a}}function xa(t,e,n){var r=ra(t),a=r.CustomEvent;"function"==typeof a?a=new a(e,n):(a=r.document.createEvent("Event"),n?(a.initEvent(e,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(e,!1,!1)),t.dispatchEvent(a)}var ka=[null];function Ta(t,e){this._groups=t,this._parents=e}function Oa(){return new Ta([[document.documentElement]],ka)}Ta.prototype=Oa.prototype={constructor:Ta,select:function(t){"function"!=typeof t&&(t=Yr(t));for(var e=this._groups,n=e.length,r=new Array(n),a=0;a<n;++a)for(var i,o,g=e[a],C=g.length,A=r[a]=new Array(C),I=0;I<C;++I)(i=g[I])&&(o=t.call(i,i.__data__,I,g))&&("__data__"in i&&(o.__data__=i.__data__),A[I]=o);return new Ta(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=Br(t));for(var e=this._groups,n=e.length,r=[],a=[],i=0;i<n;++i)for(var o,g=e[i],C=g.length,A=0;A<C;++A)(o=g[A])&&(r.push(t.call(o,o.__data__,A,g)),a.push(o));return new Ta(r,a)},filter:function(t){"function"!=typeof t&&(t=Xr(t));for(var e=this._groups,n=e.length,r=new Array(n),a=0;a<n;++a)for(var i,o=e[a],g=o.length,C=r[a]=[],A=0;A<g;++A)(i=o[A])&&t.call(i,i.__data__,A,o)&&C.push(i);return new Ta(r,this._parents)},data:function(t,e){if(!t)return u=new Array(this.size()),A=-1,this.each(function(t){u[++A]=t}),u;var n=e?ea:ta,r=this._parents,a=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var i=a.length,o=new Array(i),g=new Array(i),C=new Array(i),A=0;A<i;++A){var I=r[A],c=a[A],s=c.length,u=t.call(I,I&&I.__data__,A,r),f=u.length,l=g[A]=new Array(f),h=o[A]=new Array(f);n(I,c,l,h,C[A]=new Array(s),u,e);for(var d,p,b=0,m=0;b<f;++b)if(d=l[b]){for(b>=m&&(m=b+1);!(p=h[m])&&++m<f;);d._next=p||null}}return(o=new Ta(o,r))._enter=g,o._exit=C,o},enter:function(){return new Ta(this._enter||this._groups.map(Qr),this._parents)},exit:function(){return new Ta(this._exit||this._groups.map(Qr),this._parents)},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,a=n.length,i=Math.min(r,a),o=new Array(r),g=0;g<i;++g)for(var C,A=e[g],I=n[g],c=A.length,s=o[g]=new Array(c),u=0;u<c;++u)(C=A[u]||I[u])&&(s[u]=C);for(;g<r;++g)o[g]=e[g];return new Ta(o,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,a=t[e],i=a.length-1,o=a[i];--i>=0;)(r=a[i])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=na);for(var n=this._groups,r=n.length,a=new Array(r),i=0;i<r;++i){for(var o,g=n[i],C=g.length,A=a[i]=new Array(C),I=0;I<C;++I)(o=g[I])&&(A[I]=o);A.sort(e)}return new Ta(a,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],a=0,i=r.length;a<i;++a){var o=r[a];if(o)return o}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var a,i=e[n],o=0,g=i.length;o<g;++o)(a=i[o])&&t.call(a,a.__data__,o,i);return this},attr:function(t,e){var n=Zr(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):aa(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=ia(t+"");if(arguments.length<2){for(var r=oa(this.node()),a=-1,i=n.length;++a<i;)if(!r.contains(n[a]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?Ca:Aa)(this,t)}}:e?function(t){return function(){Ca(this,t)}}:function(t){return function(){Aa(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?Ia:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?ca:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(sa)},lower:function(){return this.each(ua)},append:function(t){var e="function"==typeof t?t:Gr(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:Gr(t),r=null==e?fa:"function"==typeof e?e:Yr(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(la)},clone:function(t){return this.select(t?da:ha)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,a,i=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),o=i.length;if(!(arguments.length<2)){for(g=e?_a:ya,null==n&&(n=!1),r=0;r<o;++r)this.each(g(i[r],e,n));return this}var g=this.node().__on;if(g)for(var C,A=0,I=g.length;A<I;++A)for(r=0,C=g[A];r<o;++r)if((a=i[r]).type===C.type&&a.name===C.name)return C.value},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return xa(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return xa(this,t,e)}})(t,e))}};var Ea=Oa,Pa=function(t){return"string"==typeof t?new Ta([[document.querySelector(t)]],[document.documentElement]):new Ta([[t]],ka)},Sa=0;function Ma(){this._="@"+(++Sa).toString(36)}Ma.prototype=function(){return new Ma}.prototype={constructor:Ma,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Na=function(){for(var t,e=ba;t=e.sourceEvent;)e=t;return e},ja=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var a=t.getBoundingClientRect();return[e.clientX-a.left-t.clientLeft,e.clientY-a.top-t.clientTop]},Ra=function(t){var e=Na();return e.changedTouches&&(e=e.changedTouches[0]),ja(t,e)},za=function(t,e,n){arguments.length<3&&(n=e,e=Na().changedTouches);for(var r,a=0,i=e?e.length:0;a<i;++a)if((r=e[a]).identifier===n)return ja(t,r);return null};var Da=function(){ba.preventDefault(),ba.stopImmediatePropagation()},La=function(t){var e=t.document.documentElement,n=Pa(t).on("dragstart.drag",Da,!0);"onselectstart"in e?n.on("selectstart.drag",Da,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function Wa(t,e){var n=t.document.documentElement,r=Pa(t).on("dragstart.drag",null);e&&(r.on("click.drag",Da,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Fa(t,e,n,r,a,i,o,g,C,A){this.target=t,this.type=e,this.subject=n,this.identifier=r,this.active=a,this.x=i,this.y=o,this.dx=g,this.dy=C,this._=A}Fa.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Za=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Ga(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Ua(){}var Ya="\\s*([+-]?\\d+)\\s*",Va="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ba="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ha=/^#([0-9a-f]{3})$/,Ka=/^#([0-9a-f]{6})$/,qa=new RegExp("^rgb\\("+[Ya,Ya,Ya]+"\\)$"),Xa=new RegExp("^rgb\\("+[Ba,Ba,Ba]+"\\)$"),Qa=new RegExp("^rgba\\("+[Ya,Ya,Ya,Va]+"\\)$"),Ja=new RegExp("^rgba\\("+[Ba,Ba,Ba,Va]+"\\)$"),$a=new RegExp("^hsl\\("+[Va,Ba,Ba]+"\\)$"),ti=new RegExp("^hsla\\("+[Va,Ba,Ba,Va]+"\\)$"),ei={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 ni(t){var e;return t=(t+"").trim().toLowerCase(),(e=Ha.exec(t))?new gi((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=Ka.exec(t))?ri(parseInt(e[1],16)):(e=qa.exec(t))?new gi(e[1],e[2],e[3],1):(e=Xa.exec(t))?new gi(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Qa.exec(t))?ai(e[1],e[2],e[3],e[4]):(e=Ja.exec(t))?ai(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=$a.exec(t))?Ai(e[1],e[2]/100,e[3]/100,1):(e=ti.exec(t))?Ai(e[1],e[2]/100,e[3]/100,e[4]):ei.hasOwnProperty(t)?ri(ei[t]):"transparent"===t?new gi(NaN,NaN,NaN,0):null}function ri(t){return new gi(t>>16&255,t>>8&255,255&t,1)}function ai(t,e,n,r){return r<=0&&(t=e=n=NaN),new gi(t,e,n,r)}function ii(t){return t instanceof Ua||(t=ni(t)),t?new gi((t=t.rgb()).r,t.g,t.b,t.opacity):new gi}function oi(t,e,n,r){return 1===arguments.length?ii(t):new gi(t,e,n,null==r?1:r)}function gi(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Ci(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ai(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ci(t,e,n,r)}function Ii(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof ci)return new ci(t.h,t.s,t.l,t.opacity);if(t instanceof Ua||(t=ni(t)),!t)return new ci;if(t instanceof ci)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),i=Math.max(e,n,r),o=NaN,g=i-a,C=(i+a)/2;return g?(o=e===i?(n-r)/g+6*(n<r):n===i?(r-e)/g+2:(e-n)/g+4,g/=C<.5?i+a:2-i-a,o*=60):g=C>0&&C<1?0:o,new ci(o,g,C,t.opacity)}(t):new ci(t,e,n,null==r?1:r)}function ci(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function si(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Za(Ua,ni,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Za(gi,oi,Ga(Ua,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new gi(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new gi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+Ci(this.r)+Ci(this.g)+Ci(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Za(ci,Ii,Ga(Ua,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new ci(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ci(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,a=2*n-r;return new gi(si(t>=240?t-240:t+120,a,r),si(t,a,r),si(t<120?t+240:t-120,a,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var ui=Math.PI/180,fi=180/Math.PI,li=.96422,hi=1,di=.82521,pi=4/29,bi=6/29,mi=3*bi*bi,vi=bi*bi*bi;function yi(t){if(t instanceof wi)return new wi(t.l,t.a,t.b,t.opacity);if(t instanceof Si){if(isNaN(t.h))return new wi(t.l,0,0,t.opacity);var e=t.h*ui;return new wi(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof gi||(t=ii(t));var n,r,a=Oi(t.r),i=Oi(t.g),o=Oi(t.b),g=xi((.2225045*a+.7168786*i+.0606169*o)/hi);return a===i&&i===o?n=r=g:(n=xi((.4360747*a+.3850649*i+.1430804*o)/li),r=xi((.0139322*a+.0971045*i+.7141733*o)/di)),new wi(116*g-16,500*(n-g),200*(g-r),t.opacity)}function _i(t,e,n,r){return 1===arguments.length?yi(t):new wi(t,e,n,null==r?1:r)}function wi(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function xi(t){return t>vi?Math.pow(t,1/3):t/mi+pi}function ki(t){return t>bi?t*t*t:mi*(t-pi)}function Ti(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Oi(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ei(t){if(t instanceof Si)return new Si(t.h,t.c,t.l,t.opacity);if(t instanceof wi||(t=yi(t)),0===t.a&&0===t.b)return new Si(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*fi;return new Si(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Pi(t,e,n,r){return 1===arguments.length?Ei(t):new Si(t,e,n,null==r?1:r)}function Si(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}Za(wi,_i,Ga(Ua,{brighter:function(t){return new wi(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new wi(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new gi(Ti(3.1338561*(e=li*ki(e))-1.6168667*(t=hi*ki(t))-.4906146*(n=di*ki(n))),Ti(-.9787684*e+1.9161415*t+.033454*n),Ti(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Za(Si,Pi,Ga(Ua,{brighter:function(t){return new Si(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Si(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return yi(this).rgb()}}));var Mi=-.29227,Ni=-.90649,ji=1.97294,Ri=ji*Ni,zi=1.78277*ji,Di=1.78277*Mi- -.14861*Ni;function Li(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Wi)return new Wi(t.h,t.s,t.l,t.opacity);t instanceof gi||(t=ii(t));var e=t.r/255,n=t.g/255,r=t.b/255,a=(Di*r+Ri*e-zi*n)/(Di+Ri-zi),i=r-a,o=(ji*(n-a)-Mi*i)/Ni,g=Math.sqrt(o*o+i*i)/(ji*a*(1-a)),C=g?Math.atan2(o,i)*fi-120:NaN;return new Wi(C<0?C+360:C,g,a,t.opacity)}(t):new Wi(t,e,n,null==r?1:r)}function Wi(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Fi(t,e,n,r,a){var i=t*t,o=i*t;return((1-3*t+3*i-o)*e+(4-6*i+3*o)*n+(1+3*t+3*i-3*o)*r+o*a)/6}Za(Wi,Li,Ga(Ua,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Wi(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Wi(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*ui,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),a=Math.sin(t);return new gi(255*(e+n*(-.14861*r+1.78277*a)),255*(e+n*(Mi*r+Ni*a)),255*(e+n*(ji*r)),this.opacity)}}));var Zi=function(t){return function(){return t}};function Gi(t,e){return function(n){return t+n*e}}function Ui(t,e){var n=e-t;return n?Gi(t,n>180||n<-180?n-360*Math.round(n/360):n):Zi(isNaN(t)?e:t)}function Yi(t){return 1==(t=+t)?Vi:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Zi(isNaN(e)?n:e)}}function Vi(t,e){var n=e-t;return n?Gi(t,n):Zi(isNaN(t)?e:t)}var Bi=function t(e){var n=Yi(e);function r(t,e){var r=n((t=oi(t)).r,(e=oi(e)).r),a=n(t.g,e.g),i=n(t.b,e.b),o=Vi(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=a(e),t.b=i(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function Hi(t){return function(e){var n,r,a=e.length,i=new Array(a),o=new Array(a),g=new Array(a);for(n=0;n<a;++n)r=oi(e[n]),i[n]=r.r||0,o[n]=r.g||0,g[n]=r.b||0;return i=t(i),o=t(o),g=t(g),r.opacity=1,function(t){return r.r=i(t),r.g=o(t),r.b=g(t),r+""}}}var Ki=Hi(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[r],i=t[r+1],o=r>0?t[r-1]:2*a-i,g=r<e-1?t[r+2]:2*i-a;return Fi((n-r/e)*e,o,a,i,g)}}),qi=(Hi(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),a=t[(r+e-1)%e],i=t[r%e],o=t[(r+1)%e],g=t[(r+2)%e];return Fi((n-r/e)*e,a,i,o,g)}}),function(t,e){return e-=t=+t,function(n){return t+e*n}}),Xi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qi=new RegExp(Xi.source,"g");var Ji,$i,to,eo,no=function(t,e){var n,r,a,i=Xi.lastIndex=Qi.lastIndex=0,o=-1,g=[],C=[];for(t+="",e+="";(n=Xi.exec(t))&&(r=Qi.exec(e));)(a=r.index)>i&&(a=e.slice(i,a),g[o]?g[o]+=a:g[++o]=a),(n=n[0])===(r=r[0])?g[o]?g[o]+=r:g[++o]=r:(g[++o]=null,C.push({i:o,x:qi(n,r)})),i=Qi.lastIndex;return i<e.length&&(a=e.slice(i),g[o]?g[o]+=a:g[++o]=a),g.length<2?C[0]?function(t){return function(e){return t(e)+""}}(C[0].x):function(t){return function(){return t}}(e):(e=C.length,function(t){for(var n,r=0;r<e;++r)g[(n=C[r]).i]=n.x(t);return g.join("")})},ro=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?Zi(e):("number"===r?qi:"string"===r?(n=ni(e))?(e=n,Bi):no:e instanceof ni?Bi:e instanceof Date?function(t,e){var n=new Date;return e-=t=+t,function(r){return n.setTime(t+e*r),n}}:Array.isArray(e)?function(t,e){var n,r=e?e.length:0,a=t?Math.min(r,t.length):0,i=new Array(a),o=new Array(r);for(n=0;n<a;++n)i[n]=ro(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<a;++n)o[n]=i[n](t);return o}}:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?function(t,e){var n,r={},a={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=ro(t[n],e[n]):a[n]=e[n];return function(t){for(n in r)a[n]=r[n](t);return a}}:qi)(t,e)},ao=function(t,e){return e-=t=+t,function(n){return Math.round(t+e*n)}},io=180/Math.PI,oo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},go=function(t,e,n,r,a,i){var o,g,C;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(C=t*n+e*r)&&(n-=t*C,r-=e*C),(g=Math.sqrt(n*n+r*r))&&(n/=g,r/=g,C/=g),t*r<e*n&&(t=-t,e=-e,C=-C,o=-o),{translateX:a,translateY:i,rotate:Math.atan2(e,t)*io,skewX:Math.atan(C)*io,scaleX:o,scaleY:g}};function Co(t,e,n,r){function a(t){return t.length?t.pop()+" ":""}return function(i,o){var g=[],C=[];return i=t(i),o=t(o),function(t,r,a,i,o,g){if(t!==a||r!==i){var C=o.push("translate(",null,e,null,n);g.push({i:C-4,x:qi(t,a)},{i:C-2,x:qi(r,i)})}else(a||i)&&o.push("translate("+a+e+i+n)}(i.translateX,i.translateY,o.translateX,o.translateY,g,C),function(t,e,n,i){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),i.push({i:n.push(a(n)+"rotate(",null,r)-2,x:qi(t,e)})):e&&n.push(a(n)+"rotate("+e+r)}(i.rotate,o.rotate,g,C),function(t,e,n,i){t!==e?i.push({i:n.push(a(n)+"skewX(",null,r)-2,x:qi(t,e)}):e&&n.push(a(n)+"skewX("+e+r)}(i.skewX,o.skewX,g,C),function(t,e,n,r,i,o){if(t!==n||e!==r){var g=i.push(a(i)+"scale(",null,",",null,")");o.push({i:g-4,x:qi(t,n)},{i:g-2,x:qi(e,r)})}else 1===n&&1===r||i.push(a(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,o.scaleX,o.scaleY,g,C),i=o=null,function(t){for(var e,n=-1,r=C.length;++n<r;)g[(e=C[n]).i]=e.x(t);return g.join("")}}}var Ao=Co(function(t){return"none"===t?oo:(Ji||(Ji=document.createElement("DIV"),$i=document.documentElement,to=document.defaultView),Ji.style.transform=t,t=to.getComputedStyle($i.appendChild(Ji),null).getPropertyValue("transform"),$i.removeChild(Ji),t=t.slice(7,-1).split(","),go(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),Io=Co(function(t){return null==t?oo:(eo||(eo=document.createElementNS("http://www.w3.org/2000/svg","g")),eo.setAttribute("transform",t),(t=eo.transform.baseVal.consolidate())?(t=t.matrix,go(t.a,t.b,t.c,t.d,t.e,t.f)):oo)},", ",")",")"),co=Math.SQRT2;function so(t){return((t=Math.exp(t))+1/t)/2}var uo=function(t,e){var n,r,a=t[0],i=t[1],o=t[2],g=e[0],C=e[1],A=e[2],I=g-a,c=C-i,s=I*I+c*c;if(s<1e-12)r=Math.log(A/o)/co,n=function(t){return[a+t*I,i+t*c,o*Math.exp(co*t*r)]};else{var u=Math.sqrt(s),f=(A*A-o*o+4*s)/(2*o*2*u),l=(A*A-o*o-4*s)/(2*A*2*u),h=Math.log(Math.sqrt(f*f+1)-f),d=Math.log(Math.sqrt(l*l+1)-l);r=(d-h)/co,n=function(t){var e=t*r,n=so(h),g=o/(2*u)*(n*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(co*e+h)-function(t){return((t=Math.exp(t))-1/t)/2}(h));return[a+g*I,i+g*c,o*n/so(co*e+h)]}}return n.duration=1e3*r,n};function fo(t){return function(e,n){var r=t((e=Ii(e)).h,(n=Ii(n)).h),a=Vi(e.s,n.s),i=Vi(e.l,n.l),o=Vi(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=a(t),e.l=i(t),e.opacity=o(t),e+""}}}fo(Ui),fo(Vi);function lo(t){return function(e,n){var r=t((e=Pi(e)).h,(n=Pi(n)).h),a=Vi(e.c,n.c),i=Vi(e.l,n.l),o=Vi(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=a(t),e.l=i(t),e.opacity=o(t),e+""}}}lo(Ui),lo(Vi);function ho(t){return function e(n){function r(e,r){var a=t((e=Li(e)).h,(r=Li(r)).h),i=Vi(e.s,r.s),o=Vi(e.l,r.l),g=Vi(e.opacity,r.opacity);return function(t){return e.h=a(t),e.s=i(t),e.l=o(Math.pow(t,n)),e.opacity=g(t),e+""}}return n=+n,r.gamma=e,r}(1)}ho(Ui);var po=ho(Vi);var bo,mo,vo=0,yo=0,_o=0,wo=1e3,xo=0,ko=0,To=0,Oo="object"==typeof performance&&performance.now?performance:Date,Eo="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Po(){return ko||(Eo(So),ko=Oo.now()+To)}function So(){ko=0}function Mo(){this._call=this._time=this._next=null}function No(t,e,n){var r=new Mo;return r.restart(t,e,n),r}function jo(){ko=(xo=Oo.now())+To,vo=yo=0;try{!function(){Po(),++vo;for(var t,e=bo;e;)(t=ko-e._time)>=0&&e._call.call(null,t),e=e._next;--vo}()}finally{vo=0,function(){var t,e,n=bo,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:bo=e);mo=t,zo(r)}(),ko=0}}function Ro(){var t=Oo.now(),e=t-xo;e>wo&&(To-=e,xo=t)}function zo(t){vo||(yo&&(yo=clearTimeout(yo)),t-ko>24?(t<1/0&&(yo=setTimeout(jo,t-Oo.now()-To)),_o&&(_o=clearInterval(_o))):(_o||(xo=Oo.now(),_o=setInterval(Ro,wo)),vo=1,Eo(jo)))}Mo.prototype=No.prototype={constructor:Mo,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Po():+n)+(null==e?0:+e),this._next||mo===this||(mo?mo._next=this:bo=this,mo=this),this._call=t,this._time=n,zo()},stop:function(){this._call&&(this._call=null,this._time=1/0,zo())}};var Do=function(t,e,n){var r=new Mo;return e=null==e?0:+e,r.restart(function(n){r.stop(),t(n+e)},e,n),r},Lo=Lr("start","end","interrupt"),Wo=[],Fo=0,Zo=1,Go=2,Uo=3,Yo=4,Vo=5,Bo=6,Ho=function(t,e,n,r,a,i){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,a=t.__transition;function i(C){var A,I,c,s;if(n.state!==Zo)return g();for(A in a)if((s=a[A]).name===n.name){if(s.state===Uo)return Do(i);s.state===Yo?(s.state=Bo,s.timer.stop(),s.on.call("interrupt",t,t.__data__,s.index,s.group),delete a[A]):+A<e&&(s.state=Bo,s.timer.stop(),delete a[A])}if(Do(function(){n.state===Uo&&(n.state=Yo,n.timer.restart(o,n.delay,n.time),o(C))}),n.state=Go,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Go){for(n.state=Uo,r=new Array(c=n.tween.length),A=0,I=-1;A<c;++A)(s=n.tween[A].value.call(t,t.__data__,n.index,n.group))&&(r[++I]=s);r.length=I+1}}function o(e){for(var a=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(g),n.state=Vo,1),i=-1,o=r.length;++i<o;)r[i].call(null,a);n.state===Vo&&(n.on.call("end",t,t.__data__,n.index,n.group),g())}function g(){for(var r in n.state=Bo,n.timer.stop(),delete a[e],a)return;delete t.__transition}a[e]=n,n.timer=No(function(t){n.state=Zo,n.timer.restart(i,n.delay,n.time),n.delay<=t&&i(t-n.delay)},0,n.time)}(t,n,{name:e,index:r,group:a,on:Lo,tween:Wo,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:Fo})};function Ko(t,e){var n=Xo(t,e);if(n.state>Fo)throw new Error("too late; already scheduled");return n}function qo(t,e){var n=Xo(t,e);if(n.state>Go)throw new Error("too late; already started");return n}function Xo(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var Qo=function(t,e){var n,r,a,i=t.__transition,o=!0;if(i){for(a in e=null==e?null:e+"",i)(n=i[a]).name===e?(r=n.state>Go&&n.state<Vo,n.state=Bo,n.timer.stop(),r&&n.on.call("interrupt",t,t.__data__,n.index,n.group),delete i[a]):o=!1;o&&delete t.__transition}};function Jo(t,e,n){var r=t._id;return t.each(function(){var t=qo(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return Xo(t,r).value[e]}}var $o=function(t,e){var n;return("number"==typeof e?qi:e instanceof ni?Bi:(n=ni(e))?(e=n,Bi):no)(t,e)};var tg=Ea.prototype.constructor;var eg=0;function ng(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function rg(){return++eg}var ag=Ea.prototype;ng.prototype=function(t){return Ea().transition(t)}.prototype={constructor:ng,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Yr(t));for(var r=this._groups,a=r.length,i=new Array(a),o=0;o<a;++o)for(var g,C,A=r[o],I=A.length,c=i[o]=new Array(I),s=0;s<I;++s)(g=A[s])&&(C=t.call(g,g.__data__,s,A))&&("__data__"in g&&(C.__data__=g.__data__),c[s]=C,Ho(c[s],e,n,s,c,Xo(g,n)));return new ng(i,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Br(t));for(var r=this._groups,a=r.length,i=[],o=[],g=0;g<a;++g)for(var C,A=r[g],I=A.length,c=0;c<I;++c)if(C=A[c]){for(var s,u=t.call(C,C.__data__,c,A),f=Xo(C,n),l=0,h=u.length;l<h;++l)(s=u[l])&&Ho(s,e,n,l,u,f);i.push(u),o.push(C)}return new ng(i,o,e,n)},filter:function(t){"function"!=typeof t&&(t=Xr(t));for(var e=this._groups,n=e.length,r=new Array(n),a=0;a<n;++a)for(var i,o=e[a],g=o.length,C=r[a]=[],A=0;A<g;++A)(i=o[A])&&t.call(i,i.__data__,A,o)&&C.push(i);return new ng(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,a=n.length,i=Math.min(r,a),o=new Array(r),g=0;g<i;++g)for(var C,A=e[g],I=n[g],c=A.length,s=o[g]=new Array(c),u=0;u<c;++u)(C=A[u]||I[u])&&(s[u]=C);for(;g<r;++g)o[g]=e[g];return new ng(o,this._parents,this._name,this._id)},selection:function(){return new tg(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=rg(),r=this._groups,a=r.length,i=0;i<a;++i)for(var o,g=r[i],C=g.length,A=0;A<C;++A)if(o=g[A]){var I=Xo(o,e);Ho(o,t,n,A,g,{time:I.time+I.delay+I.duration,delay:0,duration:I.duration,ease:I.ease})}return new ng(r,this._parents,t,n)},call:ag.call,nodes:ag.nodes,node:ag.node,size:ag.size,empty:ag.empty,each:ag.each,on:function(t,e){var n=this._id;return arguments.length<2?Xo(this.node(),n).on.on(t):this.each(function(t,e,n){var r,a,i=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Ko:qo;return function(){var o=i(this,t),g=o.on;g!==r&&(a=(r=g).copy()).on(e,n),o.on=a}}(n,t,e))},attr:function(t,e){var n=Zr(t),r="transform"===n?Io:$o;return this.attrTween(t,"function"==typeof e?(n.local?function(t,e,n){var r,a,i;return function(){var o,g=n(this);if(null!=g)return(o=this.getAttributeNS(t.space,t.local))===g?null:o===r&&g===a?i:i=e(r=o,a=g);this.removeAttributeNS(t.space,t.local)}}:function(t,e,n){var r,a,i;return function(){var o,g=n(this);if(null!=g)return(o=this.getAttribute(t))===g?null:o===r&&g===a?i:i=e(r=o,a=g);this.removeAttribute(t)}})(n,r,Jo(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(t,e,n){var r,a;return function(){var i=this.getAttributeNS(t.space,t.local);return i===n?null:i===r?a:a=e(r=i,n)}}:function(t,e,n){var r,a;return function(){var i=this.getAttribute(t);return i===n?null:i===r?a:a=e(r=i,n)}})(n,r,e+""))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=Zr(t);return this.tween(n,(r.local?function(t,e){function n(){var n=this,r=e.apply(n,arguments);return r&&function(e){n.setAttributeNS(t.space,t.local,r(e))}}return n._value=e,n}:function(t,e){function n(){var n=this,r=e.apply(n,arguments);return r&&function(e){n.setAttribute(t,r(e))}}return n._value=e,n})(r,e))},style:function(t,e,n){var r="transform"==(t+="")?Ao:$o;return null==e?this.styleTween(t,function(t,e){var n,r,a;return function(){var i=aa(this,t),o=(this.style.removeProperty(t),aa(this,t));return i===o?null:i===n&&o===r?a:a=e(n=i,r=o)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof e?function(t,e,n){var r,a,i;return function(){var o=aa(this,t),g=n(this);return null==g&&(this.style.removeProperty(t),g=aa(this,t)),o===g?null:o===r&&g===a?i:i=e(r=o,a=g)}}(t,r,Jo(this,"style."+t,e)):function(t,e,n){var r,a;return function(){var i=aa(this,t);return i===n?null:i===r?a:a=e(r=i,n)}}(t,r,e+""),n)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){function r(){var r=this,a=e.apply(r,arguments);return a&&function(e){r.style.setProperty(t,a(e),n)}}return r._value=e,r}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Jo(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,a=Xo(this.node(),n).tween,i=0,o=a.length;i<o;++i)if((r=a[i]).name===t)return r.value;return null}return this.each((null==e?function(t,e){var n,r;return function(){var a=qo(this,t),i=a.tween;if(i!==n)for(var o=0,g=(r=n=i).length;o<g;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}a.tween=r}}:function(t,e,n){var r,a;if("function"!=typeof n)throw new Error;return function(){var i=qo(this,t),o=i.tween;if(o!==r){a=(r=o).slice();for(var g={name:e,value:n},C=0,A=a.length;C<A;++C)if(a[C].name===e){a[C]=g;break}C===A&&a.push(g)}i.tween=a}})(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){Ko(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){Ko(this,t).delay=e}})(e,t)):Xo(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){qo(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){qo(this,t).duration=e}})(e,t)):Xo(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){qo(this,t).ease=e}}(e,t)):Xo(this.node(),e).ease}};(function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n})(3),function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Math.PI;(function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n})(1.70158),function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158);var ig=2*Math.PI,og=(function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=ig);function a(t){return e*Math.pow(2,10*--t)*Math.sin((r-t)/n)}return a.amplitude=function(e){return t(e,n*ig)},a.period=function(n){return t(e,n)},a}(1,.3),function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=ig);function a(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/n)}return a.amplitude=function(e){return t(e,n*ig)},a.period=function(n){return t(e,n)},a}(1,.3),function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=ig);function a(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((r-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((r+t)/n))/2}return a.amplitude=function(e){return t(e,n*ig)},a.period=function(n){return t(e,n)},a}(1,.3),{time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}});function gg(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return og.time=Po(),og;return n}Ea.prototype.interrupt=function(t){return this.each(function(){Qo(this,t)})},Ea.prototype.transition=function(t){var e,n;t instanceof ng?(e=t._id,t=t._name):(e=rg(),(n=og).time=Po(),t=null==t?null:t+"");for(var r=this._groups,a=r.length,i=0;i<a;++i)for(var o,g=r[i],C=g.length,A=0;A<C;++A)(o=g[A])&&Ho(o,t,e,A,g,n||gg(o,e));return new ng(r,this._parents,t,e)};var Cg=function(t){return function(){return t}};function Ag(t,e,n){this.k=t,this.x=e,this.y=n}Ag.prototype={constructor:Ag,scale:function(t){return 1===t?this:new Ag(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Ag(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Ig=new Ag(1,0,0);function cg(){ba.stopImmediatePropagation()}Ag.prototype;var sg=function(){ba.preventDefault(),ba.stopImmediatePropagation()};function ug(){return!ba.button}function fg(){var t,e,n=this;return n instanceof SVGElement?(t=(n=n.ownerSVGElement||n).width.baseVal.value,e=n.height.baseVal.value):(t=n.clientWidth,e=n.clientHeight),[[0,0],[t,e]]}function lg(){return this.__zoom||Ig}function hg(){return-ba.deltaY*(ba.deltaMode?120:1)/500}function dg(){return"ontouchstart"in this}function pg(t,e,n){var r=t.invertX(e[0][0])-n[0][0],a=t.invertX(e[1][0])-n[1][0],i=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(a>r?(r+a)/2:Math.min(0,r)||Math.max(0,a),o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o))}var bg=function(){var t,e,n=ug,r=fg,a=pg,i=hg,o=dg,g=[0,1/0],C=[[-1/0,-1/0],[1/0,1/0]],A=250,I=uo,c=[],s=Lr("start","zoom","end"),u=500,f=150,l=0;function h(t){t.property("__zoom",lg).on("wheel.zoom",_).on("mousedown.zoom",w).on("dblclick.zoom",x).filter(o).on("touchstart.zoom",k).on("touchmove.zoom",T).on("touchend.zoom touchcancel.zoom",O).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(t,e){return(e=Math.max(g[0],Math.min(g[1],e)))===t.k?t:new Ag(e,t.x,t.y)}function p(t,e,n){var r=e[0]-n[0]*t.k,a=e[1]-n[1]*t.k;return r===t.x&&a===t.y?t:new Ag(t.k,r,a)}function b(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function m(t,e,n){t.on("start.zoom",function(){v(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){v(this,arguments).end()}).tween("zoom",function(){var t=arguments,a=v(this,t),i=r.apply(this,t),o=n||b(i),g=Math.max(i[1][0]-i[0][0],i[1][1]-i[0][1]),C=this.__zoom,A="function"==typeof e?e.apply(this,t):e,c=I(C.invert(o).concat(g/C.k),A.invert(o).concat(g/A.k));return function(t){if(1===t)t=A;else{var e=c(t),n=g/e[2];t=new Ag(n,o[0]-e[0]*n,o[1]-e[1]*n)}a.zoom(null,t)}})}function v(t,e){for(var n,r=0,a=c.length;r<a;++r)if((n=c[r]).that===t)return n;return new y(t,e)}function y(t,e){this.that=t,this.args=e,this.index=-1,this.active=0,this.extent=r.apply(t,e)}function _(){if(n.apply(this,arguments)){var t=v(this,arguments),e=this.__zoom,r=Math.max(g[0],Math.min(g[1],e.k*Math.pow(2,i.apply(this,arguments)))),o=Ra(this);if(t.wheel)t.mouse[0][0]===o[0]&&t.mouse[0][1]===o[1]||(t.mouse[1]=e.invert(t.mouse[0]=o)),clearTimeout(t.wheel);else{if(e.k===r)return;t.mouse=[o,e.invert(o)],Qo(this),t.start()}sg(),t.wheel=setTimeout(function(){t.wheel=null,t.end()},f),t.zoom("mouse",a(p(d(e,r),t.mouse[0],t.mouse[1]),t.extent,C))}}function w(){if(!e&&n.apply(this,arguments)){var t=v(this,arguments),r=Pa(ba.view).on("mousemove.zoom",function(){if(sg(),!t.moved){var e=ba.clientX-o,n=ba.clientY-g;t.moved=e*e+n*n>l}t.zoom("mouse",a(p(t.that.__zoom,t.mouse[0]=Ra(t.that),t.mouse[1]),t.extent,C))},!0).on("mouseup.zoom",function(){r.on("mousemove.zoom mouseup.zoom",null),Wa(ba.view,t.moved),sg(),t.end()},!0),i=Ra(this),o=ba.clientX,g=ba.clientY;La(ba.view),cg(),t.mouse=[i,this.__zoom.invert(i)],Qo(this),t.start()}}function x(){if(n.apply(this,arguments)){var t=this.__zoom,e=Ra(this),i=t.invert(e),o=t.k*(ba.shiftKey?.5:2),g=a(p(d(t,o),e,i),r.apply(this,arguments),C);sg(),A>0?Pa(this).transition().duration(A).call(m,g,e):Pa(this).call(h.transform,g)}}function k(){if(n.apply(this,arguments)){var e,r,a,i,o=v(this,arguments),g=ba.changedTouches,C=g.length;for(cg(),r=0;r<C;++r)a=g[r],i=[i=za(this,g,a.identifier),this.__zoom.invert(i),a.identifier],o.touch0?o.touch1||(o.touch1=i):(o.touch0=i,e=!0);if(t&&(t=clearTimeout(t),!o.touch1))return o.end(),void((i=Pa(this).on("dblclick.zoom"))&&i.apply(this,arguments));e&&(t=setTimeout(function(){t=null},u),Qo(this),o.start())}}function T(){var e,n,r,i,o=v(this,arguments),g=ba.changedTouches,A=g.length;for(sg(),t&&(t=clearTimeout(t)),e=0;e<A;++e)n=g[e],r=za(this,g,n.identifier),o.touch0&&o.touch0[2]===n.identifier?o.touch0[0]=r:o.touch1&&o.touch1[2]===n.identifier&&(o.touch1[0]=r);if(n=o.that.__zoom,o.touch1){var I=o.touch0[0],c=o.touch0[1],s=o.touch1[0],u=o.touch1[1],f=(f=s[0]-I[0])*f+(f=s[1]-I[1])*f,l=(l=u[0]-c[0])*l+(l=u[1]-c[1])*l;n=d(n,Math.sqrt(f/l)),r=[(I[0]+s[0])/2,(I[1]+s[1])/2],i=[(c[0]+u[0])/2,(c[1]+u[1])/2]}else{if(!o.touch0)return;r=o.touch0[0],i=o.touch0[1]}o.zoom("touch",a(p(n,r,i),o.extent,C))}function O(){var t,n,r=v(this,arguments),a=ba.changedTouches,i=a.length;for(cg(),e&&clearTimeout(e),e=setTimeout(function(){e=null},u),t=0;t<i;++t)n=a[t],r.touch0&&r.touch0[2]===n.identifier?delete r.touch0:r.touch1&&r.touch1[2]===n.identifier&&delete r.touch1;r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0?r.touch0[1]=this.__zoom.invert(r.touch0[0]):r.end()}return h.transform=function(t,e){var n=t.selection?t.selection():t;n.property("__zoom",lg),t!==n?m(t,e):n.interrupt().each(function(){v(this,arguments).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},h.scaleBy=function(t,e){h.scaleTo(t,function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)})},h.scaleTo=function(t,e){h.transform(t,function(){var t=r.apply(this,arguments),n=this.__zoom,i=b(t),o=n.invert(i),g="function"==typeof e?e.apply(this,arguments):e;return a(p(d(n,g),i,o),t,C)})},h.translateBy=function(t,e,n){h.transform(t,function(){return a(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),r.apply(this,arguments),C)})},h.translateTo=function(t,e,n){h.transform(t,function(){var t=r.apply(this,arguments),i=this.__zoom,o=b(t);return a(Ig.translate(o[0],o[1]).scale(i.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,C)})},y.prototype={start:function(){return 1==++this.active&&(this.index=c.push(this)-1,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(c.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(t){wa(new function(t,e,n){this.target=t,this.type=e,this.transform=n}(h,t,this.that.__zoom),s.apply,s,[t,this.that,this.args])}},h.wheelDelta=function(t){return arguments.length?(i="function"==typeof t?t:Cg(+t),h):i},h.filter=function(t){return arguments.length?(n="function"==typeof t?t:Cg(!!t),h):n},h.touchable=function(t){return arguments.length?(o="function"==typeof t?t:Cg(!!t),h):o},h.extent=function(t){return arguments.length?(r="function"==typeof t?t:Cg([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),h):r},h.scaleExtent=function(t){return arguments.length?(g[0]=+t[0],g[1]=+t[1],h):[g[0],g[1]]},h.translateExtent=function(t){return arguments.length?(C[0][0]=+t[0][0],C[1][0]=+t[1][0],C[0][1]=+t[0][1],C[1][1]=+t[1][1],h):[[C[0][0],C[0][1]],[C[1][0],C[1][1]]]},h.constrain=function(t){return arguments.length?(a=t,h):a},h.duration=function(t){return arguments.length?(A=+t,h):A},h.interpolate=function(t){return arguments.length?(I=t,h):I},h.on=function(){var t=s.on.apply(s,arguments);return t===s?h:t},h.clickDistance=function(t){return arguments.length?(l=(t=+t)*t,h):Math.sqrt(l)},h};function mg(t){return(mg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vg(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yg(t){return(yg=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _g(t,e){return(_g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function wg(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var xg=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e){return!e||"object"!==mg(e)&&"function"!=typeof e?wg(t):e}(this,yg(e).call(this,t))).state={features:[],zoomTransform:null},n.svg=null,n.handleZoom=n.handleZoom.bind(wg(wg(n))),n.zoom=bg().scaleExtent([1,4]).translateExtent([[0,0],[n.props.width,n.props.height]]).extent([[0,0],[n.props.width,n.props.height]]).on("zoom",n.zoomed.bind(wg(wg(n)))),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_g(t,e)}(e,a.a.Component),function(t,e,n){e&&vg(t.prototype,e),n&&vg(t,n)}(e,[{key:"componentDidMount",value:function(){this.loadGeometry(),Pa(this.svg).call(this.zoom).on("wheel.zoom",null)}},{key:"componentDidUpdate",value:function(){Pa(this.svg).call(this.zoom).on("wheel.zoom",null)}},{key:"loadGeometry",value:function(){var t=this;if("world"===this.props.geometry)return fetch("https://s3-us-west-2.amazonaws.com/na-data-projects/geography/world.json").then(function(t){return t.json()}).then(function(e){var n=ur().fitSize([t.props.width,t.props.height],Pr(e,e.objects.countries));t.props.projectionInit&&t.props.projectionInit(n),t.setState({feature:Pr(e,e.objects.countries),features:Pr(e,e.objects.countries).features,path:Un().projection(n)})}),{features:void 0,path:void 0};"us"===this.props.geometry&&fetch("https://s3-us-west-2.amazonaws.com/na-data-projects/geography/us.json").then(function(t){return t.json()}).then(function(e){var n=gr().fitSize([t.props.width,t.props.height],Pr(e,e.objects.states));t.props.projectionInit&&t.props.projectionInit(n),t.setState({features:Pr(e,e.objects.states).features,path:Un().projection(n)})})}},{key:"handleZoom",value:function(t,e){t.preventDefault(),"in"===e&&(console.log(this.zoom.scaleBy),Pa(this.svg).call(this.zoom.scaleBy(Pa(this.svg),1.5))),"out"===e&&Pa(this.svg).call(this.zoom.scaleBy(Pa(this.svg),.5))}},{key:"zoomed",value:function(){this.setState({zoomTransform:ba.transform})}},{key:"render",value:function(){var t=this,e=ur().fitSize([this.props.width,this.props.height],this.state.feature),n=this.state.features,r=this.props,i=r.fillFunc,o=r.mouseIn,g=r.mouseOut,C=Un().projection(e);return a.a.createElement(a.a.Fragment,null,a.a.createElement("svg",{width:this.props.width,height:this.props.height,ref:function(e){return t.svg=e}},a.a.createElement("g",{className:"geometry",transform:this.state.zoomTransform},n.map(function(t,e){return a.a.createElement("path",{key:"path-".concat(e),d:C(t),fill:i?i(t.id):"#CBCBCD",onMouseMove:function(e){return o(e,t)},onMouseOut:g,stroke:"#E5E5E5"})}))),a.a.createElement("div",{className:"dv-map-controls"},a.a.createElement("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"flex-start"}},a.a.createElement("div",{style:{display:"flex",flexDirection:"column"}},a.a.createElement("a",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"2rem",height:"2rem",marginBottom:"0.25rem",backgroundColor:"#fff",border:"1px solid #ddd"},href:"#",onClick:function(e){return t.handleZoom(e,"in")}},a.a.createElement("svg",{style:{width:"0.5rem",height:"0.5rem"},viewBox:"0 0 12 13",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("g",{fillRule:"nonzero",stroke:"#979797",strokeWidth:"2",fill:"none",strokeLinecap:"square"},a.a.createElement("path",{d:"M6 1v11M11 6.5H1"})))),a.a.createElement("a",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"2rem",height:"2rem",backgroundColor:"#fff",border:"1px solid #ddd"},href:"#",onClick:function(e){return t.handleZoom(e,"out")}},a.a.createElement("svg",{style:{width:"0.5rem",height:"0.5rem"},viewBox:"0 0 14 2",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M11 1H1",fillRule:"nonzero",stroke:"#979797",strokeWidth:"2",fill:"none",strokeLinecap:"square"})))))))}}]),e}(),kg=n(11),Tg=n.n(kg),Og=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Eg=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Pg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Sg=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},Mg=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},Ng={top:0,right:0,bottom:0,left:0,width:0,height:0},jg=N.a.shape({top:N.a.number.isRequired,right:N.a.number.isRequired,bottom:N.a.number.isRequired,left:N.a.number.isRequired,width:N.a.number.isRequired,height:N.a.number.isRequired}),Rg={getRects:N.a.func,rect:jg,parentRect:jg};var zg=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Dg=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Lg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Wg=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},Fg=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},Zg=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e};N.a.bool,N.a.number,N.a.number,N.a.object,N.a.func,N.a.func,N.a.func;function Gg(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{style:{position:"relative",width:"inherit",height:"inherit"}};return function(n){function r(t){zg(this,r);var e=Zg(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,t));return e.state={tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0},e.updateTooltip=e.updateTooltip.bind(e),e.showTooltip=e.showTooltip.bind(e),e.hideTooltip=e.hideTooltip.bind(e),e}return Wg(r,n),Dg(r,[{key:"updateTooltip",value:function(t){var e=t.tooltipOpen,n=t.tooltipLeft,r=t.tooltipTop,a=t.tooltipData;this.setState(function(t){return Lg({},t,{tooltipOpen:e,tooltipLeft:n,tooltipTop:r,tooltipData:a})})}},{key:"showTooltip",value:function(t){var e=t.tooltipLeft,n=t.tooltipTop,r=t.tooltipData;this.updateTooltip({tooltipOpen:!0,tooltipLeft:e,tooltipTop:n,tooltipData:r})}},{key:"hideTooltip",value:function(){this.updateTooltip({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})}},{key:"render",value:function(){return a.a.createElement("div",e,a.a.createElement(t,Lg({updateTooltip:this.updateTooltip,showTooltip:this.showTooltip,hideTooltip:this.hideTooltip},this.state,this.props)))}}]),r}(a.a.PureComponent)}function Ug(t){var e=t.className,n=t.top,r=t.left,i=t.style,o=t.children,g=Fg(t,["className","top","left","style","children"]);return a.a.createElement("div",Lg({className:I()("vx-tooltip-portal",e),style:Lg({position:"absolute",backgroundColor:"white",color:"#666666",padding:".3rem .5rem",borderRadius:"3px",fontSize:"14px",boxShadow:"0 1px 2px rgba(33,33,33,0.2)",lineHeight:"1em",pointerEvents:"none",top:n,left:r},i)},g),o)}Ug.propTypes={left:N.a.oneOfType([N.a.number,N.a.string]),top:N.a.oneOfType([N.a.number,N.a.string]),className:N.a.string,style:N.a.object,children:N.a.any};var Yg=Lg({},Rg,Ug.propTypes,{offsetLeft:N.a.number,offsetTop:N.a.number});function Vg(t){var e=t.left,n=t.top,r=t.offsetLeft,i=void 0===r?10:r,o=t.offsetTop,g=void 0===o?10:o,C=t.rect,A=t.parentRect,I=(t.getRects,t.children),c=t.style,s=Fg(t,["left","top","offsetLeft","offsetTop","rect","parentRect","getRects","children","style"]),u=e,f=n;return C&&A&&(u=i+C.right>A.right||i+C.right>window.innerWidth?u-C.width-i:u+i,f=g+C.bottom>A.bottom||g+C.bottom>window.innerHeight?f-C.height-g:f+g),a.a.createElement(Ug,Lg({style:Lg({top:0,transform:"translate("+u+"px, "+f+"px)"},c)},s),I)}Vg.propTypes=Yg,Vg.defaultProps={};var Bg=function(t){var e=function(e){function n(t){Og(this,n);var e=Mg(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t));return e.state={rect:void 0,parentRect:void 0},e.getRects=e.getRects.bind(e),e}return Sg(n,e),Eg(n,[{key:"componentDidMount",value:function(){var t=this;this.node=Tg.a.findDOMNode(this),this.setState(function(){return t.getRects()})}},{key:"getRects",value:function(){if(!this.node)return this.state;var t=this.node,e=this.node.parentNode;return{rect:t.getBoundingClientRect?t.getBoundingClientRect():Ng,parentRect:e&&e.getBoundingClientRect?e.getBoundingClientRect():Ng}}},{key:"render",value:function(){return a.a.createElement(t,Pg({getRects:this.getRects},this.state,this.props))}}]),n}(a.a.PureComponent);return e.propTypes=t.propTypes,e.defaultProps=t.defaultProps,e.displayName="withBoundingRects("+(t.displayName||"")+")",e}(Vg),Hg=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Kg=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),qg=function(){function t(e){var n=e.x,r=void 0===n?0:n,a=e.y,i=void 0===a?0:a;Hg(this,t),this.x=r,this.y=i}return Kg(t,[{key:"value",value:function(){return{x:this.x,y:this.y}}},{key:"toArray",value:function(){return[this.x,this.y]}}]),t}();function Xg(t,e){if(t){if(t.target)for(t=(e=t).target.ownerSVGElement;t.ownerSVGElement;)t=t.ownerSVGElement;var n=e,r=n.clientX,a=n.clientY;if(e.changedTouches&&(r=e.changedTouches[0].clientX,a=e.changedTouches[0].clientY),t.createSVGPoint){var i=t.createSVGPoint();return i.x=r,i.y=a,i=i.matrixTransform(t.getScreenCTM().inverse()),new qg({x:i.x,y:i.y})}var o=t.getBoundingClientRect();return new qg({x:r-o.left-t.clientLeft,y:a-o.top-t.clientTop})}}var Qg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jg=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n};function $g(t){var e=t.top,n=void 0===e?0:e,r=t.left,i=void 0===r?0:r,o=t.transform,g=t.className,C=t.children,A=Jg(t,["top","left","transform","className","children"]);return a.a.createElement("g",Qg({className:I()("vx-group",g),transform:o||"translate("+i+", "+n+")"},A),C)}var tC=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},eC=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n};function nC(t){var e=t.children,n=t.flexDirection,r=t.margin,i=t.label,o=eC(t,["children","flexDirection","margin","label"]);return a.a.createElement("div",tC({className:"vx-legend-item",style:{display:"flex",alignItems:"center",flexDirection:n,margin:r}},function(t,e){return Object.keys(t).reduce(function(n,r){return n[r]=function(t,e){return"function"==typeof t?t(e):t}(t[r],e),n},{})}(o,i)),e)}function rC(t){var e=t.label,n=t.margin,r=t.align;return a.a.createElement("div",{className:"vx-legend-label",style:{justifyContent:r,display:"flex",flex:"1",margin:n}},e)}function aC(t){var e=t.fill,n=t.width,r=t.height,i=t.style;return a.a.createElement("div",{style:tC({width:n,height:r,background:e},i)})}function iC(t){var e=t.fill,n=t.width,r=t.height,i=t.style;"string"==typeof n&&(n=0),"string"==typeof r&&(r=0);var o=Math.max(n,r),g=o/2;return a.a.createElement("svg",{width:o,height:o},a.a.createElement($g,{top:g,left:g},a.a.createElement("circle",{r:g,fill:e,style:i})))}function oC(t){return t&&t.value?t.value:t}function gC(t){var e=t.shape,n=void 0===e?aC:e,r=t.width,i=t.height,o=t.margin,g=t.label,C=t.fill,A=t.size,I=t.shapeStyle;return a.a.createElement("div",{className:"vx-legend-shape",style:{display:"flex",width:A?A(tC({},g)):r,height:A?A(tC({},g)):i,margin:o}},function(t){var e=t.shape,n=void 0===e?"rect":e,r=t.fill,i=void 0===r?oC:r,o=t.size,g=void 0===o?oC:o,C=t.width,A=t.height,I=t.label,c=t.shapeStyle,s=void 0===c?function(t){}:c,u={width:C,height:A,label:I,fill:i(tC({},I)),size:g(tC({},I)),style:s(tC({},I))};return"string"==typeof n?"rect"===n?a.a.createElement(aC,u):a.a.createElement(iC,u):a.a.isValidElement(n)?a.a.cloneElement(n,u):a.a.createElement(n,u)}({shape:n,label:g,width:r,height:i,fill:C,shapeStyle:I}))}nC.propTypes={flexDirection:N.a.string,margin:N.a.string,label:N.a.object.isRequired},rC.propTypes={label:N.a.string.isRequired,margin:N.a.string.isRequired},AC.propTypes={className:N.a.string,style:N.a.object,scale:N.a.oneOfType([N.a.func,N.a.object]).isRequired,shapeWidth:N.a.oneOfType([N.a.number,N.a.string]),shapeHeight:N.a.oneOfType([N.a.number,N.a.string]),shapeMargin:N.a.string,labelMargin:N.a.string,itemMargin:N.a.string,direction:N.a.string,itemDirection:N.a.string,fill:N.a.func,shape:N.a.oneOfType([N.a.func,N.a.string]),labelFormat:N.a.func,labelTransform:N.a.func};var CC={display:"flex"};function AC(t){var e=t.className,n=t.style,r=void 0===n?CC:n,i=t.shapeStyle,o=t.scale,g=t.shape,C=t.domain,A=t.fill,c=void 0===A?oC:A,s=t.size,u=void 0===s?oC:s,f=t.labelFormat,l=void 0===f?oC:f,h=t.labelTransform,d=void 0===h?IC:h,p=t.shapeWidth,b=void 0===p?15:p,m=t.shapeHeight,v=void 0===m?15:m,y=t.shapeMargin,_=void 0===y?"2px 4px 2px 0":y,w=t.labelAlign,x=void 0===w?"left":w,k=t.labelMargin,T=void 0===k?"0 4px":k,O=t.itemMargin,E=void 0===O?"0":O,P=t.direction,S=void 0===P?"column":P,M=t.itemDirection,N=void 0===M?"row":M,j=eC(t,["className","style","shapeStyle","scale","shape","domain","fill","size","labelFormat","labelTransform","shapeWidth","shapeHeight","shapeMargin","labelAlign","labelMargin","itemMargin","direction","itemDirection"]),R=(C=C||o.domain()).map(d({scale:o,labelFormat:l}));return a.a.createElement("div",{className:I()("vx-legend",e),style:tC({},r,{flexDirection:S})},R.map(function(t,e){var n=t.text;return a.a.createElement(nC,tC({key:"legend-"+t+"-"+e,margin:E,flexDirection:N,label:t},j),a.a.createElement(gC,{shape:g,height:v,width:b,margin:_,label:t,fill:c,size:u,shapeStyle:i}),a.a.createElement(rC,{label:n,margin:T,align:x}))}))}function IC(t){var e=t.scale,n=t.labelFormat;return function(t,r){return{datum:t,index:r,text:""+n(t,r),value:e(t)}}}function cC(t){var e=t.scale,n=t.domain,r=t.steps,i=void 0===r?5:r,o=t.labelFormat,g=void 0===o?function(t){return t}:o,C=t.labelTransform,A=void 0===C?sC:C,I=eC(t,["scale","domain","steps","labelFormat","labelTransform"]);return n=n||function(t){var e=t.steps,n=t.scale.domain(),r=n[0],a=(n[n.length-1]-r)/(e-1);return new Array(e).fill(1).reduce(function(t,e,n){return t.push(r+n*a),t},[])}({steps:i,scale:e}),a.a.createElement(AC,tC({scale:e,domain:n,labelFormat:g,labelTransform:A},I))}function sC(t){var e=t.scale,n=t.labelFormat;return function(t,r){return{text:""+n(t,r),value:e(t)}}}N.a.func.isRequired,N.a.array,N.a.func,N.a.func,N.a.string,cC.propTypes={scale:N.a.func.isRequired,domain:N.a.array,steps:N.a.number,labelFormat:N.a.func,labelTransform:N.a.func},N.a.func.isRequired,N.a.array,N.a.func,N.a.func,N.a.func.isRequired,N.a.array,N.a.func,N.a.func,N.a.string,N.a.string,N.a.string;var uC=n(10);function fC(){}function lC(t,e){var n=new fC;if(t instanceof fC)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var r,a=-1,i=t.length;if(null==e)for(;++a<i;)n.set(a,t[a]);else for(;++a<i;)n.set(e(r=t[a],a,t),r)}else if(t)for(var o in t)n.set(o,t[o]);return n}fC.prototype=lC.prototype={constructor:fC,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,e){return this["$"+t]=e,this},remove:function(t){var e="$"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)"$"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)"$"===e[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};var hC=lC;function dC(){}var pC=hC.prototype;function bC(t,e){var n=new dC;if(t instanceof dC)t.each(function(t){n.add(t)});else if(t){var r=-1,a=t.length;if(null==e)for(;++r<a;)n.add(t[r]);else for(;++r<a;)n.add(e(t[r],r,t))}return n}dC.prototype=bC.prototype={constructor:dC,has:pC.has,add:function(t){return this["$"+(t+="")]=t,this},remove:pC.remove,clear:pC.clear,values:pC.keys,size:pC.size,empty:pC.empty,each:pC.each};var mC=Array.prototype,vC=mC.map,yC=mC.slice;var _C=function(t){return function(){return t}},wC=function(t){return+t},xC=[0,1];function kC(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:_C(e)}function TC(t,e,n,r){var a=t[0],i=t[1],o=e[0],g=e[1];return i<a?(a=n(i,a),o=r(g,o)):(a=n(a,i),o=r(o,g)),function(t){return o(a(t))}}function OC(t,e,n,r){var a=Math.min(t.length,e.length)-1,i=new Array(a),o=new Array(a),g=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++g<a;)i[g]=n(t[g],t[g+1]),o[g]=r(e[g],e[g+1]);return function(e){var n=ye(t,e,1,a)-1;return o[n](i[n](e))}}function EC(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function PC(t,e){var n,r,a,i=xC,o=xC,g=ro,C=!1;function A(){return n=Math.min(i.length,o.length)>2?OC:TC,r=a=null,I}function I(e){return(r||(r=n(i,o,C?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}(t):t,g)))(+e)}return I.invert=function(t){return(a||(a=n(o,i,kC,C?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}(e):e)))(+t)},I.domain=function(t){return arguments.length?(i=vC.call(t,wC),A()):i.slice()},I.range=function(t){return arguments.length?(o=yC.call(t),A()):o.slice()},I.rangeRound=function(t){return o=yC.call(t),g=ao,A()},I.clamp=function(t){return arguments.length?(C=!!t,A()):C},I.interpolate=function(t){return arguments.length?(g=t,A()):g},A()}var SC=function(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]},MC=function(t){return(t=SC(Math.abs(t)))?t[1]:NaN},NC=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jC(t){return new RC(t)}function RC(t){if(!(e=NC.exec(t)))throw new Error("invalid format: "+t);var e;this.fill=e[1]||" ",this.align=e[2]||">",this.sign=e[3]||"-",this.symbol=e[4]||"",this.zero=!!e[5],this.width=e[6]&&+e[6],this.comma=!!e[7],this.precision=e[8]&&+e[8].slice(1),this.trim=!!e[9],this.type=e[10]||""}jC.prototype=RC.prototype,RC.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var zC,DC,LC,WC,FC=function(t){t:for(var e,n=t.length,r=1,a=-1;r<n;++r)switch(t[r]){case".":a=e=r;break;case"0":0===a&&(a=r),e=r;break;default:if(a>0){if(!+t[r])break t;a=0}}return a>0?t.slice(0,a)+t.slice(e+1):t},ZC=function(t,e){var n=SC(t,e);if(!n)return t+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")},GC={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return ZC(100*t,e)},r:ZC,s:function(t,e){var n=SC(t,e);if(!n)return t+"";var r=n[0],a=n[1],i=a-(zC=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+SC(t,Math.max(0,e+i-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},UC=function(t){return t},YC=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],VC=function(t){var e=t.grouping&&t.thousands?function(t,e){return function(n,r){for(var a=n.length,i=[],o=0,g=t[0],C=0;a>0&&g>0&&(C+g+1>r&&(g=Math.max(1,r-C)),i.push(n.substring(a-=g,a+g)),!((C+=g+1)>r));)g=t[o=(o+1)%t.length];return i.reverse().join(e)}}(t.grouping,t.thousands):UC,n=t.currency,r=t.decimal,a=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(t.numerals):UC,i=t.percent||"%";function o(t){var o=(t=jC(t)).fill,g=t.align,C=t.sign,A=t.symbol,I=t.zero,c=t.width,s=t.comma,u=t.precision,f=t.trim,l=t.type;"n"===l?(s=!0,l="g"):GC[l]||(null==u&&(u=12),f=!0,l="g"),(I||"0"===o&&"="===g)&&(I=!0,o="0",g="=");var h="$"===A?n[0]:"#"===A&&/[boxX]/.test(l)?"0"+l.toLowerCase():"",d="$"===A?n[1]:/[%p]/.test(l)?i:"",p=GC[l],b=/[defgprs%]/.test(l);function m(t){var n,i,A,m=h,v=d;if("c"===l)v=p(t)+v,t="";else{var y=(t=+t)<0;if(t=p(Math.abs(t),u),f&&(t=FC(t)),y&&0==+t&&(y=!1),m=(y?"("===C?C:"-":"-"===C||"("===C?"":C)+m,v=("s"===l?YC[8+zC/3]:"")+v+(y&&"("===C?")":""),b)for(n=-1,i=t.length;++n<i;)if(48>(A=t.charCodeAt(n))||A>57){v=(46===A?r+t.slice(n+1):t.slice(n))+v,t=t.slice(0,n);break}}s&&!I&&(t=e(t,1/0));var _=m.length+t.length+v.length,w=_<c?new Array(c-_+1).join(o):"";switch(s&&I&&(t=e(w+t,w.length?c-v.length:1/0),w=""),g){case"<":t=m+t+v+w;break;case"=":t=m+w+t+v;break;case"^":t=w.slice(0,_=w.length>>1)+m+t+v+w.slice(_);break;default:t=w+m+t+v}return a(t)}return u=null==u?6:/[gprs]/.test(l)?Math.max(1,Math.min(21,u)):Math.max(0,Math.min(20,u)),m.toString=function(){return t+""},m}return{format:o,formatPrefix:function(t,e){var n=o(((t=jC(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(MC(e)/3))),a=Math.pow(10,-r),i=YC[8+r/3];return function(t){return n(a*t)+i}}}};!function(t){DC=VC(t),LC=DC.format,WC=DC.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var BC=function(t,e,n){var r,a=t[0],i=t[t.length-1],o=Ee(a,i,null==e?10:e);switch((n=jC(null==n?",f":n)).type){case"s":var g=Math.max(Math.abs(a),Math.abs(i));return null!=n.precision||isNaN(r=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(MC(e)/3)))-MC(Math.abs(t)))}(o,g))||(n.precision=r),WC(n,g);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,MC(e)-MC(t))+1}(o,Math.max(Math.abs(a),Math.abs(i))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=function(t){return Math.max(0,-MC(Math.abs(t)))}(o))||(n.precision=r-2*("%"===n.type))}return LC(n)};function HC(t){var e=t.domain;return t.ticks=function(t){var n=e();return Te(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return BC(e(),t,n)},t.nice=function(n){null==n&&(n=10);var r,a=e(),i=0,o=a.length-1,g=a[i],C=a[o];return C<g&&(r=g,g=C,C=r,r=i,i=o,o=r),(r=Oe(g,C,n))>0?r=Oe(g=Math.floor(g/r)*r,C=Math.ceil(C/r)*r,n):r<0&&(r=Oe(g=Math.ceil(g*r)/r,C=Math.floor(C*r)/r,n)),r>0?(a[i]=Math.floor(g/r)*r,a[o]=Math.ceil(C/r)*r,e(a)):r<0&&(a[i]=Math.ceil(g*r)/r,a[o]=Math.floor(C*r)/r,e(a)),t},t}var KC=new Date,qC=new Date;function XC(t,e,n,r){function a(e){return t(e=new Date(+e)),e}return a.floor=a,a.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},a.round=function(t){var e=a(t),n=a.ceil(t);return t-e<n-t?e:n},a.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},a.range=function(n,r,i){var o,g=[];if(n=a.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return g;do{g.push(o=new Date(+n)),e(n,i),t(n)}while(o<n&&n<r);return g},a.filter=function(n){return XC(function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(a.count=function(e,r){return KC.setTime(+e),qC.setTime(+r),t(KC),t(qC),Math.floor(n(KC,qC))},a.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?a.filter(r?function(e){return r(e)%t==0}:function(e){return a.count(0,e)%t==0}):a:null}),a}var QC=XC(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});QC.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?XC(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):QC:null};QC.range;var JC=6e4,$C=6048e5,tA=XC(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),eA=(tA.range,XC(function(t){t.setTime(Math.floor(t/JC)*JC)},function(t,e){t.setTime(+t+e*JC)},function(t,e){return(e-t)/JC},function(t){return t.getMinutes()})),nA=(eA.range,XC(function(t){var e=t.getTimezoneOffset()*JC%36e5;e<0&&(e+=36e5),t.setTime(36e5*Math.floor((+t-e)/36e5)+e)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()})),rA=(nA.range,XC(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*JC)/864e5},function(t){return t.getDate()-1})),aA=rA;rA.range;function iA(t){return XC(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*JC)/$C})}var oA=iA(0),gA=iA(1),CA=iA(2),AA=iA(3),IA=iA(4),cA=iA(5),sA=iA(6),uA=(oA.range,gA.range,CA.range,AA.range,IA.range,cA.range,sA.range,XC(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()})),fA=(uA.range,XC(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()}));fA.every=function(t){return isFinite(t=Math.floor(t))&&t>0?XC(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var lA=fA,hA=(fA.range,XC(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*JC)},function(t,e){return(e-t)/JC},function(t){return t.getUTCMinutes()})),dA=(hA.range,XC(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()})),pA=(dA.range,XC(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1})),bA=pA;pA.range;function mA(t){return XC(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/$C})}var vA=mA(0),yA=mA(1),_A=mA(2),wA=mA(3),xA=mA(4),kA=mA(5),TA=mA(6),OA=(vA.range,yA.range,_A.range,wA.range,xA.range,kA.range,TA.range,XC(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()})),EA=(OA.range,XC(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()}));EA.every=function(t){return isFinite(t=Math.floor(t))&&t>0?XC(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var PA=EA;EA.range;function SA(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function MA(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function NA(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}var jA,RA,zA,DA={"-":"",_:" ",0:"0"},LA=/^\s*\d+/,WA=/^%/,FA=/[\\^$*+?|[\]().{}]/g;function ZA(t,e,n){var r=t<0?"-":"",a=(r?-t:t)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(e)+a:a)}function GA(t){return t.replace(FA,"\\$&")}function UA(t){return new RegExp("^(?:"+t.map(GA).join("|")+")","i")}function YA(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function VA(t,e,n){var r=LA.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function BA(t,e,n){var r=LA.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function HA(t,e,n){var r=LA.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function KA(t,e,n){var r=LA.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function qA(t,e,n){var r=LA.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function XA(t,e,n){var r=LA.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function QA(t,e,n){var r=LA.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function JA(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function $A(t,e,n){var r=LA.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function tI(t,e,n){var r=LA.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function eI(t,e,n){var r=LA.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function nI(t,e,n){var r=LA.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function rI(t,e,n){var r=LA.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function aI(t,e,n){var r=LA.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function iI(t,e,n){var r=LA.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function oI(t,e,n){var r=LA.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function gI(t,e,n){var r=WA.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function CI(t,e,n){var r=LA.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function AI(t,e,n){var r=LA.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function II(t,e){return ZA(t.getDate(),e,2)}function cI(t,e){return ZA(t.getHours(),e,2)}function sI(t,e){return ZA(t.getHours()%12||12,e,2)}function uI(t,e){return ZA(1+aA.count(lA(t),t),e,3)}function fI(t,e){return ZA(t.getMilliseconds(),e,3)}function lI(t,e){return fI(t,e)+"000"}function hI(t,e){return ZA(t.getMonth()+1,e,2)}function dI(t,e){return ZA(t.getMinutes(),e,2)}function pI(t,e){return ZA(t.getSeconds(),e,2)}function bI(t){var e=t.getDay();return 0===e?7:e}function mI(t,e){return ZA(oA.count(lA(t),t),e,2)}function vI(t,e){var n=t.getDay();return t=n>=4||0===n?IA(t):IA.ceil(t),ZA(IA.count(lA(t),t)+(4===lA(t).getDay()),e,2)}function yI(t){return t.getDay()}function _I(t,e){return ZA(gA.count(lA(t),t),e,2)}function wI(t,e){return ZA(t.getFullYear()%100,e,2)}function xI(t,e){return ZA(t.getFullYear()%1e4,e,4)}function kI(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+ZA(e/60|0,"0",2)+ZA(e%60,"0",2)}function TI(t,e){return ZA(t.getUTCDate(),e,2)}function OI(t,e){return ZA(t.getUTCHours(),e,2)}function EI(t,e){return ZA(t.getUTCHours()%12||12,e,2)}function PI(t,e){return ZA(1+bA.count(PA(t),t),e,3)}function SI(t,e){return ZA(t.getUTCMilliseconds(),e,3)}function MI(t,e){return SI(t,e)+"000"}function NI(t,e){return ZA(t.getUTCMonth()+1,e,2)}function jI(t,e){return ZA(t.getUTCMinutes(),e,2)}function RI(t,e){return ZA(t.getUTCSeconds(),e,2)}function zI(t){var e=t.getUTCDay();return 0===e?7:e}function DI(t,e){return ZA(vA.count(PA(t),t),e,2)}function LI(t,e){var n=t.getUTCDay();return t=n>=4||0===n?xA(t):xA.ceil(t),ZA(xA.count(PA(t),t)+(4===PA(t).getUTCDay()),e,2)}function WI(t){return t.getUTCDay()}function FI(t,e){return ZA(yA.count(PA(t),t),e,2)}function ZI(t,e){return ZA(t.getUTCFullYear()%100,e,2)}function GI(t,e){return ZA(t.getUTCFullYear()%1e4,e,4)}function UI(){return"+0000"}function YI(){return"%"}function VI(t){return+t}function BI(t){return Math.floor(+t/1e3)}!function(t){jA=function(t){var e=t.dateTime,n=t.date,r=t.time,a=t.periods,i=t.days,o=t.shortDays,g=t.months,C=t.shortMonths,A=UA(a),I=YA(a),c=UA(i),s=YA(i),u=UA(o),f=YA(o),l=UA(g),h=YA(g),d=UA(C),p=YA(C),b={a:function(t){return o[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return C[t.getMonth()]},B:function(t){return g[t.getMonth()]},c:null,d:II,e:II,f:lI,H:cI,I:sI,j:uI,L:fI,m:hI,M:dI,p:function(t){return a[+(t.getHours()>=12)]},Q:VI,s:BI,S:pI,u:bI,U:mI,V:vI,w:yI,W:_I,x:null,X:null,y:wI,Y:xI,Z:kI,"%":YI},m={a:function(t){return o[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return C[t.getUTCMonth()]},B:function(t){return g[t.getUTCMonth()]},c:null,d:TI,e:TI,f:MI,H:OI,I:EI,j:PI,L:SI,m:NI,M:jI,p:function(t){return a[+(t.getUTCHours()>=12)]},Q:VI,s:BI,S:RI,u:zI,U:DI,V:LI,w:WI,W:FI,x:null,X:null,y:ZI,Y:GI,Z:UI,"%":YI},v={a:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.w=s[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.m=p[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.m=h[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return w(t,e,n,r)},d:tI,e:tI,f:oI,H:nI,I:nI,j:eI,L:iI,m:$A,M:rI,p:function(t,e,n){var r=A.exec(e.slice(n));return r?(t.p=I[r[0].toLowerCase()],n+r[0].length):-1},Q:CI,s:AI,S:aI,u:BA,U:HA,V:KA,w:VA,W:qA,x:function(t,e,r){return w(t,n,e,r)},X:function(t,e,n){return w(t,r,e,n)},y:QA,Y:XA,Z:JA,"%":gI};function y(t,e){return function(n){var r,a,i,o=[],g=-1,C=0,A=t.length;for(n instanceof Date||(n=new Date(+n));++g<A;)37===t.charCodeAt(g)&&(o.push(t.slice(C,g)),null!=(a=DA[r=t.charAt(++g)])?r=t.charAt(++g):a="e"===r?" ":"0",(i=e[r])&&(r=i(n,a)),o.push(r),C=g+1);return o.push(t.slice(C,g)),o.join("")}}function _(t,e){return function(n){var r,a,i=NA(1900);if(w(i,t,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("p"in i&&(i.H=i.H%12+12*i.p),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(r=(a=(r=MA(NA(i.y))).getUTCDay())>4||0===a?yA.ceil(r):yA(r),r=bA.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(r=(a=(r=e(NA(i.y))).getDay())>4||0===a?gA.ceil(r):gA(r),r=aA.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),a="Z"in i?MA(NA(i.y)).getUTCDay():e(NA(i.y)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(a+5)%7:i.w+7*i.U-(a+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,MA(i)):e(i)}}function w(t,e,n,r){for(var a,i,o=0,g=e.length,C=n.length;o<g;){if(r>=C)return-1;if(37===(a=e.charCodeAt(o++))){if(a=e.charAt(o++),!(i=v[a in DA?e.charAt(o++):a])||(r=i(t,n,r))<0)return-1}else if(a!=n.charCodeAt(r++))return-1}return r}return b.x=y(n,b),b.X=y(r,b),b.c=y(e,b),m.x=y(n,m),m.X=y(r,m),m.c=y(e,m),{format:function(t){var e=y(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=_(t+="",SA);return e.toString=function(){return t},e},utcFormat:function(t){var e=y(t+="",m);return e.toString=function(){return t},e},utcParse:function(t){var e=_(t,MA);return e.toString=function(){return t},e}}}(t),jA.format,jA.parse,RA=jA.utcFormat,zA=jA.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});Date.prototype.toISOString||RA("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||zA("%Y-%m-%dT%H:%M:%S.%LZ");var HI=function(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n},KI=(HI("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),HI("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),HI("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),HI("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),HI("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),HI("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),HI("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),HI("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),HI("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),function(t){return Ki(t[t.length-1])});KI(new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(HI)),KI(new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(HI)),KI(new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(HI)),KI(new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(HI)),KI(new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(HI)),KI(new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(HI)),KI(new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(HI)),KI(new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(HI)),KI(new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(HI)),KI(new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(HI)),KI(new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(HI)),KI(new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(HI)),KI(new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(HI)),KI(new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(HI)),KI(new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(HI)),KI(new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(HI)),KI(new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(HI)),KI(new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(HI)),KI(new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(HI)),KI(new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(HI)),KI(new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(HI)),KI(new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(HI)),KI(new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(HI)),KI(new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(HI)),KI(new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(HI)),KI(new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(HI)),KI(new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(HI)),po(Li(300,.5,0),Li(-240,.5,1)),po(Li(-100,.75,.35),Li(80,1.5,.8)),po(Li(260,.75,.35),Li(80,1.5,.8)),Li(),oi(),Math.PI,Math.PI;function qI(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}qI(HI("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),qI(HI("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),qI(HI("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),qI(HI("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));var XI=n(7);n(32);function QI(t){return(QI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function JI(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $I(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function tc(t){return(tc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ec(t,e){return(ec=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function nc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var rc=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e){return!e||"object"!==QI(e)&&"function"!=typeof e?nc(t):e}(this,tc(e).call(this,t))).state={},n.props.options.forEach(function(t){n.state[t.id]=!!t.checked}),n.handleChange=n.handleChange.bind(nc(nc(n))),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ec(t,e)}(e,a.a.Component),function(t,e,n){e&&$I(t.prototype,e),n&&$I(t,n)}(e,[{key:"handleChange",value:function(t){this.setState(JI({},t.target.id,t.target.checked)),this.props.onChange(t)}},{key:"render",value:function(){var t=this,e=this.props,n=e.orientation,r=e.options,i=e.style,o=e.title;return a.a.createElement("div",{className:"dv-checkbox-container ".concat("vertical"===n?"dv-checkbox-container-vertical":"horizontal"===n?"dv-checkbox-container-horizontal":""),style:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){JI(t,e,n[e])})}return t}({},i)},o?a.a.createElement("span",{style:{margin:"0",paddingBottom:"0.5rem",fontSize:"14px",fontWeight:"bold",flexBasis:"100%"}},o):null,r.map(function(e,n){return a.a.createElement("div",{className:"dv-checkbox",key:n},a.a.createElement("input",{id:e.id,type:"checkbox",checked:t.state[e.id],onChange:t.handleChange}),a.a.createElement("label",{htmlFor:e.id,className:"dv-checkbox-label"},e.label))}))}}]),e}();function ac(t){return(ac="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ic(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function oc(t){return(oc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function gc(t,e){return(gc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Cc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ac(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ic=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ac(Cc(Cc(n=function(t,e){return!e||"object"!==ac(e)&&"function"!=typeof e?Cc(t):e}(this,oc(e).call(this,t)))),"mouseIn",function(t,e){var r=Xg(t.target.ownerSVGElement,t),a=n.props.data.filter(function(t){return t.id==e.id})[0];a&&n.props.showTooltip({tooltipLeft:r.x,tooltipTop:r.y,tooltipData:a})}),n.state={filter:{"Global & Open":!0,"Sovereign & Closed":!0,"Digital Deciders":!0,"LDC or Small Country":!1}},n.handleCheckboxChange=n.handleCheckboxChange.bind(Cc(Cc(n))),n.mouseIn=n.mouseIn.bind(Cc(Cc(n))),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&gc(t,e)}(e,a.a.Component),function(t,e,n){e&&ic(t.prototype,e),n&&ic(t,n)}(e,[{key:"handleCheckboxChange",value:function(t){this.setState({filter:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Ac(t,e,n[e])})}return t}({},this.state.filter,Ac({},t.target.id,t.target.checked))})}},{key:"render",value:function(){var t=this.props,e=t.geometry,n=(t.width,t.height,t.tooltipOpen),r=t.tooltipData,i=t.tooltipLeft,o=t.tooltipTop,g=(t.showTooltip,t.hideTooltip),C=t.parentWidth,A=t.parentHeight,I=this.props,c=I.data,s=I.filter,u=c.filter(function(t){return s[t.country_type]}),f=Object(uC.scale)(["#FF2D44","#4C81DB"]).domain([0,1]).mode("rgb");return a.a.createElement("div",{style:{width:"100%",height:"100%"}},a.a.createElement(xg,{geometry:e,width:C,height:A,fillFunc:function(t){var e;return u.forEach(function(n){+n.id===t&&(e=parseFloat(n.weightedScore))}),f(e)},selectFunc:this.selectFunc,mouseIn:this.mouseIn,mouseOut:g}),a.a.createElement(cC,{shape:"circle",scale:f,labelFormat:function(t){return LC(".3")(t)},style:{position:"absolute",top:"1rem",left:"1rem",padding:"0.5rem",fontSize:"14px",backgroundColor:"#fff",border:"1px solid #ddd",maxWidth:"100px",display:"flex",flexDirection:"column"},className:"dv-choro-legend",domain:[1,.75,.5,.25,0]}),n&&a.a.createElement(Bg,{key:Math.random(),top:o,left:i,style:{padding:"1rem",borderRadius:0,boxShadow:"0 2px 5px 0 rgba(0, 0, 0, 0.15), 0 2px 10px 0 rgba(0, 0, 0, 0.1)"}},a.a.createElement("h4",{style:{marginTop:0,marginBottom:"0.5rem",fontSize:"1rem"}},a.a.createElement("strong",null,r.country)),a.a.createElement("div",{style:{color:"#2c2f35",marginBottom:"0.5rem"}},"Overall Rank: ",a.a.createElement("strong",null,r.rank)),a.a.createElement("div",{style:{color:"#2c2f35"}},"Weighted Score:"," ",a.a.createElement("strong",null,LC(".3")(r.weightedScore)))))}}]),e}(),cc=Object(XI.b)(Gg(Ic));n(34);function sc(t){return(sc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function uc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fc(t){return(fc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function lc(t,e){return(lc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function hc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var dc=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e){return!e||"object"!==sc(e)&&"function"!=typeof e?hc(t):e}(this,fc(e).call(this,t))).state={active:n.props.active},n.handleClick=n.handleClick.bind(hc(hc(n))),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&lc(t,e)}(e,a.a.Component),function(t,e,n){e&&uc(t.prototype,e),n&&uc(t,n)}(e,[{key:"handleClick",value:function(t){t.preventDefault(),this.setState({active:t.target.id}),this.props.onChange(t.target.id)}},{key:"render",value:function(){var t=this,e=this.props.options,n=this.state.active;return a.a.createElement("div",{className:"dv-btn-group",role:"group"},e.map(function(e){return a.a.createElement("button",{type:"button",className:"dv-btn ".concat(n===e.id?"dv-btn-active":""),onClick:t.handleClick,id:e.id},e.text)}))}}]),e}();function pc(t){return(pc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bc(t,e){if(null==t)return{};var n,r,a=function(t,e){if(null==t)return{};var n,r,a={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function mc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){vc(t,e,n[e])})}return t}function vc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _c(t){return(_c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function wc(t,e){return(wc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function xc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var kc=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e){return!e||"object"!==pc(e)&&"function"!=typeof e?xc(t):e}(this,_c(e).call(this,t))).state={data:n.props.data,filter:{"Global & Open":!0,"Sovereign & Closed":!0,"Digital Deciders":!0,"LDC or Small Country":!1},view:"map",s1:5,s2:5,s3:5,s4:5,s5:5},n.handleToggleChange=n.handleToggleChange.bind(xc(xc(n))),n.handleSliderChange=n.handleSliderChange.bind(xc(xc(n))),n.handleCheckboxChange=n.handleCheckboxChange.bind(xc(xc(n))),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&wc(t,e)}(e,a.a.Component),function(t,e,n){e&&yc(t.prototype,e),n&&yc(t,n)}(e,[{key:"componentDidMount",value:function(){this.updateData()}},{key:"handleCheckboxChange",value:function(t){this.setState({filter:mc({},this.state.filter,vc({},t.target.id,t.target.checked))})}},{key:"updateData",value:function(){var t=this.state,e=t.s1,n=t.s2,r=t.s3,a=t.s4,i=t.s5;0===e&&0===n&&0===r&&0===a&&0===i&&(e=1,n=1,r=1,a=1,i=1);var o=this.state.data.map(function(t){t.weightedScore;return mc({},bc(t,["weightedScore"]),{weightedScore:function(t,o,g,C,A){return(e*t+n*o+r*g+a*C+i*A)/(e+n+r+a+i)}(parseFloat(t.internet_values_score),parseFloat(t.political_environment_score),parseFloat(t.international_internet_participation_score),parseFloat(t.international_political_influence_score),parseFloat(t.domestic_internet_score))})}).sort(function(t,e){return e.weightedScore-t.weightedScore}).map(function(t,e){t.rank;return mc({rank:e+1},bc(t,["rank"]))});this.setState({data:o})}},{key:"handleToggleChange",value:function(t){this.setState({view:t})}},{key:"handleSliderChange",value:function(t){this.setState(vc({},t.id,+t.value),this.updateData)}},{key:"render",value:function(){var t=this,e=this.props,n=e.title,r=e.description,i=this.state,o=i.s1,g=i.s2,C=i.s3,A=i.s4,I=i.s5,c=i.data,s=i.filter,u=i.view,f=[{Header:"Overall Rank",accessor:"rank"},{Header:"Country",accessor:"country",minWidth:200},{Header:"Weighted Score",accessor:"weightedScore",Cell:function(t){return LC(".2")(t.value)},minWidth:150},{Header:"Internet Values Score",accessor:"internet_values_score",Cell:function(t){return LC(".2")(t.value)},minWidth:150},{Header:"Political Values Score",accessor:"political_environment_score",Cell:function(t){return LC(".2")(t.value)},minWidth:150},{Header:"International Internet Policy Participation Score",accessor:"international_internet_participation_score",Cell:function(t){return LC(".2")(t.value)},minWidth:150},{Header:"International Influence Score",accessor:"international_political_influence_score",Cell:function(t){return LC(".2")(t.value)},minWidth:150},{Header:"Internet Reliance Score",accessor:"domestic_internet_score",Cell:function(t){return LC(".2")(t.value)},minWidth:150}];return a.a.createElement("div",{className:"dv-app"},a.a.createElement("div",{className:"dv-controls"},a.a.createElement("div",null,a.a.createElement("div",{className:"dv-title-container"},a.a.createElement("h2",{className:"dv-title"},n),a.a.createElement("p",{className:"dv-description"},r)),a.a.createElement("div",{className:"switch-view"},a.a.createElement(dc,{options:[{text:"Map View",id:"map"},{text:"Table View",id:"table"}],active:"map",onChange:function(e){return t.handleToggleChange(e)}})),a.a.createElement("div",{style:{padding:"2rem 0",borderBottom:"1px solid #ddd"}},a.a.createElement(rc,{options:[{id:"Global & Open",label:"Global & Open",checked:!0},{id:"Sovereign & Closed",label:"Sovereign & Closed",checked:!0},{id:"Digital Deciders",label:"Digital Deciders",checked:!0},{id:"LDC or Small Country",label:"LDC or Small Country",checked:!1}],onChange:this.handleCheckboxChange,orientation:"horizontal",style:{padding:"0",margin:"0"},title:"Filter By"})),a.a.createElement("div",{className:"sliders"},a.a.createElement(pt,{min:"0",max:"10",step:"1",value:o,onChange:function(e){return t.handleSliderChange(e)},label:"Internet Values Score",id:"s1",secondary:!0}),a.a.createElement(pt,{min:"0",max:"10",step:"1",value:g,onChange:function(e){return t.handleSliderChange(e)},label:"Political Values Score",id:"s2",secondary:!0}),a.a.createElement(pt,{min:"0",max:"10",step:"1",value:C,onChange:function(e){return t.handleSliderChange(e)},label:"International Internet Policy Participation Score",id:"s3",secondary:!0}),a.a.createElement(pt,{min:"0",max:"10",step:"1",value:A,onChange:function(e){return t.handleSliderChange(e)},label:"International Influence Score",id:"s4",secondary:!0}),a.a.createElement(pt,{min:"0",max:"10",step:"1",value:I,onChange:function(e){return t.handleSliderChange(e)},label:"Internet Reliance Score",id:"s5",secondary:!0})))),a.a.createElement("div",{className:"map"===u?"dv-map":"dv-table"},a.a.createElement("div",{style:{width:"100%",height:"100%"}},"map"===u&&a.a.createElement(cc,{geometry:"world",data:c,filter:s}),"table"===u&&a.a.createElement(st,{data:c,columns:f,showPagination:!0,filter:s}))))}}]),e}(),Tc=n(8),Oc=Math.PI,Ec=2*Oc,Pc=Ec-1e-6;function Sc(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Mc(){return new Sc}Sc.prototype=Mc.prototype={constructor:Sc,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,a,i){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+a)+","+(this._y1=+i)},arcTo:function(t,e,n,r,a){t=+t,e=+e,n=+n,r=+r,a=+a;var i=this._x1,o=this._y1,g=n-t,C=r-e,A=i-t,I=o-e,c=A*A+I*I;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(c>1e-6)if(Math.abs(I*g-C*A)>1e-6&&a){var s=n-i,u=r-o,f=g*g+C*C,l=s*s+u*u,h=Math.sqrt(f),d=Math.sqrt(c),p=a*Math.tan((Oc-Math.acos((f+c-l)/(2*h*d)))/2),b=p/d,m=p/h;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*A)+","+(e+b*I)),this._+="A"+a+","+a+",0,0,"+ +(I*s>A*u)+","+(this._x1=t+m*g)+","+(this._y1=e+m*C)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,a,i){t=+t,e=+e;var o=(n=+n)*Math.cos(r),g=n*Math.sin(r),C=t+o,A=e+g,I=1^i,c=i?r-a:a-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+C+","+A:(Math.abs(this._x1-C)>1e-6||Math.abs(this._y1-A)>1e-6)&&(this._+="L"+C+","+A),n&&(c<0&&(c=c%Ec+Ec),c>Pc?this._+="A"+n+","+n+",0,1,"+I+","+(t-o)+","+(e-g)+"A"+n+","+n+",0,1,"+I+","+(this._x1=C)+","+(this._y1=A):c>1e-6&&(this._+="A"+n+","+n+",0,"+ +(c>=Oc)+","+I+","+(this._x1=t+n*Math.cos(a))+","+(this._y1=e+n*Math.sin(a))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Nc=Mc,jc=function(t){return function(){return t}},Rc=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,1e-12),zc=Math.PI,Dc=2*zc;function Lc(t){this._context=t}Lc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var Wc=function(t){return new Lc(t)};Zc(Wc);function Fc(t){this._curve=t}function Zc(t){function e(e){return new Fc(t(e))}return e._curve=t,e}Fc.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};Array.prototype.slice;var Gc={draw:function(t,e){var n=Math.sqrt(e/zc);t.moveTo(n,0),t.arc(0,0,n,0,Dc)}},Uc=(Math.sqrt(1/3),Math.sin(zc/10)/Math.sin(7*zc/10)),Yc=(Math.sin(Dc/10),Math.cos(Dc/10),Math.sqrt(3),Math.sqrt(3),Math.sqrt(12),function(){var t=jc(Gc),e=jc(64),n=null;function r(){var r;if(n||(n=r=Nc()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(e){return arguments.length?(t="function"==typeof e?e:jc(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:jc(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}),Vc=function(){};function Bc(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Hc(t){this._context=t}Hc.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:Bc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Bc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Kc(t){this._context=t}Kc.prototype={areaStart:Vc,areaEnd:Vc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Bc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function qc(t){this._context=t}qc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Bc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Xc(t,e){this._basis=new Hc(t),this._beta=e}Xc.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,a=t[0],i=e[0],o=t[n]-a,g=e[n]-i,C=-1;++C<=n;)r=C/n,this._basis.point(this._beta*t[C]+(1-this._beta)*(a+r*o),this._beta*e[C]+(1-this._beta)*(i+r*g));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};(function t(e){function n(t){return 1===e?new Hc(t):new Xc(t,e)}return n.beta=function(e){return t(+e)},n})(.85);function Qc(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Jc(t,e){this._context=t,this._k=(1-e)/6}Jc.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:Qc(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Qc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return new Jc(t,e)}return n.tension=function(e){return t(+e)},n})(0);function $c(t,e){this._context=t,this._k=(1-e)/6}$c.prototype={areaStart:Vc,areaEnd:Vc,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Qc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return new $c(t,e)}return n.tension=function(e){return t(+e)},n})(0);function ts(t,e){this._context=t,this._k=(1-e)/6}ts.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Qc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return new ts(t,e)}return n.tension=function(e){return t(+e)},n})(0);function es(t,e,n){var r=t._x1,a=t._y1,i=t._x2,o=t._y2;if(t._l01_a>Rc){var g=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,C=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*g-t._x0*t._l12_2a+t._x2*t._l01_2a)/C,a=(a*g-t._y0*t._l12_2a+t._y2*t._l01_2a)/C}if(t._l23_a>Rc){var A=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,I=3*t._l23_a*(t._l23_a+t._l12_a);i=(i*A+t._x1*t._l23_2a-e*t._l12_2a)/I,o=(o*A+t._y1*t._l23_2a-n*t._l12_2a)/I}t._context.bezierCurveTo(r,a,i,o,t._x2,t._y2)}function ns(t,e){this._context=t,this._alpha=e}ns.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(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;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(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:es(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return e?new ns(t,e):new Jc(t,0)}return n.alpha=function(e){return t(+e)},n})(.5);function rs(t,e){this._context=t,this._alpha=e}rs.prototype={areaStart:Vc,areaEnd:Vc,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(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;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=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:es(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return e?new rs(t,e):new $c(t,0)}return n.alpha=function(e){return t(+e)},n})(.5);function as(t,e){this._context=t,this._alpha=e}as.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(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;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:es(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return e?new as(t,e):new ts(t,0)}return n.alpha=function(e){return t(+e)},n})(.5);function is(t){this._context=t}is.prototype={areaStart:Vc,areaEnd:Vc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function os(t){return t<0?-1:1}function gs(t,e,n){var r=t._x1-t._x0,a=e-t._x1,i=(t._y1-t._y0)/(r||a<0&&-0),o=(n-t._y1)/(a||r<0&&-0),g=(i*a+o*r)/(r+a);return(os(i)+os(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(g))||0}function Cs(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function As(t,e,n){var r=t._x0,a=t._y0,i=t._x1,o=t._y1,g=(i-r)/3;t._context.bezierCurveTo(r+g,a+g*e,i-g,o-g*n,i,o)}function Is(t){this._context=t}function cs(t){this._context=new ss(t)}function ss(t){this._context=t}function us(t){this._context=t}function fs(t){var e,n,r=t.length-1,a=new Array(r),i=new Array(r),o=new Array(r);for(a[0]=0,i[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)a[e]=1,i[e]=4,o[e]=4*t[e]+2*t[e+1];for(a[r-1]=2,i[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=a[e]/i[e-1],i[e]-=n,o[e]-=n*o[e-1];for(a[r-1]=o[r-1]/i[r-1],e=r-2;e>=0;--e)a[e]=(o[e]-a[e+1])/i[e];for(i[r-1]=(t[r]+a[r-1])/2,e=0;e<r-1;++e)i[e]=2*t[e+1]-a[e+1];return[a,i]}Is.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:As(this,this._t0,Cs(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,As(this,Cs(this,n=gs(this,t,e)),n);break;default:As(this,this._t0,n=gs(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(cs.prototype=Object.create(Is.prototype)).point=function(t,e){Is.prototype.point.call(this,e,t)},ss.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,a,i){this._context.bezierCurveTo(e,t,r,n,i,a)}},us.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=fs(t),a=fs(e),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],t[o],e[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function ls(t,e){this._context=t,this._t=e}ls.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var hs=function(t,e){if((a=t.length)>1)for(var n,r,a,i=1,o=t[e[0]],g=o.length;i<a;++i)for(r=o,o=t[e[i]],n=0;n<g;++n)o[n][1]+=o[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},ds=function(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n};var ps=function(t){var e=t.map(bs);return ds(t).sort(function(t,n){return e[t]-e[n]})};function bs(t){for(var e,n=0,r=-1,a=t.length;++r<a;)(e=+t[r][1])&&(n+=e);return n}function ms(t){var e=t.top,n=void 0===e?0:e,r=t.left,i=void 0===r?0:r,o=t.className,g=t.children;return a.a.createElement($g,{className:I()("vx-glyph",o),top:n,left:i},g)}var vs=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ys=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n};function _s(t,e){return Object.keys(t).reduce(function(n,r){return n[r]=function(t,e){return"function"==typeof t?t(e):t}(t[r],e),n},{})}function ws(t){var e=t.children,n=t.className,r=t.top,i=t.left,o=t.size,g=ys(t,["children","className","top","left","size"]),C=Yc();return C.type(Gc),o&&C.size(o),a.a.createElement(ms,{top:r,left:i},a.a.createElement("path",vs({className:I()("vx-glyph-circle",n),d:C()},_s(g))),e)}var xs=function(t){var e=t.range,n=t.rangeRound,r=t.domain,a=t.nice,i=void 0!==a&&a,o=t.clamp,g=void 0!==o&&o,C=function t(){var e=PC(kC,qi);return e.copy=function(){return EC(e,t())},HC(e)}();return e&&C.range(e),n&&C.rangeRound(n),r&&C.domain(r),i&&C.nice(),g&&C.clamp(!0),C};function ks(t,e){return Object.keys(t).reduce(function(n,r){return n[r]=function(t,e){return"function"==typeof t?t(e):t}(t[r],e),n},{})}var Ts=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Os=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n};function Es(t){var e=t.from,n=void 0===e?new qg({x:0,y:0}):e,r=t.to,i=void 0===r?new qg({x:1,y:1}):r,o=t.stroke,g=void 0===o?"black":o,C=t.strokeWidth,A=void 0===C?1:C,c=t.strokeDasharray,s=void 0===c?"":c,u=t.transform,f=void 0===u?"":u,l=t.className,h=void 0===l?"":l,d=t.data,p=t.innerRef,b=Os(t,["from","to","stroke","strokeWidth","strokeDasharray","transform","className","data","innerRef"]);return a.a.createElement("line",Ts({ref:p,className:I()("vx-line",h),x1:n.x,y1:n.y,x2:i.x,y2:i.y,stroke:g,strokeWidth:A,strokeDasharray:s,transform:f},ks(b,d)))}function Ps(t){var e=t.className,n=t.innerRef,r=t.data,i=t.x,o=void 0===i?0:i,g=t.y,C=void 0===g?0:g,A=t.width,c=t.height,s=t.rx,u=t.ry,f=t.fill,l=void 0===f?"steelblue":f,h=t.fillOpacity,d=t.stroke,p=t.strokeWidth,b=t.strokeDasharray,m=t.strokeLinecap,v=t.strokeLinejoin,y=t.strokeMiterlimit,_=t.strokeOpacity,w=Os(t,["className","innerRef","data","x","y","width","height","rx","ry","fill","fillOpacity","stroke","strokeWidth","strokeDasharray","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity"]);return a.a.createElement("rect",Ts({ref:n,className:I()("vx-bar",e),x:o,y:C,width:A,height:c,rx:s,ry:u,fill:l,fillOpacity:h,stroke:d,strokeWidth:p,strokeDasharray:b,strokeLinecap:m,strokeLinejoin:v,strokeMiterlimit:y,strokeOpacity:_},ks(w,r)))}Es.propTypes={innerRef:N.a.func},N.a.func,N.a.func,N.a.func,N.a.array,N.a.func,N.a.func,N.a.func,N.a.string,N.a.number,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.array,N.a.func,N.a.oneOfType([N.a.string,N.a.bool,N.a.object,N.a.array]),N.a.func,N.a.string,N.a.number,N.a.string,N.a.string,N.a.func,N.a.func,Ps.propTypes={innerRef:N.a.func},N.a.array.isRequired,N.a.func.isRequired,N.a.func.isRequired,N.a.func.isRequired,N.a.func.isRequired,N.a.func.isRequired,N.a.array.isRequired,N.a.number.isRequired,N.a.string,N.a.number,N.a.number,N.a.array.isRequired,N.a.func.isRequired,N.a.func.isRequired,N.a.func.isRequired,N.a.func.isRequired,N.a.func.isRequired,N.a.array.isRequired,N.a.number.isRequired,N.a.string,N.a.number,N.a.number,N.a.array.isRequired,N.a.func.isRequired,N.a.func.isRequired,N.a.func.isRequired,N.a.func.isRequired,N.a.array.isRequired,N.a.string,N.a.number,N.a.number,N.a.array.isRequired,N.a.func.isRequired,N.a.func.isRequired,N.a.func.isRequired,N.a.func.isRequired,N.a.array.isRequired,N.a.string,N.a.number,N.a.number;var Ss={ascending:ps,descending:function(t){return ps(t).reverse()},insideout:function(t){var e,n,r=t.length,a=t.map(bs),i=ds(t).sort(function(t,e){return a[e]-a[t]}),o=0,g=0,C=[],A=[];for(e=0;e<r;++e)n=i[e],o<g?(o+=a[n],C.push(n)):(g+=a[n],A.push(n));return A.reverse().concat(C)},none:ds,reverse:function(t){return ds(t).reverse()}};Object.keys(Ss);var Ms={expand:function(t,e){if((r=t.length)>0){for(var n,r,a,i=0,o=t[0].length;i<o;++i){for(a=n=0;n<r;++n)a+=t[n][i][1]||0;if(a)for(n=0;n<r;++n)t[n][i][1]/=a}hs(t,e)}},diverging:function(t,e){if((g=t.length)>1)for(var n,r,a,i,o,g,C=0,A=t[e[0]].length;C<A;++C)for(i=o=0,n=0;n<g;++n)(a=(r=t[e[n]][C])[1]-r[0])>=0?(r[0]=i,r[1]=i+=a):a<0?(r[1]=o,r[0]=o+=a):r[0]=i},none:hs,silhouette:function(t,e){if((n=t.length)>0){for(var n,r=0,a=t[e[0]],i=a.length;r<i;++r){for(var o=0,g=0;o<n;++o)g+=t[o][r][1]||0;a[r][1]+=a[r][0]=-g/2}hs(t,e)}},wiggle:function(t,e){if((a=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,a,i=0,o=1;o<r;++o){for(var g=0,C=0,A=0;g<a;++g){for(var I=t[e[g]],c=I[o][1]||0,s=(c-(I[o-1][1]||0))/2,u=0;u<g;++u){var f=t[e[u]];s+=(f[o][1]||0)-(f[o-1][1]||0)}C+=c,A+=s*c}n[o-1][1]+=n[o-1][0]=i,C&&(i-=A/C)}n[o-1][1]+=n[o-1][0]=i,hs(t,e)}}};Object.keys(Ms);N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.number,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.number,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.number,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.number,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.number,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func,N.a.func;var Ns=n(9);function js(t){return t}var Rs={top:"top",left:"left",right:"right",bottom:"bottom"},zs=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ds=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)};var Ls={axisClassName:N.a.string,axisLineClassName:N.a.string,hideAxisLine:N.a.bool,hideTicks:N.a.bool,hideZero:N.a.bool,label:N.a.string,labelClassName:N.a.string,labelOffset:N.a.number,labelProps:N.a.object,left:N.a.number,numTicks:N.a.number,orientation:N.a.oneOf([Rs.top,Rs.right,Rs.bottom,Rs.left]),rangePadding:N.a.number,scale:N.a.func.isRequired,stroke:N.a.string,strokeWidth:N.a.number,strokeDasharray:N.a.string,tickClassName:N.a.string,tickFormat:N.a.func,tickLabelProps:N.a.func,tickLength:N.a.number,tickStroke:N.a.string,tickTransform:N.a.string,tickValues:N.a.array,tickComponent:N.a.func,top:N.a.number,children:N.a.func};function Ws(t){var e=t.children,n=t.axisClassName,r=t.axisLineClassName,i=t.hideAxisLine,o=void 0!==i&&i,g=t.hideTicks,C=void 0!==g&&g,A=t.hideZero,c=void 0!==A&&A,s=t.label,u=void 0===s?"":s,f=t.labelClassName,l=t.labelOffset,h=void 0===l?14:l,d=t.labelProps,p=void 0===d?{textAnchor:"middle",fontFamily:"Arial",fontSize:10,fill:"black"}:d,b=t.left,m=void 0===b?0:b,v=t.numTicks,y=void 0===v?10:v,_=t.orientation,w=void 0===_?Rs.bottom:_,x=t.rangePadding,k=void 0===x?0:x,T=t.scale,O=t.stroke,E=void 0===O?"black":O,P=t.strokeWidth,S=void 0===P?1:P,M=t.strokeDasharray,N=t.tickClassName,j=t.tickFormat,R=t.tickLabelProps,z=void 0===R?function(t,e){return{textAnchor:"middle",fontFamily:"Arial",fontSize:10,fill:"black"}}:R,D=t.tickLength,L=void 0===D?8:D,W=t.tickStroke,F=void 0===W?"black":W,Z=t.tickTransform,G=t.tickValues,U=t.tickComponent,Y=t.top,V=void 0===Y?0:Y,B=T.ticks?T.ticks(y):T.domain();G&&(B=G);var H=T.tickFormat?T.tickFormat():js;j&&(H=j);var K=T.range(),q=K[0]+.5-k,X=K[K.length-1]+.5+k,Q=w!==Rs.left&&w!==Rs.right,J=w===Rs.left,$=w===Rs.top,tt=J||$?-1:1,et=(T.bandwidth?function(t){var e=t.bandwidth()/2;return t.round()&&(e=Math.round(e)),function(n){return t(n)+e}}:js)(T.copy()),nt=new qg({x:Q?q:0,y:Q?0:q}),rt=new qg({x:Q?X:0,y:Q?0:X}),at=10;return e?a.a.createElement($g,{className:I()("vx-axis",n),top:V,left:m},e({axisFromPoint:nt,axisToPoint:rt,horizontal:Q,tickSign:tt,numTicks:y,label:u,rangePadding:k,tickLength:L,tickFormat:H,tickPosition:et,ticks:B.map(function(t,e){return{value:t,index:e,from:new qg({x:Q?et(t):0,y:Q?0:et(t)}),to:new qg({x:Q?et(t):tt*L,y:Q?L*tt:et(t)}),formattedValue:H(t,e)}})})):a.a.createElement($g,{className:I()("vx-axis",n),top:V,left:m},B.map(function(t,e){if(c&&0===t)return null;var n=new qg({x:Q?et(t):0,y:Q?0:et(t)}),r=new qg({x:Q?et(t):tt*L,y:Q?L*tt:et(t)}),i=z(t,e);return at=Math.max(at,i.fontSize||0),a.a.createElement($g,{key:"vx-tick-"+t+"-"+e,className:I()("vx-axis-tick",N),transform:Z},!C&&a.a.createElement(Es,{from:n,to:r,stroke:F}),U?U(zs({x:r.x,y:r.y+(Q&&!$?at:0),formattedValue:H(t,e)},i)):a.a.createElement(Ns.a,zs({x:r.x,y:r.y+(Q&&!$?at:0)},i),H(t,e)))}),!o&&a.a.createElement(Es,{className:I()("vx-axis-line",r),from:nt,to:rt,stroke:E,strokeWidth:S,strokeDasharray:M}),u&&a.a.createElement(Ns.a,zs({className:I()("vx-axis-label",f)},function(t){var e=t.labelOffset,n=t.labelProps,r=t.orientation,a=t.range,i=t.tickLabelFontSize,o=t.tickLength,g=r===Rs.left||r===Rs.top?-1:1,C=void 0,A=void 0,I=null;return r===Rs.top||r===Rs.bottom?(C=Math.max.apply(Math,Ds(a))/2,A=g*(o+e+i+(r===Rs.bottom?n.fontSize:0))):(C=g*(Math.max.apply(Math,Ds(a))/2),A=-(o+e),I="rotate("+90*g+")"),{x:C,y:A,transform:I}}({labelOffset:h,labelProps:p,orientation:w,range:K,tickLabelFontSize:at,tickLength:L}),p),u))}Ws.propTypes=Ls;var Fs={axisClassName:N.a.string,axisLineClassName:N.a.string,hideAxisLine:N.a.bool,hideTicks:N.a.bool,hideZero:N.a.bool,label:N.a.string,labelClassName:N.a.string,labelOffset:N.a.number,labelProps:N.a.object,left:N.a.number,numTicks:N.a.number,rangePadding:N.a.number,scale:N.a.func.isRequired,stroke:N.a.string,strokeWidth:N.a.number,strokeDasharray:N.a.string,tickClassName:N.a.string,tickFormat:N.a.func,tickLabelProps:N.a.func,tickLength:N.a.number,tickStroke:N.a.string,tickTransform:N.a.string,tickValues:N.a.array,tickComponent:N.a.func,top:N.a.number,children:N.a.func};function Zs(t){var e=t.children,n=t.axisClassName,r=t.axisLineClassName,i=t.hideAxisLine,o=t.hideTicks,g=t.hideZero,C=t.label,A=t.labelClassName,c=t.labelOffset,s=void 0===c?36:c,u=t.labelProps,f=t.left,l=t.numTicks,h=t.rangePadding,d=t.scale,p=t.stroke,b=t.strokeWidth,m=t.strokeDasharray,v=t.tickClassName,y=t.tickFormat,_=t.tickLabelProps,w=void 0===_?function(t){t.tick,t.index;return{dx:"-0.25em",dy:"0.25em",fill:"black",fontFamily:"Arial",fontSize:10,textAnchor:"end"}}:_,x=t.tickLength,k=void 0===x?8:x,T=t.tickStroke,O=t.tickTransform,E=t.tickValues,P=t.tickComponent,S=t.top;return a.a.createElement(Ws,{axisClassName:I()("vx-axis-left",n),axisLineClassName:r,hideAxisLine:i,hideTicks:o,hideZero:g,label:C,labelClassName:A,labelOffset:s,labelProps:u,left:f,numTicks:l,orientation:Rs.left,rangePadding:h,scale:d,stroke:p,strokeWidth:b,strokeDasharray:m,tickClassName:v,tickFormat:y,tickLabelProps:w,tickLength:k,tickStroke:T,tickTransform:O,tickValues:E,tickComponent:P,top:S,children:e})}Zs.propTypes=Fs;N.a.string,N.a.string,N.a.bool,N.a.bool,N.a.bool,N.a.string,N.a.string,N.a.number,N.a.object,N.a.number,N.a.number,N.a.number,N.a.func.isRequired,N.a.string,N.a.number,N.a.string,N.a.string,N.a.func,N.a.func,N.a.number,N.a.string,N.a.string,N.a.array,N.a.func,N.a.number,N.a.func;N.a.string,N.a.string,N.a.bool,N.a.bool,N.a.bool,N.a.string,N.a.string,N.a.number,N.a.object,N.a.number,N.a.number,N.a.number,N.a.func.isRequired,N.a.string,N.a.number,N.a.string,N.a.string,N.a.func,N.a.func,N.a.number,N.a.string,N.a.string,N.a.array,N.a.func,N.a.number,N.a.func;var Gs={axisClassName:N.a.string,axisLineClassName:N.a.string,hideAxisLine:N.a.bool,hideTicks:N.a.bool,hideZero:N.a.bool,label:N.a.string,labelClassName:N.a.string,labelOffset:N.a.number,labelProps:N.a.object,left:N.a.number,numTicks:N.a.number,rangePadding:N.a.number,scale:N.a.func.isRequired,stroke:N.a.string,strokeWidth:N.a.number,strokeDasharray:N.a.string,tickClassName:N.a.string,tickFormat:N.a.func,tickLabelProps:N.a.func,tickLength:N.a.number,tickStroke:N.a.string,tickTransform:N.a.string,tickValues:N.a.array,tickComponent:N.a.func,top:N.a.number,children:N.a.func};function Us(t){var e=t.children,n=t.axisClassName,r=t.axisLineClassName,i=t.hideAxisLine,o=t.hideTicks,g=t.hideZero,C=t.label,A=t.labelClassName,c=t.labelOffset,s=void 0===c?8:c,u=t.labelProps,f=t.left,l=t.numTicks,h=t.rangePadding,d=t.scale,p=t.stroke,b=t.strokeWidth,m=t.strokeDasharray,v=t.tickClassName,y=t.tickFormat,_=t.tickLabelProps,w=void 0===_?function(t){t.tick,t.index;return{dy:"0.25em",fill:"black",fontFamily:"Arial",fontSize:10,textAnchor:"middle"}}:_,x=t.tickLength,k=void 0===x?8:x,T=t.tickStroke,O=t.tickTransform,E=t.tickValues,P=t.tickComponent,S=t.top;return a.a.createElement(Ws,{axisClassName:I()("vx-axis-bottom",n),axisLineClassName:r,hideAxisLine:i,hideTicks:o,hideZero:g,label:C,labelClassName:A,labelOffset:s,labelProps:u,left:f,numTicks:l,orientation:Rs.bottom,rangePadding:h,scale:d,stroke:p,strokeWidth:b,strokeDasharray:m,tickClassName:v,tickFormat:y,tickLabelProps:w,tickLength:k,tickStroke:T,tickTransform:O,tickValues:E,tickComponent:P,top:S,children:e})}function Ys(t){return(Ys="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Hs(t){return(Hs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ks(t,e){return(Ks=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function qs(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}Us.propTypes=Gs;var Xs=function(){return a.a.createElement("svg",{viewBox:"0 0 19 46",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",style:{height:"2rem",width:"2rem"}},a.a.createElement("g",{fill:"#22C8A3","fill-rule":"evenodd"},a.a.createElement("path",{d:"M11 19.5v26.128H8V19.5H0L9.5.5l9.5 19h-8z","fill-rule":"nonzero"}),a.a.createElement("path",{d:"M7 19h5v27H7z"})))},Qs=function(){return a.a.createElement("svg",{viewBox:"0 0 19 45",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",style:{height:"2rem",width:"2rem"}},a.a.createElement("g",{fill:"#FF2D44","fill-rule":"evenodd"},a.a.createElement("path",{d:"M11 26.5V.372H8V26.5H0l9.5 19 9.5-19h-8z","fill-rule":"nonzero"}),a.a.createElement("path",{d:"M7 27h5V0H7z"})))},Js=Gg(function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e){return!e||"object"!==Ys(e)&&"function"!=typeof e?qs(t):e}(this,Hs(e).call(this,t))).state={2018:!0,2014:!0,active:""},n.handleLegendClick=n.handleLegendClick.bind(qs(qs(n))),n.clickOut=n.clickOut.bind(qs(qs(n))),n.onCircleHoverIn=n.onCircleHoverIn.bind(qs(qs(n))),n.onCircleHoverOut=n.onCircleHoverOut.bind(qs(qs(n))),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ks(t,e)}(e,a.a.Component),function(t,e,n){e&&Bs(t.prototype,e),n&&Bs(t,n)}(e,[{key:"handleLegendClick",value:function(t,e){var n="2018"===e?"2014":"2018";this.setState(function(t){var r;return Vs(r={},e,!0),Vs(r,n,!(!t[e]||t[n])),r})}},{key:"clickOut",value:function(){this.setState({2018:!0,2014:!0})}},{key:"onCircleHoverIn",value:function(t){this.setState({active:t})}},{key:"onCircleHoverOut",value:function(){this.setState({active:""})}},{key:"render",value:function(){var t=this,e=this.props,n=e.data,r=e.title,i=(e.subtitle,e.source),o=(e.maxWidth,e.height,e.x),g=e.y,A=(e.xFormat,e.yFormat,e.xAxisLabel,e.yAxisLabel,e.colors,40),I=50,c=50,s=25;return a.a.createElement(C,{height:500,maxWidth:850,title:r,source:i},a.a.createElement(XI.a,null,function(e){var r=e.width,i=e.height,C=r-c-s,u=i-A-I;if(r<10)return null;var f=xs({domain:[0,Pe(n,o)],range:[0,C],clamp:!0}),l=xs({domain:[0,Pe(n,g)],range:[u,0],clamp:!0});return a.a.createElement(a.a.Fragment,null,a.a.createElement("svg",{width:r,height:i},a.a.createElement("g",{transform:"translate(".concat(c,", ").concat(A,")")},a.a.createElement("rect",{onClick:t.clickOut,width:C,height:u,style:{pointerEvents:"bounding-box"},fill:"transparent"}),a.a.createElement($g,{top:30,left:50},a.a.createElement("g",{onClick:function(e){return t.handleLegendClick(e,"2018")},style:{cursor:"pointer"}},a.a.createElement(ws,{fill:"#22C8A3",size:100,stroke:"rgba(0,0,0,0.3)",top:0,left:0}),a.a.createElement(Tc.a,{verticalAnchor:"middle",x:10,y:0,style:{fontSize:"14px"}},"2018")),a.a.createElement("g",{onClick:function(e){return t.handleLegendClick(e,"2014")},style:{cursor:"pointer"}},a.a.createElement(ws,{fill:"#4C81DB",size:100,stroke:"rgba(0,0,0,0.3)",top:25,left:0}),a.a.createElement(Tc.a,{verticalAnchor:"middle",x:10,y:25,style:{fontSize:"14px"}},"2014"))),n.map(function(e,n){var r=e.country.replace(/\s+/g,"-").toLowerCase();return a.a.createElement(ws,{className:"dot ".concat(r," year-").concat(e.year),key:"point-".concat(n),stroke:t.state.active===r?"#333":"rgba(0,0,0,0.3)",strokeWidth:t.state.active===r?2:1,fill:"2018"===e.year?"#22C8A3":"#4C81DB",left:f(o(e)),top:l(g(e)),style:{cursor:"pointer"},opacity:t.state[e.year]&&0===t.state.active.length||t.state.active===r?1:.2,size:100,onMouseEnter:function(){return function(n){var a=Xg(n.target.ownerSVGElement,n);t.props.showTooltip({tooltipLeft:a.x,tooltipTop:a.y,tooltipData:e}),t.onCircleHoverIn(r)}},onTouchStart:function(){return function(n){var a=Xg(n.target.ownerSVGElement,n);t.props.showTooltip({tooltipLeft:a.x,tooltipTop:a.y,tooltipData:e}),t.onCircleHoverIn(r)}},onMouseLeave:function(){return function(e){t.props.hideTooltip(),t.onCircleHoverOut()}}})}),a.a.createElement(Zs,{scale:l,label:"Character of Internet Governance",stroke:"rgba(0,0,0,0.15)",hideTicks:!0,tickLabelProps:function(){return{fontFamily:"Circular",fontSize:"12px",textAnchor:"end",fill:"#333"}},labelProps:{x:-50,y:-10,transform:"none",textAnchor:"start",fill:"#333",fontSize:"14px",fontWeight:"bold"}}),a.a.createElement(Us,{scale:f,top:u,label:"Internet Content Openness",stroke:"rgba(0,0,0,0.15)",hideTicks:!0,tickLabelProps:function(){return{fontFamily:"Circular",fontSize:"12px",dy:"1.5em",fill:"#333",textAnchor:"middle"}},labelProps:{transform:"translate(".concat(C/2,", 35)"),textAnchor:"end",fill:"#333",fontSize:"14px",fontWeight:"bold"}}))),t.props.tooltipOpen&&a.a.createElement(Bg,{left:r-250,top:250,style:{padding:"1rem",borderRadius:0,boxShadow:"0 2px 5px 0 rgba(0, 0, 0, 0.15), 0 2px 10px 0 rgba(0, 0, 0, 0.1)",color:"#333333"}},a.a.createElement("h4",{style:{marginTop:0,marginBottom:"0.5rem",fontSize:"1rem"}},t.props.tooltipData.country),a.a.createElement("div",{style:{borderTop:"1px solid #ededed",borderBottom:"1px solid #ededed",paddingBottom:"0.5rem",marginBottom:"0.5rem",paddingTop:"0.5rem",marginTop:"0.5rem",fontSize:"14px",display:"flex",justifyContent:"space-between",alignItems:"center"}},a.a.createElement("div",null,a.a.createElement("div",{style:{paddingBottom:"0.5rem"}},"Character (2018):"," ",a.a.createElement("strong",null,LC(".2")(n.filter(function(e){return e.country===t.props.tooltipData.country&&"2018"===e.year})[0].character))),a.a.createElement("div",null,"Character (2014):"," ",a.a.createElement("strong",null,LC(".2")(n.filter(function(e){return e.country===t.props.tooltipData.country&&"2014"===e.year})[0].character)))),a.a.createElement("div",{style:{paddingLeft:"0.5rem",display:"flex",alignItems:"center"}},LC("0.2")(n.filter(function(e){return e.country===t.props.tooltipData.country&&"2018"===e.year})[0].character)-LC("0.2")(n.filter(function(e){return e.country===t.props.tooltipData.country&&"2014"===e.year})[0].character)<0?a.a.createElement(Qs,null):LC("0.2")(n.filter(function(e){return e.country===t.props.tooltipData.country&&"2018"===e.year})[0].character)-LC("0.2")(n.filter(function(e){return e.country===t.props.tooltipData.country&&"2014"===e.year})[0].character)>0?a.a.createElement(Xs,null):null)),a.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"0.5rem",fontSize:"14px"}},a.a.createElement("div",null,a.a.createElement("div",{style:{paddingBottom:"0.5rem"}},"Content (2018):"," ",a.a.createElement("strong",null,LC(".2")(n.filter(function(e){return e.country===t.props.tooltipData.country&&"2018"===e.year})[0].content))),a.a.createElement("div",null,"Content (2014):"," ",a.a.createElement("strong",null,LC(".2")(n.filter(function(e){return e.country===t.props.tooltipData.country&&"2014"===e.year})[0].content)))),a.a.createElement("div",{style:{paddingLeft:"0.5rem",display:"flex",alignItems:"center"}},LC("0.2")(n.filter(function(e){return e.country===t.props.tooltipData.country&&"2018"===e.year})[0].content)-LC("0.2")(n.filter(function(e){return e.country===t.props.tooltipData.country&&"2014"===e.year})[0].content)<0?a.a.createElement(Qs,null):a.a.createElement(Xs,null)))))}))}}]),e}()),$s=[],tu=null,eu={viz__app:function(t){ReactDOM.render(React.createElement(kc,{data:tu.map,title:tu.meta.filter(function(t){return"map"===t.chart})[0].title,description:tu.meta.filter(function(t){return"map"===t.chart})[0].description}),t)},viz__scatter:function(t){ReactDOM.render(React.createElement(Js,{data:tu.scatter,x:function(t){return t.character},y:function(t){return t.content},title:tu.meta.filter(function(t){return"scatter"===t.chart})[0].title}),t)}};fetch("https://na-data-projects.s3.amazonaws.com/data/cs/swing_states_2.json").then(function(t){return t.json()}).then(function(t){tu=t;for(var e=0;e<$s.length;e++)$s[e]()}),window.renderDataViz=function(t){var e=t.getAttribute("id"),n=eu[e];n&&(tu?n(t):$s.push(function(){return n(t)}))}}]);