/* This file includes ALL files that are used for drawing charts using jqplot */
!function(Q){function u(t){Q.jqplot.ElemContainer.call(this),this.name=t,this._series=[],this.show=!1,this.tickRenderer=Q.jqplot.AxisTickRenderer,this.tickOptions={},this.labelRenderer=Q.jqplot.AxisLabelRenderer,this.labelOptions={},this.label=null,this.showLabel=!0,this.min=null,this.max=null,this.autoscale=!1,this.pad=1.2,this.padMax=null,this.padMin=null,this.ticks=[],this.numberTicks,this.tickInterval,this.renderer=Q.jqplot.LinearAxisRenderer,this.rendererOptions={},this.showTicks=!0,this.showTickMarks=!0,this.showMinorTicks=!0,this.drawMajorGridlines=!0,this.drawMinorGridlines=!1,this.drawMajorTickMarks=!0,this.drawMinorTickMarks=!0,this.useSeriesColor=!1,this.borderWidth=null,this.borderColor=null,this.scaleToHiddenSeries=!1,this._dataBounds={min:null,max:null},this._intervalStats=[],this._offsets={min:null,max:null},this._ticks=[],this._label=null,this.syncTicks=null,this.tickSpacing=75,this._min=null,this._max=null,this._tickInterval=null,this._numberTicks=null,this.__ticks=null,this._options={}}function i(t){Q.jqplot.ElemContainer.call(this),this.show=!1,this.location="ne",this.labels=[],this.showLabels=!0,this.showSwatches=!0,this.placement="insideGrid",this.xoffset=0,this.yoffset=0,this.border,this.background,this.textColor,this.fontFamily,this.fontSize,this.rowSpacing="0.5em",this.renderer=Q.jqplot.TableLegendRenderer,this.rendererOptions={},this.preDraw=!1,this.marginTop=null,this.marginRight=null,this.marginBottom=null,this.marginLeft=null,this.escapeHtml=!1,this._series=[],Q.extend(!0,this,t)}function s(t){Q.jqplot.ElemContainer.call(this),this.text=t,this.show=!0,this.fontFamily,this.fontSize,this.textAlign,this.textColor,this.renderer=Q.jqplot.DivTitleRenderer,this.rendererOptions={},this.escapeHtml=!1}function g(t){({}),Q.jqplot.ElemContainer.call(this),this.show=!0,this.xaxis="xaxis",this._xaxis,this.yaxis="yaxis",this._yaxis,this.gridBorderWidth=2,this.renderer=Q.jqplot.LineRenderer,this.rendererOptions={},this.data=[],this.gridData=[],this.label="",this.showLabel=!0,this.color,this.negativeColor,this.lineWidth=2.5,this.lineJoin="round",this.lineCap="round",this.linePattern="solid",this.shadow=!0,this.shadowAngle=45,this.shadowOffset=1.25,this.shadowDepth=3,this.shadowAlpha="0.1",this.breakOnNull=!1,this.markerRenderer=Q.jqplot.MarkerRenderer,this.markerOptions={},this.showLine=!0,this.showMarker=!0,this.index,this.fill=!1,this.fillColor,this.fillAlpha,this.fillAndStroke=!1,this.disableStack=!1,this._stack=!1,this.neighborThreshold=4,this.fillToZero=!1,this.fillToValue=0,this.fillAxis="y",this.useNegativeColors=!0,this._stackData=[],this._plotData=[],this._plotValues={x:[],y:[]},this._intervals={x:{},y:{}},this._prevPlotData=[],this._prevGridData=[],this._stackAxis="y",this._primaryAxis="_xaxis",this.canvas=new Q.jqplot.GenericCanvas,this.shadowCanvas=new Q.jqplot.GenericCanvas,this.plugins={},this._sumy=0,this._sumx=0,this._type="",this.step=!1}function r(){Q.jqplot.ElemContainer.call(this),this.drawGridlines=!0,this.gridLineColor="#cccccc",this.gridLineWidth=1,this.background="#fffdf6",this.borderColor="#999999",this.borderWidth=2,this.drawBorder=!0,this.shadow=!0,this.shadowAngle=45,this.shadowOffset=1.5,this.shadowWidth=3,this.shadowDepth=3,this.shadowColor=null,this.shadowAlpha="0.07",this._left,this._top,this._right,this._bottom,this._width,this._height,this._axes=[],this.renderer=Q.jqplot.CanvasGridRenderer,this.rendererOptions={},this._offsets={top:null,bottom:null,left:null,right:null}}function o(){function c(t){for(var e,i=0;i<t.length;i++)for(var s,r=[t[i].data,t[i]._stackData,t[i]._plotData,t[i]._prevPlotData],n=0;n<4;n++)if(s=!0,e=r[n],"x"==t[i]._stackAxis){for(var a=0;a<e.length;a++)if("number"!=typeof e[a][1]){s=!1;break}s&&e.sort(function(t,e){return t[1]-e[1]})}else{for(a=0;a<e.length;a++)if("number"!=typeof e[a][0]){s=!1;break}s&&e.sort(function(t,e){return t[0]-e[0]})}}function n(t){var e,i,s=t.data.plot,r=s.eventCanvas._elem.offset(),n={x:t.pageX-r.left,y:t.pageY-r.top},a={xaxis:null,yaxis:null,x2axis:null,y2axis:null,y3axis:null,y4axis:null,y5axis:null,y6axis:null,y7axis:null,y8axis:null,y9axis:null,yMidAxis:null},o=["xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis","yMidAxis"],h=s.axes;for(e=11;0<e;e--)h[i=o[e-1]].show&&(a[i]=h[i].series_p2u(n[i.charAt(0)]));return{offsets:r,gridPos:n,dataPos:a}}function a(t,e){function i(t,e,i){var s=(e[1]-i[1])/(e[0]-i[0]),r=e[1]-s*e[0],n=t+e[1];return[(n-r)/s,n]}var s,r,n,a,o,h,l,d,p,g,c,u,f,m,x,_,v,w,b=e.series;for(r=e.seriesStack.length-1;0<=r;r--)switch(s=e.seriesStack[r],n=b[s],_=n._highlightThreshold,n.renderer.constructor){case Q.jqplot.BarRenderer:for(o=t.x,h=t.y,k=0;k<n._barPoints.length;k++)if(x=n._barPoints[k],m=n.gridData[k],o>x[0][0]&&o<x[2][0]&&(h>x[2][1]&&h<x[0][1]||h<x[2][1]&&h>x[0][1]))return{seriesIndex:n.index,pointIndex:k,gridData:m,data:n.data[k],points:n._barPoints[k]};break;case Q.jqplot.PyramidRenderer:for(o=t.x,h=t.y,k=0;k<n._barPoints.length;k++)if(x=n._barPoints[k],m=n.gridData[k],o>x[0][0]+_[0][0]&&o<x[2][0]+_[2][0]&&h>x[2][1]&&h<x[0][1])return{seriesIndex:n.index,pointIndex:k,gridData:m,data:n.data[k],points:n._barPoints[k]};break;case Q.jqplot.DonutRenderer:if(p=n.startAngle/180*Math.PI,o=t.x-n._center[0],h=t.y-n._center[1],a=Math.sqrt(Math.pow(o,2)+Math.pow(h,2)),0<o&&0<=-h?l=2*Math.PI-Math.atan(-h/o):0<o&&-h<0?l=-Math.atan(-h/o):o<0?l=Math.PI-Math.atan(-h/o):0==o&&0<-h?l=3*Math.PI/2:0==o&&-h<0?l=Math.PI/2:0==o&&0==h&&(l=0),p&&((l-=p)<0?l+=2*Math.PI:l>2*Math.PI&&(l-=2*Math.PI)),d=n.sliceMargin/180*Math.PI,a<n._radius&&a>n._innerRadius)for(k=0;k<n.gridData.length;k++)if(g=0<k?n.gridData[k-1][1]+d:d,c=n.gridData[k][1],g<l&&l<c)return{seriesIndex:n.index,pointIndex:k,gridData:[t.x,t.y],data:n.data[k]};break;case Q.jqplot.PieRenderer:if(p=n.startAngle/180*Math.PI,o=t.x-n._center[0],h=t.y-n._center[1],a=Math.sqrt(Math.pow(o,2)+Math.pow(h,2)),0<o&&0<=-h?l=2*Math.PI-Math.atan(-h/o):0<o&&-h<0?l=-Math.atan(-h/o):o<0?l=Math.PI-Math.atan(-h/o):0==o&&0<-h?l=3*Math.PI/2:0==o&&-h<0?l=Math.PI/2:0==o&&0==h&&(l=0),p&&((l-=p)<0?l+=2*Math.PI:l>2*Math.PI&&(l-=2*Math.PI)),d=n.sliceMargin/180*Math.PI,a<n._radius)for(k=0;k<n.gridData.length;k++)if(g=0<k?n.gridData[k-1][1]+d:d,c=n.gridData[k][1],g<l&&l<c)return{seriesIndex:n.index,pointIndex:k,gridData:[t.x,t.y],data:n.data[k]};break;case Q.jqplot.BubbleRenderer:o=t.x,h=t.y;var y=null;if(n.show){for(var k=0;k<n.gridData.length;k++)m=n.gridData[k],(f=Math.sqrt((o-m[0])*(o-m[0])+(h-m[1])*(h-m[1])))<=m[2]&&(f<=u||null==u)&&(u=f,y={seriesIndex:s,pointIndex:k,gridData:m,data:n.data[k]});if(null!=y)return y}break;case Q.jqplot.FunnelRenderer:o=t.x,h=t.y;var j,q,S,M=n._vertices,D=M[0],C=M[M.length-1];for(j=i(h,D[0],C[3]),q=i(h,D[1],C[2]),k=0;k<M.length;k++)if(h>=(S=M[k])[0][1]&&h<=S[3][1]&&o>=j[0]&&o<=q[0])return{seriesIndex:n.index,pointIndex:k,gridData:null,data:n.data[k]};break;case Q.jqplot.LineRenderer:if(o=t.x,h=t.y,a=n.renderer,n.show){if(!(!(n.fill||n.renderer.bands.show&&n.renderer.bands.fill)||e.plugins.highlighter&&e.plugins.highlighter.show)){var R=!1;if(o>n._boundingBox[0][0]&&o<n._boundingBox[1][0]&&h>n._boundingBox[1][1]&&h<n._boundingBox[0][1])for(var T=n._areaPoints.length,P=(k=T-1,0);P<T;P++){var I=[n._areaPoints[P][0],n._areaPoints[P][1]],O=[n._areaPoints[k][0],n._areaPoints[k][1]];(I[1]<h&&h<=O[1]||O[1]<h&&h<=I[1])&&I[0]+(h-I[1])/(O[1]-I[1])*(O[0]-I[0])<o&&(R=!R),k=P}if(R)return{seriesIndex:s,pointIndex:null,gridData:n.gridData,data:n.data,points:n._areaPoints};break}v=0<(w=n.markerRenderer.size/2+n.neighborThreshold)?w:0;for(k=0;k<n.gridData.length;k++)if(m=n.gridData[k],a.constructor==Q.jqplot.OHLCRenderer)if(a.candleStick){var L=n._yaxis.series_u2p;if(o>=m[0]-a._bodyWidth/2&&o<=m[0]+a._bodyWidth/2&&h>=L(n.data[k][2])&&h<=L(n.data[k][3]))return{seriesIndex:s,pointIndex:k,gridData:m,data:n.data[k]}}else if(a.hlc){L=n._yaxis.series_u2p;if(o>=m[0]-a._tickLength&&o<=m[0]+a._tickLength&&h>=L(n.data[k][1])&&h<=L(n.data[k][2]))return{seriesIndex:s,pointIndex:k,gridData:m,data:n.data[k]}}else{L=n._yaxis.series_u2p;if(o>=m[0]-a._tickLength&&o<=m[0]+a._tickLength&&h>=L(n.data[k][2])&&h<=L(n.data[k][3]))return{seriesIndex:s,pointIndex:k,gridData:m,data:n.data[k]}}else if(null!=m[0]&&null!=m[1]&&((f=Math.sqrt((o-m[0])*(o-m[0])+(h-m[1])*(h-m[1])))<=v&&(f<=u||null==u)))return u=f,{seriesIndex:s,pointIndex:k,gridData:m,data:n.data[k]}}break;default:if(o=t.x,h=t.y,a=n.renderer,n.show){v=0<(w=n.markerRenderer.size/2+n.neighborThreshold)?w:0;for(k=0;k<n.gridData.length;k++)if(m=n.gridData[k],a.constructor==Q.jqplot.OHLCRenderer)if(a.candleStick){L=n._yaxis.series_u2p;if(o>=m[0]-a._bodyWidth/2&&o<=m[0]+a._bodyWidth/2&&h>=L(n.data[k][2])&&h<=L(n.data[k][3]))return{seriesIndex:s,pointIndex:k,gridData:m,data:n.data[k]}}else if(a.hlc){L=n._yaxis.series_u2p;if(o>=m[0]-a._tickLength&&o<=m[0]+a._tickLength&&h>=L(n.data[k][1])&&h<=L(n.data[k][2]))return{seriesIndex:s,pointIndex:k,gridData:m,data:n.data[k]}}else{L=n._yaxis.series_u2p;if(o>=m[0]-a._tickLength&&o<=m[0]+a._tickLength&&h>=L(n.data[k][2])&&h<=L(n.data[k][3]))return{seriesIndex:s,pointIndex:k,gridData:m,data:n.data[k]}}else if((f=Math.sqrt((o-m[0])*(o-m[0])+(h-m[1])*(h-m[1])))<=v&&(f<=u||null==u))return u=f,{seriesIndex:s,pointIndex:k,gridData:m,data:n.data[k]}}}return null}var t,e;this.animate=!1,this.animateReplot=!1,this.axes={xaxis:new u("xaxis"),yaxis:new u("yaxis"),x2axis:new u("x2axis"),y2axis:new u("y2axis"),y3axis:new u("y3axis"),y4axis:new u("y4axis"),y5axis:new u("y5axis"),y6axis:new u("y6axis"),y7axis:new u("y7axis"),y8axis:new u("y8axis"),y9axis:new u("y9axis"),yMidAxis:new u("yMidAxis")},this.baseCanvas=new Q.jqplot.GenericCanvas,this.captureRightClick=!1,this.data=[],this.dataRenderer,this.dataRendererOptions,this.defaults={axesDefaults:{},axes:{xaxis:{},yaxis:{},x2axis:{},y2axis:{},y3axis:{},y4axis:{},y5axis:{},y6axis:{},y7axis:{},y8axis:{},y9axis:{},yMidAxis:{}},seriesDefaults:{},series:[]},this.defaultAxisStart=1,this.drawIfHidden=!1,this.eventCanvas=new Q.jqplot.GenericCanvas,this.fillBetween={series1:null,series2:null,color:null,baseSeries:0,fill:!0},this.fontFamily,this.fontSize,this.grid=new r,this.legend=new i,this.noDataIndicator={show:!1,indicator:"Loading Data...",axes:{xaxis:{min:0,max:10,tickInterval:2,show:!0},yaxis:{min:0,max:12,tickInterval:3,show:!0}}},this.negativeSeriesColors=Q.jqplot.config.defaultNegativeColors,this.options={},this.previousSeriesStack=[],this.plugins={},this.series=[],this.seriesStack=[],this.seriesColors=Q.jqplot.config.defaultColors,this.sortData=!0,this.stackSeries=!1,this.syncXTicks=!0,this.syncYTicks=!0,this.target=null,this.targetId=null,this.textColor,this.title=new s,this._drawCount=0,this._sumy=0,this._sumx=0,this._stackData=[],this._plotData=[],this._width=null,this._height=null,this._plotDimensions={height:null,width:null},this._gridPadding={top:null,right:null,bottom:null,left:null},this._defaultGridPadding={top:10,right:10,bottom:23,left:10},this._addDomReference=Q.jqplot.config.addDomReference,this.preInitHooks=new Q.jqplot.HooksManager,this.postInitHooks=new Q.jqplot.HooksManager,this.preParseOptionsHooks=new Q.jqplot.HooksManager,this.postParseOptionsHooks=new Q.jqplot.HooksManager,this.preDrawHooks=new Q.jqplot.HooksManager,this.postDrawHooks=new Q.jqplot.HooksManager,this.preDrawSeriesHooks=new Q.jqplot.HooksManager,this.postDrawSeriesHooks=new Q.jqplot.HooksManager,this.preDrawLegendHooks=new Q.jqplot.HooksManager,this.addLegendRowHooks=new Q.jqplot.HooksManager,this.preSeriesInitHooks=new Q.jqplot.HooksManager,this.postSeriesInitHooks=new Q.jqplot.HooksManager,this.preParseSeriesOptionsHooks=new Q.jqplot.HooksManager,this.postParseSeriesOptionsHooks=new Q.jqplot.HooksManager,this.eventListenerHooks=new Q.jqplot.EventListenerManager,this.preDrawSeriesShadowHooks=new Q.jqplot.HooksManager,this.postDrawSeriesShadowHooks=new Q.jqplot.HooksManager,this.colorGenerator=new Q.jqplot.ColorGenerator,this.negativeColorGenerator=new Q.jqplot.ColorGenerator,this.canvasManager=new Q.jqplot.CanvasManager,this.themeEngine=new Q.jqplot.ThemeEngine,this.init=function(t,e,i){i=i||{};for(var s=0;s<Q.jqplot.preInitHooks.length;s++)Q.jqplot.preInitHooks[s].call(this,t,e,i);for(s=0;s<this.preInitHooks.hooks.length;s++)this.preInitHooks.hooks[s].call(this,t,e,i);if(this.targetId="#"+t,this.target=Q("#"+t),this._addDomReference&&this.target.data("jqplot",this),this.target.removeClass("jqplot-error"),!this.target.get(0))throw new Error("No plot target specified");var r,n;("static"==this.target.css("position")&&this.target.css("position","relative"),this.target.hasClass("jqplot-target")||this.target.addClass("jqplot-target"),this.target.height())?this._height=r=this.target.height():(r=i&&i.height?parseInt(i.height,10):this.target.attr("data-height")?parseInt(this.target.attr("data-height"),10):parseInt(Q.jqplot.config.defaultHeight,10),this._height=r,this.target.css("height",r+"px"));this.target.width()?this._width=n=this.target.width():(n=i&&i.width?parseInt(i.width,10):this.target.attr("data-width")?parseInt(this.target.attr("data-width"),10):parseInt(Q.jqplot.config.defaultWidth,10),this._width=n,this.target.css("width",n+"px"));s=0;for(var a=T.length;s<a;s++)this.axes[T[s]]=new u(T[s]);if(this._plotDimensions.height=this._height,this._plotDimensions.width=this._width,this.grid._plotDimensions=this._plotDimensions,this.title._plotDimensions=this._plotDimensions,this.baseCanvas._plotDimensions=this._plotDimensions,this.eventCanvas._plotDimensions=this._plotDimensions,this.legend._plotDimensions=this._plotDimensions,this._height<=0||this._width<=0||!this._height||!this._width)throw new Error("Canvas dimension not set");if(i.dataRenderer&&Q.isFunction(i.dataRenderer)&&(i.dataRendererOptions&&(this.dataRendererOptions=i.dataRendererOptions),this.dataRenderer=i.dataRenderer,e=this.dataRenderer(e,this,this.dataRendererOptions)),i.noDataIndicator&&Q.isPlainObject(i.noDataIndicator)&&Q.extend(!0,this.noDataIndicator,i.noDataIndicator),null==e||0==Q.isArray(e)||0==e.length||0==Q.isArray(e[0])||0==e[0].length){if(0==this.noDataIndicator.show)throw new Error("No data specified");for(var o in this.noDataIndicator.axes)for(var h in this.noDataIndicator.axes[o])this.axes[o][h]=this.noDataIndicator.axes[o][h];this.postDrawHooks.add(function(){var t=this.eventCanvas.getHeight(),e=this.eventCanvas.getWidth(),i=Q('<div class="jqplot-noData-container" style="position:absolute;"></div>');this.target.append(i),i.height(t),i.width(e),i.css("top",this.eventCanvas._offsets.top),i.css("left",this.eventCanvas._offsets.left);var s=Q('<div class="jqplot-noData-contents" style="text-align:center; position:relative; margin-left:auto; margin-right:auto;"></div>');i.append(s),s.html(this.noDataIndicator.indicator);var r=s.height(),n=s.width();s.height(r),s.width(n),s.css("top",(t-r)/2+"px")})}this.data=Q.extend(!0,[],e),this.parseOptions(i),this.textColor&&this.target.css("color",this.textColor),this.fontFamily&&this.target.css("font-family",this.fontFamily),this.fontSize&&this.target.css("font-size",this.fontSize),this.title.init(),this.legend.init(),this._sumy=0,this._sumx=0,this.computePlotData();for(s=0;s<this.series.length;s++){this.seriesStack.push(s),this.previousSeriesStack.push(s),this.series[s].shadowCanvas._plotDimensions=this._plotDimensions,this.series[s].canvas._plotDimensions=this._plotDimensions;for(var l=0;l<Q.jqplot.preSeriesInitHooks.length;l++)Q.jqplot.preSeriesInitHooks[l].call(this.series[s],t,this.data,this.options.seriesDefaults,this.options.series[s],this);for(l=0;l<this.preSeriesInitHooks.hooks.length;l++)this.preSeriesInitHooks.hooks[l].call(this.series[s],t,this.data,this.options.seriesDefaults,this.options.series[s],this);this.series[s]._plotDimensions=this._plotDimensions,this.series[s].init(s,this.grid.borderWidth,this);for(l=0;l<Q.jqplot.postSeriesInitHooks.length;l++)Q.jqplot.postSeriesInitHooks[l].call(this.series[s],t,this.data,this.options.seriesDefaults,this.options.series[s],this);for(l=0;l<this.postSeriesInitHooks.hooks.length;l++)this.postSeriesInitHooks.hooks[l].call(this.series[s],t,this.data,this.options.seriesDefaults,this.options.series[s],this);this._sumy+=this.series[s]._sumy,this._sumx+=this.series[s]._sumx}var d,p;for(s=0,a=T.length;s<a;s++)d=T[s],(p=this.axes[d])._plotDimensions=this._plotDimensions,p.init(),null==this.axes[d].borderColor&&("x"!==d.charAt(0)&&!0===p.useSeriesColor&&p.show?p.borderColor=p._series[0].color:p.borderColor=this.grid.borderColor);this.sortData&&c(this.series),this.grid.init(),this.grid._axes=this.axes,this.legend._series=this.series;for(s=0;s<Q.jqplot.postInitHooks.length;s++)Q.jqplot.postInitHooks[s].call(this,t,this.data,i);for(s=0;s<this.postInitHooks.hooks.length;s++)this.postInitHooks.hooks[s].call(this,t,this.data,i)},this.resetAxesScale=function(t,e){var i=e||{},s=t||this.axes;if(!0===s&&(s=this.axes),Q.isArray(s))for(var r=0;r<s.length;r++)this.axes[s[r]].resetScale(i[s[r]]);else if("object"==typeof s)for(var n in s)this.axes[n].resetScale(i[n])},this.reInitialize=function(t,e){for(var i=Q.extend(!0,{},this.options,e),s=this.targetId.substr(1),r=null==t?this.data:t,n=0;n<Q.jqplot.preInitHooks.length;n++)Q.jqplot.preInitHooks[n].call(this,s,r,i);for(n=0;n<this.preInitHooks.hooks.length;n++)this.preInitHooks.hooks[n].call(this,s,r,i);if(this._height=this.target.height(),this._width=this.target.width(),this._height<=0||this._width<=0||!this._height||!this._width)throw new Error("Target dimension not set");this._plotDimensions.height=this._height,this._plotDimensions.width=this._width,this.grid._plotDimensions=this._plotDimensions,this.title._plotDimensions=this._plotDimensions,this.baseCanvas._plotDimensions=this._plotDimensions,this.eventCanvas._plotDimensions=this._plotDimensions,this.legend._plotDimensions=this._plotDimensions;n=0;for(var a,o,h,l=T.length;n<l;n++){a=T[n];for(var d=0,p=(o=(h=this.axes[a])._ticks).length;d<p;d++){var g=o[d]._elem;g&&(Q.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==R&&window.G_vmlCanvasManager.uninitElement(g.get(0)),g.emptyForce(),g=null,o._elem=null)}o=null,delete h.ticks,delete h._ticks,this.axes[a]=new u(a),this.axes[a]._plotWidth=this._width,this.axes[a]._plotHeight=this._height}t&&(i.dataRenderer&&Q.isFunction(i.dataRenderer)&&(i.dataRendererOptions&&(this.dataRendererOptions=i.dataRendererOptions),this.dataRenderer=i.dataRenderer,t=this.dataRenderer(t,this,this.dataRendererOptions)),this.data=Q.extend(!0,[],t)),e&&this.parseOptions(i),this.title._plotWidth=this._width,this.textColor&&this.target.css("color",this.textColor),this.fontFamily&&this.target.css("font-family",this.fontFamily),this.fontSize&&this.target.css("font-size",this.fontSize),this.title.init(),this.legend.init(),this._sumy=0,this._sumx=0,this.seriesStack=[],this.previousSeriesStack=[],this.computePlotData();for(n=0,l=this.series.length;n<l;n++){this.seriesStack.push(n),this.previousSeriesStack.push(n),this.series[n].shadowCanvas._plotDimensions=this._plotDimensions,this.series[n].canvas._plotDimensions=this._plotDimensions;for(d=0;d<Q.jqplot.preSeriesInitHooks.length;d++)Q.jqplot.preSeriesInitHooks[d].call(this.series[n],s,this.data,this.options.seriesDefaults,this.options.series[n],this);for(d=0;d<this.preSeriesInitHooks.hooks.length;d++)this.preSeriesInitHooks.hooks[d].call(this.series[n],s,this.data,this.options.seriesDefaults,this.options.series[n],this);this.series[n]._plotDimensions=this._plotDimensions,this.series[n].init(n,this.grid.borderWidth,this);for(d=0;d<Q.jqplot.postSeriesInitHooks.length;d++)Q.jqplot.postSeriesInitHooks[d].call(this.series[n],s,this.data,this.options.seriesDefaults,this.options.series[n],this);for(d=0;d<this.postSeriesInitHooks.hooks.length;d++)this.postSeriesInitHooks.hooks[d].call(this.series[n],s,this.data,this.options.seriesDefaults,this.options.series[n],this);this._sumy+=this.series[n]._sumy,this._sumx+=this.series[n]._sumx}for(n=0,l=T.length;n<l;n++)a=T[n],(h=this.axes[a])._plotDimensions=this._plotDimensions,h.init(),null==h.borderColor&&("x"!==a.charAt(0)&&!0===h.useSeriesColor&&h.show?h.borderColor=h._series[0].color:h.borderColor=this.grid.borderColor);this.sortData&&c(this.series),this.grid.init(),this.grid._axes=this.axes,this.legend._series=this.series;for(n=0,l=Q.jqplot.postInitHooks.length;n<l;n++)Q.jqplot.postInitHooks[n].call(this,s,this.data,i);for(n=0,l=this.postInitHooks.hooks.length;n<l;n++)this.postInitHooks.hooks[n].call(this,s,this.data,i)},this.quickInit=function(){if(this._height=this.target.height(),this._width=this.target.width(),this._height<=0||this._width<=0||!this._height||!this._width)throw new Error("Target dimension not set");for(var t in this._plotDimensions.height=this._height,this._plotDimensions.width=this._width,this.grid._plotDimensions=this._plotDimensions,this.title._plotDimensions=this._plotDimensions,this.baseCanvas._plotDimensions=this._plotDimensions,this.eventCanvas._plotDimensions=this._plotDimensions,this.legend._plotDimensions=this._plotDimensions,this.axes)this.axes[t]._plotWidth=this._width,this.axes[t]._plotHeight=this._height;this.title._plotWidth=this._width,this.textColor&&this.target.css("color",this.textColor),this.fontFamily&&this.target.css("font-family",this.fontFamily),this.fontSize&&this.target.css("font-size",this.fontSize),this._sumy=0,this._sumx=0,this.computePlotData();for(var e=0;e<this.series.length;e++)"line"===this.series[e]._type&&this.series[e].renderer.bands.show&&this.series[e].renderer.initBands.call(this.series[e],this.series[e].renderer.options,this),this.series[e]._plotDimensions=this._plotDimensions,this.series[e].canvas._plotDimensions=this._plotDimensions,this._sumy+=this.series[e]._sumy,this._sumx+=this.series[e]._sumx;for(var i,s=0;s<12;s++){i=T[s];var r=this.axes[i]._ticks;for(e=0;e<r.length;e++){var n=r[e]._elem;n&&(Q.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==R&&window.G_vmlCanvasManager.uninitElement(n.get(0)),n.emptyForce(),n=null,r._elem=null)}r=null,this.axes[i]._plotDimensions=this._plotDimensions,this.axes[i]._ticks=[]}this.sortData&&c(this.series),this.grid._axes=this.axes,this.legend._series=this.series},this.computePlotData=function(){var t,e,i;for(this._plotData=[],this._stackData=[],e=0,i=this.series.length;e<i;e++){t=this.series[e],this._plotData.push([]),this._stackData.push([]);var s=t.data;this._plotData[e]=Q.extend(!0,[],s),this._stackData[e]=Q.extend(!0,[],s),t._plotData=this._plotData[e],t._stackData=this._stackData[e];var r={x:[],y:[]};if(this.stackSeries&&!t.disableStack){t._stack=!0;for(var n="x"===t._stackAxis?0:1,a=0,o=s.length;a<o;a++){var h=s[a][n];if(null==h&&(h=0),this._plotData[e][a][n]=h,this._stackData[e][a][n]=h,0<e)for(var l=e;l--;){var d=this._plotData[l][a][n];if(0<=h*d){this._plotData[e][a][n]+=d,this._stackData[e][a][n]+=d;break}}}}else{for(var p=0;p<t.data.length;p++)r.x.push(t.data[p][0]),r.y.push(t.data[p][1]);this._stackData.push(t.data),this.series[e]._stackData=t.data,this._plotData.push(t.data),t._plotData=t.data,t._plotValues=r}for(0<e&&(t._prevPlotData=this.series[e-1]._plotData),t._sumy=0,t._sumx=0,p=t.data.length-1;-1<p;p--)t._sumy+=t.data[p][1],t._sumx+=t.data[p][0]}},this.populatePlotData=function(t,e){this._plotData=[],this._stackData=[],t._stackData=[],t._plotData=[];var i={x:[],y:[]};if(this.stackSeries&&!t.disableStack){t._stack=!0;for(var s,r,n,a,o="x"===t._stackAxis?0:1,h=Q.extend(!0,[],t.data),l=Q.extend(!0,[],t.data),d=0;d<e;d++)for(var p=this.series[d].data,g=0;g<p.length;g++)s=null!=(n=p[g])[0]?n[0]:0,r=null!=n[1]?n[1]:0,h[g][0]+=s,h[g][1]+=r,a=o?r:s,0<=t.data[g][o]*a&&(l[g][o]+=a);for(var c=0;c<l.length;c++)i.x.push(l[c][0]),i.y.push(l[c][1]);this._plotData.push(l),this._stackData.push(h),t._stackData=h,t._plotData=l,t._plotValues=i}else{for(c=0;c<t.data.length;c++)i.x.push(t.data[c][0]),i.y.push(t.data[c][1]);this._stackData.push(t.data),this.series[e]._stackData=t.data,this._plotData.push(t.data),t._plotData=t.data,t._plotValues=i}for(0<e&&(t._prevPlotData=this.series[e-1]._plotData),t._sumy=0,t._sumx=0,c=t.data.length-1;-1<c;c--)t._sumy+=t.data[c][1],t._sumx+=t.data[c][0]},this.getNextSeriesColor=(t=0,e=this.seriesColors,function(){return t<e.length||(t=0),e[t++]}),this.parseOptions=function(t){for(var e=0;e<this.preParseOptionsHooks.hooks.length;e++)this.preParseOptionsHooks.hooks[e].call(this,t);for(e=0;e<Q.jqplot.preParseOptionsHooks.length;e++)Q.jqplot.preParseOptionsHooks[e].call(this,t);this.options=Q.extend(!0,{},this.defaults,t);var i=this.options;if(this.animate=i.animate,this.animateReplot=i.animateReplot,this.stackSeries=i.stackSeries,Q.isPlainObject(i.fillBetween)){e=0;for(var s,r=(h=["series1","series2","color","baseSeries","fill"]).length;e<r;e++)s=h[e],null!=i.fillBetween[s]&&(this.fillBetween[s]=i.fillBetween[s])}i.seriesColors&&(this.seriesColors=i.seriesColors),i.negativeSeriesColors&&(this.negativeSeriesColors=i.negativeSeriesColors),i.captureRightClick&&(this.captureRightClick=i.captureRightClick),this.defaultAxisStart=t&&null!=t.defaultAxisStart?t.defaultAxisStart:this.defaultAxisStart,this.colorGenerator.setColors(this.seriesColors),this.negativeColorGenerator.setColors(this.negativeSeriesColors),Q.extend(!0,this._gridPadding,i.gridPadding),this.sortData=null!=i.sortData?i.sortData:this.sortData;for(e=0;e<12;e++){var n=T[e];(p=this.axes[n])._options=Q.extend(!0,{},i.axesDefaults,i.axes[n]),Q.extend(!0,p,i.axesDefaults,i.axes[n]),p._plotWidth=this._width,p._plotHeight=this._height}function a(t,e,i){var s,r,n=[];if(e=e||"vertical",Q.isArray(t[0]))Q.extend(!0,n,t);else for(s=0,r=t.length;s<r;s++)"vertical"==e?n.push([i+s,t[s]]):n.push([t[s],i+s]);return n}this.series=[];for(e=0;e<this.data.length;e++){for(var o=Q.extend(!0,{index:e},{seriesColors:this.seriesColors,negativeSeriesColors:this.negativeSeriesColors},this.options.seriesDefaults,this.options.series[e],{rendererOptions:{animation:{show:this.animate}}}),h=new g(o),l=0;l<Q.jqplot.preParseSeriesOptionsHooks.length;l++)Q.jqplot.preParseSeriesOptionsHooks[l].call(h,this.options.seriesDefaults,this.options.series[e]);for(l=0;l<this.preParseSeriesOptionsHooks.hooks.length;l++)this.preParseSeriesOptionsHooks.hooks[l].call(h,this.options.seriesDefaults,this.options.series[e]);Q.extend(!0,h,o);var d="vertical";switch(h.renderer===Q.jqplot.BarRenderer&&h.rendererOptions&&"horizontal"==h.rendererOptions.barDirection&&(d="horizontal",h._stackAxis="x",h._primaryAxis="_yaxis"),h.data=a(this.data[e],d,this.defaultAxisStart),h.xaxis){case"xaxis":h._xaxis=this.axes.xaxis;break;case"x2axis":h._xaxis=this.axes.x2axis}h._yaxis=this.axes[h.yaxis],h._xaxis._series.push(h),h._yaxis._series.push(h),h.show?(h._xaxis.show=!0,h._yaxis.show=!0):(h._xaxis.scaleToHiddenSeries&&(h._xaxis.show=!0),h._yaxis.scaleToHiddenSeries&&(h._yaxis.show=!0)),h.label||(h.label="Series "+(e+1).toString()),this.series.push(h);for(l=0;l<Q.jqplot.postParseSeriesOptionsHooks.length;l++)Q.jqplot.postParseSeriesOptionsHooks[l].call(this.series[e],this.options.seriesDefaults,this.options.series[e]);for(l=0;l<this.postParseSeriesOptionsHooks.hooks.length;l++)this.postParseSeriesOptionsHooks.hooks[l].call(this.series[e],this.options.seriesDefaults,this.options.series[e])}Q.extend(!0,this.grid,this.options.grid);for(e=0,r=T.length;e<r;e++){var p;n=T[e];null==(p=this.axes[n]).borderWidth&&(p.borderWidth=this.grid.borderWidth)}"string"==typeof this.options.title?this.title.text=this.options.title:"object"==typeof this.options.title&&Q.extend(!0,this.title,this.options.title),this.title._plotWidth=this._width,this.legend.setOptions(this.options.legend);for(e=0;e<Q.jqplot.postParseOptionsHooks.length;e++)Q.jqplot.postParseOptionsHooks[e].call(this,t);for(e=0;e<this.postParseOptionsHooks.hooks.length;e++)this.postParseOptionsHooks.hooks[e].call(this,t)},this.destroy=function(){this.canvasManager.freeAllCanvases(),this.eventCanvas&&this.eventCanvas._elem&&this.eventCanvas._elem.unbind(),this.target.empty(),this.target[0].innerHTML=""},this.replot=function(t){var e=t||{},i=e.data||null,s=!1!==e.clear,r=e.resetAxes||!1;delete e.data,delete e.clear,delete e.resetAxes,this.target.trigger("jqplotPreReplot"),s&&this.destroy(),i||!Q.isEmptyObject(e)?this.reInitialize(i,e):this.quickInit(),r&&this.resetAxesScale(r,e.axes),this.draw(),this.target.trigger("jqplotPostReplot")},this.redraw=function(t){for(var e in t=null==t||t,this.target.trigger("jqplotPreRedraw"),t&&(this.canvasManager.freeAllCanvases(),this.eventCanvas._elem.unbind(),this.target.empty()),this.axes)this.axes[e]._ticks=[];this.computePlotData(),this._sumy=0;for(var i=this._sumx=0,s=this.series.length;i<s;i++)this._sumy+=this.series[i]._sumy,this._sumx+=this.series[i]._sumx;this.draw(),this.target.trigger("jqplotPostRedraw")},this.draw=function(){if(this.drawIfHidden||this.target.is(":visible")){var t;for(this.target.trigger("jqplotPreDraw"),_=0,v=Q.jqplot.preDrawHooks.length;_<v;_++)Q.jqplot.preDrawHooks[_].call(this);for(_=0,v=this.preDrawHooks.hooks.length;_<v;_++)this.preDrawHooks.hooks[_].apply(this,this.preDrawSeriesHooks.args[_]);this.target.append(this.baseCanvas.createElement({left:0,right:0,top:0,bottom:0},"jqplot-base-canvas",null,this)),this.baseCanvas.setContext(),this.target.append(this.title.draw()),this.title.pack({top:0,left:0});var e=this.legend.draw({},this),i={top:0,left:0,bottom:0,right:0};if("outsideGrid"==this.legend.placement){switch(this.target.append(e),this.legend.location){case"n":i.top+=this.legend.getHeight();break;case"s":i.bottom+=this.legend.getHeight();break;case"ne":case"e":case"se":i.right+=this.legend.getWidth();break;case"nw":case"w":case"sw":i.left+=this.legend.getWidth();break;default:i.right+=this.legend.getWidth()}e=e.detach()}var s,r=this.axes;for(_=0;_<12;_++)s=T[_],this.target.append(r[s].draw(this.baseCanvas._ctx,this)),r[s].set();r.yaxis.show&&(i.left+=r.yaxis.getWidth());var n=["y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"],a=[0,0,0,0,0,0,0,0],o=0;for(c=0;c<8;c++)r[n[c]].show&&(o+=r[n[c]].getWidth(),a[c]=o);if(i.right+=o,r.x2axis.show&&(i.top+=r.x2axis.getHeight()),this.title.show&&(i.top+=this.title.getHeight()),r.xaxis.show&&(i.bottom+=r.xaxis.getHeight()),this.options.gridDimensions&&Q.isPlainObject(this.options.gridDimensions)){var h=parseInt(this.options.gridDimensions.width,10)||0,l=parseInt(this.options.gridDimensions.height,10)||0,d=(this._width-i.left-i.right-h)/2,p=(this._height-i.top-i.bottom-l)/2;0<=p&&0<=d&&(i.top+=p,i.bottom+=p,i.left+=d,i.right+=d)}var g=["top","bottom","left","right"];for(var c in g)null==this._gridPadding[g[c]]&&0<i[g[c]]?this._gridPadding[g[c]]=i[g[c]]:null==this._gridPadding[g[c]]&&(this._gridPadding[g[c]]=this._defaultGridPadding[g[c]]);var u=this._gridPadding;for("outsideGrid"===this.legend.placement&&(u={top:this.title.getHeight(),left:0,right:0,bottom:0},"s"===this.legend.location&&(u.left=this._gridPadding.left,u.right=this._gridPadding.right)),r.xaxis.pack({position:"absolute",bottom:this._gridPadding.bottom-r.xaxis.getHeight(),left:0,width:this._width},{min:this._gridPadding.left,max:this._width-this._gridPadding.right}),r.yaxis.pack({position:"absolute",top:0,left:this._gridPadding.left-r.yaxis.getWidth(),height:this._height},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top}),r.x2axis.pack({position:"absolute",top:this._gridPadding.top-r.x2axis.getHeight(),left:0,width:this._width},{min:this._gridPadding.left,max:this._width-this._gridPadding.right}),_=8;0<_;_--)r[n[_-1]].pack({position:"absolute",top:0,right:this._gridPadding.right-a[_-1]},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top});var f=(this._width-this._gridPadding.left-this._gridPadding.right)/2+this._gridPadding.left-r.yMidAxis.getWidth()/2;r.yMidAxis.pack({position:"absolute",top:0,left:f,zIndex:9,textAlign:"center"},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top}),this.target.append(this.grid.createElement(this._gridPadding,this)),this.grid.draw();var m=this.series,x=m.length;for(_=0,v=x;_<v;_++)t=this.seriesStack[_],this.target.append(m[t].shadowCanvas.createElement(this._gridPadding,"jqplot-series-shadowCanvas",null,this)),m[t].shadowCanvas.setContext(),m[t].shadowCanvas._elem.data("seriesIndex",t);for(_=0,v=x;_<v;_++)t=this.seriesStack[_],this.target.append(m[t].canvas.createElement(this._gridPadding,"jqplot-series-canvas",null,this)),m[t].canvas.setContext(),m[t].canvas._elem.data("seriesIndex",t);this.target.append(this.eventCanvas.createElement(this._gridPadding,"jqplot-event-canvas",null,this)),this.eventCanvas.setContext(),this.eventCanvas._ctx.fillStyle="rgba(0,0,0,0)",this.eventCanvas._ctx.fillRect(0,0,this.eventCanvas._ctx.canvas.width,this.eventCanvas._ctx.canvas.height),this.bindCustomEvents(),this.legend.preDraw?(this.eventCanvas._elem.before(e),this.legend.pack(u),this.legend._elem?this.drawSeries({legendInfo:{location:this.legend.location,placement:this.legend.placement,width:this.legend.getWidth(),height:this.legend.getHeight(),xoffset:this.legend.xoffset,yoffset:this.legend.yoffset}}):this.drawSeries()):(this.drawSeries(),x&&Q(m[x-1].canvas._elem).after(e),this.legend.pack(u));for(var _=0,v=Q.jqplot.eventListenerHooks.length;_<v;_++)this.eventCanvas._elem.bind(Q.jqplot.eventListenerHooks[_][0],{plot:this},Q.jqplot.eventListenerHooks[_][1]);for(_=0,v=this.eventListenerHooks.hooks.length;_<v;_++)this.eventCanvas._elem.bind(this.eventListenerHooks.hooks[_][0],{plot:this},this.eventListenerHooks.hooks[_][1]);var w,b,y,k,j=this.fillBetween;if("number"==typeof j.series1)j.fill&&j.series1!==j.series2&&j.series1<x&&j.series2<x&&"line"===m[j.series1]._type&&"line"===m[j.series2]._type&&this.doFillBetweenLines();else if(null!=j.series1&&null!=j.series2){var q=!1;if(j.series1.length===j.series2.length)for(var S=0,M=0,D=0;D<j.series1.length;D++){if(!((S=j.series1[D])!==(M=j.series2[D])&&S<x&&M<x&&"line"===m[S]._type&&"line"===m[M]._type)){q=!1;break}q=!0}j.fill&&q&&this.doFillBetweenLines()}for(_=0,v=Q.jqplot.postDrawHooks.length;_<v;_++)Q.jqplot.postDrawHooks[_].call(this);for(_=0,v=this.postDrawHooks.hooks.length;_<v;_++)this.postDrawHooks.hooks[_].apply(this,this.postDrawHooks.args[_]);for(this.target.is(":visible")&&(this._drawCount+=1),_=0,v=x;_<v;_++)y=".jqplot-point-label.jqplot-series-"+_,(b=(w=m[_]).renderer).animation&&b.animation._supported&&b.animation.show&&(this._drawCount<2||this.animateReplot)&&((k=this.target.find(y)).stop(!0,!0).hide(),w.canvas._elem.stop(!0,!0).hide(),w.shadowCanvas._elem.stop(!0,!0).hide(),w.canvas._elem.jqplotEffect("blind",{mode:"show",direction:b.animation.direction},b.animation.speed),w.shadowCanvas._elem.jqplotEffect("blind",{mode:"show",direction:b.animation.direction},b.animation.speed),k.fadeIn(.8*b.animation.speed));k=null,this.target.trigger("jqplotPostDraw",[this])}},o.prototype.doFillBetweenLines=function(){function t(t,e){var i=d[t],s=d[e];if(s.renderer.smooth)var r=s.renderer._smoothedData.slice(0).reverse();else r=s.gridData.slice(0).reverse();if(i.renderer.smooth)var n=i.renderer._smoothedData.concat(r);else n=i.gridData.concat(r);var a=null!==l.color?l.color:d[p].fillColor,o=null!==l.baseSeries?l.baseSeries:t,h={fillStyle:a,fill:!0,closePath:!0};d[o].renderer.shapeRenderer.draw(i.shadowCanvas._ctx,n,h)}var l=this.fillBetween,d=this.series,p=l.series1,e=l.series2;if("number"==typeof p&&"number"==typeof e)t(p<e?p:e,p<e?e:p);else for(var i=0;i<p.length;i++)t(p[i]<e[i]?p[i]:e[i],e[i]>p[i]?e[i]:p[i])},this.bindCustomEvents=function(){this.eventCanvas._elem.bind("click",{plot:this},this.onClick),this.eventCanvas._elem.bind("dblclick",{plot:this},this.onDblClick),this.eventCanvas._elem.bind("mousedown",{plot:this},this.onMouseDown),this.eventCanvas._elem.bind("mousemove",{plot:this},this.onMouseMove),this.eventCanvas._elem.bind("mouseenter",{plot:this},this.onMouseEnter),this.eventCanvas._elem.bind("mouseleave",{plot:this},this.onMouseLeave),this.captureRightClick?(this.eventCanvas._elem.bind("mouseup",{plot:this},this.onRightClick),this.eventCanvas._elem.get(0).oncontextmenu=function(){return!1}):this.eventCanvas._elem.bind("mouseup",{plot:this},this.onMouseUp)},this.onClick=function(t){var e=n(t),i=t.data.plot,s=a(e.gridPos,i),r=Q.Event("jqplotClick");r.pageX=t.pageX,r.pageY=t.pageY,Q(this).trigger(r,[e.gridPos,e.dataPos,s,i])},this.onDblClick=function(t){var e=n(t),i=t.data.plot,s=a(e.gridPos,i),r=Q.Event("jqplotDblClick");r.pageX=t.pageX,r.pageY=t.pageY,Q(this).trigger(r,[e.gridPos,e.dataPos,s,i])},this.onMouseDown=function(t){var e=n(t),i=t.data.plot,s=a(e.gridPos,i),r=Q.Event("jqplotMouseDown");r.pageX=t.pageX,r.pageY=t.pageY,Q(this).trigger(r,[e.gridPos,e.dataPos,s,i])},this.onMouseUp=function(t){var e=n(t),i=Q.Event("jqplotMouseUp");i.pageX=t.pageX,i.pageY=t.pageY,Q(this).trigger(i,[e.gridPos,e.dataPos,null,t.data.plot])},this.onRightClick=function(t){var e=n(t),i=t.data.plot,s=a(e.gridPos,i);if(i.captureRightClick)if(3==t.which){(r=Q.Event("jqplotRightClick")).pageX=t.pageX,r.pageY=t.pageY,Q(this).trigger(r,[e.gridPos,e.dataPos,s,i])}else{var r;(r=Q.Event("jqplotMouseUp")).pageX=t.pageX,r.pageY=t.pageY,Q(this).trigger(r,[e.gridPos,e.dataPos,s,i])}},this.onMouseMove=function(t){var e=n(t),i=t.data.plot,s=a(e.gridPos,i),r=Q.Event("jqplotMouseMove");r.pageX=t.pageX,r.pageY=t.pageY,Q(this).trigger(r,[e.gridPos,e.dataPos,s,i])},this.onMouseEnter=function(t){var e=n(t),i=t.data.plot,s=Q.Event("jqplotMouseEnter");s.pageX=t.pageX,s.pageY=t.pageY,s.relatedTarget=t.relatedTarget,Q(this).trigger(s,[e.gridPos,e.dataPos,null,i])},this.onMouseLeave=function(t){var e=n(t),i=t.data.plot,s=Q.Event("jqplotMouseLeave");s.pageX=t.pageX,s.pageY=t.pageY,s.relatedTarget=t.relatedTarget,Q(this).trigger(s,[e.gridPos,e.dataPos,null,i])},this.drawSeries=function(t,e){var i,s,r;if(e="number"==typeof t&&null==e?t:e,t="object"==typeof t?t:{},e!=R)(r=(s=this.series[e]).shadowCanvas._ctx).clearRect(0,0,r.canvas.width,r.canvas.height),s.drawShadow(r,t,this),(r=s.canvas._ctx).clearRect(0,0,r.canvas.width,r.canvas.height),s.draw(r,t,this),s.renderer.constructor==Q.jqplot.BezierCurveRenderer&&e<this.series.length-1&&this.drawSeries(e+1);else for(i=0;i<this.series.length;i++)(r=(s=this.series[i]).shadowCanvas._ctx).clearRect(0,0,r.canvas.width,r.canvas.height),s.drawShadow(r,t,this),(r=s.canvas._ctx).clearRect(0,0,r.canvas.width,r.canvas.height),s.draw(r,t,this);t=e=i=s=r=null},this.moveSeriesToFront=function(t){t=parseInt(t,10);var e=Q.inArray(t,this.seriesStack);if(-1!=e){if(e==this.seriesStack.length-1)return void(this.previousSeriesStack=this.seriesStack.slice(0));var i=this.seriesStack[this.seriesStack.length-1],s=this.series[t].canvas._elem.detach(),r=this.series[t].shadowCanvas._elem.detach();this.series[i].shadowCanvas._elem.after(r),this.series[i].canvas._elem.after(s),this.previousSeriesStack=this.seriesStack.slice(0),this.seriesStack.splice(e,1),this.seriesStack.push(t)}},this.moveSeriesToBack=function(t){t=parseInt(t,10);var e=Q.inArray(t,this.seriesStack);if(0!=e&&-1!=e){var i=this.seriesStack[0],s=this.series[t].canvas._elem.detach(),r=this.series[t].shadowCanvas._elem.detach();this.series[i].shadowCanvas._elem.before(r),this.series[i].canvas._elem.before(s),this.previousSeriesStack=this.seriesStack.slice(0),this.seriesStack.splice(e,1),this.seriesStack.unshift(t)}},this.restorePreviousSeriesOrder=function(){var t,e,i,s,r,n;if(this.seriesStack!=this.previousSeriesStack){for(t=1;t<this.previousSeriesStack.length;t++)r=this.previousSeriesStack[t],n=this.previousSeriesStack[t-1],e=this.series[r].canvas._elem.detach(),i=this.series[r].shadowCanvas._elem.detach(),this.series[n].shadowCanvas._elem.after(i),this.series[n].canvas._elem.after(e);s=this.seriesStack.slice(0),this.seriesStack=this.previousSeriesStack.slice(0),this.previousSeriesStack=s}},this.restoreOriginalSeriesOrder=function(){var t,e,i,s=[];for(t=0;t<this.series.length;t++)s.push(t);if(this.seriesStack!=s)for(this.previousSeriesStack=this.seriesStack.slice(0),this.seriesStack=s,t=1;t<this.seriesStack.length;t++)e=this.series[t].canvas._elem.detach(),i=this.series[t].shadowCanvas._elem.detach(),this.series[t-1].shadowCanvas._elem.after(i),this.series[t-1].canvas._elem.after(e)},this.activateTheme=function(t){this.themeEngine.activate(this,t)}}function D(t,e){return(3.4182054+e)*Math.pow(t,-.3534992)}function C(t){return(Math.exp(2*t)-1)/(Math.exp(2*t)+1)}function d(t){function e(t,e){return t-e==0?Math.pow(10,10):t-e}var i,s=this.renderer.smooth,r=this.canvas.getWidth(),n=this._xaxis.series_p2u,a=this._yaxis.series_p2u,o=t.length/r,h=[],l=[];i=isNaN(parseFloat(s))?D(o,.5):parseFloat(s);for(var d=[],p=[],g=0,c=t.length;g<c;g++)d.push(t[g][1]),p.push(t[g][0]);for(var u,f,m,x,_=t.length-1,v=1,w=t.length;v<w;v++){for(var b=[],y=[],k=0;k<2;k++){0==(g=v-1+k)||g==_?b[k]=Math.pow(10,10):d[g+1]-d[g]==0||d[g]-d[g-1]==0?b[k]=0:(p[g+1]-p[g])/(d[g+1]-d[g])+(p[g]-p[g-1])/(d[g]-d[g-1])==0?b[k]=0:(d[g+1]-d[g])*(d[g]-d[g-1])<0?b[k]=0:b[k]=2/(e(p[g+1],p[g])/(d[g+1]-d[g])+e(p[g],p[g-1])/(d[g]-d[g-1]))}1==v?b[0]=1.5*(d[1]-d[0])/e(p[1],p[0])-b[1]/2:v==_&&(b[1]=1.5*(d[_]-d[_-1])/e(p[_],p[_-1])-b[0]/2),y[0]=-2*(b[1]+2*b[0])/e(p[v],p[v-1])+6*(d[v]-d[v-1])/Math.pow(e(p[v],p[v-1]),2),y[1]=2*(2*b[1]+b[0])/e(p[v],p[v-1])-6*(d[v]-d[v-1])/Math.pow(e(p[v],p[v-1]),2),x=1/6*(y[1]-y[0])/e(p[v],p[v-1]),m=.5*(p[v]*y[0]-p[v-1]*y[1])/e(p[v],p[v-1]),f=(d[v]-d[v-1]-m*(Math.pow(p[v],2)-Math.pow(p[v-1],2))-x*(Math.pow(p[v],3)-Math.pow(p[v-1],3)))/e(p[v],p[v-1]),u=d[v-1]-f*p[v-1]-m*Math.pow(p[v-1],2)-x*Math.pow(p[v-1],3);var j,q,S=(p[v]-p[v-1])/i;for(k=0,c=i;k<c;k++)j=[],q=p[v-1]+k*S,j.push(q),j.push(u+f*q+m*Math.pow(q,2)+x*Math.pow(q,3)),h.push(j),l.push([n(j[0]),a(j[1])])}return h.push(t[g]),l.push([n(t[g][0]),a(t[g][1])]),[h,l]}function p(t){var e,i,s,r,n,a,o,h,l,d,p,g,c,u,f=this.renderer.smooth,m=this.renderer.tension,x=this.canvas.getWidth(),_=this._xaxis.series_p2u,v=this._yaxis.series_p2u,w=null,b=null,y=null,k=t.length/x,j=[],q=[];u=isNaN(parseFloat(f))?D(k,.5):parseFloat(f),isNaN(parseFloat(m))||(m=parseFloat(m));for(var S=0,M=t.length-1;S<M;S++)for(w=null===m?(.3,.6,-1.4,b=.15*C(Math.abs((t[S+1][1]-t[S][1])/(t[S+1][0]-t[S][0]))/2.5-1.4)-.15*C(-1.4)+.3,0<S&&(y=Math.abs((t[S][1]-t[S-1][1])/(t[S][0]-t[S-1][0]))),(b+(.15*C(y/2.5-1.4)-.15*C(-1.4)+.3))/2):m,e=0;e<u;e++)s=(1+2*(i=e/u))*Math.pow(1-i,2),r=i*Math.pow(1-i,2),n=Math.pow(i,2)*(3-2*i),a=Math.pow(i,2)*(i-1),h=t[S-1]?(o=w*(t[S+1][0]-t[S-1][0]),w*(t[S+1][1]-t[S-1][1])):(o=w*(t[S+1][0]-t[S][0]),w*(t[S+1][1]-t[S][1])),d=t[S+2]?(l=w*(t[S+2][0]-t[S][0]),w*(t[S+2][1]-t[S][1])):(l=w*(t[S+1][0]-t[S][0]),w*(t[S+1][1]-t[S][1])),c=[p=s*t[S][0]+n*t[S+1][0]+r*o+a*l,g=s*t[S][1]+n*t[S+1][1]+r*h+a*d],j.push(c),q.push([_(p),v(g)]);return j.push(t[M]),q.push([_(t[M][0]),v(t[M][1])]),[j,q]}function h(t,e,i){for(var s=0;s<this.series.length;s++)this.series[s].renderer.constructor==Q.jqplot.LineRenderer&&this.series[s].highlightMouseOver&&(this.series[s].highlightMouseDown=!1)}function l(){this.plugins.lineRenderer&&this.plugins.lineRenderer.highlightCanvas&&(this.plugins.lineRenderer.highlightCanvas.resetCanvas(),this.plugins.lineRenderer.highlightCanvas=null),this.plugins.lineRenderer.highlightedSeriesIndex=null,this.plugins.lineRenderer.highlightCanvas=new Q.jqplot.GenericCanvas,this.eventCanvas._elem.before(this.plugins.lineRenderer.highlightCanvas.createElement(this._gridPadding,"jqplot-lineRenderer-highlight-canvas",this._plotDimensions,this)),this.plugins.lineRenderer.highlightCanvas.setContext(),this.eventCanvas._elem.bind("mouseleave",{plot:this},function(t){f(t.data.plot)})}function c(t,e,i,s){var r=t.series[e],n=t.plugins.lineRenderer.highlightCanvas;n._ctx.clearRect(0,0,n._ctx.canvas.width,n._ctx.canvas.height),r._highlightedPoint=i,t.plugins.lineRenderer.highlightedSeriesIndex=e;var a={fillStyle:r.highlightColor};"line"===r.type&&r.renderer.bands.show&&(a.fill=!0,a.closePath=!0),r.renderer.shapeRenderer.draw(n._ctx,s,a),n=null}function f(t){var e=t.plugins.lineRenderer.highlightCanvas;e._ctx.clearRect(0,0,e._ctx.canvas.width,e._ctx.canvas.height);for(var i=0;i<t.series.length;i++)t.series[i]._highlightedPoint=null;t.plugins.lineRenderer.highlightedSeriesIndex=null,t.target.trigger("jqplotDataUnhighlight"),e=null}function m(t,e,i,s,r){if(s){var n=[s.seriesIndex,s.pointIndex,s.data],a=jQuery.Event("jqplotDataMouseOver");if(a.pageX=t.pageX,a.pageY=t.pageY,r.target.trigger(a,n),r.series[n[0]].highlightMouseOver&&n[0]!=r.plugins.lineRenderer.highlightedSeriesIndex){var o=jQuery.Event("jqplotDataHighlight");o.which=t.which,o.pageX=t.pageX,o.pageY=t.pageY,r.target.trigger(o,n),c(r,s.seriesIndex,s.pointIndex,s.points)}}else null==s&&f(r)}function x(t,e,i,s,r){if(s){var n=[s.seriesIndex,s.pointIndex,s.data];if(r.series[n[0]].highlightMouseDown&&n[0]!=r.plugins.lineRenderer.highlightedSeriesIndex){var a=jQuery.Event("jqplotDataHighlight");a.which=t.which,a.pageX=t.pageX,a.pageY=t.pageY,r.target.trigger(a,n),c(r,s.seriesIndex,s.pointIndex,s.points)}}else null==s&&f(r)}function _(t,e,i,s,r){var n=r.plugins.lineRenderer.highlightedSeriesIndex;null!=n&&r.series[n].highlightMouseDown&&f(r)}function v(t,e,i,s,r){if(s){var n=[s.seriesIndex,s.pointIndex,s.data],a=jQuery.Event("jqplotDataClick");a.which=t.which,a.pageX=t.pageX,a.pageY=t.pageY,r.target.trigger(a,n)}}function w(t,e,i,s,r){if(s){var n=[s.seriesIndex,s.pointIndex,s.data],a=r.plugins.lineRenderer.highlightedSeriesIndex;null!=a&&r.series[a].highlightMouseDown&&f(r);var o=jQuery.Event("jqplotDataRightClick");o.which=t.which,o.pageX=t.pageX,o.pageY=t.pageY,r.target.trigger(o,n)}}function b(t){var e;if(10<=(t=Math.abs(t)))e="%d";else if(1<t)e=t===parseInt(t,10)?"%d":"%.1f";else{e="%."+-Math.floor(Math.log(t)/Math.LN10)+"f"}return e}function y(t,e){var i=t/((e=e||7)-1),s=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),r=i/s;return s<1?5<r?10*s:2<r?5*s:1<r?2*s:s:5<r?10*s:4<r?5*s:3<r?4*s:2<r?3*s:1<r?2*s:s}function k(t,e){e=e||1;var i=Math.floor(Math.log(t)/Math.LN10),s=Math.pow(10,i),r=t/s;return((r/=e)<=.38?.1:r<=1.6?.2:r<=4?.5:r<=8?1:r<=16?2:5)*s}function n(t,e){return t-e}function a(t){if(null==t||"object"!=typeof t)return t;var e=new t.constructor;for(var i in t)e[i]=a(t[i]);return e}function j(t,e){if(null!=e&&"object"==typeof e)for(var i in e)"highlightColors"==i&&(t[i]=a(e[i])),null!=e[i]&&"object"==typeof e[i]?(t.hasOwnProperty(i)||(t[i]={}),j(t[i],e[i])):t[i]=e[i]}function q(t,e){if(e.indexOf)return e.indexOf(t);for(var i=0,s=e.length;i<s;i++)if(e[i]===t)return i;return-1}function S(t){return null===t?"[object Null]":Object.prototype.toString.call(t)}var R;Q.fn.emptyForce=function(){for(var t,e=0;null!=(t=Q(this)[e]);e++){if(1===t.nodeType&&Q.cleanData(t.getElementsByTagName("*")),Q.jqplot.use_excanvas)t.outerHTML="";else for(;t.firstChild;)t.removeChild(t.firstChild);t=null}return Q(this)},Q.fn.removeChildForce=function(t){for(;t.firstChild;)this.removeChildForce(t.firstChild),t.removeChild(t.firstChild)},Q.fn.jqplot=function(){for(var h=[],l=[],t=0,e=arguments.length;t<e;t++)Q.isArray(arguments[t])?h.push(arguments[t]):Q.isPlainObject(arguments[t])&&l.push(arguments[t]);return this.each(function(t){var e,i,s,r,n=Q(this),a=h.length,o=l.length;s=t<a?h[t]:a?h[a-1]:null,r=t<o?l[t]:o?l[o-1]:null,(e=n.attr("id"))===R&&(e="jqplot_target_"+Q.jqplot.targetCounter++,n.attr("id",e)),i=Q.jqplot(e,s,r),n.data("jqplot",i)})},Q.jqplot=function(e,t,i){var s=null,r=null;3===arguments.length?(s=t,r=i):2===arguments.length&&(Q.isArray(t)?s=t:Q.isPlainObject(t)&&(r=t)),null===s&&null!==r&&r.data&&(s=r.data);var n=new o;if(Q("#"+e).removeClass("jqplot-error"),!Q.jqplot.config.catchErrors)return n.init(e,s,r),n.draw(),n.themeEngine.init.call(n),n;try{return n.init(e,s,r),n.draw(),n.themeEngine.init.call(n),n}catch(t){var a=Q.jqplot.config.errorMessage||t.message;Q("#"+e).append('<div class="jqplot-error-message">'+a+"</div>"),Q("#"+e).addClass("jqplot-error"),document.getElementById(e).style.background=Q.jqplot.config.errorBackground,document.getElementById(e).style.border=Q.jqplot.config.errorBorder,document.getElementById(e).style.fontFamily=Q.jqplot.config.errorFontFamily,document.getElementById(e).style.fontSize=Q.jqplot.config.errorFontSize,document.getElementById(e).style.fontStyle=Q.jqplot.config.errorFontStyle,document.getElementById(e).style.fontWeight=Q.jqplot.config.errorFontWeight}},Q.jqplot.version="1.0.9",Q.jqplot.revision="d96a669",Q.jqplot.targetCounter=1,Q.jqplot.CanvasManager=function(){void 0===Q.jqplot.CanvasManager.canvases&&(Q.jqplot.CanvasManager.canvases=[],Q.jqplot.CanvasManager.free=[]);var r=[];this.getCanvas=function(){var t,e=!0;if(!Q.jqplot.use_excanvas)for(var i=0,s=Q.jqplot.CanvasManager.canvases.length;i<s;i++)if(!0===Q.jqplot.CanvasManager.free[i]){e=!1,t=Q.jqplot.CanvasManager.canvases[i],Q.jqplot.CanvasManager.free[i]=!1,r.push(i);break}return e&&(t=document.createElement("canvas"),r.push(Q.jqplot.CanvasManager.canvases.length),Q.jqplot.CanvasManager.canvases.push(t),Q.jqplot.CanvasManager.free.push(!1)),t},this.initCanvas=function(t){if(Q.jqplot.use_excanvas)return window.G_vmlCanvasManager.initElement(t);var e=t.getContext("2d"),i=1;1<window.devicePixelRatio&&(e.webkitBackingStorePixelRatio===R||e.webkitBackingStorePixelRatio<2)&&(i=window.devicePixelRatio);var s=t.width,r=t.height;return t.width=i*t.width,t.height=i*t.height,t.style.width=s+"px",t.style.height=r+"px",e.save(),e.scale(i,i),t},this.freeAllCanvases=function(){for(var t=0,e=r.length;t<e;t++)this.freeCanvas(r[t]);r=[]},this.freeCanvas=function(t){if(Q.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==R)window.G_vmlCanvasManager.uninitElement(Q.jqplot.CanvasManager.canvases[t]),Q.jqplot.CanvasManager.canvases[t]=null;else{var e=Q.jqplot.CanvasManager.canvases[t];e.getContext("2d").clearRect(0,0,e.width,e.height),Q(e).unbind().removeAttr("class").removeAttr("style"),Q(e).css({left:"",top:"",position:""}),e.width=0,e.height=0,Q.jqplot.CanvasManager.free[t]=!0}}},Q.jqplot.log=function(){window.console&&window.console.log.apply(window.console,arguments)},Q.jqplot.config={addDomReference:!1,enablePlugins:!1,defaultHeight:300,defaultWidth:400,UTCAdjust:!1,timezoneOffset:new Date(6e4*(new Date).getTimezoneOffset()),errorMessage:"",errorBackground:"",errorBorder:"",errorFontFamily:"",errorFontSize:"",errorFontStyle:"",errorFontWeight:"",catchErrors:!1,defaultTickFormatString:"%.1f",defaultColors:["#4bb2c5","#EAA228","#c5b47f","#579575","#839557","#958c12","#953579","#4b5de4","#d8b83f","#ff5800","#0085cc","#c747a3","#cddf54","#FBD178","#26B4E3","#bd70c7"],defaultNegativeColors:["#498991","#C08840","#9F9274","#546D61","#646C4A","#6F6621","#6E3F5F","#4F64B0","#A89050","#C45923","#187399","#945381","#959E5C","#C7AF7B","#478396","#907294"],dashLength:4,gapLength:4,dotGapLength:2.5,srcLocation:"jqplot/src/",pluginLocation:"jqplot/src/plugins/"},Q.jqplot.arrayMax=function(t){return Math.max.apply(Math,t)},Q.jqplot.arrayMin=function(t){return Math.min.apply(Math,t)},Q.jqplot.enablePlugins=Q.jqplot.config.enablePlugins,Q.jqplot.support_canvas=function(){return void 0===Q.jqplot.support_canvas.result&&(Q.jqplot.support_canvas.result=!!document.createElement("canvas").getContext),Q.jqplot.support_canvas.result},Q.jqplot.support_canvas_text=function(){return void 0===Q.jqplot.support_canvas_text.result&&(window.G_vmlCanvasManager!==R&&887<window.G_vmlCanvasManager._version?Q.jqplot.support_canvas_text.result=!0:Q.jqplot.support_canvas_text.result=!(!document.createElement("canvas").getContext||"function"!=typeof document.createElement("canvas").getContext("2d").fillText)),Q.jqplot.support_canvas_text.result},Q.jqplot.use_excanvas=!(Q.support.boxModel&&Q.support.objectAll&&$support.leadingWhitespace||Q.jqplot.support_canvas()),Q.jqplot.preInitHooks=[],Q.jqplot.postInitHooks=[],Q.jqplot.preParseOptionsHooks=[],Q.jqplot.postParseOptionsHooks=[],Q.jqplot.preDrawHooks=[],Q.jqplot.postDrawHooks=[],Q.jqplot.preDrawSeriesHooks=[],Q.jqplot.postDrawSeriesHooks=[],Q.jqplot.preDrawLegendHooks=[],Q.jqplot.addLegendRowHooks=[],Q.jqplot.preSeriesInitHooks=[],Q.jqplot.postSeriesInitHooks=[],Q.jqplot.preParseSeriesOptionsHooks=[],Q.jqplot.postParseSeriesOptionsHooks=[],Q.jqplot.eventListenerHooks=[],Q.jqplot.preDrawSeriesShadowHooks=[],Q.jqplot.postDrawSeriesShadowHooks=[],Q.jqplot.ElemContainer=function(){this._elem,this._plotWidth,this._plotHeight,this._plotDimensions={height:null,width:null}},Q.jqplot.ElemContainer.prototype.createElement=function(t,e,i,s,r){this._offsets=e;var n=i||"jqplot",a=document.createElement(t);return this._elem=Q(a),this._elem.addClass(n),this._elem.css(s),this._elem.attr(r),a=null,this._elem},Q.jqplot.ElemContainer.prototype.getWidth=function(){return this._elem?this._elem.outerWidth(!0):null},Q.jqplot.ElemContainer.prototype.getHeight=function(){return this._elem?this._elem.outerHeight(!0):null},Q.jqplot.ElemContainer.prototype.getPosition=function(){return this._elem?this._elem.position():{top:null,left:null,bottom:null,right:null}},Q.jqplot.ElemContainer.prototype.getTop=function(){return this.getPosition().top},Q.jqplot.ElemContainer.prototype.getLeft=function(){return this.getPosition().left},Q.jqplot.ElemContainer.prototype.getBottom=function(){return this._elem.css("bottom")},Q.jqplot.ElemContainer.prototype.getRight=function(){return this._elem.css("right")},((u.prototype=new Q.jqplot.ElemContainer).constructor=u).prototype.init=function(){Q.isFunction(this.renderer)&&(this.renderer=new this.renderer),this.tickOptions.axis=this.name,null==this.tickOptions.showMark&&(this.tickOptions.showMark=this.showTicks),null==this.tickOptions.showMark&&(this.tickOptions.showMark=this.showTickMarks),null==this.tickOptions.showLabel&&(this.tickOptions.showLabel=this.showTicks),null==this.label||""==this.label?this.showLabel=!1:this.labelOptions.label=this.label,0==this.showLabel&&(this.labelOptions.show=!1),0==this.pad&&(this.pad=1),0==this.padMax&&(this.padMax=1),0==this.padMin&&(this.padMin=1),null==this.padMax&&(this.padMax=(this.pad-1)/2+1),null==this.padMin&&(this.padMin=(this.pad-1)/2+1),this.pad=this.padMax+this.padMin-1,null==this.min&&null==this.max||(this.autoscale=!1),null==this.syncTicks&&-1<this.name.indexOf("y")?this.syncTicks=!0:null==this.syncTicks&&(this.syncTicks=!1),this.renderer.init.call(this,this.rendererOptions)},u.prototype.draw=function(t,e){return this.__ticks&&(this.__ticks=null),this.renderer.draw.call(this,t,e)},u.prototype.set=function(){this.renderer.set.call(this)},u.prototype.pack=function(t,e){this.show&&this.renderer.pack.call(this,t,e),null==this._min&&(this._min=this.min,this._max=this.max,this._tickInterval=this.tickInterval,this._numberTicks=this.numberTicks,this.__ticks=this._ticks)},u.prototype.reset=function(){this.renderer.reset.call(this)},u.prototype.resetScale=function(t){Q.extend(!0,this,{min:null,max:null,numberTicks:null,tickInterval:null,_ticks:[],ticks:[]},t),this.resetDataBounds()},u.prototype.resetDataBounds=function(){var t=this._dataBounds;t.min=null,t.max=null;for(var e,i,s=!!this.show,r=0;r<this._series.length;r++)if((e=this._series[r]).show||this.scaleToHiddenSeries){i=e._plotData,"line"===e._type&&e.renderer.bands.show&&"x"!==this.name.charAt(0)&&(i=[[0,e.renderer.bands._min],[1,e.renderer.bands._max]]);var n=1,a=1;null!=e._type&&"ohlc"==e._type&&(n=3,a=2);for(var o=0,h=i.length;o<h;o++)"xaxis"==this.name||"x2axis"==this.name?((null!=i[o][0]&&i[o][0]<t.min||null==t.min)&&(t.min=i[o][0]),(null!=i[o][0]&&i[o][0]>t.max||null==t.max)&&(t.max=i[o][0])):((null!=i[o][n]&&i[o][n]<t.min||null==t.min)&&(t.min=i[o][n]),(null!=i[o][a]&&i[o][a]>t.max||null==t.max)&&(t.max=i[o][a]));s&&e.renderer.constructor!==Q.jqplot.BarRenderer?s=!1:s&&this._options.hasOwnProperty("forceTickAt0")&&0==this._options.forceTickAt0?s=!1:s&&e.renderer.constructor===Q.jqplot.BarRenderer&&("vertical"==e.barDirection&&"xaxis"!=this.name&&"x2axis"!=this.name?null==this._options.pad&&null==this._options.padMin||(s=!1):"horizontal"!=e.barDirection||"xaxis"!=this.name&&"x2axis"!=this.name||null==this._options.pad&&null==this._options.padMin||(s=!1))}s&&this.renderer.constructor===Q.jqplot.LinearAxisRenderer&&0<=t.min&&(this.padMin=1,this.forceTickAt0=!0)},((i.prototype=new Q.jqplot.ElemContainer).constructor=i).prototype.setOptions=function(t){if(Q.extend(!0,this,t),"inside"==this.placement&&(this.placement="insideGrid"),0<this.xoffset){if("insideGrid"==this.placement)switch(this.location){case"nw":case"w":case"sw":null==this.marginLeft&&(this.marginLeft=this.xoffset+"px"),this.marginRight="0px";break;case"ne":case"e":case"se":default:null==this.marginRight&&(this.marginRight=this.xoffset+"px"),this.marginLeft="0px"}else if("outside"==this.placement)switch(this.location){case"nw":case"w":case"sw":null==this.marginRight&&(this.marginRight=this.xoffset+"px"),this.marginLeft="0px";break;case"ne":case"e":case"se":default:null==this.marginLeft&&(this.marginLeft=this.xoffset+"px"),this.marginRight="0px"}this.xoffset=0}if(0<this.yoffset){if("outside"==this.placement)switch(this.location){case"sw":case"s":case"se":null==this.marginTop&&(this.marginTop=this.yoffset+"px"),this.marginBottom="0px";break;case"ne":case"n":case"nw":default:null==this.marginBottom&&(this.marginBottom=this.yoffset+"px"),this.marginTop="0px"}else if("insideGrid"==this.placement)switch(this.location){case"sw":case"s":case"se":null==this.marginBottom&&(this.marginBottom=this.yoffset+"px"),this.marginTop="0px";break;case"ne":case"n":case"nw":default:null==this.marginTop&&(this.marginTop=this.yoffset+"px"),this.marginBottom="0px"}this.yoffset=0}},i.prototype.init=function(){Q.isFunction(this.renderer)&&(this.renderer=new this.renderer),this.renderer.init.call(this,this.rendererOptions)},i.prototype.draw=function(t,e){for(var i=0;i<Q.jqplot.preDrawLegendHooks.length;i++)Q.jqplot.preDrawLegendHooks[i].call(this,t);return this.renderer.draw.call(this,t,e)},i.prototype.pack=function(t){this.renderer.pack.call(this,t)},((s.prototype=new Q.jqplot.ElemContainer).constructor=s).prototype.init=function(){Q.isFunction(this.renderer)&&(this.renderer=new this.renderer),this.renderer.init.call(this,this.rendererOptions)},s.prototype.draw=function(t){return this.renderer.draw.call(this,t)},s.prototype.pack=function(){this.renderer.pack.call(this)},((g.prototype=new Q.jqplot.ElemContainer).constructor=g).prototype.init=function(t,e,i){this.index=t,this.gridBorderWidth=e;var s,r,n=this.data,a=[];for(s=0,r=n.length;s<r;s++)if(this.breakOnNull)a.push(n[s]);else{if(null==n[s]||null==n[s][0]||null==n[s][1])continue;a.push(n[s])}if(this.data=a,this.color||(this.color=i.colorGenerator.get(this.index)),this.negativeColor||(this.negativeColor=i.negativeColorGenerator.get(this.index)),this.fillColor||(this.fillColor=this.color),this.fillAlpha){var o=Q.jqplot.normalize2rgb(this.fillColor);o=Q.jqplot.getColorComponents(o);this.fillColor="rgba("+o[0]+","+o[1]+","+o[2]+","+this.fillAlpha+")"}Q.isFunction(this.renderer)&&(this.renderer=new this.renderer),this.renderer.init.call(this,this.rendererOptions,i),this.markerRenderer=new this.markerRenderer,this.markerOptions.color||(this.markerOptions.color=this.color),null==this.markerOptions.show&&(this.markerOptions.show=this.showMarker),this.showMarker=this.markerOptions.show,this.markerRenderer.init(this.markerOptions)},g.prototype.draw=function(t,e,i){var s,r,n,a=e==R?{}:e;for(t=t==R?this.canvas._ctx:t,s=0;s<Q.jqplot.preDrawSeriesHooks.length;s++)Q.jqplot.preDrawSeriesHooks[s].call(this,t,a);for(this.show&&(this.renderer.setGridData.call(this,i),a.preventJqPlotSeriesDrawTrigger||Q(t.canvas).trigger("jqplotSeriesDraw",[this.data,this.gridData]),r=[],r=a.data?a.data:this._stack?this._plotData:this.data,n=a.gridData||this.renderer.makeGridData.call(this,r,i),"line"===this._type&&this.renderer.smooth&&this.renderer._smoothedData.length&&(n=this.renderer._smoothedData),this.renderer.draw.call(this,t,n,a,i)),s=0;s<Q.jqplot.postDrawSeriesHooks.length;s++)Q.jqplot.postDrawSeriesHooks[s].call(this,t,a,i);t=e=i=s=r=n=null},g.prototype.drawShadow=function(t,e,i){var s,r,n,a=e==R?{}:e;for(t=t==R?this.shadowCanvas._ctx:t,s=0;s<Q.jqplot.preDrawSeriesShadowHooks.length;s++)Q.jqplot.preDrawSeriesShadowHooks[s].call(this,t,a);for(this.shadow&&(this.renderer.setGridData.call(this,i),r=[],r=a.data?a.data:this._stack?this._plotData:this.data,n=a.gridData||this.renderer.makeGridData.call(this,r,i),this.renderer.drawShadow.call(this,t,n,a,i)),s=0;s<Q.jqplot.postDrawSeriesShadowHooks.length;s++)Q.jqplot.postDrawSeriesShadowHooks[s].call(this,t,a);t=e=i=s=r=n=null},g.prototype.toggleDisplay=function(t,e){var i,s;i=t.data.series?t.data.series:this,t.data.speed&&(s=t.data.speed),s?i.canvas._elem.is(":hidden")||!i.show?(i.show=!0,i.canvas._elem.removeClass("jqplot-series-hidden"),i.shadowCanvas._elem&&i.shadowCanvas._elem.fadeIn(s),i.canvas._elem.fadeIn(s,e),i.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+i.index).fadeIn(s)):(i.show=!1,i.canvas._elem.addClass("jqplot-series-hidden"),i.shadowCanvas._elem&&i.shadowCanvas._elem.fadeOut(s),i.canvas._elem.fadeOut(s,e),i.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+i.index).fadeOut(s)):i.canvas._elem.is(":hidden")||!i.show?(i.show=!0,i.canvas._elem.removeClass("jqplot-series-hidden"),i.shadowCanvas._elem&&i.shadowCanvas._elem.show(),i.canvas._elem.show(0,e),i.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+i.index).show()):(i.show=!1,i.canvas._elem.addClass("jqplot-series-hidden"),i.shadowCanvas._elem&&i.shadowCanvas._elem.hide(),i.canvas._elem.hide(0,e),i.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+i.index).hide())},((r.prototype=new Q.jqplot.ElemContainer).constructor=r).prototype.init=function(){Q.isFunction(this.renderer)&&(this.renderer=new this.renderer),this.renderer.init.call(this,this.rendererOptions)},r.prototype.createElement=function(t,e){return this._offsets=t,this.renderer.createElement.call(this,e)},r.prototype.draw=function(){this.renderer.draw.call(this)},Q.jqplot.GenericCanvas=function(){Q.jqplot.ElemContainer.call(this),this._ctx},Q.jqplot.GenericCanvas.prototype=new Q.jqplot.ElemContainer,Q.jqplot.GenericCanvas.prototype.constructor=Q.jqplot.GenericCanvas,Q.jqplot.GenericCanvas.prototype.createElement=function(t,e,i,s){this._offsets=t;var r,n="jqplot";return e!=R&&(n=e),r=s.canvasManager.getCanvas(),null!=i&&(this._plotDimensions=i),r.width=this._plotDimensions.width-this._offsets.left-this._offsets.right,r.height=this._plotDimensions.height-this._offsets.top-this._offsets.bottom,this._elem=Q(r),this._elem.css({position:"absolute",left:this._offsets.left,top:this._offsets.top}),this._elem.addClass(n),r=s.canvasManager.initCanvas(r),r=null,this._elem},Q.jqplot.GenericCanvas.prototype.setContext=function(){return this._ctx=this._elem.get(0).getContext("2d"),this._ctx},Q.jqplot.GenericCanvas.prototype.resetCanvas=function(){this._elem&&(Q.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==R&&window.G_vmlCanvasManager.uninitElement(this._elem.get(0)),this._elem.emptyForce()),this._ctx=null},Q.jqplot.HooksManager=function(){this.hooks=[],this.args=[]},Q.jqplot.HooksManager.prototype.addOnce=function(t,e){e=e||[];for(var i=!1,s=0,r=this.hooks.length;s<r;s++)this.hooks[s]==t&&(i=!0);i||(this.hooks.push(t),this.args.push(e))},Q.jqplot.HooksManager.prototype.add=function(t,e){e=e||[],this.hooks.push(t),this.args.push(e)},Q.jqplot.EventListenerManager=function(){this.hooks=[]},Q.jqplot.EventListenerManager.prototype.addOnce=function(t,e){for(var i,s=!1,r=0,n=this.hooks.length;r<n;r++)(i=this.hooks[r])[0]==t&&i[1]==e&&(s=!0);s||this.hooks.push([t,e])},Q.jqplot.EventListenerManager.prototype.add=function(t,e){this.hooks.push([t,e])};var T=["yMidAxis","xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"];Q.jqplot.computeHighlightColors=function(t){var e;if(Q.isArray(t)){e=[];for(var i=0;i<t.length;i++){for(var s=(a=[(n=Q.jqplot.getColorComponents(t[i]))[0],n[1],n[2]])[0]+a[1]+a[2],r=0;r<3;r++)a[r]=660<s?.85*a[r]:.73*a[r]+90,a[r]=parseInt(a[r],10),255<a[r]||a[r];a[3]=.3+.35*n[3],e.push("rgba("+a[0]+","+a[1]+","+a[2]+","+a[3]+")")}}else{var n,a;for(s=(a=[(n=Q.jqplot.getColorComponents(t))[0],n[1],n[2]])[0]+a[1]+a[2],r=0;r<3;r++)a[r]=660<s?.85*a[r]:.73*a[r]+90,a[r]=parseInt(a[r],10),255<a[r]||a[r];a[3]=.3+.35*n[3],e="rgba("+a[0]+","+a[1]+","+a[2]+","+a[3]+")"}return e},Q.jqplot.ColorGenerator=function(i){i=i||Q.jqplot.config.defaultColors;var e=0;this.next=function(){return e<i.length||(e=0),i[e++]},this.previous=function(){return 0<e?i[e--]:(e=i.length-1,i[e])},this.get=function(t){var e=t-i.length*Math.floor(t/i.length);return i[e]},this.setColors=function(t){i=t},this.reset=function(){e=0},this.getIndex=function(){return e},this.setIndex=function(t){e=t}},Q.jqplot.hex2rgb=function(t,e){var i;return 3==(t=t.replace("#","")).length&&(t=t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)),i="rgba("+parseInt(t.slice(0,2),16)+", "+parseInt(t.slice(2,4),16)+", "+parseInt(t.slice(4,6),16),e&&(i+=", "+e),i+")"},Q.jqplot.rgb2hex=function(t){for(var e=t.match(/rgba?\( *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *(?:, *[0-9.]*)?\)/),i="#",s=1;s<4;s++){var r;1==(r=-1!=e[s].search(/%/)?parseInt(255*e[s]/100,10).toString(16):parseInt(e[s],10).toString(16)).length&&(r="0"+r),i+=r}return i},Q.jqplot.normalize2rgb=function(t,e){if(-1!=t.search(/^ *rgba?\(/))return t;if(-1!=t.search(/^ *#?[0-9a-fA-F]?[0-9a-fA-F]/))return Q.jqplot.hex2rgb(t,e);throw new Error("Invalid color spec")},Q.jqplot.getColorComponents=function(t){t=Q.jqplot.colorKeywordMap[t]||t;for(var e=Q.jqplot.normalize2rgb(t).match(/rgba?\( *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *,? *([0-9.]* *)?\)/),i=[],s=1;s<4;s++)-1!=e[s].search(/%/)?i[s-1]=parseInt(255*e[s]/100,10):i[s-1]=parseInt(e[s],10);return i[3]=parseFloat(e[4])?parseFloat(e[4]):1,i},Q.jqplot.colorKeywordMap={aliceblue:"rgb(240, 248, 255)",antiquewhite:"rgb(250, 235, 215)",aqua:"rgb( 0, 255, 255)",aquamarine:"rgb(127, 255, 212)",azure:"rgb(240, 255, 255)",beige:"rgb(245, 245, 220)",bisque:"rgb(255, 228, 196)",black:"rgb( 0, 0, 0)",blanchedalmond:"rgb(255, 235, 205)",blue:"rgb( 0, 0, 255)",blueviolet:"rgb(138, 43, 226)",brown:"rgb(165, 42, 42)",burlywood:"rgb(222, 184, 135)",cadetblue:"rgb( 95, 158, 160)",chartreuse:"rgb(127, 255, 0)",chocolate:"rgb(210, 105, 30)",coral:"rgb(255, 127, 80)",cornflowerblue:"rgb(100, 149, 237)",cornsilk:"rgb(255, 248, 220)",crimson:"rgb(220, 20, 60)",cyan:"rgb( 0, 255, 255)",darkblue:"rgb( 0, 0, 139)",darkcyan:"rgb( 0, 139, 139)",darkgoldenrod:"rgb(184, 134, 11)",darkgray:"rgb(169, 169, 169)",darkgreen:"rgb( 0, 100, 0)",darkgrey:"rgb(169, 169, 169)",darkkhaki:"rgb(189, 183, 107)",darkmagenta:"rgb(139, 0, 139)",darkolivegreen:"rgb( 85, 107, 47)",darkorange:"rgb(255, 140, 0)",darkorchid:"rgb(153, 50, 204)",darkred:"rgb(139, 0, 0)",darksalmon:"rgb(233, 150, 122)",darkseagreen:"rgb(143, 188, 143)",darkslateblue:"rgb( 72, 61, 139)",darkslategray:"rgb( 47, 79, 79)",darkslategrey:"rgb( 47, 79, 79)",darkturquoise:"rgb( 0, 206, 209)",darkviolet:"rgb(148, 0, 211)",deeppink:"rgb(255, 20, 147)",deepskyblue:"rgb( 0, 191, 255)",dimgray:"rgb(105, 105, 105)",dimgrey:"rgb(105, 105, 105)",dodgerblue:"rgb( 30, 144, 255)",firebrick:"rgb(178, 34, 34)",floralwhite:"rgb(255, 250, 240)",forestgreen:"rgb( 34, 139, 34)",fuchsia:"rgb(255, 0, 255)",gainsboro:"rgb(220, 220, 220)",ghostwhite:"rgb(248, 248, 255)",gold:"rgb(255, 215, 0)",goldenrod:"rgb(218, 165, 32)",gray:"rgb(128, 128, 128)",grey:"rgb(128, 128, 128)",green:"rgb( 0, 128, 0)",greenyellow:"rgb(173, 255, 47)",honeydew:"rgb(240, 255, 240)",hotpink:"rgb(255, 105, 180)",indianred:"rgb(205, 92, 92)",indigo:"rgb( 75, 0, 130)",ivory:"rgb(255, 255, 240)",khaki:"rgb(240, 230, 140)",lavender:"rgb(230, 230, 250)",lavenderblush:"rgb(255, 240, 245)",lawngreen:"rgb(124, 252, 0)",lemonchiffon:"rgb(255, 250, 205)",lightblue:"rgb(173, 216, 230)",lightcoral:"rgb(240, 128, 128)",lightcyan:"rgb(224, 255, 255)",lightgoldenrodyellow:"rgb(250, 250, 210)",lightgray:"rgb(211, 211, 211)",lightgreen:"rgb(144, 238, 144)",lightgrey:"rgb(211, 211, 211)",lightpink:"rgb(255, 182, 193)",lightsalmon:"rgb(255, 160, 122)",lightseagreen:"rgb( 32, 178, 170)",lightskyblue:"rgb(135, 206, 250)",lightslategray:"rgb(119, 136, 153)",lightslategrey:"rgb(119, 136, 153)",lightsteelblue:"rgb(176, 196, 222)",lightyellow:"rgb(255, 255, 224)",lime:"rgb( 0, 255, 0)",limegreen:"rgb( 50, 205, 50)",linen:"rgb(250, 240, 230)",magenta:"rgb(255, 0, 255)",maroon:"rgb(128, 0, 0)",mediumaquamarine:"rgb(102, 205, 170)",mediumblue:"rgb( 0, 0, 205)",mediumorchid:"rgb(186, 85, 211)",mediumpurple:"rgb(147, 112, 219)",mediumseagreen:"rgb( 60, 179, 113)",mediumslateblue:"rgb(123, 104, 238)",mediumspringgreen:"rgb( 0, 250, 154)",mediumturquoise:"rgb( 72, 209, 204)",mediumvioletred:"rgb(199, 21, 133)",midnightblue:"rgb( 25, 25, 112)",mintcream:"rgb(245, 255, 250)",mistyrose:"rgb(255, 228, 225)",moccasin:"rgb(255, 228, 181)",navajowhite:"rgb(255, 222, 173)",navy:"rgb( 0, 0, 128)",oldlace:"rgb(253, 245, 230)",olive:"rgb(128, 128, 0)",olivedrab:"rgb(107, 142, 35)",orange:"rgb(255, 165, 0)",orangered:"rgb(255, 69, 0)",orchid:"rgb(218, 112, 214)",palegoldenrod:"rgb(238, 232, 170)",palegreen:"rgb(152, 251, 152)",paleturquoise:"rgb(175, 238, 238)",palevioletred:"rgb(219, 112, 147)",papayawhip:"rgb(255, 239, 213)",peachpuff:"rgb(255, 218, 185)",peru:"rgb(205, 133, 63)",pink:"rgb(255, 192, 203)",plum:"rgb(221, 160, 221)",powderblue:"rgb(176, 224, 230)",purple:"rgb(128, 0, 128)",red:"rgb(255, 0, 0)",rosybrown:"rgb(188, 143, 143)",royalblue:"rgb( 65, 105, 225)",saddlebrown:"rgb(139, 69, 19)",salmon:"rgb(250, 128, 114)",sandybrown:"rgb(244, 164, 96)",seagreen:"rgb( 46, 139, 87)",seashell:"rgb(255, 245, 238)",sienna:"rgb(160, 82, 45)",silver:"rgb(192, 192, 192)",skyblue:"rgb(135, 206, 235)",slateblue:"rgb(106, 90, 205)",slategray:"rgb(112, 128, 144)",slategrey:"rgb(112, 128, 144)",snow:"rgb(255, 250, 250)",springgreen:"rgb( 0, 255, 127)",steelblue:"rgb( 70, 130, 180)",tan:"rgb(210, 180, 140)",teal:"rgb( 0, 128, 128)",thistle:"rgb(216, 191, 216)",tomato:"rgb(255, 99, 71)",turquoise:"rgb( 64, 224, 208)",violet:"rgb(238, 130, 238)",wheat:"rgb(245, 222, 179)",white:"rgb(255, 255, 255)",whitesmoke:"rgb(245, 245, 245)",yellow:"rgb(255, 255, 0)",yellowgreen:"rgb(154, 205, 50)"},Q.jqplot.AxisLabelRenderer=function(t){Q.jqplot.ElemContainer.call(this),this.axis,this.show=!0,this.label="",this.fontFamily=null,this.fontSize=null,this.textColor=null,this._elem,this.escapeHTML=!1,Q.extend(!0,this,t)},Q.jqplot.AxisLabelRenderer.prototype=new Q.jqplot.ElemContainer,Q.jqplot.AxisLabelRenderer.prototype.constructor=Q.jqplot.AxisLabelRenderer,Q.jqplot.AxisLabelRenderer.prototype.init=function(t){Q.extend(!0,this,t)},Q.jqplot.AxisLabelRenderer.prototype.draw=function(t,e){return this._elem&&(this._elem.emptyForce(),this._elem=null),this._elem=Q('<div style="position:absolute;" class="jqplot-'+this.axis+'-label"></div>'),Number(this.label)&&this._elem.css("white-space","nowrap"),this.escapeHTML?this._elem.text(this.label):this._elem.html(this.label),this.fontFamily&&this._elem.css("font-family",this.fontFamily),this.fontSize&&this._elem.css("font-size",this.fontSize),this.textColor&&this._elem.css("color",this.textColor),this._elem},Q.jqplot.AxisLabelRenderer.prototype.pack=function(){},Q.jqplot.AxisTickRenderer=function(t){Q.jqplot.ElemContainer.call(this),this.mark="outside",this.axis,this.showMark=!0,this.showGridline=!0,this.isMinorTick=!1,this.size=4,this.markSize=6,this.show=!0,this.showLabel=!0,this.label=null,this.value=null,this._styles={},this.formatter=Q.jqplot.DefaultTickFormatter,this.prefix="",this.suffix="",this.formatString="",this.fontFamily,this.fontSize,this.textColor,this.escapeHTML=!1,this._elem,this._breakTick=!1,Q.extend(!0,this,t)},Q.jqplot.AxisTickRenderer.prototype.init=function(t){Q.extend(!0,this,t)},Q.jqplot.AxisTickRenderer.prototype=new Q.jqplot.ElemContainer,Q.jqplot.AxisTickRenderer.prototype.constructor=Q.jqplot.AxisTickRenderer,Q.jqplot.AxisTickRenderer.prototype.setTick=function(t,e,i){return this.value=t,this.axis=e,i&&(this.isMinorTick=!0),this},Q.jqplot.AxisTickRenderer.prototype.draw=function(){null===this.label&&(this.label=this.prefix+this.formatter(this.formatString,this.value)+this.suffix);var t={position:"absolute"};for(var e in Number(this.label)&&(t.whitSpace="nowrap"),this._elem&&(this._elem.emptyForce(),this._elem=null),this._elem=Q(document.createElement("div")),this._elem.addClass("jqplot-"+this.axis+"-tick"),this.escapeHTML?this._elem.text(this.label):this._elem.html(this.label),this._elem.css(t),this._styles)this._elem.css(e,this._styles[e]);return this.fontFamily&&this._elem.css("font-family",this.fontFamily),this.fontSize&&this._elem.css("font-size",this.fontSize),this.textColor&&this._elem.css("color",this.textColor),this._breakTick&&this._elem.addClass("jqplot-breakTick"),this._elem},Q.jqplot.DefaultTickFormatter=function(t,e){return"number"==typeof e?(t=t||Q.jqplot.config.defaultTickFormatString,Q.jqplot.sprintf(t,e)):String(e)},Q.jqplot.PercentTickFormatter=function(t,e){return"number"==typeof e?(e*=100,t=t||Q.jqplot.config.defaultTickFormatString,Q.jqplot.sprintf(t,e)):String(e)},Q.jqplot.AxisTickRenderer.prototype.pack=function(){},Q.jqplot.CanvasGridRenderer=function(){this.shadowRenderer=new Q.jqplot.ShadowRenderer},Q.jqplot.CanvasGridRenderer.prototype.init=function(t){this._ctx,Q.extend(!0,this,t);var e={lineJoin:"miter",lineCap:"round",fill:!1,isarc:!1,angle:this.shadowAngle,offset:this.shadowOffset,alpha:this.shadowAlpha,depth:this.shadowDepth,lineWidth:this.shadowWidth,closePath:!1,strokeStyle:this.shadowColor};this.renderer.shadowRenderer.init(e)},Q.jqplot.CanvasGridRenderer.prototype.createElement=function(t){var e;this._elem&&(Q.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==R&&(e=this._elem.get(0),window.G_vmlCanvasManager.uninitElement(e),e=null),this._elem.emptyForce(),this._elem=null),e=t.canvasManager.getCanvas();var i=this._plotDimensions.width,s=this._plotDimensions.height;return e.width=i,e.height=s,this._elem=Q(e),this._elem.addClass("jqplot-grid-canvas"),this._elem.css({position:"absolute",left:0,top:0}),e=t.canvasManager.initCanvas(e),this._top=this._offsets.top,this._bottom=s-this._offsets.bottom,this._left=this._offsets.left,this._right=i-this._offsets.right,this._width=this._right-this._left,this._height=this._bottom-this._top,e=null,this._elem},Q.jqplot.CanvasGridRenderer.prototype.draw=function(){function t(t,e,i,s,r){n.save(),null!=(r=r||{}).lineWidth&&0==r.lineWidth||(Q.extend(!0,n,r),n.beginPath(),n.moveTo(t,e),n.lineTo(i,s),n.stroke(),n.restore())}this._ctx=this._elem.get(0).getContext("2d");var n=this._ctx,e=this._axes;n.save(),n.clearRect(0,0,this._plotDimensions.width,this._plotDimensions.height),n.fillStyle=this.backgroundColor||this.background,n.fillRect(this._left,this._top,this._width,this._height),n.save(),n.lineJoin="miter",n.lineCap="butt",n.lineWidth=this.gridLineWidth,n.strokeStyle=this.gridLineColor;for(var i,s,r,a,o=["xaxis","yaxis","x2axis","y2axis"],h=4;0<h;h--){var l=o[h-1],d=(f=(u=e[l])._ticks).length;if(u.show){if(u.drawBaseline){var p={};switch(null!==u.baselineWidth&&(p.lineWidth=u.baselineWidth),null!==u.baselineColor&&(p.strokeStyle=u.baselineColor),l){case"xaxis":t(this._left,this._bottom,this._right,this._bottom,p);break;case"yaxis":t(this._left,this._bottom,this._left,this._top,p);break;case"x2axis":t(this._left,this._bottom,this._right,this._bottom,p);break;case"y2axis":t(this._right,this._bottom,this._right,this._top,p)}}for(var g=d;0<g;g--){if((w=f[g-1]).show){var c=Math.round(u.u2p(w.value))+.5;switch(l){case"xaxis":if(w.showGridline&&this.drawGridlines&&(!w.isMinorTick&&u.drawMajorGridlines||w.isMinorTick&&u.drawMinorGridlines)&&t(c,this._top,c,this._bottom),w.showMark&&w.mark&&(!w.isMinorTick&&u.drawMajorTickMarks||w.isMinorTick&&u.drawMinorTickMarks)){r=w.markSize,a=w.mark;c=Math.round(u.u2p(w.value))+.5;switch(a){case"outside":i=this._bottom,s=this._bottom+r;break;case"inside":i=this._bottom-r,s=this._bottom;break;case"cross":i=this._bottom-r,s=this._bottom+r;break;default:i=this._bottom,s=this._bottom+r}this.shadow&&this.renderer.shadowRenderer.draw(n,[[c,i],[c,s]],{lineCap:"butt",lineWidth:this.gridLineWidth,offset:.75*this.gridLineWidth,depth:2,fill:!1,closePath:!1}),t(c,i,c,s)}break;case"yaxis":if(w.showGridline&&this.drawGridlines&&(!w.isMinorTick&&u.drawMajorGridlines||w.isMinorTick&&u.drawMinorGridlines)&&t(this._right,c,this._left,c),w.showMark&&w.mark&&(!w.isMinorTick&&u.drawMajorTickMarks||w.isMinorTick&&u.drawMinorTickMarks)){r=w.markSize,a=w.mark;c=Math.round(u.u2p(w.value))+.5;switch(a){case"outside":i=this._left-r,s=this._left;break;case"inside":i=this._left,s=this._left+r;break;case"cross":i=this._left-r,s=this._left+r;break;default:i=this._left-r,s=this._left}this.shadow&&this.renderer.shadowRenderer.draw(n,[[i,c],[s,c]],{lineCap:"butt",lineWidth:1.5*this.gridLineWidth,offset:.75*this.gridLineWidth,fill:!1,closePath:!1}),t(i,c,s,c,{strokeStyle:u.borderColor})}break;case"x2axis":if(w.showGridline&&this.drawGridlines&&(!w.isMinorTick&&u.drawMajorGridlines||w.isMinorTick&&u.drawMinorGridlines)&&t(c,this._bottom,c,this._top),w.showMark&&w.mark&&(!w.isMinorTick&&u.drawMajorTickMarks||w.isMinorTick&&u.drawMinorTickMarks)){r=w.markSize,a=w.mark;c=Math.round(u.u2p(w.value))+.5;switch(a){case"outside":i=this._top-r,s=this._top;break;case"inside":i=this._top,s=this._top+r;break;case"cross":i=this._top-r,s=this._top+r;break;default:i=this._top-r,s=this._top}this.shadow&&this.renderer.shadowRenderer.draw(n,[[c,i],[c,s]],{lineCap:"butt",lineWidth:this.gridLineWidth,offset:.75*this.gridLineWidth,depth:2,fill:!1,closePath:!1}),t(c,i,c,s)}break;case"y2axis":if(w.showGridline&&this.drawGridlines&&(!w.isMinorTick&&u.drawMajorGridlines||w.isMinorTick&&u.drawMinorGridlines)&&t(this._left,c,this._right,c),w.showMark&&w.mark&&(!w.isMinorTick&&u.drawMajorTickMarks||w.isMinorTick&&u.drawMinorTickMarks)){r=w.markSize,a=w.mark;c=Math.round(u.u2p(w.value))+.5;switch(a){case"outside":i=this._right,s=this._right+r;break;case"inside":i=this._right-r,s=this._right;break;case"cross":i=this._right-r,s=this._right+r;break;default:i=this._right,s=this._right+r}this.shadow&&this.renderer.shadowRenderer.draw(n,[[i,c],[s,c]],{lineCap:"butt",lineWidth:1.5*this.gridLineWidth,offset:.75*this.gridLineWidth,fill:!1,closePath:!1}),t(i,c,s,c,{strokeStyle:u.borderColor})}}}}w=null}f=u=null}o=["y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis","yMidAxis"];for(h=7;0<h;h--){var u,f=(u=e[o[h-1]])._ticks;if(u.show){var m=f[u.numberTicks-1],x=f[0],_=u.getLeft(),v=[[_,m.getTop()+m.getHeight()/2],[_,x.getTop()+x.getHeight()/2+1]];this.shadow&&this.renderer.shadowRenderer.draw(n,v,{lineCap:"butt",fill:!1,closePath:!1}),t(v[0][0],v[0][1],v[1][0],v[1][1],{lineCap:"butt",strokeStyle:u.borderColor,lineWidth:u.borderWidth});for(g=f.length;0<g;g--){var w;r=(w=f[g-1]).markSize,a=w.mark;c=Math.round(u.u2p(w.value))+.5;if(w.showMark&&w.mark){switch(a){case"outside":s=(i=_)+r;break;case"inside":i=_-r,s=_;break;case"cross":i=_-r,s=_+r;break;default:s=(i=_)+r}v=[[i,c],[s,c]],this.shadow&&this.renderer.shadowRenderer.draw(n,v,{lineCap:"butt",lineWidth:1.5*this.gridLineWidth,offset:.75*this.gridLineWidth,fill:!1,closePath:!1}),t(i,c,s,c,{strokeStyle:u.borderColor})}w=null}x=null}f=u=null}if(n.restore(),this.shadow){v=[[this._left,this._bottom],[this._right,this._bottom],[this._right,this._top]];this.renderer.shadowRenderer.draw(n,v)}0!=this.borderWidth&&this.drawBorder&&(t(this._left,this._top,this._right,this._top,{lineCap:"round",strokeStyle:e.x2axis.borderColor,lineWidth:e.x2axis.borderWidth}),t(this._right,this._top,this._right,this._bottom,{lineCap:"round",strokeStyle:e.y2axis.borderColor,lineWidth:e.y2axis.borderWidth}),t(this._right,this._bottom,this._left,this._bottom,{lineCap:"round",strokeStyle:e.xaxis.borderColor,lineWidth:e.xaxis.borderWidth}),t(this._left,this._bottom,this._left,this._top,{lineCap:"round",strokeStyle:e.yaxis.borderColor,lineWidth:e.yaxis.borderWidth})),n.restore(),e=n=null},Q.jqplot.DivTitleRenderer=function(){},Q.jqplot.DivTitleRenderer.prototype.init=function(t){Q.extend(!0,this,t)},Q.jqplot.DivTitleRenderer.prototype.draw=function(){this._elem&&(this._elem.emptyForce(),this._elem=null);var t=(this.renderer,document.createElement("div"));if(this._elem=Q(t),this._elem.addClass("jqplot-title"),this.text){if(this.text){var e;this.color?e=this.color:this.textColor&&(e=this.textColor);var i={position:"absolute",top:"0px",left:"0px"};this._plotWidth&&(i.width=this._plotWidth+"px"),this.fontSize&&(i.fontSize=this.fontSize),"string"==typeof this.textAlign?i.textAlign=this.textAlign:i.textAlign="center",e&&(i.color=e),this.paddingBottom&&(i.paddingBottom=this.paddingBottom),this.fontFamily&&(i.fontFamily=this.fontFamily),this._elem.css(i),this.escapeHtml?this._elem.text(this.text):this._elem.html(this.text)}}else this.show=!1,this._elem.height(0),this._elem.width(0);return t=null,this._elem},Q.jqplot.DivTitleRenderer.prototype.pack=function(){};Q.jqplot.LinePattern=function(o,h){var t={dotted:[.1,Q.jqplot.config.dotGapLength],dashed:[Q.jqplot.config.dashLength,Q.jqplot.config.gapLength],solid:null};if("string"==typeof h)if("."===h[0]||"-"===h[0]){var e=h;h=[];for(var i=0,s=e.length;i<s;i++){if("."===e[i])h.push(.1);else{if("-"!==e[i])continue;h.push(Q.jqplot.config.dashLength)}h.push(Q.jqplot.config.gapLength)}}else h=t[h];if(!h||!h.length)return o;function r(t,e){var i=o.lineWidth,s=t-p,r=e-g,n=Math.sqrt(s*s+r*r);if(0<n&&0<i)for(s/=n,r/=n;;){var a=i*d;if(!(a<n)){p=t,g=e,0==(1&l)?o.lineTo(p,g):o.moveTo(p,g),d-=n/i;break}p+=a*s,g+=a*r,0==(1&l)?o.lineTo(p,g):o.moveTo(p,g),n-=a,++l>=h.length&&(l=0),d=h[l]}}var l=0,d=h[0],p=0,g=0,n=0,a=0;return{moveTo:function(t,e){o.moveTo(t,e),n=p=t,a=g=e},lineTo:r,beginPath:function(){o.beginPath()},closePath:function(){r(n,a)}}},Q.jqplot.LineRenderer=function(){this.shapeRenderer=new Q.jqplot.ShapeRenderer,this.shadowRenderer=new Q.jqplot.ShadowRenderer},Q.jqplot.LineRenderer.prototype.init=function(t,e){t=t||{},this._type="line",this.renderer.animation={show:!1,direction:"left",speed:2500,_supported:!0},this.renderer.smooth=!1,this.renderer.tension=null,this.renderer.constrainSmoothing=!0,this.renderer._smoothedData=[],this.renderer._smoothedPlotData=[],this.renderer._hiBandGridData=[],this.renderer._lowBandGridData=[],this.renderer._hiBandSmoothedData=[],this.renderer._lowBandSmoothedData=[],this.renderer.bandData=[],this.renderer.bands={show:!1,hiData:[],lowData:[],color:this.color,showLines:!1,fill:!0,fillColor:null,_min:null,_max:null,interval:"3%"};var i={highlightMouseOver:t.highlightMouseOver,highlightMouseDown:t.highlightMouseDown,highlightColor:t.highlightColor};delete t.highlightMouseOver,delete t.highlightMouseDown,delete t.highlightColor,Q.extend(!0,this.renderer,t),this.renderer.options=t,1<this.renderer.bandData.length&&(!t.bands||null==t.bands.show)?this.renderer.bands.show=!0:t.bands&&null==t.bands.show&&null!=t.bands.interval&&(this.renderer.bands.show=!0),this.fill&&(this.renderer.bands.show=!1),this.renderer.bands.show&&this.renderer.initBands.call(this,this.renderer.options,e),this._stack&&(this.renderer.smooth=!1);var s={lineJoin:this.lineJoin,lineCap:this.lineCap,fill:this.fill,isarc:!1,strokeStyle:this.color,fillStyle:this.fillColor,lineWidth:this.lineWidth,linePattern:this.linePattern,closePath:this.fill};this.renderer.shapeRenderer.init(s);var r=t.shadowOffset;null==r&&(r=2.5<this.lineWidth?1.25*(1+.6*(Math.atan(this.lineWidth/2.5)/.785398163-1)):1.25*Math.atan(this.lineWidth/2.5)/.785398163);var n={lineJoin:this.lineJoin,lineCap:this.lineCap,fill:this.fill,isarc:!1,angle:this.shadowAngle,offset:r,alpha:this.shadowAlpha,depth:this.shadowDepth,lineWidth:this.lineWidth,linePattern:this.linePattern,closePath:this.fill};if(this.renderer.shadowRenderer.init(n),this._areaPoints=[],this._boundingBox=[[],[]],!this.isTrendline&&this.fill||this.renderer.bands.show){if(this.highlightMouseOver=!0,this.highlightMouseDown=!1,this.highlightColor=null,i.highlightMouseDown&&null==i.highlightMouseOver&&(i.highlightMouseOver=!1),Q.extend(!0,this,{highlightMouseOver:i.highlightMouseOver,highlightMouseDown:i.highlightMouseDown,highlightColor:i.highlightColor}),!this.highlightColor){var a=this.renderer.bands.show?this.renderer.bands.fillColor:this.fillColor;this.highlightColor=Q.jqplot.computeHighlightColors(a)}this.highlighter&&(this.highlighter.show=!1)}!this.isTrendline&&e&&(e.plugins.lineRenderer={},e.postInitHooks.addOnce(h),e.postDrawHooks.addOnce(l),e.eventListenerHooks.addOnce("jqplotMouseMove",m),e.eventListenerHooks.addOnce("jqplotMouseDown",x),e.eventListenerHooks.addOnce("jqplotMouseUp",_),e.eventListenerHooks.addOnce("jqplotClick",v),e.eventListenerHooks.addOnce("jqplotRightClick",w))},Q.jqplot.LineRenderer.prototype.initBands=function(t,e){var i=t.bandData||[],s=this.renderer.bands;s.hiData=[],s.lowData=[];var r=this.data;if(s._max=null,s._min=null,2==i.length)if(Q.isArray(i[0][0])){for(var n,a=0,o=0,h=0,l=i[0].length;h<l;h++)(null!=(n=i[0][h])[1]&&n[1]>s._max||null==s._max)&&(s._max=n[1]),(null!=n[1]&&n[1]<s._min||null==s._min)&&(s._min=n[1]);for(h=0,l=i[1].length;h<l;h++)(null!=(n=i[1][h])[1]&&n[1]>s._max||null==s._max)&&(s._max=n[1],o=1),(null!=n[1]&&n[1]<s._min||null==s._min)&&(s._min=n[1],a=1);o===a&&(s.show=!1),s.hiData=i[o],s.lowData=i[a]}else if(i[0].length===r.length&&i[1].length===r.length){var d=(p=i[0][0]>i[1][0]?0:1)?0:1;for(h=0,l=r.length;h<l;h++)s.hiData.push([r[h][0],i[p][h]]),s.lowData.push([r[h][0],i[d][h]])}else s.show=!1;else if(2<i.length&&!Q.isArray(i[0][0])){var p;for(d=(p=i[0][0]>i[0][1]?0:1)?0:1,h=0,l=i.length;h<l;h++)s.hiData.push([r[h][0],i[h][p]]),s.lowData.push([r[h][0],i[h][d]])}else{var g=s.interval,c=null,u=null,f=null,m=null;if(Q.isArray(g)?(c=g[0],u=g[1]):c=g,isNaN(c)?"%"===c.charAt(c.length-1)&&(f="multiply",c=parseFloat(c)/100+1):(c=parseFloat(c),f="add"),null!==u&&isNaN(u)?"%"===u.charAt(u.length-1)&&(m="multiply",u=parseFloat(u)/100+1):null!==u&&(u=parseFloat(u),m="add"),null!==c){if(null===u&&(u=-c,"multiply"===(m=f)&&(u+=2)),c<u){var x=c;c=u,u=x,x=f,f=m,m=x}for(h=0,l=r.length;h<l;h++){switch(f){case"add":s.hiData.push([r[h][0],r[h][1]+c]);break;case"multiply":s.hiData.push([r[h][0],r[h][1]*c])}switch(m){case"add":s.lowData.push([r[h][0],r[h][1]+u]);break;case"multiply":s.lowData.push([r[h][0],r[h][1]*u])}}}else s.show=!1}var _=s.hiData,v=s.lowData;for(h=0,l=_.length;h<l;h++)(null!=_[h][1]&&_[h][1]>s._max||null==s._max)&&(s._max=_[h][1]);for(h=0,l=v.length;h<l;h++)(null!=v[h][1]&&v[h][1]<s._min||null==s._min)&&(s._min=v[h][1]);if(null===s.fillColor){var w=Q.jqplot.getColorComponents(s.color);w[3]=.5*w[3],s.fillColor="rgba("+w[0]+", "+w[1]+", "+w[2]+", "+w[3]+")"}},Q.jqplot.LineRenderer.prototype.setGridData=function(t){var e,i=this._xaxis.series_u2p,s=this._yaxis.series_u2p,r=this._plotData,n=this._prevPlotData;this.gridData=[],this._prevGridData=[],this.renderer._smoothedData=[],this.renderer._smoothedPlotData=[],this.renderer._hiBandGridData=[],this.renderer._lowBandGridData=[],this.renderer._hiBandSmoothedData=[],this.renderer._lowBandSmoothedData=[];for(var a=this.renderer.bands,o=!1,h=0,l=r.length;h<l;h++)null!=r[h][0]&&null!=r[h][1]?this.gridData.push([i.call(this._xaxis,r[h][0]),s.call(this._yaxis,r[h][1])]):null==r[h][0]?(o=!0,this.gridData.push([null,s.call(this._yaxis,r[h][1])])):null==r[h][1]&&(o=!0,this.gridData.push([i.call(this._xaxis,r[h][0]),null])),null!=n[h]&&null!=n[h][0]&&null!=n[h][1]?this._prevGridData.push([i.call(this._xaxis,n[h][0]),s.call(this._yaxis,n[h][1])]):null!=n[h]&&null==n[h][0]?this._prevGridData.push([null,s.call(this._yaxis,n[h][1])]):null!=n[h]&&null!=n[h][0]&&null==n[h][1]&&this._prevGridData.push([i.call(this._xaxis,n[h][0]),null]);if(o&&(this.renderer.smooth=!1,"line"===this._type&&(a.show=!1)),"line"===this._type&&a.show){for(h=0,l=a.hiData.length;h<l;h++)this.renderer._hiBandGridData.push([i.call(this._xaxis,a.hiData[h][0]),s.call(this._yaxis,a.hiData[h][1])]);for(h=0,l=a.lowData.length;h<l;h++)this.renderer._lowBandGridData.push([i.call(this._xaxis,a.lowData[h][0]),s.call(this._yaxis,a.lowData[h][1])])}"line"===this._type&&this.renderer.smooth&&2<this.gridData.length&&(e=(this.renderer.constrainSmoothing?(e=d.call(this,this.gridData),this.renderer._smoothedData=e[0],this.renderer._smoothedPlotData=e[1],a.show&&(e=d.call(this,this.renderer._hiBandGridData),this.renderer._hiBandSmoothedData=e[0],e=d.call(this,this.renderer._lowBandGridData),this.renderer._lowBandSmoothedData=e[0])):(e=p.call(this,this.gridData),this.renderer._smoothedData=e[0],this.renderer._smoothedPlotData=e[1],a.show&&(e=p.call(this,this.renderer._hiBandGridData),this.renderer._hiBandSmoothedData=e[0],e=p.call(this,this.renderer._lowBandGridData),this.renderer._lowBandSmoothedData=e[0])),null))},Q.jqplot.LineRenderer.prototype.makeGridData=function(t,e){var i,s=this._xaxis.series_u2p,r=this._yaxis.series_u2p,n=[];this.renderer._smoothedData=[],this.renderer._smoothedPlotData=[],this.renderer._hiBandGridData=[],this.renderer._lowBandGridData=[],this.renderer._hiBandSmoothedData=[],this.renderer._lowBandSmoothedData=[];for(var a=this.renderer.bands,o=!1,h=0;h<t.length;h++)null!=t[h][0]&&null!=t[h][1]?(this.step&&0<h&&n.push([s.call(this._xaxis,t[h][0]),r.call(this._yaxis,t[h-1][1])]),n.push([s.call(this._xaxis,t[h][0]),r.call(this._yaxis,t[h][1])])):null==t[h][0]?(o=!0,n.push([null,r.call(this._yaxis,t[h][1])])):null==t[h][1]&&(o=!0,n.push([s.call(this._xaxis,t[h][0]),null]));if(o&&(this.renderer.smooth=!1,"line"===this._type&&(a.show=!1)),"line"===this._type&&a.show){h=0;for(var l=a.hiData.length;h<l;h++)this.renderer._hiBandGridData.push([s.call(this._xaxis,a.hiData[h][0]),r.call(this._yaxis,a.hiData[h][1])]);for(h=0,l=a.lowData.length;h<l;h++)this.renderer._lowBandGridData.push([s.call(this._xaxis,a.lowData[h][0]),r.call(this._yaxis,a.lowData[h][1])])}"line"===this._type&&this.renderer.smooth&&2<n.length&&(i=(this.renderer.constrainSmoothing?(i=d.call(this,n),this.renderer._smoothedData=i[0],this.renderer._smoothedPlotData=i[1],a.show&&(i=d.call(this,this.renderer._hiBandGridData),this.renderer._hiBandSmoothedData=i[0],i=d.call(this,this.renderer._lowBandGridData),this.renderer._lowBandSmoothedData=i[0])):(i=p.call(this,n),this.renderer._smoothedData=i[0],this.renderer._smoothedPlotData=i[1],a.show&&(i=p.call(this,this.renderer._hiBandGridData),this.renderer._hiBandSmoothedData=i[0],i=p.call(this,this.renderer._lowBandGridData),this.renderer._lowBandSmoothedData=i[0])),null));return n},Q.jqplot.LineRenderer.prototype.draw=function(t,e,i,s){var r,n,a,o=Q.extend(!0,{},i),h=o.shadow!=R?o.shadow:this.shadow,l=o.showLine!=R?o.showLine:this.showLine,d=o.fill!=R?o.fill:this.fill,p=o.fillAndStroke!=R?o.fillAndStroke:this.fillAndStroke;if(t.save(),e.length){if(l)if(d){if(this.fillToZero){var g=this.negativeColor;this.useNegativeColors||(g=o.fillStyle);var c=o.fillStyle;if(p)var u=e.slice(0);if(0!=this.index&&this._stack){for(var f=(w=this._prevGridData).length;0<f;f--)e.push(w[f-1]);h&&this.renderer.shadowRenderer.draw(t,e,o),this._areaPoints=e,this.renderer.shapeRenderer.draw(t,e,o)}else{var m=[],x=this.renderer.smooth?this.renderer._smoothedPlotData:this._plotData;this._areaPoints=[];var _=this._yaxis.series_u2p(this.fillToValue);if(this._xaxis.series_u2p(this.fillToValue),o.closePath=!0,"y"==this.fillAxis){m.push([e[0][0],_]),this._areaPoints.push([e[0][0],_]);for(f=0;f<e.length-1;f++)if(m.push(e[f]),this._areaPoints.push(e[f]),x[f][1]*x[f+1][1]<=0){x[f][1]<0?(!0,o.fillStyle=g):(!1,o.fillStyle=c);var v=e[f][0]+(e[f+1][0]-e[f][0])*(_-e[f][1])/(e[f+1][1]-e[f][1]);m.push([v,_]),this._areaPoints.push([v,_]),h&&this.renderer.shadowRenderer.draw(t,m,o),this.renderer.shapeRenderer.draw(t,m,o),m=[[v,_]]}x[e.length-1][1]<0?(!0,o.fillStyle=g):(!1,o.fillStyle=c),m.push(e[e.length-1]),this._areaPoints.push(e[e.length-1]),m.push([e[e.length-1][0],_]),this._areaPoints.push([e[e.length-1][0],_])}h&&this.renderer.shadowRenderer.draw(t,m,o),this.renderer.shapeRenderer.draw(t,m,o)}}else{if(p)u=e.slice(0);if(0!=this.index&&this._stack){var w;for(f=(w=this._prevGridData).length;0<f;f--)e.push(w[f-1])}else{var b=t.canvas.height;e.unshift([e[0][0],b]);var y=e.length;e.push([e[y-1][0],b])}this._areaPoints=e,h&&this.renderer.shadowRenderer.draw(t,e,o),this.renderer.shapeRenderer.draw(t,e,o)}if(p){var k=Q.extend(!0,{},o,{fill:!1,closePath:!1});if(this.renderer.shapeRenderer.draw(t,u,k),this.markerRenderer.show)for(this.renderer.smooth&&(u=this.gridData),f=0;f<u.length;f++)this.markerRenderer.draw(u[f][0],u[f][1],t,o.markerOptions)}}else{if(this.renderer.bands.show){var j,q=Q.extend(!0,{},o);this.renderer.bands.showLines&&(j=this.renderer.smooth?this.renderer._hiBandSmoothedData:this.renderer._hiBandGridData,this.renderer.shapeRenderer.draw(t,j,o),j=this.renderer.smooth?this.renderer._lowBandSmoothedData:this.renderer._lowBandGridData,this.renderer.shapeRenderer.draw(t,j,q)),this.renderer.bands.fill&&(j=this.renderer.smooth?this.renderer._hiBandSmoothedData.concat(this.renderer._lowBandSmoothedData.reverse()):this.renderer._hiBandGridData.concat(this.renderer._lowBandGridData.reverse()),this._areaPoints=j,q.closePath=!0,q.fill=!0,q.fillStyle=this.renderer.bands.fillColor,this.renderer.shapeRenderer.draw(t,j,q))}h&&this.renderer.shadowRenderer.draw(t,e,o),this.renderer.shapeRenderer.draw(t,e,o)}var S=n=r=a=null;for(f=0;f<this._areaPoints.length;f++){var M=this._areaPoints[f];(S>M[0]||null==S)&&(S=M[0]),(a<M[1]||null==a)&&(a=M[1]),(n<M[0]||null==n)&&(n=M[0]),(r>M[1]||null==r)&&(r=M[1])}if("line"===this.type&&this.renderer.bands.show&&(a=this._yaxis.series_u2p(this.renderer.bands._min),r=this._yaxis.series_u2p(this.renderer.bands._max)),this._boundingBox=[[S,a],[n,r]],this.markerRenderer.show&&!d)for(this.renderer.smooth&&(e=this.gridData),f=0;f<e.length;f++)null!=e[f][0]&&null!=e[f][1]&&this.markerRenderer.draw(e[f][0],e[f][1],t,o.markerOptions)}t.restore()},Q.jqplot.LineRenderer.prototype.drawShadow=function(t,e,i){},Q.jqplot.LinearAxisRenderer=function(){},Q.jqplot.LinearAxisRenderer.prototype.init=function(t){this.breakPoints=null,this.breakTickLabel="≈",this.drawBaseline=!0,this.baselineWidth=null,this.baselineColor=null,this.forceTickAt0=!1,this.forceTickAt100=!1,this.tickInset=0,this.minorTicks=0,this.alignTicks=!1,this._autoFormatString="",this._overrideFormatString=!1,this._scalefact=1,Q.extend(!0,this,t),this.breakPoints&&(Q.isArray(this.breakPoints)?(this.breakPoints.length<2||this.breakPoints[1]<=this.breakPoints[0])&&(this.breakPoints=null):this.breakPoints=null),null!=this.numberTicks&&this.numberTicks<2&&(this.numberTicks=2),this.resetDataBounds()},Q.jqplot.LinearAxisRenderer.prototype.draw=function(t,e){if(this.show){if(this.renderer.createTicks.call(this,e),this._elem&&(this._elem.emptyForce(),this._elem=null),this._elem=Q(document.createElement("div")),this._elem.addClass("jqplot-axis jqplot-"+this.name),this._elem.css("position","absolute"),"xaxis"==this.name||"x2axis"==this.name?this._elem.width(this._plotDimensions.width):this._elem.height(this._plotDimensions.height),this.labelOptions.axis=this.name,this._label=new this.labelRenderer(this.labelOptions),this._label.show){var i=this._label.draw(t,e);i.appendTo(this._elem),i=null}for(var s,r=this._ticks,n=0;n<r.length;n++)(s=r[n]).show&&s.showLabel&&(!s.isMinorTick||this.showMinorTicks)&&this._elem.append(s.draw(t,e));r=s=null}return this._elem},Q.jqplot.LinearAxisRenderer.prototype.reset=function(){this.min=this._options.min,this.max=this._options.max,this.tickInterval=this._options.tickInterval,this.numberTicks=this._options.numberTicks,this._autoFormatString="",this._overrideFormatString&&this.tickOptions&&this.tickOptions.formatString&&(this.tickOptions.formatString="")},Q.jqplot.LinearAxisRenderer.prototype.set=function(){var t,e=0,i=0,s=0,r=null!=this._label&&this._label.show;if(this.show){for(var n,a=this._ticks,o=0;o<a.length;o++)(n=a[o])._breakTick||!n.show||!n.showLabel||n.isMinorTick&&!this.showMinorTicks||e<(t="xaxis"==this.name||"x2axis"==this.name?n._elem.outerHeight(!0):n._elem.outerWidth(!0))&&(e=t);a=n=null,r&&(i=this._label._elem.outerWidth(!0),s=this._label._elem.outerHeight(!0)),"xaxis"==this.name?(e+=s,this._elem.css({height:e+"px",left:"0px",bottom:"0px"})):"x2axis"==this.name?(e+=s,this._elem.css({height:e+"px",left:"0px",top:"0px"})):("yaxis"==this.name?(e+=i,this._elem.css({width:e+"px",left:"0px",top:"0px"})):(e+=i,this._elem.css({width:e+"px",right:"0px",top:"0px"})),r&&this._label.constructor==Q.jqplot.AxisLabelRenderer&&this._label._elem.css("width",i+"px"))}},Q.jqplot.LinearAxisRenderer.prototype.createTicks=function(t){this._ticks;var e,i,s,r=this.ticks,n=this.name,a=this._dataBounds,o="x"===this.name.charAt(0)?this._plotDimensions.width:this._plotDimensions.height,h=this.min,l=this.max,d=this.numberTicks,p=this.tickInterval;if(this._scalefact=(Math.max(o,31)-30)/300,r.length){for(C=0;C<r.length;C++){var g=r[C],c=new this.tickRenderer(this.tickOptions);Q.isArray(g)?(c.value=g[0],this.breakPoints?g[0]==this.breakPoints[0]?(c.label=this.breakTickLabel,c._breakTick=!0,c.showGridline=!1,c.showMark=!1):(g[0]>this.breakPoints[0]&&g[0]<=this.breakPoints[1]&&(c.show=!1,c.showGridline=!1),c.label=g[1]):c.label=g[1],c.setTick(g[0],this.name)):Q.isPlainObject(g)?(Q.extend(!0,c,g),c.axis=this.name):(c.value=g,this.breakPoints&&(g==this.breakPoints[0]?(c.label=this.breakTickLabel,c._breakTick=!0,c.showGridline=!1,c.showMark=!1):g>this.breakPoints[0]&&g<=this.breakPoints[1]&&(c.show=!1,c.showGridline=!1)),c.setTick(g,this.name)),this._ticks.push(c)}this.numberTicks=r.length,this.min=this._ticks[0].value,this.max=this._ticks[this.numberTicks-1].value,this.tickInterval=(this.max-this.min)/(this.numberTicks-1)}else{o="xaxis"==n||"x2axis"==n?this._plotDimensions.width:this._plotDimensions.height;var u=this.numberTicks;this.alignTicks&&("x2axis"===this.name&&t.axes.xaxis.show?u=t.axes.xaxis.numberTicks:"y"===this.name.charAt(0)&&"yaxis"!==this.name&&"yMidAxis"!==this.name&&t.axes.yaxis.show&&(u=t.axes.yaxis.numberTicks)),e=null!=this.min?this.min:a.min;var f,m,x=(i=null!=this.max?this.max:a.max)-e;if(null!=this.tickOptions&&this.tickOptions.formatString||(this._overrideFormatString=!0),null==this.min||null==this.max&&null==this.tickInterval&&!this.autoscale){this.forceTickAt0&&(0<e&&(e=0),i<0&&(i=0)),this.forceTickAt100&&(100<e&&(e=100),i<100&&(i=100));var _=!1,v=!1;null!=this.min?_=!0:null!=this.max&&(v=!0);var w=Q.jqplot.LinearTickGenerator(e,i,this._scalefact,u,_,v),b=null!=this.min?e:e+x*(this.padMin-1),y=null!=this.max?i:i-x*(this.padMax-1);(e<b||y<i)&&(b=null!=this.min?e:e-x*(this.padMin-1),y=null!=this.max?i:i+x*(this.padMax-1),w=Q.jqplot.LinearTickGenerator(b,y,this._scalefact,u,_,v)),this.min=w[0],this.max=w[1],this.numberTicks=w[2],this._autoFormatString=w[3],this.tickInterval=w[4]}else{if(e==i){var k=.05;0<e&&(k=Math.max(Math.log(e)/Math.LN10,.05)),e-=k,i+=k}if(this.autoscale&&null==this.min&&null==this.max){for(var j,q,S,M=!1,D=!1,C=0;C<this._series.length;C++){var R=this._series[C],T="x"==R.fillAxis?R._xaxis.name:R._yaxis.name;if(this.name==T){for(var P=R._plotValues[R.fillAxis],I=P[0],O=P[0],L=1;L<P.length;L++)P[L]<I?I=P[L]:P[L]>O&&(O=P[L]);var H=(O-I)/O;R.renderer.constructor==Q.jqplot.BarRenderer?0<=I&&(R.fillToZero||.1<H)?M=!0:(M=!1,D=!!(R.fill&&R.fillToZero&&I<0&&0<O)):R.fill?0<=I&&(R.fillToZero||.1<H)?M=!0:D=I<0&&0<O&&R.fillToZero?!(M=!1):M=!1:I<0&&(M=!1)}}if(M)this.numberTicks=2+Math.ceil((o-(this.tickSpacing-1))/this.tickSpacing),h=this.min=0,(q=i/(this.numberTicks-1))/(W=Math.pow(10,Math.abs(Math.floor(Math.log(q)/Math.LN10))))==parseInt(q/W,10)&&(q+=W),this.tickInterval=Math.ceil(q/W)*W,this.max=this.tickInterval*(this.numberTicks-1);else if(D){this.numberTicks=2+Math.ceil((o-(this.tickSpacing-1))/this.tickSpacing);var A=Math.ceil(Math.abs(e)/x*(this.numberTicks-1)),F=this.numberTicks-1-A;q=Math.max(Math.abs(e/A),Math.abs(i/F)),W=Math.pow(10,Math.abs(Math.floor(Math.log(q)/Math.LN10))),this.tickInterval=Math.ceil(q/W)*W,this.max=this.tickInterval*F,this.min=-this.tickInterval*A}else null==this.numberTicks&&(this.tickInterval?this.numberTicks=3+Math.ceil(x/this.tickInterval):this.numberTicks=2+Math.ceil((o-(this.tickSpacing-1))/this.tickSpacing)),null==this.tickInterval?(W=(q=x/(this.numberTicks-1))<1?Math.pow(10,Math.abs(Math.floor(Math.log(q)/Math.LN10))):1,this.tickInterval=Math.ceil(q*W*this.pad)/W):W=1/this.tickInterval,S=((j=this.tickInterval*(this.numberTicks-1))-x)/2,null==this.min&&(this.min=Math.floor(W*(e-S))/W),null==this.max&&(this.max=this.min+j);if((N=Q.jqplot.getSignificantFigures(this.tickInterval)).digitsLeft>=N.significantDigits)E="%d";else{var W=Math.max(0,5-N.digitsLeft);E="%."+(W=Math.min(W,N.digitsRight))+"f"}this._autoFormatString=E}else{var E,N;if(f=null!=this.min?this.min:e-x*(this.padMin-1),x=(m=null!=this.max?this.max:i+x*(this.padMax-1))-f,null==this.numberTicks&&(null!=this.tickInterval?this.numberTicks=Math.ceil((m-f)/this.tickInterval)+1:this.numberTicks=100<o?parseInt(3+(o-100)/75,10):2),null==this.tickInterval&&(this.tickInterval=x/(this.numberTicks-1)),null==this.max&&(m=f+this.tickInterval*(this.numberTicks-1)),null==this.min&&(f=m-this.tickInterval*(this.numberTicks-1)),(N=Q.jqplot.getSignificantFigures(this.tickInterval)).digitsLeft>=N.significantDigits)E="%d";else{W=Math.max(0,5-N.digitsLeft);E="%."+(W=Math.min(W,N.digitsRight))+"f"}this._autoFormatString=E,this.min=f,this.max=m}if(this.renderer.constructor==Q.jqplot.LinearAxisRenderer&&""==this._autoFormatString){x=this.max-this.min;var z,G=0;if(z=(z=new this.tickRenderer(this.tickOptions).formatString||Q.jqplot.config.defaultTickFormatString).match(Q.jqplot.sprintf.regex)[0]){if(-1<z.search(/[fFeEgGpP]/)){var B=z.match(/\%\.(\d{0,})?[eEfFgGpP]/);G=B?parseInt(B[1],10):6}else-1<z.search(/[di]/)&&(G=0);var Y=Math.pow(10,-G);if(this.tickInterval<Y&&null==d&&null==p)if(this.tickInterval=Y,null==l&&null==h){this.min=Math.floor(this._dataBounds.min/Y)*Y,this.min==this._dataBounds.min&&(this.min=this._dataBounds.min-this.tickInterval),this.max=Math.ceil(this._dataBounds.max/Y)*Y,this.max==this._dataBounds.max&&(this.max=this._dataBounds.max+this.tickInterval),J=(J=(this.max-this.min)/this.tickInterval).toFixed(11),J=Math.ceil(J),this.numberTicks=J+1}else if(null==l){J=(J=(this._dataBounds.max-this.min)/this.tickInterval).toFixed(11),this.numberTicks=Math.ceil(J)+2,this.max=this.min+this.tickInterval*(this.numberTicks-1)}else if(null==h){var J;J=(J=(this.max-this._dataBounds.min)/this.tickInterval).toFixed(11),this.numberTicks=Math.ceil(J)+2,this.min=this.max-this.tickInterval*(this.numberTicks-1)}else this.numberTicks=Math.ceil((l-h)/this.tickInterval)+1,this.min=Math.floor(h*Math.pow(10,G))/Math.pow(10,G),this.max=Math.ceil(l*Math.pow(10,G))/Math.pow(10,G),this.numberTicks=Math.ceil((this.max-this.min)/this.tickInterval)+1}}}this._overrideFormatString&&""!=this._autoFormatString&&(this.tickOptions=this.tickOptions||{},this.tickOptions.formatString=this._autoFormatString);var X;for(C=0;C<this.numberTicks;C++){if(s=this.min+C*this.tickInterval,(c=new this.tickRenderer(this.tickOptions)).setTick(s,this.name),this._ticks.push(c),C<this.numberTicks-1)for(L=0;L<this.minorTicks;L++)s+=this.tickInterval/(this.minorTicks+1),X=Q.extend(!0,{},this.tickOptions,{name:this.name,value:s,label:"",isMinorTick:!0}),c=new this.tickRenderer(X),this._ticks.push(c);c=null}}this.tickInset&&(this.min=this.min-this.tickInset*this.tickInterval,this.max=this.max+this.tickInset*this.tickInterval)},Q.jqplot.LinearAxisRenderer.prototype.resetTickValues=function(t){if(Q.isArray(t)&&t.length==this._ticks.length){for(var e,i=0;i<t.length;i++)(e=this._ticks[i]).value=t[i],e.label=e.formatter(e.formatString,t[i]),e.label=e.prefix+e.label,e._elem.html(e.label);e=null,this.min=Q.jqplot.arrayMin(t),this.max=Q.jqplot.arrayMax(t),this.pack()}},Q.jqplot.LinearAxisRenderer.prototype.pack=function(t,e){t=t||{},e=e||this._offsets;var i=this._ticks,s=this.max,r=this.min,n=e.max,a=e.min,o=null!=this._label&&this._label.show;for(var h in t)this._elem.css(h,t[h]);this._offsets=e;var l=n-a,d=s-r;if(this.breakPoints?(d=d-this.breakPoints[1]+this.breakPoints[0],this.p2u=function(t){return(t-a)*d/l+r},this.u2p=function(t){return t>this.breakPoints[0]&&t<this.breakPoints[1]&&(t=this.breakPoints[0]),t<=this.breakPoints[0]?(t-r)*l/d+a:(t-this.breakPoints[1]+this.breakPoints[0]-r)*l/d+a},"x"==this.name.charAt(0)?(this.series_u2p=function(t){return t>this.breakPoints[0]&&t<this.breakPoints[1]&&(t=this.breakPoints[0]),t<=this.breakPoints[0]?(t-r)*l/d:(t-this.breakPoints[1]+this.breakPoints[0]-r)*l/d},this.series_p2u=function(t){return t*d/l+r}):(this.series_u2p=function(t){return t>this.breakPoints[0]&&t<this.breakPoints[1]&&(t=this.breakPoints[0]),t>=this.breakPoints[1]?(t-s)*l/d:(t+this.breakPoints[1]-this.breakPoints[0]-s)*l/d},this.series_p2u=function(t){return t*d/l+s})):(this.p2u=function(t){return(t-a)*d/l+r},this.u2p=function(t){return(t-r)*l/d+a},"xaxis"==this.name||"x2axis"==this.name?(this.series_u2p=function(t){return(t-r)*l/d},this.series_p2u=function(t){return t*d/l+r}):(this.series_u2p=function(t){return(t-s)*l/d},this.series_p2u=function(t){return t*d/l+s})),this.show)if("xaxis"==this.name||"x2axis"==this.name){for(var p=0;p<i.length;p++){if((f=i[p]).show&&f.showLabel){if(f.constructor==Q.jqplot.CanvasAxisTickRenderer&&f.angle){var g="xaxis"==this.name?1:-1;switch(f.labelPosition){case"auto":m=g*f.angle<0?-f.getWidth()+f._textRenderer.height*Math.sin(-f._textRenderer.angle)/2:-f._textRenderer.height*Math.sin(f._textRenderer.angle)/2;break;case"end":m=-f.getWidth()+f._textRenderer.height*Math.sin(-f._textRenderer.angle)/2;break;case"start":m=-f._textRenderer.height*Math.sin(f._textRenderer.angle)/2;break;case"middle":m=-f.getWidth()/2+f._textRenderer.height*Math.sin(-f._textRenderer.angle)/2;break;default:m=-f.getWidth()/2+f._textRenderer.height*Math.sin(-f._textRenderer.angle)/2}}else m=-f.getWidth()/2;var c=this.u2p(f.value)+m+"px";f._elem.css("left",c),f.pack()}}if(o){var u=this._label._elem.outerWidth(!0);this._label._elem.css("left",a+l/2-u/2+"px"),"xaxis"==this.name?this._label._elem.css("bottom","0px"):this._label._elem.css("top","0px"),this._label.pack()}}else{for(p=0;p<i.length;p++){var f;if((f=i[p]).show&&f.showLabel){var m;if(f.constructor==Q.jqplot.CanvasAxisTickRenderer&&f.angle){g="yaxis"==this.name?1:-1;switch(f.labelPosition){case"auto":case"end":m=g*f.angle<0?-f._textRenderer.height*Math.cos(-f._textRenderer.angle)/2:-f.getHeight()+f._textRenderer.height*Math.cos(f._textRenderer.angle)/2;break;case"start":m=0<f.angle?-f._textRenderer.height*Math.cos(-f._textRenderer.angle)/2:-f.getHeight()+f._textRenderer.height*Math.cos(f._textRenderer.angle)/2;break;case"middle":m=-f.getHeight()/2;break;default:m=-f.getHeight()/2}}else m=-f.getHeight()/2;c=this.u2p(f.value)+m+"px";f._elem.css("top",c),f.pack()}}if(o){var x=this._label._elem.outerHeight(!0);this._label._elem.css("top",n-l/2-x/2+"px"),"yaxis"==this.name?this._label._elem.css("left","0px"):this._label._elem.css("right","0px"),this._label.pack()}}i=null},Q.jqplot.LinearTickGenerator=function(t,e,i,s,r,n){if(r=null!==r&&r,n=null!==n&&!r&&n,t===e&&(e=e?0:1),e<t){var a=e;e=t,t=a}var o=[],h=k(e-t,i=i||1),l=Q.jqplot.getSignificantFigures;if(null==s)if(r||n){if(r){o[0]=t,o[2]=Math.ceil((e-t)/h+1),o[1]=t+(o[2]-1)*h;var d=l(t).digitsRight,p=l(h).digitsRight;o[3]=d<p?b(h):"%."+d+"f",o[4]=h}else if(n){o[1]=e,o[2]=Math.ceil((e-t)/h+1),o[0]=e-(o[2]-1)*h;var g=l(e).digitsRight;p=l(h).digitsRight;o[3]=g<p?b(h):"%."+g+"f",o[4]=h}}else o[0]=Math.floor(t/h)*h,o[1]=Math.ceil(e/h)*h,o[2]=Math.round((o[1]-o[0])/h+1),o[3]=b(h),o[4]=h;else{var c=[];if(c[0]=Math.floor(t/h)*h,c[1]=Math.ceil(e/h)*h,c[2]=Math.round((c[1]-c[0])/h+1),c[3]=b(h),c[4]=h,c[2]===s)o=c;else{var u=y(c[1]-c[0],s);o[0]=c[0],o[2]=s,o[4]=u,o[3]=b(u),o[1]=o[0]+(o[2]-1)*o[4]}}return o},Q.jqplot.LinearTickGenerator.bestLinearInterval=k,Q.jqplot.LinearTickGenerator.bestInterval=y,Q.jqplot.LinearTickGenerator.bestLinearComponents=function(t,e){var i,s=Math.floor(Math.log(t)/Math.LN10),r=Math.pow(10,s),n=t/r;return[(i=(n/=e)<=.38?.1:n<=1.6?.2:n<=4?.5:n<=8?1:n<=16?2:5)*r,i,r]},Q.jqplot.LinearTickGenerator.bestConstrainedInterval=function(t,e,i){for(var s,r,n,a,o,h,l=Math.floor(i/2),d=Math.ceil(1.5*i),p=Number.MAX_VALUE,g=e-t,c=Q.jqplot.getSignificantFigures,u=0,f=d-l+1;u<f;u++)r=c(s=g/((o=l+u)-1)),(s=Math.abs(i-o)+r.digitsRight)<p?(p=s,n=o,h=r.digitsRight):s===p&&r.digitsRight<h&&(n=o,h=r.digitsRight);return[t,e,n,0===(a=Math.max(h,Math.max(c(t).digitsRight,c(e).digitsRight)))?"%d":"%."+a+"f",s=g/(n-1)]},Q.jqplot.MarkerRenderer=function(t){this.show=!0,this.style="filledCircle",this.lineWidth=2,this.size=9,this.color="#666666",this.shadow=!0,this.shadowAngle=45,this.shadowOffset=1,this.shadowDepth=3,this.shadowAlpha="0.07",this.shadowRenderer=new Q.jqplot.ShadowRenderer,this.shapeRenderer=new Q.jqplot.ShapeRenderer,Q.extend(!0,this,t)},Q.jqplot.MarkerRenderer.prototype.init=function(t){Q.extend(!0,this,t);var e={angle:this.shadowAngle,offset:this.shadowOffset,alpha:this.shadowAlpha,lineWidth:this.lineWidth,depth:this.shadowDepth,closePath:!0};-1!=this.style.indexOf("filled")&&(e.fill=!0),-1!=this.style.indexOf("ircle")&&(e.isarc=!0,e.closePath=!1),this.shadowRenderer.init(e);var i={fill:!1,isarc:!1,strokeStyle:this.color,fillStyle:this.color,lineWidth:this.lineWidth,closePath:!0};-1!=this.style.indexOf("filled")&&(i.fill=!0),-1!=this.style.indexOf("ircle")&&(i.isarc=!0,i.closePath=!1),this.shapeRenderer.init(i)},Q.jqplot.MarkerRenderer.prototype.drawDiamond=function(t,e,i,s,r){var n=this.size/2/1.2,a=this.size/2*1.2,o=[[t-n,e],[t,e+a],[t+n,e],[t,e-a]];this.shadow&&this.shadowRenderer.draw(i,o),this.shapeRenderer.draw(i,o,r)},Q.jqplot.MarkerRenderer.prototype.drawPlus=function(t,e,i,s,r){var n=this.size/2*1,a=this.size/2*1,o=[[t,e-a],[t,e+a]],h=[[t+n,e],[t-n,e]],l=Q.extend(!0,{},this.options,{closePath:!1});this.shadow&&(this.shadowRenderer.draw(i,o,{closePath:!1}),this.shadowRenderer.draw(i,h,{closePath:!1})),this.shapeRenderer.draw(i,o,l),this.shapeRenderer.draw(i,h,l)},Q.jqplot.MarkerRenderer.prototype.drawX=function(t,e,i,s,r){var n=this.size/2*1,a=this.size/2*1,o=Q.extend(!0,{},this.options,{closePath:!1}),h=[[t-n,e-a],[t+n,e+a]],l=[[t-n,e+a],[t+n,e-a]];this.shadow&&(this.shadowRenderer.draw(i,h,{closePath:!1}),this.shadowRenderer.draw(i,l,{closePath:!1})),this.shapeRenderer.draw(i,h,o),this.shapeRenderer.draw(i,l,o)},Q.jqplot.MarkerRenderer.prototype.drawDash=function(t,e,i,s,r){var n=this.size/2*1,a=(this.size,[[t-n,e],[t+n,e]]);this.shadow&&this.shadowRenderer.draw(i,a),this.shapeRenderer.draw(i,a,r)},Q.jqplot.MarkerRenderer.prototype.drawLine=function(t,e,i,s,r){var n=[t,e];this.shadow&&this.shadowRenderer.draw(i,n),this.shapeRenderer.draw(i,n,r)},Q.jqplot.MarkerRenderer.prototype.drawSquare=function(t,e,i,s,r){var n=this.size/2/1,a=this.size/2*1,o=[[t-n,e-a],[t-n,e+a],[t+n,e+a],[t+n,e-a]];this.shadow&&this.shadowRenderer.draw(i,o),this.shapeRenderer.draw(i,o,r)},Q.jqplot.MarkerRenderer.prototype.drawCircle=function(t,e,i,s,r){var n=[t,e,this.size/2,0,2*Math.PI,!0];this.shadow&&this.shadowRenderer.draw(i,n),this.shapeRenderer.draw(i,n,r)},Q.jqplot.MarkerRenderer.prototype.draw=function(t,e,i,s){if(null==(s=s||{}).show||0!=s.show)switch(s.color&&!s.fillStyle&&(s.fillStyle=s.color),s.color&&!s.strokeStyle&&(s.strokeStyle=s.color),this.style){case"diamond":this.drawDiamond(t,e,i,!1,s);break;case"filledDiamond":this.drawDiamond(t,e,i,!0,s);break;case"circle":this.drawCircle(t,e,i,!1,s);break;case"filledCircle":this.drawCircle(t,e,i,!0,s);break;case"square":this.drawSquare(t,e,i,!1,s);break;case"filledSquare":this.drawSquare(t,e,i,!0,s);break;case"x":this.drawX(t,e,i,!0,s);break;case"plus":this.drawPlus(t,e,i,!0,s);break;case"dash":this.drawDash(t,e,i,!0,s);break;case"line":this.drawLine(t,e,i,!1,s);break;default:this.drawDiamond(t,e,i,!1,s)}},Q.jqplot.ShadowRenderer=function(t){this.angle=45,this.offset=1,this.alpha=.07,this.lineWidth=1.5,this.lineJoin="miter",this.lineCap="round",this.closePath=!1,this.fill=!1,this.depth=3,this.strokeStyle="rgba(0,0,0,0.1)",this.isarc=!1,Q.extend(!0,this,t)},Q.jqplot.ShadowRenderer.prototype.init=function(t){Q.extend(!0,this,t)},Q.jqplot.ShadowRenderer.prototype.draw=function(t,e,i){t.save();var s=null!=i?i:{},r=null!=s.fill?s.fill:this.fill,n=null!=s.fillRect?s.fillRect:this.fillRect,a=null!=s.closePath?s.closePath:this.closePath,o=null!=s.offset?s.offset:this.offset,h=null!=s.alpha?s.alpha:this.alpha,l=null!=s.depth?s.depth:this.depth,d=null!=s.isarc?s.isarc:this.isarc,p=null!=s.linePattern?s.linePattern:this.linePattern;t.lineWidth=null!=s.lineWidth?s.lineWidth:this.lineWidth,t.lineJoin=null!=s.lineJoin?s.lineJoin:this.lineJoin,t.lineCap=null!=s.lineCap?s.lineCap:this.lineCap,t.strokeStyle=s.strokeStyle||this.strokeStyle||"rgba(0,0,0,"+h+")",t.fillStyle=s.fillStyle||this.fillStyle||"rgba(0,0,0,"+h+")";for(var g=0;g<l;g++){var c=Q.jqplot.LinePattern(t,p);if(t.translate(Math.cos(this.angle*Math.PI/180)*o,Math.sin(this.angle*Math.PI/180)*o),c.beginPath(),d)t.arc(e[0],e[1],e[2],e[3],e[4],!0);else if(n)n&&t.fillRect(e[0],e[1],e[2],e[3]);else if(e&&e.length)for(var u=!0,f=0;f<e.length;f++)null!=e[f][0]&&null!=e[f][1]?u?(c.moveTo(e[f][0],e[f][1]),u=!1):c.lineTo(e[f][0],e[f][1]):u=!0;a&&c.closePath(),r?t.fill():t.stroke()}t.restore()},Q.jqplot.ShapeRenderer=function(t){this.lineWidth=1.5,this.linePattern="solid",this.lineJoin="miter",this.lineCap="round",this.closePath=!1,this.fill=!1,this.isarc=!1,this.fillRect=!1,this.strokeRect=!1,this.clearRect=!1,this.strokeStyle="#999999",this.fillStyle="#999999",Q.extend(!0,this,t)},Q.jqplot.ShapeRenderer.prototype.init=function(t){Q.extend(!0,this,t)},Q.jqplot.ShapeRenderer.prototype.draw=function(t,e,i){t.save();var s=null!=i?i:{},r=null!=s.fill?s.fill:this.fill,n=null!=s.closePath?s.closePath:this.closePath,a=null!=s.fillRect?s.fillRect:this.fillRect,o=null!=s.strokeRect?s.strokeRect:this.strokeRect,h=null!=s.clearRect?s.clearRect:this.clearRect,l=null!=s.isarc?s.isarc:this.isarc,d=null!=s.linePattern?s.linePattern:this.linePattern,p=Q.jqplot.LinePattern(t,d);if(t.lineWidth=s.lineWidth||this.lineWidth,t.lineJoin=s.lineJoin||this.lineJoin,t.lineCap=s.lineCap||this.lineCap,t.strokeStyle=s.strokeStyle||s.color||this.strokeStyle,t.fillStyle=s.fillStyle||this.fillStyle,t.beginPath(),l)return t.arc(e[0],e[1],e[2],e[3],e[4],!0),n&&t.closePath(),r?t.fill():t.stroke(),void t.restore();if(h)return t.clearRect(e[0],e[1],e[2],e[3]),void t.restore();if(a||o){if(a&&t.fillRect(e[0],e[1],e[2],e[3]),o)return t.strokeRect(e[0],e[1],e[2],e[3]),void t.restore()}else if(e&&e.length){for(var g=!0,c=0;c<e.length;c++)null!=e[c][0]&&null!=e[c][1]?g?(p.moveTo(e[c][0],e[c][1]),g=!1):p.lineTo(e[c][0],e[c][1]):g=!0;n&&p.closePath(),r?t.fill():t.stroke()}t.restore()},Q.jqplot.TableLegendRenderer=function(){},Q.jqplot.TableLegendRenderer.prototype.init=function(t){Q.extend(!0,this,t)},Q.jqplot.TableLegendRenderer.prototype.addrow=function(t,e,i,s){var r,n,a,o,h,l=i?this.rowSpacing+"px":"0px";a=document.createElement("tr"),(r=Q(a)).addClass("jqplot-table-legend"),a=null,s?r.prependTo(this._elem):r.appendTo(this._elem),this.showSwatches&&((n=Q(document.createElement("td"))).addClass("jqplot-table-legend jqplot-table-legend-swatch"),n.css({textAlign:"center",paddingTop:l}),(o=Q(document.createElement("div"))).addClass("jqplot-table-legend-swatch-outline"),(h=Q(document.createElement("div"))).addClass("jqplot-table-legend-swatch"),h.css({backgroundColor:e,borderColor:e}),r.append(n.append(o.append(h)))),this.showLabels&&((n=Q(document.createElement("td"))).addClass("jqplot-table-legend jqplot-table-legend-label"),n.css("paddingTop",l),r.append(n),this.escapeHtml?n.text(t):n.html(t)),a=r=h=o=n=null},Q.jqplot.TableLegendRenderer.prototype.draw=function(){if(this._elem&&(this._elem.emptyForce(),this._elem=null),this.show){var t=this._series,e=document.createElement("table");this._elem=Q(e),this._elem.addClass("jqplot-table-legend");var i={position:"absolute"};this.background&&(i.background=this.background),this.border&&(i.border=this.border),this.fontSize&&(i.fontSize=this.fontSize),this.fontFamily&&(i.fontFamily=this.fontFamily),this.textColor&&(i.textColor=this.textColor),null!=this.marginTop&&(i.marginTop=this.marginTop),null!=this.marginBottom&&(i.marginBottom=this.marginBottom),null!=this.marginLeft&&(i.marginLeft=this.marginLeft),null!=this.marginRight&&(i.marginRight=this.marginRight);for(var s,r=!1,n=!1,a=0;a<t.length;a++)if(!(s=t[a])._stack&&s.renderer.constructor!=Q.jqplot.BezierCurveRenderer||(n=!0),s.show&&s.showLabel){var o=this.labels[a]||s.label.toString();if(o){var h=s.color;n&&a<t.length-1?r=!0:n&&a==t.length-1&&(r=!1),this.renderer.addrow.call(this,o,h,r,n),r=!0}for(var l=0;l<Q.jqplot.addLegendRowHooks.length;l++){var d=Q.jqplot.addLegendRowHooks[l].call(this,s);d&&(this.renderer.addrow.call(this,d.label,d.color,r),r=!0)}o=null}}return this._elem},Q.jqplot.TableLegendRenderer.prototype.pack=function(t){if(this.show)if("insideGrid"==this.placement)switch(this.location){case"nw":var e=t.left,i=t.top;this._elem.css("left",e),this._elem.css("top",i);break;case"n":e=(t.left+(this._plotDimensions.width-t.right))/2-this.getWidth()/2,i=t.top;this._elem.css("left",e),this._elem.css("top",i);break;case"ne":e=t.right,i=t.top;this._elem.css({right:e,top:i});break;case"e":e=t.right,i=(t.top+(this._plotDimensions.height-t.bottom))/2-this.getHeight()/2;this._elem.css({right:e,top:i});break;case"se":e=t.right,i=t.bottom;this._elem.css({right:e,bottom:i});break;case"s":e=(t.left+(this._plotDimensions.width-t.right))/2-this.getWidth()/2,i=t.bottom;this._elem.css({left:e,bottom:i});break;case"sw":e=t.left,i=t.bottom;this._elem.css({left:e,bottom:i});break;case"w":e=t.left,i=(t.top+(this._plotDimensions.height-t.bottom))/2-this.getHeight()/2;this._elem.css({left:e,top:i});break;default:e=t.right,i=t.bottom;this._elem.css({right:e,bottom:i})}else if("outside"==this.placement)switch(this.location){case"nw":e=this._plotDimensions.width-t.left,i=t.top;this._elem.css("right",e),this._elem.css("top",i);break;case"n":e=(t.left+(this._plotDimensions.width-t.right))/2-this.getWidth()/2,i=this._plotDimensions.height-t.top;this._elem.css("left",e),this._elem.css("bottom",i);break;case"ne":e=this._plotDimensions.width-t.right,i=t.top;this._elem.css({left:e,top:i});break;case"e":e=this._plotDimensions.width-t.right,i=(t.top+(this._plotDimensions.height-t.bottom))/2-this.getHeight()/2;this._elem.css({left:e,top:i});break;case"se":e=this._plotDimensions.width-t.right,i=t.bottom;this._elem.css({left:e,bottom:i});break;case"s":e=(t.left+(this._plotDimensions.width-t.right))/2-this.getWidth()/2,i=this._plotDimensions.height-t.bottom;this._elem.css({left:e,top:i});break;case"sw":e=this._plotDimensions.width-t.left,i=t.bottom;this._elem.css({right:e,bottom:i});break;case"w":e=this._plotDimensions.width-t.left,i=(t.top+(this._plotDimensions.height-t.bottom))/2-this.getHeight()/2;this._elem.css({right:e,top:i});break;default:e=t.right,i=t.bottom;this._elem.css({right:e,bottom:i})}else switch(this.location){case"nw":this._elem.css({left:0,top:t.top});break;case"n":e=(t.left+(this._plotDimensions.width-t.right))/2-this.getWidth()/2;this._elem.css({left:e,top:t.top});break;case"ne":this._elem.css({right:0,top:t.top});break;case"e":i=(t.top+(this._plotDimensions.height-t.bottom))/2-this.getHeight()/2;this._elem.css({right:t.right,top:i});break;case"se":this._elem.css({right:t.right,bottom:t.bottom});break;case"s":e=(t.left+(this._plotDimensions.width-t.right))/2-this.getWidth()/2;this._elem.css({left:e,bottom:t.bottom});break;case"sw":this._elem.css({left:t.left,bottom:t.bottom});break;case"w":i=(t.top+(this._plotDimensions.height-t.bottom))/2-this.getHeight()/2;this._elem.css({left:t.left,top:i});break;default:this._elem.css({right:t.right,bottom:t.bottom})}},Q.jqplot.ThemeEngine=function(){this.themes={},this.activeTheme=null},Q.jqplot.ThemeEngine.prototype.init=function(){var t,e,i,s,r,n,a=new Q.jqplot.Theme({_name:"Default"});for(t in a.target)a.target[t]="textColor"==t?this.target.css("color"):this.target.css(t);if(this.title.show&&this.title._elem)for(t in a.title)a.title[t]="textColor"==t?this.title._elem.css("color"):this.title._elem.css(t);for(t in a.grid)a.grid[t]=this.grid[t];if(null==a.grid.backgroundColor&&null!=this.grid.background&&(a.grid.backgroundColor=this.grid.background),this.legend.show&&this.legend._elem)for(t in a.legend)a.legend[t]="textColor"==t?this.legend._elem.css("color"):this.legend._elem.css(t);for(e=0;e<this.series.length;e++)for(t in(s=this.series[e]).renderer.constructor==Q.jqplot.LineRenderer?a.series.push(new P):s.renderer.constructor==Q.jqplot.BarRenderer?a.series.push(new O):s.renderer.constructor==Q.jqplot.PieRenderer?a.series.push(new L):s.renderer.constructor==Q.jqplot.DonutRenderer?a.series.push(new H):s.renderer.constructor==Q.jqplot.FunnelRenderer?a.series.push(new A):s.renderer.constructor==Q.jqplot.MeterGaugeRenderer?a.series.push(new F):a.series.push({}),a.series[e])a.series[e][t]=s[t];for(t in this.axes){if(n=this.axes[t],(r=a.axes[t]=new M).borderColor=n.borderColor,r.borderWidth=n.borderWidth,n._ticks&&n._ticks[0])for(i in r.ticks)n._ticks[0].hasOwnProperty(i)?r.ticks[i]=n._ticks[0][i]:n._ticks[0]._elem&&(r.ticks[i]=n._ticks[0]._elem.css(i));if(n._label&&n._label.show)for(i in r.label)n._label[i]?r.label[i]=n._label[i]:n._label._elem&&(r.label[i]="textColor"==i?n._label._elem.css("color"):n._label._elem.css(i))}this.themeEngine._add(a),this.themeEngine.activeTheme=this.themeEngine.themes[a._name]},Q.jqplot.ThemeEngine.prototype.get=function(t){return t?this.themes[t]:this.activeTheme},Q.jqplot.ThemeEngine.prototype.getThemeNames=function(){var t=[];for(var e in this.themes)t.push(e);return t.sort(n)},Q.jqplot.ThemeEngine.prototype.getThemes=function(){var t=[],e=[];for(var i in this.themes)t.push(i);t.sort(n);for(var s=0;s<t.length;s++)e.push(this.themes[t[s]]);return e},Q.jqplot.ThemeEngine.prototype.activate=function(t,e){var i=!1;if(!e&&this.activeTheme&&this.activeTheme._name&&(e=this.activeTheme._name),!this.themes.hasOwnProperty(e))throw new Error("No theme of that name");var s=this.themes[e];this.activeTheme=s;var r,n,a=["xaxis","x2axis","yaxis","y2axis"];for(n=0;n<a.length;n++){var o=a[n];null!=s.axesStyles.borderColor&&(t.axes[o].borderColor=s.axesStyles.borderColor),null!=s.axesStyles.borderWidth&&(t.axes[o].borderWidth=s.axesStyles.borderWidth)}for(var h in t.axes){var l=t.axes[h];if(l.show){var d=s.axes[h]||{},p=s.axesStyles,g=Q.jqplot.extend(!0,{},d,p);if(r=null!=s.axesStyles.borderColor?s.axesStyles.borderColor:g.borderColor,null!=g.borderColor&&(l.borderColor=g.borderColor,i=!0),r=null!=s.axesStyles.borderWidth?s.axesStyles.borderWidth:g.borderWidth,null!=g.borderWidth&&(l.borderWidth=g.borderWidth,i=!0),l._ticks&&l._ticks[0])for(var c in g.ticks)null!=(r=g.ticks[c])&&(l.tickOptions[c]=r,l._ticks=[],i=!0);if(l._label&&l._label.show)for(var c in g.label)null!=(r=g.label[c])&&(l.labelOptions[c]=r,i=!0)}}for(var u in s.grid)null!=s.grid[u]&&(t.grid[u]=s.grid[u]);if(i||t.grid.draw(),t.legend.show)for(u in s.legend)null!=s.legend[u]&&(t.legend[u]=s.legend[u]);if(t.title.show)for(u in s.title)null!=s.title[u]&&(t.title[u]=s.title[u]);for(n=0;n<s.series.length;n++){var f={};for(u in s.series[n])null!=(r=null!=s.seriesStyles[u]?s.seriesStyles[u]:s.series[n][u])&&(f[u]=r,"color"==u?(t.series[n].renderer.shapeRenderer.fillStyle=r,t.series[n].renderer.shapeRenderer.strokeStyle=r,t.series[n][u]=r):"lineWidth"==u||"linePattern"==u?(t.series[n].renderer.shapeRenderer[u]=r,t.series[n][u]=r):"markerOptions"==u?(j(t.series[n].markerOptions,r),j(t.series[n].markerRenderer,r)):t.series[n][u]=r,i=!0)}for(u in i&&(t.target.empty(),t.draw()),s.target)null!=s.target[u]&&t.target.css(u,s.target[u])},Q.jqplot.ThemeEngine.prototype._add=function(t,e){if(e&&(t._name=e),t._name||(t._name=Date.parse(new Date)),this.themes.hasOwnProperty(t._name))throw new Error("jqplot.ThemeEngine Error: Theme already in use");this.themes[t._name]=t},Q.jqplot.ThemeEngine.prototype.remove=function(t){return"Default"!=t&&delete this.themes[t]},Q.jqplot.ThemeEngine.prototype.newTheme=function(t,e){"object"==typeof t&&(e=e||t,t=null),t=e&&e._name?e._name:t||Date.parse(new Date);var i=this.copy(this.themes.Default._name,t);return Q.jqplot.extend(i,e),i},Q.jqplot.clone=a,Q.jqplot.merge=j,Q.jqplot.extend=function(){var t,e=arguments[0]||{},i=1,s=arguments.length,r=!1;for("boolean"==typeof e&&(r=e,e=arguments[1]||{},i=2),"object"!=typeof e&&"[object Function]"===!toString.call(e)&&(e={});i<s;i++)if(null!=(t=arguments[i]))for(var n in t){var a=e[n],o=t[n];e!==o&&(r&&o&&"object"==typeof o&&!o.nodeType?e[n]=Q.jqplot.extend(r,a||(null!=o.length?[]:{}),o):o!==R&&(e[n]=o))}return e},Q.jqplot.ThemeEngine.prototype.rename=function(t,e){if("Default"==t||"Default"==e)throw new Error("jqplot.ThemeEngine Error: Cannot rename from/to Default");if(this.themes.hasOwnProperty(e))throw new Error("jqplot.ThemeEngine Error: New name already in use.");if(this.themes.hasOwnProperty(t)){var i=this.copy(t,e);return this.remove(t),i}throw new Error("jqplot.ThemeEngine Error: Old name or new name invalid")},Q.jqplot.ThemeEngine.prototype.copy=function(t,e,i){if("Default"==e)throw new Error("jqplot.ThemeEngine Error: Cannot copy over Default theme");if(!this.themes.hasOwnProperty(t)){var s="jqplot.ThemeEngine Error: Source name invalid";throw new Error(s)}if(this.themes.hasOwnProperty(e)){s="jqplot.ThemeEngine Error: Target name invalid";throw new Error(s)}var r=a(this.themes[t]);return r._name=e,Q.jqplot.extend(!0,r,i),this._add(r),r},Q.jqplot.Theme=function(t,e){"object"==typeof t&&(e=e||t,t=null),t=t||Date.parse(new Date),this._name=t,this.target={backgroundColor:null},this.legend={textColor:null,fontFamily:null,fontSize:null,border:null,background:null},this.title={textColor:null,fontFamily:null,fontSize:null,textAlign:null},this.seriesStyles={},this.series=[],this.grid={drawGridlines:null,gridLineColor:null,gridLineWidth:null,backgroundColor:null,borderColor:null,borderWidth:null,shadow:null},this.axesStyles={label:{},ticks:{}},this.axes={},"string"==typeof e?this._name=e:"object"==typeof e&&Q.jqplot.extend(!0,this,e)};var M=function(){this.borderColor=null,this.borderWidth=null,this.ticks=new t,this.label=new e},t=function(){this.show=null,this.showGridline=null,this.showLabel=null,this.showMark=null,this.size=null,this.textColor=null,this.whiteSpace=null,this.fontSize=null,this.fontFamily=null},e=function(){this.textColor=null,this.whiteSpace=null,this.fontSize=null,this.fontFamily=null,this.fontWeight=null},P=function(){this.color=null,this.lineWidth=null,this.linePattern=null,this.shadow=null,this.fillColor=null,this.showMarker=null,this.markerOptions=new I},I=function(){this.show=null,this.style=null,this.lineWidth=null,this.size=null,this.color=null,this.shadow=null},O=function(){this.color=null,this.seriesColors=null,this.lineWidth=null,this.shadow=null,this.barPadding=null,this.barMargin=null,this.barWidth=null,this.highlightColors=null},L=function(){this.seriesColors=null,this.padding=null,this.sliceMargin=null,this.fill=null,this.shadow=null,this.startAngle=null,this.lineWidth=null,this.highlightColors=null},H=function(){this.seriesColors=null,this.padding=null,this.sliceMargin=null,this.fill=null,this.shadow=null,this.startAngle=null,this.lineWidth=null,this.innerDiameter=null,this.thickness=null,this.ringMargin=null,this.highlightColors=null},A=function(){this.color=null,this.lineWidth=null,this.shadow=null,this.padding=null,this.sectionMargin=null,this.seriesColors=null,this.highlightColors=null},F=function(){this.padding=null,this.backgroundColor=null,this.ringColor=null,this.tickColor=null,this.ringWidth=null,this.intervalColors=null,this.intervalInnerRadius=null,this.intervalOuterRadius=null,this.hubRadius=null,this.needleThickness=null,this.needlePad=null};Q.fn.jqplotChildText=function(){return Q(this).contents().filter(function(){return 3==this.nodeType}).text()},Q.fn.jqplotGetComputedFontStyle=function(){for(var t=window.getComputedStyle?window.getComputedStyle(this[0],""):this[0].currentStyle,e=t["font-style"]?["font-style","font-weight","font-size","font-family"]:["fontStyle","fontWeight","fontSize","fontFamily"],i=[],s=0;s<e.length;++s){var r=String(t[e[s]]);r&&"normal"!=r&&i.push(r)}return i.join(" ")},Q.fn.jqplotToImageCanvas=function(t){function p(t,e,i,s,r,n){for(var a=function(t){var e=parseInt(Q(t).css("line-height"),10);return isNaN(e)&&(e=1.2*parseInt(Q(t).css("font-size"),10)),e}(t),o=Q(t).innerWidth(),h=(Q(t).innerHeight(),i.split(/\s+/)),l=h.length,d="",p=[],g=r,c=s,u=0;u<l;u++)d+=h[u],e.measureText(d).width>o&&d.length>h[u].length&&(p.push(u),d="",u--);if(0===p.length)"center"===Q(t).css("textAlign")&&(c=s+(n-e.measureText(d).width)/2-m),e.fillText(i,c,r);else{d=h.slice(0,p[0]).join(" "),"center"===Q(t).css("textAlign")&&(c=s+(n-e.measureText(d).width)/2-m),e.fillText(d,c,g),g+=a;u=1;for(var f=p.length;u<f;u++)d=h.slice(p[u-1],p[u]).join(" "),"center"===Q(t).css("textAlign")&&(c=s+(n-e.measureText(d).width)/2-m),e.fillText(d,c,g),g+=a;d=h.slice(p[u-1],h.length).join(" "),"center"===Q(t).css("textAlign")&&(c=s+(n-e.measureText(d).width)/2-m),e.fillText(d,c,g)}}var e=null==(t=t||{}).x_offset?0:t.x_offset,i=null==t.y_offset?0:t.y_offset,s=null==t.backgroundColor?"rgb(255,255,255)":t.backgroundColor;if(0==Q(this).width()||0==Q(this).height())return null;if(Q.jqplot.use_excanvas)return null;for(var r,n,a,o,g=document.createElement("canvas"),h=Q(this).outerHeight(!0),l=Q(this).outerWidth(!0),d=Q(this).offset(),c=d.left,u=d.top,m=0,f=0,x=["jqplot-table-legend","jqplot-xaxis-tick","jqplot-x2axis-tick","jqplot-yaxis-tick","jqplot-y2axis-tick","jqplot-y3axis-tick","jqplot-y4axis-tick","jqplot-y5axis-tick","jqplot-y6axis-tick","jqplot-y7axis-tick","jqplot-y8axis-tick","jqplot-y9axis-tick","jqplot-xaxis-label","jqplot-x2axis-label","jqplot-yaxis-label","jqplot-y2axis-label","jqplot-y3axis-label","jqplot-y4axis-label","jqplot-y5axis-label","jqplot-y6axis-label","jqplot-y7axis-label","jqplot-y8axis-label","jqplot-y9axis-label"],_=0;_<x.length;_++)Q(this).find("."+x[_]).each(function(){r=Q(this).offset().top-u,n=Q(this).offset().left-c,o=n+Q(this).outerWidth(!0)+m,a=r+Q(this).outerHeight(!0)+f,n<-m&&(l=l-m-n,m=-n),r<-f&&(h=h-f-r,f=-r),l<o&&(l=o),h<a&&(h=a)});g.width=l+Number(e),g.height=h+Number(i);var v=g.getContext("2d");return v.save(),v.fillStyle=s,v.fillRect(0,0,g.width,g.height),v.restore(),v.translate(m,f),v.textAlign="left",v.textBaseline="top",Q(this).children().each(function(){!function t(e,i,s){var r=e.tagName.toLowerCase(),n=Q(e).position(),a=window.getComputedStyle?window.getComputedStyle(e,""):e.currentStyle,o=i+n.left+parseInt(a.marginLeft,10)+parseInt(a.borderLeftWidth,10)+parseInt(a.paddingLeft,10),h=s+n.top+parseInt(a.marginTop,10)+parseInt(a.borderTopWidth,10)+parseInt(a.paddingTop,10),l=g.width;if("div"!=r&&"span"!=r||Q(e).hasClass("jqplot-highlighter-tooltip"))"table"===r&&Q(e).hasClass("jqplot-table-legend")?(v.strokeStyle=Q(e).css("border-top-color"),v.fillStyle=Q(e).css("background-color"),v.fillRect(o,h,Q(e).innerWidth(),Q(e).innerHeight()),0<parseInt(Q(e).css("border-top-width"),10)&&v.strokeRect(o,h,Q(e).innerWidth(),Q(e).innerHeight()),Q(e).find("div.jqplot-table-legend-swatch-outline").each(function(){var t=Q(this);v.strokeStyle=t.css("border-top-color");var e=o+t.position().left,i=h+t.position().top;v.strokeRect(e,i,t.innerWidth(),t.innerHeight()),e+=parseInt(t.css("padding-left"),10),i+=parseInt(t.css("padding-top"),10);var s=t.innerHeight()-2*parseInt(t.css("padding-top"),10),r=t.innerWidth()-2*parseInt(t.css("padding-left"),10),n=t.children("div.jqplot-table-legend-swatch");v.fillStyle=n.css("background-color"),v.fillRect(e,i,r,s)}),Q(e).find("td.jqplot-table-legend-label").each(function(){var t=Q(this),e=o+t.position().left,i=h+t.position().top+parseInt(t.css("padding-top"),10);v.font=t.jqplotGetComputedFontStyle(),v.fillStyle=t.css("color"),p(t,v,t.text(),e,i,l)})):"canvas"==r&&v.drawImage(e,o,h);else{Q(e).children().each(function(){t(this,o,h)});var d=Q(e).jqplotChildText();d&&(v.font=Q(e).jqplotGetComputedFontStyle(),v.fillStyle=Q(e).css("color"),p(e,v,d,o,h,l))}}(this,e,i)}),g},Q.fn.jqplotToImageStr=function(t){var e=Q(this).jqplotToImageCanvas(t);return e?e.toDataURL("image/png"):null},Q.fn.jqplotToImageElem=function(t){var e=document.createElement("img"),i=Q(this).jqplotToImageStr(t);return e.src=i,e},Q.fn.jqplotToImageElemStr=function(t){return"<img src="+Q(this).jqplotToImageStr(t)+" />"},Q.fn.jqplotSaveImage=function(){var t=Q(this).jqplotToImageStr({});t&&(window.location.href=t.replace("image/png","image/octet-stream"))},Q.fn.jqplotViewImage=function(){var t=Q(this).jqplotToImageElemStr({});if(Q(this).jqplotToImageStr({}),t){var e=window.open("");e.document.open("image/png"),e.document.write(t),e.document.close(),e=null}};var W=function(){switch(this.syntax=W.config.syntax,this._type="jsDate",this.proxy=new Date,this.options={},this.locale=W.regional.getLocale(),this.formatString="",this.defaultCentury=W.config.defaultCentury,arguments.length){case 0:break;case 1:if("[object Object]"==S(arguments[0])&&"jsDate"!=arguments[0]._type){var t=this.options=arguments[0];this.syntax=t.syntax||this.syntax,this.defaultCentury=t.defaultCentury||this.defaultCentury,this.proxy=W.createDate(t.date)}else this.proxy=W.createDate(arguments[0]);break;default:for(var e=[],i=0;i<arguments.length;i++)e.push(arguments[i]);this.proxy=new Date,this.proxy.setFullYear.apply(this.proxy,e.slice(0,3)),e.slice(3).length&&this.proxy.setHours.apply(this.proxy,e.slice(3))}};W.config={defaultLocale:"en",syntax:"perl",defaultCentury:1900},W.prototype.add=function(t,e){var i=N[e]||N.day;return"number"==typeof i?this.proxy.setTime(this.proxy.getTime()+i*t):i.add(this,t),this},W.prototype.clone=function(){return new W(this.proxy.getTime())},W.prototype.getUtcOffset=function(){return 6e4*this.proxy.getTimezoneOffset()},W.prototype.diff=function(t,e,i){if(null===(t=new W(t)))return null;var s=N[e]||N.day;if("number"==typeof s)var r=(this.proxy.getTime()-t.proxy.getTime())/s;else r=s.diff(this.proxy,t.proxy);return i?r:Math[0<r?"floor":"ceil"](r)},W.prototype.getAbbrDayName=function(){return W.regional[this.locale].dayNamesShort[this.proxy.getDay()]},W.prototype.getAbbrMonthName=function(){return W.regional[this.locale].monthNamesShort[this.proxy.getMonth()]},W.prototype.getAMPM=function(){return 12<=this.proxy.getHours()?"PM":"AM"},W.prototype.getAmPm=function(){return 12<=this.proxy.getHours()?"pm":"am"},W.prototype.getCentury=function(){return parseInt(this.proxy.getFullYear()/100,10)},W.prototype.getDate=function(){return this.proxy.getDate()},W.prototype.getDay=function(){return this.proxy.getDay()},W.prototype.getDayOfWeek=function(){var t=this.proxy.getDay();return 0===t?7:t},W.prototype.getDayOfYear=function(){var t=this.proxy,e=t-new Date(t.getFullYear()+"/1/1 GMT");return e+=6e4*t.getTimezoneOffset(),t=null,parseInt(e/6e4/60/24,10)+1},W.prototype.getDayName=function(){return W.regional[this.locale].dayNames[this.proxy.getDay()]},W.prototype.getFullWeekOfYear=function(){var t=this.proxy,e=this.getDayOfYear(),i=6-t.getDay();return parseInt((e+i)/7,10)},W.prototype.getFullYear=function(){return this.proxy.getFullYear()},W.prototype.getGmtOffset=function(){var t=this.proxy.getTimezoneOffset()/60,e=t<0?"+":"-";return t=Math.abs(t),e+E(Math.floor(t),2)+":"+E(t%1*60,2)},W.prototype.getHours=function(){return this.proxy.getHours()},W.prototype.getHours12=function(){var t=this.proxy.getHours();return 12<t?t-12:0==t?12:t},W.prototype.getIsoWeek=function(){var t=this.proxy,e=this.getWeekOfYear(),i=new Date(t.getFullYear()+"/1/1").getDay(),s=e+(4<i||i<=1?0:1);return 53==s&&new Date(t.getFullYear()+"/12/31").getDay()<4?s=1:0===s&&(s=(t=new W(new Date(t.getFullYear()-1+"/12/31"))).getIsoWeek()),t=null,s},W.prototype.getMilliseconds=function(){return this.proxy.getMilliseconds()},W.prototype.getMinutes=function(){return this.proxy.getMinutes()},W.prototype.getMonth=function(){return this.proxy.getMonth()},W.prototype.getMonthName=function(){return W.regional[this.locale].monthNames[this.proxy.getMonth()]},W.prototype.getMonthNumber=function(){return this.proxy.getMonth()+1},W.prototype.getSeconds=function(){return this.proxy.getSeconds()},W.prototype.getShortYear=function(){return this.proxy.getYear()%100},W.prototype.getTime=function(){return this.proxy.getTime()},W.prototype.getTimezoneAbbr=function(){return this.proxy.toString().replace(/^.*\(([^)]+)\)$/,"$1")},W.prototype.getTimezoneName=function(){var t=/(?:\((.+)\)$| ([A-Z]{3}) )/.exec(this.toString());return t[1]||t[2]||"GMT"+this.getGmtOffset()},W.prototype.getTimezoneOffset=function(){return this.proxy.getTimezoneOffset()},W.prototype.getWeekOfYear=function(){var t=this.getDayOfYear(),e=7-this.getDayOfWeek();return parseInt((t+e)/7,10)},W.prototype.getUnix=function(){return Math.round(this.proxy.getTime()/1e3,0)},W.prototype.getYear=function(){return this.proxy.getYear()},W.prototype.next=function(t){return t=t||"day",this.clone().add(1,t)},W.prototype.set=function(){switch(arguments.length){case 0:this.proxy=new Date;break;case 1:if("[object Object]"==S(arguments[0])&&"jsDate"!=arguments[0]._type){var t=this.options=arguments[0];this.syntax=t.syntax||this.syntax,this.defaultCentury=t.defaultCentury||this.defaultCentury,this.proxy=W.createDate(t.date)}else this.proxy=W.createDate(arguments[0]);break;default:for(var e=[],i=0;i<arguments.length;i++)e.push(arguments[i]);this.proxy=new Date,this.proxy.setFullYear.apply(this.proxy,e.slice(0,3)),e.slice(3).length&&this.proxy.setHours.apply(this.proxy,e.slice(3))}return this},W.prototype.setDate=function(t){return this.proxy.setDate(t),this},W.prototype.setFullYear=function(){return this.proxy.setFullYear.apply(this.proxy,arguments),this},W.prototype.setHours=function(){return this.proxy.setHours.apply(this.proxy,arguments),this},W.prototype.setMilliseconds=function(t){return this.proxy.setMilliseconds(t),this},W.prototype.setMinutes=function(){return this.proxy.setMinutes.apply(this.proxy,arguments),this},W.prototype.setMonth=function(){return this.proxy.setMonth.apply(this.proxy,arguments),this},W.prototype.setSeconds=function(){return this.proxy.setSeconds.apply(this.proxy,arguments),this},W.prototype.setTime=function(t){return this.proxy.setTime(t),this},W.prototype.setYear=function(){return this.proxy.setYear.apply(this.proxy,arguments),this},W.prototype.strftime=function(t){return t=t||this.formatString||W.regional[this.locale].formatString,W.strftime(this,t,this.syntax)},W.prototype.toString=function(){return this.proxy.toString()},W.prototype.toYmdInt=function(){return 1e4*this.proxy.getFullYear()+100*this.getMonthNumber()+this.proxy.getDate()},W.regional={en:{monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],formatString:"%Y-%m-%d %H:%M:%S"},fr:{monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthNamesShort:["Jan","Fév","Mar","Avr","Mai","Jun","Jul","Aoû","Sep","Oct","Nov","Déc"],dayNames:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],dayNamesShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],formatString:"%Y-%m-%d %H:%M:%S"},de:{monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],formatString:"%Y-%m-%d %H:%M:%S"},es:{monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthNamesShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],dayNames:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],dayNamesShort:["Dom","Lun","Mar","Mié","Juv","Vie","Sáb"],formatString:"%Y-%m-%d %H:%M:%S"},ru:{monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],formatString:"%Y-%m-%d %H:%M:%S"},ar:{monthNames:["كانون الثاني","شباط","آذار","نيسان","آذار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["السبت","الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة"],dayNamesShort:["سبت","أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة"],formatString:"%Y-%m-%d %H:%M:%S"},pt:{monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],formatString:"%Y-%m-%d %H:%M:%S"},"pt-BR":{monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],formatString:"%Y-%m-%d %H:%M:%S"},pl:{monthNames:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthNamesShort:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],dayNames:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"],dayNamesShort:["Ni","Pn","Wt","Śr","Cz","Pt","Sb"],formatString:"%Y-%m-%d %H:%M:%S"},nl:{monthNames:["Januari","Februari","Maart","April","Mei","Juni","July","Augustus","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNames:",".Zaterdag,dayNamesShort:["Zo","Ma","Di","Wo","Do","Vr","Za"],formatString:"%Y-%m-%d %H:%M:%S"},sv:{monthNames:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],monthNamesShort:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],dayNames:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],dayNamesShort:["sön","mån","tis","ons","tor","fre","lör"],formatString:"%Y-%m-%d %H:%M:%S"},it:{monthNames:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthNamesShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],dayNames:["Domenica","Lunedi","Martedi","Mercoledi","Giovedi","Venerdi","Sabato"],dayNamesShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],formatString:"%d-%m-%Y %H:%M:%S"}},W.regional["en-US"]=W.regional["en-GB"]=W.regional.en,W.regional.getLocale=function(){var t=W.config.defaultLocale;return document&&document.getElementsByTagName("html")&&document.getElementsByTagName("html")[0].lang&&(t=document.getElementsByTagName("html")[0].lang,W.regional.hasOwnProperty(t)||(t=W.config.defaultLocale)),t};var E=function(t,e){var i=e-(t=String(t)).length;return String(Math.pow(10,i)).slice(1).concat(t)},N={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:{add:function(t,e){N.year.add(t,Math[0<e?"floor":"ceil"](e/12));var i=t.getMonth()+e%12;12==i?(i=0,t.setYear(t.getFullYear()+1)):-1==i&&(i=11,t.setYear(t.getFullYear()-1)),t.setMonth(i)},diff:function(t,e){var i=t.getFullYear()-e.getFullYear();return t.getMonth()-e.getMonth()+12*i+(t.getDate()-e.getDate())/30}},year:{add:function(t,e){t.setYear(t.getFullYear()+Math[0<e?"floor":"ceil"](e))},diff:function(t,e){return N.month.diff(t,e)/12}}};for(var z in N)"s"!=z.substring(z.length-1)&&(N[z+"s"]=N[z]);function G(t,e,i){if(W.formats[i].shortcuts[e])return W.strftime(t,W.formats[i].shortcuts[e],i);var s=(W.formats[i].codes[e]||"").split("."),r=t["get"+s[0]]?t["get"+s[0]]():"";return s[1]&&(r=E(r,s[1])),r}W.strftime=function(t,e,i,s){var r="perl",n=W.regional.getLocale();i&&W.formats.hasOwnProperty(i)?r=i:i&&W.regional.hasOwnProperty(i)&&(n=i),s&&W.formats.hasOwnProperty(s)?r=s:s&&W.regional.hasOwnProperty(s)&&(n=s),"[object Object]"==S(t)&&"jsDate"==t._type||((t=new W(t)).locale=n);for(var a,o=(e=e||(t.formatString||W.regional[n].formatString))||"%Y-%m-%d",h="";0<o.length;)o=(a=o.match(W.formats[r].codes.matcher))?(h+=o.slice(0,a.index),h+=(a[1]||"")+G(t,a[2],r),o.slice(a.index+a[0].length)):(h+=o,"");return h},W.formats={ISO:"%Y-%m-%dT%H:%M:%S.%N%G",SQL:"%Y-%m-%d %H:%M:%S"},W.formats.perl={codes:{matcher:/()%(#?(%|[a-z]))/i,Y:"FullYear",y:"ShortYear.2",m:"MonthNumber.2","#m":"MonthNumber",B:"MonthName",b:"AbbrMonthName",d:"Date.2","#d":"Date",e:"Date",A:"DayName",a:"AbbrDayName",w:"Day",H:"Hours.2","#H":"Hours",I:"Hours12.2","#I":"Hours12",p:"AMPM",M:"Minutes.2","#M":"Minutes",S:"Seconds.2","#S":"Seconds",s:"Unix",N:"Milliseconds.3","#N":"Milliseconds",O:"TimezoneOffset",Z:"TimezoneName",G:"GmtOffset"},shortcuts:{F:"%Y-%m-%d",T:"%H:%M:%S",X:"%H:%M:%S",x:"%m/%d/%y",D:"%m/%d/%y","#c":"%a %b %e %H:%M:%S %Y",v:"%e-%b-%Y",R:"%H:%M",r:"%I:%M:%S %p",t:"\t",n:"\n","%":"%"}},W.formats.php={codes:{matcher:/()%((%|[a-z]))/i,a:"AbbrDayName",A:"DayName",d:"Date.2",e:"Date",j:"DayOfYear.3",u:"DayOfWeek",w:"Day",U:"FullWeekOfYear.2",V:"IsoWeek.2",W:"WeekOfYear.2",b:"AbbrMonthName",B:"MonthName",m:"MonthNumber.2",h:"AbbrMonthName",C:"Century.2",y:"ShortYear.2",Y:"FullYear",H:"Hours.2",I:"Hours12.2",l:"Hours12",p:"AMPM",P:"AmPm",M:"Minutes.2",S:"Seconds.2",s:"Unix",O:"TimezoneOffset",z:"GmtOffset",Z:"TimezoneAbbr"},shortcuts:{D:"%m/%d/%y",F:"%Y-%m-%d",T:"%H:%M:%S",X:"%H:%M:%S",x:"%m/%d/%y",R:"%H:%M",r:"%I:%M:%S %p",t:"\t",n:"\n","%":"%"}},W.createDate=function(t){function e(t,e){var i,s,r,n,a=parseFloat(e[1]),o=parseFloat(e[2]),h=parseFloat(e[3]),l=W.config.defaultCentury;return i=31<a?(s=h,r=o,l+a):(s=o,r=a,l+h),n=r+"/"+s+"/"+i,t.replace(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})/,n)}if(null==t)return new Date;if(t instanceof Date)return t;if("number"==typeof t)return new Date(t);var i,s=String(t).replace(/^\s*(.+)\s*$/g,"$1");if((i=(s=(s=s.replace(/^([0-9]{1,4})-([0-9]{1,2})-([0-9]{1,4})/,"$1/$2/$3")).replace(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{4})/i,"$1 $2 $3")).match(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{2})\D*/i))&&3<i.length){var r=parseFloat(i[3]),n=W.config.defaultCentury+r;n=String(n),s=s.replace(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{2})\D*/i,i[1]+" "+i[2]+" "+n)}(i=s.match(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})[^0-9]/))&&3<i.length&&(s=e(s,i)),(i=s.match(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})$/))&&3<i.length&&(s=e(s,i));for(var a,o,h,l=0,d=W.matchers.length,p=s;l<d;){if(o=Date.parse(p),!isNaN(o))return new Date(o);if("function"==typeof(a=W.matchers[l])){if((h=a.call(W,p))instanceof Date)return h}else p=s.replace(a[0],a[1]);l++}return NaN},W.daysInMonth=function(t,e){return 2==e?29==new Date(t,1,29).getDate()?29:28:[R,31,R,31,30,31,30,31,31,30,31,30,31][e]},W.matchers=[[/(3[01]|[0-2]\d)\s*\.\s*(1[0-2]|0\d)\s*\.\s*([1-9]\d{3})/,"$2/$1/$3"],[/([1-9]\d{3})\s*-\s*(1[0-2]|0\d)\s*-\s*(3[01]|[0-2]\d)/,"$2/$3/$1"],function(t){var e=t.match(/^(?:(.+)\s+)?([012]?\d)(?:\s*\:\s*(\d\d))?(?:\s*\:\s*(\d\d(\.\d*)?))?\s*(am|pm)?\s*$/i);if(e){if(e[1]){var i=this.createDate(e[1]);if(isNaN(i))return}else{(i=new Date).setMilliseconds(0)}var s=parseFloat(e[2]);return e[6]&&(s="am"==e[6].toLowerCase()?12==s?0:s:12==s?12:s+12),i.setHours(s,parseInt(e[3]||0,10),parseInt(e[4]||0,10),1e3*(parseFloat(e[5]||0)||0)),i}return t},function(t){var e=t.match(/^(?:(.+))[T|\s+]([012]\d)(?:\:(\d\d))(?:\:(\d\d))(?:\.\d+)([\+\-]\d\d\:\d\d)$/i);if(e){if(e[1]){var i=this.createDate(e[1]);if(isNaN(i))return}else{(i=new Date).setMilliseconds(0)}var s=parseFloat(e[2]);return i.setHours(s,parseInt(e[3],10),parseInt(e[4],10),1e3*parseFloat(e[5])),i}return t},function(t){var e=t.match(/^([0-3]?\d)\s*[-\/.\s]{1}\s*([a-zA-Z]{3,9})\s*[-\/.\s]{1}\s*([0-3]?\d)$/);if(e){var i,s,r,n=new Date,a=W.config.defaultCentury,o=parseFloat(e[1]),h=parseFloat(e[3]);return i=31<o?(s=h,a+o):(s=o,a+h),-1==(r=q(e[2],W.regional[W.regional.getLocale()].monthNamesShort))&&(r=q(e[2],W.regional[W.regional.getLocale()].monthNames)),n.setFullYear(i,r,s),n.setHours(0,0,0,0),n}return t}],Q.jsDate=W,Q.jqplot.sprintf=function(){function k(t,e,i,s){var r=t.length>=e?"":Array(1+e-t.length>>>0).join(i);return s?t+r:r+t}function j(t){for(var e=new String(t),i=10;0<i&&e!=(e=e.replace(/^(\d+)(\d{3})/,"$1"+Q.jqplot.sprintf.thousandsSeparator+"$2"));i--);return e}function q(t,e,i,s,r,n){var a=s-t.length;if(0<a){var o=" ";n&&(o=" "),t=i||!r?k(t,s,o,i):t.slice(0,e.length)+k("",a,"0",!0)+t.slice(e.length)}return t}function S(t,e,i,s,r,n,a,o){var h=t>>>0;return q(t=(i=i&&h&&{2:"0b",8:"0",16:"0x"}[e]||"")+k(h.toString(e),n||0,"0",!1),i,s,r,a,o)}function M(t,e,i,s,r,n){return null!=s&&(t=t.slice(0,s)),q(t,"",e,i,r,n)}var D=arguments,C=0;return D[C++].replace(Q.jqplot.sprintf.regex,function(t,e,i,s,r,n,a){if("%%"==t)return"%";for(var o=!1,h="",l=!1,d=!1,p=!1,g=!1,c=0;i&&c<i.length;c++)switch(i.charAt(c)){case" ":h=" ";break;case"+":h="+";break;case"-":o=!0;break;case"0":l=!0;break;case"#":d=!0;break;case"&":p=!0;break;case"'":g=!0}if((s=s?"*"==s?+D[C++]:"*"==s.charAt(0)?+D[s.slice(1,-1)]:+s:0)<0&&(s=-s,o=!0),!isFinite(s))throw new Error("$.jqplot.sprintf: (minimum-)width must be finite");n=n?"*"==n?+D[C++]:"*"==n.charAt(0)?+D[n.slice(1,-1)]:+n:-1<"fFeE".indexOf(a)?6:"d"==a?0:void 0;var u=e?D[e.slice(0,-1)]:D[C++];switch(a){case"s":return null==u?"":M(String(u),o,s,n,l,p);case"c":return M(String.fromCharCode(+u),o,s,n,l,p);case"b":return S(u,2,d,o,s,n,l,p);case"o":return S(u,8,d,o,s,n,l,p);case"x":return S(u,16,d,o,s,n,l,p);case"X":return S(u,16,d,o,s,n,l,p).toUpperCase();case"u":return S(u,10,d,o,s,n,l,p);case"i":var f=parseInt(+u,10);return isNaN(f)?"":q(u=(m=f<0?"-":h)+k(g?j(String(Math.abs(f))):String(Math.abs(f)),n,"0",!1),m,o,s,l,p);case"d":f=Math.round(+u);return isNaN(f)?"":q(u=(m=f<0?"-":h)+k(g?j(String(Math.abs(f))):String(Math.abs(f)),n,"0",!1),m,o,s,l,p);case"e":case"E":case"f":case"F":case"g":case"G":f=+u;if(isNaN(f))return"";var m=f<0?"-":h,x=["toExponential","toFixed","toPrecision"]["efg".indexOf(a.toLowerCase())],_=["toString","toUpperCase"]["eEfFgG".indexOf(a)%2];return(v=Math.abs(f)[x](n).toString().split("."))[0]=g?j(v[0]):v[0],q(u=m+v.join(Q.jqplot.sprintf.decimalMark),m,o,s,l,p)[_]();case"p":case"P":f=+u;if(isNaN(f))return"";m=f<0?"-":h;var v,w=-1!=(v=String(Number(Math.abs(f)).toExponential()).split(/e|E/))[0].indexOf(".")?v[0].length-1:String(f).length,b=v[1]<0?-v[1]-1:0;if(Math.abs(f)<1)u=w+b<=n?m+Math.abs(f).toPrecision(w):w<=n-1?m+Math.abs(f).toExponential(w-1):m+Math.abs(f).toExponential(n-1);else{var y=w<=n?w:n;u=m+Math.abs(f).toPrecision(y)}_=["toString","toUpperCase"]["pP".indexOf(a)%2];return q(u,m,o,s,l,p)[_]();case"n":return"";default:return t}})},Q.jqplot.sprintf.thousandsSeparator=",",Q.jqplot.sprintf.decimalMark=".",Q.jqplot.sprintf.regex=/%%|%(\d+\$)?([-+#0&\' ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([nAscboxXuidfegpEGP])/g,Q.jqplot.getSignificantFigures=function(t){var e=String(Number(Math.abs(t)).toExponential()).split(/e|E/),i=-1!=e[0].indexOf(".")?e[0].length-1:e[0].length,s=e[1]<0?-e[1]-1:0,r=parseInt(e[1],10),n=0<r+1?r+1:0;return{significantDigits:i,digitsLeft:n,digitsRight:i<=n?0:i-r-1,zeros:s,exponent:r}};var B=!(Q.jqplot.getPrecision=function(t){return Q.jqplot.getSignificantFigures(t).digitsRight})!==Q.uiBackCompat;Q.jqplot.effects={effect:{}};var Y="jqplot.storage.";Q.extend(Q.jqplot.effects,{version:"1.9pre",save:function(t,e){for(var i=0;i<e.length;i++)null!==e[i]&&t.data(Y+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i=0;i<e.length;i++)null!==e[i]&&t.css(e[i],t.data(Y+e[i]))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(i){if(i.parent().is(".ui-effects-wrapper"))return i.parent();var s={width:i.outerWidth(!0),height:i.outerHeight(!0),float:i.css("float")},t=Q("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},r=document.activeElement;return i.wrap(t),i[0]!==r&&!Q.contains(i[0],r)||Q(r).focus(),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(Q.extend(s,{position:i.css("position"),zIndex:i.css("z-index")}),Q.each(["top","left","bottom","right"],function(t,e){s[e]=i.css(e),isNaN(parseInt(s[e],10))&&(s[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(s).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!Q.contains(t[0],e)||Q(e).focus()),t}}),Q.fn.extend({jqplotEffect:function(t,e,i,s){function r(t){function e(){Q.isFunction(s)&&s.call(i[0]),Q.isFunction(t)&&t()}var i=Q(this),s=n.complete,r=n.mode;(i.is(":hidden")?"hide"===r:"show"===r)?e():h.call(i[0],n,e)}var n=function(t,e,i,s){return Q.isPlainObject(t)||(t={effect:t},e===R&&(e={}),Q.isFunction(e)&&(s=e,i=null,e={}),"number"!==Q.type(e)&&!Q.fx.speeds[e]||(s=i,i=e,e={}),Q.isFunction(i)&&(s=i,i=null),e&&Q.extend(t,e),i=i||e.duration,t.duration=Q.fx.off?0:"number"==typeof i?i:i in Q.fx.speeds?Q.fx.speeds[i]:Q.fx.speeds._default,t.complete=s||e.complete),t}.apply(this,arguments),a=n.mode,o=n.queue,h=Q.jqplot.effects.effect[n.effect],l=!h&&B&&Q.jqplot.effects[n.effect];return Q.fx.off||!h&&!l?a?this[a](n.duration,n.complete):this.each(function(){n.complete&&n.complete.call(this)}):h?!1===o?this.each(r):this.queue(o||"fx",r):l.call(this,{options:n,duration:n.duration,callback:n.complete,mode:n.mode})}});var J=/up|down|vertical/,X=/up|left|vertical|horizontal/;Q.jqplot.effects.effect.blind=function(t,e){var i,s,r,n=Q(this),a=["position","top","bottom","left","right","height","width"],o=Q.jqplot.effects.setMode(n,t.mode||"hide"),h=t.direction||"up",l=J.test(h),d=l?"height":"width",p=l?"top":"left",g=X.test(h),c={},u="show"===o;n.parent().is(".ui-effects-wrapper")?Q.jqplot.effects.save(n.parent(),a):Q.jqplot.effects.save(n,a),n.show(),r=parseInt(n.css("top"),10),i=Q.jqplot.effects.createWrapper(n).css({overflow:"hidden"}),s=l?i[d]()+r:i[d](),c[d]=u?String(s):"0",g||(n.css(l?"bottom":"right",0).css(l?"top":"left","").css({position:"absolute"}),c[p]=u?"0":String(s)),u&&(i.css(d,0),g||i.css(p,s)),i.animate(c,{duration:t.duration,easing:t.easing,queue:!1,complete:function(){"hide"===o&&n.hide(),Q.jqplot.effects.restore(n,a),Q.jqplot.effects.removeWrapper(n),e()}})}}(jQuery),function(b){function y(t,e,i,s,r){var n=t,a=t-1,o="x"===r?0:1;return 0<n?i*s.series[a]._plotData[e][o]<0?y(a,e,i,s,r):s.series[a].gridData[e][o]:0==o?s.series[n]._xaxis.series_u2p(0):s.series[n]._yaxis.series_u2p(0)}function r(t,e,i){for(var s=0;s<this.series.length;s++)this.series[s].renderer.constructor==b.jqplot.BarRenderer&&this.series[s].highlightMouseOver&&(this.series[s].highlightMouseDown=!1)}function n(){this.plugins.barRenderer&&this.plugins.barRenderer.highlightCanvas&&(this.plugins.barRenderer.highlightCanvas.resetCanvas(),this.plugins.barRenderer.highlightCanvas=null),this.plugins.barRenderer={highlightedSeriesIndex:null},this.plugins.barRenderer.highlightCanvas=new b.jqplot.GenericCanvas,this.eventCanvas._elem.before(this.plugins.barRenderer.highlightCanvas.createElement(this._gridPadding,"jqplot-barRenderer-highlight-canvas",this._plotDimensions,this)),this.plugins.barRenderer.highlightCanvas.setContext(),this.eventCanvas._elem.bind("mouseleave",{plot:this},function(t){l(t.data.plot)})}function h(t,e,i,s){var r=t.series[e],n=t.plugins.barRenderer.highlightCanvas;n._ctx.clearRect(0,0,n._ctx.canvas.width,n._ctx.canvas.height),r._highlightedPoint=i,t.plugins.barRenderer.highlightedSeriesIndex=e;var a={fillStyle:r.highlightColors[i]};r.renderer.shapeRenderer.draw(n._ctx,s,a),n=null}function l(t){var e=t.plugins.barRenderer.highlightCanvas;e._ctx.clearRect(0,0,e._ctx.canvas.width,e._ctx.canvas.height);for(var i=0;i<t.series.length;i++)t.series[i]._highlightedPoint=null;t.plugins.barRenderer.highlightedSeriesIndex=null,t.target.trigger("jqplotDataUnhighlight"),e=null}function a(t,e,i,s,r){if(s){var n=[s.seriesIndex,s.pointIndex,s.data],a=jQuery.Event("jqplotDataMouseOver");if(a.pageX=t.pageX,a.pageY=t.pageY,r.target.trigger(a,n),r.series[n[0]].show&&r.series[n[0]].highlightMouseOver&&(n[0]!=r.plugins.barRenderer.highlightedSeriesIndex||n[1]!=r.series[n[0]]._highlightedPoint)){var o=jQuery.Event("jqplotDataHighlight");o.which=t.which,o.pageX=t.pageX,o.pageY=t.pageY,r.target.trigger(o,n),h(r,s.seriesIndex,s.pointIndex,s.points)}}else null==s&&l(r)}function o(t,e,i,s,r){if(s){var n=[s.seriesIndex,s.pointIndex,s.data];if(r.series[n[0]].highlightMouseDown&&(n[0]!=r.plugins.barRenderer.highlightedSeriesIndex||n[1]!=r.series[n[0]]._highlightedPoint)){var a=jQuery.Event("jqplotDataHighlight");a.which=t.which,a.pageX=t.pageX,a.pageY=t.pageY,r.target.trigger(a,n),h(r,s.seriesIndex,s.pointIndex,s.points)}}else null==s&&l(r)}function d(t,e,i,s,r){var n=r.plugins.barRenderer.highlightedSeriesIndex;null!=n&&r.series[n].highlightMouseDown&&l(r)}function p(t,e,i,s,r){if(s){var n=[s.seriesIndex,s.pointIndex,s.data],a=jQuery.Event("jqplotDataClick");a.which=t.which,a.pageX=t.pageX,a.pageY=t.pageY,r.target.trigger(a,n)}}function g(t,e,i,s,r){if(s){var n=[s.seriesIndex,s.pointIndex,s.data],a=r.plugins.barRenderer.highlightedSeriesIndex;null!=a&&r.series[a].highlightMouseDown&&l(r);var o=jQuery.Event("jqplotDataRightClick");o.which=t.which,o.pageX=t.pageX,o.pageY=t.pageY,r.target.trigger(o,n)}}b.jqplot.BarRenderer=function(){b.jqplot.LineRenderer.call(this)},b.jqplot.BarRenderer.prototype=new b.jqplot.LineRenderer,b.jqplot.BarRenderer.prototype.constructor=b.jqplot.BarRenderer,b.jqplot.BarRenderer.prototype.init=function(t,e){this.barPadding=8,this.barMargin=10,this.barDirection="vertical",this.barWidth=null,this.shadowOffset=2,this.shadowDepth=5,this.shadowAlpha=.08,this.waterfall=!1,this.groups=1,this.varyBarColor=!1,this.highlightMouseOver=!0,this.highlightMouseDown=!1,this.highlightColors=[],this.transposedData=!0,this.renderer.animation={show:!1,direction:"down",speed:3e3,_supported:!0},this._type="bar",t.highlightMouseDown&&null==t.highlightMouseOver&&(t.highlightMouseOver=!1),b.extend(!0,this,t),b.extend(!0,this.renderer,t),this.fill=!0,"horizontal"===this.barDirection&&this.rendererOptions.animation&&null==this.rendererOptions.animation.direction&&(this.renderer.animation.direction="left"),this.waterfall&&(this.fillToZero=!1,this.disableStack=!0),"vertical"==this.barDirection?(this._primaryAxis="_xaxis",this._stackAxis="y",this.fillAxis="y"):(this._primaryAxis="_yaxis",this._stackAxis="x",this.fillAxis="x"),this._highlightedPoint=null,this._plotSeriesInfo=null,this._dataColors=[];var i={lineJoin:"miter",lineCap:"round",fill:!0,isarc:!(this._barPoints=[]),strokeStyle:this.color,fillStyle:this.color,closePath:this.fill};this.renderer.shapeRenderer.init(i);var s={lineJoin:"miter",lineCap:"round",fill:!0,isarc:!1,angle:this.shadowAngle,offset:this.shadowOffset,alpha:this.shadowAlpha,depth:this.shadowDepth,closePath:this.fill};this.renderer.shadowRenderer.init(s),e.postInitHooks.addOnce(r),e.postDrawHooks.addOnce(n),e.eventListenerHooks.addOnce("jqplotMouseMove",a),e.eventListenerHooks.addOnce("jqplotMouseDown",o),e.eventListenerHooks.addOnce("jqplotMouseUp",d),e.eventListenerHooks.addOnce("jqplotClick",p),e.eventListenerHooks.addOnce("jqplotRightClick",g)},b.jqplot.preSeriesInitHooks.push(function(t,e,i,s){if("horizontal"==this.rendererOptions.barDirection&&(this._stackAxis="x",this._primaryAxis="_yaxis"),1==this.rendererOptions.waterfall){this._data=b.extend(!0,[],this.data);for(var r=0,n=this.rendererOptions.barDirection&&"vertical"!==this.rendererOptions.barDirection&&!1!==this.transposedData?0:1,a=0;a<this.data.length;a++)r+=this.data[a][n],0<a&&(this.data[a][n]+=this.data[a-1][n]);this.data[this.data.length]=1==n?[this.data.length+1,r]:[r,this.data.length+1],this._data[this._data.length]=1==n?[this._data.length+1,r]:[r,this._data.length+1]}if(1<this.rendererOptions.groups){this.breakOnNull=!0;var o=this.data.length,h=parseInt(o/this.rendererOptions.groups,10),l=0;for(a=h;a<o;a+=h)this.data.splice(a+l,0,[null,null]),this._plotData.splice(a+l,0,[null,null]),this._stackData.splice(a+l,0,[null,null]),l++;for(a=0;a<this.data.length;a++)"_xaxis"==this._primaryAxis?(this.data[a][0]=a+1,this._plotData[a][0]=a+1,this._stackData[a][0]=a+1):(this.data[a][1]=a+1,this._plotData[a][1]=a+1,this._stackData[a][1]=a+1)}}),b.jqplot.BarRenderer.prototype.calcSeriesNumbers=function(){for(var t,e,i=0,s=0,r=this[this._primaryAxis],n=0;n<r._series.length;n++)(t=r._series[n])===this&&(e=n),t.renderer.constructor==b.jqplot.BarRenderer&&(i+=t.data.length,s+=1);return[i,s,e]},b.jqplot.BarRenderer.prototype.setBarWidth=function(){var t,e,i=this[this._primaryAxis],s=this._plotSeriesInfo=this.renderer.calcSeriesNumbers.call(this);t=s[0],e=s[1];var r=(i.numberTicks-1)/2;return"xaxis"==i.name||"x2axis"==i.name?this._stack?this.barWidth=(i._offsets.max-i._offsets.min)/t*e-this.barMargin:this.barWidth=((i._offsets.max-i._offsets.min)/r-this.barPadding*(e-1)-2*this.barMargin)/e:this._stack?this.barWidth=(i._offsets.min-i._offsets.max)/t*e-this.barMargin:this.barWidth=((i._offsets.min-i._offsets.max)/r-this.barPadding*(e-1)-2*this.barMargin)/e,[t,e]},b.jqplot.BarRenderer.prototype.draw=function(t,e,i,s){var r=b.extend({},i),n=null!=r.shadow?r.shadow:this.shadow,a=null!=r.showLine?r.showLine:this.showLine;null!=r.fill?r.fill:this.fill,this.xaxis,this.yaxis,this._xaxis.series_u2p,this._yaxis.series_u2p,this._dataColors=[],this._barPoints=[],null!=this.barWidth&&null!=this.rendererOptions.barWidth||this.renderer.setBarWidth.call(this);var o=((w=this._plotSeriesInfo=this.renderer.calcSeriesNumbers.call(this))[0],w[1]),h=w[2],l=[];if(this._stack?this._barNudge=0:this._barNudge=(-Math.abs(o/2-.5)+h)*(this.barWidth+this.barPadding),a){var d=new b.jqplot.ColorGenerator(this.negativeSeriesColors),p=new b.jqplot.ColorGenerator(this.seriesColors),g=d.get(this.index);this.useNegativeColors||(g=r.fillStyle);var c,u,f,m=r.fillStyle;if("vertical"==this.barDirection){for(var x=0;x<e.length;x++)if(this._stack||null!=this.data[x][1]){if(l=[],c=e[x][0]+this._barNudge,f=this._stack&&this._prevGridData.length?y(this.index,x,this._plotData[x][1],s,"y"):this.fillToZero?this._yaxis.series_u2p(0):this.waterfall&&0<x&&x<this.gridData.length-1?this.gridData[x-1][1]:this.waterfall&&0==x&&x<this.gridData.length-1?this._yaxis.min<=0&&0<=this._yaxis.max?this._yaxis.series_u2p(0):0<this._yaxis.min?t.canvas.height:0:this.waterfall&&x==this.gridData.length-1?this._yaxis.min<=0&&0<=this._yaxis.max?this._yaxis.series_u2p(0):0<this._yaxis.min?t.canvas.height:0:t.canvas.height,this.fillToZero&&this._plotData[x][1]<0||this.waterfall&&this._data[x][1]<0?this.varyBarColor&&!this._stack?this.useNegativeColors?r.fillStyle=d.next():r.fillStyle=p.next():r.fillStyle=g:this.varyBarColor&&!this._stack?r.fillStyle=p.next():r.fillStyle=m,!this.fillToZero||0<=this._plotData[x][1]?(l.push([c-this.barWidth/2,f]),l.push([c-this.barWidth/2,e[x][1]]),l.push([c+this.barWidth/2,e[x][1]]),l.push([c+this.barWidth/2,f])):(l.push([c-this.barWidth/2,e[x][1]]),l.push([c-this.barWidth/2,f]),l.push([c+this.barWidth/2,f]),l.push([c+this.barWidth/2,e[x][1]])),this._barPoints.push(l),n&&!this._stack)delete(v=b.extend(!0,{},r)).fillStyle,this.renderer.shadowRenderer.draw(t,l,v);var _=r.fillStyle||this.color;this._dataColors.push(_),this.renderer.shapeRenderer.draw(t,l,r)}}else if("horizontal"==this.barDirection)for(x=0;x<e.length;x++)if(this._stack||null!=this.data[x][0]){var v;if(l=[],c=e[x][1]-this._barNudge,u=this._stack&&this._prevGridData.length?y(this.index,x,this._plotData[x][0],s,"x"):this.fillToZero?this._xaxis.series_u2p(0):this.waterfall&&0<x&&x<this.gridData.length-1?this.gridData[x-1][0]:this.waterfall&&0==x&&x<this.gridData.length-1?this._xaxis.min<=0&&0<=this._xaxis.max?this._xaxis.series_u2p(0):(this._xaxis.min,0):this.waterfall&&x==this.gridData.length-1?this._xaxis.min<=0&&0<=this._xaxis.max?this._xaxis.series_u2p(0):0<this._xaxis.min?0:t.canvas.width:0,this.fillToZero&&this._plotData[x][0]<0||this.waterfall&&this._data[x][0]<0?this.varyBarColor&&!this._stack?this.useNegativeColors?r.fillStyle=d.next():r.fillStyle=p.next():r.fillStyle=g:this.varyBarColor&&!this._stack?r.fillStyle=p.next():r.fillStyle=m,!this.fillToZero||0<=this._plotData[x][0]?(l.push([u,c+this.barWidth/2]),l.push([u,c-this.barWidth/2]),l.push([e[x][0],c-this.barWidth/2]),l.push([e[x][0],c+this.barWidth/2])):(l.push([e[x][0],c+this.barWidth/2]),l.push([e[x][0],c-this.barWidth/2]),l.push([u,c-this.barWidth/2]),l.push([u,c+this.barWidth/2])),this._barPoints.push(l),n&&!this._stack)delete(v=b.extend(!0,{},r)).fillStyle,this.renderer.shadowRenderer.draw(t,l,v);_=r.fillStyle||this.color;this._dataColors.push(_),this.renderer.shapeRenderer.draw(t,l,r)}}if(0==this.highlightColors.length)this.highlightColors=b.jqplot.computeHighlightColors(this._dataColors);else if("string"==typeof this.highlightColors){var w=this.highlightColors;this.highlightColors=[];for(x=0;x<this._dataColors.length;x++)this.highlightColors.push(w)}},b.jqplot.BarRenderer.prototype.drawShadow=function(t,e,i,s){var r,n,a,o=null!=i?i:{},h=(null!=o.shadow?o.shadow:this.shadow,null!=o.showLine?o.showLine:this.showLine);if(null!=o.fill?o.fill:this.fill,this.xaxis,this.yaxis,this._xaxis.series_u2p,this._yaxis.series_u2p,this._stack&&this.shadow){null==this.barWidth&&this.renderer.setBarWidth.call(this);var l=this._plotSeriesInfo=this.renderer.calcSeriesNumbers.call(this);if(l[0],n=l[1],a=l[2],this._stack?this._barNudge=0:this._barNudge=(-Math.abs(n/2-.5)+a)*(this.barWidth+this.barPadding),h)if("vertical"==this.barDirection){for(var d=0;d<e.length;d++)if(null!=this.data[d][1]){r=[];var p,g=e[d][0]+this._barNudge;p=this._stack&&this._prevGridData.length?y(this.index,d,this._plotData[d][1],s,"y"):this.fillToZero?this._yaxis.series_u2p(0):t.canvas.height,r.push([g-this.barWidth/2,p]),r.push([g-this.barWidth/2,e[d][1]]),r.push([g+this.barWidth/2,e[d][1]]),r.push([g+this.barWidth/2,p]),this.renderer.shadowRenderer.draw(t,r,o)}}else if("horizontal"==this.barDirection)for(d=0;d<e.length;d++)if(null!=this.data[d][0]){r=[];var c;g=e[d][1]-this._barNudge;c=this._stack&&this._prevGridData.length?y(this.index,d,this._plotData[d][0],s,"x"):this.fillToZero?this._xaxis.series_u2p(0):0,r.push([c,g+this.barWidth/2]),r.push([e[d][0],g+this.barWidth/2]),r.push([e[d][0],g-this.barWidth/2]),r.push([c,g-this.barWidth/2]),this.renderer.shadowRenderer.draw(t,r,o)}}}}(jQuery),function(n){n.jqplot.CanvasAxisTickRenderer=function(t){this.mark="outside",this.showMark=!0,this.showGridline=!0,this.isMinorTick=!1,this.angle=0,this.markSize=4,this.show=!0,this.showLabel=!0,this.labelPosition="auto",this.label="",this.value=null,this._styles={},this.formatter=n.jqplot.DefaultTickFormatter,this.formatString="",this.prefix="",this.fontFamily='"Trebuchet MS", Arial, Helvetica, sans-serif',this.fontSize="10pt",this.fontWeight="normal",this.fontStretch=1,this.textColor="#666666",this.enableFontSupport=!0,this.pt2px=null,this._elem,this._ctx,this._plotWidth,this._plotHeight,this._plotDimensions={height:null,width:null},n.extend(!0,this,t);var e={fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily};this.pt2px&&(e.pt2px=this.pt2px),this.enableFontSupport&&n.jqplot.support_canvas_text()?this._textRenderer=new n.jqplot.CanvasFontRenderer(e):this._textRenderer=new n.jqplot.CanvasTextRenderer(e)},n.jqplot.CanvasAxisTickRenderer.prototype.init=function(t){n.extend(!0,this,t),this._textRenderer.init({fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily})},n.jqplot.CanvasAxisTickRenderer.prototype.getWidth=function(t){if(this._elem)return this._elem.outerWidth(!0);var e=this._textRenderer,i=e.getWidth(t),s=e.getHeight(t);return Math.abs(Math.sin(e.angle)*s)+Math.abs(Math.cos(e.angle)*i)},n.jqplot.CanvasAxisTickRenderer.prototype.getHeight=function(t){if(this._elem)return this._elem.outerHeight(!0);var e=this._textRenderer,i=e.getWidth(t),s=e.getHeight(t);return Math.abs(Math.cos(e.angle)*s)+Math.abs(Math.sin(e.angle)*i)},n.jqplot.CanvasAxisTickRenderer.prototype.getTop=function(t){return this._elem?this._elem.position().top:null},n.jqplot.CanvasAxisTickRenderer.prototype.getAngleRad=function(){return this.angle*Math.PI/180},n.jqplot.CanvasAxisTickRenderer.prototype.setTick=function(t,e,i){return this.value=t,i&&(this.isMinorTick=!0),this},n.jqplot.CanvasAxisTickRenderer.prototype.draw=function(t,e){this.label||(this.label=this.prefix+this.formatter(this.formatString,this.value)),this._elem&&(n.jqplot.use_excanvas&&void 0!==window.G_vmlCanvasManager.uninitElement&&window.G_vmlCanvasManager.uninitElement(this._elem.get(0)),this._elem.emptyForce(),this._elem=null);var i=e.canvasManager.getCanvas();this._textRenderer.setText(this.label,t);var s=this.getWidth(t),r=this.getHeight(t);return i.width=s,i.height=r,i.style.width=s,i.style.height=r,i.style.textAlign="left",i.style.position="absolute",i=e.canvasManager.initCanvas(i),this._elem=n(i),this._elem.css(this._styles),this._elem.addClass("jqplot-"+this.axis+"-tick"),i=null,this._elem},n.jqplot.CanvasAxisTickRenderer.prototype.pack=function(){this._textRenderer.draw(this._elem.get(0).getContext("2d"),this.label)}}(jQuery),function(e){e.jqplot.CanvasTextRenderer=function(t){this.fontStyle="normal",this.fontVariant="normal",this.fontWeight="normal",this.fontSize="10px",this.fontFamily="sans-serif",this.fontStretch=1,this.fillStyle="#666666",this.angle=0,this.textAlign="start",this.textBaseline="alphabetic",this.text,this.width,this.height,this.pt2px=1.28,e.extend(!0,this,t),this.normalizedFontSize=this.normalizeFontSize(this.fontSize),this.setHeight()},e.jqplot.CanvasTextRenderer.prototype.init=function(t){e.extend(!0,this,t),this.normalizedFontSize=this.normalizeFontSize(this.fontSize),this.setHeight()},e.jqplot.CanvasTextRenderer.prototype.normalizeFontSize=function(t){t=String(t);var e=parseFloat(t);return-1<t.indexOf("px")?e/this.pt2px:-1<t.indexOf("pt")?e:-1<t.indexOf("em")?12*e:-1<t.indexOf("%")?12*e/100:e/this.pt2px},e.jqplot.CanvasTextRenderer.prototype.fontWeight2Float=function(t){if(Number(t))return t/400;switch(t){case"normal":return 1;case"bold":return 1.75;case"bolder":return 2.25;case"lighter":return.75;default:return 1}},e.jqplot.CanvasTextRenderer.prototype.getText=function(){return this.text},e.jqplot.CanvasTextRenderer.prototype.setText=function(t,e){return this.text=t,this.setWidth(e),this},e.jqplot.CanvasTextRenderer.prototype.getWidth=function(t){return this.width},e.jqplot.CanvasTextRenderer.prototype.setWidth=function(t,e){return this.width=e||this.measure(t,this.text),this},e.jqplot.CanvasTextRenderer.prototype.getHeight=function(t){return this.height},e.jqplot.CanvasTextRenderer.prototype.setHeight=function(t){return this.height=t||this.normalizedFontSize*this.pt2px,this},e.jqplot.CanvasTextRenderer.prototype.letter=function(t){return this.letters[t]},e.jqplot.CanvasTextRenderer.prototype.ascent=function(){return this.normalizedFontSize},e.jqplot.CanvasTextRenderer.prototype.descent=function(){return 7*this.normalizedFontSize/25},e.jqplot.CanvasTextRenderer.prototype.measure=function(t,e){for(var i=0,s=e.length,r=0;r<s;r++){var n=this.letter(e.charAt(r));n&&(i+=n.width*this.normalizedFontSize/25*this.fontStretch)}return i},e.jqplot.CanvasTextRenderer.prototype.draw=function(t,e){var i,s,r=0,n=.72*this.height,a=e.length,o=this.normalizedFontSize/25;t.save(),-Math.PI/2<=this.angle&&this.angle<=0||3*Math.PI/2<=this.angle&&this.angle<=2*Math.PI?(i=0,s=-Math.sin(this.angle)*this.width):0<this.angle&&this.angle<=Math.PI/2||2*-Math.PI<=this.angle&&this.angle<=3*-Math.PI/2?(i=Math.sin(this.angle)*this.height,s=0):-Math.PI<this.angle&&this.angle<-Math.PI/2||Math.PI<=this.angle&&this.angle<=3*Math.PI/2?(i=-Math.cos(this.angle)*this.width,s=-Math.sin(this.angle)*this.width-Math.cos(this.angle)*this.height):(3*-Math.PI/2<this.angle&&this.angle<Math.PI||Math.PI/2<this.angle&&this.angle<Math.PI)&&(i=Math.sin(this.angle)*this.height-Math.cos(this.angle)*this.width,s=-Math.cos(this.angle)*this.height),t.strokeStyle=this.fillStyle,t.fillStyle=this.fillStyle,t.translate(i,s),t.rotate(this.angle),t.lineCap="round";var h=30<this.normalizedFontSize?2:2+(30-this.normalizedFontSize)/20;t.lineWidth=h*o*this.fontWeight2Float(this.fontWeight);for(var l=0;l<a;l++){var d=this.letter(e.charAt(l));if(d){t.beginPath();for(var p=1,g=0;g<d.points.length;g++){var c=d.points[g];-1!=c[0]||-1!=c[1]?p?(t.moveTo(r+c[0]*o*this.fontStretch,n-c[1]*o),p=!1):t.lineTo(r+c[0]*o*this.fontStretch,n-c[1]*o):p=1}t.stroke(),r+=d.width*o*this.fontStretch}}return t.restore(),0},e.jqplot.CanvasTextRenderer.prototype.letters={" ":{width:16,points:[]},"!":{width:10,points:[[5,21],[5,7],[-1,-1],[5,2],[4,1],[5,0],[6,1],[5,2]]},'"':{width:16,points:[[4,21],[4,14],[-1,-1],[12,21],[12,14]]},"#":{width:21,points:[[11,25],[4,-7],[-1,-1],[17,25],[10,-7],[-1,-1],[4,12],[18,12],[-1,-1],[3,6],[17,6]]},$:{width:20,points:[[8,25],[8,-4],[-1,-1],[12,25],[12,-4],[-1,-1],[17,18],[15,20],[12,21],[8,21],[5,20],[3,18],[3,16],[4,14],[5,13],[7,12],[13,10],[15,9],[16,8],[17,6],[17,3],[15,1],[12,0],[8,0],[5,1],[3,3]]},"%":{width:24,points:[[21,21],[3,0],[-1,-1],[8,21],[10,19],[10,17],[9,15],[7,14],[5,14],[3,16],[3,18],[4,20],[6,21],[8,21],[10,20],[13,19],[16,19],[19,20],[21,21],[-1,-1],[17,7],[15,6],[14,4],[14,2],[16,0],[18,0],[20,1],[21,3],[21,5],[19,7],[17,7]]},"&":{width:26,points:[[23,12],[23,13],[22,14],[21,14],[20,13],[19,11],[17,6],[15,3],[13,1],[11,0],[7,0],[5,1],[4,2],[3,4],[3,6],[4,8],[5,9],[12,13],[13,14],[14,16],[14,18],[13,20],[11,21],[9,20],[8,18],[8,16],[9,13],[11,10],[16,3],[18,1],[20,0],[22,0],[23,1],[23,2]]},"'":{width:10,points:[[5,19],[4,20],[5,21],[6,20],[6,18],[5,16],[4,15]]},"(":{width:14,points:[[11,25],[9,23],[7,20],[5,16],[4,11],[4,7],[5,2],[7,-2],[9,-5],[11,-7]]},")":{width:14,points:[[3,25],[5,23],[7,20],[9,16],[10,11],[10,7],[9,2],[7,-2],[5,-5],[3,-7]]},"*":{width:16,points:[[8,21],[8,9],[-1,-1],[3,18],[13,12],[-1,-1],[13,18],[3,12]]},"+":{width:26,points:[[13,18],[13,0],[-1,-1],[4,9],[22,9]]},",":{width:10,points:[[6,1],[5,0],[4,1],[5,2],[6,1],[6,-1],[5,-3],[4,-4]]},"-":{width:18,points:[[6,9],[12,9]]},".":{width:10,points:[[5,2],[4,1],[5,0],[6,1],[5,2]]},"/":{width:22,points:[[20,25],[2,-7]]},0:{width:20,points:[[9,21],[6,20],[4,17],[3,12],[3,9],[4,4],[6,1],[9,0],[11,0],[14,1],[16,4],[17,9],[17,12],[16,17],[14,20],[11,21],[9,21]]},1:{width:20,points:[[6,17],[8,18],[11,21],[11,0]]},2:{width:20,points:[[4,16],[4,17],[5,19],[6,20],[8,21],[12,21],[14,20],[15,19],[16,17],[16,15],[15,13],[13,10],[3,0],[17,0]]},3:{width:20,points:[[5,21],[16,21],[10,13],[13,13],[15,12],[16,11],[17,8],[17,6],[16,3],[14,1],[11,0],[8,0],[5,1],[4,2],[3,4]]},4:{width:20,points:[[13,21],[3,7],[18,7],[-1,-1],[13,21],[13,0]]},5:{width:20,points:[[15,21],[5,21],[4,12],[5,13],[8,14],[11,14],[14,13],[16,11],[17,8],[17,6],[16,3],[14,1],[11,0],[8,0],[5,1],[4,2],[3,4]]},6:{width:20,points:[[16,18],[15,20],[12,21],[10,21],[7,20],[5,17],[4,12],[4,7],[5,3],[7,1],[10,0],[11,0],[14,1],[16,3],[17,6],[17,7],[16,10],[14,12],[11,13],[10,13],[7,12],[5,10],[4,7]]},7:{width:20,points:[[17,21],[7,0],[-1,-1],[3,21],[17,21]]},8:{width:20,points:[[8,21],[5,20],[4,18],[4,16],[5,14],[7,13],[11,12],[14,11],[16,9],[17,7],[17,4],[16,2],[15,1],[12,0],[8,0],[5,1],[4,2],[3,4],[3,7],[4,9],[6,11],[9,12],[13,13],[15,14],[16,16],[16,18],[15,20],[12,21],[8,21]]},9:{width:20,points:[[16,14],[15,11],[13,9],[10,8],[9,8],[6,9],[4,11],[3,14],[3,15],[4,18],[6,20],[9,21],[10,21],[13,20],[15,18],[16,14],[16,9],[15,4],[13,1],[10,0],[8,0],[5,1],[4,3]]},":":{width:10,points:[[5,14],[4,13],[5,12],[6,13],[5,14],[-1,-1],[5,2],[4,1],[5,0],[6,1],[5,2]]},";":{width:10,points:[[5,14],[4,13],[5,12],[6,13],[5,14],[-1,-1],[6,1],[5,0],[4,1],[5,2],[6,1],[6,-1],[5,-3],[4,-4]]},"<":{width:24,points:[[20,18],[4,9],[20,0]]},"=":{width:26,points:[[4,12],[22,12],[-1,-1],[4,6],[22,6]]},">":{width:24,points:[[4,18],[20,9],[4,0]]},"?":{width:18,points:[[3,16],[3,17],[4,19],[5,20],[7,21],[11,21],[13,20],[14,19],[15,17],[15,15],[14,13],[13,12],[9,10],[9,7],[-1,-1],[9,2],[8,1],[9,0],[10,1],[9,2]]},"@":{width:27,points:[[18,13],[17,15],[15,16],[12,16],[10,15],[9,14],[8,11],[8,8],[9,6],[11,5],[14,5],[16,6],[17,8],[-1,-1],[12,16],[10,14],[9,11],[9,8],[10,6],[11,5],[-1,-1],[18,16],[17,8],[17,6],[19,5],[21,5],[23,7],[24,10],[24,12],[23,15],[22,17],[20,19],[18,20],[15,21],[12,21],[9,20],[7,19],[5,17],[4,15],[3,12],[3,9],[4,6],[5,4],[7,2],[9,1],[12,0],[15,0],[18,1],[20,2],[21,3],[-1,-1],[19,16],[18,8],[18,6],[19,5]]},A:{width:18,points:[[9,21],[1,0],[-1,-1],[9,21],[17,0],[-1,-1],[4,7],[14,7]]},B:{width:21,points:[[4,21],[4,0],[-1,-1],[4,21],[13,21],[16,20],[17,19],[18,17],[18,15],[17,13],[16,12],[13,11],[-1,-1],[4,11],[13,11],[16,10],[17,9],[18,7],[18,4],[17,2],[16,1],[13,0],[4,0]]},C:{width:21,points:[[18,16],[17,18],[15,20],[13,21],[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5]]},D:{width:21,points:[[4,21],[4,0],[-1,-1],[4,21],[11,21],[14,20],[16,18],[17,16],[18,13],[18,8],[17,5],[16,3],[14,1],[11,0],[4,0]]},E:{width:19,points:[[4,21],[4,0],[-1,-1],[4,21],[17,21],[-1,-1],[4,11],[12,11],[-1,-1],[4,0],[17,0]]},F:{width:18,points:[[4,21],[4,0],[-1,-1],[4,21],[17,21],[-1,-1],[4,11],[12,11]]},G:{width:21,points:[[18,16],[17,18],[15,20],[13,21],[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5],[18,8],[-1,-1],[13,8],[18,8]]},H:{width:22,points:[[4,21],[4,0],[-1,-1],[18,21],[18,0],[-1,-1],[4,11],[18,11]]},I:{width:8,points:[[4,21],[4,0]]},J:{width:16,points:[[12,21],[12,5],[11,2],[10,1],[8,0],[6,0],[4,1],[3,2],[2,5],[2,7]]},K:{width:21,points:[[4,21],[4,0],[-1,-1],[18,21],[4,7],[-1,-1],[9,12],[18,0]]},L:{width:17,points:[[4,21],[4,0],[-1,-1],[4,0],[16,0]]},M:{width:24,points:[[4,21],[4,0],[-1,-1],[4,21],[12,0],[-1,-1],[20,21],[12,0],[-1,-1],[20,21],[20,0]]},N:{width:22,points:[[4,21],[4,0],[-1,-1],[4,21],[18,0],[-1,-1],[18,21],[18,0]]},O:{width:22,points:[[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5],[19,8],[19,13],[18,16],[17,18],[15,20],[13,21],[9,21]]},P:{width:21,points:[[4,21],[4,0],[-1,-1],[4,21],[13,21],[16,20],[17,19],[18,17],[18,14],[17,12],[16,11],[13,10],[4,10]]},Q:{width:22,points:[[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5],[19,8],[19,13],[18,16],[17,18],[15,20],[13,21],[9,21],[-1,-1],[12,4],[18,-2]]},R:{width:21,points:[[4,21],[4,0],[-1,-1],[4,21],[13,21],[16,20],[17,19],[18,17],[18,15],[17,13],[16,12],[13,11],[4,11],[-1,-1],[11,11],[18,0]]},S:{width:20,points:[[17,18],[15,20],[12,21],[8,21],[5,20],[3,18],[3,16],[4,14],[5,13],[7,12],[13,10],[15,9],[16,8],[17,6],[17,3],[15,1],[12,0],[8,0],[5,1],[3,3]]},T:{width:16,points:[[8,21],[8,0],[-1,-1],[1,21],[15,21]]},U:{width:22,points:[[4,21],[4,6],[5,3],[7,1],[10,0],[12,0],[15,1],[17,3],[18,6],[18,21]]},V:{width:18,points:[[1,21],[9,0],[-1,-1],[17,21],[9,0]]},W:{width:24,points:[[2,21],[7,0],[-1,-1],[12,21],[7,0],[-1,-1],[12,21],[17,0],[-1,-1],[22,21],[17,0]]},X:{width:20,points:[[3,21],[17,0],[-1,-1],[17,21],[3,0]]},Y:{width:18,points:[[1,21],[9,11],[9,0],[-1,-1],[17,21],[9,11]]},Z:{width:20,points:[[17,21],[3,0],[-1,-1],[3,21],[17,21],[-1,-1],[3,0],[17,0]]},"[":{width:14,points:[[4,25],[4,-7],[-1,-1],[5,25],[5,-7],[-1,-1],[4,25],[11,25],[-1,-1],[4,-7],[11,-7]]},"\\":{width:14,points:[[0,21],[14,-3]]},"]":{width:14,points:[[9,25],[9,-7],[-1,-1],[10,25],[10,-7],[-1,-1],[3,25],[10,25],[-1,-1],[3,-7],[10,-7]]},"^":{width:16,points:[[6,15],[8,18],[10,15],[-1,-1],[3,12],[8,17],[13,12],[-1,-1],[8,17],[8,0]]},_:{width:16,points:[[0,-2],[16,-2]]},"`":{width:10,points:[[6,21],[5,20],[4,18],[4,16],[5,15],[6,16],[5,17]]},a:{width:19,points:[[15,14],[15,0],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},b:{width:19,points:[[4,21],[4,0],[-1,-1],[4,11],[6,13],[8,14],[11,14],[13,13],[15,11],[16,8],[16,6],[15,3],[13,1],[11,0],[8,0],[6,1],[4,3]]},c:{width:18,points:[[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},d:{width:19,points:[[15,21],[15,0],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},e:{width:18,points:[[3,8],[15,8],[15,10],[14,12],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},f:{width:12,points:[[10,21],[8,21],[6,20],[5,17],[5,0],[-1,-1],[2,14],[9,14]]},g:{width:19,points:[[15,14],[15,-2],[14,-5],[13,-6],[11,-7],[8,-7],[6,-6],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},h:{width:19,points:[[4,21],[4,0],[-1,-1],[4,10],[7,13],[9,14],[12,14],[14,13],[15,10],[15,0]]},i:{width:8,points:[[3,21],[4,20],[5,21],[4,22],[3,21],[-1,-1],[4,14],[4,0]]},j:{width:10,points:[[5,21],[6,20],[7,21],[6,22],[5,21],[-1,-1],[6,14],[6,-3],[5,-6],[3,-7],[1,-7]]},k:{width:17,points:[[4,21],[4,0],[-1,-1],[14,14],[4,4],[-1,-1],[8,8],[15,0]]},l:{width:8,points:[[4,21],[4,0]]},m:{width:30,points:[[4,14],[4,0],[-1,-1],[4,10],[7,13],[9,14],[12,14],[14,13],[15,10],[15,0],[-1,-1],[15,10],[18,13],[20,14],[23,14],[25,13],[26,10],[26,0]]},n:{width:19,points:[[4,14],[4,0],[-1,-1],[4,10],[7,13],[9,14],[12,14],[14,13],[15,10],[15,0]]},o:{width:19,points:[[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3],[16,6],[16,8],[15,11],[13,13],[11,14],[8,14]]},p:{width:19,points:[[4,14],[4,-7],[-1,-1],[4,11],[6,13],[8,14],[11,14],[13,13],[15,11],[16,8],[16,6],[15,3],[13,1],[11,0],[8,0],[6,1],[4,3]]},q:{width:19,points:[[15,14],[15,-7],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},r:{width:13,points:[[4,14],[4,0],[-1,-1],[4,8],[5,11],[7,13],[9,14],[12,14]]},s:{width:17,points:[[14,11],[13,13],[10,14],[7,14],[4,13],[3,11],[4,9],[6,8],[11,7],[13,6],[14,4],[14,3],[13,1],[10,0],[7,0],[4,1],[3,3]]},t:{width:12,points:[[5,21],[5,4],[6,1],[8,0],[10,0],[-1,-1],[2,14],[9,14]]},u:{width:19,points:[[4,14],[4,4],[5,1],[7,0],[10,0],[12,1],[15,4],[-1,-1],[15,14],[15,0]]},v:{width:16,points:[[2,14],[8,0],[-1,-1],[14,14],[8,0]]},w:{width:22,points:[[3,14],[7,0],[-1,-1],[11,14],[7,0],[-1,-1],[11,14],[15,0],[-1,-1],[19,14],[15,0]]},x:{width:17,points:[[3,14],[14,0],[-1,-1],[14,14],[3,0]]},y:{width:16,points:[[2,14],[8,0],[-1,-1],[14,14],[8,0],[6,-4],[4,-6],[2,-7],[1,-7]]},z:{width:17,points:[[14,14],[3,0],[-1,-1],[3,14],[14,14],[-1,-1],[3,0],[14,0]]},"{":{width:14,points:[[9,25],[7,24],[6,23],[5,21],[5,19],[6,17],[7,16],[8,14],[8,12],[6,10],[-1,-1],[7,24],[6,22],[6,20],[7,18],[8,17],[9,15],[9,13],[8,11],[4,9],[8,7],[9,5],[9,3],[8,1],[7,0],[6,-2],[6,-4],[7,-6],[-1,-1],[6,8],[8,6],[8,4],[7,2],[6,1],[5,-1],[5,-3],[6,-5],[7,-6],[9,-7]]},"|":{width:8,points:[[4,25],[4,-7]]},"}":{width:14,points:[[5,25],[7,24],[8,23],[9,21],[9,19],[8,17],[7,16],[6,14],[6,12],[8,10],[-1,-1],[7,24],[8,22],[8,20],[7,18],[6,17],[5,15],[5,13],[6,11],[10,9],[6,7],[5,5],[5,3],[6,1],[7,0],[8,-2],[8,-4],[7,-6],[-1,-1],[8,8],[6,6],[6,4],[7,2],[8,1],[9,-1],[9,-3],[8,-5],[7,-6],[5,-7]]},"~":{width:24,points:[[3,6],[3,8],[4,11],[6,12],[8,12],[10,11],[14,8],[16,7],[18,7],[20,8],[21,10],[-1,-1],[3,8],[4,10],[6,11],[8,11],[10,10],[14,7],[16,6],[18,6],[20,7],[21,10],[21,12]]}},e.jqplot.CanvasFontRenderer=function(t){(t=t||{}).pt2px||(t.pt2px=1.5),e.jqplot.CanvasTextRenderer.call(this,t)},e.jqplot.CanvasFontRenderer.prototype=new e.jqplot.CanvasTextRenderer({}),e.jqplot.CanvasFontRenderer.prototype.constructor=e.jqplot.CanvasFontRenderer,e.jqplot.CanvasFontRenderer.prototype.measure=function(t,e){var i=this.fontSize+" "+this.fontFamily;t.save(),t.font=i;var s=t.measureText(e).width;return t.restore(),s},e.jqplot.CanvasFontRenderer.prototype.draw=function(t,e){var i,s,r=.72*this.height;t.save(),-Math.PI/2<=this.angle&&this.angle<=0||3*Math.PI/2<=this.angle&&this.angle<=2*Math.PI?(i=0,s=-Math.sin(this.angle)*this.width):0<this.angle&&this.angle<=Math.PI/2||2*-Math.PI<=this.angle&&this.angle<=3*-Math.PI/2?(i=Math.sin(this.angle)*this.height,s=0):-Math.PI<this.angle&&this.angle<-Math.PI/2||Math.PI<=this.angle&&this.angle<=3*Math.PI/2?(i=-Math.cos(this.angle)*this.width,s=-Math.sin(this.angle)*this.width-Math.cos(this.angle)*this.height):(3*-Math.PI/2<this.angle&&this.angle<Math.PI||Math.PI/2<this.angle&&this.angle<Math.PI)&&(i=Math.sin(this.angle)*this.height-Math.cos(this.angle)*this.width,s=-Math.cos(this.angle)*this.height),t.strokeStyle=this.fillStyle,t.fillStyle=this.fillStyle;var n=this.fontSize+" "+this.fontFamily;t.font=n,t.translate(i,s),t.rotate(this.angle),t.fillText(e,0,r),t.restore()}}(jQuery),function(M){function e(){this.uid=null,this.type=null,this.gridStart=null,this.gridStop=null,this.tooltipWidthFactor=0,this.options={name:null,show:!0,lineWidth:2,lineCap:"round",color:"#666666",shadow:!0,shadowAngle:45,shadowOffset:1,shadowDepth:3,shadowAlpha:"0.07",xaxis:"xaxis",yaxis:"yaxis",showTooltip:!1,showTooltipPrecision:.6,tooltipLocation:"nw",fadeTooltip:!0,tooltipFadeSpeed:"fast",tooltipOffset:4,tooltipFormatString:"%d, %d"}}function i(t){e.call(this),this.type="rectangle";M.extend(!0,this.options,{xmin:null,xmax:null,xOffset:"6px",xminOffset:null,xmaxOffset:null,ymin:null,ymax:null,yOffset:"6px",yminOffset:null,ymaxOffset:null},t),this.options.showTooltipPrecision<.01&&(this.options.showTooltipPrecision=.01)}function s(t){e.call(this),this.type="line";M.extend(!0,this.options,{start:[],stop:[]},t),this.options.showTooltipPrecision<.01&&(this.options.showTooltipPrecision=.01)}function r(t){e.call(this),this.type="horizontalLine";M.extend(!0,this.options,{y:null,xmin:null,xmax:null,xOffset:"6px",xminOffset:null,xmaxOffset:null},t),this.options.showTooltipPrecision<.01&&(this.options.showTooltipPrecision=.01)}function n(t){e.call(this),this.type="dashedHorizontalLine";M.extend(!0,this.options,{y:null,xmin:null,xmax:null,xOffset:"6px",xminOffset:null,xmaxOffset:null,dashPattern:[8,8]},t),this.options.showTooltipPrecision<.01&&(this.options.showTooltipPrecision=.01)}function a(t){e.call(this),this.type="verticalLine";M.extend(!0,this.options,{x:null,ymin:null,ymax:null,yOffset:"6px",yminOffset:null,ymaxOffset:null},t),this.options.showTooltipPrecision<.01&&(this.options.showTooltipPrecision=.01)}function o(t){e.call(this),this.type="dashedVerticalLine",this.start=null;this.stop=null;M.extend(!0,this.options,{x:this.stop=null,ymin:null,ymax:null,yOffset:"6px",yminOffset:null,ymaxOffset:null,dashPattern:[8,8]},t),this.options.showTooltipPrecision<.01&&(this.options.showTooltipPrecision=.01)}function O(t,e,i,s){var r,n,a=t.plugins.canvasOverlay._tooltipElem,o=e.options;switch(a.html(M.jqplot.sprintf(o.tooltipFormatString,s[0],s[1])),o.tooltipLocation){case"nw":r=i[0]+t._gridPadding.left-a.outerWidth(!0)-o.tooltipOffset,n=i[1]+t._gridPadding.top-o.tooltipOffset-a.outerHeight(!0);break;case"n":r=i[0]+t._gridPadding.left-a.outerWidth(!0)/2,n=i[1]+t._gridPadding.top-o.tooltipOffset-a.outerHeight(!0);break;case"ne":r=i[0]+t._gridPadding.left+o.tooltipOffset,n=i[1]+t._gridPadding.top-o.tooltipOffset-a.outerHeight(!0);break;case"e":r=i[0]+t._gridPadding.left+o.tooltipOffset,n=i[1]+t._gridPadding.top-a.outerHeight(!0)/2;break;case"se":r=i[0]+t._gridPadding.left+o.tooltipOffset,n=i[1]+t._gridPadding.top+o.tooltipOffset;break;case"s":r=i[0]+t._gridPadding.left-a.outerWidth(!0)/2,n=i[1]+t._gridPadding.top+o.tooltipOffset;break;case"sw":r=i[0]+t._gridPadding.left-a.outerWidth(!0)-o.tooltipOffset,n=i[1]+t._gridPadding.top+o.tooltipOffset;break;case"w":r=i[0]+t._gridPadding.left-a.outerWidth(!0)-o.tooltipOffset,n=i[1]+t._gridPadding.top-a.outerHeight(!0)/2;break;default:r=i[0]+t._gridPadding.left-a.outerWidth(!0)-o.tooltipOffset,n=i[1]+t._gridPadding.top-o.tooltipOffset-a.outerHeight(!0)}a.css("left",r),a.css("top",n),o.fadeTooltip?a.stop(!0,!0).fadeIn(o.tooltipFadeSpeed):a.show(),a=null}var h=0;M.jqplot.CanvasOverlay=function(t){var e=t||{};if(this.options={show:M.jqplot.config.enablePlugins,deferDraw:!1},this.objects=[],this.objectNames=[],this.canvas=null,this.markerRenderer=new M.jqplot.MarkerRenderer({style:"line"}),this.markerRenderer.init(),this.highlightObjectIndex=null,e.objects)for(var i,s=e.objects,r=0;r<s.length;r++)for(var n in i=s[r])switch(n){case"line":this.addLine(i[n]);break;case"horizontalLine":this.addHorizontalLine(i[n]);break;case"dashedHorizontalLine":this.addDashedHorizontalLine(i[n]);break;case"verticalLine":this.addVerticalLine(i[n]);break;case"dashedVerticalLine":this.addDashedVerticalLine(i[n]);break;case"rectangle":this.addRectangle(i[n])}M.extend(!0,this.options,e)},M.jqplot.CanvasOverlay.postPlotInit=function(t,e,i){var s=i||{};this.plugins.canvasOverlay=new M.jqplot.CanvasOverlay(s.canvasOverlay)},(i.prototype=new e).constructor=i,(s.prototype=new e).constructor=s,(r.prototype=new e).constructor=r,(n.prototype=new e).constructor=n,(a.prototype=new e).constructor=a,(o.prototype=new e).constructor=o,M.jqplot.CanvasOverlay.prototype.addLine=function(t){var e=new s(t);e.uid=h++,this.objects.push(e),this.objectNames.push(e.options.name)},M.jqplot.CanvasOverlay.prototype.addHorizontalLine=function(t){var e=new r(t);e.uid=h++,this.objects.push(e),this.objectNames.push(e.options.name)},M.jqplot.CanvasOverlay.prototype.addDashedHorizontalLine=function(t){var e=new n(t);e.uid=h++,this.objects.push(e),this.objectNames.push(e.options.name)},M.jqplot.CanvasOverlay.prototype.addVerticalLine=function(t){var e=new a(t);e.uid=h++,this.objects.push(e),this.objectNames.push(e.options.name)},M.jqplot.CanvasOverlay.prototype.addDashedVerticalLine=function(t){var e=new o(t);e.uid=h++,this.objects.push(e),this.objectNames.push(e.options.name)},M.jqplot.CanvasOverlay.prototype.addRectangle=function(t){var e=new i(t);e.uid=h++,this.objects.push(e),this.objectNames.push(e.options.name)},M.jqplot.CanvasOverlay.prototype.removeObject=function(t){if("number"==M.type(t))this.objects.splice(t,1),this.objectNames.splice(t,1);else{var e=M.inArray(t,this.objectNames);-1!=e&&(this.objects.splice(e,1),this.objectNames.splice(e,1))}},M.jqplot.CanvasOverlay.prototype.getObject=function(t){if("number"==M.type(t))return this.objects[t];var e=M.inArray(t,this.objectNames);return-1!=e?this.objects[e]:void 0},M.jqplot.CanvasOverlay.prototype.get=M.jqplot.CanvasOverlay.prototype.getObject,M.jqplot.CanvasOverlay.prototype.clear=function(t){this.canvas._ctx.clearRect(0,0,this.canvas.getWidth(),this.canvas.getHeight())},M.jqplot.CanvasOverlay.prototype.draw=function(t){var e,i,s,r=this.objects,n=this.markerRenderer;if(this.options.show){this.canvas._ctx.clearRect(0,0,this.canvas.getWidth(),this.canvas.getHeight());for(var a=0;a<r.length;a++){e=r[a];var o=M.extend(!0,{},e.options);if(e.options.show)switch(n.shadow=e.options.shadow,e.tooltipWidthFactor=e.options.lineWidth/e.options.showTooltipPrecision,e.type){case"line":n.style="line",o.closePath=!1,i=[t.axes[e.options.xaxis].series_u2p(e.options.start[0]),t.axes[e.options.yaxis].series_u2p(e.options.start[1])],s=[t.axes[e.options.xaxis].series_u2p(e.options.stop[0]),t.axes[e.options.yaxis].series_u2p(e.options.stop[1])],e.gridStart=i,e.gridStop=s,n.draw(i,s,this.canvas._ctx,o);break;case"horizontalLine":if(null!=e.options.y){n.style="line",o.closePath=!1;var h=t.axes[e.options.xaxis],l=t.axes[e.options.yaxis].series_u2p(e.options.y),d=e.options.xminOffset||e.options.xOffset,p=e.options.xmaxOffset||e.options.xOffset;null!=e.options.xmin?k=h.series_u2p(e.options.xmin):null!=d&&("number"==M.type(d)?k=h.series_u2p(h.min+d):"string"==M.type(d)&&(k=h.series_u2p(h.min)+parseFloat(d))),null!=e.options.xmax?j=h.series_u2p(e.options.xmax):null!=p&&("number"==M.type(p)?j=h.series_u2p(h.max-p):"string"==M.type(p)&&(j=h.series_u2p(h.max)-parseFloat(p))),null!=j&&null!=k&&(e.gridStart=[k,l],e.gridStop=[j,l],n.draw([k,l],[j,l],this.canvas._ctx,o))}break;case"dashedHorizontalLine":for(var g=e.options.dashPattern,c=0,u=0;u<g.length;u++)c+=g[u];if(null!=e.options.y){n.style="line",o.closePath=!1;h=t.axes[e.options.xaxis],l=t.axes[e.options.yaxis].series_u2p(e.options.y),d=e.options.xminOffset||e.options.xOffset,p=e.options.xmaxOffset||e.options.xOffset;if(null!=e.options.xmin?k=h.series_u2p(e.options.xmin):null!=d&&("number"==M.type(d)?k=h.series_u2p(h.min+d):"string"==M.type(d)&&(k=h.series_u2p(h.min)+parseFloat(d))),null!=e.options.xmax?j=h.series_u2p(e.options.xmax):null!=p&&("number"==M.type(p)?j=h.series_u2p(h.max-p):"string"==M.type(p)&&(j=h.series_u2p(h.max)-parseFloat(p))),null!=j&&null!=k){e.gridStart=[k,l],e.gridStop=[j,l];var f=Math.ceil((j-k)/c),m=k;for(u=0;u<f;u++)for(var x=0;x<g.length;x+=2)y=m+g[x],n.draw([m,l],[y,l],this.canvas._ctx,o),m+=g[x],x<g.length-1&&(m+=g[x+1])}}break;case"verticalLine":if(null!=e.options.x){n.style="line",o.closePath=!1;var _=t.axes[e.options.yaxis],v=t.axes[e.options.xaxis].series_u2p(e.options.x),w=e.options.yminOffset||e.options.yOffset,b=e.options.ymaxOffset||e.options.yOffset;null!=e.options.ymin?q=_.series_u2p(e.options.ymin):null!=w&&("number"==M.type(w)?q=_.series_u2p(_.min-w):"string"==M.type(w)&&(q=_.series_u2p(_.min)-parseFloat(w))),null!=e.options.ymax?S=_.series_u2p(e.options.ymax):null!=b&&("number"==M.type(b)?S=_.series_u2p(_.max+b):"string"==M.type(b)&&(S=_.series_u2p(_.max)+parseFloat(b))),null!=S&&null!=q&&(e.gridStart=[v,q],e.gridStop=[v,S],n.draw([v,q],[v,S],this.canvas._ctx,o))}break;case"dashedVerticalLine":for(g=e.options.dashPattern,c=0,u=0;u<g.length;u++)c+=g[u];if(null!=e.options.x){n.style="line",o.closePath=!1;_=t.axes[e.options.yaxis],v=t.axes[e.options.xaxis].series_u2p(e.options.x),w=e.options.yminOffset||e.options.yOffset,b=e.options.ymaxOffset||e.options.yOffset;if(null!=e.options.ymin?q=_.series_u2p(e.options.ymin):null!=w&&("number"==M.type(w)?q=_.series_u2p(_.min-w):"string"==M.type(w)&&(q=_.series_u2p(_.min)-parseFloat(w))),null!=e.options.ymax?S=_.series_u2p(e.options.ymax):null!=b&&("number"==M.type(b)?S=_.series_u2p(_.max+b):"string"==M.type(b)&&(S=_.series_u2p(_.max)+parseFloat(b))),null!=S&&null!=q){e.gridStart=[v,q],e.gridStop=[v,S];var y;for(f=Math.ceil((q-S)/c),m=q,u=0;u<f;u++)for(x=0;x<g.length;x+=2)(y=m-g[x])<S&&(y=S),m<S&&(m=S),n.draw([v,m],[v,y],this.canvas._ctx,o),m-=g[x],x<g.length-1&&(m-=g[x+1])}}break;case"rectangle":n.style="line",o.closePath=!0;var k,j;h=t.axes[e.options.xaxis],l=t.axes[e.options.yaxis].series_u2p(e.options.y),d=e.options.xminOffset||e.options.xOffset,p=e.options.xmaxOffset||e.options.xOffset;null!=e.options.xmin?k=h.series_u2p(e.options.xmin):null!=d&&("number"==M.type(d)?k=h.series_u2p(h.min+d):"string"==M.type(d)&&(k=h.series_u2p(h.min)+parseFloat(d))),null!=e.options.xmax?j=h.series_u2p(e.options.xmax):null!=p&&("number"==M.type(p)?j=h.series_u2p(h.max-p):"string"==M.type(p)&&(j=h.series_u2p(h.max)-parseFloat(p)));var q,S;_=t.axes[e.options.yaxis],v=t.axes[e.options.xaxis].series_u2p(e.options.x),w=e.options.yminOffset||e.options.yOffset,b=e.options.ymaxOffset||e.options.yOffset;null!=e.options.ymin?q=_.series_u2p(e.options.ymin):null!=w&&("number"==M.type(w)?q=_.series_u2p(_.min-w):"string"==M.type(w)&&(q=_.series_u2p(_.min)-parseFloat(w))),null!=e.options.ymax?S=_.series_u2p(e.options.ymax):null!=b&&("number"==M.type(b)?S=_.series_u2p(_.max+b):"string"==M.type(b)&&(S=_.series_u2p(_.max)+parseFloat(b))),null!=j&&null!=k&&null!=S&&null!=q&&(e.gridStart=[k,q],e.gridStop=[j,S],this.canvas._ctx.fillStyle=e.options.color,this.canvas._ctx.fillRect(k,q,j-k,S-q))}}}},M.jqplot.CanvasOverlay.postPlotDraw=function(){(e=this.plugins.canvasOverlay)&&e.highlightCanvas&&(e.highlightCanvas.resetCanvas(),e.highlightCanvas=null),e.canvas=new M.jqplot.GenericCanvas,this.eventCanvas._elem.before(e.canvas.createElement(this._gridPadding,"jqplot-overlayCanvas-canvas",this._plotDimensions,this)),e.canvas.setContext(),e.deferDraw||e.draw(this);var t=document.createElement("div");e._tooltipElem=M(t),t=null,e._tooltipElem.addClass("jqplot-canvasOverlay-tooltip"),e._tooltipElem.css({position:"absolute",display:"none"}),this.eventCanvas._elem.before(e._tooltipElem),this.eventCanvas._elem.bind("mouseleave",{elem:e._tooltipElem},function(t){t.data.elem.hide()});var e=null},M.jqplot.postInitHooks.push(M.jqplot.CanvasOverlay.postPlotInit),M.jqplot.postDrawHooks.push(M.jqplot.CanvasOverlay.postPlotDraw),M.jqplot.eventListenerHooks.push(["jqplotMouseMove",function(t,e,i,s,r){for(var n,a,o=r.plugins.canvasOverlay,h=o.objects,l=h.length,d=!1,p=0;p<l;p++)if((n=h[p]).options.showTooltip){var g;if(g="rectangle"===n.type?(j=[e.x,e.y],q=n.gridStart,S=n.gridStop,n.tooltipWidthFactor,I=P=T=R=M=void 0,D=j[0],C=j[1],R=Math.round(S[0]),T=Math.round(S[1]),P=Math.round(q[0]),I=Math.round(q[1]),P<R&&(M=R,R=P,P=M),I<T&&(M=T,T=I,I=M),R<=D&&D<=P&&T<=C&&C<=I):(c=[e.x,e.y],u=n.gridStart,f=n.gridStop,m=n.tooltipWidthFactor,void 0,x=c[0],_=c[1],v=Math.round(f[0]),w=Math.round(f[1]),b=Math.round(u[0]),y=Math.round(u[1]),k=m*Math.sqrt(Math.pow(v-b,2)+Math.pow(w-y,2)),Math.abs((b-v)*(_-w)-(y-w)*(x-v))<k),i=[r.axes[n.options.xaxis].series_p2u(e.x),r.axes[n.options.yaxis].series_p2u(e.y)],g&&null==o.highlightObjectIndex){switch(n.type){case"line":O(r,n,[e.x,e.y],i);break;case"horizontalLine":case"dashedHorizontalLine":O(r,n,[e.x,n.gridStart[1]],[i[0],n.options.y]);break;case"verticalLine":case"dashedVerticalLine":O(r,n,[n.gridStart[0],e.y],[n.options.x,i[1]]);break;case"rectangle":O(r,n,[n.gridStart[0],e.y],[n.options.x,i[1]])}o.highlightObjectIndex=p,d=!0;break}if(g&&o.highlightObjectIndex!==p){switch(a=o._tooltipElem,n.fadeTooltip?a.fadeOut(n.tooltipFadeSpeed):a.hide(),n.type){case"line":O(r,n,[e.x,e.y],i);break;case"horizontalLine":case"dashedHorizontalLine":O(r,n,[e.x,n.gridStart[1]],[i[0],n.options.y]);break;case"verticalLine":case"dashedVerticalLine":O(r,n,[n.gridStart[0],e.y],[n.options.x,i[1]]);break;case"rectangle":O(r,n,[n.gridStart[0],e.y],[n.options.x,i[1]])}o.highlightObjectIndex=p,d=!0;break}if(g){switch(n.type){case"line":O(r,n,[e.x,e.y],i);break;case"horizontalLine":case"dashedHorizontalLine":O(r,n,[e.x,n.gridStart[1]],[i[0],n.options.y]);break;case"verticalLine":case"dashedVerticalLine":O(r,n,[n.gridStart[0],e.y],[n.options.x,i[1]]);break;case"rectangle":O(r,n,[n.gridStart[0],e.y],[n.options.x,i[1]])}d=!0;break}}var c,u,f,m,x,_,v,w,b,y,k,j,q,S,M,D,C,R,T,P,I;d||null===o.highlightObjectIndex||(a=o._tooltipElem,(n=o.getObject(o.highlightObjectIndex)).fadeTooltip?a.fadeOut(n.tooltipFadeSpeed):a.hide(),o.highlightObjectIndex=null)}])}(jQuery),function(k){k.jqplot.CategoryAxisRenderer=function(t){k.jqplot.LinearAxisRenderer.call(this),this.sortMergedLabels=!1},k.jqplot.CategoryAxisRenderer.prototype=new k.jqplot.LinearAxisRenderer,k.jqplot.CategoryAxisRenderer.prototype.constructor=k.jqplot.CategoryAxisRenderer,k.jqplot.CategoryAxisRenderer.prototype.init=function(t){this.groups=1,this.groupLabels=[],this._groupLabels=[],this._grouped=!1,this._barsPerGroup=null,this.reverse=!1,k.extend(!0,this,{tickOptions:{formatString:"%d"}},t);for(var e=this._dataBounds,i=0;i<this._series.length;i++){var s=this._series[i];s.groups&&(this.groups=s.groups);for(var r=s.data,n=0;n<r.length;n++)"xaxis"==this.name||"x2axis"==this.name?((r[n][0]<e.min||null==e.min)&&(e.min=r[n][0]),(r[n][0]>e.max||null==e.max)&&(e.max=r[n][0])):((r[n][1]<e.min||null==e.min)&&(e.min=r[n][1]),(r[n][1]>e.max||null==e.max)&&(e.max=r[n][1]))}this.groupLabels.length&&(this.groups=this.groupLabels.length)},k.jqplot.CategoryAxisRenderer.prototype.createTicks=function(){var t,e,i=(this._ticks,this.ticks),s=this.name;if(this._dataBounds,i.length){if(1<this.groups&&!this._grouped){for(var r=i.length,n=0,a=_=parseInt(r/this.groups,10);a<r;a+=_)i.splice(a+n,0," "),n++;this._grouped=!0}this.min=.5,this.max=i.length+.5;var o=this.max-this.min;for(this.numberTicks=2*i.length+1,a=0;a<i.length;a++){e=this.min+2*a*o/(this.numberTicks-1),(v=new this.tickRenderer(this.tickOptions)).showLabel=!1,v.setTick(e,this.name),this._ticks.push(v),(v=new this.tickRenderer(this.tickOptions)).label=i[a],v.showMark=!1,v.showGridline=!1,v.setTick(e+.5,this.name),this._ticks.push(v)}(v=new this.tickRenderer(this.tickOptions)).showLabel=!1,v.setTick(e+1,this.name),this._ticks.push(v)}else{t="xaxis"==s||"x2axis"==s?this._plotDimensions.width:this._plotDimensions.height,null!=this.min&&null!=this.max&&null!=this.numberTicks&&(this.tickInterval=null),null!=this.min&&null!=this.max&&null!=this.tickInterval&&parseInt((this.max-this.min)/this.tickInterval,10)!=(this.max-this.min)/this.tickInterval&&(this.tickInterval=null);var h,l,d=[],p=0,g=!1;for(a=0;a<this._series.length;a++)for(var c=this._series[a],u=0;u<c.data.length;u++)l="xaxis"==this.name||"x2axis"==this.name?c.data[u][0]:c.data[u][1],-1==k.inArray(l,d)&&(g=!0,p+=1,d.push(l));g&&this.sortMergedLabels&&("string"==typeof d[0]?d.sort():d.sort(function(t,e){return t-e})),this.ticks=d;for(a=0;a<this._series.length;a++)for(c=this._series[a],u=0;u<c.data.length;u++){l="xaxis"==this.name||"x2axis"==this.name?c.data[u][0]:c.data[u][1];var f=k.inArray(l,d)+1;"xaxis"==this.name||"x2axis"==this.name?c.data[u][0]=f:c.data[u][1]=f}if(1<this.groups&&!this._grouped){for(r=d.length,n=0,a=_=parseInt(r/this.groups,10);a<r;a+=_+1)d[a]=" ";this._grouped=!0}h=p+.5,null==this.numberTicks&&(this.numberTicks=2*p+1);o=h-.5;this.min=.5,this.max=h;var m=0,x=parseInt(3+t/10,10),_=parseInt(p/x,10);null==this.tickInterval&&(this.tickInterval=o/(this.numberTicks-1));for(a=0;a<this.numberTicks;a++){e=this.min+a*this.tickInterval;var v=new this.tickRenderer(this.tickOptions);a/2==parseInt(a/2,10)?(v.showLabel=!1,v.showMark=!0):(0<_&&m<_?(v.showLabel=!1,m+=1):(v.showLabel=!0,m=0),v.label=v.formatter(v.formatString,d[(a-1)/2]),v.showMark=!1,v.showGridline=!1),v.setTick(e,this.name),this._ticks.push(v)}}},k.jqplot.CategoryAxisRenderer.prototype.draw=function(t,e){if(this.show){if(this.renderer.createTicks.call(this),this._elem&&this._elem.emptyForce(),this._elem=this._elem||k('<div class="jqplot-axis jqplot-'+this.name+'" style="position:absolute;"></div>'),"xaxis"==this.name||"x2axis"==this.name?this._elem.width(this._plotDimensions.width):this._elem.height(this._plotDimensions.height),this.labelOptions.axis=this.name,this._label=new this.labelRenderer(this.labelOptions),this._label.show)(n=this._label.draw(t,e)).appendTo(this._elem);for(var i=this._ticks,s=0;s<i.length;s++){var r=i[s];if(r.showLabel&&(!r.isMinorTick||this.showMinorTicks))(n=r.draw(t,e)).appendTo(this._elem)}this._groupLabels=[];for(s=0;s<this.groupLabels.length;s++){var n;(n=k('<div style="position:absolute;" class="jqplot-'+this.name+'-groupLabel"></div>')).html(this.groupLabels[s]),this._groupLabels.push(n),n.appendTo(this._elem)}}return this._elem},k.jqplot.CategoryAxisRenderer.prototype.set=function(){var t,e=0,i=0,s=0,r=null!=this._label&&this._label.show;if(this.show){for(var n=this._ticks,a=0;a<n.length;a++){var o=n[a];!o.showLabel||o.isMinorTick&&!this.showMinorTicks||e<(t="xaxis"==this.name||"x2axis"==this.name?o._elem.outerHeight(!0):o._elem.outerWidth(!0))&&(e=t)}var h=0;for(a=0;a<this._groupLabels.length;a++){var l=this._groupLabels[a];h<(t="xaxis"==this.name||"x2axis"==this.name?l.outerHeight(!0):l.outerWidth(!0))&&(h=t)}r&&(i=this._label._elem.outerWidth(!0),s=this._label._elem.outerHeight(!0)),"xaxis"==this.name?(e+=h+s,this._elem.css({height:e+"px",left:"0px",bottom:"0px"})):"x2axis"==this.name?(e+=h+s,this._elem.css({height:e+"px",left:"0px",top:"0px"})):("yaxis"==this.name?(e+=h+i,this._elem.css({width:e+"px",left:"0px",top:"0px"})):(e+=h+i,this._elem.css({width:e+"px",right:"0px",top:"0px"})),r&&this._label.constructor==k.jqplot.AxisLabelRenderer&&this._label._elem.css("width",i+"px"))}},k.jqplot.CategoryAxisRenderer.prototype.pack=function(t,e){var i,s=this._ticks,r=this.max,n=this.min,a=e.max,o=e.min,h=null!=this._label&&this._label.show;for(var l in t)this._elem.css(l,t[l]);this._offsets=e;var d=a-o,p=r-n;if(this.reverse?(this.u2p=function(t){return o+(r-t)*d/p},this.p2u=function(t){return n+(t-o)*p/d},"xaxis"==this.name||"x2axis"==this.name?(this.series_u2p=function(t){return(r-t)*d/p},this.series_p2u=function(t){return t*p/d+r}):(this.series_u2p=function(t){return(n-t)*d/p},this.series_p2u=function(t){return t*p/d+n})):(this.u2p=function(t){return(t-n)*d/p+o},this.p2u=function(t){return(t-o)*p/d+n},"xaxis"==this.name||"x2axis"==this.name?(this.series_u2p=function(t){return(t-n)*d/p},this.series_p2u=function(t){return t*p/d+n}):(this.series_u2p=function(t){return(t-r)*d/p},this.series_p2u=function(t){return t*p/d+r})),this.show)if("xaxis"==this.name||"x2axis"==this.name){for(i=0;i<s.length;i++){if((y=s[i]).show&&y.showLabel){if(y.constructor==k.jqplot.CanvasAxisTickRenderer&&y.angle){var g="xaxis"==this.name?1:-1;switch(y.labelPosition){case"auto":w=g*y.angle<0?-y.getWidth()+y._textRenderer.height*Math.sin(-y._textRenderer.angle)/2:-y._textRenderer.height*Math.sin(y._textRenderer.angle)/2;break;case"end":w=-y.getWidth()+y._textRenderer.height*Math.sin(-y._textRenderer.angle)/2;break;case"start":w=-y._textRenderer.height*Math.sin(y._textRenderer.angle)/2;break;case"middle":w=-y.getWidth()/2+y._textRenderer.height*Math.sin(-y._textRenderer.angle)/2;break;default:w=-y.getWidth()/2+y._textRenderer.height*Math.sin(-y._textRenderer.angle)/2}}else w=-y.getWidth()/2;var c=this.u2p(y.value)+w+"px";y._elem.css("left",c),y.pack()}}var u=["bottom",0];if(h){var f=this._label._elem.outerWidth(!0);this._label._elem.css("left",o+d/2-f/2+"px"),u="xaxis"==this.name?(this._label._elem.css("bottom","0px"),["bottom",this._label._elem.outerHeight(!0)]):(this._label._elem.css("top","0px"),["top",this._label._elem.outerHeight(!0)]),this._label.pack()}var m=parseInt(this._ticks.length/this.groups,10)+1;for(i=0;i<this._groupLabels.length;i++){for(var x=0,_=0,v=i*m;v<(i+1)*m;v++)if(!(v>=this._ticks.length-1)&&this._ticks[v]._elem&&" "!=this._ticks[v].label){x+=(l=(y=this._ticks[v]._elem).position()).left+y.outerWidth(!0)/2,_++}x/=_,this._groupLabels[i].css({left:x-this._groupLabels[i].outerWidth(!0)/2}),this._groupLabels[i].css(u[0],u[1])}}else{for(i=0;i<s.length;i++){if((y=s[i]).show&&y.showLabel){var w;if(y.constructor==k.jqplot.CanvasAxisTickRenderer&&y.angle){g="yaxis"==this.name?1:-1;switch(y.labelPosition){case"auto":case"end":w=g*y.angle<0?-y._textRenderer.height*Math.cos(-y._textRenderer.angle)/2:-y.getHeight()+y._textRenderer.height*Math.cos(y._textRenderer.angle)/2;break;case"start":w=0<y.angle?-y._textRenderer.height*Math.cos(-y._textRenderer.angle)/2:-y.getHeight()+y._textRenderer.height*Math.cos(y._textRenderer.angle)/2;break;case"middle":w=-y.getHeight()/2;break;default:w=-y.getHeight()/2}}else w=-y.getHeight()/2;c=this.u2p(y.value)+w+"px";y._elem.css("top",c),y.pack()}}u=["left",0];if(h){var b=this._label._elem.outerHeight(!0);this._label._elem.css("top",a-d/2-b/2+"px"),u="yaxis"==this.name?(this._label._elem.css("left","0px"),["left",this._label._elem.outerWidth(!0)]):(this._label._elem.css("right","0px"),["right",this._label._elem.outerWidth(!0)]),this._label.pack()}m=parseInt(this._ticks.length/this.groups,10)+1;for(i=0;i<this._groupLabels.length;i++){for(x=0,_=0,v=i*m;v<(i+1)*m;v++)if(!(v>=this._ticks.length-1)&&this._ticks[v]._elem&&" "!=this._ticks[v].label){var y;x+=(l=(y=this._ticks[v]._elem).position()).top+y.outerHeight()/2,_++}x/=_,this._groupLabels[i].css({top:x-this._groupLabels[i].outerHeight()/2}),this._groupLabels[i].css(u[0],u[1])}}}}(jQuery),function(C){function o(t,e,i){for(var s=1;s<this.series.length;s++)if(!this.series[s]._previousSeries.length)for(var r=0;r<s;r++)this.series[s].renderer.constructor==C.jqplot.DonutRenderer&&this.series[r].renderer.constructor==C.jqplot.DonutRenderer&&this.series[s]._previousSeries.push(this.series[r]);for(s=0;s<this.series.length;s++)this.series[s].renderer.constructor==C.jqplot.DonutRenderer&&(this.series[s]._numberSeries=this.series.length,this.series[s].highlightMouseOver&&(this.series[s].highlightMouseDown=!1))}function h(t){for(var e=0;e<this.series.length;e++)this.series[e].seriesColors=this.seriesColors,this.series[e].colorGenerator=C.jqplot.colorGenerator}function l(t,e,i){var s=t.series[e],r=t.plugins.donutRenderer.highlightCanvas;r._ctx.clearRect(0,0,r._ctx.canvas.width,r._ctx.canvas.height),s._highlightedPoint=i,t.plugins.donutRenderer.highlightedSeriesIndex=e,s.renderer.drawSlice.call(s,r._ctx,s._sliceAngles[i][0],s._sliceAngles[i][1],s.highlightColors[i],!1)}function d(t){var e=t.plugins.donutRenderer.highlightCanvas;e._ctx.clearRect(0,0,e._ctx.canvas.width,e._ctx.canvas.height);for(var i=0;i<t.series.length;i++)t.series[i]._highlightedPoint=null;t.plugins.donutRenderer.highlightedSeriesIndex=null,t.target.trigger("jqplotDataUnhighlight")}function p(t,e,i,s,r){if(s){var n=[s.seriesIndex,s.pointIndex,s.data],a=jQuery.Event("jqplotDataMouseOver");if(a.pageX=t.pageX,a.pageY=t.pageY,r.target.trigger(a,n),r.series[n[0]].highlightMouseOver&&(n[0]!=r.plugins.donutRenderer.highlightedSeriesIndex||n[1]!=r.series[n[0]]._highlightedPoint)){var o=jQuery.Event("jqplotDataHighlight");o.which=t.which,o.pageX=t.pageX,o.pageY=t.pageY,r.target.trigger(o,n),l(r,n[0],n[1])}}else null==s&&d(r)}function g(t,e,i,s,r){if(s){var n=[s.seriesIndex,s.pointIndex,s.data];if(r.series[n[0]].highlightMouseDown&&(n[0]!=r.plugins.donutRenderer.highlightedSeriesIndex||n[1]!=r.series[n[0]]._highlightedPoint)){var a=jQuery.Event("jqplotDataHighlight");a.which=t.which,a.pageX=t.pageX,a.pageY=t.pageY,r.target.trigger(a,n),l(r,n[0],n[1])}}else null==s&&d(r)}function c(t,e,i,s,r){var n=r.plugins.donutRenderer.highlightedSeriesIndex;null!=n&&r.series[n].highlightMouseDown&&d(r)}function u(t,e,i,s,r){if(s){var n=[s.seriesIndex,s.pointIndex,s.data],a=jQuery.Event("jqplotDataClick");a.which=t.which,a.pageX=t.pageX,a.pageY=t.pageY,r.target.trigger(a,n)}}function f(t,e,i,s,r){if(s){var n=[s.seriesIndex,s.pointIndex,s.data],a=r.plugins.donutRenderer.highlightedSeriesIndex;null!=a&&r.series[a].highlightMouseDown&&d(r);var o=jQuery.Event("jqplotDataRightClick");o.which=t.which,o.pageX=t.pageX,o.pageY=t.pageY,r.target.trigger(o,n)}}function m(){this.plugins.donutRenderer&&this.plugins.donutRenderer.highlightCanvas&&(this.plugins.donutRenderer.highlightCanvas.resetCanvas(),this.plugins.donutRenderer.highlightCanvas=null),this.plugins.donutRenderer={highlightedSeriesIndex:null},this.plugins.donutRenderer.highlightCanvas=new C.jqplot.GenericCanvas;var t=C(this.targetId+" .jqplot-data-label");t.length?C(t[0]).before(this.plugins.donutRenderer.highlightCanvas.createElement(this._gridPadding,"jqplot-donutRenderer-highlight-canvas",this._plotDimensions,this)):this.eventCanvas._elem.before(this.plugins.donutRenderer.highlightCanvas.createElement(this._gridPadding,"jqplot-donutRenderer-highlight-canvas",this._plotDimensions,this)),this.plugins.donutRenderer.highlightCanvas.setContext(),this.eventCanvas._elem.bind("mouseleave",{plot:this},function(t){d(t.data.plot)})}C.jqplot.DonutRenderer=function(){C.jqplot.LineRenderer.call(this)},C.jqplot.DonutRenderer.prototype=new C.jqplot.LineRenderer,C.jqplot.DonutRenderer.prototype.constructor=C.jqplot.DonutRenderer,C.jqplot.DonutRenderer.prototype.init=function(t,e){if(this.diameter=null,this.innerDiameter=null,this.thickness=null,this.padding=20,this.sliceMargin=0,this.ringMargin=null,this.fill=!0,this.shadowOffset=2,this.shadowAlpha=.07,this.shadowDepth=5,this.highlightMouseOver=!0,this.highlightMouseDown=!1,this.highlightColors=[],this.dataLabels="percent",this.showDataLabels=!1,this.totalLabel=!1,this.dataLabelFormatString=null,this.dataLabelThreshold=3,this.dataLabelPositionFactor=.4,this.dataLabelNudge=0,this.startAngle=0,this.tickRenderer=C.jqplot.DonutTickRenderer,this._drawData=!0,this._type="donut",t.highlightMouseDown&&null==t.highlightMouseOver&&(t.highlightMouseOver=!1),C.extend(!0,this,t),null!=this.diameter&&(this.diameter=this.diameter-this.sliceMargin),this._diameter=null,this._innerDiameter=null,this._radius=null,this._innerRadius=null,this._thickness=null,this._previousSeries=[],this._numberSeries=1,this._sliceAngles=[],this._highlightedPoint=null,0==this.highlightColors.length)for(var i=0;i<this.seriesColors.length;i++){for(var s=C.jqplot.getColorComponents(this.seriesColors[i]),r=[s[0],s[1],s[2]],n=r[0]+r[1]+r[2],a=0;a<3;a++)r[a]=570<n?.8*r[a]:r[a]+.3*(255-r[a]),r[a]=parseInt(r[a],10);this.highlightColors.push("rgb("+r[0]+","+r[1]+","+r[2]+")")}e.postParseOptionsHooks.addOnce(h),e.postInitHooks.addOnce(o),e.eventListenerHooks.addOnce("jqplotMouseMove",p),e.eventListenerHooks.addOnce("jqplotMouseDown",g),e.eventListenerHooks.addOnce("jqplotMouseUp",c),e.eventListenerHooks.addOnce("jqplotClick",u),e.eventListenerHooks.addOnce("jqplotRightClick",f),e.postDrawHooks.addOnce(m)},C.jqplot.DonutRenderer.prototype.setGridData=function(t){var e=[],i=[],s=(this.startAngle,Math.PI,0);this._drawData=!1;for(var r=0;r<this.data.length;r++)0!=this.data[r][1]&&(this._drawData=!0),e.push(this.data[r][1]),i.push([this.data[r][0]]),0<r&&(e[r]+=e[r-1]),s+=this.data[r][1];var n=2*Math.PI/e[e.length-1];for(r=0;r<e.length;r++)i[r][1]=e[r]*n,i[r][2]=this.data[r][1]/s;this.gridData=i},C.jqplot.DonutRenderer.prototype.makeGridData=function(t,e){var i=[],s=[],r=0;this.startAngle,Math.PI,this._drawData=!1;for(var n=0;n<t.length;n++)0!=this.data[n][1]&&(this._drawData=!0),i.push(t[n][1]),s.push([t[n][0]]),0<n&&(i[n]+=i[n-1]),r+=t[n][1];var a=2*Math.PI/i[i.length-1];for(n=0;n<i.length;n++)s[n][1]=i[n]*a,s[n][2]=t[n][1]/r;return this._totalAmount=r,s},C.jqplot.DonutRenderer.prototype.drawSlice=function(t,e,i,s,r){function n(){i>6.282+this.startAngle&&((i=6.282+this.startAngle)<e&&(e=6.281+this.startAngle)),i<=e||(t.beginPath(),t.fillStyle=s,t.strokeStyle=s,t.arc(0,0,a,e,i,!1),t.lineTo(o*Math.cos(i),o*Math.sin(i)),t.arc(0,0,o,i,e,!0),t.closePath(),h?t.fill():t.stroke())}var a=this._diameter/2,o=a-this._thickness,h=this.fill;if(t.save(),t.translate(this._center[0],this._center[1]),r)for(var l=0;l<this.shadowDepth;l++)t.save(),t.translate(this.shadowOffset*Math.cos(this.shadowAngle/180*Math.PI),this.shadowOffset*Math.sin(this.shadowAngle/180*Math.PI)),n();else n();if(r)for(l=0;l<this.shadowDepth;l++)t.restore();t.restore()},C.jqplot.DonutRenderer.prototype.draw=function(t,e,i,s){var r=null!=i?i:{},n=0,a=0,o=1;if(i.legendInfo&&"insideGrid"==i.legendInfo.placement){var h=i.legendInfo;switch(h.location){case"nw":case"w":case"sw":n=h.width+h.xoffset;break;case"ne":case"e":case"se":n=h.width+h.xoffset,o=-1;break;case"n":a=h.height+h.yoffset;break;case"s":a=h.height+h.yoffset,o=-1}}for(var l=(null!=r.shadow?r.shadow:this.shadow,null!=r.showLine?r.showLine:this.showLine,null!=r.fill?r.fill:this.fill,parseInt(t.canvas.style.width)),d=parseInt(t.canvas.style.height),p=l-n-2*this.padding,g=d-a-2*this.padding,c=Math.min(p,g),u=c,f=null==this.ringMargin?2*this.sliceMargin:this.ringMargin,m=0;m<this._previousSeries.length;m++)u-=2*this._previousSeries[m]._thickness+2*f;if(this._diameter=this.diameter||u,null!=this.innerDiameter){var x=1<this._numberSeries&&0<this.index?this._previousSeries[0]._diameter:this._diameter;this._thickness=this.thickness||(x-this.innerDiameter-2*f*this._numberSeries)/this._numberSeries/2}else this._thickness=this.thickness||c/2/(this._numberSeries+1)*.85;if(this._diameter<6)C.jqplot.log("Diameter of donut too small, not rendering.");else{this._radius=this._diameter/2,this._innerRadius=this._radius-this._thickness;var _=this.startAngle/180*Math.PI;if(this._center=[(l-o*n)/2+o*n,(d-o*a)/2+o*a],this.shadow){var v="rgba(0,0,0,"+this.shadowAlpha+")";for(m=0;m<e.length;m++){var w=0==m?_:e[m-1][1]+_;w+=this.sliceMargin/180*Math.PI,this.renderer.drawSlice.call(this,t,w,e[m][1]+_,v,!0)}}for(m=0;m<e.length;m++){w=0==m?_:e[m-1][1]+_;w+=this.sliceMargin/180*Math.PI;var b=e[m][1]+_;if(this._sliceAngles.push([w,b]),this.renderer.drawSlice.call(this,t,w,b,this.seriesColors[m],!1),this.showDataLabels&&100*e[m][2]>=this.dataLabelThreshold){var y,k,j=(w+b)/2;"label"==this.dataLabels?(y=this.dataLabelFormatString||"%s",k=C.jqplot.sprintf(y,e[m][0])):"value"==this.dataLabels?(y=this.dataLabelFormatString||"%d",k=C.jqplot.sprintf(y,this.data[m][1])):"percent"==this.dataLabels?(y=this.dataLabelFormatString||"%d%%",k=C.jqplot.sprintf(y,100*e[m][2])):this.dataLabels.constructor==Array&&(y=this.dataLabelFormatString||"%s",k=C.jqplot.sprintf(y,this.dataLabels[m]));var q=this._innerRadius+this._thickness*this.dataLabelPositionFactor+this.sliceMargin+this.dataLabelNudge,S=this._center[0]+Math.cos(j)*q+this.canvas._offsets.left,M=this._center[1]+Math.sin(j)*q+this.canvas._offsets.top,D=C('<span class="jqplot-donut-series jqplot-data-label" style="position:absolute;">'+k+"</span>").insertBefore(s.eventCanvas._elem);S-=D.width()/2,M-=D.height()/2,S=Math.round(S),M=Math.round(M),D.css({left:S,top:M})}}if(this.totalLabel)C('<div class="jqplot-data-label" style="position:absolute">'+this._totalAmount+"</div>").insertAfter(s.eventCanvas._elem).css({left:this._center[0],top:this._center[1]})}},C.jqplot.DonutAxisRenderer=function(){C.jqplot.LinearAxisRenderer.call(this)},C.jqplot.DonutAxisRenderer.prototype=new C.jqplot.LinearAxisRenderer,C.jqplot.DonutAxisRenderer.prototype.constructor=C.jqplot.DonutAxisRenderer,C.jqplot.DonutAxisRenderer.prototype.init=function(t){this.tickRenderer=C.jqplot.DonutTickRenderer,C.extend(!0,this,t),this._dataBounds={min:0,max:100},this.min=0,this.max=100,this.showTicks=!1,this.ticks=[],this.showMark=!1,this.show=!1},C.jqplot.DonutLegendRenderer=function(){C.jqplot.TableLegendRenderer.call(this)},C.jqplot.DonutLegendRenderer.prototype=new C.jqplot.TableLegendRenderer,C.jqplot.DonutLegendRenderer.prototype.constructor=C.jqplot.DonutLegendRenderer,C.jqplot.DonutLegendRenderer.prototype.init=function(t){this.numberRows=null,this.numberColumns=null,C.extend(!0,this,t)},C.jqplot.DonutLegendRenderer.prototype.draw=function(){if(this.show){var t=this._series,e="position:absolute;";e+=this.background?"background:"+this.background+";":"",e+=this.border?"border:"+this.border+";":"",e+=this.fontSize?"font-size:"+this.fontSize+";":"",e+=this.fontFamily?"font-family:"+this.fontFamily+";":"",e+=this.textColor?"color:"+this.textColor+";":"",e+=null!=this.marginTop?"margin-top:"+this.marginTop+";":"",e+=null!=this.marginBottom?"margin-bottom:"+this.marginBottom+";":"",e+=null!=this.marginLeft?"margin-left:"+this.marginLeft+";":"",e+=null!=this.marginRight?"margin-right:"+this.marginRight+";":"",this._elem=C('<table class="jqplot-table-legend" style="'+e+'"></table>');var i,s,r=t[0],n=new C.jqplot.ColorGenerator(r.seriesColors);if(r.show){var a=r.data;this.numberRows?(i=this.numberRows,s=this.numberColumns?this.numberColumns:Math.ceil(a.length/i)):this.numberColumns?(s=this.numberColumns,i=Math.ceil(a.length/this.numberColumns)):(i=a.length,s=1);var o,h,l,d,p,g,c,u,f=0;for(o=0;o<i;o++)for(l=C('<tr class="jqplot-table-legend"></tr>').appendTo(this._elem),h=0;h<s;h++)f<a.length&&(g=this.labels[f]||a[f][0].toString(),u=n.next(),c=0<o?this.rowSpacing:"0",d=C('<td class="jqplot-table-legend" style="text-align:center;padding-top:'+c+';"><div><div class="jqplot-table-legend-swatch" style="border-color:'+u+';"></div></div></td>'),p=C('<td class="jqplot-table-legend" style="padding-top:'+c+';"></td>'),this.escapeHtml?p.text(g):p.html(g),d.appendTo(l),p.appendTo(l),!0),f++}}return this._elem},C.jqplot.preInitHooks.push(function(t,e,i){(i=i||{}).axesDefaults=i.axesDefaults||{},i.legend=i.legend||{},i.seriesDefaults=i.seriesDefaults||{};var s=!1;if(i.seriesDefaults.renderer==C.jqplot.DonutRenderer)s=!0;else if(i.series)for(var r=0;r<i.series.length;r++)i.series[r].renderer==C.jqplot.DonutRenderer&&(s=!0);s&&(i.axesDefaults.renderer=C.jqplot.DonutAxisRenderer,i.legend.renderer=C.jqplot.DonutLegendRenderer,i.legend.preDraw=!0,i.seriesDefaults.pointLabels={show:!1})}),C.jqplot.DonutTickRenderer=function(){C.jqplot.AxisTickRenderer.call(this)},C.jqplot.DonutTickRenderer.prototype=new C.jqplot.AxisTickRenderer,C.jqplot.DonutTickRenderer.prototype.constructor=C.jqplot.DonutTickRenderer}(jQuery),function(w){w.jqplot.EnhancedLegendRenderer=function(){w.jqplot.TableLegendRenderer.call(this)},w.jqplot.EnhancedLegendRenderer.prototype=new w.jqplot.TableLegendRenderer,w.jqplot.EnhancedLegendRenderer.prototype.constructor=w.jqplot.EnhancedLegendRenderer,w.jqplot.EnhancedLegendRenderer.prototype.init=function(t){this.numberRows=null,this.numberColumns=null,this.seriesToggle="normal",this.seriesToggleReplot=!1,this.disableIEFading=!0,w.extend(!0,this,t),this.seriesToggle&&w.jqplot.postDrawHooks.push(e)},w.jqplot.EnhancedLegendRenderer.prototype.draw=function(t,e){if(this.show){var i,s=this._series,r="position:absolute;";r+=this.background?"background:"+this.background+";":"",r+=this.border?"border:"+this.border+";":"",r+=this.fontSize?"font-size:"+this.fontSize+";":"",r+=this.fontFamily?"font-family:"+this.fontFamily+";":"",r+=this.textColor?"color:"+this.textColor+";":"",r+=null!=this.marginTop?"margin-top:"+this.marginTop+";":"",r+=null!=this.marginBottom?"margin-bottom:"+this.marginBottom+";":"",r+=null!=this.marginLeft?"margin-left:"+this.marginLeft+";":"",r+=null!=this.marginRight?"margin-right:"+this.marginRight+";":"",this._elem=w('<table class="jqplot-table-legend" style="'+r+'"></table>'),this.seriesToggle&&this._elem.css("z-index","3");var n,a,o=!1;this.numberRows?(n=this.numberRows,a=this.numberColumns?this.numberColumns:Math.ceil(s.length/n)):this.numberColumns?(a=this.numberColumns,n=Math.ceil(s.length/this.numberColumns)):(n=s.length,a=1);var h,l,d,p,g,c,u,f,m,x=0;for(h=s.length-1;0<=h;h--)(1==a&&s[h]._stack||s[h].renderer.constructor==w.jqplot.BezierCurveRenderer)&&(o=!0);for(h=0;h<n;h++){for((d=w(document.createElement("tr"))).addClass("jqplot-table-legend"),o?d.prependTo(this._elem):d.appendTo(this._elem),l=0;l<a;l++){if(x<s.length&&(s[x].show||s[x].showLabel)&&(i=s[x],c=this.labels[x]||i.label.toString())){var _,v=i.color;if(u=(o?h!=n-1:0<h)?this.rowSpacing:"0",(p=w(document.createElement("td"))).addClass("jqplot-table-legend jqplot-table-legend-swatch"),p.css({textAlign:"center",paddingTop:u}),(f=w(document.createElement("div"))).addClass("jqplot-table-legend-swatch-outline"),(m=w(document.createElement("div"))).addClass("jqplot-table-legend-swatch"),m.css({backgroundColor:v,borderColor:v}),p.append(f.append(m)),(g=w(document.createElement("td"))).addClass("jqplot-table-legend jqplot-table-legend-label"),g.css("paddingTop",u),this.escapeHtml?g.text(c):g.html(c),o?(this.showLabels&&g.prependTo(d),this.showSwatches&&p.prependTo(d)):(this.showSwatches&&p.appendTo(d),this.showLabels&&g.appendTo(d)),this.seriesToggle)"string"!=typeof this.seriesToggle&&"number"!=typeof this.seriesToggle||w.jqplot.use_excanvas&&this.disableIEFading||(_=this.seriesToggle),this.showSwatches&&(p.bind("click",{series:i,speed:_,plot:e,replot:this.seriesToggleReplot},b),p.addClass("jqplot-seriesToggle")),this.showLabels&&(g.bind("click",{series:i,speed:_,plot:e,replot:this.seriesToggleReplot},b),g.addClass("jqplot-seriesToggle")),!i.show&&i.showLabel&&(p.addClass("jqplot-series-hidden"),g.addClass("jqplot-series-hidden"));!0}x++}p=g=f=m=null}}return this._elem};var b=function(t){var e=t.data,i=e.series,s=e.replot,r=e.plot,n=e.speed,a=i.index,o=!1;!i.canvas._elem.is(":hidden")&&i.show||(o=!0);i.toggleDisplay(t,function(){if(s){var t={};if(w.isPlainObject(s)&&w.extend(!0,t,s),r.replot(t),o&&n)(e=r.series[a]).shadowCanvas._elem&&e.shadowCanvas._elem.hide().fadeIn(n),e.canvas._elem.hide().fadeIn(n),e.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+e.index).hide().fadeIn(n)}else{var e;(e=r.series[a]).canvas._elem.is(":hidden")||!e.show?(void 0!==r.options.legend.showSwatches&&!0!==r.options.legend.showSwatches||r.legend._elem.find("td").eq(2*a).addClass("jqplot-series-hidden"),void 0!==r.options.legend.showLabels&&!0!==r.options.legend.showLabels||r.legend._elem.find("td").eq(2*a+1).addClass("jqplot-series-hidden")):(void 0!==r.options.legend.showSwatches&&!0!==r.options.legend.showSwatches||r.legend._elem.find("td").eq(2*a).removeClass("jqplot-series-hidden"),void 0!==r.options.legend.showLabels&&!0!==r.options.legend.showLabels||r.legend._elem.find("td").eq(2*a+1).removeClass("jqplot-series-hidden"))}})},e=function(){if(this.legend.renderer.constructor==w.jqplot.EnhancedLegendRenderer&&this.legend.seriesToggle){var t=this.legend._elem.detach();this.eventCanvas._elem.after(t)}}}(jQuery),function(y){function d(t,e){var i=t.plugins.highlighter,s=t.series[e.seriesIndex],r=s.markerRenderer,n=i.markerRenderer;n.style=r.style,n.lineWidth=r.lineWidth+i.lineWidthAdjust,n.size=r.size+i.sizeAdjust;var a=y.jqplot.getColorComponents(r.color),o=[a[0],a[1],a[2]],h=.6<=a[3]?.6*a[3]:a[3]*(2-a[3]);n.color="rgba("+o[0]+","+o[1]+","+o[2]+","+h+")",n.init(),n.draw(s.gridData[e.pointIndex][0],s.gridData[e.pointIndex][1],i.highlightCanvas._ctx)}function p(t,e,i){var s=t.plugins.highlighter,r=s._tooltipElem,n=e.highlighter||{},a=y.extend(!0,{},s,n);if(a.useAxesFormatters){for(var o=e._xaxis._ticks[0].formatter,h=e._yaxis._ticks[0].formatter,l=e._xaxis._ticks[0].formatString,d=e._yaxis._ticks[0].formatString,p=o(l,i.data[0]),g=[],c=1;c<a.yvalues+1;c++)g.push(h(d,i.data[c]));if("string"==typeof a.formatString)switch(a.tooltipAxes){case"both":case"xy":g.unshift(p),g.unshift(a.formatString),u=y.jqplot.sprintf.apply(y.jqplot.sprintf,g);break;case"yx":g.push(p),g.unshift(a.formatString),u=y.jqplot.sprintf.apply(y.jqplot.sprintf,g);break;case"x":u=y.jqplot.sprintf.apply(y.jqplot.sprintf,[a.formatString,p]);break;case"y":g.unshift(a.formatString),u=y.jqplot.sprintf.apply(y.jqplot.sprintf,g);break;default:g.unshift(p),g.unshift(a.formatString),u=y.jqplot.sprintf.apply(y.jqplot.sprintf,g)}else switch(a.tooltipAxes){case"both":case"xy":u=p;for(c=0;c<g.length;c++)u+=a.tooltipSeparator+g[c];break;case"yx":u="";for(c=0;c<g.length;c++)u+=g[c]+a.tooltipSeparator;u+=p;break;case"x":u=p;break;case"y":u=g.join(a.tooltipSeparator);break;default:u=p;for(c=0;c<g.length;c++)u+=a.tooltipSeparator+g[c]}}else{var u;"string"==typeof a.formatString?u=y.jqplot.sprintf.apply(y.jqplot.sprintf,[a.formatString].concat(i.data)):"both"==a.tooltipAxes||"xy"==a.tooltipAxes?u=y.jqplot.sprintf(a.tooltipFormatString,i.data[0])+a.tooltipSeparator+y.jqplot.sprintf(a.tooltipFormatString,i.data[1]):"yx"==a.tooltipAxes?u=y.jqplot.sprintf(a.tooltipFormatString,i.data[1])+a.tooltipSeparator+y.jqplot.sprintf(a.tooltipFormatString,i.data[0]):"x"==a.tooltipAxes?u=y.jqplot.sprintf(a.tooltipFormatString,i.data[0]):"y"==a.tooltipAxes&&(u=y.jqplot.sprintf(a.tooltipFormatString,i.data[1]))}y.isFunction(a.tooltipContentEditor)&&(u=a.tooltipContentEditor(u,i.seriesIndex,i.pointIndex,t)),r.html(u);var f=i.gridData[0],m=i.gridData[1],x=0,_=.707;1==e.markerRenderer.show&&(x=(e.markerRenderer.size+a.sizeAdjust)/2);var v=k;switch(e.fillToZero&&e.fill&&i.data[1]<0&&(v=q),v[j[a.tooltipLocation]]){case"nw":var w=f+t._gridPadding.left-r.outerWidth(!0)-a.tooltipOffset-_*x,b=m+t._gridPadding.top-a.tooltipOffset-r.outerHeight(!0)-_*x;break;case"n":w=f+t._gridPadding.left-r.outerWidth(!0)/2,b=m+t._gridPadding.top-a.tooltipOffset-r.outerHeight(!0)-x;break;case"ne":w=f+t._gridPadding.left+a.tooltipOffset+_*x,b=m+t._gridPadding.top-a.tooltipOffset-r.outerHeight(!0)-_*x;break;case"e":w=f+t._gridPadding.left+a.tooltipOffset+x,b=m+t._gridPadding.top-r.outerHeight(!0)/2;break;case"se":w=f+t._gridPadding.left+a.tooltipOffset+_*x,b=m+t._gridPadding.top+a.tooltipOffset+_*x;break;case"s":w=f+t._gridPadding.left-r.outerWidth(!0)/2,b=m+t._gridPadding.top+a.tooltipOffset+x;break;case"sw":w=f+t._gridPadding.left-r.outerWidth(!0)-a.tooltipOffset-_*x,b=m+t._gridPadding.top+a.tooltipOffset+_*x;break;case"w":w=f+t._gridPadding.left-r.outerWidth(!0)-a.tooltipOffset-x,b=m+t._gridPadding.top-r.outerHeight(!0)/2;break;default:w=f+t._gridPadding.left-r.outerWidth(!0)-a.tooltipOffset-_*x,b=m+t._gridPadding.top-a.tooltipOffset-r.outerHeight(!0)-_*x}r.css("left",w),r.css("top",b),a.fadeTooltip?r.stop(!0,!0).fadeIn(a.tooltipFadeSpeed):r.show(),r=null}y.jqplot.eventListenerHooks.push(["jqplotMouseMove",function(t,e,i,s,r){var n=r.plugins.highlighter,a=r.plugins.cursor;if(n.show)if(null==s&&n.isHighlighting){var o=jQuery.Event("jqplotHighlighterUnhighlight");r.target.trigger(o),(l=n.highlightCanvas._ctx).clearRect(0,0,l.canvas.width,l.canvas.height),n.fadeTooltip?n._tooltipElem.fadeOut(n.tooltipFadeSpeed):n._tooltipElem.hide(),n.bringSeriesToFront&&r.restorePreviousSeriesOrder(),n.isHighlighting=!1,l=n.currentNeighbor=null}else if(null!=s&&r.series[s.seriesIndex].showHighlight&&!n.isHighlighting){(o=jQuery.Event("jqplotHighlighterHighlight")).which=t.which,o.pageX=t.pageX,o.pageY=t.pageY;var h=[s.seriesIndex,s.pointIndex,s.data,r];r.target.trigger(o,h),n.isHighlighting=!0,n.currentNeighbor=s,n.showMarker&&d(r,s),!r.series[s.seriesIndex].show||!n.showTooltip||a&&a._zoom.started||p(r,r.series[s.seriesIndex],s),n.bringSeriesToFront&&r.moveSeriesToFront(s.seriesIndex)}else if(null!=s&&n.isHighlighting&&n.currentNeighbor!=s&&r.series[s.seriesIndex].showHighlight){var l;(l=n.highlightCanvas._ctx).clearRect(0,0,l.canvas.width,l.canvas.height),n.isHighlighting=!0,n.currentNeighbor=s,n.showMarker&&d(r,s),!r.series[s.seriesIndex].show||!n.showTooltip||a&&a._zoom.started||p(r,r.series[s.seriesIndex],s),n.bringSeriesToFront&&r.moveSeriesToFront(s.seriesIndex)}}]),y.jqplot.Highlighter=function(t){this.show=y.jqplot.config.enablePlugins,this.markerRenderer=new y.jqplot.MarkerRenderer({shadow:!1}),this.showMarker=!0,this.lineWidthAdjust=2.5,this.sizeAdjust=5,this.showTooltip=!0,this.tooltipLocation="nw",this.fadeTooltip=!0,this.tooltipFadeSpeed="fast",this.tooltipOffset=2,this.tooltipAxes="both",this.tooltipSeparator=", ",this.tooltipContentEditor=null,this.useAxesFormatters=!0,this.tooltipFormatString="%.5P",this.formatString=null,this.yvalues=1,this.bringSeriesToFront=!1,this._tooltipElem,this.isHighlighting=!1,this.currentNeighbor=null,y.extend(!0,this,t)};var k=["nw","n","ne","e","se","s","sw","w"],j={nw:0,n:1,ne:2,e:3,se:4,s:5,sw:6,w:7},q=["se","s","sw","w","nw","n","ne","e"];y.jqplot.Highlighter.init=function(t,e,i){var s=i||{};this.plugins.highlighter=new y.jqplot.Highlighter(s.highlighter)},y.jqplot.Highlighter.parseOptions=function(t,e){this.showHighlight=!0},y.jqplot.Highlighter.postPlotDraw=function(){this.plugins.highlighter&&this.plugins.highlighter.highlightCanvas&&(this.plugins.highlighter.highlightCanvas.resetCanvas(),this.plugins.highlighter.highlightCanvas=null),this.plugins.highlighter&&this.plugins.highlighter._tooltipElem&&(this.plugins.highlighter._tooltipElem.emptyForce(),this.plugins.highlighter._tooltipElem=null),this.plugins.highlighter.highlightCanvas=new y.jqplot.GenericCanvas,this.eventCanvas._elem.before(this.plugins.highlighter.highlightCanvas.createElement(this._gridPadding,"jqplot-highlight-canvas",this._plotDimensions,this)),this.plugins.highlighter.highlightCanvas.setContext();var t=document.createElement("div");this.plugins.highlighter._tooltipElem=y(t),t=null,this.plugins.highlighter._tooltipElem.addClass("jqplot-highlighter-tooltip"),this.plugins.highlighter._tooltipElem.css({position:"absolute",display:"none"}),this.eventCanvas._elem.before(this.plugins.highlighter._tooltipElem)},y.jqplot.preInitHooks.push(y.jqplot.Highlighter.init),y.jqplot.preParseSeriesOptionsHooks.push(y.jqplot.Highlighter.parseOptions),y.jqplot.postDrawHooks.push(y.jqplot.Highlighter.postPlotDraw)}(jQuery);