UNPKG

cl-react-graph

Version:
1 lines 364 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("cl-react-graph",["react","react-dom"],e):"object"==typeof exports?exports["cl-react-graph"]=e(require("react"),require("react-dom")):t["cl-react-graph"]=e(t.React,t.ReactDOM)}(window,(function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return 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 i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));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=137)}([function(e,n){e.exports=t},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=new Date,i=new Date;function a(t,e,n,o){function u(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return u.floor=function(e){return t(e=new Date(+e)),e},u.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},u.round=function(t){var e=u(t),n=u.ceil(t);return t-e<n-t?e:n},u.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},u.range=function(n,r,i){var a,o=[];if(n=u.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return o;do{o.push(a=new Date(+n)),e(n,i),t(n)}while(a<n&&n<r);return o},u.filter=function(n){return a((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&&(u.count=function(e,a){return r.setTime(+e),i.setTime(+a),t(r),t(i),Math.floor(n(r,i))},u.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?u.filter(o?function(e){return o(e)%t==0}:function(e){return u.count(0,e)%t==0}):u:null}),u}},function(t,e,n){"use strict";n.r(e),n.d(e,"interpolate",(function(){return A})),n.d(e,"interpolateArray",(function(){return v})),n.d(e,"interpolateBasis",(function(){return a})),n.d(e,"interpolateBasisClosed",(function(){return o})),n.d(e,"interpolateDate",(function(){return g})),n.d(e,"interpolateDiscrete",(function(){return k})),n.d(e,"interpolateHue",(function(){return E})),n.d(e,"interpolateNumber",(function(){return y})),n.d(e,"interpolateObject",(function(){return m})),n.d(e,"interpolateRound",(function(){return T})),n.d(e,"interpolateString",(function(){return S})),n.d(e,"interpolateTransformCss",(function(){return D})),n.d(e,"interpolateTransformSvg",(function(){return I})),n.d(e,"interpolateZoom",(function(){return z})),n.d(e,"interpolateRgb",(function(){return d})),n.d(e,"interpolateRgbBasis",(function(){return p})),n.d(e,"interpolateRgbBasisClosed",(function(){return b})),n.d(e,"interpolateHsl",(function(){return V})),n.d(e,"interpolateHslLong",(function(){return U})),n.d(e,"interpolateLab",(function(){return q})),n.d(e,"interpolateHcl",(function(){return G})),n.d(e,"interpolateHclLong",(function(){return Y})),n.d(e,"interpolateCubehelix",(function(){return X})),n.d(e,"interpolateCubehelixLong",(function(){return K})),n.d(e,"piecewise",(function(){return Q})),n.d(e,"quantize",(function(){return J}));var r=n(6);function i(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}var a=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],o=t[r+1],u=r>0?t[r-1]:2*a-o,c=r<e-1?t[r+2]:2*o-a;return i((n-r/e)*e,u,a,o,c)}},o=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],o=t[r%e],u=t[(r+1)%e],c=t[(r+2)%e];return i((n-r/e)*e,a,o,u,c)}},u=function(t){return function(){return t}};function c(t,e){return function(n){return t+n*e}}function f(t,e){var n=e-t;return n?c(t,n>180||n<-180?n-360*Math.round(n/360):n):u(isNaN(t)?e:t)}function l(t){return 1==(t=+t)?s: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):u(isNaN(e)?n:e)}}function s(t,e){var n=e-t;return n?c(t,n):u(isNaN(t)?e:t)}var d=function t(e){var n=l(e);function i(t,e){var i=n((t=Object(r.g)(t)).r,(e=Object(r.g)(e)).r),a=n(t.g,e.g),o=n(t.b,e.b),u=s(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=a(e),t.b=o(e),t.opacity=u(e),t+""}}return i.gamma=t,i}(1);function h(t){return function(e){var n,i,a=e.length,o=new Array(a),u=new Array(a),c=new Array(a);for(n=0;n<a;++n)i=Object(r.g)(e[n]),o[n]=i.r||0,u[n]=i.g||0,c[n]=i.b||0;return o=t(o),u=t(u),c=t(c),i.opacity=1,function(t){return i.r=o(t),i.g=u(t),i.b=c(t),i+""}}}var p=h(a),b=h(o),v=function(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(n=0;n<i;++n)a[n]=A(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=a[n](t);return o}},g=function(t,e){var n=new Date;return e-=t=+t,function(r){return n.setTime(t+e*r),n}},y=function(t,e){return e-=t=+t,function(n){return t+e*n}},m=function(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=A(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},_=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,x=new RegExp(_.source,"g");var w,O,M,j,S=function(t,e){var n,r,i,a=_.lastIndex=x.lastIndex=0,o=-1,u=[],c=[];for(t+="",e+="";(n=_.exec(t))&&(r=x.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,c.push({i:o,x:y(n,r)})),a=x.lastIndex;return a<e.length&&(i=e.slice(a),u[o]?u[o]+=i:u[++o]=i),u.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)u[(n=c[r]).i]=n.x(t);return u.join("")})},A=function(t,e){var n,i=typeof e;return null==e||"boolean"===i?u(e):("number"===i?y:"string"===i?(n=Object(r.e)(e))?(e=n,d):S:e instanceof r.e?d:e instanceof Date?g:Array.isArray(e)?v:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?m:y)(t,e)},k=function(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}},E=function(t,e){var n=f(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}},T=function(t,e){return e-=t=+t,function(n){return Math.round(t+e*n)}},C=180/Math.PI,P={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},N=function(t,e,n,r,i,a){var o,u,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,c/=u),t*r<e*n&&(t=-t,e=-e,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*C,skewX:Math.atan(c)*C,scaleX:o,scaleY:u}};function L(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var u=[],c=[];return a=t(a),o=t(o),function(t,r,i,a,o,u){if(t!==i||r!==a){var c=o.push("translate(",null,e,null,n);u.push({i:c-4,x:y(t,i)},{i:c-2,x:y(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,u,c),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:y(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,u,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:y(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,u,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var u=a.push(i(a)+"scale(",null,",",null,")");o.push({i:u-4,x:y(t,n)},{i:u-2,x:y(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,u,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n<r;)u[(e=c[n]).i]=e.x(t);return u.join("")}}}var D=L((function(t){return"none"===t?P:(w||(w=document.createElement("DIV"),O=document.documentElement,M=document.defaultView),w.style.transform=t,t=M.getComputedStyle(O.appendChild(w),null).getPropertyValue("transform"),O.removeChild(w),t=t.slice(7,-1).split(","),N(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),I=L((function(t){return null==t?P:(j||(j=document.createElementNS("http://www.w3.org/2000/svg","g")),j.setAttribute("transform",t),(t=j.transform.baseVal.consolidate())?(t=t.matrix,N(t.a,t.b,t.c,t.d,t.e,t.f)):P)}),", ",")",")"),R=Math.SQRT2;function F(t){return((t=Math.exp(t))+1/t)/2}var z=function(t,e){var n,r,i=t[0],a=t[1],o=t[2],u=e[0],c=e[1],f=e[2],l=u-i,s=c-a,d=l*l+s*s;if(d<1e-12)r=Math.log(f/o)/R,n=function(t){return[i+t*l,a+t*s,o*Math.exp(R*t*r)]};else{var h=Math.sqrt(d),p=(f*f-o*o+4*d)/(2*o*2*h),b=(f*f-o*o-4*d)/(2*f*2*h),v=Math.log(Math.sqrt(p*p+1)-p),g=Math.log(Math.sqrt(b*b+1)-b);r=(g-v)/R,n=function(t){var e,n=t*r,u=F(v),c=o/(2*h)*(u*(e=R*n+v,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(v));return[i+c*l,a+c*s,o*u/F(R*n+v)]}}return n.duration=1e3*r,n};function B(t){return function(e,n){var i=t((e=Object(r.f)(e)).h,(n=Object(r.f)(n)).h),a=s(e.s,n.s),o=s(e.l,n.l),u=s(e.opacity,n.opacity);return function(t){return e.h=i(t),e.s=a(t),e.l=o(t),e.opacity=u(t),e+""}}}var V=B(f),U=B(s),H=n(40);function q(t,e){var n=s((t=Object(H.a)(t)).l,(e=Object(H.a)(e)).l),r=s(t.a,e.a),i=s(t.b,e.b),a=s(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=a(e),t+""}}function W(t){return function(e,n){var r=t((e=Object(H.c)(e)).h,(n=Object(H.c)(n)).h),i=s(e.c,n.c),a=s(e.l,n.l),o=s(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}var G=W(f),Y=W(s),Z=n(93);function $(t){return function e(n){function r(e,r){var i=t((e=Object(Z.a)(e)).h,(r=Object(Z.a)(r)).h),a=s(e.s,r.s),o=s(e.l,r.l),u=s(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=a(t),e.l=o(Math.pow(t,n)),e.opacity=u(t),e+""}}return n=+n,r.gamma=e,r}(1)}var X=$(f),K=$(s);function Q(t,e){for(var n=0,r=e.length-1,i=e[0],a=new Array(r<0?0:r);n<r;)a[n]=t(i,i=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return a[e](t-e)}}var J=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}},function(t,e,n){"use strict";e.a=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}},function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return o})),n.d(e,"e",(function(){return u}));var r=1e3,i=6e4,a=36e5,o=864e5,u=6048e5},function(t,e,n){"use strict";n.r(e),n.d(e,"bisect",(function(){return r.d})),n.d(e,"bisectRight",(function(){return r.c})),n.d(e,"bisectLeft",(function(){return r.b})),n.d(e,"bisectCenter",(function(){return r.a})),n.d(e,"ascending",(function(){return i.a})),n.d(e,"bisector",(function(){return a.a})),n.d(e,"count",(function(){return o})),n.d(e,"cross",(function(){return l})),n.d(e,"cumsum",(function(){return s})),n.d(e,"descending",(function(){return d})),n.d(e,"deviation",(function(){return p})),n.d(e,"extent",(function(){return b})),n.d(e,"fsum",(function(){return g})),n.d(e,"Adder",(function(){return v})),n.d(e,"group",(function(){return j})),n.d(e,"groups",(function(){return S})),n.d(e,"index",(function(){return E})),n.d(e,"indexes",(function(){return T})),n.d(e,"rollup",(function(){return A})),n.d(e,"rollups",(function(){return k})),n.d(e,"groupSort",(function(){return D})),n.d(e,"bin",(function(){return U})),n.d(e,"histogram",(function(){return U})),n.d(e,"thresholdFreedmanDiaconis",(function(){return q})),n.d(e,"thresholdScott",(function(){return W})),n.d(e,"thresholdSturges",(function(){return V})),n.d(e,"max",(function(){return G.a})),n.d(e,"maxIndex",(function(){return Y})),n.d(e,"mean",(function(){return Z})),n.d(e,"median",(function(){return $})),n.d(e,"merge",(function(){return X})),n.d(e,"min",(function(){return K.a})),n.d(e,"minIndex",(function(){return Q})),n.d(e,"nice",(function(){return B})),n.d(e,"pairs",(function(){return J})),n.d(e,"permute",(function(){return N})),n.d(e,"quantile",(function(){return H.a})),n.d(e,"quantileSorted",(function(){return H.b})),n.d(e,"quickselect",(function(){return et.a})),n.d(e,"range",(function(){return nt.a})),n.d(e,"least",(function(){return rt})),n.d(e,"leastIndex",(function(){return it})),n.d(e,"greatest",(function(){return at})),n.d(e,"greatestIndex",(function(){return ot})),n.d(e,"scan",(function(){return ut})),n.d(e,"shuffle",(function(){return ct})),n.d(e,"shuffler",(function(){return ft})),n.d(e,"sum",(function(){return lt})),n.d(e,"ticks",(function(){return z.a})),n.d(e,"tickIncrement",(function(){return z.b})),n.d(e,"tickStep",(function(){return z.c})),n.d(e,"transpose",(function(){return st})),n.d(e,"variance",(function(){return h})),n.d(e,"zip",(function(){return ht})),n.d(e,"every",(function(){return pt})),n.d(e,"some",(function(){return bt})),n.d(e,"filter",(function(){return vt})),n.d(e,"map",(function(){return gt})),n.d(e,"reduce",(function(){return yt})),n.d(e,"reverse",(function(){return mt})),n.d(e,"sort",(function(){return L})),n.d(e,"difference",(function(){return _t})),n.d(e,"disjoint",(function(){return xt})),n.d(e,"intersection",(function(){return Ot})),n.d(e,"subset",(function(){return jt})),n.d(e,"superset",(function(){return Mt})),n.d(e,"union",(function(){return St})),n.d(e,"InternMap",(function(){return y})),n.d(e,"InternSet",(function(){return m}));var r=n(27),i=n(3),a=n(47);function o(t,e){let n=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&++n;else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(i=+i)>=i&&++n}return n}function u(t){return 0|t.length}function c(t){return!(t>0)}function f(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function l(...t){const e="function"==typeof t[t.length-1]&&function(t){return e=>t(...e)}(t.pop()),n=(t=t.map(f)).map(u),r=t.length-1,i=new Array(r+1).fill(0),a=[];if(r<0||n.some(c))return a;for(;;){a.push(i.map((e,n)=>t[n][e]));let o=r;for(;++i[o]===n[o];){if(0===o)return e?a.map(e):a;i[o--]=0}}}function s(t,e){var n=0,r=0;return Float64Array.from(t,void 0===e?t=>n+=+t||0:i=>n+=+e(i,r++,t)||0)}var d=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN};function h(t,e){let n,r=0,i=0,a=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(n=e-i,i+=n/++r,a+=n*(e-i));else{let o=-1;for(let u of t)null!=(u=e(u,++o,t))&&(u=+u)>=u&&(n=u-i,i+=n/++r,a+=n*(u-i))}if(r>1)return a/(r-1)}function p(t,e){const n=h(t,e);return n?Math.sqrt(n):n}var b=function(t,e){let n,r;if(void 0===e)for(const e of t)null!=e&&(void 0===n?e>=e&&(n=r=e):(n>e&&(n=e),r<e&&(r=e)));else{let i=-1;for(let a of t)null!=(a=e(a,++i,t))&&(void 0===n?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]};class v{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const e=this._partials;let n=0;for(let r=0;r<this._n&&r<32;r++){const i=e[r],a=t+i,o=Math.abs(t)<Math.abs(i)?t-(a-i):i-(a-t);o&&(e[n++]=o),t=a}return e[n]=t,this._n=n+1,this}valueOf(){const t=this._partials;let e,n,r,i=this._n,a=0;if(i>0){for(a=t[--i];i>0&&(e=a,n=t[--i],a=e+n,r=n-(a-e),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(n=2*r,e=a+n,n==e-a&&(a=e))}return a}}var g=function(t,e){const n=new v;if(void 0===e)for(let e of t)(e=+e)&&n.add(e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&n.add(i)}return+n};class y extends Map{constructor(t=[],e=O){super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}});for(const[e,n]of t)this.set(e,n)}get(t){return super.get(_(this,t))}has(t){return super.has(_(this,t))}set(t,e){return super.set(x(this,t),e)}delete(t){return super.delete(w(this,t))}}class m extends Set{constructor(t=[],e=O){super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}});for(const e of t)this.add(e)}has(t){return super.has(_(this,t))}add(t){return super.add(x(this,t))}delete(t){return super.delete(w(this,t))}}function _({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function x({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function w({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(n),t.delete(r)),n}function O(t){return null!==t&&"object"==typeof t?t.valueOf():t}var M=function(t){return t};function j(t,...e){return P(t,M,M,e)}function S(t,...e){return P(t,Array.from,M,e)}function A(t,e,...n){return P(t,M,e,n)}function k(t,e,...n){return P(t,Array.from,e,n)}function E(t,...e){return P(t,M,C,e)}function T(t,...e){return P(t,Array.from,C,e)}function C(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function P(t,e,n,r){return function t(i,a){if(a>=r.length)return n(i);const o=new y,u=r[a++];let c=-1;for(const t of i){const e=u(t,++c,i),n=o.get(e);n?n.push(t):o.set(e,[t])}for(const[e,n]of o)o.set(e,t(n,a));return e(o)}(t,0)}var N=function(t,e){return Array.from(e,e=>t[e])};function L(t,...e){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[n=i.a]=e;if(1===n.length||e.length>1){const r=Uint32Array.from(t,(t,e)=>e);return e.length>1?(e=e.map(e=>t.map(e)),r.sort((t,n)=>{for(const r of e){const e=Object(i.a)(r[t],r[n]);if(e)return e}})):(n=t.map(n),r.sort((t,e)=>Object(i.a)(n[t],n[e]))),N(t,r)}return t.sort(n)}function D(t,e,n){return(1===e.length?L(A(t,e,n),([t,e],[n,r])=>Object(i.a)(e,r)||Object(i.a)(t,n)):L(j(t,n),([t,n],[r,a])=>e(n,a)||Object(i.a)(t,r))).map(([t])=>t)}var I=Array.prototype,R=I.slice,F=(I.map,function(t){return function(){return t}}),z=n(17);function B(t,e,n){let r;for(;;){const i=Object(z.b)(t,e,n);if(i===r||0===i||!isFinite(i))return[t,e];i>0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}var V=function(t){return Math.ceil(Math.log(o(t))/Math.LN2)+1},U=function(){var t=M,e=b,n=V;function i(i){Array.isArray(i)||(i=Array.from(i));var a,o,u=i.length,c=new Array(u);for(a=0;a<u;++a)c[a]=t(i[a],a,i);var f=e(c),l=f[0],s=f[1],d=n(c,l,s);if(!Array.isArray(d)){const t=s,n=+d;if(e===b&&([l,s]=B(l,s,n)),(d=Object(z.a)(l,s,n))[d.length-1]>=s)if(t>=s&&e===b){const t=Object(z.b)(l,s,n);isFinite(t)&&(t>0?s=(Math.floor(s/t)+1)*t:t<0&&(s=(Math.ceil(s*-t)+1)/-t))}else d.pop()}for(var h=d.length;d[0]<=l;)d.shift(),--h;for(;d[h-1]>s;)d.pop(),--h;var p,v=new Array(h+1);for(a=0;a<=h;++a)(p=v[a]=[]).x0=a>0?d[a-1]:l,p.x1=a<h?d[a]:s;for(a=0;a<u;++a)l<=(o=c[a])&&o<=s&&v[Object(r.d)(d,o,0,h)].push(i[a]);return v}return i.value=function(e){return arguments.length?(t="function"==typeof e?e:F(e),i):t},i.domain=function(t){return arguments.length?(e="function"==typeof t?t:F([t[0],t[1]]),i):e},i.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?F(R.call(t)):F(t),i):n},i},H=n(20),q=function(t,e,n){return Math.ceil((n-e)/(2*(Object(H.a)(t,.75)-Object(H.a)(t,.25))*Math.pow(o(t),-1/3)))},W=function(t,e,n){return Math.ceil((n-e)/(3.5*p(t)*Math.pow(o(t),-1/3)))},G=n(48);function Y(t,e){let n,r=-1,i=-1;if(void 0===e)for(const e of t)++i,null!=e&&(n<e||void 0===n&&e>=e)&&(n=e,r=i);else for(let a of t)null!=(a=e(a,++i,t))&&(n<a||void 0===n&&a>=a)&&(n=a,r=i);return r}function Z(t,e){let n=0,r=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(++n,r+=e);else{let i=-1;for(let a of t)null!=(a=e(a,++i,t))&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}var $=function(t,e){return Object(H.a)(t,.5,e)};function X(t){return Array.from(function*(t){for(const e of t)yield*e}(t))}var K=n(29);function Q(t,e){let n,r=-1,i=-1;if(void 0===e)for(const e of t)++i,null!=e&&(n>e||void 0===n&&e>=e)&&(n=e,r=i);else for(let a of t)null!=(a=e(a,++i,t))&&(n>a||void 0===n&&a>=a)&&(n=a,r=i);return r}function J(t,e=tt){const n=[];let r,i=!1;for(const a of t)i&&n.push(e(r,a)),r=a,i=!0;return n}function tt(t,e){return[t,e]}var et=n(68),nt=n(92);function rt(t,e=i.a){let n,r=!1;if(1===e.length){let a;for(const o of t){const t=e(o);(r?Object(i.a)(t,a)<0:0===Object(i.a)(t,t))&&(n=o,a=t,r=!0)}}else for(const i of t)(r?e(i,n)<0:0===e(i,i))&&(n=i,r=!0);return n}function it(t,e=i.a){if(1===e.length)return Q(t,e);let n,r=-1,a=-1;for(const i of t)++a,(r<0?0===e(i,i):e(i,n)<0)&&(n=i,r=a);return r}function at(t,e=i.a){let n,r=!1;if(1===e.length){let a;for(const o of t){const t=e(o);(r?Object(i.a)(t,a)>0:0===Object(i.a)(t,t))&&(n=o,a=t,r=!0)}}else for(const i of t)(r?e(i,n)>0:0===e(i,i))&&(n=i,r=!0);return n}function ot(t,e=i.a){if(1===e.length)return Y(t,e);let n,r=-1,a=-1;for(const i of t)++a,(r<0?0===e(i,i):e(i,n)>0)&&(n=i,r=a);return r}function ut(t,e){const n=it(t,e);return n<0?void 0:n}var ct=ft(Math.random);function ft(t){return function(e,n=0,r=e.length){let i=r-(n=+n);for(;i;){const r=t()*i--|0,a=e[i+n];e[i+n]=e[r+n],e[r+n]=a}return e}}function lt(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}var st=function(t){if(!(i=t.length))return[];for(var e=-1,n=Object(K.a)(t,dt),r=new Array(n);++e<n;)for(var i,a=-1,o=r[e]=new Array(i);++a<i;)o[a]=t[a][e];return r};function dt(t){return t.length}var ht=function(){return st(arguments)};function pt(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");let n=-1;for(const r of t)if(!e(r,++n,t))return!1;return!0}function bt(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");let n=-1;for(const r of t)if(e(r,++n,t))return!0;return!1}function vt(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");const n=[];let r=-1;for(const i of t)e(i,++r,t)&&n.push(i);return n}function gt(t,e){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof e)throw new TypeError("mapper is not a function");return Array.from(t,(n,r)=>e(n,r,t))}function yt(t,e,n){if("function"!=typeof e)throw new TypeError("reducer is not a function");const r=t[Symbol.iterator]();let i,a,o=-1;if(arguments.length<3){if(({done:i,value:n}=r.next()),i)return;++o}for(;({done:i,value:a}=r.next()),!i;)n=e(n,a,++o,t);return n}function mt(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()}function _t(t,...e){t=new Set(t);for(const n of e)for(const e of n)t.delete(e);return t}function xt(t,e){const n=e[Symbol.iterator](),r=new Set;for(const e of t){if(r.has(e))return!1;let t,i;for(;({value:t,done:i}=n.next())&&!i;){if(Object.is(e,t))return!1;r.add(t)}}return!0}function wt(t){return t instanceof Set?t:new Set(t)}function Ot(t,...e){t=new Set(t),e=e.map(wt);t:for(const n of t)for(const r of e)if(!r.has(n)){t.delete(n);continue t}return t}function Mt(t,e){const n=t[Symbol.iterator](),r=new Set;for(const t of e){if(r.has(t))continue;let e,i;for(;({value:e,done:i}=n.next());){if(i)return!1;if(r.add(e),Object.is(t,e))break}}return!0}function jt(t,e){return Mt(e,t)}function St(...t){const e=new Set;for(const n of t)for(const t of n)e.add(t);return e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"e",(function(){return _})),n.d(e,"h",(function(){return O})),n.d(e,"g",(function(){return M})),n.d(e,"b",(function(){return j})),n.d(e,"f",(function(){return C}));var r=n(8);function i(){}var a=.7,o=1/a,u="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",f="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,s=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),d=new RegExp("^rgb\\("+[f,f,f]+"\\)$"),h=new RegExp("^rgba\\("+[u,u,u,c]+"\\)$"),p=new RegExp("^rgba\\("+[f,f,f,c]+"\\)$"),b=new RegExp("^hsl\\("+[c,f,f]+"\\)$"),v=new RegExp("^hsla\\("+[c,f,f,c]+"\\)$"),g={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 y(){return this.rgb().formatHex()}function m(){return this.rgb().formatRgb()}function _(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=l.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?x(e):3===n?new j(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?w(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?w(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=s.exec(t))?new j(e[1],e[2],e[3],1):(e=d.exec(t))?new j(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=h.exec(t))?w(e[1],e[2],e[3],e[4]):(e=p.exec(t))?w(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=b.exec(t))?E(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?E(e[1],e[2]/100,e[3]/100,e[4]):g.hasOwnProperty(t)?x(g[t]):"transparent"===t?new j(NaN,NaN,NaN,0):null}function x(t){return new j(t>>16&255,t>>8&255,255&t,1)}function w(t,e,n,r){return r<=0&&(t=e=n=NaN),new j(t,e,n,r)}function O(t){return t instanceof i||(t=_(t)),t?new j((t=t.rgb()).r,t.g,t.b,t.opacity):new j}function M(t,e,n,r){return 1===arguments.length?O(t):new j(t,e,n,null==r?1:r)}function j(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function S(){return"#"+k(this.r)+k(this.g)+k(this.b)}function A(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function k(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function E(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new P(t,e,n,r)}function T(t){if(t instanceof P)return new P(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=_(t)),!t)return new P;if(t instanceof P)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),o=Math.max(e,n,r),u=NaN,c=o-a,f=(o+a)/2;return c?(u=e===o?(n-r)/c+6*(n<r):n===o?(r-e)/c+2:(e-n)/c+4,c/=f<.5?o+a:2-o-a,u*=60):c=f>0&&f<1?0:u,new P(u,c,f,t.opacity)}function C(t,e,n,r){return 1===arguments.length?T(t):new P(t,e,n,null==r?1:r)}function P(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function N(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Object(r.a)(i,_,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return T(this).formatHsl()},formatRgb:m,toString:m}),Object(r.a)(j,M,Object(r.b)(i,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new j(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new j(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:S,formatHex:S,formatRgb:A,toString:A})),Object(r.a)(P,C,Object(r.b)(i,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new P(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new P(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,i=2*n-r;return new j(N(t>=240?t-240:t+120,i,r),N(t,i,r),N(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return o})),n.d(e,"creator",(function(){return r.a})),n.d(e,"local",(function(){return c})),n.d(e,"matcher",(function(){return l.a})),n.d(e,"mouse",(function(){return p})),n.d(e,"namespace",(function(){return b.a})),n.d(e,"namespaces",(function(){return v.a})),n.d(e,"clientPoint",(function(){return h})),n.d(e,"select",(function(){return a})),n.d(e,"selectAll",(function(){return g})),n.d(e,"selection",(function(){return i.b})),n.d(e,"selector",(function(){return y.a})),n.d(e,"selectorAll",(function(){return m.a})),n.d(e,"style",(function(){return _.b})),n.d(e,"touch",(function(){return x})),n.d(e,"touches",(function(){return w})),n.d(e,"window",(function(){return O.a})),n.d(e,"event",(function(){return s.c})),n.d(e,"customEvent",(function(){return s.a}));var r=n(21),i=n(16),a=function(t){return"string"==typeof t?new i.a([[document.querySelector(t)]],[document.documentElement]):new i.a([[t]],i.c)},o=function(t){return a(Object(r.a)(t).call(document.documentElement))},u=0;function c(){return new f}function f(){this._="@"+(++u).toString(36)}f.prototype=c.prototype={constructor:f,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 l=n(70),s=n(28),d=function(){for(var t,e=s.c;t=e.sourceEvent;)e=t;return e},h=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 i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]},p=function(t){var e=d();return e.changedTouches&&(e=e.changedTouches[0]),h(t,e)},b=n(35),v=n(22),g=function(t){return"string"==typeof t?new i.a([document.querySelectorAll(t)],[document.documentElement]):new i.a([null==t?[]:t],i.c)},y=n(36),m=n(71),_=n(72),x=function(t,e,n){arguments.length<3&&(n=e,e=d().changedTouches);for(var r,i=0,a=e?e.length:0;i<a;++i)if((r=e[i]).identifier===n)return h(t,r);return null},w=function(t,e){null==e&&(e=d().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n<r;++n)i[n]=h(t,e[n]);return i},O=n(37)},function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}n.d(e,"b",(function(){return r})),e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.EColorManipulations=e.EGroupedBarLayout=void 0;var u=n(5),c=n(66),f=o(n(0)),l=n(11),s=o(n(101)),d=o(n(18)),h=o(n(53)),p=o(n(33)),b=a(n(24));!function(t){t[t.GROUPED=0]="GROUPED",t[t.STACKED=1]="STACKED",t[t.OVERLAID=2]="OVERLAID"}(e.EGroupedBarLayout||(e.EGroupedBarLayout={})),function(t){t.negate="negate",t.lighten="lighten",t.darken="darken",t.saturate="saturate",t.desaturate="desaturate",t.whiten="whiten",t.blacken="blacken",t.fade="fade",t.opaquer="opaquer",t.rotate="rotate"}(e.EColorManipulations||(e.EColorManipulations={}));e.default=function(t){var e,n,r=t.animation,i=t.axisLabelFormat,a=t.colorScheme,o=void 0===a?c.schemeSet3:a,v=t.data,g=t.direction,y=void 0===g?l.EChartDirection.VERTICAL:g,m=t.id,_=void 0===m?"":m,x=t.grid,w=t.height,O=t.hoverColorScheme,M=t.LabelComponent,j=t.showLabels,S=void 0===j?[]:j,A=t.tip,k=t.visible,E=t.width,T=t.xAxisHeight,C=t.xAxisLabelOrientation,P=void 0===C?b.ELabelOrientation.HORIZONTAL:C,N=t.yAxisWidth,L=t.title,D=t.description,I=t.bars;if(N||(N=y===l.EChartDirection.VERTICAL?40:100),T||(T=y===l.EChartDirection.VERTICAL?100:40),0===E)return null;var R=v.bins.reduce((function(t,e){return t.concat(Array.isArray(e)?e:[e])}),[]),F=u.extent(R),z=u.extent(v.counts.reduce((function(t,e){return t.concat(e.data)}),[]));return f.default.createElement(d.default,{width:E+30,title:L,description:D,id:_,height:w},x&&f.default.createElement(h.default,{left:N,height:w-T,svgProps:Object.assign({},x.x.style),lines:{vertical:x.y.ticks,horizontal:x.x.ticks},width:E-N}),f.default.createElement(s.default,{colorScheme:o,hoverColorScheme:O,left:N,height:w-T,width:E-N,values:v.counts,config:r,id:_,bins:v.bins,showLabels:S,direction:y,LabelComponent:M,domain:z,continuousDomain:F,tip:A,visible:k,rx:null!==(e=null==I?void 0:I.rx)&&void 0!==e?e:0,ry:null!==(n=null==I?void 0:I.ry)&&void 0!==n?n:0}),f.default.createElement(b.default,{width:N,height:w-T,labelFormat:i,scale:"linear",domain:y===l.EChartDirection.HORIZONTAL?F:z,values:y===l.EChartDirection.HORIZONTAL?[F[0],1*(F[1]-F[0])/3,2*(F[1]-F[0])/3,F[1]]:z}),f.default.createElement(p.default,{width:E-N,height:T,top:w-T,left:N,labelFormat:i,labelOrientation:P,scale:"linear",domain:y===l.EChartDirection.HORIZONTAL?z:F,values:y===l.EChartDirection.HORIZONTAL?z:[F[0],1*(F[1]-F[0])/3,2*(F[1]-F[0])/3,F[1]]}))}},function(t,e,n){"use strict";n.r(e);var r=n(6);n.d(e,"color",(function(){return r.e})),n.d(e,"rgb",(function(){return r.g})),n.d(e,"hsl",(function(){return r.f}));var i=n(40);n.d(e,"lab",(function(){return i.a})),n.d(e,"hcl",(function(){return i.c})),n.d(e,"lch",(function(){return i.d})),n.d(e,"gray",(function(){return i.b}));var a=n(93);n.d(e,"cubehelix",(function(){return a.a}))},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.EChartDirection=void 0;var u,c=n(66),f=o(n(0)),l=a(n(23)),s=o(n(18)),d=o(n(53)),h=o(n(33)),p=a(n(24)),b=n(9),v=n(54);!function(t){t.HORIZONTAL="HORIZONTAL",t.VERTICAL="VERTICAL"}(u=e.EChartDirection||(e.EChartDirection={}));e.default=function(t){var e,n,r=t.animation,i=t.axisLabelFormat,a=t.colorScheme,o=void 0===a?c.schemeSet3:a,g=t.data,y=t.direction,m=void 0===y?u.VERTICAL:y,_=t.grid,x=t.id,w=void 0===x?"":x,O=t.groupLayout,M=void 0===O?b.EGroupedBarLayout.GROUPED:O,j=t.height,S=t.LabelComponent,A=t.padding,k=void 0===A?l.defaultPadding:A,E=t.showLabels,T=void 0===E?[]:E,C=t.tip,P=t.visible,N=t.width,L=t.xAxisHeight,D=t.xAxisLabelOrientation,I=void 0===D?p.ELabelOrientation.HORIZONTAL:D,R=t.yAxisWidth,F=t.bars;if(R||(R=m===u.VERTICAL?40:100),L||(L=m===u.VERTICAL?100:40),0===N)return null;var z=v.useHistogramDomain({groupLayout:M,bins:g.bins,values:g.counts});return f.default.createElement(s.default,{width:N+30,height:j,id:w},_&&f.default.createElement(d.default,{left:R,height:j-L,svgProps:Object.assign({},_.x.style),lines:{vertical:_.y.ticks,horizontal:_.x.ticks},width:N-R}),f.default.createElement(l.default,{bins:g.bins,colorScheme:o,config:r,direction:m,domain:z,groupLayout:M,height:j-L,LabelComponent:S,left:R,padding:k,showLabels:T,tip:C,values:g.counts,visible:P,width:N-R,rx:null!==(e=null==F?void 0:F.rx)&&void 0!==e?e:0,ry:null!==(n=null==F?void 0:F.ry)&&void 0!==n?n:0}),f.default.createElement(p.default,{width:R,height:j-L,labelFormat:i,scale:m===u.HORIZONTAL?"band":"linear",values:m===u.HORIZONTAL?g.bins:void 0,domain:m===u.HORIZONTAL?void 0:z,padding:k}),f.default.createElement(h.default,{width:N-R,height:L,top:j-L,padding:k,left:R,labelFormat:i,labelOrientation:I,scale:m===u.HORIZONTAL?"linear":"band",values:m===u.HORIZONTAL?void 0:g.bins,domain:m===u.HORIZONTAL?z:void 0}))}},function(t,e,n){var r=n(104),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();t.exports=a},function(t,e,n){"use strict";n.r(e),n.d(e,"scaleBand",(function(){return c})),n.d(e,"scalePoint",(function(){return l})),n.d(e,"scaleIdentity",(function(){return C})),n.d(e,"scaleLinear",(function(){return T})),n.d(e,"scaleLog",(function(){return B})),n.d(e,"scaleSymlog",(function(){return q})),n.d(e,"scaleOrdinal",(function(){return u})),n.d(e,"scaleImplicit",(function(){return o})),n.d(e,"scalePow",(function(){return $})),n.d(e,"scaleSqrt",(function(){return X})),n.d(e,"scaleRadial",(function(){return J})),n.d(e,"scaleQuantile",(function(){return nt})),n.d(e,"scaleQuantize",(function(){return rt})),n.d(e,"scaleThreshold",(function(){return it})),n.d(e,"scaleTime",(function(){return jt})),n.d(e,"scaleUtc",(function(){return Dt})),n.d(e,"scaleSequential",(function(){return Ft})),n.d(e,"scaleSequentialLog",(function(){return zt})),n.d(e,"scaleSequentialPow",(function(){return Vt})),n.d(e,"scaleSequentialSqrt",(function(){return Ut})),n.d(e,"scaleSequentialSymlog",(function(){return Bt})),n.d(e,"scaleSequentialQuantile",(function(){return Ht})),n.d(e,"scaleDiverging",(function(){return Wt})),n.d(e,"scaleDivergingLog",(function(){return Gt})),n.d(e,"scaleDivergingPow",(function(){return Zt})),n.d(e,"scaleDivergingSqrt",(function(){return $t})),n.d(e,"scaleDivergingSymlog",(function(){return Yt})),n.d(e,"tickFormat",(function(){return k}));var r=n(92);function i(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function a(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}const o=Symbol("implicit");function u(){var t=new Map,e=[],n=[],r=o;function a(i){var a=i+"",u=t.get(a);if(!u){if(r!==o)return r;t.set(a,u=e.push(i))}return n[(u-1)%n.length]}return a.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Map;for(const r of n){const n=r+"";t.has(n)||t.set(n,e.push(r))}return a},a.range=function(t){return arguments.length?(n=Array.from(t),a):n.slice()},a.unknown=function(t){return arguments.length?(r=t,a):r},a.copy=function(){return u(e,n).unknown(r)},i.apply(a,arguments),a}function c(){var t,e,n=u().unknown(void 0),a=n.domain,o=n.range,f=0,l=1,s=!1,d=0,h=0,p=.5;function b(){var n=a().length,i=l<f,u=i?l:f,c=i?f:l;t=(c-u)/Math.max(1,n-d+2*h),s&&(t=Math.floor(t)),u+=(c-u-t*(n-d))*p,e=t*(1-d),s&&(u=Math.round(u),e=Math.round(e));var b=Object(r.a)(n).map((function(e){return u+t*e}));return o(i?b.reverse():b)}return delete n.unknown,n.domain=function(t){return arguments.length?(a(t),b()):a()},n.range=function(t){return arguments.length?([f,l]=t,f=+f,l=+l,b()):[f,l]},n.rangeRound=function(t){return[f,l]=t,f=+f,l=+l,s=!0,b()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(s=!!t,b()):s},n.padding=function(t){return arguments.length?(d=Math.min(1,h=+t),b()):d},n.paddingInner=function(t){return arguments.length?(d=Math.min(1,t),b()):d},n.paddingOuter=function(t){return arguments.length?(h=+t,b()):h},n.align=function(t){return arguments.length?(p=Math.max(0,Math.min(1,t)),b()):p},n.copy=function(){return c(a(),[f,l]).round(s).paddingInner(d).paddingOuter(h).align(p)},i.apply(b(),arguments)}function f(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return f(e())},t}function l(){return f(c.apply(null,arguments).paddingInner(1))}var s=n(17),d=n(27),h=n(2);function p(t){return+t}var b=[0,1];function v(t){return t}function g(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function y(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i<r?(r=g(i,r),a=n(o,a)):(r=g(r,i),a=n(a,o)),function(t){return a(r(t))}}function m(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=g(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return function(e){var n=Object(d.d)(t,e,1,r)-1;return a[n](i[n](e))}}function _(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function x(){var t,e,n,r,i,a,o=b,u=b,c=h.interpolate,f=v;function l(){var t,e,n,c=Math.min(o.length,u.length);return f!==v&&(t=o[0],e=o[c-1],t>e&&(n=t,t=e,e=n),f=function(n){return Math.max(t,Math.min(e,n))}),r=c>2?m:y,i=a=null,s}function s(e){return isNaN(e=+e)?n:(i||(i=r(o.map(t),u,c)))(t(f(e)))}return s.invert=function(n){return f(e((a||(a=r(u,o.map(t),h.interpolateNumber)))(n)))},s.domain=function(t){return arguments.length?(o=Array.from(t,p),l()):o.slice()},s.range=function(t){return arguments.length?(u=Array.from(t),l()):u.slice()},s.rangeRound=function(t){return u=Array.from(t),c=h.interpolateRound,l()},s.clamp=function(t){return arguments.length?(f=!!t||v,l()):f!==v},s.interpolate=function(t){return arguments.length?(c=t,l()):c},s.unknown=function(t){return arguments.length?(n=t,s):n},function(n,r){return t=n,e=r,l()}}function w(){return x()(v,v)}var O=n(34),M=n(94),j=n(52),S=n(95),A=n(96);function k(t,e,n,r){var i,a=Object(s.c)(t,e,n);switch((r=Object(O.b)(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=Object(M.a)(a,o))||(r.precision=i),Object(j.c)(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Object(S.a)(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Object(A.a)(a))||(r.precision=i-2*("%"===r.type))}return Object(j.b)(r)}function E(t){var e=t.domain;return t.ticks=function(t){var n=e();return Object(s.a)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return k(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,a=e(),o=0,u=a.length-1,c=a[o],f=a[u],l=10;for(f<c&&(i=c,c=f,f=i,i=o,o=u,u=i);l-- >0;){if((i=Object(s.b)(c,f,n))===r)return a[o]=c,a[u]=f,e(a);if(i>0)c=Math.floor(c/i)*i,f=Math.ceil(f/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,f=Math.floor(f*i)/i}r=i}return t},t}function T(){var t=w();return t.copy=function(){return _(t,T())},i.apply(t,arguments),E(t)}function C(t){var e;function n(t){return isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,p),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return C(t).unknown(e)},t=arguments.length?Array.from(t,p):[0,1],E(n)}function P(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),t[r]=e.floor(a),t[i]=e.ceil(o),t}function N(t){return Math.log(t)}function L(t){return Math.exp(t)}function D(t){return-Math.log(-t)}function I(t){return-Math.exp(-t)}function R(t){return isFinite(t)?+("1e"+t):t<0?0:t}function F(t){return function(e){return-t(-e)}}function z(t){var e,n,r=t(N,L),i=r.domain,a=10;function o(){return e=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}(a),n=function(t){return 10===t?R:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}(a),i()[0]<0?(e=F(e),n=F(n),t(D,I)):t(N,L),r}return r.base=function(t){return arguments.length?(a=+t,o()):a},r.domain=function(t){return arguments.length?(i(t),o()):i()},r.ticks=function(t){var r,o=i(),u=o[0],c=o[o.length-1];(r=c<u)&&(h=u,u=c,c=h);var f,l,d,h=e(u),p=e(c),b=null==t?10:+t,v=[];if(!(a%1)&&p-h<b){if(h=Math.floor(h),p=Math.ceil(p),u>0){for(;h<=p;++h)for(l=1,f=n(h);l<a;++l)if(!((d=f*l)<u)){if(d>c)break;v.push(d)}}else for(;h<=p;++h)for(l=a-1,f=n(h);l>=1;--l)if(!((d=f*l)<u)){if(d>c)break;v.push(d)}2*v.length<b&&(v=Object(s.a)(u,c,b))}else v=Object(s.a)(h,p,Math.min(p-h,b)).map(n);return r?v.reverse():v},r.tickFormat=function(t,i){if(null==i&&(i=10===a?".0e":","),"function"!=typeof i&&(i=Object(j.b)(i)),t===1/0)return i;null==t&&(t=10);var o=Math.max(1,a*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*a<a-.5&&(r*=a),r<=o?i(t):""}},r.nice=function(){return i(P(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function B(){var t=z(x()).domain([1,10]);return t.copy=function(){return _(t,B()).base(t.base())},i.apply(t,arguments),t}function V(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function U(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function H(t){var e=1,n=t(V(e),U(e));return n.constant=function(n){return arguments.length?t(V(e=+n),U(e)):e},E(n)}function q(){var t=H(x());return t.copy=function(){return _(t,q()).constant(t.constant())},i.apply(t,arguments)}function W(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function G(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Y(t){return t<0?-t*t:t*t}function Z(t){var e=t(v,v),n=1;function r(){return 1===n?t(v,v):.5===n?t(G,Y):t(W(n),W(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,r()):n},E(e)}function $(){var t=Z(x());return t.copy=function(){return _(t,$()).exponent(t.exponent())},i.apply(t,arguments),t}function X(){return $.apply(null,arguments).exponent(.5)}function K(t){return Math.sign(t)*t*t}function Q(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function J(){var t,e=w(),n=[0,1],r=!1;function a(n){var i=Q(e(n));return isNaN(i)?t:r?Math.round(i):i}return a.invert=function(t){return e.invert(K(t))},a.domain=function(t){return arguments.length?(e.domain(t),a):e.domain()},a.range=function(t){return arguments.length?(e.range((n=Array.from(t,p)).map(K)),a):n.slice()},a.rangeRound=function(t){return a.range(t).round(!0)},a.round=function(t){return arguments.length?(r=!!t,a):r},a.clamp=function(t){return arguments.length?(e.clamp(t),a):e.clamp()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return J(e.domain(),n).round(r).clamp(e.clamp()).unknown(t)},i.apply(a,arguments),E(a)}var tt=n(20),et=n(3);function nt(){var t,e=[],n=[],r=[];function a(){var t=0,i=Math.max(1,n.length);for(r=new Array(i-1);++t<i;)r[t-1]=Object(tt.b)(e,t/i);return o}function o(e){return isNaN(e=+e)?t:n[Object(d.d)(r,e)]}return o.invertExtent=function(t){var i=n.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:e[0],i<r.length?r[i]:e[e.length-1]]},o.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(et.a),a()},o.range=function(t){return arguments.length?(n=Array.from(t),a()):n.slice()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.quantiles=function(){return r.slice()},o.copy=function(){return nt().domain(e).range(n).unknown(t)},i.apply(o,arguments)}function rt(){var t,e=0,n=1,r=1,a=[.5],o=[0,1];function u(e){return e<=e?o[Object(d.d)(a,e,0,r)]:t}function c(){var t=-1;for(a=new Array(r);++t<r;)a[t]=((t+1)*n-(t-r)*e)/(r+1);return u}return u.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,c()):[e,n]},u.range=function(t){return arguments.length?(r=(o=Array.from(t)).length-1,c()):o.slice()},u.invertExtent=function(t){var i=o.indexOf(t);return i<0?[NaN,NaN]:i<1?[e,a[0]]:i>=r?[a[r-1],n]:[a[i-1],a[i]]},u.unknown=function(e){return arguments.length?(t=e,u):u},u.thresholds=function(){return a.slice()},u.copy=function(){return rt().domain([e,n]).range(o).unknown(t)},i.apply(E(u),arguments)}function it(){var t,e=[