(function(n){function i(t){n.jqplot.ElemContainer.call(this);this.name=t;this._series=[];this.show=!1;this.tickRenderer=n.jqplot.AxisTickRenderer;this.tickOptions={};this.labelRenderer=n.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=n.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 e(t){n.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=n.jqplot.TableLegendRenderer;this.rendererOptions={};this.preDraw=!1;this.marginTop=null;this.marginRight=null;this.marginBottom=null;this.marginLeft=null;this.escapeHtml=!1;this._series=[];n.extend(!0,this,t)}function h(t){n.jqplot.ElemContainer.call(this);this.text=t;this.show=!0;this.fontFamily;this.fontSize;this.textAlign;this.textColor;this.renderer=n.jqplot.DivTitleRenderer;this.rendererOptions={};this.escapeHtml=!1}function o(t){t=t||{};n.jqplot.ElemContainer.call(this);this.show=!0;this.xaxis="xaxis";this._xaxis;this.yaxis="yaxis";this._yaxis;this.gridBorderWidth=2;this.renderer=n.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=n.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 n.jqplot.GenericCanvas;this.shadowCanvas=new n.jqplot.GenericCanvas;this.plugins={};this._sumy=0;this._sumx=0;this._type=""}function c(){n.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=n.jqplot.CanvasGridRenderer;this.rendererOptions={};this._offsets={top:null,bottom:null,left:null,right:null}}function rt(){function s(n){for(var u,e,f,t,i,r=0;r<n.length;r++)for(e=[n[r].data,n[r]._stackData,n[r]._plotData,n[r]._prevPlotData],f=0;f<4;f++)if(u=!0,i=e[f],n[r]._stackAxis=="x"){for(t=0;t<i.length;t++)if(typeof i[t][1]!="number"){u=!1;break}u&&i.sort(function(n,t){return n[1]-t[1]})}else{for(t=0;t<i.length;t++)if(typeof i[t][0]!="number"){u=!1;break}u&&i.sort(function(n,t){return n[0]-t[0]})}}function t(n){for(var u=n.data.plot,r=u.eventCanvas._elem.offset(),f={x:n.pageX-r.left,y:n.pageY-r.top},e={xaxis:null,yaxis:null,x2axis:null,y2axis:null,y3axis:null,y4axis:null,y5axis:null,y6axis:null,y7axis:null,y8axis:null,y9axis:null,yMidAxis:null},s=["xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis","yMidAxis"],o=u.axes,t,i=11;i>0;i--)t=s[i-1],o[t].show&&(e[t]=o[t].series_p2u(f[t.charAt(0)]));return{offsets:r,gridPos:f,dataPos:e}}function f(t,i){for(var pt=i.series,l,r,h,e,f,s,w,b,it,rt,y,a,o,v,ot,ut,k,ft,et,ht,d,p,nt,u,c,tt=i.seriesStack.length-1;tt>=0;tt--){l=i.seriesStack[tt];r=pt[l];ot=r._highlightThreshold;switch(r.renderer.constructor){case n.jqplot.BarRenderer:for(e=t.x,f=t.y,u=0;u<r._barPoints.length;u++)if(v=r._barPoints[u],o=r.gridData[u],e>v[0][0]&&e<v[2][0]&&f>v[2][1]&&f<v[0][1])return{seriesIndex:r.index,pointIndex:u,gridData:o,data:r.data[u],points:r._barPoints[u]};break;case n.jqplot.PyramidRenderer:for(e=t.x,f=t.y,u=0;u<r._barPoints.length;u++)if(v=r._barPoints[u],o=r.gridData[u],e>v[0][0]+ot[0][0]&&e<v[2][0]+ot[2][0]&&f>v[2][1]&&f<v[0][1])return{seriesIndex:r.index,pointIndex:u,gridData:o,data:r.data[u],points:r._barPoints[u]};break;case n.jqplot.DonutRenderer:if(b=r.startAngle/180*Math.PI,e=t.x-r._center[0],f=t.y-r._center[1],h=Math.sqrt(Math.pow(e,2)+Math.pow(f,2)),e>0&&-f>=0?s=2*Math.PI-Math.atan(-f/e):e>0&&-f<0?s=-Math.atan(-f/e):e<0?s=Math.PI-Math.atan(-f/e):e==0&&-f>0?s=3*Math.PI/2:e==0&&-f<0?s=Math.PI/2:e==0&&f==0&&(s=0),b&&(s-=b,s<0?s+=2*Math.PI:s>2*Math.PI&&(s-=2*Math.PI)),w=r.sliceMargin/180*Math.PI,h<r._radius&&h>r._innerRadius)for(u=0;u<r.gridData.length;u++)if(it=u>0?r.gridData[u-1][1]+w:w,rt=r.gridData[u][1],s>it&&s<rt)return{seriesIndex:r.index,pointIndex:u,gridData:[t.x,t.y],data:r.data[u]};break;case n.jqplot.PieRenderer:if(b=r.startAngle/180*Math.PI,e=t.x-r._center[0],f=t.y-r._center[1],h=Math.sqrt(Math.pow(e,2)+Math.pow(f,2)),e>0&&-f>=0?s=2*Math.PI-Math.atan(-f/e):e>0&&-f<0?s=-Math.atan(-f/e):e<0?s=Math.PI-Math.atan(-f/e):e==0&&-f>0?s=3*Math.PI/2:e==0&&-f<0?s=Math.PI/2:e==0&&f==0&&(s=0),b&&(s-=b,s<0?s+=2*Math.PI:s>2*Math.PI&&(s-=2*Math.PI)),w=r.sliceMargin/180*Math.PI,h<r._radius)for(u=0;u<r.gridData.length;u++)if(it=u>0?r.gridData[u-1][1]+w:w,rt=r.gridData[u][1],s>it&&s<rt)return{seriesIndex:r.index,pointIndex:u,gridData:[t.x,t.y],data:r.data[u]};break;case n.jqplot.BubbleRenderer:if(e=t.x,f=t.y,ft=null,r.show){for(u=0;u<r.gridData.length;u++)o=r.gridData[u],a=Math.sqrt((e-o[0])*(e-o[0])+(f-o[1])*(f-o[1])),a<=o[2]&&(a<=y||y==null)&&(y=a,ft={seriesIndex:l,pointIndex:u,gridData:o,data:r.data[u]});if(ft!=null)return ft}break;case n.jqplot.FunnelRenderer:e=t.x;f=t.y;var g=r._vertices,ct=g[0],lt=g[g.length-1],at,vt,st;function yt(n,t,i){var r=(t[1]-i[1])/(t[0]-i[0]),f=t[1]-r*t[0],u=n+t[1];return[(u-f)/r,u]}for(at=yt(f,ct[0],lt[3]),vt=yt(f,ct[1],lt[2]),u=0;u<g.length;u++)if(st=g[u],f>=st[0][1]&&f<=st[3][1]&&e>=at[0]&&e<=vt[0])return{seriesIndex:r.index,pointIndex:u,gridData:null,data:r.data[u]};break;case n.jqplot.LineRenderer:if(e=t.x,f=t.y,h=r.renderer,r.show)if(!(r.fill||r.renderer.bands.show&&r.renderer.bands.fill)||i.plugins.highlighter&&i.plugins.highlighter.show){for(k=r.markerRenderer.size/2+r.neighborThreshold,ut=k>0?k:0,u=0;u<r.gridData.length;u++)if(o=r.gridData[u],h.constructor==n.jqplot.OHLCRenderer){if(h.candleStick){if(c=r._yaxis.series_u2p,e>=o[0]-h._bodyWidth/2&&e<=o[0]+h._bodyWidth/2&&f>=c(r.data[u][2])&&f<=c(r.data[u][3]))return{seriesIndex:l,pointIndex:u,gridData:o,data:r.data[u]}}else if(h.hlc){if(c=r._yaxis.series_u2p,e>=o[0]-h._tickLength&&e<=o[0]+h._tickLength&&f>=c(r.data[u][1])&&f<=c(r.data[u][2]))return{seriesIndex:l,pointIndex:u,gridData:o,data:r.data[u]}}else if(c=r._yaxis.series_u2p,e>=o[0]-h._tickLength&&e<=o[0]+h._tickLength&&f>=c(r.data[u][2])&&f<=c(r.data[u][3]))return{seriesIndex:l,pointIndex:u,gridData:o,data:r.data[u]}}else if(o[0]!=null&&o[1]!=null&&(a=Math.sqrt((e-o[0])*(e-o[0])+(f-o[1])*(f-o[1])),a<=ut&&(a<=y||y==null)))return y=a,{seriesIndex:l,pointIndex:u,gridData:o,data:r.data[u]}}else{if(et=!1,e>r._boundingBox[0][0]&&e<r._boundingBox[1][0]&&f>r._boundingBox[1][1]&&f<r._boundingBox[0][1])for(ht=r._areaPoints.length,u=ht-1,d=0;d<ht;d++)p=[r._areaPoints[d][0],r._areaPoints[d][1]],nt=[r._areaPoints[u][0],r._areaPoints[u][1]],(p[1]<f&&nt[1]>=f||nt[1]<f&&p[1]>=f)&&p[0]+(f-p[1])/(nt[1]-p[1])*(nt[0]-p[0])<e&&(et=!et),u=d;if(et)return{seriesIndex:l,pointIndex:null,gridData:r.gridData,data:r.data,points:r._areaPoints};break}break;default:if(e=t.x,f=t.y,h=r.renderer,r.show)for(k=r.markerRenderer.size/2+r.neighborThreshold,ut=k>0?k:0,u=0;u<r.gridData.length;u++)if(o=r.gridData[u],h.constructor==n.jqplot.OHLCRenderer){if(h.candleStick){if(c=r._yaxis.series_u2p,e>=o[0]-h._bodyWidth/2&&e<=o[0]+h._bodyWidth/2&&f>=c(r.data[u][2])&&f<=c(r.data[u][3]))return{seriesIndex:l,pointIndex:u,gridData:o,data:r.data[u]}}else if(h.hlc){if(c=r._yaxis.series_u2p,e>=o[0]-h._tickLength&&e<=o[0]+h._tickLength&&f>=c(r.data[u][1])&&f<=c(r.data[u][2]))return{seriesIndex:l,pointIndex:u,gridData:o,data:r.data[u]}}else if(c=r._yaxis.series_u2p,e>=o[0]-h._tickLength&&e<=o[0]+h._tickLength&&f>=c(r.data[u][2])&&f<=c(r.data[u][3]))return{seriesIndex:l,pointIndex:u,gridData:o,data:r.data[u]}}else if(a=Math.sqrt((e-o[0])*(e-o[0])+(f-o[1])*(f-o[1])),a<=ut&&(a<=y||y==null))return y=a,{seriesIndex:l,pointIndex:u,gridData:o,data:r.data[u]}}}return null}this.animate=!1;this.animateReplot=!1;this.axes={xaxis:new i("xaxis"),yaxis:new i("yaxis"),x2axis:new i("x2axis"),y2axis:new i("y2axis"),y3axis:new i("y3axis"),y4axis:new i("y4axis"),y5axis:new i("y5axis"),y6axis:new i("y6axis"),y7axis:new i("y7axis"),y8axis:new i("y8axis"),y9axis:new i("y9axis"),yMidAxis:new i("yMidAxis")};this.baseCanvas=new n.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 n.jqplot.GenericCanvas;this.fillBetween={series1:null,series2:null,color:null,baseSeries:0,fill:!0};this.fontFamily;this.fontSize;this.grid=new c;this.legend=new e;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=n.jqplot.config.defaultNegativeColors;this.options={};this.previousSeriesStack=[];this.plugins={};this.series=[];this.seriesStack=[];this.seriesColors=n.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 h;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=n.jqplot.config.addDomReference;this.preInitHooks=new n.jqplot.HooksManager;this.postInitHooks=new n.jqplot.HooksManager;this.preParseOptionsHooks=new n.jqplot.HooksManager;this.postParseOptionsHooks=new n.jqplot.HooksManager;this.preDrawHooks=new n.jqplot.HooksManager;this.postDrawHooks=new n.jqplot.HooksManager;this.preDrawSeriesHooks=new n.jqplot.HooksManager;this.postDrawSeriesHooks=new n.jqplot.HooksManager;this.preDrawLegendHooks=new n.jqplot.HooksManager;this.addLegendRowHooks=new n.jqplot.HooksManager;this.preSeriesInitHooks=new n.jqplot.HooksManager;this.postSeriesInitHooks=new n.jqplot.HooksManager;this.preParseSeriesOptionsHooks=new n.jqplot.HooksManager;this.postParseSeriesOptionsHooks=new n.jqplot.HooksManager;this.eventListenerHooks=new n.jqplot.EventListenerManager;this.preDrawSeriesShadowHooks=new n.jqplot.HooksManager;this.postDrawSeriesShadowHooks=new n.jqplot.HooksManager;this.colorGenerator=new n.jqplot.ColorGenerator;this.negativeColorGenerator=new n.jqplot.ColorGenerator;this.canvasManager=new n.jqplot.CanvasManager;this.themeEngine=new n.jqplot.ThemeEngine;this.init=function(t,r,f){var c,l,v,p,o,y,h,a,e;for(f=f||{},e=0;e<n.jqplot.preInitHooks.length;e++)n.jqplot.preInitHooks[e].call(this,t,r,f);for(e=0;e<this.preInitHooks.hooks.length;e++)this.preInitHooks.hooks[e].call(this,t,r,f);if(this.targetId="#"+t,this.target=n("#"+t),this._addDomReference&&this.target.data("jqplot",this),this.target.removeClass("jqplot-error"),!this.target.get(0))throw new Error("No plot target specified");for(this.target.css("position")=="static"&&this.target.css("position","relative"),this.target.hasClass("jqplot-target")||this.target.addClass("jqplot-target"),this.target.height()?this._height=c=this.target.height():(c=f&&f.height?parseInt(f.height,10):this.target.attr("data-height")?parseInt(this.target.attr("data-height"),10):parseInt(n.jqplot.config.defaultHeight,10),this._height=c,this.target.css("height",c+"px")),this.target.width()?this._width=l=this.target.width():(l=f&&f.width?parseInt(f.width,10):this.target.attr("data-width")?parseInt(this.target.attr("data-width"),10):parseInt(n.jqplot.config.defaultWidth,10),this._width=l,this.target.css("width",l+"px")),e=0,a=u.length;e<a;e++)this.axes[u[e]]=new i(u[e]);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(f.dataRenderer&&n.isFunction(f.dataRenderer)&&(f.dataRendererOptions&&(this.dataRendererOptions=f.dataRendererOptions),this.dataRenderer=f.dataRenderer,r=this.dataRenderer(r,this,this.dataRendererOptions)),f.noDataIndicator&&n.isPlainObject(f.noDataIndicator)&&n.extend(!0,this.noDataIndicator,f.noDataIndicator),r==null||n.isArray(r)==!1||r.length==0||n.isArray(r[0])==!1||r[0].length==0)if(this.noDataIndicator.show==!1)throw new Error("No data specified");else{for(v in this.noDataIndicator.axes)for(p in this.noDataIndicator.axes[v])this.axes[v][p]=this.noDataIndicator.axes[v][p];this.postDrawHooks.add(function(){var u=this.eventCanvas.getHeight(),e=this.eventCanvas.getWidth(),i=n('<div class="jqplot-noData-container" style="position:absolute;"><\/div>'),t,r,f;this.target.append(i);i.height(u);i.width(e);i.css("top",this.eventCanvas._offsets.top);i.css("left",this.eventCanvas._offsets.left);t=n('<div class="jqplot-noData-contents" style="text-align:center; position:relative; margin-left:auto; margin-right:auto;"><\/div>');i.append(t);t.html(this.noDataIndicator.indicator);r=t.height();f=t.width();t.height(r);t.width(f);t.css("top",(u-r)/2+"px")})}for(this.data=n.extend(!0,[],r),this.parseOptions(f),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(),e=0;e<this.series.length;e++){for(this.seriesStack.push(e),this.previousSeriesStack.push(e),this.series[e].shadowCanvas._plotDimensions=this._plotDimensions,this.series[e].canvas._plotDimensions=this._plotDimensions,o=0;o<n.jqplot.preSeriesInitHooks.length;o++)n.jqplot.preSeriesInitHooks[o].call(this.series[e],t,this.data,this.options.seriesDefaults,this.options.series[e],this);for(o=0;o<this.preSeriesInitHooks.hooks.length;o++)this.preSeriesInitHooks.hooks[o].call(this.series[e],t,this.data,this.options.seriesDefaults,this.options.series[e],this);for(this.series[e]._plotDimensions=this._plotDimensions,this.series[e].init(e,this.grid.borderWidth,this),o=0;o<n.jqplot.postSeriesInitHooks.length;o++)n.jqplot.postSeriesInitHooks[o].call(this.series[e],t,this.data,this.options.seriesDefaults,this.options.series[e],this);for(o=0;o<this.postSeriesInitHooks.hooks.length;o++)this.postSeriesInitHooks.hooks[o].call(this.series[e],t,this.data,this.options.seriesDefaults,this.options.series[e],this);this._sumy+=this.series[e]._sumy;this._sumx+=this.series[e]._sumx}for(e=0,a=u.length;e<a;e++)y=u[e],h=this.axes[y],h._plotDimensions=this._plotDimensions,h.init(),this.axes[y].borderColor==null&&(h.borderColor=y.charAt(0)!=="x"&&h.useSeriesColor===!0&&h.show?h._series[0].color:this.grid.borderColor);for(this.sortData&&s(this.series),this.grid.init(),this.grid._axes=this.axes,this.legend._series=this.series,e=0;e<n.jqplot.postInitHooks.length;e++)n.jqplot.postInitHooks[e].call(this,t,this.data,f);for(e=0;e<this.postInitHooks.hooks.length;e++)this.postInitHooks.hooks[e].call(this,t,this.data,f)};this.resetAxesScale=function(t,i){var e=i||{},r=t||this.axes,u,f;if(r===!0&&(r=this.axes),n.isArray(r))for(u=0;u<r.length;u++)this.axes[r[u]].resetScale(e[r[u]]);else if(typeof r=="object")for(f in r)this.axes[f].resetScale(e[f])};this.reInitialize=function(t,f){for(var a,y,h,b,p,o,l,c=n.extend(!0,{},this.options,f),v=this.targetId.substr(1),w=t==null?this.data:t,e=0;e<n.jqplot.preInitHooks.length;e++)n.jqplot.preInitHooks[e].call(this,v,w,c);for(e=0;e<this.preInitHooks.hooks.length;e++)this.preInitHooks.hooks[e].call(this,v,w,c);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(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,e=0,l=u.length;e<l;e++){for(a=u[e],h=this.axes[a],y=h._ticks,o=0,b=y.length;o<b;o++)p=y[o]._elem,p&&(n.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==r&&window.G_vmlCanvasManager.uninitElement(p.get(0)),p.emptyForce(),p=null,y._elem=null);y=null;delete h.ticks;delete h._ticks;this.axes[a]=new i(a);this.axes[a]._plotWidth=this._width;this.axes[a]._plotHeight=this._height}for(t&&(c.dataRenderer&&n.isFunction(c.dataRenderer)&&(c.dataRendererOptions&&(this.dataRendererOptions=c.dataRendererOptions),this.dataRenderer=c.dataRenderer,t=this.dataRenderer(t,this,this.dataRendererOptions)),this.data=n.extend(!0,[],t)),f&&this.parseOptions(c),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(),e=0,l=this.series.length;e<l;e++){for(this.seriesStack.push(e),this.previousSeriesStack.push(e),this.series[e].shadowCanvas._plotDimensions=this._plotDimensions,this.series[e].canvas._plotDimensions=this._plotDimensions,o=0;o<n.jqplot.preSeriesInitHooks.length;o++)n.jqplot.preSeriesInitHooks[o].call(this.series[e],v,this.data,this.options.seriesDefaults,this.options.series[e],this);for(o=0;o<this.preSeriesInitHooks.hooks.length;o++)this.preSeriesInitHooks.hooks[o].call(this.series[e],v,this.data,this.options.seriesDefaults,this.options.series[e],this);for(this.series[e]._plotDimensions=this._plotDimensions,this.series[e].init(e,this.grid.borderWidth,this),o=0;o<n.jqplot.postSeriesInitHooks.length;o++)n.jqplot.postSeriesInitHooks[o].call(this.series[e],v,this.data,this.options.seriesDefaults,this.options.series[e],this);for(o=0;o<this.postSeriesInitHooks.hooks.length;o++)this.postSeriesInitHooks.hooks[o].call(this.series[e],v,this.data,this.options.seriesDefaults,this.options.series[e],this);this._sumy+=this.series[e]._sumy;this._sumx+=this.series[e]._sumx}for(e=0,l=u.length;e<l;e++)a=u[e],h=this.axes[a],h._plotDimensions=this._plotDimensions,h.init(),h.borderColor==null&&(h.borderColor=a.charAt(0)!=="x"&&h.useSeriesColor===!0&&h.show?h._series[0].color:this.grid.borderColor);for(this.sortData&&s(this.series),this.grid.init(),this.grid._axes=this.axes,this.legend._series=this.series,e=0,l=n.jqplot.postInitHooks.length;e<l;e++)n.jqplot.postInitHooks[e].call(this,v,this.data,c);for(e=0,l=this.postInitHooks.hooks.length;e<l;e++)this.postInitHooks.hooks[e].call(this,v,this.data,c)};this.quickInit=function(){var h,e,o,i,t,f;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;for(h in this.axes)this.axes[h]._plotWidth=this._width,this.axes[h]._plotHeight=this._height;for(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(),t=0;t<this.series.length;t++)this.series[t]._type==="line"&&this.series[t].renderer.bands.show&&this.series[t].renderer.initBands.call(this.series[t],this.series[t].renderer.options,this),this.series[t]._plotDimensions=this._plotDimensions,this.series[t].canvas._plotDimensions=this._plotDimensions,this._sumy+=this.series[t]._sumy,this._sumx+=this.series[t]._sumx;for(o=0;o<12;o++){for(e=u[o],i=this.axes[e]._ticks,t=0;t<i.length;t++)f=i[t]._elem,f&&(n.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==r&&window.G_vmlCanvasManager.uninitElement(f.get(0)),f.emptyForce(),f=null,i._elem=null);i=null;this.axes[e]._plotDimensions=this._plotDimensions;this.axes[e]._ticks=[]}this.sortData&&s(this.series);this.grid._axes=this.axes;this.legend._series=this.series};this.computePlotData=function(){var t,i,l,o,s,f,u,a,e,c,h,r;for(this._plotData=[],this._stackData=[],i=0,l=this.series.length;i<l;i++){if(t=this.series[i],this._plotData.push([]),this._stackData.push([]),o=t.data,this._plotData[i]=n.extend(!0,[],o),this._stackData[i]=n.extend(!0,[],o),t._plotData=this._plotData[i],t._stackData=this._stackData[i],s={x:[],y:[]},this.stackSeries&&!t.disableStack){for(t._stack=!0,f=t._stackAxis==="x"?0:1,u=0,a=o.length;u<a;u++)if(e=o[u][f],e==null&&(e=0),this._plotData[i][u][f]=e,this._stackData[i][u][f]=e,i>0)for(c=i;c--;)if(h=this._plotData[c][u][f],e*h>=0){this._plotData[i][u][f]+=h;this._stackData[i][u][f]+=h;break}}else{for(r=0;r<t.data.length;r++)s.x.push(t.data[r][0]),s.y.push(t.data[r][1]);this._stackData.push(t.data);this.series[i]._stackData=t.data;this._plotData.push(t.data);t._plotData=t.data;t._plotValues=s}for(i>0&&(t._prevPlotData=this.series[i-1]._plotData),t._sumy=0,t._sumx=0,r=t.data.length-1;r>-1;r--)t._sumy+=t.data[r][1],t._sumx+=t.data[r][0]}};this.populatePlotData=function(t,i){var f,h,y,u,r;if(this._plotData=[],this._stackData=[],t._stackData=[],t._plotData=[],f={x:[],y:[]},this.stackSeries&&!t.disableStack){t._stack=!0;var c=t._stackAxis==="x"?0:1,s=n.extend(!0,[],t.data),e=n.extend(!0,[],t.data),l,a,o,v;for(h=0;h<i;h++)for(y=this.series[h].data,u=0;u<y.length;u++)o=y[u],l=o[0]!=null?o[0]:0,a=o[1]!=null?o[1]:0,s[u][0]+=l,s[u][1]+=a,v=c?a:l,t.data[u][c]*v>=0&&(e[u][c]+=v);for(r=0;r<e.length;r++)f.x.push(e[r][0]),f.y.push(e[r][1]);this._plotData.push(e);this._stackData.push(s);t._stackData=s;t._plotData=e;t._plotValues=f}else{for(r=0;r<t.data.length;r++)f.x.push(t.data[r][0]),f.y.push(t.data[r][1]);this._stackData.push(t.data);this.series[i]._stackData=t.data;this._plotData.push(t.data);t._plotData=t.data;t._plotValues=f}for(i>0&&(t._prevPlotData=this.series[i-1]._plotData),t._sumy=0,t._sumx=0,r=t.data.length-1;r>-1;r--)t._sumy+=t.data[r][1],t._sumx+=t.data[r][0]};this.getNextSeriesColor=function(n){var t=0,i=n.seriesColors;return function(){return t<i.length?i[t++]:(t=0,i[t++])}}(this);this.parseOptions=function(t){for(var f,c,y,p,a,r,v,e,l,h,s,i=0;i<this.preParseOptionsHooks.hooks.length;i++)this.preParseOptionsHooks.hooks[i].call(this,t);for(i=0;i<n.jqplot.preParseOptionsHooks.length;i++)n.jqplot.preParseOptionsHooks[i].call(this,t);if(this.options=n.extend(!0,{},this.defaults,t),f=this.options,this.animate=f.animate,this.animateReplot=f.animateReplot,this.stackSeries=f.stackSeries,n.isPlainObject(f.fillBetween))for(r=["series1","series2","color","baseSeries","fill"],i=0,l=r.length;i<l;i++)c=r[i],f.fillBetween[c]!=null&&(this.fillBetween[c]=f.fillBetween[c]);for(f.seriesColors&&(this.seriesColors=f.seriesColors),f.negativeSeriesColors&&(this.negativeSeriesColors=f.negativeSeriesColors),f.captureRightClick&&(this.captureRightClick=f.captureRightClick),this.defaultAxisStart=t&&t.defaultAxisStart!=null?t.defaultAxisStart:this.defaultAxisStart,this.colorGenerator.setColors(this.seriesColors),this.negativeColorGenerator.setColors(this.negativeSeriesColors),n.extend(!0,this._gridPadding,f.gridPadding),this.sortData=f.sortData!=null?f.sortData:this.sortData,i=0;i<12;i++)h=u[i],s=this.axes[h],s._options=n.extend(!0,{},f.axesDefaults,f.axes[h]),n.extend(!0,s,f.axesDefaults,f.axes[h]),s._plotWidth=this._width,s._plotHeight=this._height;for(y=function(t,i,r){var f=[],u,e;if(i=i||"vertical",n.isArray(t[0]))n.extend(!0,f,t);else for(u=0,e=t.length;u<e;u++)i=="vertical"?f.push([r+u,t[u]]):f.push([t[u],r+u]);return f},p=0,this.series=[],i=0;i<this.data.length;i++){for(a=n.extend(!0,{index:i},{seriesColors:this.seriesColors,negativeSeriesColors:this.negativeSeriesColors},this.options.seriesDefaults,this.options.series[i],{rendererOptions:{animation:{show:this.animate}}}),r=new o(a),e=0;e<n.jqplot.preParseSeriesOptionsHooks.length;e++)n.jqplot.preParseSeriesOptionsHooks[e].call(r,this.options.seriesDefaults,this.options.series[i]);for(e=0;e<this.preParseSeriesOptionsHooks.hooks.length;e++)this.preParseSeriesOptionsHooks.hooks[e].call(r,this.options.seriesDefaults,this.options.series[i]);n.extend(!0,r,a);v="vertical";r.renderer===n.jqplot.BarRenderer&&r.rendererOptions&&r.rendererOptions.barDirection=="horizontal"&&(v="horizontal",r._stackAxis="x",r._primaryAxis="_yaxis");r.data=y(this.data[i],v,this.defaultAxisStart);switch(r.xaxis){case"xaxis":r._xaxis=this.axes.xaxis;break;case"x2axis":r._xaxis=this.axes.x2axis}for(r._yaxis=this.axes[r.yaxis],r._xaxis._series.push(r),r._yaxis._series.push(r),r.show?(r._xaxis.show=!0,r._yaxis.show=!0):(r._xaxis.scaleToHiddenSeries&&(r._xaxis.show=!0),r._yaxis.scaleToHiddenSeries&&(r._yaxis.show=!0)),r.label||(r.label="Series "+(i+1).toString()),this.series.push(r),e=0;e<n.jqplot.postParseSeriesOptionsHooks.length;e++)n.jqplot.postParseSeriesOptionsHooks[e].call(this.series[i],this.options.seriesDefaults,this.options.series[i]);for(e=0;e<this.postParseSeriesOptionsHooks.hooks.length;e++)this.postParseSeriesOptionsHooks.hooks[e].call(this.series[i],this.options.seriesDefaults,this.options.series[i])}for(n.extend(!0,this.grid,this.options.grid),i=0,l=u.length;i<l;i++)h=u[i],s=this.axes[h],s.borderWidth==null&&(s.borderWidth=this.grid.borderWidth);for(typeof this.options.title=="string"?this.title.text=this.options.title:typeof this.options.title=="object"&&n.extend(!0,this.title,this.options.title),this.title._plotWidth=this._width,this.legend.setOptions(this.options.legend),i=0;i<n.jqplot.postParseOptionsHooks.length;i++)n.jqplot.postParseOptionsHooks[i].call(this,t);for(i=0;i<this.postParseOptionsHooks.hooks.length;i++)this.postParseOptionsHooks.hooks[i].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 i=t||{},r=i.data||null,f=i.clear===!1?!1:!0,u=i.resetAxes||!1;delete i.data;delete i.clear;delete i.resetAxes;this.target.trigger("jqplotPreReplot");f&&this.destroy();r||!n.isEmptyObject(i)?this.reInitialize(r,i):this.quickInit();u&&this.resetAxesScale(u,i.axes);this.draw();this.target.trigger("jqplotPostReplot")};this.redraw=function(n){var i,t,r;n=n!=null?n:!0;this.target.trigger("jqplotPreRedraw");n&&(this.canvasManager.freeAllCanvases(),this.eventCanvas._elem.unbind(),this.target.empty());for(i in this.axes)this.axes[i]._ticks=[];for(this.computePlotData(),this._sumy=0,this._sumx=0,t=0,r=this.series.length;t<r;t++)this._sumy+=this.series[t]._sumy,this._sumx+=this.series[t]._sumx;this.draw();this.target.trigger("jqplotPostRedraw")};this.draw=function(){var s,v,i,r,b,h,e,y,it,o,l,a,t,f,p,c,rt,w;if(this.drawIfHidden||this.target.is(":visible")){for(this.target.trigger("jqplotPreDraw"),t=0,f=n.jqplot.preDrawHooks.length;t<f;t++)n.jqplot.preDrawHooks[t].call(this);for(t=0,f=this.preDrawHooks.hooks.length;t<f;t++)this.preDrawHooks.hooks[t].apply(this,this.preDrawSeriesHooks.args[t]);if(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}),v=this.legend.draw({},this),i={top:0,left:0,bottom:0,right:0},this.legend.placement=="outsideGrid"){this.target.append(v);switch(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()}v=v.detach()}for(r=this.axes,t=0;t<12;t++)b=u[t],this.target.append(r[b].draw(this.baseCanvas._ctx,this)),r[b].set();r.yaxis.show&&(i.left+=r.yaxis.getWidth());for(var k=["y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"],tt=[0,0,0,0,0,0,0,0],d=0,e=0;e<8;e++)r[k[e]].show&&(d+=r[k[e]].getWidth(),tt[e]=d);if(i.right+=d,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&&n.isPlainObject(this.options.gridDimensions)){var ut=parseInt(this.options.gridDimensions.width,10)||0,ft=parseInt(this.options.gridDimensions.height,10)||0,g=(this._width-i.left-i.right-ut)/2,nt=(this._height-i.top-i.bottom-ft)/2;nt>=0&&g>=0&&(i.top+=nt,i.bottom+=nt,i.left+=g,i.right+=g)}h=["top","bottom","left","right"];for(e in h)this._gridPadding[h[e]]==null&&i[h[e]]>0?this._gridPadding[h[e]]=i[h[e]]:this._gridPadding[h[e]]==null&&(this._gridPadding[h[e]]=this._defaultGridPadding[h[e]]);for(y=this._gridPadding,this.legend.placement==="outsideGrid"&&(y={top:this.title.getHeight(),left:0,right:0,bottom:0},this.legend.location==="s"&&(y.left=this._gridPadding.left,y.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}),t=8;t>0;t--)r[k[t-1]].pack({position:"absolute",top:0,right:this._gridPadding.right-tt[t-1]},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top});for(it=(this._width-this._gridPadding.left-this._gridPadding.right)/2+this._gridPadding.left-r.yMidAxis.getWidth()/2,r.yMidAxis.pack({position:"absolute",top:0,left:it,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(),o=this.series,l=o.length,t=0,f=l;t<f;t++)s=this.seriesStack[t],this.target.append(o[s].shadowCanvas.createElement(this._gridPadding,"jqplot-series-shadowCanvas",null,this)),o[s].shadowCanvas.setContext(),o[s].shadowCanvas._elem.data("seriesIndex",s);for(t=0,f=l;t<f;t++)s=this.seriesStack[t],this.target.append(o[s].canvas.createElement(this._gridPadding,"jqplot-series-canvas",null,this)),o[s].canvas.setContext(),o[s].canvas._elem.data("seriesIndex",s);for(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(v),this.legend.pack(y),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(),l&&n(o[l-1].canvas._elem).after(v),this.legend.pack(y)),t=0,f=n.jqplot.eventListenerHooks.length;t<f;t++)this.eventCanvas._elem.bind(n.jqplot.eventListenerHooks[t][0],{plot:this},n.jqplot.eventListenerHooks[t][1]);for(t=0,f=this.eventListenerHooks.hooks.length;t<f;t++)this.eventCanvas._elem.bind(this.eventListenerHooks.hooks[t][0],{plot:this},this.eventListenerHooks.hooks[t][1]);for(a=this.fillBetween,a.fill&&a.series1!==a.series2&&a.series1<l&&a.series2<l&&o[a.series1]._type==="line"&&o[a.series2]._type==="line"&&this.doFillBetweenLines(),t=0,f=n.jqplot.postDrawHooks.length;t<f;t++)n.jqplot.postDrawHooks[t].call(this);for(t=0,f=this.postDrawHooks.hooks.length;t<f;t++)this.postDrawHooks.hooks[t].apply(this,this.postDrawHooks.args[t]);for(this.target.is(":visible")&&(this._drawCount+=1),t=0,f=l;t<f;t++)p=o[t],c=p.renderer,rt=".jqplot-point-label.jqplot-series-"+t,c.animation&&c.animation._supported&&c.animation.show&&(this._drawCount<2||this.animateReplot)&&(w=this.target.find(rt),w.stop(!0,!0).hide(),p.canvas._elem.stop(!0,!0).hide(),p.shadowCanvas._elem.stop(!0,!0).hide(),p.canvas._elem.jqplotEffect("blind",{mode:"show",direction:c.animation.direction},c.animation.speed),p.shadowCanvas._elem.jqplotEffect("blind",{mode:"show",direction:c.animation.direction},c.animation.speed),w.fadeIn(c.animation.speed*.8));w=null;this.target.trigger("jqplotPostDraw",[this])}};rt.prototype.doFillBetweenLines=function(){var n=this.fillBetween,t=n.series1,i=n.series2,e=t<i?t:i,s=i>t?i:t,r=this.series[e],u=this.series[s],f,o;f=u.renderer.smooth?u.renderer._smoothedData.slice(0).reverse():u.gridData.slice(0).reverse();o=r.renderer.smooth?r.renderer._smoothedData.concat(f):r.gridData.concat(f);var h=n.color!==null?n.color:this.series[t].fillColor,c=n.baseSeries!==null?n.baseSeries:e,l=this.series[c].renderer.shapeRenderer,a={fillStyle:h,fill:!0,closePath:!0};l.draw(r.shadowCanvas._ctx,o,a)};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(i){var r=t(i),e=i.data.plot,o=f(r.gridPos,e),u=n.Event("jqplotClick");u.pageX=i.pageX;u.pageY=i.pageY;n(this).trigger(u,[r.gridPos,r.dataPos,o,e])};this.onDblClick=function(i){var r=t(i),e=i.data.plot,o=f(r.gridPos,e),u=n.Event("jqplotDblClick");u.pageX=i.pageX;u.pageY=i.pageY;n(this).trigger(u,[r.gridPos,r.dataPos,o,e])};this.onMouseDown=function(i){var r=t(i),e=i.data.plot,o=f(r.gridPos,e),u=n.Event("jqplotMouseDown");u.pageX=i.pageX;u.pageY=i.pageY;n(this).trigger(u,[r.gridPos,r.dataPos,o,e])};this.onMouseUp=function(i){var u=t(i),r=n.Event("jqplotMouseUp");r.pageX=i.pageX;r.pageY=i.pageY;n(this).trigger(r,[u.gridPos,u.dataPos,null,i.data.plot])};this.onRightClick=function(i){var u=t(i),e=i.data.plot,o=f(u.gridPos,e),r;e.captureRightClick&&(i.which==3?(r=n.Event("jqplotRightClick"),r.pageX=i.pageX,r.pageY=i.pageY,n(this).trigger(r,[u.gridPos,u.dataPos,o,e])):(r=n.Event("jqplotMouseUp"),r.pageX=i.pageX,r.pageY=i.pageY,n(this).trigger(r,[u.gridPos,u.dataPos,o,e])))};this.onMouseMove=function(i){var r=t(i),e=i.data.plot,o=f(r.gridPos,e),u=n.Event("jqplotMouseMove");u.pageX=i.pageX;u.pageY=i.pageY;n(this).trigger(u,[r.gridPos,r.dataPos,o,e])};this.onMouseEnter=function(i){var u=t(i),f=i.data.plot,r=n.Event("jqplotMouseEnter");r.pageX=i.pageX;r.pageY=i.pageY;r.relatedTarget=i.relatedTarget;n(this).trigger(r,[u.gridPos,u.dataPos,null,f])};this.onMouseLeave=function(i){var u=t(i),f=i.data.plot,r=n.Event("jqplotMouseLeave");r.pageX=i.pageX;r.pageY=i.pageY;r.relatedTarget=i.relatedTarget;n(this).trigger(r,[u.gridPos,u.dataPos,null,f])};this.drawSeries=function(t,i){var e,f,u;if(i=typeof t=="number"&&i==null?t:i,t=typeof t=="object"?t:{},i!=r)f=this.series[i],u=f.shadowCanvas._ctx,u.clearRect(0,0,u.canvas.width,u.canvas.height),f.drawShadow(u,t,this),u=f.canvas._ctx,u.clearRect(0,0,u.canvas.width,u.canvas.height),f.draw(u,t,this),f.renderer.constructor==n.jqplot.BezierCurveRenderer&&i<this.series.length-1&&this.drawSeries(i+1);else for(e=0;e<this.series.length;e++)f=this.series[e],u=f.shadowCanvas._ctx,u.clearRect(0,0,u.canvas.width,u.canvas.height),f.drawShadow(u,t,this),u=f.canvas._ctx,u.clearRect(0,0,u.canvas.width,u.canvas.height),f.draw(u,t,this);t=i=e=f=u=null};this.moveSeriesToFront=function(t){var i;if(t=parseInt(t,10),i=n.inArray(t,this.seriesStack),i!=-1){if(i==this.seriesStack.length-1){this.previousSeriesStack=this.seriesStack.slice(0);return}var r=this.seriesStack[this.seriesStack.length-1],u=this.series[t].canvas._elem.detach(),f=this.series[t].shadowCanvas._elem.detach();this.series[r].shadowCanvas._elem.after(f);this.series[r].canvas._elem.after(u);this.previousSeriesStack=this.seriesStack.slice(0);this.seriesStack.splice(i,1);this.seriesStack.push(t)}};this.moveSeriesToBack=function(t){var i;if(t=parseInt(t,10),i=n.inArray(t,this.seriesStack),i!=0&&i!=-1){var r=this.seriesStack[0],u=this.series[t].canvas._elem.detach(),f=this.series[t].shadowCanvas._elem.detach();this.series[r].shadowCanvas._elem.before(f);this.series[r].canvas._elem.before(u);this.previousSeriesStack=this.seriesStack.slice(0);this.seriesStack.splice(i,1);this.seriesStack.unshift(t)}};this.restorePreviousSeriesOrder=function(){var n,r,u,f,t,i;if(this.seriesStack!=this.previousSeriesStack){for(n=1;n<this.previousSeriesStack.length;n++)t=this.previousSeriesStack[n],i=this.previousSeriesStack[n-1],r=this.series[t].canvas._elem.detach(),u=this.series[t].shadowCanvas._elem.detach(),this.series[i].shadowCanvas._elem.after(u),this.series[i].canvas._elem.after(r);f=this.seriesStack.slice(0);this.seriesStack=this.previousSeriesStack.slice(0);this.previousSeriesStack=f}};this.restoreOriginalSeriesOrder=function(){for(var t=[],i,r,n=0;n<this.series.length;n++)t.push(n);if(this.seriesStack!=t)for(this.previousSeriesStack=this.seriesStack.slice(0),this.seriesStack=t,n=1;n<this.seriesStack.length;n++)i=this.series[n].canvas._elem.detach(),r=this.series[n].shadowCanvas._elem.detach(),this.series[n-1].shadowCanvas._elem.after(r),this.series[n-1].canvas._elem.after(i)};this.activateTheme=function(n){this.themeEngine.activate(this,n)}}function ut(n,t){return(3.4182054+t)*Math.pow(n,-.3534992)}function w(n){return(Math.exp(2*n)-1)/(Math.exp(2*n)+1)}function l(n){function f(n,t){return n-t==0?Math.pow(10,10):n-t}var d=this.renderer.smooth,ft=this.canvas.getWidth(),g=this._xaxis.series_p2u,nt=this._yaxis.series_p2u,p=null,et=n.length/ft,w=[],b=[],u,t,tt,k,v,y,s,i,it,e,h,r,rt,c,l,o,a;for(p=isNaN(parseFloat(d))?ut(et,.5):parseFloat(d),u=[],t=[],r=0,a=n.length;r<a;r++)u.push(n[r][1]),t.push(n[r][0]);for(s=n.length-1,i=1,it=n.length;i<it;i++){for(e=[],h=[],o=0;o<2;o++)r=i-1+o,e[o]=r==0||r==s?Math.pow(10,10):u[r+1]-u[r]==0||u[r]-u[r-1]==0?0:(t[r+1]-t[r])/(u[r+1]-u[r])+(t[r]-t[r-1])/(u[r]-u[r-1])==0?0:(u[r+1]-u[r])*(u[r]-u[r-1])<0?0:2/(f(t[r+1],t[r])/(u[r+1]-u[r])+f(t[r],t[r-1])/(u[r]-u[r-1]));for(i==1?e[0]=3/2*(u[1]-u[0])/f(t[1],t[0])-e[1]/2:i==s&&(e[1]=3/2*(u[s]-u[s-1])/f(t[s],t[s-1])-e[0]/2),h[0]=-2*(e[1]+2*e[0])/f(t[i],t[i-1])+6*(u[i]-u[i-1])/Math.pow(f(t[i],t[i-1]),2),h[1]=2*(2*e[1]+e[0])/f(t[i],t[i-1])-6*(u[i]-u[i-1])/Math.pow(f(t[i],t[i-1]),2),y=1/6*(h[1]-h[0])/f(t[i],t[i-1]),v=1/2*(t[i]*h[0]-t[i-1]*h[1])/f(t[i],t[i-1]),k=(u[i]-u[i-1]-v*(Math.pow(t[i],2)-Math.pow(t[i-1],2))-y*(Math.pow(t[i],3)-Math.pow(t[i-1],3)))/f(t[i],t[i-1]),tt=u[i-1]-k*t[i-1]-v*Math.pow(t[i-1],2)-y*Math.pow(t[i-1],3),rt=(t[i]-t[i-1])/p,o=0,a=p;o<a;o++)c=[],l=t[i-1]+o*rt,c.push(l),c.push(tt+k*l+v*Math.pow(l,2)+y*Math.pow(l,3)),w.push(c),b.push([g(c[0]),nt(c[1])])}return w.push(n[r]),b.push([g(n[r][0]),nt(n[r][1])]),[w,b]}function a(n){var et=this.renderer.smooth,u=this.renderer.tension,pt=this.canvas.getWidth(),ot=this._xaxis.series_p2u,st=this._yaxis.series_p2u,l=null,i=null,ht=null,ct=null,lt=null,at=null,s=null,h,r,a,v,y,p,b,k,d,g,nt,tt,vt,wt=n.length/pt,c,yt,f,it,e,rt=[],ft=[],t,o;for(l=isNaN(parseFloat(et))?ut(wt,.5):parseFloat(et),isNaN(parseFloat(u))||(u=parseFloat(u)),t=0,o=n.length-1;t<o;t++)for(u===null?(lt=Math.abs((n[t+1][1]-n[t][1])/(n[t+1][0]-n[t][0])),c=.3,yt=.6,f=(yt-c)/2,it=2.5,e=-1.4,s=lt/it+e,ht=f*w(s)-f*w(e)+c,t>0&&(at=Math.abs((n[t][1]-n[t-1][1])/(n[t][0]-n[t-1][0]))),s=at/it+e,ct=f*w(s)-f*w(e)+c,i=(ht+ct)/2):i=u,h=0;h<l;h++)r=h/l,a=(1+2*r)*Math.pow(1-r,2),v=r*Math.pow(1-r,2),y=Math.pow(r,2)*(3-2*r),p=Math.pow(r,2)*(r-1),n[t-1]?(b=i*(n[t+1][0]-n[t-1][0]),k=i*(n[t+1][1]-n[t-1][1])):(b=i*(n[t+1][0]-n[t][0]),k=i*(n[t+1][1]-n[t][1])),n[t+2]?(d=i*(n[t+2][0]-n[t][0]),g=i*(n[t+2][1]-n[t][1])):(d=i*(n[t+1][0]-n[t][0]),g=i*(n[t+1][1]-n[t][1])),nt=a*n[t][0]+y*n[t+1][0]+v*b+p*d,tt=a*n[t][1]+y*n[t+1][1]+v*k+p*g,vt=[nt,tt],rt.push(vt),ft.push([ot(nt),st(tt)]);return rt.push(n[o]),ft.push([ot(n[o][0]),st(n[o][1])]),[rt,ft]}function yt(){for(var t=0;t<this.series.length;t++)this.series[t].renderer.constructor==n.jqplot.LineRenderer&&this.series[t].highlightMouseOver&&(this.series[t].highlightMouseDown=!1)}function pt(){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 n.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(n){v(n.data.plot)})}function ft(n,t,i,r){var u=n.series[t],f=n.plugins.lineRenderer.highlightCanvas,e;f._ctx.clearRect(0,0,f._ctx.canvas.width,f._ctx.canvas.height);u._highlightedPoint=i;n.plugins.lineRenderer.highlightedSeriesIndex=t;e={fillStyle:u.highlightColor};u.type==="line"&&u.renderer.bands.show&&(e.fill=!0,e.closePath=!0);u.renderer.shapeRenderer.draw(f._ctx,r,e);f=null}function v(n){var t=n.plugins.lineRenderer.highlightCanvas,i;for(t._ctx.clearRect(0,0,t._ctx.canvas.width,t._ctx.canvas.height),i=0;i<n.series.length;i++)n.series[i]._highlightedPoint=null;n.plugins.lineRenderer.highlightedSeriesIndex=null;n.target.trigger("jqplotDataUnhighlight");t=null}function wt(n,t,i,r,u){var f,o,e;r?(f=[r.seriesIndex,r.pointIndex,r.data],o=jQuery.Event("jqplotDataMouseOver"),o.pageX=n.pageX,o.pageY=n.pageY,u.target.trigger(o,f),!u.series[f[0]].highlightMouseOver||f[0]==u.plugins.lineRenderer.highlightedSeriesIndex||(e=jQuery.Event("jqplotDataHighlight"),e.which=n.which,e.pageX=n.pageX,e.pageY=n.pageY,u.target.trigger(e,f),ft(u,r.seriesIndex,r.pointIndex,r.points))):r==null&&v(u)}function bt(n,t,i,r,u){var e,f;r?(e=[r.seriesIndex,r.pointIndex,r.data],!u.series[e[0]].highlightMouseDown||e[0]==u.plugins.lineRenderer.highlightedSeriesIndex||(f=jQuery.Event("jqplotDataHighlight"),f.which=n.which,f.pageX=n.pageX,f.pageY=n.pageY,u.target.trigger(f,e),ft(u,r.seriesIndex,r.pointIndex,r.points))):r==null&&v(u)}function kt(n,t,i,r,u){var f=u.plugins.lineRenderer.highlightedSeriesIndex;f!=null&&u.series[f].highlightMouseDown&&v(u)}function dt(n,t,i,r,u){if(r){var e=[r.seriesIndex,r.pointIndex,r.data],f=jQuery.Event("jqplotDataClick");f.which=n.which;f.pageX=n.pageX;f.pageY=n.pageY;u.target.trigger(f,e)}}function gt(n,t,i,r,u){var o,e,f;r&&(o=[r.seriesIndex,r.pointIndex,r.data],e=u.plugins.lineRenderer.highlightedSeriesIndex,e!=null&&u.series[e].highlightMouseDown&&v(u),f=jQuery.Event("jqplotDataRightClick"),f.which=n.which,f.pageX=n.pageX,f.pageY=n.pageY,u.target.trigger(f,o))}function y(n){var t,i;return n=Math.abs(n),n>=10?t="%d":n>1?t=n===parseInt(n,10)?"%d":"%.1f":(i=-Math.floor(Math.log(n)/Math.LN10),t="%."+i+"f"),t}function ni(t,i,r){for(var v=Math.floor(r/2),w=Math.ceil(r*1.5),h=Number.MAX_VALUE,y=i-t,u,f,o,c=n.jqplot.getSignificantFigures,l,p,e,s,a=0,b=w-v+1;a<b;a++)e=v+a,u=y/(e-1),f=c(u),u=Math.abs(r-e)+f.digitsRight,u<h?(h=u,o=e,s=f.digitsRight):u===h&&f.digitsRight<s&&(o=e,s=f.digitsRight);return l=Math.max(s,Math.max(c(t).digitsRight,c(i).digitsRight)),p=l===0?"%d":"%."+l+"f",u=y/(o-1),[t,i,o,p,u]}function et(n,t){t=t||7;var u=n/(t-1),i=Math.pow(10,Math.floor(Math.log(u)/Math.LN10)),r=u/i;return i<1?r>5?10*i:r>2?5*i:r>1?2*i:i:r>5?10*i:r>4?5*i:r>3?4*i:r>2?3*i:r>1?2*i:i}function ot(n,t){t=t||1;var f=Math.floor(Math.log(n)/Math.LN10),r=Math.pow(10,f),i=n/r,u;return i=i/t,u=i<=.38?.1:i<=1.6?.2:i<=4?.5:i<=8?1:i<=16?2:5,u*r}function ti(n,t){var e=Math.floor(Math.log(n)/Math.LN10),r=Math.pow(10,e),i=n/r,f,u;return i=i/t,u=i<=.38?.1:i<=1.6?.2:i<=4?.5:i<=8?1:i<=16?2:5,f=u*r,[f,u,r]}function st(n,t){return n-t}function b(n){var t,i;if(n==null||typeof n!="object")return n;t=new n.constructor;for(i in n)t[i]=b(n[i]);return t}function k(n,t){if(t!=null&&typeof t=="object")for(var i in t)i=="highlightColors"&&(n[i]=b(t[i])),t[i]!=null&&typeof t[i]=="object"?(n.hasOwnProperty(i)||(n[i]={}),k(n[i],t[i])):n[i]=t[i]}function lt(n,t){if(t.indexOf)return t.indexOf(n);for(var i=0,r=t.length;i<r;i++)if(t[i]===n)return i;return-1}function nt(n){return n===null?"[object Null]":Object.prototype.toString.call(n)}function ai(t,i,u,f){return n.isPlainObject(t)?t:(t={effect:t},i===r&&(i={}),n.isFunction(i)&&(f=i,u=null,i={}),(n.type(i)==="number"||n.fx.speeds[i])&&(f=u,u=i,i={}),n.isFunction(u)&&(f=u,u=null),i&&n.extend(t,i),u=u||i.duration,t.duration=n.fx.off?0:typeof u=="number"?u:u in n.fx.speeds?n.fx.speeds[u]:n.fx.speeds._default,t.complete=f||i.complete,t)}var r,u,d,t,p,ct,tt,it,at,vt;n.fn.emptyForce=function(){for(var i=0,t;(t=n(this)[i])!=null;i++){if(t.nodeType===1&&n.cleanData(t.getElementsByTagName("*")),n.jqplot.use_excanvas)t.outerHTML="";else while(t.firstChild)t.removeChild(t.firstChild);t=null}return n(this)};n.fn.removeChildForce=function(n){while(n.firstChild)this.removeChildForce(n.firstChild),n.removeChild(n.firstChild)};n.fn.jqplot=function(){for(var i=[],u=[],t=0,f=arguments.length;t<f;t++)n.isArray(arguments[t])?i.push(arguments[t]):n.isPlainObject(arguments[t])&&u.push(arguments[t]);return this.each(function(t){var f,h,e=n(this),o=i.length,s=u.length,c,l;c=t<o?i[t]:o?i[o-1]:null;l=t<s?u[t]:s?u[s-1]:null;f=e.attr("id");f===r&&(f="jqplot_target_"+n.jqplot.targetCounter++,e.attr("id",f));h=n.jqplot(f,c,l);e.data("jqplot",h)})};n.jqplot=function(t,i,r){var e=null,f=null,u,o;if(arguments.length===3?(e=i,f=r):arguments.length===2&&(n.isArray(i)?e=i:n.isPlainObject(i)&&(f=i)),e===null&&f!==null&&f.data&&(e=f.data),u=new rt,n("#"+t).removeClass("jqplot-error"),n.jqplot.config.catchErrors)try{return u.init(t,e,f),u.draw(),u.themeEngine.init.call(u),u}catch(s){o=n.jqplot.config.errorMessage||s.message;n("#"+t).append('<div class="jqplot-error-message">'+o+"<\/div>");n("#"+t).addClass("jqplot-error");document.getElementById(t).style.background=n.jqplot.config.errorBackground;document.getElementById(t).style.border=n.jqplot.config.errorBorder;document.getElementById(t).style.fontFamily=n.jqplot.config.errorFontFamily;document.getElementById(t).style.fontSize=n.jqplot.config.errorFontSize;document.getElementById(t).style.fontStyle=n.jqplot.config.errorFontStyle;document.getElementById(t).style.fontWeight=n.jqplot.config.errorFontWeight}else return u.init(t,e,f),u.draw(),u.themeEngine.init.call(u),u};n.jqplot.version="1.0.8";n.jqplot.revision="1250";n.jqplot.targetCounter=1;n.jqplot.CanvasManager=function(){typeof n.jqplot.CanvasManager.canvases=="undefined"&&(n.jqplot.CanvasManager.canvases=[],n.jqplot.CanvasManager.free=[]);var t=[];this.getCanvas=function(){var r,u=!0,i,f;if(!n.jqplot.use_excanvas)for(i=0,f=n.jqplot.CanvasManager.canvases.length;i<f;i++)if(n.jqplot.CanvasManager.free[i]===!0){u=!1;r=n.jqplot.CanvasManager.canvases[i];n.jqplot.CanvasManager.free[i]=!1;t.push(i);break}return u&&(r=document.createElement("canvas"),t.push(n.jqplot.CanvasManager.canvases.length),n.jqplot.CanvasManager.canvases.push(r),n.jqplot.CanvasManager.free.push(!1)),r};this.initCanvas=function(t){return n.jqplot.use_excanvas?window.G_vmlCanvasManager.initElement(t):t};this.freeAllCanvases=function(){for(var n=0,i=t.length;n<i;n++)this.freeCanvas(t[n]);t=[]};this.freeCanvas=function(t){if(n.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==r)window.G_vmlCanvasManager.uninitElement(n.jqplot.CanvasManager.canvases[t]),n.jqplot.CanvasManager.canvases[t]=null;else{var i=n.jqplot.CanvasManager.canvases[t];i.getContext("2d").clearRect(0,0,i.width,i.height);n(i).unbind().removeAttr("class").removeAttr("style");n(i).css({left:"",top:"",position:""});i.width=0;i.height=0;n.jqplot.CanvasManager.free[t]=!0}}};n.jqplot.log=function(){window.console&&window.console.log.apply(window.console,arguments)};n.jqplot.config={addDomReference:!1,enablePlugins:!1,defaultHeight:300,defaultWidth:400,UTCAdjust:!1,timezoneOffset:new Date((new Date).getTimezoneOffset()*6e4),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/"};n.jqplot.arrayMax=function(n){return Math.max.apply(Math,n)};n.jqplot.arrayMin=function(n){return Math.min.apply(Math,n)};n.jqplot.enablePlugins=n.jqplot.config.enablePlugins;n.jqplot.support_canvas=function(){return typeof n.jqplot.support_canvas.result=="undefined"&&(n.jqplot.support_canvas.result=!!document.createElement("canvas").getContext),n.jqplot.support_canvas.result};n.jqplot.support_canvas_text=function(){return typeof n.jqplot.support_canvas_text.result=="undefined"&&(n.jqplot.support_canvas_text.result=window.G_vmlCanvasManager!==r&&window.G_vmlCanvasManager._version>887?!0:!!(document.createElement("canvas").getContext&&typeof document.createElement("canvas").getContext("2d").fillText=="function")),n.jqplot.support_canvas_text.result};n.jqplot.use_excanvas=(!n.support.boxModel||!n.support.objectAll||!$support.leadingWhitespace)&&!n.jqplot.support_canvas()?!0:!1;n.jqplot.preInitHooks=[];n.jqplot.postInitHooks=[];n.jqplot.preParseOptionsHooks=[];n.jqplot.postParseOptionsHooks=[];n.jqplot.preDrawHooks=[];n.jqplot.postDrawHooks=[];n.jqplot.preDrawSeriesHooks=[];n.jqplot.postDrawSeriesHooks=[];n.jqplot.preDrawLegendHooks=[];n.jqplot.addLegendRowHooks=[];n.jqplot.preSeriesInitHooks=[];n.jqplot.postSeriesInitHooks=[];n.jqplot.preParseSeriesOptionsHooks=[];n.jqplot.postParseSeriesOptionsHooks=[];n.jqplot.eventListenerHooks=[];n.jqplot.preDrawSeriesShadowHooks=[];n.jqplot.postDrawSeriesShadowHooks=[];n.jqplot.ElemContainer=function(){this._elem;this._plotWidth;this._plotHeight;this._plotDimensions={height:null,width:null}};n.jqplot.ElemContainer.prototype.createElement=function(t,i,r,u,f){this._offsets=i;var o=r||"jqplot",e=document.createElement(t);return this._elem=n(e),this._elem.addClass(o),this._elem.css(u),this._elem.attr(f),e=null,this._elem};n.jqplot.ElemContainer.prototype.getWidth=function(){return this._elem?this._elem.outerWidth(!0):null};n.jqplot.ElemContainer.prototype.getHeight=function(){return this._elem?this._elem.outerHeight(!0):null};n.jqplot.ElemContainer.prototype.getPosition=function(){return this._elem?this._elem.position():{top:null,left:null,bottom:null,right:null}};n.jqplot.ElemContainer.prototype.getTop=function(){return this.getPosition().top};n.jqplot.ElemContainer.prototype.getLeft=function(){return this.getPosition().left};n.jqplot.ElemContainer.prototype.getBottom=function(){return this._elem.css("bottom")};n.jqplot.ElemContainer.prototype.getRight=function(){return this._elem.css("right")};i.prototype=new n.jqplot.ElemContainer;i.prototype.constructor=i;i.prototype.init=function(){n.isFunction(this.renderer)&&(this.renderer=new this.renderer);this.tickOptions.axis=this.name;this.tickOptions.showMark==null&&(this.tickOptions.showMark=this.showTicks);this.tickOptions.showMark==null&&(this.tickOptions.showMark=this.showTickMarks);this.tickOptions.showLabel==null&&(this.tickOptions.showLabel=this.showTicks);this.label==null||this.label==""?this.showLabel=!1:this.labelOptions.label=this.label;this.showLabel==!1&&(this.labelOptions.show=!1);this.pad==0&&(this.pad=1);this.padMax==0&&(this.padMax=1);this.padMin==0&&(this.padMin=1);this.padMax==null&&(this.padMax=(this.pad-1)/2+1);this.padMin==null&&(this.padMin=(this.pad-1)/2+1);this.pad=this.padMax+this.padMin-1;(this.min!=null||this.max!=null)&&(this.autoscale=!1);this.syncTicks==null&&this.name.indexOf("y")>-1?this.syncTicks=!0:this.syncTicks==null&&(this.syncTicks=!1);this.renderer.init.call(this,this.rendererOptions)};i.prototype.draw=function(n,t){return this.__ticks&&(this.__ticks=null),this.renderer.draw.call(this,n,t)};i.prototype.set=function(){this.renderer.set.call(this)};i.prototype.pack=function(n,t){this.show&&this.renderer.pack.call(this,n,t);this._min==null&&(this._min=this.min,this._max=this.max,this._tickInterval=this.tickInterval,this._numberTicks=this.numberTicks,this.__ticks=this._ticks)};i.prototype.reset=function(){this.renderer.reset.call(this)};i.prototype.resetScale=function(t){n.extend(!0,this,{min:null,max:null,numberTicks:null,tickInterval:null,_ticks:[],ticks:[]},t);this.resetDataBounds()};i.prototype.resetDataBounds=function(){var t=this._dataBounds,u,i,f,s,e,o,r,h;for(t.min=null,t.max=null,f=this.show?!0:!1,s=0;s<this._series.length;s++)if(u=this._series[s],u.show||this.scaleToHiddenSeries){for(i=u._plotData,u._type==="line"&&u.renderer.bands.show&&this.name.charAt(0)!=="x"&&(i=[[0,u.renderer.bands._min],[1,u.renderer.bands._max]]),e=1,o=1,u._type!=null&&u._type=="ohlc"&&(e=3,o=2),r=0,h=i.length;r<h;r++)this.name=="xaxis"||this.name=="x2axis"?((i[r][0]!=null&&i[r][0]<t.min||t.min==null)&&(t.min=i[r][0]),(i[r][0]!=null&&i[r][0]>t.max||t.max==null)&&(t.max=i[r][0])):((i[r][e]!=null&&i[r][e]<t.min||t.min==null)&&(t.min=i[r][e]),(i[r][o]!=null&&i[r][o]>t.max||t.max==null)&&(t.max=i[r][o]));f&&u.renderer.constructor!==n.jqplot.BarRenderer?f=!1:f&&this._options.hasOwnProperty("forceTickAt0")&&this._options.forceTickAt0==!1?f=!1:f&&u.renderer.constructor===n.jqplot.BarRenderer&&(u.barDirection=="vertical"&&this.name!="xaxis"&&this.name!="x2axis"?(this._options.pad!=null||this._options.padMin!=null)&&(f=!1):u.barDirection=="horizontal"&&(this.name=="xaxis"||this.name=="x2axis")&&(this._options.pad!=null||this._options.padMin!=null)&&(f=!1))}f&&this.renderer.constructor===n.jqplot.LinearAxisRenderer&&t.min>=0&&(this.padMin=1,this.forceTickAt0=!0)};e.prototype=new n.jqplot.ElemContainer;e.prototype.constructor=e;e.prototype.setOptions=function(t){if(n.extend(!0,this,t),this.placement=="inside"&&(this.placement="insideGrid"),this.xoffset>0){if(this.placement=="insideGrid")switch(this.location){case"nw":case"w":case"sw":this.marginLeft==null&&(this.marginLeft=this.xoffset+"px");this.marginRight="0px";break;case"ne":case"e":case"se":default:this.marginRight==null&&(this.marginRight=this.xoffset+"px");this.marginLeft="0px"}else if(this.placement=="outside")switch(this.location){case"nw":case"w":case"sw":this.marginRight==null&&(this.marginRight=this.xoffset+"px");this.marginLeft="0px";break;case"ne":case"e":case"se":default:this.marginLeft==null&&(this.marginLeft=this.xoffset+"px");this.marginRight="0px"}this.xoffset=0}if(this.yoffset>0){if(this.placement=="outside")switch(this.location){case"sw":case"s":case"se":this.marginTop==null&&(this.marginTop=this.yoffset+"px");this.marginBottom="0px";break;case"ne":case"n":case"nw":default:this.marginBottom==null&&(this.marginBottom=this.yoffset+"px");this.marginTop="0px"}else if(this.placement=="insideGrid")switch(this.location){case"sw":case"s":case"se":this.marginBottom==null&&(this.marginBottom=this.yoffset+"px");this.marginTop="0px";break;case"ne":case"n":case"nw":default:this.marginTop==null&&(this.marginTop=this.yoffset+"px");this.marginBottom="0px"}this.yoffset=0}};e.prototype.init=function(){n.isFunction(this.renderer)&&(this.renderer=new this.renderer);this.renderer.init.call(this,this.rendererOptions)};e.prototype.draw=function(t,i){for(var r=0;r<n.jqplot.preDrawLegendHooks.length;r++)n.jqplot.preDrawLegendHooks[r].call(this,t);return this.renderer.draw.call(this,t,i)};e.prototype.pack=function(n){this.renderer.pack.call(this,n)};h.prototype=new n.jqplot.ElemContainer;h.prototype.constructor=h;h.prototype.init=function(){n.isFunction(this.renderer)&&(this.renderer=new this.renderer);this.renderer.init.call(this,this.rendererOptions)};h.prototype.draw=function(n){return this.renderer.draw.call(this,n)};h.prototype.pack=function(){this.renderer.pack.call(this)};o.prototype=new n.jqplot.ElemContainer;o.prototype.constructor=o;o.prototype.init=function(t,i,r){var f,o,u,s,e;for(this.index=t,this.gridBorderWidth=i,f=this.data,o=[],u=0,s=f.length;u<s;u++)if(this.breakOnNull)o.push(f[u]);else if(f[u]==null||f[u][0]==null||f[u][1]==null)continue;else o.push(f[u]);this.data=o;this.color||(this.color=r.colorGenerator.get(this.index));this.negativeColor||(this.negativeColor=r.negativeColorGenerator.get(this.index));this.fillColor||(this.fillColor=this.color);this.fillAlpha&&(e=n.jqplot.normalize2rgb(this.fillColor),e=n.jqplot.getColorComponents(e),this.fillColor="rgba("+e[0]+","+e[1]+","+e[2]+","+this.fillAlpha+")");n.isFunction(this.renderer)&&(this.renderer=new this.renderer);this.renderer.init.call(this,this.rendererOptions,r);this.markerRenderer=new this.markerRenderer;this.markerOptions.color||(this.markerOptions.color=this.color);this.markerOptions.show==null&&(this.markerOptions.show=this.showMarker);this.showMarker=this.markerOptions.show;this.markerRenderer.init(this.markerOptions)};o.prototype.draw=function(t,i,u){var e=i==r?{}:i,f,o,s;for(t=t==r?this.canvas._ctx:t,f=0;f<n.jqplot.preDrawSeriesHooks.length;f++)n.jqplot.preDrawSeriesHooks[f].call(this,t,e);for(this.show&&(this.renderer.setGridData.call(this,u),e.preventJqPlotSeriesDrawTrigger||n(t.canvas).trigger("jqplotSeriesDraw",[this.data,this.gridData]),o=[],o=e.data?e.data:this._stack?this._plotData:this.data,s=e.gridData||this.renderer.makeGridData.call(this,o,u),this._type==="line"&&this.renderer.smooth&&this.renderer._smoothedData.length&&(s=this.renderer._smoothedData),this.renderer.draw.call(this,t,s,e,u)),f=0;f<n.jqplot.postDrawSeriesHooks.length;f++)n.jqplot.postDrawSeriesHooks[f].call(this,t,e,u);t=i=u=f=o=s=null};o.prototype.drawShadow=function(t,i,u){var e=i==r?{}:i,f,o,s;for(t=t==r?this.shadowCanvas._ctx:t,f=0;f<n.jqplot.preDrawSeriesShadowHooks.length;f++)n.jqplot.preDrawSeriesShadowHooks[f].call(this,t,e);for(this.shadow&&(this.renderer.setGridData.call(this,u),o=[],o=e.data?e.data:this._stack?this._plotData:this.data,s=e.gridData||this.renderer.makeGridData.call(this,o,u),this.renderer.drawShadow.call(this,t,s,e,u)),f=0;f<n.jqplot.postDrawSeriesShadowHooks.length;f++)n.jqplot.postDrawSeriesShadowHooks[f].call(this,t,e);t=i=u=f=o=s=null};o.prototype.toggleDisplay=function(n,t){var i,r;i=n.data.series?n.data.series:this;n.data.speed&&(r=n.data.speed);r?i.canvas._elem.is(":hidden")||!i.show?(i.show=!0,i.canvas._elem.removeClass("jqplot-series-hidden"),i.shadowCanvas._elem&&i.shadowCanvas._elem.fadeIn(r),i.canvas._elem.fadeIn(r,t),i.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+i.index).fadeIn(r)):(i.show=!1,i.canvas._elem.addClass("jqplot-series-hidden"),i.shadowCanvas._elem&&i.shadowCanvas._elem.fadeOut(r),i.canvas._elem.fadeOut(r,t),i.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+i.index).fadeOut(r)):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,t),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,t),i.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+i.index).hide())};c.prototype=new n.jqplot.ElemContainer;c.prototype.constructor=c;c.prototype.init=function(){n.isFunction(this.renderer)&&(this.renderer=new this.renderer);this.renderer.init.call(this,this.rendererOptions)};c.prototype.createElement=function(n,t){return this._offsets=n,this.renderer.createElement.call(this,t)};c.prototype.draw=function(){this.renderer.draw.call(this)};n.jqplot.GenericCanvas=function(){n.jqplot.ElemContainer.call(this);this._ctx};n.jqplot.GenericCanvas.prototype=new n.jqplot.ElemContainer;n.jqplot.GenericCanvas.prototype.constructor=n.jqplot.GenericCanvas;n.jqplot.GenericCanvas.prototype.createElement=function(t,i,u,f){var o,e;return this._offsets=t,o="jqplot",i!=r&&(o=i),e=f.canvasManager.getCanvas(),u!=null&&(this._plotDimensions=u),e.width=this._plotDimensions.width-this._offsets.left-this._offsets.right,e.height=this._plotDimensions.height-this._offsets.top-this._offsets.bottom,this._elem=n(e),this._elem.css({position:"absolute",left:this._offsets.left,top:this._offsets.top}),this._elem.addClass(o),e=f.canvasManager.initCanvas(e),e=null,this._elem};n.jqplot.GenericCanvas.prototype.setContext=function(){return this._ctx=this._elem.get(0).getContext("2d"),this._ctx};n.jqplot.GenericCanvas.prototype.resetCanvas=function(){this._elem&&(n.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==r&&window.G_vmlCanvasManager.uninitElement(this._elem.get(0)),this._elem.emptyForce());this._ctx=null};n.jqplot.HooksManager=function(){this.hooks=[];this.args=[]};n.jqplot.HooksManager.prototype.addOnce=function(n,t){var r,i,u;for(t=t||[],r=!1,i=0,u=this.hooks.length;i<u;i++)this.hooks[i]==n&&(r=!0);r||(this.hooks.push(n),this.args.push(t))};n.jqplot.HooksManager.prototype.add=function(n,t){t=t||[];this.hooks.push(n);this.args.push(t)};n.jqplot.EventListenerManager=function(){this.hooks=[]};n.jqplot.EventListenerManager.prototype.addOnce=function(n,t){for(var u=!1,i,r=0,f=this.hooks.length;r<f;r++)i=this.hooks[r],i[0]==n&&i[1]==t&&(u=!0);u||this.hooks.push([n,t])};n.jqplot.EventListenerManager.prototype.add=function(n,t){this.hooks.push([n,t])};u=["yMidAxis","xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"];n.jqplot.computeHighlightColors=function(t){var f,e,r;if(n.isArray(t))for(f=[],e=0;e<t.length;e++){var u=n.jqplot.getColorComponents(t[e]),i=[u[0],u[1],u[2]],o=i[0]+i[1]+i[2];for(r=0;r<3;r++)i[r]=o>660?i[r]*.85:.73*i[r]+90,i[r]=parseInt(i[r],10),i[r]>255?255:i[r];i[3]=.3+.35*u[3];f.push("rgba("+i[0]+","+i[1]+","+i[2]+","+i[3]+")")}else{var u=n.jqplot.getColorComponents(t),i=[u[0],u[1],u[2]],o=i[0]+i[1]+i[2];for(r=0;r<3;r++)i[r]=o>660?i[r]*.85:.73*i[r]+90,i[r]=parseInt(i[r],10),i[r]>255?255:i[r];i[3]=.3+.35*u[3];f="rgba("+i[0]+","+i[1]+","+i[2]+","+i[3]+")"}return f};n.jqplot.ColorGenerator=function(t){t=t||n.jqplot.config.defaultColors;var i=0;this.next=function(){return i<t.length?t[i++]:(i=0,t[i++])};this.previous=function(){return i>0?t[i--]:(i=t.length-1,t[i])};this.get=function(n){var i=n-t.length*Math.floor(n/t.length);return t[i]};this.setColors=function(n){t=n};this.reset=function(){i=0};this.getIndex=function(){return i};this.setIndex=function(n){i=n}};n.jqplot.hex2rgb=function(n,t){n=n.replace("#","");n.length==3&&(n=n.charAt(0)+n.charAt(0)+n.charAt(1)+n.charAt(1)+n.charAt(2)+n.charAt(2));var i;return i="rgba("+parseInt(n.slice(0,2),16)+", "+parseInt(n.slice(2,4),16)+", "+parseInt(n.slice(4,6),16),t&&(i+=", "+t),i+")"};n.jqplot.rgb2hex=function(n){for(var t,r=n.match(/rgba?\( *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *(?:, *[0-9.]*)?\)/),u="#",i=1;i<4;i++)r[i].search(/%/)!=-1?(t=parseInt(255*r[i]/100,10).toString(16),t.length==1&&(t="0"+t)):(t=parseInt(r[i],10).toString(16),t.length==1&&(t="0"+t)),u+=t;return u};n.jqplot.normalize2rgb=function(t,i){if(t.search(/^ *rgba?\(/)!=-1)return t;if(t.search(/^ *#?[0-9a-fA-F]?[0-9a-fA-F]/)!=-1)return n.jqplot.hex2rgb(t,i);throw new Error("Invalid color spec");};n.jqplot.getColorComponents=function(t){var i;t=n.jqplot.colorKeywordMap[t]||t;var f=n.jqplot.normalize2rgb(t),r=f.match(/rgba?\( *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *,? *([0-9.]* *)?\)/),u=[];for(i=1;i<4;i++)u[i-1]=r[i].search(/%/)!=-1?parseInt(255*r[i]/100,10):parseInt(r[i],10);return u[3]=parseFloat(r[4])?parseFloat(r[4]):1,u};n.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)"};n.jqplot.AxisLabelRenderer=function(t){n.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;n.extend(!0,this,t)};n.jqplot.AxisLabelRenderer.prototype=new n.jqplot.ElemContainer;n.jqplot.AxisLabelRenderer.prototype.constructor=n.jqplot.AxisLabelRenderer;n.jqplot.AxisLabelRenderer.prototype.init=function(t){n.extend(!0,this,t)};n.jqplot.AxisLabelRenderer.prototype.draw=function(){return this._elem&&(this._elem.emptyForce(),this._elem=null),this._elem=n('<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};n.jqplot.AxisLabelRenderer.prototype.pack=function(){};n.jqplot.AxisTickRenderer=function(t){n.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=n.jqplot.DefaultTickFormatter;this.prefix="";this.suffix="";this.formatString="";this.fontFamily;this.fontSize;this.textColor;this.escapeHTML=!1;this._elem;this._breakTick=!1;n.extend(!0,this,t)};n.jqplot.AxisTickRenderer.prototype.init=function(t){n.extend(!0,this,t)};n.jqplot.AxisTickRenderer.prototype=new n.jqplot.ElemContainer;n.jqplot.AxisTickRenderer.prototype.constructor=n.jqplot.AxisTickRenderer;n.jqplot.AxisTickRenderer.prototype.setTick=function(n,t,i){return this.value=n,this.axis=t,i&&(this.isMinorTick=!0),this};n.jqplot.AxisTickRenderer.prototype.draw=function(){var t,i;this.label===null&&(this.label=this.prefix+this.formatter(this.formatString,this.value)+this.suffix);t={position:"absolute"};Number(this.label)&&(t.whitSpace="nowrap");this._elem&&(this._elem.emptyForce(),this._elem=null);this._elem=n(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);for(i in this._styles)this._elem.css(i,this._styles[i]);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};n.jqplot.DefaultTickFormatter=function(t,i){return typeof i=="number"?(t||(t=n.jqplot.config.defaultTickFormatString),n.jqplot.sprintf(t,i)):String(i)};n.jqplot.PercentTickFormatter=function(t,i){return typeof i=="number"?(i=100*i,t||(t=n.jqplot.config.defaultTickFormatString),n.jqplot.sprintf(t,i)):String(i)};n.jqplot.AxisTickRenderer.prototype.pack=function(){};n.jqplot.CanvasGridRenderer=function(){this.shadowRenderer=new n.jqplot.ShadowRenderer};n.jqplot.CanvasGridRenderer.prototype.init=function(t){this._ctx;n.extend(!0,this,t);var i={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(i)};n.jqplot.CanvasGridRenderer.prototype.createElement=function(t){var i,u,f;return this._elem&&(n.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==r&&(i=this._elem.get(0),window.G_vmlCanvasManager.uninitElement(i),i=null),this._elem.emptyForce(),this._elem=null),i=t.canvasManager.getCanvas(),u=this._plotDimensions.width,f=this._plotDimensions.height,i.width=u,i.height=f,this._elem=n(i),this._elem.addClass("jqplot-grid-canvas"),this._elem.css({position:"absolute",left:0,top:0}),i=t.canvasManager.initCanvas(i),this._top=this._offsets.top,this._bottom=f-this._offsets.bottom,this._left=this._offsets.left,this._right=u-this._offsets.right,this._width=this._right-this._left,this._height=this._bottom-this._top,i=null,this._elem};n.jqplot.CanvasGridRenderer.prototype.draw=function(){function s(t,i,r,u,f){o.save();f=f||{};(f.lineWidth==null||f.lineWidth!=0)&&(n.extend(!0,o,f),o.beginPath(),o.moveTo(t,i),o.lineTo(r,u),o.stroke(),o.restore())}var o,h,u,f,e,c,b,w,y,i,a,p,t,r,v;for(this._ctx=this._elem.get(0).getContext("2d"),o=this._ctx,h=this._axes,o.save(),o.clearRect(0,0,this._plotDimensions.width,this._plotDimensions.height),o.fillStyle=this.backgroundColor||this.background,o.fillRect(this._left,this._top,this._width,this._height),o.save(),o.lineJoin="miter",o.lineCap="butt",o.lineWidth=this.gridLineWidth,o.strokeStyle=this.gridLineColor,b=["xaxis","yaxis","x2axis","y2axis"],y=4;y>0;y--){var k=b[y-1],i=h[k],a=i._ticks,nt=a.length;if(i.show){if(i.drawBaseline){w={};i.baselineWidth!==null&&(w.lineWidth=i.baselineWidth);i.baselineColor!==null&&(w.strokeStyle=i.baselineColor);switch(k){case"xaxis":s(this._left,this._bottom,this._right,this._bottom,w);break;case"yaxis":s(this._left,this._bottom,this._left,this._top,w);break;case"x2axis":s(this._left,this._bottom,this._right,this._bottom,w);break;case"y2axis":s(this._right,this._bottom,this._right,this._top,w)}}for(p=nt;p>0;p--)if(t=a[p-1],t.show){r=Math.round(i.u2p(t.value))+.5;switch(k){case"xaxis":if(t.showGridline&&this.drawGridlines&&(!t.isMinorTick&&i.drawMajorGridlines||t.isMinorTick&&i.drawMinorGridlines)&&s(r,this._top,r,this._bottom),t.showMark&&t.mark&&(!t.isMinorTick&&i.drawMajorTickMarks||t.isMinorTick&&i.drawMinorTickMarks)){e=t.markSize;c=t.mark;r=Math.round(i.u2p(t.value))+.5;switch(c){case"outside":u=this._bottom;f=this._bottom+e;break;case"inside":u=this._bottom-e;f=this._bottom;break;case"cross":u=this._bottom-e;f=this._bottom+e;break;default:u=this._bottom;f=this._bottom+e}this.shadow&&this.renderer.shadowRenderer.draw(o,[[r,u],[r,f]],{lineCap:"butt",lineWidth:this.gridLineWidth,offset:this.gridLineWidth*.75,depth:2,fill:!1,closePath:!1});s(r,u,r,f)}break;case"yaxis":if(t.showGridline&&this.drawGridlines&&(!t.isMinorTick&&i.drawMajorGridlines||t.isMinorTick&&i.drawMinorGridlines)&&s(this._right,r,this._left,r),t.showMark&&t.mark&&(!t.isMinorTick&&i.drawMajorTickMarks||t.isMinorTick&&i.drawMinorTickMarks)){e=t.markSize;c=t.mark;r=Math.round(i.u2p(t.value))+.5;switch(c){case"outside":u=this._left-e;f=this._left;break;case"inside":u=this._left;f=this._left+e;break;case"cross":u=this._left-e;f=this._left+e;break;default:u=this._left-e;f=this._left}this.shadow&&this.renderer.shadowRenderer.draw(o,[[u,r],[f,r]],{lineCap:"butt",lineWidth:this.gridLineWidth*1.5,offset:this.gridLineWidth*.75,fill:!1,closePath:!1});s(u,r,f,r,{strokeStyle:i.borderColor})}break;case"x2axis":if(t.showGridline&&this.drawGridlines&&(!t.isMinorTick&&i.drawMajorGridlines||t.isMinorTick&&i.drawMinorGridlines)&&s(r,this._bottom,r,this._top),t.showMark&&t.mark&&(!t.isMinorTick&&i.drawMajorTickMarks||t.isMinorTick&&i.drawMinorTickMarks)){e=t.markSize;c=t.mark;r=Math.round(i.u2p(t.value))+.5;switch(c){case"outside":u=this._top-e;f=this._top;break;case"inside":u=this._top;f=this._top+e;break;case"cross":u=this._top-e;f=this._top+e;break;default:u=this._top-e;f=this._top}this.shadow&&this.renderer.shadowRenderer.draw(o,[[r,u],[r,f]],{lineCap:"butt",lineWidth:this.gridLineWidth,offset:this.gridLineWidth*.75,depth:2,fill:!1,closePath:!1});s(r,u,r,f)}break;case"y2axis":if(t.showGridline&&this.drawGridlines&&(!t.isMinorTick&&i.drawMajorGridlines||t.isMinorTick&&i.drawMinorGridlines)&&s(this._left,r,this._right,r),t.showMark&&t.mark&&(!t.isMinorTick&&i.drawMajorTickMarks||t.isMinorTick&&i.drawMinorTickMarks)){e=t.markSize;c=t.mark;r=Math.round(i.u2p(t.value))+.5;switch(c){case"outside":u=this._right;f=this._right+e;break;case"inside":u=this._right-e;f=this._right;break;case"cross":u=this._right-e;f=this._right+e;break;default:u=this._right;f=this._right+e}this.shadow&&this.renderer.shadowRenderer.draw(o,[[u,r],[f,r]],{lineCap:"butt",lineWidth:this.gridLineWidth*1.5,offset:this.gridLineWidth*.75,fill:!1,closePath:!1});s(u,r,f,r,{strokeStyle:i.borderColor})}}}t=null}i=null;a=null}for(b=["y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis","yMidAxis"],y=7;y>0;y--){if(i=h[b[y-1]],a=i._ticks,i.show){var g=a[i.numberTicks-1],d=a[0],l=i.getLeft(),v=[[l,g.getTop()+g.getHeight()/2],[l,d.getTop()+d.getHeight()/2+1]];for(this.shadow&&this.renderer.shadowRenderer.draw(o,v,{lineCap:"butt",fill:!1,closePath:!1}),s(v[0][0],v[0][1],v[1][0],v[1][1],{lineCap:"butt",strokeStyle:i.borderColor,lineWidth:i.borderWidth}),p=a.length;p>0;p--){if(t=a[p-1],e=t.markSize,c=t.mark,r=Math.round(i.u2p(t.value))+.5,t.showMark&&t.mark){switch(c){case"outside":u=l;f=l+e;break;case"inside":u=l-e;f=l;break;case"cross":u=l-e;f=l+e;break;default:u=l;f=l+e}v=[[u,r],[f,r]];this.shadow&&this.renderer.shadowRenderer.draw(o,v,{lineCap:"butt",lineWidth:this.gridLineWidth*1.5,offset:this.gridLineWidth*.75,fill:!1,closePath:!1});s(u,r,f,r,{strokeStyle:i.borderColor})}t=null}d=null}i=null;a=null}o.restore();this.shadow&&(v=[[this._left,this._bottom],[this._right,this._bottom],[this._right,this._top]],this.renderer.shadowRenderer.draw(o,v));this.borderWidth!=0&&this.drawBorder&&(s(this._left,this._top,this._right,this._top,{lineCap:"round",strokeStyle:h.x2axis.borderColor,lineWidth:h.x2axis.borderWidth}),s(this._right,this._top,this._right,this._bottom,{lineCap:"round",strokeStyle:h.y2axis.borderColor,lineWidth:h.y2axis.borderWidth}),s(this._right,this._bottom,this._left,this._bottom,{lineCap:"round",strokeStyle:h.xaxis.borderColor,lineWidth:h.xaxis.borderWidth}),s(this._left,this._bottom,this._left,this._top,{lineCap:"round",strokeStyle:h.yaxis.borderColor,lineWidth:h.yaxis.borderWidth}));o.restore();o=null;h=null};n.jqplot.DivTitleRenderer=function(){};n.jqplot.DivTitleRenderer.prototype.init=function(t){n.extend(!0,this,t)};n.jqplot.DivTitleRenderer.prototype.draw=function(){var u,r,i,t;return this._elem&&(this._elem.emptyForce(),this._elem=null),u=this.renderer,r=document.createElement("div"),this._elem=n(r),this._elem.addClass("jqplot-title"),this.text?this.text&&(this.color?i=this.color:this.textColor&&(i=this.textColor),t={position:"absolute",top:"0px",left:"0px"},this._plotWidth&&(t.width=this._plotWidth+"px"),this.fontSize&&(t.fontSize=this.fontSize),t.textAlign=typeof this.textAlign=="string"?this.textAlign:"center",i&&(t.color=i),this.paddingBottom&&(t.paddingBottom=this.paddingBottom),this.fontFamily&&(t.fontFamily=this.fontFamily),this._elem.css(t),this.escapeHtml?this._elem.text(this.text):this._elem.html(this.text)):(this.show=!1,this._elem.height(0),this._elem.width(0)),r=null,this._elem};n.jqplot.DivTitleRenderer.prototype.pack=function(){};d=.1;n.jqplot.LinePattern=function(t,i){var v={dotted:[d,n.jqplot.config.dotGapLength],dashed:[n.jqplot.config.dashLength,n.jqplot.config.gapLength],solid:null},o,e,h;if(typeof i=="string")if(i[0]==="."||i[0]==="-")for(o=i,i=[],e=0,h=o.length;e<h;e++){if(o[e]===".")i.push(d);else if(o[e]==="-")i.push(n.jqplot.config.dashLength);else continue;i.push(n.jqplot.config.gapLength)}else i=v[i];if(!(i&&i.length))return t;var f=0,s=i[0],r=0,u=0,c=0,l=0,y=function(n,i){t.moveTo(n,i);r=n;u=i;c=n;l=i},a=function(n,e){var a=t.lineWidth,c=n-r,l=e-u,o=Math.sqrt(c*c+l*l),h;if(o>0&&a>0)for(c/=o,l/=o;;)if(h=a*s,h<o)r+=h*c,u+=h*l,(f&1)==0?t.lineTo(r,u):t.moveTo(r,u),o-=h,f++,f>=i.length&&(f=0),s=i[f];else{r=n;u=e;(f&1)==0?t.lineTo(r,u):t.moveTo(r,u);s-=o/a;break}},p=function(){t.beginPath()},w=function(){a(c,l)};return{moveTo:y,lineTo:a,beginPath:p,closePath:w}};n.jqplot.LineRenderer=function(){this.shapeRenderer=new n.jqplot.ShapeRenderer;this.shadowRenderer=new n.jqplot.ShadowRenderer};n.jqplot.LineRenderer.prototype.init=function(t,i){var r,f,u,e,o;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%"};r={highlightMouseOver:t.highlightMouseOver,highlightMouseDown:t.highlightMouseDown,highlightColor:t.highlightColor};delete t.highlightMouseOver;delete t.highlightMouseDown;delete t.highlightColor;n.extend(!0,this.renderer,t);this.renderer.options=t;this.renderer.bandData.length>1&&(!t.bands||t.bands.show==null)?this.renderer.bands.show=!0:t.bands&&t.bands.show==null&&t.bands.interval!=null&&(this.renderer.bands.show=!0);this.fill&&(this.renderer.bands.show=!1);this.renderer.bands.show&&this.renderer.initBands.call(this,this.renderer.options,i);this._stack&&(this.renderer.smooth=!1);f={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(f);u=t.shadowOffset;u==null&&(u=this.lineWidth>2.5?1.25*(1+(Math.atan(this.lineWidth/2.5)/.785398163-1)*.6):1.25*Math.atan(this.lineWidth/2.5)/.785398163);e={lineJoin:this.lineJoin,lineCap:this.lineCap,fill:this.fill,isarc:!1,angle:this.shadowAngle,offset:u,alpha:this.shadowAlpha,depth:this.shadowDepth,lineWidth:this.lineWidth,linePattern:this.linePattern,closePath:this.fill};this.renderer.shadowRenderer.init(e);this._areaPoints=[];this._boundingBox=[[],[]];(!this.isTrendline&&this.fill||this.renderer.bands.show)&&(this.highlightMouseOver=!0,this.highlightMouseDown=!1,this.highlightColor=null,r.highlightMouseDown&&r.highlightMouseOver==null&&(r.highlightMouseOver=!1),n.extend(!0,this,{highlightMouseOver:r.highlightMouseOver,highlightMouseDown:r.highlightMouseDown,highlightColor:r.highlightColor}),this.highlightColor||(o=this.renderer.bands.show?this.renderer.bands.fillColor:this.fillColor,this.highlightColor=n.jqplot.computeHighlightColors(o)),this.highlighter&&(this.highlighter.show=!1));!this.isTrendline&&i&&(i.plugins.lineRenderer={},i.postInitHooks.addOnce(yt),i.postDrawHooks.addOnce(pt),i.eventListenerHooks.addOnce("jqplotMouseMove",wt),i.eventListenerHooks.addOnce("jqplotMouseDown",bt),i.eventListenerHooks.addOnce("jqplotMouseUp",kt),i.eventListenerHooks.addOnce("jqplotClick",dt),i.eventListenerHooks.addOnce("jqplotRightClick",gt))};n.jqplot.LineRenderer.prototype.initBands=function(t){var u=t.bandData||[],r=this.renderer.bands,e,s,w,b,a,k,g,y,p,i,h,l;if(r.hiData=[],r.lowData=[],e=this.data,r._max=null,r._min=null,u.length==2)if(n.isArray(u[0][0])){for(w=0,b=0,i=0,h=u[0].length;i<h;i++)s=u[0][i],(s[1]!=null&&s[1]>r._max||r._max==null)&&(r._max=s[1]),(s[1]!=null&&s[1]<r._min||r._min==null)&&(r._min=s[1]);for(i=0,h=u[1].length;i<h;i++)s=u[1][i],(s[1]!=null&&s[1]>r._max||r._max==null)&&(r._max=s[1],b=1),(s[1]!=null&&s[1]<r._min||r._min==null)&&(r._min=s[1],w=1);b===w&&(r.show=!1);r.hiData=u[b];r.lowData=u[w]}else if(u[0].length===e.length&&u[1].length===e.length)for(a=u[0][0]>u[1][0]?0:1,k=a?0:1,i=0,h=e.length;i<h;i++)r.hiData.push([e[i][0],u[a][i]]),r.lowData.push([e[i][0],u[k][i]]);else r.show=!1;else if(u.length>2&&!n.isArray(u[0][0]))for(a=u[0][0]>u[0][1]?0:1,k=a?0:1,i=0,h=u.length;i<h;i++)r.hiData.push([e[i][0],u[i][a]]),r.lowData.push([e[i][0],u[i][k]]);else{var d=r.interval,o=null,f=null,v=null,c=null;if(n.isArray(d)?(o=d[0],f=d[1]):o=d,isNaN(o)?o.charAt(o.length-1)==="%"&&(v="multiply",o=parseFloat(o)/100+1):(o=parseFloat(o),v="add"),f!==null&&isNaN(f)?f.charAt(f.length-1)==="%"&&(c="multiply",f=parseFloat(f)/100+1):f!==null&&(f=parseFloat(f),c="add"),o!==null)for(f===null&&(f=-o,c=v,c==="multiply"&&(f+=2)),o<f&&(g=o,o=f,f=g,g=v,v=c,c=g),i=0,h=e.length;i<h;i++){switch(v){case"add":r.hiData.push([e[i][0],e[i][1]+o]);break;case"multiply":r.hiData.push([e[i][0],e[i][1]*o])}switch(c){case"add":r.lowData.push([e[i][0],e[i][1]+f]);break;case"multiply":r.lowData.push([e[i][0],e[i][1]*f])}}else r.show=!1}for(y=r.hiData,p=r.lowData,i=0,h=y.length;i<h;i++)(y[i][1]!=null&&y[i][1]>r._max||r._max==null)&&(r._max=y[i][1]);for(i=0,h=p.length;i<h;i++)(p[i][1]!=null&&p[i][1]<r._min||r._min==null)&&(r._min=p[i][1]);r.fillColor===null&&(l=n.jqplot.getColorComponents(r.color),l[3]=l[3]*.5,r.fillColor="rgba("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+")")};n.jqplot.LineRenderer.prototype.setGridData=function(){var f=this._xaxis.series_u2p,e=this._yaxis.series_u2p,u=this._plotData,i=this._prevPlotData,r,s,n,o,t;for(this.gridData=[],this._prevGridData=[],this.renderer._smoothedData=[],this.renderer._smoothedPlotData=[],this.renderer._hiBandGridData=[],this.renderer._lowBandGridData=[],this.renderer._hiBandSmoothedData=[],this.renderer._lowBandSmoothedData=[],r=this.renderer.bands,s=!1,n=0,o=u.length;n<o;n++)u[n][0]!=null&&u[n][1]!=null?this.gridData.push([f.call(this._xaxis,u[n][0]),e.call(this._yaxis,u[n][1])]):u[n][0]==null?(s=!0,this.gridData.push([null,e.call(this._yaxis,u[n][1])])):u[n][1]==null&&(s=!0,this.gridData.push([f.call(this._xaxis,u[n][0]),null])),i[n]!=null&&i[n][0]!=null&&i[n][1]!=null?this._prevGridData.push([f.call(this._xaxis,i[n][0]),e.call(this._yaxis,i[n][1])]):i[n]!=null&&i[n][0]==null?this._prevGridData.push([null,e.call(this._yaxis,i[n][1])]):i[n]!=null&&i[n][0]!=null&&i[n][1]==null&&this._prevGridData.push([f.call(this._xaxis,i[n][0]),null]);if(s&&(this.renderer.smooth=!1,this._type==="line"&&(r.show=!1)),this._type==="line"&&r.show){for(n=0,o=r.hiData.length;n<o;n++)this.renderer._hiBandGridData.push([f.call(this._xaxis,r.hiData[n][0]),e.call(this._yaxis,r.hiData[n][1])]);for(n=0,o=r.lowData.length;n<o;n++)this.renderer._lowBandGridData.push([f.call(this._xaxis,r.lowData[n][0]),e.call(this._yaxis,r.lowData[n][1])])}this._type==="line"&&this.renderer.smooth&&this.gridData.length>2&&(this.renderer.constrainSmoothing?(t=l.call(this,this.gridData),this.renderer._smoothedData=t[0],this.renderer._smoothedPlotData=t[1],r.show&&(t=l.call(this,this.renderer._hiBandGridData),this.renderer._hiBandSmoothedData=t[0],t=l.call(this,this.renderer._lowBandGridData),this.renderer._lowBandSmoothedData=t[0]),t=null):(t=a.call(this,this.gridData),this.renderer._smoothedData=t[0],this.renderer._smoothedPlotData=t[1],r.show&&(t=a.call(this,this.renderer._hiBandGridData),this.renderer._hiBandSmoothedData=t[0],t=a.call(this,this.renderer._lowBandGridData),this.renderer._lowBandSmoothedData=t[0]),t=null))};n.jqplot.LineRenderer.prototype.makeGridData=function(n){var f=this._xaxis.series_u2p,e=this._yaxis.series_u2p,u=[],r,o,t,s,i;for(this.renderer._smoothedData=[],this.renderer._smoothedPlotData=[],this.renderer._hiBandGridData=[],this.renderer._lowBandGridData=[],this.renderer._hiBandSmoothedData=[],this.renderer._lowBandSmoothedData=[],r=this.renderer.bands,o=!1,t=0;t<n.length;t++)n[t][0]!=null&&n[t][1]!=null?u.push([f.call(this._xaxis,n[t][0]),e.call(this._yaxis,n[t][1])]):n[t][0]==null?(o=!0,u.push([null,e.call(this._yaxis,n[t][1])])):n[t][1]==null&&(o=!0,u.push([f.call(this._xaxis,n[t][0]),null]));if(o&&(this.renderer.smooth=!1,this._type==="line"&&(r.show=!1)),this._type==="line"&&r.show){for(t=0,s=r.hiData.length;t<s;t++)this.renderer._hiBandGridData.push([f.call(this._xaxis,r.hiData[t][0]),e.call(this._yaxis,r.hiData[t][1])]);for(t=0,s=r.lowData.length;t<s;t++)this.renderer._lowBandGridData.push([f.call(this._xaxis,r.lowData[t][0]),e.call(this._yaxis,r.lowData[t][1])])}return this._type==="line"&&this.renderer.smooth&&u.length>2&&(this.renderer.constrainSmoothing?(i=l.call(this,u),this.renderer._smoothedData=i[0],this.renderer._smoothedPlotData=i[1],r.show&&(i=l.call(this,this.renderer._hiBandGridData),this.renderer._hiBandSmoothedData=i[0],i=l.call(this,this.renderer._lowBandGridData),this.renderer._lowBandSmoothedData=i[0]),i=null):(i=a.call(this,u),this.renderer._smoothedData=i[0],this.renderer._smoothedPlotData=i[1],r.show&&(i=a.call(this,this.renderer._hiBandGridData),this.renderer._hiBandSmoothedData=i[0],i=a.call(this,this.renderer._lowBandGridData),this.renderer._lowBandSmoothedData=i[0]),i=null)),u};n.jqplot.LineRenderer.prototype.draw=function(t,i,u){var e=n.extend(!0,{},u),w=e.shadow!=r?e.shadow:this.shadow,st=e.showLine!=r?e.showLine:this.showLine,ft=e.fill!=r?e.fill:this.fill,it=e.fillAndStroke!=r?e.fillAndStroke:this.fillAndStroke,a,k,v,nt,d,rt,o,g,s,ht,tt,c,ut,et,y,f,ot,l,p,b,h;if(t.save(),i.length){if(st)if(ft){if(this.fillToZero)if(nt=this.negativeColor,this.useNegativeColors||(nt=e.fillStyle),d=!1,rt=e.fillStyle,it&&(c=i.slice(0)),this.index!=0&&this._stack){for(y=this._prevGridData,f=y.length;f>0;f--)i.push(y[f-1]);w&&this.renderer.shadowRenderer.draw(t,i,e);this._areaPoints=i;this.renderer.shapeRenderer.draw(t,i,e)}else{if(o=[],g=this.renderer.smooth?this.renderer._smoothedPlotData:this._plotData,this._areaPoints=[],s=this._yaxis.series_u2p(this.fillToValue),ht=this._xaxis.series_u2p(this.fillToValue),e.closePath=!0,this.fillAxis=="y"){for(o.push([i[0][0],s]),this._areaPoints.push([i[0][0],s]),f=0;f<i.length-1;f++)o.push(i[f]),this._areaPoints.push(i[f]),g[f][1]*g[f+1][1]<=0&&(g[f][1]<0?(d=!0,e.fillStyle=nt):(d=!1,e.fillStyle=rt),tt=i[f][0]+(i[f+1][0]-i[f][0])*(s-i[f][1])/(i[f+1][1]-i[f][1]),o.push([tt,s]),this._areaPoints.push([tt,s]),w&&this.renderer.shadowRenderer.draw(t,o,e),this.renderer.shapeRenderer.draw(t,o,e),o=[[tt,s]]);g[i.length-1][1]<0?(d=!0,e.fillStyle=nt):(d=!1,e.fillStyle=rt);o.push(i[i.length-1]);this._areaPoints.push(i[i.length-1]);o.push([i[i.length-1][0],s]);this._areaPoints.push([i[i.length-1][0],s])}w&&this.renderer.shadowRenderer.draw(t,o,e);this.renderer.shapeRenderer.draw(t,o,e)}else{if(it&&(c=i.slice(0)),this.index!=0&&this._stack)for(y=this._prevGridData,f=y.length;f>0;f--)i.push(y[f-1]);else ut=t.canvas.height,i.unshift([i[0][0],ut]),et=i.length,i.push([i[et-1][0],ut]);this._areaPoints=i;w&&this.renderer.shadowRenderer.draw(t,i,e);this.renderer.shapeRenderer.draw(t,i,e)}if(it&&(ot=n.extend(!0,{},e,{fill:!1,closePath:!1}),this.renderer.shapeRenderer.draw(t,c,ot),this.markerRenderer.show))for(this.renderer.smooth&&(c=this.gridData),f=0;f<c.length;f++)this.markerRenderer.draw(c[f][0],c[f][1],t,e.markerOptions)}else this.renderer.bands.show&&(p=n.extend(!0,{},e),this.renderer.bands.showLines&&(l=this.renderer.smooth?this.renderer._hiBandSmoothedData:this.renderer._hiBandGridData,this.renderer.shapeRenderer.draw(t,l,e),l=this.renderer.smooth?this.renderer._lowBandSmoothedData:this.renderer._lowBandGridData,this.renderer.shapeRenderer.draw(t,l,p)),this.renderer.bands.fill&&(l=this.renderer.smooth?this.renderer._hiBandSmoothedData.concat(this.renderer._lowBandSmoothedData.reverse()):this.renderer._hiBandGridData.concat(this.renderer._lowBandGridData.reverse()),this._areaPoints=l,p.closePath=!0,p.fill=!0,p.fillStyle=this.renderer.bands.fillColor,this.renderer.shapeRenderer.draw(t,l,p))),w&&this.renderer.shadowRenderer.draw(t,i,e),this.renderer.shapeRenderer.draw(t,i,e);for(b=k=a=v=null,f=0;f<this._areaPoints.length;f++)h=this._areaPoints[f],(b>h[0]||b==null)&&(b=h[0]),(v<h[1]||v==null)&&(v=h[1]),(k<h[0]||k==null)&&(k=h[0]),(a>h[1]||a==null)&&(a=h[1]);if(this.type==="line"&&this.renderer.bands.show&&(v=this._yaxis.series_u2p(this.renderer.bands._min),a=this._yaxis.series_u2p(this.renderer.bands._max)),this._boundingBox=[[b,v],[k,a]],this.markerRenderer.show&&!ft)for(this.renderer.smooth&&(i=this.gridData),f=0;f<i.length;f++)i[f][0]!=null&&i[f][1]!=null&&this.markerRenderer.draw(i[f][0],i[f][1],t,e.markerOptions)}t.restore()};n.jqplot.LineRenderer.prototype.drawShadow=function(){};n.jqplot.LinearAxisRenderer=function(){};n.jqplot.LinearAxisRenderer.prototype.init=function(t){this.breakPoints=null;this.breakTickLabel="&asymp;";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;n.extend(!0,this,t);this.breakPoints&&(n.isArray(this.breakPoints)?(this.breakPoints.length<2||this.breakPoints[1]<=this.breakPoints[0])&&(this.breakPoints=null):this.breakPoints=null);this.numberTicks!=null&&this.numberTicks<2&&(this.numberTicks=2);this.resetDataBounds()};n.jqplot.LinearAxisRenderer.prototype.draw=function(t,i){var o,e,u,r,f;if(this.show){for(this.renderer.createTicks.call(this,i),o=0,this._elem&&(this._elem.emptyForce(),this._elem=null),this._elem=n(document.createElement("div")),this._elem.addClass("jqplot-axis jqplot-"+this.name),this._elem.css("position","absolute"),this.name=="xaxis"||this.name=="x2axis"?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&&(e=this._label.draw(t,i),e.appendTo(this._elem),e=null),u=this._ticks,f=0;f<u.length;f++)r=u[f],r.show&&r.showLabel&&(!r.isMinorTick||this.showMinorTicks)&&this._elem.append(r.draw(t,i));r=null;u=null}return this._elem};n.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="")};n.jqplot.LinearAxisRenderer.prototype.set=function(){var t=0,e,r=0,o=0,s=this._label==null?!1:this._label.show,u,i,f;if(this.show){for(u=this._ticks,f=0;f<u.length;f++)i=u[f],!i._breakTick&&i.show&&i.showLabel&&(!i.isMinorTick||this.showMinorTicks)&&(e=this.name=="xaxis"||this.name=="x2axis"?i._elem.outerHeight(!0):i._elem.outerWidth(!0),e>t&&(t=e));i=null;u=null;s&&(r=this._label._elem.outerWidth(!0),o=this._label._elem.outerHeight(!0));this.name=="xaxis"?(t=t+o,this._elem.css({height:t+"px",left:"0px",bottom:"0px"})):this.name=="x2axis"?(t=t+o,this._elem.css({height:t+"px",left:"0px",top:"0px"})):this.name=="yaxis"?(t=t+r,this._elem.css({width:t+"px",left:"0px",top:"0px"}),s&&this._label.constructor==n.jqplot.AxisLabelRenderer&&this._label._elem.css("width",r+"px")):(t=t+r,this._elem.css({width:t+"px",right:"0px",top:"0px"}),s&&this._label.constructor==n.jqplot.AxisLabelRenderer&&this._label._elem.css("width",r+"px"))}};n.jqplot.LinearAxisRenderer.prototype.createTicks=function(t){var ei=this._ticks,ot=this.ticks,ni=this.name,ti=this._dataBounds,p=this.name.charAt(0)==="x"?this._plotDimensions.width:this._plotDimensions.height,u,f,st,ut=this.min,ht=this.max,oi=this.numberTicks,si=this.tickInterval,ii=30,e,ft,o,g,nt,ct,lt,at,l,ui,kt,yt,dt,v,rt,r,gt,d,s,i,fi,h,a;if(this._scalefact=(Math.max(p,ii+1)-ii)/300,ot.length){for(h=0;h<ot.length;h++)e=ot[h],i=new this.tickRenderer(this.tickOptions),n.isArray(e)?(i.value=e[0],this.breakPoints?e[0]==this.breakPoints[0]?(i.label=this.breakTickLabel,i._breakTick=!0,i.showGridline=!1,i.showMark=!1):e[0]>this.breakPoints[0]&&e[0]<=this.breakPoints[1]?(i.show=!1,i.showGridline=!1,i.label=e[1]):i.label=e[1]:i.label=e[1],i.setTick(e[0],this.name),this._ticks.push(i)):n.isPlainObject(e)?(n.extend(!0,i,e),i.axis=this.name,this._ticks.push(i)):(i.value=e,this.breakPoints&&(e==this.breakPoints[0]?(i.label=this.breakTickLabel,i._breakTick=!0,i.showGridline=!1,i.showMark=!1):e>this.breakPoints[0]&&e<=this.breakPoints[1]&&(i.show=!1,i.showGridline=!1)),i.setTick(e,this.name),this._ticks.push(i));this.numberTicks=ot.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{if(p=ni=="xaxis"||ni=="x2axis"?this._plotDimensions.width:this._plotDimensions.height,ft=this.numberTicks,this.alignTicks&&(this.name==="x2axis"&&t.axes.xaxis.show?ft=t.axes.xaxis.numberTicks:this.name.charAt(0)==="y"&&this.name!=="yaxis"&&this.name!=="yMidAxis"&&t.axes.yaxis.show&&(ft=t.axes.yaxis.numberTicks)),u=this.min!=null?this.min:ti.min,f=this.max!=null?this.max:ti.max,o=f-u,this.tickOptions!=null&&this.tickOptions.formatString||(this._overrideFormatString=!0),this.min!=null&&(this.max!=null||this.tickInterval!=null||this.autoscale)){if(u==f&&(at=.05,u>0&&(at=Math.max(Math.log(u)/Math.LN10,.05)),u-=at,f+=at),this.autoscale&&this.min==null&&this.max==null){var bt,c,ri,w=!1,vt=!1;for(h=0;h<this._series.length;h++)if(l=this._series[h],ui=l.fillAxis=="x"?l._xaxis.name:l._yaxis.name,this.name==ui){var b=l._plotValues[l.fillAxis],y=b[0],it=b[0];for(a=1;a<b.length;a++)b[a]<y?y=b[a]:b[a]>it&&(it=b[a]);kt=(it-y)/it;l.renderer.constructor==n.jqplot.BarRenderer?y>=0&&(l.fillToZero||kt>.1)?w=!0:(w=!1,vt=l.fill&&l.fillToZero&&y<0&&it>0?!0:!1):l.fill?y>=0&&(l.fillToZero||kt>.1)?w=!0:y<0&&it>0&&l.fillToZero?(w=!1,vt=!0):(w=!1,vt=!1):y<0&&(w=!1)}w?(this.numberTicks=2+Math.ceil((p-(this.tickSpacing-1))/this.tickSpacing),this.min=0,ut=0,c=f/(this.numberTicks-1),r=Math.pow(10,Math.abs(Math.floor(Math.log(c)/Math.LN10))),c/r==parseInt(c/r,10)&&(c+=r),this.tickInterval=Math.ceil(c/r)*r,this.max=this.tickInterval*(this.numberTicks-1)):vt?(this.numberTicks=2+Math.ceil((p-(this.tickSpacing-1))/this.tickSpacing),yt=Math.ceil(Math.abs(u)/o*(this.numberTicks-1)),dt=this.numberTicks-1-yt,c=Math.max(Math.abs(u/yt),Math.abs(f/dt)),r=Math.pow(10,Math.abs(Math.floor(Math.log(c)/Math.LN10))),this.tickInterval=Math.ceil(c/r)*r,this.max=this.tickInterval*dt,this.min=-this.tickInterval*yt):(this.numberTicks==null&&(this.numberTicks=this.tickInterval?3+Math.ceil(o/this.tickInterval):2+Math.ceil((p-(this.tickSpacing-1))/this.tickSpacing)),this.tickInterval==null?(c=o/(this.numberTicks-1),r=c<1?Math.pow(10,Math.abs(Math.floor(Math.log(c)/Math.LN10))):1,this.tickInterval=Math.ceil(c*r*this.pad)/r):r=1/this.tickInterval,bt=this.tickInterval*(this.numberTicks-1),ri=(bt-o)/2,this.min==null&&(this.min=Math.floor(r*(u-ri))/r),this.max==null&&(this.max=this.min+bt));v=n.jqplot.getSignificantFigures(this.tickInterval);v.digitsLeft>=v.significantDigits?rt="%d":(r=Math.max(0,5-v.digitsLeft),r=Math.min(r,v.digitsRight),rt="%."+r+"f");this._autoFormatString=rt}else g=this.min!=null?this.min:u-o*(this.padMin-1),nt=this.max!=null?this.max:f+o*(this.padMax-1),o=nt-g,this.numberTicks==null&&(this.numberTicks=this.tickInterval!=null?Math.ceil((nt-g)/this.tickInterval)+1:p>100?parseInt(3+(p-100)/75,10):2),this.tickInterval==null&&(this.tickInterval=o/(this.numberTicks-1)),this.max==null&&(nt=g+this.tickInterval*(this.numberTicks-1)),this.min==null&&(g=nt-this.tickInterval*(this.numberTicks-1)),v=n.jqplot.getSignificantFigures(this.tickInterval),v.digitsLeft>=v.significantDigits?rt="%d":(r=Math.max(0,5-v.digitsLeft),r=Math.min(r,v.digitsRight),rt="%."+r+"f"),this._autoFormatString=rt,this.min=g,this.max=nt;if(this.renderer.constructor==n.jqplot.LinearAxisRenderer&&this._autoFormatString==""){o=this.max-this.min;var hi=new this.tickRenderer(this.tickOptions),et=hi.formatString||n.jqplot.config.defaultTickFormatString,et=et.match(n.jqplot.sprintf.regex)[0],k=0;et&&(et.search(/[fFeEgGpP]/)>-1?(gt=et.match(/\%\.(\d{0,})?[eEfFgGpP]/),k=gt?parseInt(gt[1],10):6):et.search(/[di]/)>-1&&(k=0),d=Math.pow(10,-k),this.tickInterval<d&&oi==null&&si==null&&(this.tickInterval=d,ht==null&&ut==null?(this.min=Math.floor(this._dataBounds.min/d)*d,this.min==this._dataBounds.min&&(this.min=this._dataBounds.min-this.tickInterval),this.max=Math.ceil(this._dataBounds.max/d)*d,this.max==this._dataBounds.max&&(this.max=this._dataBounds.max+this.tickInterval),s=(this.max-this.min)/this.tickInterval,s=s.toFixed(11),s=Math.ceil(s),this.numberTicks=s+1):ht==null?(s=(this._dataBounds.max-this.min)/this.tickInterval,s=s.toFixed(11),this.numberTicks=Math.ceil(s)+2,this.max=this.min+this.tickInterval*(this.numberTicks-1)):ut==null?(s=(this.max-this._dataBounds.min)/this.tickInterval,s=s.toFixed(11),this.numberTicks=Math.ceil(s)+2,this.min=this.max-this.tickInterval*(this.numberTicks-1)):(this.numberTicks=Math.ceil((ht-ut)/this.tickInterval)+1,this.min=Math.floor(ut*Math.pow(10,k))/Math.pow(10,k),this.max=Math.ceil(ht*Math.pow(10,k))/Math.pow(10,k),this.numberTicks=Math.ceil((this.max-this.min)/this.tickInterval)+1)))}}else{this.forceTickAt0&&(u>0&&(u=0),f<0&&(f=0));this.forceTickAt100&&(u>100&&(u=100),f<100&&(f=100));ct=!1;lt=!1;this.min!=null?ct=!0:this.max!=null&&(lt=!0);var tt=n.jqplot.LinearTickGenerator(u,f,this._scalefact,ft,ct,lt),pt=this.min!=null?u:u+o*(this.padMin-1),wt=this.max!=null?f:f-o*(this.padMax-1);(u<pt||f>wt)&&(pt=this.min!=null?u:u-o*(this.padMin-1),wt=this.max!=null?f:f+o*(this.padMax-1),tt=n.jqplot.LinearTickGenerator(pt,wt,this._scalefact,ft,ct,lt));this.min=tt[0];this.max=tt[1];this.numberTicks=tt[2];this._autoFormatString=tt[3];this.tickInterval=tt[4]}for(this._overrideFormatString&&this._autoFormatString!=""&&(this.tickOptions=this.tickOptions||{},this.tickOptions.formatString=this._autoFormatString),h=0;h<this.numberTicks;h++){if(st=this.min+h*this.tickInterval,i=new this.tickRenderer(this.tickOptions),i.setTick(st,this.name),this._ticks.push(i),h<this.numberTicks-1)for(a=0;a<this.minorTicks;a++)st+=this.tickInterval/(this.minorTicks+1),fi=n.extend(!0,{},this.tickOptions,{name:this.name,value:st,label:"",isMinorTick:!0}),i=new this.tickRenderer(fi),this._ticks.push(i);i=null}}this.tickInset&&(this.min=this.min-this.tickInset*this.tickInterval,this.max=this.max+this.tickInset*this.tickInterval);ei=null};n.jqplot.LinearAxisRenderer.prototype.resetTickValues=function(t){var i,r;if(n.isArray(t)&&t.length==this._ticks.length){for(r=0;r<t.length;r++)i=this._ticks[r],i.value=t[r],i.label=i.formatter(i.formatString,t[r]),i.label=i.prefix+i.label,i._elem.html(i.label);i=null;this.min=n.jqplot.arrayMin(t);this.max=n.jqplot.arrayMax(t);this.pack()}};n.jqplot.LinearAxisRenderer.prototype.pack=function(t,i){var y,u,f,b,s,r,e,a,v,k;t=t||{};i=i||this._offsets;var l=this._ticks,c=this.max,o=this.min,p=i.max,h=i.min,w=this._label==null?!1:this._label.show;for(y in t)this._elem.css(y,t[y]);if(this._offsets=i,u=p-h,f=c-o,this.breakPoints?(f=f-this.breakPoints[1]+this.breakPoints[0],this.p2u=function(n){return(n-h)*f/u+o},this.u2p=function(n){return n>this.breakPoints[0]&&n<this.breakPoints[1]&&(n=this.breakPoints[0]),n<=this.breakPoints[0]?(n-o)*u/f+h:(n-this.breakPoints[1]+this.breakPoints[0]-o)*u/f+h},this.name.charAt(0)=="x"?(this.series_u2p=function(n){return n>this.breakPoints[0]&&n<this.breakPoints[1]&&(n=this.breakPoints[0]),n<=this.breakPoints[0]?(n-o)*u/f:(n-this.breakPoints[1]+this.breakPoints[0]-o)*u/f},this.series_p2u=function(n){return n*f/u+o}):(this.series_u2p=function(n){return n>this.breakPoints[0]&&n<this.breakPoints[1]&&(n=this.breakPoints[0]),n>=this.breakPoints[1]?(n-c)*u/f:(n+this.breakPoints[1]-this.breakPoints[0]-c)*u/f},this.series_p2u=function(n){return n*f/u+c})):(this.p2u=function(n){return(n-h)*f/u+o},this.u2p=function(n){return(n-o)*u/f+h},this.name=="xaxis"||this.name=="x2axis"?(this.series_u2p=function(n){return(n-o)*u/f},this.series_p2u=function(n){return n*f/u+o}):(this.series_u2p=function(n){return(n-c)*u/f},this.series_p2u=function(n){return n*f/u+c})),this.show)if(this.name=="xaxis"||this.name=="x2axis"){for(s=0;s<l.length;s++)if(r=l[s],r.show&&r.showLabel){if(r.constructor==n.jqplot.CanvasAxisTickRenderer&&r.angle){a=this.name=="xaxis"?1:-1;switch(r.labelPosition){case"auto":e=a*r.angle<0?-r.getWidth()+r._textRenderer.height*Math.sin(-r._textRenderer.angle)/2:-r._textRenderer.height*Math.sin(r._textRenderer.angle)/2;break;case"end":e=-r.getWidth()+r._textRenderer.height*Math.sin(-r._textRenderer.angle)/2;break;case"start":e=-r._textRenderer.height*Math.sin(r._textRenderer.angle)/2;break;case"middle":e=-r.getWidth()/2+r._textRenderer.height*Math.sin(-r._textRenderer.angle)/2;break;default:e=-r.getWidth()/2+r._textRenderer.height*Math.sin(-r._textRenderer.angle)/2}}else e=-r.getWidth()/2;v=this.u2p(r.value)+e+"px";r._elem.css("left",v);r.pack()}w&&(b=this._label._elem.outerWidth(!0),this._label._elem.css("left",h+u/2-b/2+"px"),this.name=="xaxis"?this._label._elem.css("bottom","0px"):this._label._elem.css("top","0px"),this._label.pack())}else{for(s=0;s<l.length;s++)if(r=l[s],r.show&&r.showLabel){if(r.constructor==n.jqplot.CanvasAxisTickRenderer&&r.angle){a=this.name=="yaxis"?1:-1;switch(r.labelPosition){case"auto":case"end":e=a*r.angle<0?-r._textRenderer.height*Math.cos(-r._textRenderer.angle)/2:-r.getHeight()+r._textRenderer.height*Math.cos(r._textRenderer.angle)/2;break;case"start":e=r.angle>0?-r._textRenderer.height*Math.cos(-r._textRenderer.angle)/2:-r.getHeight()+r._textRenderer.height*Math.cos(r._textRenderer.angle)/2;break;case"middle":e=-r.getHeight()/2;break;default:e=-r.getHeight()/2}}else e=-r.getHeight()/2;v=this.u2p(r.value)+e+"px";r._elem.css("top",v);r.pack()}w&&(k=this._label._elem.outerHeight(!0),this._label._elem.css("top",p-u/2-k/2+"px"),this.name=="yaxis"?this._label._elem.css("left","0px"):this._label._elem.css("right","0px"),this._label.pack())}l=null};var s=[.1,.2,.3,.4,.5,.8,1,2,3,4,5],yi=function(n){var t=s.indexOf(n);return t>0?s[t-1]:s[s.length-1]/100},pi=function(n){var t=s.indexOf(n);return t<s.length-1?s[t+1]:s[0]*100};n.jqplot.LinearTickGenerator=function(t,i,r,u,f,e){var w,a,v,l,h,p;f=f===null?!1:f;e=e===null||f?!1:e;t===i&&(i=i?0:1);r=r||1;i<t&&(w=i,i=t,t=w);var o=[],s=ot(i-t,r),c=n.jqplot.getSignificantFigures;return u==null?f||e?f?(o[0]=t,o[2]=Math.ceil((i-t)/s+1),o[1]=t+(o[2]-1)*s,a=c(t).digitsRight,l=c(s).digitsRight,o[3]=a<l?y(s):"%."+a+"f",o[4]=s):e&&(o[1]=i,o[2]=Math.ceil((i-t)/s+1),o[0]=i-(o[2]-1)*s,v=c(i).digitsRight,l=c(s).digitsRight,o[3]=v<l?y(s):"%."+v+"f",o[4]=s):(o[0]=Math.floor(t/s)*s,o[1]=Math.ceil(i/s)*s,o[2]=Math.round((o[1]-o[0])/s+1),o[3]=y(s),o[4]=s):(h=[],h[0]=Math.floor(t/s)*s,h[1]=Math.ceil(i/s)*s,h[2]=Math.round((h[1]-h[0])/s+1),h[3]=y(s),h[4]=s,h[2]===u?o=h:(p=et(h[1]-h[0],u),o[0]=h[0],o[2]=u,o[4]=p,o[3]=y(p),o[1]=o[0]+(o[2]-1)*o[4])),o};n.jqplot.LinearTickGenerator.bestLinearInterval=ot;n.jqplot.LinearTickGenerator.bestInterval=et;n.jqplot.LinearTickGenerator.bestLinearComponents=ti;n.jqplot.LinearTickGenerator.bestConstrainedInterval=ni;n.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 n.jqplot.ShadowRenderer;this.shapeRenderer=new n.jqplot.ShapeRenderer;n.extend(!0,this,t)};n.jqplot.MarkerRenderer.prototype.init=function(t){var i,r;n.extend(!0,this,t);i={angle:this.shadowAngle,offset:this.shadowOffset,alpha:this.shadowAlpha,lineWidth:this.lineWidth,depth:this.shadowDepth,closePath:!0};this.style.indexOf("filled")!=-1&&(i.fill=!0);this.style.indexOf("ircle")!=-1&&(i.isarc=!0,i.closePath=!1);this.shadowRenderer.init(i);r={fill:!1,isarc:!1,strokeStyle:this.color,fillStyle:this.color,lineWidth:this.lineWidth,closePath:!0};this.style.indexOf("filled")!=-1&&(r.fill=!0);this.style.indexOf("ircle")!=-1&&(r.isarc=!0,r.closePath=!1);this.shapeRenderer.init(r)};n.jqplot.MarkerRenderer.prototype.drawDiamond=function(n,t,i,r,u){var f=1.2,e=this.size/2/f,o=this.size/2*f,s=[[n-e,t],[n,t+o],[n+e,t],[n,t-o]];this.shadow&&this.shadowRenderer.draw(i,s);this.shapeRenderer.draw(i,s,u)};n.jqplot.MarkerRenderer.prototype.drawPlus=function(t,i,r){var u=1,f=this.size/2*u,e=this.size/2*u,o=[[t,i-e],[t,i+e]],s=[[t+f,i],[t-f,i]],h=n.extend(!0,{},this.options,{closePath:!1});this.shadow&&(this.shadowRenderer.draw(r,o,{closePath:!1}),this.shadowRenderer.draw(r,s,{closePath:!1}));this.shapeRenderer.draw(r,o,h);this.shapeRenderer.draw(r,s,h)};n.jqplot.MarkerRenderer.prototype.drawX=function(t,i,r){var e=1,u=this.size/2*e,f=this.size/2*e,o=n.extend(!0,{},this.options,{closePath:!1}),s=[[t-u,i-f],[t+u,i+f]],h=[[t-u,i+f],[t+u,i-f]];this.shadow&&(this.shadowRenderer.draw(r,s,{closePath:!1}),this.shadowRenderer.draw(r,h,{closePath:!1}));this.shapeRenderer.draw(r,s,o);this.shapeRenderer.draw(r,h,o)};n.jqplot.MarkerRenderer.prototype.drawDash=function(n,t,i,r,u){var f=1,e=this.size/2*f,s=this.size/2*f,o=[[n-e,t],[n+e,t]];this.shadow&&this.shadowRenderer.draw(i,o);this.shapeRenderer.draw(i,o,u)};n.jqplot.MarkerRenderer.prototype.drawLine=function(n,t,i,r,u){var f=[n,t];this.shadow&&this.shadowRenderer.draw(i,f);this.shapeRenderer.draw(i,f,u)};n.jqplot.MarkerRenderer.prototype.drawSquare=function(n,t,i,r,u){var o=1,f=this.size/2/o,e=this.size/2*o,s=[[n-f,t-e],[n-f,t+e],[n+f,t+e],[n+f,t-e]];this.shadow&&this.shadowRenderer.draw(i,s);this.shapeRenderer.draw(i,s,u)};n.jqplot.MarkerRenderer.prototype.drawCircle=function(n,t,i,r,u){var e=this.size/2,o=2*Math.PI,f=[n,t,e,0,o,!0];this.shadow&&this.shadowRenderer.draw(i,f);this.shapeRenderer.draw(i,f,u)};n.jqplot.MarkerRenderer.prototype.draw=function(n,t,i,r){if(r=r||{},r.show==null||r.show!=!1){r.color&&!r.fillStyle&&(r.fillStyle=r.color);r.color&&!r.strokeStyle&&(r.strokeStyle=r.color);switch(this.style){case"diamond":this.drawDiamond(n,t,i,!1,r);break;case"filledDiamond":this.drawDiamond(n,t,i,!0,r);break;case"circle":this.drawCircle(n,t,i,!1,r);break;case"filledCircle":this.drawCircle(n,t,i,!0,r);break;case"square":this.drawSquare(n,t,i,!1,r);break;case"filledSquare":this.drawSquare(n,t,i,!0,r);break;case"x":this.drawX(n,t,i,!0,r);break;case"plus":this.drawPlus(n,t,i,!0,r);break;case"dash":this.drawDash(n,t,i,!0,r);break;case"line":this.drawLine(n,t,i,!1,r);break;default:this.drawDiamond(n,t,i,!1,r)}}};n.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;n.extend(!0,this,t)};n.jqplot.ShadowRenderer.prototype.init=function(t){n.extend(!0,this,t)};n.jqplot.ShadowRenderer.prototype.draw=function(t,i,r){var s,e,o,f;t.save();var u=r!=null?r:{},a=u.fill!=null?u.fill:this.fill,h=u.fillRect!=null?u.fillRect:this.fillRect,v=u.closePath!=null?u.closePath:this.closePath,c=u.offset!=null?u.offset:this.offset,l=u.alpha!=null?u.alpha:this.alpha,y=u.depth!=null?u.depth:this.depth,p=u.isarc!=null?u.isarc:this.isarc,w=u.linePattern!=null?u.linePattern:this.linePattern;for(t.lineWidth=u.lineWidth!=null?u.lineWidth:this.lineWidth,t.lineJoin=u.lineJoin!=null?u.lineJoin:this.lineJoin,t.lineCap=u.lineCap!=null?u.lineCap:this.lineCap,t.strokeStyle=u.strokeStyle||this.strokeStyle||"rgba(0,0,0,"+l+")",t.fillStyle=u.fillStyle||this.fillStyle||"rgba(0,0,0,"+l+")",s=0;s<y;s++){if(e=n.jqplot.LinePattern(t,w),t.translate(Math.cos(this.angle*Math.PI/180)*c,Math.sin(this.angle*Math.PI/180)*c),e.beginPath(),p)t.arc(i[0],i[1],i[2],i[3],i[4],!0);else if(h)h&&t.fillRect(i[0],i[1],i[2],i[3]);else if(i&&i.length)for(o=!0,f=0;f<i.length;f++)i[f][0]!=null&&i[f][1]!=null?o?(e.moveTo(i[f][0],i[f][1]),o=!1):e.lineTo(i[f][0],i[f][1]):o=!0;v&&e.closePath();a?t.fill():t.stroke()}t.restore()};n.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";n.extend(!0,this,t)};n.jqplot.ShapeRenderer.prototype.init=function(t){n.extend(!0,this,t)};n.jqplot.ShapeRenderer.prototype.draw=function(t,i,r){var e,f;t.save();var u=r!=null?r:{},s=u.fill!=null?u.fill:this.fill,h=u.closePath!=null?u.closePath:this.closePath,c=u.fillRect!=null?u.fillRect:this.fillRect,l=u.strokeRect!=null?u.strokeRect:this.strokeRect,a=u.clearRect!=null?u.clearRect:this.clearRect,v=u.isarc!=null?u.isarc:this.isarc,y=u.linePattern!=null?u.linePattern:this.linePattern,o=n.jqplot.LinePattern(t,y);if(t.lineWidth=u.lineWidth||this.lineWidth,t.lineJoin=u.lineJoin||this.lineJoin,t.lineCap=u.lineCap||this.lineCap,t.strokeStyle=u.strokeStyle||u.color||this.strokeStyle,t.fillStyle=u.fillStyle||this.fillStyle,t.beginPath(),v){t.arc(i[0],i[1],i[2],i[3],i[4],!0);h&&t.closePath();s?t.fill():t.stroke();t.restore();return}if(a){t.clearRect(i[0],i[1],i[2],i[3]);t.restore();return}if(c||l){if(c&&t.fillRect(i[0],i[1],i[2],i[3]),l){t.strokeRect(i[0],i[1],i[2],i[3]);t.restore();return}}else if(i&&i.length){for(e=!0,f=0;f<i.length;f++)i[f][0]!=null&&i[f][1]!=null?e?(o.moveTo(i[f][0],i[f][1]),e=!1):o.lineTo(i[f][0],i[f][1]):e=!0;h&&o.closePath();s?t.fill():t.stroke()}t.restore()};n.jqplot.TableLegendRenderer=function(){};n.jqplot.TableLegendRenderer.prototype.init=function(t){n.extend(!0,this,t)};n.jqplot.TableLegendRenderer.prototype.addrow=function(t,i,r,u){var c=r?this.rowSpacing+"px":"0px",e,f,s,h,o;s=document.createElement("tr");e=n(s);e.addClass("jqplot-table-legend");s=null;u?e.prependTo(this._elem):e.appendTo(this._elem);this.showSwatches&&(f=n(document.createElement("td")),f.addClass("jqplot-table-legend jqplot-table-legend-swatch"),f.css({textAlign:"center",paddingTop:c}),h=n(document.createElement("div")),h.addClass("jqplot-table-legend-swatch-outline"),o=n(document.createElement("div")),o.addClass("jqplot-table-legend-swatch"),o.css({backgroundColor:i,borderColor:i}),e.append(f.append(h.append(o))));this.showLabels&&(f=n(document.createElement("td")),f.addClass("jqplot-table-legend jqplot-table-legend-label"),f.css("paddingTop",c),e.append(f),this.escapeHtml?f.text(t):f.html(t));f=null;h=null;o=null;e=null;s=null};n.jqplot.TableLegendRenderer.prototype.draw=function(){var f,c,t,r,e,i,u,o,l,s,h;if(this._elem&&(this._elem.emptyForce(),this._elem=null),this.show)for(f=this._series,c=document.createElement("table"),this._elem=n(c),this._elem.addClass("jqplot-table-legend"),t={position:"absolute"},this.background&&(t.background=this.background),this.border&&(t.border=this.border),this.fontSize&&(t.fontSize=this.fontSize),this.fontFamily&&(t.fontFamily=this.fontFamily),this.textColor&&(t.textColor=this.textColor),this.marginTop!=null&&(t.marginTop=this.marginTop),this.marginBottom!=null&&(t.marginBottom=this.marginBottom),this.marginLeft!=null&&(t.marginLeft=this.marginLeft),this.marginRight!=null&&(t.marginRight=this.marginRight),r=!1,e=!1,u=0;u<f.length;u++)if(i=f[u],(i._stack||i.renderer.constructor==n.jqplot.BezierCurveRenderer)&&(e=!0),i.show&&i.showLabel){for(o=this.labels[u]||i.label.toString(),o&&(l=i.color,e&&u<f.length-1?r=!0:e&&u==f.length-1&&(r=!1),this.renderer.addrow.call(this,o,l,r,e),r=!0),s=0;s<n.jqplot.addLegendRowHooks.length;s++)h=n.jqplot.addLegendRowHooks[s].call(this,i),h&&(this.renderer.addrow.call(this,h.label,h.color,r),r=!0);o=null}return this._elem};n.jqplot.TableLegendRenderer.prototype.pack=function(n){var t,i;if(this.show)if(this.placement=="insideGrid")switch(this.location){case"nw":t=n.left;i=n.top;this._elem.css("left",t);this._elem.css("top",i);break;case"n":t=(n.left+(this._plotDimensions.width-n.right))/2-this.getWidth()/2;i=n.top;this._elem.css("left",t);this._elem.css("top",i);break;case"ne":t=n.right;i=n.top;this._elem.css({right:t,top:i});break;case"e":t=n.right;i=(n.top+(this._plotDimensions.height-n.bottom))/2-this.getHeight()/2;this._elem.css({right:t,top:i});break;case"se":t=n.right;i=n.bottom;this._elem.css({right:t,bottom:i});break;case"s":t=(n.left+(this._plotDimensions.width-n.right))/2-this.getWidth()/2;i=n.bottom;this._elem.css({left:t,bottom:i});break;case"sw":t=n.left;i=n.bottom;this._elem.css({left:t,bottom:i});break;case"w":t=n.left;i=(n.top+(this._plotDimensions.height-n.bottom))/2-this.getHeight()/2;this._elem.css({left:t,top:i});break;default:t=n.right;i=n.bottom;this._elem.css({right:t,bottom:i})}else if(this.placement=="outside")switch(this.location){case"nw":t=this._plotDimensions.width-n.left;i=n.top;this._elem.css("right",t);this._elem.css("top",i);break;case"n":t=(n.left+(this._plotDimensions.width-n.right))/2-this.getWidth()/2;i=this._plotDimensions.height-n.top;this._elem.css("left",t);this._elem.css("bottom",i);break;case"ne":t=this._plotDimensions.width-n.right;i=n.top;this._elem.css({left:t,top:i});break;case"e":t=this._plotDimensions.width-n.right;i=(n.top+(this._plotDimensions.height-n.bottom))/2-this.getHeight()/2;this._elem.css({left:t,top:i});break;case"se":t=this._plotDimensions.width-n.right;i=n.bottom;this._elem.css({left:t,bottom:i});break;case"s":t=(n.left+(this._plotDimensions.width-n.right))/2-this.getWidth()/2;i=this._plotDimensions.height-n.bottom;this._elem.css({left:t,top:i});break;case"sw":t=this._plotDimensions.width-n.left;i=n.bottom;this._elem.css({right:t,bottom:i});break;case"w":t=this._plotDimensions.width-n.left;i=(n.top+(this._plotDimensions.height-n.bottom))/2-this.getHeight()/2;this._elem.css({right:t,top:i});break;default:t=n.right;i=n.bottom;this._elem.css({right:t,bottom:i})}else switch(this.location){case"nw":this._elem.css({left:0,top:n.top});break;case"n":t=(n.left+(this._plotDimensions.width-n.right))/2-this.getWidth()/2;this._elem.css({left:t,top:n.top});break;case"ne":this._elem.css({right:0,top:n.top});break;case"e":i=(n.top+(this._plotDimensions.height-n.bottom))/2-this.getHeight()/2;this._elem.css({right:n.right,top:i});break;case"se":this._elem.css({right:n.right,bottom:n.bottom});break;case"s":t=(n.left+(this._plotDimensions.width-n.right))/2-this.getWidth()/2;this._elem.css({left:t,bottom:n.bottom});break;case"sw":this._elem.css({left:n.left,bottom:n.bottom});break;case"w":i=(n.top+(this._plotDimensions.height-n.bottom))/2-this.getHeight()/2;this._elem.css({left:n.left,top:i});break;default:this._elem.css({right:n.right,bottom:n.bottom})}};n.jqplot.ThemeEngine=function(){this.themes={};this.activeTheme=null};n.jqplot.ThemeEngine.prototype.init=function(){var t=new n.jqplot.Theme({_name:"Default"}),i,o,u,e,f,r;for(i in t.target)t.target[i]=i=="textColor"?this.target.css("color"):this.target.css(i);if(this.title.show&&this.title._elem)for(i in t.title)t.title[i]=i=="textColor"?this.title._elem.css("color"):this.title._elem.css(i);for(i in t.grid)t.grid[i]=this.grid[i];if(t.grid.backgroundColor==null&&this.grid.background!=null&&(t.grid.backgroundColor=this.grid.background),this.legend.show&&this.legend._elem)for(i in t.legend)t.legend[i]=i=="textColor"?this.legend._elem.css("color"):this.legend._elem.css(i);for(o=0;o<this.series.length;o++){e=this.series[o];e.renderer.constructor==n.jqplot.LineRenderer?t.series.push(new fi):e.renderer.constructor==n.jqplot.BarRenderer?t.series.push(new oi):e.renderer.constructor==n.jqplot.PieRenderer?t.series.push(new si):e.renderer.constructor==n.jqplot.DonutRenderer?t.series.push(new hi):e.renderer.constructor==n.jqplot.FunnelRenderer?t.series.push(new ci):e.renderer.constructor==n.jqplot.MeterGaugeRenderer?t.series.push(new li):t.series.push({});for(i in t.series[o])t.series[o][i]=e[i]}for(i in this.axes){if(r=this.axes[i],f=t.axes[i]=new ii,f.borderColor=r.borderColor,f.borderWidth=r.borderWidth,r._ticks&&r._ticks[0])for(u in f.ticks)r._ticks[0].hasOwnProperty(u)?f.ticks[u]=r._ticks[0][u]:r._ticks[0]._elem&&(f.ticks[u]=r._ticks[0]._elem.css(u));if(r._label&&r._label.show)for(u in f.label)r._label[u]?f.label[u]=r._label[u]:r._label._elem&&(f.label[u]=u=="textColor"?r._label._elem.css("color"):r._label._elem.css(u))}this.themeEngine._add(t);this.themeEngine.activeTheme=this.themeEngine.themes[t._name]};n.jqplot.ThemeEngine.prototype.get=function(n){return n?this.themes[n]:this.activeTheme};n.jqplot.ThemeEngine.prototype.getThemeNames=function(){var n=[];for(var t in this.themes)n.push(t);return n.sort(st)};n.jqplot.ThemeEngine.prototype.getThemes=function(){var n=[],i=[],r,t;for(r in this.themes)n.push(r);for(n.sort(st),t=0;t<n.length;t++)i.push(this.themes[n[t]]);return i};n.jqplot.ThemeEngine.prototype.activate=function(t,i){var h=!1,r,l,a,o,c,u,e,y,b;if(!i&&this.activeTheme&&this.activeTheme._name&&(i=this.activeTheme._name),this.themes.hasOwnProperty(i)){r=this.themes[i];this.activeTheme=r;var f,v=["xaxis","x2axis","yaxis","y2axis"];for(e=0;e<v.length;e++)l=v[e],r.axesStyles.borderColor!=null&&(t.axes[l].borderColor=r.axesStyles.borderColor),r.axesStyles.borderWidth!=null&&(t.axes[l].borderWidth=r.axesStyles.borderWidth);for(a in t.axes)if(o=t.axes[a],o.show){var p=r.axes[a]||{},w=r.axesStyles,s=n.jqplot.extend(!0,{},p,w);if(f=r.axesStyles.borderColor!=null?r.axesStyles.borderColor:s.borderColor,s.borderColor!=null&&(o.borderColor=s.borderColor,h=!0),f=r.axesStyles.borderWidth!=null?r.axesStyles.borderWidth:s.borderWidth,s.borderWidth!=null&&(o.borderWidth=s.borderWidth,h=!0),o._ticks&&o._ticks[0])for(c in s.ticks)f=s.ticks[c],f!=null&&(o.tickOptions[c]=f,o._ticks=[],h=!0);if(o._label&&o._label.show)for(c in s.label)f=s.label[c],f!=null&&(o.labelOptions[c]=f,h=!0)}for(u in r.grid)r.grid[u]!=null&&(t.grid[u]=r.grid[u]);if(h||t.grid.draw(),t.legend.show)for(u in r.legend)r.legend[u]!=null&&(t.legend[u]=r.legend[u]);if(t.title.show)for(u in r.title)r.title[u]!=null&&(t.title[u]=r.title[u]);for(e=0;e<r.series.length;e++){y={};b=!1;for(u in r.series[e])f=r.seriesStyles[u]!=null?r.seriesStyles[u]:r.series[e][u],f!=null&&(y[u]=f,u=="color"?(t.series[e].renderer.shapeRenderer.fillStyle=f,t.series[e].renderer.shapeRenderer.strokeStyle=f,t.series[e][u]=f):u=="lineWidth"||u=="linePattern"?(t.series[e].renderer.shapeRenderer[u]=f,t.series[e][u]=f):u=="markerOptions"?(k(t.series[e].markerOptions,f),k(t.series[e].markerRenderer,f)):t.series[e][u]=f,h=!0)}h&&(t.target.empty(),t.draw());for(u in r.target)r.target[u]!=null&&t.target.css(u,r.target[u])}else throw new Error("No theme of that name");};n.jqplot.ThemeEngine.prototype._add=function(n,t){if(t&&(n._name=t),n._name||(n._name=Date.parse(new Date)),this.themes.hasOwnProperty(n._name))throw new Error("jqplot.ThemeEngine Error: Theme already in use");else this.themes[n._name]=n};n.jqplot.ThemeEngine.prototype.remove=function(n){return n=="Default"?!1:delete this.themes[n]};n.jqplot.ThemeEngine.prototype.newTheme=function(t,i){typeof t=="object"&&(i=i||t,t=null);t=i&&i._name?i._name:t||Date.parse(new Date);var r=this.copy(this.themes.Default._name,t);return n.jqplot.extend(r,i),r};n.jqplot.clone=b;n.jqplot.merge=k;n.jqplot.extend=function(){var t=arguments[0]||{},f=1,h=arguments.length,e=!1,o,u,s,i;for(typeof t=="boolean"&&(e=t,t=arguments[1]||{},f=2),typeof t!="object"&&!1&&(t={});f<h;f++)if((o=arguments[f])!=null)for(u in o)(s=t[u],i=o[u],t!==i)&&(e&&i&&typeof i=="object"&&!i.nodeType?t[u]=n.jqplot.extend(e,s||(i.length!=null?[]:{}),i):i!==r&&(t[u]=i));return t};n.jqplot.ThemeEngine.prototype.rename=function(n,t){if(n=="Default"||t=="Default")throw new Error("jqplot.ThemeEngine Error: Cannot rename from/to Default");if(this.themes.hasOwnProperty(t))throw new Error("jqplot.ThemeEngine Error: New name already in use.");else if(this.themes.hasOwnProperty(n)){var i=this.copy(n,t);return this.remove(n),i}throw new Error("jqplot.ThemeEngine Error: Old name or new name invalid");};n.jqplot.ThemeEngine.prototype.copy=function(t,i,r){var f,u;if(i=="Default")throw new Error("jqplot.ThemeEngine Error: Cannot copy over Default theme");if(!this.themes.hasOwnProperty(t)){f="jqplot.ThemeEngine Error: Source name invalid";throw new Error(f);}if(this.themes.hasOwnProperty(i)){f="jqplot.ThemeEngine Error: Target name invalid";throw new Error(f);}else return u=b(this.themes[t]),u._name=i,n.jqplot.extend(!0,u,r),this._add(u),u};n.jqplot.Theme=function(t,i){typeof t=="object"&&(i=i||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={};typeof i=="string"?this._name=i:typeof i=="object"&&n.jqplot.extend(!0,this,i)};var ii=function(){this.borderColor=null;this.borderWidth=null;this.ticks=new ri;this.label=new ui},ri=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},ui=function(){this.textColor=null;this.whiteSpace=null;this.fontSize=null;this.fontFamily=null;this.fontWeight=null},fi=function(){this.color=null;this.lineWidth=null;this.linePattern=null;this.shadow=null;this.fillColor=null;this.showMarker=null;this.markerOptions=new ei},ei=function(){this.show=null;this.style=null;this.lineWidth=null;this.size=null;this.color=null;this.shadow=null},oi=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},si=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},hi=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},ci=function(){this.color=null;this.lineWidth=null;this.shadow=null;this.padding=null;this.sectionMargin=null;this.seriesColors=null;this.highlightColors=null},li=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};n.fn.jqplotChildText=function(){return n(this).contents().filter(function(){return this.nodeType==3}).text()};n.fn.jqplotGetComputedFontStyle=function(){for(var n,i=window.getComputedStyle?window.getComputedStyle(this[0],""):this[0].currentStyle,r=i["font-style"]?["font-style","font-weight","font-size","font-family"]:["fontStyle","fontWeight","fontSize","fontFamily"],u=[],t=0;t<r.length;++t)n=String(i[r[t]]),n&&n!="normal"&&u.push(n);return u.join(" ")};n.fn.jqplotToImageCanvas=function(t){function tt(t){var i=parseInt(n(t).css("line-height"),10);return isNaN(i)&&(i=parseInt(n(t).css("font-size"),10)*1.2),i}function b(t,i,u,f,e,o){for(var p,y=tt(t),w=n(t).innerWidth(),k=n(t).innerHeight(),a=u.split(/\s+/),b=a.length,s="",l=[],v=e,c=f,h=0;h<b;h++)s+=a[h],i.measureText(s).width>w&&(l.push(h),s="",h--);if(l.length===0)n(t).css("textAlign")==="center"&&(c=f+(o-i.measureText(s).width)/2-r),i.fillText(u,c,e);else{for(s=a.slice(0,l[0]).join(" "),n(t).css("textAlign")==="center"&&(c=f+(o-i.measureText(s).width)/2-r),i.fillText(s,c,v),v+=y,h=1,p=l.length;h<p;h++)s=a.slice(l[h-1],l[h]).join(" "),n(t).css("textAlign")==="center"&&(c=f+(o-i.measureText(s).width)/2-r),i.fillText(s,c,v),v+=y;s=a.slice(l[h-1],a.length).join(" ");n(t).css("textAlign")==="center"&&(c=f+(o-i.measureText(s).width)/2-r);i.fillText(s,c,v)}}function k(t,r,f){var h=t.tagName.toLowerCase(),l=n(t).position(),s=window.getComputedStyle?window.getComputedStyle(t,""):t.currentStyle,e=r+l.left+parseInt(s.marginLeft,10)+parseInt(s.borderLeftWidth,10)+parseInt(s.paddingLeft,10),o=f+l.top+parseInt(s.marginTop,10)+parseInt(s.borderTopWidth,10)+parseInt(s.paddingTop,10),a=u.width,c,v;h!="div"&&h!="span"||n(t).hasClass("jqplot-highlighter-tooltip")?h==="table"&&n(t).hasClass("jqplot-table-legend")?(i.strokeStyle=n(t).css("border-top-color"),i.fillStyle=n(t).css("background-color"),i.fillRect(e,o,n(t).innerWidth(),n(t).innerHeight()),parseInt(n(t).css("border-top-width"),10)>0&&i.strokeRect(e,o,n(t).innerWidth(),n(t).innerHeight()),n(t).find("div.jqplot-table-legend-swatch-outline").each(function(){var t=n(this),r,u;i.strokeStyle=t.css("border-top-color");r=e+t.position().left;u=o+t.position().top;i.strokeRect(r,u,t.innerWidth(),t.innerHeight());r+=parseInt(t.css("padding-left"),10);u+=parseInt(t.css("padding-top"),10);var f=t.innerHeight()-2*parseInt(t.css("padding-top"),10),s=t.innerWidth()-2*parseInt(t.css("padding-left"),10),h=t.children("div.jqplot-table-legend-swatch");i.fillStyle=h.css("background-color");i.fillRect(r,u,s,f)}),n(t).find("td.jqplot-table-legend-label").each(function(){var t=n(this),r=e+t.position().left,u=o+t.position().top+parseInt(t.css("padding-top"),10);i.font=t.jqplotGetComputedFontStyle();i.fillStyle=t.css("color");b(t,i,t.text(),r,u,a)}),v=null):h=="canvas"&&i.drawImage(t,e,o):(n(t).children().each(function(){k(this,e,o)}),c=n(t).jqplotChildText(),c&&(i.font=n(t).jqplotGetComputedFontStyle(),i.fillStyle=n(t).css("color"),b(t,i,c,e,o,a)))}var c,i;t=t||{};var v=t.x_offset==null?0:t.x_offset,y=t.y_offset==null?0:t.y_offset,d=t.backgroundColor==null?"rgb(255,255,255)":t.backgroundColor;if(n(this).width()==0||n(this).height()==0||n.jqplot.use_excanvas)return null;var u=document.createElement("canvas"),f=n(this).outerHeight(!0),e=n(this).outerWidth(!0),p=n(this).offset(),g=p.left,nt=p.top,r=0,o=0,w=["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"],s,h,l,a;for(c=0;c<w.length;c++)n(this).find("."+w[c]).each(function(){s=n(this).offset().top-nt;h=n(this).offset().left-g;a=h+n(this).outerWidth(!0)+r;l=s+n(this).outerHeight(!0)+o;h<-r&&(e=e-r-h,r=-h);s<-o&&(f=f-o-s,o=-s);a>e&&(e=a);l>f&&(f=l)});return u.width=e+Number(v),u.height=f+Number(y),i=u.getContext("2d"),i.save(),i.fillStyle=d,i.fillRect(0,0,u.width,u.height),i.restore(),i.translate(r,o),i.textAlign="left",i.textBaseline="top",n(this).children().each(function(){k(this,v,y)}),u};n.fn.jqplotToImageStr=function(t){var i=n(this).jqplotToImageCanvas(t);return i?i.toDataURL("image/png"):null};n.fn.jqplotToImageElem=function(t){var i=document.createElement("img"),r=n(this).jqplotToImageStr(t);return i.src=r,i};n.fn.jqplotToImageElemStr=function(t){return"<img src="+n(this).jqplotToImageStr(t)+" />"};n.fn.jqplotSaveImage=function(){var t=n(this).jqplotToImageStr({});t&&(window.location.href=t.replace("image/png","image/octet-stream"))};n.fn.jqplotViewImage=function(){var i=n(this).jqplotToImageElemStr({}),r=n(this).jqplotToImageStr({}),t;i&&(t=window.open(""),t.document.open("image/png"),t.document.write(i),t.document.close(),t=null)};t=function(){var i,n,r;this.syntax=t.config.syntax;this._type="jsDate";this.proxy=new Date;this.options={};this.locale=t.regional.getLocale();this.formatString="";this.defaultCentury=t.config.defaultCentury;switch(arguments.length){case 0:break;case 1:nt(arguments[0])=="[object Object]"&&arguments[0]._type!="jsDate"?(i=this.options=arguments[0],this.syntax=i.syntax||this.syntax,this.defaultCentury=i.defaultCentury||this.defaultCentury,this.proxy=t.createDate(i.date)):this.proxy=t.createDate(arguments[0]);break;default:for(n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);this.proxy=new Date;this.proxy.setFullYear.apply(this.proxy,n.slice(0,3));n.slice(3).length&&this.proxy.setHours.apply(this.proxy,n.slice(3))}};t.config={defaultLocale:"en",syntax:"perl",defaultCentury:1900};t.prototype.add=function(n,t){var i=f[t]||f.day;return typeof i=="number"?this.proxy.setTime(this.proxy.getTime()+i*n):i.add(this,n),this};t.prototype.clone=function(){return new t(this.proxy.getTime())};t.prototype.getUtcOffset=function(){return this.proxy.getTimezoneOffset()*6e4};t.prototype.diff=function(n,i,r){var u,e;return(n=new t(n),n===null)?null:(u=f[i]||f.day,e=typeof u=="number"?(this.proxy.getTime()-n.proxy.getTime())/u:u.diff(this.proxy,n.proxy),r?e:Math[e>0?"floor":"ceil"](e))};t.prototype.getAbbrDayName=function(){return t.regional[this.locale].dayNamesShort[this.proxy.getDay()]};t.prototype.getAbbrMonthName=function(){return t.regional[this.locale].monthNamesShort[this.proxy.getMonth()]};t.prototype.getAMPM=function(){return this.proxy.getHours()>=12?"PM":"AM"};t.prototype.getAmPm=function(){return this.proxy.getHours()>=12?"pm":"am"};t.prototype.getCentury=function(){return parseInt(this.proxy.getFullYear()/100,10)};t.prototype.getDate=function(){return this.proxy.getDate()};t.prototype.getDay=function(){return this.proxy.getDay()};t.prototype.getDayOfWeek=function(){var n=this.proxy.getDay();return n===0?7:n};t.prototype.getDayOfYear=function(){var n=this.proxy,t=n-new Date(""+n.getFullYear()+"/1/1 GMT");return t+=n.getTimezoneOffset()*6e4,n=null,parseInt(t/864e5,10)+1};t.prototype.getDayName=function(){return t.regional[this.locale].dayNames[this.proxy.getDay()]};t.prototype.getFullWeekOfYear=function(){var n=this.proxy,t=this.getDayOfYear(),i=6-n.getDay();return parseInt((t+i)/7,10)};t.prototype.getFullYear=function(){return this.proxy.getFullYear()};t.prototype.getGmtOffset=function(){var n=this.proxy.getTimezoneOffset()/60,t=n<0?"+":"-";return n=Math.abs(n),t+g(Math.floor(n),2)+":"+g(n%1*60,2)};t.prototype.getHours=function(){return this.proxy.getHours()};t.prototype.getHours12=function(){var n=this.proxy.getHours();return n>12?n-12:n==0?12:n};t.prototype.getIsoWeek=function(){var n=this.proxy,u=this.getWeekOfYear(),r=new Date(""+n.getFullYear()+"/1/1").getDay(),i=u+(r>4||r<=1?0:1);return i==53&&new Date(""+n.getFullYear()+"/12/31").getDay()<4?i=1:i===0&&(n=new t(new Date(""+(n.getFullYear()-1)+"/12/31")),i=n.getIsoWeek()),n=null,i};t.prototype.getMilliseconds=function(){return this.proxy.getMilliseconds()};t.prototype.getMinutes=function(){return this.proxy.getMinutes()};t.prototype.getMonth=function(){return this.proxy.getMonth()};t.prototype.getMonthName=function(){return t.regional[this.locale].monthNames[this.proxy.getMonth()]};t.prototype.getMonthNumber=function(){return this.proxy.getMonth()+1};t.prototype.getSeconds=function(){return this.proxy.getSeconds()};t.prototype.getShortYear=function(){return this.proxy.getYear()%100};t.prototype.getTime=function(){return this.proxy.getTime()};t.prototype.getTimezoneAbbr=function(){return this.proxy.toString().replace(/^.*\(([^)]+)\)$/,"$1")};t.prototype.getTimezoneName=function(){var n=/(?:\((.+)\)$| ([A-Z]{3}) )/.exec(this.toString());return n[1]||n[2]||"GMT"+this.getGmtOffset()};t.prototype.getTimezoneOffset=function(){return this.proxy.getTimezoneOffset()};t.prototype.getWeekOfYear=function(){var n=this.getDayOfYear(),t=7-this.getDayOfWeek();return parseInt((n+t)/7,10)};t.prototype.getUnix=function(){return Math.round(this.proxy.getTime()/1e3,0)};t.prototype.getYear=function(){return this.proxy.getYear()};t.prototype.next=function(n){return n=n||"day",this.clone().add(1,n)};t.prototype.set=function(){var i,n,r;switch(arguments.length){case 0:this.proxy=new Date;break;case 1:nt(arguments[0])=="[object Object]"&&arguments[0]._type!="jsDate"?(i=this.options=arguments[0],this.syntax=i.syntax||this.syntax,this.defaultCentury=i.defaultCentury||this.defaultCentury,this.proxy=t.createDate(i.date)):this.proxy=t.createDate(arguments[0]);break;default:for(n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);this.proxy=new Date;this.proxy.setFullYear.apply(this.proxy,n.slice(0,3));n.slice(3).length&&this.proxy.setHours.apply(this.proxy,n.slice(3))}return this};t.prototype.setDate=function(n){return this.proxy.setDate(n),this};t.prototype.setFullYear=function(){return this.proxy.setFullYear.apply(this.proxy,arguments),this};t.prototype.setHours=function(){return this.proxy.setHours.apply(this.proxy,arguments),this};t.prototype.setMilliseconds=function(n){return this.proxy.setMilliseconds(n),this};t.prototype.setMinutes=function(){return this.proxy.setMinutes.apply(this.proxy,arguments),this};t.prototype.setMonth=function(){return this.proxy.setMonth.apply(this.proxy,arguments),this};t.prototype.setSeconds=function(){return this.proxy.setSeconds.apply(this.proxy,arguments),this};t.prototype.setTime=function(n){return this.proxy.setTime(n),this};t.prototype.setYear=function(){return this.proxy.setYear.apply(this.proxy,arguments),this};t.prototype.strftime=function(n){return n=n||this.formatString||t.regional[this.locale].formatString,t.strftime(this,n,this.syntax)};t.prototype.toString=function(){return this.proxy.toString()};t.prototype.toYmdInt=function(){return this.proxy.getFullYear()*1e4+this.getMonthNumber()*100+this.proxy.getDate()};t.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&eacute;rcoles","Jueves","Viernes","S&aacute;bado"],dayNamesShort:["Dom","Lun","Mar","Mi&eacute;","Juv","Vie","S&aacute;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&ccedil;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&ccedil;a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S&aacute;bado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","S&aacute;b"],formatString:"%Y-%m-%d %H:%M:%S"},"pt-BR":{monthNames:["Janeiro","Fevereiro","Mar&ccedil;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&ccedil;a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S&aacute;bado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","S&aacute;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"}};t.regional["en-US"]=t.regional["en-GB"]=t.regional.en;t.regional.getLocale=function(){var n=t.config.defaultLocale;return document&&document.getElementsByTagName("html")&&document.getElementsByTagName("html")[0].lang&&(n=document.getElementsByTagName("html")[0].lang,t.regional.hasOwnProperty(n)||(n=t.config.defaultLocale)),n};var ht=864e5,g=function(n,t){n=String(n);var i=t-n.length,r=String(Math.pow(10,i)).slice(1);return r.concat(n)},f={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:ht,week:7*ht,month:{add:function(n,t){f.year.add(n,Math[t>0?"floor":"ceil"](t/12));var i=n.getMonth()+t%12;i==12?(i=0,n.setYear(n.getFullYear()+1)):i==-1&&(i=11,n.setYear(n.getFullYear()-1));n.setMonth(i)},diff:function(n,t){var i=n.getFullYear()-t.getFullYear(),r=n.getMonth()-t.getMonth()+i*12,u=n.getDate()-t.getDate();return r+u/30}},year:{add:function(n,t){n.setYear(n.getFullYear()+Math[t>0?"floor":"ceil"](t))},diff:function(n,t){return f.month.diff(n,t)/12}}};for(p in f)p.substring(p.length-1)!="s"&&(f[p+"s"]=f[p]);ct=function(n,i,r){if(t.formats[r].shortcuts[i])return t.strftime(n,t.formats[r].shortcuts[i],r);var u=(t.formats[r].codes[i]||"").split("."),f=n["get"+u[0]]?n["get"+u[0]]():"";return u[1]&&(f=g(f,u[1])),f};t.strftime=function(n,i,r,u){var s="perl",h=t.regional.getLocale(),f,o,e;for(r&&t.formats.hasOwnProperty(r)?s=r:r&&t.regional.hasOwnProperty(r)&&(h=r),u&&t.formats.hasOwnProperty(u)?s=u:u&&t.regional.hasOwnProperty(u)&&(h=u),(nt(n)!="[object Object]"||n._type!="jsDate")&&(n=new t(n),n.locale=h),i||(i=n.formatString||t.regional[h].formatString),f=i||"%Y-%m-%d",o="";f.length>0;)(e=f.match(t.formats[s].codes.matcher))?(o+=f.slice(0,e.index),o+=(e[1]||"")+ct(n,e[2],s),f=f.slice(e.index+e[0].length)):(o+=f,f="");return o};t.formats={ISO:"%Y-%m-%dT%H:%M:%S.%N%G",SQL:"%Y-%m-%d %H:%M:%S"};t.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","%":"%"}};t.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","%":"%"}};t.createDate=function(n){function l(n,i){var r=parseFloat(i[1]),o=parseFloat(i[2]),s=parseFloat(i[3]),h=t.config.defaultCentury,u,f,e,c;return r>31?(f=s,e=o,u=h+r):(f=o,e=r,u=h+s),c=e+"/"+f+"/"+u,n.replace(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})/,c)}var i,c,f,r;if(n==null)return new Date;if(n instanceof Date)return n;if(typeof n=="number")return new Date(n);i=String(n).replace(/^\s*(.+)\s*$/g,"$1");i=i.replace(/^([0-9]{1,4})-([0-9]{1,2})-([0-9]{1,4})/,"$1/$2/$3");i=i.replace(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{4})/i,"$1 $2 $3");r=i.match(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{2})\D*/i);r&&r.length>3&&(c=parseFloat(r[3]),f=t.config.defaultCentury+c,f=String(f),i=i.replace(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{2})\D*/i,r[1]+" "+r[2]+" "+f));r=i.match(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})[^0-9]/);r&&r.length>3&&(i=l(i,r));r=i.match(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})$/);r&&r.length>3&&(i=l(i,r));for(var e=0,a=t.matchers.length,u,o,s=i,h;e<a;){if(o=Date.parse(s),!isNaN(o))return new Date(o);if(u=t.matchers[e],typeof u=="function"){if(h=u.call(t,s),h instanceof Date)return h}else s=i.replace(u[0],u[1]);e++}return NaN};t.daysInMonth=function(n,t){return t==2?new Date(n,1,29).getDate()==29?29:28:[r,31,r,31,30,31,30,31,31,30,31,30,31][t]};t.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(n){var t=n.match(/^(?:(.+)\s+)?([012]?\d)(?:\s*\:\s*(\d\d))?(?:\s*\:\s*(\d\d(\.\d*)?))?\s*(am|pm)?\s*$/i),r,i;if(t){if(t[1]){if(r=this.createDate(t[1]),isNaN(r))return}else r=new Date,r.setMilliseconds(0);return i=parseFloat(t[2]),t[6]&&(i=t[6].toLowerCase()=="am"?i==12?0:i:i==12?12:i+12),r.setHours(i,parseInt(t[3]||0,10),parseInt(t[4]||0,10),(parseFloat(t[5]||0)||0)*1e3),r}return n},function(n){var t=n.match(/^(?:(.+))[T|\s+]([012]\d)(?:\:(\d\d))(?:\:(\d\d))(?:\.\d+)([\+\-]\d\d\:\d\d)$/i),i,r;if(t){if(t[1]){if(i=this.createDate(t[1]),isNaN(i))return}else i=new Date,i.setMilliseconds(0);return r=parseFloat(t[2]),i.setHours(r,parseInt(t[3],10),parseInt(t[4],10),parseFloat(t[5])*1e3),i}return n},function(n){var i=n.match(/^([0-3]?\d)\s*[-\/.\s]{1}\s*([a-zA-Z]{3,9})\s*[-\/.\s]{1}\s*([0-3]?\d)$/),r;if(i){var u=new Date,s=t.config.defaultCentury,f=parseFloat(i[1]),h=parseFloat(i[3]),e,o,r;return f>31?(o=h,e=s+f):(o=f,e=s+h),r=lt(i[2],t.regional[t.regional.getLocale()].monthNamesShort),r==-1&&(r=lt(i[2],t.regional[t.regional.getLocale()].monthNames)),u.setFullYear(e,r,o),u.setHours(0,0,0,0),u}return n}];n.jsDate=t;n.jqplot.sprintf=function(){function r(n,t,i,r){var u=n.length>=t?"":Array(1+t-n.length>>>0).join(i);return r?n+u:u+n}function e(t){for(var i=new String(t),r=10;r>0;r--)if(i==(i=i.replace(/^(\d+)(\d{3})/,"$1"+n.jqplot.sprintf.thousandsSeparator+"$2")))break;return i}function i(n,t,i,u,f,e){var s=u-n.length,o;return s>0&&(o=" ",e&&(o="&nbsp;"),n=i||!f?r(n,u,o,i):n.slice(0,t.length)+r("",s,"0",!0)+n.slice(t.length)),n}function u(n,t,u,f,e,o,s,h){var c=n>>>0;return u=u&&c&&{"2":"0b","8":"0","16":"0x"}[t]||"",n=u+r(c.toString(t),o||0,"0",!1),i(n,u,f,e,s,h)}function o(n,t,r,u,f,e){return u!=null&&(n=n.slice(0,u)),i(n,"",t,r,f,e)}var t=arguments,f=0,s=t[f++];return s.replace(n.jqplot.sprintf.regex,function(s,h,c,l,a,v,y){var et,w,k,tt,p,st,ot;if(s=="%%")return"%";var b=!1,it="",d=!1,rt=!1,g=!1,ft=!1;for(et=0;c&&et<c.length;et++)switch(c.charAt(et)){case" ":it=" ";break;case"+":it="+";break;case"-":b=!0;break;case"0":d=!0;break;case"#":rt=!0;break;case"&":g=!0;break;case"'":ft=!0}if(l=l?l=="*"?+t[f++]:l.charAt(0)=="*"?+t[l.slice(1,-1)]:+l:0,l<0&&(l=-l,b=!0),!isFinite(l))throw new Error("$.jqplot.sprintf: (minimum-)width must be finite");v=v?v=="*"?+t[f++]:v.charAt(0)=="*"?+t[v.slice(1,-1)]:+v:"fFeE".indexOf(y)>-1?6:y=="d"?0:void 0;w=h?t[h.slice(0,-1)]:t[f++];switch(y){case"s":return w==null?"":o(String(w),b,l,v,d,g);case"c":return o(String.fromCharCode(+w),b,l,v,d,g);case"b":return u(w,2,rt,b,l,v,d,g);case"o":return u(w,8,rt,b,l,v,d,g);case"x":return u(w,16,rt,b,l,v,d,g);case"X":return u(w,16,rt,b,l,v,d,g).toUpperCase();case"u":return u(w,10,rt,b,l,v,d,g);case"i":return(p=parseInt(+w,10),isNaN(p))?"":(k=p<0?"-":it,tt=ft?e(String(Math.abs(p))):String(Math.abs(p)),w=k+r(tt,v,"0",!1),i(w,k,b,l,d,g));case"d":return(p=Math.round(+w),isNaN(p))?"":(k=p<0?"-":it,tt=ft?e(String(Math.abs(p))):String(Math.abs(p)),w=k+r(tt,v,"0",!1),i(w,k,b,l,d,g));case"e":case"E":case"f":case"F":case"g":case"G":if(p=+w,isNaN(p))return"";var k=p<0?"-":it,ht=["toExponential","toFixed","toPrecision"]["efg".indexOf(y.toLowerCase())],ot=["toString","toUpperCase"]["eEfFgG".indexOf(y)%2],tt=Math.abs(p)[ht](v),nt=tt.toString().split(".");return nt[0]=ft?e(nt[0]):nt[0],tt=nt.join(n.jqplot.sprintf.decimalMark),w=k+tt,i(w,k,b,l,d,g)[ot]();case"p":case"P":if(p=+w,isNaN(p))return"";var k=p<0?"-":it,nt=String(Number(Math.abs(p)).toExponential()).split(/e|E/),ut=nt[0].indexOf(".")!=-1?nt[0].length-1:String(p).length,ct=nt[1]<0?-nt[1]-1:0;return Math.abs(p)<1?w=ut+ct<=v?k+Math.abs(p).toPrecision(ut):ut<=v-1?k+Math.abs(p).toExponential(ut-1):k+Math.abs(p).toExponential(v-1):(st=ut<=v?ut:v,w=k+Math.abs(p).toPrecision(st)),ot=["toString","toUpperCase"]["pP".indexOf(y)%2],i(w,k,b,l,d,g)[ot]();case"n":return"";default:return s}})};n.jqplot.sprintf.thousandsSeparator=",";n.jqplot.sprintf.decimalMark=".";n.jqplot.sprintf.regex=/%%|%(\d+\$)?([-+#0&\' ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([nAscboxXuidfegpEGP])/g;n.jqplot.getSignificantFigures=function(n){var t=String(Number(Math.abs(n)).toExponential()).split(/e|E/),r=t[0].indexOf(".")!=-1?t[0].length-1:t[0].length,f=t[1]<0?-t[1]-1:0,i=parseInt(t[1],10),u=i+1>0?i+1:0,e=r<=u?0:r-i-1;return{significantDigits:r,digitsLeft:u,digitsRight:e,zeros:f,exponent:i}};n.jqplot.getPrecision=function(t){return n.jqplot.getSignificantFigures(t).digitsRight};tt=n.uiBackCompat!==!1;n.jqplot.effects={effect:{}};it="jqplot.storage.";n.extend(n.jqplot.effects,{version:"1.9pre",save:function(n,t){for(var i=0;i<t.length;i++)t[i]!==null&&n.data(it+t[i],n[0].style[t[i]])},restore:function(n,t){for(var i=0;i<t.length;i++)t[i]!==null&&n.css(t[i],n.data(it+t[i]))},setMode:function(n,t){return t==="toggle"&&(t=n.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},r=n("<div><\/div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),f={width:t.width(),height:t.height()},u=document.activeElement;return t.wrap(r),(t[0]===u||n.contains(t[0],u))&&n(u).focus(),r=t.parent(),t.css("position")==="static"?(r.css({position:"relative"}),t.css({position:"relative"})):(n.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),n.each(["top","left","bottom","right"],function(n,r){i[r]=t.css(r);isNaN(parseInt(i[r],10))&&(i[r]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(f),r.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||n.contains(t[0],i))&&n(i).focus()),t}});n.fn.extend({jqplotEffect:function(){function e(r){function o(){n.isFunction(f)&&f.call(u[0]);n.isFunction(r)&&r()}var u=n(this),f=t.complete,e=t.mode;(u.is(":hidden")?e==="hide":e==="show")?o():i.call(u[0],t,o)}var t=ai.apply(this,arguments),r=t.mode,u=t.queue,i=n.jqplot.effects.effect[t.effect],f=!i&&tt&&n.jqplot.effects[t.effect];return n.fx.off||!(i||f)?r?this[r](t.duration,t.complete):this.each(function(){t.complete&&t.complete.call(this)}):i?u===!1?this.each(e):this.queue(u||"fx",e):f.call(this,{options:t,duration:t.duration,callback:t.complete,mode:t.mode})}});at=/up|down|vertical/;vt=/up|left|vertical|horizontal/;n.jqplot.effects.effect.blind=function(t,i){var r=n(this),s=["position","top","bottom","left","right","height","width"],l=n.jqplot.effects.setMode(r,t.mode||"hide"),a=t.direction||"up",f=at.test(a),e=f?"height":"width",v=f?"top":"left",y=vt.test(a),h={},c=l==="show",u,o,p;r.parent().is(".ui-effects-wrapper")?n.jqplot.effects.save(r.parent(),s):n.jqplot.effects.save(r,s);r.show();p=parseInt(r.css("top"),10);u=n.jqplot.effects.createWrapper(r).css({overflow:"hidden"});o=f?u[e]()+p:u[e]();h[e]=c?String(o):"0";y||(r.css(f?"bottom":"right",0).css(f?"top":"left","").css({position:"absolute"}),h[v]=c?"0":String(o));c&&(u.css(e,0),y||u.css(v,o));u.animate(h,{duration:t.duration,easing:t.easing,queue:!1,complete:function(){l==="hide"&&r.hide();n.jqplot.effects.restore(r,s);n.jqplot.effects.removeWrapper(r);i()}})}})(jQuery),function(n){n.jqplot.CategoryAxisRenderer=function(){n.jqplot.LinearAxisRenderer.call(this);this.sortMergedLabels=!1};n.jqplot.CategoryAxisRenderer.prototype=new n.jqplot.LinearAxisRenderer;n.jqplot.CategoryAxisRenderer.prototype.constructor=n.jqplot.CategoryAxisRenderer;n.jqplot.CategoryAxisRenderer.prototype.init=function(t){var i,f,e,u,r;for(this.groups=1,this.groupLabels=[],this._groupLabels=[],this._grouped=!1,this._barsPerGroup=null,this.reverse=!1,n.extend(!0,this,{tickOptions:{formatString:"%d"}},t),i=this._dataBounds,f=0;f<this._series.length;f++)for(e=this._series[f],e.groups&&(this.groups=e.groups),u=e.data,r=0;r<u.length;r++)this.name=="xaxis"||this.name=="x2axis"?((u[r][0]<i.min||i.min==null)&&(i.min=u[r][0]),(u[r][0]>i.max||i.max==null)&&(i.max=u[r][0])):((u[r][1]<i.min||i.min==null)&&(i.min=u[r][1]),(u[r][1]>i.max||i.max==null)&&(i.max=u[r][1]));this.groupLabels.length&&(this.groups=this.groupLabels.length)};n.jqplot.CategoryAxisRenderer.prototype.createTicks=function(){var tt=this._ticks,e=this.ticks,w=this.name,it=this._dataBounds,b,k,v,o,f,r,y,l,t,i;if(e.length){if(this.groups>1&&!this._grouped){var c=e.length,s=parseInt(c/this.groups,10),d=0;for(t=s;t<c;t+=s)e.splice(t+d,0," "),d++;this._grouped=!0}for(this.min=.5,this.max=e.length+.5,l=this.max-this.min,this.numberTicks=2*e.length+1,t=0;t<e.length;t++)o=this.min+2*t*l/(this.numberTicks-1),i=new this.tickRenderer(this.tickOptions),i.showLabel=!1,i.setTick(o,this.name),this._ticks.push(i),i=new this.tickRenderer(this.tickOptions),i.label=e[t],i.showMark=!1,i.showGridline=!1,i.setTick(o+.5,this.name),this._ticks.push(i);i=new this.tickRenderer(this.tickOptions);i.showLabel=!1;i.setTick(o+1,this.name);this._ticks.push(i)}else{b=w=="xaxis"||w=="x2axis"?this._plotDimensions.width:this._plotDimensions.height;this.min!=null&&this.max!=null&&this.numberTicks!=null&&(this.tickInterval=null);this.min!=null&&this.max!=null&&this.tickInterval!=null&&parseInt((this.max-this.min)/this.tickInterval,10)!=(this.max-this.min)/this.tickInterval&&(this.tickInterval=null);var u=[],a=0,k=.5,v,h,g=!1;for(t=0;t<this._series.length;t++)for(f=this._series[t],r=0;r<f.data.length;r++)h=this.name=="xaxis"||this.name=="x2axis"?f.data[r][0]:f.data[r][1],n.inArray(h,u)==-1&&(g=!0,a+=1,u.push(h));for(g&&this.sortMergedLabels&&(typeof u[0]=="string"?u.sort():u.sort(function(n,t){return n-t})),this.ticks=u,t=0;t<this._series.length;t++)for(f=this._series[t],r=0;r<f.data.length;r++)h=this.name=="xaxis"||this.name=="x2axis"?f.data[r][0]:f.data[r][1],y=n.inArray(h,u)+1,this.name=="xaxis"||this.name=="x2axis"?f.data[r][0]=y:f.data[r][1]=y;if(this.groups>1&&!this._grouped){var c=u.length,s=parseInt(c/this.groups,10),d=0;for(t=s;t<c;t+=s+1)u[t]=" ";this._grouped=!0}v=a+.5;this.numberTicks==null&&(this.numberTicks=2*a+1);l=v-k;this.min=k;this.max=v;var p=0,nt=parseInt(3+b/10,10),s=parseInt(a/nt,10);for(this.tickInterval==null&&(this.tickInterval=l/(this.numberTicks-1)),t=0;t<this.numberTicks;t++)o=this.min+t*this.tickInterval,i=new this.tickRenderer(this.tickOptions),t/2==parseInt(t/2,10)?(i.showLabel=!1,i.showMark=!0):(s>0&&p<s?(i.showLabel=!1,p+=1):(i.showLabel=!0,p=0),i.label=i.formatter(i.formatString,u[(t-1)/2]),i.showMark=!1,i.showGridline=!1),i.setTick(o,this.name),this._ticks.push(i)}};n.jqplot.CategoryAxisRenderer.prototype.draw=function(t,i){var o,e,f,u,r;if(this.show){for(this.renderer.createTicks.call(this),o=0,this._elem&&this._elem.emptyForce(),this._elem=this._elem||n('<div class="jqplot-axis jqplot-'+this.name+'" style="position:absolute;"><\/div>'),this.name=="xaxis"||this.name=="x2axis"?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&&(r=this._label.draw(t,i),r.appendTo(this._elem)),e=this._ticks,u=0;u<e.length;u++)f=e[u],f.showLabel&&(!f.isMinorTick||this.showMinorTicks)&&(r=f.draw(t,i),r.appendTo(this._elem));for(this._groupLabels=[],u=0;u<this.groupLabels.length;u++)r=n('<div style="position:absolute;" class="jqplot-'+this.name+'-groupLabel"><\/div>'),r.html(this.groupLabels[u]),this._groupLabels.push(r),r.appendTo(this._elem)}return this._elem};n.jqplot.CategoryAxisRenderer.prototype.set=function(){var t=0,u,f=0,o=0,s=this._label==null?!1:this._label.show,h,e,r,i,c;if(this.show){for(h=this._ticks,i=0;i<h.length;i++)e=h[i],e.showLabel&&(!e.isMinorTick||this.showMinorTicks)&&(u=this.name=="xaxis"||this.name=="x2axis"?e._elem.outerHeight(!0):e._elem.outerWidth(!0),u>t&&(t=u));for(r=0,i=0;i<this._groupLabels.length;i++)c=this._groupLabels[i],u=this.name=="xaxis"||this.name=="x2axis"?c.outerHeight(!0):c.outerWidth(!0),u>r&&(r=u);s&&(f=this._label._elem.outerWidth(!0),o=this._label._elem.outerHeight(!0));this.name=="xaxis"?(t+=r+o,this._elem.css({height:t+"px",left:"0px",bottom:"0px"})):this.name=="x2axis"?(t+=r+o,this._elem.css({height:t+"px",left:"0px",top:"0px"})):this.name=="yaxis"?(t+=r+f,this._elem.css({width:t+"px",left:"0px",top:"0px"}),s&&this._label.constructor==n.jqplot.AxisLabelRenderer&&this._label._elem.css("width",f+"px")):(t+=r+f,this._elem.css({width:t+"px",right:"0px",top:"0px"}),s&&this._label.constructor==n.jqplot.AxisLabelRenderer&&this._label._elem.css("width",f+"px"))}};n.jqplot.CategoryAxisRenderer.prototype.pack=function(t,i){var b=this._ticks,a=this.max,l=this.min,g=i.max,v=i.min,nt=this._label==null?!1:this._label.show,u,f,o,tt,s,k,d,h,it,p,c,w,e,r;for(var y in t)this._elem.css(y,t[y]);if(this._offsets=i,f=g-v,o=a-l,this.reverse?(this.u2p=function(n){return v+(a-n)*f/o},this.p2u=function(n){return l+(n-v)*o/f},this.name=="xaxis"||this.name=="x2axis"?(this.series_u2p=function(n){return(a-n)*f/o},this.series_p2u=function(n){return n*o/f+a}):(this.series_u2p=function(n){return(l-n)*f/o},this.series_p2u=function(n){return n*o/f+l})):(this.u2p=function(n){return(n-l)*f/o+v},this.p2u=function(n){return(n-v)*o/f+l},this.name=="xaxis"||this.name=="x2axis"?(this.series_u2p=function(n){return(n-l)*f/o},this.series_p2u=function(n){return n*o/f+l}):(this.series_u2p=function(n){return(n-a)*f/o},this.series_p2u=function(n){return n*o/f+a})),this.show)if(this.name=="xaxis"||this.name=="x2axis"){for(u=0;u<b.length;u++)if(r=b[u],r.show&&r.showLabel){if(r.constructor==n.jqplot.CanvasAxisTickRenderer&&r.angle){k=this.name=="xaxis"?1:-1;switch(r.labelPosition){case"auto":s=k*r.angle<0?-r.getWidth()+r._textRenderer.height*Math.sin(-r._textRenderer.angle)/2:-r._textRenderer.height*Math.sin(r._textRenderer.angle)/2;break;case"end":s=-r.getWidth()+r._textRenderer.height*Math.sin(-r._textRenderer.angle)/2;break;case"start":s=-r._textRenderer.height*Math.sin(r._textRenderer.angle)/2;break;case"middle":s=-r.getWidth()/2+r._textRenderer.height*Math.sin(-r._textRenderer.angle)/2;break;default:s=-r.getWidth()/2+r._textRenderer.height*Math.sin(-r._textRenderer.angle)/2}}else s=-r.getWidth()/2;d=this.u2p(r.value)+s+"px";r._elem.css("left",d);r.pack()}for(h=["bottom",0],nt&&(tt=this._label._elem.outerWidth(!0),this._label._elem.css("left",v+f/2-tt/2+"px"),this.name=="xaxis"?(this._label._elem.css("bottom","0px"),h=["bottom",this._label._elem.outerHeight(!0)]):(this._label._elem.css("top","0px"),h=["top",this._label._elem.outerHeight(!0)]),this._label.pack()),p=parseInt(this._ticks.length/this.groups,10)+1,u=0;u<this._groupLabels.length;u++){for(c=0,w=0,e=u*p;e<(u+1)*p;e++)e>=this._ticks.length-1||this._ticks[e]._elem&&this._ticks[e].label!=" "&&(r=this._ticks[e]._elem,y=r.position(),c+=y.left+r.outerWidth(!0)/2,w++);c=c/w;this._groupLabels[u].css({left:c-this._groupLabels[u].outerWidth(!0)/2});this._groupLabels[u].css(h[0],h[1])}}else{for(u=0;u<b.length;u++)if(r=b[u],r.show&&r.showLabel){if(r.constructor==n.jqplot.CanvasAxisTickRenderer&&r.angle){k=this.name=="yaxis"?1:-1;switch(r.labelPosition){case"auto":case"end":s=k*r.angle<0?-r._textRenderer.height*Math.cos(-r._textRenderer.angle)/2:-r.getHeight()+r._textRenderer.height*Math.cos(r._textRenderer.angle)/2;break;case"start":s=r.angle>0?-r._textRenderer.height*Math.cos(-r._textRenderer.angle)/2:-r.getHeight()+r._textRenderer.height*Math.cos(r._textRenderer.angle)/2;break;case"middle":s=-r.getHeight()/2;break;default:s=-r.getHeight()/2}}else s=-r.getHeight()/2;d=this.u2p(r.value)+s+"px";r._elem.css("top",d);r.pack()}for(h=["left",0],nt&&(it=this._label._elem.outerHeight(!0),this._label._elem.css("top",g-f/2-it/2+"px"),this.name=="yaxis"?(this._label._elem.css("left","0px"),h=["left",this._label._elem.outerWidth(!0)]):(this._label._elem.css("right","0px"),h=["right",this._label._elem.outerWidth(!0)]),this._label.pack()),p=parseInt(this._ticks.length/this.groups,10)+1,u=0;u<this._groupLabels.length;u++){for(c=0,w=0,e=u*p;e<(u+1)*p;e++)e>=this._ticks.length-1||this._ticks[e]._elem&&this._ticks[e].label!=" "&&(r=this._ticks[e]._elem,y=r.position(),c+=y.top+r.outerHeight()/2,w++);c=c/w;this._groupLabels[u].css({top:c-this._groupLabels[u].outerHeight()/2});this._groupLabels[u].css(h[0],h[1])}}}}(jQuery),function(n){function u(){var i,r,t;if(this.rendererOptions.barDirection=="horizontal"&&(this._stackAxis="x",this._primaryAxis="_yaxis"),this.rendererOptions.waterfall==!0){for(this._data=n.extend(!0,[],this.data),i=0,r=!this.rendererOptions.barDirection||this.rendererOptions.barDirection==="vertical"||this.transposedData===!1?1:0,t=0;t<this.data.length;t++)i+=this.data[t][r],t>0&&(this.data[t][r]+=this.data[t-1][r]);this.data[this.data.length]=r==1?[this.data.length+1,i]:[i,this.data.length+1];this._data[this._data.length]=r==1?[this._data.length+1,i]:[i,this._data.length+1]}if(this.rendererOptions.groups>1){this.breakOnNull=!0;var f=this.data.length,e=parseInt(f/this.rendererOptions.groups,10),u=0;for(t=e;t<f;t+=e)this.data.splice(t+u,0,[null,null]),this._plotData.splice(t+u,0,[null,null]),this._stackData.splice(t+u,0,[null,null]),u++;for(t=0;t<this.data.length;t++)this._primaryAxis=="_xaxis"?(this.data[t][0]=t+1,this._plotData[t][0]=t+1,this._stackData[t][0]=t+1):(this.data[t][1]=t+1,this._plotData[t][1]=t+1,this._stackData[t][1]=t+1)}}function t(n,i,r,u,f){var e=n,o=n-1,s,c,h=f==="x"?0:1;return e>0?(c=u.series[o]._plotData[i][h],s=r*c<0?t(o,i,r,u,f):u.series[o].gridData[i][h]):s=h===0?u.series[e]._xaxis.series_u2p(0):u.series[e]._yaxis.series_u2p(0),s}function f(){for(var t=0;t<this.series.length;t++)this.series[t].renderer.constructor==n.jqplot.BarRenderer&&this.series[t].highlightMouseOver&&(this.series[t].highlightMouseDown=!1)}function e(){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 n.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(n){i(n.data.plot)})}function r(n,t,i,r){var f=n.series[t],u=n.plugins.barRenderer.highlightCanvas,e;u._ctx.clearRect(0,0,u._ctx.canvas.width,u._ctx.canvas.height);f._highlightedPoint=i;n.plugins.barRenderer.highlightedSeriesIndex=t;e={fillStyle:f.highlightColors[i]};f.renderer.shapeRenderer.draw(u._ctx,r,e);u=null}function i(n){var t=n.plugins.barRenderer.highlightCanvas,i;for(t._ctx.clearRect(0,0,t._ctx.canvas.width,t._ctx.canvas.height),i=0;i<n.series.length;i++)n.series[i]._highlightedPoint=null;n.plugins.barRenderer.highlightedSeriesIndex=null;n.target.trigger("jqplotDataUnhighlight");t=null}function o(n,t,u,f,e){var o,h,s;f?(o=[f.seriesIndex,f.pointIndex,f.data],h=jQuery.Event("jqplotDataMouseOver"),h.pageX=n.pageX,h.pageY=n.pageY,e.target.trigger(h,o),!e.series[o[0]].show||!e.series[o[0]].highlightMouseOver||o[0]==e.plugins.barRenderer.highlightedSeriesIndex&&o[1]==e.series[o[0]]._highlightedPoint||(s=jQuery.Event("jqplotDataHighlight"),s.which=n.which,s.pageX=n.pageX,s.pageY=n.pageY,e.target.trigger(s,o),r(e,f.seriesIndex,f.pointIndex,f.points))):f==null&&i(e)}function s(n,t,u,f,e){var o,s;f?(o=[f.seriesIndex,f.pointIndex,f.data],!e.series[o[0]].highlightMouseDown||o[0]==e.plugins.barRenderer.highlightedSeriesIndex&&o[1]==e.series[o[0]]._highlightedPoint||(s=jQuery.Event("jqplotDataHighlight"),s.which=n.which,s.pageX=n.pageX,s.pageY=n.pageY,e.target.trigger(s,o),r(e,f.seriesIndex,f.pointIndex,f.points))):f==null&&i(e)}function h(n,t,r,u,f){var e=f.plugins.barRenderer.highlightedSeriesIndex;e!=null&&f.series[e].highlightMouseDown&&i(f)}function c(n,t,i,r,u){if(r){var e=[r.seriesIndex,r.pointIndex,r.data],f=jQuery.Event("jqplotDataClick");f.which=n.which;f.pageX=n.pageX;f.pageY=n.pageY;u.target.trigger(f,e)}}function l(n,t,r,u,f){var s,o,e;u&&(s=[u.seriesIndex,u.pointIndex,u.data],o=f.plugins.barRenderer.highlightedSeriesIndex,o!=null&&f.series[o].highlightMouseDown&&i(f),e=jQuery.Event("jqplotDataRightClick"),e.which=n.which,e.pageX=n.pageX,e.pageY=n.pageY,f.target.trigger(e,s))}n.jqplot.BarRenderer=function(){n.jqplot.LineRenderer.call(this)};n.jqplot.BarRenderer.prototype=new n.jqplot.LineRenderer;n.jqplot.BarRenderer.prototype.constructor=n.jqplot.BarRenderer;n.jqplot.BarRenderer.prototype.init=function(t,i){var r,u;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&&t.highlightMouseOver==null&&(t.highlightMouseOver=!1);n.extend(!0,this,t);n.extend(!0,this.renderer,t);this.fill=!0;this.barDirection==="horizontal"&&this.rendererOptions.animation&&this.rendererOptions.animation.direction==null&&(this.renderer.animation.direction="left");this.waterfall&&(this.fillToZero=!1,this.disableStack=!0);this.barDirection=="vertical"?(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=[];this._barPoints=[];r={lineJoin:"miter",lineCap:"round",fill:!0,isarc:!1,strokeStyle:this.color,fillStyle:this.color,closePath:this.fill};this.renderer.shapeRenderer.init(r);u={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(u);i.postInitHooks.addOnce(f);i.postDrawHooks.addOnce(e);i.eventListenerHooks.addOnce("jqplotMouseMove",o);i.eventListenerHooks.addOnce("jqplotMouseDown",s);i.eventListenerHooks.addOnce("jqplotMouseUp",h);i.eventListenerHooks.addOnce("jqplotClick",c);i.eventListenerHooks.addOnce("jqplotRightClick",l)};n.jqplot.preSeriesInitHooks.push(u);n.jqplot.BarRenderer.prototype.calcSeriesNumbers=function(){for(var r=0,u=0,f=this[this._primaryAxis],t,e,i=0;i<f._series.length;i++)t=f._series[i],t===this&&(e=i),t.renderer.constructor==n.jqplot.BarRenderer&&(r+=t.data.length,u+=1);return[r,u,e]};n.jqplot.BarRenderer.prototype.setBarWidth=function(){var i=0,t=0,n=this[this._primaryAxis],u=this._plotSeriesInfo=this.renderer.calcSeriesNumbers.call(this),f,r;return i=u[0],t=u[1],f=n.numberTicks,r=(f-1)/2,this.barWidth=n.name=="xaxis"||n.name=="x2axis"?this._stack?(n._offsets.max-n._offsets.min)/i*t-this.barMargin:((n._offsets.max-n._offsets.min)/r-this.barPadding*(t-1)-this.barMargin*2)/t:this._stack?(n._offsets.min-n._offsets.max)/i*t-this.barMargin:((n._offsets.min-n._offsets.max)/r-this.barPadding*(t-1)-this.barMargin*2)/t,[i,t]};n.jqplot.BarRenderer.prototype.draw=function(i,r,u,f){var h=n.extend({},u),d=h.shadow!=undefined?h.shadow:this.shadow,g=h.showLine!=undefined?h.showLine:this.showLine,it=h.fill!=undefined?h.fill:this.fill,rt=this.xaxis,ut=this.yaxis,ft=this._xaxis.series_u2p,et=this._yaxis.series_u2p,k,s,c,v,l,p,a,e;this._dataColors=[];this._barPoints=[];this.barWidth==null&&this.renderer.setBarWidth.call(this);var a=this._plotSeriesInfo=this.renderer.calcSeriesNumbers.call(this),ot=a[0],nt=a[1],tt=a[2],o=[];if(this._barNudge=this._stack?0:(-Math.abs(nt/2-.5)+tt)*(this.barWidth+this.barPadding),g){var w=new n.jqplot.ColorGenerator(this.negativeSeriesColors),y=new n.jqplot.ColorGenerator(this.seriesColors),b=w.get(this.index);if(this.useNegativeColors||(b=h.fillStyle),k=h.fillStyle,this.barDirection=="vertical")for(e=0;e<r.length;e++)(this._stack||this.data[e][1]!=null)&&(o=[],s=r[e][0]+this._barNudge,v=this._stack&&this._prevGridData.length?t(this.index,e,this._plotData[e][1],f,"y"):this.fillToZero?this._yaxis.series_u2p(0):this.waterfall&&e>0&&e<this.gridData.length-1?this.gridData[e-1][1]:this.waterfall&&e==0&&e<this.gridData.length-1?this._yaxis.min<=0&&this._yaxis.max>=0?this._yaxis.series_u2p(0):this._yaxis.min>0?i.canvas.height:0:this.waterfall&&e==this.gridData.length-1?this._yaxis.min<=0&&this._yaxis.max>=0?this._yaxis.series_u2p(0):this._yaxis.min>0?i.canvas.height:0:i.canvas.height,h.fillStyle=this.fillToZero&&this._plotData[e][1]<0||this.waterfall&&this._data[e][1]<0?this.varyBarColor&&!this._stack?this.useNegativeColors?w.next():y.next():b:this.varyBarColor&&!this._stack?y.next():k,!this.fillToZero||this._plotData[e][1]>=0?(o.push([s-this.barWidth/2,v]),o.push([s-this.barWidth/2,r[e][1]]),o.push([s+this.barWidth/2,r[e][1]]),o.push([s+this.barWidth/2,v])):(o.push([s-this.barWidth/2,r[e][1]]),o.push([s-this.barWidth/2,v]),o.push([s+this.barWidth/2,v]),o.push([s+this.barWidth/2,r[e][1]])),this._barPoints.push(o),d&&!this._stack&&(l=n.extend(!0,{},h),delete l.fillStyle,this.renderer.shadowRenderer.draw(i,o,l)),p=h.fillStyle||this.color,this._dataColors.push(p),this.renderer.shapeRenderer.draw(i,o,h));else if(this.barDirection=="horizontal")for(e=0;e<r.length;e++)(this._stack||this.data[e][0]!=null)&&(o=[],s=r[e][1]-this._barNudge,c,c=this._stack&&this._prevGridData.length?t(this.index,e,this._plotData[e][0],f,"x"):this.fillToZero?this._xaxis.series_u2p(0):this.waterfall&&e>0&&e<this.gridData.length-1?this.gridData[e-1][0]:this.waterfall&&e==0&&e<this.gridData.length-1?this._xaxis.min<=0&&this._xaxis.max>=0?this._xaxis.series_u2p(0):this._xaxis.min>0?0:0:this.waterfall&&e==this.gridData.length-1?this._xaxis.min<=0&&this._xaxis.max>=0?this._xaxis.series_u2p(0):this._xaxis.min>0?0:i.canvas.width:0,h.fillStyle=this.fillToZero&&this._plotData[e][0]<0||this.waterfall&&this._data[e][0]<0?this.varyBarColor&&!this._stack?this.useNegativeColors?w.next():y.next():b:this.varyBarColor&&!this._stack?y.next():k,!this.fillToZero||this._plotData[e][0]>=0?(o.push([c,s+this.barWidth/2]),o.push([c,s-this.barWidth/2]),o.push([r[e][0],s-this.barWidth/2]),o.push([r[e][0],s+this.barWidth/2])):(o.push([r[e][0],s+this.barWidth/2]),o.push([r[e][0],s-this.barWidth/2]),o.push([c,s-this.barWidth/2]),o.push([c,s+this.barWidth/2])),this._barPoints.push(o),d&&!this._stack&&(l=n.extend(!0,{},h),delete l.fillStyle,this.renderer.shadowRenderer.draw(i,o,l)),p=h.fillStyle||this.color,this._dataColors.push(p),this.renderer.shapeRenderer.draw(i,o,h))}if(this.highlightColors.length==0)this.highlightColors=n.jqplot.computeHighlightColors(this._dataColors);else if(typeof this.highlightColors=="string")for(a=this.highlightColors,this.highlightColors=[],e=0;e<this._dataColors.length;e++)this.highlightColors.push(a)};n.jqplot.BarRenderer.prototype.drawShadow=function(n,i,r,u){var s=r!=undefined?r:{},w=s.shadow!=undefined?s.shadow:this.shadow,y=s.showLine!=undefined?s.showLine:this.showLine,b=s.fill!=undefined?s.fill:this.fill,k=this.xaxis,d=this.yaxis,g=this._xaxis.series_u2p,nt=this._yaxis.series_u2p,e,p,a,v,h,c,f,o,l;if(this._stack&&this.shadow&&(this.barWidth==null&&this.renderer.setBarWidth.call(this),h=this._plotSeriesInfo=this.renderer.calcSeriesNumbers.call(this),p=h[0],a=h[1],v=h[2],this._barNudge=this._stack?0:(-Math.abs(a/2-.5)+v)*(this.barWidth+this.barPadding),y))if(this.barDirection=="vertical")for(f=0;f<i.length;f++)this.data[f][1]!=null&&(e=[],o=i[f][0]+this._barNudge,c=this._stack&&this._prevGridData.length?t(this.index,f,this._plotData[f][1],u,"y"):this.fillToZero?this._yaxis.series_u2p(0):n.canvas.height,e.push([o-this.barWidth/2,c]),e.push([o-this.barWidth/2,i[f][1]]),e.push([o+this.barWidth/2,i[f][1]]),e.push([o+this.barWidth/2,c]),this.renderer.shadowRenderer.draw(n,e,s));else if(this.barDirection=="horizontal")for(f=0;f<i.length;f++)this.data[f][0]!=null&&(e=[],o=i[f][1]-this._barNudge,l=this._stack&&this._prevGridData.length?t(this.index,f,this._plotData[f][0],u,"x"):this.fillToZero?this._xaxis.series_u2p(0):0,e.push([l,o+this.barWidth/2]),e.push([i[f][0],o+this.barWidth/2]),e.push([i[f][0],o-this.barWidth/2]),e.push([l,o-this.barWidth/2]),this.renderer.shadowRenderer.draw(n,e,s))}}(jQuery),function(n){function t(t,i){var f=t.plugins.highlighter,o=t.series[i.seriesIndex],e=o.markerRenderer,u=f.markerRenderer;u.style=e.style;u.lineWidth=e.lineWidth+f.lineWidthAdjust;u.size=e.size+f.sizeAdjust;var r=n.jqplot.getColorComponents(e.color),s=[r[0],r[1],r[2]],h=r[3]>=.6?r[3]*.6:r[3]*(2-r[3]);u.color="rgba("+s[0]+","+s[1]+","+s[2]+","+h+")";u.init();u.draw(o.gridData[i.pointIndex][0],o.gridData[i.pointIndex][1],f.highlightCanvas._ctx)}function i(t,i,e){var d=t.plugins.highlighter,c=d._tooltipElem,g=i.highlighter||{},o=n.extend(!0,{},d,g),a,s,k,p,w;if(o.useAxesFormatters){var nt=i._xaxis._ticks[0].formatter,tt=i._yaxis._ticks[0].formatter,it=i._xaxis._ticks[0].formatString,rt=i._yaxis._ticks[0].formatString,s,b=nt(it,e.data[0]),h=[];for(a=1;a<o.yvalues+1;a++)h.push(tt(rt,e.data[a]));if(typeof o.formatString=="string")switch(o.tooltipAxes){case"both":case"xy":h.unshift(b);h.unshift(o.formatString);s=n.jqplot.sprintf.apply(n.jqplot.sprintf,h);break;case"yx":h.push(b);h.unshift(o.formatString);s=n.jqplot.sprintf.apply(n.jqplot.sprintf,h);break;case"x":s=n.jqplot.sprintf.apply(n.jqplot.sprintf,[o.formatString,b]);break;case"y":h.unshift(o.formatString);s=n.jqplot.sprintf.apply(n.jqplot.sprintf,h);break;default:h.unshift(b);h.unshift(o.formatString);s=n.jqplot.sprintf.apply(n.jqplot.sprintf,h)}else switch(o.tooltipAxes){case"both":case"xy":for(s=b,a=0;a<h.length;a++)s+=o.tooltipSeparator+h[a];break;case"yx":for(s="",a=0;a<h.length;a++)s+=h[a]+o.tooltipSeparator;s+=b;break;case"x":s=b;break;case"y":s=h.join(o.tooltipSeparator);break;default:for(s=b,a=0;a<h.length;a++)s+=o.tooltipSeparator+h[a]}}else typeof o.formatString=="string"?s=n.jqplot.sprintf.apply(n.jqplot.sprintf,[o.formatString].concat(e.data)):o.tooltipAxes=="both"||o.tooltipAxes=="xy"?s=n.jqplot.sprintf(o.tooltipFormatString,e.data[0])+o.tooltipSeparator+n.jqplot.sprintf(o.tooltipFormatString,e.data[1]):o.tooltipAxes=="yx"?s=n.jqplot.sprintf(o.tooltipFormatString,e.data[1])+o.tooltipSeparator+n.jqplot.sprintf(o.tooltipFormatString,e.data[0]):o.tooltipAxes=="x"?s=n.jqplot.sprintf(o.tooltipFormatString,e.data[0]):o.tooltipAxes=="y"&&(s=n.jqplot.sprintf(o.tooltipFormatString,e.data[1]));n.isFunction(o.tooltipContentEditor)&&(s=o.tooltipContentEditor(s,e.seriesIndex,e.pointIndex,t));c.html(s);var l={x:e.gridData[0],y:e.gridData[1]},v=0,y=.707;i.markerRenderer.show==!0&&(v=(i.markerRenderer.size+o.sizeAdjust)/2);k=r;i.fillToZero&&i.fill&&e.data[1]<0&&(k=f);switch(k[u[o.tooltipLocation]]){case"nw":p=l.x+t._gridPadding.left-c.outerWidth(!0)-o.tooltipOffset-y*v;w=l.y+t._gridPadding.top-o.tooltipOffset-c.outerHeight(!0)-y*v;break;case"n":p=l.x+t._gridPadding.left-c.outerWidth(!0)/2;w=l.y+t._gridPadding.top-o.tooltipOffset-c.outerHeight(!0)-v;break;case"ne":p=l.x+t._gridPadding.left+o.tooltipOffset+y*v;w=l.y+t._gridPadding.top-o.tooltipOffset-c.outerHeight(!0)-y*v;break;case"e":p=l.x+t._gridPadding.left+o.tooltipOffset+v;w=l.y+t._gridPadding.top-c.outerHeight(!0)/2;break;case"se":p=l.x+t._gridPadding.left+o.tooltipOffset+y*v;w=l.y+t._gridPadding.top+o.tooltipOffset+y*v;break;case"s":p=l.x+t._gridPadding.left-c.outerWidth(!0)/2;w=l.y+t._gridPadding.top+o.tooltipOffset+v;break;case"sw":p=l.x+t._gridPadding.left-c.outerWidth(!0)-o.tooltipOffset-y*v;w=l.y+t._gridPadding.top+o.tooltipOffset+y*v;break;case"w":p=l.x+t._gridPadding.left-c.outerWidth(!0)-o.tooltipOffset-v;w=l.y+t._gridPadding.top-c.outerHeight(!0)/2;break;default:p=l.x+t._gridPadding.left-c.outerWidth(!0)-o.tooltipOffset-y*v;w=l.y+t._gridPadding.top-o.tooltipOffset-c.outerHeight(!0)-y*v}c.css("left",p);c.css("top",w);o.fadeTooltip?c.stop(!0,!0).fadeIn(o.tooltipFadeSpeed):c.show();c=null}function e(n,r,u,f,e){var o=e.plugins.highlighter,c=e.plugins.cursor,h,l,s;o.show&&(f==null&&o.isHighlighting?(h=jQuery.Event("jqplotHighlighterUnhighlight"),e.target.trigger(h),s=o.highlightCanvas._ctx,s.clearRect(0,0,s.canvas.width,s.canvas.height),o.fadeTooltip?o._tooltipElem.fadeOut(o.tooltipFadeSpeed):o._tooltipElem.hide(),o.bringSeriesToFront&&e.restorePreviousSeriesOrder(),o.isHighlighting=!1,o.currentNeighbor=null,s=null):f!=null&&e.series[f.seriesIndex].showHighlight&&!o.isHighlighting?(h=jQuery.Event("jqplotHighlighterHighlight"),h.which=n.which,h.pageX=n.pageX,h.pageY=n.pageY,l=[f.seriesIndex,f.pointIndex,f.data,e],e.target.trigger(h,l),o.isHighlighting=!0,o.currentNeighbor=f,o.showMarker&&t(e,f),e.series[f.seriesIndex].show&&o.showTooltip&&(!c||!c._zoom.started)&&i(e,e.series[f.seriesIndex],f),o.bringSeriesToFront&&e.moveSeriesToFront(f.seriesIndex)):f!=null&&o.isHighlighting&&o.currentNeighbor!=f&&e.series[f.seriesIndex].showHighlight&&(s=o.highlightCanvas._ctx,s.clearRect(0,0,s.canvas.width,s.canvas.height),o.isHighlighting=!0,o.currentNeighbor=f,o.showMarker&&t(e,f),e.series[f.seriesIndex].show&&o.showTooltip&&(!c||!c._zoom.started)&&i(e,e.series[f.seriesIndex],f),o.bringSeriesToFront&&e.moveSeriesToFront(f.seriesIndex)))}n.jqplot.eventListenerHooks.push(["jqplotMouseMove",e]);n.jqplot.Highlighter=function(t){this.show=n.jqplot.config.enablePlugins;this.markerRenderer=new n.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;n.extend(!0,this,t)};var r=["nw","n","ne","e","se","s","sw","w"],u={nw:0,n:1,ne:2,e:3,se:4,s:5,sw:6,w:7},f=["se","s","sw","w","nw","n","ne","e"];n.jqplot.Highlighter.init=function(t,i,r){var u=r||{};this.plugins.highlighter=new n.jqplot.Highlighter(u.highlighter)};n.jqplot.Highlighter.parseOptions=function(){this.showHighlight=!0};n.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 n.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=n(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)};n.jqplot.preInitHooks.push(n.jqplot.Highlighter.init);n.jqplot.preParseSeriesOptionsHooks.push(n.jqplot.Highlighter.parseOptions);n.jqplot.postDrawHooks.push(n.jqplot.Highlighter.postPlotDraw)}(jQuery),function(n){n.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;n.extend(!0,this,t);this.normalizedFontSize=this.normalizeFontSize(this.fontSize);this.setHeight()};n.jqplot.CanvasTextRenderer.prototype.init=function(t){n.extend(!0,this,t);this.normalizedFontSize=this.normalizeFontSize(this.fontSize);this.setHeight()};n.jqplot.CanvasTextRenderer.prototype.normalizeFontSize=function(n){n=String(n);var t=parseFloat(n);return n.indexOf("px")>-1?t/this.pt2px:n.indexOf("pt")>-1?t:n.indexOf("em")>-1?t*12:n.indexOf("%")>-1?t*12/100:t/this.pt2px};n.jqplot.CanvasTextRenderer.prototype.fontWeight2Float=function(n){if(Number(n))return n/400;switch(n){case"normal":return 1;case"bold":return 1.75;case"bolder":return 2.25;case"lighter":return.75;default:return 1}};n.jqplot.CanvasTextRenderer.prototype.getText=function(){return this.text};n.jqplot.CanvasTextRenderer.prototype.setText=function(n,t){return this.text=n,this.setWidth(t),this};n.jqplot.CanvasTextRenderer.prototype.getWidth=function(){return this.width};n.jqplot.CanvasTextRenderer.prototype.setWidth=function(n,t){return this.width=t?t:this.measure(n,this.text),this};n.jqplot.CanvasTextRenderer.prototype.getHeight=function(){return this.height};n.jqplot.CanvasTextRenderer.prototype.setHeight=function(n){return this.height=n?n:this.normalizedFontSize*this.pt2px,this};n.jqplot.CanvasTextRenderer.prototype.letter=function(n){return this.letters[n]};n.jqplot.CanvasTextRenderer.prototype.ascent=function(){return this.normalizedFontSize};n.jqplot.CanvasTextRenderer.prototype.descent=function(){return 7*this.normalizedFontSize/25};n.jqplot.CanvasTextRenderer.prototype.measure=function(n,t){for(var r,u=0,f=t.length,i=0;i<f;i++)r=this.letter(t.charAt(i)),r&&(u+=r.width*this.normalizedFontSize/25*this.fontStretch);return u};n.jqplot.CanvasTextRenderer.prototype.draw=function(n,t){var c=0,l=this.height*.72,v=t.length,r=this.normalizedFontSize/25,u,f,a,o,e,s,y,h,i;for(n.save(),-Math.PI/2<=this.angle&&this.angle<=0||Math.PI*3/2<=this.angle&&this.angle<=Math.PI*2?(u=0,f=-Math.sin(this.angle)*this.width):0<this.angle&&this.angle<=Math.PI/2||-Math.PI*2<=this.angle&&this.angle<=-Math.PI*3/2?(u=Math.sin(this.angle)*this.height,f=0):-Math.PI<this.angle&&this.angle<-Math.PI/2||Math.PI<=this.angle&&this.angle<=Math.PI*3/2?(u=-Math.cos(this.angle)*this.width,f=-Math.sin(this.angle)*this.width-Math.cos(this.angle)*this.height):(-Math.PI*3/2<this.angle&&this.angle<Math.PI||Math.PI/2<this.angle&&this.angle<Math.PI)&&(u=Math.sin(this.angle)*this.height-Math.cos(this.angle)*this.width,f=-Math.cos(this.angle)*this.height),n.strokeStyle=this.fillStyle,n.fillStyle=this.fillStyle,n.translate(u,f),n.rotate(this.angle),n.lineCap="round",a=this.normalizedFontSize>30?2:2+(30-this.normalizedFontSize)/20,n.lineWidth=a*r*this.fontWeight2Float(this.fontWeight),o=0;o<v;o++)if(e=this.letter(t.charAt(o)),e){for(n.beginPath(),s=1,y=0,h=0;h<e.points.length;h++){if(i=e.points[h],i[0]==-1&&i[1]==-1){s=1;continue}s?(n.moveTo(c+i[0]*r*this.fontStretch,l-i[1]*r),s=!1):n.lineTo(c+i[0]*r*this.fontStretch,l-i[1]*r)}n.stroke();c+=e.width*r*this.fontStretch}return n.restore(),0};n.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]]}};n.jqplot.CanvasFontRenderer=function(t){t=t||{};t.pt2px||(t.pt2px=1.5);n.jqplot.CanvasTextRenderer.call(this,t)};n.jqplot.CanvasFontRenderer.prototype=new n.jqplot.CanvasTextRenderer({});n.jqplot.CanvasFontRenderer.prototype.constructor=n.jqplot.CanvasFontRenderer;n.jqplot.CanvasFontRenderer.prototype.measure=function(n,t){var r=this.fontSize+" "+this.fontFamily,i;return n.save(),n.font=r,i=n.measureText(t).width,n.restore(),i};n.jqplot.CanvasFontRenderer.prototype.draw=function(n,t){var f=this.height*.72,i,r,u;n.save();-Math.PI/2<=this.angle&&this.angle<=0||Math.PI*3/2<=this.angle&&this.angle<=Math.PI*2?(i=0,r=-Math.sin(this.angle)*this.width):0<this.angle&&this.angle<=Math.PI/2||-Math.PI*2<=this.angle&&this.angle<=-Math.PI*3/2?(i=Math.sin(this.angle)*this.height,r=0):-Math.PI<this.angle&&this.angle<-Math.PI/2||Math.PI<=this.angle&&this.angle<=Math.PI*3/2?(i=-Math.cos(this.angle)*this.width,r=-Math.sin(this.angle)*this.width-Math.cos(this.angle)*this.height):(-Math.PI*3/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,r=-Math.cos(this.angle)*this.height);n.strokeStyle=this.fillStyle;n.fillStyle=this.fillStyle;u=this.fontSize+" "+this.fontFamily;n.font=u;n.translate(i,r);n.rotate(this.angle);n.fillText(t,0,f);n.restore()}}(jQuery),function(n){n.jqplot.CanvasAxisLabelRenderer=function(t){this.angle=0;this.axis;this.show=!0;this.showLabel=!0;this.label="";this.fontFamily='"Trebuchet MS", Arial, Helvetica, sans-serif';this.fontSize="11pt";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);t.angle==null&&this.axis!="xaxis"&&this.axis!="x2axis"&&(this.angle=-90);var i={fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily};this.pt2px&&(i.pt2px=this.pt2px);this._textRenderer=this.enableFontSupport?n.jqplot.support_canvas_text()?new n.jqplot.CanvasFontRenderer(i):new n.jqplot.CanvasTextRenderer(i):new n.jqplot.CanvasTextRenderer(i)};n.jqplot.CanvasAxisLabelRenderer.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.CanvasAxisLabelRenderer.prototype.getWidth=function(n){if(this._elem)return this._elem.outerWidth(!0);var t=this._textRenderer,i=t.getWidth(n),r=t.getHeight(n);return Math.abs(Math.sin(t.angle)*r)+Math.abs(Math.cos(t.angle)*i)};n.jqplot.CanvasAxisLabelRenderer.prototype.getHeight=function(n){if(this._elem)return this._elem.outerHeight(!0);var t=this._textRenderer,i=t.getWidth(n),r=t.getHeight(n);return Math.abs(Math.cos(t.angle)*r)+Math.abs(Math.sin(t.angle)*i)};n.jqplot.CanvasAxisLabelRenderer.prototype.getAngleRad=function(){return this.angle*Math.PI/180};n.jqplot.CanvasAxisLabelRenderer.prototype.draw=function(t,i){var r,u,f;return this._elem&&(n.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==undefined&&window.G_vmlCanvasManager.uninitElement(this._elem.get(0)),this._elem.emptyForce(),this._elem=null),r=i.canvasManager.getCanvas(),this._textRenderer.setText(this.label,t),u=this.getWidth(t),f=this.getHeight(t),r.width=u,r.height=f,r.style.width=u,r.style.height=f,r=i.canvasManager.initCanvas(r),this._elem=n(r),this._elem.css({position:"absolute"}),this._elem.addClass("jqplot-"+this.axis+"-label"),r=null,this._elem};n.jqplot.CanvasAxisLabelRenderer.prototype.pack=function(){this._textRenderer.draw(this._elem.get(0).getContext("2d"),this.label)}}(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 i={fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily};this.pt2px&&(i.pt2px=this.pt2px);this._textRenderer=this.enableFontSupport?n.jqplot.support_canvas_text()?new n.jqplot.CanvasFontRenderer(i):new n.jqplot.CanvasTextRenderer(i):new n.jqplot.CanvasTextRenderer(i)};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(n){if(this._elem)return this._elem.outerWidth(!0);var t=this._textRenderer,i=t.getWidth(n),r=t.getHeight(n);return Math.abs(Math.sin(t.angle)*r)+Math.abs(Math.cos(t.angle)*i)};n.jqplot.CanvasAxisTickRenderer.prototype.getHeight=function(n){if(this._elem)return this._elem.outerHeight(!0);var t=this._textRenderer,i=t.getWidth(n),r=t.getHeight(n);return Math.abs(Math.cos(t.angle)*r)+Math.abs(Math.sin(t.angle)*i)};n.jqplot.CanvasAxisTickRenderer.prototype.getTop=function(){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(n,t,i){return this.value=n,i&&(this.isMinorTick=!0),this};n.jqplot.CanvasAxisTickRenderer.prototype.draw=function(t,i){var r,u,f;return this.label||(this.label=this.prefix+this.formatter(this.formatString,this.value)),this._elem&&(n.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==undefined&&window.G_vmlCanvasManager.uninitElement(this._elem.get(0)),this._elem.emptyForce(),this._elem=null),r=i.canvasManager.getCanvas(),this._textRenderer.setText(this.label,t),u=this.getWidth(t),f=this.getHeight(t),r.width=u,r.height=f,r.style.width=u,r.style.height=f,r.style.textAlign="left",r.style.position="absolute",r=i.canvasManager.initCanvas(r),this._elem=n(r),this._elem.css(this._styles),this._elem.addClass("jqplot-"+this.axis+"-tick"),r=null,this._elem};n.jqplot.CanvasAxisTickRenderer.prototype.pack=function(){this._textRenderer.draw(this._elem.get(0).getContext("2d"),this.label)}}(jQuery),function(n){function c(n,t,i){for(var f=Number.MAX_VALUE,u,o,s,r=0,c=e.length;r<c;r++)u=Math.abs(i-e[r]),u<f&&(f=u,o=e[r],s=h[r]);return[o,s]}n.jqplot.DateAxisRenderer=function(){n.jqplot.LinearAxisRenderer.call(this);this.date=new n.jsDate};var t=1e3,r=60*t,u=60*r,i=24*u,o=7*i,f=30.4368499*i,s=365.242199*i,h=["%M:%S.%#N","%M:%S.%#N","%M:%S.%#N","%M:%S","%M:%S","%M:%S","%M:%S","%H:%M:%S","%H:%M:%S","%H:%M","%H:%M","%H:%M","%H:%M","%H:%M","%H:%M","%a %H:%M","%a %H:%M","%b %e %H:%M","%b %e %H:%M","%b %e %H:%M","%b %e %H:%M","%v","%v","%v","%v","%v","%v","%v"],e=[.1*t,.2*t,.5*t,t,2*t,5*t,10*t,15*t,30*t,r,2*r,5*r,10*r,15*r,30*r,u,2*u,4*u,6*u,8*u,12*u,i,2*i,3*i,4*i,5*i,o,2*o];n.jqplot.DateAxisRenderer.prototype=new n.jqplot.LinearAxisRenderer;n.jqplot.DateAxisRenderer.prototype.constructor=n.jqplot.DateAxisRenderer;n.jqplot.DateTickFormatter=function(t,i){return t||(t="%Y/%m/%d"),n.jsDate.strftime(i,t)};n.jqplot.DateAxisRenderer.prototype.init=function(t){var u,e,h,s,r,c,l,o,a,f,i,v,p,w,y;for(this.tickOptions.formatter=n.jqplot.DateTickFormatter,this.tickInset=0,this.drawBaseline=!0,this.baselineWidth=null,this.baselineColor=null,this.daTickInterval=null,this._daTickInterval=null,n.extend(!0,this,t),u=this._dataBounds,a=0;a<this._series.length;a++){for(e={intervals:[],frequencies:{},sortedIntervals:[],min:null,max:null,mean:null},h=0,s=this._series[a],r=s.data,c=s._plotData,l=s._stackData,o=0,i=0;i<r.length;i++)this.name=="xaxis"||this.name=="x2axis"?(r[i][0]=new n.jsDate(r[i][0]).getTime(),c[i][0]=new n.jsDate(r[i][0]).getTime(),l[i][0]=new n.jsDate(r[i][0]).getTime(),(r[i][0]!=null&&r[i][0]<u.min||u.min==null)&&(u.min=r[i][0]),(r[i][0]!=null&&r[i][0]>u.max||u.max==null)&&(u.max=r[i][0]),i>0&&(o=Math.abs(r[i][0]-r[i-1][0]),e.intervals.push(o),e.frequencies.hasOwnProperty(o)?e.frequencies[o]+=1:e.frequencies[o]=1),h+=o):(r[i][1]=new n.jsDate(r[i][1]).getTime(),c[i][1]=new n.jsDate(r[i][1]).getTime(),l[i][1]=new n.jsDate(r[i][1]).getTime(),(r[i][1]!=null&&r[i][1]<u.min||u.min==null)&&(u.min=r[i][1]),(r[i][1]!=null&&r[i][1]>u.max||u.max==null)&&(u.max=r[i][1]),i>0&&(o=Math.abs(r[i][1]-r[i-1][1]),e.intervals.push(o),e.frequencies.hasOwnProperty(o)?e.frequencies[o]+=1:e.frequencies[o]=1)),h+=o;if(s.renderer.bands){if(s.renderer.bands.hiData.length)for(f=s.renderer.bands.hiData,i=0,v=f.length;i<v;i++)this.name==="xaxis"||this.name==="x2axis"?(f[i][0]=new n.jsDate(f[i][0]).getTime(),(f[i][0]!=null&&f[i][0]>u.max||u.max==null)&&(u.max=f[i][0])):(f[i][1]=new n.jsDate(f[i][1]).getTime(),(f[i][1]!=null&&f[i][1]>u.max||u.max==null)&&(u.max=f[i][1]));if(s.renderer.bands.lowData.length)for(f=s.renderer.bands.lowData,i=0,v=f.length;i<v;i++)this.name==="xaxis"||this.name==="x2axis"?(f[i][0]=new n.jsDate(f[i][0]).getTime(),(f[i][0]!=null&&f[i][0]<u.min||u.min==null)&&(u.min=f[i][0])):(f[i][1]=new n.jsDate(f[i][1]).getTime(),(f[i][1]!=null&&f[i][1]<u.min||u.min==null)&&(u.min=f[i][1]))}p=0;w=0;for(y in e.frequencies)e.sortedIntervals.push({interval:y,frequency:e.frequencies[y]});e.sortedIntervals.sort(function(n,t){return t.frequency-n.frequency});e.min=n.jqplot.arrayMin(e.intervals);e.max=n.jqplot.arrayMax(e.intervals);e.mean=h/r.length;this._intervalStats.push(e);e=h=s=r=c=l=null}u=null};n.jqplot.DateAxisRenderer.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="");this.daTickInterval=this._daTickInterval};n.jqplot.DateAxisRenderer.prototype.createTicks=function(t){var kt=this._ticks,rt=this.ticks,ct=this.name,k=this._dataBounds,ii=this._intervalStats,nt=this.name.charAt(0)==="x"?this._plotDimensions.width:this._plotDimensions.height,l,lt,at=30,p=1,w=null,d,dt,ut,g,tt,et,ft,b,o,v,vt,ot,st,y,yt,h,ht,ti,pt,wt,bt,u,e,r;if(this.tickInterval!=null&&(Number(this.tickInterval)?w=[Number(this.tickInterval),"seconds"]:typeof this.tickInterval=="string"&&(d=this.tickInterval.split(" "),d.length==1?w=[1,d[0]]:d.length==2&&(w=[d[0],d[1]]))),dt=this.tickInterval,e=new n.jsDate(this.min!=null?this.min:k.min).getTime(),l=new n.jsDate(this.max!=null?this.max:k.max).getTime(),ut=t.plugins.cursor,ut&&ut._zoom&&ut._zoom.zooming&&(this.min=null,this.max=null),g=l-e,this.tickOptions!=null&&this.tickOptions.formatString||(this._overrideFormatString=!0),rt.length){for(u=0;u<rt.length;u++)tt=rt[u],r=new this.tickRenderer(this.tickOptions),tt.constructor==Array?(r.value=new n.jsDate(tt[0]).getTime(),r.label=tt[1],this.showTicks?this.showTickMarks||(r.showMark=!1):(r.showLabel=!1,r.showMark=!1),r.setTick(r.value,this.name),this._ticks.push(r)):(r.value=new n.jsDate(tt).getTime(),this.showTicks?this.showTickMarks||(r.showMark=!1):(r.showLabel=!1,r.showMark=!1),r.setTick(r.value,this.name),this._ticks.push(r));this.numberTicks=rt.length;this.min=this._ticks[0].value;this.max=this._ticks[this.numberTicks-1].value;this.daTickInterval=[(this.max-this.min)/(this.numberTicks-1)/1e3,"seconds"]}else if(this.min==null&&this.max==null&&k.min==k.max){for(et=n.extend(!0,{},this.tickOptions,{name:this.name,value:null}),ft=3e5,this.min=k.min-ft,this.max=k.max+ft,this.numberTicks=3,u=this.min;u<=this.max;u+=ft)et.value=u,r=new this.tickRenderer(et),this._overrideFormatString&&this._autoFormatString!=""&&(r.formatString=this._autoFormatString),r.showLabel=!1,r.showMark=!1,this._ticks.push(r);this.showTicks&&(this._ticks[1].showLabel=!0);this.showTickMarks&&(this._ticks[1].showTickMarks=!0)}else if(this.min==null&&this.max==null)if(b=n.extend(!0,{},this.tickOptions,{name:this.name,value:null}),this.tickInterval||this.numberTicks?this.tickInterval?v=new n.jsDate(0).add(w[0],w[1]).getTime():this.numberTicks&&(o=this.numberTicks,v=(l-e)/(o-1)):(vt=Math.max(nt,at+1),ot=115,this.tickRenderer===n.jqplot.CanvasAxisTickRenderer&&this.tickOptions.angle&&(ot=115-40*Math.abs(Math.sin(this.tickOptions.angle/180*Math.PI))),o=Math.ceil((vt-at)/ot+1),v=(l-e)/(o-1)),v<=19*i){for(st=c(e,l,v),y=st[0],this._autoFormatString=st[1],e=new n.jsDate(e),e=Math.floor((e.getTime()-e.getUtcOffset())/y)*y+e.getUtcOffset(),o=Math.ceil((l-e)/y)+1,this.min=e,this.max=e+(o-1)*y,this.max<l&&(this.max+=y,o+=1),this.tickInterval=y,this.numberTicks=o,u=0;u<o;u++)b.value=this.min+u*y,r=new this.tickRenderer(b),this._overrideFormatString&&this._autoFormatString!=""&&(r.formatString=this._autoFormatString),this.showTicks?this.showTickMarks||(r.showMark=!1):(r.showLabel=!1,r.showMark=!1),this._ticks.push(r);p=this.tickInterval}else if(v<=9*f){this._autoFormatString="%v";h=Math.round(v/f);h<1?h=1:h>6&&(h=6);var a=new n.jsDate(e).setDate(1).setHours(0,0,0,0),gt=new n.jsDate(l),it=new n.jsDate(l).setDate(1).setHours(0,0,0,0);for(gt.getTime()!==it.getTime()&&(it=it.add(1,"month")),yt=it.diff(a,"month"),o=Math.ceil(yt/h)+1,this.min=a.getTime(),this.max=a.clone().add((o-1)*h,"month").getTime(),this.numberTicks=o,u=0;u<o;u++)b.value=u===0?a.getTime():a.add(h,"month").getTime(),r=new this.tickRenderer(b),this._overrideFormatString&&this._autoFormatString!=""&&(r.formatString=this._autoFormatString),this.showTicks?this.showTickMarks||(r.showMark=!1):(r.showLabel=!1,r.showMark=!1),this._ticks.push(r);p=h*f}else{this._autoFormatString="%v";h=Math.round(v/s);h<1&&(h=1);var a=new n.jsDate(e).setMonth(0,1).setHours(0,0,0,0),it=new n.jsDate(l).add(1,"year").setMonth(0,1).setHours(0,0,0,0),ni=it.diff(a,"year");for(o=Math.ceil(ni/h)+1,this.min=a.getTime(),this.max=a.clone().add((o-1)*h,"year").getTime(),this.numberTicks=o,u=0;u<o;u++)b.value=u===0?a.getTime():a.add(h,"year").getTime(),r=new this.tickRenderer(b),this._overrideFormatString&&this._autoFormatString!=""&&(r.formatString=this._autoFormatString),this.showTicks?this.showTickMarks||(r.showMark=!1):(r.showLabel=!1,r.showMark=!1),this._ticks.push(r);p=h*s}else for(nt=ct=="xaxis"||ct=="x2axis"?this._plotDimensions.width:this._plotDimensions.height,this.min!=null&&this.max!=null&&this.numberTicks!=null&&(this.tickInterval=null),this.tickInterval!=null&&w!=null&&(this.daTickInterval=w),e==l&&(ht=432e5,e-=ht,l+=ht),g=l-e,ti=2+parseInt(Math.max(0,nt-100)/100,10),pt=this.min!=null?new n.jsDate(this.min).getTime():e-g/2*(this.padMin-1),wt=this.max!=null?new n.jsDate(this.max).getTime():l+g/2*(this.padMax-1),this.min=pt,this.max=wt,g=this.max-this.min,this.numberTicks==null&&(this.daTickInterval!=null?(bt=new n.jsDate(this.max).diff(this.min,this.daTickInterval[1],!0),this.numberTicks=Math.ceil(bt/this.daTickInterval[0])+1,this.max=new n.jsDate(this.min).add((this.numberTicks-1)*this.daTickInterval[0],this.daTickInterval[1]).getTime()):this.numberTicks=nt>200?parseInt(3+(nt-200)/100,10):2),p=g/(this.numberTicks-1)/1e3,this.daTickInterval==null&&(this.daTickInterval=[p,"seconds"]),u=0;u<this.numberTicks;u++)e=new n.jsDate(this.min),lt=e.add(u*this.daTickInterval[0],this.daTickInterval[1]).getTime(),r=new this.tickRenderer(this.tickOptions),this.showTicks?this.showTickMarks||(r.showMark=!1):(r.showLabel=!1,r.showMark=!1),r.setTick(lt,this.name),this._ticks.push(r);this.tickInset&&(this.min=this.min-this.tickInset*p,this.max=this.max+this.tickInset*p);this._daTickInterval==null&&(this._daTickInterval=this.daTickInterval);kt=null}}(jQuery),function(n){n.fn.jqplotChildText=function(){return n(this).contents().filter(function(){return this.nodeType==3}).text()};n.fn.jqplotGetComputedFontStyle=function(){for(var n,i=window.getComputedStyle?window.getComputedStyle(this[0],""):this[0].currentStyle,r=i["font-style"]?["font-style","font-weight","font-size","font-family"]:["fontStyle","fontWeight","fontSize","fontFamily"],u=[],t=0;t<r.length;++t)n=String(i[r[t]]),n&&n!="normal"&&u.push(n);return u.join(" ")};n.fn.jqplotToImageCanvas=function(t){function tt(t){var i=parseInt(n(t).css("line-height"),10);return isNaN(i)&&(i=parseInt(n(t).css("font-size"),10)*1.2),i}function b(t,i,u,f,e,o){for(var p,w,y=tt(t),b=n(t).innerWidth(),d=n(t).innerHeight(),a=u.split(/\s+/),k=a.length,s="",l=[],v=e,c=f,h=0;h<k;h++)p=s,s+=a[h],p!=""&&i.measureText(s).width>b&&(l.push(h),s="",h--);if(l.length===0)n(t).css("textAlign")==="center"&&(c=f+(o-i.measureText(s).width)/2-r),i.fillText(u,c,e);else{for(s=a.slice(0,l[0]).join(" "),n(t).css("textAlign")==="center"&&(c=f+(o-i.measureText(s).width)/2-r),i.fillText(s,c,v),v+=y,h=1,w=l.length;h<w;h++)s=a.slice(l[h-1],l[h]).join(" "),n(t).css("textAlign")==="center"&&(c=f+(o-i.measureText(s).width)/2-r),i.fillText(s,c,v),v+=y;s=a.slice(l[h-1],a.length).join(" ");n(t).css("textAlign")==="center"&&(c=f+(o-i.measureText(s).width)/2-r);i.fillText(s,c,v)}}function k(t,r,f){var h=t.tagName.toLowerCase(),l=n(t).position(),s=window.getComputedStyle?window.getComputedStyle(t,""):t.currentStyle,e=r+l.left+parseInt(s.marginLeft,10)+parseInt(s.borderLeftWidth,10)+parseInt(s.paddingLeft,10),o=f+l.top+parseInt(s.marginTop,10)+parseInt(s.borderTopWidth,10)+parseInt(s.paddingTop,10),a=u.width,c,v;h!="div"&&h!="span"||n(t).hasClass("jqplot-highlighter-tooltip")?h==="table"&&n(t).hasClass("jqplot-table-legend")?(i.strokeStyle=n(t).css("border-top-color"),i.fillStyle=n(t).css("background-color"),i.fillRect(e,o,n(t).innerWidth(),n(t).innerHeight()),parseInt(n(t).css("border-top-width"),10)>0&&i.strokeRect(e,o,n(t).innerWidth(),n(t).innerHeight()),n(t).find("div.jqplot-table-legend-swatch-outline").each(function(){var t=n(this),r,u;i.strokeStyle=t.css("border-top-color");r=e+t.position().left;u=o+t.position().top;i.strokeRect(r,u,t.innerWidth(),t.innerHeight());r+=parseInt(t.css("padding-left"),10);u+=parseInt(t.css("padding-top"),10);var f=t.innerHeight()-2*parseInt(t.css("padding-top"),10),s=t.innerWidth()-2*parseInt(t.css("padding-left"),10),h=t.children("div.jqplot-table-legend-swatch");i.fillStyle=h.css("background-color");i.fillRect(r,u,s,f)}),n(t).find("td.jqplot-table-legend-label").each(function(){var t=n(this),r=e+t.position().left,u=o+t.position().top+parseInt(t.css("padding-top"),10);i.font=t.jqplotGetComputedFontStyle();i.fillStyle=t.css("color");b(t,i,t.text(),r,u,a)}),v=null):h=="canvas"&&i.drawImage(t,e,o):(n(t).children().each(function(){k(this,e,o)}),c=n(t).jqplotChildText(),c&&(i.font=n(t).jqplotGetComputedFontStyle(),i.fillStyle=n(t).css("color"),b(t,i,c,e,o,a)))}var c,i;t=t||{};var v=t.x_offset==null?0:t.x_offset,y=t.y_offset==null?0:t.y_offset,d=t.backgroundColor==null?"rgb(255,255,255)":t.backgroundColor;if(n(this).width()==0||n(this).height()==0||n.jqplot.use_excanvas)return null;var u=document.createElement("canvas"),f=n(this).outerHeight(!0),e=n(this).outerWidth(!0),p=n(this).offset(),g=p.left,nt=p.top,r=0,o=0,w=["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"],s,h,l,a;for(c=0;c<w.length;c++)n(this).find("."+w[c]).each(function(){s=n(this).offset().top-nt;h=n(this).offset().left-g;a=h+n(this).outerWidth(!0)+r;l=s+n(this).outerHeight(!0)+o;h<-r&&(e=e-r-h,r=-h);s<-o&&(f=f-o-s,o=-s);a>e&&(e=a);l>f&&(f=l)});return u.width=e+Number(v),u.height=f+Number(y),i=u.getContext("2d"),i.save(),i.fillStyle=d,i.fillRect(0,0,u.width,u.height),i.restore(),i.translate(r,o),i.textAlign="left",i.textBaseline="top",n(this).children().each(function(){k(this,v,y)}),u};n.fn.jqplotToImageStr=function(t){var i=n(this).jqplotToImageCanvas(t);return i?i.toDataURL("image/png"):null};n.fn.jqplotToImageElem=function(t){var i=document.createElement("img"),r=n(this).jqplotToImageStr(t);return i.src=r,i};n.fn.jqplotToImageElemStr=function(t){return"<img src="+n(this).jqplotToImageStr(t)+" />"};n.fn.jqplotSaveImage=function(){var t=n(this).jqplotToImageStr({});t&&(window.location.href=t.replace("image/png","image/octet-stream"))};n.fn.jqplotViewImage=function(){var i=n(this).jqplotToImageElemStr({}),r=n(this).jqplotToImageStr({}),t;i&&(t=window.open(""),t.document.open("image/png"),t.document.write(i),t.document.close(),t=null)}}(jQuery);$(document).ready(function(){$.jsDate.regional.fi={monthNames:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],monthNamesShort:["tam","hel","maa","huh","tou","kes","hei","elo","syy","lok","mar","jou"],dayNames:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],dayNamesShort:["sun","maa","tii","kes","tor","per","lau"],formatString:"%d. %M %y %H:%m:%s"};$.jsDate.regional.getLocale()})