!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("chart.js")):"function"==typeof define&&define.amd?define(["exports","react","chart.js"],e):e(t.ReactChartjs2={},t.React,t.Chart)}(this,function(t,e,n){"use strict";function r(t,e){return e={exports:{}},t(e,e.exports),e.exports}function o(t){return function(){return t}}function i(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e1?e-1:0),r=1;e>r;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+t.replace(/%s/g,function(){return n[o++]});void 0!==console&&console.error(i);try{throw Error(i)}catch(t){}};g=function(t,e){if(void 0===e)throw Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==e.indexOf("Failed Composite propType: ")&&!t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;n>o;o++)r[o-2]=arguments[o];_.apply(void 0,[e].concat(r))}}}var m=g,j="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";if("production"!==process.env.NODE_ENV)var O=b,w=m,E=j,P={};var I=function(t,e,n,r,o){if("production"!==process.env.NODE_ENV)for(var i in t)if(t.hasOwnProperty(i)){var a;try{O("function"==typeof t[i],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",r||"React class",n,i),a=t[i](e,i,r,n,null,E)}catch(t){a=t}if(w(!a||a instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,i,typeof a),a instanceof Error&&!(a.message in P)){P[a.message]=!0;var u=o?o():"";w(!1,"Failed %s type: %s%s",n,a.message,null!=u?u:"")}}},A=function(t,e){function n(t){var e=t&&(h&&t[h]||t[y]);if("function"==typeof e)return e}function r(t,e){return t===e?0!==t||1/t==1/e:t!==t&&e!==e}function o(t){this.message=t,this.stack=""}function i(t){function n(n,a,u,c,s,f,p){if(c=c||v,f=f||u,p!==j)if(e)b(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==process.env.NODE_ENV&&void 0!==console){var l=c+":"+u;!r[l]&&3>i&&(m(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",f,c),r[l]=!0,i++)}return null==a[u]?n?new o(null===a[u]?"The "+s+" `"+f+"` is marked as required in `"+c+"`, but its value is `null`.":"The "+s+" `"+f+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:t(a,u,c,s,f)}if("production"!==process.env.NODE_ENV)var r={},i=0;var a=n.bind(null,!1);return a.isRequired=n.bind(null,!0),a}function a(t){return i(function(e,n,r,i,a,u){var c=e[n];return s(c)!==t?new o("Invalid "+i+" `"+a+"` of type `"+f(c)+"` supplied to `"+r+"`, expected `"+t+"`."):null})}function u(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(u);if(null===e||t(e))return!0;var r=n(e);if(!r)return!1;var o,i=r.call(e);if(r!==e.entries){for(;!(o=i.next()).done;)if(!u(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!u(a[1]))return!1}return!0;default:return!1}}function c(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function s(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":c(e,t)?"symbol":e}function f(t){if(void 0===t||null===t)return""+t;var e=s(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function p(t){var e=f(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}function l(t){return t.constructor&&t.constructor.name?t.constructor.name:v}var h="function"==typeof Symbol&&Symbol.iterator,y="@@iterator",v="<>",g={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:i(d.thatReturnsNull),arrayOf:function(t){return i(function(e,n,r,i,a){if("function"!=typeof t)return new o("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=e[n];if(!Array.isArray(u))return new o("Invalid "+i+" `"+a+"` of type `"+s(u)+"` supplied to `"+r+"`, expected an array.");for(var c=0;u.length>c;c++){var f=t(u,c,r,i,a+"["+c+"]",j);if(f instanceof Error)return f}return null})},element:function(){return i(function(e,n,r,i,a){var u=e[n];return t(u)?null:new o("Invalid "+i+" `"+a+"` of type `"+s(u)+"` supplied to `"+r+"`, expected a single ReactElement.")})}(),instanceOf:function(t){return i(function(e,n,r,i,a){if(!(e[n]instanceof t)){var u=t.name||v;return new o("Invalid "+i+" `"+a+"` of type `"+l(e[n])+"` supplied to `"+r+"`, expected instance of `"+u+"`.")}return null})},node:function(){return i(function(t,e,n,r,i){return u(t[e])?null:new o("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})}(),objectOf:function(t){return i(function(e,n,r,i,a){if("function"!=typeof t)return new o("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=e[n],c=s(u);if("object"!==c)return new o("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var f in u)if(u.hasOwnProperty(f)){var p=t(u,f,r,i,a+"."+f,j);if(p instanceof Error)return p}return null})},oneOf:function(t){return Array.isArray(t)?i(function(e,n,i,a,u){for(var c=e[n],s=0;t.length>s;s++)if(r(c,t[s]))return null;return new o("Invalid "+a+" `"+u+"` of value `"+c+"` supplied to `"+i+"`, expected one of "+JSON.stringify(t)+".")}):("production"!==process.env.NODE_ENV&&m(!1,"Invalid argument supplied to oneOf, expected an instance of array."),d.thatReturnsNull)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&m(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),d.thatReturnsNull;for(var e=0;t.length>e;e++){var n=t[e];if("function"!=typeof n)return m(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",p(n),e),d.thatReturnsNull}return i(function(e,n,r,i,a){for(var u=0;t.length>u;u++)if(null==(0,t[u])(e,n,r,i,a,j))return null;return new o("Invalid "+i+" `"+a+"` supplied to `"+r+"`.")})},shape:function(t){return i(function(e,n,r,i,a){var u=e[n],c=s(u);if("object"!==c)return new o("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var f in t){var p=t[f];if(p){var l=p(u,f,r,i,a+"."+f,j);if(l)return l}}return null})}};return o.prototype=Error.prototype,g.checkPropTypes=I,g.PropTypes=g,g},T=function(){function t(t,e,n,r,o,i){i!==j&&b(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e};return n.checkPropTypes=d,n.PropTypes=n,n},x=r(function(t){if("production"!==process.env.NODE_ENV){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=A(function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},!0)}else t.exports=T()}),S=function(t,e){return t===e||t!==t&&e!==e},R=function(t,e){for(var n=t.length;n--;)if(S(t[n][0],e))return n;return-1},k=Array.prototype.splice;i.prototype.clear=function(){this.__data__=[],this.size=0},i.prototype.delete=function(t){var e=this.__data__,n=R(e,t);return n>=0&&(n==e.length-1?e.pop():k.call(e,n,1),--this.size,!0)},i.prototype.get=function(t){var e=this.__data__,n=R(e,t);return 0>n?void 0:e[n][1]},i.prototype.has=function(t){return R(this.__data__,t)>-1},i.prototype.set=function(t,e){var n=this.__data__,r=R(n,t);return 0>r?(++this.size,n.push([t,e])):n[r][1]=e,this};var C=i,D="object"==typeof h&&h&&h.Object===Object&&h,N="object"==typeof self&&self&&self.Object===Object&&self,z=D||N||Function("return this")(),$=z.Symbol,M=Object.prototype,V=M.hasOwnProperty,F=M.toString,B=$?$.toStringTag:void 0,U=function(t){var e=V.call(t,B),n=t[B];try{t[B]=void 0;var r=!0}catch(t){}var o=F.call(t);return r&&(e?t[B]=n:delete t[B]),o},q=Object.prototype.toString,L=function(t){return q.call(t)},W="[object Null]",K="[object Undefined]",Y=$?$.toStringTag:void 0,H=function(t){return null==t?void 0===t?K:W:Y&&Y in Object(t)?U(t):L(t)},G=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},J="[object AsyncFunction]",Q="[object Function]",X="[object GeneratorFunction]",Z="[object Proxy]",tt=function(t){if(!G(t))return!1;var e=H(t);return e==Q||e==X||e==J||e==Z},et=z["__core-js_shared__"],nt=function(){var t=/[^.]+$/.exec(et&&et.keys&&et.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),rt=function(t){return!!nt&&nt in t},ot=Function.prototype.toString,it=function(t){if(null!=t){try{return ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""},at=/[\\^$.*+?()[\]{}|]/g,ut=/^\[object .+?Constructor\]$/,ct=Function.prototype,st=Object.prototype,ft=ct.toString,pt=st.hasOwnProperty,lt=RegExp("^"+ft.call(pt).replace(at,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ht=function(t){return!(!G(t)||rt(t))&&(tt(t)?lt:ut).test(it(t))},yt=function(t,e){return null==t?void 0:t[e]},dt=function(t,e){var n=yt(t,e);return ht(n)?n:void 0},vt=dt(z,"Map"),bt=dt(Object,"create"),gt="__lodash_hash_undefined__",_t=Object.prototype.hasOwnProperty,mt=Object.prototype.hasOwnProperty,jt="__lodash_hash_undefined__";a.prototype.clear=function(){this.__data__=bt?bt(null):{},this.size=0},a.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},a.prototype.get=function(t){var e=this.__data__;if(bt){var n=e[t];return n===gt?void 0:n}return _t.call(e,t)?e[t]:void 0},a.prototype.has=function(t){var e=this.__data__;return bt?void 0!==e[t]:mt.call(e,t)},a.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=bt&&void 0===e?jt:e,this};var Ot=a,wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t},Et=function(t,e){var n=t.__data__;return wt(e)?n["string"==typeof e?"string":"hash"]:n.map};u.prototype.clear=function(){this.size=0,this.__data__={hash:new Ot,map:new(vt||C),string:new Ot}},u.prototype.delete=function(t){var e=Et(this,t).delete(t);return this.size-=e?1:0,e},u.prototype.get=function(t){return Et(this,t).get(t)},u.prototype.has=function(t){return Et(this,t).has(t)},u.prototype.set=function(t,e){var n=Et(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var Pt=u,It=200;c.prototype.clear=function(){this.__data__=new C,this.size=0},c.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},c.prototype.get=function(t){return this.__data__.get(t)},c.prototype.has=function(t){return this.__data__.has(t)},c.prototype.set=function(t,e){var n=this.__data__;if(n instanceof C){var r=n.__data__;if(!vt||It-1>r.length)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Pt(r)}return n.set(t,e),this.size=n.size,this};var At=c,Tt="__lodash_hash_undefined__";s.prototype.add=s.prototype.push=function(t){return this.__data__.set(t,Tt),this},s.prototype.has=function(t){return this.__data__.has(t)};var xt=s,St=function(t,e){for(var n=-1,r=null==t?0:t.length;++nu))return!1;var s=i.get(t);if(s&&i.get(e))return s==e;var f=-1,p=!0,l=n&Ct?new xt:void 0;for(i.set(t,e),i.set(e,t);++f-1&&t%1==0&&e>t},me=9007199254740991,je=function(t){return"number"==typeof t&&t>-1&&t%1==0&&me>=t},Oe={};Oe["[object Float32Array]"]=Oe["[object Float64Array]"]=Oe["[object Int8Array]"]=Oe["[object Int16Array]"]=Oe["[object Int32Array]"]=Oe["[object Uint8Array]"]=Oe["[object Uint8ClampedArray]"]=Oe["[object Uint16Array]"]=Oe["[object Uint32Array]"]=!0,Oe["[object Arguments]"]=Oe["[object Array]"]=Oe["[object ArrayBuffer]"]=Oe["[object Boolean]"]=Oe["[object DataView]"]=Oe["[object Date]"]=Oe["[object Error]"]=Oe["[object Function]"]=Oe["[object Map]"]=Oe["[object Number]"]=Oe["[object Object]"]=Oe["[object RegExp]"]=Oe["[object Set]"]=Oe["[object String]"]=Oe["[object WeakMap]"]=!1;var we=function(t){return function(e){return t(e)}},Ee=r(function(t,e){var n=e&&!e.nodeType&&e,r=n&&!0&&t&&!t.nodeType&&t,o=r&&r.exports===n&&D.process,i=function(){try{return o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i}),Pe=Ee&&Ee.isTypedArray,Ie=Pe?we(Pe):function(t){return ce(t)&&je(t.length)&&!!Oe[H(t)]},Ae=Object.prototype.hasOwnProperty,Te=function(t,e){var n=ee(t),r=!n&&ye(t),o=!n&&!r&&ve(t),i=!n&&!r&&!o&&Ie(t),a=n||r||o||i,u=a?ue(t.length,String):[],c=u.length;for(var s in t)!e&&!Ae.call(t,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||_e(s,c))||u.push(s);return u},xe=Object.prototype,Se=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||xe)},Re=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),ke=Object.prototype.hasOwnProperty,Ce=function(t){if(!Se(t))return Re(t);var e=[];for(var n in Object(t))ke.call(t,n)&&"constructor"!=n&&e.push(n);return e},De=function(t){return null!=t&&je(t.length)&&!tt(t)},Ne=function(t){return De(t)?Te(t):Ce(t)},ze=function(t){return ne(t,Ne,ae)},$e=1,Me=Object.prototype.hasOwnProperty,Ve=function(t,e,n,r,o,i){var a=n&$e,u=ze(t),c=u.length;if(c!=ze(e).length&&!a)return!1;for(var s=c;s--;){var f=u[s];if(!(a?f in e:Me.call(e,f)))return!1}var p=i.get(t);if(p&&i.get(e))return p==e;var l=!0;i.set(t,e),i.set(e,t);for(var h=a;++sn;)t=t[Cn(e[n++])];return n&&n==r?t:void 0},Nn=function(t,e,n){var r=null==t?void 0:Dn(t,e);return void 0===r?n:r},zn=function(t,e){return null!=t&&e in Object(t)},$n=function(t,e,n){for(var r=-1,o=(e=Rn(e,t)).length,i=!1;++r-1?o[i?e[a]:a]:void 0}},Hn=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++it?-1:1)*rr:t===t?t:0:0===t?t:0},ir=function(t){var e=or(t),n=e%1;return e===e?n?e-n:e:0},ar=Math.max,ur=(Yn(function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ir(n);return 0>o&&(o=ar(r+o,0)),Hn(t,Kn(e,3),o)}),function(){try{var t=dt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()),cr=function(t,e,n){"__proto__"==e&&ur?ur(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},sr=function(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++oe;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},vr=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},br=function(t,e){var n={};for(var r in t)0>e.indexOf(r)&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},gr=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},_r=function(t){function r(){var e,n,o;yr(this,r);for(var i=arguments.length,a=Array(i),u=0;i>u;u++)a[u]=arguments[u];return e=n=gr(this,t.call.apply(t,[this].concat(a))),n.handleOnClick=function(t){var e=n.chartInstance,r=n.props,o=r.getDatasetAtEvent,i=r.getElementAtEvent,a=r.getElementsAtEvent,u=r.onElementsClick;o&&o(e.getDatasetAtEvent(t),t),i&&i(e.getElementAtEvent(t),t),a&&a(e.getElementsAtEvent(t),t),u&&u(e.getElementsAtEvent(t),t)},n.ref=function(t){n.element=t},o=e,gr(n,o)}return vr(r,t),r.prototype.componentWillMount=function(){this.chartInstance=void 0},r.prototype.componentDidMount=function(){this.renderChart()},r.prototype.componentDidUpdate=function(){if(this.props.redraw)return this.chartInstance.destroy(),void this.renderChart();this.updateChart()},r.prototype.shouldComponentUpdate=function(t){var e=this.props,n=e.type,r=e.options,o=e.plugins,i=e.legend,a=e.height,u=e.width;if(!0===t.redraw)return!0;if(a!==t.height||u!==t.width)return!0;if(n!==t.type)return!0;if(!on(i,t.legend))return!0;if(!on(r,t.options))return!0;var c=this.transformDataProp(t);return!on(this.shadowDataProp,c)||!on(o,t.plugins)},r.prototype.componentWillUnmount=function(){this.chartInstance.destroy()},r.prototype.transformDataProp=function(t){var e=t.data;return"function"==typeof e?e(this.element):e},r.prototype.memoizeDataProps=function(){if(this.props.data){var t=this.transformDataProp(this.props);return this.shadowDataProp=dr({},t,{datasets:t.datasets&&t.datasets.map(function(t){return dr({},t)})}),t}},r.prototype.updateChart=function(){var t=this,e=this.props.options,r=this.memoizeDataProps(this.props);if(this.chartInstance){e&&(this.chartInstance.options=n.helpers.configMerge(this.chartInstance.options,e));var o=this.chartInstance.config.data&&this.chartInstance.config.data.datasets||[],i=r.datasets||[],a=hr(o,this.props.datasetKeyProvider);this.chartInstance.config.data.datasets=i.map(function(e){var n=a[t.props.datasetKeyProvider(e)];if(n&&n.type===e.type){n.data.splice(e.data.length),e.data.forEach(function(t,r){n.data[r]=e.data[r]});var r=br(e,["data"]);return dr({},n,r)}return e});var u=br(r,["datasets"]);this.chartInstance.config.data=dr({},this.chartInstance.config.data,u),this.chartInstance.update()}},r.prototype.renderChart=function(){var t=this.props,e=t.options,o=t.legend,i=t.type,a=t.plugins,u=this.element,c=this.memoizeDataProps();void 0===o||on(r.defaultProps.legend,o)||(e.legend=o),this.chartInstance=new n(u,{type:i,data:c,options:e,plugins:a})},r.prototype.render=function(){var t=this.props,n=t.height,r=t.width;return e.createElement("canvas",{ref:this.ref,height:n,width:r,onClick:this.handleOnClick})},r}(e.Component);_r.getLabelAsKey=function(t){return t.label},_r.propTypes={data:x.oneOfType([x.object,x.func]).isRequired,getDatasetAtEvent:x.func,getElementAtEvent:x.func,getElementsAtEvent:x.func,height:x.number,legend:x.object,onElementsClick:x.func,options:x.object,plugins:x.arrayOf(x.object),redraw:x.bool,type:function(t,e,r){if(!n.controllers[t[e]])return Error("Invalid chart type `"+t[e]+"` supplied to `"+r+"`.")},width:x.number,datasetKeyProvider:x.func},_r.defaultProps={legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:_r.getLabelAsKey};var mr=function(t){function n(){return yr(this,n),gr(this,t.apply(this,arguments))}return vr(n,t),n.prototype.render=function(){var t=this;return e.createElement(_r,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"doughnut"}))},n}(e.Component),jr=function(t){function n(){return yr(this,n),gr(this,t.apply(this,arguments))}return vr(n,t),n.prototype.render=function(){var t=this;return e.createElement(_r,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"pie"}))},n}(e.Component),Or=function(t){function n(){return yr(this,n),gr(this,t.apply(this,arguments))}return vr(n,t),n.prototype.render=function(){var t=this;return e.createElement(_r,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"line"}))},n}(e.Component),wr=function(t){function n(){return yr(this,n),gr(this,t.apply(this,arguments))}return vr(n,t),n.prototype.render=function(){var t=this;return e.createElement(_r,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"bar"}))},n}(e.Component),Er=function(t){function n(){return yr(this,n),gr(this,t.apply(this,arguments))}return vr(n,t),n.prototype.render=function(){var t=this;return e.createElement(_r,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"horizontalBar"}))},n}(e.Component),Pr=function(t){function n(){return yr(this,n),gr(this,t.apply(this,arguments))}return vr(n,t),n.prototype.render=function(){var t=this;return e.createElement(_r,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"radar"}))},n}(e.Component),Ir=function(t){function n(){return yr(this,n),gr(this,t.apply(this,arguments))}return vr(n,t),n.prototype.render=function(){var t=this;return e.createElement(_r,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"polarArea"}))},n}(e.Component),Ar=function(t){function n(){return yr(this,n),gr(this,t.apply(this,arguments))}return vr(n,t),n.prototype.render=function(){var t=this;return e.createElement(_r,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"bubble"}))},n}(e.Component),Tr=function(t){function n(){return yr(this,n),gr(this,t.apply(this,arguments))}return vr(n,t),n.prototype.render=function(){var t=this;return e.createElement(_r,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"scatter"}))},n}(e.Component),xr=n.defaults;t.default=_r,t.Doughnut=mr,t.Pie=jr,t.Line=Or,t.Bar=wr,t.HorizontalBar=Er,t.Radar=Pr,t.Polar=Ir,t.Bubble=Ar,t.Scatter=Tr,t.defaults=xr,t.Chart=n,Object.defineProperty(t,"__esModule",{value:!0})});