Current Path : C:/Users/Mahmood/Desktop/moodle/lib/amd/build/ |
Current File : C:/Users/Mahmood/Desktop/moodle/lib/amd/build/chartjs-lazy.min.js |
function _typeof(e){"@babel/helpers - typeof";if("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator){_typeof=function(e){return typeof e}}else{_typeof=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _typeof(e)}(function(e){if("object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module){module.exports=e()}else if("function"==typeof define&&define.amd){define ("core/chartjs-lazy",[],e)}else{var t;if("undefined"!=typeof window){t=window}else if("undefined"!=typeof global){t=global}else if("undefined"!=typeof self){t=self}else{t=this}t.Chart=e()}})(function(){var e;return function d(c,e,t){function a(i,o){if(!e[i]){if(!c[i]){var s="function"==typeof require&&require;if(!o&&s)return s(i,!0);if(n)return n(i,!0);var h=new Error("Cannot find module '"+i+"'");throw h.code="MODULE_NOT_FOUND",h}var u=e[i]={exports:{}};c[i][0].call(u.exports,function(t){var e=c[i][1][t];return a(e?e:t)},u,u.exports,d,c,e,t)}return e[i].exports}for(var n="function"==typeof require&&require,i=0;i<t.length;i++){a(t[i])}return a}({1:[function(e,t){var h=e(5);t.exports={getRgba:a,getHsla:o,getRgb:function(e){var t=a(e);return t&&t.slice(0,3)},getHsl:function(e){var t=o(e);return t&&t.slice(0,3)},getHwb:i,getAlpha:function(e){var t=a(e);if(t){return t[3]}else if(t=o(e)){return t[3]}else if(t=i(e)){return t[3]}},hexString:function(e){return"#"+c(e[0])+c(e[1])+c(e[2])},rgbString:function(e,t){if(1>t||e[3]&&1>e[3]){return n(e,t)}return"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:n,percentString:function(e,t){if(1>t||e[3]&&1>e[3]){return l(e,t)}var a=Math.round(100*(e[0]/255)),o=Math.round(100*(e[1]/255)),i=Math.round(100*(e[2]/255));return"rgb("+a+"%, "+o+"%, "+i+"%)"},percentaString:l,hslString:function(e,t){if(1>t||e[3]&&1>e[3]){return s(e,t)}return"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:s,hwbString:function(e,t){if(t===void 0){t=e[3]!==void 0?e[3]:1}return"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(t!==void 0&&1!==t?", "+t:"")+")"},keyword:function(e){return u[e.slice(0,3)]}};function a(e){if(!e){return}var t=[0,0,0],o=1,n=e.match(/^#([a-fA-F0-9]{3})$/i);if(n){n=n[1];for(var l=0;l<t.length;l++){t[l]=parseInt(n[l]+n[l],16)}}else if(n=e.match(/^#([a-fA-F0-9]{6})$/i)){n=n[1];for(var l=0;l<t.length;l++){t[l]=parseInt(n.slice(2*l,2*l+2),16)}}else if(n=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(var l=0;l<t.length;l++){t[l]=parseInt(n[l+1])}o=parseFloat(n[4])}else if(n=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(var l=0;l<t.length;l++){t[l]=Math.round(2.55*parseFloat(n[l+1]))}o=parseFloat(n[4])}else if(n=e.match(/(\w+)/)){if("transparent"==n[1]){return[0,0,0,0]}t=h[n[1]];if(!t){return}}for(var l=0;l<t.length;l++){t[l]=d(t[l],0,255)}if(!o&&0!=o){o=1}else{o=d(o,0,1)}t[3]=o;return t}function o(e){if(!e){return}var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var o=parseFloat(t[4]),i=d(parseInt(t[1]),0,360),n=d(parseFloat(t[2]),0,100),s=d(parseFloat(t[3]),0,100),l=d(isNaN(o)?1:o,0,1);return[i,n,s,l]}}function i(e){if(!e){return}var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var o=parseFloat(t[4]),i=d(parseInt(t[1]),0,360),n=d(parseFloat(t[2]),0,100),l=d(parseFloat(t[3]),0,100),s=d(isNaN(o)?1:o,0,1);return[i,n,l,s]}}function n(e,t){if(t===void 0){t=e[3]!==void 0?e[3]:1}return"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function l(e,t){var a=Math.round(100*(e[0]/255)),o=Math.round(100*(e[1]/255)),i=Math.round(100*(e[2]/255));return"rgba("+a+"%, "+o+"%, "+i+"%, "+(t||e[3]||1)+")"}function s(e,t){if(t===void 0){t=e[3]!==void 0?e[3]:1}return"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function d(e,t,a){return Math.min(Math.max(t,e),a)}function c(e){var t=e.toString(16).toUpperCase();return 2>t.length?"0"+t:t}var u={};for(var m in h){u[h[m]]=m}},{5:5}],2:[function(e,t){var a=e(4),o=e(1),i=function(e){if(e instanceof i){return e}if(!(this instanceof i)){return new i(e)}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 t;if("string"==typeof e){t=o.getRgba(e);if(t){this.setValues("rgb",t)}else if(t=o.getHsla(e)){this.setValues("hsl",t)}else if(t=o.getHwb(e)){this.setValues("hwb",t)}}else if("object"===_typeof(e)){t=e;if(t.r!==void 0||t.red!==void 0){this.setValues("rgb",t)}else if(t.l!==void 0||t.lightness!==void 0){this.setValues("hsl",t)}else if(t.v!==void 0||t.value!==void 0){this.setValues("hsv",t)}else if(t.w!==void 0||t.whiteness!==void 0){this.setValues("hwb",t)}else if(t.c!==void 0||t.cyan!==void 0){this.setValues("cmyk",t)}}};i.prototype={isValid:function isValid(){return this.valid},rgb:function rgb(){return this.setSpace("rgb",arguments)},hsl:function hsl(){return this.setSpace("hsl",arguments)},hsv:function hsv(){return this.setSpace("hsv",arguments)},hwb:function hwb(){return this.setSpace("hwb",arguments)},cmyk:function cmyk(){return this.setSpace("cmyk",arguments)},rgbArray:function rgbArray(){return this.values.rgb},hslArray:function hslArray(){return this.values.hsl},hsvArray:function hsvArray(){return this.values.hsv},hwbArray:function hwbArray(){var e=this.values;if(1!==e.alpha){return e.hwb.concat([e.alpha])}return e.hwb},cmykArray:function cmykArray(){return this.values.cmyk},rgbaArray:function rgbaArray(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function hslaArray(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function alpha(e){if(e===void 0){return this.values.alpha}this.setValues("alpha",e);return this},red:function red(e){return this.setChannel("rgb",0,e)},green:function green(e){return this.setChannel("rgb",1,e)},blue:function blue(e){return this.setChannel("rgb",2,e)},hue:function hue(e){if(e){e%=360;e=0>e?360+e:e}return this.setChannel("hsl",0,e)},saturation:function saturation(e){return this.setChannel("hsl",1,e)},lightness:function lightness(e){return this.setChannel("hsl",2,e)},saturationv:function saturationv(e){return this.setChannel("hsv",1,e)},whiteness:function whiteness(e){return this.setChannel("hwb",1,e)},blackness:function blackness(e){return this.setChannel("hwb",2,e)},value:function value(e){return this.setChannel("hsv",2,e)},cyan:function cyan(e){return this.setChannel("cmyk",0,e)},magenta:function magenta(e){return this.setChannel("cmyk",1,e)},yellow:function yellow(e){return this.setChannel("cmyk",2,e)},black:function black(e){return this.setChannel("cmyk",3,e)},hexString:function hexString(){return o.hexString(this.values.rgb)},rgbString:function rgbString(){return o.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function rgbaString(){return o.rgbaString(this.values.rgb,this.values.alpha)},percentString:function percentString(){return o.percentString(this.values.rgb,this.values.alpha)},hslString:function hslString(){return o.hslString(this.values.hsl,this.values.alpha)},hslaString:function hslaString(){return o.hslaString(this.values.hsl,this.values.alpha)},hwbString:function hwbString(){return o.hwbString(this.values.hwb,this.values.alpha)},keyword:function keyword(){return o.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function rgbNumber(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function luminosity(){for(var e=this.values.rgb,t=[],a=0,o;a<e.length;a++){o=e[a]/255;t[a]=.03928>=o?o/12.92:Math.pow((o+.055)/1.055,2.4)}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function contrast(e){var t=this.luminosity(),a=e.luminosity();if(t>a){return(t+.05)/(a+.05)}return(a+.05)/(t+.05)},level:function level(e){var t=this.contrast(e);if(7.1<=t){return"AAA"}return 4.5<=t?"AA":""},dark:function dark(){var e=this.values.rgb,t=(299*e[0]+587*e[1]+114*e[2])/1e3;return 128>t},light:function light(){return!this.dark()},negate:function negate(){for(var e=[],t=0;3>t;t++){e[t]=255-this.values.rgb[t]}this.setValues("rgb",e);return this},lighten:function lighten(e){var t=this.values.hsl;t[2]+=t[2]*e;this.setValues("hsl",t);return this},darken:function darken(e){var t=this.values.hsl;t[2]-=t[2]*e;this.setValues("hsl",t);return this},saturate:function saturate(e){var t=this.values.hsl;t[1]+=t[1]*e;this.setValues("hsl",t);return this},desaturate:function desaturate(e){var t=this.values.hsl;t[1]-=t[1]*e;this.setValues("hsl",t);return this},whiten:function whiten(e){var t=this.values.hwb;t[1]+=t[1]*e;this.setValues("hwb",t);return this},blacken:function blacken(e){var t=this.values.hwb;t[2]+=t[2]*e;this.setValues("hwb",t);return this},greyscale:function greyscale(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];this.setValues("rgb",[t,t,t]);return this},clearer:function clearer(e){var t=this.values.alpha;this.setValues("alpha",t-t*e);return this},opaquer:function opaquer(e){var t=this.values.alpha;this.setValues("alpha",t+t*e);return this},rotate:function rotate(e){var t=this.values.hsl,a=(t[0]+e)%360;t[0]=0>a?360+a:a;this.setValues("hsl",t);return this},mix:function mix(e,t){var o=this,i=e,n=t===void 0?.5:t,l=2*n-1,s=o.alpha()-i.alpha(),a=((-1==l*s?l:(l+s)/(1+l*s))+1)/2,d=1-a;return this.rgb(a*o.red()+d*i.red(),a*o.green()+d*i.green(),a*o.blue()+d*i.blue()).alpha(o.alpha()*n+i.alpha()*(1-n))},toJSON:function toJSON(){return this.rgb()},clone:function clone(){var e=new i,t=this.values,a=e.values,o,n;for(var l in t){if(t.hasOwnProperty(l)){o=t[l];n={}.toString.call(o);if("[object Array]"===n){a[l]=o.slice(0)}else if("[object Number]"===n){a[l]=o}else{console.error("unexpected color value:",o)}}}return e}};i.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]};i.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]};i.prototype.getValues=function(e){for(var t=this.values,a={},o=0;o<e.length;o++){a[e.charAt(o)]=t[e][o]}if(1!==t.alpha){a.a=t.alpha}return a};i.prototype.setValues=function(e,t){var o=this.values,n=this.spaces,l=this.maxes,s=1,d;this.valid=!0;if("alpha"===e){s=t}else if(t.length){o[e]=t.slice(0,e.length);s=t[e.length]}else if(t[e.charAt(0)]!==void 0){for(d=0;d<e.length;d++){o[e][d]=t[e.charAt(d)]}s=t.a}else if(t[n[e][0]]!==void 0){var c=n[e];for(d=0;d<e.length;d++){o[e][d]=t[c[d]]}s=t.alpha}o.alpha=Math.max(0,Math.min(1,s===void 0?o.alpha:s));if("alpha"===e){return!1}var h;for(d=0;d<e.length;d++){h=Math.max(0,Math.min(l[e][d],o[e][d]));o[e][d]=Math.round(h)}for(var u in n){if(u!==e){o[u]=a[e][u](o[e])}}return!0};i.prototype.setSpace=function(e,t){var a=t[0];if(a===void 0){return this.getValues(e)}if("number"==typeof a){a=Array.prototype.slice.call(t)}this.setValues(e,a);return this};i.prototype.setChannel=function(e,t,a){var o=this.values[e];if(a===void 0){return o[t]}else if(a===o[t]){return this}o[t]=a;this.setValues(e,o);return this};if("undefined"!=typeof window){window.Color=i}t.exports=i},{1:1,4:4}],3:[function(e,t){t.exports={rgb2hsl:a,rgb2hsv:o,rgb2hwb:i,rgb2cmyk:n,rgb2keyword:l,rgb2xyz:s,rgb2lab:d,rgb2lch:function(e){return x(d(e))},hsl2rgb:c,hsl2hsv:function(e){var t=e[0],a=e[1]/100,o=e[2]/100,i,n;if(0==o){return[0,0,0]}o*=2;a*=1>=o?o:2-o;n=(o+a)/2;i=2*a/(o+a);return[t,100*i,100*n]},hsl2hwb:function(e){return i(c(e))},hsl2cmyk:function(e){return n(c(e))},hsl2keyword:function(e){return l(c(e))},hsv2rgb:h,hsv2hsl:function(e){var t=e[0],a=e[1]/100,o=e[2]/100,i,n;n=(2-a)*o;i=a*o;i/=1>=n?n:2-n;i=i||0;n/=2;return[t,100*i,100*n]},hsv2hwb:function(e){return i(h(e))},hsv2cmyk:function(e){return n(h(e))},hsv2keyword:function(e){return l(h(e))},hwb2rgb:u,hwb2hsl:function(e){return a(u(e))},hwb2hsv:function(e){return o(u(e))},hwb2cmyk:function(e){return n(u(e))},hwb2keyword:function(e){return l(u(e))},cmyk2rgb:m,cmyk2hsl:function(e){return a(m(e))},cmyk2hsv:function(e){return o(m(e))},cmyk2hwb:function(e){return i(m(e))},cmyk2keyword:function(e){return l(m(e))},keyword2rgb:v,keyword2hsl:function(e){return a(v(e))},keyword2hsv:function(e){return o(v(e))},keyword2hwb:function(e){return i(v(e))},keyword2cmyk:function(e){return n(v(e))},keyword2lab:function(e){return d(v(e))},keyword2xyz:function(e){return s(v(e))},xyz2rgb:p,xyz2lab:f,xyz2lch:function(e){return x(f(e))},lab2xyz:y,lab2rgb:k,lab2lch:x,lch2lab:_,lch2xyz:function(e){return y(_(e))},lch2rgb:function(e){return k(_(e))}};function a(e){var t=e[0]/255,a=e[1]/255,o=e[2]/255,i=Math.min(t,a,o),n=Math.max(t,a,o),d=n-i,c,u,m;if(n==i)c=0;else if(t==n)c=(a-o)/d;else if(a==n)c=2+(o-t)/d;else if(o==n)c=4+(t-a)/d;c=Math.min(60*c,360);if(0>c)c+=360;m=(i+n)/2;if(n==i)u=0;else if(.5>=m)u=d/(n+i);else u=d/(2-n-i);return[c,100*u,100*m]}function o(e){var t=e[0],a=e[1],o=e[2],i=Math.min(t,a,o),n=Math.max(t,a,o),l=n-i,d,c,u;if(0==n)c=0;else c=1e3*(l/n)/10;if(n==i)d=0;else if(t==n)d=(a-o)/l;else if(a==n)d=2+(o-t)/l;else if(o==n)d=4+(t-a)/l;d=Math.min(60*d,360);if(0>d)d+=360;u=1e3*(n/255)/10;return[d,c,u]}function i(e){var t=e[0],o=e[1],i=e[2],n=a(e)[0],l=1/255*Math.min(t,Math.min(o,i)),i=1-1/255*Math.max(t,Math.max(o,i));return[n,100*l,100*i]}function n(e){var t=e[0]/255,a=e[1]/255,o=e[2]/255,i,n,l,s;s=Math.min(1-t,1-a,1-o);i=(1-t-s)/(1-s)||0;n=(1-a-s)/(1-s)||0;l=(1-o-s)/(1-s)||0;return[100*i,100*n,100*l,100*s]}function l(e){return w[JSON.stringify(e)]}function s(e){var t=e[0]/255,a=e[1]/255,o=e[2]/255;t=.04045<t?Math.pow((t+.055)/1.055,2.4):t/12.92;a=.04045<a?Math.pow((a+.055)/1.055,2.4):a/12.92;o=.04045<o?Math.pow((o+.055)/1.055,2.4):o/12.92;var i=.4124*t+.3576*a+.1805*o,n=.2126*t+.7152*a+.0722*o,l=.0193*t+.1192*a+.9505*o;return[100*i,100*n,100*l]}function d(e){var t=s(e),o=t[0],i=t[1],n=t[2],d,c,h;o/=95.047;i/=100;n/=108.883;o=.008856<o?Math.pow(o,1/3):7.787*o+16/116;i=.008856<i?Math.pow(i,1/3):7.787*i+16/116;n=.008856<n?Math.pow(n,1/3):7.787*n+16/116;d=116*i-16;c=500*(o-i);h=200*(i-n);return[d,c,h]}function c(e){var t=e[0]/360,a=e[1]/100,o=e[2]/100,n,l,s,d,c;if(0==a){c=255*o;return[c,c,c]}if(.5>o)l=o*(1+a);else l=o+a-o*a;n=2*o-l;d=[0,0,0];for(var h=0;3>h;h++){s=t+1/3*-(h-1);0>s&&s++;1<s&&s--;if(1>6*s)c=n+6*(l-n)*s;else if(1>2*s)c=l;else if(2>3*s)c=n+6*((l-n)*(2/3-s));else c=n;d[h]=255*c}return d}function h(e){var a=e[0]/60,o=e[1]/100,i=e[2]/100,n=Math.floor(a)%6,l=a-Math.floor(a),s=255*i*(1-o),d=255*i*(1-o*l),c=255*i*(1-o*(1-l)),i=255*i;switch(n){case 0:return[i,c,s];case 1:return[d,i,s];case 2:return[s,i,c];case 3:return[s,d,i];case 4:return[c,s,i];case 5:return[i,s,d];}}function u(e){var t=e[0]/360,a=e[1]/100,o=e[2]/100,l=a+o,s,d,c,h;if(1<l){a/=l;o/=l}s=Math.floor(6*t);d=1-o;c=6*t-s;if(0!=(1&s)){c=1-c}h=a+c*(d-a);switch(s){default:case 6:case 0:r=d;g=h;b=a;break;case 1:r=h;g=d;b=a;break;case 2:r=a;g=d;b=h;break;case 3:r=a;g=h;b=d;break;case 4:r=h;g=a;b=d;break;case 5:r=d;g=a;b=h;break;}return[255*r,255*g,255*b]}function m(e){var t=e[0]/100,a=e[1]/100,o=e[2]/100,i=e[3]/100,n,l,s;n=1-Math.min(1,t*(1-i)+i);l=1-Math.min(1,a*(1-i)+i);s=1-Math.min(1,o*(1-i)+i);return[255*n,255*l,255*s]}function p(e){var t=e[0]/100,a=e[1]/100,o=e[2]/100,i,n,l;i=3.2406*t+-1.5372*a+-.4986*o;n=-.9689*t+1.8758*a+.0415*o;l=.0557*t+-.204*a+1.057*o;i=.0031308<i?1.055*Math.pow(i,1/2.4)-.055:i=12.92*i;n=.0031308<n?1.055*Math.pow(n,1/2.4)-.055:n=12.92*n;l=.0031308<l?1.055*Math.pow(l,1/2.4)-.055:l=12.92*l;i=Math.min(Math.max(0,i),1);n=Math.min(Math.max(0,n),1);l=Math.min(Math.max(0,l),1);return[255*i,255*n,255*l]}function f(e){var t=e[0],o=e[1],i=e[2],n,s,d;t/=95.047;o/=100;i/=108.883;t=.008856<t?Math.pow(t,1/3):7.787*t+16/116;o=.008856<o?Math.pow(o,1/3):7.787*o+16/116;i=.008856<i?Math.pow(i,1/3):7.787*i+16/116;n=116*o-16;s=500*(t-o);d=200*(o-i);return[n,s,d]}function y(e){var t=e[0],o=e[1],a=e[2],i,n,l,s;if(8>=t){n=100*t/903.3;s=7.787*(n/100)+16/116}else{n=100*Math.pow((t+16)/116,3);s=Math.pow(n/100,1/3)}i=.008856>=i/95.047?i=95.047*(o/500+s-16/116)/7.787:95.047*Math.pow(o/500+s,3);l=.008859>=l/108.883?l=108.883*(s-a/200-16/116)/7.787:108.883*Math.pow(s-a/200,3);return[i,n,l]}function x(e){var t=e[0],o=e[1],a=e[2],i,n,l;i=Math.atan2(a,o);n=360*i/2/Math.PI;if(0>n){n+=360}l=Math.sqrt(o*o+a*a);return[t,l,n]}function k(e){return p(y(e))}function _(e){var t=e[0],o=e[1],i=e[2],n,l,s;s=2*(i/360)*Math.PI;n=o*Math.cos(s);l=o*Math.sin(s);return[t,n,l]}function v(e){return S[e]}var S={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]},w={};for(var D in S){w[JSON.stringify(S[D])]=D}},{}],4:[function(e,t){var a=e(3),o=function(){return new d};for(var i in a){o[i+"Raw"]=function(e){return function(t){if("number"==typeof t)t=Array.prototype.slice.call(arguments);return a[e](t)}}(i);var n=/(\w+)2(\w+)/.exec(i),l=n[1],s=n[2];o[l]=o[l]||{};o[l][s]=o[i]=function(e){return function(t){if("number"==typeof t)t=Array.prototype.slice.call(arguments);var o=a[e](t);if("string"==typeof o||o===void 0)return o;for(var n=0;n<o.length;n++){o[n]=Math.round(o[n])}return o}}(i)}var d=function(){this.convs={}};d.prototype.routeSpace=function(e,t){var a=t[0];if(a===void 0){return this.getValues(e)}if("number"==typeof a){a=Array.prototype.slice.call(t)}return this.setValues(e,a)};d.prototype.setValues=function(e,t){this.space=e;this.convs={};this.convs[e]=t;return this};d.prototype.getValues=function(e){var t=this.convs[e];if(!t){var a=this.space,i=this.convs[a];t=o[a][e](i);this.convs[e]=t}return t};["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){d.prototype[e]=function(){return this.routeSpace(e,arguments)}});t.exports=o},{3:3}],5:[function(e,t){'use strict';t.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]}},{}],6:[function(t,a,o){(function(t,i){"object"===_typeof(o)&&"undefined"!=typeof a?a.exports=i():"function"==typeof e&&e.amd?e(i):t.moment=i()})(this,function(){'use strict';var Pt;function e(){return Pt.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function n(e){for(var t in e){return!1}return!0}function l(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var a=[],o;for(o=0;o<e.length;++o){a.push(t(e[o],o))}return a}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){for(var a in t){if(h(t,a)){e[a]=t[a]}}if(h(t,"toString")){e.toString=t.toString}if(h(t,"valueOf")){e.valueOf=t.valueOf}return e}function p(e,t,a,o){return Ve(e,t,a,o,!0).utc()}function f(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function y(e){if(null==e._pf){e._pf=f()}return e._pf}var Tt;if(Array.prototype.some){Tt=Array.prototype.some}else{Tt=function(e){for(var a=Object(this),t=a.length>>>0,o=0;o<t;o++){if(o in a&&e.call(this,a[o],o,a)){return!0}}return!1}}var Ot=Tt;function x(e){if(null==e._isValid){var t=y(e),a=Ot.call(t.parsedDateParts,function(e){return null!=e}),o=!isNaN(e._d.getTime())&&0>t.overflow&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a);if(e._strict){o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&t.bigHour===void 0}if(null==Object.isFrozen||!Object.isFrozen(e)){e._isValid=o}else{return o}}return e._isValid}function k(e){var t=p(NaN);if(null!=e){u(y(t),e)}else{y(t).userInvalidated=!0}return t}var It=e.momentProperties=[];function _(e,t){var a,o,n;if(!l(t._isAMomentObject)){e._isAMomentObject=t._isAMomentObject}if(!l(t._i)){e._i=t._i}if(!l(t._f)){e._f=t._f}if(!l(t._l)){e._l=t._l}if(!l(t._strict)){e._strict=t._strict}if(!l(t._tzm)){e._tzm=t._tzm}if(!l(t._isUTC)){e._isUTC=t._isUTC}if(!l(t._offset)){e._offset=t._offset}if(!l(t._pf)){e._pf=y(t)}if(!l(t._locale)){e._locale=t._locale}if(0<It.length){for(a=0;a<It.length;a++){o=It[a];n=t[o];if(!l(n)){e[o]=n}}}return e}var At=!1;function v(t){_(this,t);this._d=new Date(null!=t._d?t._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN)}if(!1===At){At=!0;e.updateOffset(this);At=!1}}function S(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function w(e){if(0>e){return Math.ceil(e)||0}else{return Math.floor(e)}}function D(e){var t=+e,a=0;if(0!=t&&isFinite(t)){a=w(t)}return a}function C(e,t,a){var o=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),l=0,s;for(s=0;s<o;s++){if(a&&e[s]!==t[s]||!a&&D(e[s])!==D(t[s])){l++}}return l+n}function P(t){if(!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn){console.warn("Deprecation warning: "+t)}}function T(t,a){var o=!0;return u(function(){if(null!=e.deprecationHandler){e.deprecationHandler(null,t)}if(o){for(var n=[],l,s=0;s<arguments.length;s++){l="";if("object"===_typeof(arguments[s])){l+="\n["+s+"] ";for(var d in arguments[0]){l+=d+": "+arguments[0][d]+", "}l=l.slice(0,-2)}else{l=arguments[s]}n.push(l)}P(t+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+new Error().stack);o=!1}return a.apply(this,arguments)},a)}var Mt={};function O(t,a){if(null!=e.deprecationHandler){e.deprecationHandler(t,a)}if(!Mt[t]){P(a);Mt[t]=!0}}e.suppressDeprecationWarnings=!1;e.deprecationHandler=null;function I(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function A(e,t){var a=u({},e),o;for(o in t){if(h(t,o)){if(i(e[o])&&i(t[o])){a[o]={};u(a[o],e[o]);u(a[o],t[o])}else if(null!=t[o]){a[o]=t[o]}else{delete a[o]}}}for(o in e){if(h(e,o)&&!h(t,o)&&i(e[o])){a[o]=u({},a[o])}}return a}function M(e){if(null!=e){this.set(e)}}var Rt;if(Object.keys){Rt=Object.keys}else{Rt=function(e){var t,a=[];for(t in e){if(h(e,t)){a.push(t)}}return a}}var Ft=Rt;var Lt={};function R(e,t){var a=e.toLowerCase();Lt[a]=Lt[a+"s"]=Lt[t]=e}function F(e){return"string"==typeof e?Lt[e]||Lt[e.toLowerCase()]:void 0}function L(e){var t={},a,o;for(o in e){if(h(e,o)){a=F(o);if(a){t[a]=e[o]}}}return t}var Wt={};function W(e,t){Wt[e]=t}function Y(e){var t=[];for(var a in e){t.push({unit:a,priority:Wt[a]})}t.sort(function(e,t){return e.priority-t.priority});return t}function z(t,a){return function(o){if(null!=o){B(this,t,o);e.updateOffset(this,a);return this}else{return H(this,t)}}}function H(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function B(e,t,a){if(e.isValid()){e._d["set"+(e._isUTC?"UTC":"")+t](a)}}function E(e,t){if("object"===_typeof(e)){e=L(e);for(var a=Y(e),o=0;o<a.length;o++){this[a[o].unit](e[a[o].unit])}}else{e=F(e);if(I(this[e])){return this[e](t)}}return this}function V(e,t,a){var o=""+Math.abs(e),i=t-o.length;return(0<=e?a?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+o}var Yt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,zt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ht={},Bt={};function N(e,t,a,o){var i=o;if("string"==typeof o){i=function(){return this[o]()}}if(e){Bt[e]=i}if(t){Bt[t[0]]=function(){return V(i.apply(this,arguments),t[1],t[2])}}if(a){Bt[a]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)}}}function U(e){if(e.match(/\[[\s\S]/)){return e.replace(/^\[|\]$/g,"")}return e.replace(/\\/g,"")}function j(e){var t=e.match(Yt),a,o;for(a=0,o=t.length;a<o;a++){if(Bt[t[a]]){t[a]=Bt[t[a]]}else{t[a]=U(t[a])}}return function(a){var n="",l;for(l=0;l<o;l++){n+=I(t[l])?t[l].call(a,e):t[l]}return n}}function q(e,t){if(!e.isValid()){return e.localeData().invalidDate()}t=G(t,e.localeData());Ht[t]=Ht[t]||j(t);return Ht[t](e)}function G(e,t){var o=5;function a(e){return t.longDateFormat(e)||e}zt.lastIndex=0;while(0<=o&&zt.test(e)){e=e.replace(zt,a);zt.lastIndex=0;o-=1}return e}var Et=/\d/,Vt=/\d\d/,Nt=/\d{3}/,Ut=/\d{4}/,jt=/[+-]?\d{6}/,qt=/\d\d?/,Gt=/\d\d\d\d?/,Xt=/\d\d\d\d\d\d?/,Zt=/\d{1,3}/,Kt=/\d{1,4}/,Jt=/[+-]?\d{1,6}/,Qt=/[+-]?\d+/,$t=/Z|[+-]\d\d(?::?\d\d)?/gi,ea=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ta={};function X(e,t,a){ta[e]=I(t)?t:function(e){return e&&a?a:t}}function Z(e,t){if(!h(ta,e)){return new RegExp(K(e))}return ta[e](t._strict,t._locale)}function K(e){return J(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,a,o,i){return t||a||o||i}))}function J(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var aa={};function Q(e,t){var a,o=t;if("string"==typeof e){e=[e]}if(s(t)){o=function(e,a){a[t]=D(e)}}for(a=0;a<e.length;a++){aa[e[a]]=o}}function $(e,t){Q(e,function(e,a,o,i){o._w=o._w||{};t(e,o._w,o,i)})}function ee(e,t,a){if(null!=t&&h(aa,e)){aa[e](t,a._a,a,e)}}var oa=1,ia=2,na=3,ra=4,la=5,sa=6,da;if(Array.prototype.indexOf){da=Array.prototype.indexOf}else{da=function(e){var t;for(t=0;t<this.length;++t){if(this[t]===e){return t}}return-1}}var ca=da;function te(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}N("M",["MM",2],"Mo",function(){return this.month()+1});N("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});N("MMMM",0,0,function(e){return this.localeData().months(this,e)});R("month","M");W("month",8);X("M",qt);X("MM",qt,Vt);X("MMM",function(e,t){return t.monthsShortRegex(e)});X("MMMM",function(e,t){return t.monthsRegex(e)});Q(["M","MM"],function(e,t){t[oa]=D(e)-1});Q(["MMM","MMMM"],function(e,t,a,o){var i=a._locale.monthsParse(e,o,a._strict);if(null!=i){t[oa]=i}else{y(a).invalidMonth=e}});var ha=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function ae(e,t,a){var o,n,l,s=e.toLocaleLowerCase();if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[];for(o=0;12>o;++o){l=p([2e3,o]);this._shortMonthsParse[o]=this.monthsShort(l,"").toLocaleLowerCase();this._longMonthsParse[o]=this.months(l,"").toLocaleLowerCase()}}if(a){if("MMM"===t){n=ca.call(this._shortMonthsParse,s);return-1!==n?n:null}else{n=ca.call(this._longMonthsParse,s);return-1!==n?n:null}}else{if("MMM"===t){n=ca.call(this._shortMonthsParse,s);if(-1!==n){return n}n=ca.call(this._longMonthsParse,s);return-1!==n?n:null}else{n=ca.call(this._longMonthsParse,s);if(-1!==n){return n}n=ca.call(this._shortMonthsParse,s);return-1!==n?n:null}}}function oe(e,t){var a;if(!e.isValid()){return e}if("string"==typeof t){if(/^\d+$/.test(t)){t=D(t)}else{t=e.localeData().monthsParse(t);if(!s(t)){return e}}}a=Math.min(e.date(),te(e.year(),t));e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,a);return e}function ie(t){if(null!=t){oe(this,t);e.updateOffset(this,!0);return this}else{return H(this,"Month")}}function ne(){function e(e,t){return t.length-e.length}var t=[],a=[],o=[],n,l;for(n=0;12>n;n++){l=p([2e3,n]);t.push(this.monthsShort(l,""));a.push(this.months(l,""));o.push(this.months(l,""));o.push(this.monthsShort(l,""))}t.sort(e);a.sort(e);o.sort(e);for(n=0;12>n;n++){t[n]=J(t[n]);a[n]=J(a[n])}for(n=0;24>n;n++){o[n]=J(o[n])}this._monthsRegex=new RegExp("^("+o.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}N("Y",0,0,function(){var e=this.year();return 9999>=e?""+e:"+"+e});N(0,["YY",2],0,function(){return this.year()%100});N(0,["YYYY",4],0,"year");N(0,["YYYYY",5],0,"year");N(0,["YYYYYY",6,!0],0,"year");R("year","y");W("year",1);X("Y",Qt);X("YY",qt,Vt);X("YYYY",Kt,Ut);X("YYYYY",Jt,jt);X("YYYYYY",Jt,jt);Q(["YYYYY","YYYYYY"],0);Q("YYYY",function(t,a){a[0]=2===t.length?e.parseTwoDigitYear(t):D(t)});Q("YY",function(t,a){a[0]=e.parseTwoDigitYear(t)});Q("Y",function(e,t){t[0]=parseInt(e,10)});function re(e){return le(e)?366:365}function le(e){return 0==e%4&&0!=e%100||0==e%400}e.parseTwoDigitYear=function(e){return D(e)+(68<D(e)?1900:2e3)};var ua=z("FullYear",!0);function se(e,t,a,o,i,n,l){var s=new Date(e,t,a,o,i,n,l);if(100>e&&0<=e&&isFinite(s.getFullYear())){s.setFullYear(e)}return s}function de(e){var t=new Date(Date.UTC.apply(null,arguments));if(100>e&&0<=e&&isFinite(t.getUTCFullYear())){t.setUTCFullYear(e)}return t}function ce(e,t,a){var o=7+t-a,i=(7+de(e,0,o).getUTCDay()-t)%7;return-i+o-1}function he(e,t,a,o,i){var n=ce(e,o,i),l=1+7*(t-1)+(7+a-o)%7+n,s,d;if(0>=l){s=e-1;d=re(s)+l}else if(l>re(e)){s=e+1;d=l-re(e)}else{s=e;d=l}return{year:s,dayOfYear:d}}function ue(e,t,a){var o=ce(e.year(),t,a),i=Math.floor((e.dayOfYear()-o-1)/7)+1,n,l;if(1>i){l=e.year()-1;n=i+ge(l,t,a)}else if(i>ge(e.year(),t,a)){n=i-ge(e.year(),t,a);l=e.year()+1}else{l=e.year();n=i}return{week:n,year:l}}function ge(e,t,a){var o=ce(e,t,a),i=ce(e+1,t,a);return(re(e)-o+i)/7}N("w",["ww",2],"wo","week");N("W",["WW",2],"Wo","isoWeek");R("week","w");R("isoWeek","W");W("week",5);W("isoWeek",5);X("w",qt);X("ww",qt,Vt);X("W",qt);X("WW",qt,Vt);$(["w","ww","W","WW"],function(e,t,a,o){t[o.substr(0,1)]=D(e)});N("d",0,"do","day");N("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});N("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});N("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});N("e",0,0,"weekday");N("E",0,0,"isoWeekday");R("day","d");R("weekday","e");R("isoWeekday","E");W("day",11);W("weekday",11);W("isoWeekday",11);X("d",qt);X("e",qt);X("E",qt);X("dd",function(e,t){return t.weekdaysMinRegex(e)});X("ddd",function(e,t){return t.weekdaysShortRegex(e)});X("dddd",function(e,t){return t.weekdaysRegex(e)});$(["dd","ddd","dddd"],function(e,t,a,o){var i=a._locale.weekdaysParse(e,o,a._strict);if(null!=i){t.d=i}else{y(a).invalidWeekday=e}});$(["d","e","E"],function(e,t,a,o){t[o]=D(e)});function me(e,t){if("string"!=typeof e){return e}if(!isNaN(e)){return parseInt(e,10)}e=t.weekdaysParse(e);if("number"==typeof e){return e}return null}function pe(e,t){if("string"==typeof e){return t.weekdaysParse(e)%7||7}return isNaN(e)?null:e}function fe(e,t,a){var o,n,l,s=e.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(o=0;7>o;++o){l=p([2e3,1]).day(o);this._minWeekdaysParse[o]=this.weekdaysMin(l,"").toLocaleLowerCase();this._shortWeekdaysParse[o]=this.weekdaysShort(l,"").toLocaleLowerCase();this._weekdaysParse[o]=this.weekdays(l,"").toLocaleLowerCase()}}if(a){if("dddd"===t){n=ca.call(this._weekdaysParse,s);return-1!==n?n:null}else if("ddd"===t){n=ca.call(this._shortWeekdaysParse,s);return-1!==n?n:null}else{n=ca.call(this._minWeekdaysParse,s);return-1!==n?n:null}}else{if("dddd"===t){n=ca.call(this._weekdaysParse,s);if(-1!==n){return n}n=ca.call(this._shortWeekdaysParse,s);if(-1!==n){return n}n=ca.call(this._minWeekdaysParse,s);return-1!==n?n:null}else if("ddd"===t){n=ca.call(this._shortWeekdaysParse,s);if(-1!==n){return n}n=ca.call(this._weekdaysParse,s);if(-1!==n){return n}n=ca.call(this._minWeekdaysParse,s);return-1!==n?n:null}else{n=ca.call(this._minWeekdaysParse,s);if(-1!==n){return n}n=ca.call(this._weekdaysParse,s);if(-1!==n){return n}n=ca.call(this._shortWeekdaysParse,s);return-1!==n?n:null}}}function ye(){function e(e,t){return t.length-e.length}var t=[],a=[],o=[],n=[],l,s,d,c,h;for(l=0;7>l;l++){s=p([2e3,1]).day(l);d=this.weekdaysMin(s,"");c=this.weekdaysShort(s,"");h=this.weekdays(s,"");t.push(d);a.push(c);o.push(h);n.push(d);n.push(c);n.push(h)}t.sort(e);a.sort(e);o.sort(e);n.sort(e);for(l=0;7>l;l++){a[l]=J(a[l]);o[l]=J(o[l]);n[l]=J(n[l])}this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function be(){return this.hours()%12||12}N("H",["HH",2],0,"hour");N("h",["hh",2],0,be);N("k",["kk",2],0,function(){return this.hours()||24});N("hmm",0,0,function(){return""+be.apply(this)+V(this.minutes(),2)});N("hmmss",0,0,function(){return""+be.apply(this)+V(this.minutes(),2)+V(this.seconds(),2)});N("Hmm",0,0,function(){return""+this.hours()+V(this.minutes(),2)});N("Hmmss",0,0,function(){return""+this.hours()+V(this.minutes(),2)+V(this.seconds(),2)});function xe(e,t){N(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}xe("a",!0);xe("A",!1);R("hour","h");W("hour",13);function ke(e,t){return t._meridiemParse}X("a",ke);X("A",ke);X("H",qt);X("h",qt);X("k",qt);X("HH",qt,Vt);X("hh",qt,Vt);X("kk",qt,Vt);X("hmm",Gt);X("hmmss",Xt);X("Hmm",Gt);X("Hmmss",Xt);Q(["H","HH"],na);Q(["k","kk"],function(e,t){var a=D(e);t[na]=24===a?0:a});Q(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e);a._meridiem=e});Q(["h","hh"],function(e,t,a){t[na]=D(e);y(a).bigHour=!0});Q("hmm",function(e,t,a){var o=e.length-2;t[na]=D(e.substr(0,o));t[ra]=D(e.substr(o));y(a).bigHour=!0});Q("hmmss",function(e,t,a){var o=e.length-4,i=e.length-2;t[na]=D(e.substr(0,o));t[ra]=D(e.substr(o,2));t[la]=D(e.substr(i));y(a).bigHour=!0});Q("Hmm",function(e,t){var a=e.length-2;t[na]=D(e.substr(0,a));t[ra]=D(e.substr(a))});Q("Hmmss",function(e,t){var a=e.length-4,o=e.length-2;t[na]=D(e.substr(0,a));t[ra]=D(e.substr(a,2));t[la]=D(e.substr(o))});var ga=z("Hours",!0),ma={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],week:{dow:0,doy:6},weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],meridiemParse:/[ap]\.?m?\.?/i},pa={},fa={},ya;function _e(e){return e?e.toLowerCase().replace("_","-"):e}function ve(e){var t=0,a,o,n,l;while(t<e.length){l=_e(e[t]).split("-");a=l.length;o=_e(e[t+1]);o=o?o.split("-"):null;while(0<a){n=Se(l.slice(0,a).join("-"));if(n){return n}if(o&&o.length>=a&&C(l,o,!0)>=a-1){break}a--}t++}return null}function Se(e){var o=null;if(!pa[e]&&"undefined"!=typeof a&&a&&a.exports){try{o=ya._abbr;t("./locale/"+e);we(o)}catch(t){}}return pa[e]}function we(e,t){var a;if(e){if(l(t)){a=Ce(e)}else{a=De(e,t)}if(a){ya=a}}return ya._abbr}function De(e,t){if(null!==t){var a=ma;t.abbr=e;if(null!=pa[e]){O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.");a=pa[e]._config}else if(null!=t.parentLocale){if(null!=pa[t.parentLocale]){a=pa[t.parentLocale]._config}else{if(!fa[t.parentLocale]){fa[t.parentLocale]=[]}fa[t.parentLocale].push({name:e,config:t});return null}}pa[e]=new M(A(a,t));if(fa[e]){fa[e].forEach(function(e){De(e.name,e.config)})}we(e);return pa[e]}else{delete pa[e];return null}}function Ce(e){var t;if(e&&e._locale&&e._locale._abbr){e=e._locale._abbr}if(!e){return ya}if(!o(e)){t=Se(e);if(t){return t}e=[e]}return ve(e)}function Pe(e){var t,o=e._a;if(o&&-2===y(e).overflow){t=0>o[oa]||11<o[oa]?oa:1>o[ia]||o[ia]>te(o[0],o[oa])?ia:0>o[na]||24<o[na]||24===o[na]&&(0!==o[ra]||0!==o[la]||0!==o[sa])?na:0>o[ra]||59<o[ra]?ra:0>o[la]||59<o[la]?la:0>o[sa]||999<o[sa]?sa:-1;if(y(e)._overflowDayOfYear&&(t<0||t>ia)){t=ia}if(y(e)._overflowWeeks&&-1===t){t=7}if(y(e)._overflowWeekday&&-1===t){t=8}y(e).overflow=t}return e}var ba=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],xa=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]];function Te(e){var t,a,o=e._i,n=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/.exec(o)||/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/.exec(o),s,d,c,h;if(n){y(e).iso=!0;for(t=0,a=ba.length;t<a;t++){if(ba[t][1].exec(n[1])){d=ba[t][0];s=!1!==ba[t][2];break}}if(null==d){e._isValid=!1;return}if(n[3]){for(t=0,a=xa.length;t<a;t++){if(xa[t][1].exec(n[3])){c=(n[2]||" ")+xa[t][0];break}}if(null==c){e._isValid=!1;return}}if(!s&&null!=c){e._isValid=!1;return}if(n[4]){if(/Z|[+-]\d\d(?::?\d\d)?/.exec(n[4])){h="Z"}else{e._isValid=!1;return}}e._f=d+(c||"")+(h||"");Le(e)}else{e._isValid=!1}}function Oe(e){var t,a,o,i,n,l,s={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"},d,c;t=e._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s$/g,"");a=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/.exec(t);if(a){o=a[1]?"ddd"+(5===a[1].length?", ":" "):"";i="D MMM "+(10<a[2].length?"YYYY ":"YY ");n="HH:mm"+(a[4]?":ss":"");if(a[1]){var h=new Date(a[2]),u=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][h.getDay()];if(a[1].substr(0,3)!==u){y(e).weekdayMismatch=!0;e._isValid=!1;return}}switch(a[5].length){case 2:if(0===c){d=" +0000"}else{c="YXWVUTSRQPONZABCDEFGHIKLM".indexOf(a[5][1].toUpperCase())-12;d=(0>c?" -":" +")+(""+c).replace(/^-?/,"0").match(/..$/)[0]+"00"}break;case 4:d=s[a[5]];break;default:d=s[" GMT"];}a[5]=d;e._i=a.splice(1).join("");l=" ZZ";e._f=o+i+n+l;Le(e);y(e).rfc2822=!0}else{e._isValid=!1}}function Ie(t){var a=/^\/?Date\((\-?\d+)/i.exec(t._i);if(null!==a){t._d=new Date(+a[1]);return}Te(t);if(!1===t._isValid){delete t._isValid}else{return}Oe(t);if(!1===t._isValid){delete t._isValid}else{return}e.createFromInputFallback(t)}e.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Ae(e,t,a){if(null!=e){return e}if(null!=t){return t}return a}function Me(t){var a=new Date(e.now());if(t._useUTC){return[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]}return[a.getFullYear(),a.getMonth(),a.getDate()]}function Re(e){var t,a,o=[],n,l;if(e._d){return}n=Me(e);if(e._w&&null==e._a[ia]&&null==e._a[oa]){Fe(e)}if(null!=e._dayOfYear){l=Ae(e._a[0],n[0]);if(e._dayOfYear>re(l)||0===e._dayOfYear){y(e)._overflowDayOfYear=!0}a=de(l,0,e._dayOfYear);e._a[oa]=a.getUTCMonth();e._a[ia]=a.getUTCDate()}for(t=0;3>t&&null==e._a[t];++t){e._a[t]=o[t]=n[t]}for(;7>t;t++){e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t]}if(24===e._a[na]&&0===e._a[ra]&&0===e._a[la]&&0===e._a[sa]){e._nextDay=!0;e._a[na]=0}e._d=(e._useUTC?de:se).apply(null,o);if(null!=e._tzm){e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm)}if(e._nextDay){e._a[na]=24}}function Fe(e){var t,a,o,i,n,l,s,d;t=e._w;if(null!=t.GG||null!=t.W||null!=t.E){n=1;l=4;a=Ae(t.GG,e._a[0],ue(Ne(),1,4).year);o=Ae(t.W,1);i=Ae(t.E,1);if(1>i||7<i){d=!0}}else{n=e._locale._week.dow;l=e._locale._week.doy;var c=ue(Ne(),n,l);a=Ae(t.gg,e._a[0],c.year);o=Ae(t.w,c.week);if(null!=t.d){i=t.d;if(0>i||6<i){d=!0}}else if(null!=t.e){i=t.e+n;if(0>t.e||6<t.e){d=!0}}else{i=n}}if(1>o||o>ge(a,n,l)){y(e)._overflowWeeks=!0}else if(null!=d){y(e)._overflowWeekday=!0}else{s=he(a,o,i,n,l);e._a[0]=s.year;e._dayOfYear=s.dayOfYear}}e.ISO_8601=function(){};e.RFC_2822=function(){};function Le(t){if(t._f===e.ISO_8601){Te(t);return}if(t._f===e.RFC_2822){Oe(t);return}t._a=[];y(t).empty=!0;var a=""+t._i,o,n,l,s,d,c=a.length,h=0;l=G(t._f,t._locale).match(Yt)||[];for(o=0;o<l.length;o++){s=l[o];n=(a.match(Z(s,t))||[])[0];if(n){d=a.substr(0,a.indexOf(n));if(0<d.length){y(t).unusedInput.push(d)}a=a.slice(a.indexOf(n)+n.length);h+=n.length}if(Bt[s]){if(n){y(t).empty=!1}else{y(t).unusedTokens.push(s)}ee(s,n,t)}else if(t._strict&&!n){y(t).unusedTokens.push(s)}}y(t).charsLeftOver=c-h;if(0<a.length){y(t).unusedInput.push(a)}if(12>=t._a[na]&&!0===y(t).bigHour&&0<t._a[na]){y(t).bigHour=void 0}y(t).parsedDateParts=t._a.slice(0);y(t).meridiem=t._meridiem;t._a[na]=We(t._locale,t._a[na],t._meridiem);Re(t);Pe(t)}function We(e,t,a){var o;if(null==a){return t}if(null!=e.meridiemHour){return e.meridiemHour(t,a)}else if(null!=e.isPM){o=e.isPM(a);if(o&&12>t){t+=12}if(!o&&12===t){t=0}return t}else{return t}}function Ye(e){var t,a,o,n,l;if(0===e._f.length){y(e).invalidFormat=!0;e._d=new Date(NaN);return}for(n=0;n<e._f.length;n++){l=0;t=_({},e);if(null!=e._useUTC){t._useUTC=e._useUTC}t._f=e._f[n];Le(t);if(!x(t)){continue}l+=y(t).charsLeftOver;l+=10*y(t).unusedTokens.length;y(t).score=l;if(null==o||l<o){o=l;a=t}}u(e,a||t)}function ze(e){if(e._d){return}var t=L(e._i);e._a=c([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)});Re(e)}function He(e){var t=new v(Pe(Be(e)));if(t._nextDay){t.add(1,"d");t._nextDay=void 0}return t}function Be(e){var t=e._i,a=e._f;e._locale=e._locale||Ce(e._l);if(null===t||a===void 0&&""===t){return k({nullInput:!0})}if("string"==typeof t){e._i=t=e._locale.preparse(t)}if(S(t)){return new v(Pe(t))}else if(d(t)){e._d=t}else if(o(a)){Ye(e)}else if(a){Le(e)}else{Ee(e)}if(!x(e)){e._d=null}return e}function Ee(t){var a=t._i;if(l(a)){t._d=new Date(e.now())}else if(d(a)){t._d=new Date(a.valueOf())}else if("string"==typeof a){Ie(t)}else if(o(a)){t._a=c(a.slice(0),function(e){return parseInt(e,10)});Re(t)}else if(i(a)){ze(t)}else if(s(a)){t._d=new Date(a)}else{e.createFromInputFallback(t)}}function Ve(e,t,a,l,s){var d={};if(!0===a||!1===a){l=a;a=void 0}if(i(e)&&n(e)||o(e)&&0===e.length){e=void 0}d._isAMomentObject=!0;d._useUTC=d._isUTC=s;d._l=a;d._i=e;d._f=t;d._strict=l;return He(d)}function Ne(e,t,a,o){return Ve(e,t,a,o,!1)}var ka=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ne.apply(null,arguments);if(this.isValid()&&e.isValid()){return e<this?this:e}else{return k()}}),_a=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ne.apply(null,arguments);if(this.isValid()&&e.isValid()){return e>this?this:e}else{return k()}});function Ue(e,t){var a,n;if(1===t.length&&o(t[0])){t=t[0]}if(!t.length){return Ne()}a=t[0];for(n=1;n<t.length;++n){if(!t[n].isValid()||t[n][e](a)){a=t[n]}}return a}var va=["year","quarter","month","week","day","hour","minute","second","millisecond"];function je(e){for(var t in e){if(!(-1!==va.indexOf(t)&&(null==e[t]||!isNaN(e[t])))){return!1}}for(var a=!1,o=0;o<va.length;++o){if(e[va[o]]){if(a){return!1}if(parseFloat(e[va[o]])!==D(e[va[o]])){a=!0}}}return!0}function qe(e){var t=L(e),a=t.year||0,o=t.quarter||0,i=t.month||0,n=t.week||0,l=t.day||0,s=t.hour||0,d=t.minute||0,c=t.second||0,h=t.millisecond||0;this._isValid=je(t);this._milliseconds=+h+1e3*c+6e4*d+60*(60*(1e3*s));this._days=+l+7*n;this._months=+i+3*o+12*a;this._data={};this._locale=Ce();this._bubble()}function Ge(e){return e instanceof qe}function Xe(e){if(0>e){return-1*Math.round(-1*e)}else{return Math.round(e)}}function Ze(e,t){N(e,0,0,function(){var e=this.utcOffset(),a="+";if(0>e){e=-e;a="-"}return a+V(~~(e/60),2)+t+V(~~e%60,2)})}Ze("Z",":");Ze("ZZ","");X("Z",$t);X("ZZ",$t);Q(["Z","ZZ"],function(e,t,a){a._useUTC=!0;a._tzm=Ke($t,e)});function Ke(e,t){var a=(t||"").match(e);if(null===a){return null}var o=a[a.length-1]||[],i=(o+"").match(/([\+\-]|\d\d)/gi)||["-",0,0],n=+(60*i[1])+D(i[2]);return 0===n?0:"+"===i[0]?n:-n}function Je(t,a){var o,i;if(a._isUTC){o=a.clone();i=(S(t)||d(t)?t.valueOf():Ne(t).valueOf())-o.valueOf();o._d.setTime(o._d.valueOf()+i);e.updateOffset(o,!1);return o}else{return Ne(t).local()}}function Qe(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}e.updateOffset=function(){};function $e(){return this.isValid()?this._isUTC&&0===this._offset:!1}function et(e,t){var a=e,o=null,i,n,l;if(Ge(e)){a={ms:e._milliseconds,d:e._days,M:e._months}}else if(s(e)){a={};if(t){a[t]=e}else{a.milliseconds=e}}else if(!!(o=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/.exec(e))){i="-"===o[1]?-1:1;a={y:0,d:D(o[ia])*i,h:D(o[na])*i,m:D(o[ra])*i,s:D(o[la])*i,ms:D(Xe(1e3*o[sa]))*i}}else if(!!(o=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/.exec(e))){i="-"===o[1]?-1:1;a={y:tt(o[2],i),M:tt(o[3],i),w:tt(o[4],i),d:tt(o[5],i),h:tt(o[6],i),m:tt(o[7],i),s:tt(o[8],i)}}else if(null==a){a={}}else if("object"===_typeof(a)&&("from"in a||"to"in a)){l=ot(Ne(a.from),Ne(a.to));a={};a.ms=l.milliseconds;a.M=l.months}n=new qe(a);if(Ge(e)&&h(e,"_locale")){n._locale=e._locale}return n}et.fn=qe.prototype;et.invalid=function(){return et(NaN)};function tt(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function at(e,t){var a={milliseconds:0,months:0,months:t.month()-e.month()+12*(t.year()-e.year())};if(e.clone().add(a.months,"M").isAfter(t)){--a.months}a.milliseconds=+t-+e.clone().add(a.months,"M");return a}function ot(e,t){var a;if(!(e.isValid()&&t.isValid())){return{milliseconds:0,months:0}}t=Je(t,e);if(e.isBefore(t)){a=at(e,t)}else{a=at(t,e);a.milliseconds=-a.milliseconds;a.months=-a.months}return a}function it(e,t){return function(a,o){var i,n;if(null!==o&&!isNaN(+o)){O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");n=a;a=o;o=n}a="string"==typeof a?+a:a;i=et(a,o);nt(this,i,e);return this}}function nt(t,a,o,i){var n=a._milliseconds,l=Xe(a._days),s=Xe(a._months);if(!t.isValid()){return}i=null==i?!0:i;if(n){t._d.setTime(t._d.valueOf()+n*o)}if(l){B(t,"Date",H(t,"Date")+l*o)}if(s){oe(t,H(t,"Month")+s*o)}if(i){e.updateOffset(t,l||s)}}var Sa=it(1,"add"),wa=it(-1,"subtract");function rt(e,t){var a=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(a,"months"),i,n;if(0>t-o){i=e.clone().add(a-1,"months");n=(t-o)/(o-i)}else{i=e.clone().add(a+1,"months");n=(t-o)/(i-o)}return-(a+n)||0}e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function lt(e){var t;if(e===void 0){return this._locale._abbr}else{t=Ce(e);if(null!=t){this._locale=t}return this}}var Da=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){if(e===void 0){return this.localeData()}else{return this.locale(e)}});function st(){return this._locale}N(0,["gg",2],0,function(){return this.weekYear()%100});N(0,["GG",2],0,function(){return this.isoWeekYear()%100});function dt(e,t){N(0,[e,e.length],0,t)}dt("gggg","weekYear");dt("ggggg","weekYear");dt("GGGG","isoWeekYear");dt("GGGGG","isoWeekYear");R("weekYear","gg");R("isoWeekYear","GG");W("weekYear",1);W("isoWeekYear",1);X("G",Qt);X("g",Qt);X("GG",qt,Vt);X("gg",qt,Vt);X("GGGG",Kt,Ut);X("gggg",Kt,Ut);X("GGGGG",Jt,jt);X("ggggg",Jt,jt);$(["gggg","ggggg","GGGG","GGGGG"],function(e,t,a,o){t[o.substr(0,2)]=D(e)});$(["gg","GG"],function(t,a,o,i){a[i]=e.parseTwoDigitYear(t)});function ct(e,t,a,o,i){var n;if(null==e){return ue(this,o,i).year}else{n=ge(e,o,i);if(t>n){t=n}return ht.call(this,e,t,a,o,i)}}function ht(e,t,a,o,i){var n=he(e,t,a,o,i),l=de(n.year,0,n.dayOfYear);this.year(l.getUTCFullYear());this.month(l.getUTCMonth());this.date(l.getUTCDate());return this}N("Q",0,"Qo","quarter");R("quarter","Q");W("quarter",7);X("Q",Et);Q("Q",function(e,t){t[oa]=3*(D(e)-1)});N("D",["DD",2],"Do","date");R("date","D");W("date",9);X("D",qt);X("DD",qt,Vt);X("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Q(["D","DD"],ia);Q("Do",function(e,t){t[ia]=D(e.match(qt)[0],10)});var Ca=z("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear");R("dayOfYear","DDD");W("dayOfYear",4);X("DDD",Zt);X("DDDD",Nt);Q(["DDD","DDDD"],function(e,t,a){a._dayOfYear=D(e)});N("m",["mm",2],0,"minute");R("minute","m");W("minute",14);X("m",qt);X("mm",qt,Vt);Q(["m","mm"],ra);var Pa=z("Minutes",!1);N("s",["ss",2],0,"second");R("second","s");W("second",15);X("s",qt);X("ss",qt,Vt);Q(["s","ss"],la);var Ta=z("Seconds",!1);N("S",0,0,function(){return~~(this.millisecond()/100)});N(0,["SS",2],0,function(){return~~(this.millisecond()/10)});N(0,["SSS",3],0,"millisecond");N(0,["SSSS",4],0,function(){return 10*this.millisecond()});N(0,["SSSSS",5],0,function(){return 100*this.millisecond()});N(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()});N(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()});N(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()});N(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()});R("millisecond","ms");W("millisecond",16);X("S",Zt,Et);X("SS",Zt,Vt);X("SSS",Zt,Nt);var Oa;for(Oa="SSSS";9>=Oa.length;Oa+="S"){X(Oa,/\d+/)}function ut(e,t){t[sa]=D(1e3*("0."+e))}for(Oa="S";9>=Oa.length;Oa+="S"){Q(Oa,ut)}var Ia=z("Milliseconds",!1);N("z",0,0,"zoneAbbr");N("zz",0,0,"zoneName");var Aa=v.prototype;Aa.add=Sa;Aa.calendar=function(t,a){var o=t||Ne(),i=Je(o,this).startOf("day"),n=e.calendarFormat(this,i)||"sameElse",l=a&&(I(a[n])?a[n].call(this,o):a[n]);return this.format(l||this.localeData().calendar(n,this,Ne(o)))};Aa.clone=function(){return new v(this)};Aa.diff=function(e,t,a){var o,i,n,l;if(!this.isValid()){return NaN}o=Je(e,this);if(!o.isValid()){return NaN}i=6e4*(o.utcOffset()-this.utcOffset());t=F(t);if("year"===t||"month"===t||"quarter"===t){l=rt(this,o);if("quarter"===t){l=l/3}else if("year"===t){l=l/12}}else{n=this-o;l="second"===t?n/1e3:"minute"===t?n/6e4:"hour"===t?n/36e5:"day"===t?(n-i)/864e5:"week"===t?(n-i)/6048e5:n}return a?l:w(l)};Aa.endOf=function(e){e=F(e);if(e===void 0||"millisecond"===e){return this}if("date"===e){e="day"}return this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")};Aa.format=function(t){if(!t){t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat}var a=q(this,t);return this.localeData().postformat(a)};Aa.from=function(e,t){if(this.isValid()&&(S(e)&&e.isValid()||Ne(e).isValid())){return et({to:this,from:e}).locale(this.locale()).humanize(!t)}else{return this.localeData().invalidDate()}};Aa.fromNow=function(e){return this.from(Ne(),e)};Aa.to=function(e,t){if(this.isValid()&&(S(e)&&e.isValid()||Ne(e).isValid())){return et({from:this,to:e}).locale(this.locale()).humanize(!t)}else{return this.localeData().invalidDate()}};Aa.toNow=function(e){return this.to(Ne(),e)};Aa.get=function(e){e=F(e);if(I(this[e])){return this[e]()}return this};Aa.invalidAt=function(){return y(this).overflow};Aa.isAfter=function(e,t){var a=S(e)?e:Ne(e);if(!(this.isValid()&&a.isValid())){return!1}t=F(!l(t)?t:"millisecond");if("millisecond"===t){return this.valueOf()>a.valueOf()}else{return a.valueOf()<this.clone().startOf(t).valueOf()}};Aa.isBefore=function(e,t){var a=S(e)?e:Ne(e);if(!(this.isValid()&&a.isValid())){return!1}t=F(!l(t)?t:"millisecond");if("millisecond"===t){return this.valueOf()<a.valueOf()}else{return this.clone().endOf(t).valueOf()<a.valueOf()}};Aa.isBetween=function(e,t,a,o){o=o||"()";return("("===o[0]?this.isAfter(e,a):!this.isBefore(e,a))&&(")"===o[1]?this.isBefore(t,a):!this.isAfter(t,a))};Aa.isSame=function(e,t){var a=S(e)?e:Ne(e),o;if(!(this.isValid()&&a.isValid())){return!1}t=F(t||"millisecond");if("millisecond"===t){return this.valueOf()===a.valueOf()}else{o=a.valueOf();return this.clone().startOf(t).valueOf()<=o&&o<=this.clone().endOf(t).valueOf()}};Aa.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)};Aa.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)};Aa.isValid=function(){return x(this)};Aa.lang=Da;Aa.locale=lt;Aa.localeData=st;Aa.max=_a;Aa.min=ka;Aa.parsingFlags=function(){return u({},y(this))};Aa.set=E;Aa.startOf=function(e){e=F(e);switch(e){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0);}if("week"===e){this.weekday(0)}if("isoWeek"===e){this.isoWeekday(1)}if("quarter"===e){this.month(3*Math.floor(this.month()/3))}return this};Aa.subtract=wa;Aa.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]};Aa.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}};Aa.toDate=function(){return new Date(this.valueOf())};Aa.toISOString=function(){if(!this.isValid()){return null}var e=this.clone().utc();if(0>e.year()||9999<e.year()){return q(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}if(I(Date.prototype.toISOString)){return this.toDate().toISOString()}return q(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")};Aa.inspect=function(){if(!this.isValid()){return"moment.invalid(/* "+this._i+" */)"}var e="moment",t="";if(!this.isLocal()){e=0===this.utcOffset()?"moment.utc":"moment.parseZone";t="Z"}var a="["+e+"(\"]",o=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",i=t+"[\")]";return this.format(a+o+"-MM-DD[T]HH:mm:ss.SSS"+i)};Aa.toJSON=function(){return this.isValid()?this.toISOString():null};Aa.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")};Aa.unix=function(){return Math.floor(this.valueOf()/1e3)};Aa.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)};Aa.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}};Aa.year=ua;Aa.isLeapYear=function(){return le(this.year())};Aa.weekYear=function(e){return ct.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)};Aa.isoWeekYear=function(e){return ct.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)};Aa.quarter=Aa.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)};Aa.month=ie;Aa.daysInMonth=function(){return te(this.year(),this.month())};Aa.week=Aa.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")};Aa.isoWeek=Aa.isoWeeks=function(e){var t=ue(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")};Aa.weeksInYear=function(){var e=this.localeData()._week;return ge(this.year(),e.dow,e.doy)};Aa.isoWeeksInYear=function(){return ge(this.year(),1,4)};Aa.date=Ca;Aa.day=Aa.days=function(e){if(!this.isValid()){return null!=e?this:NaN}var t=this._isUTC?this._d.getUTCDay():this._d.getDay();if(null!=e){e=me(e,this.localeData());return this.add(e-t,"d")}else{return t}};Aa.weekday=function(e){if(!this.isValid()){return null!=e?this:NaN}var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")};Aa.isoWeekday=function(e){if(!this.isValid()){return null!=e?this:NaN}if(null!=e){var t=pe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else{return this.day()||7}};Aa.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")};Aa.hour=Aa.hours=ga;Aa.minute=Aa.minutes=Pa;Aa.second=Aa.seconds=Ta;Aa.millisecond=Aa.milliseconds=Ia;Aa.utcOffset=function(t,a,o){var i=this._offset||0,n;if(!this.isValid()){return null!=t?this:NaN}if(null!=t){if("string"==typeof t){t=Ke($t,t);if(null===t){return this}}else if(16>Math.abs(t)&&!o){t=60*t}if(!this._isUTC&&a){n=Qe(this)}this._offset=t;this._isUTC=!0;if(null!=n){this.add(n,"m")}if(i!==t){if(!a||this._changeInProgress){nt(this,et(t-i,"m"),1,!1)}else if(!this._changeInProgress){this._changeInProgress=!0;e.updateOffset(this,!0);this._changeInProgress=null}}return this}else{return this._isUTC?i:Qe(this)}};Aa.utc=function(e){return this.utcOffset(0,e)};Aa.local=function(e){if(this._isUTC){this.utcOffset(0,e);this._isUTC=!1;if(e){this.subtract(Qe(this),"m")}}return this};Aa.parseZone=function(){if(null!=this._tzm){this.utcOffset(this._tzm,!1,!0)}else if("string"==typeof this._i){var e=Ke(/Z|[+-]\d\d:?\d\d/gi,this._i);if(null!=e){this.utcOffset(e)}else{this.utcOffset(0,!0)}}return this};Aa.hasAlignedHourOffset=function(e){if(!this.isValid()){return!1}e=e?Ne(e).utcOffset():0;return 0==(this.utcOffset()-e)%60};Aa.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()};Aa.isLocal=function(){return this.isValid()?!this._isUTC:!1};Aa.isUtcOffset=function(){return this.isValid()?this._isUTC:!1};Aa.isUtc=$e;Aa.isUTC=$e;Aa.zoneAbbr=function(){return this._isUTC?"UTC":""};Aa.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""};Aa.dates=T("dates accessor is deprecated. Use date instead.",Ca);Aa.months=T("months accessor is deprecated. Use month instead",ie);Aa.years=T("years accessor is deprecated. Use year instead",ua);Aa.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){if(null!=e){if("string"!=typeof e){e=-e}this.utcOffset(e,t);return this}else{return-this.utcOffset()}});Aa.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted)){return this._isDSTShifted}var e={};_(e,this);e=Be(e);if(e._a){var t=e._isUTC?p(e._a):Ne(e._a);this._isDSTShifted=this.isValid()&&0<C(e._a,t.toArray())}else{this._isDSTShifted=!1}return this._isDSTShifted});function gt(e){return e}var Ma=M.prototype;Ma.calendar=function(e,t,a){var o=this._calendar[e]||this._calendar.sameElse;return I(o)?o.call(t,a):o};Ma.longDateFormat=function(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];if(t||!a){return t}this._longDateFormat[e]=a.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)});return this._longDateFormat[e]};Ma.invalidDate=function(){return this._invalidDate};Ma.ordinal=function(e){return this._ordinal.replace("%d",e)};Ma.preparse=gt;Ma.postformat=gt;Ma.relativeTime=function(e,t,a,o){var i=this._relativeTime[a];return I(i)?i(e,t,a,o):i.replace(/%d/i,e)};Ma.pastFuture=function(e,t){var a=this._relativeTime[0<e?"future":"past"];return I(a)?a(t):a.replace(/%s/i,t)};Ma.set=function(e){var t,a;for(a in e){t=e[a];if(I(t)){this[a]=t}else{this["_"+a]=t}}this._config=e;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)};Ma.months=function(e,t){if(!e){return o(this._months)?this._months:this._months.standalone}return o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ha).test(t)?"format":"standalone"][e.month()]};Ma.monthsShort=function(e,t){if(!e){return o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}return o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ha.test(t)?"format":"standalone"][e.month()]};Ma.monthsParse=function(e,t,a){var o,n,l;if(this._monthsParseExact){return ae.call(this,e,t,a)}if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[]}for(o=0;12>o;o++){n=p([2e3,o]);if(a&&!this._longMonthsParse[o]){this._longMonthsParse[o]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i");this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")}if(!a&&!this._monthsParse[o]){l="^"+this.months(n,"")+"|^"+this.monthsShort(n,"");this._monthsParse[o]=new RegExp(l.replace(".",""),"i")}if(a&&"MMMM"===t&&this._longMonthsParse[o].test(e)){return o}else if(a&&"MMM"===t&&this._shortMonthsParse[o].test(e)){return o}else if(!a&&this._monthsParse[o].test(e)){return o}}};Ma.monthsRegex=function(e){if(this._monthsParseExact){if(!h(this,"_monthsRegex")){ne.call(this)}if(e){return this._monthsStrictRegex}else{return this._monthsRegex}}else{if(!h(this,"_monthsRegex")){this._monthsRegex=ea}return this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex}};Ma.monthsShortRegex=function(e){if(this._monthsParseExact){if(!h(this,"_monthsRegex")){ne.call(this)}if(e){return this._monthsShortStrictRegex}else{return this._monthsShortRegex}}else{if(!h(this,"_monthsShortRegex")){this._monthsShortRegex=ea}return this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex}};Ma.week=function(e){return ue(e,this._week.dow,this._week.doy).week};Ma.firstDayOfYear=function(){return this._week.doy};Ma.firstDayOfWeek=function(){return this._week.dow};Ma.weekdays=function(e,t){if(!e){return o(this._weekdays)?this._weekdays:this._weekdays.standalone}return o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]};Ma.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin};Ma.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort};Ma.weekdaysParse=function(e,t,a){var o,n,l;if(this._weekdaysParseExact){return fe.call(this,e,t,a)}if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(o=0;7>o;o++){n=p([2e3,1]).day(o);if(a&&!this._fullWeekdaysParse[o]){this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(n,"").replace(".",".?")+"$","i");this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(n,"").replace(".",".?")+"$","i");this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(n,"").replace(".",".?")+"$","i")}if(!this._weekdaysParse[o]){l="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,"");this._weekdaysParse[o]=new RegExp(l.replace(".",""),"i")}if(a&&"dddd"===t&&this._fullWeekdaysParse[o].test(e)){return o}else if(a&&"ddd"===t&&this._shortWeekdaysParse[o].test(e)){return o}else if(a&&"dd"===t&&this._minWeekdaysParse[o].test(e)){return o}else if(!a&&this._weekdaysParse[o].test(e)){return o}}};Ma.weekdaysRegex=function(e){if(this._weekdaysParseExact){if(!h(this,"_weekdaysRegex")){ye.call(this)}if(e){return this._weekdaysStrictRegex}else{return this._weekdaysRegex}}else{if(!h(this,"_weekdaysRegex")){this._weekdaysRegex=ea}return this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex}};Ma.weekdaysShortRegex=function(e){if(this._weekdaysParseExact){if(!h(this,"_weekdaysRegex")){ye.call(this)}if(e){return this._weekdaysShortStrictRegex}else{return this._weekdaysShortRegex}}else{if(!h(this,"_weekdaysShortRegex")){this._weekdaysShortRegex=ea}return this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}};Ma.weekdaysMinRegex=function(e){if(this._weekdaysParseExact){if(!h(this,"_weekdaysRegex")){ye.call(this)}if(e){return this._weekdaysMinStrictRegex}else{return this._weekdaysMinRegex}}else{if(!h(this,"_weekdaysMinRegex")){this._weekdaysMinRegex=ea}return this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}};Ma.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)};Ma.meridiem=function(e,t,a){if(11<e){return a?"pm":"PM"}else{return a?"am":"AM"}};function mt(e,t,a,o){var i=Ce(),n=p().set(o,t);return i[a](n,e)}function pt(e,t,a){if(s(e)){t=e;e=void 0}e=e||"";if(null!=t){return mt(e,t,a,"month")}var o,n=[];for(o=0;12>o;o++){n[o]=mt(e,o,a,"month")}return n}function ft(e,t,a,o){if("boolean"==typeof e){if(s(t)){a=t;t=void 0}t=t||""}else{t=e;a=t;e=!1;if(s(t)){a=t;t=void 0}t=t||""}var n=Ce(),l=e?n._week.dow:0;if(null!=a){return mt(t,(a+l)%7,o,"day")}var d,c=[];for(d=0;7>d;d++){c[d]=mt(t,(d+l)%7,o,"day")}return c}we("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function ordinal(e){var t=e%10,a=1===D(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+a}});e.lang=T("moment.lang is deprecated. Use moment.locale instead.",we);e.langData=T("moment.langData is deprecated. Use moment.localeData instead.",Ce);var Ra=Math.abs;function yt(e,t,a,o){var i=et(t,a);e._milliseconds+=o*i._milliseconds;e._days+=o*i._days;e._months+=o*i._months;return e._bubble()}function bt(e){if(0>e){return Math.floor(e)}else{return Math.ceil(e)}}function xt(e){return 4800*e/146097}function kt(e){return 146097*e/4800}function _t(e){return function(){return this.as(e)}}var Fa=_t("ms"),La=_t("s"),Wa=_t("m"),Ya=_t("h"),za=_t("d"),Ha=_t("w"),Ba=_t("M"),Ea=_t("y");function vt(e){return function(){return this.isValid()?this._data[e]:NaN}}var Va=vt("milliseconds"),Na=vt("seconds"),Ua=vt("minutes"),ja=vt("hours"),qa=vt("days"),Ga=vt("months"),Xa=vt("years");var Za=Math.round,Ka={ss:44,s:45,m:45,h:22,d:26,M:11};function St(e,t,a,o,i){return i.relativeTime(t||1,!!a,e,o)}function wt(e,t,o){var i=et(e).abs(),n=Za(i.as("s")),l=Za(i.as("m")),s=Za(i.as("h")),d=Za(i.as("d")),c=Za(i.as("M")),h=Za(i.as("y")),u=n<=Ka.ss&&["s",n]||n<Ka.s&&["ss",n]||1>=l&&["m"]||l<Ka.m&&["mm",l]||1>=s&&["h"]||s<Ka.h&&["hh",s]||1>=d&&["d"]||d<Ka.d&&["dd",d]||1>=c&&["M"]||c<Ka.M&&["MM",c]||1>=h&&["y"]||["yy",h];u[2]=t;u[3]=0<+e;u[4]=o;return St.apply(null,u)}function Dt(e){if(e===void 0){return Za}if("function"==typeof e){Za=e;return!0}return!1}var Ja=Math.abs;function Ct(){if(!this.isValid()){return this.localeData().invalidDate()}var e=Ja(this._milliseconds)/1e3,t=Ja(this._days),a=Ja(this._months),o,i,n;o=w(e/60);i=w(o/60);e%=60;o%=60;n=w(a/12);a%=12;var l=n,d=a,c=t,u=i,h=o,m=e,s=this.asSeconds();if(!s){return"P0D"}return(0>s?"-":"")+"P"+(l?l+"Y":"")+(d?d+"M":"")+(c?c+"D":"")+(u||h||m?"T":"")+(u?u+"H":"")+(h?h+"M":"")+(m?m+"S":"")}var Qa=qe.prototype;Qa.isValid=function(){return this._isValid};Qa.abs=function(){var e=this._data;this._milliseconds=Ra(this._milliseconds);this._days=Ra(this._days);this._months=Ra(this._months);e.milliseconds=Ra(e.milliseconds);e.seconds=Ra(e.seconds);e.minutes=Ra(e.minutes);e.hours=Ra(e.hours);e.months=Ra(e.months);e.years=Ra(e.years);return this};Qa.add=function(e,t){return yt(this,e,t,1)};Qa.subtract=function(e,t){return yt(this,e,t,-1)};Qa.as=function(e){if(!this.isValid()){return NaN}var t,a,o=this._milliseconds;e=F(e);if("month"===e||"year"===e){t=this._days+o/864e5;a=this._months+xt(t);return"month"===e?a:a/12}else{t=this._days+Math.round(kt(this._months));switch(e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw new Error("Unknown unit "+e);}}};Qa.asMilliseconds=Fa;Qa.asSeconds=La;Qa.asMinutes=Wa;Qa.asHours=Ya;Qa.asDays=za;Qa.asWeeks=Ha;Qa.asMonths=Ba;Qa.asYears=Ea;Qa.valueOf=function(){if(!this.isValid()){return NaN}return this._milliseconds+864e5*this._days+2592e6*(this._months%12)+31536e6*D(this._months/12)};Qa._bubble=function(){var e=this._milliseconds,t=this._days,a=this._months,o=this._data,i,n,l,s,d;if(!(0<=e&&0<=t&&0<=a||0>=e&&0>=t&&0>=a)){e+=864e5*bt(kt(a)+t);t=0;a=0}o.milliseconds=e%1e3;i=w(e/1e3);o.seconds=i%60;n=w(i/60);o.minutes=n%60;l=w(n/60);o.hours=l%24;t+=w(l/24);d=w(xt(t));a+=d;t-=bt(kt(d));s=w(a/12);a%=12;o.days=t;o.months=a;o.years=s;return this};Qa.get=function(e){e=F(e);return this.isValid()?this[e+"s"]():NaN};Qa.milliseconds=Va;Qa.seconds=Na;Qa.minutes=Ua;Qa.hours=ja;Qa.days=qa;Qa.weeks=function(){return w(this.days()/7)};Qa.months=Ga;Qa.years=Xa;Qa.humanize=function(e){if(!this.isValid()){return this.localeData().invalidDate()}var t=this.localeData(),a=wt(this,!e,t);if(e){a=t.pastFuture(+this,a)}return t.postformat(a)};Qa.toISOString=Ct;Qa.toString=Ct;Qa.toJSON=Ct;Qa.locale=lt;Qa.localeData=st;Qa.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ct);Qa.lang=Da;N("X",0,0,"unix");N("x",0,0,"valueOf");X("x",Qt);X("X",/[+-]?\d+(\.\d{1,3})?/);Q("X",function(e,t,a){a._d=new Date(1e3*parseFloat(e,10))});Q("x",function(e,t,a){a._d=new Date(D(e))});e.version="2.18.1";(function(e){Pt=e})(Ne);e.fn=Aa;e.min=function(){var e=[].slice.call(arguments,0);return Ue("isBefore",e)};e.max=function(){var e=[].slice.call(arguments,0);return Ue("isAfter",e)};e.now=function now(){return Date.now?Date.now():+new Date};e.utc=p;e.unix=function(e){return Ne(1e3*e)};e.months=function(e,t){return pt(e,t,"months")};e.isDate=d;e.locale=we;e.invalid=k;e.duration=et;e.isMoment=S;e.weekdays=function(e,t,a){return ft(e,t,a,"weekdays")};e.parseZone=function(){return Ne.apply(null,arguments).parseZone()};e.localeData=Ce;e.isDuration=Ge;e.monthsShort=function(e,t){return pt(e,t,"monthsShort")};e.weekdaysMin=function(e,t,a){return ft(e,t,a,"weekdaysMin")};e.defineLocale=De;e.updateLocale=function(e,t){if(null!=t){var a,o=ma;if(null!=pa[e]){o=pa[e]._config}t=A(o,t);a=new M(t);a.parentLocale=pa[e];pa[e]=a;we(e)}else{if(null!=pa[e]){if(null!=pa[e].parentLocale){pa[e]=pa[e].parentLocale}else if(null!=pa[e]){delete pa[e]}}}return pa[e]};e.locales=function(){return Ft(pa)};e.weekdaysShort=function(e,t,a){return ft(e,t,a,"weekdaysShort")};e.normalizeUnits=F;e.relativeTimeRounding=Dt;e.relativeTimeThreshold=function(e,t){if(Ka[e]===void 0){return!1}if(t===void 0){return Ka[e]}Ka[e]=t;if("s"===e){Ka.ss=t-1}return!0};e.calendarFormat=function(e,t){var a=e.diff(t,"days",!0);return-6>a?"sameElse":-1>a?"lastWeek":0>a?"lastDay":1>a?"sameDay":2>a?"nextDay":7>a?"nextWeek":"sameElse"};e.prototype=Aa;return e})},{}],7:[function(e,t){var a=e(29)();a.helpers=e(45);e(27)(a);a.defaults=e(25);a.Element=e(26);a.elements=e(40);a.Interaction=e(28);a.platform=e(48);e(31)(a);e(22)(a);e(23)(a);e(24)(a);e(30)(a);e(33)(a);e(32)(a);e(35)(a);e(54)(a);e(52)(a);e(53)(a);e(55)(a);e(56)(a);e(57)(a);e(15)(a);e(16)(a);e(17)(a);e(18)(a);e(19)(a);e(20)(a);e(21)(a);e(8)(a);e(9)(a);e(10)(a);e(11)(a);e(12)(a);e(13)(a);e(14)(a);var o=[e(49)(a),e(50)(a),e(51)(a)];a.plugins.register(o);a.platform.initialize();t.exports=a;if("undefined"!=typeof window){window.Chart=a}a.canvasHelpers=a.helpers.canvas},{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,35:35,40:40,45:45,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,8:8,9:9}],8:[function(e,t){'use strict';t.exports=function(e){e.Bar=function(t,a){a.type="bar";return new e(t,a)}}},{}],9:[function(e,t){'use strict';t.exports=function(e){e.Bubble=function(t,a){a.type="bubble";return new e(t,a)}}},{}],10:[function(e,t){'use strict';t.exports=function(e){e.Doughnut=function(t,a){a.type="doughnut";return new e(t,a)}}},{}],11:[function(e,t){'use strict';t.exports=function(e){e.Line=function(t,a){a.type="line";return new e(t,a)}}},{}],12:[function(e,t){'use strict';t.exports=function(e){e.PolarArea=function(t,a){a.type="polarArea";return new e(t,a)}}},{}],13:[function(e,t){'use strict';t.exports=function(e){e.Radar=function(t,a){a.type="radar";return new e(t,a)}}},{}],14:[function(e,t){'use strict';t.exports=function(e){e.Scatter=function(t,a){a.type="scatter";return new e(t,a)}}},{}],15:[function(e,t){'use strict';var a=e(25),o=e(40),n=e(45);a._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}});a._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(e,t){var a="";if(0<e.length){if(e[0].yLabel){a=e[0].yLabel}else if(0<t.labels.length&&e[0].index<t.labels.length){a=t.labels[e[0].index]}}return a},label:function label(e,t){var a=t.datasets[e.datasetIndex].label||"";return a+": "+e.xLabel}},mode:"index",axis:"y"}});t.exports=function(e){e.controllers.bar=e.DatasetController.extend({dataElementType:o.Rectangle,initialize:function initialize(){var t=this,a;e.DatasetController.prototype.initialize.apply(t,arguments);a=t.getMeta();a.stack=t.getDataset().stack;a.bar=!0},update:function update(e){var t=this,a=t.getMeta().data,o,n;t._ruler=t.getRuler();for(o=0,n=a.length;o<n;++o){t.updateElement(a[o],o,e)}},updateElement:function updateElement(e,t,a){var o=this,i=o.chart,l=o.getMeta(),s=o.getDataset(),d=e.custom||{},c=i.options.elements.rectangle;e._xScale=o.getScaleForId(l.xAxisID);e._yScale=o.getScaleForId(l.yAxisID);e._datasetIndex=o.index;e._index=t;e._model={datasetLabel:s.label,label:i.data.labels[t],borderSkipped:d.borderSkipped?d.borderSkipped:c.borderSkipped,backgroundColor:d.backgroundColor?d.backgroundColor:n.valueAtIndexOrDefault(s.backgroundColor,t,c.backgroundColor),borderColor:d.borderColor?d.borderColor:n.valueAtIndexOrDefault(s.borderColor,t,c.borderColor),borderWidth:d.borderWidth?d.borderWidth:n.valueAtIndexOrDefault(s.borderWidth,t,c.borderWidth)};o.updateElementGeometry(e,t,a);e.pivot()},updateElementGeometry:function updateElementGeometry(e,t,a){var o=this,i=e._model,n=o.getValueScale(),l=n.getBasePixel(),s=n.isHorizontal(),d=o._ruler||o.getRuler(),c=o.calculateBarValuePixels(o.index,t),h=o.calculateBarIndexPixels(o.index,t,d);i.horizontal=s;i.base=a?l:c.base;i.x=s?a?l:c.head:h.center;i.y=s?h.center:a?l:c.head;i.height=s?h.size:void 0;i.width=s?void 0:h.size},getValueScaleId:function getValueScaleId(){return this.getMeta().yAxisID},getIndexScaleId:function getIndexScaleId(){return this.getMeta().xAxisID},getValueScale:function getValueScale(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function getIndexScale(){return this.getScaleForId(this.getIndexScaleId())},getStackCount:function getStackCount(e){var t=this,a=t.chart,o=t.getIndexScale(),n=o.options.stacked,l=e===void 0?a.data.datasets.length:e+1,s=[],d,c;for(d=0;d<l;++d){c=a.getDatasetMeta(d);if(c.bar&&a.isDatasetVisible(d)&&(!1===n||!0===n&&-1===s.indexOf(c.stack)||n===void 0&&(c.stack===void 0||-1===s.indexOf(c.stack)))){s.push(c.stack)}}return s.length},getStackIndex:function getStackIndex(e){return this.getStackCount(e)-1},getRuler:function getRuler(){var e=this,t=e.getIndexScale(),a=e.getStackCount(),o=e.index,n=[],l=t.isHorizontal(),s=l?t.left:t.top,d=s+(l?t.width:t.height),c,h;for(c=0,h=e.getMeta().data.length;c<h;++c){n.push(t.getPixelForValue(null,c,o))}return{pixels:n,start:s,end:d,stackCount:a,scale:t}},calculateBarValuePixels:function calculateBarValuePixels(e,t){var a=this,o=a.chart,n=a.getMeta(),l=a.getValueScale(),s=o.data.datasets,d=l.getRightValue(s[e].data[t]),c=l.options.stacked,h=n.stack,u=0,m,p,f,y,x,k;if(c||c===void 0&&h!==void 0){for(m=0;m<e;++m){p=o.getDatasetMeta(m);if(p.bar&&p.stack===h&&p.controller.getValueScaleId()===l.id&&o.isDatasetVisible(m)){f=l.getRightValue(s[m].data[t]);if(0>d&&0>f||0<=d&&0<f){u+=f}}}}y=l.getPixelForValue(u);x=l.getPixelForValue(u+d);k=(x-y)/2;return{size:k,base:y,head:x,center:x+k/2}},calculateBarIndexPixels:function calculateBarIndexPixels(e,t,a){var o=this,i=a.scale.options,l=o.getStackIndex(e),s=a.pixels,d=s[t],c=s.length,h=a.start,u=a.end,m,p,f,y,x,k;if(1===c){m=d>h?d-h:u-d;p=d<u?u-d:d-h}else{if(0<t){m=(d-s[t-1])/2;if(t===c-1){p=m}}if(t<c-1){p=(s[t+1]-d)/2;if(0===t){m=p}}}f=m*i.categoryPercentage;y=p*i.categoryPercentage;x=(f+y)/a.stackCount;k=x*i.barPercentage;k=Math.min(n.valueOrDefault(i.barThickness,k),n.valueOrDefault(i.maxBarThickness,1/0));d-=f;d+=x*l;d+=(x-k)/2;return{size:k,base:d,head:d+k,center:d+k/2}},draw:function draw(){var e=this,t=e.chart,a=e.getValueScale(),o=e.getMeta().data,l=e.getDataset(),s=o.length,d=0;n.canvas.clipArea(t.ctx,t.chartArea);for(;d<s;++d){if(!isNaN(a.getRightValue(l.data[d]))){o[d].draw()}}n.canvas.unclipArea(t.ctx)},setHoverStyle:function setHoverStyle(e){var t=this.chart.data.datasets[e._datasetIndex],a=e._index,o=e.custom||{},i=e._model;i.backgroundColor=o.hoverBackgroundColor?o.hoverBackgroundColor:n.valueAtIndexOrDefault(t.hoverBackgroundColor,a,n.getHoverColor(i.backgroundColor));i.borderColor=o.hoverBorderColor?o.hoverBorderColor:n.valueAtIndexOrDefault(t.hoverBorderColor,a,n.getHoverColor(i.borderColor));i.borderWidth=o.hoverBorderWidth?o.hoverBorderWidth:n.valueAtIndexOrDefault(t.hoverBorderWidth,a,i.borderWidth)},removeHoverStyle:function removeHoverStyle(e){var t=this.chart.data.datasets[e._datasetIndex],a=e._index,o=e.custom||{},i=e._model,l=this.chart.options.elements.rectangle;i.backgroundColor=o.backgroundColor?o.backgroundColor:n.valueAtIndexOrDefault(t.backgroundColor,a,l.backgroundColor);i.borderColor=o.borderColor?o.borderColor:n.valueAtIndexOrDefault(t.borderColor,a,l.borderColor);i.borderWidth=o.borderWidth?o.borderWidth:n.valueAtIndexOrDefault(t.borderWidth,a,l.borderWidth)}});e.controllers.horizontalBar=e.controllers.bar.extend({getValueScaleId:function getValueScaleId(){return this.getMeta().xAxisID},getIndexScaleId:function getIndexScaleId(){return this.getMeta().yAxisID}})}},{25:25,40:40,45:45}],16:[function(e,t){'use strict';var a=e(25),o=e(40),n=e(45);a._set("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 title(){return""},label:function label(e,t){var a=t.datasets[e.datasetIndex].label||"",o=t.datasets[e.datasetIndex].data[e.index];return a+": ("+e.xLabel+", "+e.yLabel+", "+o.r+")"}}}});t.exports=function(e){e.controllers.bubble=e.DatasetController.extend({dataElementType:o.Point,update:function update(e){var t=this,a=t.getMeta(),o=a.data;n.each(o,function(a,o){t.updateElement(a,o,e)})},updateElement:function updateElement(e,t,a){var o=this,i=o.getMeta(),n=e.custom||{},l=o.getScaleForId(i.xAxisID),s=o.getScaleForId(i.yAxisID),d=o._resolveElementOptions(e,t),c=o.getDataset().data[t],h=o.index,u=a?l.getPixelForDecimal(.5):l.getPixelForValue("object"===_typeof(c)?c:NaN,t,h),m=a?s.getBasePixel():s.getPixelForValue(c,t,h);e._xScale=l;e._yScale=s;e._options=d;e._datasetIndex=h;e._index=t;e._model={backgroundColor:d.backgroundColor,borderColor:d.borderColor,borderWidth:d.borderWidth,hitRadius:d.hitRadius,pointStyle:d.pointStyle,radius:a?0:d.radius,skip:n.skip||isNaN(u)||isNaN(m),x:u,y:m};e.pivot()},setHoverStyle:function setHoverStyle(e){var t=e._model,a=e._options;t.backgroundColor=n.valueOrDefault(a.hoverBackgroundColor,n.getHoverColor(a.backgroundColor));t.borderColor=n.valueOrDefault(a.hoverBorderColor,n.getHoverColor(a.borderColor));t.borderWidth=n.valueOrDefault(a.hoverBorderWidth,a.borderWidth);t.radius=a.radius+a.hoverRadius},removeHoverStyle:function removeHoverStyle(e){var t=e._model,a=e._options;t.backgroundColor=a.backgroundColor;t.borderColor=a.borderColor;t.borderWidth=a.borderWidth;t.radius=a.radius},_resolveElementOptions:function _resolveElementOptions(e,t){var a=this,o=a.chart,l=o.data.datasets,s=l[a.index],d=e.custom||{},c=o.options.elements.point,h=n.options.resolve,u=s.data[t],m={},p,f,y,x={chart:o,dataIndex:t,dataset:s,datasetIndex:a.index},k=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle"];for(p=0,f=k.length;p<f;++p){y=k[p];m[y]=h([d[y],s[y],c[y]],x,t)}m.radius=h([d.radius,u?u.r:void 0,s.radius,c.radius],x,t);return m}})}},{25:25,40:40,45:45}],17:[function(e,t){'use strict';var a=e(25),o=e(40),n=e(45);a._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function legendCallback(e){var t=["<ul class=\""+e.id+"-legend\">"],a=e.data,o=a.datasets,n=a.labels;if(o.length){for(var l=0;l<o[0].data.length;++l){t.push("<li><span style=\"background-color:"+o[0].backgroundColor[l]+"\"></span>");if(n[l]){t.push(n[l])}t.push("</li>")}}t.push("</ul>");return t.join("")},legend:{labels:{generateLabels:function generateLabels(e){var t=e.data;if(t.labels.length&&t.datasets.length){return t.labels.map(function(a,o){var i=e.getDatasetMeta(0),l=t.datasets[0],s=i.data[o],d=s&&s.custom||{},c=n.valueAtIndexOrDefault,h=e.options.elements.arc,u=d.backgroundColor?d.backgroundColor:c(l.backgroundColor,o,h.backgroundColor),m=d.borderColor?d.borderColor:c(l.borderColor,o,h.borderColor),p=d.borderWidth?d.borderWidth:c(l.borderWidth,o,h.borderWidth);return{text:a,fillStyle:u,strokeStyle:m,lineWidth:p,hidden:isNaN(l.data[o])||i.data[o].hidden,index:o}})}return[]}},onClick:function onClick(t,e){var a=e.index,o=this.chart,n,l,s;for(n=0,l=(o.data.datasets||[]).length;n<l;++n){s=o.getDatasetMeta(n);if(s.data[a]){s.data[a].hidden=!s.data[a].hidden}}o.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function title(){return""},label:function label(e,t){var a=t.labels[e.index],o=": "+t.datasets[e.datasetIndex].data[e.index];if(n.isArray(a)){a=a.slice();a[0]+=o}else{a+=o}return a}}}});a._set("pie",n.clone(a.doughnut));a._set("pie",{cutoutPercentage:0});t.exports=function(e){e.controllers.doughnut=e.controllers.pie=e.DatasetController.extend({dataElementType:o.Arc,linkScales:n.noop,getRingIndex:function getRingIndex(e){for(var t=0,a=0;a<e;++a){if(this.chart.isDatasetVisible(a)){++t}}return t},update:function update(e){var t=this,a=t.chart,o=a.chartArea,i=a.options,l=i.elements.arc,s=o.right-o.left-l.borderWidth,d=o.bottom-o.top-l.borderWidth,c=Math.min(s,d),h={x:0,y:0},u=t.getMeta(),m=i.cutoutPercentage,p=i.circumference;if(p<2*Math.PI){var f=i.rotation%(2*Math.PI);f+=2*Math.PI*(f>=Math.PI?-1:f<-Math.PI?1:0);var y=f+p,x={x:Math.cos(f),y:Math.sin(f)},k={x:Math.cos(y),y:Math.sin(y)},_=0>=f&&0<=y||f<=2*Math.PI&&2*Math.PI<=y,v=f<=.5*Math.PI&&.5*Math.PI<=y||f<=2.5*Math.PI&&2.5*Math.PI<=y,S=f<=-Math.PI&&-Math.PI<=y||f<=Math.PI&&Math.PI<=y,w=f<=.5*-Math.PI&&.5*-Math.PI<=y||f<=1.5*Math.PI&&1.5*Math.PI<=y,D=m/100,C={x:S?-1:Math.min(x.x*(0>x.x?1:D),k.x*(0>k.x?1:D)),y:w?-1:Math.min(x.y*(0>x.y?1:D),k.y*(0>k.y?1:D))},P={x:_?1:Math.max(x.x*(0<x.x?1:D),k.x*(0<k.x?1:D)),y:v?1:Math.max(x.y*(0<x.y?1:D),k.y*(0<k.y?1:D))},T={width:.5*(P.x-C.x),height:.5*(P.y-C.y)};c=Math.min(s/T.width,d/T.height);h={x:-.5*(P.x+C.x),y:-.5*(P.y+C.y)}}a.borderWidth=t.getMaxBorderWidth(u.data);a.outerRadius=Math.max((c-a.borderWidth)/2,0);a.innerRadius=Math.max(m?a.outerRadius/100*m:0,0);a.radiusLength=(a.outerRadius-a.innerRadius)/a.getVisibleDatasetCount();a.offsetX=h.x*a.outerRadius;a.offsetY=h.y*a.outerRadius;u.total=t.calculateTotal();t.outerRadius=a.outerRadius-a.radiusLength*t.getRingIndex(t.index);t.innerRadius=Math.max(t.outerRadius-a.radiusLength,0);n.each(u.data,function(a,o){t.updateElement(a,o,e)})},updateElement:function updateElement(e,t,a){var o=this,i=o.chart,l=i.chartArea,s=i.options,d=s.animation,c=(l.left+l.right)/2,h=(l.top+l.bottom)/2,u=s.rotation,m=s.rotation,p=o.getDataset(),f=a&&d.animateRotate?0:e.hidden?0:o.calculateCircumference(p.data[t])*(s.circumference/(2*Math.PI)),y=a&&d.animateScale?0:o.innerRadius,x=a&&d.animateScale?0:o.outerRadius,k=n.valueAtIndexOrDefault;n.extend(e,{_datasetIndex:o.index,_index:t,_model:{x:c+i.offsetX,y:h+i.offsetY,startAngle:u,endAngle:m,circumference:f,outerRadius:x,innerRadius:y,label:k(p.label,t,i.data.labels[t])}});var _=e._model;this.removeHoverStyle(e);if(!a||!d.animateRotate){if(0===t){_.startAngle=s.rotation}else{_.startAngle=o.getMeta().data[t-1]._model.endAngle}_.endAngle=_.startAngle+_.circumference}e.pivot()},removeHoverStyle:function removeHoverStyle(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},calculateTotal:function calculateTotal(){var e=this.getDataset(),t=this.getMeta(),a=0,o;n.each(t.data,function(t,i){o=e.data[i];if(!isNaN(o)&&!t.hidden){a+=Math.abs(o)}});return a},calculateCircumference:function calculateCircumference(e){var t=this.getMeta().total;if(0<t&&!isNaN(e)){return 2*Math.PI*(e/t)}return 0},getMaxBorderWidth:function getMaxBorderWidth(e){for(var t=0,a=this.index,o=e.length,n,l,s=0;s<o;s++){n=e[s]._model?e[s]._model.borderWidth:0;l=e[s]._chart?e[s]._chart.config.data.datasets[a].hoverBorderWidth:0;t=n>t?n:t;t=l>t?l:t}return t}})}},{25:25,40:40,45:45}],18:[function(e,t){'use strict';var a=e(25),o=e(40),n=e(45);a._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});t.exports=function(e){function t(e,t){return n.valueOrDefault(e.showLine,t.showLines)}e.controllers.line=e.DatasetController.extend({datasetElementType:o.Line,dataElementType:o.Point,update:function update(e){var a=this,o=a.getMeta(),l=o.dataset,s=o.data||[],d=a.chart.options,c=d.elements.line,h=a.getScaleForId(o.yAxisID),u,m,p,f=a.getDataset(),y=t(f,d);if(y){p=l.custom||{};if(f.tension!==void 0&&f.lineTension===void 0){f.lineTension=f.tension}l._scale=h;l._datasetIndex=a.index;l._children=s;l._model={spanGaps:f.spanGaps?f.spanGaps:d.spanGaps,tension:p.tension?p.tension:n.valueOrDefault(f.lineTension,c.tension),backgroundColor:p.backgroundColor?p.backgroundColor:f.backgroundColor||c.backgroundColor,borderWidth:p.borderWidth?p.borderWidth:f.borderWidth||c.borderWidth,borderColor:p.borderColor?p.borderColor:f.borderColor||c.borderColor,borderCapStyle:p.borderCapStyle?p.borderCapStyle:f.borderCapStyle||c.borderCapStyle,borderDash:p.borderDash?p.borderDash:f.borderDash||c.borderDash,borderDashOffset:p.borderDashOffset?p.borderDashOffset:f.borderDashOffset||c.borderDashOffset,borderJoinStyle:p.borderJoinStyle?p.borderJoinStyle:f.borderJoinStyle||c.borderJoinStyle,fill:p.fill?p.fill:f.fill!==void 0?f.fill:c.fill,steppedLine:p.steppedLine?p.steppedLine:n.valueOrDefault(f.steppedLine,c.stepped),cubicInterpolationMode:p.cubicInterpolationMode?p.cubicInterpolationMode:n.valueOrDefault(f.cubicInterpolationMode,c.cubicInterpolationMode)};l.pivot()}for(u=0,m=s.length;u<m;++u){a.updateElement(s[u],u,e)}if(y&&0!==l._model.tension){a.updateBezierControlPoints()}for(u=0,m=s.length;u<m;++u){s[u].pivot()}},getPointBackgroundColor:function getPointBackgroundColor(e,t){var a=this.chart.options.elements.point.backgroundColor,o=this.getDataset(),i=e.custom||{};if(i.backgroundColor){a=i.backgroundColor}else if(o.pointBackgroundColor){a=n.valueAtIndexOrDefault(o.pointBackgroundColor,t,a)}else if(o.backgroundColor){a=o.backgroundColor}return a},getPointBorderColor:function getPointBorderColor(e,t){var a=this.chart.options.elements.point.borderColor,o=this.getDataset(),i=e.custom||{};if(i.borderColor){a=i.borderColor}else if(o.pointBorderColor){a=n.valueAtIndexOrDefault(o.pointBorderColor,t,a)}else if(o.borderColor){a=o.borderColor}return a},getPointBorderWidth:function getPointBorderWidth(e,t){var a=this.chart.options.elements.point.borderWidth,o=this.getDataset(),i=e.custom||{};if(!isNaN(i.borderWidth)){a=i.borderWidth}else if(!isNaN(o.pointBorderWidth)||n.isArray(o.pointBorderWidth)){a=n.valueAtIndexOrDefault(o.pointBorderWidth,t,a)}else if(!isNaN(o.borderWidth)){a=o.borderWidth}return a},updateElement:function updateElement(e,t,a){var o=this,i=o.getMeta(),l=e.custom||{},s=o.getDataset(),d=o.index,c=s.data[t],h=o.getScaleForId(i.yAxisID),u=o.getScaleForId(i.xAxisID),m=o.chart.options.elements.point,p,f;if(s.radius!==void 0&&s.pointRadius===void 0){s.pointRadius=s.radius}if(s.hitRadius!==void 0&&s.pointHitRadius===void 0){s.pointHitRadius=s.hitRadius}p=u.getPixelForValue("object"===_typeof(c)?c:NaN,t,d);f=a?h.getBasePixel():o.calculatePointY(c,t,d);e._xScale=u;e._yScale=h;e._datasetIndex=d;e._index=t;e._model={x:p,y:f,skip:l.skip||isNaN(p)||isNaN(f),radius:l.radius||n.valueAtIndexOrDefault(s.pointRadius,t,m.radius),pointStyle:l.pointStyle||n.valueAtIndexOrDefault(s.pointStyle,t,m.pointStyle),backgroundColor:o.getPointBackgroundColor(e,t),borderColor:o.getPointBorderColor(e,t),borderWidth:o.getPointBorderWidth(e,t),tension:i.dataset._model?i.dataset._model.tension:0,steppedLine:i.dataset._model?i.dataset._model.steppedLine:!1,hitRadius:l.hitRadius||n.valueAtIndexOrDefault(s.pointHitRadius,t,m.hitRadius)}},calculatePointY:function calculatePointY(e,t,a){var o=this,n=o.chart,l=o.getMeta(),s=o.getScaleForId(l.yAxisID),d=0,c=0,h,u,m;if(s.options.stacked){for(h=0;h<a;h++){u=n.data.datasets[h];m=n.getDatasetMeta(h);if("line"===m.type&&m.yAxisID===s.id&&n.isDatasetVisible(h)){var p=+s.getRightValue(u.data[t]);if(0>p){c+=p||0}else{d+=p||0}}}var f=+s.getRightValue(e);if(0>f){return s.getPixelForValue(c+f)}return s.getPixelForValue(d+f)}return s.getPixelForValue(e)},updateBezierControlPoints:function updateBezierControlPoints(){var t=this,a=t.getMeta(),o=t.chart.chartArea,l=a.data||[],s,d,c,h,u;if(a.dataset._model.spanGaps){l=l.filter(function(e){return!e._model.skip})}function e(e,t,a){return Math.max(Math.min(e,a),t)}if("monotone"===a.dataset._model.cubicInterpolationMode){n.splineCurveMonotone(l)}else{for(s=0,d=l.length;s<d;++s){c=l[s];h=c._model;u=n.splineCurve(n.previousItem(l,s)._model,h,n.nextItem(l,s)._model,a.dataset._model.tension);h.controlPointPreviousX=u.previous.x;h.controlPointPreviousY=u.previous.y;h.controlPointNextX=u.next.x;h.controlPointNextY=u.next.y}}if(t.chart.options.elements.line.capBezierPoints){for(s=0,d=l.length;s<d;++s){h=l[s]._model;h.controlPointPreviousX=e(h.controlPointPreviousX,o.left,o.right);h.controlPointPreviousY=e(h.controlPointPreviousY,o.top,o.bottom);h.controlPointNextX=e(h.controlPointNextX,o.left,o.right);h.controlPointNextY=e(h.controlPointNextY,o.top,o.bottom)}}},draw:function draw(){var e=this,a=e.chart,o=e.getMeta(),l=o.data||[],s=a.chartArea,d=l.length,c=0;n.canvas.clipArea(a.ctx,s);if(t(e.getDataset(),a.options)){o.dataset.draw()}n.canvas.unclipArea(a.ctx);for(;c<d;++c){l[c].draw(s)}},setHoverStyle:function setHoverStyle(e){var t=this.chart.data.datasets[e._datasetIndex],a=e._index,o=e.custom||{},i=e._model;i.radius=o.hoverRadius||n.valueAtIndexOrDefault(t.pointHoverRadius,a,this.chart.options.elements.point.hoverRadius);i.backgroundColor=o.hoverBackgroundColor||n.valueAtIndexOrDefault(t.pointHoverBackgroundColor,a,n.getHoverColor(i.backgroundColor));i.borderColor=o.hoverBorderColor||n.valueAtIndexOrDefault(t.pointHoverBorderColor,a,n.getHoverColor(i.borderColor));i.borderWidth=o.hoverBorderWidth||n.valueAtIndexOrDefault(t.pointHoverBorderWidth,a,i.borderWidth)},removeHoverStyle:function removeHoverStyle(e){var t=this,a=t.chart.data.datasets[e._datasetIndex],o=e._index,i=e.custom||{},l=e._model;if(a.radius!==void 0&&a.pointRadius===void 0){a.pointRadius=a.radius}l.radius=i.radius||n.valueAtIndexOrDefault(a.pointRadius,o,t.chart.options.elements.point.radius);l.backgroundColor=t.getPointBackgroundColor(e,o);l.borderColor=t.getPointBorderColor(e,o);l.borderWidth=t.getPointBorderWidth(e,o)}})}},{25:25,40:40,45:45}],19:[function(e,t){'use strict';var a=e(25),o=e(40),n=e(45);a._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function legendCallback(e){var t=["<ul class=\""+e.id+"-legend\">"],a=e.data,o=a.datasets,n=a.labels;if(o.length){for(var l=0;l<o[0].data.length;++l){t.push("<li><span style=\"background-color:"+o[0].backgroundColor[l]+"\"></span>");if(n[l]){t.push(n[l])}t.push("</li>")}}t.push("</ul>");return t.join("")},legend:{labels:{generateLabels:function generateLabels(e){var t=e.data;if(t.labels.length&&t.datasets.length){return t.labels.map(function(a,o){var i=e.getDatasetMeta(0),l=t.datasets[0],s=i.data[o],d=s.custom||{},c=n.valueAtIndexOrDefault,h=e.options.elements.arc,u=d.backgroundColor?d.backgroundColor:c(l.backgroundColor,o,h.backgroundColor),m=d.borderColor?d.borderColor:c(l.borderColor,o,h.borderColor),p=d.borderWidth?d.borderWidth:c(l.borderWidth,o,h.borderWidth);return{text:a,fillStyle:u,strokeStyle:m,lineWidth:p,hidden:isNaN(l.data[o])||i.data[o].hidden,index:o}})}return[]}},onClick:function onClick(t,e){var a=e.index,o=this.chart,n,l,s;for(n=0,l=(o.data.datasets||[]).length;n<l;++n){s=o.getDatasetMeta(n);s.data[a].hidden=!s.data[a].hidden}o.update()}},tooltips:{callbacks:{title:function title(){return""},label:function label(e,t){return t.labels[e.index]+": "+e.yLabel}}}});t.exports=function(e){e.controllers.polarArea=e.DatasetController.extend({dataElementType:o.Arc,linkScales:n.noop,update:function update(e){var t=this,a=t.chart,o=a.chartArea,i=t.getMeta(),l=a.options,s=l.elements.arc,d=Math.min(o.right-o.left,o.bottom-o.top);a.outerRadius=Math.max((d-s.borderWidth/2)/2,0);a.innerRadius=Math.max(l.cutoutPercentage?a.outerRadius/100*l.cutoutPercentage:1,0);a.radiusLength=(a.outerRadius-a.innerRadius)/a.getVisibleDatasetCount();t.outerRadius=a.outerRadius-a.radiusLength*t.index;t.innerRadius=t.outerRadius-a.radiusLength;i.count=t.countVisibleElements();n.each(i.data,function(a,o){t.updateElement(a,o,e)})},updateElement:function updateElement(e,t,a){for(var o=this,l=o.chart,s=o.getDataset(),d=l.options,c=d.animation,h=l.scale,u=l.data.labels,m=o.calculateCircumference(s.data[t]),p=h.xCenter,f=h.yCenter,y=0,x=o.getMeta(),k=0;k<t;++k){if(!isNaN(s.data[k])&&!x.data[k].hidden){++y}}var _=d.startAngle,v=e.hidden?0:h.getDistanceFromCenterForValue(s.data[t]),S=_+m*y,w=S+(e.hidden?0:m),D=c.animateScale?0:h.getDistanceFromCenterForValue(s.data[t]);n.extend(e,{_datasetIndex:o.index,_index:t,_scale:h,_model:{x:p,y:f,innerRadius:0,outerRadius:a?D:v,startAngle:a&&c.animateRotate?_:S,endAngle:a&&c.animateRotate?_:w,label:n.valueAtIndexOrDefault(u,t,u[t])}});o.removeHoverStyle(e);e.pivot()},removeHoverStyle:function removeHoverStyle(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},countVisibleElements:function countVisibleElements(){var e=this.getDataset(),t=this.getMeta(),a=0;n.each(t.data,function(t,o){if(!isNaN(e.data[o])&&!t.hidden){a++}});return a},calculateCircumference:function calculateCircumference(e){var t=this.getMeta().count;if(0<t&&!isNaN(e)){return 2*Math.PI/t}return 0}})}},{25:25,40:40,45:45}],20:[function(e,t){'use strict';var a=e(25),o=e(40),i=e(45);a._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}});t.exports=function(e){e.controllers.radar=e.DatasetController.extend({datasetElementType:o.Line,dataElementType:o.Point,linkScales:i.noop,update:function update(e){var t=this,a=t.getMeta(),o=a.dataset,n=a.data,l=o.custom||{},s=t.getDataset(),d=t.chart.options.elements.line,c=t.chart.scale;if(s.tension!==void 0&&s.lineTension===void 0){s.lineTension=s.tension}i.extend(a.dataset,{_datasetIndex:t.index,_scale:c,_children:n,_loop:!0,_model:{tension:l.tension?l.tension:i.valueOrDefault(s.lineTension,d.tension),backgroundColor:l.backgroundColor?l.backgroundColor:s.backgroundColor||d.backgroundColor,borderWidth:l.borderWidth?l.borderWidth:s.borderWidth||d.borderWidth,borderColor:l.borderColor?l.borderColor:s.borderColor||d.borderColor,fill:l.fill?l.fill:s.fill!==void 0?s.fill:d.fill,borderCapStyle:l.borderCapStyle?l.borderCapStyle:s.borderCapStyle||d.borderCapStyle,borderDash:l.borderDash?l.borderDash:s.borderDash||d.borderDash,borderDashOffset:l.borderDashOffset?l.borderDashOffset:s.borderDashOffset||d.borderDashOffset,borderJoinStyle:l.borderJoinStyle?l.borderJoinStyle:s.borderJoinStyle||d.borderJoinStyle}});a.dataset.pivot();i.each(n,function(a,o){t.updateElement(a,o,e)},t);t.updateBezierControlPoints()},updateElement:function updateElement(e,t,a){var o=this,n=e.custom||{},l=o.getDataset(),s=o.chart.scale,d=o.chart.options.elements.point,c=s.getPointPositionForValue(t,l.data[t]);if(l.radius!==void 0&&l.pointRadius===void 0){l.pointRadius=l.radius}if(l.hitRadius!==void 0&&l.pointHitRadius===void 0){l.pointHitRadius=l.hitRadius}i.extend(e,{_datasetIndex:o.index,_index:t,_scale:s,_model:{x:a?s.xCenter:c.x,y:a?s.yCenter:c.y,tension:n.tension?n.tension:i.valueOrDefault(l.lineTension,o.chart.options.elements.line.tension),radius:n.radius?n.radius:i.valueAtIndexOrDefault(l.pointRadius,t,d.radius),backgroundColor:n.backgroundColor?n.backgroundColor:i.valueAtIndexOrDefault(l.pointBackgroundColor,t,d.backgroundColor),borderColor:n.borderColor?n.borderColor:i.valueAtIndexOrDefault(l.pointBorderColor,t,d.borderColor),borderWidth:n.borderWidth?n.borderWidth:i.valueAtIndexOrDefault(l.pointBorderWidth,t,d.borderWidth),pointStyle:n.pointStyle?n.pointStyle:i.valueAtIndexOrDefault(l.pointStyle,t,d.pointStyle),hitRadius:n.hitRadius?n.hitRadius:i.valueAtIndexOrDefault(l.pointHitRadius,t,d.hitRadius)}});e._model.skip=n.skip?n.skip:isNaN(e._model.x)||isNaN(e._model.y)},updateBezierControlPoints:function updateBezierControlPoints(){var e=this.chart.chartArea,t=this.getMeta();i.each(t.data,function(a,o){var n=a._model,l=i.splineCurve(i.previousItem(t.data,o,!0)._model,n,i.nextItem(t.data,o,!0)._model,n.tension);n.controlPointPreviousX=Math.max(Math.min(l.previous.x,e.right),e.left);n.controlPointPreviousY=Math.max(Math.min(l.previous.y,e.bottom),e.top);n.controlPointNextX=Math.max(Math.min(l.next.x,e.right),e.left);n.controlPointNextY=Math.max(Math.min(l.next.y,e.bottom),e.top);a.pivot()})},setHoverStyle:function setHoverStyle(e){var t=this.chart.data.datasets[e._datasetIndex],a=e.custom||{},o=e._index,n=e._model;n.radius=a.hoverRadius?a.hoverRadius:i.valueAtIndexOrDefault(t.pointHoverRadius,o,this.chart.options.elements.point.hoverRadius);n.backgroundColor=a.hoverBackgroundColor?a.hoverBackgroundColor:i.valueAtIndexOrDefault(t.pointHoverBackgroundColor,o,i.getHoverColor(n.backgroundColor));n.borderColor=a.hoverBorderColor?a.hoverBorderColor:i.valueAtIndexOrDefault(t.pointHoverBorderColor,o,i.getHoverColor(n.borderColor));n.borderWidth=a.hoverBorderWidth?a.hoverBorderWidth:i.valueAtIndexOrDefault(t.pointHoverBorderWidth,o,n.borderWidth)},removeHoverStyle:function removeHoverStyle(e){var t=this.chart.data.datasets[e._datasetIndex],a=e.custom||{},o=e._index,n=e._model,l=this.chart.options.elements.point;n.radius=a.radius?a.radius:i.valueAtIndexOrDefault(t.pointRadius,o,l.radius);n.backgroundColor=a.backgroundColor?a.backgroundColor:i.valueAtIndexOrDefault(t.pointBackgroundColor,o,l.backgroundColor);n.borderColor=a.borderColor?a.borderColor:i.valueAtIndexOrDefault(t.pointBorderColor,o,l.borderColor);n.borderWidth=a.borderWidth?a.borderWidth:i.valueAtIndexOrDefault(t.pointBorderWidth,o,l.borderWidth)}})}},{25:25,40:40,45:45}],21:[function(e,t){'use strict';var a=e(25);a._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function title(){return""},label:function label(e){return"("+e.xLabel+", "+e.yLabel+")"}}}});t.exports=function(e){e.controllers.scatter=e.controllers.line}},{25:25}],22:[function(e,t){'use strict';var a=e(25),o=e(26),n=e(45);a._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:n.noop,onComplete:n.noop}});t.exports=function(e){e.Animation=o.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null});e.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function addAnimation(e,t,a,o){var n=this.animations,l,s;t.chart=e;if(!o){e.animating=!0}for(l=0,s=n.length;l<s;++l){if(n[l].chart===e){n[l]=t;return}}n.push(t);if(1===n.length){this.requestAnimationFrame()}},cancelAnimation:function cancelAnimation(e){var t=n.findIndex(this.animations,function(t){return t.chart===e});if(-1!==t){this.animations.splice(t,1);e.animating=!1}},requestAnimationFrame:function requestAnimationFrame(){var e=this;if(null===e.request){e.request=n.requestAnimFrame.call(window,function(){e.request=null;e.startDigest()})}},startDigest:function startDigest(){var e=this,t=Date.now(),a=0;if(1<e.dropFrames){a=Math.floor(e.dropFrames);e.dropFrames=e.dropFrames%1}e.advance(1+a);var o=Date.now();e.dropFrames+=(o-t)/e.frameDuration;if(0<e.animations.length){e.requestAnimationFrame()}},advance:function advance(e){var t=this.animations,a,o,l=0;while(l<t.length){a=t[l];o=a.chart;a.currentStep=(a.currentStep||0)+e;a.currentStep=Math.min(a.currentStep,a.numSteps);n.callback(a.render,[o,a],o);n.callback(a.onAnimationProgress,[a],o);if(a.currentStep>=a.numSteps){n.callback(a.onAnimationComplete,[a],o);o.animating=!1;t.splice(l,1)}else{++l}}}};Object.defineProperty(e.Animation.prototype,"animationObject",{get:function get(){return this}});Object.defineProperty(e.Animation.prototype,"chartInstance",{get:function get(){return this.chart},set:function set(e){this.chart=e}})}},{25:25,26:26,45:45}],23:[function(e,t){'use strict';var a=e(25),o=e(45),i=e(28),n=e(48);t.exports=function(e){var d=e.plugins;e.types={};e.instances={};e.controllers={};function t(e){e=e||{};var t=e.data=e.data||{};t.datasets=t.datasets||[];t.labels=t.labels||[];e.options=o.configMerge(a.global,a[e.type],e.options||{});return e}function l(e){var t=e.options;if(t.scale){e.scale.options=t.scale}else if(t.scales){t.scales.xAxes.concat(t.scales.yAxes).forEach(function(t){e.scales[t.id].options=t})}e.tooltip._options=t.tooltips}function s(e){return"top"===e||"bottom"===e}o.extend(e.prototype,{construct:function construct(a,i){var l=this;i=t(i);var s=n.acquireContext(a,i),d=s&&s.canvas,c=d&&d.height,h=d&&d.width;l.id=o.uid();l.ctx=s;l.canvas=d;l.config=i;l.width=h;l.height=c;l.aspectRatio=c?h/c:null;l.options=i.options;l._bufferedRender=!1;l.chart=l;l.controller=l;e.instances[l.id]=l;Object.defineProperty(l,"data",{get:function get(){return l.config.data},set:function set(e){l.config.data=e}});if(!s||!d){console.error("Failed to create chart: can't acquire context from the given item");return}l.initialize();l.update()},initialize:function initialize(){var e=this;d.notify(e,"beforeInit");o.retinaScale(e,e.options.devicePixelRatio);e.bindEvents();if(e.options.responsive){e.resize(!0)}e.ensureScalesHaveIDs();e.buildScales();e.initToolTip();d.notify(e,"afterInit");return e},clear:function clear(){o.canvas.clear(this);return this},stop:function stop(){e.animationService.cancelAnimation(this);return this},resize:function resize(e){var t=this,a=t.options,i=t.canvas,n=a.maintainAspectRatio&&t.aspectRatio||null,l=Math.max(0,Math.floor(o.getMaximumWidth(i))),s=Math.max(0,Math.floor(n?l/n:o.getMaximumHeight(i)));if(t.width===l&&t.height===s){return}i.width=t.width=l;i.height=t.height=s;i.style.width=l+"px";i.style.height=s+"px";o.retinaScale(t,a.devicePixelRatio);if(!e){var c={width:l,height:s};d.notify(t,"resize",[c]);if(t.options.onResize){t.options.onResize(t,c)}t.stop();t.update(t.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function ensureScalesHaveIDs(){var e=this.options,t=e.scales||{},a=e.scale;o.each(t.xAxes,function(e,t){e.id=e.id||"x-axis-"+t});o.each(t.yAxes,function(e,t){e.id=e.id||"y-axis-"+t});if(a){a.id=a.id||"scale"}},buildScales:function buildScales(){var t=this,a=t.options,i=t.scales={},n=[];if(a.scales){n=n.concat((a.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(a.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))}if(a.scale){n.push({options:a.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"})}o.each(n,function(a){var n=a.options,l=o.valueOrDefault(n.type,a.dtype),d=e.scaleService.getScaleConstructor(l);if(!d){return}if(s(n.position)!==s(a.dposition)){n.position=a.dposition}var c=new d({id:n.id,options:n,ctx:t.ctx,chart:t});i[c.id]=c;c.mergeTicksOptions();if(a.isDefault){t.scale=c}});e.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function buildOrUpdateControllers(){var t=this,a=[],i=[];o.each(t.data.datasets,function(o,n){var l=t.getDatasetMeta(n),s=o.type||t.config.type;if(l.type&&l.type!==s){t.destroyDatasetMeta(n);l=t.getDatasetMeta(n)}l.type=s;a.push(l.type);if(l.controller){l.controller.updateIndex(n)}else{var d=e.controllers[l.type];if(d===void 0){throw new Error("\""+l.type+"\" is not a chart type.")}l.controller=new d(t,n);i.push(l.controller)}},t);return i},resetElements:function resetElements(){var e=this;o.each(e.data.datasets,function(t,a){e.getDatasetMeta(a).controller.reset()},e)},reset:function reset(){this.resetElements();this.tooltip.initialize()},update:function update(e){var t=this;if(!e||"object"!==_typeof(e)){e={duration:e,lazy:arguments[1]}}l(t);if(!1===d.notify(t,"beforeUpdate")){return}t.tooltip._data=t.data;var a=t.buildOrUpdateControllers();o.each(t.data.datasets,function(e,a){t.getDatasetMeta(a).controller.buildOrUpdateElements()},t);t.updateLayout();o.each(a,function(e){e.reset()});t.updateDatasets();d.notify(t,"afterUpdate");if(t._bufferedRender){t._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}}else{t.render(e)}},updateLayout:function updateLayout(){var t=this;if(!1===d.notify(t,"beforeLayout")){return}e.layoutService.update(this,this.width,this.height);d.notify(t,"afterScaleUpdate");d.notify(t,"afterLayout")},updateDatasets:function updateDatasets(){var e=this;if(!1===d.notify(e,"beforeDatasetsUpdate")){return}for(var t=0,a=e.data.datasets.length;t<a;++t){e.updateDataset(t)}d.notify(e,"afterDatasetsUpdate")},updateDataset:function updateDataset(e){var t=this,a=t.getDatasetMeta(e),o={meta:a,index:e};if(!1===d.notify(t,"beforeDatasetUpdate",[o])){return}a.controller.update();d.notify(t,"afterDatasetUpdate",[o])},render:function render(t){var a=this;if(!t||"object"!==_typeof(t)){t={duration:t,lazy:arguments[1]}}var i=t.duration,n=t.lazy;if(!1===d.notify(a,"beforeRender")){return}var l=a.options.animation,s=function(e){d.notify(a,"afterRender");o.callback(l&&l.onComplete,[e],a)};if(l&&("undefined"!=typeof i&&0!==i||"undefined"==typeof i&&0!==l.duration)){var c=new e.Animation({numSteps:(i||l.duration)/16.66,easing:t.easing||l.easing,render:function render(e,t){var a=o.easing.effects[t.easing],i=t.currentStep,n=i/t.numSteps;e.draw(a(n),n,i)},onAnimationProgress:l.onProgress,onAnimationComplete:s});e.animationService.addAnimation(a,c,i,n)}else{a.draw();s(new e.Animation({numSteps:0,chart:a}))}return a},draw:function draw(e){var t=this;t.clear();if(o.isNullOrUndef(e)){e=1}t.transition(e);if(!1===d.notify(t,"beforeDraw",[e])){return}o.each(t.boxes,function(e){e.draw(t.chartArea)},t);if(t.scale){t.scale.draw()}t.drawDatasets(e);t.tooltip.draw();d.notify(t,"afterDraw",[e])},transition:function transition(e){for(var t=this,a=0,o=(t.data.datasets||[]).length;a<o;++a){if(t.isDatasetVisible(a)){t.getDatasetMeta(a).controller.transition(e)}}t.tooltip.transition(e)},drawDatasets:function drawDatasets(e){var t=this;if(!1===d.notify(t,"beforeDatasetsDraw",[e])){return}for(var a=(t.data.datasets||[]).length-1;0<=a;--a){if(t.isDatasetVisible(a)){t.drawDataset(a,e)}}d.notify(t,"afterDatasetsDraw",[e])},drawDataset:function drawDataset(e,t){var a=this,o=a.getDatasetMeta(e),i={meta:o,index:e,easingValue:t};if(!1===d.notify(a,"beforeDatasetDraw",[i])){return}o.controller.draw(t);d.notify(a,"afterDatasetDraw",[i])},getElementAtEvent:function getElementAtEvent(t){return i.modes.single(this,t)},getElementsAtEvent:function getElementsAtEvent(t){return i.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function getElementsAtXAxis(t){return i.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function getElementsAtEventForMode(t,e,a){var o=i.modes[e];if("function"==typeof o){return o(this,t,a)}return[]},getDatasetAtEvent:function getDatasetAtEvent(t){return i.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function getDatasetMeta(e){var t=this,a=t.data.datasets[e];if(!a._meta){a._meta={}}var o=a._meta[t.id];if(!o){o=a._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}}return o},getVisibleDatasetCount:function getVisibleDatasetCount(){for(var e=0,t=0,a=this.data.datasets.length;t<a;++t){if(this.isDatasetVisible(t)){e++}}return e},isDatasetVisible:function isDatasetVisible(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function generateLegend(){return this.options.legendCallback(this)},destroyDatasetMeta:function destroyDatasetMeta(e){var t=this.id,a=this.data.datasets[e],o=a._meta&&a._meta[t];if(o){o.controller.destroy();delete a._meta[t]}},destroy:function destroy(){var t=this,a=t.canvas,l,s;t.stop();for(l=0,s=t.data.datasets.length;l<s;++l){t.destroyDatasetMeta(l)}if(a){t.unbindEvents();o.canvas.clear(t);n.releaseContext(t.ctx);t.canvas=null;t.ctx=null}d.notify(t,"destroy");delete e.instances[t.id]},toBase64Image:function toBase64Image(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function initToolTip(){var t=this;t.tooltip=new e.Tooltip({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function bindEvents(){var e=this,t=e._listeners={},a=function(){e.eventHandler.apply(e,arguments)};o.each(e.options.events,function(o){n.addEventListener(e,o,a);t[o]=a});if(e.options.responsive){a=function(){e.resize()};n.addEventListener(e,"resize",a);t.resize=a}},unbindEvents:function unbindEvents(){var e=this,t=e._listeners;if(!t){return}delete e._listeners;o.each(t,function(t,a){n.removeEventListener(e,a,t)})},updateHoverStyle:function updateHoverStyle(e,t,a){var o=a?"setHoverStyle":"removeHoverStyle",n,l,s;for(l=0,s=e.length;l<s;++l){n=e[l];if(n){this.getDatasetMeta(n._datasetIndex).controller[o](n)}}},eventHandler:function eventHandler(t){var e=this,a=e.tooltip;if(!1===d.notify(e,"beforeEvent",[t])){return}e._bufferedRender=!0;e._bufferedRequest=null;var o=e.handleEvent(t);o|=a&&a.handleEvent(t);d.notify(e,"afterEvent",[t]);var i=e._bufferedRequest;if(i){e.render(i)}else if(o&&!e.animating){e.stop();e.render(e.options.hover.animationDuration,!0)}e._bufferedRender=!1;e._bufferedRequest=null;return e},handleEvent:function handleEvent(t){var e=this,a=e.options||{},i=a.hover,n=!1;e.lastActive=e.lastActive||[];if("mouseout"===t.type){e.active=[]}else{e.active=e.getElementsAtEventForMode(t,i.mode,i)}o.callback(a.onHover||a.hover.onHover,[t.native,e.active],e);if("mouseup"===t.type||"click"===t.type){if(a.onClick){a.onClick.call(e,t.native,e.active)}}if(e.lastActive.length){e.updateHoverStyle(e.lastActive,i.mode,!1)}if(e.active.length&&i.mode){e.updateHoverStyle(e.active,i.mode,!0)}n=!o.arrayEquals(e.active,e.lastActive);e.lastActive=e.active;return n}});e.Controller=e}},{25:25,28:28,45:45,48:48}],24:[function(e,t){'use strict';var a=e(45);t.exports=function(e){var i=["push","pop","shift","splice","unshift"];function t(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}});i.forEach(function(t){var o="onData"+t.charAt(0).toUpperCase()+t.slice(1),i=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function value(){var t=Array.prototype.slice.call(arguments),n=i.apply(this,t);a.each(e._chartjs.listeners,function(e){if("function"==typeof e[o]){e[o].apply(e,t)}});return n}})})}function o(e,t){var a=e._chartjs;if(!a){return}var o=a.listeners,n=o.indexOf(t);if(-1!==n){o.splice(n,1)}if(0<o.length){return}i.forEach(function(t){delete e[t]});delete e._chartjs}e.DatasetController=function(e,t){this.initialize(e,t)};a.extend(e.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function initialize(e,t){var a=this;a.chart=e;a.index=t;a.linkScales();a.addElements()},updateIndex:function updateIndex(e){this.index=e},linkScales:function linkScales(){var e=this,t=e.getMeta(),a=e.getDataset();if(null===t.xAxisID){t.xAxisID=a.xAxisID||e.chart.options.scales.xAxes[0].id}if(null===t.yAxisID){t.yAxisID=a.yAxisID||e.chart.options.scales.yAxes[0].id}},getDataset:function getDataset(){return this.chart.data.datasets[this.index]},getMeta:function getMeta(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function getScaleForId(e){return this.chart.scales[e]},reset:function reset(){this.update(!0)},destroy:function destroy(){if(this._data){o(this._data,this)}},createMetaDataset:function createMetaDataset(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function createMetaData(e){var t=this,a=t.dataElementType;return a&&new a({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function addElements(){var e=this,t=e.getMeta(),a=e.getDataset().data||[],o=t.data,n,l;for(n=0,l=a.length;n<l;++n){o[n]=o[n]||e.createMetaData(n)}t.dataset=t.dataset||e.createMetaDataset()},addElementAndReset:function addElementAndReset(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t);this.updateElement(t,e,!0)},buildOrUpdateElements:function buildOrUpdateElements(){var e=this,a=e.getDataset(),i=a.data||(a.data=[]);if(e._data!==i){if(e._data){o(e._data,e)}t(i,e);e._data=i}e.resyncElements()},update:a.noop,transition:function transition(e){var t=this.getMeta(),a=t.data||[],o=a.length,n=0;for(;n<o;++n){a[n].transition(e)}if(t.dataset){t.dataset.transition(e)}},draw:function draw(){var e=this.getMeta(),t=e.data||[],a=t.length,o=0;if(e.dataset){e.dataset.draw()}for(;o<a;++o){t[o].draw()}},removeHoverStyle:function removeHoverStyle(e,t){var o=this.chart.data.datasets[e._datasetIndex],i=e._index,n=e.custom||{},l=a.valueAtIndexOrDefault,s=e._model;s.backgroundColor=n.backgroundColor?n.backgroundColor:l(o.backgroundColor,i,t.backgroundColor);s.borderColor=n.borderColor?n.borderColor:l(o.borderColor,i,t.borderColor);s.borderWidth=n.borderWidth?n.borderWidth:l(o.borderWidth,i,t.borderWidth)},setHoverStyle:function setHoverStyle(e){var t=this.chart.data.datasets[e._datasetIndex],o=e._index,i=e.custom||{},n=a.valueAtIndexOrDefault,l=a.getHoverColor,s=e._model;s.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:n(t.hoverBackgroundColor,o,l(s.backgroundColor));s.borderColor=i.hoverBorderColor?i.hoverBorderColor:n(t.hoverBorderColor,o,l(s.borderColor));s.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:n(t.hoverBorderWidth,o,s.borderWidth)},resyncElements:function resyncElements(){var e=this,t=e.getMeta(),a=e.getDataset().data,o=t.data.length,i=a.length;if(i<o){t.data.splice(i,o-i)}else if(i>o){e.insertElements(o,i-o)}},insertElements:function insertElements(e,t){for(var a=0;a<t;++a){this.addElementAndReset(e+a)}},onDataPush:function onDataPush(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function onDataPop(){this.getMeta().data.pop()},onDataShift:function onDataShift(){this.getMeta().data.shift()},onDataSplice:function onDataSplice(e,t){this.getMeta().data.splice(e,t);this.insertElements(e,arguments.length-2)},onDataUnshift:function onDataUnshift(){this.insertElements(0,arguments.length)}});e.DatasetController.extend=a.inherits}},{45:45}],25:[function(e,t){'use strict';var a=e(45);t.exports={_set:function _set(e,t){return a.merge(this[e]||(this[e]={}),t)}}},{45:45}],26:[function(e,t){'use strict';var o=e(2),i=e(45);function a(e,t,a,n){var l=Object.keys(a),s,d,c,h,u,m,p,f,y;for(s=0,d=l.length;s<d;++s){c=l[s];m=a[c];if(!t.hasOwnProperty(c)){t[c]=m}h=t[c];if(h===m||"_"===c[0]){continue}if(!e.hasOwnProperty(c)){e[c]=h}u=e[c];p=_typeof(m);if(p===_typeof(u)){if("string"===p){f=o(u);if(f.valid){y=o(m);if(y.valid){t[c]=y.mix(f,n).rgbString();continue}}}else if("number"===p&&isFinite(u)&&isFinite(m)){t[c]=u+(m-u)*n;continue}}t[c]=m}}var n=function(e){i.extend(this,e);this.initialize.apply(this,arguments)};i.extend(n.prototype,{initialize:function initialize(){this.hidden=!1},pivot:function pivot(){var e=this;if(!e._view){e._view=i.clone(e._model)}e._start={};return e},transition:function transition(e){var t=this,o=t._model,i=t._start,n=t._view;if(!o||1===e){t._view=o;t._start=null;return t}if(!n){n=t._view={}}if(!i){i=t._start={}}a(i,n,o,e);return t},tooltipPosition:function tooltipPosition(){return{x:this._model.x,y:this._model.y}},hasValue:function hasValue(){return i.isNumber(this._model.x)&&i.isNumber(this._model.y)}});n.extend=i.inherits;t.exports=n},{2:2,45:45}],27:[function(e,t){'use strict';var a=e(2),o=e(25),n=e(45);t.exports=function(e){n.extend=function(e){for(var t=function(t,a){e[a]=t},a=1,o=arguments.length;a<o;a++){n.each(arguments[a],t)}return e};n.configMerge=function(){return n.merge(n.clone(arguments[0]),[].slice.call(arguments,1),{merger:function merger(t,a,o,i){var l=a[t]||{},s=o[t];if("scales"===t){a[t]=n.scaleMerge(l,s)}else if("scale"===t){a[t]=n.merge(l,[e.scaleService.getScaleDefaults(s.type),s])}else{n._merger(t,a,o,i)}}})};n.scaleMerge=function(){return n.merge(n.clone(arguments[0]),[].slice.call(arguments,1),{merger:function merger(t,a,o,l){if("xAxes"===t||"yAxes"===t){var s=o[t].length,d,c,h;if(!a[t]){a[t]=[]}for(d=0;d<s;++d){h=o[t][d];c=n.valueOrDefault(h.type,"xAxes"===t?"category":"linear");if(d>=a[t].length){a[t].push({})}if(!a[t][d].type||h.type&&h.type!==a[t][d].type){n.merge(a[t][d],[e.scaleService.getScaleDefaults(c),h])}else{n.merge(a[t][d],h)}}}else{n._merger(t,a,o,l)}}})};n.where=function(e,t){if(n.isArray(e)&&Array.prototype.filter){return e.filter(t)}var a=[];n.each(e,function(e){if(t(e)){a.push(e)}});return a};n.findIndex=Array.prototype.findIndex?function(e,t,a){return e.findIndex(t,a)}:function(e,t,a){a=a===void 0?e:a;for(var o=0,n=e.length;o<n;++o){if(t.call(a,e[o],o,e)){return o}}return-1};n.findNextWhere=function(e,t,a){if(n.isNullOrUndef(a)){a=-1}for(var o=a+1,l;o<e.length;o++){l=e[o];if(t(l)){return l}}};n.findPreviousWhere=function(e,t,a){if(n.isNullOrUndef(a)){a=e.length}for(var o=a-1,l;0<=o;o--){l=e[o];if(t(l)){return l}}};n.inherits=function(e){var t=this,a=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},o=function(){this.constructor=a};o.prototype=t.prototype;a.prototype=new o;a.extend=n.inherits;if(e){n.extend(a.prototype,e)}a.__super__=t.prototype;return a};n.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};n.almostEquals=function(e,t,a){return Math.abs(e-t)<a};n.almostWhole=function(e,t){var a=Math.round(e);return a-t<e&&a+t>e};n.max=function(e){return e.reduce(function(e,t){if(!isNaN(t)){return Math.max(e,t)}return e},Number.NEGATIVE_INFINITY)};n.min=function(e){return e.reduce(function(e,t){if(!isNaN(t)){return Math.min(e,t)}return e},Number.POSITIVE_INFINITY)};n.sign=Math.sign?function(e){return Math.sign(e)}:function(e){e=+e;if(0===e||isNaN(e)){return e}return 0<e?1:-1};n.log10=Math.log10?function(e){return Math.log10(e)}:function(e){return Math.log(e)/Math.LN10};n.toRadians=function(e){return e*(Math.PI/180)};n.toDegrees=function(e){return e*(180/Math.PI)};n.getAngleFromPoint=function(e,t){var a=t.x-e.x,o=t.y-e.y,i=Math.sqrt(a*a+o*o),n=Math.atan2(o,a);if(n<-.5*Math.PI){n+=2*Math.PI}return{angle:n,distance:i}};n.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))};n.aliasPixel=function(e){return 0==e%2?0:.5};n.splineCurve=function(e,a,o,i){var t=e.skip?a:e,n=a,l=o.skip?a:o,s=Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2)),d=Math.sqrt(Math.pow(l.x-n.x,2)+Math.pow(l.y-n.y,2)),c=s/(s+d),h=d/(s+d);c=isNaN(c)?0:c;h=isNaN(h)?0:h;var u=i*c,m=i*h;return{previous:{x:n.x-u*(l.x-t.x),y:n.y-u*(l.y-t.y)},next:{x:n.x+m*(l.x-t.x),y:n.y+m*(l.y-t.y)}}};n.EPSILON=Number.EPSILON||1e-14;n.splineCurveMonotone=function(e){var t=(e||[]).map(function(e){return{model:e._model,deltaK:0,mK:0}}),a=t.length,o,l,s,d;for(o=0;o<a;++o){s=t[o];if(s.model.skip){continue}l=0<o?t[o-1]:null;d=o<a-1?t[o+1]:null;if(d&&!d.model.skip){var c=d.model.x-s.model.x;s.deltaK=0!=c?(d.model.y-s.model.y)/c:0}if(!l||l.model.skip){s.mK=s.deltaK}else if(!d||d.model.skip){s.mK=l.deltaK}else if(this.sign(l.deltaK)!==this.sign(s.deltaK)){s.mK=0}else{s.mK=(l.deltaK+s.deltaK)/2}}var h,u,m,p;for(o=0;o<a-1;++o){s=t[o];d=t[o+1];if(s.model.skip||d.model.skip){continue}if(n.almostEquals(s.deltaK,0,this.EPSILON)){s.mK=d.mK=0;continue}h=s.mK/s.deltaK;u=d.mK/s.deltaK;p=Math.pow(h,2)+Math.pow(u,2);if(9>=p){continue}m=3/Math.sqrt(p);s.mK=h*m*s.deltaK;d.mK=u*m*s.deltaK}var f;for(o=0;o<a;++o){s=t[o];if(s.model.skip){continue}l=0<o?t[o-1]:null;d=o<a-1?t[o+1]:null;if(l&&!l.model.skip){f=(s.model.x-l.model.x)/3;s.model.controlPointPreviousX=s.model.x-f;s.model.controlPointPreviousY=s.model.y-f*s.mK}if(d&&!d.model.skip){f=(d.model.x-s.model.x)/3;s.model.controlPointNextX=s.model.x+f;s.model.controlPointNextY=s.model.y+f*s.mK}}};n.nextItem=function(e,t,a){if(a){return t>=e.length-1?e[0]:e[t+1]}return t>=e.length-1?e[e.length-1]:e[t+1]};n.previousItem=function(e,t,a){if(a){return 0>=t?e[e.length-1]:e[t-1]}return 0>=t?e[0]:e[t-1]};n.niceNum=function(e,t){var a=Math.floor(n.log10(e)),o=e/Math.pow(10,a),i;if(t){if(1.5>o){i=1}else if(3>o){i=2}else if(7>o){i=5}else{i=10}}else if(1>=o){i=1}else if(2>=o){i=2}else if(5>=o){i=5}else{i=10}return i*Math.pow(10,a)};n.requestAnimFrame=function(){if("undefined"==typeof window){return function(e){e()}}return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)}}();n.getRelativePosition=function(t,a){var o,i,l=t.originalEvent||t,e=t.currentTarget||t.srcElement,s=e.getBoundingClientRect(),d=l.touches;if(d&&0<d.length){o=d[0].clientX;i=d[0].clientY}else{o=l.clientX;i=l.clientY}var c=parseFloat(n.getStyle(e,"padding-left")),h=parseFloat(n.getStyle(e,"padding-top")),u=parseFloat(n.getStyle(e,"padding-right")),m=parseFloat(n.getStyle(e,"padding-bottom")),p=s.right-s.left-c-u,f=s.bottom-s.top-h-m;o=Math.round((o-s.left-c)/p*e.width/a.currentDevicePixelRatio);i=Math.round((i-s.top-h)/f*e.height/a.currentDevicePixelRatio);return{x:o,y:i}};function t(e,t,a){var o;if("string"==typeof e){o=parseInt(e,10);if(-1!==e.indexOf("%")){o=o/100*t.parentNode[a]}}else{o=e}return o}function i(e){return e!==void 0&&null!==e&&"none"!==e}function l(e,a,o){var n=document.defaultView,l=e.parentNode,s=n.getComputedStyle(e)[a],d=n.getComputedStyle(l)[a],c=i(s),h=i(d),u=Number.POSITIVE_INFINITY;if(c||h){return Math.min(c?t(s,e,o):u,h?t(d,l,o):u)}return"none"}n.getConstraintWidth=function(e){return l(e,"max-width","clientWidth")};n.getConstraintHeight=function(e){return l(e,"max-height","clientHeight")};n.getMaximumWidth=function(e){var t=e.parentNode;if(!t){return e.clientWidth}var a=parseInt(n.getStyle(t,"padding-left"),10),o=parseInt(n.getStyle(t,"padding-right"),10),i=t.clientWidth-a-o,l=n.getConstraintWidth(e);return isNaN(l)?i:Math.min(i,l)};n.getMaximumHeight=function(e){var t=e.parentNode;if(!t){return e.clientHeight}var a=parseInt(n.getStyle(t,"padding-top"),10),o=parseInt(n.getStyle(t,"padding-bottom"),10),i=t.clientHeight-a-o,l=n.getConstraintHeight(e);return isNaN(l)?i:Math.min(i,l)};n.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)};n.retinaScale=function(e,t){var a=e.currentDevicePixelRatio=t||window.devicePixelRatio||1;if(1===a){return}var o=e.canvas,i=e.height,n=e.width;o.height=i*a;o.width=n*a;e.ctx.scale(a,a);o.style.height=i+"px";o.style.width=n+"px"};n.fontString=function(e,t,a){return t+" "+e+"px "+a};n.longestText=function(e,t,a,o){o=o||{};var l=o.data=o.data||{},s=o.garbageCollect=o.garbageCollect||[];if(o.font!==t){l=o.data={};s=o.garbageCollect=[];o.font=t}e.font=t;var d=0;n.each(a,function(t){if(t!==void 0&&null!==t&&!0!==n.isArray(t)){d=n.measureText(e,l,s,d,t)}else if(n.isArray(t)){n.each(t,function(t){if(t!==void 0&&null!==t&&!n.isArray(t)){d=n.measureText(e,l,s,d,t)}})}});var c=s.length/2;if(c>a.length){for(var h=0;h<c;h++){delete l[s[h]]}s.splice(0,c)}return d};n.measureText=function(e,t,a,o,i){var n=t[i];if(!n){n=t[i]=e.measureText(i).width;a.push(i)}if(n>o){o=n}return o};n.numberOfLabelLines=function(e){var t=1;n.each(e,function(e){if(n.isArray(e)){if(e.length>t){t=e.length}}});return t};n.color=!a?function(e){console.error("Color.js not found!");return e}:function(e){if(e instanceof CanvasGradient){e=o.global.defaultColor}return a(e)};n.getHoverColor=function(e){return e instanceof CanvasPattern?e:n.color(e).saturate(.5).darken(.1).rgbString()}}},{2:2,25:25,45:45}],28:[function(e,t){'use strict';var d=e(45);function a(t,e){if(t.native){return{x:t.x,y:t.y}}return d.getRelativePosition(t,e)}function o(e,t){var a=e.data.datasets,o,n,l,s,d;for(n=0,s=a.length;n<s;++n){if(!e.isDatasetVisible(n)){continue}o=e.getDatasetMeta(n);for(l=0,d=o.data.length;l<d;++l){var c=o.data[l];if(!c._view.skip){t(c)}}}}function i(e,t){var a=[];o(e,function(e){if(e.inRange(t.x,t.y)){a.push(e)}});return a}function n(e,t,a,i){var n=Number.POSITIVE_INFINITY,l=[];o(e,function(e){if(a&&!e.inRange(t.x,t.y)){return}var o=e.getCenterPoint(),s=i(t,o);if(s<n){l=[e];n=s}else if(s===n){l.push(e)}});return l}function l(e){var t=-1!==e.indexOf("x"),a=-1!==e.indexOf("y");return function(e,o){var i=t?Math.abs(e.x-o.x):0,n=a?Math.abs(e.y-o.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(n,2))}}function s(t,o,e){var s=a(o,t);e.axis=e.axis||"x";var d=l(e.axis),c=e.intersect?i(t,s):n(t,s,!1,d),h=[];if(!c.length){return[]}t.data.datasets.forEach(function(e,a){if(t.isDatasetVisible(a)){var o=t.getDatasetMeta(a),i=o.data[c[0]._index];if(i&&!i._view.skip){h.push(i)}}});return h}t.exports={modes:{single:function single(t,i){var e=a(i,t),n=[];o(t,function(t){if(t.inRange(e.x,e.y)){n.push(t);return n}});return n.slice(0,1)},label:s,index:s,dataset:function dataset(t,o,e){var s=a(o,t);e.axis=e.axis||"xy";var d=l(e.axis),c=e.intersect?i(t,s):n(t,s,!1,d);if(0<c.length){c=t.getDatasetMeta(c[0]._datasetIndex).data}return c},"x-axis":function xAxis(t,a){return s(t,a,{intersect:!0})},point:function point(t,o){var e=a(o,t);return i(t,e)},nearest:function nearest(t,o,e){var i=a(o,t);e.axis=e.axis||"xy";var s=l(e.axis),d=n(t,i,e.intersect,s);if(1<d.length){d.sort(function(e,t){var a=e.getArea(),o=t.getArea(),i=a-o;if(0===i){i=e._datasetIndex-t._datasetIndex}return i})}return d.slice(0,1)},x:function x(t,i,e){var n=a(i,t),l=[],s=!1;o(t,function(e){if(e.inXRange(n.x)){l.push(e)}if(e.inRange(n.x,n.y)){s=!0}});if(e.intersect&&!s){l=[]}return l},y:function y(t,i,e){var n=a(i,t),l=[],s=!1;o(t,function(e){if(e.inYRange(n.y)){l.push(e)}if(e.inRange(n.x,n.y)){s=!0}});if(e.intersect&&!s){l=[]}return l}}}},{45:45}],29:[function(e,t){'use strict';var a=e(25);a._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}});t.exports=function(){var e=function(e,t){this.construct(e,t);return this};e.Chart=e;return e}},{25:25}],30:[function(e,t){'use strict';var a=e(45);t.exports=function(e){function t(e,t){return a.where(e,function(e){return e.position===t})}function o(e,t){e.forEach(function(e,t){e._tmpIndex_=t;return e});e.sort(function(e,a){var o=t?a:e,i=t?e:a;return o.weight===i.weight?o._tmpIndex_-i._tmpIndex_:o.weight-i.weight});e.forEach(function(e){delete e._tmpIndex_})}e.layoutService={defaults:{},addBox:function addBox(e,t){if(!e.boxes){e.boxes=[]}t.fullWidth=t.fullWidth||!1;t.position=t.position||"top";t.weight=t.weight||0;e.boxes.push(t)},removeBox:function removeBox(e,t){var a=e.boxes?e.boxes.indexOf(t):-1;if(-1!==a){e.boxes.splice(a,1)}},configure:function configure(e,t,a){var o=["fullWidth","position","weight"],n=o.length,l=0,s;for(;l<n;++l){s=o[l];if(a.hasOwnProperty(s)){t[s]=a[s]}}},update:function update(e,i,n){if(!e){return}var h=e.options.layout||{},u=a.options.toPadding(h.padding),m=u.left,p=u.right,f=u.top,y=u.bottom,x=t(e.boxes,"left"),k=t(e.boxes,"right"),_=t(e.boxes,"top"),v=t(e.boxes,"bottom"),S=t(e.boxes,"chartArea");o(x,!0);o(k,!1);o(_,!0);o(v,!1);var w=i-m-p,D=n-f-y,C=D/2,P=(i-w/2)/(x.length+k.length),T=(n-C)/(_.length+v.length),O=w,I=D,A=[];function l(e){var t,a=e.isHorizontal();if(a){t=e.update(e.fullWidth?w:O,T);I-=t.height}else{t=e.update(P,C);O-=t.width}A.push({horizontal:a,minSize:t,box:e})}a.each(x.concat(k,_,v),l);var M=0,R=0,F=0,L=0;a.each(_.concat(v),function(e){if(e.getPadding){var t=e.getPadding();M=Math.max(M,t.left);R=Math.max(R,t.right)}});a.each(x.concat(k),function(e){if(e.getPadding){var t=e.getPadding();F=Math.max(F,t.top);L=Math.max(L,t.bottom)}});var W=m,Y=p,z=f,H=y;function s(e){var t=a.findNextWhere(A,function(t){return t.box===e});if(t){if(e.isHorizontal()){var o={left:Math.max(W,M),right:Math.max(Y,R),top:0,bottom:0};e.update(e.fullWidth?w:O,D/2,o)}else{e.update(t.minSize.width,I)}}}a.each(x.concat(k),s);a.each(x,function(e){W+=e.width});a.each(k,function(e){Y+=e.width});a.each(_.concat(v),s);a.each(_,function(e){z+=e.height});a.each(v,function(e){H+=e.height});function d(e){var t=a.findNextWhere(A,function(t){return t.box===e}),o={left:0,right:0,top:z,bottom:H};if(t){e.update(t.minSize.width,I,o)}}a.each(x.concat(k),d);W=m;Y=p;z=f;H=y;a.each(x,function(e){W+=e.width});a.each(k,function(e){Y+=e.width});a.each(_,function(e){z+=e.height});a.each(v,function(e){H+=e.height});var B=Math.max(M-W,0);W+=B;Y+=Math.max(R-Y,0);var E=Math.max(F-z,0);z+=E;H+=Math.max(L-H,0);var V=n-z-H,N=i-W-Y;if(N!==O||V!==I){a.each(x,function(e){e.height=V});a.each(k,function(e){e.height=V});a.each(_,function(e){if(!e.fullWidth){e.width=N}});a.each(v,function(e){if(!e.fullWidth){e.width=N}});I=V;O=N}var U=m+B,j=f+E;function c(e){if(e.isHorizontal()){e.left=e.fullWidth?m:W;e.right=e.fullWidth?i-p:W+O;e.top=j;e.bottom=j+e.height;j=e.bottom}else{e.left=U;e.right=U+e.width;e.top=z;e.bottom=z+I;U=e.right}}a.each(x.concat(_),c);U+=O;j+=I;a.each(k,c);a.each(v,c);e.chartArea={left:W,top:z,right:W+O,bottom:z+I};a.each(S,function(t){t.left=e.chartArea.left;t.top=e.chartArea.top;t.right=e.chartArea.right;t.bottom=e.chartArea.bottom;t.update(O,I)})}}}},{45:45}],31:[function(e,t){'use strict';var a=e(25),o=e(26),i=e(45);a._set("global",{plugins:{}});t.exports=function(e){e.plugins={_plugins:[],_cacheId:0,register:function register(e){var t=this._plugins;[].concat(e).forEach(function(e){if(-1===t.indexOf(e)){t.push(e)}});this._cacheId++},unregister:function unregister(e){var t=this._plugins;[].concat(e).forEach(function(e){var a=t.indexOf(e);if(-1!==a){t.splice(a,1)}});this._cacheId++},clear:function clear(){this._plugins=[];this._cacheId++},count:function count(){return this._plugins.length},getAll:function getAll(){return this._plugins},notify:function notify(e,t,a){var o=this.descriptors(e),n=o.length,l,s,d,c,h;for(l=0;l<n;++l){s=o[l];d=s.plugin;h=d[t];if("function"==typeof h){c=[e].concat(a||[]);c.push(s.options);if(!1===h.apply(d,c)){return!1}}}return!0},descriptors:function(e){var t=e._plugins||(e._plugins={});if(t.id===this._cacheId){return t.descriptors}var o=[],n=[],l=e&&e.config||{},s=l.options&&l.options.plugins||{};this._plugins.concat(l.plugins||[]).forEach(function(e){var t=o.indexOf(e);if(-1!==t){return}var l=e.id,d=s[l];if(!1===d){return}if(!0===d){d=i.clone(a.global.plugins[l])}o.push(e);n.push({plugin:e,options:d||{}})});t.descriptors=n;t.id=this._cacheId;return n}};e.pluginService=e.plugins;e.PluginBase=o.extend({})}},{25:25,26:26,45:45}],32:[function(e,t){'use strict';var i=e(25),n=e(26),l=e(45),s=e(34);i._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",lineHeight:1.2,padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:s.formatters.values,minor:{},major:{}}});function a(e){var t=[],a,o;for(a=0,o=e.length;a<o;++a){t.push(e[a].label)}return t}function o(e,t,a){var o=e.getPixelForTick(t);if(a){if(0===t){o-=(e.getPixelForTick(1)-o)/2}else{o-=(o-e.getPixelForTick(t-1))/2}}return o}t.exports=function(e){function t(e,t,a){return l.isArray(t)?l.longestText(e,a,t):e.measureText(t).width}function s(e){var t=l.valueOrDefault,a=i.global,o=t(e.fontSize,a.defaultFontSize),n=t(e.fontStyle,a.defaultFontStyle),s=t(e.fontFamily,a.defaultFontFamily);return{size:o,style:n,family:s,font:l.fontString(o,n,s)}}function d(e){return l.options.toLineHeight(l.valueOrDefault(e.lineHeight,1.2),l.valueOrDefault(e.fontSize,i.global.defaultFontSize))}e.Scale=n.extend({getPadding:function getPadding(){var e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}},getTicks:function getTicks(){return this._ticks},mergeTicksOptions:function mergeTicksOptions(){var e=this.options.ticks;if(!1===e.minor){e.minor={display:!1}}if(!1===e.major){e.major={display:!1}}for(var t in e){if("major"!=t&&"minor"!==t){if("undefined"==typeof e.minor[t]){e.minor[t]=e[t]}if("undefined"==typeof e.major[t]){e.major[t]=e[t]}}}},beforeUpdate:function beforeUpdate(){l.callback(this.options.beforeUpdate,[this])},update:function update(e,t,a){var o=this,n,s,d,c,h,u;o.beforeUpdate();o.maxWidth=e;o.maxHeight=t;o.margins=l.extend({left:0,right:0,top:0,bottom:0},a);o.longestTextCache=o.longestTextCache||{};o.beforeSetDimensions();o.setDimensions();o.afterSetDimensions();o.beforeDataLimits();o.determineDataLimits();o.afterDataLimits();o.beforeBuildTicks();h=o.buildTicks()||[];o.afterBuildTicks();o.beforeTickToLabelConversion();d=o.convertTicksToLabels(h)||o.ticks;o.afterTickToLabelConversion();o.ticks=d;for(n=0,s=d.length;n<s;++n){c=d[n];u=h[n];if(!u){h.push(u={label:c,major:!1})}else{u.label=c}}o._ticks=h;o.beforeCalculateTickRotation();o.calculateTickRotation();o.afterCalculateTickRotation();o.beforeFit();o.fit();o.afterFit();o.afterUpdate();return o.minSize},afterUpdate:function afterUpdate(){l.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function beforeSetDimensions(){l.callback(this.options.beforeSetDimensions,[this])},setDimensions:function setDimensions(){var e=this;if(e.isHorizontal()){e.width=e.maxWidth;e.left=0;e.right=e.width}else{e.height=e.maxHeight;e.top=0;e.bottom=e.height}e.paddingLeft=0;e.paddingTop=0;e.paddingRight=0;e.paddingBottom=0},afterSetDimensions:function afterSetDimensions(){l.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function beforeDataLimits(){l.callback(this.options.beforeDataLimits,[this])},determineDataLimits:l.noop,afterDataLimits:function afterDataLimits(){l.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function beforeBuildTicks(){l.callback(this.options.beforeBuildTicks,[this])},buildTicks:l.noop,afterBuildTicks:function afterBuildTicks(){l.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function beforeTickToLabelConversion(){l.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function convertTicksToLabels(){var e=this,t=e.options.ticks;e.ticks=e.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function afterTickToLabelConversion(){l.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function beforeCalculateTickRotation(){l.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function calculateTickRotation(){var e=this,t=e.ctx,o=e.options.ticks,i=a(e._ticks),n=s(o);t.font=n.font;var d=o.minRotation||0;if(i.length&&e.options.display&&e.isHorizontal()){var c=l.longestText(t,n.font,i,e.longestTextCache),h=c,u,m,p=e.getPixelForTick(1)-e.getPixelForTick(0)-6;while(h>p&&d<o.maxRotation){var f=l.toRadians(d);u=Math.cos(f);m=Math.sin(f);if(m*c>e.maxHeight){d--;break}d++;h=u*c}}e.labelRotation=d},afterCalculateTickRotation:function afterCalculateTickRotation(){l.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function beforeFit(){l.callback(this.options.beforeFit,[this])},fit:function fit(){var e=this,o=e.minSize={width:0,height:0},i=a(e._ticks),n=e.options,c=n.ticks,h=n.scaleLabel,u=n.gridLines,m=n.display,p=e.isHorizontal(),f=s(c),y=n.gridLines.tickMarkLength;if(p){o.width=e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth}else{o.width=m&&u.drawTicks?y:0}if(p){o.height=m&&u.drawTicks?y:0}else{o.height=e.maxHeight}if(h.display&&m){var x=d(h),k=l.options.toPadding(h.padding),_=x+k.height;if(p){o.height+=_}else{o.width+=_}}if(c.display&&m){var v=l.longestText(e.ctx,f.font,i,e.longestTextCache),S=l.numberOfLabelLines(i),w=.5*f.size,D=e.options.ticks.padding;if(p){e.longestLabelWidth=v;var C=l.toRadians(e.labelRotation),P=Math.cos(C),T=Math.sin(C),O=T*v+f.size*S+w*(S-1)+w;o.height=Math.min(e.maxHeight,o.height+O+D);e.ctx.font=f.font;var I=t(e.ctx,i[0],f.font),A=t(e.ctx,i[i.length-1],f.font);if(0!==e.labelRotation){e.paddingLeft="bottom"===n.position?P*I+3:P*w+3;e.paddingRight="bottom"===n.position?P*w+3:P*A+3}else{e.paddingLeft=I/2+3;e.paddingRight=A/2+3}}else{if(c.mirror){v=0}else{v+=D+w}o.width=Math.min(e.maxWidth,o.width+v);e.paddingTop=f.size/2;e.paddingBottom=f.size/2}}e.handleMargins();e.width=o.width;e.height=o.height},handleMargins:function handleMargins(){var e=this;if(e.margins){e.paddingLeft=Math.max(e.paddingLeft-e.margins.left,0);e.paddingTop=Math.max(e.paddingTop-e.margins.top,0);e.paddingRight=Math.max(e.paddingRight-e.margins.right,0);e.paddingBottom=Math.max(e.paddingBottom-e.margins.bottom,0)}},afterFit:function afterFit(){l.callback(this.options.afterFit,[this])},isHorizontal:function isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function isFullWidth(){return this.options.fullWidth},getRightValue:function getRightValue(e){if(l.isNullOrUndef(e)){return NaN}if("number"==typeof e&&!isFinite(e)){return NaN}if(e){if(this.isHorizontal()){if(e.x!==void 0){return this.getRightValue(e.x)}}else if(e.y!==void 0){return this.getRightValue(e.y)}}return e},getLabelForIndex:l.noop,getPixelForValue:l.noop,getValueForPixel:l.noop,getPixelForTick:function getPixelForTick(e){var t=this,a=t.options.offset;if(t.isHorizontal()){var o=t.width-(t.paddingLeft+t.paddingRight),i=o/Math.max(t._ticks.length-(a?0:1),1),n=i*e+t.paddingLeft;if(a){n+=i/2}var l=t.left+Math.round(n);l+=t.isFullWidth()?t.margins.left:0;return l}var s=t.height-(t.paddingTop+t.paddingBottom);return t.top+e*(s/(t._ticks.length-1))},getPixelForDecimal:function getPixelForDecimal(e){var t=this;if(t.isHorizontal()){var a=t.width-(t.paddingLeft+t.paddingRight),o=a*e+t.paddingLeft,i=t.left+Math.round(o);i+=t.isFullWidth()?t.margins.left:0;return i}return t.top+e*t.height},getBasePixel:function getBasePixel(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function getBaseValue(){var e=this,t=e.min,a=e.max;return e.beginAtZero?0:0>t&&0>a?a:0<t&&0<a?t:0},_autoSkip:function _autoSkip(e){var t,a=this,o=a.isHorizontal(),n=a.options.ticks.minor,s=e.length,d=l.toRadians(a.labelRotation),c=Math.cos(d),h=a.longestLabelWidth*c,u=[],m,p,f,y;if(n.maxTicksLimit){y=n.maxTicksLimit}if(o){t=!1;if((h+n.autoSkipPadding)*s>a.width-(a.paddingLeft+a.paddingRight)){t=1+Math.floor((h+n.autoSkipPadding)*s/(a.width-(a.paddingLeft+a.paddingRight)))}if(y&&s>y){t=Math.max(t,Math.floor(s/y))}}for(m=0;m<s;m++){p=e[m];f=1<t&&0<m%t||0==m%t&&m+t>=s;if(f&&m!==s-1||l.isNullOrUndef(p.label)){delete p.label}u.push(p)}return u},draw:function draw(e){var t=this,a=t.options;if(!a.display){return}var n=t.ctx,c=i.global,h=a.ticks.minor,u=a.ticks.major||h,m=a.gridLines,p=a.scaleLabel,f=0!==t.labelRotation,y=t.isHorizontal(),x=h.autoSkip?t._autoSkip(t.getTicks()):t.getTicks(),k=l.valueOrDefault(h.fontColor,c.defaultFontColor),_=s(h),v=l.valueOrDefault(u.fontColor,c.defaultFontColor),S=s(u),w=m.drawTicks?m.tickMarkLength:0,D=l.valueOrDefault(p.fontColor,c.defaultFontColor),C=s(p),P=l.options.toPadding(p.padding),T=l.toRadians(t.labelRotation),O=[],I="right"===a.position?t.left:t.right-w,A="right"===a.position?t.left+w:t.right,M="bottom"===a.position?t.top:t.bottom-w,R="bottom"===a.position?t.top+w:t.bottom;l.each(x,function(i,n){if(i.label===void 0){return}var s=i.label,d,u,p,k;if(n===t.zeroLineIndex&&a.offset===m.offsetGridLines){d=m.zeroLineWidth;u=m.zeroLineColor;p=m.zeroLineBorderDash;k=m.zeroLineBorderDashOffset}else{d=l.valueAtIndexOrDefault(m.lineWidth,n);u=l.valueAtIndexOrDefault(m.color,n);p=l.valueOrDefault(m.borderDash,c.borderDash);k=l.valueOrDefault(m.borderDashOffset,c.borderDashOffset)}var _,v,S,D,C,P,F,L,W,Y,z="middle",H="middle",B=h.padding;if(y){var E=w+B;if("bottom"===a.position){H=!f?"top":"middle";z=!f?"center":"right";Y=t.top+E}else{H=!f?"bottom":"middle";z=!f?"center":"left";Y=t.bottom-E}var V=o(t,n,m.offsetGridLines&&1<x.length);if(V<t.left){u="rgba(0,0,0,0)"}V+=l.aliasPixel(d);W=t.getPixelForTick(n)+h.labelOffset;_=S=C=F=V;v=M;D=R;P=e.top;L=e.bottom}else{var N="left"===a.position,U;if(h.mirror){z=N?"left":"right";U=B}else{z=N?"right":"left";U=w+B}W=N?t.right-U:t.left+U;var j=o(t,n,m.offsetGridLines&&1<x.length);if(j<t.top){u="rgba(0,0,0,0)"}j+=l.aliasPixel(d);Y=t.getPixelForTick(n)+h.labelOffset;_=I;S=A;C=e.left;F=e.right;v=D=P=L=j}O.push({tx1:_,ty1:v,tx2:S,ty2:D,x1:C,y1:P,x2:F,y2:L,labelX:W,labelY:Y,glWidth:d,glColor:u,glBorderDash:p,glBorderDashOffset:k,rotation:-1*T,label:s,major:i.major,textBaseline:H,textAlign:z})});l.each(O,function(e){if(m.display){n.save();n.lineWidth=e.glWidth;n.strokeStyle=e.glColor;if(n.setLineDash){n.setLineDash(e.glBorderDash);n.lineDashOffset=e.glBorderDashOffset}n.beginPath();if(m.drawTicks){n.moveTo(e.tx1,e.ty1);n.lineTo(e.tx2,e.ty2)}if(m.drawOnChartArea){n.moveTo(e.x1,e.y1);n.lineTo(e.x2,e.y2)}n.stroke();n.restore()}if(h.display){n.save();n.translate(e.labelX,e.labelY);n.rotate(e.rotation);n.font=e.major?S.font:_.font;n.fillStyle=e.major?v:k;n.textBaseline=e.textBaseline;n.textAlign=e.textAlign;var t=e.label;if(l.isArray(t)){for(var a=0,o=0;a<t.length;++a){n.fillText(""+t[a],0,o);o+=1.5*_.size}}else{n.fillText(t,0,0)}n.restore()}});if(p.display){var F,L,W=0,Y=d(p)/2;if(y){F=t.left+(t.right-t.left)/2;L="bottom"===a.position?t.bottom-Y-P.bottom:t.top+Y+P.top}else{var z="left"===a.position;F=z?t.left+Y+P.top:t.right-Y-P.top;L=t.top+(t.bottom-t.top)/2;W=z?-.5*Math.PI:.5*Math.PI}n.save();n.translate(F,L);n.rotate(W);n.textAlign="center";n.textBaseline="middle";n.fillStyle=D;n.font=C.font;n.fillText(p.labelString,0,0);n.restore()}if(m.drawBorder){n.lineWidth=l.valueAtIndexOrDefault(m.lineWidth,0);n.strokeStyle=l.valueAtIndexOrDefault(m.color,0);var H=t.left,B=t.right,E=t.top,V=t.bottom,N=l.aliasPixel(n.lineWidth);if(y){E=V="top"===a.position?t.bottom:t.top;E+=N;V+=N}else{H=B="left"===a.position?t.right:t.left;H+=N;B+=N}n.beginPath();n.moveTo(H,E);n.lineTo(B,V);n.stroke()}}})}},{25:25,26:26,34:34,45:45}],33:[function(e,t){'use strict';var a=e(25),o=e(45);t.exports=function(e){e.scaleService={constructors:{},defaults:{},registerScaleType:function registerScaleType(e,t,a){this.constructors[e]=t;this.defaults[e]=o.clone(a)},getScaleConstructor:function getScaleConstructor(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function getScaleDefaults(e){return this.defaults.hasOwnProperty(e)?o.merge({},[a.scale,this.defaults[e]]):{}},updateScaleDefaults:function updateScaleDefaults(e,t){var a=this;if(a.defaults.hasOwnProperty(e)){a.defaults[e]=o.extend(a.defaults[e],t)}},addScalesToLayout:function addScalesToLayout(t){o.each(t.scales,function(a){a.fullWidth=a.options.fullWidth;a.position=a.options.position;a.weight=a.options.weight;e.layoutService.addBox(t,a)})}}}},{25:25,45:45}],34:[function(e,t){'use strict';var a=e(45);t.exports={generators:{linear:function linear(e,t){var o=[],i;if(e.stepSize&&0<e.stepSize){i=e.stepSize}else{var n=a.niceNum(t.max-t.min,!1);i=a.niceNum(n/(e.maxTicks-1),!0)}var l=Math.floor(t.min/i)*i,s=Math.ceil(t.max/i)*i;if(e.min&&e.max&&e.stepSize){if(a.almostWhole((e.max-e.min)/e.stepSize,i/1e3)){l=e.min;s=e.max}}var d=(s-l)/i;if(a.almostEquals(d,Math.round(d),i/1e3)){d=Math.round(d)}else{d=Math.ceil(d)}o.push(e.min!==void 0?e.min:l);for(var c=1;c<d;++c){o.push(l+c*i)}o.push(e.max!==void 0?e.max:s);return o},logarithmic:function logarithmic(e,t){var o=[],i=a.valueOrDefault,n=i(e.min,Math.pow(10,Math.floor(a.log10(t.min)))),l=Math.floor(a.log10(t.max)),s=Math.ceil(t.max/Math.pow(10,l)),d,c;if(0===n){d=Math.floor(a.log10(t.minNotZero));c=Math.floor(t.minNotZero/Math.pow(10,d));o.push(n);n=c*Math.pow(10,d)}else{d=Math.floor(a.log10(n));c=Math.floor(n/Math.pow(10,d))}do{o.push(n);++c;if(10===c){c=1;++d}n=c*Math.pow(10,d)}while(d<l||d===l&&c<s);var h=i(e.max,n);o.push(h);return o}},formatters:{values:function values(e){return a.isArray(e)?e:""+e},linear:function linear(e,t,o){var i=3<o.length?o[2]-o[1]:o[1]-o[0];if(1<Math.abs(i)){if(e!==Math.floor(e)){i=e-Math.floor(e)}}var n=a.log10(Math.abs(i)),l="";if(0!==e){var s=-1*Math.floor(n);s=Math.max(Math.min(s,20),0);l=e.toFixed(s)}else{l="0"}return l},logarithmic:function logarithmic(e,t,o){var i=e/Math.pow(10,Math.floor(a.log10(e)));if(0===e){return"0"}else if(1===i||2===i||5===i||0===t||t===o.length-1){return e.toExponential()}return""}}}},{45:45}],35:[function(e,t){'use strict';var a=e(25),o=e(26),n=e(45);a._set("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:n.noop,title:function(e,t){var a="",o=t.labels,i=o?o.length:0;if(0<e.length){var n=e[0];if(n.xLabel){a=n.xLabel}else if(0<i&&n.index<i){a=o[n.index]}}return a},afterTitle:n.noop,beforeBody:n.noop,beforeLabel:n.noop,label:function(e,t){var a=t.datasets[e.datasetIndex].label||"";if(a){a+=": "}a+=e.yLabel;return a},labelColor:function labelColor(e,t){var a=t.getDatasetMeta(e.datasetIndex),o=a.data[e.index],i=o._view;return{borderColor:i.borderColor,backgroundColor:i.backgroundColor}},labelTextColor:function labelTextColor(){return this._options.bodyFontColor},afterLabel:n.noop,afterBody:n.noop,beforeFooter:n.noop,footer:n.noop,afterFooter:n.noop}}});t.exports=function(e){function t(e,t){var a=n.color(e);return a.alpha(t*a.alpha()).rgbaString()}function i(e,t){if(t){if(n.isArray(t)){Array.prototype.push.apply(e,t)}else{e.push(t)}}return e}function l(e){var t=e._xScale,a=e._yScale||e._scale,o=e._index,i=e._datasetIndex;return{xLabel:t?t.getLabelForIndex(o,i):"",yLabel:a?a.getLabelForIndex(o,i):"",index:o,datasetIndex:i,x:e._model.x,y:e._model.y}}function s(e){var t=a.global,o=n.valueOrDefault;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:o(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:o(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:o(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:o(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:o(e.titleFontStyle,t.defaultFontStyle),titleFontSize:o(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:o(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:o(e.footerFontStyle,t.defaultFontStyle),footerFontSize:o(e.footerFontSize,t.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 d(e,t){var a=e._chart.ctx,o=2*t.yPadding,i=0,l=t.body,s=l.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0);s+=t.beforeBody.length+t.afterBody.length;var d=t.title.length,c=t.footer.length,h=t.titleFontSize,u=t.bodyFontSize,m=t.footerFontSize;o+=d*h;o+=d?(d-1)*t.titleSpacing:0;o+=d?t.titleMarginBottom:0;o+=s*u;o+=s?(s-1)*t.bodySpacing:0;o+=c?t.footerMarginTop:0;o+=c*m;o+=c?(c-1)*t.footerSpacing:0;var p=0,f=function(e){i=Math.max(i,a.measureText(e).width+p)};a.font=n.fontString(h,t._titleFontStyle,t._titleFontFamily);n.each(t.title,f);a.font=n.fontString(u,t._bodyFontStyle,t._bodyFontFamily);n.each(t.beforeBody.concat(t.afterBody),f);p=t.displayColors?u+2:0;n.each(l,function(e){n.each(e.before,f);n.each(e.lines,f);n.each(e.after,f)});p=0;a.font=n.fontString(m,t._footerFontStyle,t._footerFontFamily);n.each(t.footer,f);i+=2*t.xPadding;return{width:i,height:o}}function c(e,t){var a=e._model,o=e._chart,i=e._chart.chartArea,n="center",l="center";if(a.y<t.height){l="top"}else if(a.y>o.height-t.height){l="bottom"}var s,d,c,h,u,m=(i.left+i.right)/2,p=(i.top+i.bottom)/2;if("center"===l){s=function(e){return e<=m};d=function(e){return e>m}}else{s=function(e){return e<=t.width/2};d=function(e){return e>=o.width-t.width/2}}c=function(e){return e+t.width>o.width};h=function(e){return 0>e-t.width};u=function(e){return e<=p?"top":"bottom"};if(s(a.x)){n="left";if(c(a.x)){n="center";l=u(a.y)}}else if(d(a.x)){n="right";if(h(a.x)){n="center";l=u(a.y)}}var f=e._options;return{xAlign:f.xAlign?f.xAlign:n,yAlign:f.yAlign?f.yAlign:l}}function h(e,t,a){var o=e.x,i=e.y,n=e.caretSize,l=e.caretPadding,s=e.cornerRadius,d=a.xAlign,c=a.yAlign,h=n+l,u=s+l;if("right"===d){o-=t.width}else if("center"===d){o-=t.width/2}if("top"===c){i+=h}else if("bottom"===c){i-=t.height+h}else{i-=t.height/2}if("center"===c){if("left"===d){o+=h}else if("right"===d){o-=h}}else if("left"===d){o-=u}else if("right"===d){o+=u}return{x:o,y:i}}e.Tooltip=o.extend({initialize:function initialize(){this._model=s(this._options)},getTitle:function getTitle(){var e=this,t=e._options,a=t.callbacks,o=a.beforeTitle.apply(e,arguments),n=a.title.apply(e,arguments),l=a.afterTitle.apply(e,arguments),s=[];s=i(s,o);s=i(s,n);s=i(s,l);return s},getBeforeBody:function getBeforeBody(){var e=this._options.callbacks.beforeBody.apply(this,arguments);return n.isArray(e)?e:e!==void 0?[e]:[]},getBody:function getBody(e,t){var a=this,o=a._options.callbacks,l=[];n.each(e,function(e){var n={before:[],lines:[],after:[]};i(n.before,o.beforeLabel.call(a,e,t));i(n.lines,o.label.call(a,e,t));i(n.after,o.afterLabel.call(a,e,t));l.push(n)});return l},getAfterBody:function getAfterBody(){var e=this._options.callbacks.afterBody.apply(this,arguments);return n.isArray(e)?e:e!==void 0?[e]:[]},getFooter:function getFooter(){var e=this,t=e._options.callbacks,a=t.beforeFooter.apply(e,arguments),o=t.footer.apply(e,arguments),n=t.afterFooter.apply(e,arguments),l=[];l=i(l,a);l=i(l,o);l=i(l,n);return l},update:function update(t){var a=this,o=a._options,u=a._model,m=a._model=s(o),p=a._active,f=a._data,y={xAlign:u.xAlign,yAlign:u.yAlign},x={x:u.x,y:u.y},k={width:u.width,height:u.height},_={x:u.caretX,y:u.caretY},v,S;if(p.length){m.opacity=1;var w=[],D=[];_=e.Tooltip.positioners[o.position](p,a._eventPosition);var C=[];for(v=0,S=p.length;v<S;++v){C.push(l(p[v]))}if(o.filter){C=C.filter(function(e){return o.filter(e,f)})}if(o.itemSort){C=C.sort(function(e,t){return o.itemSort(e,t,f)})}n.each(C,function(e){w.push(o.callbacks.labelColor.call(a,e,a._chart));D.push(o.callbacks.labelTextColor.call(a,e,a._chart))});m.title=a.getTitle(C,f);m.beforeBody=a.getBeforeBody(C,f);m.body=a.getBody(C,f);m.afterBody=a.getAfterBody(C,f);m.footer=a.getFooter(C,f);m.x=Math.round(_.x);m.y=Math.round(_.y);m.caretPadding=o.caretPadding;m.labelColors=w;m.labelTextColors=D;m.dataPoints=C;k=d(this,m);y=c(this,k);x=h(m,k,y)}else{m.opacity=0}m.xAlign=y.xAlign;m.yAlign=y.yAlign;m.x=x.x;m.y=x.y;m.width=k.width;m.height=k.height;m.caretX=_.x;m.caretY=_.y;a._model=m;if(t&&o.custom){o.custom.call(a,m)}return a},drawCaret:function drawCaret(e,t){var a=this._chart.ctx,o=this._view,i=this.getCaretPosition(e,t,o);a.lineTo(i.x1,i.y1);a.lineTo(i.x2,i.y2);a.lineTo(i.x3,i.y3)},getCaretPosition:function getCaretPosition(e,t,a){var o,i,n,l,s,d,c=a.caretSize,h=a.cornerRadius,u=a.xAlign,m=a.yAlign,p=e.x,f=e.y,y=t.width,x=t.height;if("center"===m){s=f+x/2;if("left"===u){o=p;i=o-c;n=o;l=s+c;d=s-c}else{o=p+y;i=o+c;n=o;l=s-c;d=s+c}}else{if("left"===u){i=p+h+c;o=i-c;n=i+c}else if("right"===u){i=p+y-h-c;o=i-c;n=i+c}else{i=p+y/2;o=i-c;n=i+c}if("top"===m){l=f;s=l-c;d=l}else{l=f+x;s=l+c;d=l;var k=n;n=o;o=k}}return{x1:o,x2:i,x3:n,y1:l,y2:s,y3:d}},drawTitle:function drawTitle(e,a,o,l){var s=a.title;if(s.length){o.textAlign=a._titleAlign;o.textBaseline="top";var d=a.titleFontSize,c=a.titleSpacing;o.fillStyle=t(a.titleFontColor,l);o.font=n.fontString(d,a._titleFontStyle,a._titleFontFamily);var h,u;for(h=0,u=s.length;h<u;++h){o.fillText(s[h],e.x,e.y);e.y+=d+c;if(h+1===s.length){e.y+=a.titleMarginBottom-c}}}},drawBody:function drawBody(e,a,o,l){var s=a.bodyFontSize,d=a.bodySpacing,c=a.body;o.textAlign=a._bodyAlign;o.textBaseline="top";o.font=n.fontString(s,a._bodyFontStyle,a._bodyFontFamily);var h=0,u=function(t){o.fillText(t,e.x+h,e.y);e.y+=s+d};n.each(a.beforeBody,u);var m=a.displayColors;h=m?s+2:0;n.each(c,function(d,c){n.each(d.before,u);n.each(d.lines,function(i){if(m){o.fillStyle=t(a.legendColorBackground,l);o.fillRect(e.x,e.y,s,s);o.lineWidth=1;o.strokeStyle=t(a.labelColors[c].borderColor,l);o.strokeRect(e.x,e.y,s,s);o.fillStyle=t(a.labelColors[c].backgroundColor,l);o.fillRect(e.x+1,e.y+1,s-2,s-2);var n=t(a.labelTextColors[c],l);o.fillStyle=n}u(i)});n.each(d.after,u)});h=0;n.each(a.afterBody,u);e.y-=d},drawFooter:function drawFooter(e,a,o,i){var l=a.footer;if(l.length){e.y+=a.footerMarginTop;o.textAlign=a._footerAlign;o.textBaseline="top";o.fillStyle=t(a.footerFontColor,i);o.font=n.fontString(a.footerFontSize,a._footerFontStyle,a._footerFontFamily);n.each(l,function(t){o.fillText(t,e.x,e.y);e.y+=a.footerFontSize+a.footerSpacing})}},drawBackground:function drawBackground(e,a,o,i,n){o.fillStyle=t(a.backgroundColor,n);o.strokeStyle=t(a.borderColor,n);o.lineWidth=a.borderWidth;var l=a.xAlign,s=a.yAlign,d=e.x,c=e.y,h=i.width,u=i.height,m=a.cornerRadius;o.beginPath();o.moveTo(d+m,c);if("top"===s){this.drawCaret(e,i)}o.lineTo(d+h-m,c);o.quadraticCurveTo(d+h,c,d+h,c+m);if("center"===s&&"right"===l){this.drawCaret(e,i)}o.lineTo(d+h,c+u-m);o.quadraticCurveTo(d+h,c+u,d+h-m,c+u);if("bottom"===s){this.drawCaret(e,i)}o.lineTo(d+m,c+u);o.quadraticCurveTo(d,c+u,d,c+u-m);if("center"===s&&"left"===l){this.drawCaret(e,i)}o.lineTo(d,c+m);o.quadraticCurveTo(d,c,d+m,c);o.closePath();o.fill();if(0<a.borderWidth){o.stroke()}},draw:function draw(){var e=this._chart.ctx,t=this._view;if(0===t.opacity){return}var a={width:t.width,height:t.height},o={x:t.x,y:t.y},i=Math.abs(1e-3>t.opacity)?0:t.opacity,n=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;if(this._options.enabled&&n){this.drawBackground(o,t,e,a,i);o.x+=t.xPadding;o.y+=t.yPadding;this.drawTitle(o,t,e,i);this.drawBody(o,t,e,i);this.drawFooter(o,t,e,i)}},handleEvent:function handleEvent(t){var e=this,a=e._options,o=!1;e._lastActive=e._lastActive||[];if("mouseout"===t.type){e._active=[]}else{e._active=e._chart.getElementsAtEventForMode(t,a.mode,a)}o=!n.arrayEquals(e._active,e._lastActive);if(!o){return!1}e._lastActive=e._active;if(a.enabled||a.custom){e._eventPosition={x:t.x,y:t.y};var i=e._model;e.update(!0);e.pivot();o|=i.x!==e._model.x||i.y!==e._model.y}return o}});e.Tooltip.positioners={average:function average(e){if(!e.length){return!1}var t,a,o=0,n=0,l=0;for(t=0,a=e.length;t<a;++t){var s=e[t];if(s&&s.hasValue()){var d=s.tooltipPosition();o+=d.x;n+=d.y;++l}}return{x:Math.round(o/l),y:Math.round(n/l)}},nearest:function nearest(e,t){var a=t.x,o=t.y,l=Number.POSITIVE_INFINITY,s,c,h;for(s=0,c=e.length;s<c;++s){var u=e[s];if(u&&u.hasValue()){var m=u.getCenterPoint(),p=n.distanceBetweenPoints(t,m);if(p<l){l=p;h=u}}}if(h){var d=h.tooltipPosition();a=d.x;o=d.y}return{x:a,y:o}}}}},{25:25,26:26,45:45}],36:[function(e,t){'use strict';var a=e(25),o=e(26),i=e(45);a._set("global",{elements:{arc:{backgroundColor:a.global.defaultColor,borderColor:"#fff",borderWidth:2}}});t.exports=o.extend({inLabelRange:function inLabelRange(e){var t=this._view;if(t){return Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)}return!1},inRange:function inRange(e,t){var a=this._view;if(a){var o=i.getAngleFromPoint(a,{x:e,y:t}),n=o.angle,l=o.distance,s=a.startAngle,d=a.endAngle;while(d<s){d+=2*Math.PI}while(n>d){n-=2*Math.PI}while(n<s){n+=2*Math.PI}var c=n>=s&&n<=d,h=l>=a.innerRadius&&l<=a.outerRadius;return c&&h}return!1},getCenterPoint:function getCenterPoint(){var e=this._view,t=(e.startAngle+e.endAngle)/2,a=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*a,y:e.y+Math.sin(t)*a}},getArea:function getArea(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function tooltipPosition(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,a=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*a,y:e.y+Math.sin(t)*a}},draw:function draw(){var e=this._chart.ctx,t=this._view,a=t.startAngle,o=t.endAngle;e.beginPath();e.arc(t.x,t.y,t.outerRadius,a,o);e.arc(t.x,t.y,t.innerRadius,o,a,!0);e.closePath();e.strokeStyle=t.borderColor;e.lineWidth=t.borderWidth;e.fillStyle=t.backgroundColor;e.fill();e.lineJoin="bevel";if(t.borderWidth){e.stroke()}}})},{25:25,26:26,45:45}],37:[function(e,t){'use strict';var a=e(25),o=e(26),i=e(45),n=a.global;a._set("global",{elements:{line:{tension:.4,backgroundColor:n.defaultColor,borderWidth:3,borderColor:n.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});t.exports=o.extend({draw:function draw(){var e=this,t=e._view,a=e._chart.ctx,o=t.spanGaps,l=e._children.slice(),s=n.elements.line,d=-1,c,h,u,m;if(e._loop&&l.length){l.push(l[0])}a.save();a.lineCap=t.borderCapStyle||s.borderCapStyle;if(a.setLineDash){a.setLineDash(t.borderDash||s.borderDash)}a.lineDashOffset=t.borderDashOffset||s.borderDashOffset;a.lineJoin=t.borderJoinStyle||s.borderJoinStyle;a.lineWidth=t.borderWidth||s.borderWidth;a.strokeStyle=t.borderColor||n.defaultColor;a.beginPath();d=-1;for(c=0;c<l.length;++c){h=l[c];u=i.previousItem(l,c);m=h._view;if(0===c){if(!m.skip){a.moveTo(m.x,m.y);d=c}}else{u=-1===d?u:l[d];if(!m.skip){if(d!==c-1&&!o||-1===d){a.moveTo(m.x,m.y)}else{i.canvas.lineTo(a,u._view,h._view)}d=c}}}a.stroke();a.restore()}})},{25:25,26:26,45:45}],38:[function(e,t){'use strict';var o=e(25),i=e(26),n=e(45),l=o.global.defaultColor;o._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:l,borderColor:l,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});function a(e){var t=this._view;return t?Math.pow(e-t.x,2)<Math.pow(t.radius+t.hitRadius,2):!1}t.exports=i.extend({inRange:function inRange(e,t){var a=this._view;return a?Math.pow(e-a.x,2)+Math.pow(t-a.y,2)<Math.pow(a.hitRadius+a.radius,2):!1},inLabelRange:a,inXRange:a,inYRange:function(e){var t=this._view;return t?Math.pow(e-t.y,2)<Math.pow(t.radius+t.hitRadius,2):!1},getCenterPoint:function getCenterPoint(){var e=this._view;return{x:e.x,y:e.y}},getArea:function getArea(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function tooltipPosition(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function draw(e){var t=this._view,a=this._model,i=this._chart.ctx,s=t.pointStyle,d=t.radius,c=t.x,h=t.y,u=n.color,m=1.01,p=0;if(t.skip){return}i.strokeStyle=t.borderColor||l;i.lineWidth=n.valueOrDefault(t.borderWidth,o.global.elements.point.borderWidth);i.fillStyle=t.backgroundColor||l;if(e!==void 0&&(a.x<e.left||e.right*m<a.x||a.y<e.top||e.bottom*m<a.y)){if(a.x<e.left){p=(c-a.x)/(e.left-a.x)}else if(e.right*m<a.x){p=(a.x-c)/(a.x-e.right)}else if(a.y<e.top){p=(h-a.y)/(e.top-a.y)}else if(e.bottom*m<a.y){p=(a.y-h)/(a.y-e.bottom)}p=Math.round(100*p)/100;i.strokeStyle=u(i.strokeStyle).alpha(p).rgbString();i.fillStyle=u(i.fillStyle).alpha(p).rgbString()}n.canvas.drawPoint(i,s,d,c,h)}})},{25:25,26:26,45:45}],39:[function(e,t){'use strict';var i=e(25),n=e(26);i._set("global",{elements:{rectangle:{backgroundColor:i.global.defaultColor,borderColor:i.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}});function a(e){return e._view.width!==void 0}function o(e){var t=e._view,o,i,n,l;if(a(e)){var s=t.width/2;o=t.x-s;i=t.x+s;n=Math.min(t.y,t.base);l=Math.max(t.y,t.base)}else{var d=t.height/2;o=Math.min(t.x,t.base);i=Math.max(t.x,t.base);n=t.y-d;l=t.y+d}return{left:o,top:n,right:i,bottom:l}}t.exports=n.extend({draw:function draw(){var t=this._chart.ctx,a=this._view,o,n,l,s,d,c,h,u=a.borderWidth;if(!a.horizontal){o=a.x-a.width/2;n=a.x+a.width/2;l=a.y;s=a.base;d=1;c=s>l?1:-1;h=a.borderSkipped||"bottom"}else{o=a.base;n=a.x;l=a.y-a.height/2;s=a.y+a.height/2;d=n>o?1:-1;c=1;h=a.borderSkipped||"left"}if(u){var m=Math.min(Math.abs(o-n),Math.abs(l-s));u=u>m?m:u;var p=u/2,f=o+("left"!==h?p*d:0),y=n+("right"!==h?-p*d:0),x=l+("top"!==h?p*c:0),k=s+("bottom"!==h?-p*c:0);if(f!==y){l=x;s=k}if(x!==k){o=f;n=y}}t.beginPath();t.fillStyle=a.backgroundColor;t.strokeStyle=a.borderColor;t.lineWidth=u;var _=[[o,s],[o,l],[n,l],[n,s]],v=["bottom","left","top","right"].indexOf(h,0);if(-1===v){v=0}function e(e){return _[(v+e)%4]}var S=e(0);t.moveTo(S[0],S[1]);for(var w=1;4>w;w++){S=e(w);t.lineTo(S[0],S[1])}t.fill();if(u){t.stroke()}},height:function height(){var e=this._view;return e.base-e.y},inRange:function(e,t){var a=!1;if(this._view){var i=o(this);a=e>=i.left&&e<=i.right&&t>=i.top&&t<=i.bottom}return a},inLabelRange:function inLabelRange(e,t){var i=this;if(!i._view){return!1}var n=!1,l=o(i);if(a(i)){n=e>=l.left&&e<=l.right}else{n=t>=l.top&&t<=l.bottom}return n},inXRange:function inXRange(e){var t=o(this);return e>=t.left&&e<=t.right},inYRange:function inYRange(e){var t=o(this);return e>=t.top&&e<=t.bottom},getCenterPoint:function getCenterPoint(){var e=this._view,t,o;if(a(this)){t=e.x;o=(e.y+e.base)/2}else{t=(e.x+e.base)/2;o=e.y}return{x:t,y:o}},getArea:function getArea(){var e=this._view;return e.width*Math.abs(e.y-e.base)},tooltipPosition:function tooltipPosition(){var e=this._view;return{x:e.x,y:e.y}}})},{25:25,26:26}],40:[function(e,t){'use strict';t.exports={};t.exports.Arc=e(36);t.exports.Line=e(37);t.exports.Point=e(38);t.exports.Rectangle=e(39)},{36:36,37:37,38:38,39:39}],41:[function(e,t,a){'use strict';var o=e(42),a=t.exports={clear:function clear(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function roundedRect(e,t,a,o,i,n){if(n){var l=Math.min(n,o/2),s=Math.min(n,i/2);e.moveTo(t+l,a);e.lineTo(t+o-l,a);e.quadraticCurveTo(t+o,a,t+o,a+s);e.lineTo(t+o,a+i-s);e.quadraticCurveTo(t+o,a+i,t+o-l,a+i);e.lineTo(t+l,a+i);e.quadraticCurveTo(t,a+i,t,a+i-s);e.lineTo(t,a+s);e.quadraticCurveTo(t,a,t+l,a)}else{e.rect(t,a,o,i)}},drawPoint:function drawPoint(e,t,a,o,i){var n,l,s,d,c,h;if("object"===_typeof(t)){n=t.toString();if("[object HTMLImageElement]"===n||"[object HTMLCanvasElement]"===n){e.drawImage(t,o-t.width/2,i-t.height/2,t.width,t.height);return}}if(isNaN(a)||0>=a){return}switch(t){default:e.beginPath();e.arc(o,i,a,0,2*Math.PI);e.closePath();e.fill();break;case"triangle":e.beginPath();l=3*a/Math.sqrt(3);c=l*Math.sqrt(3)/2;e.moveTo(o-l/2,i+c/3);e.lineTo(o+l/2,i+c/3);e.lineTo(o,i-2*c/3);e.closePath();e.fill();break;case"rect":h=1/Math.SQRT2*a;e.beginPath();e.fillRect(o-h,i-h,2*h,2*h);e.strokeRect(o-h,i-h,2*h,2*h);break;case"rectRounded":var u=a/Math.SQRT2,m=Math.SQRT2*a;e.beginPath();this.roundedRect(e,o-u,i-u,m,m,a/2);e.closePath();e.fill();break;case"rectRot":h=1/Math.SQRT2*a;e.beginPath();e.moveTo(o-h,i);e.lineTo(o,i+h);e.lineTo(o+h,i);e.lineTo(o,i-h);e.closePath();e.fill();break;case"cross":e.beginPath();e.moveTo(o,i+a);e.lineTo(o,i-a);e.moveTo(o-a,i);e.lineTo(o+a,i);e.closePath();break;case"crossRot":e.beginPath();s=Math.cos(Math.PI/4)*a;d=Math.sin(Math.PI/4)*a;e.moveTo(o-s,i-d);e.lineTo(o+s,i+d);e.moveTo(o-s,i+d);e.lineTo(o+s,i-d);e.closePath();break;case"star":e.beginPath();e.moveTo(o,i+a);e.lineTo(o,i-a);e.moveTo(o-a,i);e.lineTo(o+a,i);s=Math.cos(Math.PI/4)*a;d=Math.sin(Math.PI/4)*a;e.moveTo(o-s,i-d);e.lineTo(o+s,i+d);e.moveTo(o-s,i+d);e.lineTo(o+s,i-d);e.closePath();break;case"line":e.beginPath();e.moveTo(o-a,i);e.lineTo(o+a,i);e.closePath();break;case"dash":e.beginPath();e.moveTo(o,i);e.lineTo(o+a,i);e.closePath();break;}e.stroke()},clipArea:function clipArea(e,t){e.save();e.beginPath();e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top);e.clip()},unclipArea:function unclipArea(e){e.restore()},lineTo:function lineTo(e,t,a,o){if(a.steppedLine){if("after"===a.steppedLine&&!o||"after"!==a.steppedLine&&o){e.lineTo(t.x,a.y)}else{e.lineTo(a.x,t.y)}e.lineTo(a.x,a.y);return}if(!a.tension){e.lineTo(a.x,a.y);return}e.bezierCurveTo(o?t.controlPointPreviousX:t.controlPointNextX,o?t.controlPointPreviousY:t.controlPointNextY,o?a.controlPointNextX:a.controlPointPreviousX,o?a.controlPointNextY:a.controlPointPreviousY,a.x,a.y)}};o.clear=a.clear;o.drawRoundedRectangle=function(e){e.beginPath();a.roundedRect.apply(a,arguments);e.closePath()}},{42:42}],42:[function(e,t){'use strict';var a={noop:function noop(){},uid:function(){var e=0;return function(){return e++}}(),isNullOrUndef:function isNullOrUndef(e){return null===e||"undefined"==typeof e},isArray:Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},isObject:function isObject(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},valueOrDefault:function valueOrDefault(e,t){return"undefined"==typeof e?t:e},valueAtIndexOrDefault:function valueAtIndexOrDefault(e,t,o){return a.valueOrDefault(a.isArray(e)?e[t]:e,o)},callback:function callback(e,t,a){if(e&&"function"==typeof e.call){return e.apply(a,t)}},each:function each(e,t,o,n){var l,s,d;if(a.isArray(e)){s=e.length;if(n){for(l=s-1;0<=l;l--){t.call(o,e[l],l)}}else{for(l=0;l<s;l++){t.call(o,e[l],l)}}}else if(a.isObject(e)){d=Object.keys(e);s=d.length;for(l=0;l<s;l++){t.call(o,e[d[l]],d[l])}}},arrayEquals:function arrayEquals(e,t){var o,n,l,s;if(!e||!t||e.length!==t.length){return!1}for(o=0,n=e.length;o<n;++o){l=e[o];s=t[o];if(l instanceof Array&&s instanceof Array){if(!a.arrayEquals(l,s)){return!1}}else if(l!==s){return!1}}return!0},clone:function clone(e){if(a.isArray(e)){return e.map(a.clone)}if(a.isObject(e)){var t={},o=Object.keys(e),i=o.length,n=0;for(;n<i;++n){t[o[n]]=a.clone(e[o[n]])}return t}return e},_merger:function _merger(e,t,o,i){var n=t[e],l=o[e];if(a.isObject(n)&&a.isObject(l)){a.merge(n,l,i)}else{t[e]=a.clone(l)}},_mergerIf:function _mergerIf(e,t,o){var i=t[e],n=o[e];if(a.isObject(i)&&a.isObject(n)){a.mergeIf(i,n)}else if(!t.hasOwnProperty(e)){t[e]=a.clone(n)}},merge:function(e,t,o){var n=a.isArray(t)?t:[t],l=n.length,s,d,c,h,u;if(!a.isObject(e)){return e}o=o||{};s=o.merger||a._merger;for(d=0;d<l;++d){t=n[d];if(!a.isObject(t)){continue}c=Object.keys(t);for(u=0,h=c.length;u<h;++u){s(c[u],e,t,o)}}return e},mergeIf:function mergeIf(e,t){return a.merge(e,t,{merger:a._mergerIf})}};t.exports=a;a.callCallback=a.callback;a.indexOf=function(e,t,a){return Array.prototype.indexOf.call(e,t,a)};a.getValueOrDefault=a.valueOrDefault;a.getValueAtIndexOrDefault=a.valueAtIndexOrDefault},{}],43:[function(e,t){'use strict';var a=e(42),o={linear:function linear(e){return e},easeInQuad:function easeInQuad(e){return e*e},easeOutQuad:function easeOutQuad(e){return-e*(e-2)},easeInOutQuad:function easeInOutQuad(e){if(1>(e/=.5)){return .5*e*e}return-.5*(--e*(e-2)-1)},easeInCubic:function easeInCubic(e){return e*e*e},easeOutCubic:function easeOutCubic(e){return(e=e-1)*e*e+1},easeInOutCubic:function easeInOutCubic(e){if(1>(e/=.5)){return .5*e*e*e}return .5*((e-=2)*e*e+2)},easeInQuart:function easeInQuart(e){return e*e*e*e},easeOutQuart:function easeOutQuart(e){return-((e=e-1)*e*e*e-1)},easeInOutQuart:function easeInOutQuart(e){if(1>(e/=.5)){return .5*e*e*e*e}return-.5*((e-=2)*e*e*e-2)},easeInQuint:function easeInQuint(e){return e*e*e*e*e},easeOutQuint:function easeOutQuint(e){return(e=e-1)*e*e*e*e+1},easeInOutQuint:function easeInOutQuint(e){if(1>(e/=.5)){return .5*e*e*e*e*e}return .5*((e-=2)*e*e*e*e+2)},easeInSine:function easeInSine(e){return-Math.cos(e*(Math.PI/2))+1},easeOutSine:function easeOutSine(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function easeInOutSine(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function easeInExpo(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function easeOutExpo(e){return 1===e?1:-Math.pow(2,-10*e)+1},easeInOutExpo:function easeInOutExpo(e){if(0===e){return 0}if(1===e){return 1}if(1>(e/=.5)){return .5*Math.pow(2,10*(e-1))}return .5*(-Math.pow(2,-10*--e)+2)},easeInCirc:function easeInCirc(e){if(1<=e){return e}return-(Math.sqrt(1-e*e)-1)},easeOutCirc:function easeOutCirc(e){return Math.sqrt(1-(e=e-1)*e)},easeInOutCirc:function easeInOutCirc(e){if(1>(e/=.5)){return-.5*(Math.sqrt(1-e*e)-1)}return .5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function easeInElastic(e){var o=1.70158,i=0,n=1;if(0===e){return 0}if(1===e){return 1}if(!i){i=.3}if(1>n){n=1;o=i/4}else{o=i/(2*Math.PI)*Math.asin(1/n)}return-(n*Math.pow(2,10*(e-=1))*Math.sin((e-o)*(2*Math.PI)/i))},easeOutElastic:function easeOutElastic(e){var t=1.70158,o=0,i=1;if(0===e){return 0}if(1===e){return 1}if(!o){o=.3}if(1>i){i=1;t=o/4}else{t=o/(2*Math.PI)*Math.asin(1/i)}return i*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/o)+1},easeInOutElastic:function easeInOutElastic(e){var o=1.70158,i=0,n=1;if(0===e){return 0}if(2==(e/=.5)){return 1}if(!i){i=.45}if(1>n){n=1;o=i/4}else{o=i/(2*Math.PI)*Math.asin(1/n)}if(1>e){return-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-o)*(2*Math.PI)/i))}return .5*(n*Math.pow(2,-10*(e-=1))*Math.sin((e-o)*(2*Math.PI)/i))+1},easeInBack:function easeInBack(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function easeOutBack(e){var a=1.70158;return(e=e-1)*e*((a+1)*e+a)+1},easeInOutBack:function easeInOutBack(e){var a=1.70158;if(1>(e/=.5)){return .5*(e*e*(((a*=1.525)+1)*e-a))}return .5*((e-=2)*e*(((a*=1.525)+1)*e+a)+2)},easeInBounce:function easeInBounce(e){return 1-o.easeOutBounce(1-e)},easeOutBounce:function easeOutBounce(e){if(e<1/2.75){return 7.5625*e*e}if(e<2/2.75){return 7.5625*(e-=1.5/2.75)*e+.75}if(e<2.5/2.75){return 7.5625*(e-=2.25/2.75)*e+.9375}return 7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function easeInOutBounce(e){if(.5>e){return .5*o.easeInBounce(2*e)}return .5*o.easeOutBounce(2*e-1)+.5}};t.exports={effects:o};a.easingEffects=o},{42:42}],44:[function(e,t){'use strict';var a=e(42);t.exports={toLineHeight:function toLineHeight(e,t){var a=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!a||"normal"===a[1]){return 1.2*t}e=+a[2];switch(a[3]){case"px":return e;case"%":e/=100;break;default:break;}return t*e},toPadding:function toPadding(e){var o,i,n,s;if(a.isObject(e)){o=+e.top||0;i=+e.right||0;n=+e.bottom||0;s=+e.left||0}else{o=i=n=s=+e||0}return{top:o,right:i,bottom:n,left:s,height:o+n,width:s+i}},resolve:function resolve(e,t,o){var n,l,s;for(n=0,l=e.length;n<l;++n){s=e[n];if(s===void 0){continue}if(t!==void 0&&"function"==typeof s){s=s(t)}if(o!==void 0&&a.isArray(s)){s=s[o]}if(s!==void 0){return s}}}}},{42:42}],45:[function(e,t){'use strict';t.exports=e(42);t.exports.easing=e(43);t.exports.canvas=e(41);t.exports.options=e(44)},{41:41,42:42,43:43,44:44}],46:[function(e,t){t.exports={acquireContext:function acquireContext(e){if(e&&e.canvas){e=e.canvas}return e&&e.getContext("2d")||null}}},{}],47:[function(e,t){'use strict';var y=e(45),x="$chartjs",k="chartjs-",_=k+"render-monitor",v=k+"render-animation",S=["animationstart","webkitAnimationStart"],w={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function a(e,t){var a=y.getStyle(e,t),o=a&&a.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function o(e,t){var o=e.style,i=e.getAttribute("height"),n=e.getAttribute("width");e[x]={initial:{height:i,width:n,style:{display:o.display,height:o.height,width:o.width}}};o.display=o.display||"block";if(null===n||""===n){var l=a(e,"width");if(l!==void 0){e.width=l}}if(null===i||""===i){if(""===e.style.height){e.height=e.width/(t.options.aspectRatio||2)}else{var s=a(e,"height");if(l!==void 0){e.height=s}}}return e}var D=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function get(){e=!0}});window.addEventListener("e",null,t)}catch(t){}return e}(),C=D?{passive:!0}:!1;function i(e,t,a){e.addEventListener(t,a,C)}function n(e,t,a){e.removeEventListener(t,a,C)}function l(e,t,a,o,i){return{type:e,chart:t,native:i||null,x:a!==void 0?a:null,y:o!==void 0?o:null}}function s(e,t){var a=w[e.type]||e.type,o=y.getRelativePosition(e,t);return l(a,t,o.x,o.y,e)}function d(e,t){var a=!1,o=[];return function(){o=Array.prototype.slice.call(arguments);t=t||this;if(!a){a=!0;y.requestAnimFrame.call(window,function(){a=!1;e.apply(t,o)})}}}function c(e){var t=document.createElement("div"),a=k+"size-monitor",o=1e6,n="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;";t.style.cssText=n;t.className=a;t.innerHTML="<div class=\""+a+"-expand\" style=\""+n+"\"><div style=\"position:absolute;width:"+o+"px;height:"+o+"px;left:0;top:0\"></div></div><div class=\""+a+"-shrink\" style=\""+n+"\"><div style=\"position:absolute;width:200%;height:200%;left:0; top:0\"></div></div>";var l=t.childNodes[0],s=t.childNodes[1];t._reset=function(){l.scrollLeft=o;l.scrollTop=o;s.scrollLeft=o;s.scrollTop=o};var d=function(){t._reset();e()};i(l,"scroll",d.bind(l,"expand"));i(s,"scroll",d.bind(s,"shrink"));return t}function h(e,t){var a=e[x]||(e[x]={}),o=a.renderProxy=function(a){if(a.animationName===v){t()}};y.each(S,function(t){i(e,t,o)});e.classList.add(_)}function u(e){var t=e[x]||{},a=t.renderProxy;if(a){y.each(S,function(t){n(e,t,a)});delete t.renderProxy}e.classList.remove(_)}function m(e,t,a){var o=e[x]||(e[x]={}),i=o.resizer=c(d(function(){if(o.resizer){return t(l("resize",a))}}));h(e,function(){if(o.resizer){var t=e.parentNode;if(t&&t!==i.parentNode){t.insertBefore(i,t.firstChild)}i._reset()}})}function p(e){var t=e[x]||{},a=t.resizer;delete t.resizer;u(e);if(a&&a.parentNode){a.parentNode.removeChild(a)}}function f(e,t){var a=e._style||document.createElement("style");if(!e._style){e._style=a;t="/* Chart.js */\n"+t;a.setAttribute("type","text/css");document.getElementsByTagName("head")[0].appendChild(a)}a.appendChild(document.createTextNode(t))}t.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function initialize(){f(this,"@-webkit-keyframes "+v+"{"+"from{opacity:0.99}to{opacity:1}"+"}@keyframes "+v+"{"+"from{opacity:0.99}to{opacity:1}"+"}."+_+"{-webkit-animation:"+v+" 0.001s;animation:"+v+" 0.001s;}")},acquireContext:function acquireContext(e,t){if("string"==typeof e){e=document.getElementById(e)}else if(e.length){e=e[0]}if(e&&e.canvas){e=e.canvas}var a=e&&e.getContext&&e.getContext("2d");if(a&&a.canvas===e){o(e,t);return a}return null},releaseContext:function releaseContext(e){var t=e.canvas;if(!t[x]){return}var a=t[x].initial;["height","width"].forEach(function(e){var o=a[e];if(y.isNullOrUndef(o)){t.removeAttribute(e)}else{t.setAttribute(e,o)}});y.each(a.style||{},function(e,a){t.style[a]=e});t.width=t.width;delete t[x]},addEventListener:function addEventListener(e,t,a){var o=e.canvas;if("resize"===t){m(o,a,e);return}var n=a[x]||(a[x]={}),l=n.proxies||(n.proxies={}),d=l[e.id+"_"+t]=function(t){a(s(t,e))};i(o,t,d)},removeEventListener:function removeEventListener(e,t,a){var o=e.canvas;if("resize"===t){p(o,a);return}var i=a[x]||{},l=i.proxies||{},s=l[e.id+"_"+t];if(!s){return}n(o,t,s)}};y.addEvent=i;y.removeEvent=n},{45:45}],48:[function(e,t){'use strict';var a=e(45),o=e(46),i=e(47),n=i._enabled?i:o;t.exports=a.extend({initialize:function initialize(){},acquireContext:function acquireContext(){},releaseContext:function releaseContext(){},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){}},n)},{45:45,46:46,47:47}],49:[function(e,t){'use strict';var a=e(25),o=e(40),n=e(45);a._set("global",{plugins:{filler:{propagate:!0}}});t.exports=function(){var u={dataset:function dataset(e){var t=e.fill,a=e.chart,o=a.getDatasetMeta(t),i=o&&a.isDatasetVisible(t),n=i&&o.dataset._children||[],l=n.length||0;return!l?null:function(e,t){return t<l&&n[t]._view||null}},boundary:function(e){var t=e.boundary,a=t?t.x:null,o=t?t.y:null;return function(e){return{x:null===a?e.x:a,y:null===o?e.y:o}}}};function e(e,t,a){var o=e._model||{},i=o.fill,n;if(i===void 0){i=!!o.backgroundColor}if(!1===i||null===i){return!1}if(!0===i){return"origin"}n=parseFloat(i,10);if(isFinite(n)&&Math.floor(n)===n){if("-"===i[0]||"+"===i[0]){n=t+n}if(n===t||0>n||n>=a){return!1}return n}switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1;}}function t(e){var t=e.el._model||{},a=e.el._scale||{},o=e.fill,i=null,n;if(isFinite(o)){return null}if("start"===o){i=t.scaleBottom===void 0?a.bottom:t.scaleBottom}else if("end"===o){i=t.scaleTop===void 0?a.top:t.scaleTop}else if(t.scaleZero!==void 0){i=t.scaleZero}else if(a.getBasePosition){i=a.getBasePosition()}else if(a.getBasePixel){i=a.getBasePixel()}if(i!==void 0&&null!==i){if(i.x!==void 0&&i.y!==void 0){return i}if("number"==typeof i&&isFinite(i)){n=a.isHorizontal();return{x:n?i:null,y:n?null:i}}}return null}function l(e,t,a){var o=e[t],i=o.fill,n=[t],l;if(!a){return i}while(!1!==i&&-1===n.indexOf(i)){if(!isFinite(i)){return i}l=e[i];if(!l){return!1}if(l.visible){return i}n.push(i);i=l.fill}return!1}function s(e){var t=e.fill,a="dataset";if(!1===t){return null}if(!isFinite(t)){a="boundary"}return u[a](e)}function d(e){return e&&!e.skip}function c(e,t,a,o,l){var s;if(!o||!l){return}e.moveTo(t[0].x,t[0].y);for(s=1;s<o;++s){n.canvas.lineTo(e,t[s-1],t[s])}e.lineTo(a[l-1].x,a[l-1].y);for(s=l-1;0<s;--s){n.canvas.lineTo(e,a[s],a[s-1],!0)}}function h(e,t,a,o,n,l){var s=t.length,h=o.spanGaps,u=[],m=[],p=0,f=0,y,x,k,_,v,S,w;e.beginPath();for(y=0,x=s+!!l;y<x;++y){k=y%s;_=t[k]._view;v=a(_,k,o);S=d(_);w=d(v);if(S&&w){p=u.push(_);f=m.push(v)}else if(p&&f){if(!h){c(e,u,m,p,f);p=f=0;u=[];m=[]}else{if(S){u.push(_)}if(w){m.push(v)}}}}c(e,u,m,p,f);e.closePath();e.fillStyle=n;e.fill()}return{id:"filler",afterDatasetsUpdate:function afterDatasetsUpdate(a,n){var d=(a.data.datasets||[]).length,c=n.propagate,h=[],u,m,p,f;for(m=0;m<d;++m){u=a.getDatasetMeta(m);p=u.dataset;f=null;if(p&&p._model&&p instanceof o.Line){f={visible:a.isDatasetVisible(m),fill:e(p,m,d),chart:a,el:p}}u.$filler=f;h.push(f)}for(m=0;m<d;++m){f=h[m];if(!f){continue}f.fill=l(h,m,c);f.boundary=t(f);f.mapper=s(f)}},beforeDatasetDraw:function beforeDatasetDraw(e,t){var o=t.meta.$filler;if(!o){return}var i=e.ctx,l=o.el,s=l._view,d=l._children||[],c=o.mapper,u=s.backgroundColor||a.global.defaultColor;if(c&&u&&d.length){n.canvas.clipArea(i,e.chartArea);h(i,d,c,s,u,l._loop);n.canvas.unclipArea(i)}}}}},{25:25,40:40,45:45}],50:[function(e,t){'use strict';var a=e(25),o=e(26),n=e(45);a._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function onClick(t,e){var a=e.datasetIndex,o=this.chart,i=o.getDatasetMeta(a);i.hidden=null===i.hidden?!o.data.datasets[a].hidden:null;o.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function generateLabels(e){var t=e.data;return n.isArray(t.datasets)?t.datasets.map(function(t,a){return{text:t.label,fillStyle:!n.isArray(t.backgroundColor)?t.backgroundColor:t.backgroundColor[0],hidden:!e.isDatasetVisible(a),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:a}},this):[]}}},legendCallback:function legendCallback(e){for(var t=["<ul class=\""+e.id+"-legend\">"],a=0;a<e.data.datasets.length;a++){t.push("<li><span style=\"background-color:"+e.data.datasets[a].backgroundColor+"\"></span>");if(e.data.datasets[a].label){t.push(e.data.datasets[a].label)}t.push("</li>")}t.push("</ul>");return t.join("")}});t.exports=function(e){var l=e.layoutService,s=n.noop;function t(e,t){return e.usePointStyle?t*Math.SQRT2:e.boxWidth}e.Legend=o.extend({initialize:function initialize(e){n.extend(this,e);this.legendHitBoxes=[];this.doughnutMode=!1},beforeUpdate:s,update:function update(e,t,a){var o=this;o.beforeUpdate();o.maxWidth=e;o.maxHeight=t;o.margins=a;o.beforeSetDimensions();o.setDimensions();o.afterSetDimensions();o.beforeBuildLabels();o.buildLabels();o.afterBuildLabels();o.beforeFit();o.fit();o.afterFit();o.afterUpdate();return o.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function setDimensions(){var e=this;if(e.isHorizontal()){e.width=e.maxWidth;e.left=0;e.right=e.width}else{e.height=e.maxHeight;e.top=0;e.bottom=e.height}e.paddingLeft=0;e.paddingTop=0;e.paddingRight=0;e.paddingBottom=0;e.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function buildLabels(){var e=this,t=e.options.labels||{},a=n.callback(t.generateLabels,[e.chart],e)||[];if(t.filter){a=a.filter(function(a){return t.filter(a,e.chart.data)})}if(e.options.reverse){a.reverse()}e.legendItems=a},afterBuildLabels:s,beforeFit:s,fit:function fit(){var e=this,o=e.options,l=o.labels,s=o.display,d=e.ctx,c=a.global,h=n.valueOrDefault,u=h(l.fontSize,c.defaultFontSize),m=h(l.fontStyle,c.defaultFontStyle),p=h(l.fontFamily,c.defaultFontFamily),f=n.fontString(u,m,p),y=e.legendHitBoxes=[],x=e.minSize,k=e.isHorizontal();if(k){x.width=e.maxWidth;x.height=s?10:0}else{x.width=s?10:0;x.height=e.maxHeight}if(s){d.font=f;if(k){var _=e.lineWidths=[0],v=e.legendItems.length?u+l.padding:0;d.textAlign="left";d.textBaseline="top";n.each(e.legendItems,function(a,o){var i=t(l,u),n=i+u/2+d.measureText(a.text).width;if(_[_.length-1]+n+l.padding>=e.width){v+=u+l.padding;_[_.length]=e.left}y[o]={left:0,top:0,width:n,height:u};_[_.length-1]+=n+l.padding});x.height+=v}else{var S=l.padding,w=e.columnWidths=[],D=l.padding,C=0,P=0,T=u+S;n.each(e.legendItems,function(e,a){var o=t(l,u),i=o+u/2+d.measureText(e.text).width;if(P+T>x.height){D+=C+l.padding;w.push(C);C=0;P=0}C=Math.max(C,i);P+=T;y[a]={left:0,top:0,width:i,height:u}});D+=C;w.push(C);x.width+=D}}e.width=x.width;e.height=x.height},afterFit:s,isHorizontal:function isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position},draw:function draw(){var e=this,o=e.options,i=o.labels,l=a.global,s=l.elements.line,d=e.width,c=e.lineWidths;if(o.display){var h=e.ctx,u=n.valueOrDefault,m=u(i.fontColor,l.defaultFontColor),p=u(i.fontSize,l.defaultFontSize),f=u(i.fontStyle,l.defaultFontStyle),y=u(i.fontFamily,l.defaultFontFamily),x=n.fontString(p,f,y),k;h.textAlign="left";h.textBaseline="middle";h.lineWidth=.5;h.strokeStyle=m;h.fillStyle=m;h.font=x;var _=t(i,p),v=e.legendHitBoxes,S=function(e,t,a){if(isNaN(_)||0>=_){return}h.save();h.fillStyle=u(a.fillStyle,l.defaultColor);h.lineCap=u(a.lineCap,s.borderCapStyle);h.lineDashOffset=u(a.lineDashOffset,s.borderDashOffset);h.lineJoin=u(a.lineJoin,s.borderJoinStyle);h.lineWidth=u(a.lineWidth,s.borderWidth);h.strokeStyle=u(a.strokeStyle,l.defaultColor);var i=0===u(a.lineWidth,s.borderWidth);if(h.setLineDash){h.setLineDash(u(a.lineDash,s.borderDash))}if(o.labels&&o.labels.usePointStyle){var d=p*Math.SQRT2/2,c=d/Math.SQRT2;n.canvas.drawPoint(h,a.pointStyle,d,e+c,t+c)}else{if(!i){h.strokeRect(e,t,_,p)}h.fillRect(e,t,_,p)}h.restore()},w=function(e,t,a,o){var i=p/2,n=_+i+e,l=t+i;h.fillText(a.text,n,l);if(a.hidden){h.beginPath();h.lineWidth=2;h.moveTo(n,l);h.lineTo(n+o,l);h.stroke()}},D=e.isHorizontal();if(D){k={x:e.left+(d-c[0])/2,y:e.top+i.padding,line:0}}else{k={x:e.left+i.padding,y:e.top+i.padding,line:0}}var C=p+i.padding;n.each(e.legendItems,function(t,a){var o=h.measureText(t.text).width,n=_+p/2+o,l=k.x,s=k.y;if(D){if(l+n>=d){s=k.y+=C;k.line++;l=k.x=e.left+(d-c[k.line])/2}}else if(s+C>e.bottom){l=k.x=l+e.columnWidths[k.line]+i.padding;s=k.y=e.top+i.padding;k.line++}S(l,s,t);v[a].left=l;v[a].top=s;w(l,s,t,o);if(D){k.x+=n+i.padding}else{k.y+=C}})}},handleEvent:function handleEvent(t){var e=this,a=e.options,o="mouseup"===t.type?"click":t.type,n=!1;if("mousemove"===o){if(!a.onHover){return}}else if("click"===o){if(!a.onClick){return}}else{return}var l=t.x,s=t.y;if(l>=e.left&&l<=e.right&&s>=e.top&&s<=e.bottom){for(var d=e.legendHitBoxes,c=0,h;c<d.length;++c){h=d[c];if(l>=h.left&&l<=h.left+h.width&&s>=h.top&&s<=h.top+h.height){if("click"===o){a.onClick.call(e,t.native,e.legendItems[c]);n=!0;break}else if("mousemove"===o){a.onHover.call(e,t.native,e.legendItems[c]);n=!0;break}}}}return n}});function i(t,a){var o=new e.Legend({ctx:t.ctx,options:a,chart:t});l.configure(t,o,a);l.addBox(t,o);t.legend=o}return{id:"legend",beforeInit:function beforeInit(e){var t=e.options.legend;if(t){i(e,t)}},beforeUpdate:function beforeUpdate(e){var t=e.options.legend,o=e.legend;if(t){n.mergeIf(t,a.global.legend);if(o){l.configure(e,o,t);o.options=t}else{i(e,t)}}else if(o){l.removeBox(e,o);delete e.legend}},afterEvent:function afterEvent(t,a){var e=t.legend;if(e){e.handleEvent(a)}}}}},{25:25,26:26,45:45}],51:[function(e,t){'use strict';var a=e(25),o=e(26),n=e(45);a._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}});t.exports=function(e){var i=e.layoutService,l=n.noop;e.Title=o.extend({initialize:function initialize(e){var t=this;n.extend(t,e);t.legendHitBoxes=[]},beforeUpdate:l,update:function update(e,t,a){var o=this;o.beforeUpdate();o.maxWidth=e;o.maxHeight=t;o.margins=a;o.beforeSetDimensions();o.setDimensions();o.afterSetDimensions();o.beforeBuildLabels();o.buildLabels();o.afterBuildLabels();o.beforeFit();o.fit();o.afterFit();o.afterUpdate();return o.minSize},afterUpdate:l,beforeSetDimensions:l,setDimensions:function setDimensions(){var e=this;if(e.isHorizontal()){e.width=e.maxWidth;e.left=0;e.right=e.width}else{e.height=e.maxHeight;e.top=0;e.bottom=e.height}e.paddingLeft=0;e.paddingTop=0;e.paddingRight=0;e.paddingBottom=0;e.minSize={width:0,height:0}},afterSetDimensions:l,beforeBuildLabels:l,buildLabels:l,afterBuildLabels:l,beforeFit:l,fit:function fit(){var e=this,t=n.valueOrDefault,o=e.options,i=o.display,l=t(o.fontSize,a.global.defaultFontSize),s=e.minSize,d=n.isArray(o.text)?o.text.length:1,c=n.options.toLineHeight(o.lineHeight,l),h=i?d*c+2*o.padding:0;if(e.isHorizontal()){s.width=e.maxWidth;s.height=h}else{s.width=h;s.height=e.maxHeight}e.width=s.width;e.height=s.height},afterFit:l,isHorizontal:function isHorizontal(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function draw(){var e=this,t=e.ctx,o=n.valueOrDefault,l=e.options,s=a.global;if(l.display){var d=o(l.fontSize,s.defaultFontSize),c=o(l.fontStyle,s.defaultFontStyle),h=o(l.fontFamily,s.defaultFontFamily),u=n.fontString(d,c,h),m=n.options.toLineHeight(l.lineHeight,d),p=m/2+l.padding,f=0,x=e.top,k=e.left,_=e.bottom,v=e.right,S,w,D;t.fillStyle=o(l.fontColor,s.defaultFontColor);t.font=u;if(e.isHorizontal()){w=k+(v-k)/2;D=x+p;S=v-k}else{w="left"===l.position?k+p:v-p;D=x+(_-x)/2;S=_-x;f=Math.PI*("left"===l.position?-.5:.5)}t.save();t.translate(w,D);t.rotate(f);t.textAlign="center";t.textBaseline="middle";var C=l.text;if(n.isArray(C)){for(var P=0,T=0;T<C.length;++T){t.fillText(C[T],0,P,S);P+=m}}else{t.fillText(C,0,0,S)}t.restore()}}});function t(t,a){var o=new e.Title({ctx:t.ctx,options:a,chart:t});i.configure(t,o,a);i.addBox(t,o);t.titleBlock=o}return{id:"title",beforeInit:function beforeInit(e){var a=e.options.title;if(a){t(e,a)}},beforeUpdate:function beforeUpdate(o){var l=o.options.title,s=o.titleBlock;if(l){n.mergeIf(l,a.global.title);if(s){i.configure(o,s,l);s.options=l}else{t(o,l)}}else if(s){e.layoutService.removeBox(o,s);delete o.titleBlock}}}}},{25:25,26:26,45:45}],52:[function(e,t){'use strict';t.exports=function(e){var t=e.Scale.extend({getLabels:function getLabels(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels},determineDataLimits:function determineDataLimits(){var e=this,t=e.getLabels();e.minIndex=0;e.maxIndex=t.length-1;var a;if(e.options.ticks.min!==void 0){a=t.indexOf(e.options.ticks.min);e.minIndex=-1!==a?a:e.minIndex}if(e.options.ticks.max!==void 0){a=t.indexOf(e.options.ticks.max);e.maxIndex=-1!==a?a:e.maxIndex}e.min=t[e.minIndex];e.max=t[e.maxIndex]},buildTicks:function buildTicks(){var e=this,t=e.getLabels();e.ticks=0===e.minIndex&&e.maxIndex===t.length-1?t:t.slice(e.minIndex,e.maxIndex+1)},getLabelForIndex:function getLabelForIndex(e,t){var a=this,o=a.chart.data,i=a.isHorizontal();if(o.yLabels&&!i){return a.getRightValue(o.datasets[t].data[e])}return a.ticks[e-a.minIndex]},getPixelForValue:function getPixelForValue(e,t){var a=this,o=a.options.offset,i=Math.max(a.maxIndex+1-a.minIndex-(o?0:1),1),n;if(e!==void 0&&null!==e){n=a.isHorizontal()?e.x:e.y}if(n!==void 0||e!==void 0&&isNaN(t)){var l=a.getLabels();e=n||e;var s=l.indexOf(e);t=-1!==s?s:t}if(a.isHorizontal()){var d=a.width/i,c=d*(t-a.minIndex);if(o){c+=d/2}return a.left+Math.round(c)}var h=a.height/i,u=h*(t-a.minIndex);if(o){u+=h/2}return a.top+Math.round(u)},getPixelForTick:function getPixelForTick(e){return this.getPixelForValue(this.ticks[e],e+this.minIndex,null)},getValueForPixel:function getValueForPixel(e){var t=this,a=t.options.offset,o,i=Math.max(t._ticks.length-(a?0:1),1),n=t.isHorizontal(),l=(n?t.width:t.height)/i;e-=n?t.left:t.top;if(a){e-=l/2}if(0>=e){o=0}else{o=Math.round(e/l)}return o+t.minIndex},getBasePixel:function getBasePixel(){return this.bottom}});e.scaleService.registerScaleType("category",t,{position:"bottom"})}},{}],53:[function(e,t){'use strict';var a=e(25),o=e(45),i=e(34);t.exports=function(e){var t={position:"left",ticks:{callback:i.formatters.linear}},n=e.LinearScaleBase.extend({determineDataLimits:function determineDataLimits(){var t=this,a=t.options,i=t.chart,n=i.data,l=n.datasets,s=t.isHorizontal();function e(e){return s?e.xAxisID===t.id:e.yAxisID===t.id}t.min=null;t.max=null;var d=a.stacked;if(d===void 0){o.each(l,function(t,a){if(d){return}var o=i.getDatasetMeta(a);if(i.isDatasetVisible(a)&&e(o)&&o.stack!==void 0){d=!0}})}if(a.stacked||d){var c={};o.each(l,function(n,l){var s=i.getDatasetMeta(l),d=[s.type,a.stacked===void 0&&s.stack===void 0?l:"",s.stack].join(".");if(c[d]===void 0){c[d]={positiveValues:[],negativeValues:[]}}var h=c[d].positiveValues,u=c[d].negativeValues;if(i.isDatasetVisible(l)&&e(s)){o.each(n.data,function(e,o){var i=+t.getRightValue(e);if(isNaN(i)||s.data[o].hidden){return}h[o]=h[o]||0;u[o]=u[o]||0;if(a.relativePoints){h[o]=100}else if(0>i){u[o]+=i}else{h[o]+=i}})}});o.each(c,function(e){var a=e.positiveValues.concat(e.negativeValues),i=o.min(a),n=o.max(a);t.min=null===t.min?i:Math.min(t.min,i);t.max=null===t.max?n:Math.max(t.max,n)})}else{o.each(l,function(a,n){var l=i.getDatasetMeta(n);if(i.isDatasetVisible(n)&&e(l)){o.each(a.data,function(e,a){var o=+t.getRightValue(e);if(isNaN(o)||l.data[a].hidden){return}if(null===t.min){t.min=o}else if(o<t.min){t.min=o}if(null===t.max){t.max=o}else if(o>t.max){t.max=o}})}})}t.min=isFinite(t.min)&&!isNaN(t.min)?t.min:0;t.max=isFinite(t.max)&&!isNaN(t.max)?t.max:1;this.handleTickRangeOptions()},getTickLimit:function getTickLimit(){var e,t=this,i=t.options.ticks;if(t.isHorizontal()){e=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(t.width/50))}else{var n=o.valueOrDefault(i.fontSize,a.global.defaultFontSize);e=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(t.height/(2*n)))}return e},handleDirectionalChanges:function handleDirectionalChanges(){if(!this.isHorizontal()){this.ticks.reverse()}},getLabelForIndex:function getLabelForIndex(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForValue:function getPixelForValue(e){var t=this,a=t.start,o=+t.getRightValue(e),i,n=t.end-a;if(t.isHorizontal()){i=t.left+t.width/n*(o-a);return Math.round(i)}i=t.bottom-t.height/n*(o-a);return Math.round(i)},getValueForPixel:function getValueForPixel(e){var t=this,a=t.isHorizontal(),o=a?t.width:t.height,i=(a?e-t.left:t.bottom-e)/o;return t.start+(t.end-t.start)*i},getPixelForTick:function getPixelForTick(e){return this.getPixelForValue(this.ticksAsNumbers[e])}});e.scaleService.registerScaleType("linear",n,t)}},{25:25,34:34,45:45}],54:[function(e,t){'use strict';var a=e(45),o=e(34);t.exports=function(e){var t=a.noop;e.LinearScaleBase=e.Scale.extend({getRightValue:function getRightValue(t){if("string"==typeof t){return+t}return e.Scale.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function handleTickRangeOptions(){var e=this,t=e.options,o=t.ticks;if(o.beginAtZero){var i=a.sign(e.min),n=a.sign(e.max);if(0>i&&0>n){e.max=0}else if(0<i&&0<n){e.min=0}}var l=o.min!==void 0||o.suggestedMin!==void 0,s=o.max!==void 0||o.suggestedMax!==void 0;if(o.min!==void 0){e.min=o.min}else if(o.suggestedMin!==void 0){if(null===e.min){e.min=o.suggestedMin}else{e.min=Math.min(e.min,o.suggestedMin)}}if(o.max!==void 0){e.max=o.max}else if(o.suggestedMax!==void 0){if(null===e.max){e.max=o.suggestedMax}else{e.max=Math.max(e.max,o.suggestedMax)}}if(l!==s){if(e.min>=e.max){if(l){e.max=e.min+1}else{e.min=e.max-1}}}if(e.min===e.max){e.max++;if(!o.beginAtZero){e.min--}}},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function buildTicks(){var e=this,t=e.options,i=t.ticks,n=e.getTickLimit();n=Math.max(2,n);var l={maxTicks:n,min:i.min,max:i.max,stepSize:a.valueOrDefault(i.fixedStepSize,i.stepSize)},s=e.ticks=o.generators.linear(l,e);e.handleDirectionalChanges();e.max=a.max(s);e.min=a.min(s);if(i.reverse){s.reverse();e.start=e.max;e.end=e.min}else{e.start=e.min;e.end=e.max}},convertTicksToLabels:function convertTicksToLabels(){var t=this;t.ticksAsNumbers=t.ticks.slice();t.zeroLineIndex=t.ticks.indexOf(0);e.Scale.prototype.convertTicksToLabels.call(t)}})}},{34:34,45:45}],55:[function(e,t){'use strict';var a=e(45),o=e(34);t.exports=function(e){var t={position:"left",ticks:{callback:o.formatters.logarithmic}},i=e.Scale.extend({determineDataLimits:function determineDataLimits(){var t=this,o=t.options,i=o.ticks,n=t.chart,l=n.data,s=l.datasets,d=a.valueOrDefault,c=t.isHorizontal();function e(e){return c?e.xAxisID===t.id:e.yAxisID===t.id}t.min=null;t.max=null;t.minNotZero=null;var h=o.stacked;if(h===void 0){a.each(s,function(t,a){if(h){return}var o=n.getDatasetMeta(a);if(n.isDatasetVisible(a)&&e(o)&&o.stack!==void 0){h=!0}})}if(o.stacked||h){var u={};a.each(s,function(i,l){var s=n.getDatasetMeta(l),d=[s.type,o.stacked===void 0&&s.stack===void 0?l:"",s.stack].join(".");if(n.isDatasetVisible(l)&&e(s)){if(u[d]===void 0){u[d]=[]}a.each(i.data,function(e,a){var i=u[d],n=+t.getRightValue(e);if(isNaN(n)||s.data[a].hidden){return}i[a]=i[a]||0;if(o.relativePoints){i[a]=100}else{i[a]+=n}})}});a.each(u,function(e){var o=a.min(e),i=a.max(e);t.min=null===t.min?o:Math.min(t.min,o);t.max=null===t.max?i:Math.max(t.max,i)})}else{a.each(s,function(o,i){var l=n.getDatasetMeta(i);if(n.isDatasetVisible(i)&&e(l)){a.each(o.data,function(e,a){var o=+t.getRightValue(e);if(isNaN(o)||l.data[a].hidden){return}if(null===t.min){t.min=o}else if(o<t.min){t.min=o}if(null===t.max){t.max=o}else if(o>t.max){t.max=o}if(0!=o&&(null===t.minNotZero||o<t.minNotZero)){t.minNotZero=o}})}})}t.min=d(i.min,t.min);t.max=d(i.max,t.max);if(t.min===t.max){if(0!==t.min&&null!==t.min){t.min=Math.pow(10,Math.floor(a.log10(t.min))-1);t.max=Math.pow(10,Math.floor(a.log10(t.max))+1)}else{t.min=1;t.max=10}}},buildTicks:function buildTicks(){var e=this,t=e.options,i=t.ticks,n={min:i.min,max:i.max},l=e.ticks=o.generators.logarithmic(n,e);if(!e.isHorizontal()){l.reverse()}e.max=a.max(l);e.min=a.min(l);if(i.reverse){l.reverse();e.start=e.max;e.end=e.min}else{e.start=e.min;e.end=e.max}},convertTicksToLabels:function convertTicksToLabels(){this.tickValues=this.ticks.slice();e.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function getLabelForIndex(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForTick:function getPixelForTick(e){return this.getPixelForValue(this.tickValues[e])},getPixelForValue:function getPixelForValue(e){var t=this,o=t.start,i=+t.getRightValue(e),n=t.options,l=n.ticks,s,d,c;if(t.isHorizontal()){c=a.log10(t.end)-a.log10(o);if(0===i){d=t.left}else{s=t.width;d=t.left+s/c*(a.log10(i)-a.log10(o))}}else{s=t.height;if(0===o&&!l.reverse){c=a.log10(t.end)-a.log10(t.minNotZero);if(i===o){d=t.bottom}else if(i===t.minNotZero){d=t.bottom-.02*s}else{d=t.bottom-.02*s-.98*s/c*(a.log10(i)-a.log10(t.minNotZero))}}else if(0===t.end&&l.reverse){c=a.log10(t.start)-a.log10(t.minNotZero);if(i===t.end){d=t.top}else if(i===t.minNotZero){d=t.top+.02*s}else{d=t.top+.02*s+.98*s/c*(a.log10(i)-a.log10(t.minNotZero))}}else if(0===i){d=l.reverse?t.top:t.bottom}else{c=a.log10(t.end)-a.log10(o);s=t.height;d=t.bottom-s/c*(a.log10(i)-a.log10(o))}}return d},getValueForPixel:function getValueForPixel(e){var t=this,o=a.log10(t.end)-a.log10(t.start),i,n;if(t.isHorizontal()){n=t.width;i=t.start*Math.pow(10,(e-t.left)*o/n)}else{n=t.height;i=Math.pow(10,(t.bottom-e)*o/n)/t.start}return i}});e.scaleService.registerScaleType("logarithmic",i,t)}},{34:34,45:45}],56:[function(e,t){'use strict';var a=e(25),o=e(45),i=e(34);t.exports=function(e){var x=a.global,k={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:i.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function callback(e){return e}}};function t(e){var t=e.options;return t.angleLines.display||t.pointLabels.display?e.chart.data.labels.length:0}function n(e){var t=e.options.pointLabels,a=o.valueOrDefault(t.fontSize,x.defaultFontSize),i=o.valueOrDefault(t.fontStyle,x.defaultFontStyle),n=o.valueOrDefault(t.fontFamily,x.defaultFontFamily),l=o.fontString(a,i,n);return{size:a,style:i,family:n,font:l}}function l(e,t,a){if(o.isArray(a)){return{w:o.longestText(e,e.font,a),h:a.length*t+1.5*(a.length-1)*t}}return{w:e.measureText(a).width,h:t}}function s(e,t,a,o,i){if(e===o||e===i){return{start:t-a/2,end:t+a/2}}else if(e<o||e>i){return{start:t-a-5,end:t}}return{start:t,end:t+a+5}}function d(e){var a=n(e),d=Math.min(e.height/2,e.width/2),c={r:e.width,l:0,t:e.height,b:0},h={},u,m,p;e.ctx.font=a.font;e._pointLabelSizes=[];var f=t(e);for(u=0;u<f;u++){p=e.getPointPosition(u,d);m=l(e.ctx,a.size,e.pointLabels[u]||"");e._pointLabelSizes[u]=m;var y=e.getIndexAngle(u),x=o.toDegrees(y)%360,k=s(x,p.x,m.w,0,180),_=s(x,p.y,m.h,90,270);if(k.start<c.l){c.l=k.start;h.l=y}if(k.end>c.r){c.r=k.end;h.r=y}if(_.start<c.t){c.t=_.start;h.t=y}if(_.end>c.b){c.b=_.end;h.b=y}}e.setReductions(d,c,h)}function c(e){var t=Math.min(e.height/2,e.width/2);e.drawingArea=Math.round(t);e.setCenterPoint(0,0,0,0)}function h(e){if(0===e||180===e){return"center"}else if(180>e){return"left"}return"right"}function u(e,t,a,n){if(o.isArray(t)){for(var l=a.y,s=0;s<t.length;++s){e.fillText(t[s],a.x,l);l+=1.5*n}}else{e.fillText(t,a.x,a.y)}}function m(e,t,a){if(90===e||270===e){a.y-=t.h/2}else if(270<e||90>e){a.y-=t.h}}function p(e){var a=e.ctx,l=o.valueOrDefault,s=e.options,d=s.angleLines,c=s.pointLabels;a.lineWidth=d.lineWidth;a.strokeStyle=d.color;var p=e.getDistanceFromCenterForValue(s.ticks.reverse?e.min:e.max),f=n(e);a.textBaseline="top";for(var y=t(e)-1;0<=y;y--){if(d.display){var k=e.getPointPosition(y,p);a.beginPath();a.moveTo(e.xCenter,e.yCenter);a.lineTo(k.x,k.y);a.stroke();a.closePath()}if(c.display){var _=e.getPointPosition(y,p+5),v=l(c.fontColor,x.defaultFontColor);a.font=f.font;a.fillStyle=v;var S=e.getIndexAngle(y),w=o.toDegrees(S);a.textAlign=h(w);m(w,e._pointLabelSizes[y],_);u(a,e.pointLabels[y]||"",_,f.size)}}}function f(e,a,n,l){var s=e.ctx;s.strokeStyle=o.valueAtIndexOrDefault(a.color,l-1);s.lineWidth=o.valueAtIndexOrDefault(a.lineWidth,l-1);if(e.options.gridLines.circular){s.beginPath();s.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);s.closePath();s.stroke()}else{var d=t(e);if(0===d){return}s.beginPath();var c=e.getPointPosition(0,n);s.moveTo(c.x,c.y);for(var h=1;h<d;h++){c=e.getPointPosition(h,n);s.lineTo(c.x,c.y)}s.closePath();s.stroke()}}function y(e){return o.isNumber(e)?e:0}var _=e.LinearScaleBase.extend({setDimensions:function setDimensions(){var e=this,t=e.options,a=t.ticks;e.width=e.maxWidth;e.height=e.maxHeight;e.xCenter=Math.round(e.width/2);e.yCenter=Math.round(e.height/2);var i=o.min([e.height,e.width]),n=o.valueOrDefault(a.fontSize,x.defaultFontSize);e.drawingArea=t.display?i/2-(n/2+a.backdropPaddingY):i/2},determineDataLimits:function determineDataLimits(){var e=this,t=e.chart,a=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;o.each(t.data.datasets,function(n,l){if(t.isDatasetVisible(l)){var s=t.getDatasetMeta(l);o.each(n.data,function(t,o){var n=+e.getRightValue(t);if(isNaN(n)||s.data[o].hidden){return}a=Math.min(n,a);i=Math.max(n,i)})}});e.min=a===Number.POSITIVE_INFINITY?0:a;e.max=i===Number.NEGATIVE_INFINITY?0:i;e.handleTickRangeOptions()},getTickLimit:function getTickLimit(){var e=this.options.ticks,t=o.valueOrDefault(e.fontSize,x.defaultFontSize);return Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*t)))},convertTicksToLabels:function convertTicksToLabels(){var t=this;e.LinearScaleBase.prototype.convertTicksToLabels.call(t);t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function getLabelForIndex(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function fit(){if(this.options.pointLabels.display){d(this)}else{c(this)}},setReductions:function setReductions(e,t,a){var o=this,i=t.l/Math.sin(a.l),n=Math.max(t.r-o.width,0)/Math.sin(a.r),l=-t.t/Math.cos(a.t),s=-Math.max(t.b-o.height,0)/Math.cos(a.b);i=y(i);n=y(n);l=y(l);s=y(s);o.drawingArea=Math.min(Math.round(e-(i+n)/2),Math.round(e-(l+s)/2));o.setCenterPoint(i,n,l,s)},setCenterPoint:function setCenterPoint(e,t,a,o){var i=this,n=i.width-t-i.drawingArea,l=e+i.drawingArea,s=a+i.drawingArea,d=i.height-o-i.drawingArea;i.xCenter=Math.round((l+n)/2+i.left);i.yCenter=Math.round((s+d)/2+i.top)},getIndexAngle:function getIndexAngle(e){var a=2*Math.PI/t(this),o=this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0,i=2*(o*Math.PI)/360;return e*a+i},getDistanceFromCenterForValue:function getDistanceFromCenterForValue(e){var t=this;if(null===e){return 0}var a=t.drawingArea/(t.max-t.min);if(t.options.ticks.reverse){return(t.max-e)*a}return(e-t.min)*a},getPointPosition:function getPointPosition(e,t){var a=this,o=a.getIndexAngle(e)-Math.PI/2;return{x:Math.round(Math.cos(o)*t)+a.xCenter,y:Math.round(Math.sin(o)*t)+a.yCenter}},getPointPositionForValue:function getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function getBasePosition(){var e=this,t=e.min,a=e.max;return e.getPointPositionForValue(0,e.beginAtZero?0:0>t&&0>a?a:0<t&&0<a?t:0)},draw:function draw(){var e=this,t=e.options,a=t.gridLines,i=t.ticks,n=o.valueOrDefault;if(t.display){var l=e.ctx,s=this.getIndexAngle(0),d=n(i.fontSize,x.defaultFontSize),c=n(i.fontStyle,x.defaultFontStyle),h=n(i.fontFamily,x.defaultFontFamily),u=o.fontString(d,c,h);o.each(e.ticks,function(t,o){if(0<o||i.reverse){var c=e.getDistanceFromCenterForValue(e.ticksAsNumbers[o]);if(a.display&&0!==o){f(e,a,c,o)}if(i.display){var h=n(i.fontColor,x.defaultFontColor);l.font=u;l.save();l.translate(e.xCenter,e.yCenter);l.rotate(s);if(i.showLabelBackdrop){var m=l.measureText(t).width;l.fillStyle=i.backdropColor;l.fillRect(-m/2-i.backdropPaddingX,-c-d/2-i.backdropPaddingY,m+2*i.backdropPaddingX,d+2*i.backdropPaddingY)}l.textAlign="center";l.textBaseline="middle";l.fillStyle=h;l.fillText(t,0,-c);l.restore()}}});if(t.angleLines.display||t.pointLabels.display){p(e)}}}});e.scaleService.registerScaleType("radialLinear",_,k)}},{25:25,34:34,45:45}],57:[function(e,t){'use strict';var x=e(6);x="function"==typeof x?x:window.moment;var k=e(25),_=e(45),v=Number.MIN_SAFE_INTEGER||-9007199254740991,S=Number.MAX_SAFE_INTEGER||9007199254740991,w={millisecond:{major:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{major:!0,size:1e3,steps:[1,2,5,10,30]},minute:{major:!0,size:6e4,steps:[1,2,5,10,30]},hour:{major:!0,size:36e5,steps:[1,2,3,6,12]},day:{major:!0,size:864e5,steps:[1,2,5]},week:{major:!1,size:6048e5,steps:[1,2,3,4]},month:{major:!0,size:2628e6,steps:[1,2,3]},quarter:{major:!1,size:7884e6,steps:[1,2,3,4]},year:{major:!0,size:3154e7}},D=Object.keys(w);function a(e,t){return e-t}function o(e){var t={},a=[],o,n,l;for(o=0,n=e.length;o<n;++o){l=e[o];if(!t[l]){t[l]=!0;a.push(l)}}return a}function n(e,t,a,o){if("linear"===o||!e.length){return[{time:t,pos:0},{time:a,pos:1}]}var n=[],l=[t],s,d,c,h,u;for(s=0,d=e.length;s<d;++s){h=e[s];if(h>t&&h<a){l.push(h)}}l.push(a);for(s=0,d=l.length;s<d;++s){u=l[s+1];c=l[s-1];h=l[s];if(c===void 0||u===void 0||Math.round((u+c)/2)!==h){n.push({time:h,pos:s/(d-1)})}}return n}function l(e,t,a){var o=0,i=e.length-1,n,l,s;while(0<=o&&o<=i){n=o+i>>1;l=e[n-1]||null;s=e[n];if(!l){return{lo:null,hi:s}}else if(s[t]<a){o=n+1}else if(l[t]>a){i=n-1}else{return{lo:l,hi:s}}}return{lo:s,hi:null}}function s(e,t,a,o){var i=l(e,t,a),n=!i.lo?e[0]:!i.hi?e[e.length-2]:i.lo,s=!i.lo?e[1]:!i.hi?e[e.length-1]:i.hi,d=s[t]-n[t],c=d?(a-n[t])/d:0,h=(s[o]-n[o])*c;return n[o]+h}function d(e,t){var a=t.parser,o=t.parser||t.format;if("function"==typeof a){return a(e)}if("string"==typeof e&&"string"==typeof o){return x(e,o)}if(!(e instanceof x)){e=x(e)}if(e.isValid()){return e}if("function"==typeof o){return o(e)}return e}function c(e,t){if(_.isNullOrUndef(e)){return null}var a=t.options.time,o=d(t.getRightValue(e),a);if(!o.isValid()){return null}if(a.round){o.startOf(a.round)}return o.valueOf()}function h(e,t,a,o){var n=t-e,l=w[a],s=l.size,d=l.steps,c,h,u;if(!d){return Math.ceil(n/((o||1)*s))}for(c=0,h=d.length;c<h;++c){u=d[c];if(Math.ceil(n/(s*u))<=o){break}}return u}function u(e,t,a,o){var n=D.length,l,s,d;for(l=D.indexOf(e);l<n-1;++l){s=w[D[l]];d=s.steps?s.steps[s.steps.length-1]:S;if(Math.ceil((a-t)/(d*s.size))<=o){return D[l]}}return D[n-1]}function m(e){for(var t=D.indexOf(e)+1,a=D.length;t<a;++t){if(w[D[t]].major){return D[t]}}}function p(e,t,a,o,i,n){var l=n.time,s=_.valueOrDefault(l.stepSize,l.unitStepSize),d="week"===a?l.isoWeekday:!1,c=n.ticks.major.enabled,u=w[a],m=x(e),p=x(t),f=[],y;if(!s){s=h(e,t,a,i)}if(d){m=m.isoWeekday(d);p=p.isoWeekday(d)}m=m.startOf(d?"day":a);p=p.startOf(d?"day":a);if(p<t){p.add(1,a)}y=x(m);if(c&&o&&!d&&!l.round){y.startOf(o);y.add(~~((m-y)/(u.size*s))*s,a)}for(;y<p;y.add(s,a)){f.push(+y)}f.push(+y);return f}function f(e,t,a,o,i){var n=0,l=0,d,c;if(i.offset&&t.length){if(!i.time.min){d=1<t.length?t[1]:o;c=t[0];n=(s(e,"time",d,"pos")-s(e,"time",c,"pos"))/2}if(!i.time.max){d=t[t.length-1];c=1<t.length?t[t.length-2]:a;l=(s(e,"time",d,"pos")-s(e,"time",c,"pos"))/2}}return{left:n,right:l}}function y(e,t){var a=[],o,n,l,s;for(o=0,n=e.length;o<n;++o){l=e[o];s=t?l===+x(l).startOf(t):!1;a.push({value:l,major:s})}return a}t.exports=function(e){var t=e.Scale.extend({initialize:function initialize(){if(!x){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")}this.mergeTicksOptions();e.Scale.prototype.initialize.call(this)},update:function update(){var t=this,a=t.options;if(a.time&&a.time.format){console.warn("options.time.format is deprecated and replaced by options.time.parser.")}return e.Scale.prototype.update.apply(t,arguments)},getRightValue:function getRightValue(t){if(t&&t.t!==void 0){t=t.t}return e.Scale.prototype.getRightValue.call(this,t)},determineDataLimits:function determineDataLimits(){var e=this,t=e.chart,n=e.options.time,l=c(n.min,e)||S,s=c(n.max,e)||v,d=[],h=[],u=[],m,p,f,y,k,w;for(m=0,f=t.data.labels.length;m<f;++m){u.push(c(t.data.labels[m],e))}for(m=0,f=(t.data.datasets||[]).length;m<f;++m){if(t.isDatasetVisible(m)){k=t.data.datasets[m].data;if(_.isObject(k[0])){h[m]=[];for(p=0,y=k.length;p<y;++p){w=c(k[p],e);d.push(w);h[m][p]=w}}else{d.push.apply(d,u);h[m]=u.slice(0)}}else{h[m]=[]}}if(u.length){u=o(u).sort(a);l=Math.min(l,u[0]);s=Math.max(s,u[u.length-1])}if(d.length){d=o(d).sort(a);l=Math.min(l,d[0]);s=Math.max(s,d[d.length-1])}l=l===S?+x().startOf("day"):l;s=s===v?+x().endOf("day")+1:s;e.min=Math.min(l,s);e.max=Math.max(l+1,s);e._horizontal=e.isHorizontal();e._table=[];e._timestamps={data:d,datasets:h,labels:u}},buildTicks:function buildTicks(){var e=this,t=e.min,a=e.max,o=e.options,l=o.time,s=l.displayFormats,d=e.getLabelCapacity(t),h=l.unit||u(l.minUnit,t,a,d),x=m(h),k=[],_=[],v,S,w;switch(o.ticks.source){case"data":k=e._timestamps.data;break;case"labels":k=e._timestamps.labels;break;case"auto":default:k=p(t,a,h,x,d,o);}if("ticks"===o.bounds&&k.length){t=k[0];a=k[k.length-1]}t=c(l.min,e)||t;a=c(l.max,e)||a;for(v=0,S=k.length;v<S;++v){w=k[v];if(w>=t&&w<=a){_.push(w)}}e.min=t;e.max=a;e._unit=h;e._majorUnit=x;e._minorFormat=s[h];e._majorFormat=s[x];e._table=n(e._timestamps.data,t,a,o.distribution);e._offsets=f(e._table,_,t,a,o);return y(_,x)},getLabelForIndex:function getLabelForIndex(e,t){var a=this,o=a.chart.data,i=a.options.time,n=o.labels&&e<o.labels.length?o.labels[e]:"",l=o.datasets[t].data[e];if(_.isObject(l)){n=a.getRightValue(l)}if(i.tooltipFormat){n=d(n,i).format(i.tooltipFormat)}return n},tickFormatFunction:function tickFormatFunction(e,t,a){var o=this,i=o.options,n=e.valueOf(),l=o._majorUnit,s=o._majorFormat,d=e.clone().startOf(o._majorUnit).valueOf(),c=i.ticks.major,h=c.enabled&&l&&s&&n===d,u=e.format(h?s:o._minorFormat),m=h?c:i.ticks.minor,p=_.valueOrDefault(m.callback,m.userCallback);return p?p(u,t,a):u},convertTicksToLabels:function convertTicksToLabels(e){var t=[],a,o;for(a=0,o=e.length;a<o;++a){t.push(this.tickFormatFunction(x(e[a].value),a,e))}return t},getPixelForOffset:function getPixelForOffset(e){var t=this,a=t._horizontal?t.width:t.height,o=t._horizontal?t.left:t.top,i=s(t._table,"time",e,"pos");return o+a*(t._offsets.left+i)/(t._offsets.left+1+t._offsets.right)},getPixelForValue:function getPixelForValue(e,t,a){var o=this,i=null;if(t!==void 0&&a!==void 0){i=o._timestamps.datasets[a][t]}if(null===i){i=c(e,o)}if(null!==i){return o.getPixelForOffset(i)}},getPixelForTick:function getPixelForTick(e){var t=this.getTicks();return 0<=e&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function getValueForPixel(e){var t=this,a=t._horizontal?t.width:t.height,o=t._horizontal?t.left:t.top,i=(a?(e-o)/a:0)*(t._offsets.left+1+t._offsets.left)-t._offsets.right,n=s(t._table,"pos",i,"time");return x(n)},getLabelWidth:function getLabelWidth(e){var t=this,a=t.options.ticks,o=t.ctx.measureText(e).width,i=_.toRadians(a.maxRotation),n=Math.cos(i),l=Math.sin(i),s=_.valueOrDefault(a.fontSize,k.global.defaultFontSize);return o*n+s*l},getLabelCapacity:function getLabelCapacity(e){var t=this;t._minorFormat=t.options.time.displayFormats.millisecond;var a=t.tickFormatFunction(x(e),0,[]),o=t.getLabelWidth(a),i=t.isHorizontal()?t.width:t.height;return Math.floor(i/o)}});e.scaleService.registerScaleType("time",t,{position:"bottom",distribution:"linear",bounds:"data",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 a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}})}},{25:25,45:45,6:6}]},{},[7])(7)}); //# sourceMappingURL=chartjs-lazy.min.js.map