Socket
Socket
Sign inDemoInstall

react-chartjs-2

Package Overview
Dependencies
Maintainers
2
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-chartjs-2 - npm Package Compare versions

Comparing version 2.7.2 to 2.7.3

2

dist/react-chartjs-2.min.js

@@ -1,1 +0,1 @@

!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 a(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function i(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function c(t){var e=this.__data__=new R(t);this.size=e.size}function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Pt;++e<n;)this.add(t[e])}function f(t,e,n,r,o){return t===e||(null==t||null==e||!ce(t)&&!ce(e)?t!==t&&e!==e:nn(t,e,n,r,f,o))}function p(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(gn);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=t.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(p.Cache||Pt),n}function l(t){if("string"==typeof t)return t;if(ee(t))return Pn(t,l)+"";if(yn(t))return Tn?Tn.call(t):"";var e=t+"";return"0"==e&&1/t==-An?"-0":e}e=e&&e.hasOwnProperty("default")?e.default:e,n=n&&n.hasOwnProperty("default")?n.default:n;var h="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},y=function(){};y.thatReturns=o,y.thatReturnsFalse=o(!1),y.thatReturnsTrue=o(!0),y.thatReturnsNull=o(null),y.thatReturnsThis=function(){return this},y.thatReturnsArgument=function(t){return t};var d=y,v=function(t){};"production"!==process.env.NODE_ENV&&(v=function(t){if(void 0===t)throw Error("invariant requires an error message argument")});var b=function(t,e,n,r,o,a,i,u){if(v(e),!t){var c;if(void 0===e)c=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,a,i,u],f=0;(c=Error(e.replace(/%s/g,function(){return s[f++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}},g=d;if("production"!==process.env.NODE_ENV){var _=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;e>r;r++)n[r-1]=arguments[r];var o=0,a="Warning: "+t.replace(/%s/g,function(){return n[o++]});void 0!==console&&console.error(a);try{throw Error(a)}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 A=function(t,e,n,r,o){if("production"!==process.env.NODE_ENV)for(var a in t)if(t.hasOwnProperty(a)){var i;try{O("function"==typeof t[a],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",r||"React class",n,a),i=t[a](e,a,r,n,null,E)}catch(t){i=t}if(w(!i||i 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,a,typeof i),i instanceof Error&&!(i.message in P)){P[i.message]=!0;var u=o?o():"";w(!1,"Failed %s type: %s%s",n,i.message,null!=u?u:"")}}},I=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 a(t){function n(n,i,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>a&&(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,a++)}return null==i[u]?n?new o(null===i[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(i,u,c,s,f)}if("production"!==process.env.NODE_ENV)var r={},a=0;var i=n.bind(null,!1);return i.isRequired=n.bind(null,!0),i}function i(t){return a(function(e,n,r,a,i,u){var c=e[n];return s(c)!==t?new o("Invalid "+a+" `"+i+"` 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,a=r.call(e);if(r!==e.entries){for(;!(o=a.next()).done;)if(!u(o.value))return!1}else for(;!(o=a.next()).done;){var i=o.value;if(i&&!u(i[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="<<anonymous>>",g={array:i("array"),bool:i("boolean"),func:i("function"),number:i("number"),object:i("object"),string:i("string"),symbol:i("symbol"),any:a(d.thatReturnsNull),arrayOf:function(t){return a(function(e,n,r,a,i){if("function"!=typeof t)return new o("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=e[n];if(!Array.isArray(u))return new o("Invalid "+a+" `"+i+"` of type `"+s(u)+"` supplied to `"+r+"`, expected an array.");for(var c=0;u.length>c;c++){var f=t(u,c,r,a,i+"["+c+"]",j);if(f instanceof Error)return f}return null})},element:function(){return a(function(e,n,r,a,i){var u=e[n];return t(u)?null:new o("Invalid "+a+" `"+i+"` of type `"+s(u)+"` supplied to `"+r+"`, expected a single ReactElement.")})}(),instanceOf:function(t){return a(function(e,n,r,a,i){if(!(e[n]instanceof t)){var u=t.name||v;return new o("Invalid "+a+" `"+i+"` of type `"+l(e[n])+"` supplied to `"+r+"`, expected instance of `"+u+"`.")}return null})},node:function(){return a(function(t,e,n,r,a){return u(t[e])?null:new o("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")})}(),objectOf:function(t){return a(function(e,n,r,a,i){if("function"!=typeof t)return new o("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=e[n],c=s(u);if("object"!==c)return new o("Invalid "+a+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var f in u)if(u.hasOwnProperty(f)){var p=t(u,f,r,a,i+"."+f,j);if(p instanceof Error)return p}return null})},oneOf:function(t){return Array.isArray(t)?a(function(e,n,a,i,u){for(var c=e[n],s=0;t.length>s;s++)if(r(c,t[s]))return null;return new o("Invalid "+i+" `"+u+"` of value `"+c+"` supplied to `"+a+"`, 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 a(function(e,n,r,a,i){for(var u=0;t.length>u;u++)if(null==(0,t[u])(e,n,r,a,i,j))return null;return new o("Invalid "+a+" `"+i+"` supplied to `"+r+"`.")})},shape:function(t){return a(function(e,n,r,a,i){var u=e[n],c=s(u);if("object"!==c)return new o("Invalid "+a+" `"+i+"` 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,a,i+"."+f,j);if(l)return l}}return null})}};return o.prototype=Error.prototype,g.checkPropTypes=A,g.PropTypes=g,g},T=function(){function t(t,e,n,r,o,a){a!==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=I(function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},!0)}else t.exports=T()}),k=function(t,e){return t===e||t!==t&&e!==e},S=function(t,e){for(var n=t.length;n--;)if(k(t[n][0],e))return n;return-1},D=Array.prototype.splice;a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(t){var e=this.__data__,n=S(e,t);return n>=0&&(n==e.length-1?e.pop():D.call(e,n,1),--this.size,!0)},a.prototype.get=function(t){var e=this.__data__,n=S(e,t);return 0>n?void 0:e[n][1]},a.prototype.has=function(t){return S(this.__data__,t)>-1},a.prototype.set=function(t,e){var n=this.__data__,r=S(n,t);return 0>r?(++this.size,n.push([t,e])):n[r][1]=e,this};var R=a,C="object"==typeof h&&h&&h.Object===Object&&h,N="object"==typeof self&&self&&self.Object===Object&&self,z=C||N||Function("return this")(),V=z.Symbol,$=Object.prototype,M=$.hasOwnProperty,B=$.toString,F=V?V.toStringTag:void 0,q=function(t){var e=M.call(t,F),n=t[F];try{t[F]=void 0;var r=!0}catch(t){}var o=B.call(t);return r&&(e?t[F]=n:delete t[F]),o},U=Object.prototype.toString,L=function(t){return U.call(t)},K="[object Null]",W="[object Undefined]",Y=V?V.toStringTag:void 0,H=function(t){return null==t?void 0===t?W:K:Y&&Y in Object(t)?q(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,at=function(t){if(null!=t){try{return ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""},it=/[\\^$.*+?()[\]{}|]/g,ut=/^\[object .+?Constructor\]$/,ct=Function.prototype,st=Object.prototype,ft=ct.toString,pt=st.hasOwnProperty,lt=RegExp("^"+ft.call(pt).replace(it,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ht=function(t){return!(!G(t)||rt(t))&&(tt(t)?lt:ut).test(at(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__";i.prototype.clear=function(){this.__data__=bt?bt(null):{},this.size=0},i.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},i.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},i.prototype.has=function(t){var e=this.__data__;return bt?void 0!==e[t]:mt.call(e,t)},i.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=i,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||R),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,At=200;c.prototype.clear=function(){this.__data__=new R,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 R){var r=n.__data__;if(!vt||At-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 It=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,kt=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},St=function(t,e){return t.has(e)},Dt=1,Rt=2,Ct=function(t,e,n,r,o,a){var i=n&Dt,u=t.length,c=e.length;if(!(u==c||i&&c>u))return!1;var s=a.get(t);if(s&&a.get(e))return s==e;var f=-1,p=!0,l=n&Rt?new xt:void 0;for(a.set(t,e),a.set(e,t);++f<u;){var h=t[f],y=e[f];if(r)var d=i?r(y,h,f,e,t,a):r(h,y,f,t,e,a);if(void 0!==d){if(d)continue;p=!1;break}if(l){if(!kt(e,function(t,e){if(!St(l,e)&&(h===t||o(h,t,n,r,a)))return l.push(e)})){p=!1;break}}else if(h!==y&&!o(h,y,n,r,a)){p=!1;break}}return a.delete(t),a.delete(e),p},Nt=z.Uint8Array,zt=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n},Vt=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n},$t=1,Mt=2,Bt="[object Boolean]",Ft="[object Date]",qt="[object Error]",Ut="[object Map]",Lt="[object Number]",Kt="[object RegExp]",Wt="[object Set]",Yt="[object String]",Ht="[object Symbol]",Gt="[object ArrayBuffer]",Jt="[object DataView]",Qt=V?V.prototype:void 0,Xt=Qt?Qt.valueOf:void 0,Zt=function(t,e,n,r,o,a,i){switch(n){case Jt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Gt:return!(t.byteLength!=e.byteLength||!a(new Nt(t),new Nt(e)));case Bt:case Ft:case Lt:return k(+t,+e);case qt:return t.name==e.name&&t.message==e.message;case Kt:case Yt:return t==e+"";case Ut:var u=zt;case Wt:var c=r&$t;if(u||(u=Vt),t.size!=e.size&&!c)return!1;var s=i.get(t);if(s)return s==e;r|=Mt,i.set(t,e);var f=Ct(u(t),u(e),r,o,a,i);return i.delete(t),f;case Ht:if(Xt)return Xt.call(t)==Xt.call(e)}return!1},te=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t},ee=Array.isArray,ne=function(t,e,n){var r=e(t);return ee(t)?r:te(r,n(t))},re=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,a=[];++n<r;){var i=t[n];e(i,n,t)&&(a[o++]=i)}return a},oe=Object.prototype.propertyIsEnumerable,ae=Object.getOwnPropertySymbols,ie=ae?function(t){return null==t?[]:(t=Object(t),re(ae(t),function(e){return oe.call(t,e)}))}:function(){return[]},ue=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},ce=function(t){return null!=t&&"object"==typeof t},se="[object Arguments]",fe=function(t){return ce(t)&&H(t)==se},pe=Object.prototype,le=pe.hasOwnProperty,he=pe.propertyIsEnumerable,ye=fe(function(){return arguments}())?fe:function(t){return ce(t)&&le.call(t,"callee")&&!he.call(t,"callee")},de=function(){return!1},ve=r(function(t,e){var n=e&&!e.nodeType&&e,r=n&&!0&&t&&!t.nodeType&&t,o=r&&r.exports===n?z.Buffer:void 0,a=(o?o.isBuffer:void 0)||de;t.exports=a}),be=9007199254740991,ge=/^(?:0|[1-9]\d*)$/,_e=function(t,e){return!!(e=null==e?be:e)&&("number"==typeof t||ge.test(t))&&t>-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&&C.process,a=function(){try{return o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a}),Pe=Ee&&Ee.isTypedArray,Ae=Pe?we(Pe):function(t){return ce(t)&&je(t.length)&&!!Oe[H(t)]},Ie=Object.prototype.hasOwnProperty,Te=function(t,e){var n=ee(t),r=!n&&ye(t),o=!n&&!r&&ve(t),a=!n&&!r&&!o&&Ae(t),i=n||r||o||a,u=i?ue(t.length,String):[],c=u.length;for(var s in t)!e&&!Ie.call(t,s)||i&&("length"==s||o&&("offset"==s||"parent"==s)||a&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||_e(s,c))||u.push(s);return u},xe=Object.prototype,ke=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||xe)},Se=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),De=Object.prototype.hasOwnProperty,Re=function(t){if(!ke(t))return Se(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e},Ce=function(t){return null!=t&&je(t.length)&&!tt(t)},Ne=function(t){return Ce(t)?Te(t):Re(t)},ze=function(t){return ne(t,Ne,ie)},Ve=1,$e=Object.prototype.hasOwnProperty,Me=function(t,e,n,r,o,a){var i=n&Ve,u=ze(t),c=u.length;if(c!=ze(e).length&&!i)return!1;for(var s=c;s--;){var f=u[s];if(!(i?f in e:$e.call(e,f)))return!1}var p=a.get(t);if(p&&a.get(e))return p==e;var l=!0;a.set(t,e),a.set(e,t);for(var h=i;++s<c;){var y=t[f=u[s]],d=e[f];if(r)var v=i?r(d,y,f,e,t,a):r(y,d,f,t,e,a);if(!(void 0===v?y===d||o(y,d,n,r,a):v)){l=!1;break}h||(h="constructor"==f)}if(l&&!h){var b=t.constructor,g=e.constructor;b!=g&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g)&&(l=!1)}return a.delete(t),a.delete(e),l},Be=dt(z,"DataView"),Fe=dt(z,"Promise"),qe=dt(z,"Set"),Ue=dt(z,"WeakMap"),Le=at(Be),Ke=at(vt),We=at(Fe),Ye=at(qe),He=at(Ue),Ge=H;(Be&&"[object DataView]"!=Ge(new Be(new ArrayBuffer(1)))||vt&&"[object Map]"!=Ge(new vt)||Fe&&"[object Promise]"!=Ge(Fe.resolve())||qe&&"[object Set]"!=Ge(new qe)||Ue&&"[object WeakMap]"!=Ge(new Ue))&&(Ge=function(t){var e=H(t),n="[object Object]"==e?t.constructor:void 0,r=n?at(n):"";if(r)switch(r){case Le:return"[object DataView]";case Ke:return"[object Map]";case We:return"[object Promise]";case Ye:return"[object Set]";case He:return"[object WeakMap]"}return e});var Je=Ge,Qe=1,Xe="[object Arguments]",Ze="[object Array]",tn="[object Object]",en=Object.prototype.hasOwnProperty,nn=function(t,e,n,r,o,a){var i=ee(t),u=ee(e),c=i?Ze:Je(t),s=u?Ze:Je(e),f=(c=c==Xe?tn:c)==tn,p=(s=s==Xe?tn:s)==tn,l=c==s;if(l&&ve(t)){if(!ve(e))return!1;i=!0,f=!1}if(l&&!f)return a||(a=new It),i||Ae(t)?Ct(t,e,n,r,o,a):Zt(t,e,c,n,r,o,a);if(!(n&Qe)){var h=f&&en.call(t,"__wrapped__"),y=p&&en.call(e,"__wrapped__");if(h||y){var d=h?t.value():t,v=y?e.value():e;return a||(a=new It),o(d,v,n,r,a)}}return!!l&&(a||(a=new It),Me(t,e,n,r,o,a))},rn=f,on=function(t,e){return rn(t,e)},an=1,un=2,cn=function(t,e,n,r){var o=n.length,a=o,i=!r;if(null==t)return!a;for(t=Object(t);o--;){var u=n[o];if(i&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<a;){var c=(u=n[o])[0],s=t[c],f=u[1];if(i&&u[2]){if(void 0===s&&!(c in t))return!1}else{var p=new It;if(r)var l=r(s,f,c,t,e,p);if(!(void 0===l?rn(f,s,an|un,r,p):l))return!1}}return!0},sn=function(t){return t===t&&!G(t)},fn=function(t){for(var e=Ne(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,sn(o)]}return e},pn=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}},ln=function(t){var e=fn(t);return 1==e.length&&e[0][2]?pn(e[0][0],e[0][1]):function(n){return n===t||cn(n,t,e)}},hn="[object Symbol]",yn=function(t){return"symbol"==typeof t||ce(t)&&H(t)==hn},dn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vn=/^\w*$/,bn=function(t,e){if(ee(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!yn(t))||vn.test(t)||!dn.test(t)||null!=e&&t in Object(e)},gn="Expected a function";p.Cache=Pt;var _n=p,mn=500,jn=/^\./,On=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wn=/\\(\\)?/g,En=function(t){var e=_n(t,function(t){return n.size===mn&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return jn.test(t)&&e.push(""),t.replace(On,function(t,n,r,o){e.push(r?o.replace(wn,"$1"):n||t)}),e}),Pn=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o},An=1/0,In=V?V.prototype:void 0,Tn=In?In.toString:void 0,xn=l,kn=function(t){return null==t?"":xn(t)},Sn=function(t,e){return ee(t)?t:bn(t,e)?[t]:En(kn(t))},Dn=1/0,Rn=function(t){if("string"==typeof t||yn(t))return t;var e=t+"";return"0"==e&&1/t==-Dn?"-0":e},Cn=function(t,e){for(var n=0,r=(e=Sn(e,t)).length;null!=t&&r>n;)t=t[Rn(e[n++])];return n&&n==r?t:void 0},Nn=function(t,e,n){var r=null==t?void 0:Cn(t,e);return void 0===r?n:r},zn=function(t,e){return null!=t&&e in Object(t)},Vn=function(t,e,n){for(var r=-1,o=(e=Sn(e,t)).length,a=!1;++r<o;){var i=Rn(e[r]);if(!(a=null!=t&&n(t,i)))break;t=t[i]}return a||++r!=o?a:!!(o=null==t?0:t.length)&&je(o)&&_e(i,o)&&(ee(t)||ye(t))},$n=function(t,e){return null!=t&&Vn(t,e,zn)},Mn=1,Bn=2,Fn=function(t,e){return bn(t)&&sn(e)?pn(Rn(t),e):function(n){var r=Nn(n,t);return void 0===r&&r===e?$n(n,t):rn(e,r,Mn|Bn)}},qn=function(t){return t},Un=function(t){return function(e){return null==e?void 0:e[t]}},Ln=function(t){return function(e){return Cn(e,t)}},Kn=function(t){return bn(t)?Un(Rn(t)):Ln(t)},Wn=function(t){return"function"==typeof t?t:null==t?qn:"object"==typeof t?ee(t)?Fn(t[0],t[1]):ln(t):Kn(t)},Yn=function(t){return function(e,n,r){var o=Object(e);if(!Ce(e)){var a=Wn(n,3);e=Ne(e),n=function(t){return a(o[t],t,o)}}var i=t(e,n,r);return i>-1?o[a?e[i]:i]:void 0}},Hn=function(t,e,n,r){for(var o=t.length,a=n+(r?1:-1);r?a--:++a<o;)if(e(t[a],a,t))return a;return-1},Gn=NaN,Jn=/^\s+|\s+$/g,Qn=/^[-+]0x[0-9a-f]+$/i,Xn=/^0b[01]+$/i,Zn=/^0o[0-7]+$/i,tr=parseInt,er=function(t){if("number"==typeof t)return t;if(yn(t))return Gn;if(G(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=G(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Jn,"");var n=Xn.test(t);return n||Zn.test(t)?tr(t.slice(2),n?2:8):Qn.test(t)?Gn:+t},nr=1/0,rr=1.7976931348623157e308,or=function(t){return t?(t=er(t))===nr||t===-nr?(0>t?-1:1)*rr:t===t?t:0:0===t?t:0},ar=function(t){var e=or(t),n=e%1;return e===e?n?e-n:e:0},ir=Math.max,ur=(Yn(function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ar(n);return 0>o&&(o=ir(r+o,0)),Hn(t,Wn(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,a=null==t?0:t.length;++o<a;){var i=t[o];e(r,i,n(i),t)}return r},fr=function(t){return function(e,n,r){for(var o=-1,a=Object(e),i=r(e),u=i.length;u--;){var c=i[t?u:++o];if(!1===n(a[c],c,a))break}return e}}(),pr=function(t,e){return function(n,r){if(null==n)return n;if(!Ce(n))return t(n,r);for(var o=n.length,a=e?o:-1,i=Object(n);(e?a--:++a<o)&&!1!==r(i[a],a,i););return n}}(function(t,e){return t&&fr(t,e,Ne)}),lr=function(t,e,n,r){return pr(t,function(t,o,a){e(r,t,n(t),a)}),r},hr=function(t,e){return function(n,r){var o=ee(n)?sr:lr,a=e?e():{};return o(n,t,Wn(r,2),a)}}(function(t,e,n){cr(t,n,e)}),yr=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},dr=Object.assign||function(t){for(var e=1;arguments.length>e;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="undefined"!=typeof process&&process.env&&process.env.NODE_ENV,mr=function(t){function r(){var e,n,o;yr(this,r);for(var a=arguments.length,i=Array(a),u=0;a>u;u++)i[u]=arguments[u];return e=n=gr(this,t.call.apply(t,[this].concat(i))),n.handleOnClick=function(t){var e=n.chartInstance,r=n.props,o=r.getDatasetAtEvent,a=r.getElementAtEvent,i=r.getElementsAtEvent,u=r.onElementsClick;o&&o(e.getDatasetAtEvent(t),t),a&&a(e.getElementAtEvent(t),t),i&&i(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,a=e.legend,i=e.height,u=e.width;if(!0===t.redraw)return!0;if(i!==t.height||u!==t.width)return!0;if(n!==t.type)return!0;if(!on(a,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.checkDatasets=function(t){var e="production"!==_r&&"prod"!==_r,n=this.props.datasetKeyProvider!==r.getLabelAsKey,o=t.length>1;if(e&&o&&!n){var a=!1;t.forEach(function(t){t.label||(a=!0)}),a&&console.error('[react-chartjs-2] Warning: Each dataset needs a unique key. By default, the "label" property on each dataset is used. Alternatively, you may provide a "datasetKeyProvider" as a prop that returns a unique key.')}},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||[],a=r.datasets||[];this.checkDatasets(o);var i=hr(o,this.props.datasetKeyProvider);this.chartInstance.config.data.datasets=a.map(function(e){var n=i[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,a=t.type,i=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:a,data:c,options:e,plugins:i})},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);mr.getLabelAsKey=function(t){return t.label},mr.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},mr.defaultProps={legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:mr.getLabelAsKey};var 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(mr,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"doughnut"}))},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(mr,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"pie"}))},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(mr,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"line"}))},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(mr,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"bar"}))},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(mr,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"horizontalBar"}))},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(mr,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(mr,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"polarArea"}))},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(mr,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"bubble"}))},n}(e.Component),xr=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(mr,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"scatter"}))},n}(e.Component),kr=n.defaults;t.default=mr,t.Doughnut=jr,t.Pie=Or,t.Line=wr,t.Bar=Er,t.HorizontalBar=Pr,t.Radar=Ar,t.Polar=Ir,t.Bubble=Tr,t.Scatter=xr,t.defaults=kr,t.Chart=n,Object.defineProperty(t,"__esModule",{value:!0})});
!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 a(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function i(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function c(t){var e=this.__data__=new R(t);this.size=e.size}function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Pt;++e<n;)this.add(t[e])}function f(t,e,n,r,o){return t===e||(null==t||null==e||!ce(t)&&!ce(e)?t!==t&&e!==e:nn(t,e,n,r,f,o))}function p(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(gn);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=t.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(p.Cache||Pt),n}function l(t){if("string"==typeof t)return t;if(ee(t))return Pn(t,l)+"";if(yn(t))return Tn?Tn.call(t):"";var e=t+"";return"0"==e&&1/t==-An?"-0":e}e=e&&e.hasOwnProperty("default")?e.default:e,n=n&&n.hasOwnProperty("default")?n.default:n;var h="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},y=function(){};y.thatReturns=o,y.thatReturnsFalse=o(!1),y.thatReturnsTrue=o(!0),y.thatReturnsNull=o(null),y.thatReturnsThis=function(){return this},y.thatReturnsArgument=function(t){return t};var d=y,v=function(t){};"production"!==process.env.NODE_ENV&&(v=function(t){if(void 0===t)throw Error("invariant requires an error message argument")});var b=function(t,e,n,r,o,a,i,u){if(v(e),!t){var c;if(void 0===e)c=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,a,i,u],f=0;(c=Error(e.replace(/%s/g,function(){return s[f++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}},g=d;if("production"!==process.env.NODE_ENV){var _=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;e>r;r++)n[r-1]=arguments[r];var o=0,a="Warning: "+t.replace(/%s/g,function(){return n[o++]});void 0!==console&&console.error(a);try{throw Error(a)}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 A=function(t,e,n,r,o){if("production"!==process.env.NODE_ENV)for(var a in t)if(t.hasOwnProperty(a)){var i;try{O("function"==typeof t[a],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",r||"React class",n,a),i=t[a](e,a,r,n,null,E)}catch(t){i=t}if(w(!i||i 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,a,typeof i),i instanceof Error&&!(i.message in P)){P[i.message]=!0;var u=o?o():"";w(!1,"Failed %s type: %s%s",n,i.message,null!=u?u:"")}}},I=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 a(t){function n(n,i,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>a&&(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,a++)}return null==i[u]?n?new o(null===i[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(i,u,c,s,f)}if("production"!==process.env.NODE_ENV)var r={},a=0;var i=n.bind(null,!1);return i.isRequired=n.bind(null,!0),i}function i(t){return a(function(e,n,r,a,i,u){var c=e[n];return s(c)!==t?new o("Invalid "+a+" `"+i+"` 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,a=r.call(e);if(r!==e.entries){for(;!(o=a.next()).done;)if(!u(o.value))return!1}else for(;!(o=a.next()).done;){var i=o.value;if(i&&!u(i[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="<<anonymous>>",g={array:i("array"),bool:i("boolean"),func:i("function"),number:i("number"),object:i("object"),string:i("string"),symbol:i("symbol"),any:a(d.thatReturnsNull),arrayOf:function(t){return a(function(e,n,r,a,i){if("function"!=typeof t)return new o("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=e[n];if(!Array.isArray(u))return new o("Invalid "+a+" `"+i+"` of type `"+s(u)+"` supplied to `"+r+"`, expected an array.");for(var c=0;u.length>c;c++){var f=t(u,c,r,a,i+"["+c+"]",j);if(f instanceof Error)return f}return null})},element:function(){return a(function(e,n,r,a,i){var u=e[n];return t(u)?null:new o("Invalid "+a+" `"+i+"` of type `"+s(u)+"` supplied to `"+r+"`, expected a single ReactElement.")})}(),instanceOf:function(t){return a(function(e,n,r,a,i){if(!(e[n]instanceof t)){var u=t.name||v;return new o("Invalid "+a+" `"+i+"` of type `"+l(e[n])+"` supplied to `"+r+"`, expected instance of `"+u+"`.")}return null})},node:function(){return a(function(t,e,n,r,a){return u(t[e])?null:new o("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")})}(),objectOf:function(t){return a(function(e,n,r,a,i){if("function"!=typeof t)return new o("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=e[n],c=s(u);if("object"!==c)return new o("Invalid "+a+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var f in u)if(u.hasOwnProperty(f)){var p=t(u,f,r,a,i+"."+f,j);if(p instanceof Error)return p}return null})},oneOf:function(t){return Array.isArray(t)?a(function(e,n,a,i,u){for(var c=e[n],s=0;t.length>s;s++)if(r(c,t[s]))return null;return new o("Invalid "+i+" `"+u+"` of value `"+c+"` supplied to `"+a+"`, 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 a(function(e,n,r,a,i){for(var u=0;t.length>u;u++)if(null==(0,t[u])(e,n,r,a,i,j))return null;return new o("Invalid "+a+" `"+i+"` supplied to `"+r+"`.")})},shape:function(t){return a(function(e,n,r,a,i){var u=e[n],c=s(u);if("object"!==c)return new o("Invalid "+a+" `"+i+"` 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,a,i+"."+f,j);if(l)return l}}return null})}};return o.prototype=Error.prototype,g.checkPropTypes=A,g.PropTypes=g,g},T=function(){function t(t,e,n,r,o,a){a!==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=I(function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},!0)}else t.exports=T()}),k=function(t,e){return t===e||t!==t&&e!==e},S=function(t,e){for(var n=t.length;n--;)if(k(t[n][0],e))return n;return-1},D=Array.prototype.splice;a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(t){var e=this.__data__,n=S(e,t);return n>=0&&(n==e.length-1?e.pop():D.call(e,n,1),--this.size,!0)},a.prototype.get=function(t){var e=this.__data__,n=S(e,t);return 0>n?void 0:e[n][1]},a.prototype.has=function(t){return S(this.__data__,t)>-1},a.prototype.set=function(t,e){var n=this.__data__,r=S(n,t);return 0>r?(++this.size,n.push([t,e])):n[r][1]=e,this};var R=a,C="object"==typeof h&&h&&h.Object===Object&&h,N="object"==typeof self&&self&&self.Object===Object&&self,z=C||N||Function("return this")(),V=z.Symbol,$=Object.prototype,M=$.hasOwnProperty,B=$.toString,F=V?V.toStringTag:void 0,q=function(t){var e=M.call(t,F),n=t[F];try{t[F]=void 0;var r=!0}catch(t){}var o=B.call(t);return r&&(e?t[F]=n:delete t[F]),o},U=Object.prototype.toString,L=function(t){return U.call(t)},K="[object Null]",W="[object Undefined]",Y=V?V.toStringTag:void 0,H=function(t){return null==t?void 0===t?W:K:Y&&Y in Object(t)?q(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,at=function(t){if(null!=t){try{return ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""},it=/[\\^$.*+?()[\]{}|]/g,ut=/^\[object .+?Constructor\]$/,ct=Function.prototype,st=Object.prototype,ft=ct.toString,pt=st.hasOwnProperty,lt=RegExp("^"+ft.call(pt).replace(it,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ht=function(t){return!(!G(t)||rt(t))&&(tt(t)?lt:ut).test(at(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__";i.prototype.clear=function(){this.__data__=bt?bt(null):{},this.size=0},i.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},i.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},i.prototype.has=function(t){var e=this.__data__;return bt?void 0!==e[t]:mt.call(e,t)},i.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=i,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||R),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,At=200;c.prototype.clear=function(){this.__data__=new R,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 R){var r=n.__data__;if(!vt||At-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 It=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,kt=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},St=function(t,e){return t.has(e)},Dt=1,Rt=2,Ct=function(t,e,n,r,o,a){var i=n&Dt,u=t.length,c=e.length;if(!(u==c||i&&c>u))return!1;var s=a.get(t);if(s&&a.get(e))return s==e;var f=-1,p=!0,l=n&Rt?new xt:void 0;for(a.set(t,e),a.set(e,t);++f<u;){var h=t[f],y=e[f];if(r)var d=i?r(y,h,f,e,t,a):r(h,y,f,t,e,a);if(void 0!==d){if(d)continue;p=!1;break}if(l){if(!kt(e,function(t,e){if(!St(l,e)&&(h===t||o(h,t,n,r,a)))return l.push(e)})){p=!1;break}}else if(h!==y&&!o(h,y,n,r,a)){p=!1;break}}return a.delete(t),a.delete(e),p},Nt=z.Uint8Array,zt=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n},Vt=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n},$t=1,Mt=2,Bt="[object Boolean]",Ft="[object Date]",qt="[object Error]",Ut="[object Map]",Lt="[object Number]",Kt="[object RegExp]",Wt="[object Set]",Yt="[object String]",Ht="[object Symbol]",Gt="[object ArrayBuffer]",Jt="[object DataView]",Qt=V?V.prototype:void 0,Xt=Qt?Qt.valueOf:void 0,Zt=function(t,e,n,r,o,a,i){switch(n){case Jt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Gt:return!(t.byteLength!=e.byteLength||!a(new Nt(t),new Nt(e)));case Bt:case Ft:case Lt:return k(+t,+e);case qt:return t.name==e.name&&t.message==e.message;case Kt:case Yt:return t==e+"";case Ut:var u=zt;case Wt:var c=r&$t;if(u||(u=Vt),t.size!=e.size&&!c)return!1;var s=i.get(t);if(s)return s==e;r|=Mt,i.set(t,e);var f=Ct(u(t),u(e),r,o,a,i);return i.delete(t),f;case Ht:if(Xt)return Xt.call(t)==Xt.call(e)}return!1},te=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t},ee=Array.isArray,ne=function(t,e,n){var r=e(t);return ee(t)?r:te(r,n(t))},re=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,a=[];++n<r;){var i=t[n];e(i,n,t)&&(a[o++]=i)}return a},oe=Object.prototype.propertyIsEnumerable,ae=Object.getOwnPropertySymbols,ie=ae?function(t){return null==t?[]:(t=Object(t),re(ae(t),function(e){return oe.call(t,e)}))}:function(){return[]},ue=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},ce=function(t){return null!=t&&"object"==typeof t},se="[object Arguments]",fe=function(t){return ce(t)&&H(t)==se},pe=Object.prototype,le=pe.hasOwnProperty,he=pe.propertyIsEnumerable,ye=fe(function(){return arguments}())?fe:function(t){return ce(t)&&le.call(t,"callee")&&!he.call(t,"callee")},de=function(){return!1},ve=r(function(t,e){var n=e&&!e.nodeType&&e,r=n&&!0&&t&&!t.nodeType&&t,o=r&&r.exports===n?z.Buffer:void 0,a=(o?o.isBuffer:void 0)||de;t.exports=a}),be=9007199254740991,ge=/^(?:0|[1-9]\d*)$/,_e=function(t,e){return!!(e=null==e?be:e)&&("number"==typeof t||ge.test(t))&&t>-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&&C.process,a=function(){try{return o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a}),Pe=Ee&&Ee.isTypedArray,Ae=Pe?we(Pe):function(t){return ce(t)&&je(t.length)&&!!Oe[H(t)]},Ie=Object.prototype.hasOwnProperty,Te=function(t,e){var n=ee(t),r=!n&&ye(t),o=!n&&!r&&ve(t),a=!n&&!r&&!o&&Ae(t),i=n||r||o||a,u=i?ue(t.length,String):[],c=u.length;for(var s in t)!e&&!Ie.call(t,s)||i&&("length"==s||o&&("offset"==s||"parent"==s)||a&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||_e(s,c))||u.push(s);return u},xe=Object.prototype,ke=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||xe)},Se=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),De=Object.prototype.hasOwnProperty,Re=function(t){if(!ke(t))return Se(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e},Ce=function(t){return null!=t&&je(t.length)&&!tt(t)},Ne=function(t){return Ce(t)?Te(t):Re(t)},ze=function(t){return ne(t,Ne,ie)},Ve=1,$e=Object.prototype.hasOwnProperty,Me=function(t,e,n,r,o,a){var i=n&Ve,u=ze(t),c=u.length;if(c!=ze(e).length&&!i)return!1;for(var s=c;s--;){var f=u[s];if(!(i?f in e:$e.call(e,f)))return!1}var p=a.get(t);if(p&&a.get(e))return p==e;var l=!0;a.set(t,e),a.set(e,t);for(var h=i;++s<c;){var y=t[f=u[s]],d=e[f];if(r)var v=i?r(d,y,f,e,t,a):r(y,d,f,t,e,a);if(!(void 0===v?y===d||o(y,d,n,r,a):v)){l=!1;break}h||(h="constructor"==f)}if(l&&!h){var b=t.constructor,g=e.constructor;b!=g&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g)&&(l=!1)}return a.delete(t),a.delete(e),l},Be=dt(z,"DataView"),Fe=dt(z,"Promise"),qe=dt(z,"Set"),Ue=dt(z,"WeakMap"),Le=at(Be),Ke=at(vt),We=at(Fe),Ye=at(qe),He=at(Ue),Ge=H;(Be&&"[object DataView]"!=Ge(new Be(new ArrayBuffer(1)))||vt&&"[object Map]"!=Ge(new vt)||Fe&&"[object Promise]"!=Ge(Fe.resolve())||qe&&"[object Set]"!=Ge(new qe)||Ue&&"[object WeakMap]"!=Ge(new Ue))&&(Ge=function(t){var e=H(t),n="[object Object]"==e?t.constructor:void 0,r=n?at(n):"";if(r)switch(r){case Le:return"[object DataView]";case Ke:return"[object Map]";case We:return"[object Promise]";case Ye:return"[object Set]";case He:return"[object WeakMap]"}return e});var Je=Ge,Qe=1,Xe="[object Arguments]",Ze="[object Array]",tn="[object Object]",en=Object.prototype.hasOwnProperty,nn=function(t,e,n,r,o,a){var i=ee(t),u=ee(e),c=i?Ze:Je(t),s=u?Ze:Je(e),f=(c=c==Xe?tn:c)==tn,p=(s=s==Xe?tn:s)==tn,l=c==s;if(l&&ve(t)){if(!ve(e))return!1;i=!0,f=!1}if(l&&!f)return a||(a=new It),i||Ae(t)?Ct(t,e,n,r,o,a):Zt(t,e,c,n,r,o,a);if(!(n&Qe)){var h=f&&en.call(t,"__wrapped__"),y=p&&en.call(e,"__wrapped__");if(h||y){var d=h?t.value():t,v=y?e.value():e;return a||(a=new It),o(d,v,n,r,a)}}return!!l&&(a||(a=new It),Me(t,e,n,r,o,a))},rn=f,on=function(t,e){return rn(t,e)},an=1,un=2,cn=function(t,e,n,r){var o=n.length,a=o,i=!r;if(null==t)return!a;for(t=Object(t);o--;){var u=n[o];if(i&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<a;){var c=(u=n[o])[0],s=t[c],f=u[1];if(i&&u[2]){if(void 0===s&&!(c in t))return!1}else{var p=new It;if(r)var l=r(s,f,c,t,e,p);if(!(void 0===l?rn(f,s,an|un,r,p):l))return!1}}return!0},sn=function(t){return t===t&&!G(t)},fn=function(t){for(var e=Ne(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,sn(o)]}return e},pn=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}},ln=function(t){var e=fn(t);return 1==e.length&&e[0][2]?pn(e[0][0],e[0][1]):function(n){return n===t||cn(n,t,e)}},hn="[object Symbol]",yn=function(t){return"symbol"==typeof t||ce(t)&&H(t)==hn},dn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vn=/^\w*$/,bn=function(t,e){if(ee(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!yn(t))||vn.test(t)||!dn.test(t)||null!=e&&t in Object(e)},gn="Expected a function";p.Cache=Pt;var _n=p,mn=500,jn=/^\./,On=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wn=/\\(\\)?/g,En=function(t){var e=_n(t,function(t){return n.size===mn&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return jn.test(t)&&e.push(""),t.replace(On,function(t,n,r,o){e.push(r?o.replace(wn,"$1"):n||t)}),e}),Pn=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o},An=1/0,In=V?V.prototype:void 0,Tn=In?In.toString:void 0,xn=l,kn=function(t){return null==t?"":xn(t)},Sn=function(t,e){return ee(t)?t:bn(t,e)?[t]:En(kn(t))},Dn=1/0,Rn=function(t){if("string"==typeof t||yn(t))return t;var e=t+"";return"0"==e&&1/t==-Dn?"-0":e},Cn=function(t,e){for(var n=0,r=(e=Sn(e,t)).length;null!=t&&r>n;)t=t[Rn(e[n++])];return n&&n==r?t:void 0},Nn=function(t,e,n){var r=null==t?void 0:Cn(t,e);return void 0===r?n:r},zn=function(t,e){return null!=t&&e in Object(t)},Vn=function(t,e,n){for(var r=-1,o=(e=Sn(e,t)).length,a=!1;++r<o;){var i=Rn(e[r]);if(!(a=null!=t&&n(t,i)))break;t=t[i]}return a||++r!=o?a:!!(o=null==t?0:t.length)&&je(o)&&_e(i,o)&&(ee(t)||ye(t))},$n=function(t,e){return null!=t&&Vn(t,e,zn)},Mn=1,Bn=2,Fn=function(t,e){return bn(t)&&sn(e)?pn(Rn(t),e):function(n){var r=Nn(n,t);return void 0===r&&r===e?$n(n,t):rn(e,r,Mn|Bn)}},qn=function(t){return t},Un=function(t){return function(e){return null==e?void 0:e[t]}},Ln=function(t){return function(e){return Cn(e,t)}},Kn=function(t){return bn(t)?Un(Rn(t)):Ln(t)},Wn=function(t){return"function"==typeof t?t:null==t?qn:"object"==typeof t?ee(t)?Fn(t[0],t[1]):ln(t):Kn(t)},Yn=function(t){return function(e,n,r){var o=Object(e);if(!Ce(e)){var a=Wn(n,3);e=Ne(e),n=function(t){return a(o[t],t,o)}}var i=t(e,n,r);return i>-1?o[a?e[i]:i]:void 0}},Hn=function(t,e,n,r){for(var o=t.length,a=n+(r?1:-1);r?a--:++a<o;)if(e(t[a],a,t))return a;return-1},Gn=NaN,Jn=/^\s+|\s+$/g,Qn=/^[-+]0x[0-9a-f]+$/i,Xn=/^0b[01]+$/i,Zn=/^0o[0-7]+$/i,tr=parseInt,er=function(t){if("number"==typeof t)return t;if(yn(t))return Gn;if(G(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=G(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Jn,"");var n=Xn.test(t);return n||Zn.test(t)?tr(t.slice(2),n?2:8):Qn.test(t)?Gn:+t},nr=1/0,rr=1.7976931348623157e308,or=function(t){return t?(t=er(t))===nr||t===-nr?(0>t?-1:1)*rr:t===t?t:0:0===t?t:0},ar=function(t){var e=or(t),n=e%1;return e===e?n?e-n:e:0},ir=Math.max,ur=(Yn(function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ar(n);return 0>o&&(o=ir(r+o,0)),Hn(t,Wn(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,a=null==t?0:t.length;++o<a;){var i=t[o];e(r,i,n(i),t)}return r},fr=function(t){return function(e,n,r){for(var o=-1,a=Object(e),i=r(e),u=i.length;u--;){var c=i[t?u:++o];if(!1===n(a[c],c,a))break}return e}}(),pr=function(t,e){return function(n,r){if(null==n)return n;if(!Ce(n))return t(n,r);for(var o=n.length,a=e?o:-1,i=Object(n);(e?a--:++a<o)&&!1!==r(i[a],a,i););return n}}(function(t,e){return t&&fr(t,e,Ne)}),lr=function(t,e,n,r){return pr(t,function(t,o,a){e(r,t,n(t),a)}),r},hr=function(t,e){return function(n,r){var o=ee(n)?sr:lr,a=e?e():{};return o(n,t,Wn(r,2),a)}}(function(t,e,n){cr(t,n,e)}),yr=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},dr=Object.assign||function(t){for(var e=1;arguments.length>e;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="undefined"!=typeof process&&process.env&&process.env.NODE_ENV,mr=function(t){function r(){var e,n,o;yr(this,r);for(var a=arguments.length,i=Array(a),u=0;a>u;u++)i[u]=arguments[u];return e=n=gr(this,t.call.apply(t,[this].concat(i))),n.handleOnClick=function(t){var e=n.chartInstance,r=n.props,o=r.getDatasetAtEvent,a=r.getElementAtEvent,i=r.getElementsAtEvent,u=r.onElementsClick;o&&o(e.getDatasetAtEvent(t),t),a&&a(e.getElementAtEvent(t),t),i&&i(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,a=e.legend,i=e.height,u=e.width;if(!0===t.redraw)return!0;if(i!==t.height||u!==t.width)return!0;if(n!==t.type)return!0;if(!on(a,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.checkDatasets=function(t){var e="production"!==_r&&"prod"!==_r,n=this.props.datasetKeyProvider!==r.getLabelAsKey,o=t.length>1;if(e&&o&&!n){var a=!1;t.forEach(function(t){t.label||(a=!0)}),a&&console.error('[react-chartjs-2] Warning: Each dataset needs a unique key. By default, the "label" property on each dataset is used. Alternatively, you may provide a "datasetKeyProvider" as a prop that returns a unique key.')}},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||[],a=r.datasets||[];this.checkDatasets(o);var i=hr(o,this.props.datasetKeyProvider);this.chartInstance.config.data.datasets=a.map(function(e){var n=i[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,a=t.type,i=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:a,data:c,options:e,plugins:i})},r.prototype.render=function(){var t=this.props,n=t.height,r=t.width,o=t.id;return e.createElement("canvas",{ref:this.ref,height:n,width:r,id:o,onClick:this.handleOnClick})},r}(e.Component);mr.getLabelAsKey=function(t){return t.label},mr.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},mr.defaultProps={legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:mr.getLabelAsKey};var 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(mr,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"doughnut"}))},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(mr,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"pie"}))},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(mr,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"line"}))},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(mr,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"bar"}))},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(mr,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"horizontalBar"}))},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(mr,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(mr,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"polarArea"}))},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(mr,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"bubble"}))},n}(e.Component),xr=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(mr,dr({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"scatter"}))},n}(e.Component),kr=n.defaults;t.default=mr,t.Doughnut=jr,t.Pie=Or,t.Line=wr,t.Bar=Er,t.HorizontalBar=Pr,t.Radar=Ar,t.Polar=Ir,t.Bubble=Tr,t.Scatter=xr,t.defaults=kr,t.Chart=n,Object.defineProperty(t,"__esModule",{value:!0})});

@@ -247,3 +247,4 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

width = _props3.width,
onElementsClick = _props3.onElementsClick;
onElementsClick = _props3.onElementsClick,
id = _props3.id;

@@ -255,2 +256,3 @@

width: width,
id: id,
onClick: this.handleOnClick

@@ -257,0 +259,0 @@ });

@@ -26,4 +26,6 @@ // Type definitions for react-chartjs-2 2.0

options?: chartjs.ChartOptions;
plugins?: object[];
redraw?: boolean;
width?: number;
datasetKeyProvider: (any) => any;
}

@@ -30,0 +32,0 @@

@@ -271,3 +271,4 @@ 'use strict';

width = _props3.width,
onElementsClick = _props3.onElementsClick;
onElementsClick = _props3.onElementsClick,
id = _props3.id;

@@ -279,2 +280,3 @@

width: width,
id: id,
onClick: this.handleOnClick

@@ -281,0 +283,0 @@ });

{
"name": "react-chartjs-2",
"version": "2.7.2",
"version": "2.7.3",
"description": "react-chartjs-2",

@@ -10,2 +10,3 @@ "main": "lib/index.js",

"homepage": "https://github.com/jerairrest/react-chartjs-2",
"license" : "MIT" ,
"repository": {

@@ -12,0 +13,0 @@ "type": "git",

@@ -1,2 +0,2 @@

[![build status]( https://img.shields.io/travis/gor181/react-chartjs-2.svg?branch=master&style=flat-square)](https://travis-ci.org/gor181/react-chartjs-2)
[![build status]( https://img.shields.io/travis/jerairrest/react-chartjs-2.svg?branch=master&style=flat-square)](https://travis-ci.org/jerairrest/react-chartjs-2)
[![version](https://img.shields.io/npm/v/react-chartjs-2.svg?style=flat-square)](https://www.npmjs.com/package/react-chartjs-2)

@@ -61,2 +61,3 @@ [![downloads](https://img.shields.io/npm/dm/react-chartjs-2.svg?style=flat-square)](https://npm-stat.com/charts.html?package=react-chartjs-2&from=2016-01-01)

* height: PropTypes.number,
* id: PropTypes.string,
* legend: PropTypes.object,

@@ -63,0 +64,0 @@ * options: PropTypes.object,

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc