(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[11],{
/***/IQD4:
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: /Users/paulcowan/projects/cuttingedge/node_modules/lodash/isEmpty.js
var a=n("MwrP"),r=n.n(a),o=n("whR3"),i=n.n(o),l=n("aWzz"),s=n.n(l),c=n("ERkP"),u=n.n(c),p=n("IGaW"),d=n("mEpq"),f=n("qLfl"),g=n("ZjjC"),y=n("38nX"),m=n("x3kA"),b=n("tEgK"),h=n("WpnC"),x=n("K127"),v=n("WHWN"),k=n.n(v),A=n("Wugh"),O=n("YdzT");
// CONCATENATED MODULE: /Users/paulcowan/projects/cuttingedge/node_modules/victory-axis/es/helper-methods.js
function w(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 C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P={top:-1,left:-1,right:1,bottom:1},j=function(e,t){var n=e.style||{};t=t||{};return{parent:k()(n.parent,t.parent,{height:"100%",width:"100%"}),axis:k()({},n.axis,t.axis),axisLabel:k()({},n.axisLabel,t.axisLabel),grid:k()({},n.grid,t.grid),ticks:k()({},n.ticks,t.ticks),tickLabels:k()({},n.tickLabels,t.tickLabels)}},E=function(e,t,n){var a=e.position,r=e.transform;return{x1:r.x,y1:r.y,x2:r.x+a.x2,y2:r.y+a.y2,style:t,datum:n}},L=function(e,t,n,a,r){var o=e.position,i=e.transform;return{style:t,x:i.x+o.x,y:i.y+o.y,verticalAnchor:n.verticalAnchor,textAnchor:n.textAnchor,angle:t.angle,text:r,datum:a}},S=function(e,t,n){var a=e.edge,r=e.transform;return{x1:r.x,y1:r.y,x2:a.x+r.x,y2:a.y+r.y,style:t,datum:n}},T=function(e,t,n){
var a=t.orientation,r=t.axis,o=p.a.getAxisValue(e,r);return{top:{x:0,y:void 0!==o?o:n.y},bottom:{x:0,y:void 0!==o?o:e.height-n.y},left:{x:void 0!==o?o:n.x,y:0},right:{x:void 0!==o?o:e.width-n.x,y:0}}[a]},z=function(e,t,n){var a=e.tickStyle,r=e.labelStyle,o=a.size||0,i=o+(a.padding||0)+(r.padding||0),l=P[t];return{x:n?l*i:0,x2:n?l*o:0,y:n?0:l*i,y2:n?0:l*o}},_=function(e,t,n){return{x:n?t.x:e+t.x,y:n?e+t.y:t.y}},D=function(e,t){var n=t.orientation,a=t.padding,r=t.isVertical,o=-P[n];return{x:r?o*(e.width-(a.left+a.right)):0,y:r?0:o*(e.height-(a.top+a.bottom))}},M=function(e,t,n){var a=t.padding,r=t.orientation,o="right"===r?a.right:a.left,i="top"===r?a.top:a.bottom;return{x:e.crossAxis?n.x-o:0,y:e.crossAxis?n.y-i:0}},V=function(e,t){var n=function(e,t){var n=t.style,a=t.padding,r=t.isVertical,o=t.orientation,l=t.labelPadding,s=t.stringTicks,c=t.ticks,u=t.scale,p=t.axis,d=e.polar,f=e.horizontal,g={scale:C({},p,u),polar:d,horizontal:f,ticks:c,stringTicks:s},y="right"===o?a.right:a.left,m="top"===o?a.top:a.bottom,b=n.axisLabel.fontSize||14,h=null!==e.offsetX&&void 0!==e.offsetX?e.offsetX:y,x=null!==e.offsetY&&void 0!==e.offsetY?e.offsetY:m,v=c.map((function(t,a){var r=s?e.tickValues[t-1]:t;return O.a.evaluateStyle(n.ticks,i()({},g,{tick:r,index:a})).size||0})),k=b+2*Math.max.apply(Math,w(v))+l,A=1.2*b;return{x:null!==h&&void 0!==h?h:r?k:A,y:null!==x&&void 0!==x?x:r?A:k}}(e,t);return{globalTransform:T(e,t,n),gridOffset:M(e,t,n),gridEdge:D(e,t)}},W=function(e){var t=function(e){var t=e.theme,n=e.dependentAxis,a=t&&t.axis&&t.axis.style,r=n?"dependentAxis":"independentAxis",o=t&&t[r]&&t[r].style;return a&&o?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((function(e,t){return e[t]=k()({},o[t],a[t]),e}),{}):o||a}(e),n=j(e,t),a=O.a.getPadding(e),r=p.a.isVertical(e),o=function(e,t){var n=t.axisLabel||{};if(void 0!==n.padding&&null!==n.padding)return n.padding;var a=p.a.isVertical(e),r=n.fontSize||14;// TODO: magic numbers
/*eslint-disable no-magic-numbers*/return e.label?r*(a?2.3:1.6):0;
/*eslint-enable no-magic-numbers*/}(e,n),i=p.a.stringTicks(e)?e.tickValues:void 0,l=p.a.getAxis(e),s=function(e){if(e.orientation)return e.orientation;var t={dependent:e.horizontal?"bottom":"left",independent:e.horizontal?"left":"bottom"};return e.dependentAxis?t.dependent:t.independent}(e),c=function(e){var t=p.a.getAxis(e),n=function(e,t){var n=e.orientation,a=e.horizontal;return n?{top:"x",bottom:"x",left:"y",right:"y"}[n]:a?"x"===t?"y":"x":t}(e,t),a=A.a.getBaseScale(e,t),r=e.domain&&e.domain[t]||p.a.getDomain(e)||a.domain();return a.range(O.a.getRange(e,n)),a.domain(r),a}(e),u=p.a.getDomain(e),d=p.a.getTicks(e,c,e.crossAxis),f=p.a.getTickFormat(e,c);return{axis:l,style:n,padding:a,orientation:s,isVertical:r,labelPadding:o,stringTicks:i,anchors:function(e,t){var n={top:"end",left:"end",right:"start",bottom:"start"}[e];return{textAnchor:t?n:"middle",verticalAnchor:t?"middle":n}}(s,r),scale:c,ticks:d,tickFormat:f,domain:u}},R=function(e,t){e=p.a.modifyProps(e,t);var n=W(e),a=n.axis,r=n.style,o=n.orientation,l=n.isVertical,s=n.scale,c=n.ticks,u=n.tickFormat,d=n.anchors,f=n.domain,g=n.stringTicks,y=n.name,m="x"===a?"y":"x",b=e,h=b.width,x=b.height,v=b.standalone,k=b.theme,A=b.polar,w=b.padding,j=b.horizontal,T=V(e,n),D=T.globalTransform,M=T.gridOffset,R=T.gridEdge,N={scale:C({},a,s),polar:A,horizontal:j,ticks:c,stringTicks:g},Y=function(e,t,n){var a=t.style,r=t.padding,o=t.isVertical,i=e.width,l=e.height;return{style:a.axis,x1:o?n.x:r.left+n.x,x2:o?n.x:i-r.right+n.x,y1:o?r.top+n.y:n.y,y2:o?l-r.bottom+n.y:n.y}}(e,n,D),F=function(e,t,n){var a=t.style,r=t.orientation,o=t.padding,i=t.labelPadding,l=t.isVertical,s=P[r],c=o.left+o.right,u=o.top+o.bottom,p=s<0?"end":"start",d=a.axisLabel,f=l?-90:0;return{x:l?n.x+s*i:(e.width-c)/2+o.left+n.x,y:l?(e.height-u)/2+o.top+n.y:s*i+n.y,verticalAnchor:d.verticalAnchor||p,textAnchor:d.textAnchor||"middle",angle:void 0===d.angle?f:d.angle,style:d,text:e.label}}(e,n,D),K={parent:i()({style:r.parent,ticks:c,standalone:v,theme:k,width:h,height:x,padding:w,domain:f,name:y},N)},X={dimension:m,range:C({},m,O.a.getRange(e,m)),scale:e.scale&&e.scale[m]?C({},m,e.scale[m]):void 0};return c.reduce((function(e,t,n){var p=g?g[n]:t,f=u(t,n,c),y=function(e,t){return{tickStyle:O.a.evaluateStyle(e.ticks,t),labelStyle:O.a.evaluateStyle(e.tickLabels,t),gridStyle:O.a.evaluateStyle(e.grid,t)}}(r,i()({},N,{tick:p,tickValue:t,index:n,text:f})),m={position:z(y,o,l),transform:_(s(t),D,l)},b={edge:R,transform:{x:l?-M.x+D.x:s(t)+D.x,y:l?s(t)+D.y:M.y+D.y}};return e[n]={axis:i()({dimension:a},N,Y),axisLabel:i()({},N,F),ticks:i()({},N,E(m,y.tickStyle,t)),tickLabels:i()({},N,L(m,y.labelStyle,d,t,f)),grid:i()({},N,X,S(b,y.gridStyle,t))},e}),K)};function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y(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 F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function X(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={width:450,height:300,padding:50},G=function(e){function t(){return F(this,t),X(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var n,a,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,(a=[{key:"renderLine",value:function(e){var t=e.axisComponent,n=this.getComponentProps(t,"axis",0);
return u.a.cloneElement(t,n)}},{key:"renderLabel",value:function(e){var t=e.axisLabelComponent;if(!e.label)return null;var n=this.getComponentProps(t,"axisLabel",0);
return u.a.cloneElement(t,n)}},{key:"renderGridAndTicks",value:function(e){var t=this,n=e.tickComponent,a=e.tickLabelComponent,o=e.gridComponent,i=e.name,l=function(e){var t=e.style,n=void 0===t?{}:t,a=e.events,o=void 0===a?{}:a;return"transparent"!==n.stroke&&"none"!==n.stroke&&0!==n.strokeWidth||!r()(o)};return this.dataKeys.map((function(r,s){var c=t.getComponentProps(n,"ticks",s),p=u.a.cloneElement(n,c),d=l(p.props)?p:void 0,f=t.getComponentProps(o,"grid",s),g=u.a.cloneElement(o,f),y=l(g.props)?g:void 0,m=t.getComponentProps(a,"tickLabels",s),b=[y,d,u.a.cloneElement(a,m)].filter(Boolean);
return u.a.cloneElement(e.groupComponent,{key:"".concat(i,"-tick-group-").concat(r)},b)}))}},{key:"fixLabelOverlap",value:function(e,t){var n=p.a.isVertical(t),a=n?t.height:t.width,r=function(e){return e.type&&"label"===e.type.role},o=e.map((function(e){return e.props.children})).reduce((function(e,t){return e.concat(t)}),[]).filter(r).map((function(e){return e.props})),l=o.reduce((function(e,t){var a=function(e){return"object"===typeof e?i()({},{top:0,right:0,bottom:0,left:0},e):{top:e,right:e,bottom:e,left:e}}(t.style.padding),r=d.a.approximateTextSize(t.text,{angle:t.angle,fontSize:t.style.fontSize,letterSpacing:t.style.letterSpacing,fontFamily:t.style.fontFamily});return e+(n?r.height+a.top+a.bottom:r.width+a.right+a.left)}),0),s=Math.floor(a*e.length/l),c=Math.ceil(e.length/s)||1,u=function(e){return e.props.children.filter(r).reduce((function(e,t){return(n?t.props.y:t.props.x)||0}),0)};return e.sort((function(e,t){return n?u(t)-u(e):u(e)-u(t)}//ordinary axis has left-right orientation
)).filter((function(e,t){return t%c===0}))}// Overridden in native versions
},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var e=t.animationWhitelist,n=p.a.modifyProps(this.props,I);if(this.shouldAnimate())return this.animateComponent(n,e);var a=this.renderGridAndTicks(n),r=n.fixLabelOverlap?this.fixLabelOverlap(a,n):a,o=[this.renderLine(n),this.renderLabel(n)].concat(Y(r));return n.standalone?this.renderContainer(n.containerComponent,o):u.a.cloneElement(n.groupComponent,{},o)}}])&&K(n.prototype,a),o&&K(n,o),t}(u.a.Component);Object.defineProperty(G,"animationWhitelist",{configurable:!0,enumerable:!0,writable:!0,value:["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"]}),Object.defineProperty(G,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryAxis"}),Object.defineProperty(G,"role",{configurable:!0,enumerable:!0,writable:!0,value:"axis"}),Object.defineProperty(G,"defaultTransitions",{configurable:!0,enumerable:!0,writable:!0,value:{onExit:{duration:500},onEnter:{duration:500}}}),Object.defineProperty(G,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:
// CONCATENATED MODULE: /Users/paulcowan/projects/cuttingedge/node_modules/victory-axis/es/victory-axis.js
function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){N(e,t,n[t])}))}return e}({},f.a.baseProps,{axisComponent:s.a.element,axisLabelComponent:s.a.element,axisValue:s.a.oneOfType([s.a.number,s.a.string,s.a.object]),categories:s.a.oneOfType([s.a.arrayOf(s.a.string),s.a.shape({x:s.a.arrayOf(s.a.string),y:s.a.arrayOf(s.a.string)})]),crossAxis:s.a.bool,dependentAxis:s.a.bool,events:s.a.arrayOf(s.a.shape({target:s.a.oneOf(["axis","axisLabel","grid","ticks","tickLabels"]),eventKey:s.a.oneOfType([s.a.array,g.a.allOfType([g.a.integer,g.a.nonNegative]),s.a.string]),eventHandlers:s.a.object})),fixLabelOverlap:s.a.bool,gridComponent:s.a.element,groupComponent:s.a.element,invertAxis:s.a.bool,label:s.a.any,offsetX:s.a.number,offsetY:s.a.number,orientation:s.a.oneOf(["top","bottom","left","right"]),origin:s.a.shape({x:s.a.number,y:s.a.number}),stringMap:s.a.object,style:s.a.shape({parent:s.a.object,axis:s.a.object,axisLabel:s.a.object,grid:s.a.object,ticks:s.a.object,tickLabels:s.a.object}),tickComponent:s.a.element,tickCount:g.a.allOfType([g.a.integer,g.a.greaterThanZero]),tickFormat:s.a.oneOfType([s.a.func,g.a.homogeneousArray]),tickLabelComponent:s.a.element,tickValues:g.a.homogeneousArray})}),Object.defineProperty(G,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{axisComponent:u.a.createElement(y.a,null),axisLabelComponent:u.a.createElement(m.a,null),tickLabelComponent:u.a.createElement(m.a,null),tickComponent:u.a.createElement(y.a,null),gridComponent:u.a.createElement(y.a,null),standalone:!0,theme:b.a.grayscale,containerComponent:u.a.createElement(h.a,null),groupComponent:u.a.createElement("g",{role:"presentation"}),fixLabelOverlap:!1}}),Object.defineProperty(G,"getDomain",{configurable:!0,enumerable:!0,writable:!0,value:p.a.getDomain}),Object.defineProperty(G,"getAxis",{configurable:!0,enumerable:!0,writable:!0,value:p.a.getAxis}),Object.defineProperty(G,"getStyles",{configurable:!0,enumerable:!0,writable:!0,value:function(e){return j(e,I.style)}}),Object.defineProperty(G,"getBaseProps",{configurable:!0,enumerable:!0,writable:!0,value:function(e){return R(e,I)}}),Object.defineProperty(G,"expectedComponents",{configurable:!0,enumerable:!0,writable:!0,value:["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"]});
/* harmony default export */t.a=Object(x.a)(G,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]});
/***/},
/***/jyTu:
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"a",(function(){/* binding */return F}));
// EXTERNAL MODULE: /Users/paulcowan/projects/cuttingedge/node_modules/lodash/isEmpty.js
var a=n("MwrP"),r=n.n(a),o=n("whR3"),i=n.n(o),l=n("WHWN"),s=n.n(l),c=n("aWzz"),u=n.n(c),p=n("ERkP"),d=n.n(p),f=n("5wvN"),g=n("YdzT"),y=n("qLfl"),m=n("ZjjC"),b=n("qUf9"),h=n("WpnC"),x=n("tEgK"),v=n("DUuG"),k=n("IQD4"),A=n("NdlO"),O=n("IGaW"),w=n("Wugh");
// CONCATENATED MODULE: /Users/paulcowan/projects/cuttingedge/node_modules/victory-chart/es/helper-methods.js
function C(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-disable func-style */
/* eslint-disable no-use-before-define */(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 P={width:450,height:300,padding:50};function j(e,t,n){var a=O.a.findAxisComponents([e]);return a.length>0?function(e,t,n){var a=n.domain,r=n.scale,o=n.stringMap,i=n.categories,l=n.horizontal,c=n.orientations,u=O.a.modifyProps(s()({horizontal:l,theme:t.theme},e.props)),p=e.type.getAxis(u),d=!1!==u.crossAxis,f=u.orientation||c[p],g=l?_(t,n,f):z(t,n,f);return{stringMap:o,horizontal:l,categories:i,startAngle:t.startAngle,endAngle:t.endAngle,innerRadius:t.innerRadius,domain:a,scale:r,offsetY:void 0!==u.offsetY?u.offsetY:g.y,offsetX:void 0!==u.offsetX?u.offsetX:g.x,crossAxis:d,orientation:f}}(a[0],t,n):{categories:n.categories,domain:n.domain,range:n.range,scale:n.scale,stringMap:n.stringMap,horizontal:n.horizontal}}function E(e,t,n){var a=t||"positive";return n?{positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}}[a][e]:{positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}}[a][e]}function L(e,t){var n=function(e){var t=e.style&&e.style.parent;return{parent:s()({},t,{height:"100%",width:"100%",userSelect:"none"})}}(e),a=e=g.a.modifyProps(e,P,"chart"),r=a.horizontal,o=a.polar,l=f.a.getStringsFromChildren(e,t),c=f.a.getCategories(e,t,l),u=D(e,t,l),p={x:T(i()({},e,{categories:c}),"x",t),y:T(i()({},e,{categories:c}),"y",t)},d={x:g.a.getRange(e,"x"),y:g.a.getRange(e,"y")},y={x:w.a.getScaleFromProps(e,"x")||f.a.getScale(e,"x"),y:w.a.getScaleFromProps(e,"y")||f.a.getScale(e,"y")},m={x:y.x.domain(p.x).range(r?d.y:d.x),y:y.y.domain(p.y).range(r?d.x:d.y)},b=o?g.a.getPolarOrigin(e):O.a.getOrigin(p),h={x:O.a.getOriginSign(b.x,p.x),y:O.a.getOriginSign(b.y,p.y)},x={x:E("x",h.y,r),y:E("y",h.x,r)};return{categories:c,domain:p,range:d,horizontal:r,scale:m,stringMap:u,style:n,origin:b,padding:g.a.getPadding(e),orientations:x}}var S=function(e,t){var n=d.a.Children.toArray(e.children),a=C(n);if(0===n.length)a.push(t.independent,t.dependent);else{var r={dependent:O.a.getAxisComponentsWithParent(n,"dependent"),independent:O.a.getAxisComponentsWithParent(n,"independent")};0===r.dependent.length&&0===r.independent.length&&(a=e.prependDefaultAxes?[t.independent,t.dependent].concat(a):a.concat([t.independent,t.dependent]))}return a},T=function(e,t,n){n=n||d.a.Children.toArray(e.children);var a=f.a.getDomain(e,t,n),r=O.a.getAxisComponent(n,t);return r&&r.props&&r.props.invertAxis?a.concat().reverse():a},z=function(e,t,n){var a=t.scale,r=t.origin,o=t.domain,i=t.padding,l=i.top,s=i.bottom,c=i.left,u=i.right,p="bottom"===n||"top"===n?n:t.orientations.x,d="left"===n||"right"===n?n:t.orientations.y,f={y:"bottom"===p?s:l,x:"left"===d?c:u},g="left"===d?0:e.width,y="bottom"===p?e.height:0,m=r.x===o.x[0]||r.x===o.x[1]?0:a.x(r.x),b=r.y===o.y[0]||r.y===o.y[1]?0:a.y(r.y);return{x:m?Math.abs(g-m):f.x,y:b?Math.abs(y-b):f.y}},_=function(e,t,n){var a=t.scale,r=t.origin,o=t.domain,i=t.padding,l=i.top,s=i.bottom,c=i.left,u=i.right,p="bottom"===n||"top"===n?n:t.orientations.x,d="left"===n||"right"===n?n:t.orientations.y,f={x:"bottom"===p?s:l,y:"left"===d?c:u},g="left"===d?0:e.width,y="bottom"===p?e.height:0,m=r.x===o.x[0]||r.x===o.x[1]?0:a.x(r.x),b=r.y===o.y[0]||r.y===o.y[1]?0:a.y(r.y);return{y:m?Math.abs(y-m):f.x,x:b?Math.abs(g-b):f.y}},D=function(e,t,n){return{x:n.x&&0!==n.x.length?n.x.reduce((function(e,t,n){return e[t]=n+1,e}),{}):null,y:n.y&&0!==n.y.length?n.y.reduce((function(e,t,n){return e[t]=n+1,e}),{}):null}},M=n("F0GY"),V=n.n(M);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 R(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function N(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Y={width:450,height:300,padding:50},F=function(e){function t(e){var n,a,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=this,(n=!(r=(t.__proto__||Object.getPrototypeOf(t)).call(this,e))||"object"!==typeof r&&"function"!==typeof r?N(a):r).state={},e.animate&&(n.state={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},n.setAnimationState=f.a.setAnimationState.bind(N(n))),n}var n,a,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,(a=[{key:"shouldComponentUpdate",value:function(e){return!(this.props.animate&&!V()(this.props,e))||(this.setAnimationState(this.props,e),!1)}},{key:"getNewChildren",value:function(e,t,n){var a=function(e,t,n){t=t||S(e);var a=(n=n||L(e,t)).style.parent,r=e.height,o=e.polar,i=e.theme,l=e.width,c=n,u=c.origin,p=c.horizontal,f=e.name||"chart";return t.map((function(t,c){var g=t.type&&t.type.role,y=Array.isArray(t.props.style)?t.props.style:s()({},t.props.style,{parent:a}),m=j(t,e,n),b=t.props.name||"".concat(f,"-").concat(g,"-").concat(c),h=s()({horizontal:p,height:r,polar:o,theme:i,width:l,style:y,name:b,origin:o?u:void 0,padding:n.padding,key:"".concat(b,"-key-").concat(c),standalone:!1},m);
return d.a.cloneElement(t,h)}))}(e,t,n),r=f.a.getAnimationProps.bind(this),o=a.map((function(t,n){var a=i()({animate:r(e,t,n)},t.props);
return d.a.cloneElement(t,a)}));if(e.style&&e.style.background){var l=function(e,t){var n=e.backgroundComponent,a=e.polar?t.range.y[1]:t.range.y[0]-t.range.y[1],r=t.range.x[1]-t.range.x[0],o=e.horizontal?t.scale.y.range()[0]:t.scale.x.range()[0],i=e.horizontal?t.scale.x.range()[1]:t.scale.y.range()[1],l=e.polar?t.origin.x:o,c=e.polar?t.origin.y:i,u=e.name||"chart",p={height:a,polar:e.polar,scale:t.scale,style:e.style.background,x:l,y:c,key:"".concat(u,"-background"),width:r};
return d.a.cloneElement(n,s()({},n.props,p))}(e,n);o.unshift(l)}return o}},{key:"renderContainer",value:function(e,t){var n=s()({},e.props,t);
return d.a.cloneElement(e,n)}},{key:"getContainerProps",value:function(e,t){var n=e.width,a=e.height,r=e.standalone,o=e.theme,i=e.polar,l=e.name,s=t.domain,c=t.scale,u=t.style,p=t.origin,d=t.radius,f=t.horizontal;return{domain:s,scale:c,width:n,height:a,standalone:r,theme:o,style:u.parent,horizontal:f,name:l,polar:i,radius:d,origin:i?p:void 0}}},{key:"render",value:function(){var e=this.state&&this.state.nodesWillExit&&this.state.oldProps||this.props,t=g.a.modifyProps(e,Y,"chart"),n=t.eventKey,a=t.containerComponent,o=t.groupComponent,i=t.standalone,l=t.externalEventMutations,s=e.polar?t.defaultPolarAxes:t.defaultAxes,c=S(t,s),u=L(t,c),p=this.getNewChildren(t,c,u),y=i?this.getContainerProps(t,u):{},m=i?this.renderContainer(a,y):o,b=f.a.getAllEvents(e);return r()(b)?d.a.cloneElement(m,m.props,p):d.a.createElement(v.a,{container:m,eventKey:n,events:b,externalEventMutations:l},p)}}])&&R(n.prototype,a),o&&R(n,o),t}(d.a.Component);Object.defineProperty(F,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryChart"}),Object.defineProperty(F,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:
// CONCATENATED MODULE: /Users/paulcowan/projects/cuttingedge/node_modules/victory-chart/es/victory-chart.js
function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){W(e,t,n[t])}))}return e}({},y.a.baseProps,{backgroundComponent:u.a.element,children:u.a.oneOfType([u.a.arrayOf(u.a.node),u.a.node]),defaultAxes:u.a.shape({independent:u.a.element,dependent:u.a.element}),defaultPolarAxes:u.a.shape({independent:u.a.element,dependent:u.a.element}),endAngle:u.a.number,innerRadius:m.a.nonNegative,prependDefaultAxes:u.a.bool,startAngle:u.a.number})}),Object.defineProperty(F,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{backgroundComponent:d.a.createElement(b.a,null),containerComponent:d.a.createElement(h.a,null),defaultAxes:{independent:d.a.createElement(k.a,null),dependent:d.a.createElement(k.a,{dependentAxis:!0})},defaultPolarAxes:{independent:d.a.createElement(A.a,null),dependent:d.a.createElement(A.a,{dependentAxis:!0})},groupComponent:d.a.createElement("g",null),standalone:!0,theme:x.a.grayscale}}),Object.defineProperty(F,"expectedComponents",{configurable:!0,enumerable:!0,writable:!0,value:["groupComponent","containerComponent"]})}}]);
//# sourceMappingURL=7c2fe9ca71d2d4c839914525b72b580d6be96835-6fd1cb6d.49c6550f.chunk.js.map