text: /*!
   * Chart.js v2.9.3
   * https://www.chartjs.org
   * (c) 2019 Chart.js Contributors
   * Released under the MIT License
   */
  (function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(n=n||self,n.Chart=t())})(this,function(){"use strict";function eh(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs");}function ue(n,t){return t={exports:{}},n(t,t.exports),t.exports}function oh(n){return n&&n["default"]||n}function sh(){for(var t={},i=Object.keys(f),r=i.length,n=0;n<r;n++)t[i[n]]={distance:-1,parent:null};return t}function hh(n){var t=sh(),e=[n],i,o,h,r,s,u;for(t[n].distance=0;e.length;)for(i=e.pop(),o=Object.keys(f[i]),h=o.length,r=0;r<h;r++)s=o[r],u=t[s],u.distance===-1&&(u.distance=t[i].distance+1,u.parent=i,e.unshift(s));return t}function ch(n,t){return function(i){return t(n(i))}}function lh(n,t){for(var u=[t[n].parent,n],r=f[t[n].parent][n],i=t[n].parent;t[i].parent;)u.unshift(t[i].parent),r=ch(f[t[i].parent][i],r),i=t[i].parent;return r.conversion=u,r}function yh(n){var t=function(t){return t===undefined||t===null?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),n(t))};return"conversion"in n&&(t.conversion=n.conversion),t}function ph(n){var t=function(t){var i,u,r;if(t===undefined||t===null)return t;if(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),i=n(t),typeof i=="object")for(u=i.length,r=0;r<u;r++)i[r]=Math.round(i[r]);return i};return"conversion"in n&&(t.conversion=n.conversion),t}function nu(n){var t;if(n){var r=[0,0,0],u=1,i=n.match(/^#([a-fA-F0-9]{3,4})$/i),f="";if(i){for(i=i[1],f=i[3],t=0;t<r.length;t++)r[t]=parseInt(i[t]+i[t],16);f&&(u=Math.round(parseInt(f+f,16)/255*100)/100)}else if(i=n.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(f=i[2],i=i[1],t=0;t<r.length;t++)r[t]=parseInt(i.slice(t*2,t*2+2),16);f&&(u=Math.round(parseInt(f,16)/255*100)/100)}else if(i=n.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(t=0;t<r.length;t++)r[t]=parseInt(i[t+1]);u=parseFloat(i[4])}else if(i=n.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(t=0;t<r.length;t++)r[t]=Math.round(parseFloat(i[t+1])*2.55);u=parseFloat(i[4])}else if(i=n.match(/(\w+)/)){if(i[1]=="transparent")return[0,0,0,0];if(r=gr[i[1]],!r)return}for(t=0;t<r.length;t++)r[t]=g(r[t],0,255);return u=u||u==0?g(u,0,1):1,r[3]=u,r}}function tu(n){var i,t;if(n&&(i=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,t=n.match(i),t)){var r=parseFloat(t[4]),u=g(parseInt(t[1]),0,360),f=g(parseFloat(t[2]),0,100),e=g(parseFloat(t[3]),0,100),o=g(isNaN(r)?1:r,0,1);return[u,f,e,o]}}function fe(n){var i,t;if(n&&(i=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,t=n.match(i),t)){var r=parseFloat(t[4]),u=g(parseInt(t[1]),0,360),f=g(parseFloat(t[2]),0,100),e=g(parseFloat(t[3]),0,100),o=g(isNaN(r)?1:r,0,1);return[u,f,e,o]}}function bh(n){var t=nu(n);return t&&t.slice(0,3)}function kh(n){var t=tu(n);return t&&t.slice(0,3)}function dh(n){var t=nu(n);return t?t[3]:(t=tu(n))||(t=fe(n))?t[3]:void 0}function gh(n,t){var t=t!==undefined&&n.length===3?t:n[3];return"#"+gi(n[0])+gi(n[1])+gi(n[2])+(t>=0&&t<1?gi(Math.round(t*255)):"")}function nc(n,t){return t<1||n[3]&&n[3]<1?ee(n,t):"rgb("+n[0]+", "+n[1]+", "+n[2]+")"}function ee(n,t){return t===undefined&&(t=n[3]!==undefined?n[3]:1),"rgba("+n[0]+", "+n[1]+", "+n[2]+", "+t+")"}function tc(n,t){if(t<1||n[3]&&n[3]<1)return oe(n,t);var i=Math.round(n[0]/255*100),r=Math.round(n[1]/255*100),u=Math.round(n[2]/255*100);return"rgb("+i+"%, "+r+"%, "+u+"%)"}function oe(n,t){var i=Math.round(n[0]/255*100),r=Math.round(n[1]/255*100),u=Math.round(n[2]/255*100);return"rgba("+i+"%, "+r+"%, "+u+"%, "+(t||n[3]||1)+")"}function ic(n,t){return t<1||n[3]&&n[3]<1?se(n,t):"hsl("+n[0]+", "+n[1]+"%, "+n[2]+"%)"}function se(n,t){return t===undefined&&(t=n[3]!==undefined?n[3]:1),"hsla("+n[0]+", "+n[1]+"%, "+n[2]+"%, "+t+")"}function rc(n,t){return t===undefined&&(t=n[3]!==undefined?n[3]:1),"hwb("+n[0]+", "+n[1]+"%, "+n[2]+"%"+(t!==undefined&&t!==1?", "+t:"")+")"}function uc(n){return iu[n.slice(0,3)]}function g(n,t,i){return Math.min(Math.max(t,n),i)}function gi(n){var t=n.toString(16).toUpperCase();return t.length<2?"0"+t:t}function sc(n){return!n||y.isNullOrUndef(n.size)||y.isNullOrUndef(n.family)?null:(n.style?n.style+" ":"")+(n.weight?n.weight+" ":"")+n.size+"px "+n.family}function tl(t,i,r,u){for(var v=Object.keys(r),f,h,o,e,c,l,a,s=0,y=v.length;s<y;++s)if(f=v[s],e=r[f],i.hasOwnProperty(f)||(i[f]=e),h=i[f],h!==e&&f[0]!=="_"){if(t.hasOwnProperty(f)||(t[f]=h),o=t[f],c=typeof e,c===typeof o)if(c==="string"){if(l=nr(o),l.valid&&(a=nr(e),a.valid)){i[f]=a.mix(l,u).rgbString();continue}}else if(n.isFinite(o)&&n.isFinite(e)){i[f]=o+(e-o)*u;continue}i[f]=e}}function il(t,i){if(t._chartjs){t._chartjs.listeners.push(i);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[i]}});ae.forEach(function(i){var r="onData"+i.charAt(0).toUpperCase()+i.slice(1),u=t[i];Object.defineProperty(t,i,{configurable:!0,enumerable:!1,value:function(){var i=Array.prototype.slice.call(arguments),f=u.apply(this,i);return n.each(t._chartjs.listeners,function(n){typeof n[r]=="function"&&n[r].apply(n,i)}),f}})})}function ve(n,t){var u=n._chartjs,i,r;u&&((i=u.listeners,r=i.indexOf(t),r!==-1&&i.splice(r,1),i.length>0)||(ae.forEach(function(t){delete n[t]}),delete n._chartjs))}function ye(n,t){var u=t.startAngle,f=t.endAngle,i=t.pixelMargin,r=i/t.outerRadius,e=t.x,o=t.y;n.beginPath();n.arc(e,o,t.outerRadius,u-r,f+r);t.innerRadius>i?(r=i/t.innerRadius,n.arc(e,o,t.innerRadius-i,f+r,u-r,!0)):n.arc(e,o,i,f+Math.PI/2,u-Math.PI/2);n.closePath();n.clip()}function rl(n,t,i,r){var f=i.endAngle,u;for(r&&(i.endAngle=i.startAngle+k,ye(n,i),i.endAngle=f,i.endAngle===i.startAngle&&i.fullCircles&&(i.endAngle+=k,i.fullCircles--)),n.beginPath(),n.arc(i.x,i.y,i.innerRadius,i.startAngle+k,i.startAngle,!0),u=0;u<i.fullCircles;++u)n.stroke();for(n.beginPath(),n.arc(i.x,i.y,t.outerRadius,i.startAngle,i.startAngle+k),u=0;u<i.fullCircles;++u)n.stroke()}function ul(n,t,i){var r=t.borderAlign==="inner";r?(n.lineWidth=t.borderWidth*2,n.lineJoin="round"):(n.lineWidth=t.borderWidth,n.lineJoin="bevel");i.fullCircles&&rl(n,t,i,r);r&&ye(n,i);n.beginPath();n.arc(i.x,i.y,t.outerRadius,i.startAngle,i.endAngle);n.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0);n.closePath();n.stroke()}function ke(n){var t=this._view;return t?Math.abs(n-t.x)<t.radius+t.hitRadius:!1}function sl(n){var t=this._view;return t?Math.abs(n-t.y)<t.radius+t.hitRadius:!1}function ur(n){return n&&n.width!==undefined}function ge(n){var i,r,u,f,t;return ur(n)?(t=n.width/2,i=n.x-t,r=n.x+t,u=Math.min(n.y,n.base),f=Math.max(n.y,n.base)):(t=n.height/2,i=Math.min(n.x,n.base),r=Math.max(n.x,n.base),u=n.y-t,f=n.y+t),{left:i,top:u,right:r,bottom:f}}function no(n,t,i){return n===t?i:n===i?t:n}function hl(n){var t=n.borderSkipped,i={};return t?(n.horizontal?n.base>n.x&&(t=no(t,"left","right")):n.base<n.y&&(t=no(t,"bottom","top")),i[t]=!0,i):i}function cl(t,i,r){var u=t.borderWidth,h=hl(t),f,e,o,s;return n.isObject(u)?(f=+u.top||0,e=+u.right||0,o=+u.bottom||0,s=+u.left||0):f=e=o=s=+u||0,{t:h.top||f<0?0:f>r?r:f,r:h.right||e<0?0:e>i?i:e,b:h.bottom||o<0?0:o>r?r:o,l:h.left||s<0?0:s>i?i:s}}function ll(n){var t=ge(n),r=t.right-t.left,u=t.bottom-t.top,i=cl(n,r/2,u/2);return{outer:{x:t.left,y:t.top,w:r,h:u},inner:{x:t.left+i.l,y:t.top+i.t,w:r-i.l-i.r,h:u-i.t-i.b}}}function li(n,t,i){var u=t===null,f=i===null,r=!n||u&&f?!1:ge(n);return r&&(u||t>=r.left&&t<=r.right)&&(f||i>=r.top&&i<=r.bottom)}function bl(n,t){for(var r=n._length,e,f,i=1,u=t.length;i<u;++i)r=Math.min(r,Math.abs(t[i]-t[i-1]));for(i=0,u=n.getTicks().length;i<u;++i)f=n.getPixelForTick(i),r=i>0?Math.min(r,Math.abs(f-e)):r,e=f;return r}function kl(t,i,r){var f=r.barThickness,o=i.stackCount,s=i.pixels[t],h=n.isNullOrUndef(f)?bl(i.scale,i.pixels):-1,u,e;return n.isNullOrUndef(f)?(u=h*r.categoryPercentage,e=r.barPercentage):(u=f*o,e=1),{chunk:u/o,ratio:e,start:s-u/2}}function dl(n,t,i){var e=t.pixels,r=e[n],f=n>0?e[n-1]:null,u=n<e.length-1?e[n+1]:null,o=i.categoryPercentage,s,h;return f===null&&(f=r-(u===null?t.end-t.start:u-r)),u===null&&(u=r+r-f),s=r-(r-Math.min(f,u))/2*o,h=Math.abs(u-f)/2*o,{chunk:h/t.stackCount,ratio:i.barPercentage,start:s}}function io(n,t){var i=n&&n.options.ticks||{},r=i.reverse,u=i.min===undefined?t:0,f=i.max===undefined?t:0;return{start:r?f:u,end:r?u:f}}function ra(n,t,i){var r=i/2,u=io(n,r),f=io(t,r);return{top:f.end,right:u.end,bottom:f.start,left:u.start}}function ua(t){var i,r,u,f;return n.isObject(t)?(i=t.top,r=t.right,u=t.bottom,f=t.left):i=r=u=f=t,{top:i,right:r,bottom:u,left:f}}function bt(t,i){return t.native?{x:t.x,y:t.y}:n.getRelativePosition(t,i)}function ai(n,t){for(var e=n._getSortedVisibleDatasetMetas(),u,r,s,f,i=0,o=e.length;i<o;++i)for(u=e[i].data,r=0,s=u.length;r<s;++r)f=u[r],f._view.skip||t(f)}function yu(n,t){var i=[];return ai(n,function(n){n.inRange(t.x,t.y)&&i.push(n)}),i}function pu(n,t,i,r){var u=Number.POSITIVE_INFINITY,f=[];return ai(n,function(n){if(!i||n.inRange(t.x,t.y)){var o=n.getCenterPoint(),e=r(t,o);e<u?(f=[n],u=e):e===u&&f.push(n)}}),f}function wu(n){var t=n.indexOf("x")!==-1,i=n.indexOf("y")!==-1;return function(n,r){var u=t?Math.abs(n.x-r.x):0,f=i?Math.abs(n.y-r.y):0;return Math.sqrt(Math.pow(u,2)+Math.pow(f,2))}}function bu(n,t,i){var r=bt(t,n);i.axis=i.axis||"x";var e=wu(i.axis),u=i.intersect?yu(n,r):pu(n,r,!1,e),f=[];return u.length?(n._getSortedVisibleDatasetMetas().forEach(function(n){var t=n.data[u[0]._index];t&&!t._view.skip&&f.push(t)}),f):[]}function vi(t,i){return n.where(t,function(n){return n.pos===i})}function or(n,t){return n.sort(function(n,i){var r=t?i:n,u=t?n:i;return r.weight===u.weight?r.index-u.index:r.weight-u.weight})}function fa(n){for(var r=[],i,t=0,u=(n||[]).length;t<u;++t)i=n[t],r.push({index:t,box:i,pos:i.position,horizontal:i.isHorizontal(),weight:i.weight});return r}function ea(n,t){for(var i,r=0,u=n.length;r<u;++r)i=n[r],i.width=i.horizontal?i.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,i.height=i.horizontal&&t.hBoxMaxHeight}function oa(n){var t=fa(n),i=or(vi(t,"left"),!0),r=or(vi(t,"right")),u=or(vi(t,"top"),!0),f=or(vi(t,"bottom"));return{leftAndTop:i.concat(u),rightAndBottom:r.concat(f),chartArea:vi(t,"chartArea"),vertical:i.concat(r),horizontal:u.concat(f)}}function so(n,t,i,r){return Math.max(n[i],t[i])+Math.max(n[r],t[r])}function sa(n,t,i){var f=i.box,r=n.maxPadding,e,o,u;return i.size&&(n[i.pos]-=i.size),i.size=i.horizontal?f.height:f.width,n[i.pos]+=i.size,f.getPadding&&(u=f.getPadding(),r.top=Math.max(r.top,u.top),r.left=Math.max(r.left,u.left),r.bottom=Math.max(r.bottom,u.bottom),r.right=Math.max(r.right,u.right)),e=t.outerWidth-so(r,n,"left","right"),o=t.outerHeight-so(r,n,"top","bottom"),e!==n.w||o!==n.h?(n.w=e,n.h=o,i.horizontal?e!==n.w:o!==n.h):void 0}function ha(n){function t(t){var r=Math.max(i[t]-n[t],0);return n[t]+=r,r}var i=n.maxPadding;n.y+=t("top");n.x+=t("left");t("right");t("bottom")}function ca(n,t){function i(n){var i={left:0,top:0,right:0,bottom:0};return n.forEach(function(n){i[n]=Math.max(t[n],r[n])}),i}var r=t.maxPadding;return n?i(["left","right"]):i(["top","bottom"])}function sr(n,t,i){for(var f=[],r,e,h,o,u=0,s=n.length;u<s;++u)r=n[u],e=r.box,e.update(r.width||t.w,r.height||t.h,ca(r.horizontal,t)),sa(t,i,r)&&(o=!0,f.length&&(h=!0)),e.fullWidth||f.push(r);return h?sr(f,t,i)||o:o}function ho(n,t,i){for(var s=i.padding,u=t.x,f=t.y,o,r,e=0,h=n.length;e<h;++e)o=n[e],r=o.box,o.horizontal?(r.left=r.fullWidth?s.left:t.left,r.right=r.fullWidth?i.outerWidth-s.right:t.left+t.w,r.top=f,r.bottom=f+r.height,r.width=r.right-r.left,f=r.bottom):(r.left=u,r.right=u+r.width,r.top=t.top,r.bottom=t.top+t.h,r.height=r.bottom-r.top,u=r.right);t.x=u;t.y=f}function ao(t,i){var r=n.getStyle(t,i),u=r&&r.match(/^(\d+)(\.\d+)?px$/);return u?Number(u[1]):undefined}function wa(n,t){var i=n.style,u=n.getAttribute("height"),f=n.getAttribute("width"),r,o;return n[e]={initial:{height:u,width:f,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",(f===null||f==="")&&(r=ao(n,"width"),r!==undefined&&(n.width=r)),(u===null||u==="")&&(n.style.height===""?n.height=n.width/(t.options.aspectRatio||2):(o=ao(n,"height"),r!==undefined&&(n.height=o))),n}function yi(n,t,i){n.addEventListener(t,i,gu)}function nf(n,t,i){n.removeEventListener(t,i,gu)}function tf(n,t,i,r,u){return{type:n,chart:t,"native":u||null,x:i!==undefined?i:null,y:r!==undefined?r:null}}function ba(t,i){var u=pa[t.type]||t.type,r=n.getRelativePosition(t,i);return tf(u,i,r.x,r.y,t)}function ka(t,i){var r=!1,u=[];return function(){u=Array.prototype.slice.call(arguments);i=i||this;r||(r=!0,n.requestAnimFrame.call(window,function(){r=!1;t.apply(i,u)}))}}function pi(n){var t=document.createElement("div");return t.className=n||"",t}function da(n){var u=1e6,r=pi(du),t=pi(du+"-expand"),i=pi(du+"-shrink"),f;return t.appendChild(pi()),i.appendChild(pi()),r.appendChild(t),r.appendChild(i),r._reset=function(){t.scrollLeft=u;t.scrollTop=u;i.scrollLeft=u;i.scrollTop=u},f=function(){r._reset();n()},yi(t,"scroll",f.bind(t,"expand")),yi(i,"scroll",f.bind(i,"shrink")),r}function ga(t,i){var r=t[e]||(t[e]={}),u=r.renderProxy=function(n){n.animationName===ya&&i()};n.each(lo,function(n){yi(t,n,u)});r.reflow=!!t.offsetParent;t.classList.add(co)}function nv(t){var i=t[e]||{},r=i.renderProxy;r&&(n.each(lo,function(n){nf(t,n,r)}),delete i.renderProxy);t.classList.remove(co)}function tv(n,t,i){var r=n[e]||(n[e]={}),u=r.resizer=da(ka(function(){if(r.resizer){var u=i.options.maintainAspectRatio&&n.parentNode,f=u?u.clientWidth:0;t(tf("resize",i));u&&u.clientWidth<f&&i.canvas&&t(tf("resize",i))}}));ga(n,function(){if(r.resizer){var t=n.parentNode;t&&t!==u.parentNode&&t.insertBefore(u,t.firstChild);u._reset()}})}function iv(n){var i=n[e]||{},t=i.resizer;delete i.resizer;nv(n);t&&t.parentNode&&t.parentNode.removeChild(t)}function rv(n,t){var r=n[e]||(n[e]={}),i;r.containsStyles||(r.containsStyles=!0,t="/* Chart.js */\n"+t,i=document.createElement("style"),i.setAttribute("type","text/css"),i.appendChild(document.createTextNode(t)),n.appendChild(i))}function tt(t,i){return i&&(n.isArray(i)?Array.prototype.push.apply(t,i):t.push(i)),t}function et(n){return(typeof n=="string"||n instanceof String)&&n.indexOf("\n")>-1?n.split("\n"):n}function uv(n){var r=n._xScale,u=n._yScale||n._scale,i=n._index,t=n._datasetIndex,f=n._chart.getDatasetMeta(t).controller,e=f._getIndexScale(),o=f._getValueScale();return{xLabel:r?r.getLabelForIndex(i,t):"",yLabel:u?u.getLabelForIndex(i,t):"",label:e?""+e.getLabelForIndex(i,t):"",value:o?""+o.getLabelForIndex(i,t):"",index:i,datasetIndex:t,x:n._model.x,y:n._model.y}}function po(n){var i=t.global;return{xPadding:n.xPadding,yPadding:n.yPadding,xAlign:n.xAlign,yAlign:n.yAlign,rtl:n.rtl,textDirection:n.textDirection,bodyFontColor:n.bodyFontColor,_bodyFontFamily:ft(n.bodyFontFamily,i.defaultFontFamily),_bodyFontStyle:ft(n.bodyFontStyle,i.defaultFontStyle),_bodyAlign:n.bodyAlign,bodyFontSize:ft(n.bodyFontSize,i.defaultFontSize),bodySpacing:n.bodySpacing,titleFontColor:n.titleFontColor,_titleFontFamily:ft(n.titleFontFamily,i.defaultFontFamily),_titleFontStyle:ft(n.titleFontStyle,i.defaultFontStyle),titleFontSize:ft(n.titleFontSize,i.defaultFontSize),_titleAlign:n.titleAlign,titleSpacing:n.titleSpacing,titleMarginBottom:n.titleMarginBottom,footerFontColor:n.footerFontColor,_footerFontFamily:ft(n.footerFontFamily,i.defaultFontFamily),_footerFontStyle:ft(n.footerFontStyle,i.defaultFontStyle),footerFontSize:ft(n.footerFontSize,i.defaultFontSize),_footerAlign:n.footerAlign,footerSpacing:n.footerSpacing,footerMarginTop:n.footerMarginTop,caretSize:n.caretSize,cornerRadius:n.cornerRadius,backgroundColor:n.backgroundColor,opacity:0,legendColorBackground:n.multiKeyBackground,displayColors:n.displayColors,borderColor:n.borderColor,borderWidth:n.borderWidth}}function fv(t,i){var f=t._chart.ctx,r=i.yPadding*2,e=0,a=i.body,o=a.reduce(function(n,t){return n+t.before.length+t.lines.length+t.after.length},0),c,u;o+=i.beforeBody.length+i.afterBody.length;var s=i.title.length,h=i.footer.length,v=i.titleFontSize,l=i.bodyFontSize,y=i.footerFontSize;return r+=s*v,r+=s?(s-1)*i.titleSpacing:0,r+=s?i.titleMarginBottom:0,r+=o*l,r+=o?(o-1)*i.bodySpacing:0,r+=h?i.footerMarginTop:0,r+=h*y,r+=h?(h-1)*i.footerSpacing:0,c=0,u=function(n){e=Math.max(e,f.measureText(n).width+c)},f.font=n.fontString(v,i._titleFontStyle,i._titleFontFamily),n.each(i.title,u),f.font=n.fontString(l,i._bodyFontStyle,i._bodyFontFamily),n.each(i.beforeBody.concat(i.afterBody),u),c=i.displayColors?l+2:0,n.each(a,function(t){n.each(t.before,u);n.each(t.lines,u);n.each(t.after,u)}),c=0,f.font=n.fontString(y,i._footerFontStyle,i._footerFontFamily),n.each(i.footer,u),e+=2*i.xPadding,{width:e,height:r}}function ev(n,t){var i=n._model,o=n._chart,e=n._chart.chartArea,u="center",r="center",s,h,a,v,c,l,y,f;return i.y<t.height?r="top":i.y>o.height-t.height&&(r="bottom"),l=(e.left+e.right)/2,y=(e.top+e.bottom)/2,r==="center"?(s=function(n){return n<=l},h=function(n){return n>l}):(s=function(n){return n<=t.width/2},h=function(n){return n>=o.width-t.width/2}),a=function(n){return n+t.width+i.caretSize+i.caretPadding>o.width},v=function(n){return n-t.width-i.caretSize-i.caretPadding<0},c=function(n){return n<=y?"top":"bottom"},s(i.x)?(u="left",a(i.x)&&(u="center",r=c(i.y))):h(i.x)&&(u="right",v(i.x)&&(u="center",r=c(i.y))),f=n._options,{xAlign:f.xAlign?f.xAlign:u,yAlign:f.yAlign?f.yAlign:r}}function ov(n,t,i,r){var u=n.x,o=n.y,l=n.caretSize,h=n.caretPadding,a=n.cornerRadius,f=i.xAlign,s=i.yAlign,e=l+h,c=a+h;return f==="right"?u-=t.width:f==="center"&&(u-=t.width/2,u+t.width>r.width&&(u=r.width-t.width),u<0&&(u=0)),s==="top"?o+=e:o-=s==="bottom"?t.height+e:t.height/2,s==="center"?f==="left"?u+=e:f==="right"&&(u-=e):f==="left"?u-=c:f==="right"&&(u+=c),{x:u,y:o}}function hr(n,t){return t==="center"?n.x+n.width/2:t==="right"?n.x+n.width-n.xPadding:n.x+n.xPadding}function wo(n){return tt([],et(n))}function bo(){return n.merge({},[].slice.call(arguments),{merger:function(t,i,r,u){if(t==="xAxes"||t==="yAxes"){var s=r[t].length,f,o,e;for(i[t]||(i[t]=[]),f=0;f<s;++f)e=r[t][f],o=cr(e.type,t==="xAxes"?"category":"linear"),f>=i[t].length&&i[t].push({}),!i[t][f].type||e.type&&e.type!==i[t][f].type?n.merge(i[t][f],[wi.getScaleDefaults(o),e]):n.merge(i[t][f],e)}else n._merger(t,i,r,u)}})}function of(){return n.merge({},[].slice.call(arguments),{merger:function(t,i,r,u){var e=i[t]||{},f=r[t];t==="scales"?i[t]=bo(e,f):t==="scale"?i[t]=n.merge(e,[wi.getScaleDefaults(f.type),f]):n._merger(t,i,r,u)}})}function cv(n){n=n||{};var i=n.data=n.data||{};return i.datasets=i.datasets||[],i.labels=i.labels||[],n.options=of(t.global,t[n.type],n.options||{}),n}function lv(i){var r=i.options;n.each(i.scales,function(n){w.removeBox(i,n)});r=of(t.global,t[i.config.type],r);i.options=i.config.options=r;i.ensureScalesHaveIDs();i.buildOrUpdateScales();i.tooltip._options=r.tooltips;i.tooltip.initialize()}function ko(t,i,r){var u,f=function(n){return n.id===u};do u=i+r++;while(n.findIndex(t,f)>=0);return u}function go(n){return n==="top"||n==="bottom"}function ns(n,t){return function(i,r){return i[n]===r[n]?i[t]-r[t]:i[n]-r[n]}}function gt(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.");}function lr(n){this.options=n||{}}function vv(n,t){for(var r=[],u=n.length/t,i=0,f=n.length;i<f;i+=u)r.push(n[Math.floor(i)]);return r}function yv(n,t,i){var e=n.getTicks().length,u=Math.min(t,e-1),r=n.getPixelForTick(u),o=n._startPixel,s=n._endPixel,h=1e-6,f;if(!i||(f=e===1?Math.max(r-o,s-r):t===0?(n.getPixelForTick(1)-r)/2:(r-n.getPixelForTick(u-1))/2,r+=u<t?f:-f,!(r<o-h)&&!(r>s+h)))return r}function pv(t,i){n.each(t,function(n){var r=n.gc,u=r.length/2,t;if(u>i){for(t=0;t<u;++t)delete n.data[r[t]];r.splice(0,u)}})}function wv(t,i,r,u){function p(n){return{width:h[n]||0,height:c[n]||0,offset:d[n]||0}}for(var w=r.length,h=[],c=[],d=[],l,g,f,b,k,s,a,e,v,y,nt,tt,o=0;o<w;++o){if(f=r[o].label,b=r[o].major?i.major:i.minor,t.font=k=b.string,s=u[k]=u[k]||{data:{},gc:[]},a=b.lineHeight,e=v=0,ki(f)||ni(f)){if(ni(f))for(l=0,g=f.length;l<g;++l)y=f[l],ki(y)||ni(y)||(e=n.measureText(t,s.data,s.gc,e,y),v+=a)}else e=n.measureText(t,s.data,s.gc,e,f),v=a;h.push(e);c.push(v);d.push(a/2)}return pv(u,w),nt=h.indexOf(Math.max.apply(null,h)),tt=c.indexOf(Math.max.apply(null,c)),{first:p(0),last:p(w-1),widest:p(nt),highest:p(tt)}}function di(n){return n.drawTicks?n.tickMarkLength:0}function hf(t){var i,r;return t.display?(i=n.options._parseFont(t),r=n.options.toPadding(t.padding),i.lineHeight+r.height):0}function is(i,r){return n.extend(n.options._parseFont({fontFamily:ti(r.fontFamily,i.fontFamily),fontSize:ti(r.fontSize,i.fontSize),fontStyle:ti(r.fontStyle,i.fontStyle),lineHeight:ti(r.lineHeight,i.lineHeight)}),{color:n.options.resolve([r.fontColor,i.fontColor,t.global.defaultFontColor])})}function cf(n){var t=is(n,n.minor),i=n.major.enabled?is(n,n.major):t;return{minor:t,major:i}}function lf(n){for(var r=[],i,t=0,u=n.length;t<u;++t)i=n[t],typeof i._index!="undefined"&&r.push(i);return r}function bv(n){var r=n.length,t,i;if(r<2)return!1;for(i=n[0],t=1;t<r;++t)if(n[t]-n[t-1]!==i)return!1;return i}function kv(t,i,r,u){var h=bv(t),e=(i.length-1)/u,o,s,f,c;if(!h)return Math.max(e,1);for(o=n.math._factorize(h),f=0,c=o.length-1;f<c;f++)if(s=o[f],s>e)return s;return Math.max(e,1)}function dv(n){for(var i=[],t=0,r=n.length;t<r;t++)n[t].major&&i.push(t);return i}function gv(n,t,i){var f=0,e=t[0],r,u;for(i=Math.ceil(i),r=0;r<n.length;r++)u=n[r],r===e?(u._index=r,f++,e=t[f*i]):delete u.label}function ar(n,t,i,r){var e=ti(i,0),c=Math.min(ti(r,n.length),n.length),o=0,s,u,h,f;for(t=Math.ceil(t),r&&(s=r-i,t=s/Math.floor(s/t)),f=e;f<0;)o++,f=Math.round(e+o*t);for(u=Math.max(e,0);u<c;u++)h=n[u],u===f?(h._index=u,o++,f=Math.round(e+o*t)):delete h.label}function ny(t,i){var c=[],p=t.stepSize,l=p||1,w=t.maxTicks-1,o=t.min,s=t.max,b=t.precision,a=i.min,v=i.max,r=n.niceNum((v-a)/w/l)*l,u,e,h,f,y;if(r<1e-14&&ht(o)&&ht(s))return[a,v];for(f=Math.ceil(v/r)-Math.floor(a/r),f>w&&(r=n.niceNum(f*r/w/l)*l),p||ht(b)?u=Math.pow(10,n._decimalPlaces(r)):(u=Math.pow(10,b),r=Math.ceil(r*u)/u),e=Math.floor(a/r)*r,h=Math.ceil(v/r)*r,p&&(!ht(o)&&n.almostWhole(o/r,r/1e3)&&(e=o),!ht(s)&&n.almostWhole(s/r,r/1e3)&&(h=s)),f=(h-e)/r,f=n.almostEquals(f,Math.round(f),r/1e3)?Math.round(f):Math.ceil(f),e=Math.round(e*u)/u,h=Math.round(h*u)/u,c.push(ht(o)?e:o),y=1;y<f;++y)c.push(Math.round((e+y*r)*u)/u);return c.push(ht(s)?h:s),c}function uy(n,t,i){var r=[i.type,t===undefined&&i.stack===undefined?i.index:"",i.stack].join(".");return n[r]===undefined&&(n[r]={pos:[],neg:[]}),n[r]}function fy(n,t,i,r){for(var s=n.options,c=s.stacked,h=uy(t,c,i),e=h.pos,o=h.neg,l=r.length,f,u=0;u<l;++u)(f=n._parseValue(r[u]),isNaN(f.min)||isNaN(f.max)||i.data[u].hidden)||(e[u]=e[u]||0,o[u]=o[u]||0,s.relativePoints?e[u]=100:f.min<0||f.max<0?o[u]+=f.min:e[u]+=f.max)}function ey(n,t,i){for(var f=i.length,u,r=0;r<f;++r)(u=n._parseValue(i[r]),isNaN(u.min)||isNaN(u.max)||t.data[r].hidden)||(n.min=Math.min(n.min,u.min),n.max=Math.max(n.max,u.max))}function oy(n,t){var e=[],r=pr(n.min,Math.pow(10,Math.floor(o(t.min)))),s=Math.floor(o(t.max)),c=Math.ceil(t.max/Math.pow(10,s)),i,u,f,h;r===0?(i=Math.floor(o(t.minNotZero)),u=Math.floor(t.minNotZero/Math.pow(10,i)),e.push(r),r=u*Math.pow(10,i)):(i=Math.floor(o(r)),u=Math.floor(r/Math.pow(10,i)));f=i<0?Math.pow(10,Math.abs(i)):1;do e.push(r),++u,u===10&&(u=1,++i,f=i>=0?1:f),r=Math.round(u*Math.pow(10,i)*f)/f;while(i<s||i===s&&u<c);return h=pr(n.max,r),e.push(h),e}function wr(t,i){return n.isFinite(t)&&t>=0?t:i}function wf(n){var i=n.ticks;return i.display&&n.display?br(i.fontSize,t.global.defaultFontSize)+i.backdropPaddingY*2:0}function hy(t,i,r){return n.isArray(r)?{w:n.longestText(t,t.font,r),h:r.length*i}:{w:t.measureText(r).width,h:i}}function hs(n,t,i,r,u){return n===r||n===u?{start:t-i/2,end:t+i/2}:n<r||n>u?{start:t-i,end:t}:{start:t,end:t+i}}function cy(t){var c=n.options._parseFont(t.options.pointLabels),i={l:0,r:t.width,t:0,b:t.height-t.paddingTop},u={},r,e,h,l;for(t.ctx.font=c.string,t._pointLabelSizes=[],l=t.chart.data.labels.length,r=0;r<l;r++){h=t.getPointPosition(r,t.drawingArea+5);e=hy(t.ctx,c.lineHeight,t.pointLabels[r]);t._pointLabelSizes[r]=e;var f=t.getIndexAngle(r),a=n.toDegrees(f)%360,o=hs(a,h.x,e.w,0,180),s=hs(a,h.y,e.h,90,270);o.start<i.l&&(i.l=o.start,u.l=f);o.end>i.r&&(i.r=o.end,u.r=f);s.start<i.t&&(i.t=s.start,u.t=f);s.end>i.b&&(i.b=s.end,u.b=f)}t.setReductions(t.drawingArea,i,u)}function ly(n){return n===0||n===180?"center":n<180?"left":"right"}function ay(t,i,r,u){var e=r.y+u/2,f,o;if(n.isArray(i))for(f=0,o=i.length;f<o;++f)t.fillText(i[f],r.x,e),e+=u;else t.fillText(i,r.x,e)}function vy(n,t,i){n===90||n===270?i.y-=t.h/2:(n>270||n<90)&&(i.y-=t.h)}function yy(i){var u=i.ctx,f=i.options,o=f.pointLabels,l=wf(f),a=i.getDistanceFromCenterForValue(f.ticks.reverse?i.min:i.max),s=n.options._parseFont(o),r,c,e;for(u.save(),u.font=s.string,u.textBaseline="middle",r=i.chart.data.labels.length-1;r>=0;r--){var v=r===0?l/2:0,h=i.getPointPosition(r,a+v+5),y=pf(o.fontColor,r,t.global.defaultFontColor);u.fillStyle=y;c=i.getIndexAngle(r);e=n.toDegrees(c);u.textAlign=ly(e);vy(e,i._pointLabelSizes[r],h);ay(u,i.pointLabels[r],h,s.lineHeight)}u.restore()}function py(n,t,i,r){var u=n.ctx,o=t.circular,s=n.chart.data.labels.length,h=pf(t.color,r-1),c=pf(t.lineWidth,r-1),f,e;if((o||s)&&h&&c){if(u.save(),u.strokeStyle=h,u.lineWidth=c,u.setLineDash&&(u.setLineDash(t.borderDash||[]),u.lineDashOffset=t.borderDashOffset||0),u.beginPath(),o)u.arc(n.xCenter,n.yCenter,i,0,Math.PI*2);else for(f=n.getPointPosition(0,i),u.moveTo(f.x,f.y),e=1;e<s;e++)f=n.getPointPosition(e,i),u.lineTo(f.x,f.y);u.closePath();u.stroke();u.restore()}}function kr(t){return n.isNumber(t)?t:0}function vs(n,t){return n-t}function by(n){for(var r={},u=[],i,t=0,f=n.length;t<f;++t)i=n[t],r[i]||(r[i]=!0,u.push(i));return u}function ys(t){return n.valueOrDefault(t.time.min,t.ticks.min)}function ps(t){return n.valueOrDefault(t.time.max,t.ticks.max)}function ky(n,t,i,r){if(r==="linear"||!n.length)return[{time:t,pos:0},{time:i,pos:1}];for(var c=[],e=[t],s,f,h,u=0,o=n.length;u<o;++u)f=n[u],f>t&&f<i&&e.push(f);for(e.push(i),u=0,o=e.length;u<o;++u)h=e[u+1],s=e[u-1],f=e[u],(s===undefined||h===undefined||Math.round((h+s)/2)!==f)&&c.push({time:f,pos:u/(o-1)});return c}function dy(n,t,i){for(var f=0,o=n.length-1,r,e,u;f>=0&&f<=o;)if(r=f+o>>1,e=n[r-1]||null,u=n[r],e)if(u[t]<i)f=r+1;else if(e[t]>i)o=r-1;else return{lo:e,hi:u};else return{lo:null,hi:u};return{lo:u,hi:null}}function si(n,t,i,r){var u=dy(n,t,i),f=u.lo?u.hi?u.lo:n[n.length-2]:n[0],e=u.lo?u.hi?u.hi:n[n.length-1]:n[1],o=e[t]-f[t],s=o?(i-f[t])/o:0,h=(e[r]-f[r])*s;return f[r]+h}function gf(t,i){var e=t._adapter,o=t.options.time,u=o.parser,f=u||o.format,r=i;return(typeof u=="function"&&(r=u(r)),n.isFinite(r)||(r=typeof f=="string"?e.parse(r,f):e.parse(r)),r!==null)?+r:(u||typeof f!="function"||(r=f(i),n.isFinite(r)||(r=e.parse(r))),r)}function ii(t,i){if(n.isNullOrUndef(i))return null;var u=t.options.time,r=gf(t,t.getRightValue(i));return r===null?r:(u.round&&(r=+t._adapter.startOf(r,u.round)),r)}function ws(n,t,i,r){for(var e=a.length,f,o,u=a.indexOf(n);u<e-1;++u)if(f=dr[a[u]],o=f.steps?f.steps:df,f.common&&Math.ceil((i-t)/(o*f.size))<=r)return a[u];return a[e-1]}function gy(n,t,i,r,u){for(var e,f=a.length-1;f>=a.indexOf(i);f--)if(e=a[f],dr[e].common&&n._adapter.diff(u,r,e)>=t-1)return e;return a[i?a.indexOf(i):0]}function np(n){for(var t=a.indexOf(n)+1,i=a.length;t<i;++t)if(dr[a[t]].common)return a[t]}function tp(n,t,i,r){var s=n._adapter,a=n.options,f=a.time,e=f.unit||ws(f.minUnit,t,i,r),h=ls([f.stepSize,f.unitStepSize,1]),c=e==="week"?f.isoWeekday:!1,o=t,l=[],u;if(c&&(o=+s.startOf(o,"isoWeek",c)),o=+s.startOf(o,c?"day":e),s.diff(i,t,e)>1e5*h)throw t+" and "+i+" are too far apart with stepSize of "+h+" "+e;for(u=o;u<i;u=+s.add(u,h,e))l.push(u);return(u===i||a.bounds==="ticks")&&l.push(u),l}function ip(n,t,i,r,u){var f=0,e=0,o,s;return u.offset&&t.length&&(o=si(n,"time",t[0],"pos"),f=t.length===1?1-o:(si(n,"time",t[1],"pos")-o)/2,s=si(n,"time",t[t.length-1],"pos"),e=t.length===1?s:(s-si(n,"time",t[t.length-2],"pos"))/2),{start:f,end:e,factor:1/(f+1+e)}}function rp(n,t,i,r){for(var e=n._adapter,o=+e.startOf(t[0].value,r),s=t[t.length-1].value,f,u=o;u<=s;u=+e.add(u,1,r))f=i[u],f>=0&&(t[f].major=!0);return t}function bs(n,t,i){for(var u=[],e={},o=t.length,f,r=0;r<o;++r)f=t[r],e[f]=r,u.push({value:f,major:!1});return o===0||!i?u:rp(n,u,e,i)}function ep(n,t,i){var f=n._model||{},r=f.fill,u;if(r===undefined&&(r=!!f.backgroundColor),r===!1||r===null)return!1;if(r===!0)return"origin";if(u=parseFloat(r,10),isFinite(u)&&Math.floor(u)===u)return((r[0]==="-"||r[0]==="+")&&(u=t+u),u===t||u<0||u>=i)?!1:u;switch(r){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return r;default:return!1}}function op(t){var r=t.el._model||{},u=t.el._scale||{},f=t.fill,i=null,e;if(isFinite(f))return null;if(f==="start"?i=r.scaleBottom===undefined?u.bottom:r.scaleBottom:f==="end"?i=r.scaleTop===undefined?u.top:r.scaleTop:r.scaleZero!==undefined?i=r.scaleZero:u.getBasePixel&&(i=u.getBasePixel()),i!==undefined&&i!==null){if(i.x!==undefined&&i.y!==undefined)return i;if(n.isFinite(i))return e=u.isHorizontal(),{x:e?i:null,y:e?null:i}}return null}function sp(n){var t=n.el._scale,u=t.options,s=t.chart.data.labels.length,f=n.fill,h=[],e,c,o,i,r;if(!s)return null;for(e=u.ticks.reverse?t.max:t.min,c=u.ticks.reverse?t.min:t.max,o=t.getPointPositionForValue(0,e),i=0;i<s;++i)r=f==="start"||f==="end"?t.getPointPositionForValue(i,f==="start"?e:c):t.getBasePosition(i),u.gridLines.circular&&(r.cx=o.x,r.cy=o.y,r.angle=t.getIndexAngle(i)-Math.PI/2),h.push(r);return h}function hp(n){var t=n.el._scale||{};return t.getPointPositionForValue?sp(n):op(n)}function cp(n,t,i){var e=n[t],r=e.fill,f=[t],u;if(!i)return r;while(r!==!1&&f.indexOf(r)===-1){if(!isFinite(r))return r;if(u=n[r],!u)return!1;if(u.visible)return r;f.push(r);r=u.fill}return!1}function lp(n){var t=n.fill,i="dataset";return t===!1?null:(isFinite(t)||(i="boundary"),ds[i](n))}function gs(n){return n&&!n.skip}function nh(t,i,r,u,f){var e,o,s,h;if(u&&f){for(t.moveTo(i[0].x,i[0].y),e=1;e<u;++e)n.canvas.lineTo(t,i[e-1],i[e]);if(r[0].angle!==undefined){for(o=r[0].cx,s=r[0].cy,h=Math.sqrt(Math.pow(r[0].x-o,2)+Math.pow(r[0].y-s,2)),e=f-1;e>0;--e)t.arc(o,s,h,r[e].angle,r[e-1].angle,!0);return}for(t.lineTo(r[f-1].x,r[f-1].y),e=f-1;e>0;--e)n.canvas.lineTo(t,r[e],r[e-1],!0)}}function ap(n,t,i,r,u,f){var y=t.length,d=r.spanGaps,e=[],o=[],s=0,h=0,c,p,w,l,a,v,b,k;for(n.beginPath(),c=0,p=y;c<p;++c)w=c%y,l=t[w]._view,a=i(l,w,r),v=gs(l),b=gs(a),f&&k===undefined&&v&&(k=c+1,p=y+k),v&&b?(s=e.push(l),h=o.push(a)):s&&h&&(d?(v&&e.push(l),b&&o.push(a)):(nh(n,e,o,s,h),s=h=0,e=[],o=[]));nh(n,e,o,s,h);n.closePath();n.fillStyle=u;n.fill()}function ne(n,t){return n.usePointStyle&&n.boxWidth>t?t:n.boxWidth}function th(n,t){var i=new te({ctx:n.ctx,options:t,chart:n});w.configure(n,i,t);w.addBox(n,i);n.legend=i}function rh(n,t){var i=new ie({ctx:n.ctx,options:t,chart:n});w.configure(n,i,t);w.addBox(n,i);n.titleBlock=i}var fh=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},vt={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]},f=ue(function(n){function o(n,t){return Math.pow(n[0]-t[0],2)+Math.pow(n[1]-t[1],2)+Math.pow(n[2]-t[2],2)}var u={},r,t,i,f,e;for(r in vt)vt.hasOwnProperty(r)&&(u[vt[r]]=r);t=n.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(i in t)if(t.hasOwnProperty(i)){if(!("channels"in t[i]))throw new Error("missing channels property: "+i);if(!("labels"in t[i]))throw new Error("missing channel labels property: "+i);if(t[i].labels.length!==t[i].channels)throw new Error("channel and label counts mismatch: "+i);f=t[i].channels;e=t[i].labels;delete t[i].channels;delete t[i].labels;Object.defineProperty(t[i],"channels",{value:f});Object.defineProperty(t[i],"labels",{value:e})}t.rgb.hsl=function(n){var u=n[0]/255,f=n[1]/255,e=n[2]/255,r=Math.min(u,f,e),t=Math.max(u,f,e),o=t-r,i,h,s;return t===r?i=0:u===t?i=(f-e)/o:f===t?i=2+(e-u)/o:e===t&&(i=4+(u-f)/o),i=Math.min(i*60,360),i<0&&(i+=360),s=(r+t)/2,h=t===r?0:s<=.5?o/(t+r):o/(2-t-r),[i,h*100,s*100]};t.rgb.hsv=function(n){var e,o,s,t,h,r=n[0]/255,u=n[1]/255,f=n[2]/255,i=Math.max(r,u,f),c=i-Math.min(r,u,f),l=function(n){return(i-n)/6/c+1/2};return c===0?t=h=0:(h=c/i,e=l(r),o=l(u),s=l(f),r===i?t=s-o:u===i?t=1/3+e-s:f===i&&(t=2/3+o-e),t<0?t+=1:t>1&&(t-=1)),[t*360,h*100,i*100]};t.rgb.hwb=function(n){var r=n[0],u=n[1],i=n[2],f=t.rgb.hsl(n)[0],e=1/255*Math.min(r,Math.min(u,i));return i=1-1/255*Math.max(r,Math.max(u,i)),[f,e*100,i*100]};t.rgb.cmyk=function(n){var i=n[0]/255,r=n[1]/255,u=n[2]/255,f,e,o,t;return t=Math.min(1-i,1-r,1-u),f=(1-i-t)/(1-t)||0,e=(1-r-t)/(1-t)||0,o=(1-u-t)/(1-t)||0,[f*100,e*100,o*100,t*100]};t.rgb.keyword=function(n){var f=u[n],i,e,t,s,r;if(f)return f;i=Infinity;for(t in vt)vt.hasOwnProperty(t)&&(s=vt[t],r=o(n,s),r<i&&(i=r,e=t));return e};t.keyword.rgb=function(n){return vt[n]};t.rgb.xyz=function(n){var t=n[0]/255,i=n[1]/255,r=n[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var u=t*.4124+i*.3576+r*.1805,f=t*.2126+i*.7152+r*.0722,e=t*.0193+i*.1192+r*.9505;return[u*100,f*100,e*100]};t.rgb.lab=function(n){var f=t.rgb.xyz(n),r=f[0],i=f[1],u=f[2],e,o,s;return r/=95.047,i/=100,u/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,e=116*i-16,o=500*(r-i),s=200*(i-u),[e,o,s]};t.hsl.rgb=function(n){var h=n[0]/360,o=n[1]/100,i=n[2]/100,r,f,t,s,u,e;if(o===0)return u=i*255,[u,u,u];for(f=i<.5?i*(1+o):i+o-i*o,r=2*i-f,s=[0,0,0],e=0;e<3;e++)t=h+1/3*-(e-1),t<0&&t++,t>1&&t--,u=6*t<1?r+(f-r)*6*t:2*t<1?f:3*t<2?r+(f-r)*(2/3-t)*6:r,s[e]=u*255;return s};t.hsl.hsv=function(n){var o=n[0],i=n[1]/100,t=n[2]/100,u=i,r=Math.max(t,.01),f,e;return t*=2,i*=t<=1?t:2-t,u*=r<=1?r:2-r,e=(t+i)/2,f=t===0?2*u/(r+u):2*i/(t+i),[o,f*100,e*100]};t.hsv.rgb=function(n){var r=n[0]/60,u=n[1]/100,t=n[2]/100,s=Math.floor(r)%6,o=r-Math.floor(r),i=255*t*(1-u),f=255*t*(1-u*o),e=255*t*(1-u*(1-o));t*=255;switch(s){case 0:return[t,e,i];case 1:return[f,t,i];case 2:return[i,t,e];case 3:return[i,f,t];case 4:return[e,i,t];case 5:return[t,i,f]}};t.hsv.hsl=function(n){var o=n[0],r=n[1]/100,f=n[2]/100,e=Math.max(f,.01),i,t,u;return u=(2-r)*f,i=(2-r)*e,t=r*e,t/=i<=1?i:2-i,t=t||0,u/=2,[o,t*100,u*100]};t.hwb.rgb=function(n){var l=n[0]/360,t=n[1]/100,h=n[2]/100,c=t+h,o,i,s,r,u,f,e;c>1&&(t/=c,h/=c);o=Math.floor(6*l);i=1-h;s=6*l-o;(o&1)!=0&&(s=1-s);r=t+s*(i-t);switch(o){default:case 6:case 0:u=i;f=r;e=t;break;case 1:u=r;f=i;e=t;break;case 2:u=t;f=i;e=r;break;case 3:u=t;f=r;e=i;break;case 4:u=r;f=t;e=i;break;case 5:u=i;f=t;e=r}return[u*255,f*255,e*255]};t.cmyk.rgb=function(n){var f=n[0]/100,e=n[1]/100,o=n[2]/100,t=n[3]/100,i,r,u;return i=1-Math.min(1,f*(1-t)+t),r=1-Math.min(1,e*(1-t)+t),u=1-Math.min(1,o*(1-t)+t),[i*255,r*255,u*255]};t.xyz.rgb=function(n){var u=n[0]/100,f=n[1]/100,e=n[2]/100,t,i,r;return t=u*3.2406+f*-1.5372+e*-.4986,i=u*-.9689+f*1.8758+e*.0415,r=u*.0557+f*-.204+e*1.057,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*12.92,t=Math.min(Math.max(0,t),1),i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),[t*255,i*255,r*255]};t.xyz.lab=function(n){var i=n[0],t=n[1],r=n[2],u,f,e;return i/=95.047,t/=100,r/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,u=116*t-16,f=500*(i-t),e=200*(t-r),[u,f,e]};t.lab.xyz=function(n){var o=n[0],s=n[1],h=n[2],i,t,r;t=(o+16)/116;i=s/500+t;r=t-h/200;var u=Math.pow(t,3),f=Math.pow(i,3),e=Math.pow(r,3);return t=u>.008856?u:(t-16/116)/7.787,i=f>.008856?f:(i-16/116)/7.787,r=e>.008856?e:(r-16/116)/7.787,i*=95.047,t*=100,r*=108.883,[i,t,r]};t.lab.lch=function(n){var e=n[0],i=n[1],r=n[2],u,t,f;return u=Math.atan2(r,i),t=u*180/Math.PI,t<0&&(t+=360),f=Math.sqrt(i*i+r*r),[e,f,t]};t.lch.lab=function(n){var f=n[0],i=n[1],e=n[2],r,u,t;return t=e/180*Math.PI,r=i*Math.cos(t),u=i*Math.sin(t),[f,r,u]};t.rgb.ansi16=function(n){var u=n[0],f=n[1],e=n[2],i=1 in arguments?arguments[1]:t.rgb.hsv(n)[2],r;return(i=Math.round(i/50),i===0)?30:(r=30+(Math.round(e/255)<<2|Math.round(f/255)<<1|Math.round(u/255)),i===2&&(r+=60),r)};t.hsv.ansi16=function(n){return t.rgb.ansi16(t.hsv.rgb(n),n[2])};t.rgb.ansi256=function(n){var t=n[0],i=n[1],r=n[2];return t===i&&i===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/51)+6*Math.round(i/51)+Math.round(r/51)};t.ansi16.rgb=function(n){var t=n%10;if(t===0||t===7)return n>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var i=(~~(n>50)+1)*.5,r=(t&1)*i*255,u=(t>>1&1)*i*255,f=(t>>2&1)*i*255;return[r,u,f]};t.ansi256.rgb=function(n){var t;if(n>=232)return t=(n-232)*10+8,[t,t,t];n-=16;var i,r=Math.floor(n/36)*51,u=Math.floor((i=n%36)/6)*51,f=i%6*51;return[r,u,f]};t.rgb.hex=function(n){var i=((Math.round(n[0])&255)<<16)+((Math.round(n[1])&255)<<8)+(Math.round(n[2])&255),t=i.toString(16).toUpperCase();return"000000".substring(t.length)+t};t.hex.rgb=function(n){var i=n.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i),t;if(!i)return[0,0,0];t=i[0];i[0].length===3&&(t=t.split("").map(function(n){return n+n}).join(""));var r=parseInt(t,16),u=r>>16&255,f=r>>8&255,e=r&255;return[u,f,e]};t.rgb.hcg=function(n){var i=n[0]/255,r=n[1]/255,u=n[2]/255,e=Math.max(Math.max(i,r),u),o=Math.min(Math.min(i,r),u),t=e-o,s,f;return s=t<1?o/(1-t):0,f=t<=0?0:e===i?(r-u)/t%6:e===r?2+(u-i)/t:4+(i-r)/t+4,f/=6,f%=1,[f*360,t*100,s*100]};t.hsl.hcg=function(n){var r=n[1]/100,i=n[2]/100,t=1,u=0;return t=i<.5?2*r*i:2*r*(1-i),t<1&&(u=(i-.5*t)/(1-t)),[n[0],t*100,u*100]};t.hsv.hcg=function(n){var u=n[1]/100,i=n[2]/100,t=u*i,r=0;return t<1&&(r=(i-t)/(1-t)),[n[0],t*100,r*100]};t.hcg.rgb=function(n){var s=n[0]/360,i=n[1]/100,r=n[2]/100;if(i===0)return[r*255,r*255,r*255];var t=[0,0,0],o=s%1*6,u=o%1,e=1-u,f=0;switch(Math.floor(o)){case 0:t[0]=1;t[1]=u;t[2]=0;break;case 1:t[0]=e;t[1]=1;t[2]=0;break;case 2:t[0]=0;t[1]=1;t[2]=u;break;case 3:t[0]=0;t[1]=e;t[2]=1;break;case 4:t[0]=u;t[1]=0;t[2]=1;break;default:t[0]=1;t[1]=0;t[2]=e}return f=(1-i)*r,[(i*t[0]+f)*255,(i*t[1]+f)*255,(i*t[2]+f)*255]};t.hcg.hsv=function(n){var t=n[1]/100,u=n[2]/100,i=t+u*(1-t),r=0;return i>0&&(r=t/i),[n[0],r*100,i*100]};t.hcg.hsl=function(n){var i=n[1]/100,u=n[2]/100,t=u*(1-i)+.5*i,r=0;return t>0&&t<.5?r=i/(2*t):t>=.5&&t<1&&(r=i/(2*(1-t))),[n[0],r*100,t*100]};t.hcg.hwb=function(n){var t=n[1]/100,r=n[2]/100,i=t+r*(1-t);return[n[0],(i-t)*100,(1-i)*100]};t.hwb.hcg=function(n){var u=n[1]/100,f=n[2]/100,i=1-f,t=i-u,r=0;return t<1&&(r=(i-t)/(1-t)),[n[0],t*100,r*100]};t.apple.rgb=function(n){return[n[0]/257,n[1]/257,n[2]/257]};t.rgb.apple=function(n){return[n[0]*257,n[1]*257,n[2]*257]};t.gray.rgb=function(n){return[n[0]/100*255,n[0]/100*255,n[0]/100*255]};t.gray.hsl=t.gray.hsv=function(n){return[0,0,n[0]]};t.gray.hwb=function(n){return[0,100,n[0]]};t.gray.cmyk=function(n){return[0,0,0,n[0]]};t.gray.lab=function(n){return[n[0],0,0]};t.gray.hex=function(n){var t=Math.round(n[0]/100*255)&255,r=(t<<16)+(t<<8)+t,i=r.toString(16).toUpperCase();return"000000".substring(i.length)+i};t.rgb.gray=function(n){var t=(n[0]+n[1]+n[2])/3;return[t/255*100]}}),dp=f.rgb,gp=f.hsl,nw=f.hsv,tw=f.hwb,iw=f.cmyk,rw=f.xyz,uw=f.lab,fw=f.lch,ew=f.hex,ow=f.keyword,sw=f.ansi16,hw=f.ansi256,cw=f.hcg,lw=f.apple,aw=f.gray,ah=function(n){for(var t,e,i=hh(n),u={},f=Object.keys(i),o=f.length,r=0;r<o;r++)(t=f[r],e=i[t],e.parent!==null)&&(u[t]=lh(t,i));return u},ri={},vh=Object.keys(f),iu,ru,s,ui,he,uu,t,ci,ir,rr,v,k,de,su,ei,yt,cu,au,ro,uo,fo,st,eo,oo,vu,kt,er,vo,gu,rf,yo,dt,ff,cr,ot,i,ts,vr,us,ht,vf,fs,pr,o,es,yf,os,bf,cs,ds,te,ih,it,ie,re,uh;vh.forEach(function(n){ri[n]={};Object.defineProperty(ri[n],"channels",{value:f[n].channels});Object.defineProperty(ri[n],"labels",{value:f[n].labels});var t=ah(n),i=Object.keys(t);i.forEach(function(i){var r=t[i];ri[n][i]=ph(r);ri[n][i].raw=yh(r)})});var wh=ri,gr={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]},b={getRgba:nu,getHsla:tu,getRgb:bh,getHsl:kh,getHwb:fe,getAlpha:dh,hexString:gh,rgbString:nc,rgbaString:ee,percentString:tc,percentaString:oe,hslString:ic,hslaString:se,hwbString:rc,keyword:uc};iu={};for(ru in gr)iu[gr[ru]]=ru;s=function(n){if(n instanceof s)return n;if(!(this instanceof s))return new s(n);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;typeof n=="string"?(t=b.getRgba(n),t?this.setValues("rgb",t):(t=b.getHsla(n))?this.setValues("hsl",t):(t=b.getHwb(n))&&this.setValues("hwb",t)):typeof n=="object"&&(t=n,t.r!==undefined||t.red!==undefined?this.setValues("rgb",t):t.l!==undefined||t.lightness!==undefined?this.setValues("hsl",t):t.v!==undefined||t.value!==undefined?this.setValues("hsv",t):t.w!==undefined||t.whiteness!==undefined?this.setValues("hwb",t):(t.c!==undefined||t.cyan!==undefined)&&this.setValues("cmyk",t))};s.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var n=this.values;return n.alpha!==1?n.hwb.concat([n.alpha]):n.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var n=this.values;return n.rgb.concat([n.alpha])},hslaArray:function(){var n=this.values;return n.hsl.concat([n.alpha])},alpha:function(n){return n===undefined?this.values.alpha:(this.setValues("alpha",n),this)},red:function(n){return this.setChannel("rgb",0,n)},green:function(n){return this.setChannel("rgb",1,n)},blue:function(n){return this.setChannel("rgb",2,n)},hue:function(n){return n&&(n%=360,n=n<0?360+n:n),this.setChannel("hsl",0,n)},saturation:function(n){return this.setChannel("hsl",1,n)},lightness:function(n){return this.setChannel("hsl",2,n)},saturationv:function(n){return this.setChannel("hsv",1,n)},whiteness:function(n){return this.setChannel("hwb",1,n)},blackness:function(n){return this.setChannel("hwb",2,n)},value:function(n){return this.setChannel("hsv",2,n)},cyan:function(n){return this.setChannel("cmyk",0,n)},magenta:function(n){return this.setChannel("cmyk",1,n)},yellow:function(n){return this.setChannel("cmyk",2,n)},black:function(n){return this.setChannel("cmyk",3,n)},hexString:function(){return b.hexString(this.values.rgb)},rgbString:function(){return b.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return b.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return b.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return b.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return b.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return b.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return b.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var n=this.values.rgb;return n[0]<<16|n[1]<<8|n[2]},luminosity:function(){for(var i,r=this.values.rgb,n=[],t=0;t<r.length;t++)i=r[t]/255,n[t]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4);return.2126*n[0]+.7152*n[1]+.0722*n[2]},contrast:function(n){var t=this.luminosity(),i=n.luminosity();return t>i?(t+.05)/(i+.05):(i+.05)/(t+.05)},level:function(n){var t=this.contrast(n);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var n=this.values.rgb,t=(n[0]*299+n[1]*587+n[2]*114)/1e3;return t<128},light:function(){return!this.dark()},negate:function(){for(var t=[],n=0;n<3;n++)t[n]=255-this.values.rgb[n];return this.setValues("rgb",t),this},lighten:function(n){var t=this.values.hsl;return t[2]+=t[2]*n,this.setValues("hsl",t),this},darken:function(n){var t=this.values.hsl;return t[2]-=t[2]*n,this.setValues("hsl",t),this},saturate:function(n){var t=this.values.hsl;return t[1]+=t[1]*n,this.setValues("hsl",t),this},desaturate:function(n){var t=this.values.hsl;return t[1]-=t[1]*n,this.setValues("hsl",t),this},whiten:function(n){var t=this.values.hwb;return t[1]+=t[1]*n,this.setValues("hwb",t),this},blacken:function(n){var t=this.values.hwb;return t[2]+=t[2]*n,this.setValues("hwb",t),this},greyscale:function(){var n=this.values.rgb,t=n[0]*.3+n[1]*.59+n[2]*.11;return this.setValues("rgb",[t,t,t]),this},clearer:function(n){var t=this.values.alpha;return this.setValues("alpha",t-t*n),this},opaquer:function(n){var t=this.values.alpha;return this.setValues("alpha",t+t*n),this},rotate:function(n){var t=this.values.hsl,i=(t[0]+n)%360;return t[0]=i<0?360+i:i,this.setValues("hsl",t),this},mix:function(n,t){var i=this,r=n,e=t===undefined?.5:t,u=2*e-1,o=i.alpha()-r.alpha(),f=((u*o==-1?u:(u+o)/(1+u*o))+1)/2,s=1-f;return this.rgb(f*i.red()+s*r.red(),f*i.green()+s*r.green(),f*i.blue()+s*r.blue()).alpha(i.alpha()*e+r.alpha()*(1-e))},toJSON:function(){return this.rgb()},clone:function(){var u=new s,i=this.values,f=u.values,n,r;for(var t in i)i.hasOwnProperty(t)&&(n=i[t],r={}.toString.call(n),r==="[object Array]"?f[t]=n.slice(0):r==="[object Number]"?f[t]=n:console.error("unexpected color value:",n));return u}};s.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]};s.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]};s.prototype.getValues=function(n){for(var i=this.values,r={},t=0;t<n.length;t++)r[n.charAt(t)]=i[n][t];return i.alpha!==1&&(r.a=i.alpha),r};s.prototype.setValues=function(n,t){var r=this.values,e=this.spaces,h=this.maxes,u=1,i,o,s,f;if(this.valid=!0,n==="alpha")u=t;else if(t.length)r[n]=t.slice(0,n.length),u=t[n.length];else if(t[n.charAt(0)]!==undefined){for(i=0;i<n.length;i++)r[n][i]=t[n.charAt(i)];u=t.a}else if(t[e[n][0]]!==undefined){for(o=e[n],i=0;i<n.length;i++)r[n][i]=t[o[i]];u=t.alpha}if(r.alpha=Math.max(0,Math.min(1,u===undefined?r.alpha:u)),n==="alpha")return!1;for(i=0;i<n.length;i++)s=Math.max(0,Math.min(h[n][i],r[n][i])),r[n][i]=Math.round(s);for(f in e)f!==n&&(r[f]=wh[n][f](r[n]));return!0};s.prototype.setSpace=function(n,t){var i=t[0];return i===undefined?this.getValues(n):(typeof i=="number"&&(i=Array.prototype.slice.call(t)),this.setValues(n,i),this)};s.prototype.setChannel=function(n,t,i){var r=this.values[n];return i===undefined?r[t]:i===r[t]?this:(r[t]=i,this.setValues(n,r),this)};typeof window!="undefined"&&(window.Color=s);var nr=s,r={noop:function(){},uid:function(){var n=0;return function(){return n++}}(),isNullOrUndef:function(n){return n===null||typeof n=="undefined"},isArray:function(n){if(Array.isArray&&Array.isArray(n))return!0;var t=Object.prototype.toString.call(n);return t.substr(0,7)==="[object"&&t.substr(-6)==="Array]"?!0:!1},isObject:function(n){return n!==null&&Object.prototype.toString.call(n)==="[object Object]"},isFinite:function(n){return(typeof n=="number"||n instanceof Number)&&isFinite(n)},valueOrDefault:function(n,t){return typeof n=="undefined"?t:n},valueAtIndexOrDefault:function(n,t,i){return r.valueOrDefault(r.isArray(n)?n[t]:n,i)},callback:function(n,t,i){if(n&&typeof n.call=="function")return n.apply(i,t)},each:function(n,t,i,u){var f,e,o;if(r.isArray(n))if(e=n.length,u)for(f=e-1;f>=0;f--)t.call(i,n[f],f);else for(f=0;f<e;f++)t.call(i,n[f],f);else if(r.isObject(n))for(o=Object.keys(n),e=o.length,f=0;f<e;f++)t.call(i,n[o[f]],o[f])},arrayEquals:function(n,t){var i,e,u,f;if(!n||!t||n.length!==t.length)return!1;for(i=0,e=n.length;i<e;++i)if(u=n[i],f=t[i],u instanceof Array&&f instanceof Array){if(!r.arrayEquals(u,f))return!1}else if(u!==f)return!1;return!0},clone:function(n){if(r.isArray(n))return n.map(r.clone);if(r.isObject(n)){for(var u={},i=Object.keys(n),f=i.length,t=0;t<f;++t)u[i[t]]=r.clone(n[i[t]]);return u}return n},_merger:function(n,t,i,u){var e=t[n],f=i[n];r.isObject(e)&&r.isObject(f)?r.merge(e,f,u):t[n]=r.clone(f)},_mergerIf:function(n,t,i){var f=t[n],u=i[n];r.isObject(f)&&r.isObject(u)?r.mergeIf(f,u):t.hasOwnProperty(n)||(t[n]=r.clone(u))},merge:function(n,t,i){var o=r.isArray(t)?t:[t],c=o.length,s,u,e,h,f;if(!r.isObject(n))return n;for(i=i||{},s=i.merger||r._merger,u=0;u<c;++u)if(t=o[u],r.isObject(t))for(e=Object.keys(t),f=0,h=e.length;f<h;++f)s(e[f],n,t,i);return n},mergeIf:function(n,t){return r.merge(n,t,{merger:r._mergerIf})},extend:Object.assign||function(n){return r.merge(n,[].slice.call(arguments,1),{merger:function(n,t,i){t[n]=i[n]}})},inherits:function(n){var i=this,t=n&&n.hasOwnProperty("constructor")?n.constructor:function(){return i.apply(this,arguments)},u=function(){this.constructor=t};return u.prototype=i.prototype,t.prototype=new u,t.extend=r.inherits,n&&r.extend(t.prototype,n),t.__super__=i.prototype,t},_deprecated:function(n,t,i,r){t!==undefined&&console.warn(n+': "'+i+'" is deprecated. Please use "'+r+'" instead')}},y=r;r.callCallback=r.callback;r.indexOf=function(n,t,i){return Array.prototype.indexOf.call(n,t,i)};r.getValueOrDefault=r.valueOrDefault;r.getValueAtIndexOrDefault=r.valueAtIndexOrDefault;ui={linear:function(n){return n},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return-n*(n-2)},easeInOutQuad:function(n){return(n/=.5)<1?.5*n*n:-.5*(--n*(n-2)-1)},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return(n=n-1)*n*n+1},easeInOutCubic:function(n){return(n/=.5)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return-((n=n-1)*n*n*n-1)},easeInOutQuart:function(n){return(n/=.5)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return(n=n-1)*n*n*n*n+1},easeInOutQuint:function(n){return(n/=.5)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},easeInSine:function(n){return-Math.cos(n*(Math.PI/2))+1},easeOutSine:function(n){return Math.sin(n*(Math.PI/2))},easeInOutSine:function(n){return-.5*(Math.cos(Math.PI*n)-1)},easeInExpo:function(n){return n===0?0:Math.pow(2,10*(n-1))},easeOutExpo:function(n){return n===1?1:-Math.pow(2,-10*n)+1},easeInOutExpo:function(n){return n===0?0:n===1?1:(n/=.5)<1?.5*Math.pow(2,10*(n-1)):.5*(-Math.pow(2,-10*--n)+2)},easeInCirc:function(n){return n>=1?n:-(Math.sqrt(1-n*n)-1)},easeOutCirc:function(n){return Math.sqrt(1-(n=n-1)*n)},easeInOutCirc:function(n){return(n/=.5)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},easeInElastic:function(n){var r=1.70158,t=0,i=1;return n===0?0:n===1?1:(t||(t=.3),i<1?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),-(i*Math.pow(2,10*(n-=1))*Math.sin((n-r)*2*Math.PI/t)))},easeOutElastic:function(n){var r=1.70158,t=0,i=1;return n===0?0:n===1?1:(t||(t=.3),i<1?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*n)*Math.sin((n-r)*2*Math.PI/t)+1)},easeInOutElastic:function(n){var r=1.70158,t=0,i=1;return n===0?0:(n/=.5)==2?1:(t||(t=.45),i<1?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),n<1)?-.5*i*Math.pow(2,10*(n-=1))*Math.sin((n-r)*2*Math.PI/t):i*Math.pow(2,-10*(n-=1))*Math.sin((n-r)*2*Math.PI/t)*.5+1},easeInBack:function(n){var t=1.70158;return n*n*((t+1)*n-t)},easeOutBack:function(n){var t=1.70158;return(n=n-1)*n*((t+1)*n+t)+1},easeInOutBack:function(n){var t=1.70158;return(n/=.5)<1?.5*n*n*(((t*=1.525)+1)*n-t):.5*((n-=2)*n*(((t*=1.525)+1)*n+t)+2)},easeInBounce:function(n){return 1-ui.easeOutBounce(1-n)},easeOutBounce:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},easeInOutBounce:function(n){return n<.5?ui.easeInBounce(n*2)*.5:ui.easeOutBounce(n*2-1)*.5+.5}};he={effects:ui};y.easingEffects=ui;var h=Math.PI,fc=h/180,ec=h*2,p=h/2,hi=h/4,ce=h*2/3,tr={clear:function(n){n.ctx.clearRect(0,0,n.width,n.height)},roundedRect:function(n,t,i,r,u,f){if(f){var e=Math.min(f,u/2,r/2),o=t+e,s=i+e,c=t+r-e,l=i+u-e;n.moveTo(t,s);o<c&&s<l?(n.arc(o,s,e,-h,-p),n.arc(c,s,e,-p,0),n.arc(c,l,e,0,p),n.arc(o,l,e,p,h)):o<c?(n.moveTo(o,i),n.arc(c,s,e,-p,p),n.arc(o,s,e,p,h+p)):s<l?(n.arc(o,s,e,-h,0),n.arc(o,l,e,0,h)):n.arc(o,s,e,-h,h);n.closePath();n.moveTo(t,i)}else n.rect(t,i,r,u)},drawPoint:function(n,t,i,r,u,f){var a,o,s,c,l,e=(f||0)*fc;if(t&&typeof t=="object"&&(a=t.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){n.save();n.translate(r,u);n.rotate(e);n.drawImage(t,-t.width/2,-t.height/2,t.width,t.height);n.restore();return}if(!isNaN(i)&&!(i<=0)){n.beginPath();switch(t){default:n.arc(r,u,i,0,ec);n.closePath();break;case"triangle":n.moveTo(r+Math.sin(e)*i,u-Math.cos(e)*i);e+=ce;n.lineTo(r+Math.sin(e)*i,u-Math.cos(e)*i);e+=ce;n.lineTo(r+Math.sin(e)*i,u-Math.cos(e)*i);n.closePath();break;case"rectRounded":l=i*.516;c=i-l;o=Math.cos(e+hi)*c;s=Math.sin(e+hi)*c;n.arc(r-o,u-s,l,e-h,e-p);n.arc(r+s,u-o,l,e-p,e);n.arc(r+o,u+s,l,e,e+p);n.arc(r-s,u+o,l,e+p,e+h);n.closePath();break;case"rect":if(!f){c=Math.SQRT1_2*i;n.rect(r-c,u-c,2*c,2*c);break}e+=hi;case"rectRot":o=Math.cos(e)*i;s=Math.sin(e)*i;n.moveTo(r-o,u-s);n.lineTo(r+s,u-o);n.lineTo(r+o,u+s);n.lineTo(r-s,u+o);n.closePath();break;case"crossRot":e+=hi;case"cross":o=Math.cos(e)*i;s=Math.sin(e)*i;n.moveTo(r-o,u-s);n.lineTo(r+o,u+s);n.moveTo(r+s,u-o);n.lineTo(r-s,u+o);break;case"star":o=Math.cos(e)*i;s=Math.sin(e)*i;n.moveTo(r-o,u-s);n.lineTo(r+o,u+s);n.moveTo(r+s,u-o);n.lineTo(r-s,u+o);e+=hi;o=Math.cos(e)*i;s=Math.sin(e)*i;n.moveTo(r-o,u-s);n.lineTo(r+o,u+s);n.moveTo(r+s,u-o);n.lineTo(r-s,u+o);break;case"line":o=Math.cos(e)*i;s=Math.sin(e)*i;n.moveTo(r-o,u-s);n.lineTo(r+o,u+s);break;case"dash":n.moveTo(r,u);n.lineTo(r+Math.cos(e)*i,u+Math.sin(e)*i)}n.fill();n.stroke()}},_isPointInArea:function(n,t){var i=1e-6;return n.x>t.left-i&&n.x<t.right+i&&n.y>t.top-i&&n.y<t.bottom+i},clipArea:function(n,t){n.save();n.beginPath();n.rect(t.left,t.top,t.right-t.left,t.bottom-t.top);n.clip()},unclipArea:function(n){n.restore()},lineTo:function(n,t,i,r){var u=i.steppedLine,f;if(u){u==="middle"?(f=(t.x+i.x)/2,n.lineTo(f,r?i.y:t.y),n.lineTo(f,r?t.y:i.y)):u==="after"&&!r||u!=="after"&&r?n.lineTo(t.x,i.y):n.lineTo(i.x,t.y);n.lineTo(i.x,i.y);return}if(!i.tension){n.lineTo(i.x,i.y);return}n.bezierCurveTo(r?t.controlPointPreviousX:t.controlPointNextX,r?t.controlPointPreviousY:t.controlPointNextY,r?i.controlPointNextX:i.controlPointPreviousX,r?i.controlPointNextY:i.controlPointPreviousY,i.x,i.y)}},oc=tr;y.clear=tr.clear;y.drawRoundedRectangle=function(n){n.beginPath();tr.roundedRect.apply(tr,arguments)};uu={_set:function(n,t){return y.merge(this[n]||(this[n]={}),t)}};uu._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});t=uu;ci=y.valueOrDefault;var hc={toLineHeight:function(n,t){var i=(""+n).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!i||i[1]==="normal")return t*1.2;n=+i[2];switch(i[3]){case"px":return n;case"%":n/=100}return t*n},toPadding:function(n){var t,i,r,u;return y.isObject(n)?(t=+n.top||0,i=+n.right||0,r=+n.bottom||0,u=+n.left||0):t=i=r=u=+n||0,{top:t,right:i,bottom:r,left:u,height:t+r,width:u+i}},_parseFont:function(n){var i=t.global,u=ci(n.fontSize,i.defaultFontSize),r={family:ci(n.fontFamily,i.defaultFontFamily),lineHeight:y.options.toLineHeight(ci(n.lineHeight,i.defaultLineHeight),u),size:u,style:ci(n.fontStyle,i.defaultFontStyle),weight:null,string:""};return r.string=sc(r),r},resolve:function(n,t,i,r){for(var e=!0,u,f=0,o=n.length;f<o;++f)if((u=n[f],u!==undefined)&&(t!==undefined&&typeof u=="function"&&(u=u(t),e=!1),i!==undefined&&y.isArray(u)&&(u=u[i],e=!1),u!==undefined))return r&&!e&&(r.cacheable=!1),u}},le={_factorize:function(n){for(var i=[],r=Math.sqrt(n),t=1;t<r;t++)n%t==0&&(i.push(t),i.push(n/t));return r===(r|0)&&i.push(r),i.sort(function(n,t){return n-t}).pop(),i},log10:Math.log10||function(n){var t=Math.log(n)*Math.LOG10E,i=Math.round(t),r=n===Math.pow(10,i);return r?i:t}},cc=le;y.log10=le.log10;var lc=function(n,t){return{x:function(i){return n+n+t-i},setWidth:function(n){t=n},textAlign:function(n){return n==="center"?n:n==="right"?"left":"right"},xPlus:function(n,t){return n-t},leftForLtr:function(n,t){return n-t}}},ac=function(){return{x:function(n){return n},setWidth:function(){},textAlign:function(n){return n},xPlus:function(n,t){return n+t},leftForLtr:function(n){return n}}},vc=function(n,t,i){return n?lc(t,i):ac()},yc=function(n,t){var i,r;(t==="ltr"||t==="rtl")&&(i=n.canvas.style,r=[i.getPropertyValue("direction"),i.getPropertyPriority("direction"),],i.setProperty("direction",t,"important"),n.prevTextDirection=r)},pc=function(n){var t=n.prevTextDirection;t!==undefined&&(delete n.prevTextDirection,n.canvas.style.setProperty("direction",t[0],t[1]))},wc={getRtlAdapter:vc,overrideTextDirection:yc,restoreTextDirection:pc},n=y,bc=he,kc=oc,dc=hc,gc=cc,nl=wc;n.easing=bc;n.canvas=kc;n.options=dc;n.math=gc;n.rtl=nl;ir=function(t){n.extend(this,t);this.initialize.apply(this,arguments)};n.extend(ir.prototype,{_type:undefined,initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=n.extend({},t._model)),t._start={},t},transition:function(t){var i=this,r=i._model,u=i._start,f=i._view;return!r||t===1?(i._view=n.extend({},r),i._start=null,i):(f||(f=i._view={}),u||(u=i._start={}),tl(u,f,r,t),i)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return n.isNumber(this._model.x)&&n.isNumber(this._model.y)}});ir.extend=n.inherits;var nt=ir,fu=nt.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),eu=fu;Object.defineProperty(fu.prototype,"animationObject",{get:function(){return this}});Object.defineProperty(fu.prototype,"chartInstance",{get:function(){return this.chart},set:function(n){this.chart=n}});t._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:n.noop,onComplete:n.noop}});var ou={animations:[],request:null,addAnimation:function(n,t,i,r){var u=this.animations,f,e;for(t.chart=n,t.startTime=Date.now(),t.duration=i,r||(n.animating=!0),f=0,e=u.length;f<e;++f)if(u[f].chart===n){u[f]=t;return}u.push(t);u.length===1&&this.requestAnimationFrame()},cancelAnimation:function(t){var i=n.findIndex(this.animations,function(n){return n.chart===t});i!==-1&&(this.animations.splice(i,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;t.request===null&&(t.request=n.requestAnimFrame.call(window,function(){t.request=null;t.startDigest()}))},startDigest:function(){var n=this;n.advance();n.animations.length>0&&n.requestAnimationFrame()},advance:function(){for(var f=this.animations,t,i,r,e,u=0;u<f.length;)t=f[u],i=t.chart,r=t.numSteps,e=Math.floor((Date.now()-t.startTime)/t.duration*r)+1,t.currentStep=Math.min(e,r),n.callback(t.render,[i,t],i),n.callback(t.onAnimationProgress,[t],i),t.currentStep>=r?(n.callback(t.onAnimationComplete,[t],i),i.animating=!1,f.splice(u,1)):++u}},fi=n.options.resolve,ae=["push","pop","shift","splice","unshift"];rr=function(n,t){this.initialize(n,t)};n.extend(rr.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(n,t){var i=this;i.chart=n;i.index=t;i.linkScales();i.addElements();i._type=i.getMeta().type},updateIndex:function(n){this.index=n},linkScales:function(){var i=this,n=i.getMeta(),r=i.chart,u=r.scales,t=i.getDataset(),f=r.options.scales;n.xAxisID!==null&&n.xAxisID in u&&!t.xAxisID||(n.xAxisID=t.xAxisID||f.xAxes[0].id);n.yAxisID!==null&&n.yAxisID in u&&!t.yAxisID||(n.yAxisID=t.yAxisID||f.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(n){return this.chart.scales[n]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&ve(this._data,this)},createMetaDataset:function(){var n=this,t=n.datasetElementType;return t&&new t({_chart:n.chart,_datasetIndex:n.index})},createMetaData:function(n){var t=this,i=t.dataElementType;return i&&new i({_chart:t.chart,_datasetIndex:t.index,_index:n})},addElements:function(){for(var t=this,i=t.getMeta(),f=t.getDataset().data||[],r=i.data,n=0,u=f.length;n<u;++n)r[n]=r[n]||t.createMetaData(n);i.dataset=i.dataset||t.createMetaDataset()},addElementAndReset:function(n){var t=this.createMetaData(n);this.getMeta().data.splice(n,0,t);this.updateElement(t,n,!0)},buildOrUpdateElements:function(){var n=this,i=n.getDataset(),t=i.data||(i.data=[]);n._data!==t&&(n._data&&ve(n._data,n),t&&Object.isExtensible(t)&&il(t,n),n._data=t);n.resyncElements()},_configure:function(){var t=this;t._config=n.merge({},[t.chart.options.datasets[t._type],t.getDataset(),],{merger:function(t,i,r){t!=="_meta"&&t!=="data"&&n._merger(t,i,r)}})},_update:function(n){var t=this;t._configure();t._cachedDataOpts=null;t.update(n)},update:n.noop,transition:function(n){for(var t=this.getMeta(),r=t.data||[],u=r.length,i=0;i<u;++i)r[i].transition(n);t.dataset&&t.dataset.transition(n)},draw:function(){var n=this.getMeta(),i=n.data||[],r=i.length,t=0;for(n.dataset&&n.dataset.draw();t<r;++t)i[t].draw()},getStyle:function(n){var i=this,r=i.getMeta(),u=r.dataset,t;return i._configure(),u&&n===undefined?t=i._resolveDatasetElementOptions(u||{}):(n=n||0,t=i._resolveDataElementOptions(r.data[n]||{},n)),(t.fill===!1||t.fill===null)&&(t.backgroundColor=t.borderColor),t},_resolveDatasetElementOptions:function(n,t){for(var i=this,e=i.chart,c=i._config,l=n.custom||{},a=e.options.elements[i.datasetElementType.prototype._type]||{},o=i._datasetElementOptions,s={},r,f,v={chart:e,dataset:i.getDataset(),datasetIndex:i.index,hover:t},u=0,h=o.length;u<h;++u)r=o[u],f=t?"hover"+r.charAt(0).toUpperCase()+r.slice(1):r,s[r]=fi([l[f],c[f],a[f]],v);return s},_resolveDataElementOptions:function(t,i){var u=this,e=t&&t.custom,v=u._cachedDataOpts;if(v&&!e)return v;var y=u.chart,c=u._config,p=y.options.elements[u.dataElementType.prototype._type]||{},o=u._dataElementOptions,s={},w={chart:y,dataIndex:i,dataset:u.getDataset(),datasetIndex:u.index},l={cacheable:!e},a,f,h,r;if(e=e||{},n.isArray(o))for(f=0,h=o.length;f<h;++f)r=o[f],s[r]=fi([e[r],c[r],p[r]],w,i,l);else for(a=Object.keys(o),f=0,h=a.length;f<h;++f)r=a[f],s[r]=fi([e[r],c[o[r]],c[r],p[r]],w,i,l);return l.cacheable&&(u._cachedDataOpts=Object.freeze(s)),s},removeHoverStyle:function(t){n.merge(t._model,t.$previousStyle||{});delete t.$previousStyle},setHoverStyle:function(t){var r=this.chart.data.datasets[t._datasetIndex],u=t._index,f=t.custom||{},i=t._model,e=n.getHoverColor;t.$previousStyle={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:i.borderWidth};i.backgroundColor=fi([f.hoverBackgroundColor,r.hoverBackgroundColor,e(i.backgroundColor)],undefined,u);i.borderColor=fi([f.hoverBorderColor,r.hoverBorderColor,e(i.borderColor)],undefined,u);i.borderWidth=fi([f.hoverBorderWidth,r.hoverBorderWidth,i.borderWidth],undefined,u)},_removeDatasetHoverStyle:function(){var n=this.getMeta().dataset;n&&this.removeHoverStyle(n)},_setDatasetHoverStyle:function(){var t=this.getMeta().dataset,e={},i,o,n,r,u,f;if(t){for(f=t._model,u=this._resolveDatasetElementOptions(t,!0),r=Object.keys(u),i=0,o=r.length;i<o;++i)n=r[i],e[n]=f[n],f[n]=u[n];t.$previousStyle=e}},resyncElements:function(){var i=this,r=i.getMeta(),u=i.getDataset().data,n=r.data.length,t=u.length;t<n?r.data.splice(t,n-t):t>n&&i.insertElements(n,t-n)},insertElements:function(n,t){for(var i=0;i<t;++i)this.addElementAndReset(n+i)},onDataPush:function(){var n=arguments.length;this.insertElements(this.getDataset().data.length-n,n)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(n,t){this.getMeta().data.splice(n,t);this.insertElements(n,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}});rr.extend=n.inherits;v=rr;k=Math.PI*2;t._set("global",{elements:{arc:{backgroundColor:t.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var fl=nt.extend({_type:"arc",inLabelRange:function(n){var t=this._view;return t?Math.pow(n-t.x,2)<Math.pow(t.radius+t.hoverRadius,2):!1},inRange:function(t,i){var r=this._view,h,c;if(r){for(var o=n.getAngleFromPoint(r,{x:t,y:i}),u=o.angle,s=o.distance,e=r.startAngle,f=r.endAngle;f<e;)f+=k;while(u>f)u-=k;while(u<e)u+=k;return h=u>=e&&u<=f,c=s>=r.innerRadius&&s<=r.outerRadius,h&&c}return!1},getCenterPoint:function(){var n=this._view,t=(n.startAngle+n.endAngle)/2,i=(n.innerRadius+n.outerRadius)/2;return{x:n.x+Math.cos(t)*i,y:n.y+Math.sin(t)*i}},getArea:function(){var n=this._view;return Math.PI*((n.endAngle-n.startAngle)/(2*Math.PI))*(Math.pow(n.outerRadius,2)-Math.pow(n.innerRadius,2))},tooltipPosition:function(){var n=this._view,t=n.startAngle+(n.endAngle-n.startAngle)/2,i=(n.outerRadius-n.innerRadius)/2+n.innerRadius;return{x:n.x+Math.cos(t)*i,y:n.y+Math.sin(t)*i}},draw:function(){var t=this._chart.ctx,i=this._view,u=i.borderAlign==="inner"?.33:0,n={x:i.x,y:i.y,innerRadius:i.innerRadius,outerRadius:Math.max(i.outerRadius-u,0),pixelMargin:u,startAngle:i.startAngle,endAngle:i.endAngle,fullCircles:Math.floor(i.circumference/k)},r;if(t.save(),t.fillStyle=i.backgroundColor,t.strokeStyle=i.borderColor,n.fullCircles){for(n.endAngle=n.startAngle+k,t.beginPath(),t.arc(n.x,n.y,n.outerRadius,n.startAngle,n.endAngle),t.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0),t.closePath(),r=0;r<n.fullCircles;++r)t.fill();n.endAngle=n.startAngle+i.circumference%k}t.beginPath();t.arc(n.x,n.y,n.outerRadius,n.startAngle,n.endAngle);t.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0);t.closePath();t.fill();i.borderWidth&&ul(t,i,n);t.restore()}}),pe=n.valueOrDefault,we=t.global.defaultColor;t._set("global",{elements:{line:{tension:.4,backgroundColor:we,borderWidth:3,borderColor:we,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var el=nt.extend({_type:"line",draw:function(){var s=this,e=s._view,i=s._chart.ctx,a=e.spanGaps,r=s._children.slice(),v=t.global,h=v.elements.line,o=-1,l=s._loop,u,c,f;if(r.length){if(s._loop){for(u=0;u<r.length;++u)if(c=n.previousItem(r,u),!r[u]._view.skip&&c._view.skip){r=r.slice(u).concat(r.slice(0,u));l=a;break}l&&r.push(r[0])}for(i.save(),i.lineCap=e.borderCapStyle||h.borderCapStyle,i.setLineDash&&i.setLineDash(e.borderDash||h.borderDash),i.lineDashOffset=pe(e.borderDashOffset,h.borderDashOffset),i.lineJoin=e.borderJoinStyle||h.borderJoinStyle,i.lineWidth=pe(e.borderWidth,h.borderWidth),i.strokeStyle=e.borderColor||v.defaultColor,i.beginPath(),f=r[0]._view,f.skip||(i.moveTo(f.x,f.y),o=0),u=1;u<r.length;++u)f=r[u]._view,c=o===-1?n.previousItem(r,u):r[o],f.skip||((o===u-1||a)&&o!==-1?n.canvas.lineTo(i,c._view,f):i.moveTo(f.x,f.y),o=u);l&&i.closePath();i.stroke();i.restore()}}}),ol=n.valueOrDefault,be=t.global.defaultColor;t._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:be,borderColor:be,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});de=nt.extend({_type:"point",inRange:function(n,t){var i=this._view;return i?Math.pow(n-i.x,2)+Math.pow(t-i.y,2)<Math.pow(i.hitRadius+i.radius,2):!1},inLabelRange:ke,inXRange:ke,inYRange:sl,getCenterPoint:function(){var n=this._view;return{x:n.x,y:n.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var n=this._view;return{x:n.x,y:n.y,padding:n.radius+n.borderWidth}},draw:function(i){var r=this._view,u=this._chart.ctx,o=r.pointStyle,s=r.rotation,h=r.radius,c=r.x,l=r.y,f=t.global,e=f.defaultColor;r.skip||(i===undefined||n.canvas._isPointInArea(r,i))&&(u.strokeStyle=r.borderColor||e,u.lineWidth=ol(r.borderWidth,f.elements.point.borderWidth),u.fillStyle=r.backgroundColor||e,n.canvas.drawPoint(u,o,h,c,l,s))}});su=t.global.defaultColor;t._set("global",{elements:{rectangle:{backgroundColor:su,borderColor:su,borderSkipped:"bottom",borderWidth:0}}});var al=nt.extend({_type:"rectangle",draw:function(){var n=this._chart.ctx,r=this._view,u=ll(r),t=u.outer,i=u.inner;(n.fillStyle=r.backgroundColor,n.fillRect(t.x,t.y,t.w,t.h),t.w!==i.w||t.h!==i.h)&&(n.save(),n.beginPath(),n.rect(t.x,t.y,t.w,t.h),n.clip(),n.fillStyle=r.borderColor,n.rect(i.x,i.y,i.w,i.h),n.fill("evenodd"),n.restore())},height:function(){var n=this._view;return n.base-n.y},inRange:function(n,t){return li(this._view,n,t)},inLabelRange:function(n,t){var i=this._view;return ur(i)?li(i,n,null):li(i,null,t)},inXRange:function(n){return li(this._view,n,null)},inYRange:function(n){return li(this._view,null,n)},getCenterPoint:function(){var n=this._view,t,i;return ur(n)?(t=n.x,i=(n.y+n.base)/2):(t=(n.x+n.base)/2,i=n.y),{x:t,y:i}},getArea:function(){var n=this._view;return ur(n)?n.width*Math.abs(n.y-n.base):n.height*Math.abs(n.x-n.base)},tooltipPosition:function(){var n=this._view;return{x:n.x,y:n.y}}}),c={},vl=fl,yl=el,pl=de,wl=al;c.Arc=vl;c.Line=yl;c.Point=pl;c.Rectangle=wl;ei=n._deprecated;yt=n.valueOrDefault;t._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}});t._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var to=v.extend({dataElementType:c.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var n=this,i,t;v.prototype.initialize.apply(n,arguments);i=n.getMeta();i.stack=n.getDataset().stack;i.bar=!0;t=n._getIndexScale().options;ei("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage");ei("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness");ei("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage");ei("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength");ei("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(n){var i=this,r=i.getMeta().data,t,u;for(i._ruler=i.getRuler(),t=0,u=r.length;t<u;++t)i.updateElement(r[t],t,n)},updateElement:function(t,i,r){var u=this,e=u.getMeta(),o=u.getDataset(),f=u._resolveDataElementOptions(t,i);t._xScale=u.getScaleForId(e.xAxisID);t._yScale=u.getScaleForId(e.yAxisID);t._datasetIndex=u.index;t._index=i;t._model={backgroundColor:f.backgroundColor,borderColor:f.borderColor,borderSkipped:f.borderSkipped,borderWidth:f.borderWidth,datasetLabel:o.label,label:u.chart.data.labels[i]};n.isArray(o.data[i])&&(t._model.borderSkipped=null);u._updateElementGeometry(t,i,r,f);t.pivot()},_updateElementGeometry:function(n,t,i,r){var u=this,f=n._model,c=u._getValueScale(),s=c.getBasePixel(),e=c.isHorizontal(),l=u._ruler||u.getRuler(),h=u.calculateBarValuePixels(u.index,t,r),o=u.calculateBarIndexPixels(u.index,t,l,r);f.horizontal=e;f.base=i?s:h.base;f.x=e?i?s:h.head:o.center;f.y=e?o.center:i?s:h.head;f.height=e?o.size:undefined;f.width=e?undefined:o.size},_getStacks:function(n){for(var u=this,f=u._getIndexScale(),e=f._getMatchingVisibleMetas(u._type),o=f.options.stacked,s=e.length,r=[],t,i=0;i<s;++i)if(t=e[i],(o===!1||r.indexOf(t.stack)===-1||o===undefined&&t.stack===undefined)&&r.push(t.stack),t.index===n)break;return r},getStackCount:function(){return this._getStacks().length},getStackIndex:function(n,t){var i=this._getStacks(n),r=t!==undefined?i.indexOf(t):-1;return r===-1?i.length-1:r},getRuler:function(){for(var n=this,t=n._getIndexScale(),r=[],i=0,u=n.getMeta().data.length;i<u;++i)r.push(t.getPixelForValue(null,i,n.index));return{pixels:r,start:t._startPixel,end:t._endPixel,stackCount:n.getStackCount(),scale:t}},calculateBarValuePixels:function(n,t,i){var c=this,nt=c.chart,u=c._getValueScale(),w=u.isHorizontal(),b=nt.data.datasets,k=u._getMatchingVisibleMetas(c._type),r=u._parseValue(b[n].data[t]),e=i.minBarLength,d=u.options.stacked,g=c.getMeta().stack,y=r.start===undefined?0:r.max>=0&&r.min>=0?r.min:r.max,p=r.start===undefined?r.end:r.max>=0&&r.min>=0?r.max-r.min:r.min-r.max,tt=k.length,l,a,v,o,s,h,f;if(d||d===undefined&&g!==undefined)for(l=0;l<tt;++l){if(a=k[l],a.index===n)break;a.stack===g&&(f=u._parseValue(b[a.index].data[t]),v=f.start===undefined?f.end:f.min>=0&&f.max>=0?f.max:f.min,(r.min<0&&v<0||r.max>=0&&v>0)&&(y+=v))}return o=u.getPixelForValue(y),s=u.getPixelForValue(y+p),h=s-o,e!==undefined&&Math.abs(h)<e&&(h=e,s=p>=0&&!w||p<0&&w?o-e:o+e),{size:h,base:o,head:s,center:s+h/2}},calculateBarIndexPixels:function(n,t,i,r){var o=this,u=r.barThickness==="flex"?dl(t,i,r):kl(t,i,r),s=o.getStackIndex(n,o.getMeta().stack),f=u.start+u.chunk*s+u.chunk/2,e=Math.min(yt(r.maxBarThickness,Infinity),u.chunk*u.ratio);return{base:f-e/2,head:f+e/2,center:f,size:e}},draw:function(){var t=this,r=t.chart,e=t._getValueScale(),f=t.getMeta().data,o=t.getDataset(),s=f.length,i=0,u;for(n.canvas.clipArea(r.ctx,r.chartArea);i<s;++i)u=e._parseValue(o.data[i]),isNaN(u.min)||isNaN(u.max)||f[i].draw();n.canvas.unclipArea(r.ctx)},_resolveDataElementOptions:function(){var r=this,t=n.extend({},v.prototype._resolveDataElementOptions.apply(r,arguments)),i=r._getIndexScale().options,u=r._getValueScale().options;return t.barPercentage=yt(i.barPercentage,t.barPercentage),t.barThickness=yt(i.barThickness,t.barThickness),t.categoryPercentage=yt(i.categoryPercentage,t.categoryPercentage),t.maxBarThickness=yt(i.maxBarThickness,t.maxBarThickness),t.minBarLength=yt(u.minBarLength,t.minBarLength),t}}),hu=n.valueOrDefault,gl=n.options.resolve;t._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(){return""},label:function(n,t){var i=t.datasets[n.datasetIndex].label||"",r=t.datasets[n.datasetIndex].data[n.index];return i+": ("+n.xLabel+", "+n.yLabel+", "+r.r+")"}}}});var na=v.extend({dataElementType:c.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(t){var i=this,r=i.getMeta(),u=r.data;n.each(u,function(n,r){i.updateElement(n,r,t)})},updateElement:function(n,t,i){var u=this,h=u.getMeta(),a=n.custom||{},f=u.getScaleForId(h.xAxisID),e=u.getScaleForId(h.yAxisID),r=u._resolveDataElementOptions(n,t),o=u.getDataset().data[t],s=u.index,c=i?f.getPixelForDecimal(.5):f.getPixelForValue(typeof o=="object"?o:NaN,t,s),l=i?e.getBasePixel():e.getPixelForValue(o,t,s);n._xScale=f;n._yScale=e;n._options=r;n._datasetIndex=s;n._index=t;n._model={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth,hitRadius:r.hitRadius,pointStyle:r.pointStyle,rotation:r.rotation,radius:i?0:r.radius,skip:a.skip||isNaN(c)||isNaN(l),x:c,y:l};n.pivot()},setHoverStyle:function(t){var i=t._model,r=t._options,u=n.getHoverColor;t.$previousStyle={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:i.borderWidth,radius:i.radius};i.backgroundColor=hu(r.hoverBackgroundColor,u(r.backgroundColor));i.borderColor=hu(r.hoverBorderColor,u(r.borderColor));i.borderWidth=hu(r.hoverBorderWidth,r.borderWidth);i.radius=r.radius+r.hoverRadius},_resolveDataElementOptions:function(t,i){var r=this,f=r.chart,e=r.getDataset(),o=t.custom||{},s=e.data[i]||{},u=v.prototype._resolveDataElementOptions.apply(r,arguments),h={chart:f,dataIndex:i,dataset:e,datasetIndex:r.index};return r._cachedDataOpts===u&&(u=n.extend({},u)),u.radius=gl([o.radius,s.r,r._config.radius,f.options.elements.point.radius],h,i),u}}),fr=n.valueOrDefault,pt=Math.PI,rt=pt*2,wt=pt/2;t._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(n){var i=document.createElement("ul"),f=n.data,r=f.datasets,e=f.labels,t,o,u,s;if(i.setAttribute("class",n.id+"-legend"),r.length)for(t=0,o=r[0].data.length;t<o;++t)u=i.appendChild(document.createElement("li")),s=u.appendChild(document.createElement("span")),s.style.backgroundColor=r[0].backgroundColor[t],e[t]&&u.appendChild(document.createTextNode(e[t]));return i.outerHTML},legend:{labels:{generateLabels:function(n){var t=n.data;return t.labels.length&&t.datasets.length?t.labels.map(function(i,r){var f=n.getDatasetMeta(0),u=f.controller.getStyle(r);return{text:i,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,lineWidth:u.borderWidth,hidden:isNaN(t.datasets[0].data[r])||f.data[r].hidden,index:r}}):[]}},onClick:function(n,t){for(var u=t.index,f=this.chart,r,i=0,e=(f.data.datasets||[]).length;i<e;++i)r=f.getDatasetMeta(i),r.data[u]&&(r.data[u].hidden=!r.data[u].hidden);f.update()}},cutoutPercentage:50,rotation:-wt,circumference:rt,tooltips:{callbacks:{title:function(){return""},label:function(t,i){var r=i.labels[t.index],u=": "+i.datasets[t.datasetIndex].data[t.index];return n.isArray(r)?(r=r.slice(),r[0]+=u):r+=u,r}}}});cu=v.extend({dataElementType:c.Arc,linkScales:n.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth",],getRingIndex:function(n){for(var i=0,t=0;t<n;++t)this.chart.isDatasetVisible(t)&&++i;return i},update:function(n){var i=this,t=i.chart,s=t.chartArea,y=t.options,p=1,w=1,b=0,k=0,d=i.getMeta(),o=d.data,f=y.cutoutPercentage/100||0,g=y.circumference,ot=i._getRingWeight(i.index),nt,tt,r,h,u;if(g<rt){u=y.rotation%rt;u+=u>=pt?-rt:u<-pt?rt:0;var e=u+g,c=Math.cos(u),l=Math.sin(u),a=Math.cos(e),v=Math.sin(e),st=u<=0&&e>=0||e>=rt,ht=u<=wt&&e>=wt||e>=rt+wt,ct=u===-pt||e>=pt,lt=u<=-wt&&e>=-wt||e>=pt+wt,it=ct?-1:Math.min(c,c*f,a,a*f),ut=lt?-1:Math.min(l,l*f,v,v*f),ft=st?1:Math.max(c,c*f,a,a*f),et=ht?1:Math.max(l,l*f,v,v*f);p=(ft-it)/2;w=(et-ut)/2;b=-(ft+it)/2;k=-(et+ut)/2}for(r=0,h=o.length;r<h;++r)o[r]._options=i._resolveDataElementOptions(o[r],r);for(t.borderWidth=i.getMaxBorderWidth(),nt=(s.right-s.left-t.borderWidth)/p,tt=(s.bottom-s.top-t.borderWidth)/w,t.outerRadius=Math.max(Math.min(nt,tt)/2,0),t.innerRadius=Math.max(t.outerRadius*f,0),t.radiusLength=(t.outerRadius-t.innerRadius)/(i._getVisibleDatasetWeightTotal()||1),t.offsetX=b*t.outerRadius,t.offsetY=k*t.outerRadius,d.total=i.calculateTotal(),i.outerRadius=t.outerRadius-t.radiusLength*i._getRingWeightOffset(i.index),i.innerRadius=Math.max(i.outerRadius-t.radiusLength*ot,0),r=0,h=o.length;r<h;++r)i.updateElement(o[r],r,n)},updateElement:function(t,i,r){var u=this,f=u.chart,s=f.chartArea,e=f.options,h=e.animation,a=(s.left+s.right)/2,v=(s.top+s.bottom)/2,y=e.rotation,p=e.rotation,l=u.getDataset(),w=r&&h.animateRotate?0:t.hidden?0:u.calculateCircumference(l.data[i])*(e.circumference/rt),b=r&&h.animateScale?0:u.innerRadius,k=r&&h.animateScale?0:u.outerRadius,c=t._options||{},o;n.extend(t,{_datasetIndex:u.index,_index:i,_model:{backgroundColor:c.backgroundColor,borderColor:c.borderColor,borderWidth:c.borderWidth,borderAlign:c.borderAlign,x:a+f.offsetX,y:v+f.offsetY,startAngle:y,endAngle:p,circumference:w,outerRadius:k,innerRadius:b,label:n.valueAtIndexOrDefault(l.label,i,f.data.labels[i])}});o=t._model;r&&h.animateRotate||(o.startAngle=i===0?e.rotation:u.getMeta().data[i-1]._model.endAngle,o.endAngle=o.startAngle+o.circumference);t.pivot()},calculateTotal:function(){var r=this.getDataset(),u=this.getMeta(),i=0,t;return n.each(u.data,function(n,u){t=r.data[u];isNaN(t)||n.hidden||(i+=Math.abs(t))}),i},calculateCircumference:function(n){var t=this.getMeta().total;return t>0&&!isNaN(n)?rt*(Math.abs(n)/t):0},getMaxBorderWidth:function(n){var l=this,i=0,e=l.chart,t,u,o,s,f,r,h,c;if(!n)for(t=0,u=e.data.datasets.length;t<u;++t)if(e.isDatasetVisible(t)){o=e.getDatasetMeta(t);n=o.data;t!==l.index&&(f=o.controller);break}if(!n)return 0;for(t=0,u=n.length;t<u;++t)s=n[t],f?(f._configure(),r=f._resolveDataElementOptions(s,t)):r=s._options,r.borderAlign!=="inner"&&(h=r.borderWidth,c=r.hoverBorderWidth,i=h>i?h:i,i=c>i?c:i);return i},setHoverStyle:function(t){var i=t._model,r=t._options,u=n.getHoverColor;t.$previousStyle={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:i.borderWidth};i.backgroundColor=fr(r.hoverBackgroundColor,u(r.backgroundColor));i.borderColor=fr(r.hoverBorderColor,u(r.borderColor));i.borderWidth=fr(r.hoverBorderWidth,r.borderWidth)},_getRingWeightOffset:function(n){for(var i=0,t=0;t<n;++t)this.chart.isDatasetVisible(t)&&(i+=this._getRingWeight(t));return i},_getRingWeight:function(n){return Math.max(fr(this.chart.data.datasets[n].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});t._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}});t._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var ta=to.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),ut=n.valueOrDefault,ia=n.options.resolve,lu=n.canvas._isPointInArea;t._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});au=v.extend({datasetElementType:c.Line,dataElementType:c.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(n){var t=this,e=t.getMeta(),r=e.dataset,u=e.data||[],h=t.chart.options,f=t._config,s=t._showLine=ut(f.showLine,h.showLines),i,o;for(t._xScale=t.getScaleForId(e.xAxisID),t._yScale=t.getScaleForId(e.yAxisID),s&&(f.tension!==undefined&&f.lineTension===undefined&&(f.lineTension=f.tension),r._scale=t._yScale,r._datasetIndex=t.index,r._children=u,r._model=t._resolveDatasetElementOptions(r),r.pivot()),i=0,o=u.length;i<o;++i)t.updateElement(u[i],i,n);for(s&&r._model.tension!==0&&t.updateBezierControlPoints(),i=0,o=u.length;i<o;++i)u[i].pivot()},updateElement:function(n,t,i){var u=this,v=u.getMeta(),c=n.custom||{},y=u.getDataset(),e=u.index,o=y.data[t],l=u._xScale,a=u._yScale,f=v.dataset._model,s,h,r=u._resolveDataElementOptions(n,t);s=l.getPixelForValue(typeof o=="object"?o:NaN,t,e);h=i?a.getBasePixel():u.calculatePointY(o,t,e);n._xScale=l;n._yScale=a;n._options=r;n._datasetIndex=e;n._index=t;n._model={x:s,y:h,skip:c.skip||isNaN(s)||isNaN(h),radius:r.radius,pointStyle:r.pointStyle,rotation:r.rotation,backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth,tension:ut(c.tension,f?f.tension:0),steppedLine:f?f.steppedLine:!1,hitRadius:r.hitRadius}},_resolveDatasetElementOptions:function(n){var i=this,r=i._config,e=n.custom||{},u=i.chart.options,f=u.elements.line,t=v.prototype._resolveDatasetElementOptions.apply(i,arguments);return t.spanGaps=ut(r.spanGaps,u.spanGaps),t.tension=ut(r.lineTension,f.tension),t.steppedLine=ia([e.steppedLine,r.steppedLine,f.stepped]),t.clip=ua(ut(r.clip,ra(i._xScale,i._yScale,t.borderWidth))),t},calculatePointY:function(n,t,i){var h=this,c=h.chart,r=h._yScale,l=0,a=0,f,v,u,e,o,s,y;if(r.options.stacked){for(o=+r.getRightValue(n),s=c._getSortedVisibleDatasetMetas(),y=s.length,f=0;f<y;++f){if(u=s[f],u.index===i)break;v=c.data.datasets[u.index];u.type==="line"&&u.yAxisID===r.id&&(e=+r.getRightValue(v.data[t]),e<0?a+=e||0:l+=e||0)}return o<0?r.getPixelForValue(a+o):r.getPixelForValue(l+o)}return r.getPixelForValue(n)},updateBezierControlPoints:function(){function o(n,t,i){return Math.max(Math.min(n,i),t)}var h=this,c=h.chart,l=h.getMeta(),s=l.dataset._model,u=c.chartArea,r=l.data||[],i,e,t,f;if(s.spanGaps&&(r=r.filter(function(n){return!n._model.skip})),s.cubicInterpolationMode==="monotone")n.splineCurveMonotone(r);else for(i=0,e=r.length;i<e;++i)t=r[i]._model,f=n.splineCurve(n.previousItem(r,i)._model,t,n.nextItem(r,i)._model,s.tension),t.controlPointPreviousX=f.previous.x,t.controlPointPreviousY=f.previous.y,t.controlPointNextX=f.next.x,t.controlPointNextY=f.next.y;if(c.options.elements.line.capBezierPoints)for(i=0,e=r.length;i<e;++i)t=r[i]._model,lu(t,u)&&(i>0&&lu(r[i-1]._model,u)&&(t.controlPointPreviousX=o(t.controlPointPreviousX,u.left,u.right),t.controlPointPreviousY=o(t.controlPointPreviousY,u.top,u.bottom)),i<r.length-1&&lu(r[i+1]._model,u)&&(t.controlPointNextX=o(t.controlPointNextX,u.left,u.right),t.controlPointNextY=o(t.controlPointNextY,u.top,u.bottom)))},draw:function(){var u=this,r=u.chart,f=u.getMeta(),o=f.data||[],i=r.chartArea,s=r.canvas,e=0,h=o.length,t;for(u._showLine&&(t=f.dataset._model.clip,n.canvas.clipArea(r.ctx,{left:t.left===!1?0:i.left-t.left,right:t.right===!1?s.width:i.right+t.right,top:t.top===!1?0:i.top-t.top,bottom:t.bottom===!1?s.height:i.bottom+t.bottom}),f.dataset.draw(),n.canvas.unclipArea(r.ctx));e<h;++e)o[e].draw(i)},setHoverStyle:function(t){var i=t._model,r=t._options,u=n.getHoverColor;t.$previousStyle={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:i.borderWidth,radius:i.radius};i.backgroundColor=ut(r.hoverBackgroundColor,u(r.backgroundColor));i.borderColor=ut(r.hoverBorderColor,u(r.borderColor));i.borderWidth=ut(r.hoverBorderWidth,r.borderWidth);i.radius=ut(r.hoverRadius,r.radius)}});ro=n.options.resolve;t._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(n){var i=document.createElement("ul"),f=n.data,r=f.datasets,e=f.labels,t,o,u,s;if(i.setAttribute("class",n.id+"-legend"),r.length)for(t=0,o=r[0].data.length;t<o;++t)u=i.appendChild(document.createElement("li")),s=u.appendChild(document.createElement("span")),s.style.backgroundColor=r[0].backgroundColor[t],e[t]&&u.appendChild(document.createTextNode(e[t]));return i.outerHTML},legend:{labels:{generateLabels:function(n){var t=n.data;return t.labels.length&&t.datasets.length?t.labels.map(function(i,r){var f=n.getDatasetMeta(0),u=f.controller.getStyle(r);return{text:i,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,lineWidth:u.borderWidth,hidden:isNaN(t.datasets[0].data[r])||f.data[r].hidden,index:r}}):[]}},onClick:function(n,t){for(var f=t.index,r=this.chart,u,i=0,e=(r.data.datasets||[]).length;i<e;++i)u=r.getDatasetMeta(i),u.data[f].hidden=!u.data[f].hidden;r.update()}},tooltips:{callbacks:{title:function(){return""},label:function(n,t){return t.labels[n.index]+": "+n.yLabel}}}});uo=v.extend({dataElementType:c.Arc,linkScales:n.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth",],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(n){var i=this,s=i.getDataset(),e=i.getMeta(),o=i.chart.options.startAngle||0,h=i._starts=[],c=i._angles=[],r=e.data,t,u,f;for(i._updateRadius(),e.count=i.countVisibleElements(),t=0,u=s.data.length;t<u;t++)h[t]=o,f=i._computeAngle(t),c[t]=f,o+=f;for(t=0,u=r.length;t<u;++t)r[t]._options=i._resolveDataElementOptions(r[t],t),i.updateElement(r[t],t,n)},_updateRadius:function(){var t=this,n=t.chart,i=n.chartArea,r=n.options,u=Math.min(i.right-i.left,i.bottom-i.top);n.outerRadius=Math.max(u/2,0);n.innerRadius=Math.max(r.cutoutPercentage?n.outerRadius/100*r.cutoutPercentage:1,0);n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount();t.outerRadius=n.outerRadius-n.radiusLength*t.index;t.innerRadius=t.outerRadius-n.radiusLength},updateElement:function(t,i,r){var u=this,o=u.chart,h=u.getDataset(),c=o.options,s=c.animation,f=o.scale,l=o.data.labels,y=f.xCenter,p=f.yCenter,a=c.startAngle,w=t.hidden?0:f.getDistanceFromCenterForValue(h.data[i]),v=u._starts[i],b=v+(t.hidden?0:u._angles[i]),k=s.animateScale?0:f.getDistanceFromCenterForValue(h.data[i]),e=t._options||{};n.extend(t,{_datasetIndex:u.index,_index:i,_scale:f,_model:{backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,borderAlign:e.borderAlign,x:y,y:p,innerRadius:0,outerRadius:r?k:w,startAngle:r&&s.animateRotate?a:v,endAngle:r&&s.animateRotate?a:b,label:n.valueAtIndexOrDefault(l,i,l[i])}});t.pivot()},countVisibleElements:function(){var i=this.getDataset(),r=this.getMeta(),t=0;return n.each(r.data,function(n,r){isNaN(i.data[r])||n.hidden||t++}),t},setHoverStyle:function(t){var i=t._model,r=t._options,f=n.getHoverColor,u=n.valueOrDefault;t.$previousStyle={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:i.borderWidth};i.backgroundColor=u(r.hoverBackgroundColor,f(r.backgroundColor));i.borderColor=u(r.hoverBorderColor,f(r.borderColor));i.borderWidth=u(r.hoverBorderWidth,r.borderWidth)},_computeAngle:function(n){var t=this,u=this.getMeta().count,i=t.getDataset(),f=t.getMeta(),r;return isNaN(i.data[n])||f.data[n].hidden?0:(r={chart:t.chart,dataIndex:n,dataset:i,datasetIndex:t.index},ro([t.chart.options.elements.arc.angle,2*Math.PI/u],r,n))}});t._set("pie",n.clone(t.doughnut));t._set("pie",{cutoutPercentage:0});fo=cu;st=n.valueOrDefault;t._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});eo=v.extend({datasetElementType:c.Line,dataElementType:c.Point,linkScales:n.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(n){var i=this,o=i.getMeta(),r=o.dataset,u=o.data||[],s=i.chart.scale,f=i._config,t,e;for(f.tension!==undefined&&f.lineTension===undefined&&(f.lineTension=f.tension),r._scale=s,r._datasetIndex=i.index,r._children=u,r._loop=!0,r._model=i._resolveDatasetElementOptions(r),r.pivot(),t=0,e=u.length;t<e;++t)i.updateElement(u[t],t,n);for(i.updateBezierControlPoints(),t=0,e=u.length;t<e;++t)u[t].pivot()},updateElement:function(n,t,i){var u=this,e=n.custom||{},l=u.getDataset(),f=u.chart.scale,o=f.getPointPositionForValue(t,l.data[t]),r=u._resolveDataElementOptions(n,t),s=u.getMeta().dataset._model,h=i?f.xCenter:o.x,c=i?f.yCenter:o.y;n._scale=f;n._options=r;n._datasetIndex=u.index;n._index=t;n._model={x:h,y:c,skip:e.skip||isNaN(h)||isNaN(c),radius:r.radius,pointStyle:r.pointStyle,rotation:r.rotation,backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth,tension:st(e.tension,s?s.tension:0),hitRadius:r.hitRadius}},_resolveDatasetElementOptions:function(){var n=this,i=n._config,r=n.chart.options,t=v.prototype._resolveDatasetElementOptions.apply(n,arguments);return t.spanGaps=st(i.spanGaps,r.spanGaps),t.tension=st(i.lineTension,r.elements.line.tension),t},updateBezierControlPoints:function(){function e(n,t,i){return Math.max(Math.min(n,i),t)}var o=this,s=o.getMeta(),t=o.chart.chartArea,r=s.data||[],u,h,i,f;for(s.dataset._model.spanGaps&&(r=r.filter(function(n){return!n._model.skip})),u=0,h=r.length;u<h;++u)i=r[u]._model,f=n.splineCurve(n.previousItem(r,u,!0)._model,i,n.nextItem(r,u,!0)._model,i.tension),i.controlPointPreviousX=e(f.previous.x,t.left,t.right),i.controlPointPreviousY=e(f.previous.y,t.top,t.bottom),i.controlPointNextX=e(f.next.x,t.left,t.right),i.controlPointNextY=e(f.next.y,t.top,t.bottom)},setHoverStyle:function(t){var i=t._model,r=t._options,u=n.getHoverColor;t.$previousStyle={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:i.borderWidth,radius:i.radius};i.backgroundColor=st(r.hoverBackgroundColor,u(r.backgroundColor));i.borderColor=st(r.hoverBorderColor,u(r.borderColor));i.borderWidth=st(r.hoverBorderWidth,r.borderWidth);i.radius=st(r.hoverRadius,r.radius)}});t._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(n){return"("+n.xLabel+", "+n.yLabel+")"}}}});t._set("global",{datasets:{scatter:{showLine:!1}}});oo=au;vu={bar:to,bubble:na,doughnut:cu,horizontalBar:ta,line:au,polarArea:uo,pie:fo,radar:eo,scatter:oo};kt={modes:{single:function(n,t){var r=bt(t,n),i=[];return ai(n,function(n){if(n.inRange(r.x,r.y))return i.push(n),i}),i.slice(0,1)},label:bu,index:bu,dataset:function(n,t,i){var u=bt(t,n),f,r;return i.axis=i.axis||"xy",f=wu(i.axis),r=i.intersect?yu(n,u):pu(n,u,!1,f),r.length>0&&(r=n.getDatasetMeta(r[0]._datasetIndex).data),r},"x-axis":function(n,t){return bu(n,t,{intersect:!1})},point:function(n,t){var i=bt(t,n);return yu(n,i)},nearest:function(n,t,i){var u=bt(t,n),r;return i.axis=i.axis||"xy",r=wu(i.axis),pu(n,u,i.intersect,r)},x:function(n,t,i){var r=bt(t,n),u=[],f=!1;return ai(n,function(n){n.inXRange(r.x)&&u.push(n);n.inRange(r.x,r.y)&&(f=!0)}),i.intersect&&!f&&(u=[]),u},y:function(n,t,i){var r=bt(t,n),u=[],f=!1;return ai(n,function(n){n.inYRange(r.y)&&u.push(n);n.inRange(r.x,r.y)&&(f=!0)}),i.intersect&&!f&&(u=[]),u}}};er=n.extend;t._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var w={defaults:{},addBox:function(n,t){n.boxes||(n.boxes=[]);t.fullWidth=t.fullWidth||!1;t.position=t.position||"top";t.weight=t.weight||0;t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]};n.boxes.push(t)},removeBox:function(n,t){var i=n.boxes?n.boxes.indexOf(t):-1;i!==-1&&n.boxes.splice(i,1)},configure:function(n,t,i){for(var f=["fullWidth","position","weight"],e=f.length,u=0,r;u<e;++u)r=f[u],i.hasOwnProperty(r)&&(t[r]=i[r])},update:function(t,i,r){if(t){var a=t.options.layout||{},f=n.options.toPadding(a.padding),h=i-f.width,c=r-f.height,o=oa(t.boxes),s=o.vertical,l=o.horizontal,e=Object.freeze({outerWidth:i,outerHeight:r,padding:f,availableWidth:h,vBoxMaxWidth:h/2/s.length,hBoxMaxHeight:c/2}),u=er({maxPadding:er({},f),w:h,h:c,x:f.left,y:f.top},f);ea(s.concat(l),e);sr(s,u,e);sr(l,u,e)&&sr(s,u,e);ha(u);ho(o.leftAndTop,u,e);u.x+=u.w;u.y+=u.h;ho(o.rightAndBottom,u,e);t.chartArea={left:u.left,top:u.top,right:u.left+u.w,bottom:u.top+u.h};n.each(o.chartArea,function(n){var i=n.box;er(i,t.chartArea);i.update(u.w,u.h)})}}},la={acquireContext:function(n){return n&&n.canvas&&(n=n.canvas),n&&n.getContext("2d")||null}},aa=Object.freeze({__proto__:null,"default":"/*\n * DOM element rendering detection\n * https://davidwalsh.name/detect-node-insertion\n */\n@keyframes chartjs-render-animation {\n\tfrom { opacity: 0.99; }\n\tto { opacity: 1; }\n}\n\n.chartjs-render-monitor {\n\tanimation: chartjs-render-animation 0.001s;\n}\n\n/*\n * DOM element resizing detection\n * https://github.com/marcj/css-element-queries\n */\n.chartjs-size-monitor,\n.chartjs-size-monitor-expand,\n.chartjs-size-monitor-shrink {\n\tposition: absolute;\n\tdirection: ltr;\n\tleft: 0;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\toverflow: hidden;\n\tpointer-events: none;\n\tvisibility: hidden;\n\tz-index: -1;\n}\n\n.chartjs-size-monitor-expand > div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n"}),va=oh(aa),e="$chartjs",ku="chartjs-",du=ku+"size-monitor",co=ku+"render-monitor",ya=ku+"render-animation",lo=["animationstart","webkitAnimationStart"],pa={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};vo=function(){var n=!1,t;try{t=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("e",null,t)}catch(i){}return n}();gu=vo?{passive:!0}:!1;rf={disableCSSInjection:!1,_enabled:typeof window!="undefined"&&typeof document!="undefined",_ensureLoaded:function(n){if(!this.disableCSSInjection){var t=n.getRootNode?n.getRootNode():document,i=t.host?t:document.head;rv(i,va)}},acquireContext:function(n,t){typeof n=="string"?n=document.getElementById(n):n.length&&(n=n[0]);n&&n.canvas&&(n=n.canvas);var i=n&&n.getContext&&n.getContext("2d");return i&&i.canvas===n?(this._ensureLoaded(n),wa(n,t),i):null},releaseContext:function(t){var i=t.canvas,r;i[e]&&(r=i[e].initial,["height","width"].forEach(function(t){var u=r[t];n.isNullOrUndef(u)?i.removeAttribute(t):i.setAttribute(t,u)}),n.each(r.style||{},function(n,t){i.style[t]=n}),i.width=i.width,delete i[e])},addEventListener:function(n,t,i){var r=n.canvas;if(t==="resize"){tv(r,i,n);return}var u=i[e]||(i[e]={}),f=u.proxies||(u.proxies={}),o=f[n.id+"_"+t]=function(t){i(ba(t,n))};yi(r,t,o)},removeEventListener:function(n,t,i){var r=n.canvas;if(t==="resize"){iv(r);return}var f=i[e]||{},o=f.proxies||{},u=o[n.id+"_"+t];u&&nf(r,t,u)}};n.addEvent=yi;n.removeEvent=nf;yo=rf._enabled?rf:la;dt=n.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},yo);t._set("global",{plugins:{}});var u={_plugins:[],_cacheId:0,register:function(n){var t=this._plugins;[].concat(n).forEach(function(n){t.indexOf(n)===-1&&t.push(n)});this._cacheId++},unregister:function(n){var t=this._plugins;[].concat(n).forEach(function(n){var i=t.indexOf(n);i!==-1&&t.splice(i,1)});this._cacheId++},clear:function(){this._plugins=[];this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(n,t,i){for(var s=this.descriptors(n),h=s.length,u,f,e,o,r=0;r<h;++r)if(u=s[r],f=u.plugin,o=f[t],typeof o=="function"&&(e=[n].concat(i||[]),e.push(u.options),o.apply(f,e)===!1))return!1;return!0},descriptors:function(i){var r=i.$plugins||(i.$plugins={});if(r.id===this._cacheId)return r.descriptors;var e=[],u=[],f=i&&i.config||{},o=f.options&&f.options.plugins||{};return this._plugins.concat(f.plugins||[]).forEach(function(i){var s=e.indexOf(i),f,r;s===-1&&(f=i.id,r=o[f],r!==!1)&&(r===!0&&(r=n.clone(t.global.plugins[f])),e.push(i),u.push({plugin:i,options:r||{}}))}),r.descriptors=u,r.id=this._cacheId,u},_invalidate:function(n){delete n.$plugins}},wi={constructors:{},defaults:{},registerScaleType:function(t,i,r){this.constructors[t]=i;this.defaults[t]=n.clone(r)},getScaleConstructor:function(n){return this.constructors.hasOwnProperty(n)?this.constructors[n]:undefined},getScaleDefaults:function(i){return this.defaults.hasOwnProperty(i)?n.merge({},[t.scale,this.defaults[i]]):{}},updateScaleDefaults:function(t,i){var r=this;r.defaults.hasOwnProperty(t)&&(r.defaults[t]=n.extend(r.defaults[t],i))},addScalesToLayout:function(t){n.each(t.scales,function(n){n.fullWidth=n.options.fullWidth;n.position=n.options.position;n.weight=n.options.weight;w.addBox(t,n)})}},ft=n.valueOrDefault,uf=n.rtl.getRtlAdapter;t._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(n,t){var r="",u=t.labels,f=u?u.length:0,i;return n.length>0&&(i=n[0],i.label?r=i.label:i.xLabel?r=i.xLabel:f>0&&i.index<f&&(r=u[i.index])),r},afterTitle:n.noop,beforeBody:n.noop,beforeLabel:n.noop,label:function(t,i){var r=i.datasets[t.datasetIndex].label||"";return r&&(r+=": "),r+(n.isNullOrUndef(t.value)?t.yLabel:t.value)},labelColor:function(n,t){var r=t.getDatasetMeta(n.datasetIndex),u=r.data[n.index],i=u._view;return{borderColor:i.borderColor,backgroundColor:i.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:n.noop,afterBody:n.noop,beforeFooter:n.noop,footer:n.noop,afterFooter:n.noop}}});ff={average:function(n){var i,u;if(!n.length)return!1;for(var e=0,o=0,r=0,t=0,f=n.length;t<f;++t)i=n[t],i&&i.hasValue()&&(u=i.tooltipPosition(),e+=u.x,o+=u.y,++r);return{x:e/r,y:o/r}},nearest:function(t,i){for(var s=i.x,h=i.y,c=Number.POSITIVE_INFINITY,f,r,a,e,o,u=0,l=t.length;u<l;++u)r=t[u],r&&r.hasValue()&&(a=r.getCenterPoint(),e=n.distanceBetweenPoints(i,a),e<c&&(c=e,f=r));return f&&(o=f.tooltipPosition(),s=o.x,h=o.y),{x:s,y:h}}};var sv=nt.extend({initialize:function(){this._model=po(this._options);this._lastActive=[]},getTitle:function(){var t=this,r=t._options,i=r.callbacks,u=i.beforeTitle.apply(t,arguments),f=i.title.apply(t,arguments),e=i.afterTitle.apply(t,arguments),n=[];return n=tt(n,et(u)),n=tt(n,et(f)),tt(n,et(e))},getBeforeBody:function(){return wo(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,i){var r=this,u=r._options.callbacks,f=[];return n.each(t,function(n){var t={before:[],lines:[],after:[]};tt(t.before,et(u.beforeLabel.call(r,n,i)));tt(t.lines,u.label.call(r,n,i));tt(t.after,et(u.afterLabel.call(r,n,i)));f.push(t)}),f},getAfterBody:function(){return wo(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this,i=t._options.callbacks,r=i.beforeFooter.apply(t,arguments),u=i.footer.apply(t,arguments),f=i.afterFooter.apply(t,arguments),n=[];return n=tt(n,et(r)),n=tt(n,et(u)),tt(n,et(f))},update:function(t){var r=this,f=r._options,e=r._model,i=r._model=po(f),c=r._active,o=r._data,l={xAlign:e.xAlign,yAlign:e.yAlign},v={x:e.x,y:e.y},s={width:e.width,height:e.height},h={x:e.caretX,y:e.caretY},a,w,y,p,u;if(c.length){for(i.opacity=1,y=[],p=[],h=ff[f.position].call(r,c,r._eventPosition),u=[],a=0,w=c.length;a<w;++a)u.push(uv(c[a]));f.filter&&(u=u.filter(function(n){return f.filter(n,o)}));f.itemSort&&(u=u.sort(function(n,t){return f.itemSort(n,t,o)}));n.each(u,function(n){y.push(f.callbacks.labelColor.call(r,n,r._chart));p.push(f.callbacks.labelTextColor.call(r,n,r._chart))});i.title=r.getTitle(u,o);i.beforeBody=r.getBeforeBody(u,o);i.body=r.getBody(u,o);i.afterBody=r.getAfterBody(u,o);i.footer=r.getFooter(u,o);i.x=h.x;i.y=h.y;i.caretPadding=f.caretPadding;i.labelColors=y;i.labelTextColors=p;i.dataPoints=u;s=fv(this,i);l=ev(this,s);v=ov(i,s,l,r._chart)}else i.opacity=0;return i.xAlign=l.xAlign,i.yAlign=l.yAlign,i.x=v.x,i.y=v.y,i.width=s.width,i.height=s.height,i.caretX=h.x,i.caretY=h.y,r._model=i,t&&f.custom&&f.custom.call(r,i),r},drawCaret:function(n,t){var r=this._chart.ctx,u=this._view,i=this.getCaretPosition(n,t,u);r.lineTo(i.x1,i.y1);r.lineTo(i.x2,i.y2);r.lineTo(i.x3,i.y3)},getCaretPosition:function(n,t,i){var u,f,o,e,s,h,r=i.caretSize,v=i.cornerRadius,l=i.xAlign,y=i.yAlign,c=n.x,a=n.y,p=t.width,w=t.height,b;return y==="center"?(s=a+w/2,l==="left"?(u=c,f=u-r,o=u,e=s+r,h=s-r):(u=c+p,f=u+r,o=u,e=s-r,h=s+r)):(l==="left"?(f=c+v+r,u=f-r,o=f+r):l==="right"?(f=c+p-v-r,u=f-r,o=f+r):(f=i.caretX,u=f-r,o=f+r),y==="top"?(e=a,s=e-r,h=e):(e=a+w,s=e+r,h=e,b=o,o=u,u=b)),{x1:u,x2:f,x3:o,y1:e,y2:s,y3:h}},drawTitle:function(t,i,r){var h=i.title,e=h.length,f,o,u,s;if(e)for(s=uf(i.rtl,i.x,i.width),t.x=hr(i,i._titleAlign),r.textAlign=s.textAlign(i._titleAlign),r.textBaseline="middle",f=i.titleFontSize,o=i.titleSpacing,r.fillStyle=i.titleFontColor,r.font=n.fontString(f,i._titleFontStyle,i._titleFontFamily),u=0;u<e;++u)r.fillText(h[u],s.x(t.x),t.y+f/2),t.y+=f+o,u+1===e&&(t.y+=i.titleMarginBottom-o)},drawBody:function(t,i,r){var u=i.bodyFontSize,b=i.bodySpacing,l=i._bodyAlign,k=i.body,a=i.displayColors,v=0,tt=a?hr(i,"left"):0,f=uf(i.rtl,i.x,i.width),o=function(n){r.fillText(n,f.x(t.x+v),t.y+u/2);t.y+=u+b},s,y,p,w,e,h,d,g,nt=f.textAlign(l),c;for(r.textAlign=l,r.textBaseline="middle",r.font=n.fontString(u,i._bodyFontStyle,i._bodyFontFamily),t.x=hr(i,nt),r.fillStyle=i.bodyFontColor,n.each(i.beforeBody,o),v=a&&nt!=="right"?l==="center"?u/2+1:u+2:0,e=0,d=k.length;e<d;++e){for(s=k[e],y=i.labelTextColors[e],p=i.labelColors[e],r.fillStyle=y,n.each(s.before,o),w=s.lines,h=0,g=w.length;h<g;++h)a&&(c=f.x(tt),r.fillStyle=i.legendColorBackground,r.fillRect(f.leftForLtr(c,u),t.y,u,u),r.lineWidth=1,r.strokeStyle=p.borderColor,r.strokeRect(f.leftForLtr(c,u),t.y,u,u),r.fillStyle=p.backgroundColor,r.fillRect(f.leftForLtr(f.xPlus(c,1),u-2),t.y+1,u-2,u-2),r.fillStyle=y),o(w[h]);n.each(s.after,o)}v=0;n.each(i.afterBody,o);t.y-=b},drawFooter:function(t,i,r){var o=i.footer,s=o.length,u,f,e;if(s)for(e=uf(i.rtl,i.x,i.width),t.x=hr(i,i._footerAlign),t.y+=i.footerMarginTop,r.textAlign=e.textAlign(i._footerAlign),r.textBaseline="middle",u=i.footerFontSize,r.fillStyle=i.footerFontColor,r.font=n.fontString(u,i._footerFontStyle,i._footerFontFamily),f=0;f<s;++f)r.fillText(o[f],e.x(t.x),t.y+u/2),t.y+=u+i.footerSpacing},drawBackground:function(n,t,i,r){i.fillStyle=t.backgroundColor;i.strokeStyle=t.borderColor;i.lineWidth=t.borderWidth;var c=t.xAlign,h=t.yAlign,u=n.x,f=n.y,o=r.width,s=r.height,e=t.cornerRadius;i.beginPath();i.moveTo(u+e,f);h==="top"&&this.drawCaret(n,r);i.lineTo(u+o-e,f);i.quadraticCurveTo(u+o,f,u+o,f+e);h==="center"&&c==="right"&&this.drawCaret(n,r);i.lineTo(u+o,f+s-e);i.quadraticCurveTo(u+o,f+s,u+o-e,f+s);h==="bottom"&&this.drawCaret(n,r);i.lineTo(u+e,f+s);i.quadraticCurveTo(u,f+s,u,f+s-e);h==="center"&&c==="left"&&this.drawCaret(n,r);i.lineTo(u,f+e);i.quadraticCurveTo(u,f,u+e,f);i.closePath();i.fill();t.borderWidth>0&&i.stroke()},draw:function(){var i=this._chart.ctx,t=this._view;if(t.opacity!==0){var u={width:t.width,height:t.height},r={x:t.x,y:t.y},f=Math.abs(t.opacity<.001)?0:t.opacity,e=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&e&&(i.save(),i.globalAlpha=f,this.drawBackground(r,t,i,u),r.y+=t.yPadding,n.rtl.overrideTextDirection(i,t.textDirection),this.drawTitle(r,t,i),this.drawBody(r,t,i),this.drawFooter(r,t,i),n.rtl.restoreTextDirection(i,t.textDirection),i.restore())}},handleEvent:function(t){var i=this,r=i._options,u=!1;return i._lastActive=i._lastActive||[],t.type==="mouseout"?i._active=[]:(i._active=i._chart.getElementsAtEventForMode(t,r.mode,r),r.reverse&&i._active.reverse()),u=!n.arrayEquals(i._active,i._lastActive),u&&(i._lastActive=i._active,(r.enabled||r.custom)&&(i._eventPosition={x:t.x,y:t.y},i.update(!0),i.pivot())),u}}),hv=ff,ef=sv;ef.positioners=hv;cr=n.valueOrDefault;t._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});ot=function(n,t){return this.construct(n,t),this};n.extend(ot.prototype,{construct:function(t,i){var r=this;i=cv(i);var f=dt.acquireContext(t,i),u=f&&f.canvas,e=u&&u.height,o=u&&u.width;if(r.id=n.uid(),r.ctx=f,r.canvas=u,r.config=i,r.width=o,r.height=e,r.aspectRatio=e?o/e:null,r.options=i.options,r._bufferedRender=!1,r._layers=[],r.chart=r,r.controller=r,ot.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(n){r.config.data=n}}),!f||!u){console.error("Failed to create chart: can't acquire context from the given item");return}r.initialize();r.update()},initialize:function(){var t=this;return u.notify(t,"beforeInit"),n.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.initToolTip(),u.notify(t,"afterInit"),t},clear:function(){return n.canvas.clear(this),this},stop:function(){return ou.cancelAnimation(this),this},resize:function(t){var i=this,f=i.options,r=i.canvas,h=f.maintainAspectRatio&&i.aspectRatio||null,e=Math.max(0,Math.floor(n.getMaximumWidth(r))),o=Math.max(0,Math.floor(h?e/h:n.getMaximumHeight(r))),s;if((i.width!==e||i.height!==o)&&(r.width=i.width=e,r.height=i.height=o,r.style.width=e+"px",r.style.height=o+"px",n.retinaScale(i,f.devicePixelRatio),!t)){if(s={width:e,height:o},u.notify(i,"resize",[s]),f.onResize)f.onResize(i,s);i.stop();i.update({duration:f.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var r=this.options,t=r.scales||{},i=r.scale;n.each(t.xAxes,function(n,i){n.id||(n.id=ko(t.xAxes,"x-axis-",i))});n.each(t.yAxes,function(n,i){n.id||(n.id=ko(t.yAxes,"y-axis-",i))});i&&(i.id=i.id||"scale")},buildOrUpdateScales:function(){var t=this,r=t.options,i=t.scales||{},u=[],f=Object.keys(i).reduce(function(n,t){return n[t]=!1,n},{});r.scales&&(u=u.concat((r.scales.xAxes||[]).map(function(n){return{options:n,dtype:"category",dposition:"bottom"}}),(r.scales.yAxes||[]).map(function(n){return{options:n,dtype:"linear",dposition:"left"}})));r.scale&&u.push({options:r.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"});n.each(u,function(n){var u=n.options,e=u.id,o=cr(u.type,n.dtype),r,s;if(go(u.position)!==go(n.dposition)&&(u.position=n.dposition),f[e]=!0,r=null,e in i&&i[e].type===o)r=i[e],r.options=u,r.ctx=t.ctx,r.chart=t;else{if(s=wi.getScaleConstructor(o),!s)return;r=new s({id:e,type:o,options:u,ctx:t.ctx,chart:t});i[r.id]=r}r.mergeTicksOptions();n.isDefault&&(t.scale=r)});n.each(f,function(n,t){n||delete i[t]});t.scales=i;wi.addScalesToLayout(this)},buildOrUpdateControllers:function(){for(var i=this,u=[],f=i.data.datasets,r,t=0,e=f.length;t<e;t++){var o=f[t],n=i.getDatasetMeta(t),s=o.type||i.config.type;if(n.type&&n.type!==s&&(i.destroyDatasetMeta(t),n=i.getDatasetMeta(t)),n.type=s,n.order=o.order||0,n.index=t,n.controller)n.controller.updateIndex(t),n.controller.linkScales();else{if(r=vu[n.type],r===undefined)throw new Error('"'+n.type+'" is not a chart type.');n.controller=new r(i,t);u.push(n.controller)}}return u},resetElements:function(){var t=this;n.each(t.data.datasets,function(n,i){t.getDatasetMeta(i).controller.reset()},t)},reset:function(){this.resetElements();this.tooltip.initialize()},update:function(t){var i=this,r,f,e;if(t&&typeof t=="object"||(t={duration:t,lazy:arguments[1]}),lv(i),u._invalidate(i),u.notify(i,"beforeUpdate")!==!1){for(i.tooltip._data=i.data,e=i.buildOrUpdateControllers(),r=0,f=i.data.datasets.length;r<f;r++)i.getDatasetMeta(r).controller.buildOrUpdateElements();i.updateLayout();i.options.animation&&i.options.animation.duration&&n.each(e,function(n){n.reset()});i.updateDatasets();i.tooltip.initialize();i.lastActive=[];u.notify(i,"afterUpdate");i._layers.sort(ns("z","_idx"));i._bufferedRender?i._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:i.render(t)}},updateLayout:function(){var t=this;u.notify(t,"beforeLayout")!==!1&&(w.update(this,this.width,this.height),t._layers=[],n.each(t.boxes,function(n){n._configure&&n._configure();t._layers.push.apply(t._layers,n._layers())},t),t._layers.forEach(function(n,t){n._idx=t}),u.notify(t,"afterScaleUpdate"),u.notify(t,"afterLayout"))},updateDatasets:function(){var n=this,t,i;if(u.notify(n,"beforeDatasetsUpdate")!==!1){for(t=0,i=n.data.datasets.length;t<i;++t)n.updateDataset(t);u.notify(n,"afterDatasetsUpdate")}},updateDataset:function(n){var t=this,i=t.getDatasetMeta(n),r={meta:i,index:n};u.notify(t,"beforeDatasetUpdate",[r])!==!1&&(i.controller._update(),u.notify(t,"afterDatasetUpdate",[r]))},render:function(t){var i=this,e,o;t&&typeof t=="object"||(t={duration:t,lazy:arguments[1]});var r=i.options.animation,f=cr(t.duration,r&&r.duration),s=t.lazy;if(u.notify(i,"beforeRender")!==!1)return e=function(t){u.notify(i,"afterRender");n.callback(r&&r.onComplete,[t],i)},r&&f?(o=new eu({numSteps:f/16.66,easing:t.easing||r.easing,render:function(t,i){var f=n.easing.effects[i.easing],r=i.currentStep,u=r/i.numSteps;t.draw(f(u),u,r)},onAnimationProgress:r.onProgress,onAnimationComplete:e}),ou.addAnimation(i,o,f,s)):(i.draw(),e(new eu({numSteps:0,chart:i}))),i},draw:function(t){var i=this,r,f;if((i.clear(),n.isNullOrUndef(t)&&(t=1),i.transition(t),!(i.width<=0)&&!(i.height<=0))&&u.notify(i,"beforeDraw",[t])!==!1){for(f=i._layers,r=0;r<f.length&&f[r].z<=0;++r)f[r].draw(i.chartArea);for(i.drawDatasets(t);r<f.length;++r)f[r].draw(i.chartArea);i._drawTooltip(t);u.notify(i,"afterDraw",[t])}},transition:function(n){for(var t=this,i=0,r=(t.data.datasets||[]).length;i<r;++i)t.isDatasetVisible(i)&&t.getDatasetMeta(i).controller.transition(n);t.tooltip.transition(n)},_getSortedDatasetMetas:function(n){for(var i=this,f=i.data.datasets||[],r=[],t=0,u=f.length;t<u;++t)(!n||i.isDatasetVisible(t))&&r.push(i.getDatasetMeta(t));return r.sort(ns("order","index")),r},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(n){var t=this,r,i;if(u.notify(t,"beforeDatasetsDraw",[n])!==!1){for(r=t._getSortedVisibleDatasetMetas(),i=r.length-1;i>=0;--i)t.drawDataset(r[i],n);u.notify(t,"afterDatasetsDraw",[n])}},drawDataset:function(n,t){var i=this,r={meta:n,index:n.index,easingValue:t};u.notify(i,"beforeDatasetDraw",[r])!==!1&&(n.controller.draw(t),u.notify(i,"afterDatasetDraw",[r]))},_drawTooltip:function(n){var t=this,i=t.tooltip,r={tooltip:i,easingValue:n};u.notify(t,"beforeTooltipDraw",[r])!==!1&&(i.draw(),u.notify(t,"afterTooltipDraw",[r]))},getElementAtEvent:function(n){return kt.modes.single(this,n)},getElementsAtEvent:function(n){return kt.modes.label(this,n,{intersect:!0})},getElementsAtXAxis:function(n){return kt.modes["x-axis"](this,n,{intersect:!0})},getElementsAtEventForMode:function(n,t,i){var r=kt.modes[t];return typeof r=="function"?r(this,n,i):[]},getDatasetAtEvent:function(n){return kt.modes.dataset(this,n,{intersect:!0})},getDatasetMeta:function(n){var r=this,t=r.data.datasets[n],i;return t._meta||(t._meta={}),i=t._meta[r.id],i||(i=t._meta[r.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t.order||0,index:n}),i},getVisibleDatasetCount:function(){for(var t=0,n=0,i=this.data.datasets.length;n<i;++n)this.isDatasetVisible(n)&&t++;return t},isDatasetVisible:function(n){var t=this.getDatasetMeta(n);return typeof t.hidden=="boolean"?!t.hidden:!this.data.datasets[n].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(n){var i=this.id,t=this.data.datasets[n],r=t._meta&&t._meta[i];r&&(r.controller.destroy(),delete t._meta[i])},destroy:function(){var t=this,f=t.canvas,i,r;for(t.stop(),i=0,r=t.data.datasets.length;i<r;++i)t.destroyDatasetMeta(i);f&&(t.unbindEvents(),n.canvas.clear(t),dt.releaseContext(t.ctx),t.canvas=null,t.ctx=null);u.notify(t,"destroy");delete ot.instances[t.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var n=this;n.tooltip=new ef({_chart:n,_chartInstance:n,_data:n.data,_options:n.options.tooltips},n)},bindEvents:function(){var t=this,r=t._listeners={},i=function(){t.eventHandler.apply(t,arguments)};n.each(t.options.events,function(n){dt.addEventListener(t,n,i);r[n]=i});t.options.responsive&&(i=function(){t.resize()},dt.addEventListener(t,"resize",i),r.resize=i)},unbindEvents:function(){var t=this,i=t._listeners;i&&(delete t._listeners,n.each(i,function(n,i){dt.removeEventListener(t,i,n)}))},updateHoverStyle:function(n,t,i){for(var f=i?"set":"remove",r,u=0,e=n.length;u<e;++u)r=n[u],r&&this.getDatasetMeta(r._datasetIndex).controller[f+"HoverStyle"](r);t==="dataset"&&this.getDatasetMeta(n[0]._datasetIndex).controller["_"+f+"DatasetHoverStyle"]()},eventHandler:function(n){var t=this,i=t.tooltip,r,f;if(u.notify(t,"beforeEvent",[n])!==!1)return t._bufferedRender=!0,t._bufferedRequest=null,r=t.handleEvent(n),i&&(r=i._start?i.handleEvent(n):r|i.handleEvent(n)),u.notify(t,"afterEvent",[n]),f=t._bufferedRequest,f?t.render(f):r&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t},handleEvent:function(t){var i=this,r=i.options||{},u=r.hover,f=!1;return i.lastActive=i.lastActive||[],i.active=t.type==="mouseout"?[]:i.getElementsAtEventForMode(t,u.mode,u),n.callback(r.onHover||r.hover.onHover,[t.native,i.active],i),(t.type==="mouseup"||t.type==="click")&&r.onClick&&r.onClick.call(i,t.native,i.active),i.lastActive.length&&i.updateHoverStyle(i.lastActive,u.mode,!1),i.active.length&&u.mode&&i.updateHoverStyle(i.active,u.mode,!0),f=!n.arrayEquals(i.active,i.lastActive),i.lastActive=i.active,f}});ot.instances={};i=ot;ot.Controller=ot;ot.types={};n.configMerge=of;n.scaleMerge=bo;ts=function(){function i(n,t,i){var r;return typeof n=="string"?(r=parseInt(n,10),n.indexOf("%")!==-1&&(r=r/100*t.parentNode[i])):r=n,r}function r(n){return n!==undefined&&n!==null&&n!=="none"}function u(t,u,f){var e=document.defaultView,o=n._getParentNode(t),s=e.getComputedStyle(t)[u],h=e.getComputedStyle(o)[u],c=r(s),l=r(h),a=Number.POSITIVE_INFINITY;return c||l?Math.min(c?i(s,t,f):a,l?i(h,o,f):a):"none"}n.where=function(t,i){if(n.isArray(t)&&Array.prototype.filter)return t.filter(i);var r=[];return n.each(t,function(n){i(n)&&r.push(n)}),r};n.findIndex=Array.prototype.findIndex?function(n,t,i){return n.findIndex(t,i)}:function(n,t,i){i=i===undefined?n:i;for(var r=0,u=n.length;r<u;++r)if(t.call(i,n[r],r,n))return r;return-1};n.findNextWhere=function(t,i,r){var u,f;for(n.isNullOrUndef(r)&&(r=-1),u=r+1;u<t.length;u++)if(f=t[u],i(f))return f};n.findPreviousWhere=function(t,i,r){var u,f;for(n.isNullOrUndef(r)&&(r=t.length),u=r-1;u>=0;u--)if(f=t[u],i(f))return f};n.isNumber=function(n){return!isNaN(parseFloat(n))&&isFinite(n)};n.almostEquals=function(n,t,i){return Math.abs(n-t)<i};n.almostWhole=function(n,t){var i=Math.round(n);return i-t<=n&&i+t>=n};n.max=function(n){return n.reduce(function(n,t){return isNaN(t)?n:Math.max(n,t)},Number.NEGATIVE_INFINITY)};n.min=function(n){return n.reduce(function(n,t){return isNaN(t)?n:Math.min(n,t)},Number.POSITIVE_INFINITY)};n.sign=Math.sign?function(n){return Math.sign(n)}:function(n){return(n=+n,n===0||isNaN(n))?n:n>0?1:-1};n.toRadians=function(n){return n*(Math.PI/180)};n.toDegrees=function(n){return n*(180/Math.PI)};n._decimalPlaces=function(t){if(n.isFinite(t)){for(var i=1,r=0;Math.round(t*i)/i!==t;)i*=10,r++;return r}};n.getAngleFromPoint=function(n,t){var i=t.x-n.x,r=t.y-n.y,f=Math.sqrt(i*i+r*r),u=Math.atan2(r,i);return u<-.5*Math.PI&&(u+=2*Math.PI),{angle:u,distance:f}};n.distanceBetweenPoints=function(n,t){return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))};n.aliasPixel=function(n){return n%2==0?0:.5};n._alignPixel=function(n,t,i){var r=n.currentDevicePixelRatio,u=i/2;return Math.round((t-u)*r)/r+u};n.splineCurve=function(n,t,i,r){var f=n.skip?t:n,u=t,e=i.skip?t:i,h=Math.sqrt(Math.pow(u.x-f.x,2)+Math.pow(u.y-f.y,2)),c=Math.sqrt(Math.pow(e.x-u.x,2)+Math.pow(e.y-u.y,2)),o=h/(h+c),s=c/(h+c),l,a;return o=isNaN(o)?0:o,s=isNaN(s)?0:s,l=r*o,a=r*s,{previous:{x:u.x-l*(e.x-f.x),y:u.y-l*(e.y-f.y)},next:{x:u.x+a*(e.x-f.x),y:u.y+a*(e.y-f.y)}}};n.EPSILON=Number.EPSILON||1e-14;n.splineCurveMonotone=function(t){for(var e=(t||[]).map(function(n){return{model:n._model,deltaK:0,mK:0}}),s=e.length,f,i,u,h,c,l,a,v,o,r=0;r<s;++r)(i=e[r],i.model.skip)||(f=r>0?e[r-1]:null,u=r<s-1?e[r+1]:null,u&&!u.model.skip&&(h=u.model.x-i.model.x,i.deltaK=h!==0?(u.model.y-i.model.y)/h:0),i.mK=!f||f.model.skip?i.deltaK:!u||u.model.skip?f.deltaK:this.sign(f.deltaK)!==this.sign(i.deltaK)?0:(f.deltaK+i.deltaK)/2);for(r=0;r<s-1;++r)if(i=e[r],u=e[r+1],!i.model.skip&&!u.model.skip){if(n.almostEquals(i.deltaK,0,this.EPSILON)){i.mK=u.mK=0;continue}(c=i.mK/i.deltaK,l=u.mK/i.deltaK,v=Math.pow(c,2)+Math.pow(l,2),v<=9)||(a=3/Math.sqrt(v),i.mK=c*a*i.deltaK,u.mK=l*a*i.deltaK)}for(r=0;r<s;++r)(i=e[r],i.model.skip)||(f=r>0?e[r-1]:null,u=r<s-1?e[r+1]:null,f&&!f.model.skip&&(o=(i.model.x-f.model.x)/3,i.model.controlPointPreviousX=i.model.x-o,i.model.controlPointPreviousY=i.model.y-o*i.mK),u&&!u.model.skip&&(o=(u.model.x-i.model.x)/3,i.model.controlPointNextX=i.model.x+o,i.model.controlPointNextY=i.model.y+o*i.mK))};n.nextItem=function(n,t,i){return i?t>=n.length-1?n[0]:n[t+1]:t>=n.length-1?n[n.length-1]:n[t+1]};n.previousItem=function(n,t,i){return i?t<=0?n[n.length-1]:n[t-1]:t<=0?n[0]:n[t-1]};n.niceNum=function(t,i){var u=Math.floor(n.log10(t)),r=t/Math.pow(10,u),f;return f=i?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10,f*Math.pow(10,u)};n.requestAnimFrame=function(){return typeof window=="undefined"?function(n){n()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(n){return window.setTimeout(n,1e3/60)}}();n.getRelativePosition=function(t,i){var f,e,s=t.originalEvent||t,r=t.target||t.srcElement,u=r.getBoundingClientRect(),o=s.touches;o&&o.length>0?(f=o[0].clientX,e=o[0].clientY):(f=s.clientX,e=s.clientY);var h=parseFloat(n.getStyle(r,"padding-left")),c=parseFloat(n.getStyle(r,"padding-top")),l=parseFloat(n.getStyle(r,"padding-right")),a=parseFloat(n.getStyle(r,"padding-bottom")),v=u.right-u.left-h-l,y=u.bottom-u.top-c-a;return f=Math.round((f-u.left-h)/v*r.width/i.currentDevicePixelRatio),e=Math.round((e-u.top-c)/y*r.height/i.currentDevicePixelRatio),{x:f,y:e}};n.getConstraintWidth=function(n){return u(n,"max-width","clientWidth")};n.getConstraintHeight=function(n){return u(n,"max-height","clientHeight")};n._calculatePadding=function(t,i,r){return i=n.getStyle(t,i),i.indexOf("%")>-1?r*parseInt(i,10)/100:parseInt(i,10)};n._getParentNode=function(n){var t=n.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t};n.getMaximumWidth=function(t){var i=n._getParentNode(t);if(!i)return t.clientWidth;var r=i.clientWidth,e=n._calculatePadding(i,"padding-left",r),o=n._calculatePadding(i,"padding-right",r),u=r-e-o,f=n.getConstraintWidth(t);return isNaN(f)?u:Math.min(u,f)};n.getMaximumHeight=function(t){var i=n._getParentNode(t);if(!i)return t.clientHeight;var r=i.clientHeight,e=n._calculatePadding(i,"padding-top",r),o=n._calculatePadding(i,"padding-bottom",r),u=r-e-o,f=n.getConstraintHeight(t);return isNaN(f)?u:Math.min(u,f)};n.getStyle=function(n,t){return n.currentStyle?n.currentStyle[t]:document.defaultView.getComputedStyle(n,null).getPropertyValue(t)};n.retinaScale=function(n,t){var r=n.currentDevicePixelRatio=t||typeof window!="undefined"&&window.devicePixelRatio||1;if(r!==1){var i=n.canvas,u=n.height,f=n.width;i.height=u*r;i.width=f*r;n.ctx.scale(r,r);i.style.height||i.style.width||(i.style.height=u+"px",i.style.width=f+"px")}};n.fontString=function(n,t,i){return t+" "+n+"px "+i};n.longestText=function(t,i,r,u){var h,o,s,v,f,l,y,e,c,a;for(u=u||{},h=u.data=u.data||{},o=u.garbageCollect=u.garbageCollect||[],u.font!==i&&(h=u.data={},o=u.garbageCollect=[],u.font=i),t.font=i,s=0,v=r.length,f=0;f<v;f++)if(e=r[f],e!==undefined&&e!==null&&n.isArray(e)!==!0)s=n.measureText(t,h,o,s,e);else if(n.isArray(e))for(l=0,y=e.length;l<y;l++)c=e[l],c===undefined||c===null||n.isArray(c)||(s=n.measureText(t,h,o,s,c));if(a=o.length/2,a>r.length){for(f=0;f<a;f++)delete h[o[f]];o.splice(0,a)}return s};n.measureText=function(n,t,i,r,u){var f=t[u];return f||(f=t[u]=n.measureText(u).width,i.push(u)),f>r&&(r=f),r};n.numberOfLabelLines=function(t){var i=1;return n.each(t,function(t){n.isArray(t)&&t.length>i&&(i=t.length)}),i};n.color=nr?function(n){return n instanceof CanvasGradient&&(n=t.global.defaultColor),nr(n)}:function(n){return console.error("Color.js not found!"),n};n.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:n.color(t).saturate(.5).darken(.1).rgbString()}};n.extend(lr.prototype,{formats:gt,parse:gt,format:gt,add:gt,diff:gt,startOf:gt,endOf:gt,_create:function(n){return n}});lr.override=function(t){n.extend(lr.prototype,t)};var av=lr,sf={_date:av},bi={formatters:{values:function(t){return n.isArray(t)?t:""+t},linear:function(t,i,r){var o=r.length>3?r[2]-r[1]:r[1]-r[0],s,u,h,c,f,e;return Math.abs(o)>1&&t!==Math.floor(t)&&(o=t-Math.floor(t)),s=n.log10(Math.abs(o)),u="",t!==0?(h=Math.max(Math.abs(r[0]),Math.abs(r[r.length-1])),h<.0001?(c=n.log10(Math.abs(t)),f=Math.floor(c)-Math.floor(s),f=Math.max(Math.min(f,20),0),u=t.toExponential(f)):(e=-1*Math.floor(s),e=Math.max(Math.min(e,20),0),u=t.toFixed(e))):u="0",u},logarithmic:function(t,i,r){var u=t/Math.pow(10,Math.floor(n.log10(t)));return t===0?"0":u===1||u===2||u===5||i===0||i===r.length-1?t.toExponential():""}}},ni=n.isArray,ki=n.isNullOrUndef,ti=n.valueOrDefault,oi=n.valueAtIndexOrDefault;t._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:"",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:bi.formatters.values,minor:{},major:{}}});vr=nt.extend({zeroLineIndex:0,getPadding:function(){var n=this;return{left:n.paddingLeft||0,top:n.paddingTop||0,right:n.paddingRight||0,bottom:n.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var n=this.chart.data;return this.options.labels||(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){n.callback(this.options.beforeUpdate,[this])},update:function(t,i,r){var u=this,e=u.options.ticks,c=e.sampleSize,o,l,s,f,h;if(u.beforeUpdate(),u.maxWidth=t,u.maxHeight=i,u.margins=n.extend({left:0,right:0,top:0,bottom:0},r),u._ticks=null,u.ticks=null,u._labelSizes=null,u._maxLabelLines=0,u.longestLabelWidth=0,u.longestTextCache=u.longestTextCache||{},u._gridLineItems=null,u._labelItems=null,u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),f=u.buildTicks()||[],f=u.afterBuildTicks(f)||f,(!f||!f.length)&&u.ticks)for(f=[],o=0,l=u.ticks.length;o<l;++o)f.push({value:u.ticks[o],major:!1});return u._ticks=f,h=c<f.length,s=u._convertTicksToLabels(h?vv(f,c):f),u._configure(),u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u._ticksToDraw=e.display&&(e.autoSkip||e.source==="auto")?u._autoSkip(f):f,h&&(s=u._convertTicksToLabels(u._ticksToDraw)),u.ticks=s,u.afterUpdate(),u.minSize},_configure:function(){var n=this,r=n.options.ticks.reverse,t,i;n.isHorizontal()?(t=n.left,i=n.right):(t=n.top,i=n.bottom,r=!r);n._startPixel=t;n._endPixel=i;n._reversePixels=r;n._length=i-t},afterUpdate:function(){n.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){n.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var n=this;n.isHorizontal()?(n.width=n.maxWidth,n.left=0,n.right=n.width):(n.height=n.maxHeight,n.top=0,n.bottom=n.height);n.paddingLeft=0;n.paddingTop=0;n.paddingRight=0;n.paddingBottom=0},afterSetDimensions:function(){n.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){n.callback(this.options.beforeDataLimits,[this])},determineDataLimits:n.noop,afterDataLimits:function(){n.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){n.callback(this.options.beforeBuildTicks,[this])},buildTicks:n.noop,afterBuildTicks:function(t){var i=this;return ni(t)&&t.length?n.callback(i.options.afterBuildTicks,[i,t]):(i.ticks=n.callback(i.options.afterBuildTicks,[i,i.ticks])||i.ticks,t)},beforeTickToLabelConversion:function(){n.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var n=this,t=n.options.ticks;n.ticks=n.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){n.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){n.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t=this,i=t.options,f=i.ticks,e=t.getTicks().length,o=f.minRotation||0,v=f.maxRotation,s=o,r,u,h,l,c,y,a;if(!t._isVisible()||!f.display||o>=v||e<=1||!t.isHorizontal()){t.labelRotation=o;return}r=t._getLabelSizes();u=r.widest.width;h=r.highest.height-r.highest.offset;l=Math.min(t.maxWidth,t.chart.width-u);c=i.offset?t.maxWidth/e:l/(e-1);u+6>c&&(c=l/(e-(i.offset?.5:1)),y=t.maxHeight-di(i.gridLines)-f.padding-hf(i.scaleLabel),a=Math.sqrt(u*u+h*h),s=n.toDegrees(Math.min(Math.asin(Math.min((r.highest.height+6)/c,1)),Math.asin(Math.min(y/a,1))-Math.asin(h/a))),s=Math.max(o,Math.min(v,s)));t.labelRotation=s},afterCalculateTickRotation:function(){n.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){n.callback(this.options.beforeFit,[this])},fit:function(){var t=this,i=t.minSize={width:0,height:0},b=t.chart,e=t.options,o=e.ticks,k=e.scaleLabel,d=e.gridLines,c=t._isVisible(),g=e.position==="bottom",s=t.isHorizontal(),v,y,p,w,ft;if(s?i.width=t.maxWidth:c&&(i.width=di(d)+hf(k)),s?c&&(i.height=di(d)+hf(k)):i.height=t.maxHeight,o.display&&c){var et=cf(o),h=t._getLabelSizes(),r=h.first,u=h.last,nt=h.widest,tt=h.highest,it=et.minor.lineHeight*.4,rt=o.padding;if(s){var l=t.labelRotation!==0,ut=n.toRadians(t.labelRotation),a=Math.cos(ut),f=Math.sin(ut),ot=f*nt.width+a*(tt.height-(l?tt.offset:0))+(l?0:it);i.height=Math.min(t.maxHeight,i.height+ot+rt);v=t.getPixelForTick(0)-t.left;y=t.right-t.getPixelForTick(t.getTicks().length-1);l?(p=g?a*r.width+f*r.offset:f*(r.height-r.offset),w=g?f*(u.height-u.offset):a*u.width+f*u.offset):(p=r.width/2,w=u.width/2);t.paddingLeft=Math.max((p-v)*t.width/(t.width-v),0)+3;t.paddingRight=Math.max((w-y)*t.width/(t.width-y),0)+3}else ft=o.mirror?0:nt.width+rt+it,i.width=Math.min(t.maxWidth,i.width+ft),t.paddingTop=r.height/2,t.paddingBottom=u.height/2}t.handleMargins();s?(t.width=t._length=b.width-t.margins.left-t.margins.right,t.height=i.height):(t.width=i.width,t.height=t._length=b.height-t.margins.top-t.margins.bottom)},handleMargins:function(){var n=this;n.margins&&(n.margins.left=Math.max(n.paddingLeft,n.margins.left),n.margins.top=Math.max(n.paddingTop,n.margins.top),n.margins.right=Math.max(n.paddingRight,n.margins.right),n.margins.bottom=Math.max(n.paddingBottom,n.margins.bottom))},afterFit:function(){n.callback(this.options.afterFit,[this])},isHorizontal:function(){var n=this.options.position;return n==="top"||n==="bottom"},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(n){if(ki(n))return NaN;if((typeof n=="number"||n instanceof Number)&&!isFinite(n))return NaN;if(n)if(this.isHorizontal()){if(n.x!==undefined)return this.getRightValue(n.x)}else if(n.y!==undefined)return this.getRightValue(n.y);return n},_convertTicksToLabels:function(n){var t=this,r,i,u;for(t.ticks=n.map(function(n){return n.value}),t.beforeTickToLabelConversion(),r=t.convertTicksToLabels(n)||t.ticks,t.afterTickToLabelConversion(),i=0,u=n.length;i<u;++i)n[i].label=r[i];return r},_getLabelSizes:function(){var n=this,t=n._labelSizes;return t||(n._labelSizes=t=wv(n.ctx,cf(n.options.ticks),n.getTicks(),n.longestTextCache),n.longestLabelWidth=t.widest.width),t},_parseValue:function(n){var t,i,r,u;return ni(n)?(t=+this.getRightValue(n[0]),i=+this.getRightValue(n[1]),r=Math.min(t,i),u=Math.max(t,i)):(n=+this.getRightValue(n),t=undefined,i=n,r=n,u=n),{min:r,max:u,start:t,end:i}},_getScaleLabel:function(n){var t=this._parseValue(n);return t.start!==undefined?"["+t.start+", "+t.end+"]":+this.getRightValue(n)},getLabelForIndex:n.noop,getPixelForValue:n.noop,getValueForPixel:n.noop,getPixelForTick:function(n){var t=this,i=t.options.offset,r=t._ticks.length,u=1/Math.max(r-(i?0:1),1);return n<0||n>r-1?null:t.getPixelForDecimal(n*u+(i?u/2:0))},getPixelForDecimal:function(n){var t=this;return t._reversePixels&&(n=1-n),t._startPixel+n*t._length},getDecimalForPixel:function(n){var t=(n-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var n=this,t=n.min,i=n.max;return n.beginAtZero?0:t<0&&i<0?i:t>0&&i>0?t:0},_autoSkip:function(t){var o=this,l=o.options.ticks,a=o._length,s=l.maxTicksLimit||a/o._tickSize()+1,i=l.major.enabled?dv(t):[],r=i.length,h=i[0],c=i[r-1],u,v,f,e;if(r>s)return gv(t,i,r/s),lf(t);if(f=kv(i,t,a,s),r>0){for(u=0,v=r-1;u<v;u++)ar(t,f,i[u],i[u+1]);return e=r>1?(c-h)/(r-1):null,ar(t,f,n.isNullOrUndef(e)?0:h-e,h),ar(t,f,c,n.isNullOrUndef(e)?t.length:c+e),lf(t)}return ar(t,f),lf(t)},_tickSize:function(){var t=this,h=t.options.ticks,o=n.toRadians(t.labelRotation),i=Math.abs(Math.cos(o)),r=Math.abs(Math.sin(o)),u=t._getLabelSizes(),s=h.autoSkipPadding||0,f=u?u.widest.width+s:0,e=u?u.highest.height+s:0;return t.isHorizontal()?e*i>f*r?f/i:e/r:e*r<f*i?e/i:f/r},_isVisible:function(){var t=this,i=t.chart,u=t.options.display,n,f,r;if(u!=="auto")return!!u;for(n=0,f=i.data.datasets.length;n<f;++n)if(i.isDatasetVisible(n)&&(r=i.getDatasetMeta(n),r.xAxisID===t.id||r.yAxisID===t.id))return!0;return!1},_computeGridLineItems:function(t){var i=this,st=i.chart,d=i.options,r=d.gridLines,g=d.position,nt=r.offsetGridLines,at=i.isHorizontal(),tt=i._ticksToDraw,ht=tt.length+(nt?1:0),s=di(r),h=[],ct=r.drawBorder?oi(r.lineWidth,0,0):0,e=ct/2,lt=n._alignPixel,o=function(n){return lt(st,n,ct)},u,f,it,rt,ut,c,l,a,v,y,p,w,b,k,ft,et,ot;for(g==="top"?(u=o(i.bottom),l=i.bottom-s,v=u-e,p=o(t.top)+e,b=t.bottom):g==="bottom"?(u=o(i.top),p=t.top,b=o(t.bottom)-e,l=u+e,v=i.top+s):g==="left"?(u=o(i.right),c=i.right-s,a=u-e,y=o(t.left)+e,w=t.right):(u=o(i.left),y=t.left,w=o(t.right)-e,c=u+e,a=i.left+s),f=0;f<ht;++f)(it=tt[f]||{},ki(it.label)&&f<tt.length)||(f===i.zeroLineIndex&&d.offset===nt?(k=r.zeroLineWidth,ft=r.zeroLineColor,et=r.zeroLineBorderDash||[],ot=r.zeroLineBorderDashOffset||0):(k=oi(r.lineWidth,f,1),ft=oi(r.color,f,"rgba(0,0,0,0.1)"),et=r.borderDash||[],ot=r.borderDashOffset||0),rt=yv(i,it._index||f,nt),rt!==undefined)&&(ut=lt(st,rt,k),at?c=a=y=w=ut:l=v=p=b=ut,h.push({tx1:c,ty1:l,tx2:a,ty2:v,x1:y,y1:p,x2:w,y2:b,width:k,color:ft,borderDash:et,borderDashOffset:ot}));return h.ticksLength=ht,h.borderValue=u,h},_computeLabelItems:function(){var t=this,p=t.options,e=p.ticks,o=p.position,s=e.mirror,rt=t.isHorizontal(),g=t._ticksToDraw,nt=cf(e),h=e.padding,c=di(p.gridLines),i=-n.toRadians(t.labelRotation),tt=[],r,it,l,u,a,v,f,w,b,y,k,d;for(o==="top"?(v=t.bottom-c-h,f=i?"left":"center"):o==="bottom"?(v=t.top+c+h,f=i?"right":"center"):o==="left"?(a=t.right-(s?0:c)-h,f=s?"left":"right"):(a=t.left+(s?0:c)+h,f=s?"right":"left"),r=0,it=g.length;r<it;++r)(l=g[r],u=l.label,ki(u))||(w=t.getPixelForTick(l._index||r)+e.labelOffset,b=l.major?nt.major:nt.minor,y=b.lineHeight,k=ni(u)?u.length:1,rt?(a=w,d=o==="top"?((i?1:.5)-k)*y:(i?0:.5)*y):(v=w,d=(1-k)*y/2),tt.push({x:a,y:v,rotation:i,label:u,font:b,textOffset:d,textAlign:f}));return tt},_drawGrid:function(t){var u=this,f=u.options.gridLines;if(f.display){for(var i=u.ctx,e=u.chart,o=n._alignPixel,a=f.drawBorder?oi(f.lineWidth,0,0):0,s=u._gridLineItems||(u._gridLineItems=u._computeGridLineItems(t)),v,y,r,h=0,d=s.length;h<d;++h)r=s[h],v=r.width,y=r.color,v&&y&&(i.save(),i.lineWidth=v,i.strokeStyle=y,i.setLineDash&&(i.setLineDash(r.borderDash),i.lineDashOffset=r.borderDashOffset),i.beginPath(),f.drawTicks&&(i.moveTo(r.tx1,r.ty1),i.lineTo(r.tx2,r.ty2)),f.drawOnChartArea&&(i.moveTo(r.x1,r.y1),i.lineTo(r.x2,r.y2)),i.stroke(),i.restore());if(a){var c=a,l=oi(f.lineWidth,s.ticksLength-1,1),g=s.borderValue,p,w,b,k;u.isHorizontal()?(p=o(e,u.left,c)-c/2,w=o(e,u.right,l)+l/2,b=k=g):(b=o(e,u.top,c)-c/2,k=o(e,u.bottom,l)+l/2,p=w=g);i.lineWidth=a;i.strokeStyle=oi(f.color,0);i.beginPath();i.moveTo(p,b);i.lineTo(w,k);i.stroke()}}},_drawLabels:function(){var i=this,l=i.options.ticks,n,s,u,f,h,c,t,e,r,o;if(l.display)for(n=i.ctx,s=i._labelItems||(i._labelItems=i._computeLabelItems()),u=0,h=s.length;u<h;++u){if(t=s[u],e=t.font,n.save(),n.translate(t.x,t.y),n.rotate(t.rotation),n.font=e.string,n.fillStyle=e.color,n.textBaseline="middle",n.textAlign=t.textAlign,r=t.label,o=t.textOffset,ni(r))for(f=0,c=r.length;f<c;++f)n.fillText(""+r[f],0,o),o+=e.lineHeight;else n.fillText(r,0,o);n.restore()}},_drawTitle:function(){var i=this,r=i.ctx,c=i.options,u=c.scaleLabel,h;if(u.display){var y=ti(u.fontColor,t.global.defaultFontColor),l=n.options._parseFont(u),f=n.options.toPadding(u.padding),e=l.lineHeight/2,a=c.position,v=0,o,s;i.isHorizontal()?(o=i.left+i.width/2,s=a==="bottom"?i.bottom-e-f.bottom:i.top+e+f.top):(h=a==="left",o=h?i.left+e+f.top:i.right-e-f.top,s=i.top+i.height/2,v=h?-.5*Math.PI:.5*Math.PI);r.save();r.translate(o,s);r.rotate(v);r.textAlign="center";r.textBaseline="middle";r.fillStyle=y;r.font=l.string;r.fillText(u.labelString,0,0);r.restore()}},draw:function(n){var t=this;t._isVisible()&&(t._drawGrid(n),t._drawTitle(),t._drawLabels())},_layers:function(){var n=this,t=n.options,i=t.ticks&&t.ticks.z||0,r=t.gridLines&&t.gridLines.z||0;return!n._isVisible()||i===r||n.draw!==n._draw?[{z:i,draw:function(){n.draw.apply(n,arguments)}}]:[{z:r,draw:function(){n._drawGrid.apply(n,arguments);n._drawTitle.apply(n,arguments)}},{z:i,draw:function(){n._drawLabels.apply(n,arguments)}}]},_getMatchingVisibleMetas:function(n){var t=this,i=t.isHorizontal();return t.chart._getSortedVisibleDatasetMetas().filter(function(r){return(!n||r.type===n)&&(i?r.xAxisID===t.id:r.yAxisID===t.id)})}});vr.prototype._draw=vr.prototype.draw;var l=vr,af=n.isNullOrUndef,rs=l.extend({determineDataLimits:function(){var n=this,i=n._getLabels(),f=n.options.ticks,e=f.min,o=f.max,r=0,u=i.length-1,t;e!==undefined&&(t=i.indexOf(e),t>=0&&(r=t));o!==undefined&&(t=i.indexOf(o),t>=0&&(u=t));n.minIndex=r;n.maxIndex=u;n.min=i[r];n.max=i[u]},buildTicks:function(){var n=this,t=n._getLabels(),i=n.minIndex,r=n.maxIndex;n.ticks=i===0&&r===t.length-1?t:t.slice(i,r+1)},getLabelForIndex:function(n,t){var i=this,r=i.chart;return r.getDatasetMeta(t).controller._getValueScaleId()===i.id?i.getRightValue(r.data.datasets[t].data[n]):i._getLabels()[n]},_configure:function(){var n=this,t=n.options.offset,i=n.ticks;(l.prototype._configure.call(n),n.isHorizontal()||(n._reversePixels=!n._reversePixels),i)&&(n._startValue=n.minIndex-(t?.5:0),n._valueRange=Math.max(i.length-(t?0:1),1))},getPixelForValue:function(t,i,r){var u=this,f,o,e;return af(i)||af(r)||(t=u.chart.data.datasets[r].data[i]),af(t)||(f=u.isHorizontal()?t.x:t.y),(f!==undefined||t!==undefined&&isNaN(i))&&(o=u._getLabels(),t=n.valueOrDefault(f,t),e=o.indexOf(t),i=e!==-1?e:i,isNaN(i)&&(i=t)),u.getPixelForDecimal((i-u._startValue)/u._valueRange)},getPixelForTick:function(n){var t=this.ticks;return n<0||n>t.length-1?null:this.getPixelForValue(t[n],n+this.minIndex)},getValueForPixel:function(n){var t=this,i=Math.round(t._startValue+t.getDecimalForPixel(n)*t._valueRange);return Math.min(Math.max(i,0),t.ticks.length-1)},getBasePixel:function(){return this.bottom}});rs._defaults={position:"bottom"};us=n.noop;ht=n.isNullOrUndef;var yr=l.extend({getRightValue:function(n){return typeof n=="string"?+n:l.prototype.getRightValue.call(this,n)},handleTickRangeOptions:function(){var t=this,o=t.options,i=o.ticks,r,u,f,e;i.beginAtZero&&(r=n.sign(t.min),u=n.sign(t.max),r<0&&u<0?t.max=0:r>0&&u>0&&(t.min=0));f=i.min!==undefined||i.suggestedMin!==undefined;e=i.max!==undefined||i.suggestedMax!==undefined;i.min!==undefined?t.min=i.min:i.suggestedMin!==undefined&&(t.min=t.min===null?i.suggestedMin:Math.min(t.min,i.suggestedMin));i.max!==undefined?t.max=i.max:i.suggestedMax!==undefined&&(t.max=t.max===null?i.suggestedMax:Math.max(t.max,i.suggestedMax));f!==e&&t.min>=t.max&&(f?t.max=t.min+1:t.min=t.max-1);t.min===t.max&&(t.max++,i.beginAtZero||t.min--)},getTickLimit:function(){var t=this,u=t.options.ticks,r=u.stepSize,i=u.maxTicksLimit,n;return r?n=Math.ceil(t.max/r)-Math.floor(t.min/r)+1:(n=t._computeTickLimit(),i=i||11),i&&(n=Math.min(i,n)),n},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:us,buildTicks:function(){var t=this,e=t.options,i=e.ticks,u=t.getTickLimit(),f,r;u=Math.max(2,u);f={maxTicks:u,min:i.min,max:i.max,precision:i.precision,stepSize:n.valueOrDefault(i.fixedStepSize,i.stepSize)};r=t.ticks=ny(f,t);t.handleDirectionalChanges();t.max=n.max(r);t.min=n.min(r);i.reverse?(r.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var n=this;n.ticksAsNumbers=n.ticks.slice();n.zeroLineIndex=n.ticks.indexOf(0);l.prototype.convertTicksToLabels.call(n)},_configure:function(){var n=this,u=n.getTicks(),t=n.min,i=n.max,r;l.prototype._configure.call(n);n.options.offset&&u.length&&(r=(i-t)/Math.max(u.length-1,1)/2,t-=r,i+=r);n._startValue=t;n._endValue=i;n._valueRange=i-t}}),ty={position:"left",ticks:{callback:bi.formatters.linear}},iy=0,ry=1;vf=yr.extend({determineDataLimits:function(){var t=this,c=t.options,l=t.chart,a=l.data.datasets,f=t._getMatchingVisibleMetas(),u=c.stacked,s={},h=f.length,i,r,e,o;if(t.min=Number.POSITIVE_INFINITY,t.max=Number.NEGATIVE_INFINITY,u===undefined)for(i=0;!u&&i<h;++i)r=f[i],u=r.stack!==undefined;for(i=0;i<h;++i)r=f[i],e=a[r.index].data,u?fy(t,s,r,e):ey(t,r,e);n.each(s,function(i){o=i.pos.concat(i.neg);t.min=Math.min(t.min,n.min(o));t.max=Math.max(t.max,n.max(o))});t.min=n.isFinite(t.min)&&!isNaN(t.min)?t.min:iy;t.max=n.isFinite(t.max)&&!isNaN(t.max)?t.max:ry;t.handleTickRangeOptions()},_computeTickLimit:function(){var t=this,i;return t.isHorizontal()?Math.ceil(t.width/40):(i=n.options._parseFont(t.options.ticks),Math.ceil(t.height/i.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(n,t){return this._getScaleLabel(this.chart.data.datasets[t].data[n])},getPixelForValue:function(n){var t=this;return t.getPixelForDecimal((+t.getRightValue(n)-t._startValue)/t._valueRange)},getValueForPixel:function(n){return this._startValue+this.getDecimalForPixel(n)*this._valueRange},getPixelForTick:function(n){var t=this.ticksAsNumbers;return n<0||n>t.length-1?null:this.getPixelForValue(t[n])}});fs=ty;vf._defaults=fs;pr=n.valueOrDefault;o=n.math.log10;es={position:"left",ticks:{callback:bi.formatters.logarithmic}};yf=l.extend({determineDataLimits:function(){function p(n){return w?n.xAxisID===t.id:n.yAxisID===t.id}var t=this,y=t.options,e=t.chart,s=e.data.datasets,w=t.isHorizontal(),i,f,r,o,u,c,l,h,a,v;if(t.min=Number.POSITIVE_INFINITY,t.max=Number.NEGATIVE_INFINITY,t.minNotZero=Number.POSITIVE_INFINITY,l=y.stacked,l===undefined)for(i=0;i<s.length;i++)if(f=e.getDatasetMeta(i),e.isDatasetVisible(i)&&p(f)&&f.stack!==undefined){l=!0;break}if(y.stacked||l){for(h={},i=0;i<s.length;i++)if(f=e.getDatasetMeta(i),a=[f.type,y.stacked===undefined&&f.stack===undefined?i:"",f.stack].join("."),e.isDatasetVisible(i)&&p(f))for(h[a]===undefined&&(h[a]=[]),o=s[i].data,u=0,c=o.length;u<c;u++)(v=h[a],r=t._parseValue(o[u]),isNaN(r.min)||isNaN(r.max)||f.data[u].hidden||r.min<0||r.max<0)||(v[u]=v[u]||0,v[u]+=r.max);n.each(h,function(i){if(i.length>0){var r=n.min(i),u=n.max(i);t.min=Math.min(t.min,r);t.max=Math.max(t.max,u)}})}else for(i=0;i<s.length;i++)if(f=e.getDatasetMeta(i),e.isDatasetVisible(i)&&p(f))for(o=s[i].data,u=0,c=o.length;u<c;u++)(r=t._parseValue(o[u]),isNaN(r.min)||isNaN(r.max)||f.data[u].hidden||r.min<0||r.max<0)||(t.min=Math.min(r.min,t.min),t.max=Math.max(r.max,t.max),r.min!==0&&(t.minNotZero=Math.min(r.min,t.minNotZero)));t.min=n.isFinite(t.min)?t.min:null;t.max=n.isFinite(t.max)?t.max:null;t.minNotZero=n.isFinite(t.minNotZero)?t.minNotZero:null;this.handleTickRangeOptions()},handleTickRangeOptions:function(){var n=this,t=n.options.ticks,i=1,r=10;n.min=wr(t.min,n.min);n.max=wr(t.max,n.max);n.min===n.max&&(n.min!==0&&n.min!==null?(n.min=Math.pow(10,Math.floor(o(n.min))-1),n.max=Math.pow(10,Math.floor(o(n.max))+1)):(n.min=i,n.max=r));n.min===null&&(n.min=Math.pow(10,Math.floor(o(n.max))-1));n.max===null&&(n.max=n.min!==0?Math.pow(10,Math.floor(o(n.min))+1):r);n.minNotZero===null&&(n.minNotZero=n.min>0?n.min:n.max<1?Math.pow(10,Math.floor(o(n.max))):i)},buildTicks:function(){var t=this,i=t.options.ticks,r=!t.isHorizontal(),f={min:wr(i.min),max:wr(i.max)},u=t.ticks=oy(f,t);t.max=n.max(u);t.min=n.min(u);i.reverse?(r=!r,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max);r&&u.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice();l.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(n,t){return this._getScaleLabel(this.chart.data.datasets[t].data[n])},getPixelForTick:function(n){var t=this.tickValues;return n<0||n>t.length-1?null:this.getPixelForValue(t[n])},_getFirstTickValue:function(n){var t=Math.floor(o(n)),i=Math.floor(n/Math.pow(10,t));return i*Math.pow(10,t)},_configure:function(){var n=this,i=n.min,r=0;l.prototype._configure.call(n);i===0&&(i=n._getFirstTickValue(n.minNotZero),r=pr(n.options.ticks.fontSize,t.global.defaultFontSize)/n._length);n._startValue=o(i);n._valueOffset=r;n._valueRange=(o(n.max)-o(i))/(1-r)},getPixelForValue:function(n){var t=this,i=0;return n=+t.getRightValue(n),n>t.min&&n>0&&(i=(o(n)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(i)},getValueForPixel:function(n){var t=this,i=t.getDecimalForPixel(n);return i===0&&t.min===0?0:Math.pow(10,t._startValue+(i-t._valueOffset)*t._valueRange)}});os=es;yf._defaults=os;var br=n.valueOrDefault,pf=n.valueAtIndexOrDefault,ss=n.options.resolve,sy={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:bi.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(n){return n}}};bf=yr.extend({setDimensions:function(){var n=this;n.width=n.maxWidth;n.height=n.maxHeight;n.paddingTop=wf(n.options)/2;n.xCenter=Math.floor(n.width/2);n.yCenter=Math.floor((n.height-n.paddingTop)/2);n.drawingArea=Math.min(n.height-n.paddingTop,n.width)/2},determineDataLimits:function(){var t=this,u=t.chart,i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;n.each(u.data.datasets,function(f,e){if(u.isDatasetVisible(e)){var o=u.getDatasetMeta(e);n.each(f.data,function(n,u){var f=+t.getRightValue(n);isNaN(f)||o.data[u].hidden||(i=Math.min(f,i),r=Math.max(f,r))})}});t.min=i===Number.POSITIVE_INFINITY?0:i;t.max=r===Number.NEGATIVE_INFINITY?0:r;t.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/wf(this.options))},convertTicksToLabels:function(){var t=this;yr.prototype.convertTicksToLabels.call(t);t.pointLabels=t.chart.data.labels.map(function(){var i=n.callback(t.options.pointLabels.callback,arguments,t);return i||i===0?i:""})},getLabelForIndex:function(n,t){return+this.getRightValue(this.chart.data.datasets[t].data[n])},fit:function(){var n=this,t=n.options;t.display&&t.pointLabels.display?cy(n):n.setCenterPoint(0,0,0,0)},setReductions:function(n,t,i){var r=this,u=t.l/Math.sin(i.l),f=Math.max(t.r-r.width,0)/Math.sin(i.r),e=-t.t/Math.cos(i.t),o=-Math.max(t.b-(r.height-r.paddingTop),0)/Math.cos(i.b);u=kr(u);f=kr(f);e=kr(e);o=kr(o);r.drawingArea=Math.min(Math.floor(n-(u+f)/2),Math.floor(n-(e+o)/2));r.setCenterPoint(u,f,e,o)},setCenterPoint:function(n,t,i,r){var u=this,f=u.width-t-u.drawingArea,e=n+u.drawingArea,o=i+u.drawingArea,s=u.height-u.paddingTop-r-u.drawingArea;u.xCenter=Math.floor((e+f)/2+u.left);u.yCenter=Math.floor((o+s)/2+u.top+u.paddingTop)},getIndexAngle:function(n){var i=this.chart,r=360/i.data.labels.length,u=i.options||{},f=u.startAngle||0,t=(n*r+f)%360;return(t<0?t+360:t)*Math.PI/180},getDistanceFromCenterForValue:function(t){var i=this,r;return n.isNullOrUndef(t)?NaN:(r=i.drawingArea/(i.max-i.min),i.options.ticks.reverse)?(i.max-t)*r:(t-i.min)*r},getPointPosition:function(n,t){var i=this,r=i.getIndexAngle(n)-Math.PI/2;return{x:Math.cos(r)*t+i.xCenter,y:Math.sin(r)*t+i.yCenter}},getPointPositionForValue:function(n,t){return this.getPointPosition(n,this.getDistanceFromCenterForValue(t))},getBasePosition:function(n){var t=this,i=t.min,r=t.max;return t.getPointPositionForValue(n||0,t.beginAtZero?0:i<0&&r<0?r:i>0&&r>0?i:0)},_drawGrid:function(){var t=this,i=t.ctx,f=t.options,r=f.gridLines,u=f.angleLines,h=br(u.lineWidth,r.lineWidth),c=br(u.color,r.color),e,o,s;if(f.pointLabels.display&&yy(t),r.display&&n.each(t.ticks,function(n,i){i!==0&&(o=t.getDistanceFromCenterForValue(t.ticksAsNumbers[i]),py(t,r,o,i))}),u.display&&h&&c){for(i.save(),i.lineWidth=h,i.strokeStyle=c,i.setLineDash&&(i.setLineDash(ss([u.borderDash,r.borderDash,[]])),i.lineDashOffset=ss([u.borderDashOffset,r.borderDashOffset,0])),e=t.chart.data.labels.length-1;e>=0;e--)o=t.getDistanceFromCenterForValue(f.ticks.reverse?t.min:t.max),s=t.getPointPosition(e,o),i.beginPath(),i.moveTo(t.xCenter,t.yCenter),i.lineTo(s.x,s.y),i.stroke();i.restore()}},_drawLabels:function(){var u=this,i=u.ctx,s=u.options,r=s.ticks;if(r.display){var h=u.getIndexAngle(0),f=n.options._parseFont(r),c=br(r.fontColor,t.global.defaultFontColor),e,o;i.save();i.font=f.string;i.translate(u.xCenter,u.yCenter);i.rotate(h);i.textAlign="center";i.textBaseline="middle";n.each(u.ticks,function(n,t){(t!==0||r.reverse)&&(e=u.getDistanceFromCenterForValue(u.ticksAsNumbers[t]),r.showLabelBackdrop&&(o=i.measureText(n).width,i.fillStyle=r.backdropColor,i.fillRect(-o/2-r.backdropPaddingX,-e-f.size/2-r.backdropPaddingY,o+r.backdropPaddingX*2,f.size+r.backdropPaddingY*2)),i.fillStyle=c,i.fillText(n,0,-e))});i.restore()}},_drawTitle:n.noop});cs=sy;bf._defaults=cs;var kf=n._deprecated,ls=n.options.resolve,wy=n.valueOrDefault,as=Number.MIN_SAFE_INTEGER||-9007199254740991,df=Number.MAX_SAFE_INTEGER||9007199254740991,dr={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},a=Object.keys(dr);var ks=l.extend({initialize:function(){this.mergeTicksOptions();l.prototype.initialize.call(this)},update:function(){var i=this,r=i.options,t=r.time||(r.time={}),u=i._adapter=new sf._date(r.adapters.date);return kf("time scale",t.format,"time.format","time.parser"),kf("time scale",t.min,"time.min","ticks.min"),kf("time scale",t.max,"time.max","ticks.max"),n.mergeIf(t.displayFormats,u.formats()),l.prototype.update.apply(i,arguments)},getRightValue:function(n){return n&&n.t!==undefined&&(n=n.t),l.prototype.getRightValue.call(this,n)},determineDataLimits:function(){for(var i=this,l=i.chart,y=i._adapter,a=i.options,p=a.time.unit||"day",r=df,u=as,f=[],o=[],e=[],s,w,c,v,b,k=i._getLabels(),t=0,h=k.length;t<h;++t)e.push(ii(i,k[t]));for(t=0,h=(l.data.datasets||[]).length;t<h;++t)if(l.isDatasetVisible(t))if(c=l.data.datasets[t].data,n.isObject(c[0]))for(o[t]=[],s=0,w=c.length;s<w;++s)v=ii(i,c[s]),f.push(v),o[t][s]=v;else o[t]=e.slice(0),b||(f=f.concat(e),b=!0);else o[t]=[];e.length&&(r=Math.min(r,e[0]),u=Math.max(u,e[e.length-1]));f.length&&(f=h>1?by(f).sort(vs):f.sort(vs),r=Math.min(r,f[0]),u=Math.max(u,f[f.length-1]));r=ii(i,ys(a))||r;u=ii(i,ps(a))||u;r=r===df?+y.startOf(Date.now(),p):r;u=u===as?+y.endOf(Date.now(),p)+1:u;i.min=Math.min(r,u);i.max=Math.max(r+1,u);i._table=[];i._timestamps={data:f,datasets:o,labels:e}},buildTicks:function(){var n=this,t=n.min,r=n.max,u=n.options,e=u.ticks,h=u.time,i=n._timestamps,f=[],l=n.getLabelCapacity(t),c=e.source,a=u.distribution,o,v,s;for(i=c==="data"||c==="auto"&&a==="series"?i.data:c==="labels"?i.labels:tp(n,t,r,l),u.bounds==="ticks"&&i.length&&(t=i[0],r=i[i.length-1]),t=ii(n,ys(u))||t,r=ii(n,ps(u))||r,o=0,v=i.length;o<v;++o)s=i[o],s>=t&&s<=r&&f.push(s);return n.min=t,n.max=r,n._unit=h.unit||(e.autoSkip?ws(h.minUnit,n.min,n.max,l):gy(n,f.length,h.minUnit,n.min,n.max)),n._majorUnit=!e.major.enabled||n._unit==="year"?undefined:np(n._unit),n._table=ky(n._timestamps.data,t,r,a),n._offsets=ip(n._table,f,t,r,u),e.reverse&&f.reverse(),bs(n,f,n._majorUnit)},getLabelForIndex:function(t,i){var r=this,o=r._adapter,f=r.chart.data,e=r.options.time,u=f.labels&&t<f.labels.length?f.labels[t]:"",s=f.datasets[i].data[t];return(n.isObject(s)&&(u=r.getRightValue(s)),e.tooltipFormat)?o.format(gf(r,u),e.tooltipFormat):typeof u=="string"?u:o.format(gf(r,u),e.displayFormats.datetime)},tickFormatFunction:function(n,t,i,r){var u=this,p=u._adapter,e=u.options,o=e.time.displayFormats,w=o[u._unit],s=u._majorUnit,h=o[s],c=i[t],f=e.ticks,l=s&&h&&c&&c.major,a=p.format(n,r?r:l?h:w),v=l?f.major:f.minor,y=ls([v.callback,v.userCallback,f.callback,f.userCallback]);return y?y(a,t,i):a},convertTicksToLabels:function(n){for(var i=[],t=0,r=n.length;t<r;++t)i.push(this.tickFormatFunction(n[t].value,t,n));return i},getPixelForOffset:function(n){var t=this,i=t._offsets,r=si(t._table,"time",n,"pos");return t.getPixelForDecimal((i.start+r)*i.factor)},getPixelForValue:function(n,t,i){var u=this,r=null;return t!==undefined&&i!==undefined&&(r=u._timestamps.datasets[i][t]),r===null&&(r=ii(u,n)),r!==null?u.getPixelForOffset(r):void 0},getPixelForTick:function(n){var t=this.getTicks();return n>=0&&n<t.length?this.getPixelForOffset(t[n].value):null},getValueForPixel:function(n){var t=this,i=t._offsets,r=t.getDecimalForPixel(n)/i.factor-i.end,u=si(t._table,"pos",r,"time");return t._adapter._create(u)},_getLabelSize:function(i){var r=this,u=r.options.ticks,f=r.ctx.measureText(i).width,e=n.toRadians(r.isHorizontal()?u.maxRotation:u.minRotation),o=Math.cos(e),s=Math.sin(e),h=wy(u.fontSize,t.global.defaultFontSize);return{w:f*o+h*s,h:f*s+h*o}},getLabelWidth:function(n){return this._getLabelSize(n).w},getLabelCapacity:function(n){var t=this,r=t.options.time,u=r.displayFormats,e=u[r.unit]||u.millisecond,o=t.tickFormatFunction(n,0,bs(t,[n],t._majorUnit),e),f=t._getLabelSize(o),i=Math.floor(t.isHorizontal()?t.width/f.w:t.height/f.h);return t.options.offset&&i--,i>0?i:1}});ks._defaults={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};var up={category:rs,linear:vf,logarithmic:yf,radialLinear:bf,time:ks},d=ue(function(n){(function(t,i){n.exports=i()})(fh,function(){function i(){return kf.apply(null,arguments)}function hh(n){kf=n}function et(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function yi(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function ch(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function k(n){return n===void 0}function gt(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function ir(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function df(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function a(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function bt(n,t){for(var i in t)a(t,i)&&(n[i]=t[i]);return a(t,"toString")&&(n.toString=t.toString),a(t,"valueOf")&&(n.valueOf=t.valueOf),n}function ot(n,t,i,r){return ns(n,t,i,r,!0).utc()}function lh(){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 f(n){return n._pf==null&&(n._pf=lh()),n._pf}function eu(n){if(n._isValid==null){var t=f(n),r=gf.call(t.parsedDateParts,function(n){return n!=null}),i=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(n._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined),Object.isFrozen!=null&&Object.isFrozen(n))return i;n._isValid=i}return n._isValid}function rr(n){var t=ot(NaN);return n!=null?bt(f(t),n):f(t).userInvalidated=!0,t}function ou(n,t){var i,r,u;if(k(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),k(t._i)||(n._i=t._i),k(t._f)||(n._f=t._f),k(t._l)||(n._l=t._l),k(t._strict)||(n._strict=t._strict),k(t._tzm)||(n._tzm=t._tzm),k(t._isUTC)||(n._isUTC=t._isUTC),k(t._offset)||(n._offset=t._offset),k(t._pf)||(n._pf=f(t)),k(t._locale)||(n._locale=t._locale),ur.length>0)for(i=0;i<ur.length;i++)r=ur[i],u=t[r],k(u)||(n[r]=u);return n}function pi(n){ou(this,n);this._d=new Date(n._d!=null?n._d.getTime():NaN);this.isValid()||(this._d=new Date(NaN));fr===!1&&(fr=!0,i.updateOffset(this),fr=!1)}function st(n){return n instanceof pi||n!=null&&n._isAMomentObject!=null}function g(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function e(n){var t=+n,i=0;return t!==0&&isFinite(t)&&(i=g(t)),i}function ne(n,t,i){for(var f=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),u=0,r=0;r<f;r++)(i&&n[r]!==t[r]||!i&&e(n[r])!==e(t[r]))&&u++;return u+o}function te(n){i.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+n)}function nt(n,t){var r=!0;return bt(function(){var e,u,f,o;if(i.deprecationHandler!=null&&i.deprecationHandler(null,n),r){for(e=[],f=0;f<arguments.length;f++){if(u="",typeof arguments[f]=="object"){u+="\n["+f+"] ";for(o in arguments[0])u+=o+": "+arguments[0][o]+", ";u=u.slice(0,-2)}else u=arguments[f];e.push(u)}te(n+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);r=!1}return t.apply(this,arguments)},t)}function ie(n,t){i.deprecationHandler!=null&&i.deprecationHandler(n,t);su[n]||(te(t),su[n]=!0)}function ht(n){return n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function ah(n){var t;for(var i in n)t=n[i],ht(t)?this[i]=t:this["_"+i]=t;this._config=n;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function re(n,t){var r=bt({},n);for(var i in t)a(t,i)&&(yi(n[i])&&yi(t[i])?(r[i]={},bt(r[i],n[i]),bt(r[i],t[i])):t[i]!=null?r[i]=t[i]:delete r[i]);for(i in n)a(n,i)&&!a(t,i)&&yi(n[i])&&(r[i]=bt({},r[i]));return r}function hu(n){n!=null&&this.set(n)}function vh(n,t,i){var r=this._calendar[n]||this._calendar.sameElse;return ht(r)?r.call(t,i):r}function yh(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n])}function ph(){return this._invalidDate}function wh(n){return this._ordinal.replace("%d",n)}function bh(n,t,i,r){var u=this._relativeTime[i];return ht(u)?u(n,t,i,r):u.replace(/%d/i,n)}function kh(n,t){var i=this._relativeTime[n>0?"future":"past"];return ht(i)?i(t):i.replace(/%s/i,t)}function w(n,t){var i=n.toLowerCase();fi[i]=fi[i+"s"]=fi[t]=n}function tt(n){return typeof n=="string"?fi[n]||fi[n.toLowerCase()]:undefined}function cu(n){var r={},t;for(var i in n)a(n,i)&&(t=tt(i),t&&(r[t]=n[i]));return r}function b(n,t){lu[n]=t}function dh(n){var t=[];for(var i in n)t.push({unit:i,priority:lu[i]});return t.sort(function(n,t){return n.priority-t.priority}),t}function at(n,t,i){var r=""+Math.abs(n),u=t-r.length,f=n>=0;return(f?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function u(n,t,i,r){var u=r;typeof r=="string"&&(u=function(){return this[r]()});n&&(ei[n]=u);t&&(ei[t[0]]=function(){return at(u.apply(this,arguments),t[1],t[2])});i&&(ei[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function gh(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function nc(n){for(var t=n.match(le),i=0,r=t.length;i<r;i++)t[i]=ei[t[i]]?ei[t[i]]:gh(t[i]);return function(i){for(var f="",u=0;u<r;u++)f+=ht(t[u])?t[u].call(i,n):t[u];return f}}function or(n,t){return n.isValid()?(t=ae(t,n.localeData()),au[t]=au[t]||nc(t),au[t](n)):n.localeData().invalidDate()}function ae(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(er.lastIndex=0;i>=0&&er.test(n);)n=n.replace(er,r),er.lastIndex=0,i-=1;return n}function r(n,t,i){pu[n]=ht(t)?t:function(n){return n&&i?i:t}}function ic(n,t){return a(pu,n)?pu[n](t._strict,t._locale):new RegExp(rc(n))}function rc(n){return ni(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}))}function ni(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function c(n,t){var i,r=t;for(typeof n=="string"&&(n=[n]),gt(t)&&(r=function(n,i){i[t]=e(n)}),i=0;i<n.length;i++)vr[n[i]]=r}function bi(n,t){c(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function uc(n,t,i){t!=null&&a(vr,n)&&vr[n](t,i._a,i,n)}function ki(n){return yr(n)?366:365}function yr(n){return n%4==0&&n%100!=0||n%400==0}function oc(){return yr(this.year())}function oi(n,t){return function(r){return r!=null?(be(this,n,r),i.updateOffset(this,t),this):pr(this,n)}}function pr(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function be(n,t,i){n.isValid()&&!isNaN(i)&&(t==="FullYear"&&yr(n.year())&&n.month()===1&&n.date()===29?n._d["set"+(n._isUTC?"UTC":"")+t](i,n.month(),wr(i,n.month())):n._d["set"+(n._isUTC?"UTC":"")+t](i))}function sc(n){return(n=tt(n),ht(this[n]))?this[n]():this}function hc(n,t){var r,i;if(typeof n=="object")for(n=cu(n),r=dh(n),i=0;i<r.length;i++)this[r[i].unit](n[r[i].unit]);else if(n=tt(n),ht(this[n]))return this[n](t);return this}function cc(n,t){return(n%t+t)%t}function wr(n,t){if(isNaN(n)||isNaN(t))return NaN;var i=cc(t,12);return n+=(t-i)/12,i===1?yr(n)?29:28:31-i%7%2}function lc(n,t){return n?et(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||bu).test(t)?"format":"standalone"][n.month()]:et(this._months)?this._months:this._months.standalone}function ac(n,t){return n?et(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[bu.test(t)?"format":"standalone"][n.month()]:et(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function vc(n,t,i){var u,r,e,f=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)e=ot([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(e,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(e,"").toLocaleLowerCase();return i?t==="MMM"?(r=v.call(this._shortMonthsParse,f),r!==-1?r:null):(r=v.call(this._longMonthsParse,f),r!==-1?r:null):t==="MMM"?(r=v.call(this._shortMonthsParse,f),r!==-1)?r:(r=v.call(this._longMonthsParse,f),r!==-1?r:null):(r=v.call(this._longMonthsParse,f),r!==-1)?r:(r=v.call(this._shortMonthsParse,f),r!==-1?r:null)}function yc(n,t,i){var r,u,f;if(this._monthsParseExact)return vc.call(this,n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=ot([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="MMMM"&&this._longMonthsParse[r].test(n))||i&&t==="MMM"&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r}function de(n,t){var i;if(!n.isValid())return n;if(typeof t=="string")if(/^\d+$/.test(t))t=e(t);else if(t=n.localeData().monthsParse(t),!gt(t))return n;return i=Math.min(n.date(),wr(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n}function ge(n){return n!=null?(de(this,n),i.updateOffset(this,!0),this):pr(this,"Month")}function pc(){return wr(this.year(),this.month())}function wc(n){return this._monthsParseExact?(a(this,"_monthsRegex")||io.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=no),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function bc(n){return this._monthsParseExact?(a(this,"_monthsRegex")||io.call(this),n?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=to),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function io(){function f(n,t){return t.length-n.length}for(var i=[],r=[],t=[],u,n=0;n<12;n++)u=ot([2e3,n]),i.push(this.monthsShort(u,"")),r.push(this.months(u,"")),t.push(this.months(u,"")),t.push(this.monthsShort(u,""));for(i.sort(f),r.sort(f),t.sort(f),n=0;n<12;n++)i[n]=ni(i[n]),r[n]=ni(r[n]);for(n=0;n<24;n++)t[n]=ni(t[n]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function kc(n,t,i,r,u,f,e){var o;return n<100&&n>=0?(o=new Date(n+400,t,i,r,u,f,e),isFinite(o.getFullYear())&&o.setFullYear(n)):o=new Date(n,t,i,r,u,f,e),o}function di(n){var t,i;return n<100&&n>=0?(i=Array.prototype.slice.call(arguments),i[0]=n+400,t=new Date(Date.UTC.apply(null,i)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n)):t=new Date(Date.UTC.apply(null,arguments)),t}function br(n,t,i){var r=7+t-i,u=(7+di(n,0,r).getUTCDay()-t)%7;return-u+r-1}function ro(n,t,i,r,u){var s=(7+i-r)%7,h=br(n,r,u),f=1+7*(t-1)+s+h,e,o;return f<=0?(e=n-1,o=ki(e)+f):f>ki(n)?(e=n+1,o=f-ki(n)):(e=n,o=f),{year:e,dayOfYear:o}}function gi(n,t,i){var e=br(n.year(),t,i),r=Math.floor((n.dayOfYear()-e-1)/7)+1,f,u;return r<1?(u=n.year()-1,f=r+ii(u,t,i)):r>ii(n.year(),t,i)?(f=r-ii(n.year(),t,i),u=n.year()+1):(u=n.year(),f=r),{week:f,year:u}}function ii(n,t,i){var r=br(n,t,i),u=br(n+1,t,i);return(ki(n)-r+u)/7}function dc(n){return gi(n,this._week.dow,this._week.doy).week}function gc(){return this._week.dow}function nl(){return this._week.doy}function tl(n){var t=this.localeData().week(this);return n==null?t:this.add((n-t)*7,"d")}function il(n){var t=gi(this,1,4).week;return n==null?t:this.add((n-t)*7,"d")}function rl(n,t){return typeof n!="string"?n:isNaN(n)?(n=t.weekdaysParse(n),typeof n=="number")?n:null:parseInt(n,10)}function ul(n,t){return typeof n=="string"?t.weekdaysParse(n)%7||7:isNaN(n)?null:n}function du(n,t){return n.slice(t,7).concat(n.slice(0,t))}function fl(n,t){var i=et(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return n===!0?du(i,this._week.dow):n?i[n.day()]:i}function el(n){return n===!0?du(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function ol(n){return n===!0?du(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function sl(n,t,i){var f,r,e,u=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)e=ot([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(e,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(e,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(e,"").toLocaleLowerCase();return i?t==="dddd"?(r=v.call(this._weekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=v.call(this._shortWeekdaysParse,u),r!==-1?r:null):(r=v.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="dddd"?(r=v.call(this._weekdaysParse,u),r!==-1)?r:(r=v.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=v.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=v.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=v.call(this._weekdaysParse,u),r!==-1)?r:(r=v.call(this._minWeekdaysParse,u),r!==-1?r:null):(r=v.call(this._minWeekdaysParse,u),r!==-1)?r:(r=v.call(this._weekdaysParse,u),r!==-1)?r:(r=v.call(this._shortWeekdaysParse,u),r!==-1?r:null)}function hl(n,t,i){var r,u,f;if(this._weekdaysParseExact)return sl.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=ot([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="dddd"&&this._fullWeekdaysParse[r].test(n))||i&&t==="ddd"&&this._shortWeekdaysParse[r].test(n)||i&&t==="dd"&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r}function cl(n){if(!this.isValid())return n!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=rl(n,this.localeData()),this.add(n-t,"d")):t}function ll(n){if(!this.isValid())return n!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return n==null?t:this.add(n-t,"d")}function al(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var t=ul(n,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function vl(n){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||nf.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=oo),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function yl(n){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||nf.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=so),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function pl(n){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||nf.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ho),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function nf(){function u(n,t){return t.length-n.length}for(var e=[],i=[],r=[],t=[],f,o,s,h,n=0;n<7;n++)f=ot([2e3,1]).day(n),o=this.weekdaysMin(f,""),s=this.weekdaysShort(f,""),h=this.weekdays(f,""),e.push(o),i.push(s),r.push(h),t.push(o),t.push(s),t.push(h);for(e.sort(u),i.sort(u),r.sort(u),t.sort(u),n=0;n<7;n++)i[n]=ni(i[n]),r[n]=ni(r[n]),t[n]=ni(t[n]);this._weekdaysRegex=new RegExp("^("+t.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function tf(){return this.hours()%12||12}function wl(){return this.hours()||24}function co(n,t){u(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function lo(n,t){return t._meridiemParse}function bl(n){return(n+"").toLowerCase().charAt(0)==="p"}function kl(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function yo(n){return n?n.toLowerCase().replace("_","-"):n}function gl(n){for(var r=0,i,t,f,u;r<n.length;){for(u=yo(n[r]).split("-"),i=u.length,t=yo(n[r+1]),t=t?t.split("-"):null;i>0;){if(f=kr(u.slice(0,i).join("-")),f)return f;if(t&&t.length>=i&&ne(u,t,!0)>=i-1)break;i--}r++}return tr}function kr(t){var i=null,r;if(!p[t]&&!0&&n&&n.exports)try{i=tr._abbr;r=eh;r("./locale/"+t);si(i)}catch(u){}return p[t]}function si(n,t){var i;return n&&(i=k(t)?kt(n):rf(n,t),i?tr=i:typeof console!="undefined"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),tr._abbr}function rf(n,t){if(t!==null){var r,i=vo;if(t.abbr=n,p[n]!=null)ie("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."),i=p[n]._config;else if(t.parentLocale!=null)if(p[t.parentLocale]!=null)i=p[t.parentLocale]._config;else if(r=kr(t.parentLocale),r!=null)i=r._config;else return nr[t.parentLocale]||(nr[t.parentLocale]=[]),nr[t.parentLocale].push({name:n,config:t}),null;return p[n]=new hu(re(i,t)),nr[n]&&nr[n].forEach(function(n){rf(n.name,n.config)}),si(n),p[n]}return delete p[n],null}function na(n,t){if(t!=null){var i,r,u=vo;r=kr(n);r!=null&&(u=r._config);t=re(u,t);i=new hu(t);i.parentLocale=p[n];p[n]=i;si(n)}else p[n]!=null&&(p[n].parentLocale!=null?p[n]=p[n].parentLocale:p[n]!=null&&delete p[n]);return p[n]}function kt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return tr;if(!et(n)){if(t=kr(n),t)return t;n=[n]}return gl(n)}function ta(){return ue(p)}function uf(n){var i,t=n._a;return t&&f(n).overflow===-2&&(i=t[vt]<0||t[vt]>11?vt:t[ct]<1||t[ct]>wr(t[it],t[vt])?ct:t[y]<0||t[y]>24||t[y]===24&&(t[rt]!==0||t[yt]!==0||t[ti]!==0)?y:t[rt]<0||t[rt]>59?rt:t[yt]<0||t[yt]>59?yt:t[ti]<0||t[ti]>999?ti:-1,f(n)._overflowDayOfYear&&(i<it||i>ct)&&(i=ct),f(n)._overflowWeeks&&i===-1&&(i=fc),f(n)._overflowWeekday&&i===-1&&(i=ec),f(n).overflow=i),n}function hi(n,t,i){return n!=null?n:t!=null?t:i}function ia(n){var t=new Date(i.now());return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ff(n){var t,i,r=[],u,o,e;if(!n._d){for(u=ia(n),n._w&&n._a[ct]==null&&n._a[vt]==null&&ra(n),n._dayOfYear!=null&&(e=hi(n._a[it],u[it]),(n._dayOfYear>ki(e)||n._dayOfYear===0)&&(f(n)._overflowDayOfYear=!0),i=di(e,0,n._dayOfYear),n._a[vt]=i.getUTCMonth(),n._a[ct]=i.getUTCDate()),t=0;t<3&&n._a[t]==null;++t)n._a[t]=r[t]=u[t];for(;t<7;t++)n._a[t]=r[t]=n._a[t]==null?t===2?1:0:n._a[t];n._a[y]===24&&n._a[rt]===0&&n._a[yt]===0&&n._a[ti]===0&&(n._nextDay=!0,n._a[y]=0);n._d=(n._useUTC?di:kc).apply(null,r);o=n._useUTC?n._d.getUTCDay():n._d.getDay();n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[y]=24);n._w&&typeof n._w.d!="undefined"&&n._w.d!==o&&(f(n).weekdayMismatch=!0)}}function ra(n){var t,o,u,i,r,e,h,s,c;t=n._w;t.GG!=null||t.W!=null||t.E!=null?(r=1,e=4,o=hi(t.GG,n._a[it],gi(l(),1,4).year),u=hi(t.W,1),i=hi(t.E,1),(i<1||i>7)&&(s=!0)):(r=n._locale._week.dow,e=n._locale._week.doy,c=gi(l(),r,e),o=hi(t.gg,n._a[it],c.year),u=hi(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(s=!0)):t.e!=null?(i=t.e+r,(t.e<0||t.e>6)&&(s=!0)):i=r);u<1||u>ii(o,r,e)?f(n)._overflowWeeks=!0:s!=null?f(n)._overflowWeekday=!0:(h=ro(o,u,i,r,e),n._a[it]=h.year,n._dayOfYear=h.dayOfYear)}function po(n){var t,r,o=n._i,i=ua.exec(o)||fa.exec(o),s,e,u,h;if(i){for(f(n).iso=!0,t=0,r=dr.length;t<r;t++)if(dr[t][1].exec(i[1])){e=dr[t][0];s=dr[t][2]!==!1;break}if(e==null){n._isValid=!1;return}if(i[3]){for(t=0,r=ef.length;t<r;t++)if(ef[t][1].exec(i[3])){u=(i[2]||" ")+ef[t][0];break}if(u==null){n._isValid=!1;return}}if(!s&&u!=null){n._isValid=!1;return}if(i[4])if(ea.exec(i[4]))h="Z";else{n._isValid=!1;return}n._f=e+(u||"")+(h||"");of(n)}else n._isValid=!1}function sa(n,t,i,r,u,f){var e=[ha(n),ku.indexOf(t),parseInt(i,10),parseInt(r,10),parseInt(u,10)];return f&&e.push(parseInt(f,10)),e}function ha(n){var t=parseInt(n,10);return t<=49?2e3+t:t<=999?1900+t:t}function ca(n){return n.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function la(n,t,i){if(n){var r=gu.indexOf(n),u=new Date(t[0],t[1],t[2]).getDay();if(r!==u)return f(i).weekdayMismatch=!0,i._isValid=!1,!1}return!0}function aa(n,t,i){if(n)return bo[n];if(t)return 0;var r=parseInt(i,10),u=r%100,f=(r-u)/100;return f*60+u}function ko(n){var t=wo.exec(ca(n._i)),i;if(t){if(i=sa(t[4],t[3],t[2],t[5],t[6],t[7]),!la(t[1],i,n))return;n._a=i;n._tzm=aa(t[8],t[9],t[10]);n._d=di.apply(null,n._a);n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);f(n).rfc2822=!0}else n._isValid=!1}function va(n){var t=oa.exec(n._i);if(t!==null){n._d=new Date(+t[1]);return}if(po(n),n._isValid===!1)delete n._isValid;else return;if(ko(n),n._isValid===!1)delete n._isValid;else return;i.createFromInputFallback(n)}function of(n){if(n._f===i.ISO_8601){po(n);return}if(n._f===i.RFC_2822){ko(n);return}n._a=[];f(n).empty=!0;for(var t=""+n._i,r,u,s,c=t.length,h=0,o=ae(n._f,n._locale).match(le)||[],e=0;e<o.length;e++)u=o[e],r=(t.match(ic(u,n))||[])[0],r&&(s=t.substr(0,t.indexOf(r)),s.length>0&&f(n).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),h+=r.length),ei[u]?(r?f(n).empty=!1:f(n).unusedTokens.push(u),uc(u,r,n)):n._strict&&!r&&f(n).unusedTokens.push(u);f(n).charsLeftOver=c-h;t.length>0&&f(n).unusedInput.push(t);n._a[y]<=12&&f(n).bigHour===!0&&n._a[y]>0&&(f(n).bigHour=undefined);f(n).parsedDateParts=n._a.slice(0);f(n).meridiem=n._meridiem;n._a[y]=ya(n._locale,n._a[y],n._meridiem);ff(n);uf(n)}function ya(n,t,i){var r;return i==null?t:n.meridiemHour!=null?n.meridiemHour(t,i):n.isPM!=null?(r=n.isPM(i),r&&t<12&&(t+=12),r||t!==12||(t=0),t):t}function pa(n){var t,e,u,r,i;if(n._f.length===0){f(n).invalidFormat=!0;n._d=new Date(NaN);return}for(r=0;r<n._f.length;r++)(i=0,t=ou({},n),n._useUTC!=null&&(t._useUTC=n._useUTC),t._f=n._f[r],of(t),eu(t))&&(i+=f(t).charsLeftOver,i+=f(t).unusedTokens.length*10,f(t).score=i,(u==null||i<u)&&(u=i,e=t));bt(n,e||t)}function wa(n){if(!n._d){var t=cu(n._i);n._a=df([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)});ff(n)}}function ba(n){var t=new pi(uf(go(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=undefined),t}function go(n){var t=n._i,i=n._f;return(n._locale=n._locale||kt(n._l),t===null||i===undefined&&t==="")?rr({nullInput:!0}):(typeof t=="string"&&(n._i=t=n._locale.preparse(t)),st(t))?new pi(uf(t)):(ir(t)?n._d=t:et(i)?pa(n):i?of(n):ka(n),eu(n)||(n._d=null),n)}function ka(n){var t=n._i;k(t)?n._d=new Date(i.now()):ir(t)?n._d=new Date(t.valueOf()):typeof t=="string"?va(n):et(t)?(n._a=df(t.slice(0),function(n){return parseInt(n,10)}),ff(n)):yi(t)?wa(n):gt(t)?n._d=new Date(t):i.createFromInputFallback(n)}function ns(n,t,i,r,u){var f={};return(i===!0||i===!1)&&(r=i,i=undefined),(yi(n)&&ch(n)||et(n)&&n.length===0)&&(n=undefined),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,ba(f)}function l(n,t,i,r){return ns(n,t,i,r,!1)}function rs(n,t){var r,i;if(t.length===1&&et(t[0])&&(t=t[0]),!t.length)return l();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][n](r))&&(r=t[i]);return r}function da(){var n=[].slice.call(arguments,0);return rs("isBefore",n)}function ga(){var n=[].slice.call(arguments,0);return rs("isAfter",n)}function nv(n){var i,r,t;for(i in n)if(!(v.call(ci,i)!==-1&&(n[i]==null||!isNaN(n[i]))))return!1;for(r=!1,t=0;t<ci.length;++t)if(n[ci[t]]){if(r)return!1;parseFloat(n[ci[t]])!==e(n[ci[t]])&&(r=!0)}return!0}function tv(){return this._isValid}function iv(){return ut(NaN)}function gr(n){var t=cu(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||t.isoWeek||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._isValid=nv(t);this._milliseconds=+c+h*1e3+s*6e4+o*36e5;this._days=+e+f*7;this._months=+u+r*3+i*12;this._data={};this._locale=kt();this._bubble()}function sf(n){return n instanceof gr}function hf(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function fs(n,t){u(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+at(~~(n/60),2)+t+at(~~n%60,2)})}function cf(n,t){var i=(t||"").match(n);if(i===null)return null;var f=i[i.length-1]||[],r=(f+"").match(es)||["-",0,0],u=+(r[1]*60)+e(r[2]);return u===0?0:r[0]==="+"?u:-u}function lf(n,t){var r,u;return t._isUTC?(r=t.clone(),u=(st(n)||ir(n)?n.valueOf():l(n).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+u),i.updateOffset(r,!1),r):l(n).local()}function af(n){return-Math.round(n._d.getTimezoneOffset()/15)*15}function rv(n,t,r){var u=this._offset||0,f;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n=="string"){if(n=cf(ar,n),n===null)return this}else Math.abs(n)<16&&!r&&(n=n*60);return!this._isUTC&&t&&(f=af(this)),this._offset=n,this._isUTC=!0,f!=null&&this.add(f,"m"),u!==n&&(!t||this._changeInProgress?as(this,ut(n-u,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?u:af(this)}function uv(n,t){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function fv(n){return this.utcOffset(0,n)}function ev(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(af(this),"m")),this}function ov(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var n=cf(tc,this._i);n!=null?this.utcOffset(n):this.utcOffset(0,!0)}return this}function sv(n){return this.isValid()?(n=n?l(n).utcOffset():0,(this.utcOffset()-n)%60==0):!1}function hv(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function cv(){var n,t;return k(this._isDSTShifted)?(n={},ou(n,this),n=go(n),n._a?(t=n._isUTC?ot(n._a):l(n._a),this._isDSTShifted=this.isValid()&&ne(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted):this._isDSTShifted}function lv(){return this.isValid()?!this._isUTC:!1}function av(){return this.isValid()?this._isUTC:!1}function os(){return this.isValid()?this._isUTC&&this._offset===0:!1}function ut(n,t){var i=n,r=null,u,f,o;return sf(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:gt(n)?(i={},t?i[t]=n:i.milliseconds=n):(r=ss.exec(n))?(u=r[1]==="-"?-1:1,i={y:0,d:e(r[ct])*u,h:e(r[y])*u,m:e(r[rt])*u,s:e(r[yt])*u,ms:e(hf(r[ti]*1e3))*u}):(r=hs.exec(n))?(u=r[1]==="-"?-1:1,i={y:ri(r[2],u),M:ri(r[3],u),w:ri(r[4],u),d:ri(r[5],u),h:ri(r[6],u),m:ri(r[7],u),s:ri(r[8],u)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(o=vv(l(i.from),l(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),f=new gr(i),sf(n)&&a(n,"_locale")&&(f._locale=n._locale),f}function ri(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function cs(n,t){var i={};return i.months=t.month()-n.month()+(t.year()-n.year())*12,n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function vv(n,t){var i;return(n.isValid()&&t.isValid())?(t=lf(t,n),n.isBefore(t)?i=cs(n,t):(i=cs(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function ls(n,t){return function(i,r){var u,f;return r===null||isNaN(+r)||(ie(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."),f=i,i=r,r=f),i=typeof i=="string"?+i:i,u=ut(i,r),as(this,u,n),this}}function as(n,t,r,u){var o=t._milliseconds,f=hf(t._days),e=hf(t._months);n.isValid()&&(u=u==null?!0:u,e&&de(n,pr(n,"Month")+e*r),f&&be(n,"Date",pr(n,"Date")+f*r),o&&n._d.setTime(n._d.valueOf()+o*r),u&&i.updateOffset(n,f||e))}function yv(n,t){var i=n.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function pv(n,t){var u=n||l(),f=lf(u,this).startOf("day"),r=i.calendarFormat(this,f)||"sameElse",e=t&&(ht(t[r])?t[r].call(this,u):t[r]);return this.format(e||this.localeData().calendar(r,this,l(u)))}function wv(){return new pi(this)}function bv(n,t){var i=st(n)?n:l(n);return(this.isValid()&&i.isValid())?(t=tt(t)||"millisecond",t==="millisecond"?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf()):!1}function kv(n,t){var i=st(n)?n:l(n);return(this.isValid()&&i.isValid())?(t=tt(t)||"millisecond",t==="millisecond"?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf()):!1}function dv(n,t,i,r){var u=st(n)?n:l(n),f=st(t)?t:l(t);return(this.isValid()&&u.isValid()&&f.isValid())?(r=r||"()",(r[0]==="("?this.isAfter(u,i):!this.isBefore(u,i))&&(r[1]===")"?this.isBefore(f,i):!this.isAfter(f,i))):!1}function gv(n,t){var i=st(n)?n:l(n),r;return(this.isValid()&&i.isValid())?(t=tt(t)||"millisecond",t==="millisecond"?this.valueOf()===i.valueOf():(r=i.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function ny(n,t){return this.isSame(n,t)||this.isAfter(n,t)}function ty(n,t){return this.isSame(n,t)||this.isBefore(n,t)}function iy(n,t,i){var r,f,u;if(!this.isValid())return NaN;if(r=lf(n,this),!r.isValid())return NaN;f=(r.utcOffset()-this.utcOffset())*6e4;t=tt(t);switch(t){case"year":u=vf(this,r)/12;break;case"month":u=vf(this,r);break;case"quarter":u=vf(this,r)/3;break;case"second":u=(this-r)/1e3;break;case"minute":u=(this-r)/6e4;break;case"hour":u=(this-r)/36e5;break;case"day":u=(this-r-f)/864e5;break;case"week":u=(this-r-f)/6048e5;break;default:u=this-r}return i?u:g(u)}function vf(n,t){var r=(t.year()-n.year())*12+(t.month()-n.month()),i=n.clone().add(r,"months"),u,f;return t-i<0?(u=n.clone().add(r-1,"months"),f=(t-i)/(i-u)):(u=n.clone().add(r+1,"months"),f=(t-i)/(u-i)),-(r+f)||0}function ry(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function uy(n){if(!this.isValid())return null;var i=n!==!0,t=i?this.clone().utc():this;return t.year()<0||t.year()>9999?or(t,i?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ht(Date.prototype.toISOString)?i?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*6e4).toISOString().replace("Z",or(t,"Z")):or(t,i?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function fy(){var n,t;if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";n="moment";t="";this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z");var i="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",u=t+'[")]';return this.format(i+r+"-MM-DD[T]HH:mm:ss.SSS"+u)}function ey(n){n||(n=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=or(this,n);return this.localeData().postformat(t)}function oy(n,t){return this.isValid()&&(st(n)&&n.isValid()||l(n).isValid())?ut({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function sy(n){return this.from(l(),n)}function hy(n,t){return this.isValid()&&(st(n)&&n.isValid()||l(n).isValid())?ut({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function cy(n){return this.to(l(),n)}function ps(n){var t;return n===undefined?this._locale._abbr:(t=kt(n),t!=null&&(this._locale=t),this)}function ws(){return this._locale}function ai(n,t){return(n%t+t)%t}function ks(n,t,i){return n<100&&n>=0?new Date(n+400,t,i)-bs:new Date(n,t,i).valueOf()}function ds(n,t,i){return n<100&&n>=0?Date.UTC(n+400,t,i)-bs:Date.UTC(n,t,i)}function ly(n){var t,r;if(n=tt(n),n===undefined||n==="millisecond"||!this.isValid())return this;r=this._isUTC?ds:ks;switch(n){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf();t-=ai(t+(this._isUTC?0:this.utcOffset()*li),tu);break;case"minute":t=this._d.valueOf();t-=ai(t,li);break;case"second":t=this._d.valueOf();t-=ai(t,nu)}return this._d.setTime(t),i.updateOffset(this,!0),this}function ay(n){var t,r;if(n=tt(n),n===undefined||n==="millisecond"||!this.isValid())return this;r=this._isUTC?ds:ks;switch(n){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf();t+=tu-ai(t+(this._isUTC?0:this.utcOffset()*li),tu)-1;break;case"minute":t=this._d.valueOf();t+=li-ai(t,li)-1;break;case"second":t=this._d.valueOf();t+=nu-ai(t,nu)-1}return this._d.setTime(t),i.updateOffset(this,!0),this}function vy(){return this._d.valueOf()-(this._offset||0)*6e4}function yy(){return Math.floor(this.valueOf()/1e3)}function py(){return new Date(this.valueOf())}function wy(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function by(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function ky(){return this.isValid()?this.toISOString():null}function dy(){return eu(this)}function gy(){return bt({},f(this))}function np(){return f(this).overflow}function tp(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function iu(n,t){u(0,[n,n.length],0,t)}function ip(n){return gs.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function rp(n){return gs.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function up(){return ii(this.year(),1,4)}function fp(){var n=this.localeData()._week;return ii(this.year(),n.dow,n.doy)}function gs(n,t,i,r,u){var f;return n==null?gi(this,r,u).year:(f=ii(n,r,u),t>f&&(t=f),ep.call(this,n,t,i,r,u))}function ep(n,t,i,r,u){var e=ro(n,t,i,r,u),f=di(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}function op(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}function sp(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?t:this.add(n-t,"d")}function hp(n,t){t[ti]=e(("0."+n)*1e3)}function cp(){return this._isUTC?"UTC":""}function lp(){return this._isUTC?"Coordinated Universal Time":""}function ap(n){return l(n*1e3)}function vp(){return l.apply(null,arguments).parseZone()}function rh(n){return n}function ru(n,t,i,r){var u=kt(),f=ot().set(r,t);return u[i](f,n)}function uh(n,t,i){if(gt(n)&&(t=n,n=undefined),n=n||"",t!=null)return ru(n,t,i,"month");for(var u=[],r=0;r<12;r++)u[r]=ru(n,r,i,"month");return u}function wf(n,t,i,r){var o,f,u,e;if(typeof n=="boolean"?(gt(t)&&(i=t,t=undefined),t=t||""):(t=n,i=t,n=!1,gt(t)&&(i=t,t=undefined),t=t||""),o=kt(),f=n?o._week.dow:0,i!=null)return ru(t,(i+f)%7,r,"day");for(e=[],u=0;u<7;u++)e[u]=ru(t,(u+f)%7,r,"day");return e}function yp(n,t){return uh(n,t,"months")}function pp(n,t){return uh(n,t,"monthsShort")}function wp(n,t,i){return wf(n,t,i,"weekdays")}function bp(n,t,i){return wf(n,t,i,"weekdaysShort")}function kp(n,t,i){return wf(n,t,i,"weekdaysMin")}function dp(){var n=this._data;return this._milliseconds=lt(this._milliseconds),this._days=lt(this._days),this._months=lt(this._months),n.milliseconds=lt(n.milliseconds),n.seconds=lt(n.seconds),n.minutes=lt(n.minutes),n.hours=lt(n.hours),n.months=lt(n.months),n.years=lt(n.years),this}function fh(n,t,i,r){var u=ut(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function gp(n,t){return fh(this,n,t,1)}function nw(n,t){return fh(this,n,t,-1)}function oh(n){return n<0?Math.floor(n):Math.ceil(n)}function tw(){var r=this._milliseconds,n=this._days,t=this._months,i=this._data,u,f,e,s,o;return r>=0&&n>=0&&t>=0||r<=0&&n<=0&&t<=0||(r+=oh(bf(t)+n)*864e5,n=0,t=0),i.milliseconds=r%1e3,u=g(r/1e3),i.seconds=u%60,f=g(u/60),i.minutes=f%60,e=g(f/60),i.hours=e%24,n+=g(e/24),o=g(sh(n)),t+=o,n-=oh(bf(o)),s=g(t/12),t%=12,i.days=n,i.months=t,i.years=s,this}function sh(n){return n*4800/146097}function bf(n){return n*146097/4800}function iw(n){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if(n=tt(n),n==="month"||n==="quarter"||n==="year"){t=this._days+i/864e5;r=this._months+sh(t);switch(n){case"month":return r;case"quarter":return r/3;case"year":return r/12}}else{t=this._days+Math.round(bf(this._months));switch(n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+n);}}}function rw(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+e(this._months/12)*31536e6:NaN}function pt(n){return function(){return this.as(n)}}function vw(){return ut(this)}function yw(n){return n=tt(n),this.isValid()?this[n+"s"]():NaN}function ui(n){return function(){return this.isValid()?this._data[n]:NaN}}function tb(){return g(this.days()/7)}function ib(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function rb(n,t,i){var r=ut(n).abs(),u=wt(r.as("s")),e=wt(r.as("m")),o=wt(r.as("h")),s=wt(r.as("d")),h=wt(r.as("M")),c=wt(r.as("y")),f=u<=ft.ss&&["s",u]||u<ft.s&&["ss",u]||e<=1&&["m"]||e<ft.m&&["mm",e]||o<=1&&["h"]||o<ft.h&&["hh",o]||s<=1&&["d"]||s<ft.d&&["dd",s]||h<=1&&["M"]||h<ft.M&&["MM",h]||c<=1&&["y"]||["yy",c];return f[2]=t,f[3]=+n>0,f[4]=i,ib.apply(null,f)}function ub(n){return n===undefined?wt:typeof n=="function"?(wt=n,!0):!1}function fb(n,t){return ft[n]===undefined?!1:t===undefined?ft[n]:(ft[n]=t,n==="s"&&(ft.ss=t-1),!0)}function eb(n){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),i=rb(this,!n,t);return n&&(i=t.pastFuture(+this,i)),t.postformat(i)}function vi(n){return(n>0)-(n<0)||+n}function fu(){if(!this.isValid())return this.localeData().invalidDate();var t=uu(this._milliseconds)/1e3,y=uu(this._days),r=uu(this._months),i,s,h;i=g(t/60);s=g(i/60);t%=60;i%=60;h=g(r/12);r%=12;var c=h,l=r,a=y,u=s,f=i,e=t?t.toFixed(3).replace(/\.?0+$/,""):"",n=this.asSeconds();if(!n)return"P0D";var p=n<0?"-":"",v=vi(this._months)!==vi(n)?"-":"",w=vi(this._days)!==vi(n)?"-":"",o=vi(this._milliseconds)!==vi(n)?"-":"";return p+"P"+(c?v+c+"Y":"")+(l?v+l+"M":"")+(a?w+a+"D":"")+(u||f||e?"T":"")+(u?o+u+"H":"")+(f?o+f+"M":"")+(e?o+e+"S":"")}var kf,gf,ur,fr,su,ue,fe,ee,oe,se,he,ce,fi,lu,vr,wu,v,bu,ke,ku,no,to,uo,fo,gu,eo,oo,so,ho,ao,wo,bo,ts,is,us,ci,es,ss,hs,vs,ys,yf,pf,nh,th,dt,ih,t,s,lt,wt,ft,uu,o;gf=Array.prototype.some?Array.prototype.some:function(n){for(var i=Object(this),r=i.length>>>0,t=0;t<r;t++)if(t in i&&n.call(this,i[t],t,i))return!0;return!1};ur=i.momentProperties=[];fr=!1;su={};i.suppressDeprecationWarnings=!1;i.deprecationHandler=null;ue=Object.keys?Object.keys:function(n){var t,i=[];for(t in n)a(n,t)&&i.push(t);return i};fe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};ee={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"};oe="Invalid date";se="%d";he=/\d{1,2}/;ce={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"};fi={};lu={};var le=/(\[[^\[]*\])|(\\)?([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,er=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,au={},ei={};var ve=/\d/,d=/\d\d/,ye=/\d{3}/,vu=/\d{4}/,sr=/[+-]?\d{6}/,h=/\d\d?/,pe=/\d\d\d\d?/,we=/\d\d\d\d\d\d?/,hr=/\d{1,3}/,yu=/\d{1,4}/,cr=/[+-]?\d{1,6}/,lr=/[+-]?\d+/,tc=/Z|[+-]\d\d:?\d\d/gi,ar=/Z|[+-]\d\d(?::?\d\d)?/gi,wi=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,pu={};vr={};var it=0,vt=1,ct=2,y=3,rt=4,yt=5,ti=6,fc=7,ec=8;u("Y",0,0,function(){var n=this.year();return n<=9999?""+n:"+"+n});u(0,["YY",2],0,function(){return this.year()%100});u(0,["YYYY",4],0,"year");u(0,["YYYYY",5],0,"year");u(0,["YYYYYY",6,!0],0,"year");w("year","y");b("year",1);r("Y",lr);r("YY",h,d);r("YYYY",yu,vu);r("YYYYY",cr,sr);r("YYYYYY",cr,sr);c(["YYYYY","YYYYYY"],it);c("YYYY",function(n,t){t[it]=n.length===2?i.parseTwoDigitYear(n):e(n)});c("YY",function(n,t){t[it]=i.parseTwoDigitYear(n)});c("Y",function(n,t){t[it]=parseInt(n,10)});i.parseTwoDigitYear=function(n){return e(n)+(e(n)>68?1900:2e3)};wu=oi("FullYear",!0);v=Array.prototype.indexOf?Array.prototype.indexOf:function(n){for(var t=0;t<this.length;++t)if(this[t]===n)return t;return-1};u("M",["MM",2],"Mo",function(){return this.month()+1});u("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});u("MMMM",0,0,function(n){return this.localeData().months(this,n)});w("month","M");b("month",8);r("M",h);r("MM",h,d);r("MMM",function(n,t){return t.monthsShortRegex(n)});r("MMMM",function(n,t){return t.monthsRegex(n)});c(["M","MM"],function(n,t){t[vt]=e(n)-1});c(["MMM","MMMM"],function(n,t,i,r){var u=i._locale.monthsParse(n,r,i._strict);u!=null?t[vt]=u:f(i).invalidMonth=n});bu=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;ke="January_February_March_April_May_June_July_August_September_October_November_December".split("_");ku="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");no=wi;to=wi;u("w",["ww",2],"wo","week");u("W",["WW",2],"Wo","isoWeek");w("week","w");w("isoWeek","W");b("week",5);b("isoWeek",5);r("w",h);r("ww",h,d);r("W",h);r("WW",h,d);bi(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=e(n)});uo={dow:0,doy:6};u("d",0,"do","day");u("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});u("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});u("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});u("e",0,0,"weekday");u("E",0,0,"isoWeekday");w("day","d");w("weekday","e");w("isoWeekday","E");b("day",11);b("weekday",11);b("isoWeekday",11);r("d",h);r("e",h);r("E",h);r("dd",function(n,t){return t.weekdaysMinRegex(n)});r("ddd",function(n,t){return t.weekdaysShortRegex(n)});r("dddd",function(n,t){return t.weekdaysRegex(n)});bi(["dd","ddd","dddd"],function(n,t,i,r){var u=i._locale.weekdaysParse(n,r,i._strict);u!=null?t.d=u:f(i).invalidWeekday=n});bi(["d","e","E"],function(n,t,i,r){t[r]=e(n)});fo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");gu="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");eo="Su_Mo_Tu_We_Th_Fr_Sa".split("_");oo=wi;so=wi;ho=wi;u("H",["HH",2],0,"hour");u("h",["hh",2],0,tf);u("k",["kk",2],0,wl);u("hmm",0,0,function(){return""+tf.apply(this)+at(this.minutes(),2)});u("hmmss",0,0,function(){return""+tf.apply(this)+at(this.minutes(),2)+at(this.seconds(),2)});u("Hmm",0,0,function(){return""+this.hours()+at(this.minutes(),2)});u("Hmmss",0,0,function(){return""+this.hours()+at(this.minutes(),2)+at(this.seconds(),2)});co("a",!0);co("A",!1);w("hour","h");b("hour",13);r("a",lo);r("A",lo);r("H",h);r("h",h);r("k",h);r("HH",h,d);r("hh",h,d);r("kk",h,d);r("hmm",pe);r("hmmss",we);r("Hmm",pe);r("Hmmss",we);c(["H","HH"],y);c(["k","kk"],function(n,t){var i=e(n);t[y]=i===24?0:i});c(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});c(["h","hh"],function(n,t,i){t[y]=e(n);f(i).bigHour=!0});c("hmm",function(n,t,i){var r=n.length-2;t[y]=e(n.substr(0,r));t[rt]=e(n.substr(r));f(i).bigHour=!0});c("hmmss",function(n,t,i){var r=n.length-4,u=n.length-2;t[y]=e(n.substr(0,r));t[rt]=e(n.substr(r,2));t[yt]=e(n.substr(u));f(i).bigHour=!0});c("Hmm",function(n,t){var i=n.length-2;t[y]=e(n.substr(0,i));t[rt]=e(n.substr(i))});c("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[y]=e(n.substr(0,i));t[rt]=e(n.substr(i,2));t[yt]=e(n.substr(r))});ao=/[ap]\.?m?\.?/i;var dl=oi("Hours",!0),vo={calendar:fe,longDateFormat:ee,invalidDate:oe,ordinal:se,dayOfMonthOrdinalParse:he,relativeTime:ce,months:ke,monthsShort:ku,week:uo,weekdays:fo,weekdaysMin:eo,weekdaysShort:gu,meridiemParse:ao},p={},nr={},tr;var ua=/^\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)?)?$/,fa=/^\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)?)?$/,ea=/Z|[+-]\d\d(?::?\d\d)?/,dr=[["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}/]],ef=[["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/]],oa=/^\/?Date\((\-?\d+)/i;wo=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;bo={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};i.createFromInputFallback=nt("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(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});i.ISO_8601=function(){};i.RFC_2822=function(){};ts=nt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=l.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:rr()});is=nt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=l.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:rr()});us=function(){return Date.now?Date.now():+new Date};ci=["year","quarter","month","week","day","hour","minute","second","millisecond"];fs("Z",":");fs("ZZ","");r("Z",ar);r("ZZ",ar);c(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=cf(ar,n)});es=/([\+\-]|\d\d)/gi;i.updateOffset=function(){};ss=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/;hs=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;ut.fn=gr.prototype;ut.invalid=iv;vs=ls(1,"add");ys=ls(-1,"subtract");i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";yf=nt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===undefined?this.localeData():this.locale(n)});var nu=1e3,li=60*nu,tu=60*li,bs=3506328*tu;for(u(0,["gg",2],0,function(){return this.weekYear()%100}),u(0,["GG",2],0,function(){return this.isoWeekYear()%100}),iu("gggg","weekYear"),iu("ggggg","weekYear"),iu("GGGG","isoWeekYear"),iu("GGGGG","isoWeekYear"),w("weekYear","gg"),w("isoWeekYear","GG"),b("weekYear",1),b("isoWeekYear",1),r("G",lr),r("g",lr),r("GG",h,d),r("gg",h,d),r("GGGG",yu,vu),r("gggg",yu,vu),r("GGGGG",cr,sr),r("ggggg",cr,sr),bi(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=e(n)}),bi(["gg","GG"],function(n,t,r,u){t[u]=i.parseTwoDigitYear(n)}),u("Q",0,"Qo","quarter"),w("quarter","Q"),b("quarter",7),r("Q",ve),c("Q",function(n,t){t[vt]=(e(n)-1)*3}),u("D",["DD",2],"Do","date"),w("date","D"),b("date",9),r("D",h),r("DD",h,d),r("Do",function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),c(["D","DD"],ct),c("Do",function(n,t){t[ct]=e(n.match(h)[0])}),pf=oi("Date",!0),u("DDD",["DDDD",3],"DDDo","dayOfYear"),w("dayOfYear","DDD"),b("dayOfYear",4),r("DDD",hr),r("DDDD",ye),c(["DDD","DDDD"],function(n,t,i){i._dayOfYear=e(n)}),u("m",["mm",2],0,"minute"),w("minute","m"),b("minute",14),r("m",h),r("mm",h,d),c(["m","mm"],rt),nh=oi("Minutes",!1),u("s",["ss",2],0,"second"),w("second","s"),b("second",15),r("s",h),r("ss",h,d),c(["s","ss"],yt),th=oi("Seconds",!1),u("S",0,0,function(){return~~(this.millisecond()/100)}),u(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),u(0,["SSS",3],0,"millisecond"),u(0,["SSSS",4],0,function(){return this.millisecond()*10}),u(0,["SSSSS",5],0,function(){return this.millisecond()*100}),u(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),u(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),u(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),u(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),w("millisecond","ms"),b("millisecond",16),r("S",hr,ve),r("SS",hr,d),r("SSS",hr,ye),dt="SSSS";dt.length<=9;dt+="S")r(dt,/\d+/);for(dt="S";dt.length<=9;dt+="S")c(dt,hp);ih=oi("Milliseconds",!1);u("z",0,0,"zoneAbbr");u("zz",0,0,"zoneName");t=pi.prototype;t.add=vs;t.calendar=pv;t.clone=wv;t.diff=iy;t.endOf=ay;t.format=ey;t.from=oy;t.fromNow=sy;t.to=hy;t.toNow=cy;t.get=sc;t.invalidAt=np;t.isAfter=bv;t.isBefore=kv;t.isBetween=dv;t.isSame=gv;t.isSameOrAfter=ny;t.isSameOrBefore=ty;t.isValid=dy;t.lang=yf;t.locale=ps;t.localeData=ws;t.max=is;t.min=ts;t.parsingFlags=gy;t.set=hc;t.startOf=ly;t.subtract=ys;t.toArray=wy;t.toObject=by;t.toDate=py;t.toISOString=uy;t.inspect=fy;t.toJSON=ky;t.toString=ry;t.unix=yy;t.valueOf=vy;t.creationData=tp;t.year=wu;t.isLeapYear=oc;t.weekYear=ip;t.isoWeekYear=rp;t.quarter=t.quarters=op;t.month=ge;t.daysInMonth=pc;t.week=t.weeks=tl;t.isoWeek=t.isoWeeks=il;t.weeksInYear=fp;t.isoWeeksInYear=up;t.date=pf;t.day=t.days=cl;t.weekday=ll;t.isoWeekday=al;t.dayOfYear=sp;t.hour=t.hours=dl;t.minute=t.minutes=nh;t.second=t.seconds=th;t.millisecond=t.milliseconds=ih;t.utcOffset=rv;t.utc=fv;t.local=ev;t.parseZone=ov;t.hasAlignedHourOffset=sv;t.isDST=hv;t.isLocal=lv;t.isUtcOffset=av;t.isUtc=os;t.isUTC=os;t.zoneAbbr=cp;t.zoneName=lp;t.dates=nt("dates accessor is deprecated. Use date instead.",pf);t.months=nt("months accessor is deprecated. Use month instead",ge);t.years=nt("years accessor is deprecated. Use year instead",wu);t.zone=nt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",uv);t.isDSTShifted=nt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",cv);s=hu.prototype;s.calendar=vh;s.longDateFormat=yh;s.invalidDate=ph;s.ordinal=wh;s.preparse=rh;s.postformat=rh;s.relativeTime=bh;s.pastFuture=kh;s.set=ah;s.months=lc;s.monthsShort=ac;s.monthsParse=yc;s.monthsRegex=bc;s.monthsShortRegex=wc;s.week=dc;s.firstDayOfYear=nl;s.firstDayOfWeek=gc;s.weekdays=fl;s.weekdaysMin=ol;s.weekdaysShort=el;s.weekdaysParse=hl;s.weekdaysRegex=vl;s.weekdaysShortRegex=yl;s.weekdaysMinRegex=pl;s.isPM=bl;s.meridiem=kl;si("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=e(n%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i}});i.lang=nt("moment.lang is deprecated. Use moment.locale instead.",si);i.langData=nt("moment.langData is deprecated. Use moment.localeData instead.",kt);lt=Math.abs;var uw=pt("ms"),fw=pt("s"),ew=pt("m"),ow=pt("h"),sw=pt("d"),hw=pt("w"),cw=pt("M"),lw=pt("Q"),aw=pt("y");var pw=ui("milliseconds"),ww=ui("seconds"),bw=ui("minutes"),kw=ui("hours"),dw=ui("days"),gw=ui("months"),nb=ui("years");return wt=Math.round,ft={ss:44,s:45,m:45,h:22,d:26,M:11},uu=Math.abs,o=gr.prototype,o.isValid=tv,o.abs=dp,o.add=gp,o.subtract=nw,o.as=iw,o.asMilliseconds=uw,o.asSeconds=fw,o.asMinutes=ew,o.asHours=ow,o.asDays=sw,o.asWeeks=hw,o.asMonths=cw,o.asQuarters=lw,o.asYears=aw,o.valueOf=rw,o._bubble=tw,o.clone=vw,o.get=yw,o.milliseconds=pw,o.seconds=ww,o.minutes=bw,o.hours=kw,o.days=dw,o.weeks=tb,o.months=gw,o.years=nb,o.humanize=eb,o.toISOString=fu,o.toString=fu,o.toJSON=fu,o.locale=ps,o.localeData=ws,o.toIsoString=nt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",fu),o.lang=yf,u("X",0,0,"unix"),u("x",0,0,"valueOf"),r("x",lr),r("X",/[+-]?\d+(\.\d{1,3})?/),c("X",function(n,t,i){i._d=new Date(parseFloat(n,10)*1e3)}),c("x",function(n,t,i){i._d=new Date(e(n))}),i.version="2.24.0",hh(l),i.fn=t,i.min=da,i.max=ga,i.now=us,i.utc=ot,i.unix=ap,i.months=yp,i.isDate=ir,i.locale=si,i.invalid=rr,i.duration=ut,i.isMoment=st,i.weekdays=wp,i.parseZone=vp,i.localeData=kt,i.isDuration=sf,i.monthsShort=pp,i.weekdaysMin=kp,i.defineLocale=rf,i.updateLocale=na,i.locales=ta,i.weekdaysShort=bp,i.normalizeUnits=tt,i.relativeTimeRounding=ub,i.relativeTimeThreshold=fb,i.calendarFormat=yv,i.prototype=t,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i})}),fp={datetime:"MMM D, YYYY, h:mm:ss a",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"};sf._date.override(typeof d=="function"?{_id:"moment",formats:function(){return fp},parse:function(n,t){return typeof n=="string"&&typeof t=="string"?n=d(n,t):n instanceof d||(n=d(n)),n.isValid()?n.valueOf():null},format:function(n,t){return d(n).format(t)},add:function(n,t,i){return d(n).add(t,i).valueOf()},diff:function(n,t,i){return d(n).diff(d(t),i)},startOf:function(n,t,i){return(n=d(n),t==="isoWeek")?n.isoWeekday(i).valueOf():n.startOf(t).valueOf()},endOf:function(n,t){return d(n).endOf(t).valueOf()},_create:function(n){return d(n)}}:{});t._set("global",{plugins:{filler:{propagate:!0}}});ds={dataset:function(n){var t=n.fill,i=n.chart,r=i.getDatasetMeta(t),e=r&&i.isDatasetVisible(t),u=e&&r.dataset._children||[],f=u.length||0;return f?function(n,t){return t<f&&u[t]._view||null}:null},boundary:function(t){var i=t.boundary,r=i?i.x:null,u=i?i.y:null;return n.isArray(i)?function(n,t){return i[t]}:function(n){return{x:r===null?n.x:r,y:u===null?n.y:u}}}};var vp={id:"filler",afterDatasetsUpdate:function(n,t){for(var f=(n.data.datasets||[]).length,s=t.propagate,e=[],o,u,r,i=0;i<f;++i)o=n.getDatasetMeta(i),u=o.dataset,r=null,u&&u._model&&u instanceof c.Line&&(r={visible:n.isDatasetVisible(i),fill:ep(u,i,f),chart:n,el:u}),o.$filler=r,e.push(r);for(i=0;i<f;++i)(r=e[i],r)&&(r.fill=cp(e,i,s),r.boundary=hp(r),r.mapper=lp(r))},beforeDatasetsDraw:function(i){for(var l=i._getSortedVisibleDatasetMetas(),e=i.ctx,r,f,o,s,h,c,u=l.length-1;u>=0;--u)(r=l[u].$filler,r&&r.visible)&&(f=r.el,o=f._view,s=f._children||[],h=r.mapper,c=o.backgroundColor||t.global.defaultColor,h&&c&&s.length&&(n.canvas.clipArea(e,i.chartArea),ap(e,s,h,o,c,f._loop),n.canvas.unclipArea(e)))}},yp=n.rtl.getRtlAdapter,ct=n.noop,lt=n.valueOrDefault;t._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(n,t){var r=t.datasetIndex,i=this.chart,u=i.getDatasetMeta(r);u.hidden=u.hidden===null?!i.data.datasets[r].hidden:null;i.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(n){var i=n.data.datasets,t=n.options.legend||{},r=t.labels&&t.labels.usePointStyle;return n._getSortedDatasetMetas().map(function(t){var u=t.controller.getStyle(r?0:undefined);return{text:i[t.index].label,fillStyle:u.backgroundColor,hidden:!n.isDatasetVisible(t.index),lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:u.borderWidth,strokeStyle:u.borderColor,pointStyle:u.pointStyle,rotation:u.rotation,datasetIndex:t.index}},this)}}},legendCallback:function(n){var r=document.createElement("ul"),i=n.data.datasets,t,f,u,e;for(r.setAttribute("class",n.id+"-legend"),t=0,f=i.length;t<f;t++)u=r.appendChild(document.createElement("li")),e=u.appendChild(document.createElement("span")),e.style.backgroundColor=i[t].backgroundColor,i[t].label&&u.appendChild(document.createTextNode(i[t].label));return r.outerHTML}});te=nt.extend({initialize:function(t){var i=this;n.extend(i,t);i.legendHitBoxes=[];i._hoveredItem=null;i.doughnutMode=!1},beforeUpdate:ct,update:function(n,t,i){var r=this;return r.beforeUpdate(),r.maxWidth=n,r.maxHeight=t,r.margins=i,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:ct,beforeSetDimensions:ct,setDimensions:function(){var n=this;n.isHorizontal()?(n.width=n.maxWidth,n.left=0,n.right=n.width):(n.height=n.maxHeight,n.top=0,n.bottom=n.height);n.paddingLeft=0;n.paddingTop=0;n.paddingRight=0;n.paddingBottom=0;n.minSize={width:0,height:0}},afterSetDimensions:ct,beforeBuildLabels:ct,buildLabels:function(){var t=this,r=t.options.labels||{},i=n.callback(r.generateLabels,[t.chart],t)||[];r.filter&&(i=i.filter(function(n){return r.filter(n,t.chart.data)}));t.options.reverse&&i.reverse();t.legendItems=i},afterBuildLabels:ct,beforeFit:ct,fit:function(){var t=this,a=t.options,r=a.labels,h=a.display,o=t.ctx,v=n.options._parseFont(r),u=v.size,y=t.legendHitBoxes=[],i=t.minSize,p=t.isHorizontal(),f,c;if(p?(i.width=t.maxWidth,i.height=h?10:0):(i.width=h?10:0,i.height=t.maxHeight),!h){t.width=i.width=t.height=i.height=0;return}if(o.font=v.string,p)f=t.lineWidths=[0],c=0,o.textAlign="left",o.textBaseline="middle",n.each(t.legendItems,function(n,t){var s=ne(r,u),e=s+u/2+o.measureText(n.text).width;(t===0||f[f.length-1]+e+2*r.padding>i.width)&&(c+=u+r.padding,f[f.length-(t>0?0:1)]=0);y[t]={left:0,top:0,width:e,height:u};f[f.length-1]+=e+r.padding}),i.height+=c;else{var w=r.padding,b=t.columnWidths=[],k=t.columnHeights=[],l=r.padding,e=0,s=0;n.each(t.legendItems,function(n,t){var h=ne(r,u),f=h+u/2+o.measureText(n.text).width;t>0&&s+u+2*w>i.height&&(l+=e+r.padding,b.push(e),k.push(s),e=0,s=0);e=Math.max(e,f);s+=u+w;y[t]={left:0,top:0,width:f,height:u}});l+=e;b.push(e);k.push(s);i.width+=l}t.width=i.width;t.height=i.height},afterFit:ct,isHorizontal:function(){return this.options.position==="top"||this.options.position==="bottom"},draw:function(){var r=this,h=r.options,f=h.labels,v=t.global,w=v.defaultColor,c=v.elements.line,b=r.height,k=r.columnHeights,d=r.width,g=r.lineWidths,a;if(h.display){var o=yp(h.rtl,r.left,r.minSize.width),i=r.ctx,nt=lt(f.fontColor,v.defaultFontColor),tt=n.options._parseFont(f),s=tt.size,u;i.textAlign=o.textAlign("left");i.textBaseline="middle";i.lineWidth=.5;i.strokeStyle=nt;i.fillStyle=nt;i.font=tt.string;var e=ne(f,s),y=r.legendHitBoxes,it=function(t,r,u){var h;if(!isNaN(e)&&!(e<=0)){if(i.save(),h=lt(u.lineWidth,c.borderWidth),i.fillStyle=lt(u.fillStyle,w),i.lineCap=lt(u.lineCap,c.borderCapStyle),i.lineDashOffset=lt(u.lineDashOffset,c.borderDashOffset),i.lineJoin=lt(u.lineJoin,c.borderJoinStyle),i.lineWidth=h,i.strokeStyle=lt(u.strokeStyle,w),i.setLineDash&&i.setLineDash(lt(u.lineDash,c.borderDash)),f&&f.usePointStyle){var l=e*Math.SQRT2/2,a=o.xPlus(t,e/2),v=r+s/2;n.canvas.drawPoint(i,u.pointStyle,l,a,v,u.rotation)}else i.fillRect(o.leftForLtr(t,e),r,e,s),h!==0&&i.strokeRect(o.leftForLtr(t,e),r,e,s);i.restore()}},rt=function(n,t,r,u){var c=s/2,f=o.xPlus(n,e+c),h=t+c;i.fillText(r.text,f,h);r.hidden&&(i.beginPath(),i.lineWidth=2,i.moveTo(f,h),i.lineTo(o.xPlus(f,u),h),i.stroke())},l=function(n,t){switch(h.align){case"start":return f.padding;case"end":return n-t;default:return(n-t+f.padding)/2}},p=r.isHorizontal();u=p?{x:r.left+l(d,g[0]),y:r.top+f.padding,line:0}:{x:r.left+f.padding,y:r.top+l(b,k[0]),line:0};n.rtl.overrideTextDirection(r.ctx,h.textDirection);a=s+f.padding;n.each(r.legendItems,function(n,t){var w=i.measureText(n.text).width,nt=e+s/2+w,c=u.x,h=u.y,v;o.setWidth(r.minSize.width);p?t>0&&c+nt+f.padding>r.left+r.minSize.width&&(h=u.y+=a,u.line++,c=u.x=r.left+l(d,g[u.line])):t>0&&h+a>r.top+r.minSize.height&&(c=u.x=c+r.columnWidths[u.line]+f.padding,u.line++,h=u.y=r.top+l(b,k[u.line]));v=o.x(c);it(v,h,n);y[t].left=o.leftForLtr(v,y[t].width);y[t].top=h;rt(v,h,n,w);p?u.x+=nt+f.padding:u.y+=a});n.rtl.restoreTextDirection(r.ctx,h.textDirection)}},_getLegendItemAt:function(n,t){var r=this,u,i,f;if(n>=r.left&&n<=r.right&&t>=r.top&&t<=r.bottom)for(f=r.legendHitBoxes,u=0;u<f.length;++u)if(i=f[u],n>=i.left&&n<=i.left+i.width&&t>=i.top&&t<=i.top+i.height)return r.legendItems[u];return null},handleEvent:function(n){var t=this,i=t.options,u=n.type==="mouseup"?"click":n.type,r;if(u==="mousemove"){if(!i.onHover&&!i.onLeave)return}else if(u==="click"){if(!i.onClick)return}else return;r=t._getLegendItemAt(n.x,n.y);u==="click"?r&&i.onClick&&i.onClick.call(t,n.native,r):(i.onLeave&&r!==t._hoveredItem&&(t._hoveredItem&&i.onLeave.call(t,n.native,t._hoveredItem),t._hoveredItem=r),i.onHover&&r&&i.onHover.call(t,n.native,r))}});ih={id:"legend",_element:te,beforeInit:function(n){var t=n.options.legend;t&&th(n,t)},beforeUpdate:function(i){var r=i.options.legend,u=i.legend;r?(n.mergeIf(r,t.global.legend),u?(w.configure(i,u,r),u.options=r):th(i,r)):u&&(w.removeBox(i,u),delete i.legend)},afterEvent:function(n,t){var i=n.legend;i&&i.handleEvent(t)}};it=n.noop;t._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});ie=nt.extend({initialize:function(t){var i=this;n.extend(i,t);i.legendHitBoxes=[]},beforeUpdate:it,update:function(n,t,i){var r=this;return r.beforeUpdate(),r.maxWidth=n,r.maxHeight=t,r.margins=i,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:it,beforeSetDimensions:it,setDimensions:function(){var n=this;n.isHorizontal()?(n.width=n.maxWidth,n.left=0,n.right=n.width):(n.height=n.maxHeight,n.top=0,n.bottom=n.height);n.paddingLeft=0;n.paddingTop=0;n.paddingRight=0;n.paddingBottom=0;n.minSize={width:0,height:0}},afterSetDimensions:it,beforeBuildLabels:it,buildLabels:it,afterBuildLabels:it,beforeFit:it,fit:function(){var t=this,i=t.options,r=t.minSize={},f=t.isHorizontal(),e,u;if(!i.display){t.width=r.width=t.height=r.height=0;return}e=n.isArray(i.text)?i.text.length:1;u=e*n.options._parseFont(i).lineHeight+i.padding*2;t.width=r.width=f?t.maxWidth:u;t.height=r.height=f?u:t.maxHeight},afterFit:it,isHorizontal:function(){var n=this.options.position;return n==="top"||n==="bottom"},draw:function(){var r=this,i=r.ctx,u=r.options,f,y,h;if(u.display){var p=n.options._parseFont(u),w=p.lineHeight,c=w/2+u.padding,b=0,e=r.top,o=r.left,k=r.bottom,l=r.right,s,a,v;if(i.fillStyle=n.valueOrDefault(u.fontColor,t.global.defaultFontColor),i.font=p.string,r.isHorizontal()?(a=o+(l-o)/2,v=e+c,s=l-o):(a=u.position==="left"?o+c:l-c,v=e+(k-e)/2,s=k-e,b=Math.PI*(u.position==="left"?-.5:.5)),i.save(),i.translate(a,v),i.rotate(b),i.textAlign="center",i.textBaseline="middle",f=u.text,n.isArray(f))for(y=0,h=0;h<f.length;++h)i.fillText(f[h],0,y,s),y+=w;else i.fillText(f,0,0,s);i.restore()}}});var pp={id:"title",_element:ie,beforeInit:function(n){var t=n.options.title;t&&rh(n,t)},beforeUpdate:function(i){var r=i.options.title,u=i.titleBlock;r?(n.mergeIf(r,t.global.title),u?(w.configure(i,u,r),u.options=r):rh(i,r)):u&&(w.removeBox(i,u),delete i.titleBlock)}},at={},wp=vp,bp=ih,kp=pp;at.filler=wp;at.legend=bp;at.title=kp;i.helpers=n;ts();i._adapters=sf;i.Animation=eu;i.animationService=ou;i.controllers=vu;i.DatasetController=v;i.defaults=t;i.Element=nt;i.elements=c;i.Interaction=kt;i.layouts=w;i.platform=dt;i.plugins=u;i.Scale=l;i.scaleService=wi;i.Ticks=bi;i.Tooltip=ef;i.helpers.each(up,function(n,t){i.scaleService.registerScaleType(t,n,n._defaults)});for(re in at)at.hasOwnProperty(re)&&i.plugins.register(at[re]);return i.platform.initialize(),uh=i,typeof window!="undefined"&&(window.Chart=i),i.Chart=i,i.Legend=at.legend._element,i.Title=at.title._element,i.pluginService=i.plugins,i.PluginBase=i.Element.extend({}),i.canvasHelpers=i.helpers.canvas,i.layoutService=i.layouts,i.LinearScaleBase=yr,i.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(n){i[n]=function(t,r){return new i(t,i.helpers.merge(r||{},{type:n.charAt(0).toLowerCase()+n.slice(1)}))}}),uh});