text: !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Chart=t()}}(function(){return function o(r,s,l){function u(i,t){if(!s[i]){if(!r[i]){var e="function"==typeof require&&require;if(!t&&e)return e(i,!0);if(d)return d(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var n=s[i]={exports:{}};r[i][0].call(n.exports,function(t){var e=r[i][1][t];return u(e||t)},n,n.exports,o,r,s,l)}return s[i].exports}for(var d="function"==typeof require&&require,t=0;t<l.length;t++)u(l[t]);return u}({1:[function(t,e,i){},{}],2:[function(t,e,i){function a(t){if(t){var e=[0,0,0],i=1,a=t.match(/^#([a-fA-F0-9]{3})$/);if(a){a=a[1];for(var n=0;n<e.length;n++)e[n]=parseInt(a[n]+a[n],16)}else if(a=t.match(/^#([a-fA-F0-9]{6})$/)){a=a[1];for(n=0;n<e.length;n++)e[n]=parseInt(a.slice(2*n,2*n+2),16)}else if(a=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(n=0;n<e.length;n++)e[n]=parseInt(a[n+1]);i=parseFloat(a[4])}else if(a=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(n=0;n<e.length;n++)e[n]=Math.round(2.55*parseFloat(a[n+1]));i=parseFloat(a[4])}else if(a=t.match(/(\w+)/)){if("transparent"==a[1])return[0,0,0,0];if(!(e=c[a[1]]))return}for(n=0;n<e.length;n++)e[n]=u(e[n],0,255);return i=i||0==i?u(i,0,1):1,e[3]=i,e}}function n(t){if(t){var e=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var i=parseFloat(e[4]);return[u(parseInt(e[1]),0,360),u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(i)?1:i,0,1)]}}}function o(t){if(t){var e=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var i=parseFloat(e[4]);return[u(parseInt(e[1]),0,360),u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(i)?1:i,0,1)]}}}function r(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function s(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function l(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function u(t,e,i){return Math.min(Math.max(e,t),i)}function d(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var c=t(6);e.exports={getRgba:a,getHsla:n,getRgb:function(t){var e=a(t);return e&&e.slice(0,3)},getHsl:function(t){var e=n(t);return e&&e.slice(0,3)},getHwb:o,getAlpha:function(t){var e=a(t);return e?e[3]:(e=n(t))?e[3]:(e=o(t))?e[3]:void 0},hexString:function(t){return"#"+d(t[0])+d(t[1])+d(t[2])},rgbString:function(t,e){return e<1||t[3]&&t[3]<1?r(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:r,percentString:function(t,e){return e<1||t[3]&&t[3]<1?s(t,e):"rgb("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%)"},percentaString:s,hslString:function(t,e){return e<1||t[3]&&t[3]<1?l(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:l,hwbString:function(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return h[t.slice(0,3)]}};var h={};for(var f in c)h[c[f]]=f},{6:6}],3:[function(t,e,i){var d=t(5),a=t(2),r=function(t){if(t instanceof r)return t;if(!(this instanceof r))return new r(t);var e;if(this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},"string"==typeof t)if(e=a.getRgba(t))this.setValues("rgb",e);else if(e=a.getHsla(t))this.setValues("hsl",e);else{if(!(e=a.getHwb(t)))throw new Error('Unable to parse color from string "'+t+'"');this.setValues("hwb",e)}else if("object"==typeof t)if(void 0!==(e=t).r||void 0!==e.red)this.setValues("rgb",e);else if(void 0!==e.l||void 0!==e.lightness)this.setValues("hsl",e);else if(void 0!==e.v||void 0!==e.value)this.setValues("hsv",e);else if(void 0!==e.w||void 0!==e.whiteness)this.setValues("hwb",e);else{if(void 0===e.c&&void 0===e.cyan)throw new Error("Unable to parse color from object "+JSON.stringify(t));this.setValues("cmyk",e)}};r.prototype={rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t=(t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return a.hexString(this.values.rgb)},rgbString:function(){return a.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return a.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return a.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return a.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return a.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return a.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return a.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],i=0;i<t.length;i++){var a=t[i]/255;e[i]=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),i=t.luminosity();return i<e?(e+.05)/(i+.05):(i+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return 7.1<=e?"AAA":4.5<=e?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,i=(e[0]+t)%360;return e[0]=i<0?360+i:i,this.setValues("hsl",e),this},mix:function(t,e){var i=this,a=t,n=void 0===e?.5:e,o=2*n-1,r=i.alpha()-a.alpha(),s=((o*r==-1?o:(o+r)/(1+o*r))+1)/2,l=1-s;return this.rgb(s*i.red()+l*a.red(),s*i.green()+l*a.green(),s*i.blue()+l*a.blue()).alpha(i.alpha()*n+a.alpha()*(1-n))},toJSON:function(){return this.rgb()},clone:function(){var t,e,i=new r,a=this.values,n=i.values;for(var o in a)a.hasOwnProperty(o)&&(t=a[o],"[object Array]"===(e={}.toString.call(t))?n[o]=t.slice(0):"[object Number]"===e?n[o]=t:console.error("unexpected color value:",t));return i}},r.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},r.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},r.prototype.getValues=function(t){for(var e=this.values,i={},a=0;a<t.length;a++)i[t.charAt(a)]=e[t][a];return 1!==e.alpha&&(i.a=e.alpha),i},r.prototype.setValues=function(t,e){var i,a,n=this.values,o=this.spaces,r=this.maxes,s=1;if("alpha"===t)s=e;else if(e.length)n[t]=e.slice(0,t.length),s=e[t.length];else if(void 0!==e[t.charAt(0)]){for(i=0;i<t.length;i++)n[t][i]=e[t.charAt(i)];s=e.a}else if(void 0!==e[o[t][0]]){var l=o[t];for(i=0;i<t.length;i++)n[t][i]=e[l[i]];s=e.alpha}if(n.alpha=Math.max(0,Math.min(1,void 0===s?n.alpha:s)),"alpha"===t)return!1;for(i=0;i<t.length;i++)a=Math.max(0,Math.min(r[t][i],n[t][i])),n[t][i]=Math.round(a);for(var u in o)u!==t&&(n[u]=d[t][u](n[t]));return!0},r.prototype.setSpace=function(t,e){var i=e[0];return void 0===i?this.getValues(t):("number"==typeof i&&(i=Array.prototype.slice.call(e)),this.setValues(t,i),this)},r.prototype.setChannel=function(t,e,i){var a=this.values[t];return void 0===i?a[e]:(i===a[e]||(a[e]=i,this.setValues(t,a)),this)},"undefined"!=typeof window&&(window.Color=r),e.exports=r},{2:2,5:5}],4:[function(t,e,i){function n(t){var e,i,a=t[0]/255,n=t[1]/255,o=t[2]/255,r=Math.min(a,n,o),s=Math.max(a,n,o),l=s-r;return s==r?e=0:a==s?e=(n-o)/l:n==s?e=2+(o-a)/l:o==s&&(e=4+(a-n)/l),(e=Math.min(60*e,360))<0&&(e+=360),i=(r+s)/2,[e,100*(s==r?0:i<=.5?l/(s+r):l/(2-s-r)),100*i]}function a(t){var e,i,a=t[0],n=t[1],o=t[2],r=Math.min(a,n,o),s=Math.max(a,n,o),l=s-r;return i=0==s?0:l/s*1e3/10,s==r?e=0:a==s?e=(n-o)/l:n==s?e=2+(o-a)/l:o==s&&(e=4+(a-n)/l),(e=Math.min(60*e,360))<0&&(e+=360),[e,i,s/255*1e3/10]}function o(t){var e=t[0],i=t[1],a=t[2];return[n(t)[0],100*(1/255*Math.min(e,Math.min(i,a))),100*(a=1-1/255*Math.max(e,Math.max(i,a)))]}function s(t){var e,i=t[0]/255,a=t[1]/255,n=t[2]/255;return[100*((1-i-(e=Math.min(1-i,1-a,1-n)))/(1-e)||0),100*((1-a-e)/(1-e)||0),100*((1-n-e)/(1-e)||0),100*e]}function l(t){return C[JSON.stringify(t)]}function u(t){var e=t[0]/255,i=t[1]/255,a=t[2]/255;return[100*(.4124*(e=.04045<e?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(i=.04045<i?Math.pow((i+.055)/1.055,2.4):i/12.92)+.1805*(a=.04045<a?Math.pow((a+.055)/1.055,2.4):a/12.92)),100*(.2126*e+.7152*i+.0722*a),100*(.0193*e+.1192*i+.9505*a)]}function d(t){var e=u(t),i=e[0],a=e[1],n=e[2];return a/=100,n/=108.883,i=.008856<(i/=95.047)?Math.pow(i,1/3):7.787*i+16/116,[116*(a=.008856<a?Math.pow(a,1/3):7.787*a+16/116)-16,500*(i-a),200*(a-(n=.008856<n?Math.pow(n,1/3):7.787*n+16/116))]}function c(t){var e,i,a,n,o,r=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return[o=255*l,o,o];e=2*l-(i=l<.5?l*(1+s):l+s-l*s),n=[0,0,0];for(var u=0;u<3;u++)(a=r+1/3*-(u-1))<0&&a++,1<a&&a--,o=6*a<1?e+6*(i-e)*a:2*a<1?i:3*a<2?e+(i-e)*(2/3-a)*6:e,n[u]=255*o;return n}function h(t){var e=t[0]/60,i=t[1]/100,a=t[2]/100,n=Math.floor(e)%6,o=e-Math.floor(e),r=255*a*(1-i),s=255*a*(1-i*o),l=255*a*(1-i*(1-o));a*=255;switch(n){case 0:return[a,l,r];case 1:return[s,a,r];case 2:return[r,a,l];case 3:return[r,s,a];case 4:return[l,r,a];case 5:return[a,r,s]}}function f(t){var e,i,a,n,o=t[0]/360,s=t[1]/100,l=t[2]/100,u=s+l;switch(1<u&&(s/=u,l/=u),a=6*o-(e=Math.floor(6*o)),0!=(1&e)&&(a=1-a),n=s+a*((i=1-l)-s),e){default:case 6:case 0:r=i,g=n,b=s;break;case 1:r=n,g=i,b=s;break;case 2:r=s,g=i,b=n;break;case 3:r=s,g=n,b=i;break;case 4:r=n,g=s,b=i;break;case 5:r=i,g=s,b=n}return[255*r,255*g,255*b]}function p(t){var e=t[0]/100,i=t[1]/100,a=t[2]/100,n=t[3]/100;return[255*(1-Math.min(1,e*(1-n)+n)),255*(1-Math.min(1,i*(1-n)+n)),255*(1-Math.min(1,a*(1-n)+n))]}function m(t){var e,i,a,n=t[0]/100,o=t[1]/100,r=t[2]/100;return i=-.9689*n+1.8758*o+.0415*r,a=.0557*n+-.204*o+1.057*r,e=.0031308<(e=3.2406*n+-1.5372*o+-.4986*r)?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,i=.0031308<i?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,a=.0031308<a?1.055*Math.pow(a,1/2.4)-.055:a*=12.92,[255*(e=Math.min(Math.max(0,e),1)),255*(i=Math.min(Math.max(0,i),1)),255*(a=Math.min(Math.max(0,a),1))]}function v(t){var e=t[0],i=t[1],a=t[2];return i/=100,a/=108.883,e=.008856<(e/=95.047)?Math.pow(e,1/3):7.787*e+16/116,[116*(i=.008856<i?Math.pow(i,1/3):7.787*i+16/116)-16,500*(e-i),200*(i-(a=.008856<a?Math.pow(a,1/3):7.787*a+16/116))]}function x(t){var e,i,a,n,o=t[0],r=t[1],s=t[2];return o<=8?n=(i=100*o/903.3)/100*7.787+16/116:(i=100*Math.pow((o+16)/116,3),n=Math.pow(i/100,1/3)),[e=e/95.047<=.008856?e=95.047*(r/500+n-16/116)/7.787:95.047*Math.pow(r/500+n,3),i,a=a/108.883<=.008859?a=108.883*(n-s/200-16/116)/7.787:108.883*Math.pow(n-s/200,3)]}function y(t){var e,i=t[0],a=t[1],n=t[2];return(e=360*Math.atan2(n,a)/2/Math.PI)<0&&(e+=360),[i,Math.sqrt(a*a+n*n),e]}function k(t){return m(x(t))}function S(t){var e,i=t[0],a=t[1];return e=t[2]/360*2*Math.PI,[i,a*Math.cos(e),a*Math.sin(e)]}function M(t){return w[t]}e.exports={rgb2hsl:n,rgb2hsv:a,rgb2hwb:o,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:u,rgb2lab:d,rgb2lch:function(t){return y(d(t))},hsl2rgb:c,hsl2hsv:function(t){var e=t[0],i=t[1]/100,a=t[2]/100;return 0===a?[0,0,0]:[e,2*(i*=(a*=2)<=1?a:2-a)/(a+i)*100,(a+i)/2*100]},hsl2hwb:function(t){return o(c(t))},hsl2cmyk:function(t){return s(c(t))},hsl2keyword:function(t){return l(c(t))},hsv2rgb:h,hsv2hsl:function(t){var e,i,a=t[0],n=t[1]/100,o=t[2]/100;return e=n*o,[a,100*(e=(e/=(i=(2-n)*o)<=1?i:2-i)||0),100*(i/=2)]},hsv2hwb:function(t){return o(h(t))},hsv2cmyk:function(t){return s(h(t))},hsv2keyword:function(t){return l(h(t))},hwb2rgb:f,hwb2hsl:function(t){return n(f(t))},hwb2hsv:function(t){return a(f(t))},hwb2cmyk:function(t){return s(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:p,cmyk2hsl:function(t){return n(p(t))},cmyk2hsv:function(t){return a(p(t))},cmyk2hwb:function(t){return o(p(t))},cmyk2keyword:function(t){return l(p(t))},keyword2rgb:M,keyword2hsl:function(t){return n(M(t))},keyword2hsv:function(t){return a(M(t))},keyword2hwb:function(t){return o(M(t))},keyword2cmyk:function(t){return s(M(t))},keyword2lab:function(t){return d(M(t))},keyword2xyz:function(t){return u(M(t))},xyz2rgb:m,xyz2lab:v,xyz2lch:function(t){return y(v(t))},lab2xyz:x,lab2rgb:k,lab2lch:y,lch2lab:S,lch2xyz:function(t){return x(S(t))},lch2rgb:function(t){return k(S(t))}};var w={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},C={};for(var I in w)C[JSON.stringify(w[I])]=I},{}],5:[function(t,e,i){var n=t(4),o=function(){return new u};for(var a in n){o[a+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),n[e](t)}}(a);var r=/(\w+)2(\w+)/.exec(a),s=r[1],l=r[2];(o[s]=o[s]||{})[l]=o[a]=function(a){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var e=n[a](t);if("string"==typeof e||void 0===e)return e;for(var i=0;i<e.length;i++)e[i]=Math.round(e[i]);return e}}(a)}var u=function(){this.convs={}};u.prototype.routeSpace=function(t,e){var i=e[0];return void 0===i?this.getValues(t):("number"==typeof i&&(i=Array.prototype.slice.call(e)),this.setValues(t,i))},u.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},u.prototype.getValues=function(t){var e=this.convs[t];if(!e){var i=this.space,a=this.convs[i];e=o[i][t](a),this.convs[t]=e}return e},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){u.prototype[e]=function(t){return this.routeSpace(e,arguments)}}),e.exports=o},{4:4}],6:[function(t,e,i){e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],7:[function(t,e,i){var a=t(28)();t(26)(a),t(42)(a),t(22)(a),t(31)(a),t(25)(a),t(21)(a),t(23)(a),t(24)(a),t(29)(a),t(33)(a),t(34)(a),t(32)(a),t(35)(a),t(30)(a),t(27)(a),t(36)(a),t(37)(a),t(38)(a),t(39)(a),t(40)(a),t(45)(a),t(43)(a),t(44)(a),t(46)(a),t(47)(a),t(48)(a),t(15)(a),t(16)(a),t(17)(a),t(18)(a),t(19)(a),t(20)(a),t(8)(a),t(9)(a),t(10)(a),t(11)(a),t(12)(a),t(13)(a),t(14)(a),window.Chart=e.exports=a},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,42:42,43:43,44:44,45:45,46:46,47:47,48:48,8:8,9:9}],8:[function(t,e,i){"use strict";e.exports=function(i){i.Bar=function(t,e){return e.type="bar",new i(t,e)}}},{}],9:[function(t,e,i){"use strict";e.exports=function(i){i.Bubble=function(t,e){return e.type="bubble",new i(t,e)}}},{}],10:[function(t,e,i){"use strict";e.exports=function(i){i.Doughnut=function(t,e){return e.type="doughnut",new i(t,e)}}},{}],11:[function(t,e,i){"use strict";e.exports=function(i){i.Line=function(t,e){return e.type="line",new i(t,e)}}},{}],12:[function(t,e,i){"use strict";e.exports=function(i){i.PolarArea=function(t,e){return e.type="polarArea",new i(t,e)}}},{}],13:[function(t,e,i){"use strict";e.exports=function(i){i.Radar=function(t,e){return e.type="radar",new i(t,e)}}},{}],14:[function(t,e,i){"use strict";e.exports=function(i){i.defaults.scatter={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-1"}],yAxes:[{type:"linear",position:"left",id:"y-axis-1"}]},tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}},i.controllers.scatter=i.controllers.line,i.Scatter=function(t,e){return e.type="scatter",new i(t,e)}}},{}],15:[function(t,e,i){"use strict";e.exports=function(l){var h=l.helpers;l.defaults.bar={hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}},l.controllers.bar=l.DatasetController.extend({dataElementType:l.elements.Rectangle,initialize:function(t,e){l.DatasetController.prototype.initialize.call(this,t,e);var i=this.getMeta(),a=this.getDataset();i.stack=a.stack,i.bar=!0},getStackCount:function(){var a=this,t=a.getMeta(),n=a.getScaleForId(t.yAxisID),o=[];return h.each(a.chart.data.datasets,function(t,e){var i=a.chart.getDatasetMeta(e);i.bar&&a.chart.isDatasetVisible(e)&&(!1===n.options.stacked||!0===n.options.stacked&&-1===o.indexOf(i.stack)||void 0===n.options.stacked&&(void 0===i.stack||-1===o.indexOf(i.stack)))&&o.push(i.stack)},a),o.length},update:function(i){var a=this;h.each(a.getMeta().data,function(t,e){a.updateElement(t,e,i)},a)},updateElement:function(t,e,i){var a=this,n=a.getMeta(),o=a.getScaleForId(n.xAxisID),r=a.getScaleForId(n.yAxisID),s=r.getBasePixel(),l=a.chart.options.elements.rectangle,u=t.custom||{},d=a.getDataset();t._xScale=o,t._yScale=r,t._datasetIndex=a.index,t._index=e;var c=a.getRuler(e);t._model={x:a.calculateBarX(e,a.index,c),y:i?s:a.calculateBarY(e,a.index),label:a.chart.data.labels[e],datasetLabel:d.label,horizontal:!1,base:i?s:a.calculateBarBase(a.index,e),width:a.calculateBarWidth(c),backgroundColor:u.backgroundColor?u.backgroundColor:h.getValueAtIndexOrDefault(d.backgroundColor,e,l.backgroundColor),borderSkipped:u.borderSkipped?u.borderSkipped:l.borderSkipped,borderColor:u.borderColor?u.borderColor:h.getValueAtIndexOrDefault(d.borderColor,e,l.borderColor),borderWidth:u.borderWidth?u.borderWidth:h.getValueAtIndexOrDefault(d.borderWidth,e,l.borderWidth)},t.pivot()},calculateBarBase:function(t,e){var i=this.getMeta(),a=this.getScaleForId(i.yAxisID),n=a.getBaseValue(),o=n;if(!0===a.options.stacked||void 0===a.options.stacked&&void 0!==i.stack){for(var r=this.chart,s=r.data.datasets,l=Number(s[t].data[e]),u=0;u<t;u++){var d=s[u],c=r.getDatasetMeta(u);if(c.bar&&c.yAxisID===a.id&&r.isDatasetVisible(u)&&i.stack===c.stack){var h=Number(d.data[e]);n+=l<0?Math.min(h,o):Math.max(h,o)}}return a.getPixelForValue(n)}return a.getBasePixel()},getRuler:function(){var t=this.getMeta(),e=this.getScaleForId(t.xAxisID),i=this.getStackCount(),a=e.width/e.ticks.length,n=a*e.options.categoryPercentage,o=n/i;return{stackCount:i,tickWidth:a,categoryWidth:n,categorySpacing:(a-a*e.options.categoryPercentage)/2,fullBarWidth:o,barWidth:o*e.options.barPercentage,barSpacing:o-o*e.options.barPercentage}},calculateBarWidth:function(t){var e=this.getMeta(),i=this.getScaleForId(e.xAxisID);return i.options.barThickness?i.options.barThickness:t.barWidth},getStackIndex:function(t){var e,i,a=this.chart.getDatasetMeta(t),n=this.getScaleForId(a.yAxisID),o=[a.stack];for(i=0;i<t;++i)(e=this.chart.getDatasetMeta(i)).bar&&this.chart.isDatasetVisible(i)&&(!1===n.options.stacked||!0===n.options.stacked&&-1===o.indexOf(e.stack)||void 0===n.options.stacked&&(void 0===e.stack||-1===o.indexOf(e.stack)))&&o.push(e.stack);return o.length-1},calculateBarX:function(t,e,i){var a=this,n=a.getMeta(),o=a.getScaleForId(n.xAxisID),r=a.getStackIndex(e),s=o.getPixelForValue(null,t,e,a.chart.isCombo);return(s-=a.chart.isCombo?i.tickWidth/2:0)+i.barWidth/2+i.categorySpacing+i.barWidth*r+i.barSpacing/2+i.barSpacing*r},calculateBarY:function(t,e){var i=this,a=i.getMeta(),n=i.getScaleForId(a.yAxisID),o=Number(i.getDataset().data[t]);if(n.options.stacked||void 0===n.options.stacked&&void 0!==a.stack){for(var r=n.getBaseValue(),s=r,l=r,u=0;u<e;u++){var d=i.chart.data.datasets[u],c=i.chart.getDatasetMeta(u);if(c.bar&&c.yAxisID===n.id&&i.chart.isDatasetVisible(u)&&a.stack===c.stack){var h=Number(d.data[t]);h<0?l+=h||0:s+=h||0}}return o<0?n.getPixelForValue(l+o):n.getPixelForValue(s+o)}return n.getPixelForValue(o)},draw:function(t){var e,i,a=this,n=t||1,o=a.getMeta().data,r=a.getDataset();for(l.canvasHelpers.clipArea(a.chart.chart.ctx,a.chart.chartArea),e=0,i=o.length;e<i;++e){var s=r.data[e];null==s||isNaN(s)||o[e].transition(n).draw()}l.canvasHelpers.unclipArea(a.chart.chart.ctx)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},n=t._model;n.backgroundColor=a.hoverBackgroundColor?a.hoverBackgroundColor:h.getValueAtIndexOrDefault(e.hoverBackgroundColor,i,h.getHoverColor(n.backgroundColor)),n.borderColor=a.hoverBorderColor?a.hoverBorderColor:h.getValueAtIndexOrDefault(e.hoverBorderColor,i,h.getHoverColor(n.borderColor)),n.borderWidth=a.hoverBorderWidth?a.hoverBorderWidth:h.getValueAtIndexOrDefault(e.hoverBorderWidth,i,n.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},n=t._model,o=this.chart.options.elements.rectangle;n.backgroundColor=a.backgroundColor?a.backgroundColor:h.getValueAtIndexOrDefault(e.backgroundColor,i,o.backgroundColor),n.borderColor=a.borderColor?a.borderColor:h.getValueAtIndexOrDefault(e.borderColor,i,o.borderColor),n.borderWidth=a.borderWidth?a.borderWidth:h.getValueAtIndexOrDefault(e.borderWidth,i,o.borderWidth)}}),l.defaults.horizontalBar={hover:{mode:"label"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(t,e){var i="";return 0<t.length&&(t[0].yLabel?i=t[0].yLabel:0<e.labels.length&&t[0].index<e.labels.length&&(i=e.labels[t[0].index])),i},label:function(t,e){return(e.datasets[t.datasetIndex].label||"")+": "+t.xLabel}}}},l.controllers.horizontalBar=l.controllers.bar.extend({getStackCount:function(){var a=this,t=a.getMeta(),n=a.getScaleForId(t.xAxisID),o=[];return h.each(a.chart.data.datasets,function(t,e){var i=a.chart.getDatasetMeta(e);i.bar&&a.chart.isDatasetVisible(e)&&(!1===n.options.stacked||!0===n.options.stacked&&-1===o.indexOf(i.stack)||void 0===n.options.stacked&&(void 0===i.stack||-1===o.indexOf(i.stack)))&&o.push(i.stack)},a),o.length},updateElement:function(t,e,i){var a=this,n=a.getMeta(),o=a.getScaleForId(n.xAxisID),r=a.getScaleForId(n.yAxisID),s=o.getBasePixel(),l=t.custom||{},u=a.getDataset(),d=a.chart.options.elements.rectangle;t._xScale=o,t._yScale=r,t._datasetIndex=a.index,t._index=e;var c=a.getRuler(e);t._model={x:i?s:a.calculateBarX(e,a.index),y:a.calculateBarY(e,a.index,c),label:a.chart.data.labels[e],datasetLabel:u.label,horizontal:!0,base:i?s:a.calculateBarBase(a.index,e),height:a.calculateBarHeight(c),backgroundColor:l.backgroundColor?l.backgroundColor:h.getValueAtIndexOrDefault(u.backgroundColor,e,d.backgroundColor),borderSkipped:l.borderSkipped?l.borderSkipped:d.borderSkipped,borderColor:l.borderColor?l.borderColor:h.getValueAtIndexOrDefault(u.borderColor,e,d.borderColor),borderWidth:l.borderWidth?l.borderWidth:h.getValueAtIndexOrDefault(u.borderWidth,e,d.borderWidth)},t.pivot()},calculateBarBase:function(t,e){var i=this.getMeta(),a=this.getScaleForId(i.xAxisID),n=a.getBaseValue(),o=n;if(a.options.stacked||void 0===a.options.stacked&&void 0!==i.stack){for(var r=this.chart,s=r.data.datasets,l=Number(s[t].data[e]),u=0;u<t;u++){var d=s[u],c=r.getDatasetMeta(u);if(c.bar&&c.xAxisID===a.id&&r.isDatasetVisible(u)&&i.stack===c.stack){var h=Number(d.data[e]);n+=l<0?Math.min(h,o):Math.max(h,o)}}return a.getPixelForValue(n)}return a.getBasePixel()},getRuler:function(){var t=this.getMeta(),e=this.getScaleForId(t.yAxisID),i=this.getStackCount(),a=e.height/e.ticks.length,n=a*e.options.categoryPercentage,o=n/i;return{stackCount:i,tickHeight:a,categoryHeight:n,categorySpacing:(a-a*e.options.categoryPercentage)/2,fullBarHeight:o,barHeight:o*e.options.barPercentage,barSpacing:o-o*e.options.barPercentage}},calculateBarHeight:function(t){var e=this.getMeta(),i=this.getScaleForId(e.yAxisID);return i.options.barThickness?i.options.barThickness:t.barHeight},getStackIndex:function(t){var e,i,a=this.chart.getDatasetMeta(t),n=this.getScaleForId(a.xAxisID),o=[a.stack];for(i=0;i<t;++i)(e=this.chart.getDatasetMeta(i)).bar&&this.chart.isDatasetVisible(i)&&(!1===n.options.stacked||!0===n.options.stacked&&-1===o.indexOf(e.stack)||void 0===n.options.stacked&&(void 0===e.stack||-1===o.indexOf(e.stack)))&&o.push(e.stack);return o.length-1},calculateBarX:function(t,e){var i=this,a=i.getMeta(),n=i.getScaleForId(a.xAxisID),o=Number(i.getDataset().data[t]);if(n.options.stacked||void 0===n.options.stacked&&void 0!==a.stack){for(var r=n.getBaseValue(),s=r,l=r,u=0;u<e;u++){var d=i.chart.data.datasets[u],c=i.chart.getDatasetMeta(u);if(c.bar&&c.xAxisID===n.id&&i.chart.isDatasetVisible(u)&&a.stack===c.stack){var h=Number(d.data[t]);h<0?l+=h||0:s+=h||0}}return o<0?n.getPixelForValue(l+o):n.getPixelForValue(s+o)}return n.getPixelForValue(o)},calculateBarY:function(t,e,i){var a=this,n=a.getMeta(),o=a.getScaleForId(n.yAxisID),r=a.getStackIndex(e),s=o.getPixelForValue(null,t,e,a.chart.isCombo);return(s-=a.chart.isCombo?i.tickHeight/2:0)+i.barHeight/2+i.categorySpacing+i.barHeight*r+i.barSpacing/2+i.barSpacing*r}})}},{}],16:[function(t,e,i){"use strict";e.exports=function(f){var g=f.helpers;f.defaults.bubble={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var i=e.datasets[t.datasetIndex].label||"",a=e.datasets[t.datasetIndex].data[t.index];return i+": ("+t.xLabel+", "+t.yLabel+", "+a.r+")"}}}},f.controllers.bubble=f.DatasetController.extend({dataElementType:f.elements.Point,update:function(i){var a=this,t=a.getMeta().data;g.each(t,function(t,e){a.updateElement(t,e,i)})},updateElement:function(t,e,i){var a=this,n=a.getMeta(),o=a.getScaleForId(n.xAxisID),r=a.getScaleForId(n.yAxisID),s=t.custom||{},l=a.getDataset(),u=l.data[e],d=a.chart.options.elements.point,c=a.index;g.extend(t,{_xScale:o,_yScale:r,_datasetIndex:c,_index:e,_model:{x:i?o.getPixelForDecimal(.5):o.getPixelForValue("object"==typeof u?u:NaN,e,c,a.chart.isCombo),y:i?r.getBasePixel():r.getPixelForValue(u,e,c),radius:i?0:s.radius?s.radius:a.getRadius(u),hitRadius:s.hitRadius?s.hitRadius:g.getValueAtIndexOrDefault(l.hitRadius,e,d.hitRadius)}}),f.DatasetController.prototype.removeHoverStyle.call(a,t,d);var h=t._model;h.skip=s.skip?s.skip:isNaN(h.x)||isNaN(h.y),t.pivot()},getRadius:function(t){return t.r||this.chart.options.elements.point.radius},setHoverStyle:function(t){f.DatasetController.prototype.setHoverStyle.call(this,t);var e=this.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{};t._model.radius=a.hoverRadius?a.hoverRadius:g.getValueAtIndexOrDefault(e.hoverRadius,i,this.chart.options.elements.point.hoverRadius)+this.getRadius(e.data[i])},removeHoverStyle:function(t){f.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.point);var e=this.chart.data.datasets[t._datasetIndex].data[t._index],i=t.custom||{};t._model.radius=i.radius?i.radius:this.getRadius(e)}})}},{}],17:[function(t,e,i){"use strict";e.exports=function(e){var T=e.helpers,t=e.defaults;t.doughnut={animation:{animateRotate:!0,animateScale:!1},aspectRatio:1,hover:{mode:"single"},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var i=t.data,a=i.datasets,n=i.labels;if(a.length)for(var o=0;o<a[0].data.length;++o)e.push('<li><span style="background-color:'+a[0].backgroundColor[o]+'"></span>'),n[o]&&e.push(n[o]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(l){var u=l.data;return u.labels.length&&u.datasets.length?u.labels.map(function(t,e){var i=l.getDatasetMeta(0),a=u.datasets[0],n=i.data[e],o=n&&n.custom||{},r=T.getValueAtIndexOrDefault,s=l.options.elements.arc;return{text:t,fillStyle:o.backgroundColor?o.backgroundColor:r(a.backgroundColor,e,s.backgroundColor),strokeStyle:o.borderColor?o.borderColor:r(a.borderColor,e,s.borderColor),lineWidth:o.borderWidth?o.borderWidth:r(a.borderWidth,e,s.borderWidth),hidden:isNaN(a.data[e])||i.data[e].hidden,index:e}}):[]}},onClick:function(t,e){var i,a,n,o=e.index,r=this.chart;for(i=0,a=(r.data.datasets||[]).length;i<a;++i)(n=r.getDatasetMeta(i)).data[o]&&(n.data[o].hidden=!n.data[o].hidden);r.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var i=e.labels[t.index],a=": "+e.datasets[t.datasetIndex].data[t.index];return T.isArray(i)?(i=i.slice())[0]+=a:i+=a,i}}}},t.pie=T.clone(t.doughnut),T.extend(t.pie,{cutoutPercentage:0}),e.controllers.doughnut=e.controllers.pie=e.DatasetController.extend({dataElementType:e.elements.Arc,linkScales:T.noop,getRingIndex:function(t){for(var e=0,i=0;i<t;++i)this.chart.isDatasetVisible(i)&&++e;return e},update:function(i){var a=this,t=a.chart,e=t.chartArea,n=t.options,o=n.elements.arc,r=e.right-e.left-o.borderWidth,s=e.bottom-e.top-o.borderWidth,l=Math.min(r,s),u={x:0,y:0},d=a.getMeta(),c=n.cutoutPercentage,h=n.circumference;if(h<2*Math.PI){var f=n.rotation%(2*Math.PI),g=(f+=2*Math.PI*(f>=Math.PI?-1:f<-Math.PI?1:0))+h,p=Math.cos(f),m=Math.sin(f),b=Math.cos(g),v=Math.sin(g),x=f<=0&&0<=g||f<=2*Math.PI&&2*Math.PI<=g,y=f<=.5*Math.PI&&.5*Math.PI<=g||f<=2.5*Math.PI&&2.5*Math.PI<=g,k=f<=-Math.PI&&-Math.PI<=g||f<=Math.PI&&Math.PI<=g,S=f<=.5*-Math.PI&&.5*-Math.PI<=g||f<=1.5*Math.PI&&1.5*Math.PI<=g,M=c/100,w=k?-1:Math.min(p*(p<0?1:M),b*(b<0?1:M)),C=S?-1:Math.min(m*(m<0?1:M),v*(v<0?1:M)),I=x?1:Math.max(p*(0<p?1:M),b*(0<b?1:M)),D=y?1:Math.max(m*(0<m?1:M),v*(0<v?1:M)),A=.5*(I-w),P=.5*(D-C);l=Math.min(r/A,s/P),u={x:-.5*(I+w),y:-.5*(D+C)}}t.borderWidth=a.getMaxBorderWidth(d.data),t.outerRadius=Math.max((l-t.borderWidth)/2,0),t.innerRadius=Math.max(c?t.outerRadius/100*c:0,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),t.offsetX=u.x*t.outerRadius,t.offsetY=u.y*t.outerRadius,d.total=a.calculateTotal(),a.outerRadius=t.outerRadius-t.radiusLength*a.getRingIndex(a.index),a.innerRadius=Math.max(a.outerRadius-t.radiusLength,0),T.each(d.data,function(t,e){a.updateElement(t,e,i)})},updateElement:function(t,e,i){var a=this,n=a.chart,o=n.chartArea,r=n.options,s=r.animation,l=(o.left+o.right)/2,u=(o.top+o.bottom)/2,d=r.rotation,c=r.rotation,h=a.getDataset(),f=i&&s.animateRotate?0:t.hidden?0:a.calculateCircumference(h.data[e])*(r.circumference/(2*Math.PI)),g=i&&s.animateScale?0:a.innerRadius,p=i&&s.animateScale?0:a.outerRadius,m=T.getValueAtIndexOrDefault;T.extend(t,{_datasetIndex:a.index,_index:e,_model:{x:l+n.offsetX,y:u+n.offsetY,startAngle:d,endAngle:c,circumference:f,outerRadius:p,innerRadius:g,label:m(h.label,e,n.data.labels[e])}});var b=t._model;this.removeHoverStyle(t),i&&s.animateRotate||(b.startAngle=0===e?r.rotation:a.getMeta().data[e-1]._model.endAngle,b.endAngle=b.startAngle+b.circumference),t.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},calculateTotal:function(){var i,a=this.getDataset(),t=this.getMeta(),n=0;return T.each(t.data,function(t,e){i=a.data[e],isNaN(i)||t.hidden||(n+=Math.abs(i))}),n},calculateCircumference:function(t){var e=this.getMeta().total;return 0<e&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,i,a=0,n=this.index,o=t.length,r=0;r<o;r++)a=(a=a<(e=t[r]._model?t[r]._model.borderWidth:0)?e:a)<(i=t[r]._chart?t[r]._chart.config.data.datasets[n].hoverBorderWidth:0)?i:a;return a}})}},{}],18:[function(t,e,i){"use strict";e.exports=function(s){function f(t,e){return p.getValueOrDefault(t.showLine,e.showLines)}var p=s.helpers;s.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}},s.controllers.line=s.DatasetController.extend({datasetElementType:s.elements.Line,dataElementType:s.elements.Point,update:function(t){var e,i,a,n=this,o=n.getMeta(),r=o.dataset,s=o.data||[],l=n.chart.options,u=l.elements.line,d=n.getScaleForId(o.yAxisID),c=n.getDataset(),h=f(c,l);for(h&&(a=r.custom||{},void 0!==c.tension&&void 0===c.lineTension&&(c.lineTension=c.tension),r._scale=d,r._datasetIndex=n.index,r._children=s,r._model={spanGaps:c.spanGaps?c.spanGaps:l.spanGaps,tension:a.tension?a.tension:p.getValueOrDefault(c.lineTension,u.tension),backgroundColor:a.backgroundColor?a.backgroundColor:c.backgroundColor||u.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:c.borderWidth||u.borderWidth,borderColor:a.borderColor?a.borderColor:c.borderColor||u.borderColor,borderCapStyle:a.borderCapStyle?a.borderCapStyle:c.borderCapStyle||u.borderCapStyle,borderDash:a.borderDash?a.borderDash:c.borderDash||u.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:c.borderDashOffset||u.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:c.borderJoinStyle||u.borderJoinStyle,fill:a.fill?a.fill:void 0!==c.fill?c.fill:u.fill,steppedLine:a.steppedLine?a.steppedLine:p.getValueOrDefault(c.steppedLine,u.stepped),cubicInterpolationMode:a.cubicInterpolationMode?a.cubicInterpolationMode:p.getValueOrDefault(c.cubicInterpolationMode,u.cubicInterpolationMode),scaleTop:d.top,scaleBottom:d.bottom,scaleZero:d.getBasePixel()},r.pivot()),e=0,i=s.length;e<i;++e)n.updateElement(s[e],e,t);for(h&&0!==r._model.tension&&n.updateBezierControlPoints(),e=0,i=s.length;e<i;++e)s[e].pivot()},getPointBackgroundColor:function(t,e){var i=this.chart.options.elements.point.backgroundColor,a=this.getDataset(),n=t.custom||{};return n.backgroundColor?i=n.backgroundColor:a.pointBackgroundColor?i=p.getValueAtIndexOrDefault(a.pointBackgroundColor,e,i):a.backgroundColor&&(i=a.backgroundColor),i},getPointBorderColor:function(t,e){var i=this.chart.options.elements.point.borderColor,a=this.getDataset(),n=t.custom||{};return n.borderColor?i=n.borderColor:a.pointBorderColor?i=p.getValueAtIndexOrDefault(a.pointBorderColor,e,i):a.borderColor&&(i=a.borderColor),i},getPointBorderWidth:function(t,e){var i=this.chart.options.elements.point.borderWidth,a=this.getDataset(),n=t.custom||{};return isNaN(n.borderWidth)?isNaN(a.pointBorderWidth)?isNaN(a.borderWidth)||(i=a.borderWidth):i=p.getValueAtIndexOrDefault(a.pointBorderWidth,e,i):i=n.borderWidth,i},updateElement:function(t,e,i){var a,n,o=this,r=o.getMeta(),s=t.custom||{},l=o.getDataset(),u=o.index,d=l.data[e],c=o.getScaleForId(r.yAxisID),h=o.getScaleForId(r.xAxisID),f=o.chart.options.elements.point,g=1===(o.chart.data.labels||[]).length||1===l.data.length||o.chart.isCombo;void 0!==l.radius&&void 0===l.pointRadius&&(l.pointRadius=l.radius),void 0!==l.hitRadius&&void 0===l.pointHitRadius&&(l.pointHitRadius=l.hitRadius),a=h.getPixelForValue("object"==typeof d?d:NaN,e,u,g),n=i?c.getBasePixel():o.calculatePointY(d,e,u),t._xScale=h,t._yScale=c,t._datasetIndex=u,t._index=e,t._model={x:a,y:n,skip:s.skip||isNaN(a)||isNaN(n),radius:s.radius||p.getValueAtIndexOrDefault(l.pointRadius,e,f.radius),pointStyle:s.pointStyle||p.getValueAtIndexOrDefault(l.pointStyle,e,f.pointStyle),backgroundColor:o.getPointBackgroundColor(t,e),borderColor:o.getPointBorderColor(t,e),borderWidth:o.getPointBorderWidth(t,e),tension:r.dataset._model?r.dataset._model.tension:0,steppedLine:!!r.dataset._model&&r.dataset._model.steppedLine,hitRadius:s.hitRadius||p.getValueAtIndexOrDefault(l.pointHitRadius,e,f.hitRadius)}},calculatePointY:function(t,e,i){var a,n,o,r=this.chart,s=this.getMeta(),l=this.getScaleForId(s.yAxisID),u=0,d=0;if(l.options.stacked){for(a=0;a<i;a++)if(n=r.data.datasets[a],"line"===(o=r.getDatasetMeta(a)).type&&o.yAxisID===l.id&&r.isDatasetVisible(a)){var c=Number(l.getRightValue(n.data[e]));c<0?d+=c||0:u+=c||0}var h=Number(l.getRightValue(t));return h<0?l.getPixelForValue(d+h):l.getPixelForValue(u+h)}return l.getPixelForValue(t)},updateBezierControlPoints:function(){function t(t,e,i){return Math.max(Math.min(t,i),e)}var e,i,a,n,o=this.getMeta(),r=this.chart.chartArea,s=o.data||[];if(o.dataset._model.spanGaps&&(s=s.filter(function(t){return!t._model.skip})),"monotone"===o.dataset._model.cubicInterpolationMode)p.splineCurveMonotone(s);else for(e=0,i=s.length;e<i;++e)a=s[e]._model,n=p.splineCurve(p.previousItem(s,e)._model,a,p.nextItem(s,e)._model,o.dataset._model.tension),a.controlPointPreviousX=n.previous.x,a.controlPointPreviousY=n.previous.y,a.controlPointNextX=n.next.x,a.controlPointNextY=n.next.y;if(this.chart.options.elements.line.capBezierPoints)for(e=0,i=s.length;e<i;++e)(a=s[e]._model).controlPointPreviousX=t(a.controlPointPreviousX,r.left,r.right),a.controlPointPreviousY=t(a.controlPointPreviousY,r.top,r.bottom),a.controlPointNextX=t(a.controlPointNextX,r.left,r.right),a.controlPointNextY=t(a.controlPointNextY,r.top,r.bottom)},draw:function(t){var e,i,a=this,n=a.getMeta(),o=n.data||[],r=t||1;for(e=0,i=o.length;e<i;++e)o[e].transition(r);for(s.canvasHelpers.clipArea(a.chart.chart.ctx,a.chart.chartArea),f(a.getDataset(),a.chart.options)&&n.dataset.transition(r).draw(),s.canvasHelpers.unclipArea(a.chart.chart.ctx),e=0,i=o.length;e<i;++e)o[e].draw(a.chart.chartArea)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},n=t._model;n.radius=a.hoverRadius||p.getValueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),n.backgroundColor=a.hoverBackgroundColor||p.getValueAtIndexOrDefault(e.pointHoverBackgroundColor,i,p.getHoverColor(n.backgroundColor)),n.borderColor=a.hoverBorderColor||p.getValueAtIndexOrDefault(e.pointHoverBorderColor,i,p.getHoverColor(n.borderColor)),n.borderWidth=a.hoverBorderWidth||p.getValueAtIndexOrDefault(e.pointHoverBorderWidth,i,n.borderWidth)},removeHoverStyle:function(t){var e=this,i=e.chart.data.datasets[t._datasetIndex],a=t._index,n=t.custom||{},o=t._model;void 0!==i.radius&&void 0===i.pointRadius&&(i.pointRadius=i.radius),o.radius=n.radius||p.getValueAtIndexOrDefault(i.pointRadius,a,e.chart.options.elements.point.radius),o.backgroundColor=e.getPointBackgroundColor(t,a),o.borderColor=e.getPointBorderColor(t,a),o.borderWidth=e.getPointBorderWidth(t,a)}})}},{}],19:[function(t,e,i){"use strict";e.exports=function(e){var S=e.helpers;e.defaults.polarArea={scale:{type:"radialLinear",lineArc:!0,ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,aspectRatio:1,legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var i=t.data,a=i.datasets,n=i.labels;if(a.length)for(var o=0;o<a[0].data.length;++o)e.push('<li><span style="background-color:'+a[0].backgroundColor[o]+'"></span>'),n[o]&&e.push(n[o]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var i=s.getDatasetMeta(0),a=l.datasets[0],n=i.data[e].custom||{},o=S.getValueAtIndexOrDefault,r=s.options.elements.arc;return{text:t,fillStyle:n.backgroundColor?n.backgroundColor:o(a.backgroundColor,e,r.backgroundColor),strokeStyle:n.borderColor?n.borderColor:o(a.borderColor,e,r.borderColor),lineWidth:n.borderWidth?n.borderWidth:o(a.borderWidth,e,r.borderWidth),hidden:isNaN(a.data[e])||i.data[e].hidden,index:e}}):[]}},onClick:function(t,e){var i,a,n,o=e.index,r=this.chart;for(i=0,a=(r.data.datasets||[]).length;i<a;++i)(n=r.getDatasetMeta(i)).data[o].hidden=!n.data[o].hidden;r.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}},e.controllers.polarArea=e.DatasetController.extend({dataElementType:e.elements.Arc,linkScales:S.noop,update:function(i){var a=this,t=a.chart,e=t.chartArea,n=a.getMeta(),o=t.options,r=o.elements.arc,s=Math.min(e.right-e.left,e.bottom-e.top);t.outerRadius=Math.max((s-r.borderWidth/2)/2,0),t.innerRadius=Math.max(o.cutoutPercentage?t.outerRadius/100*o.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),a.outerRadius=t.outerRadius-t.radiusLength*a.index,a.innerRadius=a.outerRadius-t.radiusLength,n.count=a.countVisibleElements(),S.each(n.data,function(t,e){a.updateElement(t,e,i)})},updateElement:function(t,e,i){for(var a=this,n=a.chart,o=a.getDataset(),r=n.options,s=r.animation,l=n.scale,u=S.getValueAtIndexOrDefault,d=n.data.labels,c=a.calculateCircumference(o.data[e]),h=l.xCenter,f=l.yCenter,g=0,p=a.getMeta(),m=0;m<e;++m)isNaN(o.data[m])||p.data[m].hidden||++g;var b=r.startAngle,v=t.hidden?0:l.getDistanceFromCenterForValue(o.data[e]),x=b+c*g,y=x+(t.hidden?0:c),k=s.animateScale?0:l.getDistanceFromCenterForValue(o.data[e]);S.extend(t,{_datasetIndex:a.index,_index:e,_scale:l,_model:{x:h,y:f,innerRadius:0,outerRadius:i?k:v,startAngle:i&&s.animateRotate?b:x,endAngle:i&&s.animateRotate?b:y,label:u(d,e,d[e])}}),a.removeHoverStyle(t),t.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},countVisibleElements:function(){var i=this.getDataset(),t=this.getMeta(),a=0;return S.each(t.data,function(t,e){isNaN(i.data[e])||t.hidden||a++}),a},calculateCircumference:function(t){var e=this.getMeta().count;return 0<e&&!isNaN(t)?2*Math.PI/e:0}})}},{}],20:[function(t,e,i){"use strict";e.exports=function(t){var u=t.helpers;t.defaults.radar={aspectRatio:1,scale:{type:"radialLinear"},elements:{line:{tension:0}}},t.controllers.radar=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,linkScales:u.noop,update:function(i){var a=this,t=a.getMeta(),e=t.dataset,n=t.data,o=e.custom||{},r=a.getDataset(),s=a.chart.options.elements.line,l=a.chart.scale;void 0!==r.tension&&void 0===r.lineTension&&(r.lineTension=r.tension),u.extend(t.dataset,{_datasetIndex:a.index,_children:n,_loop:!0,_model:{tension:o.tension?o.tension:u.getValueOrDefault(r.lineTension,s.tension),backgroundColor:o.backgroundColor?o.backgroundColor:r.backgroundColor||s.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:r.borderWidth||s.borderWidth,borderColor:o.borderColor?o.borderColor:r.borderColor||s.borderColor,fill:o.fill?o.fill:void 0!==r.fill?r.fill:s.fill,borderCapStyle:o.borderCapStyle?o.borderCapStyle:r.borderCapStyle||s.borderCapStyle,borderDash:o.borderDash?o.borderDash:r.borderDash||s.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:r.borderDashOffset||s.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:r.borderJoinStyle||s.borderJoinStyle,scaleTop:l.top,scaleBottom:l.bottom,scaleZero:l.getBasePosition()}}),t.dataset.pivot(),u.each(n,function(t,e){a.updateElement(t,e,i)},a),a.updateBezierControlPoints()},updateElement:function(t,e,i){var a=this,n=t.custom||{},o=a.getDataset(),r=a.chart.scale,s=a.chart.options.elements.point,l=r.getPointPositionForValue(e,o.data[e]);u.extend(t,{_datasetIndex:a.index,_index:e,_scale:r,_model:{x:i?r.xCenter:l.x,y:i?r.yCenter:l.y,tension:n.tension?n.tension:u.getValueOrDefault(o.lineTension,a.chart.options.elements.line.tension),radius:n.radius?n.radius:u.getValueAtIndexOrDefault(o.pointRadius,e,s.radius),backgroundColor:n.backgroundColor?n.backgroundColor:u.getValueAtIndexOrDefault(o.pointBackgroundColor,e,s.backgroundColor),borderColor:n.borderColor?n.borderColor:u.getValueAtIndexOrDefault(o.pointBorderColor,e,s.borderColor),borderWidth:n.borderWidth?n.borderWidth:u.getValueAtIndexOrDefault(o.pointBorderWidth,e,s.borderWidth),pointStyle:n.pointStyle?n.pointStyle:u.getValueAtIndexOrDefault(o.pointStyle,e,s.pointStyle),hitRadius:n.hitRadius?n.hitRadius:u.getValueAtIndexOrDefault(o.hitRadius,e,s.hitRadius)}}),t._model.skip=n.skip?n.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var n=this.chart.chartArea,o=this.getMeta();u.each(o.data,function(t,e){var i=t._model,a=u.splineCurve(u.previousItem(o.data,e,!0)._model,i,u.nextItem(o.data,e,!0)._model,i.tension);i.controlPointPreviousX=Math.max(Math.min(a.previous.x,n.right),n.left),i.controlPointPreviousY=Math.max(Math.min(a.previous.y,n.bottom),n.top),i.controlPointNextX=Math.max(Math.min(a.next.x,n.right),n.left),i.controlPointNextY=Math.max(Math.min(a.next.y,n.bottom),n.top),t.pivot()})},draw:function(t){var e=this.getMeta(),i=t||1;u.each(e.data,function(t){t.transition(i)}),e.dataset.transition(i).draw(),u.each(e.data,function(t){t.draw()})},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t.custom||{},a=t._index,n=t._model;n.radius=i.hoverRadius?i.hoverRadius:u.getValueAtIndexOrDefault(e.pointHoverRadius,a,this.chart.options.elements.point.hoverRadius),n.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:u.getValueAtIndexOrDefault(e.pointHoverBackgroundColor,a,u.getHoverColor(n.backgroundColor)),n.borderColor=i.hoverBorderColor?i.hoverBorderColor:u.getValueAtIndexOrDefault(e.pointHoverBorderColor,a,u.getHoverColor(n.borderColor)),n.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:u.getValueAtIndexOrDefault(e.pointHoverBorderWidth,a,n.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t.custom||{},a=t._index,n=t._model,o=this.chart.options.elements.point;n.radius=i.radius?i.radius:u.getValueAtIndexOrDefault(e.radius,a,o.radius),n.backgroundColor=i.backgroundColor?i.backgroundColor:u.getValueAtIndexOrDefault(e.pointBackgroundColor,a,o.backgroundColor),n.borderColor=i.borderColor?i.borderColor:u.getValueAtIndexOrDefault(e.pointBorderColor,a,o.borderColor),n.borderWidth=i.borderWidth?i.borderWidth:u.getValueAtIndexOrDefault(e.pointBorderWidth,a,o.borderWidth)}})}},{}],21:[function(t,e,i){"use strict";e.exports=function(t){var i=t.helpers;t.defaults.global.animation={duration:1e3,easing:"easeOutQuart",onProgress:i.noop,onComplete:i.noop},t.Animation=t.Element.extend({currentStep:null,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,i,a){var n=this;a||(t.animating=!0);for(var o=0;o<n.animations.length;++o)if(n.animations[o].chartInstance===t)return void(n.animations[o].animationObject=e);n.animations.push({chartInstance:t,animationObject:e}),1===n.animations.length&&n.requestAnimationFrame()},cancelAnimation:function(e){var t=i.findIndex(this.animations,function(t){return t.chartInstance===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=i.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=this,e=Date.now(),i=0;1<t.dropFrames&&(i=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1);for(var a=0;a<t.animations.length;)null===t.animations[a].animationObject.currentStep&&(t.animations[a].animationObject.currentStep=0),t.animations[a].animationObject.currentStep+=1+i,t.animations[a].animationObject.currentStep>t.animations[a].animationObject.numSteps&&(t.animations[a].animationObject.currentStep=t.animations[a].animationObject.numSteps),t.animations[a].animationObject.render(t.animations[a].chartInstance,t.animations[a].animationObject),t.animations[a].animationObject.onAnimationProgress&&t.animations[a].animationObject.onAnimationProgress.call&&t.animations[a].animationObject.onAnimationProgress.call(t.animations[a].chartInstance,t.animations[a]),t.animations[a].animationObject.currentStep===t.animations[a].animationObject.numSteps?(t.animations[a].animationObject.onAnimationComplete&&t.animations[a].animationObject.onAnimationComplete.call&&t.animations[a].animationObject.onAnimationComplete.call(t.animations[a].chartInstance,t.animations[a]),t.animations[a].chartInstance.animating=!1,t.animations.splice(a,1)):++a;var n=(Date.now()-e)/t.frameDuration;t.dropFrames+=n,0<t.animations.length&&t.requestAnimationFrame()}}}},{}],22:[function(t,e,i){"use strict";e.exports=function(p){var t=p.canvasHelpers={};t.drawPoint=function(t,e,i,a,n){var o,r,s,l,u,d;if("object"!=typeof e||"[object HTMLImageElement]"!==(o=e.toString())&&"[object HTMLCanvasElement]"!==o){if(!(isNaN(i)||i<=0)){switch(e){default:t.beginPath(),t.arc(a,n,i,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),u=(r=3*i/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(a-r/2,n+u/3),t.lineTo(a+r/2,n+u/3),t.lineTo(a,n-2*u/3),t.closePath(),t.fill();break;case"rect":d=1/Math.SQRT2*i,t.beginPath(),t.fillRect(a-d,n-d,2*d,2*d),t.strokeRect(a-d,n-d,2*d,2*d);break;case"rectRounded":var c=i/Math.SQRT2,h=a-c,f=n-c,g=Math.SQRT2*i;p.helpers.drawRoundedRectangle(t,h,f,g,g,i/2),t.fill();break;case"rectRot":d=1/Math.SQRT2*i,t.beginPath(),t.moveTo(a-d,n),t.lineTo(a,n+d),t.lineTo(a+d,n),t.lineTo(a,n-d),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(a,n+i),t.lineTo(a,n-i),t.moveTo(a-i,n),t.lineTo(a+i,n),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*i,l=Math.sin(Math.PI/4)*i,t.moveTo(a-s,n-l),t.lineTo(a+s,n+l),t.moveTo(a-s,n+l),t.lineTo(a+s,n-l),t.closePath();break;case"star":t.beginPath(),t.moveTo(a,n+i),t.lineTo(a,n-i),t.moveTo(a-i,n),t.lineTo(a+i,n),s=Math.cos(Math.PI/4)*i,l=Math.sin(Math.PI/4)*i,t.moveTo(a-s,n-l),t.lineTo(a+s,n+l),t.moveTo(a-s,n+l),t.lineTo(a+s,n-l),t.closePath();break;case"line":t.beginPath(),t.moveTo(a-i,n),t.lineTo(a+i,n),t.closePath();break;case"dash":t.beginPath(),t.moveTo(a,n),t.lineTo(a+i,n),t.closePath()}t.stroke()}}else t.drawImage(e,a-e.width/2,n-e.height/2)},t.clipArea=function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},t.unclipArea=function(t){t.restore()}}},{}],23:[function(t,e,i){"use strict";e.exports=function(d){var c=d.helpers,u=d.plugins,h=d.platform;d.types={},d.instances={},d.controllers={},d.Controller=function(t,e,i){var a,n,o=this;(n=(a=(a=e)||{}).data=a.data||{}).datasets=n.datasets||[],n.labels=n.labels||[],a.options=c.configMerge(d.defaults.global,d.defaults[a.type],a.options||{}),e=a;var r=h.acquireContext(t,e),s=r&&r.canvas,l=s&&s.height,u=s&&s.width;return i.ctx=r,i.canvas=s,i.config=e,i.width=u,i.height=l,i.aspectRatio=l?u/l:null,o.id=c.uid(),o.chart=i,o.config=e,o.options=e.options,o._bufferedRender=!1,d.instances[o.id]=o,Object.defineProperty(o,"data",{get:function(){return o.config.data}}),r&&s?(o.initialize(),o.update()):console.error("Failed to create chart: can't acquire context from the given item"),o},c.extend(d.Controller.prototype,{initialize:function(){var t=this;return u.notify(t,"beforeInit"),c.retinaScale(t.chart),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),u.notify(t,"afterInit"),t},clear:function(){return c.clear(this.chart),this},stop:function(){return d.animationService.cancelAnimation(this),this},resize:function(t){var e=this,i=e.chart,a=e.options,n=i.canvas,o=a.maintainAspectRatio&&i.aspectRatio||null,r=Math.floor(c.getMaximumWidth(n)),s=Math.floor(o?r/o:c.getMaximumHeight(n));if((i.width!==r||i.height!==s)&&(n.width=i.width=r,n.height=i.height=s,n.style.width=r+"px",n.style.height=s+"px",c.retinaScale(i),!t)){var l={width:r,height:s};u.notify(e,"resize",[l]),e.options.onResize&&e.options.onResize(e,l),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},i=t.scale;c.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),c.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),i&&(i.id=i.id||"scale")},buildScales:function(){var o=this,t=o.options,r=o.scales={},e=[];t.scales&&(e=e.concat((t.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category"}}),(t.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear"}}))),t.scale&&e.push({options:t.scale,dtype:"radialLinear",isDefault:!0}),c.each(e,function(t){var e=t.options,i=c.getValueOrDefault(e.type,t.dtype),a=d.scaleService.getScaleConstructor(i);if(a){var n=new a({id:e.id,options:e,ctx:o.chart.ctx,chart:o});r[n.id]=n,t.isDefault&&(o.scale=n)}}),d.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var a=this,n=[],o=[];if(c.each(a.data.datasets,function(t,e){var i=a.getDatasetMeta(e);i.type||(i.type=t.type||a.config.type),n.push(i.type),i.controller?i.controller.updateIndex(e):(i.controller=new d.controllers[i.type](a,e),o.push(i.controller))},a),1<n.length)for(var t=1;t<n.length;t++)if(n[t]!==n[t-1]){a.isCombo=!0;break}return o},resetElements:function(){var i=this;c.each(i.data.datasets,function(t,e){i.getDatasetMeta(e).controller.reset()},i)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t,e){var i,a,n=this;if((a=(i=n).options).scale?i.scale.options=a.scale:a.scales&&a.scales.xAxes.concat(a.scales.yAxes).forEach(function(t){i.scales[t.id].options=t}),i.tooltip._options=a.tooltips,!1!==u.notify(n,"beforeUpdate")){n.tooltip._data=n.data;var o=n.buildOrUpdateControllers();c.each(n.data.datasets,function(t,e){n.getDatasetMeta(e).controller.buildOrUpdateElements()},n),n.updateLayout(),c.each(o,function(t){t.reset()}),n.updateDatasets(),u.notify(n,"afterUpdate"),n._bufferedRender?n._bufferedRequest={lazy:e,duration:t}:n.render(t,e)}},updateLayout:function(){!1!==u.notify(this,"beforeLayout")&&(d.layoutService.update(this,this.chart.width,this.chart.height),u.notify(this,"afterScaleUpdate"),u.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==u.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.update();u.notify(this,"afterDatasetsUpdate")}},render:function(t,e){var i=this;if(!1!==u.notify(i,"beforeRender")){var a=i.options.animation,n=function(){u.notify(i,"afterRender");var t=a&&a.onComplete;t&&t.call&&t.call(i)};if(a&&(void 0!==t&&0!==t||void 0===t&&0!==a.duration)){var o=new d.Animation;o.numSteps=(t||a.duration)/16.66,o.easing=a.easing,o.render=function(t,e){var i=c.easingEffects[e.easing],a=e.currentStep/e.numSteps,n=i(a);t.draw(n,a,e.currentStep)},o.onAnimationProgress=a.onProgress,o.onAnimationComplete=n,d.animationService.addAnimation(i,o,t,e)}else i.draw(),n();return i}},draw:function(t){var e=this;e.clear(),null!=t||(t=1),!1!==u.notify(e,"beforeDraw",[t])&&(c.each(e.boxes,function(t){t.draw(e.chartArea)},e),e.scale&&e.scale.draw(),e.drawDatasets(t),e.tooltip.transition(t).draw(),u.notify(e,"afterDraw",[t]))},drawDatasets:function(i){var a=this;!1!==u.notify(a,"beforeDatasetsDraw",[i])&&(c.each(a.data.datasets,function(t,e){a.isDatasetVisible(e)&&a.getDatasetMeta(e).controller.draw(i)},a,!0),u.notify(a,"afterDatasetsDraw",[i]))},getElementAtEvent:function(t){return d.Interaction.modes.single(this,t)},getElementsAtEvent:function(t){return d.Interaction.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return d.Interaction.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,i){var a=d.Interaction.modes[e];return"function"==typeof a?a(this,t,i):[]},getDatasetAtEvent:function(t){return d.Interaction.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this.data.datasets[t];e._meta||(e._meta={});var i=e._meta[this.id];return i||(i=e._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var t=0,e=0,i=this.data.datasets.length;e<i;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroy:function(){var t,e,i,a=this,n=a.chart.canvas;for(a.stop(),e=0,i=a.data.datasets.length;e<i;++e)(t=a.getDatasetMeta(e)).controller&&(t.controller.destroy(),t.controller=null);n&&(a.unbindEvents(),c.clear(a.chart),h.releaseContext(a.chart.ctx),a.chart.canvas=null,a.chart.ctx=null),u.notify(a,"destroy"),delete d.instances[a.id]},toBase64Image:function(){return this.chart.canvas.toDataURL.apply(this.chart.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new d.Tooltip({_chart:t.chart,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t),t.tooltip.initialize()},bindEvents:function(){var e=this,i=e._listeners={},a=function(){e.eventHandler.apply(e,arguments)};c.each(e.options.events,function(t){h.addEventListener(e,t,a),i[t]=a}),e.options.responsive&&(a=function(){e.resize()},h.addEventListener(e,"resize",a),i.resize=a)},unbindEvents:function(){var i=this,t=i._listeners;t&&(delete i._listeners,c.each(t,function(t,e){h.removeEventListener(i,e,t)}))},updateHoverStyle:function(t,e,i){var a,n,o,r=i?"setHoverStyle":"removeHoverStyle";for(n=0,o=t.length;n<o;++n)(a=t[n])&&this.getDatasetMeta(a._datasetIndex).controller[r](a)},eventHandler:function(t){var e=this,i=e.tooltip;if(!1!==u.notify(e,"beforeEvent",[t])){e._bufferedRender=!0,e._bufferedRequest=null;var a=e.handleEvent(t);a|=i&&i.handleEvent(t),u.notify(e,"afterEvent",[t]);var n=e._bufferedRequest;return n?e.render(n.duration,n.lazy):a&&!e.animating&&(e.stop(),e.render(e.options.hover.animationDuration,!0)),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var e,i=this,a=i.options||{},n=a.hover;return i.lastActive=i.lastActive||[],"mouseout"===t.type?i.active=[]:i.active=i.getElementsAtEventForMode(t,n.mode,n),n.onHover&&n.onHover.call(i,t.native,i.active),"mouseup"!==t.type&&"click"!==t.type||a.onClick&&a.onClick.call(i,t.native,i.active),i.lastActive.length&&i.updateHoverStyle(i.lastActive,n.mode,!1),i.active.length&&n.mode&&i.updateHoverStyle(i.active,n.mode,!0),e=!c.arrayEquals(i.active,i.lastActive),i.lastActive=i.active,e}})}},{}],24:[function(t,e,i){"use strict";e.exports=function(t){function o(e,t){var i=e._chartjs;if(i){var a=i.listeners,n=a.indexOf(t);-1!==n&&a.splice(n,1),0<a.length||(r.forEach(function(t){delete e[t]}),delete e._chartjs)}}var s=t.helpers,r=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},s.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){this.chart=t,this.index=e,this.linkScales(),this.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this.getMeta(),e=this.getDataset();null===t.xAxisID&&(t.xAxisID=e.xAxisID||this.chart.options.scales.xAxes[0].id),null===t.yAxisID&&(t.yAxisID=e.yAxisID||this.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&o(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart.chart,_datasetIndex:this.index,_index:t})},addElements:function(){var t,e,i=this.getMeta(),a=this.getDataset().data||[],n=i.data;for(t=0,e=a.length;t<e;++t)n[t]=n[t]||this.createMetaData(t);i.dataset=i.dataset||this.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var n,t,e=this,i=e.getDataset(),a=i.data||(i.data=[]);e._data!==a&&(e._data&&o(e._data,e),t=e,(n=a)._chartjs?n._chartjs.listeners.push(t):(Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),r.forEach(function(t){var i="onData"+t.charAt(0).toUpperCase()+t.slice(1),a=n[t];Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),t=a.apply(this,e);return s.each(n._chartjs.listeners,function(t){"function"==typeof t[i]&&t[i].apply(t,e)}),t}})})),e._data=a),e.resyncElements()},update:s.noop,draw:function(t){var e,i,a=t||1,n=this.getMeta().data;for(e=0,i=n.length;e<i;++e)n[e].transition(a).draw()},removeHoverStyle:function(t,e){var i=this.chart.data.datasets[t._datasetIndex],a=t._index,n=t.custom||{},o=s.getValueAtIndexOrDefault,r=t._model;r.backgroundColor=n.backgroundColor?n.backgroundColor:o(i.backgroundColor,a,e.backgroundColor),r.borderColor=n.borderColor?n.borderColor:o(i.borderColor,a,e.borderColor),r.borderWidth=n.borderWidth?n.borderWidth:o(i.borderWidth,a,e.borderWidth)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},n=s.getValueAtIndexOrDefault,o=s.getHoverColor,r=t._model;r.backgroundColor=a.hoverBackgroundColor?a.hoverBackgroundColor:n(e.hoverBackgroundColor,i,o(r.backgroundColor)),r.borderColor=a.hoverBorderColor?a.hoverBorderColor:n(e.hoverBorderColor,i,o(r.borderColor)),r.borderWidth=a.hoverBorderWidth?a.hoverBorderWidth:n(e.hoverBorderWidth,i,r.borderWidth)},resyncElements:function(){var t=this.getMeta(),e=this.getDataset().data,i=t.data.length,a=e.length;a<i?t.data.splice(a,i-a):i<a&&this.insertElements(i,a-i)},insertElements:function(t,e){for(var i=0;i<e;++i)this.addElementAndReset(t+i)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),t.DatasetController.extend=s.inherits}},{}],25:[function(t,e,i){"use strict";e.exports=function(t){var r=t.helpers;t.elements={},t.Element=function(t){r.extend(this,t),this.initialize.apply(this,arguments)},r.extend(t.Element.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=r.clone(t._model)),t._start=r.clone(t._view),t},transition:function(n){var o=this;return o._view||(o._view=r.clone(o._model)),1===n?(o._view=o._model,o._start=null):(o._start||o.pivot(),r.each(o._model,function(e,i){if("_"===i[0]);else if(o._view.hasOwnProperty(i))if(e===o._view[i]);else if("string"==typeof e)try{var t=r.color(o._model[i]).mix(r.color(o._start[i]),n);o._view[i]=t.rgbString()}catch(t){o._view[i]=e}else if("number"==typeof e){var a=void 0!==o._start[i]&&!1===isNaN(o._start[i])?o._start[i]:0;o._view[i]=(o._model[i]-a)*n+a}else o._view[i]=e;else"number"!=typeof e||isNaN(o._view[i])?o._view[i]=e:o._view[i]=e*n},o)),o},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return r.isNumber(this._model.x)&&r.isNumber(this._model.y)}}),t.Element.extend=r.inherits}},{}],26:[function(t,e,i){"use strict";var a=t(3);e.exports=function(r){function d(t,e,i){var a;return"string"==typeof t?(a=parseInt(t,10),-1!==t.indexOf("%")&&(a=a/100*e.parentNode[i])):a=t,a}function c(t){return null!=t&&"none"!==t}function e(t,e,i){var a=document.defaultView,n=t.parentNode,o=a.getComputedStyle(t)[e],r=a.getComputedStyle(n)[e],s=c(o),l=c(r),u=Number.POSITIVE_INFINITY;return s||l?Math.min(s?d(o,t,i):u,l?d(r,n,i):u):"none"}var t,g=r.helpers={};g.each=function(t,e,i,a){var n,o;if(g.isArray(t))if(o=t.length,a)for(n=o-1;0<=n;n--)e.call(i,t[n],n);else for(n=0;n<o;n++)e.call(i,t[n],n);else if("object"==typeof t){var r=Object.keys(t);for(o=r.length,n=0;n<o;n++)e.call(i,t[r[n]],r[n])}},g.clone=function(t){var i={};return g.each(t,function(t,e){g.isArray(t)?i[e]=t.slice(0):i[e]="object"==typeof t&&null!==t?g.clone(t):t}),i},g.extend=function(i){for(var t=function(t,e){i[e]=t},e=1,a=arguments.length;e<a;e++)g.each(arguments[e],t);return i},g.configMerge=function(t){var n=g.clone(t);return g.each(Array.prototype.slice.call(arguments,1),function(t){g.each(t,function(t,e){var i=n.hasOwnProperty(e),a=i?n[e]:{};"scales"===e?n[e]=g.scaleMerge(a,t):"scale"===e?n[e]=g.configMerge(a,r.scaleService.getScaleDefaults(t.type),t):!i||"object"!=typeof a||g.isArray(a)||null===a||"object"!=typeof t||g.isArray(t)?n[e]=t:n[e]=g.configMerge(a,t)})}),n},g.scaleMerge=function(t,e){var o=g.clone(t);return g.each(e,function(t,n){"xAxes"===n||"yAxes"===n?o.hasOwnProperty(n)?g.each(t,function(t,e){var i=g.getValueOrDefault(t.type,"xAxes"===n?"category":"linear"),a=r.scaleService.getScaleDefaults(i);e>=o[n].length||!o[n][e].type?o[n].push(g.configMerge(a,t)):t.type&&t.type!==o[n][e].type?o[n][e]=g.configMerge(o[n][e],a,t):o[n][e]=g.configMerge(o[n][e],t)}):(o[n]=[],g.each(t,function(t){var e=g.getValueOrDefault(t.type,"xAxes"===n?"category":"linear");o[n].push(g.configMerge(r.scaleService.getScaleDefaults(e),t))})):o.hasOwnProperty(n)&&"object"==typeof o[n]&&null!==o[n]&&"object"==typeof t?o[n]=g.configMerge(o[n],t):o[n]=t}),o},g.getValueAtIndexOrDefault=function(t,e,i){return null==t?i:g.isArray(t)?e<t.length?t[e]:i:t},g.getValueOrDefault=function(t,e){return void 0===t?e:t},g.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,a=t.length;i<a;++i)if(t[i]===e)return i;return-1},g.where=function(t,e){if(g.isArray(t)&&Array.prototype.filter)return t.filter(e);var i=[];return g.each(t,function(t){e(t)&&i.push(t)}),i},g.findIndex=Array.prototype.findIndex?function(t,e,i){return t.findIndex(e,i)}:function(t,e,i){i=void 0===i?t:i;for(var a=0,n=t.length;a<n;++a)if(e.call(i,t[a],a,t))return a;return-1},g.findNextWhere=function(t,e,i){null!=i||(i=-1);for(var a=i+1;a<t.length;a++){var n=t[a];if(e(n))return n}},g.findPreviousWhere=function(t,e,i){null!=i||(i=t.length);for(var a=i-1;0<=a;a--){var n=t[a];if(e(n))return n}},g.inherits=function(t){var e=this,i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},a=function(){this.constructor=i};return a.prototype=e.prototype,i.prototype=new a,i.extend=g.inherits,t&&g.extend(i.prototype,t),i.__super__=e.prototype,i},g.noop=function(){},g.uid=(t=0,function(){return t++}),g.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},g.almostEquals=function(t,e,i){return Math.abs(t-e)<i},g.almostWhole=function(t,e){var i=Math.round(t);return i-e<t&&t<i+e},g.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},g.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},g.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0===(t=+t)||isNaN(t)?t:0<t?1:-1},g.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},g.toRadians=function(t){return t*(Math.PI/180)},g.toDegrees=function(t){return t*(180/Math.PI)},g.getAngleFromPoint=function(t,e){var i=e.x-t.x,a=e.y-t.y,n=Math.sqrt(i*i+a*a),o=Math.atan2(a,i);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:n}},g.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},g.aliasPixel=function(t){return t%2==0?0:.5},g.splineCurve=function(t,e,i,a){var n=t.skip?e:t,o=e,r=i.skip?e:i,s=Math.sqrt(Math.pow(o.x-n.x,2)+Math.pow(o.y-n.y,2)),l=Math.sqrt(Math.pow(r.x-o.x,2)+Math.pow(r.y-o.y,2)),u=s/(s+l),d=l/(s+l),c=a*(u=isNaN(u)?0:u),h=a*(d=isNaN(d)?0:d);return{previous:{x:o.x-c*(r.x-n.x),y:o.y-c*(r.y-n.y)},next:{x:o.x+h*(r.x-n.x),y:o.y+h*(r.y-n.y)}}},g.EPSILON=Number.EPSILON||1e-14,g.splineCurveMonotone=function(t){var e,i,a,n,o,r,s,l,u,d=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),c=d.length;for(e=0;e<c;++e)if(!(a=d[e]).model.skip){if(i=0<e?d[e-1]:null,(n=e<c-1?d[e+1]:null)&&!n.model.skip){var h=n.model.x-a.model.x;a.deltaK=0!==h?(n.model.y-a.model.y)/h:0}!i||i.model.skip?a.mK=a.deltaK:!n||n.model.skip?a.mK=i.deltaK:this.sign(i.deltaK)!==this.sign(a.deltaK)?a.mK=0:a.mK=(i.deltaK+a.deltaK)/2}for(e=0;e<c-1;++e)a=d[e],n=d[e+1],a.model.skip||n.model.skip||(g.almostEquals(a.deltaK,0,this.EPSILON)?a.mK=n.mK=0:(o=a.mK/a.deltaK,r=n.mK/a.deltaK,(l=Math.pow(o,2)+Math.pow(r,2))<=9||(s=3/Math.sqrt(l),a.mK=o*s*a.deltaK,n.mK=r*s*a.deltaK)));for(e=0;e<c;++e)(a=d[e]).model.skip||(i=0<e?d[e-1]:null,n=e<c-1?d[e+1]:null,i&&!i.model.skip&&(u=(a.model.x-i.model.x)/3,a.model.controlPointPreviousX=a.model.x-u,a.model.controlPointPreviousY=a.model.y-u*a.mK),n&&!n.model.skip&&(u=(n.model.x-a.model.x)/3,a.model.controlPointNextX=a.model.x+u,a.model.controlPointNextY=a.model.y+u*a.mK))},g.nextItem=function(t,e,i){return i?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},g.previousItem=function(t,e,i){return i?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},g.niceNum=function(t,e){var i=Math.floor(g.log10(t)),a=t/Math.pow(10,i);return(e?a<1.5?1:a<3?2:a<7?5:10:a<=1?1:a<=2?2:a<=5?5:10)*Math.pow(10,i)};var i=g.easingEffects={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-1*t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1*((t=t/1-1)*t*t+1)},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-1*((t=t/1-1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return 1*(t/=1)*t*t*t*t},easeOutQuint:function(t){return 1*((t=t/1-1)*t*t*t*t+1)},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return-1*Math.cos(t/1*(Math.PI/2))+1},easeOutSine:function(t){return 1*Math.sin(t/1*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t/1)-1)},easeInExpo:function(t){return 0===t?1:1*Math.pow(2,10*(t/1-1))},easeOutExpo:function(t){return 1===t?1:1*(1-Math.pow(2,-10*t/1))},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return 1<=t?t:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return 1*Math.sqrt(1-(t=t/1-1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,i=0,a=1;return 0===t?0:1==(t/=1)?1:(i||(i=.3),a<Math.abs(1)?(a=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/a),-a*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i))},easeOutElastic:function(t){var e=1.70158,i=0,a=1;return 0===t?0:1==(t/=1)?1:(i||(i=.3),a<Math.abs(1)?(a=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/a),a*Math.pow(2,-10*t)*Math.sin((1*t-e)*(2*Math.PI)/i)+1)},easeInOutElastic:function(t){var e=1.70158,i=0,a=1;return 0===t?0:2==(t/=.5)?1:(i||(i=.3*1.5*1),a<Math.abs(1)?(a=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/a),t<1?a*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i)*-.5:a*Math.pow(2,-10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i)*.5+1)},easeInBack:function(t){return 1*(t/=1)*t*(2.70158*t-1.70158)},easeOutBack:function(t){return 1*((t=t/1-1)*t*(2.70158*t+1.70158)+1)},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-i.easeOutBounce(1-t)},easeOutBounce:function(t){return(t/=1)<1/2.75?7.5625*t*t*1:t<2/2.75?1*(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1*(7.5625*(t-=2.25/2.75)*t+.9375):1*(7.5625*(t-=2.625/2.75)*t+.984375)},easeInOutBounce:function(t){return t<.5?.5*i.easeInBounce(2*t):.5*i.easeOutBounce(2*t-1)+.5}};g.requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},g.getRelativePosition=function(t,e){var i,a,n=t.originalEvent||t,o=t.currentTarget||t.srcElement,r=o.getBoundingClientRect(),s=n.touches;s&&0<s.length?(i=s[0].clientX,a=s[0].clientY):(i=n.clientX,a=n.clientY);var l=parseFloat(g.getStyle(o,"padding-left")),u=parseFloat(g.getStyle(o,"padding-top")),d=parseFloat(g.getStyle(o,"padding-right")),c=parseFloat(g.getStyle(o,"padding-bottom")),h=r.right-r.left-l-d,f=r.bottom-r.top-u-c;return{x:i=Math.round((i-r.left-l)/h*o.width/e.currentDevicePixelRatio),y:a=Math.round((a-r.top-u)/f*o.height/e.currentDevicePixelRatio)}},g.addEvent=function(t,e,i){t.addEventListener?t.addEventListener(e,i):t.attachEvent?t.attachEvent("on"+e,i):t["on"+e]=i},g.removeEvent=function(t,e,i){t.removeEventListener?t.removeEventListener(e,i,!1):t.detachEvent?t.detachEvent("on"+e,i):t["on"+e]=g.noop},g.getConstraintWidth=function(t){return e(t,"max-width","clientWidth")},g.getConstraintHeight=function(t){return e(t,"max-height","clientHeight")},g.getMaximumWidth=function(t){var e=t.parentNode,i=parseInt(g.getStyle(e,"padding-left"),10),a=parseInt(g.getStyle(e,"padding-right"),10),n=e.clientWidth-i-a,o=g.getConstraintWidth(t);return isNaN(o)?n:Math.min(n,o)},g.getMaximumHeight=function(t){var e=t.parentNode,i=parseInt(g.getStyle(e,"padding-top"),10),a=parseInt(g.getStyle(e,"padding-bottom"),10),n=e.clientHeight-i-a,o=g.getConstraintHeight(t);return isNaN(o)?n:Math.min(n,o)},g.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},g.retinaScale=function(t){var e=t.currentDevicePixelRatio=window.devicePixelRatio||1;if(1!==e){var i=t.canvas,a=t.height,n=t.width;i.height=a*e,i.width=n*e,t.ctx.scale(e,e),i.style.height=a+"px",i.style.width=n+"px"}},g.clear=function(t){t.ctx.clearRect(0,0,t.width,t.height)},g.fontString=function(t,e,i){return e+" "+t+"px "+i},g.longestText=function(e,t,i,a){var n=(a=a||{}).data=a.data||{},o=a.garbageCollect=a.garbageCollect||[];a.font!==t&&(n=a.data={},o=a.garbageCollect=[],a.font=t),e.font=t;var r=0;g.each(i,function(t){null!=t&&!0!==g.isArray(t)?r=g.measureText(e,n,o,r,t):g.isArray(t)&&g.each(t,function(t){null==t||g.isArray(t)||(r=g.measureText(e,n,o,r,t))})});var s=o.length/2;if(s>i.length){for(var l=0;l<s;l++)delete n[o[l]];o.splice(0,s)}return r},g.measureText=function(t,e,i,a,n){var o=e[n];return o||(o=e[n]=t.measureText(n).width,i.push(n)),a<o&&(a=o),a},g.numberOfLabelLines=function(t){var e=1;return g.each(t,function(t){g.isArray(t)&&t.length>e&&(e=t.length)}),e},g.drawRoundedRectangle=function(t,e,i,a,n,o){t.beginPath(),t.moveTo(e+o,i),t.lineTo(e+a-o,i),t.quadraticCurveTo(e+a,i,e+a,i+o),t.lineTo(e+a,i+n-o),t.quadraticCurveTo(e+a,i+n,e+a-o,i+n),t.lineTo(e+o,i+n),t.quadraticCurveTo(e,i+n,e,i+n-o),t.lineTo(e,i+o),t.quadraticCurveTo(e,i,e+o,i),t.closePath()},g.color=function(t){return a?a(t instanceof CanvasGradient?r.defaults.global.defaultColor:t):(console.error("Color.js not found!"),t)},g.isArray=Array.isArray?function(t){return Array.isArray(t)}:function(t){return"[object Array]"===Object.prototype.toString.call(t)},g.arrayEquals=function(t,e){var i,a,n,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,a=t.length;i<a;++i)if(n=t[i],o=e[i],n instanceof Array&&o instanceof Array){if(!g.arrayEquals(n,o))return!1}else if(n!==o)return!1;return!0},g.callCallback=function(t,e,i){t&&"function"==typeof t.call&&t.apply(i,e)},g.getHoverColor=function(t){return t instanceof CanvasPattern?t:g.color(t).saturate(.5).darken(.1).rgbString()}}},{3:3}],27:[function(t,e,i){"use strict";e.exports=function(t){function r(t,e){return t.native?{x:t.x,y:t.y}:d.getRelativePosition(t,e)}function l(t,e){var i,a,n,o,r;for(a=0,o=t.data.datasets.length;a<o;++a)if(t.isDatasetVisible(a))for(n=0,r=(i=t.getDatasetMeta(a)).data.length;n<r;++n){var s=i.data[n];s._view.skip||e(s)}}function s(t,e){var i=[];return l(t,function(t){t.inRange(e.x,e.y)&&i.push(t)}),i}function u(t,a,n,o){var r=Number.POSITIVE_INFINITY,s=[];return o||(o=d.distanceBetweenPoints),l(t,function(t){if(!n||t.inRange(a.x,a.y)){var e=t.getCenterPoint(),i=o(a,e);i<r?(s=[t],r=i):i===r&&s.push(t)}}),s}function i(a,t,e){var i=r(t,a.chart),n=e.intersect?s(a,i):u(a,i,!1,function(t,e){return Math.abs(t.x-e.x)}),o=[];return n.length?(a.data.datasets.forEach(function(t,e){if(a.isDatasetVisible(e)){var i=a.getDatasetMeta(e).data[n[0]._index];i&&!i._view.skip&&o.push(i)}}),o):[]}var d=t.helpers;t.Interaction={modes:{single:function(t,e){var i=r(e,t.chart),a=[];return l(t,function(t){if(t.inRange(i.x,i.y))return a.push(t),a}),a.slice(0,1)},label:i,index:i,dataset:function(t,e,i){var a=r(e,t.chart),n=i.intersect?s(t,a):u(t,a,!1);return 0<n.length&&(n=t.getDatasetMeta(n[0]._datasetIndex).data),n},"x-axis":function(t,e){return i(t,e,!0)},point:function(t,e){return s(t,r(e,t.chart))},nearest:function(t,e,i){var a=u(t,r(e,t.chart),i.intersect);return 1<a.length&&a.sort(function(t,e){var i=t.getArea()-e.getArea();return 0===i&&(i=t._datasetIndex-e._datasetIndex),i}),a.slice(0,1)},x:function(t,e,i){var a=r(e,t.chart),n=[],o=!1;return l(t,function(t){t.inXRange(a.x)&&n.push(t),t.inRange(a.x,a.y)&&(o=!0)}),i.intersect&&!o&&(n=[]),n},y:function(t,e,i){var a=r(e,t.chart),n=[],o=!1;return l(t,function(t){t.inYRange(a.y)&&n.push(t),t.inRange(a.x,a.y)&&(o=!0)}),i.intersect&&!o&&(n=[]),n}}}}},{}],28:[function(t,e,i){"use strict";e.exports=function(){var i=function(t,e){return this.controller=new i.Controller(t,e,this),this.controller};return i.defaults={global:{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var i=0;i<t.data.datasets.length;i++)e.push('<li><span style="background-color:'+t.data.datasets[i].backgroundColor+'"></span>'),t.data.datasets[i].label&&e.push(t.data.datasets[i].label),e.push("</li>");return e.push("</ul>"),e.join("")}}},i.Chart=i}},{}],29:[function(t,e,i){"use strict";e.exports=function(t){var z=t.helpers;t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),t.boxes.push(e)},removeBox:function(t,e){t.boxes&&t.boxes.splice(t.boxes.indexOf(e),1)},update:function(e,i,t){function a(e){var t=z.findNextWhere(M,function(t){return t.box===e});if(t)if(e.isHorizontal()){var i={left:Math.max(A,w),right:Math.max(P,C),top:0,bottom:0};e.update(e.options.fullWidth?m:k,b/2,i)}else e.update(t.minSize.width,S)}function n(t){t.isHorizontal()?(t.left=t.options.fullWidth?s:A,t.right=t.options.fullWidth?i-l:A+k,t.top=B,t.bottom=B+t.height,B=t.bottom):(t.left=L,t.right=L+t.width,t.top=T,t.bottom=T+S,L=t.right)}if(e){var o=e.options.layout,r=o?o.padding:null,s=0,l=0,u=0,d=0;isNaN(r)?(s=r.left||0,l=r.right||0,u=r.top||0,d=r.bottom||0):d=u=l=s=r;var c=z.where(e.boxes,function(t){return"left"===t.options.position}),h=z.where(e.boxes,function(t){return"right"===t.options.position}),f=z.where(e.boxes,function(t){return"top"===t.options.position}),g=z.where(e.boxes,function(t){return"bottom"===t.options.position}),p=z.where(e.boxes,function(t){return"chartArea"===t.options.position});f.sort(function(t,e){return(e.options.fullWidth?1:0)-(t.options.fullWidth?1:0)}),g.sort(function(t,e){return(t.options.fullWidth?1:0)-(e.options.fullWidth?1:0)});var m=i-s-l,b=t-u-d,v=b/2,x=(i-m/2)/(c.length+h.length),y=(t-v)/(f.length+g.length),k=m,S=b,M=[];z.each(c.concat(h,f,g),function(t){var e,i=t.isHorizontal();i?(e=t.update(t.options.fullWidth?m:k,y),S-=e.height):(e=t.update(x,v),k-=e.width),M.push({horizontal:i,minSize:e,box:t})});var w=0,C=0,I=0,D=0;z.each(f.concat(g),function(t){if(t.getPadding){var e=t.getPadding();w=Math.max(w,e.left),C=Math.max(C,e.right)}}),z.each(c.concat(h),function(t){if(t.getPadding){var e=t.getPadding();I=Math.max(I,e.top),D=Math.max(D,e.bottom)}});var A=s,P=l,T=u,_=d;z.each(c.concat(h),a),z.each(c,function(t){A+=t.width}),z.each(h,function(t){P+=t.width}),z.each(f.concat(g),a),z.each(f,function(t){T+=t.height}),z.each(g,function(t){_+=t.height}),z.each(c.concat(h),function(e){var t=z.findNextWhere(M,function(t){return t.box===e}),i={left:0,right:0,top:T,bottom:_};t&&e.update(t.minSize.width,S,i)}),A=s,P=l,T=u,_=d,z.each(c,function(t){A+=t.width}),z.each(h,function(t){P+=t.width}),z.each(f,function(t){T+=t.height}),z.each(g,function(t){_+=t.height});var F=Math.max(w-A,0);A+=F,P+=Math.max(C-P,0);var V=Math.max(I-T,0);T+=V,_+=Math.max(D-_,0);var R=t-T-_,O=i-A-P;O===k&&R===S||(z.each(c,function(t){t.height=R}),z.each(h,function(t){t.height=R}),z.each(f,function(t){t.options.fullWidth||(t.width=O)}),z.each(g,function(t){t.options.fullWidth||(t.width=O)}),S=R,k=O);var L=s+F,B=u+V;z.each(c.concat(f),n),L+=k,B+=S,z.each(h,n),z.each(g,n),e.chartArea={left:A,top:T,right:A+k,bottom:T+S},z.each(p,function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(k,S)})}}}}},{}],30:[function(t,e,i){"use strict";e.exports=function(C){function I(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function i(t,e){var i=new C.Legend({ctx:t.chart.ctx,options:e,chart:t});t.legend=i,C.layoutService.addBox(t,i)}var D=C.helpers,t=D.noop;C.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,onClick:function(t,e){var i=e.datasetIndex,a=this.chart,n=a.getDatasetMeta(i);n.hidden=null===n.hidden?!a.data.datasets[i].hidden:null,a.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(i){var t=i.data;return D.isArray(t.datasets)?t.datasets.map(function(t,e){return{text:t.label,fillStyle:D.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!i.isDatasetVisible(e),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:e}},this):[]}}},C.Legend=C.Element.extend({initialize:function(t){D.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:t,update:function(t,e,i){var a=this;return a.beforeUpdate(),a.maxWidth=t,a.maxHeight=e,a.margins=i,a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeBuildLabels(),a.buildLabels(),a.afterBuildLabels(),a.beforeFit(),a.fit(),a.afterFit(),a.afterUpdate(),a.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:function(){var e=this,i=e.options.labels,t=i.generateLabels.call(e,e.chart);i.filter&&(t=t.filter(function(t){return i.filter(t,e.chart.data)})),e.options.reverse&&t.reverse(),e.legendItems=t},afterBuildLabels:t,beforeFit:t,fit:function(){var a=this,t=a.options,n=t.labels,e=t.display,o=a.ctx,i=C.defaults.global,r=D.getValueOrDefault,s=r(n.fontSize,i.defaultFontSize),l=r(n.fontStyle,i.defaultFontStyle),u=r(n.fontFamily,i.defaultFontFamily),d=D.fontString(s,l,u),c=a.legendHitBoxes=[],h=a.minSize,f=a.isHorizontal();if(f?(h.width=a.maxWidth,h.height=e?10:0):(h.width=e?10:0,h.height=a.maxHeight),e)if(o.font=d,f){var g=a.lineWidths=[0],p=a.legendItems.length?s+n.padding:0;o.textAlign="left",o.textBaseline="top",D.each(a.legendItems,function(t,e){var i=I(n,s)+s/2+o.measureText(t.text).width;g[g.length-1]+i+n.padding>=a.width&&(p+=s+n.padding,g[g.length]=a.left),c[e]={left:0,top:0,width:i,height:s},g[g.length-1]+=i+n.padding}),h.height+=p}else{var m=n.padding,b=a.columnWidths=[],v=n.padding,x=0,y=0,k=s+m;D.each(a.legendItems,function(t,e){var i=I(n,s)+s/2+o.measureText(t.text).width;y+k>h.height&&(v+=x+n.padding,b.push(x),y=x=0),x=Math.max(x,i),y+=k,c[e]={left:0,top:0,width:i,height:s}}),v+=x,b.push(x),h.width+=v}a.width=h.width,a.height=h.height},afterFit:t,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var d=this,c=d.options,h=c.labels,f=C.defaults.global,g=f.elements.line,p=d.width,m=d.lineWidths;if(c.display){var b,v=d.ctx,x=D.getValueOrDefault,t=x(h.fontColor,f.defaultFontColor),y=x(h.fontSize,f.defaultFontSize),e=x(h.fontStyle,f.defaultFontStyle),i=x(h.fontFamily,f.defaultFontFamily),a=D.fontString(y,e,i);v.textAlign="left",v.textBaseline="top",v.lineWidth=.5,v.strokeStyle=t,v.fillStyle=t,v.font=a;var k=I(h,y),S=d.legendHitBoxes,M=d.isHorizontal();b=M?{x:d.left+(p-m[0])/2,y:d.top+h.padding,line:0}:{x:d.left+h.padding,y:d.top+h.padding,line:0};var w=y+h.padding;D.each(d.legendItems,function(t,e){var i,a,n,o,r=v.measureText(t.text).width,s=k+y/2+r,l=b.x,u=b.y;M?p<=l+s&&(u=b.y+=w,b.line++,l=b.x=d.left+(p-m[b.line])/2):u+w>d.bottom&&(l=b.x=l+d.columnWidths[b.line]+h.padding,u=b.y=d.top+h.padding,b.line++),function(t,e,i){if(!(isNaN(k)||k<=0)){v.save(),v.fillStyle=x(i.fillStyle,f.defaultColor),v.lineCap=x(i.lineCap,g.borderCapStyle),v.lineDashOffset=x(i.lineDashOffset,g.borderDashOffset),v.lineJoin=x(i.lineJoin,g.borderJoinStyle),v.lineWidth=x(i.lineWidth,g.borderWidth),v.strokeStyle=x(i.strokeStyle,f.defaultColor);var a=0===x(i.lineWidth,g.borderWidth);if(v.setLineDash&&v.setLineDash(x(i.lineDash,g.borderDash)),c.labels&&c.labels.usePointStyle){var n=y*Math.SQRT2/2,o=n/Math.SQRT2,r=t+o,s=e+o;C.canvasHelpers.drawPoint(v,i.pointStyle,n,r,s)}else a||v.strokeRect(t,e,k,y),v.fillRect(t,e,k,y);v.restore()}}(l,u,t),S[e].left=l,S[e].top=u,i=l,a=u,n=t,o=r,v.fillText(n.text,k+y/2+i,a),n.hidden&&(v.beginPath(),v.lineWidth=2,v.moveTo(k+y/2+i,a+y/2),v.lineTo(k+y/2+i+o,a+y/2),v.stroke()),M?b.x+=s+h.padding:b.y+=w})}},handleEvent:function(t){var e=this,i=e.options,a="mouseup"===t.type?"click":t.type,n=!1;if("mousemove"===a){if(!i.onHover)return}else{if("click"!==a)return;if(!i.onClick)return}var o=t.x,r=t.y;if(o>=e.left&&o<=e.right&&r>=e.top&&r<=e.bottom)for(var s=e.legendHitBoxes,l=0;l<s.length;++l){var u=s[l];if(o>=u.left&&o<=u.left+u.width&&r>=u.top&&r<=u.top+u.height){if("click"===a){i.onClick.call(e,t.native,e.legendItems[l]),n=!0;break}if("mousemove"===a){i.onHover.call(e,t.native,e.legendItems[l]),n=!0;break}}}return n}}),C.plugins.register({beforeInit:function(t){var e=t.options.legend;e&&i(t,e)},beforeUpdate:function(t){var e=t.options.legend;e?(e=D.configMerge(C.defaults.global.legend,e),t.legend?t.legend.options=e:i(t,e)):(C.layoutService.removeBox(t,t.legend),delete t.legend)},afterEvent:function(t,e){var i=t.legend;i&&i.handleEvent(e)}})}},{}],31:[function(t,e,i){"use strict";e.exports=function(s){var l=s.helpers;s.defaults.global.plugins={},s.plugins={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),this._cacheId++},unregister:function(t){var i=this._plugins;[].concat(t).forEach(function(t){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,i){var a,n,o,r,s,l=this.descriptors(t),u=l.length;for(a=0;a<u;++a)if("function"==typeof(s=(o=(n=l[a]).plugin)[e])&&((r=[t].concat(i||[])).push(n.options),!1===s.apply(o,r)))return!1;return!0},descriptors:function(t){var e=t._plugins||(t._plugins={});if(e.id===this._cacheId)return e.descriptors;var a=[],n=[],i=t&&t.config||{},o=s.defaults.global.plugins,r=i.options&&i.options.plugins||{};return this._plugins.concat(i.plugins||[]).forEach(function(t){if(-1===a.indexOf(t)){var e=t.id,i=r[e];!1!==i&&(!0===i&&(i=l.clone(o[e])),a.push(t),n.push({plugin:t,options:i||{}}))}}),e.descriptors=n,e.id=this._cacheId,n}},s.pluginService=s.plugins,s.PluginBase=l.inherits({})}},{}],32:[function(t,e,i){"use strict";e.exports=function(y){function k(t,e,i){return N.isArray(e)?N.longestText(t,i,e):t.measureText(e).width}function W(t){var e=N.getValueOrDefault,i=y.defaults.global,a=e(t.fontSize,i.defaultFontSize),n=e(t.fontStyle,i.defaultFontStyle),o=e(t.fontFamily,i.defaultFontFamily);return{size:a,style:n,family:o,font:N.fontString(a,n,o)}}var N=y.helpers;y.defaults.scale={display:!0,position:"left",gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{labelString:"",display:!1},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:y.Ticks.formatters.values}},y.Scale=y.Element.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},beforeUpdate:function(){N.callCallback(this.options.beforeUpdate,[this])},update:function(t,e,i){var a=this;return a.beforeUpdate(),a.maxWidth=t,a.maxHeight=e,a.margins=N.extend({left:0,right:0,top:0,bottom:0},i),a.longestTextCache=a.longestTextCache||{},a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeDataLimits(),a.determineDataLimits(),a.afterDataLimits(),a.beforeBuildTicks(),a.buildTicks(),a.afterBuildTicks(),a.beforeTickToLabelConversion(),a.convertTicksToLabels(),a.afterTickToLabelConversion(),a.beforeCalculateTickRotation(),a.calculateTickRotation(),a.afterCalculateTickRotation(),a.beforeFit(),a.fit(),a.afterFit(),a.afterUpdate(),a.minSize},afterUpdate:function(){N.callCallback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){N.callCallback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){N.callCallback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){N.callCallback(this.options.beforeDataLimits,[this])},determineDataLimits:N.noop,afterDataLimits:function(){N.callCallback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){N.callCallback(this.options.beforeBuildTicks,[this])},buildTicks:N.noop,afterBuildTicks:function(){N.callCallback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){N.callCallback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this.options.ticks;this.ticks=this.ticks.map(t.userCallback||t.callback)},afterTickToLabelConversion:function(){N.callCallback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){N.callCallback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t=this,e=t.ctx,i=t.options.ticks,a=W(i);e.font=a.font;var n=i.minRotation||0;if(t.options.display&&t.isHorizontal())for(var o,r=N.longestText(e,a.font,t.ticks,t.longestTextCache),s=r,l=t.getPixelForTick(1)-t.getPixelForTick(0)-6;l<s&&n<i.maxRotation;){var u=N.toRadians(n);if(o=Math.cos(u),Math.sin(u)*r>t.maxHeight){n--;break}n++,s=o*r}t.labelRotation=n},afterCalculateTickRotation:function(){N.callCallback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){N.callCallback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},i=t.options,a=i.ticks,n=i.scaleLabel,o=i.gridLines,r=i.display,s=t.isHorizontal(),l=W(a),u=1.5*W(n).size,d=i.gridLines.tickMarkLength;if(e.width=s?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:r&&o.drawTicks?d:0,e.height=s?r&&o.drawTicks?d:0:t.maxHeight,n.display&&r&&(s?e.height+=u:e.width+=u),a.display&&r){var c=N.longestText(t.ctx,l.font,t.ticks,t.longestTextCache),h=N.numberOfLabelLines(t.ticks),f=.5*l.size;if(s){t.longestLabelWidth=c;var g=N.toRadians(t.labelRotation),p=Math.cos(g),m=Math.sin(g)*c+l.size*h+f*h;e.height=Math.min(t.maxHeight,e.height+m),t.ctx.font=l.font;var b=t.ticks[0],v=k(t.ctx,b,l.font),x=t.ticks[t.ticks.length-1],y=k(t.ctx,x,l.font);0!==t.labelRotation?(t.paddingLeft="bottom"===i.position?p*v+3:p*f+3,t.paddingRight="bottom"===i.position?p*f+3:p*y+3):(t.paddingLeft=v/2+3,t.paddingRight=y/2+3)}else a.mirror?c=0:c+=t.options.ticks.padding,e.width+=c,t.paddingTop=l.size/2,t.paddingBottom=l.size/2}t.handleMargins(),t.width=e.width,t.height=e.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){N.callCallback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){return null==t?NaN:"number"!=typeof t||isFinite(t)?"object"==typeof t?t instanceof Date||t.isValid?t:this.getRightValue(this.isHorizontal()?t.x:t.y):t:NaN},getLabelForIndex:N.noop,getPixelForValue:N.noop,getValueForPixel:N.noop,getPixelForTick:function(t,e){var i=this;if(i.isHorizontal()){var a=(i.width-(i.paddingLeft+i.paddingRight))/Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),n=a*t+i.paddingLeft;return e&&(n+=a/2),i.left+Math.round(n)+(i.isFullWidth()?i.margins.left:0)}var o=i.height-(i.paddingTop+i.paddingBottom);return i.top+t*(o/(i.ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var i=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft;return e.left+Math.round(i)+(e.isFullWidth()?e.margins.left:0)}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:0<t&&0<e?t:0},draw:function(S){var M=this,w=M.options;if(w.display){var C,t,n=M.ctx,e=y.defaults.global,I=w.ticks,D=w.gridLines,i=w.scaleLabel,A=0!==M.labelRotation,a=I.autoSkip,P=M.isHorizontal();I.maxTicksLimit&&(t=I.maxTicksLimit);var o=N.getValueOrDefault(I.fontColor,e.defaultFontColor),r=W(I),T=D.drawTicks?D.tickMarkLength:0,_=N.getValueOrDefault(D.borderDash,e.borderDash),F=N.getValueOrDefault(D.borderDashOffset,e.borderDashOffset),s=N.getValueOrDefault(i.fontColor,e.defaultFontColor),l=W(i),V=N.toRadians(M.labelRotation),u=Math.cos(V),d=M.longestLabelWidth*u;n.fillStyle=o;var R=[];if(P){if(C=!1,A&&(d/=2),(d+I.autoSkipPadding)*M.ticks.length>M.width-(M.paddingLeft+M.paddingRight)&&(C=1+Math.floor((d+I.autoSkipPadding)*M.ticks.length/(M.width-(M.paddingLeft+M.paddingRight)))),t&&M.ticks.length>t)for(;!C||M.ticks.length/(C||1)>t;)C||(C=1),C+=1;a||(C=!1)}var O="right"===w.position?M.left:M.right-T,L="right"===w.position?M.left+T:M.right,B="bottom"===w.position?M.top:M.bottom-T,z="bottom"===w.position?M.top+T:M.bottom;if(N.each(M.ticks,function(t,e){if(null!=t){var i=M.ticks.length===e+1;if((!(1<C&&0<e%C||e%C==0&&e+C>=M.ticks.length)||i)&&null!=t){var a,n;e===(void 0!==M.zeroLineIndex?M.zeroLineIndex:0)?(a=D.zeroLineWidth,n=D.zeroLineColor):(a=N.getValueAtIndexOrDefault(D.lineWidth,e),n=N.getValueAtIndexOrDefault(D.color,e));var o,r,s,l,u,d,c,h,f,g,p="middle",m="middle";if(P){"bottom"===w.position?(m=A?"middle":"top",p=A?"right":"center",g=M.top+T):(m=A?"middle":"bottom",p=A?"left":"center",g=M.bottom-T);var b=M.getPixelForTick(e)+N.aliasPixel(a);f=M.getPixelForTick(e,D.offsetGridLines)+I.labelOffset,o=s=u=c=b,r=B,l=z,d=S.top,h=S.bottom}else{var v,x="left"===w.position,y=I.padding;I.mirror?(p=x?"left":"right",v=y):(p=x?"right":"left",v=T+y),f=x?M.right-v:M.left+v;var k=M.getPixelForTick(e);k+=N.aliasPixel(a),g=M.getPixelForTick(e,D.offsetGridLines),o=O,s=L,u=S.left,c=S.right,r=l=d=h=k}R.push({tx1:o,ty1:r,tx2:s,ty2:l,x1:u,y1:d,x2:c,y2:h,labelX:f,labelY:g,glWidth:a,glColor:n,glBorderDash:_,glBorderDashOffset:F,rotation:-1*V,label:t,textBaseline:m,textAlign:p})}}}),N.each(R,function(t){if(D.display&&(n.save(),n.lineWidth=t.glWidth,n.strokeStyle=t.glColor,n.setLineDash&&(n.setLineDash(t.glBorderDash),n.lineDashOffset=t.glBorderDashOffset),n.beginPath(),D.drawTicks&&(n.moveTo(t.tx1,t.ty1),n.lineTo(t.tx2,t.ty2)),D.drawOnChartArea&&(n.moveTo(t.x1,t.y1),n.lineTo(t.x2,t.y2)),n.stroke(),n.restore()),I.display){n.save(),n.translate(t.labelX,t.labelY),n.rotate(t.rotation),n.font=r.font,n.textBaseline=t.textBaseline,n.textAlign=t.textAlign;var e=t.label;if(N.isArray(e))for(var i=0,a=0;i<e.length;++i)n.fillText(""+e[i],0,a),a+=1.5*r.size;else n.fillText(e,0,0);n.restore()}}),i.display){var c,h,f=0;if(P)c=M.left+(M.right-M.left)/2,h="bottom"===w.position?M.bottom-l.size/2:M.top+l.size/2;else{var g="left"===w.position;c=g?M.left+l.size/2:M.right-l.size/2,h=M.top+(M.bottom-M.top)/2,f=g?-.5*Math.PI:.5*Math.PI}n.save(),n.translate(c,h),n.rotate(f),n.textAlign="center",n.textBaseline="middle",n.fillStyle=s,n.font=l.font,n.fillText(i.labelString,0,0),n.restore()}if(D.drawBorder){n.lineWidth=N.getValueAtIndexOrDefault(D.lineWidth,0),n.strokeStyle=N.getValueAtIndexOrDefault(D.color,0);var p=M.left,m=M.right,b=M.top,v=M.bottom,x=N.aliasPixel(n.lineWidth);P?(b=v="top"===w.position?M.bottom:M.top,b+=x,v+=x):(p=m="left"===w.position?M.right:M.left,p+=x,m+=x),n.beginPath(),n.moveTo(p,b),n.lineTo(m,v),n.stroke()}}}})}},{}],33:[function(t,e,i){"use strict";e.exports=function(i){var a=i.helpers;i.scaleService={constructors:{},defaults:{},registerScaleType:function(t,e,i){this.constructors[t]=e,this.defaults[t]=a.clone(i)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?a.scaleMerge(i.defaults.scale,this.defaults[t]):{}},updateScaleDefaults:function(t,e){var i=this.defaults;i.hasOwnProperty(t)&&(i[t]=a.extend(i[t],e))},addScalesToLayout:function(e){a.each(e.scales,function(t){i.layoutService.addBox(e,t)})}}}},{}],34:[function(t,e,i){"use strict";e.exports=function(t){var d=t.helpers;t.Ticks={generators:{linear:function(t,e){var i,a=[];if(t.stepSize&&0<t.stepSize)i=t.stepSize;else{var n=d.niceNum(e.max-e.min,!1);i=d.niceNum(n/(t.maxTicks-1),!0)}var o=Math.floor(e.min/i)*i,r=Math.ceil(e.max/i)*i;t.min&&t.max&&t.stepSize&&d.almostWhole((t.max-t.min)/t.stepSize,i/1e3)&&(o=t.min,r=t.max);var s=(r-o)/i;s=d.almostEquals(s,Math.round(s),i/1e3)?Math.round(s):Math.ceil(s),a.push(void 0!==t.min?t.min:o);for(var l=1;l<s;++l)a.push(o+l*i);return a.push(void 0!==t.max?t.max:r),a},logarithmic:function(t,e){var i,a,n=[],o=d.getValueOrDefault,r=o(t.min,Math.pow(10,Math.floor(d.log10(e.min)))),s=Math.floor(d.log10(e.max)),l=Math.ceil(e.max/Math.pow(10,s));for(0===r?(i=Math.floor(d.log10(e.minNotZero)),a=Math.floor(e.minNotZero/Math.pow(10,i)),n.push(r),r=a*Math.pow(10,i)):(i=Math.floor(d.log10(r)),a=Math.floor(r/Math.pow(10,i)));n.push(r),10===++a&&(a=1,++i),r=a*Math.pow(10,i),i<s||i===s&&a<l;);var u=o(t.max,r);return n.push(u),n}},formatters:{values:function(t){return d.isArray(t)?t:""+t},linear:function(t,e,i){var a=3<i.length?i[2]-i[1]:i[1]-i[0];1<Math.abs(a)&&t!==Math.floor(t)&&(a=t-Math.floor(t));var n=d.log10(Math.abs(a)),o="";if(0!==t){var r=-1*Math.floor(n);r=Math.max(Math.min(r,20),0),o=t.toFixed(r)}else o="0";return o},logarithmic:function(t,e,i){var a=t/Math.pow(10,Math.floor(d.log10(t)));return 0===t?"0":1===a||2===a||5===a||0===e||e===i.length-1?t.toExponential():""}}}}},{}],35:[function(t,e,i){"use strict";e.exports=function(b){function i(t,e){var i=new b.Title({ctx:t.chart.ctx,options:e,chart:t});t.titleBlock=i,b.layoutService.addBox(t,i)}var v=b.helpers;b.defaults.global.title={display:!1,position:"top",fullWidth:!0,fontStyle:"bold",padding:10,text:""};var t=v.noop;b.Title=b.Element.extend({initialize:function(t){v.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:t,update:function(t,e,i){var a=this;return a.beforeUpdate(),a.maxWidth=t,a.maxHeight=e,a.margins=i,a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeBuildLabels(),a.buildLabels(),a.afterBuildLabels(),a.beforeFit(),a.fit(),a.afterFit(),a.afterUpdate(),a.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:t,afterBuildLabels:t,beforeFit:t,fit:function(){var t=this,e=v.getValueOrDefault,i=t.options,a=b.defaults.global,n=i.display,o=e(i.fontSize,a.defaultFontSize),r=t.minSize;t.isHorizontal()?(r.width=t.maxWidth,r.height=n?o+2*i.padding:0):(r.width=n?o+2*i.padding:0,r.height=t.maxHeight),t.width=r.width,t.height=r.height},afterFit:t,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,i=v.getValueOrDefault,a=t.options,n=b.defaults.global;if(a.display){var o,r,s,l=i(a.fontSize,n.defaultFontSize),u=i(a.fontStyle,n.defaultFontStyle),d=i(a.fontFamily,n.defaultFontFamily),c=v.fontString(l,u,d),h=0,f=t.top,g=t.left,p=t.bottom,m=t.right;e.fillStyle=i(a.fontColor,n.defaultFontColor),e.font=c,t.isHorizontal()?(o=g+(m-g)/2,r=f+(p-f)/2,s=m-g):(o="left"===a.position?g+l/2:m-l/2,r=f+(p-f)/2,s=p-f,h=Math.PI*("left"===a.position?-.5:.5)),e.save(),e.translate(o,r),e.rotate(h),e.textAlign="center",e.textBaseline="middle",e.fillText(a.text,0,0,s),e.restore()}}}),b.plugins.register({beforeInit:function(t){var e=t.options.title;e&&i(t,e)},beforeUpdate:function(t){var e=t.options.title;e?(e=v.configMerge(b.defaults.global.title,e),t.titleBlock?t.titleBlock.options=e:i(t,e)):(b.layoutService.removeBox(t,t.titleBlock),delete t.titleBlock)}})}},{}],36:[function(t,e,i){"use strict";e.exports=function(V){function x(t,e){var i=O.color(t);return i.alpha(e*i.alpha()).rgbaString()}function r(t,e){return e&&(O.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function R(t){var e=V.defaults.global,i=O.getValueOrDefault;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,bodyFontColor:t.bodyFontColor,_bodyFontFamily:i(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:i(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:i(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:i(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:i(t.titleFontStyle,e.defaultFontStyle),titleFontSize:i(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:i(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:i(t.footerFontStyle,e.defaultFontStyle),footerFontSize:i(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors}}var O=V.helpers;V.defaults.global.tooltips={enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,callbacks:{beforeTitle:O.noop,title:function(t,e){var i="",a=e.labels,n=a?a.length:0;if(0<t.length){var o=t[0];o.xLabel?i=o.xLabel:0<n&&o.index<n&&(i=a[o.index])}return i},afterTitle:O.noop,beforeBody:O.noop,beforeLabel:O.noop,label:function(t,e){return(e.datasets[t.datasetIndex].label||"")+": "+t.yLabel},labelColor:function(t,e){var i=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:i.borderColor,backgroundColor:i.backgroundColor}},afterLabel:O.noop,afterBody:O.noop,beforeFooter:O.noop,footer:O.noop,afterFooter:O.noop}},V.Tooltip=V.Element.extend({initialize:function(){this._model=R(this._options)},getTitle:function(){var t=this._options.callbacks,e=t.beforeTitle.apply(this,arguments),i=t.title.apply(this,arguments),a=t.afterTitle.apply(this,arguments),n=[];return r(n=r(n=r(n,e),i),a)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return O.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,i){var a=this,n=a._options.callbacks,o=[];return O.each(t,function(t){var e={before:[],lines:[],after:[]};r(e.before,n.beforeLabel.call(a,t,i)),r(e.lines,n.label.call(a,t,i)),r(e.after,n.afterLabel.call(a,t,i)),o.push(e)}),o},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return O.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this._options.callbacks,e=t.beforeFooter.apply(this,arguments),i=t.footer.apply(this,arguments),a=t.afterFooter.apply(this,arguments),n=[];return r(n=r(n=r(n,e),i),a)},update:function(t){var e,i,a,n,o,r,s,l,u,d,c,h,f,g,p,m,b,v,x,y=this,k=y._options,S=y._model,M=y._model=R(k),w=y._active,C=y._data,I=y._chartInstance,D={xAlign:S.xAlign,yAlign:S.yAlign},A={x:S.x,y:S.y},P={width:S.width,height:S.height},T={x:S.caretX,y:S.caretY};if(w.length){M.opacity=1;var _=[];T=V.Tooltip.positioners[k.position](w,y._eventPosition);var F=[];for(e=0,i=w.length;e<i;++e)F.push((p=w[e],b=m=void 0,m=p._xScale,b=p._yScale||p._scale,v=p._index,x=p._datasetIndex,{xLabel:m?m.getLabelForIndex(v,x):"",yLabel:b?b.getLabelForIndex(v,x):"",index:v,datasetIndex:x,x:p._model.x,y:p._model.y}));k.filter&&(F=F.filter(function(t){return k.filter(t,C)})),k.itemSort&&(F=F.sort(function(t,e){return k.itemSort(t,e,C)})),O.each(F,function(t){_.push(k.callbacks.labelColor.call(y,t,I))}),M.title=y.getTitle(F,C),M.beforeBody=y.getBeforeBody(F,C),M.body=y.getBody(F,C),M.afterBody=y.getAfterBody(F,C),M.footer=y.getFooter(F,C),M.x=Math.round(T.x),M.y=Math.round(T.y),M.caretPadding=O.getValueOrDefault(T.padding,2),M.labelColors=_,M.dataPoints=F,D=function(t,e){var i=t._model,a=t._chart,n=t._chartInstance.chartArea,o="center",r="center";i.y<e.height?r="top":i.y>a.height-e.height&&(r="bottom");var s,l,u,d,c,h=(n.left+n.right)/2,f=(n.top+n.bottom)/2;"center"===r?(s=function(t){return t<=h},l=function(t){return h<t}):(s=function(t){return t<=e.width/2},l=function(t){return t>=a.width-e.width/2}),u=function(t){return t+e.width>a.width},d=function(t){return t-e.width<0},c=function(t){return t<=f?"top":"bottom"},s(i.x)?(o="left",u(i.x)&&(o="center",r=c(i.y))):l(i.x)&&(o="right",d(i.x)&&(o="center",r=c(i.y)));var g=t._options;return{xAlign:g.xAlign?g.xAlign:o,yAlign:g.yAlign?g.yAlign:r}}(this,P=function(t,e){var i=t._chart.ctx,a=2*e.yPadding,n=0,o=e.body,r=o.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);r+=e.beforeBody.length+e.afterBody.length;var s=e.title.length,l=e.footer.length,u=e.titleFontSize,d=e.bodyFontSize,c=e.footerFontSize;a+=s*u,a+=s?(s-1)*e.titleSpacing:0,a+=s?e.titleMarginBottom:0,a+=r*d,a+=r?(r-1)*e.bodySpacing:0,a+=l?e.footerMarginTop:0,a+=l*c,a+=l?(l-1)*e.footerSpacing:0;var h=0,f=function(t){n=Math.max(n,i.measureText(t).width+h)};return i.font=O.fontString(u,e._titleFontStyle,e._titleFontFamily),O.each(e.title,f),i.font=O.fontString(d,e._bodyFontStyle,e._bodyFontFamily),O.each(e.beforeBody.concat(e.afterBody),f),h=e.displayColors?d+2:0,O.each(o,function(t){O.each(t.before,f),O.each(t.lines,f),O.each(t.after,f)}),h=0,i.font=O.fontString(c,e._footerFontStyle,e._footerFontFamily),O.each(e.footer,f),{width:n+=2*e.xPadding,height:a}}(this,M)),n=P,o=D,r=(a=M).x,s=a.y,l=a.caretSize,u=a.caretPadding,d=a.cornerRadius,c=o.xAlign,h=o.yAlign,f=l+u,g=d+u,"right"===c?r-=n.width:"center"===c&&(r-=n.width/2),"top"===h?s+=f:s-="bottom"===h?n.height+f:n.height/2,"center"===h?"left"===c?r+=f:"right"===c&&(r-=f):"left"===c?r-=g:"right"===c&&(r+=g),A={x:r,y:s}}else M.opacity=0;return M.xAlign=D.xAlign,M.yAlign=D.yAlign,M.x=A.x,M.y=A.y,M.width=P.width,M.height=P.height,M.caretX=T.x,M.caretY=T.y,y._model=M,t&&k.custom&&k.custom.call(y,M),y},drawCaret:function(t,e,i){var a,n,o,r,s,l,u=this._view,d=this._chart.ctx,c=u.caretSize,h=u.cornerRadius,f=u.xAlign,g=u.yAlign,p=t.x,m=t.y,b=e.width,v=e.height;"center"===g?("left"===f?n=(a=p)-c:n=(a=p+b)+c,o=a,r=(s=m+v/2)-c,l=s+c):("left"===f?o=(n=(a=p+h)+c)+c:"right"===f?o=(n=(a=p+b-h)-c)-c:(a=(n=p+b/2)-c,o=n+c),"top"===g?s=(r=m)-c:s=(r=m+v)+c,l=r),d.fillStyle=x(u.backgroundColor,i),d.beginPath(),d.moveTo(a,r),d.lineTo(n,s),d.lineTo(o,l),d.closePath(),d.fill()},drawTitle:function(t,e,i,a){var n=e.title;if(n.length){i.textAlign=e._titleAlign,i.textBaseline="top";var o,r,s=e.titleFontSize,l=e.titleSpacing;for(i.fillStyle=x(e.titleFontColor,a),i.font=O.fontString(s,e._titleFontStyle,e._titleFontFamily),o=0,r=n.length;o<r;++o)i.fillText(n[o],t.x,t.y),t.y+=s+l,o+1===n.length&&(t.y+=e.titleMarginBottom-l)}},drawBody:function(i,a,n,o){var r=a.bodyFontSize,e=a.bodySpacing,t=a.body;n.textAlign=a._bodyAlign,n.textBaseline="top";var s=x(a.bodyFontColor,o);n.fillStyle=s,n.font=O.fontString(r,a._bodyFontStyle,a._bodyFontFamily);var l=0,u=function(t){n.fillText(t,i.x+l,i.y),i.y+=r+e};O.each(a.beforeBody,u);var d=a.displayColors;l=d?r+2:0,O.each(t,function(t,e){O.each(t.before,u),O.each(t.lines,function(t){d&&(n.fillStyle=x(a.legendColorBackground,o),n.fillRect(i.x,i.y,r,r),n.strokeStyle=x(a.labelColors[e].borderColor,o),n.strokeRect(i.x,i.y,r,r),n.fillStyle=x(a.labelColors[e].backgroundColor,o),n.fillRect(i.x+1,i.y+1,r-2,r-2),n.fillStyle=s),u(t)}),O.each(t.after,u)}),l=0,O.each(a.afterBody,u),i.y-=e},drawFooter:function(e,i,a,t){var n=i.footer;n.length&&(e.y+=i.footerMarginTop,a.textAlign=i._footerAlign,a.textBaseline="top",a.fillStyle=x(i.footerFontColor,t),a.font=O.fontString(i.footerFontSize,i._footerFontStyle,i._footerFontFamily),O.each(n,function(t){a.fillText(t,e.x,e.y),e.y+=i.footerFontSize+i.footerSpacing}))},drawBackground:function(t,e,i,a,n){i.fillStyle=x(e.backgroundColor,n),O.drawRoundedRectangle(i,t.x,t.y,a.width,a.height,e.cornerRadius),i.fill()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i={width:e.width,height:e.height},a={x:e.x,y:e.y},n=Math.abs(e.opacity<.001)?0:e.opacity;this._options.enabled&&(this.drawBackground(a,e,t,i,n),this.drawCaret(a,i,n),a.x+=e.xPadding,a.y+=e.yPadding,this.drawTitle(a,e,t,n),this.drawBody(a,e,t,n),this.drawFooter(a,e,t,n))}},handleEvent:function(t){var e=this,i=e._options,a=!1;if(e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:e._active=e._chartInstance.getElementsAtEventForMode(t,i.mode,i),a=!O.arrayEquals(e._active,e._lastActive),e._lastActive=e._active,i.enabled||i.custom){e._eventPosition={x:t.x,y:t.y};var n=e._model;e.update(!0),e.pivot(),a|=n.x!==e._model.x||n.y!==e._model.y}return a}}),V.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,i,a=0,n=0,o=0;for(e=0,i=t.length;e<i;++e){var r=t[e];if(r&&r.hasValue()){var s=r.tooltipPosition();a+=s.x,n+=s.y,++o}}return{x:Math.round(a/o),y:Math.round(n/o)}},nearest:function(t,e){var i,a,n,o=e.x,r=e.y,s=Number.POSITIVE_INFINITY;for(a=0,n=t.length;a<n;++a){var l=t[a];if(l&&l.hasValue()){var u=l.getCenterPoint(),d=O.distanceBetweenPoints(e,u);d<s&&(s=d,i=l)}}if(i){var c=i.tooltipPosition();o=c.x,r=c.y}return{x:o,y:r}}}}},{}],37:[function(t,e,i){"use strict";e.exports=function(t){var d=t.helpers,e=t.defaults.global;e.elements.arc={backgroundColor:e.defaultColor,borderColor:"#fff",borderWidth:2},t.elements.Arc=t.Element.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var i=this._view;if(i){for(var a=d.getAngleFromPoint(i,{x:t,y:e}),n=a.angle,o=a.distance,r=i.startAngle,s=i.endAngle;s<r;)s+=2*Math.PI;for(;s<n;)n-=2*Math.PI;for(;n<r;)n+=2*Math.PI;var l=r<=n&&n<=s,u=o>=i.innerRadius&&o<=i.outerRadius;return l&&u}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,i=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,a=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,a),t.arc(e.x,e.y,e.innerRadius,a,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},{}],38:[function(t,e,i){"use strict";e.exports=function(t){var f=t.helpers,g=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:g.defaultColor,borderWidth:3,borderColor:g.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){function t(t,e){var i=e._view;!0===e._view.steppedLine?(o.lineTo(i.x,t._view.y),o.lineTo(i.x,i.y)):0===e._view.tension?o.lineTo(i.x,i.y):o.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,i.controlPointPreviousX,i.controlPointPreviousY,i.x,i.y)}var e=this._view,i=e.spanGaps,a=e.scaleZero,n=this._loop;n||("top"===e.fill?a=e.scaleTop:"bottom"===e.fill&&(a=e.scaleBottom));var o=this._chart.ctx;o.save();var r,s,l,u,d=this._children.slice(),c=-1;if(n&&d.length&&d.push(d[0]),d.length&&e.fill){for(o.beginPath(),r=0;r<d.length;++r)s=d[r],l=f.previousItem(d,r),u=s._view,0===r?(n?o.moveTo(a.x,a.y):o.moveTo(u.x,a),u.skip||(c=r,o.lineTo(u.x,u.y))):(l=-1===c?l:d[c],u.skip?i||c!==r-1||(n?o.lineTo(a.x,a.y):o.lineTo(l._view.x,a)):(c!==r-1?i&&-1!==c?t(l,s):(n||o.lineTo(u.x,a),o.lineTo(u.x,u.y)):t(l,s),c=r));n||-1===c||o.lineTo(d[c]._view.x,a),o.fillStyle=e.backgroundColor||g.defaultColor,o.closePath(),o.fill()}var h=g.elements.line;for(o.lineCap=e.borderCapStyle||h.borderCapStyle,o.setLineDash&&o.setLineDash(e.borderDash||h.borderDash),o.lineDashOffset=e.borderDashOffset||h.borderDashOffset,o.lineJoin=e.borderJoinStyle||h.borderJoinStyle,o.lineWidth=e.borderWidth||h.borderWidth,o.strokeStyle=e.borderColor||g.defaultColor,o.beginPath(),c=-1,r=0;r<d.length;++r)s=d[r],l=f.previousItem(d,r),u=s._view,0===r?u.skip||(o.moveTo(u.x,u.y),c=r):(l=-1===c?l:d[c],u.skip||(c!==r-1&&!i||-1===c?o.moveTo(u.x,u.y):t(l,s),c=r));o.stroke(),o.restore()}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(d){function t(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hitRadius,2)}var c=d.helpers,h=d.defaults.global,f=h.defaultColor;h.elements.point={radius:3,pointStyle:"circle",backgroundColor:f,borderWidth:1,borderColor:f,hitRadius:1,hoverRadius:4,hoverBorderWidth:1},d.elements.Point=d.Element.extend({inRange:function(t,e){var i=this._view;return!!i&&Math.pow(t-i.x,2)+Math.pow(e-i.y,2)<Math.pow(i.hitRadius+i.radius,2)},inLabelRange:t,inXRange:t,inYRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.y,2)<Math.pow(e.radius+e.hitRadius,2)},getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,i=this._model,a=this._chart.ctx,n=e.pointStyle,o=e.radius,r=e.x,s=e.y,l=d.helpers.color,u=0;e.skip||(a.strokeStyle=e.borderColor||f,a.lineWidth=c.getValueOrDefault(e.borderWidth,h.elements.point.borderWidth),a.fillStyle=e.backgroundColor||f,void 0!==t&&(i.x<t.left||1.01*t.right<i.x||i.y<t.top||1.01*t.bottom<i.y)&&(i.x<t.left?u=(r-i.x)/(t.left-i.x):1.01*t.right<i.x?u=(i.x-r)/(i.x-t.right):i.y<t.top?u=(s-i.y)/(t.top-i.y):1.01*t.bottom<i.y&&(u=(i.y-s)/(i.y-t.bottom)),u=Math.round(100*u)/100,a.strokeStyle=l(a.strokeStyle).alpha(u).rgbString(),a.fillStyle=l(a.fillStyle).alpha(u).rgbString()),d.canvasHelpers.drawPoint(a,n,o,r,s))}})}},{}],40:[function(t,e,i){"use strict";e.exports=function(t){function l(t){return void 0!==t._view.width}function n(t){var e,i,a,n,o=t._view;if(l(t)){var r=o.width/2;e=o.x-r,i=o.x+r,a=Math.min(o.y,o.base),n=Math.max(o.y,o.base)}else{var s=o.height/2;e=Math.min(o.x,o.base),i=Math.max(o.x,o.base),a=o.y-s,n=o.y+s}return{left:e,top:a,right:i,bottom:n}}var e=t.defaults.global;e.elements.rectangle={backgroundColor:e.defaultColor,borderWidth:0,borderColor:e.defaultColor,borderSkipped:"bottom"},t.elements.Rectangle=t.Element.extend({draw:function(){function t(t){return b[(v+t)%4]}var e,i,a,n,o,r,s,l=this._chart.ctx,u=this._view,d=u.borderWidth;if(u.horizontal?(e=u.base,i=u.x,a=u.y-u.height/2,n=u.y+u.height/2,o=e<i?1:-1,r=1,s=u.borderSkipped||"left"):(e=u.x-u.width/2,i=u.x+u.width/2,o=1,r=(a=u.y)<(n=u.base)?1:-1,s=u.borderSkipped||"bottom"),d){var c=Math.min(Math.abs(e-i),Math.abs(a-n)),h=(d=c<d?c:d)/2,f=e+("left"!==s?h*o:0),g=i+("right"!==s?-h*o:0),p=a+("top"!==s?h*r:0),m=n+("bottom"!==s?-h*r:0);f!==g&&(a=p,n=m),p!==m&&(e=f,i=g)}l.beginPath(),l.fillStyle=u.backgroundColor,l.strokeStyle=u.borderColor,l.lineWidth=d;var b=[[e,n],[e,a],[i,a],[i,n]],v=["bottom","left","top","right"].indexOf(s,0);-1===v&&(v=0);var x=t(0);l.moveTo(x[0],x[1]);for(var y=1;y<4;y++)x=t(y),l.lineTo(x[0],x[1]);l.fill(),d&&l.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=!1;if(this._view){var a=n(this);i=t>=a.left&&t<=a.right&&e>=a.top&&e<=a.bottom}return i},inLabelRange:function(t,e){if(!this._view)return!1;var i=n(this);return l(this)?t>=i.left&&t<=i.right:e>=i.top&&e<=i.bottom},inXRange:function(t){var e=n(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=n(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,i=this._view;return l(this)?(t=i.x,e=(i.y+i.base)/2):(t=(i.x+i.base)/2,e=i.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],41:[function(t,e,i){"use strict";e.exports=function(t){function s(t,e){var i=u.getStyle(t,e),a=i&&i.match(/(\d+)px/);return a?Number(a[1]):void 0}function l(t,e,i,a,n){return{type:t,chart:e,native:n||null,x:void 0!==i?i:null,y:void 0!==a?a:null}}function n(t,e,i){var a,n,o=t._chartjs={ticking:!1};o.resizer=(a=function(){o.ticking||(o.ticking=!0,u.requestAnimFrame.call(window,function(){if(o.resizer)return o.ticking=!1,e(l("resize",i))}))},(n=document.createElement("iframe")).className="chartjs-hidden-iframe",n.style.cssText="display:block;overflow:hidden;border:0;margin:0;top:0;left:0;bottom:0;right:0;height:100%;width:100%;position:absolute;pointer-events:none;z-index:-1;",n.tabIndex=-1,u.addEvent(n,"load",function(){u.addEvent(n.contentWindow||n,"resize",a),a()}),n),t.insertBefore(o.resizer,t.firstChild)}var u=t.helpers,d={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};return{acquireContext:function(t,e){if("string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t instanceof HTMLCanvasElement){var i=t.getContext&&t.getContext("2d");if(i instanceof CanvasRenderingContext2D)return function(t,e){var i=t.style,a=t.getAttribute("height"),n=t.getAttribute("width");if(t._chartjs={initial:{height:a,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",null===n||""===n){var o=s(t,"width");void 0!==o&&(t.width=o)}if(null===a||""===a)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var r=s(t,"height");void 0!==o&&(t.height=r)}}(t,e),i}return null},releaseContext:function(t){var i=t.canvas;if(i._chartjs){var a=i._chartjs.initial;["height","width"].forEach(function(t){var e=a[t];null==e?i.removeAttribute(t):i.setAttribute(t,e)}),u.each(a.style||{},function(t,e){i.style[e]=t}),i.width=i.width,delete i._chartjs}},addEventListener:function(o,t,r){var e=o.chart.canvas;if("resize"!==t){var i=r._chartjs||(r._chartjs={}),a=(i.proxies||(i.proxies={}))[o.id+"_"+t]=function(t){var e,i,a,n;r((e=t,i=o.chart,a=d[e.type]||e.type,n=u.getRelativePosition(e,i),l(a,i,n.x,n.y,e)))};u.addEvent(e,t,a)}else n(e.parentNode,r,o.chart)},removeEventListener:function(t,e,i){var a=t.chart.canvas;if("resize"!==e){var n=((i._chartjs||{}).proxies||{})[t.id+"_"+e];n&&u.removeEvent(a,e,n)}else!function(t){if(t&&t._chartjs){var e=t._chartjs.resizer;e&&(e.parentNode.removeChild(e),t._chartjs.resizer=null),delete t._chartjs}}(a.parentNode)}}}},{}],42:[function(t,e,i){"use strict";var a=t(41);e.exports=function(t){t.platform={acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},t.helpers.extend(t.platform,a(t))}},{41:41}],43:[function(t,e,i){"use strict";e.exports=function(t){var a=t.helpers,e=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t,e=this,i=e.getLabels();e.minIndex=0,e.maxIndex=i.length-1,void 0!==e.options.ticks.min&&(t=a.indexOf(i,e.options.ticks.min),e.minIndex=-1!==t?t:e.minIndex),void 0!==e.options.ticks.max&&(t=a.indexOf(i,e.options.ticks.max),e.maxIndex=-1!==t?t:e.maxIndex),e.min=i[e.minIndex],e.max=i[e.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var i=this,a=i.chart.data,n=i.isHorizontal();return a.yLabels&&!n?i.getRightValue(a.datasets[e].data[t]):i.ticks[t-i.minIndex]},getPixelForValue:function(t,e,i,a){var n=this,o=Math.max(n.maxIndex+1-n.minIndex-(n.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&isNaN(e)){var r=n.getLabels().indexOf(t);e=-1!==r?r:e}if(n.isHorizontal()){var s=n.width/o,l=s*(e-n.minIndex);return(n.options.gridLines.offsetGridLines&&a||n.maxIndex===n.minIndex&&a)&&(l+=s/2),n.left+Math.round(l)}var u=n.height/o,d=u*(e-n.minIndex);return n.options.gridLines.offsetGridLines&&a&&(d+=u/2),n.top+Math.round(d)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e=this,i=Math.max(e.ticks.length-(e.options.gridLines.offsetGridLines?0:1),1),a=e.isHorizontal(),n=(a?e.width:e.height)/i;return t-=a?e.left:e.top,e.options.gridLines.offsetGridLines&&(t-=n/2),t<=0?0:Math.round(t/n)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",e,{position:"bottom"})}},{}],44:[function(t,e,i){"use strict";e.exports=function(a){var c=a.helpers,t={position:"left",ticks:{callback:a.Ticks.formatters.linear}},e=a.LinearScaleBase.extend({determineDataLimits:function(){function r(t){return e?t.xAxisID===s.id:t.yAxisID===s.id}var s=this,l=s.options,u=s.chart,t=u.data.datasets,e=s.isHorizontal();s.min=null,s.max=null;var a=l.stacked;if(void 0===a&&c.each(t,function(t,e){if(!a){var i=u.getDatasetMeta(e);u.isDatasetVisible(e)&&r(i)&&void 0!==i.stack&&(a=!0)}}),l.stacked||a){var d={};c.each(t,function(t,e){var a=u.getDatasetMeta(e),i=[a.type,void 0===l.stacked&&void 0===a.stack?e:"",a.stack].join(".");void 0===d[i]&&(d[i]={positiveValues:[],negativeValues:[]});var n=d[i].positiveValues,o=d[i].negativeValues;u.isDatasetVisible(e)&&r(a)&&c.each(t.data,function(t,e){var i=+s.getRightValue(t);isNaN(i)||a.data[e].hidden||(n[e]=n[e]||0,o[e]=o[e]||0,l.relativePoints?n[e]=100:i<0?o[e]+=i:n[e]+=i)})}),c.each(d,function(t){var e=t.positiveValues.concat(t.negativeValues),i=c.min(e),a=c.max(e);s.min=null===s.min?i:Math.min(s.min,i),s.max=null===s.max?a:Math.max(s.max,a)})}else c.each(t,function(t,e){var a=u.getDatasetMeta(e);u.isDatasetVisible(e)&&r(a)&&c.each(t.data,function(t,e){var i=+s.getRightValue(t);isNaN(i)||a.data[e].hidden||(null===s.min?s.min=i:i<s.min&&(s.min=i),null===s.max?s.max=i:i>s.max&&(s.max=i))})});this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this.options.ticks;if(this.isHorizontal())t=Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.width/50));else{var i=c.getValueOrDefault(e.fontSize,a.defaults.global.defaultFontSize);t=Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.height/(2*i)))}return t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i=this,a=i.start,n=+i.getRightValue(t),o=i.end-a;return e=i.isHorizontal()?i.left+i.width/o*(n-a):i.bottom-i.height/o*(n-a),Math.round(e)},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),a=i?e.width:e.height,n=(i?t-e.left:e.bottom-t)/a;return e.start+(e.end-e.start)*n},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});a.scaleService.registerScaleType("linear",e,t)}},{}],45:[function(t,e,i){"use strict";e.exports=function(o){var r=o.helpers,t=r.noop;o.LinearScaleBase=o.Scale.extend({handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var i=r.sign(t.min),a=r.sign(t.max);i<0&&a<0?t.max=0:0<i&&0<a&&(t.min=0)}void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(t.max=Math.max(t.max,e.suggestedMax)),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function(){var t=this,e=t.options.ticks,i=t.getTickLimit(),a={maxTicks:i=Math.max(2,i),min:e.min,max:e.max,stepSize:r.getValueOrDefault(e.fixedStepSize,e.stepSize)},n=t.ticks=o.Ticks.generators.linear(a,t);t.handleDirectionalChanges(),t.max=r.max(n),t.min=r.min(n),e.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice(),t.zeroLineIndex=t.ticks.indexOf(0),o.Scale.prototype.convertTicksToLabels.call(t)}})}},{}],46:[function(t,e,i){"use strict";e.exports=function(n){var c=n.helpers,t={position:"left",ticks:{callback:n.Ticks.formatters.logarithmic}},e=n.Scale.extend({determineDataLimits:function(){function r(t){return a?t.xAxisID===s.id:t.yAxisID===s.id}var s=this,l=s.options,t=l.ticks,u=s.chart,e=u.data.datasets,i=c.getValueOrDefault,a=s.isHorizontal();s.min=null,s.max=null,s.minNotZero=null;var n=l.stacked;if(void 0===n&&c.each(e,function(t,e){if(!n){var i=u.getDatasetMeta(e);u.isDatasetVisible(e)&&r(i)&&void 0!==i.stack&&(n=!0)}}),l.stacked||n){var d={};c.each(e,function(t,e){var n=u.getDatasetMeta(e),o=[n.type,void 0===l.stacked&&void 0===n.stack?e:"",n.stack].join(".");u.isDatasetVisible(e)&&r(n)&&(void 0===d[o]&&(d[o]=[]),c.each(t.data,function(t,e){var i=d[o],a=+s.getRightValue(t);isNaN(a)||n.data[e].hidden||(i[e]=i[e]||0,l.relativePoints?i[e]=100:i[e]+=a)}))}),c.each(d,function(t){var e=c.min(t),i=c.max(t);s.min=null===s.min?e:Math.min(s.min,e),s.max=null===s.max?i:Math.max(s.max,i)})}else c.each(e,function(t,e){var a=u.getDatasetMeta(e);u.isDatasetVisible(e)&&r(a)&&c.each(t.data,function(t,e){var i=+s.getRightValue(t);isNaN(i)||a.data[e].hidden||(null===s.min?s.min=i:i<s.min&&(s.min=i),null===s.max?s.max=i:i>s.max&&(s.max=i),0!==i&&(null===s.minNotZero||i<s.minNotZero)&&(s.minNotZero=i))})});s.min=i(t.min,s.min),s.max=i(t.max,s.max),s.min===s.max&&(0!==s.min&&null!==s.min?(s.min=Math.pow(10,Math.floor(c.log10(s.min))-1),s.max=Math.pow(10,Math.floor(c.log10(s.max))+1)):(s.min=1,s.max=10))},buildTicks:function(){var t=this,e=t.options.ticks,i={min:e.min,max:e.max},a=t.ticks=n.Ticks.generators.logarithmic(i,t);t.isHorizontal()||a.reverse(),t.max=c.max(a),t.min=c.min(a),e.reverse?(a.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),n.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){return this.getPixelForValue(this.tickValues[t])},getPixelForValue:function(t){var e,i,a,n=this,o=n.start,r=+n.getRightValue(t),s=n.options.ticks;return n.isHorizontal()?(a=c.log10(n.end)-c.log10(o),0===r?i=n.left:(e=n.width,i=n.left+e/a*(c.log10(r)-c.log10(o)))):(e=n.height,0!==o||s.reverse?0===n.end&&s.reverse?(a=c.log10(n.start)-c.log10(n.minNotZero),i=r===n.end?n.top:r===n.minNotZero?n.top+.02*e:n.top+.02*e+.98*e/a*(c.log10(r)-c.log10(n.minNotZero))):(a=c.log10(n.end)-c.log10(o),e=n.height,i=n.bottom-e/a*(c.log10(r)-c.log10(o))):(a=c.log10(n.end)-c.log10(n.minNotZero),i=r===o?n.bottom:r===n.minNotZero?n.bottom-.02*e:n.bottom-.02*e-.98*e/a*(c.log10(r)-c.log10(n.minNotZero)))),i},getValueForPixel:function(t){var e,i,a=this,n=c.log10(a.end)-c.log10(a.start);return a.isHorizontal()?(i=a.width,e=a.start*Math.pow(10,(t-a.left)*n/i)):(i=a.height,e=Math.pow(10,(a.bottom-t)*n/i)/a.start),e}});n.scaleService.registerScaleType("logarithmic",e,t)}},{}],47:[function(t,e,i){"use strict";e.exports=function(e){function v(t){return t.options.lineArc?0:t.chart.data.labels.length}function x(t){var e=t.options.pointLabels,i=k.getValueOrDefault(e.fontSize,S.defaultFontSize),a=k.getValueOrDefault(e.fontStyle,S.defaultFontStyle),n=k.getValueOrDefault(e.fontFamily,S.defaultFontFamily);return{size:i,style:a,family:n,font:k.fontString(i,a,n)}}function m(t,e,i,a,n){return t===a||t===n?{start:e-i/2,end:e+i/2}:t<a||n<t?{start:e-i-5,end:e}:{start:e,end:e+i+5}}function y(t,e,i,a){if(k.isArray(e))for(var n=i.y,o=1.5*a,r=0;r<e.length;++r)t.fillText(e[r],i.x,n),n+=o;else t.fillText(e,i.x,i.y)}function s(t){return k.isNumber(t)?t:0}var k=e.helpers,S=e.defaults.global,t={display:!0,animate:!0,lineArc:!1,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:e.Ticks.formatters.linear},pointLabels:{fontSize:10,callback:function(t){return t}}},i=e.LinearScaleBase.extend({setDimensions:function(){var t=this,e=t.options,i=e.ticks;t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2);var a=k.min([t.height,t.width]),n=k.getValueOrDefault(i.fontSize,S.defaultFontSize);t.drawingArea=e.display?a/2-(n/2+i.backdropPaddingY):a/2},determineDataLimits:function(){var n=this,i=n.chart,o=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;k.each(i.data.datasets,function(t,e){if(i.isDatasetVisible(e)){var a=i.getDatasetMeta(e);k.each(t.data,function(t,e){var i=+n.getRightValue(t);isNaN(i)||a.data[e].hidden||(o=Math.min(i,o),r=Math.max(i,r))})}}),n.min=o===Number.POSITIVE_INFINITY?0:o,n.max=r===Number.NEGATIVE_INFINITY?0:r,n.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,e=k.getValueOrDefault(t.fontSize,S.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*e)))},convertTicksToLabels:function(){var t=this;e.LinearScaleBase.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,e;this.options.lineArc?(t=this,e=Math.min(t.height/2,t.width/2),t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0)):function(t){var e,i,a,n=x(t),o=Math.min(t.height/2,t.width/2),r={l:t.width,r:0,t:t.height,b:0},s={};t.ctx.font=n.font,t._pointLabelSizes=[];var l,u,d,c=v(t);for(e=0;e<c;e++){a=t.getPointPosition(e,o),l=t.ctx,u=n.size,d=t.pointLabels[e]||"",i=k.isArray(d)?{w:k.longestText(l,l.font,d),h:d.length*u+1.5*(d.length-1)*u}:{w:l.measureText(d).width,h:u},t._pointLabelSizes[e]=i;var h=t.getIndexAngle(e),f=k.toDegrees(h)%360,g=m(f,a.x,i.w,0,180),p=m(f,a.y,i.h,90,270);g.start<r.l&&(r.l=g.start,s.l=h),g.end>r.r&&(r.r=g.end,s.r=h),p.start<r.t&&(r.t=p.start,s.t=h),p.end>r.b&&(r.b=p.end,s.b=h)}t.setReductions(o,r,s)}(this)},setReductions:function(t,e,i){var a=e.l/Math.sin(i.l),n=Math.max(e.r-this.width,0)/Math.sin(i.r),o=-e.t/Math.cos(i.t),r=-Math.max(e.b-this.height,0)/Math.cos(i.b);a=s(a),n=s(n),o=s(o),r=s(r),this.drawingArea=Math.min(Math.round(t-(a+n)/2),Math.round(t-(o+r)/2)),this.setCenterPoint(a,n,o,r)},setCenterPoint:function(t,e,i,a){var n=this,o=n.width-e-n.drawingArea,r=t+n.drawingArea,s=i+n.drawingArea,l=n.height-a-n.drawingArea;n.xCenter=Math.round((r+o)/2+n.left),n.yCenter=Math.round((s+l)/2+n.top)},getIndexAngle:function(t){return t*(2*Math.PI/v(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var i=e.drawingArea/(e.max-e.min);return e.options.reverse?(e.max-t)*i:(t-e.min)*i},getPointPosition:function(t,e){var i=this.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(i)*e)+this.xCenter,y:Math.round(Math.sin(i)*e)+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this.min,e=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:t<0&&e<0?e:0<t&&0<e?t:0)},draw:function(){var r=this,s=r.options,l=s.gridLines,u=s.ticks,d=k.getValueOrDefault;if(s.display){var c=r.ctx,h=d(u.fontSize,S.defaultFontSize),t=d(u.fontStyle,S.defaultFontStyle),e=d(u.fontFamily,S.defaultFontFamily),f=k.fontString(h,t,e);k.each(r.ticks,function(t,e){if(0<e||s.reverse){var i=r.getDistanceFromCenterForValue(r.ticksAsNumbers[e]),a=r.yCenter-i;if(l.display&&0!==e&&function(t,e,i,a){var n=t.ctx;if(n.strokeStyle=k.getValueAtIndexOrDefault(e.color,a-1),n.lineWidth=k.getValueAtIndexOrDefault(e.lineWidth,a-1),t.options.lineArc)n.beginPath(),n.arc(t.xCenter,t.yCenter,i,0,2*Math.PI),n.closePath(),n.stroke();else{var o=v(t);if(0===o)return;n.beginPath();var r=t.getPointPosition(0,i);n.moveTo(r.x,r.y);for(var s=1;s<o;s++)r=t.getPointPosition(s,i),n.lineTo(r.x,r.y);n.closePath(),n.stroke()}}(r,l,i,e),u.display){var n=d(u.fontColor,S.defaultFontColor);if(c.font=f,u.showLabelBackdrop){var o=c.measureText(t).width;c.fillStyle=u.backdropColor,c.fillRect(r.xCenter-o/2-u.backdropPaddingX,a-h/2-u.backdropPaddingY,o+2*u.backdropPaddingX,h+2*u.backdropPaddingY)}c.textAlign="center",c.textBaseline="middle",c.fillStyle=n,c.fillText(t,r.xCenter,a)}}}),s.lineArc||function(t){var e=t.ctx,i=k.getValueOrDefault,a=t.options,n=a.angleLines,o=a.pointLabels;e.lineWidth=n.lineWidth,e.strokeStyle=n.color;var r,s,l,u,d=t.getDistanceFromCenterForValue(a.reverse?t.min:t.max),c=x(t);e.textBaseline="top";for(var h=v(t)-1;0<=h;h--){if(n.display){var f=t.getPointPosition(h,d);e.beginPath(),e.moveTo(t.xCenter,t.yCenter),e.lineTo(f.x,f.y),e.stroke(),e.closePath()}var g=t.getPointPosition(h,d+5),p=i(o.fontColor,S.defaultFontColor);e.font=c.font,e.fillStyle=p;var m=t.getIndexAngle(h),b=k.toDegrees(m);e.textAlign=0===(u=b)||180===u?"center":u<180?"left":"right",r=b,s=t._pointLabelSizes[h],l=g,90===r||270===r?l.y-=s.h/2:(270<r||r<90)&&(l.y-=s.h),y(e,t.pointLabels[h]||"",g,c.size)}}(r)}}});e.scaleService.registerScaleType("radialLinear",i,t)}},{}],48:[function(t,e,i){"use strict";var r=t(1);r="function"==typeof r?r:window.moment,e.exports=function(x){var y=x.helpers,k={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},t=x.Scale.extend({initialize:function(){if(!r)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");x.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:void 0!==this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){return null===t||null===e?null:(void 0===this.labelDiffs&&this.buildLabelDiffs(),void 0!==this.labelDiffs[t]?this.labelDiffs[t][e]:null)},getMomentStartOf:function(t){return"week"===this.options.time.unit&&!1!==this.options.time.isoWeekday?t.clone().startOf("isoWeek").isoWeekday(this.options.time.isoWeekday):t.clone().startOf(this.tickUnit)},determineDataLimits:function(){var n=this;n.labelMoments=[];var o=[];n.chart.data.labels&&0<n.chart.data.labels.length?(y.each(n.chart.data.labels,function(t){var e=n.parseTime(t);e.isValid()&&(n.options.time.round&&e.startOf(n.options.time.round),o.push(e))},n),n.firstTick=r.min.call(n,o),n.lastTick=r.max.call(n,o)):(n.firstTick=null,n.lastTick=null),y.each(n.chart.data.datasets,function(t,e){var i=[],a=n.chart.isDatasetVisible(e);"object"==typeof t.data[0]&&null!==t.data[0]?y.each(t.data,function(t){var e=n.parseTime(n.getRightValue(t));e.isValid()&&(n.options.time.round&&e.startOf(n.options.time.round),i.push(e),a&&(n.firstTick=null!==n.firstTick?r.min(n.firstTick,e):e,n.lastTick=null!==n.lastTick?r.max(n.lastTick,e):e))},n):i=o,n.labelMoments.push(i)},n),n.options.time.min&&(n.firstTick=n.parseTime(n.options.time.min)),n.options.time.max&&(n.lastTick=n.parseTime(n.options.time.max)),n.firstTick=(n.firstTick||r()).clone(),n.lastTick=(n.lastTick||r()).clone()},buildLabelDiffs:function(){var a=this;a.labelDiffs=[];var n=[];a.chart.data.labels&&0<a.chart.data.labels.length&&y.each(a.chart.data.labels,function(t){var e=a.parseTime(t);e.isValid()&&(a.options.time.round&&e.startOf(a.options.time.round),n.push(e.diff(a.firstTick,a.tickUnit,!0)))},a),y.each(a.chart.data.datasets,function(t){var i=[];"object"==typeof t.data[0]&&null!==t.data[0]?y.each(t.data,function(t){var e=a.parseTime(a.getRightValue(t));e.isValid()&&(a.options.time.round&&e.startOf(a.options.time.round),i.push(e.diff(a.firstTick,a.tickUnit,!0)))},a):i=n,a.labelDiffs.push(i)},a)},buildTicks:function(){var t=this;t.ctx.save();var e,i=y.getValueOrDefault(t.options.ticks.fontSize,x.defaults.global.defaultFontSize),a=y.getValueOrDefault(t.options.ticks.fontStyle,x.defaults.global.defaultFontStyle),n=y.getValueOrDefault(t.options.ticks.fontFamily,x.defaults.global.defaultFontFamily),o=y.fontString(i,a,n);if(t.ctx.font=o,t.ticks=[],t.unitScale=1,t.scaleSizeInUnits=0,t.options.time.unit)t.tickUnit=t.options.time.unit||"day",t.displayFormat=t.options.time.displayFormats[t.tickUnit],t.scaleSizeInUnits=t.lastTick.diff(t.firstTick,t.tickUnit,!0),t.unitScale=y.getValueOrDefault(t.options.time.unitStepSize,1);else{var r=t.isHorizontal()?t.width:t.height,s=t.tickFormatFunction(t.firstTick,0,[]),l=t.ctx.measureText(s).width,u=r/(l=l*Math.cos(y.toRadians(t.options.ticks.maxRotation))+i*Math.sin(y.toRadians(t.options.ticks.maxRotation)));t.tickUnit=t.options.time.minUnit,t.scaleSizeInUnits=t.lastTick.diff(t.firstTick,t.tickUnit,!0),t.displayFormat=t.options.time.displayFormats[t.tickUnit];for(var d=0,c=k.units[d];d<k.units.length;){if(t.unitScale=1,y.isArray(c.steps)&&Math.ceil(t.scaleSizeInUnits/u)<y.max(c.steps)){for(var h=0;h<c.steps.length;++h)if(c.steps[h]>=Math.ceil(t.scaleSizeInUnits/u)){t.unitScale=y.getValueOrDefault(t.options.time.unitStepSize,c.steps[h]);break}break}if(!1===c.maxStep||Math.ceil(t.scaleSizeInUnits/u)<c.maxStep){t.unitScale=y.getValueOrDefault(t.options.time.unitStepSize,Math.ceil(t.scaleSizeInUnits/u));break}c=k.units[++d],t.tickUnit=c.name;var f=t.firstTick.diff(t.getMomentStartOf(t.firstTick),t.tickUnit,!0),g=t.getMomentStartOf(t.lastTick.clone().add(1,t.tickUnit)).diff(t.lastTick,t.tickUnit,!0);t.scaleSizeInUnits=t.lastTick.diff(t.firstTick,t.tickUnit,!0)+f+g,t.displayFormat=t.options.time.displayFormats[c.name]}}if(t.options.time.min?e=t.getMomentStartOf(t.firstTick):(t.firstTick=t.getMomentStartOf(t.firstTick),e=t.firstTick),!t.options.time.max){var p=t.getMomentStartOf(t.lastTick),m=p.diff(t.lastTick,t.tickUnit,!0);m<0?t.lastTick=t.getMomentStartOf(t.lastTick.add(1,t.tickUnit)):0<=m&&(t.lastTick=p),t.scaleSizeInUnits=t.lastTick.diff(t.firstTick,t.tickUnit,!0)}t.options.time.displayFormat&&(t.displayFormat=t.options.time.displayFormat),t.ticks.push(t.firstTick.clone());for(var b=t.unitScale;b<=t.scaleSizeInUnits;b+=t.unitScale){var v=e.clone().add(b,t.tickUnit);if(t.options.time.max&&0<=v.diff(t.lastTick,t.tickUnit,!0))break;t.ticks.push(v)}0===t.ticks[t.ticks.length-1].diff(t.lastTick,t.tickUnit)&&0!==t.scaleSizeInUnits||(t.options.time.max?(t.ticks.push(t.lastTick.clone()),t.scaleSizeInUnits=t.lastTick.diff(t.ticks[0],t.tickUnit,!0)):(t.ticks.push(t.lastTick.clone()),t.scaleSizeInUnits=t.lastTick.diff(t.firstTick,t.tickUnit,!0))),t.ctx.restore(),t.labelDiffs=void 0},getLabelForIndex:function(t,e){var i=this,a=i.chart.data.labels&&t<i.chart.data.labels.length?i.chart.data.labels[t]:"",n=i.chart.data.datasets[e].data[t];return null!==n&&"object"==typeof n&&(a=i.getRightValue(n)),i.options.time.tooltipFormat&&(a=i.parseTime(a).format(i.options.time.tooltipFormat)),a},tickFormatFunction:function(t,e,i){var a=t.format(this.displayFormat),n=this.options.ticks,o=y.getValueOrDefault(n.callback,n.userCallback);return o?o(a,e,i):a},convertTicksToLabels:function(){var t=this;t.tickMoments=t.ticks,t.ticks=t.ticks.map(t.tickFormatFunction,t)},getPixelForValue:function(t,e,i){var a=this,n=null;if(void 0!==e&&void 0!==i&&(n=a.getLabelDiff(i,e)),null===n&&(t&&t.isValid||(t=a.parseTime(a.getRightValue(t))),t&&t.isValid&&t.isValid()&&(n=t.diff(a.firstTick,a.tickUnit,!0))),null!==n){var o=0!==n?n/a.scaleSizeInUnits:n;if(a.isHorizontal()){var r=a.width*o;return a.left+Math.round(r)}var s=a.height*o;return a.top+Math.round(s)}},getPixelForTick:function(t){return this.getPixelForValue(this.tickMoments[t],null,null)},getValueForPixel:function(t){var e=this,i=e.isHorizontal()?e.width:e.height,a=(t-(e.isHorizontal()?e.left:e.top))/i;return a*=e.scaleSizeInUnits,e.firstTick.clone().add(r.duration(a,e.tickUnit).asSeconds(),"seconds")},parseTime:function(t){var e=this;return"string"==typeof e.options.time.parser?r(t,e.options.time.parser):"function"==typeof e.options.time.parser?e.options.time.parser(t):"function"==typeof t.getMonth||"number"==typeof t?r(t):t.isValid&&t.isValid()?t:"string"!=typeof e.options.time.format&&e.options.time.format.call?(console.warn("options.time.format is deprecated and replaced by options.time.parser. See http://nnnick.github.io/Chart.js/docs-v2/#scales-time-scale"),e.options.time.format(t)):r(t,e.options.time.format)}});x.scaleService.registerScaleType("time",t,{position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}})}},{1:1}]},{},[7])(7)});