!function(t){t.color={},t.color.make=function(i,e,n,o){var a={};return a.r=i||0,a.g=e||0,a.b=n||0,a.a=null!=o?o:1,a.add=function(t,i){for(var e=0;e=1?"rgb("+[a.r,a.g,a.b].join(",")+")":"rgba("+[a.r,a.g,a.b,a.a].join(",")+")"},a.normalize=function(){function t(t,i,e){return ie?e:i}return a.r=t(0,parseInt(a.r),255),a.g=t(0,parseInt(a.g),255),a.b=t(0,parseInt(a.b),255),a.a=t(0,a.a,1),a},a.clone=function(){return t.color.make(a.r,a.b,a.g,a.a)},a.normalize()},t.color.extract=function(i,e){var n;do{if(""!=(n=i.css(e).toLowerCase())&&"transparent"!=n)break;i=i.parent()}while(!t.nodeName(i.get(0),"body"));return"rgba(0, 0, 0, 0)"==n&&(n="transparent"),t.color.parse(n)},t.color.parse=function(e){var n,o=t.color.make;if(n=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(e))return o(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10));if(n=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(e))return o(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),parseFloat(n[4]));if(n=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(e))return o(2.55*parseFloat(n[1]),2.55*parseFloat(n[2]),2.55*parseFloat(n[3]));if(n=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(e))return o(2.55*parseFloat(n[1]),2.55*parseFloat(n[2]),2.55*parseFloat(n[3]),parseFloat(n[4]));if(n=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(e))return o(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16));if(n=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(e))return o(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16));var a=t.trim(e).toLowerCase();return"transparent"==a?o(255,255,255,0):o((n=i[a]||[0,0,0])[0],n[1],n[2])};var i={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],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],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}}(jQuery),function(t){function i(i,e,n,o){var a=[],r={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:!0,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:.85,sorted:null},xaxis:{show:null,position:"bottom",mode:null,timezone:null,font:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null,monthNames:null,timeformat:null,twelveHourClock:!1},yaxis:{autoscaleMargin:.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:2,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,align:"left",horizontal:!1,zero:!0},shadowSize:3,highlightColor:null},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,margin:0,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:10},interaction:{redrawOverlayInterval:1e3/60},hooks:{}},l=null,s=null,c=null,h=null,f=null,u=[],d=[],p={left:0,right:0,top:0,bottom:0},m=0,g=0,x=0,b=0,v={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},k=this;function y(t,i){i=[k].concat(i);for(var e=0;en&&(n=o))}e<=n&&(e=n+1);var l,s=[],c=r.colors,h=c.length,f=0;for(i=0;i=0?f<.5?-f-.2:0:-f),s[i]=l.scale("rgb",1+f);var p,m=0;for(i=0;it.datamax&&e!=g&&(t.datamax=e)}for(t.each(T(),(function(t,i){i.datamin=p,i.datamax=m,i.used=!1})),i=0;i0&&null!=l[n-s]&&l[n-s]!=l[n]&&l[n-s+1]!=l[n+1]){for(o=0;oC&&(C=c)),h.y&&(cW&&(W=c)));if(r.bars.show){var z;switch(r.bars.align){case"left":z=0;break;case"right":z=-r.bars.barWidth;break;case"center":z=-r.bars.barWidth/2;break;default:throw new Error("Invalid bar alignment: "+r.bars.align)}r.bars.horizontal?(S+=z,W+=z+r.bars.barWidth):(M+=z,C+=z+r.bars.barWidth)}x(r.xaxis,M,C),x(r.yaxis,S,W)}t.each(T(),(function(t,i){i.datamin==p&&(i.datamin=null),i.datamax==m&&(i.datamax=null)}))}()}function M(t,i){var e=t[i+"axis"];return"object"==typeof e&&(e=e.n),"number"!=typeof e&&(e=1),e}function T(){return t.grep(u.concat(d),(function(t){return t}))}function S(t){var i,e,n={};for(i=0;i=0&&(e=0),null==i.max&&(n+=o*r)>0&&null!=t.datamax&&t.datamax<=0&&(n=0))}t.min=e,t.max=n}(i)})),o){var c={style:i.css("font-style"),size:Math.round(.8*(+i.css("font-size").replace("px","")||13)),variant:i.css("font-variant"),weight:i.css("font-weight"),family:i.css("font-family")},f=t.grep(n,(function(t){return t.reserveSpace}));for(t.each(f,(function(i,e){!function(i){var e,n=i.options;if(e="number"==typeof n.ticks&&n.ticks>0?n.ticks:.3*Math.sqrt("x"==i.direction?m:g),i.delta=(i.max-i.min)/e,"time"==n.mode&&!i.tickGenerator)throw new Error("Time mode requires the flot.time plugin.");if(i.tickGenerator||(i.tickGenerator=function(t){var i=n.tickDecimals,e=-Math.floor(Math.log(t.delta)/Math.LN10);null!=i&&e>i&&(e=i);var o,a,r,l,s,c=Math.pow(10,-e),h=t.delta/c,f=[],u=0,d=Number.NaN;h<1.5?o=1:h<3?(o=2,h>2.25&&(null==i||e+1<=i)&&(o=2.5,++e)):o=h<7.5?5:10,o*=c,null!=n.minTickSize&&o0&&(null==n.min&&(i.min=Math.min(i.min,a[0])),null==n.max&&a.length>1&&(i.max=Math.max(i.max,a[a.length-1]))),i.tickGenerator=function(t){var i,e,n=[];for(e=0;e1&&/\..*0$/.test((l[1]-l[0]).toFixed(r))||(i.tickDecimals=r)}}}}(e),function(i){var e,n,o=i.options.ticks,a=[];for(null==o||"number"==typeof o&&o>0?a=i.tickGenerator(i):o&&(a=t.isFunction(o)?o(i):o),i.ticks=[],e=0;e1&&(r=l[1])):n=+l,null==r&&(r=i.tickFormatter(n,i)),isNaN(n)||i.ticks.push({v:n,label:r})}}(e),function(t,i){t.options.autoscaleMargin&&i.length>0&&(null==t.options.min&&(t.min=Math.min(t.min,i[0].v)),null==t.options.max&&i.length>1&&(t.max=Math.max(t.max,i[i.length-1].v)))}(e,e.ticks),e.font=t.extend({},c,e.options.font),function(t){var i=t.options,e=t.ticks||[],n=i.labelWidth||0,o=i.labelHeight||0,a=t.font;h.save(),h.font=a.style+" "+a.variant+" "+a.weight+" "+a.size+"px '"+a.family+"'";for(var r=0;r|\r\n|\r/g,"\n").split("\n"),c=0;c=0;--e)F(f[e]);!function(){var i,e=r.grid.minBorderMargin,n={x:0,y:0};if(null==e)for(e=0,i=0;i"),o.push(""),s=!0),o.push('
'+u.label+"")}if(s&&o.push(""),0!=o.length){var d=''+o.join("")+"
";if(null!=r.legend.container)t(r.legend.container).html(d);else{var m="",g=r.legend.position,x=r.legend.margin;null==x[0]&&(x=[x,x]),"n"==g.charAt(0)?m+="top:"+(x[1]+p.top)+"px;":"s"==g.charAt(0)&&(m+="bottom:"+(x[1]+p.bottom)+"px;"),"e"==g.charAt(1)?m+="right:"+(x[0]+p.right)+"px;":"w"==g.charAt(1)&&(m+="left:"+(x[0]+p.left)+"px;");var b=t('
'+d.replace('style="','style="position:absolute;'+m+";")+"
").appendTo(i);if(0!=r.legend.backgroundOpacity){var v=r.legend.backgroundColor;null==v&&((v=(v=r.grid.backgroundColor)&&"string"==typeof v?t.color.parse(v):t.color.extract(b,"background-color")).a=1,v=v.toString());var k=b.children();t('
').prependTo(b).css("opacity",r.legend.backgroundOpacity)}}}}}()}function N(){h.clearRect(0,0,m,g),y(v.drawBackground,[h]);var t=r.grid;t.show&&t.backgroundColor&&(h.save(),h.translate(p.left,p.top),h.fillStyle=Z(r.grid.backgroundColor,b,0,"rgba(255, 255, 255, 0)"),h.fillRect(0,0,x,b),h.restore()),t.show&&!t.aboveData&&(E(),O());for(var i=0;io){var s=n;n=o,o=s}return{from:n,to:o,axis:e}}function E(){var i,e,n,o;h.save(),h.translate(p.left,p.top);var a=r.grid.markings;if(a)for(t.isFunction(a)&&((e=k.getAxes()).xmin=e.xaxis.min,e.xmax=e.xaxis.max,e.ymin=e.yaxis.min,e.ymax=e.yaxis.max,a=a(e)),i=0;is.axis.max||c.toc.axis.max||(s.from=Math.max(s.from,s.axis.min),s.to=Math.min(s.to,s.axis.max),c.from=Math.max(c.from,c.axis.min),c.to=Math.min(c.to,c.axis.max),s.from==s.to&&c.from==c.to||(s.from=s.axis.p2c(s.from),s.to=s.axis.p2c(s.to),c.from=c.axis.p2c(c.from),c.to=c.axis.p2c(c.to),s.from==s.to||c.from==c.to?(h.beginPath(),h.strokeStyle=l.color||r.grid.markingsColor,h.lineWidth=l.lineWidth||r.grid.markingsLineWidth,h.moveTo(s.from,c.from),h.lineTo(s.to,c.to),h.stroke()):(h.fillStyle=l.color||r.grid.markingsColor,h.fillRect(s.from,c.to,s.to-s.from,c.from-c.to))))}e=T(),n=r.grid.borderWidth;for(var f=0;fv.max||"full"==w&&("object"==typeof n&&n[v.position]>0||n>0)&&(M==v.min||M==v.max)||("x"==v.direction?(u=v.p2c(M),g="full"==w?-b:w,"top"==v.position&&(g=-g)):(d=v.p2c(M),m="full"==w?-x:w,"left"==v.position&&(m=-m)),1==h.lineWidth&&("x"==v.direction?u=Math.floor(u)+.5:d=Math.floor(d)+.5),h.moveTo(u,d),h.lineTo(u+m,d+g))}h.stroke()}}n&&(o=r.grid.borderColor,"object"==typeof n||"object"==typeof o?("object"!=typeof n&&(n={top:n,right:n,bottom:n,left:n}),"object"!=typeof o&&(o={top:o,right:o,bottom:o,left:o}),n.top>0&&(h.strokeStyle=o.top,h.lineWidth=n.top,h.beginPath(),h.moveTo(0-n.left,0-n.top/2),h.lineTo(x,0-n.top/2),h.stroke()),n.right>0&&(h.strokeStyle=o.right,h.lineWidth=n.right,h.beginPath(),h.moveTo(x+n.right/2,0-n.top),h.lineTo(x+n.right/2,b),h.stroke()),n.bottom>0&&(h.strokeStyle=o.bottom,h.lineWidth=n.bottom,h.beginPath(),h.moveTo(x+n.right,b+n.bottom/2),h.lineTo(0,b+n.bottom/2),h.stroke()),n.left>0&&(h.strokeStyle=o.left,h.lineWidth=n.left,h.beginPath(),h.moveTo(0-n.left/2,b+n.bottom),h.lineTo(0-n.left/2,0),h.stroke())):(h.lineWidth=n,h.strokeStyle=r.grid.borderColor,h.strokeRect(-n/2,-n/2,x+n,b+n))),h.restore()}function O(){h.save(),t.each(T(),(function(t,i){if(i.show&&0!=i.ticks.length){var e=i.box,n=i.font;h.fillStyle=i.options.color,h.font=n.style+" "+n.variant+" "+n.weight+" "+n.size+"px "+n.family,h.textAlign="start",h.textBaseline="middle";for(var o=0;oi.max))for(var r,l,s,c=0,f=0;f=p&&u>o.max){if(p>o.max)continue;f=(o.max-u)/(p-u)*(d-f)+f,u=o.max}else if(p>=u&&p>o.max){if(u>o.max)continue;d=(o.max-u)/(p-u)*(d-f)+f,p=o.max}if(f<=d&&f=d&&f>n.max){if(d>n.max)continue;u=(n.max-f)/(d-f)*(p-u)+u,f=n.max}else if(d>=f&&d>n.max){if(f>n.max)continue;p=(n.max-f)/(d-f)*(p-u)+u,d=n.max}f==l&&u==s||h.moveTo(n.p2c(f)+i,o.p2c(u)+e),l=d,s=p,h.lineTo(n.p2c(d)+i,o.p2c(p)+e)}}h.stroke()}h.save(),h.translate(p.left,p.top),h.lineJoin="round";var e=t.lines.lineWidth,n=t.shadowSize;if(e>0&&n>0){h.lineWidth=n,h.strokeStyle="rgba(0,0,0,0.1)";var o=Math.PI/18;i(t.datapoints,Math.sin(o)*(e/2+n/2),Math.cos(o)*(e/2+n/2),t.xaxis,t.yaxis),h.lineWidth=n/2,i(t.datapoints,Math.sin(o)*(e/2+n/4),Math.cos(o)*(e/2+n/4),t.xaxis,t.yaxis)}h.lineWidth=e,h.strokeStyle=t.color;var a=B(t.lines,t.color,0,b);a&&(h.fillStyle=a,function(t,i,e){for(var n=t.points,o=t.pointsize,a=Math.min(Math.max(0,e.min),e.max),r=0,l=!1,s=1,c=0,f=0;!(o>0&&r>n.length+o);){var u=n[(r+=o)-o],d=n[r-o+s],p=n[r],m=n[r+s];if(l){if(o>0&&null!=u&&null==p){f=r,o=-o,s=2;continue}if(o<0&&r==c+o){h.fill(),l=!1,s=1,r=c=f+(o=-o);continue}}if(null!=u&&null!=p){if(u<=p&&u=p&&u>i.max){if(p>i.max)continue;d=(i.max-u)/(p-u)*(m-d)+d,u=i.max}else if(p>=u&&p>i.max){if(u>i.max)continue;m=(i.max-u)/(p-u)*(m-d)+d,p=i.max}if(l||(h.beginPath(),h.moveTo(i.p2c(u),e.p2c(a)),l=!0),d>=e.max&&m>=e.max)h.lineTo(i.p2c(u),e.p2c(e.max)),h.lineTo(i.p2c(p),e.p2c(e.max));else if(d<=e.min&&m<=e.min)h.lineTo(i.p2c(u),e.p2c(e.min)),h.lineTo(i.p2c(p),e.p2c(e.min));else{var g=u,x=p;d<=m&&d=e.min?(u=(e.min-d)/(m-d)*(p-u)+u,d=e.min):m<=d&&m=e.min&&(p=(e.min-d)/(m-d)*(p-u)+u,m=e.min),d>=m&&d>e.max&&m<=e.max?(u=(e.max-d)/(m-d)*(p-u)+u,d=e.max):m>=d&&m>e.max&&d<=e.max&&(p=(e.max-d)/(m-d)*(p-u)+u,m=e.max),u!=g&&h.lineTo(i.p2c(g),e.p2c(d)),h.lineTo(i.p2c(u),e.p2c(d)),h.lineTo(i.p2c(p),e.p2c(m)),p!=x&&(h.lineTo(i.p2c(p),e.p2c(m)),h.lineTo(i.p2c(x),e.p2c(m)))}}}}(t.datapoints,t.xaxis,t.yaxis)),e>0&&i(t.datapoints,0,0,t.xaxis,t.yaxis),h.restore()}(t),t.bars.show&&function(t){var i;switch(h.save(),h.translate(p.left,p.top),h.lineWidth=t.bars.lineWidth,h.strokeStyle=t.color,t.bars.align){case"left":i=0;break;case"right":i=-t.bars.barWidth;break;case"center":i=-t.bars.barWidth/2;break;default:throw new Error("Invalid bar alignment: "+t.bars.align)}var e=t.bars.fill?function(i,e){return B(t.bars,t.color,i,e)}:null;(function(i,e,n,o,a,r,l){for(var s=i.points,c=i.pointsize,f=0;fa.max||dr.max||(h.beginPath(),u=a.p2c(u),d=r.p2c(d)+n,"circle"==l?h.arc(u,d,i,0,o?Math.PI:2*Math.PI,!1):l(h,u,d,i,o),h.closePath(),e&&(h.fillStyle=e,h.fill()),h.stroke())}}h.save(),h.translate(p.left,p.top);var e=t.points.lineWidth,n=t.shadowSize,o=t.points.radius,a=t.points.symbol;if(0==e&&(e=1e-4),e>0&&n>0){var r=n/2;h.lineWidth=r,h.strokeStyle="rgba(0,0,0,0.1)",i(t.datapoints,o,null,r+r/2,!0,t.xaxis,t.yaxis,a),h.strokeStyle="rgba(0,0,0,0.2)",i(t.datapoints,o,null,r/2,!0,t.xaxis,t.yaxis,a)}h.lineWidth=e,h.strokeStyle=t.color,i(t.datapoints,o,B(t.points,t.color),0,!1,t.xaxis,t.yaxis,a),h.restore()}(t)}function L(t,i,e,n,o,a,r,l,s,c,h,f){var u,d,p,m,g,x,b,v,k;h?(v=x=b=!0,g=!1,m=i+n,p=i+o,(d=t)<(u=e)&&(k=d,d=u,u=k,g=!0,x=!1)):(g=x=b=!0,v=!1,u=t+n,d=t+o,(m=i)<(p=e)&&(k=m,m=p,p=k,v=!0,b=!1)),dl.max||ms.max||(ul.max&&(d=l.max,x=!1),ps.max&&(m=s.max,b=!1),u=l.p2c(u),p=s.p2c(p),d=l.p2c(d),m=s.p2c(m),r&&(c.beginPath(),c.moveTo(u,p),c.lineTo(u,m),c.lineTo(d,m),c.lineTo(d,p),c.fillStyle=r(p,m),c.fill()),f>0&&(g||x||b||v)&&(c.beginPath(),c.moveTo(u,p+a),g?c.lineTo(u,m+a):c.moveTo(u,m+a),b?c.lineTo(d,m+a):c.moveTo(d,m+a),x?c.lineTo(d,p+a):c.moveTo(d,p+a),v?c.lineTo(u,p+a):c.moveTo(u,p+a),c.stroke()))}function B(i,e,n,o){var a=i.fill;if(!a)return null;if(i.fillColor)return Z(i.fillColor,n,o,e);var r=t.color.parse(e);return r.a="number"==typeof a?a:.4,r.normalize(),r.toString()}k.setData=w,k.setupGrid=P,k.draw=N,k.getPlaceholder=function(){return i},k.getCanvas=function(){return l},k.getPlotOffset=function(){return p},k.width=function(){return x},k.height=function(){return b},k.offset=function(){var t=c.offset();return t.left+=p.left,t.top+=p.top,t},k.getData=function(){return a},k.getAxes=function(){var i={};return t.each(u.concat(d),(function(t,e){e&&(i[e.direction+(1!=e.n?e.n:"")+"axis"]=e)})),i},k.getXAxes=function(){return u},k.getYAxes=function(){return d},k.c2p=S,k.p2c=function(t){var i,e,n,o={};for(i=0;i=0;--n)if(e(a[n])){var f=a[n],u=f.xaxis,d=f.yaxis,p=f.datapoints.points,m=u.c2p(t),g=d.c2p(i),x=s/u.scale,b=s/d.scale;if(l=f.datapoints.pointsize,u.options.inverseTransform&&(x=Number.MAX_VALUE),d.options.inverseTransform&&(b=Number.MAX_VALUE),f.lines.show||f.points.show)for(o=0;ox||v-m<-x||k-g>b||k-g<-b)){var y=Math.abs(u.p2c(v)-t),w=Math.abs(d.p2c(k)-i),M=y*y+w*w;M=Math.min(C,v)&&g>=k+T&&g<=k+S:m>=v+T&&m<=v+S&&g>=Math.min(C,k)&&g<=Math.max(C,k))&&(h=[n,o/l])}}}return h?(n=h[0],o=h[1],l=a[n].datapoints.pointsize,{datapoint:a[n].datapoints.points.slice(o*l,(o+1)*l),dataIndex:o,series:a[n],seriesIndex:n}):null}(l,s,n);if(f&&(f.pageX=parseInt(f.series.xaxis.p2c(f.datapoint[0])+o.left+p.left,10),f.pageY=parseInt(f.series.yaxis.p2c(f.datapoint[1])+o.top+p.top,10)),r.grid.autoHighlight){for(var u=0;ua.max||or.max)){var s=i.points.radius+i.points.lineWidth/2;f.lineWidth=s,f.strokeStyle=l;var c=1.5*s;n=a.p2c(n),o=r.p2c(o),f.beginPath(),"circle"==i.points.symbol?f.arc(n,o,c,0,2*Math.PI,!1):i.points.symbol(f,n,o,c,!1),f.closePath(),f.stroke()}}function K(i,e){var n="string"==typeof i.highlightColor?i.highlightColor:t.color.parse(i.color).scale("a",.5).toString(),o=n,a="left"==i.bars.align?0:-i.bars.barWidth/2;f.lineWidth=i.bars.lineWidth,f.strokeStyle=n,L(e[0],e[1],e[2]||0,a,a+i.bars.barWidth,0,(function(){return o}),i.xaxis,i.yaxis,f,i.bars.horizontal,i.bars.lineWidth)}function Z(i,e,n,o){if("string"==typeof i)return i;for(var a=h.createLinearGradient(0,n,0,e),r=0,l=i.colors.length;r