text: "use strict";module.exports=function(){var a=function(c,b){this.config=b;if(c.length&&c[0].getContext){c=c[0]}if(c.getContext){c=c.getContext("2d")}this.ctx=c;this.canvas=c.canvas;this.width=c.canvas.width||parseInt(a.helpers.getStyle(c.canvas,"width"))||a.helpers.getMaximumWidth(c.canvas);this.height=c.canvas.height||parseInt(a.helpers.getStyle(c.canvas,"height"))||a.helpers.getMaximumHeight(c.canvas);this.aspectRatio=this.width/this.height;if(isNaN(this.aspectRatio)||isFinite(this.aspectRatio)===false){this.aspectRatio=b.aspectRatio!==undefined?b.aspectRatio:2}this.originalCanvasStyleWidth=c.canvas.style.width;this.originalCanvasStyleHeight=c.canvas.style.height;a.helpers.retinaScale(this);if(b){this.controller=new a.Controller(this)}var d=this;a.helpers.addResizeListener(c.canvas.parentNode,function(){if(d.controller&&d.controller.config.options.responsive){d.controller.resize()}});return this.controller?this.controller:this};a.defaults={global:{responsive:true,responsiveAnimationDuration:0,maintainAspectRatio:true,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"single",animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:true,elements:{},legendCallback:function(c){var d=[];d.push('<ul class="'+c.id+'-legend">');for(var b=0;b<c.data.datasets.length;b++){d.push('<li><span style="background-color:'+c.data.datasets[b].backgroundColor+'"></span>');if(c.data.datasets[b].label){d.push(c.data.datasets[b].label)}d.push("</li>")}d.push("</ul>");return d.join("")}}};return a};