(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[3],{
/***/"5vyd":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return I}));
/* harmony import */var r=n("w0mW"),a=n.n(r),o=n("tQYX"),i=n.n(o),l=n("WHWN"),u=n.n(l),c=n("whR3"),s=n.n(c),p=n("ERkP"),f=n.n(p),d=n("aWzz"),h=n.n(d),y=n("ZjjC"),b=n("YdzT"),g=n("Z21r"),m=n("QkhF"),v=n("3oRc");
/* harmony import */function O(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var I=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=w(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))).clipId=i()(e)&&void 0!==e.clipId?e.clipId:a()("victory-clip-"),n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n=t,(r=[{key:"calculateAttributes",value:function(e){var t=e.polar,n=e.origin,r=e.clipWidth,a=void 0===r?0:r,o=e.clipHeight,i=void 0===o?0:o,l=e.translateX,u=void 0===l?0:l,c=e.translateY,s=void 0===c?0:c,p=b.a.getPadding({padding:e.clipPadding}),f=e.radius||b.a.getRadius(e);return{x:(t?n.x:u)-p.left,y:(t?n.y:s)-p.top,width:Math.max((t?f:a)+p.left+p.right,0),height:Math.max((t?f:i)+p.top+p.bottom,0)}}},{key:"renderClippedGroup",value:function(e,t){var n=e.style,r=e.events,a=e.transform,o=e.children,i=e.className,l=e.groupComponent,u=e.tabIndex,c=this.renderClipComponent(e,t),p=s()({className:i,style:n,transform:a,key:"clipped-group-".concat(t),clipPath:"url(#".concat(t,")")},r);
return f.a.cloneElement(l,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){P(e,t,n[t])}))}return e}({},p,{"aria-label":e["aria-label"],tabIndex:u}),[c].concat(O(f.a.Children.toArray(o))))}},{key:"renderGroup",value:function(e){var t=e.style,n=e.events,r=e.transform,a=e.children,o=e.className,i=e.groupComponent,l=e.tabIndex;
return f.a.cloneElement(i,s()({className:o,style:t,transform:r,"aria-label":e["aria-label"],tabIndex:l},n),a)}},{key:"renderClipComponent",value:function(e,t){var n,r=e.polar,a=e.origin,o=e.clipWidth,i=void 0===o?0:o,l=e.clipHeight,u=void 0===l?0:l,c=e.translateX,p=void 0===c?0:c,d=e.translateY,h=void 0===d?0:d,y=e.circleComponent,g=e.rectComponent,m=e.clipPathComponent,v=b.a.getPadding({padding:e.clipPadding}),O=v.top,P=v.bottom,x=v.left,w=v.right;if(r){var I=e.radius||b.a.getRadius(e),j={r:Math.max(I+x+w,I+O+P,0),cx:a.x-x,cy:a.y-O};n=f.a.cloneElement(y,j)}else{var A={x:p-x,y:h-O,width:Math.max(i+x+w,0),height:Math.max(u+O+P,0)};n=f.a.cloneElement(g,A)}
return f.a.cloneElement(m,s()({key:"clip-path-".concat(t)},e,{clipId:t}),n)}},{key:"getClipValue",value:function(e,t){var n={x:e.clipWidth,y:e.clipHeight};if(void 0!==n[t])return n[t];var r=b.a.getRange(e,t);return r&&Math.abs(r[0]-r[1])||void 0}},{key:"getTranslateValue",value:function(e,t){var n={x:e.translateX,y:e.translateY};if(void 0!==n[t])return n[t];var r=b.a.getRange(e,t);return r?Math.min.apply(Math,O(r)):void 0}},{key:"render",value:function(){var e=this.getClipValue(this.props,"y"),t=this.getClipValue(this.props,"x");if(void 0===t||void 0===e)return this.renderGroup(this.props);var n=this.getTranslateValue(this.props,"x"),r=this.getTranslateValue(this.props,"y"),a=u()({},this.props,{clipHeight:e,clipWidth:t,translateX:n,translateY:r});return this.renderClippedGroup(a,this.clipId)}}])&&x(n.prototype,r),o&&x(n,o),t}(f.a.Component);Object.defineProperty(I,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryClipContainer"}),Object.defineProperty(I,"role",{configurable:!0,enumerable:!0,writable:!0,value:"container"}),Object.defineProperty(I,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{"aria-label":h.a.string,children:h.a.oneOfType([h.a.arrayOf(h.a.node),h.a.node]),circleComponent:h.a.element,className:h.a.string,clipHeight:y.a.nonNegative,clipId:h.a.oneOfType([h.a.number,h.a.string]),clipPadding:h.a.shape({top:h.a.number,bottom:h.a.number,left:h.a.number,right:h.a.number}),clipPathComponent:h.a.element,clipWidth:y.a.nonNegative,events:h.a.object,groupComponent:h.a.element,origin:h.a.shape({x:y.a.nonNegative,y:y.a.nonNegative}),polar:h.a.bool,radius:y.a.nonNegative,style:h.a.object,tabIndex:h.a.number,transform:h.a.string,translateX:h.a.number,translateY:h.a.number}}),Object.defineProperty(I,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{circleComponent:f.a.createElement(m.a,null),rectComponent:f.a.createElement(v.a,null),clipPathComponent:f.a.createElement(g.a,null),groupComponent:f.a.createElement("g",null)}})},
/***/QhI6:
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"a",(function(){/* binding */return I}));
// EXTERNAL MODULE: /Users/paulcowan/projects/cuttingedge/node_modules/react/index.js
var r=n("ERkP"),a=n.n(r),o=n("aWzz"),i=n.n(o),l=n("WiuN"),u=n("5Y5w"),c=n.n(u),s=n("Kkar"),p=n.n(s),f=n("Xq/B"),d=function(e){
// d3 turns null into 0 and undefined into NaN, which we don't want.
if(null!==e)switch(typeof e){case"undefined":return!1;case"number":
// The standard `isNaN` is fine in this case since we already know the
// type is number.
return!isNaN(e)&&e!==Number.POSITIVE_INFINITY&&e!==Number.NEGATIVE_INFINITY;case"string":
// d3 might not *actually* be able to interpolate the string, but it
// won't cause any issues to let it try.
return!0;case"boolean":
// d3 turns Booleans into integers, which we don't want. Sure, we could
// interpolate from 0 -> 1, but we'd be sending a non-Boolean to
// something expecting a Boolean.
return!1;case"object":
// Don't try to interpolate class instances (except Date or Array).
return e instanceof Date||Array.isArray(e)||p()(e);case"function":
// Careful! There may be extra properties on function objects that the
// component expects to access - for instance, it may be a `d3.scale()`
// function, which has its own methods attached. We don't know if the
// component is only going to call the function (in which case it's
// safely interpolatable) or if it's going to access special properties
// (in which case our function generated from `interpolateFunction` will
// most likely cause an error. We could check for enumerable properties
// on the function object here to see if it's a "plain" function, but
// let's just require that components prevent such function props from
// being animated in the first place.
return!0}return!1},h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return function(r){return r<n?e:t}},y=function(e,t){return function(n){return n>=1?t:function(){
/* eslint-disable no-invalid-this */
var r="function"===typeof e?e.apply(this,arguments):e,a="function"===typeof t?t.apply(this,arguments):t;return Object(f.a)(r,a)(n)}}},b=function e(t,n){var r,a,o,i=function(e){return Array.isArray(e)?c()(e,"key"):e},l={},u={};// When the value is an array, attempt to sort by "key" so that animating nodes may be identified
// based on "key" instead of index
for(r in null!==t&&"object"===typeof t||(t={}),null!==n&&"object"===typeof n||(n={}),n)r in t?l[r]=(a=i(t[r]),o=i(n[r]),a!==o&&d(a)&&d(o)?"function"===typeof a||"function"===typeof o?y(a,o):"object"===typeof a&&p()(a)||"object"===typeof o&&p()(o)?e(a,o):Object(f.a)(a,o):h(a,o)):u[r]=n[r];return function(e){for(r in l)u[r]=l[r](e);return u}},g=function(e,t){
// If the values are strictly equal, or either value is not interpolatable,
// just use either the start value `a` or end value `b` at every step, as
// there is no reasonable in-between value.
return e!==t&&d(e)&&d(t)?"function"===typeof e||"function"===typeof t?y(e,t):p()(e)||p()(t)?b(e,t):"string"===typeof e||"string"===typeof t?function(e,t){var n=function(e){return"string"===typeof e?e.replace(/,/g,""):e};return Object(f.a)(n(e),n(t))}(e,t):Object(f.a)(e,t):h(e,t)},m=n("o+f0"),v=n("F0GY"),O=n.n(v);
// CONCATENATED MODULE: /Users/paulcowan/projects/cuttingedge/node_modules/victory-core/es/victory-animation/victory-animation.js
function P(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
/*global setTimeout:false */var I=function(e){function t(e,n){var r,a,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=this,
/* defaults */
(r=!(o=(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))||"object"!==typeof o&&"function"!==typeof o?w(a):o).state={data:Array.isArray(r.props.data)?r.props.data[0]:r.props.data,animationInfo:{progress:0,animating:!1}},r.interpolator=null,r.queue=Array.isArray(r.props.data)?r.props.data.slice(1):[],
/* build easing function */
r.ease=l[r.toNewName(r.props.easing)],
/*
      There is no autobinding of this in ES6 classes
      so we bind functionToBeRunEachFrame to current instance of victory animation class
    */
r.functionToBeRunEachFrame=r.functionToBeRunEachFrame.bind(w(r)),r.timer=r.context.animationTimer,r}var n,r,a;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){
// Length check prevents us from triggering `onEnd` in `traverseQueue`.
this.queue.length&&this.traverseQueue()}},{key:"componentDidUpdate",value:function(e){if(!O()(this.props,e))
/* If the previous animation didn't finish, force it to complete before starting a new one */
if(this.interpolator&&this.state.animationInfo&&this.state.animationInfo.progress<1)
// eslint-disable-next-line react/no-did-update-set-state
this.setState({data:this.interpolator(1),animationInfo:{progress:1,animating:!1,terminating:!0}});else{var t;
/* Extend the tween queue */
/* cancel existing loop if it exists */
this.timer.unsubscribe(this.loopID),
/* If an object was supplied */
Array.isArray(this.props.data)?(t=this.queue).push.apply(t,P(this.props.data)):(
// Replace the tween queue. Could set `this.queue = [nextProps.data]`,
// but let's reuse the same array.
this.queue.length=0,this.queue.push(this.props.data))
/* Start traversing the tween queue */,this.traverseQueue()}}},{key:"componentWillUnmount",value:function(){this.loopID?this.timer.unsubscribe(this.loopID):this.timer.stop()}},{key:"toNewName",value:function(e){
// d3-ease changed the naming scheme for ease from "linear" -> "easeLinear" etc.
var t;return"ease".concat((t=e)&&t[0].toUpperCase()+t.slice(1))}
/* Traverse the tween queue */},{key:"traverseQueue",value:function(){var e=this;if(this.queue.length){
/* Get the next index */
var t=this.queue[0];
/* compare cached version to next props */this.interpolator=g(this.state.data,t),
/* reset step to zero */
this.props.delay?setTimeout((function(){e.loopID=e.timer.subscribe(e.functionToBeRunEachFrame,e.props.duration)}),this.props.delay):this.loopID=this.timer.subscribe(this.functionToBeRunEachFrame,this.props.duration)}else this.props.onEnd&&this.props.onEnd()}
/* every frame we... */},{key:"functionToBeRunEachFrame",value:function(e,t){var n=(
/*
        step can generate imprecise values, sometimes greater than 1
        if this happens set the state to 1 and return, cancelling the timer
      */
t=void 0!==t?t:this.props.duration)?e/t:1;if(n>=1)return this.setState({data:this.interpolator(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),this.loopID&&this.timer.unsubscribe(this.loopID),this.queue.shift(),void this.traverseQueue();
/*
        if we're not at the end of the timer, set the state by passing
        current step value that's transformed by the ease function to the
        interpolator, which is cached for performance whenever props are received
      */this.setState({data:this.interpolator(this.ease(n)),animationInfo:{progress:n,animating:n<1}})}},{key:"render",value:function(){return this.props.children(this.state.data,this.state.animationInfo)}}])&&x(n.prototype,r),a&&x(n,a),t}(a.a.Component);Object.defineProperty(I,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryAnimation"}),Object.defineProperty(I,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{children:i.a.func,data:i.a.oneOfType([i.a.object,i.a.array]),delay:i.a.number,duration:i.a.number,easing:i.a.oneOf(["back","backIn","backOut","backInOut","bounce","bounceIn","bounceOut","bounceInOut","circle","circleIn","circleOut","circleInOut","linear","linearIn","linearOut","linearInOut","cubic","cubicIn","cubicOut","cubicInOut","elastic","elasticIn","elasticOut","elasticInOut","exp","expIn","expOut","expInOut","poly","polyIn","polyOut","polyInOut","quad","quadIn","quadOut","quadInOut","sin","sinIn","sinOut","sinInOut"]),onEnd:i.a.func}}),Object.defineProperty(I,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{data:{},delay:0,duration:1e3,easing:"quadInOut"}}),Object.defineProperty(I,"contextType",{configurable:!0,enumerable:!0,writable:!0,value:m.a})},
/***/WpnC:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return k}));
/* harmony import */var r=n("2q8g"),a=n.n(r),o=n("tQYX"),i=n.n(o),l=n("w0mW"),u=n.n(l),c=n("WHWN"),s=n.n(c),p=n("whR3"),f=n.n(p),d=n("ERkP"),h=n.n(d),y=n("aWzz"),b=n.n(y),g=n("ZjjC"),m=n("mN9r"),v=n("rdj5"),O=n("o+f0"),P=n("YdzT");
/* harmony import */function x(){return(x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){I(e,t,n[t])}))}return e}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var k=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=A(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))).containerId=i()(e)&&void 0!==e.containerId?e.containerId:u()("victory-container-"),n.savePortalRef=function(e){return n.portalRef=e,e},n.portalUpdate=function(e,t){return n.portalRef.portalUpdate(e,t)},n.portalRegister=function(){return n.portalRef.portalRegister()},n.portalDeregister=function(e){return n.portalRef.portalDeregister(e)},n.saveContainerRef=e&&a()(e.containerRef)?e.containerRef:function(e){return n.containerRef=e,e},n.shouldHandleWheel=e&&e.events&&e.events.onWheel,n.shouldHandleWheel&&(n.handleWheel=function(e){return e.preventDefault()}),n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}},{key:"componentWillUnmount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}},{key:"getIdForElement",value:function(e){return"".concat(this.containerId,"-").concat(e)}// overridden in custom containers
},{key:"getChildren",value:function(e){return e.children}// Get props defined by the Open UI Automation (OUIA) 1.0-RC spec
// See https://ouia.readthedocs.io/en/latest/README.html#ouia-component
},{key:"getOUIAProps",value:function(e){var t=e.ouiaId,n=e.ouiaSafe,r=e.ouiaType;return w({},t&&{"data-ouia-component-id":t},r&&{"data-ouia-component-type":r},void 0!==n&&{"data-ouia-safe":n})}},{key:"renderContainer",value:function(e,t,n){var r=e.title,a=e.desc,o=e.portalComponent,i=e.className,l=e.width,u=e.height,c=e.portalZIndex,p=e.responsive,d=this.getChildren(e),y=p?{width:"100%",height:"100%"}:{width:l,height:u},b=f()({pointerEvents:"none",touchAction:"none",position:"relative"},y),g=f()({zIndex:c,position:"absolute",top:0,left:0},y),m=f()({pointerEvents:"all"},y),O=f()({overflow:"visible"},y),P={width:l,height:u,viewBox:t.viewBox,preserveAspectRatio:t.preserveAspectRatio,style:O};
return h.a.createElement(v.a.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},h.a.createElement("div",x({style:s()({},n,b),className:i,ref:this.saveContainerRef},this.getOUIAProps(e)),h.a.createElement("svg",x({},t,{style:m}),r?h.a.createElement("title",{id:this.getIdForElement("title")},r):null,a?h.a.createElement("desc",{id:this.getIdForElement("desc")},a):null,d),h.a.createElement("div",{style:g},h.a.cloneElement(o,w({},P,{ref:this.savePortalRef})))))}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,r=e.responsive,a=e.events,o=e.title,i=e.desc,l=e.tabIndex,u=e.preserveAspectRatio,c=e.role,s=r?this.props.style:P.a.omit(this.props.style,["height","width"]),p=f()({width:t,height:n,tabIndex:l,role:c,"aria-labelledby":[o&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[i&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:r?"0 0 ".concat(t," ").concat(n):void 0,preserveAspectRatio:r?u:void 0},a);return this.renderContainer(this.props,p,s)}}])&&j(n.prototype,r),o&&j(n,o),t}(h.a.Component);Object.defineProperty(k,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryContainer"}),Object.defineProperty(k,"role",{configurable:!0,enumerable:!0,writable:!0,value:"container"}),Object.defineProperty(k,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{"aria-describedby":b.a.string,"aria-labelledby":b.a.string,children:b.a.oneOfType([b.a.arrayOf(b.a.node),b.a.node]),className:b.a.string,containerId:b.a.oneOfType([b.a.number,b.a.string]),containerRef:b.a.func,desc:b.a.string,events:b.a.object,height:g.a.nonNegative,name:b.a.string,origin:b.a.shape({x:g.a.nonNegative,y:g.a.nonNegative}),ouiaId:b.a.oneOfType([b.a.number,b.a.string]),ouiaSafe:b.a.bool,ouiaType:b.a.string,polar:b.a.bool,portalComponent:b.a.element,portalZIndex:g.a.integer,preserveAspectRatio:b.a.string,responsive:b.a.bool,role:b.a.string,style:b.a.object,tabIndex:b.a.number,theme:b.a.object,title:b.a.string,width:g.a.nonNegative}}),Object.defineProperty(k,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{className:"VictoryContainer",portalComponent:h.a.createElement(m.a,null),portalZIndex:99,responsive:!0,role:"img"}}),Object.defineProperty(k,"contextType",{configurable:!0,enumerable:!0,writable:!0,value:O.a})},
/***/x3kA:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("MwrP"),a=n.n(r),o=n("WHWN"),i=n.n(o),l=n("whR3"),u=n.n(l),c=n("ERkP"),s=n.n(c),p=n("aWzz"),f=n.n(p),d=n("wZ4c"),h=n("3oRc"),y=n("ZjjC"),b=n("YdzT"),g=n("8pmS"),m=n("KXbq"),v=n("x89p"),O=n("mEpq"),P=n("INPf"),x=n("7/qQ");
/* harmony import */function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}
/*eslint no-magic-numbers: ["error", { "ignore": [-0.5, 0.5, 0, 1, 2] }]*/(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var j={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Ser\xadavek', 'Trebuchet MS', sans-serif",stroke:"transparent"},A=function(e,t){return e.datum?b.a.scalePoint(e,e.datum)[t]:0},k=function(e){var t=e&&e.fontSize;if("number"===typeof t)return t;if(void 0===t||null===t)return j.fontSize;if("string"===typeof t){var n=+t.replace("px","");return isNaN(n)?(v.a.warn("fontSize should be expressed as a number of pixels"),j.fontSize):n}return j.fontSize},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.isArray(e)?e[t]||e[0]:e},S=function(e){var t=e.backgroundStyle,n=e.backgroundPadding;return Array.isArray(t)&&!a()(t)||Array.isArray(n)&&!a()(n)},T=function(e,t){var n=e.direction,r=e.textAnchor,a=e.x,o=e.dx;if("rtl"===n)return a-t;switch(r){case"middle":return Math.round(a-t/2);case"end":return Math.round(a-t);default:
// start
return a+(o||0)}},C=function(e,t){var n=e.verticalAnchor,r=e.y,a=e.originalDy,o=r+(void 0===a?0:a);switch(n){case"start":return Math.floor(o);case"end":return Math.ceil(o-t);default:
// middle
return Math.floor(o-t/2)}},N=function(e,t){return S(e)?function(e,t){var n=e.dy,r=e.dx,a=e.transform,o=e.backgroundStyle,l=e.backgroundPadding,u=e.backgroundComponent,c=e.inline,p=e.y,f=t.map((function(e,a){var o=E(t,a-1),i=e.textSize,u=e.fontSize*e.lineHeight,s=Math.ceil(u),f=E(l,a),d=E(l,a-1),h=c&&r||0,y=a&&!c?o.fontSize*o.lineHeight+d.top+d.bottom:n-.5*u-(e.fontSize-e.capHeight);return{textHeight:s,labelSize:i,heightWithPadding:s+f.top+f.bottom,widthWithPadding:i.width+f.left+f.right+h,y:p,fontSize:e.fontSize,dy:y}}));return f.map((function(t,n){var r=T(e,t.labelSize.width),d=f.slice(0,n+1).reduce((function(e,t){return e+t.dy}),p),h=E(l,n),y=t.heightWithPadding,b=c?function(e,t,n){var r=e.textAnchor,a=t.map((function(e){return e.widthWithPadding})),o=-a.reduce((function(e,t){return e+t}),0)/2;switch(r){case"start":return a.reduce((function(e,t,r){return r<n?e+t:e}),0);case"end":return a.reduce((function(e,t,r){return r>n?e-t:e}),0);default:
// middle
return a.reduce((function(e,t,r){return r===n?e+t/2:e+(r<n?t:0)}),o)}}(e,f,n)+r-h.left:r,g=c?C(e,y)-h.top:d,m={key:"tspan-background-".concat(n),height:y,style:E(o,n),width:t.widthWithPadding,transform:a,x:b-h.left,y:g};
return s.a.cloneElement(u,i()({},u.props,m))}))}(e,t):function(e,t){var n=e.dx,r=void 0===n?0:n,a=e.transform,o=e.backgroundComponent,l=e.backgroundStyle,u=e.inline,c=e.backgroundPadding,p=e.capHeight,f=t.map((function(e){return e.textSize})),d=u?Math.max.apply(Math,I(f.map((function(e){return e.height})))):f.reduce((function(e,n,r){var a=r?0:p/2;return e+n.height*(t[r].lineHeight-a)}),0),h=u?f.reduce((function(e,t,n){var a=n?r:0;return e+t.width+a}),0):Math.max.apply(Math,I(f.map((function(e){return e.width})))),y=T(e,h),b=C(e,d),g={key:"background",height:d+c.top+c.bottom,style:l,transform:a,width:h+c.left+c.right,x:u?y-c.left:y+r-c.left,y:b};
return s.a.cloneElement(o,i()({},o.props,g))}(e,t)},R=function(e,t,n){var r=t.inline,a=E(e,n);return n&&!r?function(e,t,n){var r=E(e,t),a=E(e,t-1),o=a.fontSize*a.lineHeight,i=r.fontSize*r.lineHeight,l=a.fontSize-a.capHeight,u=r.fontSize-r.capHeight,c=o-a.fontSize/2+r.fontSize/2-o/2+i/2-u/2+l/2;return S(n)?c+r.backgroundPadding.top+a.backgroundPadding.bottom:c}(e,n,t):r?0===n?a.backgroundPadding.top:void 0:a.backgroundPadding.top},z=function(e){
/* Potential evaluated props are
    1) text
    2) style
    3) everything else
  */
var t=function(e,t){if(void 0!==e&&null!==e){if(Array.isArray(e))return e.map((function(e){return b.a.evaluateProp(e,t)}));var n=b.a.evaluateProp(e,t);if(void 0!==n&&null!==n)return Array.isArray(n)?n:"".concat(n).split("\n")}}(e.text,e),n=function(e,t){var n=function(e){e=e?i()({},e,j):j;var n=b.a.evaluateStyle(e,t);return u()({},n,{fontSize:k(n)})};return Array.isArray(e)&&!a()(e)?e.map((function(e){return n(e)})):n(e)}(e.style,u()({},e,{text:t})),r=function(e,t){if(e)return Array.isArray(e)&&!a()(e)?e.map((function(e){return b.a.evaluateStyle(e,t)})):b.a.evaluateStyle(e,t)}(e.backgroundStyle,u()({},e,{text:t,style:n})),o=function(e){if(e.backgroundPadding&&Array.isArray(e.backgroundPadding))return e.backgroundPadding.map((function(t){var n=b.a.evaluateProp(t,e);return b.a.getPadding({padding:n})}));var t=b.a.evaluateProp(e.backgroundPadding,e);return b.a.getPadding({padding:t})}(u()({},e,{text:t,style:n,backgroundStyle:r})),l=b.a.evaluateProp(e.id,e);return u()({},e,{backgroundStyle:r,backgroundPadding:o,style:n,text:t,id:l})},_=function(e){var t=b.a.evaluateProp(e.ariaLabel,e),n=E(e.style),r=function(e){var t=b.a.evaluateProp(e.lineHeight,e);return Array.isArray(t)&&a()(t)?[1]:t}(e),o=e.direction?b.a.evaluateProp(e.direction,e):"inherit",i=e.textAnchor?b.a.evaluateProp(e.textAnchor,e):n.textAnchor||"start",l=e.verticalAnchor?b.a.evaluateProp(e.verticalAnchor,e):n.verticalAnchor||"middle",c=e.dx?b.a.evaluateProp(e.dx,e):0,s=function(e,t,n){var r=e.dy?b.a.evaluateProp(e.dy,e):0,a=e.inline?1:e.text.length,o=b.a.evaluateProp(e.capHeight,e),i=t?b.a.evaluateProp(t,e):"middle",l=I(Array(a).keys()).map((function(t){return E(e.style,t).fontSize})),u=I(Array(a).keys()).map((function(e){return E(n,e)}));if("start"===i)return r+(o/2+u[0]/2)*l[0];if(e.inline)return"end"===i?r+(o/2-u[0]/2)*l[0]:r+o/2*l[0];if(1===a)return"end"===i?r+(o/2+(.5-a)*u[0])*l[0]:r+(o/2+(.5-a/2)*u[0])*l[0];var c=I(Array(a).keys()).reduce((function(e,t){return e+(o/2+(.5-a)*u[t])*l[t]/a}),0);return"end"===i?r+c:r+c/2+o/2*u[a-1]*l[a-1]}(e,l,r),p=void 0!==e.x?e.x:A(e,"x"),f=void 0!==e.y?e.y:A(e,"y"),d=function(e,t,n){var r=e.polar,a=E(e.style),o=r?g.a.getPolarAngle(e):0,i=void 0===a.angle?b.a.evaluateProp(e.angle,e):a.angle,l=void 0===i?o:i,u=e.transform||a.transform,c=u&&b.a.evaluateProp(u,e),s=l&&{rotate:[l,t,n]};return c||l?m.a.toTransformString(c,s):void 0}(e,p,f);return u()({},e,{ariaLabel:t,lineHeight:r,direction:o,textAnchor:i,verticalAnchor:l,dx:c,dy:s,originalDy:e.dy,transform:d,x:p,y:f})},H=function(e,t){var n=e.ariaLabel,r=e.inline,a=e.className,o=e.title,i=e.events,l=e.direction,u=e.text,c=e.textAnchor,p=e.dx,f=e.dy,d=e.transform,h=e.x,y=e.y,g=e.desc,m=e.id,v=e.tabIndex,O=e.tspanComponent,P=e.textComponent,x=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){w(e,t,n[t])}))}return e}({"aria-label":n,key:"text"},i,{direction:l,dx:p,x:h,y:y+f,transform:d,className:a,title:o,desc:b.a.evaluateProp(g,e),tabIndex:b.a.evaluateProp(v,e),id:m}),I=u.map((function(n,a){var o=t[a].style,i={key:"".concat(m,"-key-").concat(a),x:r?void 0:h,dx:r?p+t[a].backgroundPadding.left:p,dy:R(t,e,a),textAnchor:o.textAnchor||c,style:o,children:n};
return s.a.cloneElement(O,i)}));
return s.a.cloneElement(P,x,I)},W=function(e){if(null===(e=z(e)).text||void 0===e.text)return null;var t=_(e),n=t.text,r=t.style,a=t.capHeight,o=t.backgroundPadding,i=t.lineHeight,l=n.map((function(e,t){var n=E(r,t),l=O.a.convertLengthToPixels("".concat(a,"em"),n.fontSize),u=E(i,t);return{style:n,fontSize:n.fontSize||j.fontSize,capHeight:l,text:e,textSize:O.a.approximateTextSize(e,n),lineHeight:u,backgroundPadding:E(o,t)}})),u=H(t,l);if(e.backgroundStyle){var c=[N(t,l),u],p=s.a.cloneElement(e.groupComponent,{},c);return e.renderInPortal?s.a.createElement(d.a,null,p):p}return e.renderInPortal?s.a.createElement(d.a,null,u):u};W.displayName="VictoryLabel",W.role="label",W.defaultStyles=j,W.propTypes={active:f.a.bool,angle:f.a.oneOfType([f.a.string,f.a.number,f.a.func]),ariaLabel:f.a.oneOfType([f.a.string,f.a.func]),backgroundComponent:f.a.element,backgroundPadding:f.a.oneOfType([f.a.number,f.a.object,f.a.array]),backgroundStyle:f.a.oneOfType([f.a.object,f.a.array]),capHeight:f.a.oneOfType([f.a.string,y.a.nonNegative,f.a.func]),className:f.a.string,data:f.a.array,datum:f.a.any,desc:f.a.oneOfType([f.a.string,f.a.func]),direction:f.a.oneOf(["rtl","ltr","inherit"]),dx:f.a.oneOfType([f.a.number,f.a.string,f.a.func]),dy:f.a.oneOfType([f.a.number,f.a.string,f.a.func]),events:f.a.object,groupComponent:f.a.element,id:f.a.oneOfType([f.a.number,f.a.string,f.a.func]),index:f.a.oneOfType([f.a.number,f.a.string]),inline:f.a.bool,labelPlacement:f.a.oneOf(["parallel","perpendicular","vertical"]),lineHeight:f.a.oneOfType([f.a.string,y.a.nonNegative,f.a.func,f.a.array]),origin:f.a.shape({x:y.a.nonNegative,y:y.a.nonNegative}),polar:f.a.bool,renderInPortal:f.a.bool,scale:f.a.shape({x:y.a.scale,y:y.a.scale}),style:f.a.oneOfType([f.a.object,f.a.array]),tabIndex:f.a.oneOfType([f.a.number,f.a.func]),text:f.a.oneOfType([f.a.string,f.a.number,f.a.func,f.a.array]),textAnchor:f.a.oneOfType([f.a.oneOf(["start","middle","end","inherit"]),f.a.func]),textComponent:f.a.element,title:f.a.string,transform:f.a.oneOfType([f.a.string,f.a.object,f.a.func]),tspanComponent:f.a.element,verticalAnchor:f.a.oneOfType([f.a.oneOf(["start","middle","end"]),f.a.func]),x:f.a.oneOfType([f.a.number,f.a.string]),y:f.a.oneOfType([f.a.number,f.a.string])},W.defaultProps={backgroundComponent:s.a.createElement(h.a,null),groupComponent:s.a.createElement("g",null),direction:"inherit",textComponent:s.a.createElement(x.a,null),tspanComponent:s.a.createElement(P.a,null),capHeight:.71,
// Magic number from d3.
lineHeight:1},
/* harmony default export */t.a=W}}]);
//# sourceMappingURL=7c2fe9ca71d2d4c839914525b72b580d6be96835-23d5e9c4.08b20ae2.chunk.js.map