// ####################################################### // # This js was produced by the igemwiki generator # // # https://github.com/igemuoftATG/generator-igemwiki # // #######################################################
// repo for this wiki: https://github.com/igemuoftATG/wiki17
!function t(e,i,a){function n(o,s){if(!i[o]){if(!e[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(r)return r(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=i[o]={exports:{}};e[o][0].call(u.exports,function(t){var i=e[o][1][t];return n(i?i:t)},u,u.exports,t,e,i,a)}return i[o].exports}for(var r="function"==typeof require&&require,o=0;o<a.length;o++)n(a[o]);return n}({1:[function(t,e,i){(function(a){!function(t){if("object"==typeof i&&"undefined"!=typeof e)e.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof a?a:"undefined"!=typeof self?self:this,n.Chart=t()}}(function(){return function e(i,a,n){function r(s,l){if(!a[s]){if(!i[s]){var c="function"==typeof t&&t;if(!l&&c)return c(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=a[s]={exports:{}};i[s][0].call(d.exports,function(t){var e=i[s][1][t];return r(e?e:t)},d,d.exports,e,i,a,n)}return a[s].exports}for(var o="function"==typeof t&&t,s=0;s<n.length;s++)r(n[s]);return r}({1:[function(t,e,i){},{}],2:[function(t,e,i){function a(t){if(t){var e=/^#([a-fA-F0-9]{3})$/,i=/^#([a-fA-F0-9]{6})$/,a=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,n=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,r=/(\w+)/,o=[0,0,0],s=1,l=t.match(e);if(l){l=l[1];for(var c=0;c<o.length;c++)o[c]=parseInt(l[c]+l[c],16)}else if(l=t.match(i)){l=l[1];for(var c=0;c<o.length;c++)o[c]=parseInt(l.slice(2*c,2*c+2),16)}else if(l=t.match(a)){for(var c=0;c<o.length;c++)o[c]=parseInt(l[c+1]);s=parseFloat(l[4])}else if(l=t.match(n)){for(var c=0;c<o.length;c++)o[c]=Math.round(2.55*parseFloat(l[c+1]));s=parseFloat(l[4])}else if(l=t.match(r)){if("transparent"==l[1])return[0,0,0,0];if(o=x[l[1]],!o)return}for(var c=0;c<o.length;c++)o[c]=b(o[c],0,255);return s=s||0==s?b(s,0,1):1,o[3]=s,o}}function n(t){if(t){var e=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,i=t.match(e);if(i){var a=parseFloat(i[4]),n=b(parseInt(i[1]),0,360),r=b(parseFloat(i[2]),0,100),o=b(parseFloat(i[3]),0,100),s=b(isNaN(a)?1:a,0,1);return[n,r,o,s]}}}function r(t){if(t){var e=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,i=t.match(e);if(i){var a=parseFloat(i[4]),n=b(parseInt(i[1]),0,360),r=b(parseFloat(i[2]),0,100),o=b(parseFloat(i[3]),0,100),s=b(isNaN(a)?1:a,0,1);return[n,r,o,s]}}}function o(t){var e=a(t);return e&&e.slice(0,3)}function s(t){var e=n(t);return e&&e.slice(0,3)}function l(t){var e=a(t);return e?e[3]:(e=n(t))?e[3]:(e=r(t))?e[3]:void 0}function c(t){return"#"+y(t[0])+y(t[1])+y(t[2])}function u(t,e){return e<1||t[3]&&t[3]<1?d(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"}function d(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function h(t,e){if(e<1||t[3]&&t[3]<1)return f(t,e);var i=Math.round(t[0]/255*100),a=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return"rgb("+i+"%, "+a+"%, "+n+"%)"}function f(t,e){var i=Math.round(t[0]/255*100),a=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return"rgba("+i+"%, "+a+"%, "+n+"%, "+(e||t[3]||1)+")"}function p(t,e){return e<1||t[3]&&t[3]<1?g(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"}function g(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function v(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:"")+")"}function m(t){return k[t.slice(0,3)]}function b(t,e,i){return Math.min(Math.max(e,t),i)}function y(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var x=t(6);e.exports={getRgba:a,getHsla:n,getRgb:o,getHsl:s,getHwb:r,getAlpha:l,hexString:c,rgbString:u,rgbaString:d,percentString:h,percentaString:f,hslString:p,hslaString:g,hwbString:v,keyword:m};var k={};for(var w in x)k[x[w]]=w},{6:6}],3:[function(t,e,i){var a=t(5),n=t(2),r=function(t){if(t instanceof r)return t;if(!(this instanceof r))return new r(t);this.valid=!1,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};var e;"string"==typeof t?(e=n.getRgba(t),e?this.setValues("rgb",e):(e=n.getHsla(t))?this.setValues("hsl",e):(e=n.getHwb(t))&&this.setValues("hwb",e)):"object"==typeof t&&(e=t,void 0!==e.r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e))};r.prototype={isValid:function(){return this.valid},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%=360,t=t<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 n.hexString(this.values.rgb)},rgbString:function(){return n.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return n.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return n.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return n.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return n.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return n.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return n.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 e>i?(e+.05)/(i+.05):(i+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb,e=(299*t[0]+587*t[1]+114*t[2])/1e3;return e<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,r=2*n-1,o=i.alpha()-a.alpha(),s=((r*o===-1?r:(r+o)/(1+r*o))+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],e={}.toString.call(t),"[object Array]"===e?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,n=this.values,r=this.spaces,o=this.maxes,s=1;if(this.valid=!0,"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[r[t][0]]){var l=r[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;var c;for(i=0;i<t.length;i++)c=Math.max(0,Math.min(o[t][i],n[t][i])),n[t][i]=Math.round(c);for(var u in r)u!==t&&(n[u]=a[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]?this:(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 a(t){var e,i,a,n=t[0]/255,r=t[1]/255,o=t[2]/255,s=Math.min(n,r,o),l=Math.max(n,r,o),c=l-s;return l==s?e=0:n==l?e=(r-o)/c:r==l?e=2+(o-n)/c:o==l&&(e=4+(n-r)/c),e=Math.min(60*e,360),e<0&&(e+=360),a=(s+l)/2,i=l==s?0:a<=.5?c/(l+s):c/(2-l-s),[e,100*i,100*a]}function n(t){var e,i,a,n=t[0],r=t[1],o=t[2],s=Math.min(n,r,o),l=Math.max(n,r,o),c=l-s;return i=0==l?0:c/l*1e3/10,l==s?e=0:n==l?e=(r-o)/c:r==l?e=2+(o-n)/c:o==l&&(e=4+(n-r)/c),e=Math.min(60*e,360),e<0&&(e+=360),a=l/255*1e3/10,[e,i,a]}function o(t){var e=t[0],i=t[1],n=t[2],r=a(t)[0],o=1/255*Math.min(e,Math.min(i,n)),n=1-1/255*Math.max(e,Math.max(i,n));return[r,100*o,100*n]}function s(t){var e,i,a,n,r=t[0]/255,o=t[1]/255,s=t[2]/255;return n=Math.min(1-r,1-o,1-s),e=(1-r-n)/(1-n)||0,i=(1-o-n)/(1-n)||0,a=(1-s-n)/(1-n)||0,[100*e,100*i,100*a,100*n]}function l(t){return Z[JSON.stringify(t)]}function c(t){var e=t[0]/255,i=t[1]/255,a=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92;var n=.4124*e+.3576*i+.1805*a,r=.2126*e+.7152*i+.0722*a,o=.0193*e+.1192*i+.9505*a;return[100*n,100*r,100*o]}function u(t){var e,i,a,n=c(t),r=n[0],o=n[1],s=n[2];return r/=95.047,o/=100,s/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,e=116*o-16,i=500*(r-o),a=200*(o-s),[e,i,a]}function d(t){return B(u(t))}function h(t){var e,i,a,n,r,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return r=255*l,[r,r,r];i=l<.5?l*(1+s):l+s-l*s,e=2*l-i,n=[0,0,0];for(var c=0;c<3;c++)a=o+1/3*-(c-1),a<0&&a++,a>1&&a--,r=6*a<1?e+6*(i-e)*a:2*a<1?i:3*a<2?e+(i-e)*(2/3-a)*6:e,n[c]=255*r;return n}function f(t){var e,i,a=t[0],n=t[1]/100,r=t[2]/100;return 0===r?[0,0,0]:(r*=2,n*=r<=1?r:2-r,i=(r+n)/2,e=2*n/(r+n),[a,100*e,100*i])}function p(t){return o(h(t))}function v(t){return s(h(t))}function m(t){return l(h(t))}function y(t){var e=t[0]/60,i=t[1]/100,a=t[2]/100,n=Math.floor(e)%6,r=e-Math.floor(e),o=255*a*(1-i),s=255*a*(1-i*r),l=255*a*(1-i*(1-r)),a=255*a;switch(n){case 0:return[a,l,o];case 1:return[s,a,o];case 2:return[o,a,l];case 3:return[o,s,a];case 4:return[l,o,a];case 5:return[a,o,s]}}function x(t){var e,i,a=t[0],n=t[1]/100,r=t[2]/100;return i=(2-n)*r,e=n*r,e/=i<=1?i:2-i,e=e||0,i/=2,[a,100*e,100*i]}function k(t){return o(y(t))}function w(t){return s(y(t))}function M(t){return l(y(t))}function _(t){var e,i,a,n,o=t[0]/360,s=t[1]/100,l=t[2]/100,c=s+l;switch(c>1&&(s/=c,l/=c),e=Math.floor(6*o),i=1-l,a=6*o-e,0!=(1&e)&&(a=1-a),n=s+a*(i-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 S(t){return a(_(t))}function C(t){return n(_(t))}function A(t){return s(_(t))}function D(t){return l(_(t))}function P(t){var e,i,a,n=t[0]/100,r=t[1]/100,o=t[2]/100,s=t[3]/100;return e=1-Math.min(1,n*(1-s)+s),i=1-Math.min(1,r*(1-s)+s),a=1-Math.min(1,o*(1-s)+s),[255*e,255*i,255*a]}function I(t){return a(P(t))}function F(t){return n(P(t))}function T(t){return o(P(t))}function R(t){return l(P(t))}function z(t){var e,i,a,n=t[0]/100,r=t[1]/100,o=t[2]/100;return e=3.2406*n+r*-1.5372+o*-.4986,i=n*-.9689+1.8758*r+.0415*o,a=.0557*n+r*-.204+1.057*o,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*=12.92,e=Math.min(Math.max(0,e),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[255*e,255*i,255*a]}function L(t){var e,i,a,n=t[0],r=t[1],o=t[2];return n/=95.047,r/=100,o/=108.883,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,e=116*r-16,i=500*(n-r),a=200*(r-o),[e,i,a]}function O(t){return B(L(t))}function V(t){var e,i,a,n,r=t[0],o=t[1],s=t[2];return r<=8?(i=100*r/903.3,n=7.787*(i/100)+16/116):(i=100*Math.pow((r+16)/116,3),n=Math.pow(i/100,1/3)),e=e/95.047<=.008856?e=95.047*(o/500+n-16/116)/7.787:95.047*Math.pow(o/500+n,3),a=a/108.883<=.008859?a=108.883*(n-s/200-16/116)/7.787:108.883*Math.pow(n-s/200,3),[e,i,a]}function B(t){var e,i,a,n=t[0],r=t[1],o=t[2];return e=Math.atan2(o,r),i=360*e/2/Math.PI,i<0&&(i+=360),a=Math.sqrt(r*r+o*o),[n,a,i]}function W(t){return z(V(t))}function N(t){var e,i,a,n=t[0],r=t[1],o=t[2];return a=o/360*2*Math.PI,e=r*Math.cos(a),i=r*Math.sin(a),[n,e,i]}function E(t){return V(N(t))}function H(t){return W(N(t))}function q(t){return K[t]}function j(t){return a(q(t))}function Y(t){return n(q(t))}function U(t){return o(q(t))}function J(t){return s(q(t))}function X(t){return u(q(t))}function G(t){return c(q(t))}e.exports={rgb2hsl:a,rgb2hsv:n,rgb2hwb:o,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:c,rgb2lab:u,rgb2lch:d,hsl2rgb:h,hsl2hsv:f,hsl2hwb:p,hsl2cmyk:v,hsl2keyword:m,hsv2rgb:y,hsv2hsl:x,hsv2hwb:k,hsv2cmyk:w,hsv2keyword:M,hwb2rgb:_,hwb2hsl:S,hwb2hsv:C,hwb2cmyk:A,hwb2keyword:D,cmyk2rgb:P,cmyk2hsl:I,cmyk2hsv:F,cmyk2hwb:T,cmyk2keyword:R,keyword2rgb:q,keyword2hsl:j,keyword2hsv:Y,keyword2hwb:U,keyword2cmyk:J,keyword2lab:X,keyword2xyz:G,xyz2rgb:z,xyz2lab:L,xyz2lch:O,lab2xyz:V,lab2rgb:W,lab2lch:B,lch2lab:N,lch2xyz:E,lch2rgb:H};var K={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]},Z={};for(var Q in K)Z[JSON.stringify(K[Q])]=Q},{}],5:[function(t,e,i){var a=t(4),n=function(){return new c};for(var r in a){n[r+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),a[t](e)}}(r);var o=/(\w+)2(\w+)/.exec(r),s=o[1],l=o[2];n[s]=n[s]||{},n[s][l]=n[r]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var i=a[t](e);if("string"==typeof i||void 0===i)return i;for(var n=0;n<i.length;n++)i[n]=Math.round(i[n]);return i}}(r)}var c=function(){this.convs={}};c.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))},c.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},c.prototype.getValues=function(t){var e=this.convs[t];if(!e){var i=this.space,a=this.convs[i];e=n[i][t](a),this.convs[t]=e}return e},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(t){c.prototype[t]=function(e){return this.routeSpace(t,arguments)}}),e.exports=n},{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(40)(a),t(22)(a),t(25)(a),t(30)(a),t(21)(a),t(23)(a),t(24)(a),t(29)(a),t(32)(a),t(33)(a),t(31)(a),t(27)(a),t(34)(a),t(35)(a),t(36)(a),t(37)(a),t(38)(a),t(46)(a),t(44)(a),t(45)(a),t(47)(a),t(48)(a),t(49)(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);var n=[];n.push(t(41)(a),t(42)(a),t(43)(a)),a.plugins.register(n),e.exports=a,"undefined"!=typeof window&&(window.Chart=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,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,8:8,9:9}],8:[function(t,e,i){"use strict";e.exports=function(t){t.Bar=function(e,i){return i.type="bar",new t(e,i)}}},{}],9:[function(t,e,i){"use strict";e.exports=function(t){t.Bubble=function(e,i){return i.type="bubble",new t(e,i)}}},{}],10:[function(t,e,i){"use strict";e.exports=function(t){t.Doughnut=function(e,i){return i.type="doughnut",new t(e,i)}}},{}],11:[function(t,e,i){"use strict";e.exports=function(t){t.Line=function(e,i){return i.type="line",new t(e,i)}}},{}],12:[function(t,e,i){"use strict";e.exports=function(t){t.PolarArea=function(e,i){return i.type="polarArea",new t(e,i)}}},{}],13:[function(t,e,i){"use strict";e.exports=function(t){t.Radar=function(e,i){return i.type="radar",new t(e,i)}}},{}],14:[function(t,e,i){"use strict";e.exports=function(t){var e={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+")"}}}};t.defaults.scatter=e,t.controllers.scatter=t.controllers.line,t.Scatter=function(e,i){return i.type="scatter",new t(e,i)}}},{}],15:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.bar={hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}},t.controllers.bar=t.DatasetController.extend({dataElementType:t.elements.Rectangle,initialize:function(){var e,i=this;t.DatasetController.prototype.initialize.apply(i,arguments),e=i.getMeta(),e.stack=i.getDataset().stack,e.bar=!0},update:function(t){var e,i,a=this,n=a.getMeta().data;for(a._ruler=a.getRuler(),e=0,i=n.length;e<i;++e)a.updateElement(n[e],e,t)},updateElement:function(t,i,a){var n=this,r=n.chart,o=n.getMeta(),s=n.getDataset(),l=t.custom||{},c=r.options.elements.rectangle;t._xScale=n.getScaleForId(o.xAxisID),t._yScale=n.getScaleForId(o.yAxisID),t._datasetIndex=n.index,t._index=i,t._model={datasetLabel:s.label,label:r.data.labels[i],borderSkipped:l.borderSkipped?l.borderSkipped:c.borderSkipped,backgroundColor:l.backgroundColor?l.backgroundColor:e.getValueAtIndexOrDefault(s.backgroundColor,i,c.backgroundColor),borderColor:l.borderColor?l.borderColor:e.getValueAtIndexOrDefault(s.borderColor,i,c.borderColor),borderWidth:l.borderWidth?l.borderWidth:e.getValueAtIndexOrDefault(s.borderWidth,i,c.borderWidth)},n.updateElementGeometry(t,i,a),t.pivot()},updateElementGeometry:function(t,e,i){var a=this,n=t._model,r=a.getValueScale(),o=r.getBasePixel(),s=r.isHorizontal(),l=a._ruler||a.getRuler(),c=a.calculateBarValuePixels(a.index,e),u=a.calculateBarIndexPixels(a.index,e,l);n.horizontal=s,n.base=i?o:c.base,n.x=s?i?o:c.head:u.center,n.y=s?u.center:i?o:c.head,n.height=s?u.size:void 0,n.width=s?void 0:u.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},getStackCount:function(t){var e,i,a=this,n=a.chart,r=a.getIndexScale(),o=r.options.stacked,s=void 0===t?n.data.datasets.length:t+1,l=[];for(e=0;e<s;++e)i=n.getDatasetMeta(e),i.bar&&n.isDatasetVisible(e)&&(o===!1||o===!0&&l.indexOf(i.stack)===-1||void 0===o&&(void 0===i.stack||l.indexOf(i.stack)===-1))&&l.push(i.stack);return l.length},getStackIndex:function(t){return this.getStackCount(t)-1},getRuler:function(){var t=this,i=t.getIndexScale(),a=i.options,n=t.getStackCount(),r=i.isHorizontal()?i.width:i.height,o=r/i.ticks.length,s=o*a.categoryPercentage,l=s/n,c=l*a.barPercentage;return c=Math.min(e.getValueOrDefault(a.barThickness,c),e.getValueOrDefault(a.maxBarThickness,1/0)),{stackCount:n,tickSize:o,categorySize:s,categorySpacing:o-s,fullBarSize:l,barSize:c,barSpacing:l-c,scale:i}},calculateBarValuePixels:function(t,e){var i,a,n,r,o,s,l=this,c=l.chart,u=l.getMeta(),d=l.getValueScale(),h=c.data.datasets,f=Number(h[t].data[e]),p=d.options.stacked,g=u.stack,v=0;if(p||void 0===p&&void 0!==g)for(i=0;i<t;++i)a=c.getDatasetMeta(i),a.bar&&a.stack===g&&a.controller.getValueScaleId()===d.id&&c.isDatasetVisible(i)&&(n=Number(h[i].data[e]),(f<0&&n<0||f>=0&&n>0)&&(v+=n));return r=d.getPixelForValue(v),o=d.getPixelForValue(v+f),s=(o-r)/2,{size:s,base:r,head:o,center:o+s/2}},calculateBarIndexPixels:function(t,e,i){var a=this,n=i.scale,r=a.chart.isCombo,o=a.getStackIndex(t),s=n.getPixelForValue(null,e,t,r),l=i.barSize;return s-=r?i.tickSize/2:0,s+=i.fullBarSize*o,s+=i.categorySpacing/2,s+=i.barSpacing/2,{size:l,base:s,head:s+l,center:s+l/2}},draw:function(){var t,i=this,a=i.chart,n=i.getMeta().data,r=i.getDataset(),o=n.length,s=0;for(e.canvas.clipArea(a.ctx,a.chartArea);s<o;++s)t=r.data[s],null===t||void 0===t||isNaN(t)||n[s].draw();e.canvas.unclipArea(a.ctx)},setHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],a=t._index,n=t.custom||{},r=t._model;r.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:e.getValueAtIndexOrDefault(i.hoverBackgroundColor,a,e.getHoverColor(r.backgroundColor)),r.borderColor=n.hoverBorderColor?n.hoverBorderColor:e.getValueAtIndexOrDefault(i.hoverBorderColor,a,e.getHoverColor(r.borderColor)),r.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:e.getValueAtIndexOrDefault(i.hoverBorderWidth,a,r.borderWidth)},removeHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],a=t._index,n=t.custom||{},r=t._model,o=this.chart.options.elements.rectangle;r.backgroundColor=n.backgroundColor?n.backgroundColor:e.getValueAtIndexOrDefault(i.backgroundColor,a,o.backgroundColor),r.borderColor=n.borderColor?n.borderColor:e.getValueAtIndexOrDefault(i.borderColor,a,o.borderColor),r.borderWidth=n.borderWidth?n.borderWidth:e.getValueAtIndexOrDefault(i.borderWidth,a,o.borderWidth)}}),t.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 t.length>0&&(t[0].yLabel?i=t[0].yLabel:e.labels.length>0&&t[0].index<e.labels.length&&(i=e.labels[t[0].index])),i},label:function(t,e){var i=e.datasets[t.datasetIndex].label||"";return i+": "+t.xLabel}}}},t.controllers.horizontalBar=t.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},{}],16:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.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+")"}}}},t.controllers.bubble=t.DatasetController.extend({dataElementType:t.elements.Point,update:function(t){var i=this,a=i.getMeta(),n=a.data;e.each(n,function(e,a){i.updateElement(e,a,t)})},updateElement:function(i,a,n){var r=this,o=r.getMeta(),s=r.getScaleForId(o.xAxisID),l=r.getScaleForId(o.yAxisID),c=i.custom||{},u=r.getDataset(),d=u.data[a],h=r.chart.options.elements.point,f=r.index;e.extend(i,{_xScale:s,_yScale:l,_datasetIndex:f,_index:a,_model:{x:n?s.getPixelForDecimal(.5):s.getPixelForValue("object"==typeof d?d:NaN,a,f,r.chart.isCombo),y:n?l.getBasePixel():l.getPixelForValue(d,a,f),radius:n?0:c.radius?c.radius:r.getRadius(d),hitRadius:c.hitRadius?c.hitRadius:e.getValueAtIndexOrDefault(u.hitRadius,a,h.hitRadius)
}}),t.DatasetController.prototype.removeHoverStyle.call(r,i,h);var p=i._model;p.skip=c.skip?c.skip:isNaN(p.x)||isNaN(p.y),i.pivot()},getRadius:function(t){return t.r||this.chart.options.elements.point.radius},setHoverStyle:function(i){var a=this;t.DatasetController.prototype.setHoverStyle.call(a,i);var n=a.chart.data.datasets[i._datasetIndex],r=i._index,o=i.custom||{},s=i._model;s.radius=o.hoverRadius?o.hoverRadius:e.getValueAtIndexOrDefault(n.hoverRadius,r,a.chart.options.elements.point.hoverRadius)+a.getRadius(n.data[r])},removeHoverStyle:function(e){var i=this;t.DatasetController.prototype.removeHoverStyle.call(i,e,i.chart.options.elements.point);var a=i.chart.data.datasets[e._datasetIndex].data[e._index],n=e.custom||{},r=e._model;r.radius=n.radius?n.radius:i.getRadius(a)}})}},{}],17:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults;i.doughnut={animation:{animateRotate:!0,animateScale:!1},aspectRatio:1,hover:{mode:"single"},legendCallback:function(t){var e=[];e.push('- ');var i=t.data,a=i.datasets,n=i.labels;if(a.length)for(var r=0;r<a[0].data.length;++r)e.push('
- '),n[r]&&e.push(n[r]),e.push(" ");return e.push("
- ');var i=t.data,a=i.datasets,n=i.labels;if(a.length)for(var r=0;r<a[0].data.length;++r)e.push('
- '),n[r]&&e.push(n[r]),e.push(" ");return e.push("
- ');for(var i=0;i<t.data.datasets.length;i++)e.push('
- '),t.data.datasets[i].label&&e.push(t.data.datasets[i].label),e.push(" ");return e.push("
var y,x,w,M,P,I,F,T,R,z,L="middle",O="middle";if(g){"bottom"===r.position?(O=f?"middle":"top",L=f?"right":"center",z=n.top+b):(O=f?"middle":"bottom",L=f?"left":"center",z=n.bottom-b);var V=n.getPixelForTick(i)+a.aliasPixel(h);R=n.getPixelForTick(i,d.offsetGridLines)+u.labelOffset,y=w=P=F=V,x=A,M=D,I=e.top,T=e.bottom}else{var B,W="left"===r.position,N=u.padding;u.mirror?(L=W?"left":"right",B=N):(L=W?"right":"left",B=b+N),R=W?n.right-B:n.left+B;var E=n.getPixelForTick(i);E+=a.aliasPixel(h),z=n.getPixelForTick(i,d.offsetGridLines),y=S,w=C,P=e.left,F=e.right,x=M=I=T=E}_.push({tx1:y,ty1:x,tx2:w,ty2:M,x1:P,y1:I,x2:F,y2:T,labelX:R,labelY:z,glWidth:h,glColor:p,glBorderDash:v,glBorderDashOffset:m,rotation:-1*k,label:t,textBaseline:O,textAlign:L})}}}),a.each(_,function(t){if(d.display&&(l.save(),l.lineWidth=t.glWidth,l.strokeStyle=t.glColor,l.setLineDash&&(l.setLineDash(t.glBorderDash),l.lineDashOffset=t.glBorderDashOffset),l.beginPath(),d.drawTicks&&(l.moveTo(t.tx1,t.ty1),l.lineTo(t.tx2,t.ty2)),d.drawOnChartArea&&(l.moveTo(t.x1,t.y1),l.lineTo(t.x2,t.y2)),l.stroke(),l.restore()),u.display){l.save(),l.translate(t.labelX,t.labelY),l.rotate(t.rotation),l.font=m.font,l.textBaseline=t.textBaseline,l.textAlign=t.textAlign;var e=t.label;if(a.isArray(e))for(var i=0,n=0;i<e.length;++i)l.fillText(""+e[i],0,n),n+=1.5*m.size;else l.fillText(e,0,0);l.restore()}}),h.display){var P,I,F=0;if(g)P=n.left+(n.right-n.left)/2,I="bottom"===r.position?n.bottom-x.size/2:n.top+x.size/2;else{var T="left"===r.position;P=T?n.left+x.size/2:n.right-x.size/2,I=n.top+(n.bottom-n.top)/2,F=T?-.5*Math.PI:.5*Math.PI}l.save(),l.translate(P,I),l.rotate(F),l.textAlign="center",l.textBaseline="middle",l.fillStyle=y,l.font=x.font,l.fillText(h.labelString,0,0),l.restore()}if(d.drawBorder){l.lineWidth=a.getValueAtIndexOrDefault(d.lineWidth,0),l.strokeStyle=a.getValueAtIndexOrDefault(d.color,0);var R=n.left,z=n.right,L=n.top,O=n.bottom,V=a.aliasPixel(l.lineWidth);g?(L=O="top"===r.position?n.bottom:n.top,L+=V,O+=V):(R=z="left"===r.position?n.right:n.left,R+=V,z+=V),l.beginPath(),l.moveTo(R,L),l.lineTo(z,O),l.stroke()}}}})}},{}],32:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.scaleService={constructors:{},defaults:{},registerScaleType:function(t,i,a){this.constructors[t]=i,this.defaults[t]=e.clone(a)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(i){return this.defaults.hasOwnProperty(i)?e.scaleMerge(t.defaults.scale,this.defaults[i]):{}},updateScaleDefaults:function(t,i){var a=this.defaults;a.hasOwnProperty(t)&&(a[t]=e.extend(a[t],i))},addScalesToLayout:function(i){e.each(i.scales,function(e){e.fullWidth=e.options.fullWidth,e.position=e.options.position,e.weight=e.options.weight,t.layoutService.addBox(i,e)})}}}},{}],33:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.Ticks={generators:{linear:function(t,i){var a,n=[];if(t.stepSize&&t.stepSize>0)a=t.stepSize;else{var r=e.niceNum(i.max-i.min,!1);a=e.niceNum(r/(t.maxTicks-1),!0)}var o=Math.floor(i.min/a)*a,s=Math.ceil(i.max/a)*a;t.min&&t.max&&t.stepSize&&e.almostWhole((t.max-t.min)/t.stepSize,a/1e3)&&(o=t.min,s=t.max);var l=(s-o)/a;l=e.almostEquals(l,Math.round(l),a/1e3)?Math.round(l):Math.ceil(l),n.push(void 0!==t.min?t.min:o);for(var c=1;c<l;++c)n.push(o+c*a);return n.push(void 0!==t.max?t.max:s),n},logarithmic:function(t,i){var a,n,r=[],o=e.getValueOrDefault,s=o(t.min,Math.pow(10,Math.floor(e.log10(i.min)))),l=Math.floor(e.log10(i.max)),c=Math.ceil(i.max/Math.pow(10,l));0===s?(a=Math.floor(e.log10(i.minNotZero)),n=Math.floor(i.minNotZero/Math.pow(10,a)),r.push(s),s=n*Math.pow(10,a)):(a=Math.floor(e.log10(s)),n=Math.floor(s/Math.pow(10,a)));do r.push(s),++n,10===n&&(n=1,++a),s=n*Math.pow(10,a);while(a<l||a===l&&n<c);var u=o(t.max,s);return r.push(u),r}},formatters:{values:function(t){return e.isArray(t)?t:""+t},linear:function(t,i,a){var n=a.length>3?a[2]-a[1]:a[1]-a[0];Math.abs(n)>1&&t!==Math.floor(t)&&(n=t-Math.floor(t));var r=e.log10(Math.abs(n)),o="";if(0!==t){var s=-1*Math.floor(r);s=Math.max(Math.min(s,20),0),o=t.toFixed(s)}else o="0";return o},logarithmic:function(t,i,a){var n=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===n||2===n||5===n||0===i||i===a.length-1?t.toExponential():""}}}}},{}],34:[function(t,e,i){"use strict";e.exports=function(t){function e(t,e){var i=l.color(t);return i.alpha(e*i.alpha()).rgbaString()}function i(t,e){return e&&(l.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function a(t){var e=t._xScale,i=t._yScale||t._scale,a=t._index,n=t._datasetIndex;return{xLabel:e?e.getLabelForIndex(a,n):"",yLabel:i?i.getLabelForIndex(a,n):"",index:a,datasetIndex:n,x:t._model.x,y:t._model.y}}function n(e){var i=t.defaults.global,a=l.getValueOrDefault;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:a(e.bodyFontFamily,i.defaultFontFamily),_bodyFontStyle:a(e.bodyFontStyle,i.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:a(e.bodyFontSize,i.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:a(e.titleFontFamily,i.defaultFontFamily),_titleFontStyle:a(e.titleFontStyle,i.defaultFontStyle),titleFontSize:a(e.titleFontSize,i.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:a(e.footerFontFamily,i.defaultFontFamily),_footerFontStyle:a(e.footerFontStyle,i.defaultFontStyle),footerFontSize:a(e.footerFontSize,i.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function r(t,e){var i=t._chart.ctx,a=2*e.yPadding,n=0,r=e.body,o=r.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);o+=e.beforeBody.length+e.afterBody.length;var s=e.title.length,c=e.footer.length,u=e.titleFontSize,d=e.bodyFontSize,h=e.footerFontSize;a+=s*u,a+=s?(s-1)*e.titleSpacing:0,a+=s?e.titleMarginBottom:0,a+=o*d,a+=o?(o-1)*e.bodySpacing:0,a+=c?e.footerMarginTop:0,a+=c*h,a+=c?(c-1)*e.footerSpacing:0;var f=0,p=function(t){n=Math.max(n,i.measureText(t).width+f)};return i.font=l.fontString(u,e._titleFontStyle,e._titleFontFamily),l.each(e.title,p),i.font=l.fontString(d,e._bodyFontStyle,e._bodyFontFamily),l.each(e.beforeBody.concat(e.afterBody),p),f=e.displayColors?d+2:0,l.each(r,function(t){l.each(t.before,p),l.each(t.lines,p),l.each(t.after,p)}),f=0,i.font=l.fontString(h,e._footerFontStyle,e._footerFontFamily),l.each(e.footer,p),n+=2*e.xPadding,{width:n,height:a}}function o(t,e){var i=t._model,a=t._chart,n=t._chart.chartArea,r="center",o="center";i.y<e.height?o="top":i.y>a.height-e.height&&(o="bottom");var s,l,c,u,d,h=(n.left+n.right)/2,f=(n.top+n.bottom)/2;"center"===o?(s=function(t){return t<=h},l=function(t){return t>h}):(s=function(t){return t<=e.width/2},l=function(t){return t>=a.width-e.width/2}),c=function(t){return t+e.width>a.width},u=function(t){return t-e.width<0},d=function(t){return t<=f?"top":"bottom"},s(i.x)?(r="left",c(i.x)&&(r="center",o=d(i.y))):l(i.x)&&(r="right",u(i.x)&&(r="center",o=d(i.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:r,yAlign:p.yAlign?p.yAlign:o}}function s(t,e,i){var a=t.x,n=t.y,r=t.caretSize,o=t.caretPadding,s=t.cornerRadius,l=i.xAlign,c=i.yAlign,u=r+o,d=s+o;return"right"===l?a-=e.width:"center"===l&&(a-=e.width/2),"top"===c?n+=u:n-="bottom"===c?e.height+u:e.height/2,"center"===c?"left"===l?a+=u:"right"===l&&(a-=u):"left"===l?a-=d:"right"===l&&(a+=d),{x:a,y:n}}var l=t.helpers;t.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,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:l.noop,title:function(t,e){var i="",a=e.labels,n=a?a.length:0;if(t.length>0){var r=t[0];r.xLabel?i=r.xLabel:n>0&&r.index<n&&(i=a[r.index])}return i},afterTitle:l.noop,beforeBody:l.noop,beforeLabel:l.noop,label:function(t,e){var i=e.datasets[t.datasetIndex].label||"";return i&&(i+=": "),i+=t.yLabel},labelColor:function(t,e){var i=e.getDatasetMeta(t.datasetIndex),a=i.data[t.index],n=a._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},afterLabel:l.noop,afterBody:l.noop,beforeFooter:l.noop,footer:l.noop,afterFooter:l.noop}},t.Tooltip=t.Element.extend({initialize:function(){this._model=n(this._options)},getTitle:function(){var t=this,e=t._options,a=e.callbacks,n=a.beforeTitle.apply(t,arguments),r=a.title.apply(t,arguments),o=a.afterTitle.apply(t,arguments),s=[];return s=i(s,n),s=i(s,r),s=i(s,o)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return l.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,e){var a=this,n=a._options.callbacks,r=[];return l.each(t,function(t){var o={before:[],lines:[],after:[]};i(o.before,n.beforeLabel.call(a,t,e)),i(o.lines,n.label.call(a,t,e)),i(o.after,n.afterLabel.call(a,t,e)),r.push(o)}),r},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return l.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this,e=t._options.callbacks,a=e.beforeFooter.apply(t,arguments),n=e.footer.apply(t,arguments),r=e.afterFooter.apply(t,arguments),o=[];return o=i(o,a),o=i(o,n),o=i(o,r)},update:function(e){var i,c,u=this,d=u._options,h=u._model,f=u._model=n(d),p=u._active,g=u._data,v={xAlign:h.xAlign,yAlign:h.yAlign},m={x:h.x,y:h.y},b={width:h.width,height:h.height},y={x:h.caretX,y:h.caretY};if(p.length){f.opacity=1;var x=[];y=t.Tooltip.positioners[d.position](p,u._eventPosition);var k=[];for(i=0,c=p.length;i<c;++i)k.push(a(p[i]));d.filter&&(k=k.filter(function(t){return d.filter(t,g)})),d.itemSort&&(k=k.sort(function(t,e){return d.itemSort(t,e,g)})),l.each(k,function(t){x.push(d.callbacks.labelColor.call(u,t,u._chart))}),f.title=u.getTitle(k,g),f.beforeBody=u.getBeforeBody(k,g),f.body=u.getBody(k,g),f.afterBody=u.getAfterBody(k,g),f.footer=u.getFooter(k,g),f.x=Math.round(y.x),f.y=Math.round(y.y),f.caretPadding=d.caretPadding,f.labelColors=x,f.dataPoints=k,b=r(this,f),v=o(this,b),m=s(f,b,v)}else f.opacity=0;return f.xAlign=v.xAlign,f.yAlign=v.yAlign,f.x=m.x,f.y=m.y,f.width=b.width,f.height=b.height,f.caretX=y.x,f.caretY=y.y,u._model=f,e&&d.custom&&d.custom.call(u,f),u},drawCaret:function(t,e){var i=this._chart.ctx,a=this._view,n=this.getCaretPosition(t,e,a);i.lineTo(n.x1,n.y1),i.lineTo(n.x2,n.y2),i.lineTo(n.x3,n.y3)},getCaretPosition:function(t,e,i){var a,n,r,o,s,l,c=i.caretSize,u=i.cornerRadius,d=i.xAlign,h=i.yAlign,f=t.x,p=t.y,g=e.width,v=e.height;if("center"===h)s=p+v/2,"left"===d?(a=f,n=a-c,r=a,o=s+c,l=s-c):(a=f+g,n=a+c,r=a,o=s-c,l=s+c);else if("left"===d?(n=f+u+c,a=n-c,r=n+c):"right"===d?(n=f+g-u-c,a=n-c,r=n+c):(n=f+g/2,a=n-c,r=n+c),"top"===h)o=p,s=o-c,l=o;else{o=p+v,s=o+c,l=o;var m=r;r=a,a=m}return{x1:a,x2:n,x3:r,y1:o,y2:s,y3:l}},drawTitle:function(t,i,a,n){var r=i.title;if(r.length){a.textAlign=i._titleAlign,a.textBaseline="top";var o=i.titleFontSize,s=i.titleSpacing;a.fillStyle=e(i.titleFontColor,n),a.font=l.fontString(o,i._titleFontStyle,i._titleFontFamily);var c,u;for(c=0,u=r.length;c<u;++c)a.fillText(r[c],t.x,t.y),t.y+=o+s,c+1===r.length&&(t.y+=i.titleMarginBottom-s)}},drawBody:function(t,i,a,n){var r=i.bodyFontSize,o=i.bodySpacing,s=i.body;a.textAlign=i._bodyAlign,a.textBaseline="top";var c=e(i.bodyFontColor,n);a.fillStyle=c,a.font=l.fontString(r,i._bodyFontStyle,i._bodyFontFamily);var u=0,d=function(e){a.fillText(e,t.x+u,t.y),t.y+=r+o};l.each(i.beforeBody,d);var h=i.displayColors;u=h?r+2:0,l.each(s,function(o,s){l.each(o.before,d),l.each(o.lines,function(o){h&&(a.fillStyle=e(i.legendColorBackground,n),a.fillRect(t.x,t.y,r,r),a.strokeStyle=e(i.labelColors[s].borderColor,n),a.strokeRect(t.x,t.y,r,r),a.fillStyle=e(i.labelColors[s].backgroundColor,n),a.fillRect(t.x+1,t.y+1,r-2,r-2),a.fillStyle=c),d(o)}),l.each(o.after,d)}),u=0,l.each(i.afterBody,d),t.y-=o},drawFooter:function(t,i,a,n){var r=i.footer;r.length&&(t.y+=i.footerMarginTop,a.textAlign=i._footerAlign,a.textBaseline="top",a.fillStyle=e(i.footerFontColor,n),a.font=l.fontString(i.footerFontSize,i._footerFontStyle,i._footerFontFamily),l.each(r,function(e){a.fillText(e,t.x,t.y),t.y+=i.footerFontSize+i.footerSpacing}))},drawBackground:function(t,i,a,n,r){a.fillStyle=e(i.backgroundColor,r),a.strokeStyle=e(i.borderColor,r),a.lineWidth=i.borderWidth;var o=i.xAlign,s=i.yAlign,l=t.x,c=t.y,u=n.width,d=n.height,h=i.cornerRadius;a.beginPath(),a.moveTo(l+h,c),"top"===s&&this.drawCaret(t,n),a.lineTo(l+u-h,c),a.quadraticCurveTo(l+u,c,l+u,c+h),"center"===s&&"right"===o&&this.drawCaret(t,n),a.lineTo(l+u,c+d-h),a.quadraticCurveTo(l+u,c+d,l+u-h,c+d),"bottom"===s&&this.drawCaret(t,n),a.lineTo(l+h,c+d),a.quadraticCurveTo(l,c+d,l,c+d-h),"center"===s&&"left"===o&&this.drawCaret(t,n),a.lineTo(l,c+h),a.quadraticCurveTo(l,c,l+h,c),a.closePath(),a.fill(),i.borderWidth>0&&a.stroke()},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,r=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&r&&(this.drawBackground(a,e,t,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._chart.getElementsAtEventForMode(t,i.mode,i),a=!l.arrayEquals(e._active,e._lastActive),!a)return!1;if(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}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,i,a=0,n=0,r=0;for(e=0,i=t.length;e<i;++e){var o=t[e];if(o&&o.hasValue()){var s=o.tooltipPosition();a+=s.x,n+=s.y,++r}}return{x:Math.round(a/r),y:Math.round(n/r)}},nearest:function(t,e){var i,a,n,r=e.x,o=e.y,s=Number.POSITIVE_INFINITY;for(a=0,n=t.length;a<n;++a){var c=t[a];if(c&&c.hasValue()){var u=c.getCenterPoint(),d=l.distanceBetweenPoints(e,u);d<s&&(s=d,i=c)}}if(i){var h=i.tooltipPosition();r=h.x,o=h.y}return{x:r,y:o}}}}},{}],35:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;i.elements.arc={backgroundColor:i.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,i){var a=this._view;if(a){for(var n=e.getAngleFromPoint(a,{x:t,y:i}),r=n.angle,o=n.distance,s=a.startAngle,l=a.endAngle;l<s;)l+=2*Math.PI;for(;r>l;)r-=2*Math.PI;for(;r<s;)r+=2*Math.PI;var c=r>=s&&r<=l,u=o>=a.innerRadius&&o<=a.outerRadius;return c&&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()}})}},{}],36:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){var t,a,n,r,o=this,s=o._view,l=o._chart.ctx,c=s.spanGaps,u=o._children.slice(),d=i.elements.line,h=-1;for(o._loop&&u.length&&u.push(u[0]),l.save(),l.lineCap=s.borderCapStyle||d.borderCapStyle,l.setLineDash&&l.setLineDash(s.borderDash||d.borderDash),l.lineDashOffset=s.borderDashOffset||d.borderDashOffset,l.lineJoin=s.borderJoinStyle||d.borderJoinStyle,l.lineWidth=s.borderWidth||d.borderWidth,l.strokeStyle=s.borderColor||i.defaultColor,l.beginPath(),h=-1,t=0;t<u.length;++t)a=u[t],n=e.previousItem(u,t),r=a._view,0===t?r.skip||(l.moveTo(r.x,r.y),h=t):(n=h===-1?n:u[h],r.skip||(h!==t-1&&!c||h===-1?l.moveTo(r.x,r.y):e.canvas.lineTo(l,n._view,a._view),h=t));l.stroke(),l.restore()}})}},{}],37:[function(t,e,i){"use strict";e.exports=function(t){function e(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hitRadius,2)}function i(t){var e=this._view;return!!e&&Math.pow(t-e.y,2)<Math.pow(e.radius+e.hitRadius,2)}var a=t.helpers,n=t.defaults.global,r=n.defaultColor;n.elements.point={radius:3,pointStyle:"circle",backgroundColor:r,borderWidth:1,borderColor:r,hitRadius:1,hoverRadius:4,hoverBorderWidth:1},t.elements.Point=t.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:e,inXRange:e,inYRange:i,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(e){var i=this._view,o=this._model,s=this._chart.ctx,l=i.pointStyle,c=i.radius,u=i.x,d=i.y,h=t.helpers.color,f=1.01,p=0;i.skip||(s.strokeStyle=i.borderColor||r,s.lineWidth=a.getValueOrDefault(i.borderWidth,n.elements.point.borderWidth),s.fillStyle=i.backgroundColor||r,void 0!==e&&(o.x<e.left||e.right*f<o.x||o.y<e.top||e.bottom*f<o.y)&&(o.x<e.left?p=(u-o.x)/(e.left-o.x):e.right*f<o.x?p=(o.x-u)/(o.x-e.right):o.y<e.top?p=(d-o.y)/(e.top-o.y):e.bottom*f<o.y&&(p=(o.y-d)/(o.y-e.bottom)),p=Math.round(100*p)/100,s.strokeStyle=h(s.strokeStyle).alpha(p).rgbString(),s.fillStyle=h(s.fillStyle).alpha(p).rgbString()),t.canvasHelpers.drawPoint(s,l,c,u,d))}})}},{}],38:[function(t,e,i){"use strict";e.exports=function(t){function e(t){return void 0!==t._view.width}function i(t){var i,a,n,r,o=t._view;if(e(t)){var s=o.width/2;i=o.x-s,a=o.x+s,n=Math.min(o.y,o.base),r=Math.max(o.y,o.base)}else{var l=o.height/2;i=Math.min(o.x,o.base),a=Math.max(o.x,o.base),n=o.y-l,r=o.y+l}return{left:i,top:n,right:a,bottom:r}}var a=t.defaults.global;a.elements.rectangle={backgroundColor:a.defaultColor,borderWidth:0,borderColor:a.defaultColor,borderSkipped:"bottom"},t.elements.Rectangle=t.Element.extend({draw:function(){function t(t){return m[(y+t)%4]}var e,i,a,n,r,o,s,l=this._chart.ctx,c=this._view,u=c.borderWidth;if(c.horizontal?(e=c.base,i=c.x,a=c.y-c.height/2,n=c.y+c.height/2,r=i>e?1:-1,o=1,s=c.borderSkipped||"left"):(e=c.x-c.width/2,i=c.x+c.width/2,a=c.y,n=c.base,r=1,o=n>a?1:-1,s=c.borderSkipped||"bottom"),u){var d=Math.min(Math.abs(e-i),Math.abs(a-n));u=u>d?d:u;var h=u/2,f=e+("left"!==s?h*r:0),p=i+("right"!==s?-h*r:0),g=a+("top"!==s?h*o:0),v=n+("bottom"!==s?-h*o:0);f!==p&&(a=g,n=v),g!==v&&(e=f,i=p)}l.beginPath(),l.fillStyle=c.backgroundColor,l.strokeStyle=c.borderColor,l.lineWidth=u;var m=[[e,n],[e,a],[i,a],[i,n]],b=["bottom","left","top","right"],y=b.indexOf(s,0);y===-1&&(y=0);var x=t(0);l.moveTo(x[0],x[1]);for(var k=1;k<4;k++)x=t(k),l.lineTo(x[0],x[1]);l.fill(),u&&l.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var a=!1;if(this._view){var n=i(this);a=t>=n.left&&t<=n.right&&e>=n.top&&e<=n.bottom}return a},inLabelRange:function(t,a){var n=this;if(!n._view)return!1;var r=!1,o=i(n);return r=e(n)?t>=o.left&&t<=o.right:a>=o.top&&a<=o.bottom},inXRange:function(t){var e=i(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=i(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,i,a=this._view;return e(this)?(t=a.x,i=(a.y+a.base)/2):(t=(a.x+a.base)/2,i=a.y),{x:t,y:i}},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}}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(t){function e(t,e){var i=l.getStyle(t,e),a=i&&i.match(/^(\d+)(\.\d+)?px$/);return a?Number(a[1]):void 0}function i(t,i){var a=t.style,n=t.getAttribute("height"),r=t.getAttribute("width");if(t._chartjs={initial:{height:n,width:r,style:{display:a.display,height:a.height,width:a.width}}},a.display=a.display||"block",null===r||""===r){var o=e(t,"width");void 0!==o&&(t.width=o)}if(null===n||""===n)if(""===t.style.height)t.height=t.width/(i.options.aspectRatio||2);else{var s=e(t,"height");void 0!==o&&(t.height=s)}return t}function a(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){var i=c[t.type]||t.type,n=l.getRelativePosition(t,e);return a(i,e,n.x,n.y,t)}function r(t){var e=document.createElement("iframe");return e.className="chartjs-hidden-iframe",e.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;",e.tabIndex=-1,l.addEvent(e,"load",function(){l.addEvent(e.contentWindow||e,"resize",t),t()}),e}function o(t,e,i){var n=t._chartjs={ticking:!1},o=function(){n.ticking||(n.ticking=!0,l.requestAnimFrame.call(window,function(){if(n.resizer)return n.ticking=!1,e(a("resize",i))}))};n.resizer=r(o),t.insertBefore(n.resizer,t.firstChild)}function s(t){if(t&&t._chartjs){var e=t._chartjs.resizer;e&&(e.parentNode.removeChild(e),t._chartjs.resizer=null),delete t._chartjs}}var l=t.helpers,c={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};return{acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var a=t&&t.getContext&&t.getContext("2d");return a&&a.canvas===t?(i(t,e),a):null},releaseContext:function(t){var e=t.canvas;if(e._chartjs){var i=e._chartjs.initial;["height","width"].forEach(function(t){var a=i[t];void 0===a||null===a?e.removeAttribute(t):e.setAttribute(t,a)}),l.each(i.style||{},function(t,i){e.style[i]=t}),e.width=e.width,delete e._chartjs}},addEventListener:function(t,e,i){var a=t.canvas;if("resize"===e)return void o(a.parentNode,i,t);var r=i._chartjs||(i._chartjs={}),s=r.proxies||(r.proxies={}),c=s[t.id+"_"+e]=function(e){i(n(e,t))};l.addEvent(a,e,c)},removeEventListener:function(t,e,i){var a=t.canvas;if("resize"===e)return void s(a.parentNode,i);var n=i._chartjs||{},r=n.proxies||{},o=r[t.id+"_"+e];o&&l.removeEvent(a,e,o)}}}},{}],40:[function(t,e,i){"use strict";var a=t(39);e.exports=function(t){t.platform={acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},t.helpers.extend(t.platform,a(t))}},{39:39}],41:[function(t,e,i){"use strict";e.exports=function(t){function e(t,e,i){var a,n=t._model||{},r=n.fill;if(void 0===r&&(r=!!n.backgroundColor),r===!1||null===r)return!1;if(r===!0)return"origin";if(a=parseFloat(r,10),isFinite(a)&&Math.floor(a)===a)return"-"!==r[0]&&"+"!==r[0]||(a=e+a),!(a===e||a<0||a>=i)&&a;switch(r){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return r;default:return!1}}function i(t){var e,i=t.el._model||{},a=t.el._scale||{},n=t.fill,r=null;if(isFinite(n))return null;if("start"===n?r=void 0===i.scaleBottom?a.bottom:i.scaleBottom:"end"===n?r=void 0===i.scaleTop?a.top:i.scaleTop:void 0!==i.scaleZero?r=i.scaleZero:a.getBasePosition?r=a.getBasePosition():a.getBasePixel&&(r=a.getBasePixel()),void 0!==r&&null!==r){if(void 0!==r.x&&void 0!==r.y)return r;if("number"==typeof r&&isFinite(r))return e=a.isHorizontal(),{x:e?r:null,y:e?null:r}}return null}function a(t,e,i){var a,n=t[e],r=n.fill,o=[e];if(!i)return r;for(;r!==!1&&o.indexOf(r)===-1;){if(!isFinite(r))return r;if(a=t[r],!a)return!1;if(a.visible)return r;o.push(r),r=a.fill}return!1}function n(t){var e=t.fill,i="dataset";return e===!1?null:(isFinite(e)||(i="boundary"),u[i](t))}function r(t){return t&&!t.skip}function o(t,e,i,a,n){var r;if(a&&n){for(t.moveTo(e[0].x,e[0].y),r=1;r<a;++r)c.canvas.lineTo(t,e[r-1],e[r]);for(t.lineTo(i[n-1].x,i[n-1].y),r=n-1;r>0;--r)c.canvas.lineTo(t,i[r],i[r-1],!0)}}function s(t,e,i,a,n,s){var l,c,u,d,h,f,p,g=e.length,v=a.spanGaps,m=[],b=[],y=0,x=0;for(t.beginPath(),l=0,c=g+!!s;l<c;++l)u=l%g,d=e[u]._view,h=i(d,u,a),f=r(d),p=r(h),f&&p?(y=m.push(d),x=b.push(h)):y&&x&&(v?(f&&m.push(d),p&&b.push(h)):(o(t,m,b,y,x),y=x=0,m=[],b=[]));o(t,m,b,y,x),t.closePath(),t.fillStyle=n,t.fill()}t.defaults.global.plugins.filler={propagate:!0};var l=t.defaults,c=t.helpers,u={dataset:function(t){var e=t.fill,i=t.chart,a=i.getDatasetMeta(e),n=a&&i.isDatasetVisible(e),r=n&&a.dataset._children||[];return r.length?function(t,e){return r[e]._view||null}:null},boundary:function(t){var e=t.boundary,i=e?e.x:null,a=e?e.y:null;return function(t){return{x:null===i?t.x:i,y:null===a?t.y:a}}}};return{id:"filler",afterDatasetsUpdate:function(r,o){var s,l,c,u,d=(r.data.datasets||[]).length,h=o.propagate,f=[];for(l=0;l<d;++l)s=r.getDatasetMeta(l),c=s.dataset,u=null,c&&c._model&&c instanceof t.elements.Line&&(u={visible:r.isDatasetVisible(l),fill:e(c,l,d),chart:r,el:c}),s.$filler=u,f.push(u);for(l=0;l<d;++l)u=f[l],u&&(u.fill=a(f,l,h),u.boundary=i(u),u.mapper=n(u))},beforeDatasetDraw:function(t,e){var i=e.meta.$filler;if(i){var a=i.el,n=a._view,r=a._children||[],o=i.mapper,c=n.backgroundColor||l.global.defaultColor;o&&c&&r.length&&s(t.ctx,r,o,n,c,a._loop)}}}}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){function e(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function i(e,i){var a=new t.Legend({ctx:e.ctx,options:i,chart:e});n.configure(e,a,i),n.addBox(e,a),e.legend=a}var a=t.helpers,n=t.layoutService,r=a.noop;return t.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,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(t){var e=t.data;return a.isArray(e.datasets)?e.datasets.map(function(e,i){return{text:e.label,fillStyle:a.isArray(e.backgroundColor)?e.backgroundColor[0]:e.backgroundColor,hidden:!t.isDatasetVisible(i),lineCap:e.borderCapStyle,lineDash:e.borderDash,lineDashOffset:e.borderDashOffset,lineJoin:e.borderJoinStyle,lineWidth:e.borderWidth,strokeStyle:e.borderColor,pointStyle:e.pointStyle,datasetIndex:i}},this):[]}}},t.Legend=t.Element.extend({initialize:function(t){a.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:r,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:r,beforeSetDimensions:r,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:r,beforeBuildLabels:r,buildLabels:function(){var t=this,e=t.options.labels,i=e.generateLabels.call(t,t.chart);e.filter&&(i=i.filter(function(i){return e.filter(i,t.chart.data)})),t.options.reverse&&i.reverse(),t.legendItems=i},afterBuildLabels:r,beforeFit:r,fit:function(){var i=this,n=i.options,r=n.labels,o=n.display,s=i.ctx,l=t.defaults.global,c=a.getValueOrDefault,u=c(r.fontSize,l.defaultFontSize),d=c(r.fontStyle,l.defaultFontStyle),h=c(r.fontFamily,l.defaultFontFamily),f=a.fontString(u,d,h),p=i.legendHitBoxes=[],g=i.minSize,v=i.isHorizontal();if(v?(g.width=i.maxWidth,g.height=o?10:0):(g.width=o?10:0,g.height=i.maxHeight),o)if(s.font=f,v){var m=i.lineWidths=[0],b=i.legendItems.length?u+r.padding:0;s.textAlign="left",s.textBaseline="top",a.each(i.legendItems,function(t,a){var n=e(r,u),o=n+u/2+s.measureText(t.text).width;m[m.length-1]+o+r.padding>=i.width&&(b+=u+r.padding,m[m.length]=i.left),p[a]={left:0,top:0,width:o,height:u},m[m.length-1]+=o+r.padding}),g.height+=b}else{var y=r.padding,x=i.columnWidths=[],k=r.padding,w=0,M=0,_=u+y;a.each(i.legendItems,function(t,i){var a=e(r,u),n=a+u/2+s.measureText(t.text).width;M+_>g.height&&(k+=w+r.padding,x.push(w),w=0,M=0),w=Math.max(w,n),M+=_,p[i]={left:0,top:0,width:n,height:u}}),k+=w,x.push(w),g.width+=k}i.width=g.width,i.height=g.height},afterFit:r,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var i=this,n=i.options,r=n.labels,o=t.defaults.global,s=o.elements.line,l=i.width,c=i.lineWidths;if(n.display){var u,d=i.ctx,h=a.getValueOrDefault,f=h(r.fontColor,o.defaultFontColor),p=h(r.fontSize,o.defaultFontSize),g=h(r.fontStyle,o.defaultFontStyle),v=h(r.fontFamily,o.defaultFontFamily),m=a.fontString(p,g,v);d.textAlign="left",d.textBaseline="top",d.lineWidth=.5,d.strokeStyle=f,d.fillStyle=f,d.font=m;var b=e(r,p),y=i.legendHitBoxes,x=function(e,i,a){if(!(isNaN(b)||b<=0)){d.save(),d.fillStyle=h(a.fillStyle,o.defaultColor),d.lineCap=h(a.lineCap,s.borderCapStyle),d.lineDashOffset=h(a.lineDashOffset,s.borderDashOffset),d.lineJoin=h(a.lineJoin,s.borderJoinStyle),d.lineWidth=h(a.lineWidth,s.borderWidth),d.strokeStyle=h(a.strokeStyle,o.defaultColor);var r=0===h(a.lineWidth,s.borderWidth);if(d.setLineDash&&d.setLineDash(h(a.lineDash,s.borderDash)),n.labels&&n.labels.usePointStyle){var l=p*Math.SQRT2/2,c=l/Math.SQRT2,u=e+c,f=i+c;t.canvasHelpers.drawPoint(d,a.pointStyle,l,u,f)}else r||d.strokeRect(e,i,b,p),d.fillRect(e,i,b,p);d.restore()}},k=function(t,e,i,a){d.fillText(i.text,b+p/2+t,e),i.hidden&&(d.beginPath(),d.lineWidth=2,d.moveTo(b+p/2+t,e+p/2),d.lineTo(b+p/2+t+a,e+p/2),d.stroke())},w=i.isHorizontal();u=w?{x:i.left+(l-c[0])/2,y:i.top+r.padding,line:0}:{x:i.left+r.padding,y:i.top+r.padding,line:0};var M=p+r.padding;a.each(i.legendItems,function(t,e){var a=d.measureText(t.text).width,n=b+p/2+a,o=u.x,s=u.y;w?o+n>=l&&(s=u.y+=M,u.line++,o=u.x=i.left+(l-c[u.line])/2):s+M>i.bottom&&(o=u.x=o+i.columnWidths[u.line]+r.padding,s=u.y=i.top+r.padding,u.line++),x(o,s,t),y[e].left=o,y[e].top=s,k(o,s,t,a),w?u.x+=n+r.padding:u.y+=M})}},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 r=t.x,o=t.y;if(r>=e.left&&r<=e.right&&o>=e.top&&o<=e.bottom)for(var s=e.legendHitBoxes,l=0;l<s.length;++l){var c=s[l];if(r>=c.left&&r<=c.left+c.width&&o>=c.top&&o<=c.top+c.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}}),{id:"legend",beforeInit:function(t){var e=t.options.legend;e&&i(t,e)},beforeUpdate:function(e){var r=e.options.legend,o=e.legend;r?(r=a.configMerge(t.defaults.global.legend,r),o?(n.configure(e,o,r),o.options=r):i(e,r)):o&&(n.removeBox(e,o),delete e.legend)},afterEvent:function(t,e){var i=t.legend;i&&i.handleEvent(e)}}}},{}], 43:[function(t,e,i){"use strict";e.exports=function(t){function e(e,i){var n=new t.Title({ctx:e.ctx,options:i,chart:e});a.configure(e,n,i),a.addBox(e,n),e.titleBlock=n}var i=t.helpers,a=t.layoutService,n=i.noop;return t.defaults.global.title={display:!1,position:"top",fullWidth:!0,weight:2e3,fontStyle:"bold",padding:10,text:""},t.Title=t.Element.extend({initialize:function(t){var e=this;i.extend(e,t),e.legendHitBoxes=[]},beforeUpdate:n,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:n,beforeSetDimensions:n,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:n,beforeBuildLabels:n,buildLabels:n,afterBuildLabels:n,beforeFit:n,fit:function(){var e=this,a=i.getValueOrDefault,n=e.options,r=t.defaults.global,o=n.display,s=a(n.fontSize,r.defaultFontSize),l=e.minSize;e.isHorizontal()?(l.width=e.maxWidth,l.height=o?s+2*n.padding:0):(l.width=o?s+2*n.padding:0,l.height=e.maxHeight),e.width=l.width,e.height=l.height},afterFit:n,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var e=this,a=e.ctx,n=i.getValueOrDefault,r=e.options,o=t.defaults.global;if(r.display){var s,l,c,u=n(r.fontSize,o.defaultFontSize),d=n(r.fontStyle,o.defaultFontStyle),h=n(r.fontFamily,o.defaultFontFamily),f=i.fontString(u,d,h),p=0,g=e.top,v=e.left,m=e.bottom,b=e.right;a.fillStyle=n(r.fontColor,o.defaultFontColor),a.font=f,e.isHorizontal()?(s=v+(b-v)/2,l=g+(m-g)/2,c=b-v):(s="left"===r.position?v+u/2:b-u/2,l=g+(m-g)/2,c=m-g,p=Math.PI*("left"===r.position?-.5:.5)),a.save(),a.translate(s,l),a.rotate(p),a.textAlign="center",a.textBaseline="middle",a.fillText(r.text,0,0,c),a.restore()}}}),{id:"title",beforeInit:function(t){var i=t.options.title;i&&e(t,i)},beforeUpdate:function(n){var r=n.options.title,o=n.titleBlock;r?(r=i.configMerge(t.defaults.global.title,r),o?(a.configure(n,o,r),o.options=r):e(n,r)):o&&(t.layoutService.removeBox(n,o),delete n.titleBlock)}}}},{}],44:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"bottom"},a=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,i=t.getLabels();t.minIndex=0,t.maxIndex=i.length-1;var a;void 0!==t.options.ticks.min&&(a=e.indexOf(i,t.options.ticks.min),t.minIndex=a!==-1?a:t.minIndex),void 0!==t.options.ticks.max&&(a=e.indexOf(i,t.options.ticks.max),t.maxIndex=a!==-1?a:t.maxIndex),t.min=i[t.minIndex],t.max=i[t.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,r=this,o=Math.max(r.maxIndex+1-r.minIndex-(r.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&null!==t&&(n=r.isHorizontal()?t.x:t.y),void 0!==n||void 0!==t&&isNaN(e)){var s=r.getLabels();t=n||t;var l=s.indexOf(t);e=l!==-1?l:e}if(r.isHorizontal()){var c=r.width/o,u=c*(e-r.minIndex);return(r.options.gridLines.offsetGridLines&&a||r.maxIndex===r.minIndex&&a)&&(u+=c/2),r.left+Math.round(u)}var d=r.height/o,h=d*(e-r.minIndex);return r.options.gridLines.offsetGridLines&&a&&(h+=d/2),r.top+Math.round(h)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e,i=this,a=Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),n=i.isHorizontal(),r=(n?i.width:i.height)/a;return t-=n?i.left:i.top,i.options.gridLines.offsetGridLines&&(t-=r/2),e=t<=0?0:Math.round(t/r)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",a,i)}},{}],45:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:t.Ticks.formatters.linear}},a=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,a=i.options,n=i.chart,r=n.data,o=r.datasets,s=i.isHorizontal(),l=0,c=1;i.min=null,i.max=null;var u=a.stacked;if(void 0===u&&e.each(o,function(e,i){if(!u){var a=n.getDatasetMeta(i);n.isDatasetVisible(i)&&t(a)&&void 0!==a.stack&&(u=!0)}}),a.stacked||u){var d={};e.each(o,function(r,o){var s=n.getDatasetMeta(o),l=[s.type,void 0===a.stacked&&void 0===s.stack?o:"",s.stack].join(".");void 0===d[l]&&(d[l]={positiveValues:[],negativeValues:[]});var c=d[l].positiveValues,u=d[l].negativeValues;n.isDatasetVisible(o)&&t(s)&&e.each(r.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||s.data[e].hidden||(c[e]=c[e]||0,u[e]=u[e]||0,a.relativePoints?c[e]=100:n<0?u[e]+=n:c[e]+=n)})}),e.each(d,function(t){var a=t.positiveValues.concat(t.negativeValues),n=e.min(a),r=e.max(a);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?r:Math.max(i.max,r)})}else e.each(o,function(a,r){var o=n.getDatasetMeta(r);n.isDatasetVisible(r)&&t(o)&&e.each(a.data,function(t,e){var a=+i.getRightValue(t);isNaN(a)||o.data[e].hidden||(null===i.min?i.min=a:a<i.min&&(i.min=a),null===i.max?i.max=a:a>i.max&&(i.max=a))})});i.min=isFinite(i.min)?i.min:l,i.max=isFinite(i.max)?i.max:c,this.handleTickRangeOptions()},getTickLimit:function(){var i,a=this,n=a.options.ticks;if(a.isHorizontal())i=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(a.width/50));else{var r=e.getValueOrDefault(n.fontSize,t.defaults.global.defaultFontSize);i=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(a.height/(2*r)))}return i},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),r=i.end-a;return i.isHorizontal()?(e=i.left+i.width/r*(n-a),Math.round(e)):(e=i.bottom-i.height/r*(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])}});t.scaleService.registerScaleType("linear",a,i)}},{}],46:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options,a=i.ticks;if(a.beginAtZero){var n=e.sign(t.min),r=e.sign(t.max);n<0&&r<0?t.max=0:n>0&&r>0&&(t.min=0)}void 0!==a.min?t.min=a.min:void 0!==a.suggestedMin&&(null===t.min?t.min=a.suggestedMin:t.min=Math.min(t.min,a.suggestedMin)),void 0!==a.max?t.max=a.max:void 0!==a.suggestedMax&&(null===t.max?t.max=a.suggestedMax:t.max=Math.max(t.max,a.suggestedMax)),t.min===t.max&&(t.max++,a.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var i=this,a=i.options,n=a.ticks,r=i.getTickLimit();r=Math.max(2,r);var o={maxTicks:r,min:n.min,max:n.max,stepSize:e.getValueOrDefault(n.fixedStepSize,n.stepSize)},s=i.ticks=t.Ticks.generators.linear(o,i);i.handleDirectionalChanges(),i.max=e.max(s),i.min=e.min(s),n.reverse?(s.reverse(),i.start=i.max,i.end=i.min):(i.start=i.min,i.end=i.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],47:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:t.Ticks.formatters.logarithmic}},a=t.Scale.extend({determineDataLimits:function(){function t(t){return c?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,a=i.options,n=a.ticks,r=i.chart,o=r.data,s=o.datasets,l=e.getValueOrDefault,c=i.isHorizontal();i.min=null,i.max=null,i.minNotZero=null;var u=a.stacked;if(void 0===u&&e.each(s,function(e,i){if(!u){var a=r.getDatasetMeta(i);r.isDatasetVisible(i)&&t(a)&&void 0!==a.stack&&(u=!0)}}),a.stacked||u){var d={};e.each(s,function(n,o){var s=r.getDatasetMeta(o),l=[s.type,void 0===a.stacked&&void 0===s.stack?o:"",s.stack].join(".");r.isDatasetVisible(o)&&t(s)&&(void 0===d[l]&&(d[l]=[]),e.each(n.data,function(t,e){var n=d[l],r=+i.getRightValue(t);isNaN(r)||s.data[e].hidden||(n[e]=n[e]||0,a.relativePoints?n[e]=100:n[e]+=r)}))}),e.each(d,function(t){var a=e.min(t),n=e.max(t);i.min=null===i.min?a:Math.min(i.min,a),i.max=null===i.max?n:Math.max(i.max,n)})}else e.each(s,function(a,n){var o=r.getDatasetMeta(n);r.isDatasetVisible(n)&&t(o)&&e.each(a.data,function(t,e){var a=+i.getRightValue(t);isNaN(a)||o.data[e].hidden||(null===i.min?i.min=a:a<i.min&&(i.min=a),null===i.max?i.max=a:a>i.max&&(i.max=a),0!==a&&(null===i.minNotZero||a<i.minNotZero)&&(i.minNotZero=a))})});i.min=l(n.min,i.min),i.max=l(n.max,i.max),i.min===i.max&&(0!==i.min&&null!==i.min?(i.min=Math.pow(10,Math.floor(e.log10(i.min))-1),i.max=Math.pow(10,Math.floor(e.log10(i.max))+1)):(i.min=1,i.max=10))},buildTicks:function(){var i=this,a=i.options,n=a.ticks,r={min:n.min,max:n.max},o=i.ticks=t.Ticks.generators.logarithmic(r,i);i.isHorizontal()||o.reverse(),i.max=e.max(o),i.min=e.min(o),n.reverse?(o.reverse(),i.start=i.max,i.end=i.min):(i.start=i.min,i.end=i.max)},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),t.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 i,a,n,r=this,o=r.start,s=+r.getRightValue(t),l=r.options,c=l.ticks;return r.isHorizontal()?(n=e.log10(r.end)-e.log10(o),0===s?a=r.left:(i=r.width,a=r.left+i/n*(e.log10(s)-e.log10(o)))):(i=r.height,0!==o||c.reverse?0===r.end&&c.reverse?(n=e.log10(r.start)-e.log10(r.minNotZero),a=s===r.end?r.top:s===r.minNotZero?r.top+.02*i:r.top+.02*i+.98*i/n*(e.log10(s)-e.log10(r.minNotZero))):0===s?a=c.reverse?r.top:r.bottom:(n=e.log10(r.end)-e.log10(o),i=r.height,a=r.bottom-i/n*(e.log10(s)-e.log10(o))):(n=e.log10(r.end)-e.log10(r.minNotZero),a=s===o?r.bottom:s===r.minNotZero?r.bottom-.02*i:r.bottom-.02*i-.98*i/n*(e.log10(s)-e.log10(r.minNotZero)))),a},getValueForPixel:function(t){var i,a,n=this,r=e.log10(n.end)-e.log10(n.start);return n.isHorizontal()?(a=n.width,i=n.start*Math.pow(10,(t-n.left)*r/a)):(a=n.height,i=Math.pow(10,(n.bottom-t)*r/a)/n.start),i}});t.scaleService.registerScaleType("logarithmic",a,i)}},{}],48:[function(t,e,i){"use strict";e.exports=function(t){function e(t){var e=t.options;return e.angleLines.display||e.pointLabels.display?t.chart.data.labels.length:0}function i(t){var e=t.options.pointLabels,i=f.getValueOrDefault(e.fontSize,p.defaultFontSize),a=f.getValueOrDefault(e.fontStyle,p.defaultFontStyle),n=f.getValueOrDefault(e.fontFamily,p.defaultFontFamily),r=f.fontString(i,a,n);return{size:i,style:a,family:n,font:r}}function a(t,e,i){return f.isArray(i)?{w:f.longestText(t,t.font,i),h:i.length*e+1.5*(i.length-1)*e}:{w:t.measureText(i).width,h:e}}function n(t,e,i,a,n){return t===a||t===n?{start:e-i/2,end:e+i/2}:t<a||t>n?{start:e-i-5,end:e}:{start:e,end:e+i+5}}function r(t){var r,o,s,l=i(t),c=Math.min(t.height/2,t.width/2),u={r:t.width,l:0,t:t.height,b:0},d={};t.ctx.font=l.font,t._pointLabelSizes=[];var h=e(t);for(r=0;r<h;r++){s=t.getPointPosition(r,c),o=a(t.ctx,l.size,t.pointLabels[r]||""),t._pointLabelSizes[r]=o;var p=t.getIndexAngle(r),g=f.toDegrees(p)%360,v=n(g,s.x,o.w,0,180),m=n(g,s.y,o.h,90,270);v.start<u.l&&(u.l=v.start,d.l=p),v.end>u.r&&(u.r=v.end,d.r=p),m.start<u.t&&(u.t=m.start,d.t=p),m.end>u.b&&(u.b=m.end,d.b=p)}t.setReductions(c,u,d)}function o(t){var e=Math.min(t.height/2,t.width/2);t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0)}function s(t){return 0===t||180===t?"center":t<180?"left":"right"}function l(t,e,i,a){if(f.isArray(e))for(var n=i.y,r=1.5*a,o=0;o<e.length;++o)t.fillText(e[o],i.x,n),n+=r;else t.fillText(e,i.x,i.y)}function c(t,e,i){90===t||270===t?i.y-=e.h/2:(t>270||t<90)&&(i.y-=e.h)}function u(t){var a=t.ctx,n=f.getValueOrDefault,r=t.options,o=r.angleLines,u=r.pointLabels;a.lineWidth=o.lineWidth,a.strokeStyle=o.color;var d=t.getDistanceFromCenterForValue(r.reverse?t.min:t.max),h=i(t);a.textBaseline="top";for(var g=e(t)-1;g>=0;g--){if(o.display){var v=t.getPointPosition(g,d);a.beginPath(),a.moveTo(t.xCenter,t.yCenter),a.lineTo(v.x,v.y),a.stroke(),a.closePath()}if(u.display){var m=t.getPointPosition(g,d+5),b=n(u.fontColor,p.defaultFontColor);a.font=h.font,a.fillStyle=b;var y=t.getIndexAngle(g),x=f.toDegrees(y);a.textAlign=s(x),c(x,t._pointLabelSizes[g],m),l(a,t.pointLabels[g]||"",m,h.size)}}}function d(t,i,a,n){var r=t.ctx;if(r.strokeStyle=f.getValueAtIndexOrDefault(i.color,n-1),r.lineWidth=f.getValueAtIndexOrDefault(i.lineWidth,n-1),t.options.gridLines.circular)r.beginPath(),r.arc(t.xCenter,t.yCenter,a,0,2*Math.PI),r.closePath(),r.stroke();else{var o=e(t);if(0===o)return;r.beginPath();var s=t.getPointPosition(0,a);r.moveTo(s.x,s.y);for(var l=1;l<o;l++)s=t.getPointPosition(l,a),r.lineTo(s.x,s.y);r.closePath(),r.stroke()}}function h(t){return f.isNumber(t)?t:0}var f=t.helpers,p=t.defaults.global,g={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:t.Ticks.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}},v=t.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=f.min([t.height,t.width]),n=f.getValueOrDefault(i.fontSize,p.defaultFontSize);t.drawingArea=e.display?a/2-(n/2+i.backdropPaddingY):a/2},determineDataLimits:function(){var t=this,e=t.chart,i=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;f.each(e.data.datasets,function(n,r){if(e.isDatasetVisible(r)){var o=e.getDatasetMeta(r);f.each(n.data,function(e,n){var r=+t.getRightValue(e);isNaN(r)||o.data[n].hidden||(i=Math.min(r,i),a=Math.max(r,a))})}}),t.min=i===Number.POSITIVE_INFINITY?0:i,t.max=a===Number.NEGATIVE_INFINITY?0:a,t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,e=f.getValueOrDefault(t.fontSize,p.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*e)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){this.options.pointLabels.display?r(this):o(this)},setReductions:function(t,e,i){var a=this,n=e.l/Math.sin(i.l),r=Math.max(e.r-a.width,0)/Math.sin(i.r),o=-e.t/Math.cos(i.t),s=-Math.max(e.b-a.height,0)/Math.cos(i.b);n=h(n),r=h(r),o=h(o),s=h(s),a.drawingArea=Math.min(Math.round(t-(n+r)/2),Math.round(t-(o+s)/2)),a.setCenterPoint(n,r,o,s)},setCenterPoint:function(t,e,i,a){var n=this,r=n.width-e-n.drawingArea,o=t+n.drawingArea,s=i+n.drawingArea,l=n.height-a-n.drawingArea;n.xCenter=Math.round((o+r)/2+n.left),n.yCenter=Math.round((s+l)/2+n.top)},getIndexAngle:function(t){var i=2*Math.PI/e(this),a=this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0,n=a*Math.PI*2/360;return t*i+n},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,a=i.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(a)*e)+i.xCenter,y:Math.round(Math.sin(a)*e)+i.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this,e=t.min,i=t.max;return t.getPointPositionForValue(0,t.beginAtZero?0:e<0&&i<0?i:e>0&&i>0?e:0)},draw:function(){var t=this,e=t.options,i=e.gridLines,a=e.ticks,n=f.getValueOrDefault;if(e.display){var r=t.ctx,o=n(a.fontSize,p.defaultFontSize),s=n(a.fontStyle,p.defaultFontStyle),l=n(a.fontFamily,p.defaultFontFamily),c=f.fontString(o,s,l);f.each(t.ticks,function(s,l){if(l>0||e.reverse){var u=t.getDistanceFromCenterForValue(t.ticksAsNumbers[l]),h=t.yCenter-u;if(i.display&&0!==l&&d(t,i,u,l),a.display){var f=n(a.fontColor,p.defaultFontColor);if(r.font=c,a.showLabelBackdrop){var g=r.measureText(s).width;r.fillStyle=a.backdropColor,r.fillRect(t.xCenter-g/2-a.backdropPaddingX,h-o/2-a.backdropPaddingY,g+2*a.backdropPaddingX,o+2*a.backdropPaddingY)}r.textAlign="center",r.textBaseline="middle",r.fillStyle=f,r.fillText(s,t.xCenter,h)}}}),(e.angleLines.display||e.pointLabels.display)&&u(t)}}});t.scaleService.registerScaleType("radialLinear",v,g)}},{}],49:[function(t,e,i){"use strict";var a=t(1);a="function"==typeof a?a:window.moment,e.exports=function(t){function e(t,e){var i=t.options.time;if("string"==typeof i.parser)return a(e,i.parser);if("function"==typeof i.parser)return i.parser(e);if("function"==typeof e.getMonth||"number"==typeof e)return a(e);if(e.isValid&&e.isValid())return e;var n=i.format;return"string"!=typeof n&&n.call?(console.warn("options.time.format is deprecated and replaced by options.time.parser."),n(e)):a(e,n)}function i(t,e,i,a){for(var n,r=Object.keys(s),o=r.length,l=r.indexOf(t);l<o;l++){n=r[l];var c=s[n],u=c.steps&&c.steps[c.steps.length-1]||c.maxStep;if(void 0===u||Math.ceil((i-e)/(u*c.size))<=a)break}return n}function n(t,e,i,a){var n=s[i],r=n.size,o=Math.ceil((e-t)/r),l=1,c=e-t;if(n.steps)for(var u=n.steps.length,d=0;d<u&&o>a;d++)l=n.steps[d],o=Math.ceil(c/(r*l));else for(;o>a&&a>0;)++l,o=Math.ceil(c/(r*l));return l}function r(t,e,i){var n=[];if(t.maxTicks){var r=t.stepSize;n.push(void 0!==t.min?t.min:i.min);for(var o=a(i.min);o.add(r,t.unit).valueOf()<i.max;)n.push(o.valueOf());var s=t.max||i.max;n[n.length-1]!==s&&n.push(s)}return n}var o=t.helpers,s={millisecond:{size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{size:1e3,steps:[1,2,5,10,30]},minute:{size:6e4,steps:[1,2,5,10,30]},hour:{size:36e5,steps:[1,2,3,6,12]},day:{size:864e5,steps:[1,2,5]},week:{size:6048e5,maxStep:4},month:{size:2628e6,maxStep:3},quarter:{size:7884e6,maxStep:4},year:{size:3154e7,maxStep:!1}},l={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}};t.Ticks.generators.time=function(t,e){var i,n,o=t.isoWeekday;return"week"===t.unit&&o!==!1?(i=a(e.min).startOf("isoWeek").isoWeekday(o).valueOf(),n=a(e.max).startOf("isoWeek").isoWeekday(o),e.max-n>0&&n.add(1,"week"),n=n.valueOf()):(i=a(e.min).startOf(t.unit).valueOf(),n=a(e.max).startOf(t.unit),e.max-n>0&&n.add(1,t.unit),n=n.valueOf()),r(t,e,{min:i,max:n})};var c=t.Scale.extend({initialize:function(){if(!a)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");t.Scale.prototype.initialize.call(this)},determineDataLimits:function(){var t,i=this,a=i.options.time,n=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER,s=i.chart.data,l={labels:[],datasets:[]};o.each(s.labels,function(o,s){var c=e(i,o);c.isValid()&&(a.round&&c.startOf(a.round),t=c.valueOf(),n=Math.min(t,n),r=Math.max(t,r),l.labels[s]=t)}),o.each(s.datasets,function(s,c){var u=[];"object"==typeof s.data[0]&&null!==s.data[0]&&i.chart.isDatasetVisible(c)?o.each(s.data,function(o,s){var l=e(i,i.getRightValue(o));l.isValid()&&(a.round&&l.startOf(a.round),t=l.valueOf(),n=Math.min(t,n),r=Math.max(t,r),u[s]=t)}):u=l.labels.slice(),l.datasets[c]=u}),i.dataMin=n,i.dataMax=r,i._parsedData=l},buildTicks:function(){var a,r,s=this,l=s.options.time,c=s.dataMin,u=s.dataMax;if(l.min){var d=e(s,l.min);l.round&&d.round(l.round),a=d.valueOf()}l.max&&(r=e(s,l.max).valueOf());var h=s.getLabelCapacity(a||c),f=l.unit||i(l.minUnit,a||c,r||u,h);s.displayFormat=l.displayFormats[f];var p=l.stepSize||n(a||c,r||u,f,h);s.ticks=t.Ticks.generators.time({maxTicks:h,min:a,max:r,stepSize:p,unit:f,isoWeekday:l.isoWeekday},{min:c,max:u}),s.max=o.max(s.ticks),s.min=o.min(s.ticks)},getLabelForIndex:function(t,i){var a=this,n=a.chart.data.labels&&t<a.chart.data.labels.length?a.chart.data.labels[t]:"",r=a.chart.data.datasets[i].data[t];return null!==r&&"object"==typeof r&&(n=a.getRightValue(r)),a.options.time.tooltipFormat&&(n=e(a,n).format(a.options.time.tooltipFormat)),n},tickFormatFunction:function(t,e,i){var a=t.format(this.displayFormat),n=this.options.ticks,r=o.getValueOrDefault(n.callback,n.userCallback);return r?r(a,e,i):a},convertTicksToLabels:function(){var t=this;t.ticksAsTimestamps=t.ticks,t.ticks=t.ticks.map(function(t){return a(t)}).map(t.tickFormatFunction,t)},getPixelForOffset:function(t){var e=this,i=e.max-e.min,a=i?(t-e.min)/i:0;if(e.isHorizontal()){var n=e.width*a;return e.left+Math.round(n)}var r=e.height*a;return e.top+Math.round(r)},getPixelForValue:function(t,i,a){var n=this,r=null;if(void 0!==i&&void 0!==a&&(r=n._parsedData.datasets[a][i]),null===r&&(t&&t.isValid||(t=e(n,n.getRightValue(t))),t&&t.isValid&&t.isValid()&&(r=t.valueOf())),null!==r)return n.getPixelForOffset(r)},getPixelForTick:function(t){return this.getPixelForOffset(this.ticksAsTimestamps[t])},getValueForPixel:function(t){var e=this,i=e.isHorizontal()?e.width:e.height,n=(t-(e.isHorizontal()?e.left:e.top))/i;return a(e.min+n*(e.max-e.min))},getLabelWidth:function(e){var i=this,a=i.options.ticks,n=i.ctx.measureText(e).width,r=Math.cos(o.toRadians(a.maxRotation)),s=Math.sin(o.toRadians(a.maxRotation)),l=o.getValueOrDefault(a.fontSize,t.defaults.global.defaultFontSize);return n*r+l*s},getLabelCapacity:function(t){var e=this;e.displayFormat=e.options.time.displayFormats.millisecond;var i=e.tickFormatFunction(a(t),0,[]),n=e.getLabelWidth(i),r=e.isHorizontal()?e.width:e.height,o=r/n;return o}});t.scaleService.registerScaleType("time",c,l)}},{1:1}]},{},[7])(7)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,i){var a;a=function(){function t(){var t,e,i,a,n,r,o,s;for(console.log("initiliazed a ScrollHandler!"),o=["h1","h2","h3","h4","h5","h6"],i=0,n=o.length;i<n;i++)for(e=o[i],s=$(e),a=0,r=s.length;a<r;a++)t=s[a],console.log(e,$(t).attr("id"),$(t).offset().top);$("window").scroll(console.log("scrolling!")),this.handle()}return t.prototype.handle=function(){return this.currentScroll=$("body").scrollTop(),console.log(this.currentScroll)},t}(),e.exports=a},{}],3:[function(t,e,i){var a=document.getElementById("engagementchart");if(null!=a){new Chart(a,{type:"doughnut",data:{labels:["Non Bio Savvy","Bio Savvy"],datasets:[{data:[42,58],backgroundColor:["#FF4C49","#39BAC1"],borderColor:["#fff","#fff"],borderWidth:2}]},options:{cutoutPercentage:70}})}else console.log("No Chart")},{}],4:[function(t,e,i){},{}],5:[function(t,e,i){ScrollHandler=t("./ScrollHandler"),$(document).ready(function(){$("body").scrollspy({target:"#tableofcontents"})})},{"./ScrollHandler":2}],6:[function(t,e,i){function a(t){var e=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;t=t.replace(e,function(t,e,i,a){return e+e+i+i+a+a});var i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return i?{r:parseInt(i[1],16),g:parseInt(i[2],16),b:parseInt(i[3],16)}:null}function n(t,e,i){return Math.min(Math.max(t,e),i)}function r(t,e){return e.indexOf(t)>-1}var o=function(t,e){var i=document.querySelector("#"+t+" > .particles-js-canvas-el");this.pJS={canvas:{el:i,w:i.offsetWidth,h:i.offsetHeight},particles:{number:{value:400,density:{enable:!0,value_area:800}},color:{value:"#fff"},shape:{type:"circle",stroke:{width:0,color:"#ff0000"},polygon:{nb_sides:5},image:{src:"",width:100,height:100}},opacity:{value:1,random:!1,anim:{enable:!1,speed:2,opacity_min:0,sync:!1}},size:{value:20,random:!1,anim:{enable:!1,speed:20,size_min:0,sync:!1}},line_linked:{enable:!0,distance:100,color:"#fff",opacity:1,width:1},move:{enable:!0,speed:2,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:3e3,rotateY:3e3}},array:[]},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"grab"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:100,line_linked:{opacity:1}},bubble:{distance:200,size:80,duration:.4},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}},mouse:{}},retina_detect:!1,fn:{interact:{},modes:{},vendors:{}},tmp:{}};var o=this.pJS;e&&Object.deepExtend(o,e),o.tmp.obj={size_value:o.particles.size.value,size_anim_speed:o.particles.size.anim.speed,move_speed:o.particles.move.speed,line_linked_distance:o.particles.line_linked.distance,line_linked_width:o.particles.line_linked.width,mode_grab_distance:o.interactivity.modes.grab.distance,mode_bubble_distance:o.interactivity.modes.bubble.distance,mode_bubble_size:o.interactivity.modes.bubble.size,mode_repulse_distance:o.interactivity.modes.repulse.distance},o.fn.retinaInit=function(){o.retina_detect&&window.devicePixelRatio>1?(o.canvas.pxratio=window.devicePixelRatio,o.tmp.retina=!0):(o.canvas.pxratio=1,o.tmp.retina=!1),o.canvas.w=o.canvas.el.offsetWidth*o.canvas.pxratio,o.canvas.h=o.canvas.el.offsetHeight*o.canvas.pxratio,o.particles.size.value=o.tmp.obj.size_value*o.canvas.pxratio,o.particles.size.anim.speed=o.tmp.obj.size_anim_speed*o.canvas.pxratio,o.particles.move.speed=o.tmp.obj.move_speed*o.canvas.pxratio,o.particles.line_linked.distance=o.tmp.obj.line_linked_distance*o.canvas.pxratio,o.interactivity.modes.grab.distance=o.tmp.obj.mode_grab_distance*o.canvas.pxratio,o.interactivity.modes.bubble.distance=o.tmp.obj.mode_bubble_distance*o.canvas.pxratio,o.particles.line_linked.width=o.tmp.obj.line_linked_width*o.canvas.pxratio,o.interactivity.modes.bubble.size=o.tmp.obj.mode_bubble_size*o.canvas.pxratio,o.interactivity.modes.repulse.distance=o.tmp.obj.mode_repulse_distance*o.canvas.pxratio},o.fn.canvasInit=function(){o.canvas.ctx=o.canvas.el.getContext("2d")},o.fn.canvasSize=function(){o.canvas.el.width=o.canvas.w,o.canvas.el.height=o.canvas.h,o&&o.interactivity.events.resize&&window.addEventListener("resize",function(){o.canvas.w=o.canvas.el.offsetWidth,o.canvas.h=o.canvas.el.offsetHeight,o.tmp.retina&&(o.canvas.w*=o.canvas.pxratio,o.canvas.h*=o.canvas.pxratio),o.canvas.el.width=o.canvas.w,o.canvas.el.height=o.canvas.h,o.particles.move.enable||(o.fn.particlesEmpty(),o.fn.particlesCreate(),o.fn.particlesDraw(),o.fn.vendors.densityAutoParticles()),o.fn.vendors.densityAutoParticles()})},o.fn.canvasPaint=function(){o.canvas.ctx.fillRect(0,0,o.canvas.w,o.canvas.h)},o.fn.canvasClear=function(){o.canvas.ctx.clearRect(0,0,o.canvas.w,o.canvas.h)},o.fn.particle=function(t,e,i){if(this.radius=(o.particles.size.random?Math.random():1)*o.particles.size.value,o.particles.size.anim.enable&&(this.size_status=!1,this.vs=o.particles.size.anim.speed/100,o.particles.size.anim.sync||(this.vs=this.vs*Math.random())),this.x=i?i.x:Math.random()*o.canvas.w,this.y=i?i.y:Math.random()*o.canvas.h,this.x>o.canvas.w-2*this.radius?this.x=this.x-this.radius:this.x<2*this.radius&&(this.x=this.x+this.radius),this.y>o.canvas.h-2*this.radius?this.y=this.y-this.radius:this.y<2*this.radius&&(this.y=this.y+this.radius),o.particles.move.bounce&&o.fn.vendors.checkOverlap(this,i),this.color={},"object"==typeof t.value)if(t.value instanceof Array){var n=t.value[Math.floor(Math.random()*o.particles.color.value.length)];this.color.rgb=a(n)}else void 0!=t.value.r&&void 0!=t.value.g&&void 0!=t.value.b&&(this.color.rgb={r:t.value.r,g:t.value.g,b:t.value.b}),void 0!=t.value.h&&void 0!=t.value.s&&void 0!=t.value.l&&(this.color.hsl={h:t.value.h,s:t.value.s,l:t.value.l});else"random"==t.value?this.color.rgb={r:Math.floor(256*Math.random())+0,g:Math.floor(256*Math.random())+0,b:Math.floor(256*Math.random())+0}:"string"==typeof t.value&&(this.color=t,this.color.rgb=a(this.color.value));this.opacity=(o.particles.opacity.random?Math.random():1)*o.particles.opacity.value,o.particles.opacity.anim.enable&&(this.opacity_status=!1,this.vo=o.particles.opacity.anim.speed/100,o.particles.opacity.anim.sync||(this.vo=this.vo*Math.random()));var r={};switch(o.particles.move.direction){case"top":r={x:0,y:-1};break;case"top-right":r={x:.5,y:-.5};break;case"right":r={x:1,y:-0};break;case"bottom-right":r={x:.5,y:.5};break;case"bottom":r={x:0,y:1};break;case"bottom-left":r={x:-.5,y:1};break;case"left":r={x:-1,y:0};break;case"top-left":r={x:-.5,y:-.5};break;default:r={x:0,y:0}}o.particles.move.straight?(this.vx=r.x,this.vy=r.y,o.particles.move.random&&(this.vx=this.vx*Math.random(),this.vy=this.vy*Math.random())):(this.vx=r.x+Math.random()-.5,this.vy=r.y+Math.random()-.5),this.vx_i=this.vx,this.vy_i=this.vy;var s=o.particles.shape.type;if("object"==typeof s){if(s instanceof Array){var l=s[Math.floor(Math.random()*s.length)];this.shape=l}}else this.shape=s;if("image"==this.shape){var c=o.particles.shape;this.img={src:c.image.src,ratio:c.image.width/c.image.height},this.img.ratio||(this.img.ratio=1),"svg"==o.tmp.img_type&&void 0!=o.tmp.source_svg&&(o.fn.vendors.createSvgImg(this),o.tmp.pushing&&(this.img.loaded=!1))}},o.fn.particle.prototype.draw=function(){function t(){o.canvas.ctx.drawImage(r,e.x-i,e.y-i,2*i,2*i/e.img.ratio)}var e=this;if(void 0!=e.radius_bubble)var i=e.radius_bubble;else var i=e.radius;if(void 0!=e.opacity_bubble)var a=e.opacity_bubble;else var a=e.opacity;if(e.color.rgb)var n="rgba("+e.color.rgb.r+","+e.color.rgb.g+","+e.color.rgb.b+","+a+")";else var n="hsla("+e.color.hsl.h+","+e.color.hsl.s+"%,"+e.color.hsl.l+"%,"+a+")";switch(o.canvas.ctx.fillStyle=n,o.canvas.ctx.beginPath(),e.shape){case"circle":o.canvas.ctx.arc(e.x,e.y,i,0,2*Math.PI,!1);break;case"edge":o.canvas.ctx.rect(e.x-i,e.y-i,2*i,2*i);break;case"triangle":o.fn.vendors.drawShape(o.canvas.ctx,e.x-i,e.y+i/1.66,2*i,3,2);break;case"polygon":o.fn.vendors.drawShape(o.canvas.ctx,e.x-i/(o.particles.shape.polygon.nb_sides/3.5),e.y-i/.76,2.66*i/(o.particles.shape.polygon.nb_sides/3),o.particles.shape.polygon.nb_sides,1);break;case"star":o.fn.vendors.drawShape(o.canvas.ctx,e.x-2*i/(o.particles.shape.polygon.nb_sides/4),e.y-i/1.52,2*i*2.66/(o.particles.shape.polygon.nb_sides/3),o.particles.shape.polygon.nb_sides,2);break;case"image":if("svg"==o.tmp.img_type)var r=e.img.obj;else var r=o.tmp.img_obj;r&&t()}o.canvas.ctx.closePath(),o.particles.shape.stroke.width>0&&(o.canvas.ctx.strokeStyle=o.particles.shape.stroke.color,o.canvas.ctx.lineWidth=o.particles.shape.stroke.width,o.canvas.ctx.stroke()),o.canvas.ctx.fill()},o.fn.particlesCreate=function(){for(var t=0;t<o.particles.number.value;t++)o.particles.array.push(new o.fn.particle(o.particles.color,o.particles.opacity.value))},o.fn.particlesUpdate=function(){for(var t=0;t<o.particles.array.length;t++){var e=o.particles.array[t];if(o.particles.move.enable){var i=o.particles.move.speed/2;e.x+=e.vx*i,e.y+=e.vy*i}if(o.particles.opacity.anim.enable&&(1==e.opacity_status?(e.opacity>=o.particles.opacity.value&&(e.opacity_status=!1),e.opacity+=e.vo):(e.opacity<=o.particles.opacity.anim.opacity_min&&(e.opacity_status=!0),e.opacity-=e.vo),e.opacity<0&&(e.opacity=0)),o.particles.size.anim.enable&&(1==e.size_status?(e.radius>=o.particles.size.value&&(e.size_status=!1),e.radius+=e.vs):(e.radius<=o.particles.size.anim.size_min&&(e.size_status=!0),e.radius-=e.vs),e.radius<0&&(e.radius=0)),"bounce"==o.particles.move.out_mode)var a={x_left:e.radius,x_right:o.canvas.w,y_top:e.radius,y_bottom:o.canvas.h};else var a={x_left:-e.radius,x_right:o.canvas.w+e.radius, y_top:-e.radius,y_bottom:o.canvas.h+e.radius};switch(e.x-e.radius>o.canvas.w?(e.x=a.x_left,e.y=Math.random()*o.canvas.h):e.x+e.radius<0&&(e.x=a.x_right,e.y=Math.random()*o.canvas.h),e.y-e.radius>o.canvas.h?(e.y=a.y_top,e.x=Math.random()*o.canvas.w):e.y+e.radius<0&&(e.y=a.y_bottom,e.x=Math.random()*o.canvas.w),o.particles.move.out_mode){case"bounce":e.x+e.radius>o.canvas.w?e.vx=-e.vx:e.x-e.radius<0&&(e.vx=-e.vx),e.y+e.radius>o.canvas.h?e.vy=-e.vy:e.y-e.radius<0&&(e.vy=-e.vy)}if(r("grab",o.interactivity.events.onhover.mode)&&o.fn.modes.grabParticle(e),(r("bubble",o.interactivity.events.onhover.mode)||r("bubble",o.interactivity.events.onclick.mode))&&o.fn.modes.bubbleParticle(e),(r("repulse",o.interactivity.events.onhover.mode)||r("repulse",o.interactivity.events.onclick.mode))&&o.fn.modes.repulseParticle(e),o.particles.line_linked.enable||o.particles.move.attract.enable)for(var n=t+1;n<o.particles.array.length;n++){var s=o.particles.array[n];o.particles.line_linked.enable&&o.fn.interact.linkParticles(e,s),o.particles.move.attract.enable&&o.fn.interact.attractParticles(e,s),o.particles.move.bounce&&o.fn.interact.bounceParticles(e,s)}}},o.fn.particlesDraw=function(){o.canvas.ctx.clearRect(0,0,o.canvas.w,o.canvas.h),o.fn.particlesUpdate();for(var t=0;t<o.particles.array.length;t++){var e=o.particles.array[t];e.draw()}},o.fn.particlesEmpty=function(){o.particles.array=[]},o.fn.particlesRefresh=function(){cancelRequestAnimFrame(o.fn.checkAnimFrame),cancelRequestAnimFrame(o.fn.drawAnimFrame),o.tmp.source_svg=void 0,o.tmp.img_obj=void 0,o.tmp.count_svg=0,o.fn.particlesEmpty(),o.fn.canvasClear(),o.fn.vendors.start()},o.fn.interact.linkParticles=function(t,e){var i=t.x-e.x,a=t.y-e.y,n=Math.sqrt(i*i+a*a);if(n<=o.particles.line_linked.distance){var r=o.particles.line_linked.opacity-n/(1/o.particles.line_linked.opacity)/o.particles.line_linked.distance;if(r>0){var s=o.particles.line_linked.color_rgb_line;o.canvas.ctx.strokeStyle="rgba("+s.r+","+s.g+","+s.b+","+r+")",o.canvas.ctx.lineWidth=o.particles.line_linked.width,o.canvas.ctx.beginPath(),o.canvas.ctx.moveTo(t.x,t.y),o.canvas.ctx.lineTo(e.x,e.y),o.canvas.ctx.stroke(),o.canvas.ctx.closePath()}}},o.fn.interact.attractParticles=function(t,e){var i=t.x-e.x,a=t.y-e.y,n=Math.sqrt(i*i+a*a);if(n<=o.particles.line_linked.distance){var r=i/(1e3*o.particles.move.attract.rotateX),s=a/(1e3*o.particles.move.attract.rotateY);t.vx-=r,t.vy-=s,e.vx+=r,e.vy+=s}},o.fn.interact.bounceParticles=function(t,e){var i=t.x-e.x,a=t.y-e.y,n=Math.sqrt(i*i+a*a),r=t.radius+e.radius;n<=r&&(t.vx=-t.vx,t.vy=-t.vy,e.vx=-e.vx,e.vy=-e.vy)},o.fn.modes.pushParticles=function(t,e){o.tmp.pushing=!0;for(var i=0;i<t;i++)o.particles.array.push(new o.fn.particle(o.particles.color,o.particles.opacity.value,{x:e?e.pos_x:Math.random()*o.canvas.w,y:e?e.pos_y:Math.random()*o.canvas.h})),i==t-1&&(o.particles.move.enable||o.fn.particlesDraw(),o.tmp.pushing=!1)},o.fn.modes.removeParticles=function(t){o.particles.array.splice(0,t),o.particles.move.enable||o.fn.particlesDraw()},o.fn.modes.bubbleParticle=function(t){function e(){t.opacity_bubble=t.opacity,t.radius_bubble=t.radius}function i(e,i,a,n,r){if(e!=i)if(o.tmp.bubble_duration_end){if(void 0!=a){var l=n-h*(n-e)/o.interactivity.modes.bubble.duration,c=e-l;d=e+c,"size"==r&&(t.radius_bubble=d),"opacity"==r&&(t.opacity_bubble=d)}}else if(s<=o.interactivity.modes.bubble.distance){if(void 0!=a)var u=a;else var u=n;if(u!=e){var d=n-h*(n-e)/o.interactivity.modes.bubble.duration;"size"==r&&(t.radius_bubble=d),"opacity"==r&&(t.opacity_bubble=d)}}else"size"==r&&(t.radius_bubble=void 0),"opacity"==r&&(t.opacity_bubble=void 0)}if(o.interactivity.events.onhover.enable&&r("bubble",o.interactivity.events.onhover.mode)){var a=t.x-o.interactivity.mouse.pos_x,n=t.y-o.interactivity.mouse.pos_y,s=Math.sqrt(a*a+n*n),l=1-s/o.interactivity.modes.bubble.distance;if(s<=o.interactivity.modes.bubble.distance){if(l>=0&&"mousemove"==o.interactivity.status){if(o.interactivity.modes.bubble.size!=o.particles.size.value)if(o.interactivity.modes.bubble.size>o.particles.size.value){var c=t.radius+o.interactivity.modes.bubble.size*l;c>=0&&(t.radius_bubble=c)}else{var u=t.radius-o.interactivity.modes.bubble.size,c=t.radius-u*l;c>0?t.radius_bubble=c:t.radius_bubble=0}if(o.interactivity.modes.bubble.opacity!=o.particles.opacity.value)if(o.interactivity.modes.bubble.opacity>o.particles.opacity.value){var d=o.interactivity.modes.bubble.opacity*l;d>t.opacity&&d<=o.interactivity.modes.bubble.opacity&&(t.opacity_bubble=d)}else{var d=t.opacity-(o.particles.opacity.value-o.interactivity.modes.bubble.opacity)*l;d<t.opacity&&d>=o.interactivity.modes.bubble.opacity&&(t.opacity_bubble=d)}}}else e();"mouseleave"==o.interactivity.status&&e()}else if(o.interactivity.events.onclick.enable&&r("bubble",o.interactivity.events.onclick.mode)){if(o.tmp.bubble_clicking){var a=t.x-o.interactivity.mouse.click_pos_x,n=t.y-o.interactivity.mouse.click_pos_y,s=Math.sqrt(a*a+n*n),h=((new Date).getTime()-o.interactivity.mouse.click_time)/1e3;h>o.interactivity.modes.bubble.duration&&(o.tmp.bubble_duration_end=!0),h>2*o.interactivity.modes.bubble.duration&&(o.tmp.bubble_clicking=!1,o.tmp.bubble_duration_end=!1)}o.tmp.bubble_clicking&&(i(o.interactivity.modes.bubble.size,o.particles.size.value,t.radius_bubble,t.radius,"size"),i(o.interactivity.modes.bubble.opacity,o.particles.opacity.value,t.opacity_bubble,t.opacity,"opacity"))}},o.fn.modes.repulseParticle=function(t){function e(){var e=Math.atan2(p,f);if(t.vx=v*Math.cos(e),t.vy=v*Math.sin(e),"bounce"==o.particles.move.out_mode){var i={x:t.x+t.vx,y:t.y+t.vy};i.x+t.radius>o.canvas.w?t.vx=-t.vx:i.x-t.radius<0&&(t.vx=-t.vx),i.y+t.radius>o.canvas.h?t.vy=-t.vy:i.y-t.radius<0&&(t.vy=-t.vy)}}if(o.interactivity.events.onhover.enable&&r("repulse",o.interactivity.events.onhover.mode)&&"mousemove"==o.interactivity.status){var i=t.x-o.interactivity.mouse.pos_x,a=t.y-o.interactivity.mouse.pos_y,s=Math.sqrt(i*i+a*a),l={x:i/s,y:a/s},c=o.interactivity.modes.repulse.distance,u=100,d=n(1/c*(-1*Math.pow(s/c,2)+1)*c*u,0,50),h={x:t.x+l.x*d,y:t.y+l.y*d};"bounce"==o.particles.move.out_mode?(h.x-t.radius>0&&h.x+t.radius<o.canvas.w&&(t.x=h.x),h.y-t.radius>0&&h.y+t.radius<o.canvas.h&&(t.y=h.y)):(t.x=h.x,t.y=h.y)}else if(o.interactivity.events.onclick.enable&&r("repulse",o.interactivity.events.onclick.mode))if(o.tmp.repulse_finish||(o.tmp.repulse_count++,o.tmp.repulse_count==o.particles.array.length&&(o.tmp.repulse_finish=!0)),o.tmp.repulse_clicking){var c=Math.pow(o.interactivity.modes.repulse.distance/6,3),f=o.interactivity.mouse.click_pos_x-t.x,p=o.interactivity.mouse.click_pos_y-t.y,g=f*f+p*p,v=-c/g*1;g<=c&&e()}else 0==o.tmp.repulse_clicking&&(t.vx=t.vx_i,t.vy=t.vy_i)},o.fn.modes.grabParticle=function(t){if(o.interactivity.events.onhover.enable&&"mousemove"==o.interactivity.status){var e=t.x-o.interactivity.mouse.pos_x,i=t.y-o.interactivity.mouse.pos_y,a=Math.sqrt(e*e+i*i);if(a<=o.interactivity.modes.grab.distance){var n=o.interactivity.modes.grab.line_linked.opacity-a/(1/o.interactivity.modes.grab.line_linked.opacity)/o.interactivity.modes.grab.distance;if(n>0){var r=o.particles.line_linked.color_rgb_line;o.canvas.ctx.strokeStyle="rgba("+r.r+","+r.g+","+r.b+","+n+")",o.canvas.ctx.lineWidth=o.particles.line_linked.width,o.canvas.ctx.beginPath(),o.canvas.ctx.moveTo(t.x,t.y),o.canvas.ctx.lineTo(o.interactivity.mouse.pos_x,o.interactivity.mouse.pos_y),o.canvas.ctx.stroke(),o.canvas.ctx.closePath()}}}},o.fn.vendors.eventsListeners=function(){"window"==o.interactivity.detect_on?o.interactivity.el=window:o.interactivity.el=o.canvas.el,(o.interactivity.events.onhover.enable||o.interactivity.events.onclick.enable)&&(o.interactivity.el.addEventListener("mousemove",function(t){if(o.interactivity.el==window)var e=t.clientX,i=t.clientY;else var e=t.offsetX||t.clientX,i=t.offsetY||t.clientY;o.interactivity.mouse.pos_x=e,o.interactivity.mouse.pos_y=i,o.tmp.retina&&(o.interactivity.mouse.pos_x*=o.canvas.pxratio,o.interactivity.mouse.pos_y*=o.canvas.pxratio),o.interactivity.status="mousemove"}),o.interactivity.el.addEventListener("mouseleave",function(t){o.interactivity.mouse.pos_x=null,o.interactivity.mouse.pos_y=null,o.interactivity.status="mouseleave"})),o.interactivity.events.onclick.enable&&o.interactivity.el.addEventListener("click",function(){if(o.interactivity.mouse.click_pos_x=o.interactivity.mouse.pos_x,o.interactivity.mouse.click_pos_y=o.interactivity.mouse.pos_y,o.interactivity.mouse.click_time=(new Date).getTime(),o.interactivity.events.onclick.enable)switch(o.interactivity.events.onclick.mode){case"push":o.particles.move.enable?o.fn.modes.pushParticles(o.interactivity.modes.push.particles_nb,o.interactivity.mouse):1==o.interactivity.modes.push.particles_nb?o.fn.modes.pushParticles(o.interactivity.modes.push.particles_nb,o.interactivity.mouse):o.interactivity.modes.push.particles_nb>1&&o.fn.modes.pushParticles(o.interactivity.modes.push.particles_nb);break;case"remove":o.fn.modes.removeParticles(o.interactivity.modes.remove.particles_nb);break;case"bubble":o.tmp.bubble_clicking=!0;break;case"repulse":o.tmp.repulse_clicking=!0,o.tmp.repulse_count=0,o.tmp.repulse_finish=!1,setTimeout(function(){o.tmp.repulse_clicking=!1},1e3*o.interactivity.modes.repulse.duration)}})},o.fn.vendors.densityAutoParticles=function(){if(o.particles.number.density.enable){var t=o.canvas.el.width*o.canvas.el.height/1e3;o.tmp.retina&&(t/=2*o.canvas.pxratio);var e=t*o.particles.number.value/o.particles.number.density.value_area,i=o.particles.array.length-e;i<0?o.fn.modes.pushParticles(Math.abs(i)):o.fn.modes.removeParticles(i)}},o.fn.vendors.checkOverlap=function(t,e){for(var i=0;i<o.particles.array.length;i++){var a=o.particles.array[i],n=t.x-a.x,r=t.y-a.y,s=Math.sqrt(n*n+r*r);s<=t.radius+a.radius&&(t.x=e?e.x:Math.random()*o.canvas.w,t.y=e?e.y:Math.random()*o.canvas.h,o.fn.vendors.checkOverlap(t))}},o.fn.vendors.createSvgImg=function(t){var e=o.tmp.source_svg,i=/#([0-9A-F]{3,6})/gi,a=e.replace(i,function(e,i,a,n){if(t.color.rgb)var r="rgba("+t.color.rgb.r+","+t.color.rgb.g+","+t.color.rgb.b+","+t.opacity+")";else var r="hsla("+t.color.hsl.h+","+t.color.hsl.s+"%,"+t.color.hsl.l+"%,"+t.opacity+")";return r}),n=new Blob([a],{type:"image/svg+xml;charset=utf-8"}),r=window.URL||window.webkitURL||window,s=r.createObjectURL(n),l=new Image;l.addEventListener("load",function(){t.img.obj=l,t.img.loaded=!0,r.revokeObjectURL(s),o.tmp.count_svg++}),l.src=s},o.fn.vendors.destroypJS=function(){cancelAnimationFrame(o.fn.drawAnimFrame),i.remove(),pJSDom=null},o.fn.vendors.drawShape=function(t,e,i,a,n,r){var o=n*r,s=n/r,l=180*(s-2)/s,c=Math.PI-Math.PI*l/180;t.save(),t.beginPath(),t.translate(e,i),t.moveTo(0,0);for(var u=0;u<o;u++)t.lineTo(a,0),t.translate(a,0),t.rotate(c);t.fill(),t.restore()},o.fn.vendors.exportImg=function(){window.open(o.canvas.el.toDataURL("image/png"),"_blank")},o.fn.vendors.loadImg=function(t){if(o.tmp.img_error=void 0,""!=o.particles.shape.image.src)if("svg"==t){var e=new XMLHttpRequest;e.open("GET",o.particles.shape.image.src),e.onreadystatechange=function(t){4==e.readyState&&(200==e.status?(o.tmp.source_svg=t.currentTarget.response,o.fn.vendors.checkBeforeDraw()):(console.log("Error pJS - Image not found"),o.tmp.img_error=!0))},e.send()}else{var i=new Image;i.addEventListener("load",function(){o.tmp.img_obj=i,o.fn.vendors.checkBeforeDraw()}),i.src=o.particles.shape.image.src}else console.log("Error pJS - No image.src"),o.tmp.img_error=!0},o.fn.vendors.draw=function(){"image"==o.particles.shape.type?"svg"==o.tmp.img_type?o.tmp.count_svg>=o.particles.number.value?(o.fn.particlesDraw(),o.particles.move.enable?o.fn.drawAnimFrame=requestAnimFrame(o.fn.vendors.draw):cancelRequestAnimFrame(o.fn.drawAnimFrame)):o.tmp.img_error||(o.fn.drawAnimFrame=requestAnimFrame(o.fn.vendors.draw)):void 0!=o.tmp.img_obj?(o.fn.particlesDraw(),o.particles.move.enable?o.fn.drawAnimFrame=requestAnimFrame(o.fn.vendors.draw):cancelRequestAnimFrame(o.fn.drawAnimFrame)):o.tmp.img_error||(o.fn.drawAnimFrame=requestAnimFrame(o.fn.vendors.draw)):(o.fn.particlesDraw(),o.particles.move.enable?o.fn.drawAnimFrame=requestAnimFrame(o.fn.vendors.draw):cancelRequestAnimFrame(o.fn.drawAnimFrame))},o.fn.vendors.checkBeforeDraw=function(){"image"==o.particles.shape.type?"svg"==o.tmp.img_type&&void 0==o.tmp.source_svg?o.tmp.checkAnimFrame=requestAnimFrame(check):(cancelRequestAnimFrame(o.tmp.checkAnimFrame),o.tmp.img_error||(o.fn.vendors.init(),o.fn.vendors.draw())):(o.fn.vendors.init(),o.fn.vendors.draw())},o.fn.vendors.init=function(){o.fn.retinaInit(),o.fn.canvasInit(),o.fn.canvasSize(),o.fn.canvasPaint(),o.fn.particlesCreate(),o.fn.vendors.densityAutoParticles(),o.particles.line_linked.color_rgb_line=a(o.particles.line_linked.color)},o.fn.vendors.start=function(){r("image",o.particles.shape.type)?(o.tmp.img_type=o.particles.shape.image.src.substr(o.particles.shape.image.src.length-3),o.fn.vendors.loadImg(o.tmp.img_type)):o.fn.vendors.checkBeforeDraw()},o.fn.vendors.eventsListeners(),o.fn.vendors.start()};Object.deepExtend=function(t,e){for(var i in e)e[i]&&e[i].constructor&&e[i].constructor===Object?(t[i]=t[i]||{},arguments.callee(t[i],e[i])):t[i]=e[i];return t},window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}(),window.cancelRequestAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout}(),window.pJSDom=[],window.particlesJS=function(t,e){"string"!=typeof t&&(e=t,t="particles-js"),t||(t="particles-js");var i=document.getElementById(t),a="particles-js-canvas-el",n=i.getElementsByClassName(a);if(n.length)for(;n.length>0;)i.removeChild(n[0]);var r=document.createElement("canvas");r.className=a,r.style.width="100%",r.style.height="100%";var s=document.getElementById(t).appendChild(r);null!=s&&pJSDom.push(new o(t,e))},window.particlesJS.load=function(t,e,i){var a=new XMLHttpRequest;a.open("GET",e),a.onreadystatechange=function(e){if(4==a.readyState)if(200==a.status){var n=JSON.parse(e.currentTarget.response);window.particlesJS(t,n),i&&i()}else console.log("Error pJS - XMLHttpRequest status: "+a.status),console.log("Error pJS - File config not found")},a.send()};var s="#39BAC1",l="#367B8C",c="#FF4C49",u="#DFA431",d=function(t,e,i){var a={particles:{number:{value:e,density:{enable:!0,value_area:800}},color:{value:t},shape:{type:"circle",stroke:{width:0,color:"#000000"},polygon:{nb_sides:5},image:{src:"img/github.svg",width:100,height:100}},opacity:{value:1,random:!1,anim:{enable:!1,speed:1,opacity_min:.1,sync:!1}},size:{value:50,random:!0,anim:{enable:!1,speed:40,size_min:.1,sync:!1}},line_linked:{enable:!1,distance:150,color:"#ffffff",opacity:.4,width:1},move:{enable:!0,speed:i,direction:"none",random:!1,straight:!1,out_mode:"bounce",bounce:!1,attract:{enable:!1,rotateX:600,rotateY:1200}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!1,mode:"repulse"},onclick:{enable:!1,mode:"push"},resize:!0},modes:{grab:{distance:400,line_linked:{opacity:1}},bubble:{distance:400,size:40,duration:2,opacity:8,speed:3},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0};return a},h=window.location.pathname,f=h.split("/").pop();if("index.html"==f||"Team:Toronto"==f){var p=2,g=1;particlesJS("mustard-orb",d(u,p,g)),particlesJS("pink-orb",d(c,p,g)),particlesJS("turquois-orb",d(s,p,g)),particlesJS("darkTurquois-orb",d(l,p,g))}else console.log("Not home page")},{}]},{},[2,1,3,4,5,6]);