!functiont(e,i,a){functions(n,r){if(!i[n]){if(!e[n]){varl="function"==typeofrequire&&require;if(!r&&l)returnl(n,!0);if(o)returno(n,!0);varh=newError("Cannot find module '"+n+"'");throwh.code="MODULE_NOT_FOUND",h}varc=i[n]={exports:{}};e[n][0].call(c.exports,function(t){vari=e[n][1][t];returns(i?i:t)},c,c.exports,t,e,i,a)}returni[n].exports}for(varo="function"==typeofrequire&&require,n=0;n<a.length;n++)s(a[n]);returns}({1:[function(t,e,i){},{}],2:[function(t,e,i){vara=t("color-convert"),s=t("color-string"),o=function(t){if(tinstanceofo)returnt;if(!(thisinstanceofo))returnnewo(t);if(this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},"string"==typeoft){vare=s.getRgba(t);if(e)this.setValues("rgb",e);elseif(e=s.getHsla(t))this.setValues("hsl",e);else{if(!(e=s.getHwb(t)))thrownewError('Unable to parse color from string "'+t+'"');this.setValues("hwb",e)}}elseif("object"==typeoft){vare=t;if(void0!==e.r||void0!==e.red)this.setValues("rgb",e);elseif(void0!==e.l||void0!==e.lightness)this.setValues("hsl",e);elseif(void0!==e.v||void0!==e.value)this.setValues("hsv",e);elseif(void0!==e.w||void0!==e.whiteness)this.setValues("hwb",e);else{if(void0===e.c&&void0===e.cyan)thrownewError("Unable to parse color from object "+JSON.stringify(t));this.setValues("cmyk",e)}}};o.prototype={rgb:function(t){returnthis.setSpace("rgb",arguments)},hsl:function(t){returnthis.setSpace("hsl",arguments)},hsv:function(t){returnthis.setSpace("hsv",arguments)},hwb:function(t){returnthis.setSpace("hwb",arguments)},cmyk:function(t){returnthis.setSpace("cmyk",arguments)},rgbArray:function(){returnthis.values.rgb},hslArray:function(){returnthis.values.hsl},hsvArray:function(){returnthis.values.hsv},hwbArray:function(){return1!==this.values.alpha?this.values.hwb.concat([this.values.alpha]):this.values.hwb},cmykArray:function(){returnthis.values.cmyk},rgbaArray:function(){vart=this.values.rgb;returnt.concat([this.values.alpha])},hslaArray:function(){vart=this.values.hsl;returnt.concat([this.values.alpha])},alpha:function(t){returnvoid0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){returnthis.setChannel("rgb",0,t)},green:function(t){returnthis.setChannel("rgb",1,t)},blue:function(t){returnthis.setChannel("rgb",2,t)},hue:function(t){returnthis.setChannel("hsl",0,t)},saturation:function(t){returnthis.setChannel("hsl",1,t)},lightness:function(t){returnthis.setChannel("hsl",2,t)},saturationv:function(t){returnthis.setChannel("hsv",1,t)},whiteness:function(t){returnthis.setChannel("hwb",1,t)},blackness:function(t){returnthis.setChannel("hwb",2,t)},value:function(t){returnthis.setChannel("hsv",2,t)},cyan:function(t){returnthis.setChannel("cmyk",0,t)},magenta:function(t){returnthis.setChannel("cmyk",1,t)},yellow:function(t){returnthis.setChannel("cmyk",2,t)},black:function(t){returnthis.setChannel("cmyk",3,t)},hexString:function(){returns.hexString(this.values.rgb)},rgbString:function(){returns.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){returns.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){returns.percentString(this.values.rgb,this.values.alpha)},hslString:function(){returns.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){returns.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){returns.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){returns.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){returnthis.values.rgb[0]<<16|this.values.rgb[1]<<8|this.values.rgb[2]},luminosity:function(){for(vart=this.values.rgb,e=[],i=0;i<t.length;i++){vara=t[i]/255;e[i]=.03928>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){vare=this.luminosity(),i=t.luminosity();returne>i?(e+.05)/(i+.05):(i+.05)/(e+.05)},level:function(t){vare=this.contrast(t);returne>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){vart=this.values.rgb,e=(299*t[0]+587*t[1]+114*t[2])/1e3;return128>e},light:func
for(vard=0,u=i.units[d];d<i.units.length;){if(this.unitScale=1,e.isArray(u.steps)&&Math.ceil(this.scaleSizeInUnits/c)<e.max(u.steps)){for(varg=0;g<u.steps.length;++g)if(u.steps[g]>Math.ceil(this.scaleSizeInUnits/c)){this.unitScale=e.getValueOrDefault(this.options.time.unitStepSize,u.steps[g]);break}break}if(u.maxStep===!1||Math.ceil(this.scaleSizeInUnits/c)<u.maxStep){this.unitScale=e.getValueOrDefault(this.options.time.unitStepSize,Math.ceil(this.scaleSizeInUnits/c));break}++d,u=i.units[d],this.tickUnit=u.name,this.scaleSizeInUnits=this.lastTick.diff(this.firstTick,this.tickUnit,!0),this.displayFormat=this.options.time.displayFormats[u.name]}}varf;this.options.time.min?f=this.firstTick.clone().startOf(this.tickUnit):(this.firstTick.startOf(this.tickUnit),f=this.firstTick),this.options.time.max||this.lastTick.endOf(this.tickUnit),this.smallestLabelSeparation=this.width,e.each(this.chart.data.datasets,function(t,e){for(vari=1;i<this.labelMoments[e].length;i++)this.smallestLabelSeparation=Math.min(this.smallestLabelSeparation,this.labelMoments[e][i].diff(this.labelMoments[e][i-1],this.tickUnit,!0))},this),this.options.time.displayFormat&&(this.displayFormat=this.options.time.displayFormat),this.ticks.push(this.firstTick.clone());for(varm=1;m<this.scaleSizeInUnits;++m){varp=f.clone().add(m,this.tickUnit);if(this.options.time.max&&p.diff(this.lastTick,this.tickUnit,!0)>=0)break;m%this.unitScale===0&&this.ticks.push(p)}(0!==this.ticks[this.ticks.length-1].diff(this.lastTick,this.tickUnit)||0===this.scaleSizeInUnits)&&(this.options.time.max?(this.ticks.push(this.lastTick.clone()),this.scaleSizeInUnits=this.lastTick.diff(this.ticks[0],this.tickUnit,!0)):(this.scaleSizeInUnits=Math.ceil(this.scaleSizeInUnits/this.unitScale)*this.unitScale,this.ticks.push(this.firstTick.clone().add(this.scaleSizeInUnits,this.tickUnit)),this.lastTick=this.ticks[this.ticks.length-1].clone()))},getLabelForIndex:function(t,e){vari=this.chart.data.labels&&t<this.chart.data.labels.length?this.chart.data.labels[t]:"";return"object"==typeofthis.chart.data.datasets[e].data[0]&&(i=this.getRightValue(this.chart.data.datasets[e].data[t])),this.options.time.tooltipFormat&&(i=this.parseTime(i).format(this.options.time.tooltipFormat)),i},tickFormatFunction:function(t,e,i){vara=t.format(this.displayFormat);returnthis.options.ticks.userCallback?this.options.ticks.userCallback(a,e,i):a},convertTicksToLabels:function(){this.ticks=this.ticks.map(this.tickFormatFunction,this)},getPixelForValue:function(t,e,i,a){vars=this.getLabelMoment(i,e);if(s){varo=s.diff(this.firstTick,this.tickUnit,!0),n=o/this.scaleSizeInUnits;if(this.isHorizontal()){varr=this.width-(this.paddingLeft+this.paddingRight),l=(r/Math.max(this.ticks.length-1,1),r*n+this.paddingLeft);returnthis.left+Math.round(l)}varh=this.height-(this.paddingTop+this.paddingBottom),c=(h/Math.max(this.ticks.length-1,1),h*n+this.paddingTop);returnthis.top+Math.round(c)}},parseTime:function(t){return"string"==typeofthis.options.time.parser?a(t,this.options.time.parser):"function"==typeofthis.options.time.parser?this.options.time.parser(t):"function"==typeoft.getMonth||"number"==typeoft?a(t):t.isValid&&t.isValid()?t:"string"!=typeofthis.options.time.format&&this.options.time.format.call?(console.warn("options.time.format is deprecated and replaced by options.time.parser. See http://nnnick.github.io/Chart.js/docs-v2/#scales-time-scale"),this.options.time.format(t)):a(t,this.options.time.format)}});t.scaleService.registerScaleType("time",o,s)}},{moment:1}]},{},[7]);