Socket
Socket
Sign inDemoInstall

react-chartjs-2

Package Overview
Dependencies
3
Maintainers
2
Versions
84
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.5.3 to 2.5.4

3

dist/react-chartjs-2.min.js

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

!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.reactChartjs2=t()}}(function(){return function t(e,n,r){function o(a,u){if(!n[a]){if(!e[a]){var c="function"==typeof require&&require;if(!u&&c)return c(a,!0);if(i)return i(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var f=n[a]={exports:{}};e[a][0].call(f.exports,function(t){var n=e[a][1][t];return o(n?n:t)},f,f.exports,t,e,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(t,e,n){"use strict";function r(t){return function(){return t}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},e.exports=o},{}],2:[function(t,e,n){(function(t){"use strict";function n(t,e,n,o,i,a,u,c){if(r(e),!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,o,i,a,u,c],l=0;s=new Error(e.replace(/%s/g,function(){return f[l++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var r=function(t){};"production"!==t.env.NODE_ENV&&(r=function(t){if(void 0===t)throw new Error("invariant requires an error message argument")}),e.exports=n}).call(this,t("_process"))},{_process:5}],3:[function(t,e,n){(function(n){"use strict";var r=t("./emptyFunction"),o=r;"production"!==n.env.NODE_ENV&&!function(){var t=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+t.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(a){}};o=function(e,n){if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==n.indexOf("Failed Composite propType: ")&&!e){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];t.apply(void 0,[n].concat(o))}}}(),e.exports=o}).call(this,t("_process"))},{"./emptyFunction":1,_process:5}],4:[function(t,e,n){(function(t){function r(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}function o(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function i(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function a(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function u(t){return function(e){return t(e)}}function c(t,e){return t.has(e)}function s(t,e){return null==t?void 0:t[e]}function f(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function l(t,e){return function(n){return t(e(n))}}function p(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function d(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 h(){this.__data__=Fe?Fe(null):{},this.size=0}function y(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function v(t){var e=this.__data__;if(Fe){var n=e[t];return n===mt?void 0:n}return ge.call(e,t)?e[t]:void 0}function b(t){var e=this.__data__;return Fe?void 0!==e[t]:ge.call(e,t)}function _(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Fe&&void 0===e?mt:e,this}function g(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 m(){this.__data__=[],this.size=0}function w(t){var e=this.__data__,n=B(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():ke.call(e,n,1),--this.size,!0}function j(t){var e=this.__data__,n=B(e,t);return n<0?void 0:e[n][1]}function O(t){return B(this.__data__,t)>-1}function E(t,e){var n=this.__data__,r=B(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function P(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 T(){this.size=0,this.__data__={hash:new d,map:new(De||g),string:new d}}function k(t){var e=tt(this,t)["delete"](t);return this.size-=e?1:0,e}function A(t){return tt(this,t).get(t)}function x(t){return tt(this,t).has(t)}function R(t,e){var n=tt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function C(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new P;++e<n;)this.add(t[e])}function S(t){return this.__data__.set(t,mt),this}function D(t){return this.__data__.has(t)}function z(t){var e=this.__data__=new g(t);this.size=e.size}function N(){this.__data__=new g,this.size=0}function I(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}function F(t){return this.__data__.get(t)}function L(t){return this.__data__.has(t)}function q(t,e){var n=this.__data__;if(n instanceof g){var r=n.__data__;if(!De||r.length<gt-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new P(r)}return n.set(t,e),this.size=n.size,this}function U(t,e){var n=He(t),r=!n&&Ye(t),o=!n&&!r&&Ge(t),i=!n&&!r&&!o&&Je(t),u=n||r||o||i,c=u?a(t.length,String):[],s=c.length;for(var f in t)!e&&!ge.call(t,f)||u&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||rt(f,s))||c.push(f);return c}function B(t,e){for(var n=t.length;n--;)if(st(t[n][0],e))return n;return-1}function V(t,e,n){var r=e(t);return He(t)?r:o(r,n(t))}function M(t){return null==t?void 0===t?Vt:zt:Ae&&Ae in Object(t)?nt(t):ut(t)}function W(t){return yt(t)&&M(t)==Et}function K(t,e,n,r,o){return t===e||(null==t||null==e||!yt(t)&&!yt(e)?t!==t&&e!==e:$(t,e,n,r,K,o))}function $(t,e,n,r,o,i){var a=He(t),u=He(e),c=a?Pt:$e(t),s=u?Pt:$e(e);c=c==Et?Nt:c,s=s==Et?Nt:s;var f=c==Nt,l=s==Nt,p=c==s;if(p&&Ge(t)){if(!Ge(e))return!1;a=!0,f=!1}if(p&&!f)return i||(i=new z),a||Je(t)?J(t,e,n,r,o,i):Q(t,e,c,n,r,o,i);if(!(n&wt)){var d=f&&ge.call(t,"__wrapped__"),h=l&&ge.call(e,"__wrapped__");if(d||h){var y=d?t.value():t,v=h?e.value():e;return i||(i=new z),o(y,v,n,r,i)}}return!!p&&(i||(i=new z),X(t,e,n,r,o,i))}function Y(t){if(!ht(t)||it(t))return!1;var e=pt(t)?je:ne;return e.test(ct(t))}function H(t){return yt(t)&&dt(t.length)&&!!oe[M(t)]}function G(t){if(!at(t))return Ce(t);var e=[];for(var n in Object(t))ge.call(t,n)&&"constructor"!=n&&e.push(n);return e}function J(t,e,n,r,o,a){var u=n&wt,s=t.length,f=e.length;if(s!=f&&!(u&&f>s))return!1;var l=a.get(t);if(l&&a.get(e))return l==e;var p=-1,d=!0,h=n&jt?new C:void 0;for(a.set(t,e),a.set(e,t);++p<s;){var y=t[p],v=e[p];if(r)var b=u?r(v,y,p,e,t,a):r(y,v,p,t,e,a);if(void 0!==b){if(b)continue;d=!1;break}if(h){if(!i(e,function(t,e){if(!c(h,e)&&(y===t||o(y,t,n,r,a)))return h.push(e)})){d=!1;break}}else if(y!==v&&!o(y,v,n,r,a)){d=!1;break}}return a["delete"](t),a["delete"](e),d}function Q(t,e,n,r,o,i,a){switch(n){case Kt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Wt:return!(t.byteLength!=e.byteLength||!i(new Pe(t),new Pe(e)));case kt:case At:case Dt:return st(+t,+e);case xt:return t.name==e.name&&t.message==e.message;case Lt:case Ut:return t==e+"";case St:var u=f;case qt:var c=r&wt;if(u||(u=p),t.size!=e.size&&!c)return!1;var s=a.get(t);if(s)return s==e;r|=jt,a.set(t,e);var l=J(u(t),u(e),r,o,i,a);return a["delete"](t),l;case Bt:if(We)return We.call(t)==We.call(e)}return!1}function X(t,e,n,r,o,i){var a=n&wt,u=Z(t),c=u.length,s=Z(e),f=s.length;if(c!=f&&!a)return!1;for(var l=c;l--;){var p=u[l];if(!(a?p in e:ge.call(e,p)))return!1}var d=i.get(t);if(d&&i.get(e))return d==e;var h=!0;i.set(t,e),i.set(e,t);for(var y=a;++l<c;){p=u[l];var v=t[p],b=e[p];if(r)var _=a?r(b,v,p,e,t,i):r(v,b,p,t,e,i);if(!(void 0===_?v===b||o(v,b,n,r,i):_)){h=!1;break}y||(y="constructor"==p)}if(h&&!y){var g=t.constructor,m=e.constructor;g!=m&&"constructor"in t&&"constructor"in e&&!("function"==typeof g&&g instanceof g&&"function"==typeof m&&m instanceof m)&&(h=!1)}return i["delete"](t),i["delete"](e),h}function Z(t){return V(t,vt,Ke)}function tt(t,e){var n=t.__data__;return ot(e)?n["string"==typeof e?"string":"hash"]:n.map}function et(t,e){var n=s(t,e);return Y(n)?n:void 0}function nt(t){var e=ge.call(t,Ae),n=t[Ae];try{t[Ae]=void 0;var r=!0}catch(o){}var i=we.call(t);return r&&(e?t[Ae]=n:delete t[Ae]),i}function rt(t,e){return e=null==e?Ot:e,!!e&&("number"==typeof t||re.test(t))&&t>-1&&t%1==0&&t<e}function ot(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function it(t){return!!me&&me in t}function at(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||ve;return t===n}function ut(t){return we.call(t)}function ct(t){if(null!=t){try{return _e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function st(t,e){return t===e||t!==t&&e!==e}function ft(t){return null!=t&&dt(t.length)&&!pt(t)}function lt(t,e){return K(t,e)}function pt(t){if(!ht(t))return!1;var e=M(t);return e==Rt||e==Ct||e==Tt||e==Ft}function dt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Ot}function ht(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function yt(t){return null!=t&&"object"==typeof t}function vt(t){return ft(t)?U(t):G(t)}function bt(){return[]}function _t(){return!1}var gt=200,mt="__lodash_hash_undefined__",wt=1,jt=2,Ot=9007199254740991,Et="[object Arguments]",Pt="[object Array]",Tt="[object AsyncFunction]",kt="[object Boolean]",At="[object Date]",xt="[object Error]",Rt="[object Function]",Ct="[object GeneratorFunction]",St="[object Map]",Dt="[object Number]",zt="[object Null]",Nt="[object Object]",It="[object Promise]",Ft="[object Proxy]",Lt="[object RegExp]",qt="[object Set]",Ut="[object String]",Bt="[object Symbol]",Vt="[object Undefined]",Mt="[object WeakMap]",Wt="[object ArrayBuffer]",Kt="[object DataView]",$t="[object Float32Array]",Yt="[object Float64Array]",Ht="[object Int8Array]",Gt="[object Int16Array]",Jt="[object Int32Array]",Qt="[object Uint8Array]",Xt="[object Uint8ClampedArray]",Zt="[object Uint16Array]",te="[object Uint32Array]",ee=/[\\^$.*+?()[\]{}|]/g,ne=/^\[object .+?Constructor\]$/,re=/^(?:0|[1-9]\d*)$/,oe={};oe[$t]=oe[Yt]=oe[Ht]=oe[Gt]=oe[Jt]=oe[Qt]=oe[Xt]=oe[Zt]=oe[te]=!0,oe[Et]=oe[Pt]=oe[Wt]=oe[kt]=oe[Kt]=oe[At]=oe[xt]=oe[Rt]=oe[St]=oe[Dt]=oe[Nt]=oe[Lt]=oe[qt]=oe[Ut]=oe[Mt]=!1;var ie="object"==typeof t&&t&&t.Object===Object&&t,ae="object"==typeof self&&self&&self.Object===Object&&self,ue=ie||ae||Function("return this")(),ce="object"==typeof n&&n&&!n.nodeType&&n,se=ce&&"object"==typeof e&&e&&!e.nodeType&&e,fe=se&&se.exports===ce,le=fe&&ie.process,pe=function(){try{return le&&le.binding&&le.binding("util")}catch(t){}}(),de=pe&&pe.isTypedArray,he=Array.prototype,ye=Function.prototype,ve=Object.prototype,be=ue["__core-js_shared__"],_e=ye.toString,ge=ve.hasOwnProperty,me=function(){var t=/[^.]+$/.exec(be&&be.keys&&be.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),we=ve.toString,je=RegExp("^"+_e.call(ge).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oe=fe?ue.Buffer:void 0,Ee=ue.Symbol,Pe=ue.Uint8Array,Te=ve.propertyIsEnumerable,ke=he.splice,Ae=Ee?Ee.toStringTag:void 0,xe=Object.getOwnPropertySymbols,Re=Oe?Oe.isBuffer:void 0,Ce=l(Object.keys,Object),Se=et(ue,"DataView"),De=et(ue,"Map"),ze=et(ue,"Promise"),Ne=et(ue,"Set"),Ie=et(ue,"WeakMap"),Fe=et(Object,"create"),Le=ct(Se),qe=ct(De),Ue=ct(ze),Be=ct(Ne),Ve=ct(Ie),Me=Ee?Ee.prototype:void 0,We=Me?Me.valueOf:void 0;d.prototype.clear=h,d.prototype["delete"]=y,d.prototype.get=v,d.prototype.has=b,d.prototype.set=_,g.prototype.clear=m,g.prototype["delete"]=w,g.prototype.get=j,g.prototype.has=O,g.prototype.set=E,P.prototype.clear=T,P.prototype["delete"]=k,P.prototype.get=A,P.prototype.has=x,P.prototype.set=R,C.prototype.add=C.prototype.push=S,C.prototype.has=D,z.prototype.clear=N,z.prototype["delete"]=I,z.prototype.get=F,z.prototype.has=L,z.prototype.set=q;var Ke=xe?function(t){return null==t?[]:(t=Object(t),r(xe(t),function(e){return Te.call(t,e)}))}:bt,$e=M;(Se&&$e(new Se(new ArrayBuffer(1)))!=Kt||De&&$e(new De)!=St||ze&&$e(ze.resolve())!=It||Ne&&$e(new Ne)!=qt||Ie&&$e(new Ie)!=Mt)&&($e=function(t){var e=M(t),n=e==Nt?t.constructor:void 0,r=n?ct(n):"";if(r)switch(r){case Le:return Kt;case qe:return St;case Ue:return It;case Be:return qt;case Ve:return Mt}return e});var Ye=W(function(){return arguments}())?W:function(t){return yt(t)&&ge.call(t,"callee")&&!Te.call(t,"callee")},He=Array.isArray,Ge=Re||_t,Je=de?u(de):H;e.exports=lt}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],5:[function(t,e,n){function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function a(t){if(p===clearTimeout)return clearTimeout(t);if((p===o||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(t);try{return p(t)}catch(e){try{return p.call(null,t)}catch(e){return p.call(this,t)}}}function u(){v&&h&&(v=!1,h.length?y=h.concat(y):b=-1,y.length&&c())}function c(){if(!v){var t=i(u);v=!0;for(var e=y.length;e;){for(h=y,y=[];++b<e;)h&&h[b].run();b=-1,e=y.length}h=null,v=!1,a(t)}}function s(t,e){this.fun=t,this.array=e}function f(){}var l,p,d=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:r}catch(t){l=r}try{p="function"==typeof clearTimeout?clearTimeout:o}catch(t){p=o}}();var h,y=[],v=!1,b=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];y.push(new s(t,e)),1!==y.length||v||i(c)},s.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=f,d.addListener=f,d.once=f,d.off=f,d.removeListener=f,d.removeAllListeners=f,d.emit=f,d.prependListener=f,d.prependOnceListener=f,d.listeners=function(t){return[]},d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],6:[function(t,e,n){(function(n){"use strict";function r(t,e,r,c,s){if("production"!==n.env.NODE_ENV)for(var f in t)if(t.hasOwnProperty(f)){var l;try{o("function"==typeof t[f],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",c||"React class",r,f),l=t[f](e,f,c,r,null,a)}catch(p){l=p}if(i(!l||l 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).",c||"React class",r,f,typeof l),l instanceof Error&&!(l.message in u)){u[l.message]=!0;var d=s?s():"";i(!1,"Failed %s type: %s%s",r,l.message,null!=d?d:"")}}}if("production"!==n.env.NODE_ENV)var o=t("fbjs/lib/invariant"),i=t("fbjs/lib/warning"),a=t("./lib/ReactPropTypesSecret"),u={};e.exports=r}).call(this,t("_process"))},{"./lib/ReactPropTypesSecret":10,_process:5,"fbjs/lib/invariant":2,"fbjs/lib/warning":3}],7:[function(t,e,n){"use strict";var r=t("fbjs/lib/emptyFunction"),o=t("fbjs/lib/invariant"),i=t("./lib/ReactPropTypesSecret");e.exports=function(){function t(t,e,n,r,a,u){u!==i&&o(!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=r,n.PropTypes=n,n}},{"./lib/ReactPropTypesSecret":10,"fbjs/lib/emptyFunction":1,"fbjs/lib/invariant":2}],8:[function(t,e,n){(function(n){"use strict";var r=t("fbjs/lib/emptyFunction"),o=t("fbjs/lib/invariant"),i=t("fbjs/lib/warning"),a=t("./lib/ReactPropTypesSecret"),u=t("./checkPropTypes");e.exports=function(t,e){function c(t){var e=t&&(A&&t[A]||t[x]);if("function"==typeof e)return e}function s(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function f(t){this.message=t,this.stack=""}function l(t){function r(r,s,l,p,d,h,y){if(p=p||R,h=h||l,y!==a)if(e)o(!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"!==n.env.NODE_ENV&&"undefined"!=typeof console){var v=p+":"+l;!u[v]&&c<3&&(i(!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.",h,p),u[v]=!0,c++)}return null==s[l]?r?new f(null===s[l]?"The "+d+" `"+h+"` is marked as required "+("in `"+p+"`, but its value is `null`."):"The "+d+" `"+h+"` is marked as required in "+("`"+p+"`, but its value is `undefined`.")):null:t(s,l,p,d,h)}if("production"!==n.env.NODE_ENV)var u={},c=0;var s=r.bind(null,!1);return s.isRequired=r.bind(null,!0),s}function p(t){function e(e,n,r,o,i,a){var u=e[n],c=E(u);if(c!==t){var s=P(u);return new f("Invalid "+o+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("`"+t+"`."))}return null}return l(e)}function d(){return l(r.thatReturnsNull)}function h(t){function e(e,n,r,o,i){if("function"!=typeof t)return new f("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=e[n];if(!Array.isArray(u)){var c=E(u);return new f("Invalid "+o+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an array."))}for(var s=0;s<u.length;s++){var l=t(u,s,r,o,i+"["+s+"]",a);if(l instanceof Error)return l}return null}return l(e)}function y(){function e(e,n,r,o,i){var a=e[n];if(!t(a)){var u=E(a);return new f("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return l(e)}function v(t){function e(e,n,r,o,i){if(!(e[n]instanceof t)){var a=t.name||R,u=k(e[n]);return new f("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected ")+("instance of `"+a+"`."))}return null}return l(e)}function b(t){function e(e,n,r,o,i){for(var a=e[n],u=0;u<t.length;u++)if(s(a,t[u]))return null;var c=JSON.stringify(t);return new f("Invalid "+o+" `"+i+"` of value `"+a+"` "+("supplied to `"+r+"`, expected one of "+c+"."))}return Array.isArray(t)?l(e):("production"!==n.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOf, expected an instance of array."):void 0,r.thatReturnsNull)}function _(t){function e(e,n,r,o,i){if("function"!=typeof t)return new f("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=e[n],c=E(u);if("object"!==c)return new f("Invalid "+o+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an object."));for(var s in u)if(u.hasOwnProperty(s)){var l=t(u,s,r,o,i+"."+s,a);if(l instanceof Error)return l}return null}return l(e)}function g(t){function e(e,n,r,o,i){for(var u=0;u<t.length;u++){var c=t[u];if(null==c(e,n,r,o,i,a))return null}return new f("Invalid "+o+" `"+i+"` supplied to "+("`"+r+"`."))}if(!Array.isArray(t))return"production"!==n.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."):void 0,r.thatReturnsNull;for(var o=0;o<t.length;o++){var u=t[o];if("function"!=typeof u)return i(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",T(u),o),r.thatReturnsNull}return l(e)}function m(){function t(t,e,n,r,o){return j(t[e])?null:new f("Invalid "+r+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return l(t)}function w(t){function e(e,n,r,o,i){var u=e[n],c=E(u);if("object"!==c)return new f("Invalid "+o+" `"+i+"` of type `"+c+"` "+("supplied to `"+r+"`, expected `object`."));for(var s in t){var l=t[s];if(l){var p=l(u,s,r,o,i+"."+s,a);if(p)return p}}return null}return l(e)}function j(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(j);if(null===e||t(e))return!0;var n=c(e);if(!n)return!1;var r,o=n.call(e);if(n!==e.entries){for(;!(r=o.next()).done;)if(!j(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!j(i[1]))return!1}return!0;default:return!1}}function O(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function E(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":O(e,t)?"symbol":e}function P(t){if("undefined"==typeof t||null===t)return""+t;var e=E(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function T(t){var e=P(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}function k(t){return t.constructor&&t.constructor.name?t.constructor.name:R}var A="function"==typeof Symbol&&Symbol.iterator,x="@@iterator",R="<<anonymous>>",C={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:d(),arrayOf:h,element:y(),instanceOf:v,node:m(),objectOf:_,oneOf:b,oneOfType:g,shape:w};return f.prototype=Error.prototype,C.checkPropTypes=u,C.PropTypes=C,C}}).call(this,t("_process"))},{"./checkPropTypes":6,"./lib/ReactPropTypesSecret":10,_process:5,"fbjs/lib/emptyFunction":1,"fbjs/lib/invariant":2,"fbjs/lib/warning":3}],9:[function(t,e,n){(function(n){if("production"!==n.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,o=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},i=!0;e.exports=t("./factoryWithTypeCheckers")(o,i)}else e.exports=t("./factoryWithThrowingShims")()}).call(this,t("_process"))},{"./factoryWithThrowingShims":7,"./factoryWithTypeCheckers":8,_process:5}],10:[function(t,e,n){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=r},{}],11:[function(t,e,n){(function(e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(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}function u(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)}Object.defineProperty(n,"__esModule",{value:!0}),n.Chart=n.defaults=n.Scatter=n.Bubble=n.Polar=n.Radar=n.HorizontalBar=n.Bar=n.Line=n.Pie=n.Doughnut=void 0;var c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),f="undefined"!=typeof window?window.React:"undefined"!=typeof e?e.React:null,l=r(f),p=t("prop-types"),d=r(p),h="undefined"!=typeof window?window.Chart:"undefined"!=typeof e?e.Chart:null,y=r(h),v=t("lodash.isequal"),b=r(v);Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var i=e[o];if(t.call(r,i,o,e))return i;o++}}});var _=function(t){function e(){var t,n,r,o;i(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(c))),r.handleOnClick=function(t){var e=r.chart_instance,n=r.props,o=n.getDatasetAtEvent,i=n.getElementAtEvent,a=n.getElementsAtEvent,u=n.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)},r.ref=function(t){r.element=t},o=n,a(r,o)}return u(e,t),s(e,[{key:"componentWillMount",value:function(){this.chart_instance=void 0}},{key:"componentDidMount",value:function(){this.renderChart()}},{key:"componentDidUpdate",value:function(){return this.props.redraw?(this.chart_instance.destroy(),void this.renderChart()):void this.updateChart()}},{key:"shouldComponentUpdate",value:function(t){var e=this.props,n=(e.redraw,e.type),r=e.options,o=e.plugins,i=e.legend,a=e.height,u=e.width;if(t.redraw===!0)return!0;if(a!==t.height||u!==t.width)return!0;if(n!==t.type)return!0;if(!(0,b["default"])(i,t.legend))return!0;if(!(0,b["default"])(r,t.options))return!0;var c=this.transformDataProp(t);return!(0,b["default"])(this.shadowDataProp,c)||!(0,b["default"])(o,t.plugins)}},{key:"componentWillUnmount",value:function(){this.chart_instance.destroy()}},{key:"transformDataProp",value:function(t){var e=t.data;if("function"==typeof e){var n=this.element;return e(n)}return e}},{key:"memoizeDataProps",value:function(){if(this.props.data){var t=this.transformDataProp(this.props);return this.shadowDataProp=c({},t,{datasets:t.datasets&&t.datasets.map(function(t){return c({},t)})}),t}}},{key:"updateChart",value:function(){var t=this,e=this.props.options,n=this.memoizeDataProps(this.props);if(this.chart_instance){e&&(this.chart_instance.options=y["default"].helpers.configMerge(this.chart_instance.options,e));for(var r=this.chart_instance.config.data&&this.chart_instance.config.data.datasets||[],i=n.datasets||[],a=r.map(this.props.datasetKeyProvider),u=i.map(this.props.datasetKeyProvider),s=i.filter(function(e){return a.indexOf(t.props.datasetKeyProvider(e))===-1}),f=function(e){var n=t.props.datasetKeyProvider(r[e]);if(u.indexOf(n)===-1)r.splice(e,1);else{var a=i.find(function(e){return t.props.datasetKeyProvider(e)===n});if(a){r[e].data.splice(a.data.length),a.data.forEach(function(t,n){r[e].data[n]=a.data[n]});var s=(a.data,o(a,["data"]));r[e]=c({data:r[e].data},r[e],s)}}},l=r.length-1;l>=0;l-=1)f(l);s.forEach(function(t){return r.push(t)});var p=(n.datasets,o(n,["datasets"]));this.chart_instance.config.data=c({},this.chart_instance.config.data,p),this.chart_instance.update()}}},{key:"renderChart",value:function(){var t=this.props,n=t.options,r=t.legend,o=t.type,i=(t.redraw,t.plugins),a=this.element,u=this.memoizeDataProps();"undefined"==typeof r||(0,b["default"])(e.defaultProps.legend,r)||(n.legend=r),this.chart_instance=new y["default"](a,{type:o,data:u,options:n,plugins:i})}},{key:"render",value:function(){var t=this.props,e=t.height,n=t.width;t.onElementsClick;return l["default"].createElement("canvas",{ref:this.ref,height:e,width:n,onClick:this.handleOnClick})}}]),e}(l["default"].Component);_.getLabelAsKey=function(t){return t.label},_.propTypes={data:d["default"].oneOfType([d["default"].object,d["default"].func]).isRequired,getDatasetAtEvent:d["default"].func,getElementAtEvent:d["default"].func,getElementsAtEvent:d["default"].func,height:d["default"].number,legend:d["default"].object,onElementsClick:d["default"].func,options:d["default"].object,plugins:d["default"].arrayOf(d["default"].object),redraw:d["default"].bool,type:function(t,e,n){if(!Object.keys(y["default"].controllers).find(function(n){return n===t[e]}))return new Error("Invalid chart type `"+t[e]+"` supplied to `"+n+"`.")},width:d["default"].number,datasetKeyProvider:d["default"].func},_.defaultProps={legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:_.getLabelAsKey},n["default"]=_;n.Doughnut=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),s(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(_,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"doughnut"}))}}]),e}(l["default"].Component),n.Pie=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),s(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(_,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"pie"}))}}]),e}(l["default"].Component),n.Line=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),s(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(_,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"line"}))}}]),e}(l["default"].Component),n.Bar=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),s(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(_,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"bar"}))}}]),e}(l["default"].Component),n.HorizontalBar=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),s(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(_,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"horizontalBar"}))}}]),e}(l["default"].Component),n.Radar=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),s(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(_,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"radar"}))}}]),e}(l["default"].Component),n.Polar=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),s(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(_,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"polarArea"}))}}]),e}(l["default"].Component),n.Bubble=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),s(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(_,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"bubble"}))}}]),e}(l["default"].Component),n.Scatter=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),s(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(_,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"scatter"}))}}]),e}(l["default"].Component),n.defaults=y["default"].defaults;n.Chart=y["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"lodash.isequal":4,"prop-types":9}]},{},[11])(11)});
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.reactChartjs2=t()}}(function(){return function t(e,n,r){function o(a,u){if(!n[a]){if(!e[a]){var c="function"==typeof require&&require;if(!u&&c)return c(a,!0);if(i)return i(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var s=n[a]={exports:{}};e[a][0].call(s.exports,function(t){var n=e[a][1][t];return o(n?n:t)},s,s.exports,t,e,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(t,e,n){"use strict";function r(t){return function(){return t}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},e.exports=o},{}],2:[function(t,e,n){(function(t){"use strict";function n(t,e,n,o,i,a,u,c){if(r(e),!t){var f;if(void 0===e)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,o,i,a,u,c],l=0;f=new Error(e.replace(/%s/g,function(){return s[l++]})),f.name="Invariant Violation"}throw f.framesToPop=1,f}}var r=function(t){};"production"!==t.env.NODE_ENV&&(r=function(t){if(void 0===t)throw new Error("invariant requires an error message argument")}),e.exports=n}).call(this,t("_process"))},{_process:6}],3:[function(t,e,n){(function(n){"use strict";var r=t("./emptyFunction"),o=r;"production"!==n.env.NODE_ENV&&!function(){var t=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+t.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(a){}};o=function(e,n){if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==n.indexOf("Failed Composite propType: ")&&!e){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];t.apply(void 0,[n].concat(o))}}}(),e.exports=o}).call(this,t("_process"))},{"./emptyFunction":1,_process:6}],4:[function(t,e,n){(function(t){function r(t,e){for(var n=-1,r=t?t.length:0;++n<r;)if(e(t[n],n,t))return!0;return!1}function o(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function i(t){return function(e){return null==e?void 0:e[t]}}function a(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function u(t){return function(e){return t(e)}}function c(t,e){return null==t?void 0:t[e]}function f(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function s(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function l(t,e){return function(n){return t(e(n))}}function p(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function h(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function d(){this.__data__=pn?pn(null):{}}function y(t){return this.has(t)&&delete this.__data__[t]}function v(t){var e=this.__data__;if(pn){var n=e[t];return n===Mt?void 0:n}return Qe.call(e,t)?e[t]:void 0}function _(t){var e=this.__data__;return pn?void 0!==e[t]:Qe.call(e,t)}function b(t,e){var n=this.__data__;return n[t]=pn&&void 0===e?Mt:e,this}function g(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function m(){this.__data__=[]}function w(t){var e=this.__data__,n=B(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():rn.call(e,n,1),!0}function j(t){var e=this.__data__,n=B(e,t);return n<0?void 0:e[n][1]}function O(t){return B(this.__data__,t)>-1}function E(t,e){var n=this.__data__,r=B(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}function P(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function T(){this.__data__={hash:new h,map:new(cn||g),string:new h}}function A(t){return ut(this,t)["delete"](t)}function k(t){return ut(this,t).get(t)}function x(t){return ut(this,t).has(t)}function S(t,e){return ut(this,t).set(t,e),this}function R(t){var e=-1,n=t?t.length:0;for(this.__data__=new P;++e<n;)this.add(t[e])}function C(t){return this.__data__.set(t,Mt),this}function D(t){return this.__data__.has(t)}function z(t){this.__data__=new g(t)}function N(){this.__data__=new g}function I(t){return this.__data__["delete"](t)}function F(t){return this.__data__.get(t)}function $(t){return this.__data__.has(t)}function L(t,e){var n=this.__data__;if(n instanceof g){var r=n.__data__;if(!cn||r.length<Ut-1)return r.push([t,e]),this;n=this.__data__=new P(r)}return n.set(t,e),this}function U(t,e){var n=En(t)||Ot(t)?a(t.length,String):[],r=n.length,o=!!r;for(var i in t)!e&&!Qe.call(t,i)||o&&("length"==i||lt(i,r))||n.push(i);return n}function B(t,e){for(var n=t.length;n--;)if(jt(t[n][0],e))return n;return-1}function M(t,e){e=pt(e,t)?[e]:nt(e);for(var n=0,r=e.length;null!=t&&n<r;)t=t[bt(e[n++])];return n&&n==r?t:void 0}function q(t){return Xe.call(t)}function V(t,e){return null!=t&&e in Object(t)}function W(t,e,n,r,o){return t===e||(null==t||null==e||!kt(t)&&!xt(e)?t!==t&&e!==e:K(t,e,W,n,r,o))}function K(t,e,n,r,o,i){var a=En(t),u=En(e),c=Jt,s=Jt;a||(c=wn(t),c=c==Gt?oe:c),u||(s=wn(e),s=s==Gt?oe:s);var l=c==oe&&!f(t),p=s==oe&&!f(e),h=c==s;if(h&&!l)return i||(i=new z),a||Pn(t)?ot(t,e,n,r,o,i):it(t,e,c,n,r,o,i);if(!(o&Vt)){var d=l&&Qe.call(t,"__wrapped__"),y=p&&Qe.call(e,"__wrapped__");if(d||y){var v=d?t.value():t,_=y?e.value():e;return i||(i=new z),n(v,_,r,o,i)}}return!!h&&(i||(i=new z),at(t,e,n,r,o,i))}function Y(t,e,n,r){var o=n.length,i=o,a=!r;if(null==t)return!i;for(t=Object(t);o--;){var u=n[o];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<i;){u=n[o];var c=u[0],f=t[c],s=u[1];if(a&&u[2]){if(void 0===f&&!(c in t))return!1}else{var l=new z;if(r)var p=r(f,s,c,t,e,l);if(!(void 0===p?W(s,f,r,qt|Vt,l):p))return!1}}return!0}function H(t){if(!kt(t)||dt(t))return!1;var e=Tt(t)||f(t)?Ze:Re;return e.test(gt(t))}function G(t){return xt(t)&&At(t.length)&&!!ze[Xe.call(t)]}function J(t){return"function"==typeof t?t:null==t?$t:"object"==typeof t?En(t)?Z(t[0],t[1]):X(t):Lt(t)}function Q(t){if(!yt(t))return on(t);var e=[];for(var n in Object(t))Qe.call(t,n)&&"constructor"!=n&&e.push(n);return e}function X(t){var e=ct(t);return 1==e.length&&e[0][2]?_t(e[0][0],e[0][1]):function(n){return n===t||Y(n,t,e)}}function Z(t,e){return pt(t)&&vt(e)?_t(bt(t),e):function(n){var r=Nt(n,t);return void 0===r&&r===e?It(n,t):W(e,r,void 0,qt|Vt)}}function tt(t){return function(e){return M(e,t)}}function et(t){if("string"==typeof t)return t;if(St(t))return mn?mn.call(t):"";var e=t+"";return"0"==e&&1/t==-Wt?"-0":e}function nt(t){return En(t)?t:jn(t)}function rt(t){return function(e,n,r){var o=Object(e);if(!Et(e)){var i=J(n,3);e=Ft(e),n=function(t){return i(o[t],t,o)}}var a=t(e,n,r);return a>-1?o[i?e[a]:a]:void 0}}function ot(t,e,n,o,i,a){var u=i&Vt,c=t.length,f=e.length;if(c!=f&&!(u&&f>c))return!1;var s=a.get(t);if(s&&a.get(e))return s==e;var l=-1,p=!0,h=i&qt?new R:void 0;for(a.set(t,e),a.set(e,t);++l<c;){var d=t[l],y=e[l];if(o)var v=u?o(y,d,l,e,t,a):o(d,y,l,t,e,a);if(void 0!==v){if(v)continue;p=!1;break}if(h){if(!r(e,function(t,e){if(!h.has(e)&&(d===t||n(d,t,o,i,a)))return h.add(e)})){p=!1;break}}else if(d!==y&&!n(d,y,o,i,a)){p=!1;break}}return a["delete"](t),a["delete"](e),p}function it(t,e,n,r,o,i,a){switch(n){case pe:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case le:return!(t.byteLength!=e.byteLength||!r(new en(t),new en(e)));case Qt:case Xt:case re:return jt(+t,+e);case Zt:return t.name==e.name&&t.message==e.message;case ae:case ce:return t==e+"";case ne:var u=s;case ue:var c=i&Vt;if(u||(u=p),t.size!=e.size&&!c)return!1;var f=a.get(t);if(f)return f==e;i|=qt,a.set(t,e);var l=ot(u(t),u(e),r,o,i,a);return a["delete"](t),l;case fe:if(gn)return gn.call(t)==gn.call(e)}return!1}function at(t,e,n,r,o,i){var a=o&Vt,u=Ft(t),c=u.length,f=Ft(e),s=f.length;if(c!=s&&!a)return!1;for(var l=c;l--;){var p=u[l];if(!(a?p in e:Qe.call(e,p)))return!1}var h=i.get(t);if(h&&i.get(e))return h==e;var d=!0;i.set(t,e),i.set(e,t);for(var y=a;++l<c;){p=u[l];var v=t[p],_=e[p];if(r)var b=a?r(_,v,p,e,t,i):r(v,_,p,t,e,i);if(!(void 0===b?v===_||n(v,_,r,o,i):b)){d=!1;break}y||(y="constructor"==p)}if(d&&!y){var g=t.constructor,m=e.constructor;g!=m&&"constructor"in t&&"constructor"in e&&!("function"==typeof g&&g instanceof g&&"function"==typeof m&&m instanceof m)&&(d=!1)}return i["delete"](t),i["delete"](e),d}function ut(t,e){var n=t.__data__;return ht(e)?n["string"==typeof e?"string":"hash"]:n.map}function ct(t){for(var e=Ft(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,vt(o)]}return e}function ft(t,e){var n=c(t,e);return H(n)?n:void 0}function st(t,e,n){e=pt(e,t)?[e]:nt(e);for(var r,o=-1,i=e.length;++o<i;){var a=bt(e[o]);if(!(r=null!=t&&n(t,a)))break;t=t[a]}if(r)return r;var i=t?t.length:0;return!!i&&At(i)&&lt(a,i)&&(En(t)||Ot(t))}function lt(t,e){return e=null==e?Kt:e,!!e&&("number"==typeof t||De.test(t))&&t>-1&&t%1==0&&t<e}function pt(t,e){if(En(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!St(t))||(Oe.test(t)||!je.test(t)||null!=e&&t in Object(e))}function ht(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function dt(t){return!!Ge&&Ge in t}function yt(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||Ye;return t===n}function vt(t){return t===t&&!kt(t)}function _t(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}function bt(t){if("string"==typeof t||St(t))return t;var e=t+"";return"0"==e&&1/t==-Wt?"-0":e}function gt(t){if(null!=t){try{return Je.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function mt(t,e,n){var r=t?t.length:0;if(!r)return-1;var i=null==n?0:Ct(n);return i<0&&(i=an(r+i,0)),o(t,J(e,3),i)}function wt(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(Bt);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(wt.Cache||P),n}function jt(t,e){return t===e||t!==t&&e!==e}function Ot(t){return Pt(t)&&Qe.call(t,"callee")&&(!nn.call(t,"callee")||Xe.call(t)==Gt)}function Et(t){return null!=t&&At(t.length)&&!Tt(t)}function Pt(t){return xt(t)&&Et(t)}function Tt(t){var e=kt(t)?Xe.call(t):"";return e==te||e==ee}function At(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Kt}function kt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function xt(t){return!!t&&"object"==typeof t}function St(t){return"symbol"==typeof t||xt(t)&&Xe.call(t)==fe}function Rt(t){if(!t)return 0===t?t:0;if(t=Dt(t),t===Wt||t===-Wt){var e=t<0?-1:1;return e*Yt}return t===t?t:0}function Ct(t){var e=Rt(t),n=e%1;return e===e?n?e-n:e:0}function Dt(t){if("number"==typeof t)return t;if(St(t))return Ht;if(kt(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=kt(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Ae,"");var n=Se.test(t);return n||Ce.test(t)?Ne(t.slice(2),n?2:8):xe.test(t)?Ht:+t}function zt(t){return null==t?"":et(t)}function Nt(t,e,n){var r=null==t?void 0:M(t,e);return void 0===r?n:r}function It(t,e){return null!=t&&st(t,e,V)}function Ft(t){return Et(t)?U(t):Q(t)}function $t(t){return t}function Lt(t){return pt(t)?i(bt(t)):tt(t)}var Ut=200,Bt="Expected a function",Mt="__lodash_hash_undefined__",qt=1,Vt=2,Wt=1/0,Kt=9007199254740991,Yt=1.7976931348623157e308,Ht=NaN,Gt="[object Arguments]",Jt="[object Array]",Qt="[object Boolean]",Xt="[object Date]",Zt="[object Error]",te="[object Function]",ee="[object GeneratorFunction]",ne="[object Map]",re="[object Number]",oe="[object Object]",ie="[object Promise]",ae="[object RegExp]",ue="[object Set]",ce="[object String]",fe="[object Symbol]",se="[object WeakMap]",le="[object ArrayBuffer]",pe="[object DataView]",he="[object Float32Array]",de="[object Float64Array]",ye="[object Int8Array]",ve="[object Int16Array]",_e="[object Int32Array]",be="[object Uint8Array]",ge="[object Uint8ClampedArray]",me="[object Uint16Array]",we="[object Uint32Array]",je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oe=/^\w*$/,Ee=/^\./,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Te=/[\\^$.*+?()[\]{}|]/g,Ae=/^\s+|\s+$/g,ke=/\\(\\)?/g,xe=/^[-+]0x[0-9a-f]+$/i,Se=/^0b[01]+$/i,Re=/^\[object .+?Constructor\]$/,Ce=/^0o[0-7]+$/i,De=/^(?:0|[1-9]\d*)$/,ze={};ze[he]=ze[de]=ze[ye]=ze[ve]=ze[_e]=ze[be]=ze[ge]=ze[me]=ze[we]=!0,ze[Gt]=ze[Jt]=ze[le]=ze[Qt]=ze[pe]=ze[Xt]=ze[Zt]=ze[te]=ze[ne]=ze[re]=ze[oe]=ze[ae]=ze[ue]=ze[ce]=ze[se]=!1;var Ne=parseInt,Ie="object"==typeof t&&t&&t.Object===Object&&t,Fe="object"==typeof self&&self&&self.Object===Object&&self,$e=Ie||Fe||Function("return this")(),Le="object"==typeof n&&n&&!n.nodeType&&n,Ue=Le&&"object"==typeof e&&e&&!e.nodeType&&e,Be=Ue&&Ue.exports===Le,Me=Be&&Ie.process,qe=function(){try{return Me&&Me.binding("util")}catch(t){}}(),Ve=qe&&qe.isTypedArray,We=Array.prototype,Ke=Function.prototype,Ye=Object.prototype,He=$e["__core-js_shared__"],Ge=function(){var t=/[^.]+$/.exec(He&&He.keys&&He.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Je=Ke.toString,Qe=Ye.hasOwnProperty,Xe=Ye.toString,Ze=RegExp("^"+Je.call(Qe).replace(Te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tn=$e.Symbol,en=$e.Uint8Array,nn=Ye.propertyIsEnumerable,rn=We.splice,on=l(Object.keys,Object),an=Math.max,un=ft($e,"DataView"),cn=ft($e,"Map"),fn=ft($e,"Promise"),sn=ft($e,"Set"),ln=ft($e,"WeakMap"),pn=ft(Object,"create"),hn=gt(un),dn=gt(cn),yn=gt(fn),vn=gt(sn),_n=gt(ln),bn=tn?tn.prototype:void 0,gn=bn?bn.valueOf:void 0,mn=bn?bn.toString:void 0;h.prototype.clear=d,h.prototype["delete"]=y,h.prototype.get=v,h.prototype.has=_,h.prototype.set=b,g.prototype.clear=m,g.prototype["delete"]=w,g.prototype.get=j,g.prototype.has=O,g.prototype.set=E,P.prototype.clear=T,P.prototype["delete"]=A,P.prototype.get=k,P.prototype.has=x,P.prototype.set=S,R.prototype.add=R.prototype.push=C,R.prototype.has=D,z.prototype.clear=N,z.prototype["delete"]=I,z.prototype.get=F,z.prototype.has=$,z.prototype.set=L;var wn=q;(un&&wn(new un(new ArrayBuffer(1)))!=pe||cn&&wn(new cn)!=ne||fn&&wn(fn.resolve())!=ie||sn&&wn(new sn)!=ue||ln&&wn(new ln)!=se)&&(wn=function(t){var e=Xe.call(t),n=e==oe?t.constructor:void 0,r=n?gt(n):void 0;if(r)switch(r){case hn:return pe;case dn:return ne;case yn:return ie;case vn:return ue;case _n:return se}return e});var jn=wt(function(t){t=zt(t);var e=[];return Ee.test(t)&&e.push(""),t.replace(Pe,function(t,n,r,o){e.push(r?o.replace(ke,"$1"):n||t)}),e}),On=rt(mt);wt.Cache=P;var En=Array.isArray,Pn=Ve?u(Ve):G;e.exports=On}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],5:[function(t,e,n){(function(t){function r(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}function o(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function i(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function a(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function u(t){return function(e){return t(e)}}function c(t,e){return t.has(e)}function f(t,e){return null==t?void 0:t[e]}function s(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function l(t,e){return function(n){return t(e(n))}}function p(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function h(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 d(){this.__data__=Fe?Fe(null):{},this.size=0}function y(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function v(t){var e=this.__data__;if(Fe){var n=e[t];return n===mt?void 0:n}return ge.call(e,t)?e[t]:void 0}function _(t){var e=this.__data__;return Fe?void 0!==e[t]:ge.call(e,t)}function b(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Fe&&void 0===e?mt:e,this}function g(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 m(){this.__data__=[],this.size=0}function w(t){var e=this.__data__,n=B(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Ae.call(e,n,1),--this.size,!0}function j(t){var e=this.__data__,n=B(e,t);return n<0?void 0:e[n][1]}function O(t){return B(this.__data__,t)>-1}function E(t,e){var n=this.__data__,r=B(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function P(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 T(){this.size=0,this.__data__={hash:new h,map:new(De||g),string:new h}}function A(t){var e=tt(this,t)["delete"](t);return this.size-=e?1:0,e}function k(t){return tt(this,t).get(t)}function x(t){return tt(this,t).has(t)}function S(t,e){var n=tt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function R(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new P;++e<n;)this.add(t[e])}function C(t){return this.__data__.set(t,mt),this}function D(t){return this.__data__.has(t)}function z(t){var e=this.__data__=new g(t);this.size=e.size}function N(){this.__data__=new g,this.size=0}function I(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}function F(t){return this.__data__.get(t)}function $(t){return this.__data__.has(t)}function L(t,e){var n=this.__data__;if(n instanceof g){var r=n.__data__;if(!De||r.length<gt-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new P(r)}return n.set(t,e),this.size=n.size,this}function U(t,e){var n=He(t),r=!n&&Ye(t),o=!n&&!r&&Ge(t),i=!n&&!r&&!o&&Je(t),u=n||r||o||i,c=u?a(t.length,String):[],f=c.length;for(var s in t)!e&&!ge.call(t,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||rt(s,f))||c.push(s);return c}function B(t,e){for(var n=t.length;n--;)if(ft(t[n][0],e))return n;return-1}function M(t,e,n){var r=e(t);return He(t)?r:o(r,n(t))}function q(t){return null==t?void 0===t?Mt:zt:ke&&ke in Object(t)?nt(t):ut(t)}function V(t){return yt(t)&&q(t)==Et}function W(t,e,n,r,o){return t===e||(null==t||null==e||!yt(t)&&!yt(e)?t!==t&&e!==e:K(t,e,n,r,W,o))}function K(t,e,n,r,o,i){var a=He(t),u=He(e),c=a?Pt:Ke(t),f=u?Pt:Ke(e);c=c==Et?Nt:c,f=f==Et?Nt:f;var s=c==Nt,l=f==Nt,p=c==f;if(p&&Ge(t)){if(!Ge(e))return!1;a=!0,s=!1}if(p&&!s)return i||(i=new z),a||Je(t)?J(t,e,n,r,o,i):Q(t,e,c,n,r,o,i);if(!(n&wt)){var h=s&&ge.call(t,"__wrapped__"),d=l&&ge.call(e,"__wrapped__");if(h||d){var y=h?t.value():t,v=d?e.value():e;return i||(i=new z),o(y,v,n,r,i)}}return!!p&&(i||(i=new z),X(t,e,n,r,o,i))}function Y(t){if(!dt(t)||it(t))return!1;var e=pt(t)?je:ne;return e.test(ct(t))}function H(t){return yt(t)&&ht(t.length)&&!!oe[q(t)]}function G(t){if(!at(t))return Re(t);var e=[];for(var n in Object(t))ge.call(t,n)&&"constructor"!=n&&e.push(n);return e}function J(t,e,n,r,o,a){var u=n&wt,f=t.length,s=e.length;if(f!=s&&!(u&&s>f))return!1;var l=a.get(t);if(l&&a.get(e))return l==e;var p=-1,h=!0,d=n&jt?new R:void 0;for(a.set(t,e),a.set(e,t);++p<f;){var y=t[p],v=e[p];if(r)var _=u?r(v,y,p,e,t,a):r(y,v,p,t,e,a);if(void 0!==_){if(_)continue;h=!1;break}if(d){if(!i(e,function(t,e){if(!c(d,e)&&(y===t||o(y,t,n,r,a)))return d.push(e)})){h=!1;break}}else if(y!==v&&!o(y,v,n,r,a)){h=!1;break}}return a["delete"](t),a["delete"](e),h}function Q(t,e,n,r,o,i,a){switch(n){case Wt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Vt:return!(t.byteLength!=e.byteLength||!i(new Pe(t),new Pe(e)));case At:case kt:case Dt:return ft(+t,+e);case xt:return t.name==e.name&&t.message==e.message;case $t:case Ut:return t==e+"";case Ct:var u=s;case Lt:var c=r&wt;if(u||(u=p),t.size!=e.size&&!c)return!1;var f=a.get(t);if(f)return f==e;r|=jt,a.set(t,e);var l=J(u(t),u(e),r,o,i,a);return a["delete"](t),l;case Bt:if(Ve)return Ve.call(t)==Ve.call(e)}return!1}function X(t,e,n,r,o,i){var a=n&wt,u=Z(t),c=u.length,f=Z(e),s=f.length;if(c!=s&&!a)return!1;for(var l=c;l--;){var p=u[l];if(!(a?p in e:ge.call(e,p)))return!1}var h=i.get(t);if(h&&i.get(e))return h==e;var d=!0;i.set(t,e),i.set(e,t);for(var y=a;++l<c;){p=u[l];var v=t[p],_=e[p];if(r)var b=a?r(_,v,p,e,t,i):r(v,_,p,t,e,i);if(!(void 0===b?v===_||o(v,_,n,r,i):b)){d=!1;break}y||(y="constructor"==p)}if(d&&!y){var g=t.constructor,m=e.constructor;g!=m&&"constructor"in t&&"constructor"in e&&!("function"==typeof g&&g instanceof g&&"function"==typeof m&&m instanceof m)&&(d=!1)}return i["delete"](t),i["delete"](e),d}function Z(t){return M(t,vt,We)}function tt(t,e){var n=t.__data__;return ot(e)?n["string"==typeof e?"string":"hash"]:n.map}function et(t,e){var n=f(t,e);return Y(n)?n:void 0}function nt(t){var e=ge.call(t,ke),n=t[ke];try{t[ke]=void 0;var r=!0}catch(o){}var i=we.call(t);return r&&(e?t[ke]=n:delete t[ke]),i}function rt(t,e){return e=null==e?Ot:e,!!e&&("number"==typeof t||re.test(t))&&t>-1&&t%1==0&&t<e}function ot(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function it(t){return!!me&&me in t}function at(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||ve;return t===n}function ut(t){return we.call(t)}function ct(t){if(null!=t){try{return be.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function ft(t,e){return t===e||t!==t&&e!==e}function st(t){return null!=t&&ht(t.length)&&!pt(t)}function lt(t,e){return W(t,e)}function pt(t){if(!dt(t))return!1;var e=q(t);return e==St||e==Rt||e==Tt||e==Ft}function ht(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Ot}function dt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function yt(t){return null!=t&&"object"==typeof t}function vt(t){return st(t)?U(t):G(t)}function _t(){return[]}function bt(){return!1}var gt=200,mt="__lodash_hash_undefined__",wt=1,jt=2,Ot=9007199254740991,Et="[object Arguments]",Pt="[object Array]",Tt="[object AsyncFunction]",At="[object Boolean]",kt="[object Date]",xt="[object Error]",St="[object Function]",Rt="[object GeneratorFunction]",Ct="[object Map]",Dt="[object Number]",zt="[object Null]",Nt="[object Object]",It="[object Promise]",Ft="[object Proxy]",$t="[object RegExp]",Lt="[object Set]",Ut="[object String]",Bt="[object Symbol]",Mt="[object Undefined]",qt="[object WeakMap]",Vt="[object ArrayBuffer]",Wt="[object DataView]",Kt="[object Float32Array]",Yt="[object Float64Array]",Ht="[object Int8Array]",Gt="[object Int16Array]",Jt="[object Int32Array]",Qt="[object Uint8Array]",Xt="[object Uint8ClampedArray]",Zt="[object Uint16Array]",te="[object Uint32Array]",ee=/[\\^$.*+?()[\]{}|]/g,ne=/^\[object .+?Constructor\]$/,re=/^(?:0|[1-9]\d*)$/,oe={};oe[Kt]=oe[Yt]=oe[Ht]=oe[Gt]=oe[Jt]=oe[Qt]=oe[Xt]=oe[Zt]=oe[te]=!0,oe[Et]=oe[Pt]=oe[Vt]=oe[At]=oe[Wt]=oe[kt]=oe[xt]=oe[St]=oe[Ct]=oe[Dt]=oe[Nt]=oe[$t]=oe[Lt]=oe[Ut]=oe[qt]=!1;var ie="object"==typeof t&&t&&t.Object===Object&&t,ae="object"==typeof self&&self&&self.Object===Object&&self,ue=ie||ae||Function("return this")(),ce="object"==typeof n&&n&&!n.nodeType&&n,fe=ce&&"object"==typeof e&&e&&!e.nodeType&&e,se=fe&&fe.exports===ce,le=se&&ie.process,pe=function(){try{return le&&le.binding&&le.binding("util")}catch(t){}}(),he=pe&&pe.isTypedArray,de=Array.prototype,ye=Function.prototype,ve=Object.prototype,_e=ue["__core-js_shared__"],be=ye.toString,ge=ve.hasOwnProperty,me=function(){var t=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),we=ve.toString,je=RegExp("^"+be.call(ge).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oe=se?ue.Buffer:void 0,Ee=ue.Symbol,Pe=ue.Uint8Array,Te=ve.propertyIsEnumerable,Ae=de.splice,ke=Ee?Ee.toStringTag:void 0,xe=Object.getOwnPropertySymbols,Se=Oe?Oe.isBuffer:void 0,Re=l(Object.keys,Object),Ce=et(ue,"DataView"),De=et(ue,"Map"),ze=et(ue,"Promise"),Ne=et(ue,"Set"),Ie=et(ue,"WeakMap"),Fe=et(Object,"create"),$e=ct(Ce),Le=ct(De),Ue=ct(ze),Be=ct(Ne),Me=ct(Ie),qe=Ee?Ee.prototype:void 0,Ve=qe?qe.valueOf:void 0;h.prototype.clear=d,h.prototype["delete"]=y,h.prototype.get=v,h.prototype.has=_,h.prototype.set=b,g.prototype.clear=m,g.prototype["delete"]=w,g.prototype.get=j,g.prototype.has=O,g.prototype.set=E,P.prototype.clear=T,P.prototype["delete"]=A,P.prototype.get=k,P.prototype.has=x,P.prototype.set=S,R.prototype.add=R.prototype.push=C,R.prototype.has=D,z.prototype.clear=N,z.prototype["delete"]=I,z.prototype.get=F,z.prototype.has=$,z.prototype.set=L;var We=xe?function(t){return null==t?[]:(t=Object(t),r(xe(t),function(e){return Te.call(t,e)}))}:_t,Ke=q;(Ce&&Ke(new Ce(new ArrayBuffer(1)))!=Wt||De&&Ke(new De)!=Ct||ze&&Ke(ze.resolve())!=It||Ne&&Ke(new Ne)!=Lt||Ie&&Ke(new Ie)!=qt)&&(Ke=function(t){var e=q(t),n=e==Nt?t.constructor:void 0,r=n?ct(n):"";if(r)switch(r){case $e:return Wt;case Le:return Ct;case Ue:return It;case Be:return Lt;case Me:return qt}return e});var Ye=V(function(){return arguments}())?V:function(t){return yt(t)&&ge.call(t,"callee")&&!Te.call(t,"callee")},He=Array.isArray,Ge=Se||bt,Je=he?u(he):H;e.exports=lt}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],6:[function(t,e,n){function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function a(t){if(p===clearTimeout)return clearTimeout(t);if((p===o||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(t);try{return p(t)}catch(e){try{return p.call(null,t)}catch(e){return p.call(this,t)}}}function u(){v&&d&&(v=!1,d.length?y=d.concat(y):_=-1,y.length&&c())}function c(){if(!v){var t=i(u);v=!0;for(var e=y.length;e;){for(d=y,y=[];++_<e;)d&&d[_].run();_=-1,e=y.length}d=null,v=!1,a(t)}}function f(t,e){this.fun=t,this.array=e}function s(){}var l,p,h=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:r}catch(t){l=r}try{p="function"==typeof clearTimeout?clearTimeout:o}catch(t){p=o}}();var d,y=[],v=!1,_=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];y.push(new f(t,e)),1!==y.length||v||i(c)},f.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=s,h.addListener=s,h.once=s,h.off=s,h.removeListener=s,h.removeAllListeners=s,h.emit=s,h.prependListener=s,h.prependOnceListener=s,h.listeners=function(t){return[]},h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},{}],7:[function(t,e,n){(function(n){"use strict";function r(t,e,r,c,f){if("production"!==n.env.NODE_ENV)for(var s in t)if(t.hasOwnProperty(s)){var l;try{o("function"==typeof t[s],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",c||"React class",r,s),l=t[s](e,s,c,r,null,a)}catch(p){l=p}if(i(!l||l 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).",c||"React class",r,s,typeof l),l instanceof Error&&!(l.message in u)){u[l.message]=!0;var h=f?f():"";i(!1,"Failed %s type: %s%s",r,l.message,null!=h?h:"")}}}if("production"!==n.env.NODE_ENV)var o=t("fbjs/lib/invariant"),i=t("fbjs/lib/warning"),a=t("./lib/ReactPropTypesSecret"),u={};e.exports=r}).call(this,t("_process"))},{"./lib/ReactPropTypesSecret":11,_process:6,"fbjs/lib/invariant":2,"fbjs/lib/warning":3}],8:[function(t,e,n){"use strict";var r=t("fbjs/lib/emptyFunction"),o=t("fbjs/lib/invariant"),i=t("./lib/ReactPropTypesSecret");e.exports=function(){function t(t,e,n,r,a,u){u!==i&&o(!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=r,n.PropTypes=n,n}},{"./lib/ReactPropTypesSecret":11,"fbjs/lib/emptyFunction":1,"fbjs/lib/invariant":2}],9:[function(t,e,n){(function(n){"use strict";var r=t("fbjs/lib/emptyFunction"),o=t("fbjs/lib/invariant"),i=t("fbjs/lib/warning"),a=t("./lib/ReactPropTypesSecret"),u=t("./checkPropTypes");e.exports=function(t,e){function c(t){var e=t&&(k&&t[k]||t[x]);if("function"==typeof e)return e}function f(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function s(t){this.message=t,this.stack=""}function l(t){function r(r,f,l,p,h,d,y){if(p=p||S,d=d||l,y!==a)if(e)o(!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"!==n.env.NODE_ENV&&"undefined"!=typeof console){var v=p+":"+l;!u[v]&&c<3&&(i(!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.",d,p),u[v]=!0,c++)}return null==f[l]?r?new s(null===f[l]?"The "+h+" `"+d+"` is marked as required "+("in `"+p+"`, but its value is `null`."):"The "+h+" `"+d+"` is marked as required in "+("`"+p+"`, but its value is `undefined`.")):null:t(f,l,p,h,d)}if("production"!==n.env.NODE_ENV)var u={},c=0;var f=r.bind(null,!1);return f.isRequired=r.bind(null,!0),f}function p(t){function e(e,n,r,o,i,a){var u=e[n],c=E(u);if(c!==t){var f=P(u);return new s("Invalid "+o+" `"+i+"` of type "+("`"+f+"` supplied to `"+r+"`, expected ")+("`"+t+"`."))}return null}return l(e)}function h(){return l(r.thatReturnsNull)}function d(t){function e(e,n,r,o,i){if("function"!=typeof t)return new s("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=e[n];if(!Array.isArray(u)){var c=E(u);return new s("Invalid "+o+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an array."))}for(var f=0;f<u.length;f++){var l=t(u,f,r,o,i+"["+f+"]",a);if(l instanceof Error)return l}return null}return l(e)}function y(){function e(e,n,r,o,i){var a=e[n];if(!t(a)){var u=E(a);return new s("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return l(e)}function v(t){function e(e,n,r,o,i){if(!(e[n]instanceof t)){var a=t.name||S,u=A(e[n]);return new s("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected ")+("instance of `"+a+"`."))}return null}return l(e)}function _(t){function e(e,n,r,o,i){for(var a=e[n],u=0;u<t.length;u++)if(f(a,t[u]))return null;var c=JSON.stringify(t);return new s("Invalid "+o+" `"+i+"` of value `"+a+"` "+("supplied to `"+r+"`, expected one of "+c+"."))}return Array.isArray(t)?l(e):("production"!==n.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOf, expected an instance of array."):void 0,r.thatReturnsNull)}function b(t){function e(e,n,r,o,i){if("function"!=typeof t)return new s("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=e[n],c=E(u);if("object"!==c)return new s("Invalid "+o+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an object."));for(var f in u)if(u.hasOwnProperty(f)){
var l=t(u,f,r,o,i+"."+f,a);if(l instanceof Error)return l}return null}return l(e)}function g(t){function e(e,n,r,o,i){for(var u=0;u<t.length;u++){var c=t[u];if(null==c(e,n,r,o,i,a))return null}return new s("Invalid "+o+" `"+i+"` supplied to "+("`"+r+"`."))}if(!Array.isArray(t))return"production"!==n.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."):void 0,r.thatReturnsNull;for(var o=0;o<t.length;o++){var u=t[o];if("function"!=typeof u)return i(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",T(u),o),r.thatReturnsNull}return l(e)}function m(){function t(t,e,n,r,o){return j(t[e])?null:new s("Invalid "+r+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return l(t)}function w(t){function e(e,n,r,o,i){var u=e[n],c=E(u);if("object"!==c)return new s("Invalid "+o+" `"+i+"` of type `"+c+"` "+("supplied to `"+r+"`, expected `object`."));for(var f in t){var l=t[f];if(l){var p=l(u,f,r,o,i+"."+f,a);if(p)return p}}return null}return l(e)}function j(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(j);if(null===e||t(e))return!0;var n=c(e);if(!n)return!1;var r,o=n.call(e);if(n!==e.entries){for(;!(r=o.next()).done;)if(!j(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!j(i[1]))return!1}return!0;default:return!1}}function O(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function E(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":O(e,t)?"symbol":e}function P(t){if("undefined"==typeof t||null===t)return""+t;var e=E(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function T(t){var e=P(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}function A(t){return t.constructor&&t.constructor.name?t.constructor.name:S}var k="function"==typeof Symbol&&Symbol.iterator,x="@@iterator",S="<<anonymous>>",R={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:h(),arrayOf:d,element:y(),instanceOf:v,node:m(),objectOf:b,oneOf:_,oneOfType:g,shape:w};return s.prototype=Error.prototype,R.checkPropTypes=u,R.PropTypes=R,R}}).call(this,t("_process"))},{"./checkPropTypes":7,"./lib/ReactPropTypesSecret":11,_process:6,"fbjs/lib/emptyFunction":1,"fbjs/lib/invariant":2,"fbjs/lib/warning":3}],10:[function(t,e,n){(function(n){if("production"!==n.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,o=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},i=!0;e.exports=t("./factoryWithTypeCheckers")(o,i)}else e.exports=t("./factoryWithThrowingShims")()}).call(this,t("_process"))},{"./factoryWithThrowingShims":8,"./factoryWithTypeCheckers":9,_process:6}],11:[function(t,e,n){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=r},{}],12:[function(t,e,n){(function(e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(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}function u(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)}Object.defineProperty(n,"__esModule",{value:!0}),n.Chart=n.defaults=n.Scatter=n.Bubble=n.Polar=n.Radar=n.HorizontalBar=n.Bar=n.Line=n.Pie=n.Doughnut=void 0;var c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s="undefined"!=typeof window?window.React:"undefined"!=typeof e?e.React:null,l=r(s),p=t("prop-types"),h=r(p),d="undefined"!=typeof window?window.Chart:"undefined"!=typeof e?e.Chart:null,y=r(d),v=t("lodash.isequal"),_=r(v),b=t("lodash.find"),g=r(b),m=function(t){function e(){var t,n,r,o;i(this,e);for(var u=arguments.length,c=Array(u),f=0;f<u;f++)c[f]=arguments[f];return n=r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(c))),r.handleOnClick=function(t){var e=r.chart_instance,n=r.props,o=n.getDatasetAtEvent,i=n.getElementAtEvent,a=n.getElementsAtEvent,u=n.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)},r.ref=function(t){r.element=t},o=n,a(r,o)}return u(e,t),f(e,[{key:"componentWillMount",value:function(){this.chart_instance=void 0}},{key:"componentDidMount",value:function(){this.renderChart()}},{key:"componentDidUpdate",value:function(){return this.props.redraw?(this.chart_instance.destroy(),void this.renderChart()):void this.updateChart()}},{key:"shouldComponentUpdate",value:function(t){var e=this.props,n=(e.redraw,e.type),r=e.options,o=e.plugins,i=e.legend,a=e.height,u=e.width;if(t.redraw===!0)return!0;if(a!==t.height||u!==t.width)return!0;if(n!==t.type)return!0;if(!(0,_["default"])(i,t.legend))return!0;if(!(0,_["default"])(r,t.options))return!0;var c=this.transformDataProp(t);return!(0,_["default"])(this.shadowDataProp,c)||!(0,_["default"])(o,t.plugins)}},{key:"componentWillUnmount",value:function(){this.chart_instance.destroy()}},{key:"transformDataProp",value:function(t){var e=t.data;if("function"==typeof e){var n=this.element;return e(n)}return e}},{key:"memoizeDataProps",value:function(){if(this.props.data){var t=this.transformDataProp(this.props);return this.shadowDataProp=c({},t,{datasets:t.datasets&&t.datasets.map(function(t){return c({},t)})}),t}}},{key:"updateChart",value:function(){var t=this,e=this.props.options,n=this.memoizeDataProps(this.props);if(this.chart_instance){e&&(this.chart_instance.options=y["default"].helpers.configMerge(this.chart_instance.options,e));for(var r=this.chart_instance.config.data&&this.chart_instance.config.data.datasets||[],i=n.datasets||[],a=r.map(this.props.datasetKeyProvider),u=i.map(this.props.datasetKeyProvider),f=i.filter(function(e){return a.indexOf(t.props.datasetKeyProvider(e))===-1}),s=function(e){var n=t.props.datasetKeyProvider(r[e]);if(u.indexOf(n)===-1)r.splice(e,1);else{var a=(0,g["default"])(i,function(e){return t.props.datasetKeyProvider(e)===n});if(a){r[e].data.splice(a.data.length),a.data.forEach(function(t,n){r[e].data[n]=a.data[n]});var f=(a.data,o(a,["data"]));r[e]=c({data:r[e].data},r[e],f)}}},l=r.length-1;l>=0;l-=1)s(l);f.forEach(function(t){return r.push(t)});var p=(n.datasets,o(n,["datasets"]));this.chart_instance.config.data=c({},this.chart_instance.config.data,p),this.chart_instance.update()}}},{key:"renderChart",value:function(){var t=this.props,n=t.options,r=t.legend,o=t.type,i=(t.redraw,t.plugins),a=this.element,u=this.memoizeDataProps();"undefined"==typeof r||(0,_["default"])(e.defaultProps.legend,r)||(n.legend=r),this.chart_instance=new y["default"](a,{type:o,data:u,options:n,plugins:i})}},{key:"render",value:function(){var t=this.props,e=t.height,n=t.width;t.onElementsClick;return l["default"].createElement("canvas",{ref:this.ref,height:e,width:n,onClick:this.handleOnClick})}}]),e}(l["default"].Component);m.getLabelAsKey=function(t){return t.label},m.propTypes={data:h["default"].oneOfType([h["default"].object,h["default"].func]).isRequired,getDatasetAtEvent:h["default"].func,getElementAtEvent:h["default"].func,getElementsAtEvent:h["default"].func,height:h["default"].number,legend:h["default"].object,onElementsClick:h["default"].func,options:h["default"].object,plugins:h["default"].arrayOf(h["default"].object),redraw:h["default"].bool,type:function(t,e,n){if(!y["default"].controllers[t[e]])return new Error("Invalid chart type `"+t[e]+"` supplied to `"+n+"`.")},width:h["default"].number,datasetKeyProvider:h["default"].func},m.defaultProps={legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:m.getLabelAsKey},n["default"]=m;n.Doughnut=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),f(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(m,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"doughnut"}))}}]),e}(l["default"].Component),n.Pie=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),f(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(m,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"pie"}))}}]),e}(l["default"].Component),n.Line=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),f(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(m,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"line"}))}}]),e}(l["default"].Component),n.Bar=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),f(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(m,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"bar"}))}}]),e}(l["default"].Component),n.HorizontalBar=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),f(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(m,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"horizontalBar"}))}}]),e}(l["default"].Component),n.Radar=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),f(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(m,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"radar"}))}}]),e}(l["default"].Component),n.Polar=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),f(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(m,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"polarArea"}))}}]),e}(l["default"].Component),n.Bubble=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),f(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(m,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"bubble"}))}}]),e}(l["default"].Component),n.Scatter=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),f(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(m,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"scatter"}))}}]),e}(l["default"].Component),n.defaults=y["default"].defaults;n.Chart=y["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"lodash.find":4,"lodash.isequal":5,"prop-types":10}]},{},[12])(12)});

@@ -28,2 +28,6 @@ 'use strict';

var _lodash3 = require('lodash.find');
var _lodash4 = _interopRequireDefault(_lodash3);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -39,47 +43,2 @@

//Taken from MDN
if (!Array.prototype.find) {
Object.defineProperty(Array.prototype, 'find', {
value: function value(predicate) {
// 1. Let O be ? ToObject(this value).
if (this == null) {
throw new TypeError('"this" is null or not defined');
}
var o = Object(this);
// 2. Let len be ? ToLength(? Get(O, "length")).
var len = o.length >>> 0;
// 3. If IsCallable(predicate) is false, throw a TypeError exception.
if (typeof predicate !== 'function') {
throw new TypeError('predicate must be a function');
}
// 4. If thisArg was supplied, let T be thisArg; else let T be undefined.
var thisArg = arguments[1];
// 5. Let k be 0.
var k = 0;
// 6. Repeat, while k < len
while (k < len) {
// a. Let Pk be ! ToString(k).
// b. Let kValue be ? Get(O, Pk).
// c. Let testResult be ToBoolean(? Call(predicate, T, « kValue, k, O »)).
// d. If testResult is true, return kValue.
var kValue = o[k];
if (predicate.call(thisArg, kValue, k, o)) {
return kValue;
}
// e. Increase k by 1.
k++;
}
// 7. Return undefined.
return undefined;
}
});
}
var ChartComponent = function (_React$Component) {

@@ -256,3 +215,3 @@ _inherits(ChartComponent, _React$Component);

} else {
var retainedDataset = nextDatasets.find(function (d) {
var retainedDataset = (0, _lodash4.default)(nextDatasets, function (d) {
return _this2.props.datasetKeyProvider(d) === currentDatasetKey;

@@ -353,6 +312,3 @@ });

type: function type(props, propName, componentName) {
if (!Object.keys(_chart2.default.controllers).find(function (chartType) {
return chartType === props[propName];
})) {
if (!_chart2.default.controllers[props[propName]]) {
return new Error('Invalid chart type `' + props[propName] + '` supplied to' + ' `' + componentName + '`.');

@@ -359,0 +315,0 @@ }

{
"name": "react-chartjs-2",
"version": "2.5.3",
"version": "2.5.4",
"description": "react-chartjs-2",

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

"dependencies": {
"lodash.find": "^4.6.0",
"lodash.isequal": "^4.4.0",

@@ -18,0 +19,0 @@ "prop-types": "^15.5.8"

Sorry, the diff of this file is not supported yet

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

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

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

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc