UNPKG

cl-react-graph

Version:
2 lines 57.6 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{"+Ckz":function(t,e,n){var r=n("V2ZB"),a=n("tb+2");t.exports=function(t,e){return r(t,a(t),e)}},"0711":function(t,e,n){var r=n("WRuO"),a=n("WMT/"),i=n("F3Ab"),o=n("wnk4"),u=n("ArpJ"),c=n("Fldm"),s=n("e766"),l=n("+Ckz"),d=n("CIBY"),h=n("2AbI"),f=n("zIph"),p=n("s3t7"),v=n("316b"),b=n("iXK7"),m=n("FQMq"),g=n("PqlX"),y=n("tfj2"),x=n("Bpme"),w=n("9aUh"),j=n("CPLO"),O=n("h0av"),_=n("Vujp"),A={};A["[object Arguments]"]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A["[object Object]"]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A["[object Function]"]=A["[object WeakMap]"]=!1,t.exports=function t(e,n,E,S,C,N){var L,k=1&n,I=2&n,M=4&n;if(E&&(L=C?E(e,S,C,N):E(e)),void 0!==L)return L;if(!w(e))return e;var R=g(e);if(R){if(L=v(e),!k)return s(e,L)}else{var T=p(e),F="[object Function]"==T||"[object GeneratorFunction]"==T;if(y(e))return c(e,k);if("[object Object]"==T||"[object Arguments]"==T||F&&!C){if(L=I||F?{}:m(e),!k)return I?d(e,u(L,e)):l(e,o(L,e))}else{if(!A[T])return C?e:{};L=b(e,T,k)}}N||(N=new r);var V=N.get(e);if(V)return V;N.set(e,L),j(e)?e.forEach((function(r){L.add(t(r,n,E,r,e,N))})):x(e)&&e.forEach((function(r,a){L.set(a,t(r,n,E,a,e,N))}));var B=R?void 0:(M?I?f:h:I?_:O)(e);return a(B||e,(function(r,a){B&&(r=e[a=r]),i(L,a,t(r,n,E,a,e,N))})),L}},"07F0":function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,a=0,i=[];++n<r;){var o=t[n];e(o,n,t)&&(i[a++]=o)}return i}},"2AbI":function(t,e,n){var r=n("6TGQ"),a=n("tb+2"),i=n("h0av");t.exports=function(t){return r(t,i,a)}},"316b":function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},"5+lF":function(t,e,n){var r=n("naAV");t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},"6TGQ":function(t,e,n){var r=n("gwRl"),a=n("PqlX");t.exports=function(t,e,n){var i=e(t);return a(t)?i:r(i,n(t))}},"7hpd":function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r=n("PVJp"),a=function(t){return function(e,n,a){var i=t.bins,o=t.hover,u=t.tipContentFn,c=t.tipContent,s=t.tip,l=t.tipContainer,d=i.findIndex((function(t){return t===e.label}));u&&(o&&Object(r.a)(a[n]).attr("fill-opacity",1).transition("easeIn").attr("fill-opacity",.7),c.html((function(){return u(i,d,e.value||e)})),s.fx.in(l))}},i=function(t){return function(e,n,a){var i=t.tip,o=t.tipContainer;t.colors;i.fx.out(o),Object(r.a)(a[n]).attr("fill-opacity",.7).transition("easeIn").attr("fill-opacity",1)}},o=function(t){return function(e){t&&t(e)}}},"7qnD":function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},ArpJ:function(t,e,n){var r=n("V2ZB"),a=n("Vujp");t.exports=function(t,e){return t&&r(e,a(e),t)}},"B4/L":function(t,e,n){var r=n("gwRl"),a=n("LBQr"),i=n("tb+2"),o=n("E7Xw"),u=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,i(t)),t=a(t);return e}:o;t.exports=u},Bpme:function(t,e,n){var r=n("CIUO"),a=n("TsNJ"),i=n("DhoL"),o=i&&i.isMap,u=o?a(o):r;t.exports=u},CIBY:function(t,e,n){var r=n("V2ZB"),a=n("B4/L");t.exports=function(t,e){return r(t,a(t),e)}},CIUO:function(t,e,n){var r=n("s3t7"),a=n("T9Ud");t.exports=function(t){return a(t)&&"[object Map]"==r(t)}},CPLO:function(t,e,n){var r=n("zlak"),a=n("TsNJ"),i=n("DhoL"),o=i&&i.isSet,u=o?a(o):r;t.exports=u},E7Xw:function(t,e){t.exports=function(){return[]}},EGO9:function(t,e,n){"use strict";var r=n("q1tI"),a=n.n(r),i=n("UBVB"),o=n("uZNN"),u=n("ress"),c=n("faMQ"),s=n("o6j4"),l=n("t6b9"),d=(n("E9XD"),n("t8Zj")),h=n("2b7M");e.a=function(t){var e=t.axisLabelFormat,n=t.colorScheme,f=t.data,p=t.direction,v=void 0===p?i.a.VERTICAL:p,b=t.height,m=t.tip,g=t.width,y=t.xAxisHeight,x=t.padding,w=void 0===x?o.b:x,j=t.yAxisWidth,O=t.titleHeight,_=void 0===O?40:O,A=t.titleLayout,E=void 0===A?s.a.HORIZONTAL:A,S=function(t){var e=t.data,n=t.height,a=t.clampToZero,i=void 0===a||a,o=n/e.length,u=Object(r.useState)([]),c=u[0],s=u[1],l=Object(r.useState)([0,0]),f=l[0],p=l[1],v=Object(r.useState)([]),b=v[0],m=v[1];return Object(r.useEffect)((function(){var t=e.reduce((function(t,e){return Array.from(new Set([].concat(Object(d.a)(t),Object(d.a)(e.bins))))}),[]);s(t);var n=e.map((function(e){var n=e.counts.map((function(n){var r=new Array(t.length).fill(0);return n.data.forEach((function(n,a){var i=t.findIndex((function(t){return t===e[a]}));r[i]=n})),n}));return Object.assign({},e,{bins:t,counts:n})}));m(n);var r=n.reduce((function(t,e){var n=e.counts.reduce((function(t,e){return[].concat(Object(d.a)(t),Object(d.a)(e.data))}),[]);return[].concat(Object(d.a)(n),Object(d.a)(t))}),[]);i&&r.push(0);var a=Object(h.a)(r);a[0]==a[1]&&a[1]++,p(a)}),[e]),{chartHeight:o,bins:c,domain:f,values:b}}({data:f,height:b}),C=S.chartHeight,N=S.bins,L=S.domain,k=S.values;j||(j=v===i.a.VERTICAL?40:100),y||(y=v===i.a.VERTICAL?100:40);var I=E===s.a.HORIZONTAL?C-y-_:C-y;return a.a.createElement(u.a,{width:g,height:b},k.map((function(t,r){var i=E===s.a.HORIZONTAL?C*r+_:C*r,u=g-Number(j);return a.a.createElement("g",{key:"plot-"+t.title},E===s.a.HORIZONTAL?a.a.createElement("g",{transform:"translate("+j+", "+(C*r+_/2)+")",height:_,width:u},a.a.createElement("text",{fill:s.d.stroke,fontSize:"12px",fontWeight:"bold",width:u},String(t.title))):a.a.createElement(s.b,{width:0,height:I,scale:"band",top:C*r,labelFormat:e,path:{opacity:0},labelOrientation:s.a.VERTICAL,tickFormat:{fontSize:"12px",stroke:"#333"},values:[String(t.title)]}),a.a.createElement(s.b,{width:Number(j),labelFormat:e,height:I,top:i,domain:L}),a.a.createElement(c.a,{width:u,height:Number(y),top:C*(r+1)-Number(y),left:j,labelFormat:e,padding:w,values:N}),a.a.createElement(o.a,{left:j,height:I,colorScheme:n,groupLayout:l.b.STACKED,values:k[r].counts,bins:N,top:i,domain:L,padding:w,direction:v,tip:m,width:u}))})))}},G9gt:function(t,e,n){var r=n("jgJv"),a=r?r.prototype:void 0,i=a?a.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},KLKn:function(t,e,n){var r=n("l7Do"),a=n("QlKF")((function(t,e,n,a){r(t,e,n,a)}));t.exports=a},Lalj:function(t,e,n){var r=n("jL4t"),a=n("MQuF"),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return a(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},MQuF:function(t,e,n){var r=n("SHde")(Object.keys,Object);t.exports=r},RdJx:function(t,e){},Ruab:function(t,e,n){"use strict";n("E9XD");var r=n("t8Zj"),a=n("q1tI"),i=n.n(a),o=n("UBVB"),u=n("uZNN"),c=n("ress"),s=n("faMQ"),l=n("o6j4"),d=n("t6b9"),h=n("6iqo");e.a=function(t){var e=t.data,n=t.id,a=void 0===n?"":n,h=t.direction,p=void 0===h?o.a.HORIZONTAL:h,v=t.groupLayout,b=void 0===v?d.b.GROUPED:v,m=t.height,g=t.splitBins,y=void 0===g?["Left","Right"]:g,x=t.width,w=t.visible,j=void 0===w?{}:w,O=t.xAxisHeight,_=t.splitAxisHeight,A=t.yAxisWidth,E=t.chartPadding,S=void 0===E?15:E,C=t.padding,N=void 0===C?u.b:C,L=t.showBinPercentages,k=void 0!==L&&L;A||(A=p===o.a.VERTICAL?40:100),O||(O=p===o.a.VERTICAL?100:40),_||(_=p===o.a.VERTICAL?100:40);var I=f(e,!0),M={width:x,height:m,chartPadding:S},R=[];e.counts.forEach((function(t){t.data.forEach((function(n,r){n.forEach((function(n,a){R[a]||(R[a]=[]),R[a].push({side:0===r?"left":"right",groupLabel:t.label,colorRef:t.label,label:e.bins[a],value:!1!==j[e.bins[a]]&&!1!==j[t.label]?n:0})}))}))}));var T=e.counts.map((function(t,e){return{label:y[0]+" "+t.label,data:p===o.a.HORIZONTAL?Object(r.a)(t.data[0]).reverse():Object(r.a)(t.data[0])}})),F=e.counts.map((function(t,e){return{label:y[1]+" "+t.label,data:p===o.a.HORIZONTAL?Object(r.a)(t.data[1]).reverse():Object(r.a)(t.data[1])}})),V=p===o.a.VERTICAL?x-A-2*S:(x-2*S-A)/2,B=p===o.a.VERTICAL?(m-2*S-O)/2:m-O-_-2*S;return i.a.createElement(c.a,Object.assign({},M,{width:x+30,id:a}),i.a.createElement(u.a,{values:T,direction:p,inverse:p!==o.a.VERTICAL,left:p===o.a.VERTICAL?_+O:A,height:B,width:V,groupLayout:b,bins:e.bins,domain:I,id:"left-"+a,padding:N,showLabels:[k,k]}),i.a.createElement(u.a,{values:F,direction:p,inverse:p===o.a.VERTICAL,left:p===o.a.VERTICAL?_+O:(x-2*S+A)/2,height:B,width:V,groupLayout:b,bins:e.bins,domain:I,id:"right-"+a,top:p===o.a.HORIZONTAL?0:B,padding:N,showLabels:[k,k]}),p===o.a.HORIZONTAL&&i.a.createElement(i.a.Fragment,null,i.a.createElement(l.b,{width:A,height:B,scale:"band",path:{opacity:0},tickSize:0,padding:N,values:Object(r.a)(e.bins).reverse()}),i.a.createElement(l.b,{width:A,height:B,left:V,labelFormat:function(){return""},padding:N,values:p===o.a.HORIZONTAL?e.bins:void 0,scale:"band"}),i.a.createElement(s.a,{width:V,inverse:!0,height:O,top:B,left:A,scale:"linear",domain:I}),i.a.createElement(s.a,{width:V,height:O,top:B,left:(x-2*S+A)/2,scale:"linear",domain:I}),i.a.createElement(s.a,{height:_,left:A,top:B+_,width:M.width-A,values:y,path:{opacity:0},scale:"point"})),p===o.a.VERTICAL&&i.a.createElement(i.a.Fragment,null,i.a.createElement(s.a,{width:V,height:A,scale:"band",padding:N,path:{opacity:0},tickSize:0,left:O+_,top:2*B,values:Object(r.a)(e.bins)}),i.a.createElement(s.a,{width:V,height:A,left:O+_,labelFormat:function(){return""},values:e.bins,top:B,scale:"band",padding:N}),i.a.createElement(l.b,{width:O,height:B,top:0,left:_,scale:"linear",domain:I}),i.a.createElement(l.b,{width:O,height:B,inverse:!0,top:B,left:_,scale:"linear",domain:I}),i.a.createElement(l.b,{height:2*B,left:0,width:_,values:y,path:{opacity:0},scale:"point"})))};var f=function(t,e){void 0===e&&(e=!0);var n=t.counts.reduce((function(t,e){return t.concat(e.data[0])}),[]),a=t.counts.reduce((function(t,e){return t.concat(e.data[1])}),[]),i=[0,Object(h.a)(Math.max.apply(Math,Object(r.a)(a)))];if(e){var o=Math.max(Math.max.apply(Math,Object(r.a)(n)),i[1]);i=[0,Object(h.a)(o)]}return i}},STQx:function(t,e,n){"use strict";n.d(e,"b",(function(){return i}));var r=n("XGRO"),a=n("PVJp");e.a={fx:{in:function(t){"string"!=typeof t&&(null==t||t.style("left",r.b.pageX+"px").style("top",r.b.pageY-55+"px"),null==t||t.transition().duration(200).style("opacity",.9))},move:function(t){"string"!=typeof t&&(null==t||t.style("left",r.b.pageX+"px").style("top",r.b.pageY-55+"px"))},out:function(t){"string"!=typeof t&&(null==t||t.transition().duration(100).style("opacity",0))}}};var i=function(t,e){return e&&e.remove(),(e=Object(a.a)(t).append("div").attr("class","tooltip top").style("opacity",0)).append("div").attr("class","tooltip-arrow"),{tipContainer:e,tipContent:e.append("div").attr("class","tooltip-inner")}}},V9dP:function(t,e,n){"use strict";n("E9XD");var r=n("0YW8"),a=n("pBfT"),i=n("q1tI"),o=n.n(i),u=n("bzer"),c=n("UBVB"),s=n("uZNN"),l=n("ress"),d=n("t6b9"),h=n("RuFW"),f=n("1pFL");function p(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=t[Symbol.iterator]()).next.bind(n)}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var b=function(t){var e=t.data,n=t.left,a=t.width,i=t.top,u=t.radius,c=t.colors,l=void 0===c?{active:"#000",inactive:"#eee"}:c,d=t.setBandScale,f=Array.from(e.reduce((function(t,e){return y(new Set(e.keys),t)}),new Set)),p=f.map((function(t){return Number(d(t))+d.bandwidth()/2})),v=e.map((function(t){return t.keys.join(" & ")})),b=Object(r.a)().domain(v).rangeRound([0,a]).paddingInner(Object(h.f)(s.b)).paddingOuter(Object(h.g)(s.b)).align(.5);return o.a.createElement("g",{transform:"translate("+n+","+i+")"},e.map((function(t){var e,n=Number(b(t.keys.join(" & ")))+b.bandwidth()/2,r=f.map((function(e){return t.keys.includes(e)})),a=r.reduce((function(t,e,n){return e?(0===t.length?t[0]=p[n]:t[1]=p[n],t):t}),[]);return o.a.createElement("g",{key:t.keys.join("."),transform:"translate("+n+", 0)"},o.a.createElement("line",{x1:"0",y1:a[0],x2:"0",y2:null!==(e=a[1])&&void 0!==e?e:a[0],stroke:l.active}),f.map((function(t,e){return o.a.createElement("circle",{key:t,cy:p[e],cx:0*e,r:u,fill:r[e]?l.active:l.inactive})})))})))},m=function(t){var e=t.LabelComponent,n=t.colorScheme,r=t.width,a=t.height,l=t.left,h=t.top,p=t.data,v=t.axisSpace,b=Object(i.useMemo)((function(){return p.map((function(t){return t.keys.join(" & ")}))}),[p]),m=Object(i.useMemo)((function(){return[{label:"segments",data:p.map((function(t){return t.value}))}]}),[p]),g=Object(f.a)({groupLayout:d.b.GROUPED,bins:b,values:m});return o.a.createElement(o.a.Fragment,null,o.a.createElement(u.b,{bins:b,colorScheme:n,direction:c.a.VERTICAL,domain:g,showLabels:[!0],groupLayout:d.b.GROUPED,height:a,LabelComponent:e,left:(null!=l?l:0)+v,top:h,padding:s.b,values:m,width:r-v}),o.a.createElement(u.g,{width:20,height:a,label:"intersection size",top:h,left:l,scale:"linear",values:void 0,domain:g}))},g=function(t){var e=t.width,n=t.height,r=t.colorScheme,a=t.data,l=t.top,h=t.axisSpace,p=t.axisWidth,v=t.textFill,b=void 0===v?"#a9a9a9":v,m=t.setBandScale,g=t.bins,y=t.label,x=Object(i.useMemo)((function(){var t=new Array(g.length).fill(0);return[{label:"tets",data:a.reduce((function(t,e){return e.keys.forEach((function(n){var r=g.findIndex((function(t){return t===n}));t[r]=t[r]+e.value})),t}),t)}]}),[a,g]),w=Object(f.a)({groupLayout:d.b.GROUPED,bins:g.reverse(),values:x});return o.a.createElement("g",{className:"size-bars",transform:"translate(0,"+l+")"},o.a.createElement(u.b,{bins:g,colorScheme:r,direction:c.a.HORIZONTAL,domain:w,groupLayout:d.b.GROUPED,height:n-h,inverse:!0,showLabels:[!0],padding:s.b,values:x,width:e}),g.map((function(t){return o.a.createElement("text",{key:t,x:(null!=p?p:0)+e,fontSize:"12px",textAnchor:"end",fill:b,y:Number(m(t))+m.bandwidth()/2},t)})),o.a.createElement(u.f,{width:e,height:20,label:"Set size",top:n-h,scale:"linear",values:void 0,inverse:!0,domain:w}),o.a.createElement("text",{x:e/2,textAnchor:"middle",fontSize:"12px",fill:b,y:n},y))};function y(){for(var t=new Set,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var a=0,i=n;a<i.length;a++)for(var o,u=i[a],c=p(u);!(o=c()).done;){var s=o.value;t.add(s)}return t}e.a=function(t){var e,n,u=t.data,c=t.width,d=t.height,f=t.setSize,p=void 0===f?{dimensions:{chartWidth:100,axisWidth:100,height:200},colorScheme:[a.a[0]]}:f,v=t.axisSpace,x=void 0===v?30:v,w=t.textFill,j=void 0===w?"#a9a9a9":w,O=t.radius,_=void 0===O?7:O,A=t.distribution,E=void 0===A?{colorScheme:[a.a[1]],fill:{active:a.a[1],inactive:"#eee"},label:"Intersection size"}:A,S=t.title,C=t.description,N=p.dimensions.chartWidth+p.dimensions.axisWidth,L=d-p.dimensions.height,k=Object(i.useMemo)((function(){var t=Array.from(u.reduce((function(t,e){return y(new Set(e.keys),t)}),new Set));return{bins:t,setBandScale:Object(r.a)().domain(t).rangeRound([0,p.dimensions.height-x-x]).paddingInner(Object(h.f)(s.b)).paddingOuter(Object(h.g)(s.b)).align(.5)}}),[u]),I=k.bins,M=k.setBandScale;return o.a.createElement(l.a,{width:c,title:S,description:C,height:d},o.a.createElement("text",{textAnchor:"middle",fill:j,fontSize:"12px",style:{border:"1px solid red"},transform:"translate("+(N-20)+", "+(L-L/2)+") rotate(270)"},null!==(e=E.label)&&void 0!==e?e:"Intersection size"),o.a.createElement(g,{width:p.dimensions.chartWidth,axisWidth:p.dimensions.axisWidth,height:p.dimensions.height-x,top:d-p.dimensions.height+x,colorScheme:p.colorScheme,data:u,axisSpace:x,textFill:j,setBandScale:M,bins:I,left:0,label:null!==(n=p.label)&&void 0!==n?n:"Set size"}),o.a.createElement(m,{width:c-N,height:d-p.dimensions.height,colorScheme:E.colorScheme,left:N,data:u,top:0,axisSpace:x,textFill:j}),o.a.createElement(b,{data:u,left:N+x,radius:_,colors:E.fill,width:c-N-x,height:p.dimensions.height-x,top:d-p.dimensions.height+x,setBandScale:M}))}},VNQV:function(t,e,n){var r=n("LSEb")(n("s3UK"),"DataView");t.exports=r},"WMT/":function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},YZdJ:function(t,e,n){"use strict";var r,a,i=n("8o2o"),o=n("9Hrx"),u=n("q1tI"),c=n.n(u),s=n("i8i4"),l=n.n(s),d=n("yGLb"),h=n("ZJVG"),f=0,p=0,v=0,b=0,m=0,g=0,y="object"==typeof performance&&performance.now?performance:Date,x="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function w(){return m||(x(j),m=y.now()+g)}function j(){m=0}function O(){this._call=this._time=this._next=null}function _(t,e,n){var r=new O;return r.restart(t,e,n),r}function A(){m=(b=y.now())+g,f=p=0;try{!function(){w(),++f;for(var t,e=r;e;)(t=m-e._time)>=0&&e._call.call(null,t),e=e._next;--f}()}finally{f=0,function(){var t,e,n=r,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);a=t,S(i)}(),m=0}}function E(){var t=y.now(),e=t-b;e>1e3&&(g-=e,b=t)}function S(t){f||(p&&(p=clearTimeout(p)),t-m>24?(t<1/0&&(p=setTimeout(A,t-y.now()-g)),v&&(v=clearInterval(v))):(v||(b=y.now(),v=setInterval(E,1e3)),f=1,x(A)))}O.prototype=_.prototype={constructor:O,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?w():+n)+(null==e?0:+e),this._next||a===this||(a?a._next=this:r=this,a=this),this._call=t,this._time=n,S()},stop:function(){this._call&&(this._call=null,this._time=1/0,S())}};var C=function(t,e,n){var r=new O;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},N=Object(h.a)("start","end","cancel","interrupt"),L=[],k=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 s,l,d,h;if(1!==n.state)return u();for(s in a)if((h=a[s]).name===n.name){if(3===h.state)return C(i);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete a[s]):+s<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete a[s])}if(C((function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(c))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(d=n.tween.length),s=0,l=-1;s<d;++s)(h=n.tween[s].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=h);r.length=l+1}}function o(e){for(var a=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=5,1),i=-1,o=r.length;++i<o;)r[i].call(t,a);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=6,n.timer.stop(),delete a[e],a)return;delete t.__transition}a[e]=n,n.timer=_((function(t){n.state=1,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:N,tween:L,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:0})};function I(t,e){var n=R(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function M(t,e){var n=R(t,e);if(n.state>3)throw new Error("too late; already running");return n}function R(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var T=n("yw3p"),F=n("NPQ8");function V(t,e){var n,r;return function(){var a=M(this,t),i=a.tween;if(i!==n)for(var o=0,u=(r=n=i).length;o<u;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}a.tween=r}}function B(t,e,n){var r,a;if("function"!=typeof n)throw new Error;return function(){var i=M(this,t),o=i.tween;if(o!==r){a=(r=o).slice();for(var u={name:e,value:n},c=0,s=a.length;c<s;++c)if(a[c].name===e){a[c]=u;break}c===s&&a.push(u)}i.tween=a}}function P(t,e,n){var r=t._id;return t.each((function(){var t=M(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return R(t,r).value[e]}}var z=n("lG5g"),D=function(t,e){var n;return("number"==typeof e?T.b:e instanceof z.e?T.c:(n=Object(z.e)(e))?(e=n,T.c):T.e)(t,e)};function W(t){return function(){this.removeAttribute(t)}}function U(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Z(t,e,n){var r,a,i=n+"";return function(){var o=this.getAttribute(t);return o===i?null:o===r?a:a=e(r=o,n)}}function H(t,e,n){var r,a,i=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===i?null:o===r?a:a=e(r=o,n)}}function Q(t,e,n){var r,a,i;return function(){var o,u,c=n(this);if(null!=c)return(o=this.getAttribute(t))===(u=c+"")?null:o===r&&u===a?i:(a=u,i=e(r=o,c));this.removeAttribute(t)}}function G(t,e,n){var r,a,i;return function(){var o,u,c=n(this);if(null!=c)return(o=this.getAttributeNS(t.space,t.local))===(u=c+"")?null:o===r&&u===a?i:(a=u,i=e(r=o,c));this.removeAttributeNS(t.space,t.local)}}function q(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function J(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function K(t,e){var n,r;function a(){var a=e.apply(this,arguments);return a!==r&&(n=(r=a)&&J(t,a)),n}return a._value=e,a}function X(t,e){var n,r;function a(){var a=e.apply(this,arguments);return a!==r&&(n=(r=a)&&q(t,a)),n}return a._value=e,a}function Y(t,e){return function(){I(this,t).delay=+e.apply(this,arguments)}}function $(t,e){return e=+e,function(){I(this,t).delay=e}}function tt(t,e){return function(){M(this,t).duration=+e.apply(this,arguments)}}function et(t,e){return e=+e,function(){M(this,t).duration=e}}function nt(t,e){if("function"!=typeof e)throw new Error;return function(){M(this,t).ease=e}}var rt=n("Zfmh");function at(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)?I:M;return function(){var o=i(this,t),u=o.on;u!==r&&(a=(r=u).copy()).on(e,n),o.on=a}}var it=n("eGxL"),ot=n("Ouui"),ut=d.b.prototype.constructor,ct=n("qKpG");function st(t){return function(){this.style.removeProperty(t)}}function lt(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function dt(t,e,n){var r,a;function i(){var i=e.apply(this,arguments);return i!==a&&(r=(a=i)&&lt(t,i,n)),r}return i._value=e,i}function ht(t){return function(e){this.textContent=t.call(this,e)}}function ft(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&ht(r)),e}return r._value=t,r}var pt=0;function vt(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function bt(){return++pt}var mt=d.b.prototype;vt.prototype=function(t){return Object(d.b)().transition(t)}.prototype={constructor:vt,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(it.a)(t));for(var r=this._groups,a=r.length,i=new Array(a),o=0;o<a;++o)for(var u,c,s=r[o],l=s.length,d=i[o]=new Array(l),h=0;h<l;++h)(u=s[h])&&(c=t.call(u,u.__data__,h,s))&&("__data__"in u&&(c.__data__=u.__data__),d[h]=c,k(d[h],e,n,h,d,R(u,n)));return new vt(i,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(ot.a)(t));for(var r=this._groups,a=r.length,i=[],o=[],u=0;u<a;++u)for(var c,s=r[u],l=s.length,d=0;d<l;++d)if(c=s[d]){for(var h,f=t.call(c,c.__data__,d,s),p=R(c,n),v=0,b=f.length;v<b;++v)(h=f[v])&&k(h,e,n,v,f,p);i.push(f),o.push(c)}return new vt(i,o,e,n)},filter:function(t){"function"!=typeof t&&(t=Object(rt.a)(t));for(var e=this._groups,n=e.length,r=new Array(n),a=0;a<n;++a)for(var i,o=e[a],u=o.length,c=r[a]=[],s=0;s<u;++s)(i=o[s])&&t.call(i,i.__data__,s,o)&&c.push(i);return new vt(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),u=0;u<i;++u)for(var c,s=e[u],l=n[u],d=s.length,h=o[u]=new Array(d),f=0;f<d;++f)(c=s[f]||l[f])&&(h[f]=c);for(;u<r;++u)o[u]=e[u];return new vt(o,this._parents,this._name,this._id)},selection:function(){return new ut(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=bt(),r=this._groups,a=r.length,i=0;i<a;++i)for(var o,u=r[i],c=u.length,s=0;s<c;++s)if(o=u[s]){var l=R(o,e);k(o,t,n,s,u,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new vt(r,this._parents,t,n)},call:mt.call,nodes:mt.nodes,node:mt.node,size:mt.size,empty:mt.empty,each:mt.each,on:function(t,e){var n=this._id;return arguments.length<2?R(this.node(),n).on.on(t):this.each(at(n,t,e))},attr:function(t,e){var n=Object(F.a)(t),r="transform"===n?T.g:D;return this.attrTween(t,"function"==typeof e?(n.local?G:Q)(n,r,P(this,"attr."+t,e)):null==e?(n.local?U:W)(n):(n.local?H:Z)(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=Object(F.a)(t);return this.tween(n,(r.local?K:X)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?T.f:D;return null==e?this.styleTween(t,function(t,e){var n,r,a;return function(){var i=Object(ct.b)(this,t),o=(this.style.removeProperty(t),Object(ct.b)(this,t));return i===o?null:i===n&&o===r?a:a=e(n=i,r=o)}}(t,r)).on("end.style."+t,st(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,a,i;return function(){var o=Object(ct.b)(this,t),u=n(this),c=u+"";return null==u&&(this.style.removeProperty(t),c=u=Object(ct.b)(this,t)),o===c?null:o===r&&c===a?i:(a=c,i=e(r=o,u))}}(t,r,P(this,"style."+t,e))).each(function(t,e){var n,r,a,i,o="style."+e,u="end."+o;return function(){var c=M(this,t),s=c.on,l=null==c.value[o]?i||(i=st(e)):void 0;s===n&&a===l||(r=(n=s).copy()).on(u,a=l),c.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,a,i=n+"";return function(){var o=Object(ct.b)(this,t);return o===i?null:o===r?a:a=e(r=o,n)}}(t,r,e),n).on("end.style."+t,null)},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,dt(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}}(P(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,ft(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,a=R(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?V:B)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Y:$)(e,t)):R(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?tt:et)(e,t)):R(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(nt(e,t)):R(this.node(),e).ease},end:function(){var t,e,n=this,r=n._id,a=n.size();return new Promise((function(i,o){var u={value:o},c={value:function(){0==--a&&i()}};n.each((function(){var n=M(this,r),a=n.on;a!==t&&((e=(t=a).copy())._.cancel.push(u),e._.interrupt.push(u),e._.end.push(c)),n.on=e}))}))}};var gt={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function yt(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return gt.time=w(),gt;return n}d.b.prototype.interrupt=function(t){return this.each((function(){!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>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete i[a]):o=!1;o&&delete t.__transition}}(this,t)}))},d.b.prototype.transition=function(t){var e,n;t instanceof vt?(e=t._id,t=t._name):(e=bt(),(n=gt).time=w(),t=null==t?null:t+"");for(var r=this._groups,a=r.length,i=0;i<a;++i)for(var o,u=r[i],c=u.length,s=0;s<c;++s)(o=u[s])&&k(o,t,e,s,u,n||yt(o,e));return new vt(r,this._parents,t,e)};var xt=n("CZaE"),wt=n("PVJp"),jt=n("q9au"),Ot=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},_t=function(t){return t},At=n("WhJl"),Et=n("u1QP"),St=n("yEOx"),Ct=n.n(St),Nt=n("HVn3"),Lt=n.n(Nt),kt=n("n7E+"),It=n("STQx"),Mt=n("7hpd"),Rt=function(){var t=_t,e=Ot,n=null,r=Object(jt.a)(0),a=Object(jt.a)(At.m),i=Object(jt.a)(0);function o(o){var u,c,s,l,d,h=o.length,f=0,p=new Array(h),v=new Array(h),b=+r.apply(this,arguments),m=Math.min(At.m,Math.max(-At.m,a.apply(this,arguments)-b)),g=Math.min(Math.abs(m)/h,i.apply(this,arguments)),y=g*(m<0?-1:1);for(u=0;u<h;++u)(d=v[p[u]=u]=+t(o[u],u,o))>0&&(f+=d);for(null!=e?p.sort((function(t,n){return e(v[t],v[n])})):null!=n&&p.sort((function(t,e){return n(o[t],o[e])})),u=0,s=f?(m-h*y)/f:0;u<h;++u,b=l)c=p[u],l=b+((d=v[c])>0?d*s:0)+y,v[c]={data:o[c],index:u,value:d,startAngle:b,endAngle:l,padAngle:g};return v}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:Object(jt.a)(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Object(jt.a)(+t),o):r},o.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:Object(jt.a)(+t),o):a},o.padAngle=function(t){return arguments.length?(i="function"==typeof t?t:Object(jt.a)(+t),o):i},o}().sort(null).value((function(t){return t.count})),Tt=function(t,e){void 0===e&&(e=0);var n=t.donutWidth,r=void 0===n?0:n,a=t.width,i=t.height,o=Math.min(Number(a),i)/2;return 0===r?o-10:o-10-e*(r+10)},Ft=function(t,e){void 0===e&&(e=0);var n=t.donutWidth,r=void 0===n?0:n,a=t.width,i=t.height,o=Math.min(Number(a),i)/2;return 0===r?0:o-10-r-e*(r+10)},Vt=function(t,e){return Object(Et.a)().outerRadius(Tt(t,e)).innerRadius(Ft(t,e))};function Bt(t){return function(e){var n=Object(T.a)(this._current,e);return this._current=n(0),function(e){return t(n(e))}}}var Pt=function(t){function e(e){var n;return(n=t.call(this,e)||this).ref=null,n.chart=function(){var t,e,n,r,a,i,o,u,c={backgroundColor:"#ddd",className:"piechart-d3",colorScheme:kt.a,data:{bins:[],counts:[]},donutWidth:0,height:200,hover:{lighten:.1},labels:{display:!0,displayFn:function(t){return t.value}},margin:{bottom:0,left:10,right:0,top:10},tip:It.a,tipContainer:"body",tipContentFn:function(t,e,n,r){return r+": "+t[e]+"<br />"+n},visible:{},width:200};return{create:function(t,e){var r=this;void 0===e&&(e={}),Lt()(c,e),i=c.data.counts.map((function(t,e){return t.data.map((function(e,n){return{count:e,groupLabel:t.label,label:c.data.bins[n]}}))})),this._makeSvg(t),n=[],i.forEach((function(t,e){r.drawChartBg(e)})),this.update(c)},_makeSvg:function(n){if(r){r.selectAll("svg > *").remove(),r.remove();var a=n.getElementsByTagName("svg");a.length>0&&n.removeChild(a[0])}var i=c.margin,o=c.width,u=c.height,s=c.className;r=Object(wt.a)(n).append("svg").attr("class",s).attr("width",o).attr("height",u).attr("viewBox","0 0 "+o+" "+u).append("g").attr("transform","translate("+i.left+","+i.top+")");var l=Object(It.b)(c.tipContainer,t);e=l.tipContent,t=l.tipContainer},update:function(t){c.data&&(Lt()(c,t),t.data&&(c.data=Ct()(t.data)),c.colorScheme&&(c.colorScheme=c.colorScheme),c.data.bins&&this.drawCharts())},drawCharts:function(){var t=this,e=c.data,n=c.visible;(a=e.counts.map((function(t){return t.data.map((function(r,a){return{count:!1!==n[e.bins[a]]?r:0,groupLabel:t.label,label:e.bins[a]}}))}))).forEach((function(n,r){var a,i,o=null!==(a=null===(i=e.counts[r])||void 0===i?void 0:i.colors)&&void 0!==a?a:c.colorScheme;t.drawChart(n,r,e.bins,o),t.drawLabels(n,r,e.bins,o)})),i=a},drawChartBg:function(t){var e=c.backgroundColor,a=c.width,i=c.height,o=2*Math.PI,u=Object(Et.a)().innerRadius(Ft(c,t)).outerRadius(Tt(c,t)).startAngle(0).endAngle(o),s=r.append("g").attr("class","pie-bg").append("path").attr("class","pie-background").style("fill",e);s.enter().attr("transform","translate("+Number(a)/2+","+i/2+")").attr("d",u),s.merge(s),n[t]||(r.append("g").attr("class","pie-container"),r.append("g").attr("class","pie-labels"),n[t]=r)},drawChart:function(r,a,o,u){var s=c.width,l=c.height,d=c.tip,h=c.tipContentFn,f=c.hover,p=i[a].length===r.length?i[a]:r,v=(Rt(p),Object(xt.a)(u));v.domain(Array.from(new Array(r.length).keys()).map((function(t){return t.toString()})));var b=Vt(c,a),m=n[a].select(".pie-container").selectAll("path").data(Rt(r));m.enter().append("path").attr("transform",(function(t){return"translate("+Number(s)/2+","+l/2+")"})).attr("stroke","#FFF").attr("fill",(function(t,e){return v(e)})).on("mouseover",(function(n,r,a){f&&Object(wt.a)(a[r]).attr("fill-opacity",1).transition("easeIn").attr("fill-opacity",.7),e.html((function(){return h(o,r,n.data.count,n.data.groupLabel)})),d.fx.in(t)})).on("mousemove",(function(){return d.fx.move(t)})).on("mouseout",Object(Mt.b)({tip:d,tipContainer:t,colors:v})).attr("d",b).style("opacity",0).transition().duration(500).style("opacity",1),m.merge(m).on("mouseover",(function(n,r,a){f&&Object(wt.a)(a[r]).attr("fill-opacity",1).transition("easeIn").attr("fill-opacity",.7),e.html((function(){return h(o,r,n.data.count,n.data.groupLabel)})),d.fx.in(t)})).on("mousemove",(function(){return d.fx.move(t)})).on("mouseout",Object(Mt.b)({tip:d,tipContainer:t,colors:v})).transition().delay(400).duration(500).attrTween("d",Bt(b)),m.exit().transition().attrTween("d",Bt(b)).duration(500).style("opacity",0).remove()},drawLabels:function(t,e,r,a){var i=c.labels,s=c.width,l=c.height,d=Vt(c,e),h=n[e].select(".pie-labels").selectAll("text.label").data(Rt(t));h.enter().append("text").attr("class","label").each((function(){u=l,o=Number(s)})).style("opacity",0).text((function(t,e){return 0===t.value?"":i.displayFn(t,e)})).attr("transform",(function(t){var e=d.centroid(t);return"translate("+(e[0]+o/2)+","+(e[1]+u/2)+")"})).transition().duration(500).style("opacity",(function(t){return!1===i.display||0===t.value?0:1})),h.merge(h).transition().duration(500).style("opacity",0).transition().attr("transform",(function(t){var e=d.centroid(t);return"translate("+(e[0]+o/2)+","+(e[1]+u/2)+")"})).text((function(t,e){return 0===t.value?"":i.displayFn(t,e)})).transition().duration(500).style("opacity",(function(t){return!1===i.display||0===t.value?0:1})),h.exit().transition().duration(500).style("opacity",0)},destroy:function(){r.selectAll("svg > *").remove()}}}(),n.state={parentWidth:300},n}Object(o.a)(e,t);var n=e.prototype;return n.handleResize=function(){var t=this;if(this.getDOMNode()){var e=this.ref&&this.ref.offsetWidth?this.ref.offsetWidth:0;this.setState({parentWidth:e},(function(){return t.chart.update(t.getChartState())}))}},n.componentDidMount=function(){var t=this,e=this.getDOMNode();e&&(this.chart.create(e,this.getChartState()),"100%"===this.props.width&&(window.addEventListener("resize",(function(e){return t.handleResize()})),this.handleResize()))},n.componentDidUpdate=function(){this.getDOMNode()&&this.chart.update(this.getChartState())},n.getChartState=function(){var t=this.props.width,e=this.props,n=(e.children,Object(i.a)(e,["children"]));return"100%"===t&&(t=this.state.parentWidth||300),Object.assign({},n,{width:t})},n.componentWillUnmount=function(){"100%"===this.props.width&&window.removeEventListener("resize",this.handleResize),this.getDOMNode()&&this.chart.destroy()},n.getDOMNode=function(){var t=l.a.findDOMNode(this.ref);try{if(t instanceof Text)return;return t}catch(e){return t}},n.render=function(){var t=this;return c.a.createElement("div",{ref:function(e){return t.ref=e},className:"piechart-chart-container"})},e}(u.Component);e.a=Pt},b2OE:function(t,e,n){var r=n("LSEb")(n("s3UK"),"Set");t.exports=r},bzer:function(t,e,n){"use strict";n.d(e,"e",(function(){return r.b})),n.d(e,"b",(function(){return G.a})),n.d(e,"c",(function(){return q.a})),n.d(e,"f",(function(){return J.a})),n.d(e,"g",(function(){return K.b})),n.d(e,"a",(function(){return X.b})),n.d(e,"d",(function(){return X.a})),n.d(e,"h",(function(){return Y.a}));var r=n("t6b9"),a=(n("RdJx"),n("tBK6"),n("YZdJ"),n("8o2o")),i=n("9Hrx"),o=n("q1tI"),u=n.n(o),c=n("i8i4"),s=n.n(c),l=n("2b7M"),d=Array.prototype.slice,h=function(t){return t};function f(t){return"translate("+(t+.5)+",0)"}function p(t){return"translate(0,"+(t+.5)+")"}function v(t){return function(e){return+t(e)}}function b(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function m(){return!this.__axis}function g(t,e){var n=[],r=null,a=null,i=6,o=6,u=3,c=1===t||4===t?-1:1,s=4===t||2===t?"x":"y",l=1===t||3===t?f:p;function g(d){var f=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,p=null==a?e.tickFormat?e.tickFormat.apply(e,n):h:a,g=Math.max(i,0)+u,y=e.range(),x=+y[0]+.5,w=+y[y.length-1]+.5,j=(e.bandwidth?b:v)(e.copy()),O=d.selection?d.selection():d,_=O.selectAll(".domain").data([null]),A=O.selectAll(".tick").data(f,e).order(),E=A.exit(),S=A.enter().append("g").attr("class","tick"),C=A.select("line"),N=A.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),A=A.merge(S),C=C.merge(S.append("line").attr("stroke","currentColor").attr(s+"2",c*i)),N=N.merge(S.append("text").attr("fill","currentColor").attr(s,c*g).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),d!==O&&(_=_.transition(d),A=A.transition(d),C=C.transition(d),N=N.transition(d),E=E.transition(d).attr("opacity",1e-6).attr("transform",(function(t){return isFinite(t=j(t))?l(t):this.getAttribute("transform")})),S.attr("opacity",1e-6).attr("transform",(function(t){var e=this.parentNode.__axis;return l(e&&isFinite(e=e(t))?e:j(t))}))),E.remove(),_.attr("d",4===t||2==t?o?"M"+c*o+","+x+"H0.5V"+w+"H"+c*o:"M0.5,"+x+"V"+w:o?"M"+x+","+c*o+"V0.5H"+w+"V"+c*o:"M"+x+",0.5H"+w),A.attr("opacity",1).attr("transform",(function(t){return l(j(t))})),C.attr(s+"2",c*i),N.attr(s,c*g).text(p),O.filter(m).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),O.each((function(){this.__axis=j}))}return g.scale=function(t){return arguments.length?(e=t,g):e},g.ticks=function(){return n=d.call(arguments),g},g.tickArguments=function(t){return arguments.length?(n=null==t?[]:d.call(t),g):n.slice()},g.tickValues=function(t){return arguments.length?(r=null==t?null:d.call(t),g):r&&r.slice()},g.tickFormat=function(t){return arguments.length?(a=t,g):a},g.tickSize=function(t){return arguments.length?(i=o=+t,g):i},g.tickSizeInner=function(t){return arguments.length?(i=+t,g):i},g.tickSizeOuter=function(t){return arguments.length?(o=+t,g):o},g.tickPadding=function(t){return arguments.length?(u=+t,g):u},g}function y(t){return g(3,t)}function x(t){return g(4,t)}var w=n("OQCi"),j=n("CZaE"),O=n("PVJp"),_=n("HVn3"),A=n.n(_),E=n("n7E+"),S=function(t){function e(e){var n;return(n=t.call(this,e)||this).ref=null,n.chart=function(){var t,e,n,r,a=Object(w.a)(),i=Object(w.a)(),o={},u={choices:[],className:"scatter-plot-d3",colorScheme:E.a,data:{keys:[],values:[]},delay:0,distModels:[],duration:400,height:300,legendWidth:100,padding:20,radius:4,split:"",width:"100%"};return{create:function(t,e){void 0===e&&(e=u),A()(u,e),this._makeSvg(t,u.data),this.update(e)},_makeSvg:function(e,r){if(t){t.selectAll("svg > *").remove(),t.remove();var a=e.getElementsByTagName("svg");a.length>0&&e.removeChild(a[0])}var i=u.width,o=u.className,c=u.height,s=u.legendWidth,l=u.padding;t=Object(O.a)(e).append("svg").attr("class",o).attr("width",Number(i)+l+s).attr("height",c+l).append("g").attr("transform","translate("+l+","+l/2+")"),n=Object(j.a)(u.colorScheme)},_drawScales:function(n){var c=u.height,s=u.padding,l=Number(u.width)/n.length,d=c/n.length;i.range([s/2,l-s/2]),a.range([c-s/2,s/2]),t.selectAll(".x.axis").data(n).enter().append("g").attr("class","x axis").attr("transform",(function(t,e){return"translate("+(n.length-e-1)*l+",0)"})).each((function(t){i.domain(o[t]),Object(O.a)(this).call(e)})),t.selectAll(".y.axis").data(n).enter().append("g").attr("class","y axis").attr("transform",(function(t,e){return"translate(0,"+e*d+")"})).each((function(t){a.domain(o[t]),Object(O.a)(this).call(r)}))},_drawLegend:function(){var e=u.choices,r=u.padding,a=u.width,i=u.split;if(void 0!==e){var o=t.append("g").attr("transform","translate("+(Number(a)+r/2)+", "+(r+50)+")");o.append("g").append("text").attr("x",0).attr("y",0).attr("dy",".71em").text((function(t){return i})),o.selectAll(".legendItem").data(e).enter().append("g").each((function(t,e){var r=Object(O.a)(this);r.append("rect").attr("class","legendItem").attr("x",0).attr("y",20+15*e).attr("fill",n(e)).attr("height",10).attr("width",10),r.append("text").attr("x",15).attr("y",20+15*e).attr("dy",".71em").text((function(e){return t}))})),o.exit().remove()}},_drawPoints:function(e,r,c){var s=u.data,l=u.delay,d=u.duration,h=u.choices,f=u.split,p=u.padding,v=u.radius,b=e.length;t.selectAll(".cell").data(function(t,e){var n,r,a=[],i=t.length,o=e.length;for(n=-1;++n<i;)for(r=-1;++r<o;)a.push({x:t[n],i:n,y:e[r],j:r});return a}(e,e)).enter().append("g").attr("class","cell").attr("transform",(function(t){return"translate("+(b-t.i-1)*r+","+t.j*r+")"})).each((function(t){var e=Object(O.a)(this);i.domain(o[Number(t.x)]),a.domain(o[Number(t.y)]),e.append("rect").attr("class","frame").attr("x",p/2).attr("y",p/2).attr("width",r-p).attr("height",c-p),e.selectAll("circle").data(s.values).enter().append("circle").attr("r",(function(t){return v})).attr("cx",(function(e){return Number(i(e[Number(t.x)]))})).attr("cy",(function(e){return Number(a(e[Number(t.y)]))})).style("fill",(function(t){if(t[f]){var e=h.findIndex((function(e){return e===t[f]}));return n(e)}return"#eeaabb"})).transition().duration(d).delay(l).attr("r",(function(t){return v}))})).filter((function(t){return t.i===t.j})).append("text").attr("x",p).attr("y",p).attr("dy",".71em").text((function(t){return t.x}))},update:function(t){if(A()(u,t),u.data){var n=u.data,c=u.distModels,s=u.height,d=u.width;this._drawLegend();var h=n.keys.filter((function(t){return-1!==c.indexOf(t)})),f=Number(d)/h.length,p=s/h.length,v=h.length;h.forEach((function(t){o[t]=Object(l.a)(n.values,(function(e){return e[t]}))})),e=y(i).ticks(6).tickSize(f*v),r=x(a).ticks(6).tickSize(-p*v),this._drawScales(h),this._drawPoints(h,f,p)}},destroy:function(){t.selectAll("svg > *").remove()}}}(),n.state={parentWidth:300},n}Object(i.a)(e,t);var n=e.prototype;return n.handleResize=function(){var t=this;if(this.getDOMNode()){var e=this.ref&&this.ref.offsetWidth?this.ref.offsetWidth:0;this.setState({parentWidth:e},(function(){return t.chart.update(t.getChartState())}))}},n.componentDidMount=function(){var t=this,e=this.getDOMNode();if(e){this.chart.create(e,this.getChartState());var n=this.props.width;"string"==typeof n&&"100%"===n&&(window.addEventListener("resize",(function(e){return t.handleResize()})),this.handleResize())}},n.componentDidUpdate=function(){this.getDOMNode()&&this.chart.update(this.getChartState())},n.getChartState=function(){var t=this.props.width,e=this.props,n=(e.children,Object(a.a)(e,["children"]));return"string"==typeof t&&"100%"===t&&(t=this.state.parentWidth||300),Object.assign({},n,{width:t})},n.componentWillReceiveProps=function(t){this.getDOMNode()&&this.chart.update(this.getChartState())},n.componentWillUnmount=function(){var t=this.props.width;"string"==typeof t&&"100%"===t&&window.removeEventListener("resize",this.handleResize);this.getDOMNode();this.chart.destroy()},n.getDOMNode=function(){var t=s.a.findDOMNode(this.ref);try{if(t instanceof Text)return;return t}catch(e){return t}},n.render=function(){var t=this;return u.a.createElement("div",{ref:function(e){return t.ref=e},className:"scatterplot-chart-container"})},e}(o.Component);S.defaultProps={height:400,width:"100%"};n("z1is"),n("E9XD");var C=n("t8Zj"),N=n("ZZWI"),L=n("0YW8"),k=n("6MCL"),I=n("yEOx"),M=n.n(I),R=n("KLKn"),T=n.n(R),F=function(t,e){return Object.keys(e).forEach((function(n){t.attr(n,e[n])})),t},V=function(t){return""===t.y.label?t.y.width:t.y.width+30},B=function(t){var e,n;return""===t.x.label?t.x.height:t.x.height+30+(null!==(e=null==t||null===(n=t.x)||void 0===n?void 0:n.margin)&&void 0!==e?e:0)},P=function(t){var e=t.axis;return t.width-2*t.margin.left-V(e)},z=n("STQx"),D=n("RuFW"),W=n("Up1k"),U=n("6iqo"),Z=n("7hpd"),H=function(t,e){if(t){var n=e.margin,r=e.width,a=e.height,i=e.className;t.attr("class",i).attr("width",r).attr("height",a).attr("viewBox","0 0 "+r+" "+a).append("g").attr("transform","translate("+n.left+","+n.top+")")}},Q=function(){function t(){this.x=Object(w.a)(),this.y=Object(L.a)(),this.innerScaleBand=Object(L.a)(),this.dataSets=[[]],this.domain=[0,0],this.props={axis:M()(W.a),bar:{grouped:{paddingInner:.1,paddingOuter:0},paddingInner:.1,paddingOuter:0,overlayMargin:.1},className:"torando-d3",colorScheme:E.a,center:!0,data:{bins:[],colorScheme:[],counts:[]},delay:0,domain:{max:null,min:null},duration:400,grid:W.b,groupLayout:r.b.GROUPED,height:200,margin:{bottom:0,left:5,right:0,top:5},showBinPercentages:!1,splitBins:["Left","Right"],stroke:{color:"#005870",dasharray:"",linecap:"butt",width:0},tip:z.a,tipContainer:"body",tipContentFn:function(t,e,n){return t[e]+"<br />"+n},visible:{},width:200}}var e=t.prototype;return e.create=function(t,e){void 0===e&&(e={});var n=this.props;this.mergeProps(e),this.svg=function(t,e,n){if(e){e.selectAll("svg > *").remove(),e.remove();var r=t.getElementsByTagName("svg");r.length>0&&t.removeChild(r[0])}return e=Object(O.a)(t).append("svg"),n&&e.attr("id",n),e}(t,void 0);var r=n.margin,a=n.width,i=n.height,o=n.className;H(this.svg,{margin:r,width:a,height:i,className:o});var u=Object(z.b)(n.tipContainer,this.tipContainer);this.tipContent=u.tipContent,this.tipContainer=u.tipContainer;var c,s=[(c=this.svg).append("g").attr("class","grid gridX"),c.append("g").attr("class","grid gridY")];this.gridX=s[0],this.gridY=s[1],this.xAxisContainer2=this.svg.append("g").attr("class","xAxisContainer2"),this.container=this.svg.append("g").attr("class","histogram-container");var l=function(t){return[t.append("g").attr("class","x-axis"),t.append("g").attr("class","y-axis"),t.append("g"),t.append("g"),t.append("g").attr("class","x-axis-bottom"),t.append("g").attr("class","y-axis-left")]}(this.svg);this.xAxisContainer=l[0],this.yAxisContainer=l[1],this.xAxisLabel=l[2],this.yAxisLabel=l[3],this.update(n)},e.drawAxes=function(){var t,e,n,r,a,i,o,u,c,s,l=this.props,d=this.svg,h=this.x,f=this.y,p=this.innerScaleBand,v=this.yAxisContainer,b=(this.domain,this.xAxisContainer),m=this.xAxisContainer2,g=l.bar,w=l.data,j=l.groupLayout,O=l.margin,_=l.width,A=l.height,E=l.axis,S=w.counts.reduce((function(t,e){return e.data.length>t?e.data.length:t}),0),C=P(l),I=function(t){var e=t.height,n=t.margin,r=t.axis;return e-2*n.top-B(r)}(l)-20,M=w.counts.map((function(t){return t.label}));f.domain(w.bins).rangeRound([I,0]).paddingInner(Object(D.d)(g)),p.domain(Object(D.c)({groupLayout:j})?["main"]:M).rangeRound([0,f.bandwidth()]).paddingInner(Object(D.f)(l.bar));var R=y(h).tickFormat((function(t){var e,n,r=t.toString().replace("-","");return Object(U.c)(E.x)?"time"===E.x.scale?Object(k.a)(null!==(n=E.x.dateFormat)&&void 0!==n?n:"")(new Date(r)):isNaN(Number(t))?r:Object(N.a)(null!==(e=E.x.numberFormat)&&void 0!==e?e:"")(Number(r)):r}));Object(U.d)({axis:R,axisLength:C,scaleBand:h,axisConfig:E.x,limitByValues:!1,valuesCount:10}),this.calculateDomain();var T=Object(L.b)(),z=y(T).tickPadding(20).tickSize(0);T.range([Number(_)/4,Number(_)*(3/4)-2*O.top-E.y.width]).domain(l.splitBins);var W=x(f);Object(U.e)({axis:W,valuesCount:S,axisLength:I,axisConfig:E.y,scaleBand:f,limitByValues:!0}),h.range([0,Number(_)-2*O.top-E.y.width]).domain(this.domain).nice();var Z=A-B(l.axis)-O.top-20;null==b||b.attr("transform","translate("+V(E)+","+Z+")").call(R),null==m||m.attr("transform","translate("+V(E)+","+Z+")").call(z),W.tickPadding(Number(h(0))+10),null==v||v.attr("transform","translate("+(V(E)+Number(h(0)))+", "+O.top+" )").call(W),F(null==d?void 0:d.selectAll(".y-axis .domain, .y-axis .tick line"),null!==(t=null===(e=E.y)||void 0===e?void 0:e.style)&&void 0!==t?t:{}),F(null==d?void 0:d.selectAll(".y-axis .tick text"),null!==(n=null===(r=E.y)||void 0===r||null===(a=r.text)||void 0===a?void 0:a.style)&&void 0!==n?n:{}),F(null==d?void 0:d.selectAll(".x-axis .domain, .x-axis .tick line"),null!==(i=null===(o=E.x)||void 0===o?void 0:o.style)&&void 0!==i?i:{}),F(null==d?void 0:d.selectAll(".x-axis .tick text"),null!==(u=null===(c=E.x)||void 0===c||null===(s=c.text)||void 0===s?void 0:s.style)&&void 0!==u?u:{})},e.calculateDomain=function(){var t=this.props,e=t.data,n=t.center,r=e.counts.reduce((function(t,e){return t.concat(e.data[0])}),[]),a=e.counts.reduce((function(t,e){return t.concat(e.data[1])}),[]);if(this.domain=[Object(U.a)(-Math.max.apply(Math,Object(C.a)(r))),Object(U.a)(Math.max.apply(Math,Object(C.a)(a)))],n){var i=Math.max(Math.max.apply(Math,Object(C.a)(r)),this.domain[1]);this.domain=[Object(U.a)(-i),Object(U.a)(i)]}return this.domain},e.updateChart=function(t,e){var n,a,i=this.props,o=this.container,u=this.tipContainer,c=this.yAxisLabel,s=this.x,l=this.innerScaleBand,d=this.tipContent,h=this.y,f=i.axis,p=i.height,v=i.margin,b=i.delay,m=i.duration,g=i.tip,y=i.showBinPercentages,x=function(t){var e=t.reduce((function(t,e){return e.forEach((function(e,n){var r=e.side,a=e.groupLabel;t[a]||(t[a]={left:0,right:0}),t[a][r]=t[a][r]+e.value})),t}),{});return t.map((function(t,n){return t.map((function(t){var n=t.side,r=t.groupLabel,a=e[r][n];return Object.assign({},t,{percent:0===a?0:Math.round(t.value/a*100)})}))}))}(e),w=Object(j.a)(i.colorScheme),O=P(i),_=null==o?void 0:o.selectAll("g").data(x),A=null==_?void 0:_.enter().append("g").merge(_).attr("transform",(function(t){var e=h(t[0].label);return void 0===e&&(e=0),"translate("+V(f)+", "+(v.top+e)+")"})).selectAll("rect").data((function(t){return t}));null==A||A.enter().append("rect").attr("width",0).attr("x",(function(t){return Number(s(0))})).attr("class",(function(t){return"bar "+t.side})).on("click",Object(Z.a)(i.onClick)).on("mouseover",Object(Z.c)({bins:t,hover:i.bar.hover,colors:w,tipContentFn:i.tipContentFn,tipContent:d,tip:g,tipContainer:u})).on("mousemove",(function(){return g.fx.move(u)})).on("mouseout",Object(Z.b)({tip:g,tipContainer:u,colors:w})).merge(A).attr("y",(function(t,e){return i.groupLayout===r.b.OVERLAID?Math.floor(e/2)*i.bar.overlayMargin:Number(l(String(t.groupLabel)))})).attr("height",(function(t,e){return Object(D.b)(Math.floor(e/2),i.groupLayout,i.bar,l)})).attr("fill",(function(t,e){return w(String(t.groupLabel))})).transition().duration(m).delay(b).attr("x",Number((function(t,e){var n="left"===t.side?-t.value:t.value;return s(Math.min(0,n))}))).attr("width",(function(t){var e="left"===t.side?-t.value:t.value;return Math.abs(Number(s(e))-Number(s(0)))}));var E=null==_?void 0:_.enter().append("g").merge(_).attr("transform",(function(t){var e=h(t[0].label);return void 0===e&&(e=0),"translate("+V(f)+", "+(v.top+e)+")"})).selectAll("text").data((function(t){return t}));null==E||E.enter().append("text").attr("width",0).attr("x",(function(t){var e="left"===t.side?-40:40;return Number(s(0))+e})).attr("class","percentage-label").style("text-anchor","middle").style("font-size","0.675rem").merge(E).text((function(t,e){return y?t.percent+"%":""})).attr("y",(function(t,e){return Object(D.b)(0,i.groupLayout,i.bar,l)/2+(e<2?0:14)})).attr("fill",(function(t,e){return w(String(t.groupLabel))})).transition().duration(m).delay(b).attr("x",(function(t){var e="left"===t.side?-20:20,n="left"===t.side?-t.value:t.value;return Number(s(n))+e})).attr("width",(function(t){var e="left"===t.side?-t.value:t.value;return Math.abs(Number(s(e))-Number(s(0)))})),null==E||E.exit().remove(),null==A||A.exit().remove(),null==_||_.exit().remove();var S=null==c?void 0:c.selectAll("text").data([null!==(n=f.y.label)&&void 0!==n?n:""]);null==S||S.enter().append("text").attr("class","y-axis-label").merge(S).attr("transform","translate(0 ,"+(p-V(i.axis)-2*v.left)+")").style("text-anchor","middle").text((function(t){return t}));var C=null==c?void 0:c.selectAll("text").data([null!==(a=f.x.label)&&void 0!==a?a:""]);null==C||C.enter().append("text").attr("class","x-axis-label").merge(C).attr("transform","rotate(-90)").attr("y",0).attr("x",0-(O/2-2*v.top)).attr("dy","1em").style("text-anchor","middle").text((function(t){return t}))},e.mergeProps=function(t){var e=this.props;T()(e,t,(function(t,e,n,r,a,i){if(["data"].includes(n))return e}))},e.update=function(t){var e=this,n=this.props;if(n.data&&n.data.bins){this.mergeProps(t);var r=n.margin,a=n.width,i=n.height,o=n.className,u=n.data,c=n.visible;H(this.svg,{margin:r,width:a,height:i,className:o}),this.dataSets=[],u.counts.forEach((function(t){t.data.forEach((function(n,r){n.forEach((function(n,a){e.dataSets[a]||(e.dataSets[a]=[]),e.dataSets[a].push({side:0===r?"left":"right",groupLabel:t.label,colorRef:t.label,label:u.bins[a],value:!1!==c[u.bins[a]]&&!1!==c[t.label]?n:0})}))}))})),this.drawAxes(),this.updateChart(u.bins,this.dataSets)}},e.destroy=function(){var t;null===(t=this.svg)||void 0===t||t.selectAll("svg > *").remove()},t}(),G=(o.Component,n("Ruab"),n("uZNN")),q=(n("cYOT"),n("ress")),J=(n("+2RS"),n("faMQ")),K=n("o6j4"),X=(n("EGO9"),n("UBVB")),Y=(n("iNqd"),n("72gv"));n("8UuD"),n("1pFL"),n("V9dP"),n("+yjv"),n("v4Q5")},fxeQ:function(t,e,n){var r=n("LSEb")(n("s3UK"),"WeakMap");t.exports=r},gwRl:function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,a=t.length;++n<r;)t[a+n]=e[n];return t}},h0av:function(t,e,n){var r=n("6iN7"),a=n("Lalj"),i=n("SyCk");t.exports=function(t){return i(t)?r(t):a(t)}},iXK7:function(t,e,n){var r=n("naAV"),a=n("5+lF"),i=n("7qnD"),o=n("G9gt"),u=n("vvBr");t.exports=function(t,e,n){var c=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return a(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return u(t,n);case"[object Map]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return i(t);case"[object Set]":return new c;case"[object Symbol]":return o(t)}}},"n7E+":function(t,e,n){"use strict";e.a=["#4bbcad","#d54539","#5ab94d","#8a5cd3","#a4b243","#ba5ccd","#54995c","#cf47a1","#d29f3e","#5c6fda","#c36528","#5fa6dc","#d74770","#7d7430","#8a529e","#df9273","#5f74b8","#ac5450","#d192d7","#b26088"]},rV0Y:function(t,e,n){var r=n("LSEb")(n("s3UK"),"Promise");t.exports=r},s3t7:function(t,e,n){var r=n("VNQV"),a=n("0KRy"),i=n("rV0Y"),o=n("b2OE"),u=n("fxeQ"),c=n("GI0s"),s=n("bE7W"),l=s(r),d=s(a),h=s(i),f=s(o),p=s(u),v=c;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||a&&"[object Map]"!=v(new a)||i&&"[object Promise]"!=v(i.resolve())||o&&"[object Set]"!=v(new o)||u&&"[object WeakMap]"!=v(new u))&&(v=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?s(n):"";if(r)switch(r){case l:return"[object DataView]";case d:return"[object Map]";case h:return"[object Promise]";case f:return"[object Set]";case p:return"[object WeakMap]"}return e}),t.exports=v},tBK6:function(t,e,n){"use strict";var r=n("CZaE"),a=n("q1tI"),i=n.n(a),o=n("n7E+"),u={cursor:"pointer",display:"inline-block",height:"1rem",margin:"0.25rem 0.5rem",width:"1rem"},c={listStyle:"none",padding:0,margin:0},s={display:"flex",alignItems:"center"};e.a=function(t){var e=t.className,n=t.theme,a=void 0===n?o.a:n,l=t.data,d=t.onSelect,h=t.visible,f=Object(r.a)(a),p=l.bins;return i.a.createElement("div",{className:e},i.a.createElement("ul",{style:c},p.map((function(t){var e=h.hasOwnProperty(t)&&h[t]||!h.hasOwnProperty(t);return i.a.createElement("li",{key:t,style:s},i.a.createElement("div",{style:Object.assign({},u,{backgroundColor:e?f(t):"#FFF",border:"2px solid "+f(t)}),onClick:function(){return d(t)}}),i.a.createElement("div",null,t))}))))}},"tb+2":function(t,e,n){var r=n("07F0"),a=n("E7Xw"),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,u=o?function(t){return null==t?[]:(t=Object(t),r(o(t),(function(e){return i.call(t,e)})))}:a;t.exports=u},wnk4:function(t,e,n){var r=n("V2ZB"),a=n("h0av");t.exports=function(t,e){return t&&r(e,a(e),t)}},yEOx:function(t,e,n){var r=n("0711");t.exports=function(t){return r(t,5)}},zIph:function(t,e,n){var r=n("6TGQ"),a=n("B4/L"),i=n("Vujp");t.exports=function(t){return r(t,i,a)}},zlak:function(t,e,n){var r=n("s3t7"),a=n("T9Ud");t.exports=function(t){return a(t)&&"[object Set]"==r(t)}}}]);
//# sourceMappingURL=7a016cf43b93993ddef5c9256c2e99a4fc0a4552-1d7c58b62e17b415e5cb.js.map