"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "resources/flotr2.js" between
squidanalyzer-6.5.tar.gz and squidanalyzer-6.6.tar.gz

About: SquidAnalyzer is a Squid (proxy) log analyzer.

flotr2.js  (squidanalyzer-6.5):flotr2.js  (squidanalyzer-6.6)
skipping to change at line 108 skipping to change at line 108
} }
} }
return val; return val;
} }
function pieTracker(obj) function pieTracker(obj)
{ {
return obj.series.label+': '+round(obj.y); return obj.series.label+': '+round(obj.y);
} }
/*! /* bean.min.js: see https://github.com/darold/squidanalyzer/tree/master/resource
* bean.js - copyright Jacob Thornton 2011 s/LICENSE */
* https://github.com/fat/bean (function(a,c,b){if(typeof module!="undefined"&&module.exports){module.exports=b
* MIT License ()}else{if(typeof define=="function"&&define.amd){define(b)}else{c[a]=b()}}})("b
* special thanks to: ean",this,function(l,O){l=l||"bean";O=O||this;var G=window,H=O[l],t=/[^\.]*(?=\.
* dean edwards: http://dean.edwards.name/ .*)\.|.*/,C=/\..*/,j="addEventListener",a="removeEventListener",g=document||{},u
* dperini: https://github.com/dperini/nwevents =g.documentElement||{},q=u[j],v=q?j:"attachEvent",A={},n=Array.prototype.slice,I
* the entire mootools team: github.com/mootools/mootools-core =function(P,Q){return P.split(Q||" ")},k=function(P){return typeof P=="string"},
*//*global module:true, define:true*/ o=function(P){return typeof P=="function"},z="click dblclick mouseup mousedown c
!function(e,t,n){typeof module!="undefined"?module.exports=n(e,t):typeof define= ontextmenu mousewheel mousemultiwheel DOMMouseScroll mouseover mouseout mousemov
="function"&&typeof define.amd=="object"?define(n):t[e]=n(e,t)}("bean",this,func e selectstart selectend keydown keypress keyup orientationchange focus blur chan
tion(e,t){var n=window,r=t[e],i=/over|out/,s=/[^\.]*(?=\..*)\.|.*/,o=/\..*/,u="a ge reset select submit load unload beforeunload resize move DOMContentLoaded rea
ddEventListener",a="attachEvent",f="removeEventListener",l="detachEvent",c=docum dystatechange message error abort scroll ",c="show input invalid touchstart touc
ent||{},h=c.documentElement||{},p=h[u],d=p?u:a,v=Array.prototype.slice,m=/click| hmove touchend touchcancel gesturestart gesturechange gestureend textinput ready
mouse|menu|drag|drop/i,g=/^touch|^gesture/i,y={one:1},b=function(e,t,n){for(n=0; statechange pageshow pagehide popstate hashchange offline online afterprint befo
n<t.length;n++)e[t[n]]=1;return e}({},("click dblclick mouseup mousedown context reprint dragstart dragenter dragover dragleave drag drop dragend loadstart progr
menu mousewheel DOMMouseScroll mouseover mouseout mousemove selectstart selecten ess suspend emptied stalled loadmetadata loadeddata canplay canplaythrough playi
d keydown keypress keyup orientationchange focus blur change reset select submit ng waiting seeking seeked ended durationchange timeupdate play pause ratechange
load unload beforeunload resize move DOMContentLoaded readystatechange error ab volumechange cuechange checking noupdate downloading cached updateready obsolete
ort scroll "+(p?"show input invalid touchstart touchmove touchend touchcancel ge ",M=(function(R,Q,P){for(P=0;P<Q.length;P++){Q[P]&&(R[Q[P]]=1)}return R}({},I(z
sturestart gesturechange gestureend message readystatechange pageshow pagehide p +(q?c:"")))),y=(function(){var Q="compareDocumentPosition" in u?function(S,R){re
opstate hashchange offline online afterprint beforeprint dragstart dragenter dra turn R.compareDocumentPosition&&(R.compareDocumentPosition(S)&16)===16}:"contain
gover dragleave drag drop dragend loadstart progress suspend emptied stalled loa s" in u?function(S,R){R=R.nodeType===9||R===window?u:R;return R!==S&&R.contains(
dmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended S)}:function(S,R){while(S=S.parentNode){if(S===R){return 1}}return 0},P=function
durationchange timeupdate play pause ratechange volumechange cuechange checking (R){var S=R.relatedTarget;return !S?S==null:(S!==this&&S.prefix!=="xul"&&!/docum
noupdate downloading cached updateready obsolete ":"")).split(" ")),w=function( ent/.test(this.toString())&&!Q(S,this))};return{mouseenter:{base:"mouseover",con
){function e(e,t){while((t=t.parentNode)!==null)if(t===e)return!0;return!1}funct dition:P},mouseleave:{base:"mouseout",condition:P},mousewheel:{base:/Firefox/.te
ion t(t){var n=t.relatedTarget;return n?n!==this&&n.prefix!=="xul"&&!/document/. st(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}}}()),E=(function(){var Y=
test(this.toString())&&!e(this,n):n===null}return{mouseenter:{base:"mouseover",c I("altKey attrChange attrName bubbles cancelable ctrlKey currentTarget detail ev
ondition:t},mouseleave:{base:"mouseout",condition:t},mousewheel:{base:/Firefox/. entPhase getModifierState isTrusted metaKey relatedNode relatedTarget shiftKey s
test(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}}}(),E=function(){var e= rcElement target timeStamp type view which propertyName"),W=Y.concat(I("button b
"altKey attrChange attrName bubbles cancelable ctrlKey currentTarget detail even uttons clientX clientY dataTransfer fromElement offsetX offsetY pageX pageY scre
tPhase getModifierState isTrusted metaKey relatedNode relatedTarget shiftKey src enX screenY toElement")),Q=W.concat(I("wheelDelta wheelDeltaX wheelDeltaY wheelD
Element target timeStamp type view which".split(" "),t=e.concat("button buttons eltaZ axis")),S=Y.concat(I("char charCode key keyCode keyIdentifier keyLocation
clientX clientY dataTransfer fromElement offsetX offsetY pageX pageY screenX scr location")),R=Y.concat(I("data")),X=Y.concat(I("touches targetTouches changedTou
eenY toElement".split(" ")),n=e.concat("char charCode key keyCode".split(" ")),r ches scale rotation")),aa=Y.concat(I("data origin source")),T=Y.concat(I("state"
=e.concat("touches targetTouches changedTouches scale rotation".split(" ")),s="p )),U=/over|out/,P=[{reg:/key/i,fix:function(ab,ac){ac.keyCode=ab.keyCode||ab.whi
reventDefault",o=function(e){return function(){e[s]?e[s]():e.returnValue=!1}},u= ch;return S}},{reg:/click|mouse(?!(.*wheel|scroll))|menu|drag|drop/i,fix:functio
"stopPropagation",a=function(e){return function(){e[u]?e[u]():e.cancelBubble=!0} n(ac,ad,ab){ad.rightClick=ac.which===3||ac.button===2;ad.pos={x:0,y:0};if(ac.pag
},f=function(e){return function(){e[s](),e[u](),e.stopped=!0}},l=function(e,t,n) eX||ac.pageY){ad.clientX=ac.pageX;ad.clientY=ac.pageY}else{if(ac.clientX||ac.cli
{var r,i;for(r=n.length;r--;)i=n[r],!(i in t)&&i in e&&(t[i]=e[i])};return funct entY){ad.clientX=ac.clientX+g.body.scrollLeft+u.scrollLeft;ad.clientY=ac.clientY
ion(p,d){var v={originalEvent:p,isNative:d};if(!p)return v;var y,b=p.type,w=p.ta +g.body.scrollTop+u.scrollTop}}if(U.test(ab)){ad.relatedTarget=ac.relatedTarget|
rget||p.srcElement;v[s]=o(p),v[u]=a(p),v.stop=f(v),v.target=w&&w.nodeType===3?w. |ac[(ab=="mouseover"?"from":"to")+"Element"]}return W}},{reg:/mouse.*(wheel|scro
parentNode:w;if(d){if(b.indexOf("key")!==-1)y=n,v.keyCode=p.which||p.keyCode;els ll)/i,fix:function(){return Q}},{reg:/^text/i,fix:function(){return R}},{reg:/^t
e if(m.test(b)){y=t,v.rightClick=p.which===3||p.button===2,v.pos={x:0,y:0};if(p. ouch|^gesture/i,fix:function(){return X}},{reg:/^message$/i,fix:function(){retur
pageX||p.pageY)v.clientX=p.pageX,v.clientY=p.pageY;else if(p.clientX||p.clientY) n aa}},{reg:/^popstate$/i,fix:function(){return T}},{reg:/.*/,fix:function(){ret
v.clientX=p.clientX+c.body.scrollLeft+h.scrollLeft,v.clientY=p.clientY+c.body.sc urn Y}}],V={},Z=function(ac,af,ab){if(!arguments.length){return}ac=ac||((af.owne
rollTop+h.scrollTop;i.test(b)&&(v.relatedTarget=p.relatedTarget||p[(b==="mouseov rDocument||af.document||af).parentWindow||G).event;this.originalEvent=ac;this.is
er"?"from":"to")+"Element"])}else g.test(b)&&(y=r);l(p,v,y||e)}return v}}(),S=fu Native=ab;this.isBean=true;if(!ac){return}var aj=ac.type,ah=ac.target||ac.srcEle
nction(e,t){return!p&&!t&&(e===c||e===n)?h:e},x=function(){function e(e,t,n,r,i) ment,ag,ae,ad,ai,ak;this.target=ah&&ah.nodeType===3?ah.parentNode:ah;if(ab){ak=V
{this.element=e,this.type=t,this.handler=n,this.original=r,this.namespaces=i,thi [aj];if(!ak){for(ag=0,ae=P.length;ag<ae;ag++){if(P[ag].reg.test(aj)){V[aj]=ak=P[
s.custom=w[t],this.isNative=b[t]&&e[d],this.eventType=p||this.isNative?t:"proper ag].fix;break}}}ai=ak(ac,this,aj);for(ag=ai.length;ag--;){if(!((ad=ai[ag]) in th
tychange",this.customType=!p&&!this.isNative&&t,this.target=S(e,this.isNative),t is)&&ad in ac){this[ad]=ac[ad]}}}};Z.prototype.preventDefault=function(){if(this
his.eventSupport=this.target[d]}return e.prototype={inNamespaces:function(e){var .originalEvent.preventDefault){this.originalEvent.preventDefault()}else{this.ori
t,n;if(!e)return!0;if(!this.namespaces)return!1;for(t=e.length;t--;)for(n=this. ginalEvent.returnValue=false}};Z.prototype.stopPropagation=function(){if(this.or
namespaces.length;n--;)if(e[t]===this.namespaces[n])return!0;return!1},matches:f iginalEvent.stopPropagation){this.originalEvent.stopPropagation()}else{this.orig
unction(e,t,n){return this.element===e&&(!t||this.original===t)&&(!n||this.handl inalEvent.cancelBubble=true}};Z.prototype.stop=function(){this.preventDefault();
er===n)}},e}(),T=function(){var e={},t=function(n,r,i,s,o){if(!r||r==="*")for(va this.stopPropagation();this.stopped=true};Z.prototype.stopImmediatePropagation=f
r u in e)u.charAt(0)==="$"&&t(n,u.substr(1),i,s,o);else{var a=0,f,l=e["$"+r],c=n unction(){if(this.originalEvent.stopImmediatePropagation){this.originalEvent.sto
==="*";if(!l)return;for(f=l.length;a<f;a++)if(c||l[a].matches(n,i,s))if(!o(l[a], pImmediatePropagation()}this.isImmediatePropagationStopped=function(){return tru
l,a,r))return}},n=function(t,n,r){var i,s=e["$"+n];if(s)for(i=s.length;i--;)if(s e}};Z.prototype.isImmediatePropagationStopped=function(){return this.originalEve
[i].matches(t,r,null))return!0;return!1},r=function(e,n,r){var i=[];return t(e,n nt.isImmediatePropagationStopped&&this.originalEvent.isImmediatePropagationStopp
,r,null,function(e){return i.push(e)}),i},i=function(t){return(e["$"+t.type]||(e ed()};Z.prototype.clone=function(ac){var ab=new Z(this,this.element,this.isNativ
["$"+t.type]=[])).push(t),t},s=function(n){t(n.element,n.type,null,n.handler,fun e);ab.currentTarget=ac;return ab};return Z}()),d=function(Q,P){return !q&&!P&&(Q
ction(t,n,r){return n.splice(r,1),n.length===0&&delete e["$"+t.type],!1})},o=fun ===g||Q===G)?u:Q},i=(function(){var Q=function(S,V,X,R){var U=function(Z,Y){retu
ction(){var t,n=[];for(t in e)t.charAt(0)==="$"&&(n=n.concat(e[t]));return n};re rn V.apply(S,R?n.call(Y,Z?0:1).concat(R):Y)},W=function(Z,Y){return V.__beanDel?
turn{has:n,get:r,put:i,del:s,entries:o}}(),N=p?function(e,t,n,r){e[r?u:f](t,n,!1 V.__beanDel.ft(Z.target,S):Y},T=X?function(Y){var Z=W(Y,this);if(X.apply(Z,argum
)}:function(e,t,n,r,i){i&&r&&e["_on"+i]===null&&(e["_on"+i]=0),e[r?a:l]("on"+t,n ents)){if(Y){Y.currentTarget=Z}return U(Y,arguments)}}:function(Y){if(V.__beanDe
)},C=function(e,t,r){return function(i){return i=E(i||((this.ownerDocument||this l){Y=Y.clone(W(Y))}return U(Y,arguments)};T.__beanDel=V.__beanDel;return T},P=fu
.document||this).parentWindow||n).event,!0),t.apply(e,[i].concat(r))}},k=functio nction(V,X,Z,T,S,W,Y){var U=y[X],R;if(X=="unload"){Z=s(b,V,X,Z,T)}if(U){if(U.con
n(e,t,r,i,s,o){return function(u){if(i?i.apply(this,arguments):p?!0:u&&u.propert dition){Z=Q(V,Z,U.condition,W)}X=U.base||X}this.isNative=R=M[X]&&!!V[v];this.cus
yName==="_on"+r||!u)u&&(u=E(u||((this.ownerDocument||this.document||this).parent tomType=!q&&!R&&X;this.element=V;this.type=X;this.original=T;this.namespaces=S;t
Window||n).event,o)),t.apply(e,u&&(!s||s.length===0)?arguments:v.call(arguments, his.eventType=q||R?X:"propertychange";this.target=d(V,R);this[v]=!!this.target[v
u?0:1).concat(s))}},L=function(e,t,n,r,i){return function(){e(t,n,i),r.apply(thi ];this.root=Y;this.handler=Q(V,Z,null,W)};P.prototype.inNamespaces=function(T){v
s,arguments)}},A=function(e,t,n,r){var i,s,u,a=t&&t.replace(o,""),f=T.get(e,a,n) ar S,R,U=0;if(!T){return true}if(!this.namespaces){return false}for(S=T.length;S
;for(i=0,s=f.length;i<s;i++)f[i].inNamespaces(r)&&((u=f[i]).eventSupport&&N(u.ta --;){for(R=this.namespaces.length;R--;){if(T[S]==this.namespaces[R]){U++}}}retur
rget,u.eventType,u.handler,!1,u.type),T.del(u))},O=function(e,t,n,r,i){var u,a=t n T.length===U};P.prototype.matches=function(S,R,T){return this.element===S&&(!R
.replace(o,""),f=t.replace(s,"").split(".");if(T.has(e,a,n))return e;a==="unload ||this.original===R)&&(!T||this.handler===T)};return P}()),K=(function(){var U={
"&&(n=L(A,e,a,n,r)),w[a]&&(w[a].condition&&(n=k(e,n,a,w[a].condition,!0)),a=w[a] },T=function(Z,ac,W,ag,ae,ad){var ab=ae?"r":"$";if(!ac||ac=="*"){for(var ah in U
.base||a),u=T.put(new x(e,a,n,r,f[0]&&f)),u.handler=u.isNative?C(e,u.handler,i): ){if(ah.charAt(0)==ab){T(Z,ah.substr(1),W,ag,ae,ad)}}}else{var Y=0,X,aa=U[ab+ac]
k(e,u.handler,a,!1,i,!1),u.eventSupport&&N(u.target,u.eventType,u.handler,!0,u.c ,af=Z=="*";if(!aa){return}for(X=aa.length;Y<X;Y++){if((af||aa[Y].matches(Z,W,ag)
ustomType)},M=function(e,t,n){return function(r){var i,s,o=typeof e=="string"?n( )&&!ad(aa[Y],aa,Y,ac)){return}}}},S=function(Z,aa,Y,W){var X,ab=U[(W?"r":"$")+aa
e,this):e;for(i=r.target;i&&i!==this;i=i.parentNode)for(s=o.length;s--;)if(o[s]= ];if(ab){for(X=ab.length;X--;){if(!ab[X].root&&ab[X].matches(Z,Y,null)){return t
==i)return t.apply(i,arguments)}},_=function(e,t,n){var r,i,u,a,f,l=A,c=t&&typeo rue}}}return false},R=function(Z,aa,Y,X){var W=[];T(Z,aa,Y,null,X,function(ab){r
f t=="string";if(c&&t.indexOf(" ")>0){t=t.split(" ");for(f=t.length;f--;)_(e,t[f eturn W.push(ab)});return W},V=function(Y){var W=!Y.root&&!this.has(Y.element,Y.
],n);return e}u=c&&t.replace(o,""),u&&w[u]&&(u=w[u].type);if(!t||c){if(a=c&&t.re type,null,false),X=(Y.root?"r":"$")+Y.type;(U[X]||(U[X]=[])).push(Y);return W},Q
place(s,""))a=a.split(".");l(e,u,n,a)}else if(typeof t=="function")l(e,null,t);e =function(W){T(W.element,W.type,null,W.handler,W.root,function(Y,Z,X){Z.splice(X
lse for(r in t)t.hasOwnProperty(r)&&_(e,r,t[r]);return e},D=function(e,t,n,r,i){ ,1);Y.removed=true;if(Z.length===0){delete U[(Y.root?"r":"$")+Y.type]}return fal
var s,o,u,a,f=n,l=n&&typeof n=="string";if(t&&!n&&typeof t=="object")for(s in t) se})},P=function(){var X,W=[];for(X in U){if(X.charAt(0)=="$"){W=W.concat(U[X])}
t.hasOwnProperty(s)&&D.apply(this,[e,s,t[s]]);else{a=arguments.length>3?v.call(a }return W};return{has:S,get:R,put:V,del:Q,entries:P}}()),w,N=function(P){if(!arg
rguments,3):[],o=(l?n:t).split(" "),l&&(n=M(t,f=r,i))&&(a=v.call(a,1)),this===y& uments.length){w=g.querySelectorAll?function(Q,R){return R.querySelectorAll(Q)}:
&(n=L(_,e,t,n,f));for(u=o.length;u--;)O(e,o[u],n,f,a)}return e},P=function(){ret function(){throw new Error("Bean: No selector engine installed")}}else{w=P}},D=f
urn D.apply(y,arguments)},H=p?function(e,t,r){var i=c.createEvent(e?"HTMLEvents" unction(T,S){if(!q&&S&&T&&T.propertyName!="_on"+S){return}var R=K.get(this,S||T.
:"UIEvents");i[e?"initEvent":"initUIEvent"](t,!0,!0,n,1),r.dispatchEvent(i)}:fun type,null,false),P=R.length,Q=0;T=new E(T,this,true);if(S){T.type=S}for(;Q<P&&!T
ction(e,t,n){n=S(n,e),e?n.fireEvent("on"+t,c.createEventObject()):n["_on"+t]++}, .isImmediatePropagationStopped();Q++){if(!R[Q].removed){R[Q].handler.call(this,T
B=function(e,t,n){var r,i,u,a,f,l=t.split(" ");for(r=l.length;r--;){t=l[r].repla )}}},J=q?function(P,Q,R){P[R?j:a](Q,D,false)}:function(P,Q,T,S){var R;if(T){K.pu
ce(o,"");if(a=l[r].replace(s,""))a=a.split(".");if(!a&&!n&&e[d])H(b[t],t,e);else t(R=new i(P,S||Q,function(U){D.call(P,U,S)},D,null,null,true));if(S&&P["_on"+S]=
{f=T.get(e,t),n=[!1].concat(n);for(i=0,u=f.length;i<u;i++)f[i].inNamespaces(a)&& =null){P["_on"+S]=0}R.target.attachEvent("on"+R.eventType,R.handler)}else{R=K.ge
f[i].handler.apply(e,n)}}return e},j=function(e,t,n){var r=0,i=T.get(t,n),s=i.le t(P,S||Q,D,true)[0];if(R){R.target.detachEvent("on"+R.eventType,R.handler);K.del
ngth;for(;r<s;r++)i[r].original&&D(e,i[r].type,i[r].original);return e},F={add:D (R)}}},s=function(T,P,R,Q,S){return function(){Q.apply(this,arguments);T(P,R,S)}
,one:P,remove:_,clone:j,fire:B,noConflict:function(){return t[e]=r,this}};if(n[a },b=function(T,S,X,P){var W=S&&S.replace(C,""),Q=K.get(T,W,null,false),V={},U,R;
]){var I=function(){var e,t=T.entries();for(e in t)t[e].type&&t[e].type!=="unloa for(U=0,R=Q.length;U<R;U++){if((!X||Q[U].original===X)&&Q[U].inNamespaces(P)){K.
d"&&_(t[e].element,t[e].type);n[l]("onunload",I),n.CollectGarbage&&n.CollectGarb del(Q[U]);if(!V[Q[U].eventType]&&Q[U][v]){V[Q[U].eventType]={t:Q[U].eventType,c:
age()};n[a]("onunload",I)}return F}); Q[U].type}}}}for(U in V){if(!K.has(T,V[U].t,null,false)){J(T,V[U].t,false,V[U].c
// Underscore.js 1.1.7 )}}},m=function(P,R){var S=function(V,T){var U,W=k(P)?w(P,T):P;for(;V&&V!==T;V=V
// (c) 2011 Jeremy Ashkenas, DocumentCloud Inc. .parentNode){for(U=W.length;U--;){if(W[U]===V){return V}}}},Q=function(U){var T=
// Underscore is freely distributable under the MIT license. S(U.target,this);if(T){R.apply(T,arguments)}};Q.__beanDel={ft:S,selector:P};retu
// Portions of Underscore are inspired or borrowed from Prototype, rn Q},L=q?function(Q,S,R){var P=g.createEvent(Q?"HTMLEvents":"UIEvents");P[Q?"in
// Oliver Steele's Functional, and John Resig's Micro-Templating. itEvent":"initUIEvent"](S,true,true,G,1);R.dispatchEvent(P)}:function(P,R,Q){Q=d
// For all details and documentation: (Q,P);P?Q.fireEvent("on"+R,g.createEventObject()):Q["_on"+R]++},F=function(T,P,V
// http://documentcloud.github.com/underscore ){var S=k(P),Q,U,W,R;if(S&&P.indexOf(" ")>0){P=I(P);for(R=P.length;R--;){F(T,P[R
],V)}return T}U=S&&P.replace(C,"");if(U&&y[U]){U=y[U].base}if(!P||S){if(W=S&&P.r
(function(){var e=this,t=e._,n={},r=Array.prototype,i=Object.prototype,s=Functio eplace(t,"")){W=I(W,".")}b(T,U,V,W)}else{if(o(P)){b(T,null,P)}else{for(Q in P){i
n.prototype,o=r.slice,u=r.unshift,a=i.toString,f=i.hasOwnProperty,l=r.forEach,c= f(P.hasOwnProperty(Q)){F(T,Q,P[Q])}}}}return T},x=function(Q,Z,P,X){var W,V,T,R,
r.map,h=r.reduce,p=r.reduceRight,d=r.filter,v=r.every,m=r.some,g=r.indexOf,y=r.l U,Y,S;if(P===undefined&&typeof Z=="object"){for(V in Z){if(Z.hasOwnProperty(V)){
astIndexOf,b=Array.isArray,w=Object.keys,E=s.bind,S=function(e){return new k(e)} x.call(this,Q,V,Z[V])}}return}if(!o(P)){W=X;U=n.call(arguments,4);X=m(P,W,w)}els
;typeof module!="undefined"&&module.exports?(module.exports=S,S._=S):e._=S,S.VER e{U=n.call(arguments,3);X=W=P}T=I(Z);if(this===A){X=s(F,Q,Z,X,W)}for(R=T.length;
SION="1.1.7";var x=S.each=S.forEach=function(e,t,r){if(e==null)return;if(l&&e.fo R--;){S=K.put(Y=new i(Q,T[R].replace(C,""),X,W,I(T[R].replace(t,""),"."),U,false
rEach===l)e.forEach(t,r);else if(e.length===+e.length){for(var i=0,s=e.length;i< ));if(Y[v]&&S){J(Q,Y.eventType,true,Y.customType)}}return Q},f=function(R,Q,S,P)
s;i++)if(i in e&&t.call(r,e[i],i,e)===n)return}else for(var o in e)if(f.call(e,o {return x.apply(null,!k(S)?n.call(arguments):[R,S,Q,P].concat(arguments.length>3
)&&t.call(r,e[o],o,e)===n)return};S.map=function(e,t,n){var r=[];return e==null? ?n.call(arguments,5):[]))},h=function(){return x.apply(A,arguments)},r=function(
r:c&&e.map===c?e.map(t,n):(x(e,function(e,i,s){r[r.length]=t.call(n,e,i,s)}),r)} S,X,V){var U=I(X),T,R,Q,W,P;for(T=U.length;T--;){X=U[T].replace(C,"");if(W=U[T].
,S.reduce=S.foldl=S.inject=function(e,t,n,r){var i=n!==void 0;e==null&&(e=[]);if replace(t,"")){W=I(W,".")}if(!W&&!V&&S[v]){L(M[X],X,S)}else{P=K.get(S,X,null,fal
(h&&e.reduce===h)return r&&(t=S.bind(t,r)),i?e.reduce(t,n):e.reduce(t);x(e,funct se);V=[false].concat(V);for(R=0,Q=P.length;R<Q;R++){if(P[R].inNamespaces(W)){P[R
ion(e,s,o){i?n=t.call(r,n,e,s,o):(n=e,i=!0)});if(!i)throw new TypeError("Reduce ].handler.apply(S,V)}}}}return S},p=function(T,W,U){var Q=K.get(W,U,null,false),
of empty array with no initial value");return n},S.reduceRight=S.foldr=function( P=Q.length,S=0,R,V;for(;S<P;S++){if(Q[S].original){R=[T,Q[S].type];if(V=Q[S].han
e,t,n,r){e==null&&(e=[]);if(p&&e.reduceRight===p)return r&&(t=S.bind(t,r)),n!==v dler.__beanDel){R.push(V.selector)}R.push(Q[S].original);x.apply(null,R)}}return
oid 0?e.reduceRight(t,n):e.reduceRight(t);var i=(S.isArray(e)?e.slice():S.toArra T},B={on:x,add:f,one:h,off:F,remove:F,clone:p,fire:r,Event:E,setSelectorEngine:
y(e)).reverse();return S.reduce(i,t,n,r)},S.find=S.detect=function(e,t,n){var r; N,noConflict:function(){O[l]=H;return this}};if(G.attachEvent){var e=function(){
return T(e,function(e,i,s){if(t.call(n,e,i,s))return r=e,!0}),r},S.filter=S.sele var Q,P=K.entries();for(Q in P){if(P[Q].type&&P[Q].type!=="unload"){F(P[Q].eleme
ct=function(e,t,n){var r=[];return e==null?r:d&&e.filter===d?e.filter(t,n):(x(e, nt,P[Q].type)}}G.detachEvent("onunload",e);G.CollectGarbage&&G.CollectGarbage()}
function(e,i,s){t.call(n,e,i,s)&&(r[r.length]=e)}),r)},S.reject=function(e,t,n){ ;G.attachEvent("onunload",e)}N();return B});/* underscore.min.js: see https://gi
var r=[];return e==null?r:(x(e,function(e,i,s){t.call(n,e,i,s)||(r[r.length]=e)} thub.com/darold/squidanalyzer/tree/master/resources/LICENSE */
),r)},S.every=S.all=function(e,t,r){var i=!0;return e==null?i:v&&e.every===v?e.e (function(){var v=this;var k=v._;var I=Array.prototype,g=Object.prototype,n=Func
very(t,r):(x(e,function(e,s,o){if(!(i=i&&t.call(r,e,s,o)))return n}),i)};var T=S tion.prototype;var L=I.push,l=I.slice,c=g.toString,j=g.hasOwnProperty;var s=Arra
.some=S.any=function(e,t,r){t=t||S.identity;var i=!1;return e==null?i:m&&e.some= y.isArray,e=Object.keys,J=n.bind,B=Object.create;var E=function(){};var P=functi
==m?e.some(t,r):(x(e,function(e,s,o){if(i|=t.call(r,e,s,o))return n}),!!i)};S.in on(Q){if(Q instanceof P){return Q}if(!(this instanceof P)){return new P(Q)}this.
clude=S.contains=function(e,t){var n=!1;return e==null?n:g&&e.indexOf===g?e.inde _wrapped=Q};if(typeof exports!=="undefined"){if(typeof module!=="undefined"&&mod
xOf(t)!=-1:(T(e,function(e){if(n=e===t)return!0}),n)},S.invoke=function(e,t){var ule.exports){exports=module.exports=P}exports._=P}else{v._=P}P.VERSION="1.8.3";v
n=o.call(arguments,2);return S.map(e,function(e){return(t.call?t||e:e[t]).apply ar b=function(R,Q,S){if(Q===void 0){return R}switch(S==null?3:S){case 1:return f
(e,n)})},S.pluck=function(e,t){return S.map(e,function(e){return e[t]})},S.max=f unction(T){return R.call(Q,T)};case 2:return function(U,T){return R.call(Q,U,T)}
unction(e,t,n){if(!t&&S.isArray(e))return Math.max.apply(Math,e);var r={computed ;case 3:return function(U,T,V){return R.call(Q,U,T,V)};case 4:return function(T,
:-Infinity};return x(e,function(e,i,s){var o=t?t.call(n,e,i,s):e;o>=r.computed&& V,U,W){return R.call(Q,T,V,U,W)}}return function(){return R.apply(Q,arguments)}}
(r={value:e,computed:o})}),r.value},S.min=function(e,t,n){if(!t&&S.isArray(e))re ;var F=function(R,Q,S){if(R==null){return P.identity}if(P.isFunction(R)){return
turn Math.min.apply(Math,e);var r={computed:Infinity};return x(e,function(e,i,s) b(R,Q,S)}if(P.isObject(R)){return P.matcher(R)}return P.property(R)};P.iteratee=
{var o=t?t.call(n,e,i,s):e;o<r.computed&&(r={value:e,computed:o})}),r.value},S.s function(R,Q){return F(R,Q,Infinity)};var p=function(R,Q){return function(Z){var
ortBy=function(e,t,n){return S.pluck(S.map(e,function(e,r,i){return{value:e,crit X=arguments.length;if(X<2||Z==null){return Z}for(var T=1;T<X;T++){var Y=argumen
eria:t.call(n,e,r,i)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;return ts[T],W=R(Y),S=W.length;for(var V=0;V<S;V++){var U=W[V];if(!Q||Z[U]===void 0){Z[
n<r?-1:n>r?1:0}),"value")},S.groupBy=function(e,t){var n={};return x(e,function( U]=Y[U]}}}return Z}};var C=function(R){if(!P.isObject(R)){return{}}if(B){return
e,r){var i=t(e,r);(n[i]||(n[i]=[])).push(e)}),n},S.sortedIndex=function(e,t,n){n B(R)}E.prototype=R;var Q=new E;E.prototype=null;return Q};var M=function(Q){retu
||(n=S.identity);var r=0,i=e.length;while(r<i){var s=r+i>>1;n(e[s])<n(t)?r=s+1:i rn function(R){return R==null?void 0:R[Q]}};var K=Math.pow(2,53)-1;var O=M("leng
=s}return r},S.toArray=function(e){return e?e.toArray?e.toArray():S.isArray(e)?o th");var D=function(R){var Q=O(R);return typeof Q=="number"&&Q>=0&&Q<=K};P.each=
.call(e):S.isArguments(e)?o.call(e):S.values(e):[]},S.size=function(e){return S. P.forEach=function(U,V,R){V=b(V,R);var Q,T;if(D(U)){for(Q=0,T=U.length;Q<T;Q++){
toArray(e).length},S.first=S.head=function(e,t,n){return t!=null&&!n?o.call(e,0, V(U[Q],Q,U)}}else{var S=P.keys(U);for(Q=0,T=S.length;Q<T;Q++){V(U[S[Q]],S[Q],U)}
t):e[0]},S.rest=S.tail=function(e,t,n){return o.call(e,t==null||n?1:t)},S.last=f }return U};P.map=P.collect=function(V,X,S){X=F(X,S);var U=!D(V)&&P.keys(V),T=(U|
unction(e){return e[e.length-1]},S.compact=function(e){return S.filter(e,functio |V).length,R=Array(T);for(var Q=0;Q<T;Q++){var W=U?U[Q]:Q;R[Q]=X(V[W],W,V)}retur
n(e){return!!e})},S.flatten=function(e){return S.reduce(e,function(e,t){return S n R};function z(Q){function R(W,Y,S,V,T,U){for(;T>=0&&T<U;T+=Q){var X=V?V[T]:T;S
.isArray(t)?e.concat(S.flatten(t)):(e[e.length]=t,e)},[])},S.without=function(e) =Y(S,W[X],X,W)}return S}return function(X,Y,S,U){Y=b(Y,U,4);var W=!D(X)&&P.keys(
{return S.difference(e,o.call(arguments,1))},S.uniq=S.unique=function(e,t){retur X),V=(W||X).length,T=Q>0?0:V-1;if(arguments.length<3){S=X[W?W[T]:T];T+=Q}return
n S.reduce(e,function(e,n,r){if(0==r||(t===!0?S.last(e)!=n:!S.include(e,n)))e[e. R(X,Y,S,W,T,V)}}P.reduce=P.foldl=P.inject=z(1);P.reduceRight=P.foldr=z(-1);P.fin
length]=n;return e},[])},S.union=function(){return S.uniq(S.flatten(arguments))} d=P.detect=function(T,Q,S){var R;if(D(T)){R=P.findIndex(T,Q,S)}else{R=P.findKey(
,S.intersection=S.intersect=function(e){var t=o.call(arguments,1);return S.filte T,Q,S)}if(R!==void 0&&R!==-1){return T[R]}};P.filter=P.select=function(T,Q,S){va
r(S.uniq(e),function(e){return S.every(t,function(t){return S.indexOf(t,e)>=0})} r R=[];Q=F(Q,S);P.each(T,function(W,U,V){if(Q(W,U,V)){R.push(W)}});return R};P.r
)},S.difference=function(e,t){return S.filter(e,function(e){return!S.include(t,e eject=function(S,Q,R){return P.filter(S,P.negate(F(Q)),R)};P.every=P.all=functio
)})},S.zip=function(){var e=o.call(arguments),t=S.max(S.pluck(e,"length")),n=new n(V,Q,S){Q=F(Q,S);var U=!D(V)&&P.keys(V),T=(U||V).length;for(var R=0;R<T;R++){va
Array(t);for(var r=0;r<t;r++)n[r]=S.pluck(e,""+r);return n},S.indexOf=function( r W=U?U[R]:R;if(!Q(V[W],W,V)){return false}}return true};P.some=P.any=function(V
e,t,n){if(e==null)return-1;var r,i;if(n)return r=S.sortedIndex(e,t),e[r]===t?r:- ,Q,S){Q=F(Q,S);var U=!D(V)&&P.keys(V),T=(U||V).length;for(var R=0;R<T;R++){var W
1;if(g&&e.indexOf===g)return e.indexOf(t);for(r=0,i=e.length;r<i;r++)if(e[r]===t =U?U[R]:R;if(Q(V[W],W,V)){return true}}return false};P.contains=P.includes=P.inc
)return r;return-1},S.lastIndexOf=function(e,t){if(e==null)return-1;if(y&&e.last lude=function(T,S,Q,R){if(!D(T)){T=P.values(T)}if(typeof Q!="number"||R){Q=0}ret
IndexOf===y)return e.lastIndexOf(t);var n=e.length;while(n--)if(e[n]===t)return urn P.indexOf(T,S,Q)>=0};P.invoke=function(S,T){var Q=l.call(arguments,2);var R=
n;return-1},S.range=function(e,t,n){arguments.length<=1&&(t=e||0,e=0),n=argument P.isFunction(T);return P.map(S,function(V){var U=R?T:V[T];return U==null?U:U.app
s[2]||1;var r=Math.max(Math.ceil((t-e)/n),0),i=0,s=new Array(r);while(i<r)s[i++] ly(V,Q)})};P.pluck=function(R,Q){return P.map(R,P.property(Q))};P.where=function
=e,e+=n;return s},S.bind=function(e,t){if(e.bind===E&&E)return E.apply(e,o.call( (R,Q){return P.filter(R,P.matcher(Q))};P.findWhere=function(R,Q){return P.find(R
arguments,1));var n=o.call(arguments,2);return function(){return e.apply(t,n.con ,P.matcher(Q))};P.max=function(T,V,Q){var Y=-Infinity,W=-Infinity,X,S;if(V==null
cat(o.call(arguments)))}},S.bindAll=function(e){var t=o.call(arguments,1);return &&T!=null){T=D(T)?T:P.values(T);for(var U=0,R=T.length;U<R;U++){X=T[U];if(X>Y){Y
t.length==0&&(t=S.functions(e)),x(t,function(t){e[t]=S.bind(e[t],e)}),e},S.memo =X}}}else{V=F(V,Q);P.each(T,function(ab,Z,aa){S=V(ab,Z,aa);if(S>W||S===-Infinity
ize=function(e,t){var n={};return t||(t=S.identity),function(){var r=t.apply(thi &&Y===-Infinity){Y=ab;W=S}})}return Y};P.min=function(T,V,Q){var Y=Infinity,W=In
s,arguments);return f.call(n,r)?n[r]:n[r]=e.apply(this,arguments)}},S.delay=func finity,X,S;if(V==null&&T!=null){T=D(T)?T:P.values(T);for(var U=0,R=T.length;U<R;
tion(e,t){var n=o.call(arguments,2);return setTimeout(function(){return e.apply( U++){X=T[U];if(X<Y){Y=X}}}else{V=F(V,Q);P.each(T,function(ab,Z,aa){S=V(ab,Z,aa);
e,n)},t)},S.defer=function(e){return S.delay.apply(S,[e,1].concat(o.call(argumen if(S<W||S===Infinity&&Y===Infinity){Y=ab;W=S}})}return Y};P.shuffle=function(U){
ts,1)))};var N=function(e,t,n){var r;return function(){var i=this,s=arguments,o= var V=D(U)?U:P.values(U);var T=V.length;var Q=Array(T);for(var R=0,S;R<T;R++){S=
function(){r=null,e.apply(i,s)};n&&clearTimeout(r);if(n||!r)r=setTimeout(o,t)}}; P.random(0,R);if(S!==R){Q[R]=Q[S]}Q[S]=V[R]}return Q};P.sample=function(R,S,Q){i
S.throttle=function(e,t){return N(e,t,!1)},S.debounce=function(e,t){return N(e,t f(S==null||Q){if(!D(R)){R=P.values(R)}return R[P.random(R.length-1)]}return P.sh
,!0)},S.once=function(e){var t=!1,n;return function(){return t?n:(t=!0,n=e.apply uffle(R).slice(0,Math.max(0,S))};P.sortBy=function(R,S,Q){S=F(S,Q);return P.pluc
(this,arguments))}},S.wrap=function(e,t){return function(){var n=[e].concat(o.ca k(P.map(R,function(V,T,U){return{value:V,index:T,criteria:S(V,T,U)}}).sort(funct
ll(arguments));return t.apply(this,n)}},S.compose=function(){var e=o.call(argume ion(W,V){var U=W.criteria;var T=V.criteria;if(U!==T){if(U>T||U===void 0){return
nts);return function(){var t=o.call(arguments);for(var n=e.length-1;n>=0;n--)t=[ 1}if(U<T||T===void 0){return -1}}return W.index-V.index}),"value")};var q=functi
e[n].apply(this,t)];return t[0]}},S.after=function(e,t){return function(){if(--e on(Q){return function(T,U,S){var R={};U=F(U,S);P.each(T,function(X,V){var W=U(X,
<1)return t.apply(this,arguments)}},S.keys=w||function(e){if(e!==Object(e))throw V,T);Q(R,X,W)});return R}};P.groupBy=q(function(Q,S,R){if(P.has(Q,R)){Q[R].push(
new TypeError("Invalid object");var t=[];for(var n in e)f.call(e,n)&&(t[t.lengt S)}else{Q[R]=[S]}});P.indexBy=q(function(Q,S,R){Q[R]=S});P.countBy=q(function(Q,
h]=n);return t},S.values=function(e){return S.map(e,S.identity)},S.functions=S.m S,R){if(P.has(Q,R)){Q[R]++}else{Q[R]=1}});P.toArray=function(Q){if(!Q){return[]}
ethods=function(e){var t=[];for(var n in e)S.isFunction(e[n])&&t.push(n);return if(P.isArray(Q)){return l.call(Q)}if(D(Q)){return P.map(Q,P.identity)}return P.v
t.sort()},S.extend=function(e){return x(o.call(arguments,1),function(t){for(var alues(Q)};P.size=function(Q){if(Q==null){return 0}return D(Q)?Q.length:P.keys(Q)
n in t)t[n]!==void 0&&(e[n]=t[n])}),e},S.defaults=function(e){return x(o.call(ar .length};P.partition=function(U,Q,S){Q=F(Q,S);var T=[],R=[];P.each(U,function(W,
guments,1),function(t){for(var n in t)e[n]==null&&(e[n]=t[n])}),e},S.clone=funct V,X){(Q(W,V,X)?T:R).push(W)});return[T,R]};P.first=P.head=P.take=function(S,R,Q)
ion(e){return S.isArray(e)?e.slice():S.extend({},e)},S.tap=function(e,t){return {if(S==null){return void 0}if(R==null||Q){return S[0]}return P.initial(S,S.lengt
t(e),e},S.isEqual=function(e,t){if(e===t)return!0;var n=typeof e,r=typeof t;if(n h-R)};P.initial=function(S,R,Q){return l.call(S,0,Math.max(0,S.length-(R==null||
!=r)return!1;if(e==t)return!0;if(!e&&t||e&&!t)return!1;e._chain&&(e=e._wrapped), Q?1:R)))};P.last=function(S,R,Q){if(S==null){return void 0}if(R==null||Q){return
t._chain&&(t=t._wrapped);if(e.isEqual)return e.isEqual(t);if(t.isEqual)return t. S[S.length-1]}return P.rest(S,Math.max(0,S.length-R))};P.rest=P.tail=P.drop=fun
isEqual(e);if(S.isDate(e)&&S.isDate(t))return e.getTime()===t.getTime();if(S.isN ction(S,R,Q){return l.call(S,R==null||Q?1:R)};P.compact=function(Q){return P.fil
aN(e)&&S.isNaN(t))return!1;if(S.isRegExp(e)&&S.isRegExp(t))return e.source===t.s ter(Q,P.identity)};var x=function(W,S,X,aa){var R=[],Z=0;for(var U=aa||0,Q=O(W);
ource&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multili U<Q;U++){var Y=W[U];if(D(Y)&&(P.isArray(Y)||P.isArguments(Y))){if(!S){Y=x(Y,S,X)
ne;if(n!=="object")return!1;if(e.length&&e.length!==t.length)return!1;var i=S.ke }var T=0,V=Y.length;R.length+=V;while(T<V){R[Z++]=Y[T++]}}else{if(!X){R[Z++]=Y}}
ys(e),s=S.keys(t);if(i.length!=s.length)return!1;for(var o in e)if(!(o in t)||!S }return R};P.flatten=function(R,Q){return x(R,Q,false)};P.without=function(Q){re
.isEqual(e[o],t[o]))return!1;return!0},S.isEmpty=function(e){if(S.isArray(e)||S. turn P.difference(Q,l.call(arguments,1))};P.uniq=P.unique=function(X,T,W,R){if(!
isString(e))return e.length===0;for(var t in e)if(f.call(e,t))return!1;return!0} P.isBoolean(T)){R=W;W=T;T=false}if(W!=null){W=F(W,R)}var Z=[];var Q=[];for(var V
,S.isElement=function(e){return!!e&&e.nodeType==1},S.isArray=b||function(e){retu =0,S=O(X);V<S;V++){var Y=X[V],U=W?W(Y,V,X):Y;if(T){if(!V||Q!==U){Z.push(Y)}Q=U}e
rn a.call(e)==="[object Array]"},S.isObject=function(e){return e===Object(e)},S. lse{if(W){if(!P.contains(Q,U)){Q.push(U);Z.push(Y)}}else{if(!P.contains(Z,Y)){Z.
isArguments=function(e){return!!e&&!!f.call(e,"callee")},S.isFunction=function(e push(Y)}}}}return Z};P.union=function(){return P.uniq(x(arguments,true,true))};P
){return!!(e&&e.constructor&&e.call&&e.apply)},S.isString=function(e){return!!(e .intersection=function(W){var Q=[];var V=arguments.length;for(var S=0,U=O(W);S<U
===""||e&&e.charCodeAt&&e.substr)},S.isNumber=function(e){return!!(e===0||e&&e.t ;S++){var T=W[S];if(P.contains(Q,T)){continue}for(var R=1;R<V;R++){if(!P.contain
oExponential&&e.toFixed)},S.isNaN=function(e){return e!==e},S.isBoolean=function s(arguments[R],T)){break}}if(R===V){Q.push(T)}}return Q};P.difference=function(R
(e){return e===!0||e===!1},S.isDate=function(e){return!!(e&&e.getTimezoneOffset& ){var Q=x(arguments,true,true,1);return P.filter(R,function(S){return !P.contain
&e.setUTCFullYear)},S.isRegExp=function(e){return!(!(e&&e.test&&e.exec)||!e.igno s(Q,S)})};P.zip=function(){return P.unzip(arguments)};P.unzip=function(T){var S=
reCase&&e.ignoreCase!==!1)},S.isNull=function(e){return e===null},S.isUndefined= T&&P.max(T,O).length||0;var Q=Array(S);for(var R=0;R<S;R++){Q[R]=P.pluck(T,R)}re
function(e){return e===void 0},S.noConflict=function(){return e._=t,this},S.iden turn Q};P.object=function(U,R){var Q={};for(var S=0,T=O(U);S<T;S++){if(R){Q[U[S]
tity=function(e){return e},S.times=function(e,t,n){for(var r=0;r<e;r++)t.call(n, ]=R[S]}else{Q[U[S][0]]=U[S][1]}}return Q};function u(Q){return function(V,R,T){R
r)},S.mixin=function(e){x(S.functions(e),function(t){A(t,S[t]=e[t])})};var C=0;S =F(R,T);var U=O(V);var S=Q>0?0:U-1;for(;S>=0&&S<U;S+=Q){if(R(V[S],S,V)){return S
.uniqueId=function(e){var t=C++;return e?e+t:t},S.templateSettings={evaluate:/<% }}return -1}}P.findIndex=u(1);P.findLastIndex=u(-1);P.sortedIndex=function(X,V,W
([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g},S.template=function(e,t){var n=S. ,S){W=F(W,S,1);var U=W(V);var Q=0,T=O(X);while(Q<T){var R=Math.floor((Q+T)/2);if
templateSettings,r="var __p=[],print=function(){__p.push.apply(__p,arguments);}; (W(X[R])<U){Q=R+1}else{T=R}}return Q};function f(Q,R,S){return function(X,W,T){v
with(obj||{}){__p.push('"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(n. ar U=0,V=O(X);if(typeof T=="number"){if(Q>0){U=T>=0?T:Math.max(T+V,U)}else{V=T>=
interpolate,function(e,t){return"',"+t.replace(/\\'/g,"'")+",'"}).replace(n.eval 0?Math.min(T+1,V):T+V+1}}else{if(S&&T&&V){T=S(X,W);return X[T]===W?T:-1}}if(W!==
uate||null,function(e,t){return"');"+t.replace(/\\'/g,"'").replace(/[\r\n\t]/g," W){T=R(l.call(X,U,V),P.isNaN);return T>=0?T+U:-1}for(T=Q>0?U:V-1;T>=0&&T<V;T+=Q)
")+"__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t" {if(X[T]===W){return T}}return -1}}P.indexOf=f(1,P.findIndex,P.sortedIndex);P.la
)+"');}return __p.join('');",i=new Function("obj",r);return t?i(t):i};var k=func stIndexOf=f(-1,P.findLastIndex);P.range=function(V,S,U){if(S==null){S=V||0;V=0}U
tion(e){this._wrapped=e};S.prototype=k.prototype;var L=function(e,t){return t?S( =U||1;var T=Math.max(Math.ceil((S-V)/U),0);var R=Array(T);for(var Q=0;Q<T;Q++,V+
e).chain():e},A=function(e,t){k.prototype[e]=function(){var e=o.call(arguments); =U){R[Q]=V}return R};var y=function(V,S,U,W,T){if(!(W instanceof S)){return V.ap
return u.call(e,this._wrapped),L(t.apply(S,e),this._chain)}};S.mixin(S),x(["pop" ply(U,T)}var R=C(V.prototype);var Q=V.apply(R,T);if(P.isObject(Q)){return Q}retu
,"push","reverse","shift","sort","splice","unshift"],function(e){var t=r[e];k.pr rn R};P.bind=function(T,R){if(J&&T.bind===J){return J.apply(T,l.call(arguments,1
ototype[e]=function(){return t.apply(this._wrapped,arguments),L(this._wrapped,th ))}if(!P.isFunction(T)){throw new TypeError("Bind must be called on a function")
is._chain)}}),x(["concat","join","slice"],function(e){var t=r[e];k.prototype[e]= }var Q=l.call(arguments,2);var S=function(){return y(T,S,R,this,Q.concat(l.call(
function(){return L(t.apply(this._wrapped,arguments),this._chain)}}),k.prototype arguments)))};return S};P.partial=function(R){var S=l.call(arguments,1);var Q=fu
.chain=function(){return this._chain=!0,this},k.prototype.value=function(){retur nction(){var T=0,W=S.length;var U=Array(W);for(var V=0;V<W;V++){U[V]=S[V]===P?ar
n this._wrapped}})(); guments[T++]:S[V]}while(T<arguments.length){U.push(arguments[T++])}return y(R,Q,
/** this,this,U)};return Q};P.bindAll=function(T){var R,S=arguments.length,Q;if(S<=1
* Flotr2 (c) 2012 Carl Sutherland ){throw new Error("bindAll must be passed function names")}for(R=1;R<S;R++){Q=ar
* MIT License guments[R];T[Q]=P.bind(T[Q],T)}return T};P.memoize=function(R,Q){var S=function(
* Special thanks to: V){var U=S.cache;var T=""+(Q?Q.apply(this,arguments):V);if(!P.has(U,T)){U[T]=R.a
* Flotr: http://code.google.com/p/flotr/ (fork) pply(this,arguments)}return U[T]};S.cache={};return S};P.delay=function(R,S){var
* Flot: https://github.com/flot/flot (original fork) Q=l.call(arguments,2);return setTimeout(function(){return R.apply(null,Q)},S)};
*/ P.defer=P.partial(P.delay,P,1);P.throttle=function(R,T,X){var Q,V,Y;var W=null;v
(function(){var e=this,t=this.Flotr,n;n={_:_,bean:bean,isIphone:/iphone/i.test(n ar U=0;if(!X){X={}}var S=function(){U=X.leading===false?0:P.now();W=null;Y=R.app
avigator.userAgent),isIE:navigator.appVersion.indexOf("MSIE")!=-1?parseFloat(nav ly(Q,V);if(!W){Q=V=null}};return function(){var Z=P.now();if(!U&&X.leading===fal
igator.appVersion.split("MSIE")[1]):!1,graphTypes:{},plugins:{},addType:function se){U=Z}var aa=T-(Z-U);Q=this;V=arguments;if(aa<=0||aa>T){if(W){clearTimeout(W);
(e,t){n.graphTypes[e]=t,n.defaultOptions[e]=t.options||{},n.defaultOptions.defau W=null}U=Z;Y=R.apply(Q,V);if(!W){Q=V=null}}else{if(!W&&X.trailing!==false){W=set
ltType=n.defaultOptions.defaultType||e},addPlugin:function(e,t){n.plugins[e]=t,n Timeout(S,aa)}}return Y}};P.debounce=function(S,U,R){var X,W,Q,V,Y;var T=functio
.defaultOptions[e]=t.options||{}},draw:function(e,t,r,i){return i=i||n.Graph,new n(){var Z=P.now()-V;if(Z<U&&Z>=0){X=setTimeout(T,U-Z)}else{X=null;if(!R){Y=S.app
i(e,t,r)},merge:function(e,t){var r,i,s=t||{};for(r in e)i=e[r],i&&typeof i=="o ly(Q,W);if(!X){Q=W=null}}}};return function(){Q=this;W=arguments;V=P.now();var Z
bject"?i.constructor===Array?s[r]=this._.clone(i):i.constructor!==RegExp&&!this. =R&&!X;if(!X){X=setTimeout(T,U)}if(Z){Y=S.apply(Q,W);Q=W=null}return Y}};P.wrap=
_.isElement(i)&&!i.jquery?s[r]=n.merge(i,t?t[r]:undefined):s[r]=i:s[r]=i;return function(Q,R){return P.partial(R,Q)};P.negate=function(Q){return function(){retu
s},clone:function(e){return n.merge(e,{})},getTickSize:function(e,t,r,i){var s=( rn !Q.apply(this,arguments)}};P.compose=function(){var Q=arguments;var R=Q.lengt
r-t)/e,o=n.getMagnitude(s),u=10,a=s/o;return a<1.5?u=1:a<2.25?u=2:a<3?u=i===0?2: h-1;return function(){var T=R;var S=Q[R].apply(this,arguments);while(T--){S=Q[T]
2.5:a<7.5&&(u=5),u*o},defaultTickFormatter:function(e,t){return e+""},defaultTra .call(this,S)}return S}};P.after=function(R,Q){return function(){if(--R<1){retur
ckFormatter:function(e){return"("+e.x+", "+e.y+")"},engineeringNotation:function n Q.apply(this,arguments)}}};P.before=function(S,R){var Q;return function(){if(-
(e,t,n){var r=["Y","Z","E","P","T","G","M","k",""],i=["y","z","a","f","p","n","µ -S>0){Q=R.apply(this,arguments)}if(S<=1){R=null}return Q}};P.once=P.partial(P.be
","m",""],s=r.length;n=n||1e3,t=Math.pow(10,t||2);if(e===0)return 0;if(e>1)while fore,2);var G=!{toString:null}.propertyIsEnumerable("toString");var a=["valueOf"
(s--&&e>=n)e/=n;else{r=i,s=r.length;while(s--&&e<1)e*=n}return Math.round(e*t)/t ,"isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleStr
+r[s]},getMagnitude:function(e){return Math.pow(10,Math.floor(Math.log(e)/Math.L ing"];function d(U,T){var Q=a.length;var R=U.constructor;var S=(P.isFunction(R)&
N10))},toPixel:function(e){return Math.floor(e)+.5},toRad:function(e){return-e*( &R.prototype)||g;var V="constructor";if(P.has(U,V)&&!P.contains(T,V)){T.push(V)}
Math.PI/180)},floorInBase:function(e,t){return t*Math.floor(e/t)},drawText:funct while(Q--){V=a[Q];if(V in U&&U[V]!==S[V]&&!P.contains(T,V)){T.push(V)}}}P.keys=f
ion(e,t,r,i,s){if(!e.fillText){e.drawText(t,r,i,s);return}s=this._.extend({size: unction(S){if(!P.isObject(S)){return[]}if(e){return e(S)}var R=[];for(var Q in S
n.defaultOptions.fontSize,color:"#000000",textAlign:"left",textBaseline:"bottom" ){if(P.has(S,Q)){R.push(Q)}}if(G){d(S,R)}return R};P.allKeys=function(S){if(!P.i
,weight:1,angle:0},s),e.save(),e.translate(r,i),e.rotate(s.angle),e.fillStyle=s. sObject(S)){return[]}var R=[];for(var Q in S){R.push(Q)}if(G){d(S,R)}return R};P
color,e.font=(s.weight>1?"bold ":"")+s.size*1.3+"px sans-serif",e.textAlign=s.te .values=function(U){var T=P.keys(U);var S=T.length;var Q=Array(S);for(var R=0;R<
xtAlign,e.textBaseline=s.textBaseline,e.fillText(t,0,0),e.restore()},getBestText S;R++){Q[R]=U[T[R]]}return Q};P.mapObject=function(V,X,S){X=F(X,S);var U=P.keys(
Align:function(e,t){return t=t||{textAlign:"center",textBaseline:"middle"},e+=n. V),T=U.length,R={},W;for(var Q=0;Q<T;Q++){W=U[Q];R[W]=X(V[W],W,V)}return R};P.pa
getTextAngleFromAlign(t),Math.abs(Math.cos(e))>.01&&(t.textAlign=Math.cos(e)>0?" irs=function(U){var S=P.keys(U);var R=S.length;var T=Array(R);for(var Q=0;Q<R;Q+
right":"left"),Math.abs(Math.sin(e))>.01&&(t.textBaseline=Math.sin(e)>0?"top":"b +){T[Q]=[S[Q],U[S[Q]]]}return T};P.invert=function(U){var Q={};var T=P.keys(U);f
ottom"),t},alignTable:{"right middle":0,"right top":Math.PI/4,"center top":Math. or(var R=0,S=T.length;R<S;R++){Q[U[T[R]]]=T[R]}return Q};P.functions=P.methods=f
PI/2,"left top":3*(Math.PI/4),"left middle":Math.PI,"left bottom":-3*(Math.PI/4) unction(S){var R=[];for(var Q in S){if(P.isFunction(S[Q])){R.push(Q)}}return R.s
,"center bottom":-Math.PI/2,"right bottom":-Math.PI/4,"center middle":0},getText ort()};P.extend=p(P.allKeys);P.extendOwn=P.assign=p(P.keys);P.findKey=function(W
AngleFromAlign:function(e){return n.alignTable[e.textAlign+" "+e.textBaseline]|| ,Q,T){Q=F(Q,T);var V=P.keys(W),S;for(var R=0,U=V.length;R<U;R++){S=V[R];if(Q(W[S
0},noConflict:function(){return e.Flotr=t,this}},e.Flotr=n})(),Flotr.defaultOpti ],S,W)){return S}}};P.pick=function(S,W,Q){var aa={},T=S,V,Z;if(T==null){return
ons={colors:["#00A8F0","#C0D800","#CB4B4B","#4DA74D","#9440ED"],ieBackgroundColo aa}if(P.isFunction(W)){Z=P.allKeys(T);V=b(W,Q)}else{Z=x(arguments,false,false,1)
r:"#FFFFFF",title:null,subtitle:null,shadowSize:4,defaultType:null,HtmlText:!0,f ;V=function(ac,ab,ad){return ab in ad};T=Object(T)}for(var U=0,R=Z.length;U<R;U+
ontColor:"#545454",fontSize:7.5,resolution:1,parseFloat:!0,preventDefault:!0,xax +){var Y=Z[U];var X=T[Y];if(V(X,Y,T)){aa[Y]=X}}return aa};P.omit=function(S,T,Q)
is:{ticks:null,minorTicks:null,showLabels:!0,showMinorLabels:!1,labelsAngle:0,ti {if(P.isFunction(T)){T=P.negate(T)}else{var R=P.map(x(arguments,false,false,1),S
tle:null,titleAngle:0,noTicks:5,minorTickFreq:null,tickFormatter:Flotr.defaultTi tring);T=function(V,U){return !P.contains(R,U)}}return P.pick(S,T,Q)};P.defaults
ckFormatter,tickDecimals:null,min:null,max:null,autoscale:!1,autoscaleMargin:0,c =p(P.allKeys,true);P.create=function(R,S){var Q=C(R);if(S){P.extendOwn(Q,S)}retu
olor:null,mode:"normal",timeFormat:null,timeMode:"UTC",timeUnit:"millisecond",sc rn Q};P.clone=function(Q){if(!P.isObject(Q)){return Q}return P.isArray(Q)?Q.slic
aling:"linear",base:Math.E,titleAlign:"center",margin:!0},x2axis:{},yaxis:{ticks e():P.extend({},Q)};P.tap=function(R,Q){Q(R);return R};P.isMatch=function(R,Q){v
:null,minorTicks:null,showLabels:!0,showMinorLabels:!1,labelsAngle:0,title:null, ar V=P.keys(Q),U=V.length;if(R==null){return !U}var W=Object(R);for(var T=0;T<U;
titleAngle:90,noTicks:5,minorTickFreq:null,tickFormatter:Flotr.defaultTickFormat T++){var S=V[T];if(Q[S]!==W[S]||!(S in W)){return false}}return true};var N=func
ter,tickDecimals:null,min:null,max:null,autoscale:!1,autoscaleMargin:0,color:nul tion(Y,X,R,T){if(Y===X){return Y!==0||1/Y===1/X}if(Y==null||X==null){return Y===
l,scaling:"linear",base:Math.E,titleAlign:"center",margin:!0},y2axis:{titleAngle X}if(Y instanceof P){Y=Y._wrapped}if(X instanceof P){X=X._wrapped}var V=c.call(Y
:270},grid:{color:"#545454",backgroundColor:null,backgroundImage:null,watermarkA );if(V!==c.call(X)){return false}switch(V){case"[object RegExp]":case"[object St
lpha:.4,tickColor:"#DDDDDD",labelMargin:3,verticalLines:!0,minorVerticalLines:nu ring]":return""+Y===""+X;case"[object Number]":if(+Y!==+Y){return +X!==+X}return
ll,horizontalLines:!0,minorHorizontalLines:null,outlineWidth:1,outline:"nsew",ci +Y===0?1/+Y===1/X:+Y===+X;case"[object Date]":case"[object Boolean]":return +Y=
rcular:!1},mouse:{track:!1,trackAll:!1,position:"se",relative:!1,trackFormatter: ==+X}var S=V==="[object Array]";if(!S){if(typeof Y!="object"||typeof X!="object"
Flotr.defaultTrackFormatter,margin:5,lineColor:"#FF3F19",trackDecimals:1,sensibi ){return false}var W=Y.constructor,U=X.constructor;if(W!==U&&!(P.isFunction(W)&&
lity:2,trackY:!0,radius:3,fillColor:null,fillOpacity:.4}},function(){function t( W instanceof W&&P.isFunction(U)&&U instanceof U)&&("constructor" in Y&&"construc
e,t,n,r){this.rgba=["r","g","b","a"];var i=4;while(-1<--i)this[this.rgba[i]]=arg tor" in X)){return false}}R=R||[];T=T||[];var Q=R.length;while(Q--){if(R[Q]===Y)
uments[i]||(i==3?1:0);this.normalize()}var e=Flotr._,n={aqua:[0,255,255],azure:[ {return T[Q]===X}}R.push(Y);T.push(X);if(S){Q=Y.length;if(Q!==X.length){return f
240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42], alse}while(Q--){if(!N(Y[Q],X[Q],R,T)){return false}}}else{var aa=P.keys(Y),Z;Q=a
cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169], a.length;if(P.keys(X).length!==Q){return false}while(Q--){Z=aa[Q];if(!(P.has(X,Z
darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegre )&&N(Y[Z],X[Z],R,T))){return false}}}R.pop();T.pop();return true};P.isEqual=func
en:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0], tion(R,Q){return N(R,Q)};P.isEmpty=function(Q){if(Q==null){return true}if(D(Q)&&
darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,21 (P.isArray(Q)||P.isString(Q)||P.isArguments(Q))){return Q.length===0}return P.ke
5,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,23 ys(Q).length===0};P.isElement=function(Q){return !!(Q&&Q.nodeType===1)};P.isArra
0],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],ligh y=s||function(Q){return c.call(Q)==="[object Array]"};P.isObject=function(R){var
tpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255] Q=typeof R;return Q==="function"||Q==="object"&&!!R};P.each(["Arguments","Funct
,maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255, ion","String","Number","Date","RegExp","Error"],function(Q){P["is"+Q]=function(R
192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192 ){return c.call(R)==="[object "+Q+"]"}});if(!P.isArguments(arguments)){P.isArgum
],white:[255,255,255],yellow:[255,255,0]};t.prototype={scale:function(t,n,r,i){v ents=function(Q){return P.has(Q,"callee")}}if(typeof/./!="function"&&typeof Int8
ar s=4;while(-1<--s)e.isUndefined(arguments[s])||(this[this.rgba[s]]*=arguments[ Array!="object"){P.isFunction=function(Q){return typeof Q=="function"||false}}P.
s]);return this.normalize()},alpha:function(t){return!e.isUndefined(t)&&!e.isNul isFinite=function(Q){return isFinite(Q)&&!isNaN(parseFloat(Q))};P.isNaN=function
l(t)&&(this.a=t),this.normalize()},clone:function(){return new t(this.r,this.b,t (Q){return P.isNumber(Q)&&Q!==+Q};P.isBoolean=function(Q){return Q===true||Q===f
his.g,this.a)},limit:function(e,t,n){return Math.max(Math.min(e,n),t)},normalize alse||c.call(Q)==="[object Boolean]"};P.isNull=function(Q){return Q===null};P.is
:function(){var e=this.limit;return this.r=e(parseInt(this.r,10),0,255),this.g=e Undefined=function(Q){return Q===void 0};P.has=function(R,Q){return R!=null&&j.c
(parseInt(this.g,10),0,255),this.b=e(parseInt(this.b,10),0,255),this.a=e(this.a, all(R,Q)};P.noConflict=function(){v._=k;return this};P.identity=function(Q){retu
0,1),this},distance:function(e){if(!e)return;e=new t.parse(e);var n=0,r=3;while( rn Q};P.constant=function(Q){return function(){return Q}};P.noop=function(){};P.
-1<--r)n+=Math.abs(this[this.rgba[r]]-e[this.rgba[r]]);return n},toString:functi property=M;P.propertyOf=function(Q){return Q==null?function(){}:function(R){retu
on(){return this.a>=1?"rgb("+[this.r,this.g,this.b].join(",")+")":"rgba("+[this. rn Q[R]}};P.matcher=P.matches=function(Q){Q=P.extendOwn({},Q);return function(R)
r,this.g,this.b,this.a].join(",")+")"},contrast:function(){var e=1-(.299*this.r+ {return P.isMatch(R,Q)}};P.times=function(U,T,S){var Q=Array(Math.max(0,U));T=b(
.587*this.g+.114*this.b)/255;return e<.5?"#000000":"#ffffff"}},e.extend(t,{parse T,S,1);for(var R=0;R<U;R++){Q[R]=T(R)}return Q};P.random=function(R,Q){if(Q==nul
:function(e){if(e instanceof t)return e;var r;if(r=/#([a-fA-F0-9]{2})([a-fA-F0-9 l){Q=R;R=0}return R+Math.floor(Math.random()*(Q-R+1))};P.now=Date.now||function(
]{2})([a-fA-F0-9]{2})/.exec(e))return new t(parseInt(r[1],16),parseInt(r[2],16), ){return new Date().getTime()};var r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&qu
parseInt(r[3],16));if(r=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1, ot;","'":"&#x27;","`":"&#x60;"};var m=P.invert(r);var w=function(U){var R=functi
3})\s*\)/.exec(e))return new t(parseInt(r[1],10),parseInt(r[2],10),parseInt(r[3] on(V){return U[V]};var T="(?:"+P.keys(U).join("|")+")";var S=RegExp(T);var Q=Reg
,10));if(r=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(e))return new t(parse Exp(T,"g");return function(V){V=V==null?"":""+V;return S.test(V)?V.replace(Q,R):
Int(r[1]+r[1],16),parseInt(r[2]+r[2],16),parseInt(r[3]+r[3],16));if(r=/rgba\(\s* V}};P.escape=w(r);P.unescape=w(m);P.result=function(Q,S,T){var R=Q==null?void 0:
([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s Q[S];if(R===void 0){R=T}return P.isFunction(R)?R.call(Q):R};var A=0;P.uniqueId=f
*\)/.exec(e))return new t(parseInt(r[1],10),parseInt(r[2],10),parseInt(r[3],10), unction(Q){var R=++A+"";return Q?Q+R:R};P.templateSettings={evaluate:/<%([\s\S]+
parseFloat(r[4]));if(r=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+ ?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var t=/(.)^/;va
)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(e))return new t(parseFloat(r[1])* r h={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"};var
2.55,parseFloat(r[2])*2.55,parseFloat(r[3])*2.55);if(r=/rgba\(\s*([0-9]+(?:\.[0- i=/\\|'|\r|\n|\u2028|\u2029/g;var H=function(Q){return"\\"+h[Q]};P.template=func
9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9 tion(Z,T,W){if(!T&&W){T=W}T=P.defaults({},T,P.templateSettings);var U=RegExp([(T
]+(?:\.[0-9]+)?)\s*\)/.exec(e))return new t(parseFloat(r[1])*2.55,parseFloat(r[2 .escape||t).source,(T.interpolate||t).source,(T.evaluate||t).source].join("|")+"
])*2.55,parseFloat(r[3])*2.55,parseFloat(r[4]));var i=(e+"").replace(/^\s*([\S\s |$","g");var V=0;var Q="__p+='";Z.replace(U,function(ab,ac,aa,ae,ad){Q+=Z.slice(
]*?)\s*$/,"$1").toLowerCase();return i=="transparent"?new t(255,255,255,0):(r=n[ V,ad).replace(i,H);V=ad+ab.length;if(ac){Q+="'+\n((__t=("+ac+"))==null?'':_.esca
i])?new t(r[0],r[1],r[2]):new t(0,0,0,0)},processColor:function(n,r){var i=r.opa pe(__t))+\n'"}else{if(aa){Q+="'+\n((__t=("+aa+"))==null?'':__t)+\n'"}else{if(ae)
city;if(!n)return"rgba(0, 0, 0, 0)";if(n instanceof t)return n.alpha(i).toString {Q+="';\n"+ae+"\n__p+='"}}}return ab});Q+="';\n";if(!T.variable){Q="with(obj||{}
();if(e.isString(n))return t.parse(n).alpha(i).toString();var s=n.colors?n:{colo ){\n"+Q+"}\n"}Q="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=_
rs:n};if(!r.ctx)return e.isArray(s.colors)?t.parse(e.isArray(s.colors[0])?s.colo _j.call(arguments,'');};\n"+Q+"return __p;\n";try{var S=new Function(T.variable|
rs[0][1]:s.colors[0]).alpha(i).toString():"rgba(0, 0, 0, 0)";s=e.extend({start:" |"obj","_",Q)}catch(X){X.source=Q;throw X}var Y=function(aa){return S.call(this,
top",end:"bottom"},s),/top/i.test(s.start)&&(r.x1=0),/left/i.test(s.start)&&(r.y aa,P)};var R=T.variable||"obj";Y.source="function("+R+"){\n"+Q+"}";return Y};P.c
1=0),/bottom/i.test(s.end)&&(r.x2=0),/right/i.test(s.end)&&(r.y2=0);var o,u,a,f= hain=function(R){var Q=P(R);Q._chain=true;return Q};var o=function(Q,R){return Q
r.ctx.createLinearGradient(r.x1,r.y1,r.x2,r.y2);for(o=0;o<s.colors.length;o++)u= ._chain?P(R).chain():R};P.mixin=function(Q){P.each(P.functions(Q),function(R){va
s.colors[o],e.isArray(u)?(a=u[0],u=u[1]):a=o/(s.colors.length-1),f.addColorStop( r S=P[R]=Q[R];P.prototype[R]=function(){var T=[this._wrapped];L.apply(T,argument
a,t.parse(u).alpha(i));return f}}),Flotr.Color=t}(),Flotr.Date={set:function(e,t s);return o(this,S.apply(P,T))}})};P.mixin(P);P.each(["pop","push","reverse","sh
,n,r){n=n||"UTC",t="set"+(n==="UTC"?"UTC":"")+t,e[t](r)},get:function(e,t,n){ret ift","sort","splice","unshift"],function(Q){var R=I[Q];P.prototype[Q]=function()
urn n=n||"UTC",t="get"+(n==="UTC"?"UTC":"")+t,e[t]()},format:function(e,t,n){fun {var S=this._wrapped;R.apply(S,arguments);if((Q==="shift"||Q==="splice")&&S.leng
ction s(e){return e+="",e.length==1?"0"+e:e}if(!e)return;var r=this.get,i={h:r(e th===0){delete S[0]}return o(this,S)}});P.each(["concat","join","slice"],functio
,"Hours",n).toString(),H:s(r(e,"Hours",n)),M:s(r(e,"Minutes",n)),S:s(r(e,"Second n(Q){var R=I[Q];P.prototype[Q]=function(){return o(this,R.apply(this._wrapped,ar
s",n)),s:r(e,"Milliseconds",n),d:r(e,"Date",n).toString(),m:(r(e,"Month",n)+1).t guments))}});P.prototype.value=function(){return this._wrapped};P.prototype.valu
oString(),y:r(e,"FullYear",n).toString(),b:Flotr.Date.monthNames[r(e,"Month",n)] eOf=P.prototype.toJSON=P.prototype.value;P.prototype.toString=function(){return"
},o=[],u,a=!1;for(var f=0;f<t.length;++f)u=t.charAt(f),a?(o.push(i[u]||u),a=!1): "+this._wrapped};if(typeof define==="function"&&define.amd){define("underscore",
u=="%"?a=!0:o.push(u);return o.join("")},getFormat:function(e,t){var n=Flotr.Dat [],function(){return P})}}.call(this));/* flotr2.min.js: see https://github.com/
e.timeUnits;return e<n.second?"%h:%M:%S.%s":e<n.minute?"%h:%M:%S":e<n.day?t<2*n. darold/squidanalyzer/tree/master/resources/LICENSE */
day?"%h:%M":"%b %d %h:%M":e<n.month?"%b %d":e<n.year?t<n.year?"%b":"%b %y":"%y"} (function(){var b=this,c=this.Flotr,a;a={_:_,bean:bean,isIphone:/iphone/i.test(n
,formatter:function(e,t){var n=t.options,r=Flotr.Date.timeUnits[n.timeUnit],i=ne avigator.userAgent),isIE:(navigator.appVersion.indexOf("MSIE")!=-1?parseFloat(na
w Date(e*r);if(t.options.timeFormat)return Flotr.Date.format(i,n.timeFormat,n.ti vigator.appVersion.split("MSIE")[1]):false),graphTypes:{},plugins:{},addType:fun
meMode);var s=(t.max-t.min)*r,o=t.tickSize*Flotr.Date.timeUnits[t.tickUnit];retu ction(d,e){a.graphTypes[d]=e;a.defaultOptions[d]=e.options||{};a.defaultOptions.
rn Flotr.Date.format(i,Flotr.Date.getFormat(o,s),n.timeMode)},generator:function defaultType=a.defaultOptions.defaultType||d},addPlugin:function(d,e){a.plugins[d
(e){function y(e){t(m,e,o,Flotr.floorInBase(n(m,e,o),h))}var t=this.set,n=this.g ]=e;a.defaultOptions[d]=e.options||{}},draw:function(e,f,d,g){g=g||a.Graph;retur
et,r=this.timeUnits,i=this.spec,s=e.options,o=s.timeMode,u=r[s.timeUnit],a=e.min n new g(e,f,d)},merge:function(h,f){var g,e,d=f||{};for(g in h){e=h[g];if(e&&typ
*u,f=e.max*u,l=(f-a)/s.noTicks,c=[],h=e.tickSize,p,d,v;d=s.tickFormatter===Flotr eof(e)==="object"){if(e.constructor===Array){d[g]=this._.clone(e)}else{if(e.cons
.defaultTickFormatter?this.formatter:s.tickFormatter;for(v=0;v<i.length-1;++v){v tructor!==RegExp&&!this._.isElement(e)&&!e.jquery){d[g]=a.merge(e,(f?f[g]:undefi
ar m=i[v][0]*r[i[v][1]];if(l<(m+i[v+1][0]*r[i[v+1][1]])/2&&m>=h)break}h=i[v][0], ned))}else{d[g]=e}}}else{d[g]=e}}return d},clone:function(d){return a.merge(d,{}
p=i[v][1],p=="year"&&(h=Flotr.getTickSize(s.noTicks*r.year,a,f,0),h==.5&&(p="mon )},getTickSize:function(h,g,d,e){var l=(d-g)/h,k=a.getMagnitude(l),j=10,f=l/k;if
th",h=6)),e.tickUnit=p,e.tickSize=h;var g=h*r[p];m=new Date(a);switch(p){case"mi (f<1.5){j=1}else{if(f<2.25){j=2}else{if(f<3){j=((e===0)?2:2.5)}else{if(f<7.5){j=
llisecond":y("Milliseconds");break;case"second":y("Seconds");break;case"minute": 5}}}}return j*k},defaultTickFormatter:function(e,d){return e+""},defaultTrackFor
y("Minutes");break;case"hour":y("Hours");break;case"month":y("Month");break;case matter:function(d){return"("+d.x+", "+d.y+")"},engineeringNotation:function(h,d,
"year":y("FullYear")}g>=r.second&&t(m,"Milliseconds",o,0),g>=r.minute&&t(m,"Seco g){var f=["Y","Z","E","P","T","G","M","k",""],j=["y","z","a","f","p","n","µ","m"
nds",o,0),g>=r.hour&&t(m,"Minutes",o,0),g>=r.day&&t(m,"Hours",o,0),g>=r.day*4&&t ,""],e=f.length;g=g||1000;d=Math.pow(10,d||2);if(h===0){return 0}if(h>1){while(e
(m,"Date",o,1),g>=r.year&&t(m,"Month",o,0);var b=0,w=NaN,E;do{E=w,w=m.getTime(), --&&(h>=g)){h/=g}}else{f=j;e=f.length;while(e--&&(h<1)){h*=g}}return(Math.round(
c.push({v:w/u,label:d(w/u,e)});if(p=="month")if(h<1){t(m,"Date",o,1);var S=m.get h*d)/d)+f[e]},getMagnitude:function(d){return Math.pow(10,Math.floor(Math.log(d)
Time();t(m,"Month",o,n(m,"Month",o)+1);var x=m.getTime();m.setTime(w+b*r.hour+(x /Math.LN10))},toPixel:function(d){return Math.floor(d)+0.5},toRad:function(d){re
-S)*h),b=n(m,"Hours",o),t(m,"Hours",o,0)}else t(m,"Month",o,n(m,"Month",o)+h);el turn -d*(Math.PI/180)},floorInBase:function(e,d){return d*Math.floor(e/d)},drawT
se p=="year"?t(m,"FullYear",o,n(m,"FullYear",o)+h):m.setTime(w+g)}while(w<f&&w!= ext:function(e,g,d,h,f){if(!e.fillText){e.drawText(g,d,h,f);return}f=this._.exte
E);return c},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5, nd({size:a.defaultOptions.fontSize,color:"#000000",textAlign:"left",textBaseline
month:2592e6,year:31556952e3},spec:[[1,"millisecond"],[20,"millisecond"],[50,"mi :"bottom",weight:1,angle:0},f);e.save();e.translate(d,h);e.rotate(f.angle);e.fil
llisecond"],[100,"millisecond"],[200,"millisecond"],[500,"millisecond"],[1,"seco lStyle=f.color;e.font=(f.weight>1?"bold ":"")+(f.size*1.3)+"px sans-serif";e.tex
nd"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minu tAlign=f.textAlign;e.textBaseline=f.textBaseline;e.fillText(g,0,0);e.restore()},
te"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,"hour"],[4,"hour"],[ getBestTextAlign:function(e,d){d=d||{textAlign:"center",textBaseline:"middle"};e
8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[.25,"month"],[.5,"month"],[ +=a.getTextAngleFromAlign(d);if(Math.abs(Math.cos(e))>0.01){d.textAlign=(Math.co
1,"month"],[2,"month"],[3,"month"],[6,"month"],[1,"year"]],monthNames:["Jan","Fe s(e)>0?"right":"left")}if(Math.abs(Math.sin(e))>0.01){d.textBaseline=(Math.sin(e
b","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},function(){func )>0?"top":"bottom")}return d},alignTable:{"right middle":0,"right top":Math.PI/4
tion t(e){return e&&e.jquery?e[0]:e}var e=Flotr._;Flotr.DOM={addClass:function(n ,"center top":Math.PI/2,"left top":3*(Math.PI/4),"left middle":Math.PI,"left bot
,r){n=t(n);var i=n.className?n.className:"";if(e.include(i.split(/\s+/g),r))retu tom":-3*(Math.PI/4),"center bottom":-Math.PI/2,"right bottom":-Math.PI/4,"center
rn;n.className=(i?i+" ":"")+r},create:function(e){return document.createElement( middle":0},getTextAngleFromAlign:function(d){return a.alignTable[d.textAlign+"
e)},node:function(e){var t=Flotr.DOM.create("div"),n;return t.innerHTML=e,n=t.ch "+d.textBaseline]||0},noConflict:function(){b.Flotr=c;return this}};b.Flotr=a})(
ildren[0],t.innerHTML="",n},empty:function(e){e=t(e),e.innerHTML=""},remove:func );Flotr.defaultOptions={colors:["#00A8F0","#C0D800","#CB4B4B","#4DA74D","#9440ED
tion(e){e=t(e),e.parentNode.removeChild(e)},hide:function(e){e=t(e),Flotr.DOM.se "],ieBackgroundColor:"#FFFFFF",title:null,subtitle:null,shadowSize:4,defaultType
tStyles(e,{display:"none"})},insert:function(n,r){n=t(n),e.isString(r)?n.innerHT :null,HtmlText:true,fontColor:"#545454",fontSize:7.5,resolution:1,parseFloat:tru
ML+=r:e.isElement(r)&&n.appendChild(r)},opacity:function(e,n){e=t(e),e.style.opa e,preventDefault:true,xaxis:{ticks:null,minorTicks:null,showLabels:true,showMino
city=n},position:function(e,n){return e=t(e),e.offsetParent?(n=this.position(e.o rLabels:false,labelsAngle:0,title:null,titleAngle:0,noTicks:5,minorTickFreq:null
ffsetParent),n.left+=e.offsetLeft,n.top+=e.offsetTop,n):{left:e.offsetLeft||0,to ,tickFormatter:Flotr.defaultTickFormatter,tickDecimals:null,min:null,max:null,au
p:e.offsetTop||0}},removeClass:function(n,r){var i=n.className?n.className:"";n= toscale:false,autoscaleMargin:0,color:null,mode:"normal",timeFormat:null,timeMod
t(n),n.className=e.filter(i.split(/\s+/g),function(e){if(e!=r)return!0}).join(" e:"UTC",timeUnit:"millisecond",scaling:"linear",base:Math.E,titleAlign:"center",
")},setStyles:function(n,r){n=t(n),e.each(r,function(e,t){n.style[t]=e})},show:f margin:true},x2axis:{},yaxis:{ticks:null,minorTicks:null,showLabels:true,showMin
unction(e){e=t(e),Flotr.DOM.setStyles(e,{display:""})},size:function(e){return e orLabels:false,labelsAngle:0,title:null,titleAngle:90,noTicks:5,minorTickFreq:nu
=t(e),{height:e.offsetHeight,width:e.offsetWidth}}}}(),function(){var e=Flotr,t= ll,tickFormatter:Flotr.defaultTickFormatter,tickDecimals:null,min:null,max:null,
e.bean;e.EventAdapter={observe:function(e,n,r){return t.add(e,n,r),this},fire:fu autoscale:false,autoscaleMargin:0,color:null,scaling:"linear",base:Math.E,titleA
nction(e,n,r){return t.fire(e,n,r),typeof Prototype!="undefined"&&Event.fire(e,n lign:"center",margin:true},y2axis:{titleAngle:270},grid:{color:"#545454",backgro
,r),this},stopObserving:function(e,n,r){return t.remove(e,n,r),this},eventPointe undColor:null,backgroundImage:null,watermarkAlpha:0.4,tickColor:"#DDDDDD",labelM
r:function(t){if(!e._.isUndefined(t.touches)&&t.touches.length>0)return{x:t.touc argin:3,verticalLines:true,minorVerticalLines:null,horizontalLines:true,minorHor
hes[0].pageX,y:t.touches[0].pageY};if(!e._.isUndefined(t.changedTouches)&&t.chan izontalLines:null,outlineWidth:1,outline:"nsew",circular:false},mouse:{track:fal
gedTouches.length>0)return{x:t.changedTouches[0].pageX,y:t.changedTouches[0].pag se,trackAll:false,position:"se",relative:false,trackFormatter:Flotr.defaultTrack
eY};if(t.pageX||t.pageY)return{x:t.pageX,y:t.pageY};if(t.clientX||t.clientY){var Formatter,margin:5,lineColor:"#FF3F19",trackDecimals:1,sensibility:2,trackY:true
n=document,r=n.body,i=n.documentElement;return{x:t.clientX+r.scrollLeft+i.scrol ,radius:3,fillColor:null,fillOpacity:0.4}};(function(){var b=Flotr._;function c(
lLeft,y:t.clientY+r.scrollTop+i.scrollTop}}}}}(),function(){var e=Flotr,t=e.DOM, j,h,e,f){this.rgba=["r","g","b","a"];var d=4;while(-1<--d){this[this.rgba[d]]=ar
n=e._,r=function(e){this.o=e};r.prototype={dimensions:function(e,t,n,r){return e guments[d]||((d==3)?1:0)}this.normalize()}var a={aqua:[0,255,255],azure:[240,255
?this.o.html?this.html(e,this.o.element,n,r):this.canvas(e,t):{width:0,height:0} ,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0
},canvas:function(t,n){if(!this.o.textEnabled)return;n=n||{};var r=this.measureT ,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgre
ext(t,n),i=r.width,s=n.size||e.defaultOptions.fontSize,o=n.angle||0,u=Math.cos(o en:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,
),a=Math.sin(o),f=2,l=6,c;return c={width:Math.abs(u*i)+Math.abs(a*s)+f,height:M 107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksal
ath.abs(a*i)+Math.abs(u*s)+l},c},html:function(e,n,r,i){var s=t.create("div");re mon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],gr
turn t.setStyles(s,{position:"absolute",top:"-10000px"}),t.insert(s,'<div style= een:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],ligh
"'+r+'" class="'+i+' flotr-dummy-div">'+e+"</div>"),t.insert(this.o.element,s),t tcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[
.size(s)},measureText:function(t,r){var i=this.o.ctx,s;return!i.fillText||e.isIp 255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon
hone&&i.measure?{width:i.measure(t,r)}:(r=n.extend({size:e.defaultOptions.fontSi :[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203
ze,weight:1,angle:0},r),i.save(),i.font=(r.weight>1?"bold ":"")+r.size*1.3+"px s ],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white
ans-serif",s=i.measureText(t),i.restore(),s)}},Flotr.Text=r}(),function(){functi :[255,255,255],yellow:[255,255,0]};c.prototype={scale:function(g,f,h,e){var d=4;
on i(e,n,r){return t.observe.apply(this,arguments),this._handles.push(arguments) while(-1<--d){if(!b.isUndefined(arguments[d])){this[this.rgba[d]]*=arguments[d]}
,this}var e=Flotr.DOM,t=Flotr.EventAdapter,n=Flotr._,r=Flotr;Graph=function(e,i, }return this.normalize()},alpha:function(d){if(!b.isUndefined(d)&&!b.isNull(d)){
s){this._setEl(e),this._initMembers(),this._initPlugins(),t.fire(this.el,"flotr: this.a=d}return this.normalize()},clone:function(){return new c(this.r,this.b,th
beforeinit",[this]),this.data=i,this.series=r.Series.getSeries(i),this._initOpti is.g,this.a)},limit:function(e,d,f){return Math.max(Math.min(e,f),d)},normalize:
ons(s),this._initGraphTypes(),this._initCanvas(),this._text=new r.Text({element: function(){var d=this.limit;this.r=d(parseInt(this.r,10),0,255);this.g=d(parseIn
this.el,ctx:this.ctx,html:this.options.HtmlText,textEnabled:this.textEnabled}),t t(this.g,10),0,255);this.b=d(parseInt(this.b,10),0,255);this.a=d(this.a,0,1);ret
.fire(this.el,"flotr:afterconstruct",[this]),this._initEvents(),this.findDataRan urn this},distance:function(e){if(!e){return}e=new c.parse(e);var f=0,d=3;while(
ges(),this.calculateSpacing(),this.draw(n.bind(function(){t.fire(this.el,"flotr: -1<--d){f+=Math.abs(this[this.rgba[d]]-e[this.rgba[d]])}return f},toString:funct
afterinit",[this])},this))},Graph.prototype={destroy:function(){t.fire(this.el," ion(){return(this.a>=1)?"rgb("+[this.r,this.g,this.b].join(",")+")":"rgba("+[thi
flotr:destroy"),n.each(this._handles,function(e){t.stopObserving.apply(this,e)}) s.r,this.g,this.b,this.a].join(",")+")"},contrast:function(){var d=1-(0.299*this
,this._handles=[],this.el.graph=null},observe:i,_observe:i,processColor:function .r+0.587*this.g+0.114*this.b)/255;return(d<0.5?"#000000":"#ffffff")}};b.extend(c
(e,t){var i={x1:0,y1:0,x2:this.plotWidth,y2:this.plotHeight,opacity:1,ctx:this.c ,{parse:function(e){if(e instanceof c){return e}var d;if((d=/#([a-fA-F0-9]{2})([
tx};return n.extend(i,t),r.Color.processColor(e,i)},findDataRanges:function(){va a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(e))){return new c(parseInt(d[1],16),parseIn
r e=this.axes,t,i,s;n.each(this.series,function(e){s=e.getRange(),s&&(t=e.xaxis, t(d[2],16),parseInt(d[3],16))}if((d=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,
i=e.yaxis,t.datamin=Math.min(s.xmin,t.datamin),t.datamax=Math.max(s.xmax,t.datam \s*([0-9]{1,3})\s*\)/.exec(e))){return new c(parseInt(d[1],10),parseInt(d[2],10)
ax),i.datamin=Math.min(s.ymin,i.datamin),i.datamax=Math.max(s.ymax,i.datamax),t. ,parseInt(d[3],10))}if((d=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(e))){r
used=t.used||s.xused,i.used=i.used||s.yused)},this),!e.x.used&&!e.x2.used&&(e.x. eturn new c(parseInt(d[1]+d[1],16),parseInt(d[2]+d[2],16),parseInt(d[3]+d[3],16)
used=!0),!e.y.used&&!e.y2.used&&(e.y.used=!0),n.each(e,function(e){e.calculateRa )}if((d=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9
nge()});var o=n.keys(r.graphTypes),u=!1;n.each(this.series,function(e){if(e.hide ]+(?:\.[0-9]+)?)\s*\)/.exec(e))){return new c(parseInt(d[1],10),parseInt(d[2],10
)return;n.each(o,function(t){e[t]&&e[t].show&&(this.extendRange(t,e),u=!0)},this ),parseInt(d[3],10),parseFloat(d[4]))}if((d=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,
),u||this.extendRange(this.options.defaultType,e)},this)},extendRange:function(e \s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(e))){return
,t){this[e].extendRange&&this[e].extendRange(t,t.data,t[e],this[e]),this[e].exte new c(parseFloat(d[1])*2.55,parseFloat(d[2])*2.55,parseFloat(d[3])*2.55)}if((d=/
ndYRange&&this[e].extendYRange(t.yaxis,t.data,t[e],this[e]),this[e].extendXRange rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\
&&this[e].extendXRange(t.xaxis,t.data,t[e],this[e])},calculateSpacing:function() .[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(e))){return new c(parseFloat
{var e=this.axes,t=this.options,r=this.series,i=t.grid.labelMargin,s=this._text, (d[1])*2.55,parseFloat(d[2])*2.55,parseFloat(d[3])*2.55,parseFloat(d[4]))}var f=
o=e.x,u=e.x2,a=e.y,f=e.y2,l=t.grid.outlineWidth,c,h,p,d;n.each(e,function(e){e.c (e+"").replace(/^\s*([\S\s]*?)\s*$/,"$1").toLowerCase();if(f=="transparent"){ret
alculateTicks(),e.calculateTextDimensions(s,t)}),d=s.dimensions(t.title,{size:t. urn new c(255,255,255,0)}return(d=a[f])?new c(d[0],d[1],d[2]):new c(0,0,0,0)},pr
fontSize*1.5},"font-size:1em;font-weight:bold;","flotr-title"),this.titleHeight= ocessColor:function(d,f){var e=f.opacity;if(!d){return"rgba(0, 0, 0, 0)"}if(d in
d.height,d=s.dimensions(t.subtitle,{size:t.fontSize},"font-size:smaller;","flotr stanceof c){return d.alpha(e).toString()}if(b.isString(d)){return c.parse(d).alp
-subtitle"),this.subtitleHeight=d.height;for(h=0;h<t.length;++h)r[h].points.show ha(e).toString()}var l=d.colors?d:{colors:d};if(!f.ctx){if(!b.isArray(l.colors))
&&(l=Math.max(l,r[h].points.radius+r[h].points.lineWidth/2));var v=this.plotOffs {return"rgba(0, 0, 0, 0)"}return c.parse(b.isArray(l.colors[0])?l.colors[0][1]:l
et;o.options.margin===!1?(v.bottom=0,v.top=0):o.options.margin===!0?(v.bottom+=( .colors[0]).alpha(e).toString()}l=b.extend({start:"top",end:"bottom"},l);if(/top
t.grid.circular?0:o.used&&o.options.showLabels?o.maxLabel.height+i:0)+(o.used&&o /i.test(l.start)){f.x1=0}if(/left/i.test(l.start)){f.y1=0}if(/bottom/i.test(l.en
.options.title?o.titleSize.height+i:0)+l,v.top+=(t.grid.circular?0:u.used&&u.opt d)){f.x2=0}if(/right/i.test(l.end)){f.y2=0}var h,k,g,j=f.ctx.createLinearGradien
ions.showLabels?u.maxLabel.height+i:0)+(u.used&&u.options.title?u.titleSize.heig t(f.x1,f.y1,f.x2,f.y2);for(h=0;h<l.colors.length;h++){k=l.colors[h];if(b.isArray
ht+i:0)+this.subtitleHeight+this.titleHeight+l):(v.bottom=o.options.margin,v.top (k)){g=k[0];k=k[1]}else{g=h/(l.colors.length-1)}j.addColorStop(g,c.parse(k).alph
=o.options.margin),a.options.margin===!1?(v.left=0,v.right=0):a.options.margin== a(e))}return j}});Flotr.Color=c})();Flotr.Date={set:function(b,a,d,c){d=d||"UTC"
=!0?(v.left+=(t.grid.circular?0:a.used&&a.options.showLabels?a.maxLabel.width+i: ;a="set"+(d==="UTC"?"UTC":"")+a;b[a](c)},get:function(b,a,c){c=c||"UTC";a="get"+
0)+(a.used&&a.options.title?a.titleSize.width+i:0)+l,v.right+=(t.grid.circular?0 (c==="UTC"?"UTC":"")+a;return b[a]()},format:function(g,k,f){if(!g){return}var b
:f.used&&f.options.showLabels?f.maxLabel.width+i:0)+(f.used&&f.options.title?f.t =this.get,j={h:b(g,"Hours",f).toString(),H:l(b(g,"Hours",f)),M:l(b(g,"Minutes",f
itleSize.width+i:0)+l):(v.left=a.options.margin,v.right=a.options.margin),v.top= )),S:l(b(g,"Seconds",f)),s:b(g,"Milliseconds",f),d:b(g,"Date",f).toString(),m:(b
Math.floor(v.top),this.plotWidth=this.canvasWidth-v.left-v.right,this.plotHeight (g,"Month",f)+1).toString(),y:b(g,"FullYear",f).toString(),b:Flotr.Date.monthNam
=this.canvasHeight-v.bottom-v.top,o.length=u.length=this.plotWidth,a.length=f.le es[b(g,"Month",f)]};function l(c){c+="";return c.length==1?"0"+c:c}var a=[],h,m=
ngth=this.plotHeight,a.offset=f.offset=this.plotHeight,o.setScale(),u.setScale() false;for(var e=0;e<k.length;++e){h=k.charAt(e);if(m){a.push(j[h]||h);m=false}el
,a.setScale(),f.setScale()},draw:function(e){var n=this.ctx,r;t.fire(this.el,"fl se{if(h=="%"){m=true}else{a.push(h)}}}return a.join("")},getFormat:function(c,b)
otr:beforedraw",[this.series,this]);if(this.series.length){n.save(),n.translate( {var a=Flotr.Date.timeUnits;if(c<a.second){return"%h:%M:%S.%s"}else{if(c<a.minut
this.plotOffset.left,this.plotOffset.top);for(r=0;r<this.series.length;r++)this. e){return"%h:%M:%S"}else{if(c<a.day){return(b<2*a.day)?"%h:%M":"%b %d %h:%M"}els
series[r].hide||this.drawSeries(this.series[r]);n.restore(),this.clip()}t.fire(t e{if(c<a.month){return"%b %d"}else{if(c<a.year){return(b<a.year)?"%b":"%b %y"}el
his.el,"flotr:afterdraw",[this.series,this]),e&&e()},drawSeries:function(e){func se{return"%y"}}}}}},formatter:function(a,f){var b=f.options,h=Flotr.Date.timeUni
tion t(e,t){var n=this.getOptions(e,t);this[t].draw(n)}var i=!1;e=e||this.series ts[b.timeUnit],g=new Date(a*h);if(f.options.timeFormat){return Flotr.Date.format
,n.each(r.graphTypes,function(n,r){e[r]&&e[r].show&&this[r]&&(i=!0,t.call(this,e (g,b.timeFormat,b.timeMode)}var e=(f.max-f.min)*h,c=f.tickSize*Flotr.Date.timeUn
,r))},this),i||t.call(this,e,this.options.defaultType)},getOptions:function(e,t) its[f.tickUnit];return Flotr.Date.format(g,Flotr.Date.getFormat(c,e),b.timeMode)
{var n=e[t],i=this[t],s=e.xaxis,o=e.yaxis,u={context:this.ctx,width:this.plotWid },generator:function(b){var l=this.set,z=this.get,j=this.timeUnits,h=this.spec,e
th,height:this.plotHeight,fontSize:this.options.fontSize,fontColor:this.options. =b.options,m=e.timeMode,C=j[e.timeUnit],q=b.min*C,s=b.max*C,A=(s-q)/e.noTicks,B=
fontColor,textEnabled:this.textEnabled,htmlText:this.options.HtmlText,text:this. [],p=b.tickSize,n,r,t;r=(e.tickFormatter===Flotr.defaultTickFormatter?this.forma
_text,element:this.el,data:e.data,color:e.color,shadowSize:e.shadowSize,xScale:s tter:e.tickFormatter);for(t=0;t<h.length-1;++t){var w=h[t][0]*j[h[t][1]];if(A<(w
.d2p,yScale:o.d2p,xInverse:s.p2d,yInverse:o.p2d};return u=r.merge(n,u),u.fillSty +h[t+1][0]*j[h[t+1][1]])/2&&w>=p){break}}p=h[t][0];n=h[t][1];if(n=="year"){p=Flo
le=this.processColor(n.fillColor||e.color,{opacity:n.fillOpacity}),u},getEventPo tr.getTickSize(e.noTicks*j.year,q,s,0);if(p==0.5){n="month";p=6}}b.tickUnit=n;b.
sition:function(n){var r=document,i=r.body,s=r.documentElement,o=this.axes,u=thi tickSize=p;var g=p*j[n];w=new Date(q);function a(d){l(w,d,m,Flotr.floorInBase(z(
s.plotOffset,a=this.lastMousePos,f=t.eventPointer(n),l=f.x-a.pageX,c=f.y-a.pageY w,d,m),p))}switch(n){case"millisecond":a("Milliseconds");break;case"second":a("S
,h,p,d;return"ontouchstart"in this.el?(h=e.position(this.overlay),p=f.x-h.left-u econds");break;case"minute":a("Minutes");break;case"hour":a("Hours");break;case"
.left,d=f.y-h.top-u.top):(h=this.overlay.getBoundingClientRect(),p=n.clientX-h.l month":a("Month");break;case"year":a("FullYear");break}if(g>=j.second){l(w,"Mill
eft-u.left-i.scrollLeft-s.scrollLeft,d=n.clientY-h.top-u.top-i.scrollTop-s.scrol iseconds",m,0)}if(g>=j.minute){l(w,"Seconds",m,0)}if(g>=j.hour){l(w,"Minutes",m,
lTop),{x:o.x.p2d(p),x2:o.x2.p2d(p),y:o.y.p2d(d),y2:o.y2.p2d(d),relX:p,relY:d,dX: 0)}if(g>=j.day){l(w,"Hours",m,0)}if(g>=j.day*4){l(w,"Date",m,1)}if(g>=j.year){l(
l,dY:c,absX:f.x,absY:f.y,pageX:f.x,pageY:f.y}},clickHandler:function(e){if(this. w,"Month",m,0)}var u=0,k=NaN,o;do{o=k;k=w.getTime();B.push({v:k/C,label:r(k/C,b)
ignoreClick)return this.ignoreClick=!1,this.ignoreClick;t.fire(this.el,"flotr:cl });if(n=="month"){if(p<1){l(w,"Date",m,1);var f=w.getTime();l(w,"Month",m,z(w,"M
ick",[this.getEventPosition(e),this])},mouseMoveHandler:function(e){if(this.mous onth",m)+1);var c=w.getTime();w.setTime(k+u*j.hour+(c-f)*p);u=z(w,"Hours",m);l(w
eDownMoveHandler)return;var n=this.getEventPosition(e);t.fire(this.el,"flotr:mou ,"Hours",m,0)}else{l(w,"Month",m,z(w,"Month",m)+p)}}else{if(n=="year"){l(w,"Full
semove",[e,n,this]),this.lastMousePos=n},mouseDownHandler:function(e){if(this.mo Year",m,z(w,"FullYear",m)+p)}else{w.setTime(k+g)}}}while(k<s&&k!=o);return B},ti
useUpHandler)return;this.mouseUpHandler=n.bind(function(e){t.stopObserving(docum meUnits:{millisecond:1,second:1000,minute:1000*60,hour:1000*60*60,day:1000*60*60
ent,"mouseup",this.mouseUpHandler),t.stopObserving(document,"mousemove",this.mou *24,month:1000*60*60*24*30,year:1000*60*60*24*365.2425},spec:[[1,"millisecond"],
seDownMoveHandler),this.mouseDownMoveHandler=null,this.mouseUpHandler=null,t.fir [20,"millisecond"],[50,"millisecond"],[100,"millisecond"],[200,"millisecond"],[5
e(this.el,"flotr:mouseup",[e,this])},this),this.mouseDownMoveHandler=n.bind(func 00,"millisecond"],[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"seco
tion(n){var r=this.getEventPosition(n);t.fire(this.el,"flotr:mousemove",[e,r,thi nd"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour
s]),this.lastMousePos=r},this),t.observe(document,"mouseup",this.mouseUpHandler) "],[2,"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[0
,t.observe(document,"mousemove",this.mouseDownMoveHandler),t.fire(this.el,"flotr .25,"month"],[0.5,"month"],[1,"month"],[2,"month"],[3,"month"],[6,"month"],[1,"y
:mousedown",[e,this]),this.ignoreClick=!1},drawTooltip:function(t,n,r,i){var s=t ear"]],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","
his.getMouseTrack(),o="opacity:0.7;background-color:#000;color:#fff;display:none Nov","Dec"]};(function(){var b=Flotr._;function a(c){return(c&&c.jquery)?c[0]:c}
;position:absolute;padding:2px 8px;-moz-border-radius:4px;border-radius:4px;whit Flotr.DOM={addClass:function(d,c){d=a(d);var e=(d.className?d.className:"");if(b
e-space:nowrap;",u=i.position,a=i.margin,f=this.plotOffset;n!==null&&r!==null?(i .include(e.split(/\s+/g),c)){return}d.className=(e?e+" ":"")+c},create:function(
.relative?(u.charAt(0)=="n"?o+="bottom:"+(a-f.top-r+this.canvasHeight)+"px;top:a c){return document.createElement(c)},node:function(c){var e=Flotr.DOM.create("di
uto;":u.charAt(0)=="s"&&(o+="top:"+(a+f.top+r)+"px;bottom:auto;"),u.charAt(1)==" v"),d;e.innerHTML=c;d=e.children[0];e.innerHTML="";return d},empty:function(c){c
e"?o+="left:"+(a+f.left+n)+"px;right:auto;":u.charAt(1)=="w"&&(o+="right:"+(a-f. =a(c);c.innerHTML=""},remove:function(c){c=a(c);c.parentNode.removeChild(c)},hid
left-n+this.canvasWidth)+"px;left:auto;")):(u.charAt(0)=="n"?o+="top:"+(a+f.top) e:function(c){c=a(c);Flotr.DOM.setStyles(c,{display:"none"})},insert:function(c,
+"px;bottom:auto;":u.charAt(0)=="s"&&(o+="bottom:"+(a+f.bottom)+"px;top:auto;"), d){c=a(c);if(b.isString(d)){c.innerHTML+=d}else{if(b.isElement(d)){c.appendChild
u.charAt(1)=="e"?o+="right:"+(a+f.right)+"px;left:auto;":u.charAt(1)=="w"&&(o+=" (d)}}},opacity:function(d,c){d=a(d);d.style.opacity=c},position:function(c,d){c=
left:"+(a+f.left)+"px;right:auto;")),s.style.cssText=o,e.empty(s),e.insert(s,t), a(c);if(!c.offsetParent){return{left:(c.offsetLeft||0),top:(c.offsetTop||0)}}d=t
e.show(s)):e.hide(s)},clip:function(e){var t=this.plotOffset,n=this.canvasWidth, his.position(c.offsetParent);d.left+=c.offsetLeft;d.top+=c.offsetTop;return d},r
i=this.canvasHeight;e=e||this.ctx;if(r.isIE&&r.isIE<9&&!r.isFlashCanvas){if(e=== emoveClass:function(d,c){var e=(d.className?d.className:"");d=a(d);d.className=b
this.octx)return;e.save(),e.fillStyle=this.processColor(this.options.ieBackgroun .filter(e.split(/\s+/g),function(f){if(f!=c){return true}}).join(" ")},setStyles
dColor),e.fillRect(0,0,n,t.top),e.fillRect(0,0,t.left,i),e.fillRect(0,i-t.bottom :function(c,d){c=a(c);b.each(d,function(f,e){c.style[e]=f})},show:function(c){c=
,n,t.bottom),e.fillRect(n-t.right,0,t.right,i),e.restore()}else e.clearRect(0,0, a(c);Flotr.DOM.setStyles(c,{display:""})},size:function(c){c=a(c);return{height:
n,t.top),e.clearRect(0,0,t.left,i),e.clearRect(0,i-t.bottom,n,t.bottom),e.clearR c.offsetHeight,width:c.offsetWidth}}}})();(function(){var b=Flotr,a=b.bean;b.Eve
ect(n-t.right,0,t.right,i)},_initMembers:function(){this._handles=[],this.lastMo ntAdapter={observe:function(d,c,e){a.add(d,c,e);return this},fire:function(e,d,c
usePos={pageX:null,pageY:null},this.plotOffset={left:0,right:0,top:0,bottom:0},t ){a.fire(e,d,c);if(typeof(Prototype)!="undefined"){Event.fire(e,d,c)}return this
his.ignoreClick=!0,this.prevHit=null},_initGraphTypes:function(){n.each(r.graphT },stopObserving:function(d,c,e){a.remove(d,c,e);return this},eventPointer:functi
ypes,function(e,t){this[t]=r.clone(e)},this)},_initEvents:function(){var e=this. on(f){if(!b._.isUndefined(f.touches)&&f.touches.length>0){return{x:f.touches[0].
el,r,i,s;"ontouchstart"in e?(r=n.bind(function(n){s=!0,t.stopObserving(document, pageX,y:f.touches[0].pageY}}else{if(!b._.isUndefined(f.changedTouches)&&f.change
"touchend",r),t.fire(e,"flotr:mouseup",[event,this]),this.multitouches=null,i||t dTouches.length>0){return{x:f.changedTouches[0].pageX,y:f.changedTouches[0].page
his.clickHandler(n)},this),this.observe(this.overlay,"touchstart",n.bind(functio Y}}else{if(f.pageX||f.pageY){return{x:f.pageX,y:f.pageY}}else{if(f.clientX||f.cl
n(n){i=!1,s=!1,this.ignoreClick=!1,n.touches&&n.touches.length>1&&(this.multitou ientY){var g=document,c=g.body,h=g.documentElement;return{x:f.clientX+c.scrollLe
ches=n.touches),t.fire(e,"flotr:mousedown",[event,this]),this.observe(document," ft+h.scrollLeft,y:f.clientY+c.scrollTop+h.scrollTop}}}}}}}})();(function(){var c
touchend",r)},this)),this.observe(this.overlay,"touchmove",n.bind(function(n){va =Flotr,d=c.DOM,a=c._,b=function(e){this.o=e};b.prototype={dimensions:function(h,
r r=this.getEventPosition(n);this.options.preventDefault&&n.preventDefault(),i=! f,e,g){if(!h){return{width:0,height:0}}return(this.o.html)?this.html(h,this.o.el
0,this.multitouches||n.touches&&n.touches.length>1?this.multitouches=n.touches:s ement,e,g):this.canvas(h,f)},canvas:function(n,f){if(!this.o.textEnabled){return
||t.fire(e,"flotr:mousemove",[event,r,this]),this.lastMousePos=r},this))):this.o }f=f||{};var k=this.measureText(n,f),g=k.width,o=f.size||c.defaultOptions.fontSi
bserve(this.overlay,"mousedown",n.bind(this.mouseDownHandler,this)).observe(e,"m ze,j=f.angle||0,l=Math.cos(j),h=Math.sin(j),p=2,m=6,e;e={width:Math.abs(l*g)+Mat
ousemove",n.bind(this.mouseMoveHandler,this)).observe(this.overlay,"click",n.bin h.abs(h*o)+p,height:Math.abs(h*g)+Math.abs(l*o)+m};return e},html:function(h,e,g
d(this.clickHandler,this)).observe(e,"mouseout",function(n){t.fire(e,"flotr:mous ,f){var j=d.create("div");d.setStyles(j,{position:"absolute",top:"-10000px"});d.
eout",n)})},_initCanvas:function(){function l(i,s){return i||(i=e.create("canvas insert(j,'<div style="'+g+'" class="'+f+' flotr-dummy-div">'+h+"</div>");d.inser
"),typeof FlashCanvas!="undefined"&&typeof i.getContext=="function"&&(FlashCanva t(this.o.element,j);return d.size(j)},measureText:function(h,g){var e=this.o.ctx
s.initElement(i),this.isFlashCanvas=!0),i.className="flotr-"+s,i.style.cssText=" ,f;if(!e.fillText||(c.isIphone&&e.measure)){return{width:e.measure(h,g)}}g=a.ext
position:absolute;left:0px;top:0px;",e.insert(t,i)),n.each(a,function(t,n){e.sho end({size:c.defaultOptions.fontSize,weight:1,angle:0},g);e.save();e.font=(g.weig
w(i);if(s=="canvas"&&i.getAttribute(n)===t)return;i.setAttribute(n,t*r.resolutio ht>1?"bold ":"")+(g.size*1.3)+"px sans-serif";f=e.measureText(h);e.restore();ret
n),i.style[n]=t+"px"}),i.context_=null,i}function c(e){window.G_vmlCanvasManager urn f}};Flotr.Text=b})();(function(){var e=Flotr.DOM,c=Flotr.EventAdapter,a=Flot
&&window.G_vmlCanvasManager.initElement(e);var t=e.getContext("2d");return windo r._,b=Flotr;Graph=function(g,h,f){this._setEl(g);this._initMembers();this._initP
w.G_vmlCanvasManager||t.scale(r.resolution,r.resolution),t}var t=this.el,r=this. lugins();c.fire(this.el,"flotr:beforeinit",[this]);this.data=h;this.series=b.Ser
options,i=t.children,s=[],o,u,a,f;for(u=i.length;u--;)o=i[u],!this.canvas&&o.cla ies.getSeries(h);this._initOptions(f);this._initGraphTypes();this._initCanvas();
ssName==="flotr-canvas"?this.canvas=o:!this.overlay&&o.className==="flotr-overla this._text=new b.Text({element:this.el,ctx:this.ctx,html:this.options.HtmlText,t
y"?this.overlay=o:s.push(o);for(u=s.length;u--;)t.removeChild(s[u]);e.setStyles( extEnabled:this.textEnabled});c.fire(this.el,"flotr:afterconstruct",[this]);this
t,{position:"relative"}),a={},a.width=t.clientWidth,a.height=t.clientHeight;if(a ._initEvents();this.findDataRanges();this.calculateSpacing();this.draw(a.bind(fu
.width<=0||a.height<=0||r.resolution<=0)throw"Invalid dimensions for plot, width nction(){c.fire(this.el,"flotr:afterinit",[this])},this))};function d(g,f,h){c.o
= "+a.width+", height = "+a.height+", resolution = "+r.resolution;this.canvas=l bserve.apply(this,arguments);this._handles.push(arguments);return this}Graph.pro
(this.canvas,"canvas"),this.overlay=l(this.overlay,"overlay"),this.ctx=c(this.ca totype={destroy:function(){c.fire(this.el,"flotr:destroy");a.each(this._handles,
nvas),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.octx=c(t function(f){c.stopObserving.apply(this,f)});this._handles=[];this.el.graph=null}
his.overlay),this.octx.clearRect(0,0,this.overlay.width,this.overlay.height),thi ,observe:d,_observe:d,processColor:function(f,g){var h={x1:0,y1:0,x2:this.plotWi
s.canvasHeight=a.height,this.canvasWidth=a.width,this.textEnabled=!!this.ctx.dra dth,y2:this.plotHeight,opacity:1,ctx:this.ctx};a.extend(h,g);return b.Color.proc
wText||!!this.ctx.fillText},_initPlugins:function(){n.each(r.plugins,function(e, essColor(f,h)},findDataRanges:function(){var f=this.axes,l,j,g;a.each(this.serie
t){n.each(e.callbacks,function(e,t){this.observe(this.el,t,n.bind(e,this))},this s,function(m){g=m.getRange();if(g){l=m.xaxis;j=m.yaxis;l.datamin=Math.min(g.xmin
),this[t]=r.clone(e),n.each(this[t],function(e,r){n.isFunction(e)&&(this[t][r]=n ,l.datamin);l.datamax=Math.max(g.xmax,l.datamax);j.datamin=Math.min(g.ymin,j.dat
.bind(e,this))},this)},this)},_initOptions:function(e){var i=r.clone(r.defaultOp amin);j.datamax=Math.max(g.ymax,j.datamax);l.used=(l.used||g.xused);j.used=(j.us
tions);i.x2axis=n.extend(n.clone(i.xaxis),i.x2axis),i.y2axis=n.extend(n.clone(i. ed||g.yused)}},this);if(!f.x.used&&!f.x2.used){f.x.used=true}if(!f.y.used&&!f.y2
yaxis),i.y2axis),this.options=r.merge(e||{},i),this.options.grid.minorVerticalLi .used){f.y.used=true}a.each(f,function(m){m.calculateRange()});var h=a.keys(b.gr
nes===null&&this.options.xaxis.scaling==="logarithmic"&&(this.options.grid.minor aphTypes),k=false;a.each(this.series,function(m){if(m.hide){return}a.each(h,func
VerticalLines=!0),this.options.grid.minorHorizontalLines===null&&this.options.ya tion(n){if(m[n]&&m[n].show){this.extendRange(n,m);k=true}},this);if(!k){this.ext
xis.scaling==="logarithmic"&&(this.options.grid.minorHorizontalLines=!0),t.fire( endRange(this.options.defaultType,m)}},this)},extendRange:function(g,f){if(this[
this.el,"flotr:afterinitoptions",[this]),this.axes=r.Axis.getAxes(this.options); g].extendRange){this[g].extendRange(f,f.data,f[g],this[g])}if(this[g].extendYRan
var s=[],o=[],u=this.series.length,a=this.series.length,f=this.options.colors,l= ge){this[g].extendYRange(f.yaxis,f.data,f[g],this[g])}if(this[g].extendXRange){t
[],c=0,h,p,d,v;for(p=a-1;p>-1;--p)h=this.series[p].color,h&&(--a,n.isNumber(h)?s his[g].extendXRange(f.xaxis,f.data,f[g],this[g])}},calculateSpacing:function(){v
.push(h):l.push(r.Color.parse(h)));for(p=s.length-1;p>-1;--p)a=Math.max(a,s[p]+1 ar v=this.axes,z=this.options,r=this.series,k=z.grid.labelMargin,m=this._text,w=
);for(p=0;o.length<a;){h=f.length==p?new r.Color(100,100,100):r.Color.parse(f[p] v.x,f=v.x2,u=v.y,t=v.y2,o=z.grid.outlineWidth,q,n,h,s;a.each(v,function(j){j.cal
);var m=c%2==1?-1:1,g=1+m*Math.ceil(c/2)*.2;h.scale(g,g,g),o.push(h),++p>=f.leng culateTicks();j.calculateTextDimensions(m,z)});s=m.dimensions(z.title,{size:z.fo
th&&(p=0,++c)}for(p=0,d=0;p<u;++p){v=this.series[p],v.color?n.isNumber(v.color)& ntSize*1.5},"font-size:1em;font-weight:bold;","flotr-title");this.titleHeight=s.
&(v.color=o[v.color].toString()):v.color=o[d++].toString(),v.xaxis||(v.xaxis=thi height;s=m.dimensions(z.subtitle,{size:z.fontSize},"font-size:smaller;","flotr-s
s.axes.x),v.xaxis==1?v.xaxis=this.axes.x:v.xaxis==2&&(v.xaxis=this.axes.x2),v.ya ubtitle");this.subtitleHeight=s.height;for(n=0;n<z.length;++n){if(r[n].points.sh
xis||(v.yaxis=this.axes.y),v.yaxis==1?v.yaxis=this.axes.y:v.yaxis==2&&(v.yaxis=t ow){o=Math.max(o,r[n].points.radius+r[n].points.lineWidth/2)}}var g=this.plotOff
his.axes.y2);for(var y in r.graphTypes)v[y]=n.extend(n.clone(this.options[y]),v[ set;if(w.options.margin===false){g.bottom=0;g.top=0}else{if(w.options.margin===t
y]);v.mouse=n.extend(n.clone(this.options.mouse),v.mouse),n.isUndefined(v.shadow rue){g.bottom+=(z.grid.circular?0:(w.used&&w.options.showLabels?(w.maxLabel.heig
Size)&&(v.shadowSize=this.options.shadowSize)}},_setEl:function(e){if(!e)throw"T ht+k):0))+(w.used&&w.options.title?(w.titleSize.height+k):0)+o;g.top+=(z.grid.ci
he target container doesn't exist";if(e.graph instanceof Graph)e.graph.destroy() rcular?0:(f.used&&f.options.showLabels?(f.maxLabel.height+k):0))+(f.used&&f.opti
;else if(!e.clientWidth)throw"The target container must be visible";e.graph=this ons.title?(f.titleSize.height+k):0)+this.subtitleHeight+this.titleHeight+o}else{
,this.el=e}},Flotr.Graph=Graph}(),function(){function n(t){this.orientation=1,th g.bottom=w.options.margin;g.top=w.options.margin}}if(u.options.margin===false){g
is.offset=0,this.datamin=Number.MAX_VALUE,this.datamax=-Number.MAX_VALUE,e.exten .left=0;g.right=0}else{if(u.options.margin===true){g.left+=(z.grid.circular?0:(u
d(this,t)}function r(e,t){return e=Math.log(Math.max(e,Number.MIN_VALUE)),t!==Ma .used&&u.options.showLabels?(u.maxLabel.width+k):0))+(u.used&&u.options.title?(u
th.E&&(e/=Math.log(t)),e}function s(e,t){return t===Math.E?Math.exp(e):Math.pow( .titleSize.width+k):0)+o;g.right+=(z.grid.circular?0:(t.used&&t.options.showLabe
t,e)}var e=Flotr._,t="logarithmic";n.prototype={setScale:function(){var e=this.l ls?(t.maxLabel.width+k):0))+(t.used&&t.options.title?(t.titleSize.width+k):0)+o}
ength,n=this.max,i=this.min,o=this.offset,u=this.orientation,a=this.options,f=a. else{g.left=u.options.margin;g.right=u.options.margin}}g.top=Math.floor(g.top);t
scaling===t,l;f?l=e/(r(n,a.base)-r(i,a.base)):l=e/(n-i),this.scale=l,f?(this.d2p his.plotWidth=this.canvasWidth-g.left-g.right;this.plotHeight=this.canvasHeight-
=function(e){return o+u*(r(e,a.base)-r(i,a.base))*l},this.p2d=function(e){return g.bottom-g.top;w.length=f.length=this.plotWidth;u.length=t.length=this.plotHeigh
s((o+u*e)/l+r(i,a.base),a.base)}):(this.d2p=function(e){return o+u*(e-i)*l},thi t;u.offset=t.offset=this.plotHeight;w.setScale();f.setScale();u.setScale();t.set
s.p2d=function(e){return(o+u*e)/l+i})},calculateTicks:function(){var t=this.opti Scale()},draw:function(h){var g=this.ctx,f;c.fire(this.el,"flotr:beforedraw",[th
ons;this.ticks=[],this.minorTicks=[],t.ticks?(this._cleanUserTicks(t.ticks,this. is.series,this]);if(this.series.length){g.save();g.translate(this.plotOffset.lef
ticks),this._cleanUserTicks(t.minorTicks||[],this.minorTicks)):t.mode=="time"?th t,this.plotOffset.top);for(f=0;f<this.series.length;f++){if(!this.series[f].hide
is._calculateTimeTicks():t.scaling==="logarithmic"?this._calculateLogTicks():thi ){this.drawSeries(this.series[f])}}g.restore();this.clip()}c.fire(this.el,"flotr
s._calculateTicks(),e.each(this.ticks,function(e){e.label+=""}),e.each(this.mino :afterdraw",[this.series,this]);if(h){h()}},drawSeries:function(g){function f(k,
rTicks,function(e){e.label+=""})},calculateRange:function(){if(!this.used)return l){var j=this.getOptions(k,l);this[l].draw(j)}var h=false;g=g||this.series;a.eac
;var e=this,t=e.options,n=t.min!==null?t.min:e.datamin,r=t.max!==null?t.max:e.da h(b.graphTypes,function(j,k){if(g[k]&&g[k].show&&this[k]){h=true;f.call(this,g,k
tamax,i=t.autoscaleMargin;t.scaling=="logarithmic"&&(n<=0&&(n=e.datamin),r<=0&&( )}},this);if(!h){f.call(this,g,this.options.defaultType)}},getOptions:function(g
r=n));if(r==n){var s=r?.01:1;t.min===null&&(n-=s),t.max===null&&(r+=s)}if(t.scal ,l){var j=g[l],k=this[l],m=g.xaxis,h=g.yaxis,f={context:this.ctx,width:this.plot
ing==="logarithmic"){n<0&&(n=r/t.base);var o=Math.log(r);t.base!=Math.E&&(o/=Mat Width,height:this.plotHeight,fontSize:this.options.fontSize,fontColor:this.optio
h.log(t.base)),o=Math.ceil(o);var u=Math.log(n);t.base!=Math.E&&(u/=Math.log(t.b ns.fontColor,textEnabled:this.textEnabled,htmlText:this.options.HtmlText,text:th
ase)),u=Math.ceil(u),e.tickSize=Flotr.getTickSize(t.noTicks,u,o,t.tickDecimals== is._text,element:this.el,data:g.data,color:g.color,shadowSize:g.shadowSize,xScal
=null?0:t.tickDecimals),t.minorTickFreq===null&&(o-u>10?t.minorTickFreq=0:o-u>5? e:m.d2p,yScale:h.d2p,xInverse:m.p2d,yInverse:h.p2d};f=b.merge(j,f);f.fillStyle=t
t.minorTickFreq=2:t.minorTickFreq=5)}else e.tickSize=Flotr.getTickSize(t.noTicks his.processColor(j.fillColor||g.color,{opacity:j.fillOpacity});return f},getEven
,n,r,t.tickDecimals);e.min=n,e.max=r,t.min===null&&t.autoscale&&(e.min-=e.tickSi tPosition:function(m){var n=document,p=n.body,q=n.documentElement,o=this.axes,k=
ze*i,e.min<0&&e.datamin>=0&&(e.min=0),e.min=e.tickSize*Math.floor(e.min/e.tickSi this.plotOffset,l=this.lastMousePos,g=c.eventPointer(m),t=g.x-l.pageX,s=g.y-l.pa
ze)),t.max===null&&t.autoscale&&(e.max+=e.tickSize*i,e.max>0&&e.datamax<=0&&e.da geY,f,j,h;if("ontouchstart" in this.el){f=e.position(this.overlay);j=g.x-f.left-
tamax!=e.datamin&&(e.max=0),e.max=e.tickSize*Math.ceil(e.max/e.tickSize)),e.min= k.left;h=g.y-f.top-k.top}else{f=this.overlay.getBoundingClientRect();j=m.clientX
=e.max&&(e.max=e.min+1)},calculateTextDimensions:function(e,t){var n="",r,i;if(t -f.left-k.left-p.scrollLeft-q.scrollLeft;h=m.clientY-f.top-k.top-p.scrollTop-q.s
his.options.showLabels)for(i=0;i<this.ticks.length;++i)r=this.ticks[i].label.len crollTop}return{x:o.x.p2d(j),x2:o.x2.p2d(j),y:o.y.p2d(h),y2:o.y2.p2d(h),relX:j,r
gth,r>n.length&&(n=this.ticks[i].label);this.maxLabel=e.dimensions(n,{size:t.fon elY:h,dX:t,dY:s,absX:g.x,absY:g.y,pageX:g.x,pageY:g.y}},clickHandler:function(f)
tSize,angle:Flotr.toRad(this.options.labelsAngle)},"font-size:smaller;","flotr-g {if(this.ignoreClick){this.ignoreClick=false;return this.ignoreClick}c.fire(this
rid-label"),this.titleSize=e.dimensions(this.options.title,{size:t.fontSize*1.2, .el,"flotr:click",[this.getEventPosition(f),this])},mouseMoveHandler:function(f)
angle:Flotr.toRad(this.options.titleAngle)},"font-weight:bold;","flotr-axis-titl {if(this.mouseDownMoveHandler){return}var g=this.getEventPosition(f);c.fire(this
e")},_cleanUserTicks:function(t,n){var r=this,i=this.options,s,o,u,a;e.isFunctio .el,"flotr:mousemove",[f,g,this]);this.lastMousePos=g},mouseDownHandler:function
n(t)&&(t=t({min:r.min,max:r.max}));for(o=0;o<t.length;++o)a=t[o],typeof a=="obje (f){if(this.mouseUpHandler){return}this.mouseUpHandler=a.bind(function(g){c.stop
ct"?(s=a[0],u=a.length>1?a[1]:i.tickFormatter(s,{min:r.min,max:r.max})):(s=a,u=i Observing(document,"mouseup",this.mouseUpHandler);c.stopObserving(document,"mous
.tickFormatter(s,{min:this.min,max:this.max})),n[o]={v:s,label:u}},_calculateTim emove",this.mouseDownMoveHandler);this.mouseDownMoveHandler=null;this.mouseUpHan
eTicks:function(){this.ticks=Flotr.Date.generator(this)},_calculateLogTicks:func dler=null;c.fire(this.el,"flotr:mouseup",[g,this])},this);this.mouseDownMoveHand
tion(){var e=this,t=e.options,n,r,s=Math.log(e.max);t.base!=Math.E&&(s/=Math.log ler=a.bind(function(g){var h=this.getEventPosition(g);c.fire(this.el,"flotr:mous
(t.base)),s=Math.ceil(s);var o=Math.log(e.min);t.base!=Math.E&&(o/=Math.log(t.ba emove",[f,h,this]);this.lastMousePos=h},this);c.observe(document,"mouseup",this.
se)),o=Math.ceil(o);for(i=o;i<s;i+=e.tickSize){r=t.base==Math.E?Math.exp(i):Math mouseUpHandler);c.observe(document,"mousemove",this.mouseDownMoveHandler);c.fire
.pow(t.base,i);var u=r*(t.base==Math.E?Math.exp(e.tickSize):Math.pow(t.base,e.ti (this.el,"flotr:mousedown",[f,this]);this.ignoreClick=false},drawTooltip:functio
ckSize)),a=(u-r)/t.minorTickFreq;e.ticks.push({v:r,label:t.tickFormatter(r,{min: n(l,o,n,q){var f=this.getMouseTrack(),g="opacity:0.7;background-color:#000;color
e.min,max:e.max})});for(n=r+a;n<u;n+=a)e.minorTicks.push({v:n,label:t.tickFormat :#fff;display:none;position:absolute;padding:2px 8px;-moz-border-radius:4px;bord
ter(n,{min:e.min,max:e.max})})}r=t.base==Math.E?Math.exp(i):Math.pow(t.base,i),e er-radius:4px;white-space:nowrap;",h=q.position,k=q.margin,j=this.plotOffset;if(
.ticks.push({v:r,label:t.tickFormatter(r,{min:e.min,max:e.max})})},_calculateTic o!==null&&n!==null){if(!q.relative){if(h.charAt(0)=="n"){g+="top:"+(k+j.top)+"px
ks:function(){var e=this,t=e.options,n=e.tickSize,r=e.min,i=e.max,s=n*Math.ceil( ;bottom:auto;"}else{if(h.charAt(0)=="s"){g+="bottom:"+(k+j.bottom)+"px;top:auto;
r/n),o,u,a,f,l,c;t.minorTickFreq&&(u=n/t.minorTickFreq);for(l=0;(a=f=s+l*n)<=i;+ "}}if(h.charAt(1)=="e"){g+="right:"+(k+j.right)+"px;left:auto;"}else{if(h.charAt
+l){o=t.tickDecimals,o===null&&(o=1-Math.floor(Math.log(n)/Math.LN10)),o<0&&(o=0 (1)=="w"){g+="left:"+(k+j.left)+"px;right:auto;"}}}else{if(h.charAt(0)=="n"){g+=
),a=a.toFixed(o),e.ticks.push({v:a,label:t.tickFormatter(a,{min:e.min,max:e.max} "bottom:"+(k-j.top-n+this.canvasHeight)+"px;top:auto;"}else{if(h.charAt(0)=="s")
)});if(t.minorTickFreq)for(c=0;c<t.minorTickFreq&&l*n+c*u<i;++c)a=f+c*u,e.minorT {g+="top:"+(k+j.top+n)+"px;bottom:auto;"}}if(h.charAt(1)=="e"){g+="left:"+(k+j.l
icks.push({v:a,label:t.tickFormatter(a,{min:e.min,max:e.max})})}}},e.extend(n,{g eft+o)+"px;right:auto;"}else{if(h.charAt(1)=="w"){g+="right:"+(k-j.left-o+this.c
etAxes:function(e){return{x:new n({options:e.xaxis,n:1,length:this.plotWidth}),x anvasWidth)+"px;left:auto;"}}}f.style.cssText=g;e.empty(f);e.insert(f,l);e.show(
2:new n({options:e.x2axis,n:2,length:this.plotWidth}),y:new n({options:e.yaxis,n f)}else{e.hide(f)}},clip:function(g){var k=this.plotOffset,f=this.canvasWidth,j=
:1,length:this.plotHeight,offset:this.plotHeight,orientation:-1}),y2:new n({opti this.canvasHeight;g=g||this.ctx;if(b.isIE&&b.isIE<9&&!b.isFlashCanvas){if(g===th
ons:e.y2axis,n:2,length:this.plotHeight,offset:this.plotHeight,orientation:-1})} is.octx){return}g.save();g.fillStyle=this.processColor(this.options.ieBackground
}}),Flotr.Axis=n}(),function(){function t(t){e.extend(this,t)}var e=Flotr._;t.pr Color);g.fillRect(0,0,f,k.top);g.fillRect(0,0,k.left,j);g.fillRect(0,j-k.bottom,
ototype={getRange:function(){var e=this.data,t=e.length,n=Number.MAX_VALUE,r=Num f,k.bottom);g.fillRect(f-k.right,0,k.right,j);g.restore()}else{g.clearRect(0,0,f
ber.MAX_VALUE,i=-Number.MAX_VALUE,s=-Number.MAX_VALUE,o=!1,u=!1,a,f,l;if(t<0||th ,k.top);g.clearRect(0,0,k.left,j);g.clearRect(0,j-k.bottom,f,k.bottom);g.clearRe
is.hide)return!1;for(l=0;l<t;l++)a=e[l][0],f=e[l][1],a!==null&&(a<n&&(n=a,o=!0), ct(f-k.right,0,k.right,j)}},_initMembers:function(){this._handles=[];this.lastMo
a>i&&(i=a,o=!0)),f!==null&&(f<r&&(r=f,u=!0),f>s&&(s=f,u=!0));return{xmin:n,xmax: usePos={pageX:null,pageY:null};this.plotOffset={left:0,right:0,top:0,bottom:0};t
i,ymin:r,ymax:s,xused:o,yused:u}}},e.extend(t,{getSeries:function(n){return e.ma his.ignoreClick=true;this.prevHit=null},_initGraphTypes:function(){a.each(b.grap
p(n,function(n){var r;return n.data?(r=new t,e.extend(r,n)):r=new t({data:n}),r} hTypes,function(f,g){this[g]=b.clone(f)},this)},_initEvents:function(){var g=thi
)}}),Flotr.Series=t}(),Flotr.addType("lines",{options:{show:!1,lineWidth:2,fill: s.el,j,f,h;if("ontouchstart" in g){j=a.bind(function(k){h=true;c.stopObserving(d
!1,fillBorder:!1,fillColor:null,fillOpacity:.4,steps:!1,stacked:!1},stack:{value ocument,"touchend",j);c.fire(g,"flotr:mouseup",[event,this]);this.multitouches=n
s:[]},draw:function(e){var t=e.context,n=e.lineWidth,r=e.shadowSize,i;t.save(),t ull;if(!f){this.clickHandler(k)}},this);this.observe(this.overlay,"touchstart",a
.lineJoin="round",r&&(t.lineWidth=r/2,i=n/2+t.lineWidth/2,t.strokeStyle="rgba(0, .bind(function(k){f=false;h=false;this.ignoreClick=false;if(k.touches&&k.touches
0,0,0.1)",this.plot(e,i+r/2,!1),t.strokeStyle="rgba(0,0,0,0.2)",this.plot(e,i,!1 .length>1){this.multitouches=k.touches}c.fire(g,"flotr:mousedown",[event,this]);
)),t.lineWidth=n,t.strokeStyle=e.color,this.plot(e,0,!0),t.restore()},plot:funct this.observe(document,"touchend",j)},this));this.observe(this.overlay,"touchmove
ion(e,t,n){function S(){!t&&e.fill&&d&&(v=o(d[0]),r.fillStyle=e.fillStyle,r.line ",a.bind(function(k){var l=this.getEventPosition(k);if(this.options.preventDefau
To(m,p),r.lineTo(v,p),r.lineTo(v,u(d[1])),r.fill(),e.fillBorder&&r.stroke())}var lt){k.preventDefault()}f=true;if(this.multitouches||(k.touches&&k.touches.length
r=e.context,i=e.width,s=e.height,o=e.xScale,u=e.yScale,a=e.data,f=e.stacked?thi >1)){this.multitouches=k.touches}else{if(!h){c.fire(g,"flotr:mousemove",[event,l
s.stack:!1,l=a.length-1,c=null,h=null,p=u(0),d=null,v,m,g,y,b,w,E;if(l<1)return; ,this])}}this.lastMousePos=l},this))}else{this.observe(this.overlay,"mousedown",
r.beginPath();for(E=0;E<l;++E){if(a[E][1]===null||a[E+1][1]===null){e.fill&&E>0& a.bind(this.mouseDownHandler,this)).observe(g,"mousemove",a.bind(this.mouseMoveH
&a[E][1]!==null&&(r.stroke(),S(),d=null,r.closePath(),r.beginPath());continue}v= andler,this)).observe(this.overlay,"click",a.bind(this.clickHandler,this)).obser
o(a[E][0]),m=o(a[E+1][0]),d===null&&(d=a[E]),f?(b=f.values[a[E][0]]||0,w=f.value ve(g,"mouseout",function(k){c.fire(g,"flotr:mouseout",k)})}},_initCanvas:functio
s[a[E+1][0]]||f.values[a[E][0]]||0,g=u(a[E][1]+b),y=u(a[E+1][1]+w),n&&(a[E].y0=b n(){var j=this.el,h=this.options,k=j.children,p=[],g,l,q,f;for(l=k.length;l--;){
,f.values[a[E][0]]=a[E][1]+b,E==l-1&&(a[E+1].y0=w,f.values[a[E+1][0]]=a[E+1][1]+ g=k[l];if(!this.canvas&&g.className==="flotr-canvas"){this.canvas=g}else{if(!thi
w))):(g=u(a[E][1]),y=u(a[E+1][1]));if(g>s&&y>s||g<0&&y<0||v<0&&m<0||v>i&&m>i)con s.overlay&&g.className==="flotr-overlay"){this.overlay=g}else{p.push(g)}}}for(l=
tinue;(c!=v||h!=g+t)&&r.moveTo(v,g+t),c=m,h=y+t,e.steps?(r.lineTo(c+t/2,g+t),r.l p.length;l--;){j.removeChild(p[l])}e.setStyles(j,{position:"relative"});q={};q.w
ineTo(c+t/2,h)):r.lineTo(c,h)}(!e.fill||e.fill&&!e.fillBorder)&&r.stroke(),S(),r idth=j.clientWidth;q.height=j.clientHeight;if(q.width<=0||q.height<=0||h.resolut
.closePath()},extendYRange:function(e,t,n,r){var i=e.options;if(n.stacked&&(!i.m ion<=0){throw"Invalid dimensions for plot, width = "+q.width+", height = "+q.hei
ax&&i.max!==0||!i.min&&i.min!==0)){var s=e.max,o=e.min,u=r.positiveSums||{},a=r. ght+", resolution = "+h.resolution}this.canvas=m(this.canvas,"canvas");this.over
negativeSums||{},f,l;for(l=0;l<t.length;l++)f=t[l][0]+"",t[l][1]>0?(u[f]=(u[f]|| lay=m(this.overlay,"overlay");this.ctx=n(this.canvas);this.ctx.clearRect(0,0,thi
0)+t[l][1],s=Math.max(s,u[f])):(a[f]=(a[f]||0)+t[l][1],o=Math.min(o,a[f]));r.neg s.canvas.width,this.canvas.height);this.octx=n(this.overlay);this.octx.clearRect
ativeSums=a,r.positiveSums=u,e.max=s,e.min=o}n.steps&&(this.hit=function(e){var (0,0,this.overlay.width,this.overlay.height);this.canvasHeight=q.height;this.can
t=e.data,n=e.args,r=e.yScale,i=n[0],s=t.length,o=n[1],u=e.xInverse(i.relX),a=i.r vasWidth=q.width;this.textEnabled=!!this.ctx.drawText||!!this.ctx.fillText;funct
elY,f;for(f=0;f<s-1;f++)if(u>=t[f][0]&&u<=t[f+1][0]){Math.abs(r(t[f][1])-a)<8&&( ion m(r,o){if(!r){r=e.create("canvas");if(typeof FlashCanvas!="undefined"&&typeo
o.x=t[f][0],o.y=t[f][1],o.index=f,o.seriesIndex=e.index);break}},this.drawHit=fu f r.getContext==="function"){FlashCanvas.initElement(r);this.isFlashCanvas=true}
nction(e){var t=e.context,n=e.args,r=e.data,i=e.xScale,s=n.index,o=i(n.x),u=e.yS r.className="flotr-"+o;r.style.cssText="position:absolute;left:0px;top:0px;";e.i
cale(n.y),a;r.length-1>s&&(a=e.xScale(r[s+1][0]),t.save(),t.strokeStyle=e.color, nsert(j,r)}a.each(q,function(s,t){e.show(r);if(o=="canvas"&&r.getAttribute(t)===
t.lineWidth=e.lineWidth,t.beginPath(),t.moveTo(o,u),t.lineTo(a,u),t.stroke(),t.c s){return}r.setAttribute(t,s*h.resolution);r.style[t]=s+"px"});r.context_=null;r
losePath(),t.restore())},this.clearHit=function(e){var t=e.context,n=e.args,r=e. eturn r}function n(o){if(window.G_vmlCanvasManager){window.G_vmlCanvasManager.in
data,i=e.xScale,s=e.lineWidth,o=n.index,u=i(n.x),a=e.yScale(n.y),f;r.length-1>o& itElement(o)}var r=o.getContext("2d");if(!window.G_vmlCanvasManager){r.scale(h.r
&(f=e.xScale(r[o+1][0]),t.clearRect(u-s,a-s,f-u+2*s,2*s))})}}),Flotr.addType("ba esolution,h.resolution)}return r}},_initPlugins:function(){a.each(b.plugins,func
rs",{options:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,fillOpacity: tion(g,f){a.each(g.callbacks,function(h,j){this.observe(this.el,j,a.bind(h,this)
.4,horizontal:!1,stacked:!1,centered:!0,topPadding:.1,grouped:!1},stack:{positiv )},this);this[f]=b.clone(g);a.each(this[f],function(h,j){if(a.isFunction(h)){thi
e:[],negative:[],_positive:[],_negative:[]},draw:function(e){var t=e.context;thi s[f][j]=a.bind(h,this)}},this)},this)},_initOptions:function(g){var A=b.clone(b.
s.current+=1,t.save(),t.lineJoin="miter",t.lineWidth=e.lineWidth,t.strokeStyle=e defaultOptions);A.x2axis=a.extend(a.clone(A.xaxis),A.x2axis);A.y2axis=a.extend(a
.color,e.fill&&(t.fillStyle=e.fillStyle),this.plot(e),t.restore()},plot:function .clone(A.yaxis),A.y2axis);this.options=b.merge(g||{},A);if(this.options.grid.min
(e){var t=e.data,n=e.context,r=e.shadowSize,i,s,o,u,a,f;if(t.length<1)return;thi orVerticalLines===null&&this.options.xaxis.scaling==="logarithmic"){this.options
s.translate(n,e.horizontal);for(i=0;i<t.length;i++){s=this.getBarGeometry(t[i][0 .grid.minorVerticalLines=true}if(this.options.grid.minorHorizontalLines===null&&
],t[i][1],e);if(s===null)continue;o=s.left,u=s.top,a=s.width,f=s.height,e.fill&& this.options.yaxis.scaling==="logarithmic"){this.options.grid.minorHorizontalLin
n.fillRect(o,u,a,f),r&&(n.save(),n.fillStyle="rgba(0,0,0,0.05)",n.fillRect(o+r,u es=true}c.fire(this.el,"flotr:afterinitoptions",[this]);this.axes=b.Axis.getAxes
+r,a,f),n.restore()),e.lineWidth&&n.strokeRect(o,u,a,f)}},translate:function(e,t (this.options);var n=[],h=[],q=this.series.length,v=this.series.length,k=this.op
){t&&(e.rotate(-Math.PI/2),e.scale(-1,1))},getBarGeometry:function(e,t,n){var r= tions.colors,f=[],m=0,u,p,o,z;for(p=v-1;p>-1;--p){u=this.series[p].color;if(u){-
n.horizontal,i=n.barWidth,s=n.centered,o=n.stacked?this.stack:!1,u=n.lineWidth,a -v;if(a.isNumber(u)){n.push(u)}else{f.push(b.Color.parse(u))}}}for(p=n.length-1;
=s?i/2:0,f=r?n.yScale:n.xScale,l=r?n.xScale:n.yScale,c=r?t:e,h=r?e:t,p=0,d,v,m,g p>-1;--p){v=Math.max(v,n[p]+1)}for(p=0;h.length<v;){u=(k.length==p)?new b.Color(
,y;return n.grouped&&(this.current/this.groups,c-=a,i/=this.groups,a=i/2,c=c+i*t 100,100,100):b.Color.parse(k[p]);var l=m%2==1?-1:1,r=1+l*Math.ceil(m/2)*0.2;u.sc
his.current-a),o&&(d=h>0?o.positive:o.negative,p=d[c]||p,d[c]=p+h),v=f(c-a),m=f( ale(r,r,r);h.push(u);if(++p>=k.length){p=0;++m}}for(p=0,o=0;p<q;++p){z=this.seri
c+i-a),g=l(h+p),y=l(p),y<0&&(y=0),e===null||t===null?null:{x:c,y:h,xScale:f,ySca es[p];if(!z.color){z.color=h[o++].toString()}else{if(a.isNumber(z.color)){z.colo
le:l,top:g,left:Math.min(v,m)-u/2,width:Math.abs(m-v)-u,height:y-g}},hit:functio r=h[z.color].toString()}}if(!z.xaxis){z.xaxis=this.axes.x}if(z.xaxis==1){z.xaxis
n(e){var t=e.data,n=e.args,r=n[0],i=n[1],s=e.xInverse(r.relX),o=e.yInverse(r.rel =this.axes.x}else{if(z.xaxis==2){z.xaxis=this.axes.x2}}if(!z.yaxis){z.yaxis=this
Y),u=this.getBarGeometry(s,o,e),a=u.width/2,f=u.left,l=u.y,c,h;for(h=t.length;h- .axes.y}if(z.yaxis==1){z.yaxis=this.axes.y}else{if(z.yaxis==2){z.yaxis=this.axes
-;)c=this.getBarGeometry(t[h][0],t[h][1],e),(l>0&&l<c.y||l<0&&l>c.y)&&Math.abs(f .y2}}for(var w in b.graphTypes){z[w]=a.extend(a.clone(this.options[w]),z[w])}z.m
-c.left)<a&&(i.x=t[h][0],i.y=t[h][1],i.index=h,i.seriesIndex=e.index)},drawHit:f ouse=a.extend(a.clone(this.options.mouse),z.mouse);if(a.isUndefined(z.shadowSize
unction(e){var t=e.context,n=e.args,r=this.getBarGeometry(n.x,n.y,e),i=r.left,s= )){z.shadowSize=this.options.shadowSize}}},_setEl:function(f){if(!f){throw"The t
r.top,o=r.width,u=r.height;t.save(),t.strokeStyle=e.color,t.lineWidth=e.lineWidt arget container doesn't exist"}else{if(f.graph instanceof Graph){f.graph.destroy
h,this.translate(t,e.horizontal),t.beginPath(),t.moveTo(i,s+u),t.lineTo(i,s),t.l ()}else{if(!f.clientWidth){throw"The target container must be visible"}}}f.graph
ineTo(i+o,s),t.lineTo(i+o,s+u),e.fill&&(t.fillStyle=e.fillStyle,t.fill()),t.stro =this;this.el=f}};Flotr.Graph=Graph})();(function(){var c=Flotr._,a="logarithmic
ke(),t.closePath(),t.restore()},clearHit:function(e){var t=e.context,n=e.args,r= ";function b(f){this.orientation=1;this.offset=0;this.datamin=Number.MAX_VALUE;t
this.getBarGeometry(n.x,n.y,e),i=r.left,s=r.width,o=r.top,u=r.height,a=2*e.lineW his.datamax=-Number.MAX_VALUE;c.extend(this,f)}b.prototype={setScale:function(){
idth;t.save(),this.translate(t,e.horizontal),t.clearRect(i-a,Math.min(o,o+u)-a,s var l=this.length,f=this.max,j=this.min,n=this.offset,g=this.orientation,h=this.
+2*a,Math.abs(u)+2*a),t.restore()},extendXRange:function(e,t,n,r){this._extendRa options,k=h.scaling===a,m;if(k){m=l/(d(f,h.base)-d(j,h.base))}else{m=l/(f-j)}thi
nge(e,t,n,r),this.groups=this.groups+1||1,this.current=0},extendYRange:function( s.scale=m;if(k){this.d2p=function(o){return n+g*(d(o,h.base)-d(j,h.base))*m};thi
e,t,n,r){this._extendRange(e,t,n,r)},_extendRange:function(e,t,n,r){var i=e.opti s.p2d=function(o){return e((n+g*o)/m+d(j,h.base),h.base)}}else{this.d2p=function
ons.max;if(_.isNumber(i)||_.isString(i))return;var s=e.min,o=e.max,u=n.horizonta (o){return n+g*(o-j)*m};this.p2d=function(o){return(n+g*o)/m+j}}},calculateTicks
l,a=e.orientation,f=this.positiveSums||{},l=this.negativeSums||{},c,h,p,d;(a==1& :function(){var f=this.options;this.ticks=[];this.minorTicks=[];if(f.ticks){this
&!u||a==-1&&u)&&n.centered&&(o=Math.max(e.datamax+n.barWidth,o),s=Math.min(e.dat ._cleanUserTicks(f.ticks,this.ticks);this._cleanUserTicks(f.minorTicks||[],this.
amin-n.barWidth,s));if(n.stacked&&(a==1&&u||a==-1&&!u))for(d=t.length;d--;)c=t[d minorTicks)}else{if(f.mode=="time"){this._calculateTimeTicks()}else{if(f.scaling
][a==1?1:0]+"",h=t[d][a==1?0:1],h>0?(f[c]=(f[c]||0)+h,o=Math.max(o,f[c])):(l[c]= ==="logarithmic"){this._calculateLogTicks()}else{this._calculateTicks()}}}c.each
(l[c]||0)+h,s=Math.min(s,l[c]));(a==1&&u||a==-1&&!u)&&n.topPadding&&(e.max===e.d (this.ticks,function(g){g.label+=""});c.each(this.minorTicks,function(g){g.label
atamax||n.stacked&&this.stackMax!==o)&&(o+=n.topPadding*(o-s)),this.stackMin=s,t +=""})},calculateRange:function(){if(!this.used){return}var l=this,n=l.options,k
his.stackMax=o,this.negativeSums=l,this.positiveSums=f,e.max=o,e.min=s}}),Flotr. =n.min!==null?n.min:l.datamin,f=n.max!==null?n.max:l.datamax,m=n.autoscaleMargin
addType("bubbles",{options:{show:!1,lineWidth:2,fill:!0,fillOpacity:.4,baseRadiu ;if(n.scaling=="logarithmic"){if(k<=0){k=l.datamin}if(f<=0){f=k}}if(f==k){var g=
s:2},draw:function(e){var t=e.context,n=e.shadowSize;t.save(),t.lineWidth=e.line f?0.01:1;if(n.min===null){k-=g}if(n.max===null){f+=g}}if(n.scaling==="logarithmi
Width,t.fillStyle="rgba(0,0,0,0.05)",t.strokeStyle="rgba(0,0,0,0.05)",this.plot( c"){if(k<0){k=f/n.base}var h=Math.log(f);if(n.base!=Math.E){h/=Math.log(n.base)}
e,n/2),t.strokeStyle="rgba(0,0,0,0.1)",this.plot(e,n/4),t.strokeStyle=e.color,t. h=Math.ceil(h);var j=Math.log(k);if(n.base!=Math.E){j/=Math.log(n.base)}j=Math.c
fillStyle=e.fillStyle,this.plot(e),t.restore()},plot:function(e,t){var n=e.data, eil(j);l.tickSize=Flotr.getTickSize(n.noTicks,j,h,n.tickDecimals===null?0:n.tick
r=e.context,i,s,o,u,a;t=t||0;for(s=0;s<n.length;++s)i=this.getGeometry(n[s],e),r Decimals);if(n.minorTickFreq===null){if(h-j>10){n.minorTickFreq=0}else{if(h-j>5)
.beginPath(),r.arc(i.x+t,i.y+t,i.z,0,2*Math.PI,!0),r.stroke(),e.fill&&r.fill(),r {n.minorTickFreq=2}else{n.minorTickFreq=5}}}}else{l.tickSize=Flotr.getTickSize(n
.closePath()},getGeometry:function(e,t){return{x:t.xScale(e[0]),y:t.yScale(e[1]) .noTicks,k,f,n.tickDecimals)}l.min=k;l.max=f;if(n.min===null&&n.autoscale){l.min
,z:e[2]*t.baseRadius}},hit:function(e){var t=e.data,n=e.args,r=n[0],s=n[1],o=r.r -=l.tickSize*m;if(l.min<0&&l.datamin>=0){l.min=0}l.min=l.tickSize*Math.floor(l.m
elX,u=r.relY,a,f,l,c;s.best=s.best||Number.MAX_VALUE;for(i=t.length;i--;)f=this. in/l.tickSize)}if(n.max===null&&n.autoscale){l.max+=l.tickSize*m;if(l.max>0&&l.d
getGeometry(t[i],e),l=f.x-o,c=f.y-u,a=Math.sqrt(l*l+c*c),a<f.z&&f.z<s.best&&(s.x atamax<=0&&l.datamax!=l.datamin){l.max=0}l.max=l.tickSize*Math.ceil(l.max/l.tick
=t[i][0],s.y=t[i][1],s.index=i,s.seriesIndex=e.index,s.best=f.z)},drawHit:functi Size)}if(l.min==l.max){l.max=l.min+1}},calculateTextDimensions:function(g,f){var
on(e){var t=e.context,n=this.getGeometry(e.data[e.args.index],e);t.save(),t.line j="",k,h;if(this.options.showLabels){for(h=0;h<this.ticks.length;++h){k=this.ti
Width=e.lineWidth,t.fillStyle=e.fillStyle,t.strokeStyle=e.color,t.beginPath(),t. cks[h].label.length;if(k>j.length){j=this.ticks[h].label}}}this.maxLabel=g.dimen
arc(n.x,n.y,n.z,0,2*Math.PI,!0),t.fill(),t.stroke(),t.closePath(),t.restore()},c sions(j,{size:f.fontSize,angle:Flotr.toRad(this.options.labelsAngle)},"font-size
learHit:function(e){var t=e.context,n=this.getGeometry(e.data[e.args.index],e),r :smaller;","flotr-grid-label");this.titleSize=g.dimensions(this.options.title,{s
=n.z+e.lineWidth;t.save(),t.clearRect(n.x-r,n.y-r,2*r,2*r),t.restore()}}),Flotr. ize:f.fontSize*1.2,angle:Flotr.toRad(this.options.titleAngle)},"font-weight:bold
addType("candles",{options:{show:!1,lineWidth:1,wickLineWidth:1,candleWidth:.6,f ;","flotr-axis-title")},_cleanUserTicks:function(m,n){var l=this,h=this.options,
ill:!0,upFillColor:"#00A8F0",downFillColor:"#CB4B4B",fillOpacity:.5,barcharts:!1 f,k,g,j;if(c.isFunction(m)){m=m({min:l.min,max:l.max})}for(k=0;k<m.length;++k){j
},draw:function(e){var t=e.context;t.save(),t.lineJoin="miter",t.lineCap="butt", =m[k];if(typeof(j)==="object"){f=j[0];g=(j.length>1)?j[1]:h.tickFormatter(f,{min
t.lineWidth=e.wickLineWidth||e.lineWidth,this.plot(e),t.restore()},plot:function :l.min,max:l.max})}else{f=j;g=h.tickFormatter(f,{min:this.min,max:this.max})}n[k
(e){var t=e.data,n=e.context,r=e.xScale,i=e.yScale,s=e.candleWidth/2,o=e.shadowS ]={v:f,label:g}}},_calculateTimeTicks:function(){this.ticks=Flotr.Date.generator
ize,u=e.lineWidth,a=e.wickLineWidth,f=a%2/2,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N;if(t (this)},_calculateLogTicks:function(){var l=this,m=l.options,h,k;var g=Math.log(
.length<1)return;for(N=0;N<t.length;N++){c=t[N],h=c[0],d=c[1],v=c[2],m=c[3],g=c[ l.max);if(m.base!=Math.E){g/=Math.log(m.base)}g=Math.ceil(g);var j=Math.log(l.mi
4],y=r(h-s),b=r(h+s),w=i(m),E=i(v),S=i(Math.min(d,g)),x=i(Math.max(d,g)),l=e[d>g n);if(m.base!=Math.E){j/=Math.log(m.base)}j=Math.ceil(j);for(i=j;i<g;i+=l.tickSi
?"downFillColor":"upFillColor"],e.fill&&!e.barcharts&&(n.fillStyle="rgba(0,0,0,0 ze){k=(m.base==Math.E)?Math.exp(i):Math.pow(m.base,i);var n=k*((m.base==Math.E)?
.05)",n.fillRect(y+o,x+o,b-y,S-x),n.save(),n.globalAlpha=e.fillOpacity,n.fillSty Math.exp(l.tickSize):Math.pow(m.base,l.tickSize));var f=(n-k)/m.minorTickFreq;l.
le=l,n.fillRect(y,x+u,b-y,S-x),n.restore());if(u||a)h=Math.floor((y+b)/2)+f,n.st ticks.push({v:k,label:m.tickFormatter(k,{min:l.min,max:l.max})});for(h=k+f;h<n;h
rokeStyle=l,n.beginPath(),e.barcharts?(n.moveTo(h,Math.floor(E+u)),n.lineTo(h,Ma +=f){l.minorTicks.push({v:h,label:m.tickFormatter(h,{min:l.min,max:l.max})})}}k=
th.floor(w+u)),T=d<g,n.moveTo(T?b:y,Math.floor(x+u)),n.lineTo(h,Math.floor(x+u)) (m.base==Math.E)?Math.exp(i):Math.pow(m.base,i);l.ticks.push({v:k,label:m.tickFo
,n.moveTo(h,Math.floor(S+u)),n.lineTo(T?y:b,Math.floor(S+u))):(n.strokeRect(y,x+ rmatter(k,{min:l.min,max:l.max})})},_calculateTicks:function(){var k=this,g=k.op
u,b-y,S-x),n.moveTo(h,Math.floor(x+u)),n.lineTo(h,Math.floor(E+u)),n.moveTo(h,Ma tions,p=k.tickSize,m=k.min,r=k.max,f=p*Math.ceil(m/p),h,q,t,s,n,l;if(g.minorTick
th.floor(S+u)),n.lineTo(h,Math.floor(w+u))),n.closePath(),n.stroke()}},hit:funct Freq){q=p/g.minorTickFreq}for(n=0;(t=s=f+n*p)<=r;++n){h=g.tickDecimals;if(h===nu
ion(e){var t=e.xScale,n=e.yScale,r=e.data,i=e.args,s=i[0],o=e.candleWidth/2,u=i[ ll){h=1-Math.floor(Math.log(p)/Math.LN10)}if(h<0){h=0}t=t.toFixed(h);k.ticks.pus
1],a=s.relX,f=s.relY,l=r.length,c,h,p,d,v,m,g,y;for(c=0;c<l;c++){h=r[c],p=h[2],d h({v:t,label:g.tickFormatter(t,{min:k.min,max:k.max})});if(g.minorTickFreq){for(
=h[3],v=t(h[0]-o),m=t(h[0]+o),y=n(d),g=n(p);if(a>v&&a<m&&f>g&&f<y){u.x=h[0],u.in l=0;l<g.minorTickFreq&&(n*p+l*q)<r;++l){t=s+l*q;k.minorTicks.push({v:t,label:g.t
dex=c,u.seriesIndex=e.index;return}}},drawHit:function(e){var t=e.context;t.save ickFormatter(t,{min:k.min,max:k.max})})}}}}};c.extend(b,{getAxes:function(f){ret
(),this.plot(_.defaults({fill:!!e.fillColor,upFillColor:e.color,downFillColor:e. urn{x:new b({options:f.xaxis,n:1,length:this.plotWidth}),x2:new b({options:f.x2a
color,data:[e.data[e.args.index]]},e)),t.restore()},clearHit:function(e){var t=e xis,n:2,length:this.plotWidth}),y:new b({options:f.yaxis,n:1,length:this.plotHei
.args,n=e.context,r=e.xScale,i=e.yScale,s=e.lineWidth,o=e.candleWidth/2,u=e.data ght,offset:this.plotHeight,orientation:-1}),y2:new b({options:f.y2axis,n:2,lengt
[t.index],a=r(u[0]-o)-s,f=r(u[0]+o)+s,l=i(u[2]),c=i(u[3])+s;n.clearRect(a,l,f-a, h:this.plotHeight,offset:this.plotHeight,orientation:-1})}}});function d(g,f){g=
c-l)},extendXRange:function(e,t,n){e.options.max===null&&(e.max=Math.max(e.datam Math.log(Math.max(g,Number.MIN_VALUE));if(f!==Math.E){g/=Math.log(f)}return g}fu
ax+.5,e.max),e.min=Math.min(e.datamin-.5,e.min))}}),Flotr.addType("gantt",{optio nction e(g,f){return(f===Math.E)?Math.exp(g):Math.pow(f,g)}Flotr.Axis=b})();(fun
ns:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,fillOpacity:.4,centere ction(){var b=Flotr._;function a(c){b.extend(this,c)}a.prototype={getRange:funct
d:!0},draw:function(e){var t=this.ctx,n=e.gantt.barWidth,r=Math.min(e.gantt.line ion(){var g=this.data,d=g.length,c=Number.MAX_VALUE,n=Number.MAX_VALUE,h=-Number
Width,n);t.save(),t.translate(this.plotOffset.left,this.plotOffset.top),t.lineJo .MAX_VALUE,e=-Number.MAX_VALUE,k=false,j=false,m,l,f;if(d<0||this.hide){return f
in="miter",t.lineWidth=r,t.strokeStyle=e.color,t.save(),this.gantt.plotShadows(e alse}for(f=0;f<d;f++){m=g[f][0];l=g[f][1];if(m!==null){if(m<c){c=m;k=true}if(m>h
,n,0,e.gantt.fill),t.restore();if(e.gantt.fill){var i=e.gantt.fillColor||e.color ){h=m;k=true}}if(l!==null){if(l<n){n=l;j=true}if(l>e){e=l;j=true}}}return{xmin:c
;t.fillStyle=this.processColor(i,{opacity:e.gantt.fillOpacity})}this.gantt.plot( ,xmax:h,ymin:n,ymax:e,xused:k,yused:j}}};b.extend(a,{getSeries:function(c){retur
e,n,0,e.gantt.fill),t.restore()},plot:function(e,t,n,r){var i=e.data;if(i.length n b.map(c,function(e){var d;if(e.data){d=new a();b.extend(d,e)}else{d=new a({dat
<1)return;var s=e.xaxis,o=e.yaxis,u=this.ctx,a;for(a=0;a<i.length;a++){var f=i[a a:e})}return d})}});Flotr.Series=a})();Flotr.addType("lines",{options:{show:fals
][0],l=i[a][1],c=i[a][2],h=!0,p=!0,d=!0;if(l===null||c===null)continue;var v=l,m e,lineWidth:2,fill:false,fillBorder:false,fillColor:null,fillOpacity:0.4,steps:f
=l+c,g=f-(e.gantt.centered?t/2:0),y=f+t-(e.gantt.centered?t/2:0);if(m<s.min||v>s alse,stacked:false},stack:{values:[]},draw:function(b){var c=b.context,a=b.lineW
.max||y<o.min||g>o.max)continue;v<s.min&&(v=s.min,h=!1),m>s.max&&(m=s.max,s.last idth,d=b.shadowSize,e;c.save();c.lineJoin="round";if(d){c.lineWidth=d/2;e=a/2+c.
Serie!=e&&(p=!1)),g<o.min&&(g=o.min),y>o.max&&(y=o.max,o.lastSerie!=e&&(p=!1)),r lineWidth/2;c.strokeStyle="rgba(0,0,0,0.1)";this.plot(b,e+d/2,false);c.strokeSty
&&(u.beginPath(),u.moveTo(s.d2p(v),o.d2p(g)+n),u.lineTo(s.d2p(v),o.d2p(y)+n),u.l le="rgba(0,0,0,0.2)";this.plot(b,e,false)}c.lineWidth=a;c.strokeStyle=b.color;th
ineTo(s.d2p(m),o.d2p(y)+n),u.lineTo(s.d2p(m),o.d2p(g)+n),u.fill(),u.closePath()) is.plot(b,0,true);c.restore()},plot:function(e,l,v){var c=e.context,q=e.width,p=
,e.gantt.lineWidth&&(h||d||p)&&(u.beginPath(),u.moveTo(s.d2p(v),o.d2p(g)+n),u[h? e.height,z=e.xScale,b=e.yScale,w=e.data,k=e.stacked?this.stack:false,f=w.length-
"lineTo":"moveTo"](s.d2p(v),o.d2p(y)+n),u[p?"lineTo":"moveTo"](s.d2p(m),o.d2p(y) 1,o=null,n=null,m=b(0),g=null,u,t,d,a,j,h,s;if(f<1){return}c.beginPath();for(s=0
+n),u[d?"lineTo":"moveTo"](s.d2p(m),o.d2p(g)+n),u.stroke(),u.closePath())}},plot ;s<f;++s){if(w[s][1]===null||w[s+1][1]===null){if(e.fill){if(s>0&&w[s][1]!==null
Shadows:function(e,t,n){var r=e.data;if(r.length<1)return;var i,s,o,u,a=e.xaxis, ){c.stroke();r();g=null;c.closePath();c.beginPath()}}continue}u=z(w[s][0]);t=z(w
f=e.yaxis,l=this.ctx,c=this.options.shadowSize;for(i=0;i<r.length;i++){s=r[i][0] [s+1][0]);if(g===null){g=w[s]}if(k){j=k.values[w[s][0]]||0;h=k.values[w[s+1][0]]
,o=r[i][1],u=r[i][2];if(o===null||u===null)continue;var h=o,p=o+u,d=s-(e.gantt.c ||k.values[w[s][0]]||0;d=b(w[s][1]+j);a=b(w[s+1][1]+h);if(v){w[s].y0=j;k.values[
entered?t/2:0),v=s+t-(e.gantt.centered?t/2:0);if(p<a.min||h>a.max||v<f.min||d>f. w[s][0]]=w[s][1]+j;if(s==f-1){w[s+1].y0=h;k.values[w[s+1][0]]=w[s+1][1]+h}}}else
max)continue;h<a.min&&(h=a.min),p>a.max&&(p=a.max),d<f.min&&(d=f.min),v>f.max&&( {d=b(w[s][1]);a=b(w[s+1][1])}if((d>p&&a>p)||(d<0&&a<0)||(u<0&&t<0)||(u>q&&t>q)){
v=f.max);var m=a.d2p(p)-a.d2p(h)-(a.d2p(p)+c<=this.plotWidth?0:c),g=f.d2p(d)-f.d continue}if((o!=u)||(n!=d+l)){c.moveTo(u,d+l)}o=t;n=a+l;if(e.steps){c.lineTo(o+l
2p(v)-(f.d2p(d)+c<=this.plotHeight?0:c);l.fillStyle="rgba(0,0,0,0.05)",l.fillRec /2,d+l);c.lineTo(o+l/2,n)}else{c.lineTo(o,n)}}if(!e.fill||e.fill&&!e.fillBorder)
t(Math.min(a.d2p(h)+c,this.plotWidth),Math.min(f.d2p(v)+c,this.plotHeight),m,g)} {c.stroke()}r();function r(){if(!l&&e.fill&&g){u=z(g[0]);c.fillStyle=e.fillStyle
},extendXRange:function(e){if(e.options.max===null){var t=e.min,n=e.max,r,i,s,o, ;c.lineTo(t,m);c.lineTo(u,m);c.lineTo(u,b(g[1]));c.fill();if(e.fillBorder){c.str
u,a={},f={},l=null;for(r=0;r<this.series.length;++r){o=this.series[r],u=o.gantt; oke()}}}c.closePath()},extendYRange:function(b,f,l,m){var a=b.options;if(l.stack
if(u.show&&o.xaxis==e){for(i=0;i<o.data.length;i++)u.show&&(y=o.data[i][0]+"",a[ ed&&((!a.max&&a.max!==0)||(!a.min&&a.min!==0))){var g=b.max,d=b.min,c=m.positive
y]=Math.max(a[y]||0,o.data[i][1]+o.data[i][2]),l=o);for(i in a)n=Math.max(a[i],n Sums||{},h=m.negativeSums||{},k,e;for(e=0;e<f.length;e++){k=f[e][0]+"";if(f[e][1
)}}e.lastSerie=l,e.max=n,e.min=t}},extendYRange:function(e){if(e.options.max===n ]>0){c[k]=(c[k]||0)+f[e][1];g=Math.max(g,c[k])}else{h[k]=(h[k]||0)+f[e][1];d=Mat
ull){var t=Number.MIN_VALUE,n=Number.MAX_VALUE,r,i,s,o,u={},a={},f=null;for(r=0; h.min(d,h[k])}}m.negativeSums=h;m.positiveSums=c;b.max=g;b.min=d}if(l.steps){thi
r<this.series.length;++r){s=this.series[r],o=s.gantt;if(o.show&&!s.hide&&s.yaxis s.hit=function(w){var r=w.data,t=w.args,j=w.yScale,s=t[0],o=r.length,p=t[1],v=w.
==e){var l=Number.MIN_VALUE,c=Number.MAX_VALUE;for(i=0;i<s.data.length;i++)l=Mat xInverse(s.relX),u=s.relY,q;for(q=0;q<o-1;q++){if(v>=r[q][0]&&v<=r[q+1][0]){if(M
h.max(l,s.data[i][0]),c=Math.min(c,s.data[i][0]);o.centered?(t=Math.max(l+.5,t), ath.abs(j(r[q][1])-u)<8){p.x=r[q][0];p.y=r[q][1];p.index=q;p.seriesIndex=w.index
n=Math.min(c-.5,n)):(t=Math.max(l+1,t),n=Math.min(c,n)),o.barWidth+l>t&&(t=e.max }break}}};this.drawHit=function(u){var n=u.context,q=u.args,o=u.data,t=u.xScale,
+o.barWidth)}}e.lastSerie=f,e.max=t,e.min=n,e.tickSize=Flotr.getTickSize(e.optio p=q.index,s=t(q.x),r=u.yScale(q.y),j;if(o.length-1>p){j=u.xScale(o[p+1][0]);n.sa
ns.noTicks,n,t,e.options.tickDecimals)}}}),function(){function e(e){return typeo ve();n.strokeStyle=u.color;n.lineWidth=u.lineWidth;n.beginPath();n.moveTo(s,r);n
f e=="object"&&e.constructor&&(Image?!0:e.constructor===Image)}Flotr.defaultMark .lineTo(j,r);n.stroke();n.closePath();n.restore()}};this.clearHit=function(v){va
erFormatter=function(e){return Math.round(e.y*100)/100+""},Flotr.addType("marker r o=v.context,r=v.args,p=v.data,u=v.xScale,n=v.lineWidth,q=r.index,t=u(r.x),s=v.
s",{options:{show:!1,lineWidth:1,color:"#000000",fill:!1,fillColor:"#FFFFFF",fil yScale(r.y),j;if(p.length-1>q){j=v.xScale(p[q+1][0]);o.clearRect(t-n,s-n,j-t+2*n
lOpacity:.4,stroke:!1,position:"ct",verticalMargin:0,labelFormatter:Flotr.defaul ,2*n)}}}}});Flotr.addType("bars",{options:{show:false,lineWidth:2,barWidth:1,fil
tMarkerFormatter,fontSize:Flotr.defaultOptions.fontSize,stacked:!1,stackingType: l:true,fillColor:null,fillOpacity:0.4,horizontal:false,stacked:false,centered:tr
"b",horizontal:!1},stack:{positive:[],negative:[],values:[]},draw:function(e){fu ue,topPadding:0.1,grouped:false},stack:{positive:[],negative:[],_positive:[],_ne
nction h(e,t){return o=r.negative[e]||0,s=r.positive[e]||0,t>0?(r.positive[e]=o+ gative:[]},draw:function(a){var b=a.context;this.current+=1;b.save();b.lineJoin=
t,o+t):(r.negative[e]=s+t,s+t)}var t=e.data,n=e.context,r=e.stacked?e.stack:!1,i "miter";b.lineWidth=a.lineWidth;b.strokeStyle=a.color;if(a.fill){b.fillStyle=a.f
=e.stackingType,s,o,u,a,f,l,c;n.save(),n.lineJoin="round",n.lineWidth=e.lineWidt illStyle}this.plot(a);b.restore()},plot:function(k){var e=k.data,c=k.context,b=k
h,n.strokeStyle="rgba(0,0,0,0.5)",n.fillStyle=e.fillStyle;for(a=0;a<t.length;++a .shadowSize,f,g,d,h,a,j;if(e.length<1){return}this.translate(c,k.horizontal);for
)f=t[a][0],l=t[a][1],r&&(i=="b"?e.horizontal?l=h(l,f):f=h(f,l):i=="a"&&(u=r.valu (f=0;f<e.length;f++){g=this.getBarGeometry(e[f][0],e[f][1],k);if(g===null){conti
es[f]||0,r.values[f]=u+l,l=u+l)),c=e.labelFormatter({x:f,y:l,index:a,data:t}),th nue}d=g.left;h=g.top;a=g.width;j=g.height;if(k.fill){c.fillRect(d,h,a,j)}if(b){c
is.plot(e.xScale(f),e.yScale(l),c,e);n.restore()},plot:function(t,n,r,i){var s=i .save();c.fillStyle="rgba(0,0,0,0.05)";c.fillRect(d+b,h+b,a,j);c.restore()}if(k.
.context;if(e(r)&&!r.complete)throw"Marker image not loaded.";this._plot(t,n,r,i lineWidth){c.strokeRect(d,h,a,j)}}},translate:function(b,a){if(a){b.rotate(-Math
)},_plot:function(t,n,r,i){var s=i.context,o=2,u=t,a=n,f;e(r)?f={height:r.height .PI/2);b.scale(-1,1)}},getBarGeometry:function(j,h,c){var p=c.horizontal,l=c.bar
,width:r.width}:f=i.text.canvas(r),f.width=Math.floor(f.width+o*2),f.height=Math Width,o=c.centered,e=c.stacked?this.stack:false,a=c.lineWidth,r=o?l/2:0,t=p?c.yS
.floor(f.height+o*2),i.position.indexOf("c")!=-1?u-=f.width/2+o:i.position.index cale:c.xScale,b=p?c.xScale:c.yScale,m=p?h:j,n=p?j:h,g=0,s,d,q,k,f;if(c.grouped){
Of("l")!=-1&&(u-=f.width),i.position.indexOf("m")!=-1?a-=f.height/2+o:i.position this.current/this.groups;m=m-r;l=l/this.groups;r=l/2;m=m+l*this.current-r}if(e){
.indexOf("t")!=-1?a-=f.height+i.verticalMargin:a+=i.verticalMargin,u=Math.floor( s=n>0?e.positive:e.negative;g=s[m]||g;s[m]=g+n}d=t(m-r);q=t(m+l-r);k=b(n+g);f=b(
u)+.5,a=Math.floor(a)+.5,i.fill&&s.fillRect(u,a,f.width,f.height),i.stroke&&s.st g);if(f<0){f=0}return(j===null||h===null)?null:{x:m,y:n,xScale:t,yScale:b,top:k,
rokeRect(u,a,f.width,f.height),e(r)?s.drawImage(r,parseInt(u+o,10),parseInt(a+o, left:Math.min(d,q)-a/2,width:Math.abs(q-d)-a,height:f-k}},hit:function(o){var e=
10)):Flotr.drawText(s,r,u+o,a+o,{textBaseline:"top",textAlign:"left",size:i.font o.data,g=o.args,f=g[0],b=g[1],l=o.xInverse(f.relX),k=o.yInverse(f.relY),h=this.g
Size,color:i.color})}})}(),function(){var e=Flotr._;Flotr.defaultPieLabelFormatt etBarGeometry(l,k,o),a=h.width/2,c=h.left,m=h.y,j,d;for(d=e.length;d--;){j=this.
er=function(e,t){return(100*t/e).toFixed(2)+"%"},Flotr.addType("pie",{options:{s getBarGeometry(e[d][0],e[d][1],o);if(((m>0&&m<j.y)||(m<0&&m>j.y))&&(Math.abs(c-j
how:!1,lineWidth:1,fill:!0,fillColor:null,fillOpacity:.6,explode:6,sizeRatio:.6, .left)<a)){b.x=e[d][0];b.y=e[d][1];b.index=d;b.seriesIndex=o.index}}},drawHit:fu
startAngle:Math.PI/4,labelFormatter:Flotr.defaultPieLabelFormatter,pie3D:!1,pie3 nction(c){var d=c.context,b=c.args,h=this.getBarGeometry(b.x,b.y,c),g=h.left,f=h
DviewAngle:Math.PI/2*.8,pie3DspliceThickness:20,epsilon:.1},draw:function(e){var .top,e=h.width,a=h.height;d.save();d.strokeStyle=c.color;d.lineWidth=c.lineWidth
t=e.data,n=e.context,r=e.lineWidth,i=e.shadowSize,s=e.sizeRatio,o=e.height,u=e. ;this.translate(d,c.horizontal);d.beginPath();d.moveTo(g,f+a);d.lineTo(g,f);d.li
width,a=e.explode,f=e.color,l=e.fill,c=e.fillStyle,h=Math.min(u,o)*s/2,p=t[0][1] neTo(g+e,f);d.lineTo(g+e,f+a);if(c.fill){d.fillStyle=c.fillStyle;d.fill()}d.stro
,d=[],v=1,m=Math.PI*2*p/this.total,g=this.startAngle||2*Math.PI*e.startAngle,y=g ke();d.closePath();d.restore()},clearHit:function(j){var b=j.context,e=j.args,f=
+m,b=g+m/2,w=e.labelFormatter(this.total,p),E=a+h+4,S=Math.cos(b)*E,x=Math.sin(b this.getBarGeometry(e.x,e.y,j),c=f.left,a=f.width,g=f.top,h=f.height,d=2*j.lineW
)*E,T=S<0?"right":"left",N=x>0?"top":"bottom",C,k,L;n.save(),n.translate(u/2,o/2 idth;b.save();this.translate(b,j.horizontal);b.clearRect(c-d,Math.min(g,g+h)-d,a
),n.scale(1,v),k=Math.cos(b)*a,L=Math.sin(b)*a,i>0&&(this.plotSlice(k+i,L+i,h,g, +2*d,Math.abs(h)+2*d);b.restore()},extendXRange:function(c,d,b,a){this._extendRa
y,n),l&&(n.fillStyle="rgba(0,0,0,0.1)",n.fill())),this.plotSlice(k,L,h,g,y,n),l& nge(c,d,b,a);this.groups=(this.groups+1)||1;this.current=0},extendYRange:functio
&(n.fillStyle=c,n.fill()),n.lineWidth=r,n.strokeStyle=f,n.stroke(),C={size:e.fon n(c,d,b,a){this._extendRange(c,d,b,a)},_extendRange:function(c,g,q,p){var m=c.op
tSize*1.2,color:e.fontColor,weight:1.5},w&&(e.htmlText||!e.textEnabled?(divStyle tions.max;if(_.isNumber(m)||_.isString(m)){return}var e=c.min,k=c.max,a=q.horizo
="position:absolute;"+N+":"+(o/2+(N==="top"?x:-x))+"px;",divStyle+=T+":"+(u/2+(T ntal,b=c.orientation,d=this.positiveSums||{},l=this.negativeSums||{},o,n,h,f;if(
==="right"?-S:S))+"px;",d.push('<div style="',divStyle,'" class="flotr-grid-labe (b==1&&!a)||(b==-1&&a)){if(q.centered){k=Math.max(c.datamax+q.barWidth,k);e=Math
l">',w,"</div>")):(C.textAlign=T,C.textBaseline=N,Flotr.drawText(n,w,S,x,C)));if .min(c.datamin-q.barWidth,e)}}if(q.stacked&&((b==1&&a)||(b==-1&&!a))){for(f=g.le
(e.htmlText||!e.textEnabled){var A=Flotr.DOM.node('<div style="color:'+e.fontCol ngth;f--;){o=g[f][(b==1?1:0)]+"";n=g[f][(b==1?0:1)];if(n>0){d[o]=(d[o]||0)+n;k=M
or+'" class="flotr-labels"></div>');Flotr.DOM.insert(A,d.join("")),Flotr.DOM.ins ath.max(k,d[o])}else{l[o]=(l[o]||0)+n;e=Math.min(e,l[o])}}}if((b==1&&a)||(b==-1&
ert(e.element,A)}n.restore(),this.startAngle=y,this.slices=this.slices||[],this. &!a)){if(q.topPadding&&(c.max===c.datamax||(q.stacked&&this.stackMax!==k))){k+=q
slices.push({radius:h,x:k,y:L,explode:a,start:g,end:y})},plotSlice:function(e,t, .topPadding*(k-e)}}this.stackMin=e;this.stackMax=k;this.negativeSums=l;this.posi
n,r,i,s){s.beginPath(),s.moveTo(e,t),s.arc(e,t,n,r,i,!1),s.lineTo(e,t),s.closePa tiveSums=d;c.max=k;c.min=e}});Flotr.addType("bubbles",{options:{show:false,lineW
th()},hit:function(e){var t=e.data[0],n=e.args,r=e.index,i=n[0],s=n[1],o=this.sl idth:2,fill:true,fillOpacity:0.4,baseRadius:2},draw:function(a){var b=a.context,
ices[r],u=i.relX-e.width/2,a=i.relY-e.height/2,f=Math.sqrt(u*u+a*a),l=Math.atan( c=a.shadowSize;b.save();b.lineWidth=a.lineWidth;b.fillStyle="rgba(0,0,0,0.05)";b
a/u),c=Math.PI*2,h=o.explode||e.explode,p=o.start%c,d=o.end%c,v=e.epsilon;u<0?l+ .strokeStyle="rgba(0,0,0,0.05)";this.plot(a,c/2);b.strokeStyle="rgba(0,0,0,0.1)"
=Math.PI:u>0&&a<0&&(l+=c),f<o.radius+h&&f>h&&(l>p&&l<d||p>d&&(l<d||l>p)||p===d&& ;this.plot(a,c/4);b.strokeStyle=a.color;b.fillStyle=a.fillStyle;this.plot(a);b.r
(o.start===o.end&&Math.abs(l-p)<v||o.start!==o.end&&Math.abs(l-p)>v))&&(s.x=t[0] estore()},plot:function(j,b){var c=j.data,a=j.context,g,d,h,f,e;b=b||0;for(d=0;d
,s.y=t[1],s.sAngle=p,s.eAngle=d,s.index=0,s.seriesIndex=r,s.fraction=t[1]/this.t <c.length;++d){g=this.getGeometry(c[d],j);a.beginPath();a.arc(g.x+b,g.y+b,g.z,0,
otal)},drawHit:function(e){var t=e.context,n=this.slices[e.args.seriesIndex];t.s 2*Math.PI,true);a.stroke();if(j.fill){a.fill()}a.closePath()}},getGeometry:funct
ave(),t.translate(e.width/2,e.height/2),this.plotSlice(n.x,n.y,n.radius,n.start, ion(a,b){return{x:b.xScale(a[0]),y:b.yScale(a[1]),z:a[2]*b.baseRadius}},hit:func
n.end,t),t.stroke(),t.restore()},clearHit:function(e){var t=e.context,n=this.sli tion(l){var c=l.data,e=l.args,d=e[0],b=e[1],h=d.relX,g=d.relY,a,f,k,j;b.best=b.b
ces[e.args.seriesIndex],r=2*e.lineWidth,i=n.radius+r;t.save(),t.translate(e.widt est||Number.MAX_VALUE;for(i=c.length;i--;){f=this.getGeometry(c[i],l);k=f.x-h;j=
h/2,e.height/2),t.clearRect(n.x-i,n.y-i,2*i+r,2*i+r),t.restore()},extendYRange:f f.y-g;a=Math.sqrt(k*k+j*j);if(a<f.z&&f.z<b.best){b.x=c[i][0];b.y=c[i][1];b.index
unction(e,t){this.total=(this.total||0)+t[0][1]}})}(),Flotr.addType("points",{op =i;b.seriesIndex=l.index;b.best=f.z}}},drawHit:function(a){var b=a.context,c=thi
tions:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#FFFFFF",fillOpacity:1,hi s.getGeometry(a.data[a.args.index],a);b.save();b.lineWidth=a.lineWidth;b.fillSty
tRadius:null},draw:function(e){var t=e.context,n=e.lineWidth,r=e.shadowSize;t.sa le=a.fillStyle;b.strokeStyle=a.color;b.beginPath();b.arc(c.x,c.y,c.z,0,2*Math.PI
ve(),r>0&&(t.lineWidth=r/2,t.strokeStyle="rgba(0,0,0,0.1)",this.plot(e,r/2+t.lin ,true);b.fill();b.stroke();b.closePath();b.restore()},clearHit:function(a){var b
eWidth/2),t.strokeStyle="rgba(0,0,0,0.2)",this.plot(e,t.lineWidth/2)),t.lineWidt =a.context,d=this.getGeometry(a.data[a.args.index],a),c=d.z+a.lineWidth;b.save()
h=e.lineWidth,t.strokeStyle=e.color,e.fill&&(t.fillStyle=e.fillStyle),this.plot( ;b.clearRect(d.x-c,d.y-c,2*c,2*c);b.restore()}});Flotr.addType("candles",{option
e),t.restore()},plot:function(e,t){var n=e.data,r=e.context,i=e.xScale,s=e.yScal s:{show:false,lineWidth:1,wickLineWidth:1,candleWidth:0.6,fill:true,upFillColor:
e,o,u,a;for(o=n.length-1;o>-1;--o){a=n[o][1];if(a===null)continue;u=i(n[o][0]),a "#00A8F0",downFillColor:"#CB4B4B",fillOpacity:0.5,barcharts:false},draw:function
=s(a);if(u<0||u>e.width||a<0||a>e.height)continue;r.beginPath(),t?r.arc(u,a+t,e. (a){var b=a.context;b.save();b.lineJoin="miter";b.lineCap="butt";b.lineWidth=a.w
radius,0,Math.PI,!1):(r.arc(u,a,e.radius,0,2*Math.PI,!0),e.fill&&r.fill()),r.str ickLineWidth||a.lineWidth;this.plot(a);b.restore()},plot:function(e){var A=e.dat
oke(),r.closePath()}}}),Flotr.addType("radar",{options:{show:!1,lineWidth:2,fill a,d=e.context,B=e.xScale,c=e.yScale,r=e.candleWidth/2,l=e.shadowSize,a=e.lineWid
:!0,fillOpacity:.4,radiusRatio:.9,sensibility:2},draw:function(e){var t=e.contex th,s=e.wickLineWidth,g=(s%2)/2,t,w,m,j,n,k,C,q,f,z,h,p,b,u,o,v;if(A.length<1){re
t,n=e.shadowSize;t.save(),t.translate(e.width/2,e.height/2),t.lineWidth=e.lineWi turn}for(v=0;v<A.length;v++){w=A[v];m=w[0];n=w[1];k=w[2];C=w[3];q=w[4];f=B(m-r);
dth,t.fillStyle="rgba(0,0,0,0.05)",t.strokeStyle="rgba(0,0,0,0.05)",this.plot(e, z=B(m+r);h=c(C);p=c(k);b=c(Math.min(n,q));u=c(Math.max(n,q));t=e[n>q?"downFillCo
n/2),t.strokeStyle="rgba(0,0,0,0.1)",this.plot(e,n/4),t.strokeStyle=e.color,t.fi lor":"upFillColor"];if(e.fill&&!e.barcharts){d.fillStyle="rgba(0,0,0,0.05)";d.fi
llStyle=e.fillStyle,this.plot(e),t.restore()},plot:function(e,t){var n=e.data,r= llRect(f+l,u+l,z-f,b-u);d.save();d.globalAlpha=e.fillOpacity;d.fillStyle=t;d.fil
e.context,i=Math.min(e.height,e.width)*e.radiusRatio/2,s=2*Math.PI/n.length,o=-M lRect(f,u+a,z-f,b-u);d.restore()}if(a||s){m=Math.floor((f+z)/2)+g;d.strokeStyle=
ath.PI/2,u,a;t=t||0,r.beginPath();for(u=0;u<n.length;++u)a=n[u][1]/this.max,r[u= t;d.beginPath();if(e.barcharts){d.moveTo(m,Math.floor(p+a));d.lineTo(m,Math.floo
==0?"moveTo":"lineTo"](Math.cos(u*s+o)*i*a+t,Math.sin(u*s+o)*i*a+t);r.closePath( r(h+a));o=n<q;d.moveTo(o?z:f,Math.floor(u+a));d.lineTo(m,Math.floor(u+a));d.move
),e.fill&&r.fill(),r.stroke()},getGeometry:function(e,t){var n=Math.min(t.height To(m,Math.floor(b+a));d.lineTo(o?f:z,Math.floor(b+a))}else{d.strokeRect(f,u+a,z-
,t.width)*t.radiusRatio/2,r=2*Math.PI/t.data.length,i=-Math.PI/2,s=e[1]/this.max f,b-u);d.moveTo(m,Math.floor(u+a));d.lineTo(m,Math.floor(p+a));d.moveTo(m,Math.f
;return{x:Math.cos(e[0]*r+i)*n*s+t.width/2,y:Math.sin(e[0]*r+i)*n*s+t.height/2}} loor(b+a));d.lineTo(m,Math.floor(h+a))}d.closePath();d.stroke()}}},hit:function(
,hit:function(e){var t=e.args,n=t[0],r=t[1],i=n.relX,s=n.relY,o,u,a,f;for(var l= c){var t=c.xScale,b=c.yScale,s=c.data,a=c.args,k=a[0],o=c.candleWidth/2,m=a[1],j
0;l<r.series.length;l++){var c=r.series[l],h=c.data;for(var p=h.length;p--;){u=t =k.relX,g=k.relY,d=s.length,p,q,h,u,e,r,l,f;for(p=0;p<d;p++){q=s[p],h=q[2];u=q[3
his.getGeometry(h[p],e),a=u.x-i,f=u.y-s,o=Math.sqrt(a*a+f*f);if(o<e.sensibility* ];e=t(q[0]-o);r=t(q[0]+o);f=b(u);l=b(h);if(j>e&&j<r&&g>l&&g<f){m.x=q[0];m.index=
2)return r.x=h[p][0],r.y=h[p][1],r.index=p,r.seriesIndex=l,r}}},drawHit:function p;m.seriesIndex=c.index;return}}},drawHit:function(a){var b=a.context;b.save();t
(e){var t=2*Math.PI/e.data.length,n=-Math.PI/2,r=Math.min(e.height,e.width)*e.ra his.plot(_.defaults({fill:!!a.fillColor,upFillColor:a.color,downFillColor:a.colo
diusRatio/2,i=e.args.series,s=i.points.hitRadius||i.points.radius||i.mouse.radiu r,data:[a.data[a.args.index]]},a));b.restore()},clearHit:function(m){var h=m.arg
s,o=e.context;o.translate(e.width/2,e.height/2);var u=e.args.index,a=e.data[u][1 s,c=m.context,l=m.xScale,d=m.yScale,f=m.lineWidth,b=m.candleWidth/2,g=m.data[h.i
]/this.max,f=Math.cos(u*t+n)*r*a,l=Math.sin(u*t+n)*r*a;o.beginPath(),o.arc(f,l,s ndex],e=l(g[0]-b)-f,k=l(g[0]+b)+f,j=d(g[2]),a=d(g[3])+f;c.clearRect(e,j,k-e,a-j)
,0,2*Math.PI,!0),o.closePath(),o.stroke()},clearHit:function(e){var t=2*Math.PI/ },extendXRange:function(b,c,a){if(b.options.max===null){b.max=Math.max(b.datamax
e.data.length,n=-Math.PI/2,r=Math.min(e.height,e.width)*e.radiusRatio/2,i=e.cont +0.5,b.max);b.min=Math.min(b.datamin-0.5,b.min)}}});Flotr.addType("gantt",{optio
ext,s=e.args.series,o=s.points?s.points.lineWidth:1;offset=(s.points.hitRadius|| ns:{show:false,lineWidth:2,barWidth:1,fill:true,fillColor:null,fillOpacity:0.4,c
s.points.radius||s.mouse.radius)+o,i.translate(e.width/2,e.height/2);var u=e.arg entered:true},draw:function(c){var a=this.ctx,e=c.gantt.barWidth,d=Math.min(c.ga
s.index,a=e.data[u][1]/this.max,f=Math.cos(u*t+n)*r*a,l=Math.sin(u*t+n)*r*a;i.cl ntt.lineWidth,e);a.save();a.translate(this.plotOffset.left,this.plotOffset.top);
earRect(f-offset,l-offset,offset*2,offset*2)},extendYRange:function(e,t){this.ma a.lineJoin="miter";a.lineWidth=d;a.strokeStyle=c.color;a.save();this.gantt.plotS
x=Math.max(e.max,this.max||-Number.MAX_VALUE)}}),Flotr.addType("timeline",{optio hadows(c,e,0,c.gantt.fill);a.restore();if(c.gantt.fill){var b=c.gantt.fillColor|
ns:{show:!1,lineWidth:1,barWidth:.2,fill:!0,fillColor:null,fillOpacity:.4,center |c.color;a.fillStyle=this.processColor(b,{opacity:c.gantt.fillOpacity})}this.gan
ed:!0},draw:function(e){var t=e.context;t.save(),t.lineJoin="miter",t.lineWidth= tt.plot(c,e,0,c.gantt.fill);a.restore()},plot:function(j,n,e,p){var v=j.data;if(
e.lineWidth,t.strokeStyle=e.color,t.fillStyle=e.fillStyle,this.plot(e),t.restore v.length<1){return}var r=j.xaxis,b=j.yaxis,o=this.ctx,q;for(q=0;q<v.length;q++){
()},plot:function(e){var t=e.data,n=e.context,r=e.xScale,i=e.yScale,s=e.barWidth var h=v[q][0],l=v[q][1],t=v[q][2],f=true,k=true,a=true;if(l===null||t===null){co
,o=e.lineWidth,u;Flotr._.each(t,function(e){var t=e[0],u=e[1],a=e[2],f=s,l=Math. ntinue}var c=l,u=l+t,g=h-(j.gantt.centered?n/2:0),m=h+n-(j.gantt.centered?n/2:0)
ceil(r(t)),c=Math.ceil(r(t+a))-l,h=Math.round(i(u)),p=Math.round(i(u-f))-h,d=l-o ;if(u<r.min||c>r.max||m<b.min||g>b.max){continue}if(c<r.min){c=r.min;f=false}if(
/2,v=Math.round(h-p/2)-o/2;n.strokeRect(d,v,c,p),n.fillRect(d,v,c,p)})},extendRa u>r.max){u=r.max;if(r.lastSerie!=j){k=false}}if(g<b.min){g=b.min}if(m>b.max){m=b
nge:function(e){var t=e.data,n=e.xaxis,r=e.yaxis,i=e.timeline.barWidth;n.options .max;if(b.lastSerie!=j){k=false}}if(p){o.beginPath();o.moveTo(r.d2p(c),b.d2p(g)+
.min===null&&(n.min=n.datamin-i/2);if(n.options.max===null){var s=n.max;Flotr._. e);o.lineTo(r.d2p(c),b.d2p(m)+e);o.lineTo(r.d2p(u),b.d2p(m)+e);o.lineTo(r.d2p(u)
each(t,function(e){s=Math.max(s,e[0]+e[2])},this),n.max=s+i/2}r.options.min===nu ,b.d2p(g)+e);o.fill();o.closePath()}if(j.gantt.lineWidth&&(f||a||k)){o.beginPath
ll&&(r.min=r.datamin-i),r.options.min===null&&(r.max=r.datamax+i)}}),function(){ ();o.moveTo(r.d2p(c),b.d2p(g)+e);o[f?"lineTo":"moveTo"](r.d2p(c),b.d2p(m)+e);o[k
var e=Flotr.DOM;Flotr.addPlugin("crosshair",{options:{mode:null,color:"#FF0000", ?"lineTo":"moveTo"](r.d2p(u),b.d2p(m)+e);o[a?"lineTo":"moveTo"](r.d2p(u),b.d2p(g
hideCursor:!0},callbacks:{"flotr:mousemove":function(e,t){this.options.crosshair )+e);o.stroke();o.closePath()}}},plotShadows:function(g,j,c){var u=g.data;if(u.l
.mode&&(this.crosshair.clearCrosshair(),this.crosshair.drawCrosshair(t))}},drawC ength<1){return}var p,f,h,r,q=g.xaxis,a=g.yaxis,o=this.ctx,m=this.options.shadow
rosshair:function(t){var n=this.octx,r=this.options.crosshair,i=this.plotOffset, Size;for(p=0;p<u.length;p++){f=u[p][0];h=u[p][1];r=u[p][2];if(h===null||r===null
s=i.left+Math.round(t.relX)+.5,o=i.top+Math.round(t.relY)+.5;if(t.relX<0||t.relY ){continue}var b=h,t=h+r,e=f-(g.gantt.centered?j/2:0),k=f+j-(g.gantt.centered?j/
<0||t.relX>this.plotWidth||t.relY>this.plotHeight){this.el.style.cursor=null,e.r 2:0);if(t<q.min||b>q.max||k<a.min||e>a.max){continue}if(b<q.min){b=q.min}if(t>q.
emoveClass(this.el,"flotr-crosshair");return}r.hideCursor&&(this.el.style.cursor max){t=q.max}if(e<a.min){e=a.min}if(k>a.max){k=a.max}var n=q.d2p(t)-q.d2p(b)-((q
="none",e.addClass(this.el,"flotr-crosshair")),n.save(),n.strokeStyle=r.color,n. .d2p(t)+m<=this.plotWidth)?0:m);var l=a.d2p(e)-a.d2p(k)-((a.d2p(e)+m<=this.plotH
lineWidth=1,n.beginPath(),r.mode.indexOf("x")!=-1&&(n.moveTo(s,i.top),n.lineTo(s eight)?0:m);o.fillStyle="rgba(0,0,0,0.05)";o.fillRect(Math.min(q.d2p(b)+m,this.p
,i.top+this.plotHeight)),r.mode.indexOf("y")!=-1&&(n.moveTo(i.left,o),n.lineTo(i lotWidth),Math.min(a.d2p(k)+m,this.plotHeight),n,l)}},extendXRange:function(b){i
.left+this.plotWidth,o)),n.stroke(),n.restore()},clearCrosshair:function(){var e f(b.options.max===null){var c=b.min,k=b.max,e,d,m,n,h,a={},l={},f=null;for(e=0;e
=this.plotOffset,t=this.lastMousePos,n=this.octx;t&&(n.clearRect(Math.round(t.re <this.series.length;++e){n=this.series[e];h=n.gantt;if(h.show&&n.xaxis==b){for(d
lX)+e.left,e.top,1,this.plotHeight+1),n.clearRect(e.left,Math.round(t.relY)+e.to =0;d<n.data.length;d++){if(h.show){y=n.data[d][0]+"";a[y]=Math.max((a[y]||0),n.d
p,this.plotWidth+1,1))}})}(),function(){function n(e,t,n,r,i,s){var o="image/"+e ata[d][1]+n.data[d][2]);f=n}}for(d in a){k=Math.max(a[d],k)}}}b.lastSerie=f;b.ma
,u=n.getImageData(0,0,r,i),a=new Image;return n.save(),n.globalCompositeOperatio x=k;b.min=c}},extendYRange:function(b){if(b.options.max===null){var l=Number.MIN
n="destination-over",n.fillStyle=s,n.fillRect(0,0,r,i),a.src=t.toDataURL(o),n.re _VALUE,d=Number.MAX_VALUE,f,e,o,k,a={},m={},h=null;for(f=0;f<this.series.length;
store(),n.clearRect(0,0,r,i),n.putImageData(u,0,0),a}var e=Flotr.DOM,t=Flotr._;F ++f){o=this.series[f];k=o.gantt;if(k.show&&!o.hide&&o.yaxis==b){var c=Number.MIN
lotr.addPlugin("download",{saveImage:function(r,i,s,o){var u=this.options.grid,a _VALUE,n=Number.MAX_VALUE;for(e=0;e<o.data.length;e++){c=Math.max(c,o.data[e][0]
;if(Flotr.isIE&&Flotr.isIE<9)return a="<html><body>"+this.canvas.firstChild.inne );n=Math.min(n,o.data[e][0])}if(k.centered){l=Math.max(c+0.5,l);d=Math.min(n-0.5
rHTML+"</body></html>",window.open().document.write(a);if(r!=="jpeg"&&r!=="png") ,d)}else{l=Math.max(c+1,l);d=Math.min(n,d)}if(k.barWidth+c>l){l=b.max+k.barWidth
return;a=n(r,this.canvas,this.ctx,this.canvasWidth,this.canvasHeight,u&&u.backgr }}}b.lastSerie=h;b.max=l;b.min=d;b.tickSize=Flotr.getTickSize(b.options.noTicks,
oundColor||"#ffffff");if(!t.isElement(a)||!o)return window.open(a.src);this.down d,l,b.options.tickDecimals)}}});(function(){Flotr.defaultMarkerFormatter=functio
load.restoreCanvas(),e.hide(this.canvas),e.hide(this.overlay),e.setStyles({posit n(b){return(Math.round(b.y*100)/100)+""};Flotr.addType("markers",{options:{show:
ion:"absolute"}),e.insert(this.el,a),this.saveImageElement=a},restoreCanvas:func false,lineWidth:1,color:"#000000",fill:false,fillColor:"#FFFFFF",fillOpacity:0.4
tion(){e.show(this.canvas),e.show(this.overlay),this.saveImageElement&&this.el.r ,stroke:false,position:"ct",verticalMargin:0,labelFormatter:Flotr.defaultMarkerF
emoveChild(this.saveImageElement),this.saveImageElement=null}})}(),function(){va ormatter,fontSize:Flotr.defaultOptions.fontSize,stacked:false,stackingType:"b",h
r e=Flotr.EventAdapter,t=Flotr._;Flotr.addPlugin("graphGrid",{callbacks:{"flotr: orizontal:false},stack:{positive:[],negative:[],values:[]},draw:function(o){var
beforedraw":function(){this.graphGrid.drawGrid()},"flotr:afterdraw":function(){t f=o.data,c=o.context,l=o.stacked?o.stack:false,j=o.stackingType,b,h,g,e,n,k,m;c.
his.graphGrid.drawOutline()}},drawGrid:function(){function v(e){for(p=0;p<e.leng save();c.lineJoin="round";c.lineWidth=o.lineWidth;c.strokeStyle="rgba(0,0,0,0.5)
th;++p){var t=e[p].v/c.max;for(d=0;d<=w;++d)n[d===0?"moveTo":"lineTo"](Math.cos( ";c.fillStyle=o.fillStyle;function d(q,p){h=l.negative[q]||0;b=l.positive[q]||0;
d*S+x)*b*t,Math.sin(d*S+x)*b*t)}}function m(e,r){t.each(t.pluck(e,"v"),function( if(p>0){l.positive[q]=h+p;return h+p}else{l.negative[q]=b+p;return b+p}}for(e=0;
e){if(e<=c.min||e>=c.max||(e==c.min||e==c.max)&&i.outlineWidth)return;r(Math.flo e<f.length;++e){n=f[e][0];k=f[e][1];if(l){if(j=="b"){if(o.horizontal){k=d(k,n)}e
or(c.d2p(e))+n.lineWidth/2)})}function g(e){n.moveTo(e,0),n.lineTo(e,f)}function lse{n=d(n,k)}}else{if(j=="a"){g=l.values[n]||0;l.values[n]=g+k;k=g+k}}}m=o.label
y(e){n.moveTo(0,e),n.lineTo(l,e)}var n=this.ctx,r=this.options,i=r.grid,s=i.ver Formatter({x:n,y:k,index:e,data:f});this.plot(o.xScale(n),o.yScale(k),m,o)}c.res
ticalLines,o=i.horizontalLines,u=i.minorVerticalLines,a=i.minorHorizontalLines,f tore()},plot:function(b,f,d,c){var e=c.context;if(a(d)&&!d.complete){throw"Marke
=this.plotHeight,l=this.plotWidth,c,h,p,d;(s||u||o||a)&&e.fire(this.el,"flotr:be r image not loaded."}else{this._plot(b,f,d,c)}},_plot:function(j,f,h,k){var b=k.
foregrid",[this.axes.x,this.axes.y,r,this]),n.save(),n.lineWidth=1,n.strokeStyle context,d=2,c=j,g=f,e;if(a(h)){e={height:h.height,width:h.width}}else{e=k.text.c
=i.tickColor;if(i.circular){n.translate(this.plotOffset.left+l/2,this.plotOffset anvas(h)}e.width=Math.floor(e.width+d*2);e.height=Math.floor(e.height+d*2);if(k.
.top+f/2);var b=Math.min(f,l)*r.radar.radiusRatio/2,w=this.axes.x.ticks.length,S position.indexOf("c")!=-1){c-=e.width/2+d}else{if(k.position.indexOf("l")!=-1){c
=2*(Math.PI/w),x=-Math.PI/2;n.beginPath(),c=this.axes.y,o&&v(c.ticks),a&&v(c.min -=e.width}}if(k.position.indexOf("m")!=-1){g-=e.height/2+d}else{if(k.position.in
orTicks),s&&t.times(w,function(e){n.moveTo(0,0),n.lineTo(Math.cos(e*S+x)*b,Math. dexOf("t")!=-1){g-=e.height+k.verticalMargin}else{g+=k.verticalMargin}}c=Math.fl
sin(e*S+x)*b)}),n.stroke()}else n.translate(this.plotOffset.left,this.plotOffset oor(c)+0.5;g=Math.floor(g)+0.5;if(k.fill){b.fillRect(c,g,e.width,e.height)}if(k.
.top),i.backgroundColor&&(n.fillStyle=this.processColor(i.backgroundColor,{x1:0, stroke){b.strokeRect(c,g,e.width,e.height)}if(a(h)){b.drawImage(h,parseInt(c+d,1
y1:0,x2:l,y2:f}),n.fillRect(0,0,l,f)),n.beginPath(),c=this.axes.x,s&&m(c.ticks,g 0),parseInt(g+d,10))}else{Flotr.drawText(b,h,c+d,g+d,{textBaseline:"top",textAli
),u&&m(c.minorTicks,g),c=this.axes.y,o&&m(c.ticks,y),a&&m(c.minorTicks,y),n.stro gn:"left",size:k.fontSize,color:k.color})}}});function a(b){return typeof b==="o
ke();n.restore(),(s||u||o||a)&&e.fire(this.el,"flotr:aftergrid",[this.axes.x,thi bject"&&b.constructor&&(Image?true:b.constructor===Image)}})();(function(){var a
s.axes.y,r,this])},drawOutline:function(){var e=this,t=e.options,n=t.grid,r=n.ou =Flotr._;Flotr.defaultPieLabelFormatter=function(b,c){return(100*c/b).toFixed(2)
tline,s=e.ctx,o=n.backgroundImage,u=e.plotOffset,a=u.left,f=u.top,l=e.plotWidth, +"%"};Flotr.addType("pie",{options:{show:false,lineWidth:1,fill:true,fillColor:n
c=e.plotHeight,h,p,d,v,m,g;if(!n.outlineWidth)return;s.save();if(n.circular){s.t ull,fillOpacity:0.6,explode:6,sizeRatio:0.6,startAngle:Math.PI/4,labelFormatter:
ranslate(a+l/2,f+c/2);var y=Math.min(c,l)*t.radar.radiusRatio/2,b=this.axes.x.ti Flotr.defaultPieLabelFormatter,pie3D:false,pie3DviewAngle:(Math.PI/2*0.8),pie3Ds
cks.length,w=2*(Math.PI/b),E=-Math.PI/2;s.beginPath(),s.lineWidth=n.outlineWidth pliceThickness:20,epsilon:0.1},draw:function(e){var H=e.data,c=e.context,b=e.lin
,s.strokeStyle=n.color,s.lineJoin="round";for(i=0;i<=b;++i)s[i===0?"moveTo":"lin eWidth,m=e.shadowSize,j=e.sizeRatio,s=e.height,u=e.width,z=e.explode,A=e.color,C
eTo"](Math.cos(i*w+E)*y,Math.sin(i*w+E)*y);s.stroke()}else{s.translate(a,f);var =e.fill,h=e.fillStyle,f=Math.min(u,s)*j/2,w=H[0][1],o=[],D=1,d=Math.PI*2*w/this.
S=n.outlineWidth,x=.5-S+(S+1)%2/2,T="lineTo",N="moveTo";s.lineWidth=S,s.strokeSt total,B=this.startAngle||(2*Math.PI*e.startAngle),t=B+d,G=B+d/2,k=e.labelFormatt
yle=n.color,s.lineJoin="miter",s.beginPath(),s.moveTo(x,x),l-=S/2%1,c+=S/2,s[r.i er(this.total,w),v=z+f+4,r=Math.cos(G)*v,q=Math.sin(G)*v,g=r<0?"right":"left",F=
ndexOf("n")!==-1?T:N](l,x),s[r.indexOf("e")!==-1?T:N](l,c),s[r.indexOf("s")!==-1 q>0?"top":"bottom",E,n,l;c.save();c.translate(u/2,s/2);c.scale(1,D);n=Math.cos(G
?T:N](x,c),s[r.indexOf("w")!==-1?T:N](x,x),s.stroke(),s.closePath()}s.restore(), )*z;l=Math.sin(G)*z;if(m>0){this.plotSlice(n+m,l+m,f,B,t,c);if(C){c.fillStyle="r
o&&(d=o.src||o,v=(parseInt(o.left,10)||0)+u.left,m=(parseInt(o.top,10)||0)+u.top gba(0,0,0,0.1)";c.fill()}}this.plotSlice(n,l,f,B,t,c);if(C){c.fillStyle=h;c.fill
,p=new Image,p.onload=function(){s.save(),o.alpha&&(s.globalAlpha=o.alpha),s.glo ()}c.lineWidth=b;c.strokeStyle=A;c.stroke();E={size:e.fontSize*1.2,color:e.fontC
balCompositeOperation="destination-over",s.drawImage(p,0,0,p.width,p.height,v,m, olor,weight:1.5};if(k){if(e.htmlText||!e.textEnabled){divStyle="position:absolut
l,c),s.restore()},p.src=d)}})}(),function(){var e=Flotr.DOM,t=Flotr._,n=Flotr,r= e;"+F+":"+(s/2+(F==="top"?q:-q))+"px;";divStyle+=g+":"+(u/2+(g==="right"?-r:r))+
"opacity:0.7;background-color:#000;color:#fff;position:absolute;padding:2px 8px; "px;";o.push('<div style="',divStyle,'" class="flotr-grid-label">',k,"</div>")}e
-moz-border-radius:4px;border-radius:4px;white-space:nowrap;";Flotr.addPlugin("h lse{E.textAlign=g;E.textBaseline=F;Flotr.drawText(c,k,r,q,E)}}if(e.htmlText||!e.
it",{callbacks:{"flotr:mousemove":function(e,t){this.hit.track(t)},"flotr:click" textEnabled){var p=Flotr.DOM.node('<div style="color:'+e.fontColor+'" class="flo
:function(e){var n=this.hit.track(e);n&&!t.isUndefined(n.index)&&(e.hit=n)},"flo tr-labels"></div>');Flotr.DOM.insert(p,o.join(""));Flotr.DOM.insert(e.element,p)
tr:mouseout":function(e){e.relatedTarget!==this.mouseTrack&&this.hit.clearHit()} }c.restore();this.startAngle=t;this.slices=this.slices||[];this.slices.push({rad
,"flotr:destroy":function(){this.options.mouse.container&&e.remove(this.mouseTra ius:f,x:n,y:l,explode:z,start:B,end:t})},plotSlice:function(c,g,b,f,d,e){e.begin
ck),this.mouseTrack=null}},track:function(e){if(this.options.mouse.track||t.any( Path();e.moveTo(c,g);e.arc(c,g,b,f,d,false);e.lineTo(c,g);e.closePath()},hit:fun
this.series,function(e){return e.mouse&&e.mouse.track}))return this.hit.hit(e)}, ction(t){var h=t.data[0],l=t.args,j=t.index,k=l[0],f=l[1],q=this.slices[j],p=k.r
executeOnType:function(e,r,i){function u(e,u){t.each(t.keys(n.graphTypes),functi elX-t.width/2,o=k.relY-t.height/2,b=Math.sqrt(p*p+o*o),e=Math.atan(o/p),c=Math.P
on(t){e[t]&&e[t].show&&!e.hide&&this[t][r]&&(o=this.getOptions(e,t),o.fill=!!e.m I*2,m=q.explode||t.explode,d=q.start%c,g=q.end%c,s=t.epsilon;if(p<0){e+=Math.PI}
ouse.fillColor,o.fillStyle=this.processColor(e.mouse.fillColor||"#ffffff",{opaci else{if(p>0&&o<0){e+=c}}if(b<q.radius+m&&b>m){if((e>d&&e<g)||(d>g&&(e<g||e>d))||
ty:e.mouse.fillOpacity}),o.color=e.mouse.lineColor,o.context=this.octx,o.index=u (d===g&&((q.start===q.end&&Math.abs(e-d)<s)||(q.start!==q.end&&Math.abs(e-d)>s))
,i&&(o.args=i),this[t][r].call(this[t],o),s=!0)},this)}var s=!1,o;return t.isArr )){f.x=h[0];f.y=h[1];f.sAngle=d;f.eAngle=g;f.index=0;f.seriesIndex=j;f.fraction=
ay(e)||(e=[e]),t.each(e,u,this),s},drawHit:function(e){var t=this.octx,n=e.serie h[1]/this.total}}},drawHit:function(b){var c=b.context,d=this.slices[b.args.seri
s;if(n.mouse.lineColor){t.save(),t.lineWidth=n.points?n.points.lineWidth:1,t.str esIndex];c.save();c.translate(b.width/2,b.height/2);this.plotSlice(d.x,d.y,d.rad
okeStyle=n.mouse.lineColor,t.fillStyle=this.processColor(n.mouse.fillColor||"#ff ius,d.start,d.end,c);c.stroke();c.restore()},clearHit:function(c){var d=c.contex
ffff",{opacity:n.mouse.fillOpacity}),t.translate(this.plotOffset.left,this.plotO t,f=this.slices[c.args.seriesIndex],e=2*c.lineWidth,b=f.radius+e;d.save();d.tran
ffset.top);if(!this.hit.executeOnType(n,"drawHit",e)){var r=e.xaxis,i=e.yaxis;t. slate(c.width/2,c.height/2);d.clearRect(f.x-b,f.y-b,2*b+e,2*b+e);d.restore()},ex
beginPath(),t.arc(r.d2p(e.x),i.d2p(e.y),n.points.hitRadius||n.points.radius||n.m tendYRange:function(b,c){this.total=(this.total||0)+c[0][1]}})})();Flotr.addType
ouse.radius,0,2*Math.PI,!0),t.fill(),t.stroke(),t.closePath()}t.restore(),this.c ("points",{options:{show:false,radius:3,lineWidth:2,fill:true,fillColor:"#FFFFFF
lip(t)}this.prevHit=e},clearHit:function(){var t=this.prevHit,n=this.octx,r=this ",fillOpacity:1,hitRadius:null},draw:function(b){var c=b.context,a=b.lineWidth,d
.plotOffset;n.save(),n.translate(r.left,r.top);if(t){if(!this.hit.executeOnType( =b.shadowSize;c.save();if(d>0){c.lineWidth=d/2;c.strokeStyle="rgba(0,0,0,0.1)";t
t.series,"clearHit",this.prevHit)){var i=t.series,s=i.points?i.points.lineWidth: his.plot(b,d/2+c.lineWidth/2);c.strokeStyle="rgba(0,0,0,0.2)";this.plot(b,c.line
1;offset=(i.points.hitRadius||i.points.radius||i.mouse.radius)+s,n.clearRect(t.x Width/2)}c.lineWidth=b.lineWidth;c.strokeStyle=b.color;if(b.fill){c.fillStyle=b.
axis.d2p(t.x)-offset,t.yaxis.d2p(t.y)-offset,offset*2,offset*2)}e.hide(this.mous fillStyle}this.plot(b);c.restore()},plot:function(j,c){var d=j.data,a=j.context,
eTrack),this.prevHit=null}n.restore()},hit:function(e){var n=this.options,r=this h=j.xScale,b=j.yScale,e,g,f;for(e=d.length-1;e>-1;--e){f=d[e][1];if(f===null){co
.prevHit,i,s,o,u,a,f,l,c,h;if(this.series.length===0)return;h={relX:e.relX,relY: ntinue}g=h(d[e][0]);f=b(f);if(g<0||g>j.width||f<0||f>j.height){continue}a.beginP
e.relY,absX:e.absX,absY:e.absY,series:this.series};if(n.mouse.trackY&&!n.mouse.t ath();if(c){a.arc(g,f+c,j.radius,0,Math.PI,false)}else{a.arc(g,f,j.radius,0,2*Ma
rackAll&&this.hit.executeOnType(this.series,"hit",[e,h])&&!t.isUndefined(h.serie th.PI,true);if(j.fill){a.fill()}}a.stroke();a.closePath()}}});Flotr.addType("rad
sIndex))a=this.series[h.seriesIndex],h.series=a,h.mouse=a.mouse,h.xaxis=a.xaxis, ar",{options:{show:false,lineWidth:2,fill:true,fillOpacity:0.4,radiusRatio:0.9,s
h.yaxis=a.yaxis;else{i=this.hit.closest(e);if(i){i=n.mouse.trackY?i.point:i.x,u= ensibility:2},draw:function(a){var b=a.context,c=a.shadowSize;b.save();b.transla
i.seriesIndex,a=this.series[u],l=a.xaxis,c=a.yaxis,s=2*a.mouse.sensibility;if(n. te(a.width/2,a.height/2);b.lineWidth=a.lineWidth;b.fillStyle="rgba(0,0,0,0.05)";
mouse.trackAll||i.distanceX<s/l.scale&&(!n.mouse.trackY||i.distanceY<s/c.scale)) b.strokeStyle="rgba(0,0,0,0.05)";this.plot(a,c/2);b.strokeStyle="rgba(0,0,0,0.1)
h.series=a,h.xaxis=a.xaxis,h.yaxis=a.yaxis,h.mouse=a.mouse,h.x=i.x,h.y=i.y,h.dis ";this.plot(a,c/4);b.strokeStyle=a.color;b.fillStyle=a.fillStyle;this.plot(a);b.
t=i.distance,h.index=i.dataIndex,h.seriesIndex=u}}if(!r||r.index!==h.index||r.se restore()},plot:function(j,d){var e=j.data,a=j.context,g=Math.min(j.height,j.wid
riesIndex!==h.seriesIndex)this.hit.clearHit(),h.series&&h.mouse&&h.mouse.track&& th)*j.radiusRatio/2,b=2*Math.PI/e.length,c=-Math.PI/2,f,h;d=d||0;a.beginPath();f
(this.hit.drawMouseTrack(h),this.hit.drawHit(h),Flotr.EventAdapter.fire(this.el, or(f=0;f<e.length;++f){h=e[f][1]/this.max;a[f===0?"moveTo":"lineTo"](Math.cos(f*
"flotr:hit",[h,this]));return h},closest:function(e){function E(e){e.distance=h, b+c)*g*h+d,Math.sin(f*b+c)*g*h+d)}a.closePath();if(j.fill){a.fill()}a.stroke()},
e.distanceX=p,e.distanceY=d,e.seriesIndex=b,e.dataIndex=w,e.x=g,e.y=y,f=!0}var t getGeometry:function(b,c){var a=Math.min(c.height,c.width)*c.radiusRatio/2,e=2*M
=this.series,n=this.options,r=e.relX,i=e.relY,s=Number.MAX_VALUE,o=Number.MAX_VA ath.PI/c.data.length,f=-Math.PI/2,d=b[1]/this.max;return{x:(Math.cos(b[0]*e+f)*a
LUE,u={},a={},f=!1,l,c,h,p,d,v,m,g,y,b,w;for(b=0;b<t.length;b++){l=t[b],c=l.data *d)+c.width/2,y:(Math.sin(b[0]*e+f)*a*d)+c.height/2}},hit:function(q){var h=q.ar
,v=l.xaxis.p2d(r),m=l.yaxis.p2d(i);if(l.hide)continue;for(w=c.length;w--;){g=c[w gs,g=h[0],b=h[1],m=g.relX,l=g.relY,a,k,p,o;for(var e=0;e<b.series.length;e++){va
][0],y=c[w][1],c[w].y0&&(y+=c[w].y0);if(g===null||y===null)continue;if(g<l.xaxis r f=b.series[e];var d=f.data;for(var c=d.length;c--;){k=this.getGeometry(d[c],q)
.min||g>l.xaxis.max)continue;p=Math.abs(g-v),d=Math.abs(y-m),h=p*p+d*d,h<s&&(s=h ;p=k.x-m;o=k.y-l;a=Math.sqrt(p*p+o*o);if(a<q.sensibility*2){b.x=d[c][0];b.y=d[c]
,E(u)),p<o&&(o=p,E(a))}}return f?{point:u,x:a}:!1},drawMouseTrack:function(n){va [1];b.index=c;b.seriesIndex=e;return b}}}},drawHit:function(m){var c=2*Math.PI/m
r i="",s=n.series,o=n.mouse.position,u=n.mouse.margin,a=n.x,f=n.y,l=r,c=this.mou .data.length;var d=-Math.PI/2;var f=Math.min(m.height,m.width)*m.radiusRatio/2;v
seTrack,h=this.plotOffset,p=h.left,d=h.right,v=h.bottom,m=h.top,g=n.mouse.trackD ar l=m.args.series;var a=l.points.hitRadius||l.points.radius||l.mouse.radius;var
ecimals,y=this.options,b=y.mouse.container,w=0,E=0,S,x,T;c||(c=e.node('<div clas b=m.context;b.translate(m.width/2,m.height/2);var e=m.args.index;var g=m.data[e
s="flotr-mouse-value" style="'+l+'"></div>'),this.mouseTrack=c,e.insert(b||this. ][1]/this.max;var k=Math.cos(e*c+d)*f*g;var h=Math.sin(e*c+d)*f*g;b.beginPath();
el,c));if(!g||g<0)g=0;a&&a.toFixed&&(a=a.toFixed(g)),f&&f.toFixed&&(f=f.toFixed( b.arc(k,h,a,0,2*Math.PI,true);b.closePath();b.stroke()},clearHit:function(m){var
g)),T=n.mouse.trackFormatter({x:a,y:f,series:n.series,index:n.index,nearest:n,fr b=2*Math.PI/m.data.length;var d=-Math.PI/2;var f=Math.min(m.height,m.width)*m.r
action:n.fraction});if(t.isNull(T)||t.isUndefined(T)){e.hide(c);return}c.innerHT adiusRatio/2;var a=m.context;var l=m.args.series,c=(l.points?l.points.lineWidth:
ML=T,e.show(c);if(!o)return;x=e.size(c),b&&(S=e.position(this.el),w=S.top,E=S.le 1);offset=(l.points.hitRadius||l.points.radius||l.mouse.radius)+c;a.translate(m.
ft);if(!n.mouse.relative)i+="top:",o.charAt(0)=="n"?i+=w+u+m:o.charAt(0)=="s"&&( width/2,m.height/2);var e=m.args.index;var g=m.data[e][1]/this.max;var k=Math.co
i+=w-u+m+this.plotHeight-x.height),i+="px;bottom:auto;left:",o.charAt(1)=="e"?i+ s(e*b+d)*f*g;var h=Math.sin(e*b+d)*f*g;a.clearRect(k-offset,h-offset,offset*2,of
=E-u+p+this.plotWidth-x.width:o.charAt(1)=="w"&&(i+=E+u+p),i+="px;right:auto;";e fset*2)},extendYRange:function(a,b){this.max=Math.max(a.max,this.max||-Number.MA
lse if(s.pie&&s.pie.show){var N={x:this.plotWidth/2,y:this.plotHeight/2},C=Math. X_VALUE)}});Flotr.addType("timeline",{options:{show:false,lineWidth:1,barWidth:0
min(this.canvasWidth,this.canvasHeight)*s.pie.sizeRatio/2,k=n.sAngle<n.eAngle?(n .2,fill:true,fillColor:null,fillOpacity:0.4,centered:true},draw:function(a){var
.sAngle+n.eAngle)/2:(n.sAngle+n.eAngle+2*Math.PI)/2;i+="bottom:"+(u-m-N.y-Math.s b=a.context;b.save();b.lineJoin="miter";b.lineWidth=a.lineWidth;b.strokeStyle=a.
in(k)*C/2+this.canvasHeight)+"px;top:auto;",i+="left:"+(u+p+N.x+Math.cos(k)*C/2) color;b.fillStyle=a.fillStyle;this.plot(a);b.restore()},plot:function(b){var h=b
+"px;right:auto;"}else i+="top:",/n/.test(o)?i+=w-u+m+n.yaxis.d2p(n.y)-x.height: .data,d=b.context,g=b.xScale,f=b.yScale,e=b.barWidth,a=b.lineWidth,c;Flotr._.eac
i+=w+u+m+n.yaxis.d2p(n.y),i+="px;bottom:auto;left:",/w/.test(o)?i+=E-u+p+n.xaxis h(h,function(t){var p=t[0],n=t[1],r=t[2],l=e,k=Math.ceil(g(p)),m=Math.ceil(g(p+r
.d2p(n.x)-x.width:i+=E+u+p+n.xaxis.d2p(n.x),i+="px;right:auto;";c.style.cssText= ))-k,s=Math.round(f(n)),o=Math.round(f(n-l))-s,j=k-a/2,q=Math.round(s-o/2)-a/2;d
l+i,n.mouse.relative&&(/[ew]/.test(o)?/[ns]/.test(o)||(c.style.top=w+m+n.yaxis.d .strokeRect(j,q,m,o);d.fillRect(j,q,m,o)})},extendRange:function(d){var e=d.data
2p(n.y)-e.size(c).height/2+"px"):c.style.left=E+p+n.xaxis.d2p(n.x)-e.size(c).wid ,f=d.xaxis,c=d.yaxis,b=d.timeline.barWidth;if(f.options.min===null){f.min=f.data
th/2+"px")}})}(),function(){function e(e,t){return e.which?e.which===1:e.button= min-b/2}if(f.options.max===null){var a=f.max;Flotr._.each(e,function(g){a=Math.m
==0||e.button===1}function t(e,t){return Math.min(Math.max(0,e),t.plotWidth-1)}f ax(a,g[0]+g[2])},this);f.max=a+b/2}if(c.options.min===null){c.min=c.datamin-b}if
unction n(e,t){return Math.min(Math.max(0,e),t.plotHeight)}var r=Flotr.DOM,i=Flo (c.options.min===null){c.max=c.datamax+b}}});(function(){var a=Flotr.DOM;Flotr.a
tr.EventAdapter,s=Flotr._;Flotr.addPlugin("selection",{options:{pinchOnly:null,m ddPlugin("crosshair",{options:{mode:null,color:"#FF0000",hideCursor:true},callba
ode:null,color:"#B6D9FF",fps:20},callbacks:{"flotr:mouseup":function(e){var t=th cks:{"flotr:mousemove":function(b,c){if(this.options.crosshair.mode){this.crossh
is.options.selection,n=this.selection,r=this.getEventPosition(e);if(!t||!t.mode) air.clearCrosshair();this.crosshair.drawCrosshair(c)}}},drawCrosshair:function(g
return;n.interval&&clearInterval(n.interval),this.multitouches?n.updateSelection ){var e=this.octx,d=this.options.crosshair,c=this.plotOffset,b=c.left+Math.round
():t.pinchOnly||n.setSelectionPos(n.selection.second,r),n.clearSelection(),n.sel (g.relX)+0.5,f=c.top+Math.round(g.relY)+0.5;if(g.relX<0||g.relY<0||g.relX>this.p
ecting&&n.selectionIsSane()&&(n.drawSelection(),n.fireSelectEvent(),this.ignoreC lotWidth||g.relY>this.plotHeight){this.el.style.cursor=null;a.removeClass(this.e
lick=!0)},"flotr:mousedown":function(t){var n=this.options.selection,r=this.sele l,"flotr-crosshair");return}if(d.hideCursor){this.el.style.cursor="none";a.addCl
ction,i=this.getEventPosition(t);if(!n||!n.mode)return;if(!n.mode||!e(t)&&s.isUn ass(this.el,"flotr-crosshair")}e.save();e.strokeStyle=d.color;e.lineWidth=1;e.be
defined(t.touches))return;n.pinchOnly||r.setSelectionPos(r.selection.first,i),r. ginPath();if(d.mode.indexOf("x")!=-1){e.moveTo(b,c.top);e.lineTo(b,c.top+this.pl
interval&&clearInterval(r.interval),this.lastMousePos.pageX=null,r.selecting=!1, otHeight)}if(d.mode.indexOf("y")!=-1){e.moveTo(c.left,f);e.lineTo(c.left+this.pl
r.interval=setInterval(s.bind(r.updateSelection,this),1e3/n.fps)},"flotr:destroy otWidth,f)}e.stroke();e.restore()},clearCrosshair:function(){var c=this.plotOffs
":function(e){clearInterval(this.selection.interval)}},getArea:function(){var e= et,b=this.lastMousePos,d=this.octx;if(b){d.clearRect(Math.round(b.relX)+c.left,c
this.selection.selection,t=this.axes,n=e.first,r=e.second,i,s,o,u;return i=t.x.p .top,1,this.plotHeight+1);d.clearRect(c.left,Math.round(b.relY)+c.top,this.plotW
2d(e.first.x),s=t.x.p2d(e.second.x),o=t.y.p2d(e.first.y),u=t.y.p2d(e.second.y),{ idth+1,1)}}})})();(function(){var c=Flotr.DOM,b=Flotr._;function a(l,h,g,f,m,e){
x1:Math.min(i,s),y1:Math.min(o,u),x2:Math.max(i,s),y2:Math.max(o,u),xfirst:i,xse var d="image/"+l,k=g.getImageData(0,0,f,m),j=new Image();g.save();g.globalCompos
cond:s,yfirst:o,ysecond:u}},selection:{first:{x:-1,y:-1},second:{x:-1,y:-1}},pre iteOperation="destination-over";g.fillStyle=e;g.fillRect(0,0,f,m);j.src=h.toData
vSelection:null,interval:null,fireSelectEvent:function(e){var t=this.selection.g URL(d);g.restore();g.clearRect(0,0,f,m);g.putImageData(k,0,0);return j}Flotr.add
etArea();e=e||"select",t.selection=this.selection.selection,i.fire(this.el,"flot Plugin("download",{saveImage:function(h,g,d,e){var f=this.options.grid,j;if(Flot
r:"+e,[t,this])},setSelection:function(e,r){var i=this.options,s=this.axes.x,o=t r.isIE&&Flotr.isIE<9){j="<html><body>"+this.canvas.firstChild.innerHTML+"</body>
his.axes.y,u=o.scale,a=s.scale,f=i.selection.mode.indexOf("x")!=-1,l=i.selection </html>";return window.open().document.write(j)}if(h!=="jpeg"&&h!=="png"){return
.mode.indexOf("y")!=-1,c=this.selection.selection;this.selection.clearSelection( }j=a(h,this.canvas,this.ctx,this.canvasWidth,this.canvasHeight,f&&f.backgroundCo
),c.first.y=n(f&&!l?0:(o.max-e.y1)*u,this),c.second.y=n(f&&!l?this.plotHeight-1: lor||"#ffffff");if(b.isElement(j)&&e){this.download.restoreCanvas();c.hide(this.
(o.max-e.y2)*u,this),c.first.x=t(l&&!f?0:(e.x1-s.min)*a,this),c.second.x=t(l&&!f canvas);c.hide(this.overlay);c.setStyles({position:"absolute"});c.insert(this.el
?this.plotWidth:(e.x2-s.min)*a,this),this.selection.drawSelection(),r||this.sele ,j);this.saveImageElement=j}else{return window.open(j.src)}},restoreCanvas:funct
ction.fireSelectEvent()},setSelectionPos:function(e,r){var i=this.options.select ion(){c.show(this.canvas);c.show(this.overlay);if(this.saveImageElement){this.el
ion.mode,s=this.selection.selection;i.indexOf("x")==-1?e.x=e==s.first?0:this.plo .removeChild(this.saveImageElement)}this.saveImageElement=null}})})();(function(
tWidth:e.x=t(r.relX,this),i.indexOf("y")==-1?e.y=e==s.first?0:this.plotHeight-1: ){var b=Flotr.EventAdapter,a=Flotr._;Flotr.addPlugin("graphGrid",{callbacks:{"fl
e.y=n(r.relY,this)},drawSelection:function(){this.selection.fireSelectEvent("sel otr:beforedraw":function(){this.graphGrid.drawGrid()},"flotr:afterdraw":function
ecting");var e=this.selection.selection,t=this.octx,n=this.options,r=this.plotOf (){this.graphGrid.drawOutline()}},drawGrid:function(){var p=this.ctx,e=this.opti
fset,i=this.selection.prevSelection;if(i&&e.first.x==i.first.x&&e.first.y==i.fir ons,c=e.grid,h=c.verticalLines,z=c.horizontalLines,o=c.minorVerticalLines,w=c.mi
st.y&&e.second.x==i.second.x&&e.second.y==i.second.y)return;t.save(),t.strokeSty norHorizontalLines,r=this.plotHeight,g=this.plotWidth,A,k,s,q;if(h||o||z||w){b.f
le=this.processColor(n.selection.color,{opacity:.8}),t.lineWidth=1,t.lineJoin="m ire(this.el,"flotr:beforegrid",[this.axes.x,this.axes.y,e,this])}p.save();p.line
iter",t.fillStyle=this.processColor(n.selection.color,{opacity:.4}),this.selecti Width=1;p.strokeStyle=c.tickColor;function n(v){for(s=0;s<v.length;++s){var j=v[
on.prevSelection={first:{x:e.first.x,y:e.first.y},second:{x:e.second.x,y:e.secon s].v/A.max;for(q=0;q<=u;++q){p[q===0?"moveTo":"lineTo"](Math.cos(q*d+t)*f*j,Math
d.y}};var s=Math.min(e.first.x,e.second.x),o=Math.min(e.first.y,e.second.y),u=Ma .sin(q*d+t)*f*j)}}}function l(j,v){a.each(a.pluck(j,"v"),function(C){if((C<=A.mi
th.abs(e.second.x-e.first.x),a=Math.abs(e.second.y-e.first.y);t.fillRect(s+r.lef n||C>=A.max)||(C==A.min||C==A.max)&&c.outlineWidth){return}v(Math.floor(A.d2p(C)
t+.5,o+r.top+.5,u,a),t.strokeRect(s+r.left+.5,o+r.top+.5,u,a),t.restore()},updat )+p.lineWidth/2)})}function m(j){p.moveTo(j,0);p.lineTo(j,r)}function B(j){p.mov
eSelection:function(){if(!this.lastMousePos.pageX)return;this.selection.selectin eTo(0,j);p.lineTo(g,j)}if(c.circular){p.translate(this.plotOffset.left+g/2,this.
g=!0;if(this.multitouches)this.selection.setSelectionPos(this.selection.selectio plotOffset.top+r/2);var f=Math.min(r,g)*e.radar.radiusRatio/2,u=this.axes.x.tick
n.first,this.getEventPosition(this.multitouches[0])),this.selection.setSelection s.length,d=2*(Math.PI/u),t=-Math.PI/2;p.beginPath();A=this.axes.y;if(z){n(A.tick
Pos(this.selection.selection.second,this.getEventPosition(this.multitouches[1])) s)}if(w){n(A.minorTicks)}if(h){a.times(u,function(j){p.moveTo(0,0);p.lineTo(Math
;else{if(this.options.selection.pinchOnly)return;this.selection.setSelectionPos( .cos(j*d+t)*f,Math.sin(j*d+t)*f)})}p.stroke()}else{p.translate(this.plotOffset.l
this.selection.selection.second,this.lastMousePos)}this.selection.clearSelection eft,this.plotOffset.top);if(c.backgroundColor){p.fillStyle=this.processColor(c.b
(),this.selection.selectionIsSane()&&this.selection.drawSelection()},clearSelect ackgroundColor,{x1:0,y1:0,x2:g,y2:r});p.fillRect(0,0,g,r)}p.beginPath();A=this.a
ion:function(){if(!this.selection.prevSelection)return;var e=this.selection.prev xes.x;if(h){l(A.ticks,m)}if(o){l(A.minorTicks,m)}A=this.axes.y;if(z){l(A.ticks,B
Selection,t=1,n=this.plotOffset,r=Math.min(e.first.x,e.second.x),i=Math.min(e.fi )}if(w){l(A.minorTicks,B)}p.stroke()}p.restore();if(h||o||z||w){b.fire(this.el,"
rst.y,e.second.y),s=Math.abs(e.second.x-e.first.x),o=Math.abs(e.second.y-e.first flotr:aftergrid",[this.axes.x,this.axes.y,e,this])}},drawOutline:function(){var
.y);this.octx.clearRect(r+n.left-t+.5,i+n.top-t,s+2*t+.5,o+2*t+.5),this.selectio o=this,g=o.options,c=g.grid,l=c.outline,w=o.ctx,e=c.backgroundImage,p=o.plotOffs
n.prevSelection=null},selectionIsSane:function(){var e=this.selection.selection; et,q=p.left,z=p.top,m=o.plotWidth,A=o.plotHeight,r,E,n,j,u,B;if(!c.outlineWidth)
return Math.abs(e.second.x-e.first.x)>=5||Math.abs(e.second.y-e.first.y)>=5}})}( {return}w.save();if(c.circular){w.translate(q+m/2,z+A/2);var h=Math.min(A,m)*g.r
),function(){var e=Flotr.DOM;Flotr.addPlugin("labels",{callbacks:{"flotr:afterdr adar.radiusRatio/2,D=this.axes.x.ticks.length,d=2*(Math.PI/D),C=-Math.PI/2;w.beg
aw":function(){this.labels.draw()}},draw:function(){function b(e,t,r){var i=r?t. inPath();w.lineWidth=c.outlineWidth;w.strokeStyle=c.color;w.lineJoin="round";for
minorTicks:t.ticks,s=t.orientation===1,u=t.n===1,l,h;l={color:t.options.color||d (i=0;i<=D;++i){w[i===0?"moveTo":"lineTo"](Math.cos(i*d+C)*h,Math.sin(i*d+C)*h)}w
.grid.color,angle:Flotr.toRad(t.options.labelsAngle),textBaseline:"middle"};for( .stroke()}else{w.translate(q,z);var k=c.outlineWidth,f=0.5-k+((k+1)%2/2),s="line
c=0;c<i.length&&(r?t.options.showMinorLabels:t.options.showLabels);++c){n=i[c],n To",t="moveTo";w.lineWidth=k;w.strokeStyle=c.color;w.lineJoin="miter";w.beginPat
.label+="";if(!n.label||!n.label.length)continue;x=Math.cos(c*a+f)*o,y=Math.sin( h();w.moveTo(f,f);m=m-(k/2)%1;A=A+k/2;w[l.indexOf("n")!==-1?s:t](m,f);w[l.indexO
c*a+f)*o,l.textAlign=s?Math.abs(x)<.1?"center":x<0?"right":"left":"left",Flotr.d f("e")!==-1?s:t](m,A);w[l.indexOf("s")!==-1?s:t](f,A);w[l.indexOf("w")!==-1?s:t]
rawText(v,n.label,s?x:3,s?y:-(t.ticks[c].v/t.max)*(o-d.fontSize),l)}}function w( (f,f);w.stroke();w.closePath()}w.restore();if(e){n=e.src||e;j=(parseInt(e.left,1
e,t,r,i){function f(e){return e.options.showLabels&&e.used}function l(e,t,n,r){r 0)||0)+p.left;u=(parseInt(e.top,10)||0)+p.top;E=new Image();E.onload=function(){
eturn e.plotOffset.left+(t?r:n?-d.grid.labelMargin:d.grid.labelMargin+e.plotWidt w.save();if(e.alpha){w.globalAlpha=e.alpha}w.globalCompositeOperation="destinati
h)}function h(e,t,n,r){return e.plotOffset.top+(t?d.grid.labelMargin:r)+(t&&n?e. on-over";w.drawImage(E,0,0,E.width,E.height,j,u,m,A);w.restore()};E.src=n}}})})(
plotHeight:0)}var s=t.orientation===1,o=t.n===1,u,a;u={color:t.options.color||d. );(function(){var d=Flotr.DOM,b=Flotr._,c=Flotr,a="opacity:0.7;background-color:
grid.color,textAlign:r,textBaseline:i,angle:Flotr.toRad(t.options.labelsAngle)}, #000;color:#fff;position:absolute;padding:2px 8px;-moz-border-radius:4px;border-
u=Flotr.getBestTextAlign(u.angle,u);for(c=0;c<t.ticks.length&&f(t);++c){n=t.tick radius:4px;white-space:nowrap;";Flotr.addPlugin("hit",{callbacks:{"flotr:mousemo
s[c];if(!n.label||!n.label.length)continue;a=t.d2p(n.v);if(a<0||a>(s?e.plotWidth ve":function(f,g){this.hit.track(g)},"flotr:click":function(f){var e=this.hit.tr
:e.plotHeight))continue;Flotr.drawText(v,n.label,l(e,s,o,a),h(e,s,o,a),u),!s&&!o ack(f);if(e&&!b.isUndefined(e.index)){f.hit=e}},"flotr:mouseout":function(f){if(
&&(v.save(),v.strokeStyle=u.color,v.beginPath(),v.moveTo(e.plotOffset.left+e.plo f.relatedTarget!==this.mouseTrack){this.hit.clearHit()}},"flotr:destroy":functio
tWidth-8,e.plotOffset.top+t.d2p(n.v)),v.lineTo(e.plotOffset.left+e.plotWidth,e.p n(){if(this.options.mouse.container){d.remove(this.mouseTrack)}this.mouseTrack=n
lotOffset.top+t.d2p(n.v)),v.stroke(),v.restore())}}function E(e,t){var r=t.orien ull}},track:function(e){if(this.options.mouse.track||b.any(this.series,function(
tation===1,i=t.n===1,o="",u,a,f,l=e.plotOffset;!r&&!i&&(v.save(),v.strokeStyle=t f){return f.mouse&&f.mouse.track})){return this.hit.hit(e)}},executeOnType:funct
.options.color||d.grid.color,v.beginPath());if(t.options.showLabels&&(i?!0:t.use ion(h,l,g){var k=false,f;if(!b.isArray(h)){h=[h]}function j(m,e){b.each(b.keys(c
d))for(c=0;c<t.ticks.length;++c){n=t.ticks[c];if(!n.label||!n.label.length||(r?l .graphTypes),function(n){if(m[n]&&m[n].show&&!m.hide&&this[n][l]){f=this.getOpti
.left:l.top)+t.d2p(n.v)<0||(r?l.left:l.top)+t.d2p(n.v)>(r?e.canvasWidth:e.canvas ons(m,n);f.fill=!!m.mouse.fillColor;f.fillStyle=this.processColor(m.mouse.fillCo
Height))continue;f=l.top+(r?(i?1:-1)*(e.plotHeight+d.grid.labelMargin):t.d2p(n.v lor||"#ffffff",{opacity:m.mouse.fillOpacity});f.color=m.mouse.lineColor;f.contex
)-t.maxLabel.height/2),u=r?l.left+t.d2p(n.v)-s/2:0,o="",c===0?o=" first":c===t.t t=this.octx;f.index=e;if(g){f.args=g}this[n][l].call(this[n],f);k=true}},this)}b
icks.length-1&&(o=" last"),o+=r?" flotr-grid-label-x":" flotr-grid-label-y",h+=[ .each(h,j,this);return k},drawHit:function(j){var g=this.octx,f=j.series;if(f.mo
'<div style="position:absolute; text-align:'+(r?"center":"right")+"; ","top:"+f+ use.lineColor){g.save();g.lineWidth=(f.points?f.points.lineWidth:1);g.strokeStyl
"px; ",(!r&&!i?"right:":"left:")+u+"px; ","width:"+(r?s:(i?l.left:l.right)-d.gri e=f.mouse.lineColor;g.fillStyle=this.processColor(f.mouse.fillColor||"#ffffff",{
d.labelMargin)+"px; ",t.options.color?"color:"+t.options.color+"; ":" ",'" class opacity:f.mouse.fillOpacity});g.translate(this.plotOffset.left,this.plotOffset.t
="flotr-grid-label'+o+'">'+n.label+"</div>"].join(" "),!r&&!i&&(v.moveTo(l.left+ op);if(!this.hit.executeOnType(f,"drawHit",j)){var h=j.xaxis,e=j.yaxis;g.beginPa
e.plotWidth-8,l.top+t.d2p(n.v)),v.lineTo(l.left+e.plotWidth,l.top+t.d2p(n.v)))}} th();g.arc(h.d2p(j.x),e.d2p(j.y),f.points.hitRadius||f.points.radius||f.mouse.ra
var t,n,r,i,s,o,u,a,f,l,c,h="",p=0,d=this.options,v=this.ctx,m=this.axes,g={size dius,0,2*Math.PI,true);g.fill();g.stroke();g.closePath()}g.restore();this.clip(g
:d.fontSize};for(c=0;c<m.x.ticks.length;++c)m.x.ticks[c].label&&++p;s=this.plotW )}this.prevHit=j},clearHit:function(){var g=this.prevHit,j=this.octx,e=this.plot
idth/p,d.grid.circular&&(v.save(),v.translate(this.plotOffset.left+this.plotWidt Offset;j.save();j.translate(e.left,e.top);if(g){if(!this.hit.executeOnType(g.ser
h/2,this.plotOffset.top+this.plotHeight/2),o=this.plotHeight*d.radar.radiusRatio ies,"clearHit",this.prevHit)){var f=g.series,h=(f.points?f.points.lineWidth:1);o
/2+d.fontSize,u=this.axes.x.ticks.length,a=2*(Math.PI/u),f=-Math.PI/2,b(this,m.x ffset=(f.points.hitRadius||f.points.radius||f.mouse.radius)+h;j.clearRect(g.xaxi
,!1),b(this,m.x,!0),b(this,m.y,!1),b(this,m.y,!0),v.restore()),!d.HtmlText&&this s.d2p(g.x)-offset,g.yaxis.d2p(g.y)-offset,offset*2,offset*2)}d.hide(this.mouseTr
.textEnabled?(w(this,m.x,"center","top"),w(this,m.x2,"center","bottom"),w(this,m ack);this.prevHit=null}j.restore()},hit:function(l){var r=this.options,f=this.pr
.y,"right","middle"),w(this,m.y2,"left","middle")):(m.x.options.showLabels||m.x2 evHit,e,h,o,j,k,q,p,m,g;if(this.series.length===0){return}g={relX:l.relX,relY:l.
.options.showLabels||m.y.options.showLabels||m.y2.options.showLabels)&&!d.grid.c relY,absX:l.absX,absY:l.absY,series:this.series};if(r.mouse.trackY&&!r.mouse.tra
ircular&&(h="",E(this,m.x),E(this,m.x2),E(this,m.y),E(this,m.y2),v.stroke(),v.re ckAll&&this.hit.executeOnType(this.series,"hit",[l,g])&&!b.isUndefined(g.seriesI
store(),l=e.create("div"),e.setStyles(l,{fontSize:"smaller",color:d.grid.color}) ndex)){k=this.series[g.seriesIndex];g.series=k;g.mouse=k.mouse;g.xaxis=k.xaxis;g
,l.className="flotr-labels",e.insert(this.el,l),e.insert(l,h))}})}(),function(){ .yaxis=k.yaxis}else{e=this.hit.closest(l);if(e){e=r.mouse.trackY?e.point:e.x;j=e
var e=Flotr.DOM,t=Flotr._;Flotr.addPlugin("legend",{options:{show:!0,noColumns:1 .seriesIndex;k=this.series[j];p=k.xaxis;m=k.yaxis;h=2*k.mouse.sensibility;if(r.m
,labelFormatter:function(e){return e},labelBoxBorderColor:"#CCCCCC",labelBoxWidt ouse.trackAll||(e.distanceX<h/p.scale&&(!r.mouse.trackY||e.distanceY<h/m.scale))
h:14,labelBoxHeight:10,labelBoxMargin:5,container:null,position:"nw",margin:5,ba ){g.series=k;g.xaxis=k.xaxis;g.yaxis=k.yaxis;g.mouse=k.mouse;g.x=e.x;g.y=e.y;g.d
ckgroundColor:"#F0F0F0",backgroundOpacity:.85},callbacks:{"flotr:afterinit":func ist=e.distance;g.index=e.dataIndex;g.seriesIndex=j}}}if(!f||(f.index!==g.index||
tion(){this.legend.insertLegend()},"flotr:destroy":function(){var t=this.legend. f.seriesIndex!==g.seriesIndex)){this.hit.clearHit();if(g.series&&g.mouse&&g.mous
markup;t&&(this.legend.markup=null,e.remove(t))}},insertLegend:function(){if(!th e.track){this.hit.drawMouseTrack(g);this.hit.drawHit(g);Flotr.EventAdapter.fire(
is.options.legend.show)return;var n=this.series,r=this.plotOffset,i=this.options this.el,"flotr:hit",[g,this])}}return g},closest:function(q){var p=this.series,f
,s=i.legend,o=[],u=!1,a=this.ctx,f=t.filter(n,function(e){return e.label&&!e.hid =this.options,v=q.relX,t=q.relY,D=Number.MAX_VALUE,h=Number.MAX_VALUE,r={},k={},
e}).length,l=s.position,c=s.margin,h=s.backgroundOpacity,p,d,v;if(f){var m=s.lab B=false,s,C,g,A,z,m,l,o,n,w,u;function e(j){j.distance=g;j.distanceX=A;j.distanc
elBoxWidth,g=s.labelBoxHeight,y=s.labelBoxMargin,b=r.left+c,w=r.top+c,E=0,S={siz eY=z;j.seriesIndex=w;j.dataIndex=u;j.x=o;j.y=n;B=true}for(w=0;w<p.length;w++){s=
e:i.fontSize*1.1,color:i.grid.color};for(p=n.length-1;p>-1;--p){if(!n[p].label|| p[w];C=s.data;m=s.xaxis.p2d(v);l=s.yaxis.p2d(t);if(s.hide){continue}for(u=C.leng
n[p].hide)continue;d=s.labelFormatter(n[p].label),E=Math.max(E,this._text.measur th;u--;){o=C[u][0];n=C[u][1];if(C[u].y0){n+=C[u].y0}if(o===null||n===null){conti
eText(d,S).width)}var x=Math.round(m+y*3+E),T=Math.round(f*(y+g)+y);!h&&h!==0&&( nue}if(o<s.xaxis.min||o>s.xaxis.max){continue}A=Math.abs(o-m);z=Math.abs(n-l);g=
h=.1);if(!i.HtmlText&&this.textEnabled&&!s.container){l.charAt(0)=="s"&&(w=r.top A*A+z*z;if(g<D){D=g;e(r)}if(A<h){h=A;e(k)}}}return B?{point:r,x:k}:false},drawMo
+this.plotHeight-(c+T)),l.charAt(0)=="c"&&(w=r.top+this.plotHeight/2-(c+T/2)),l. useTrack:function(A){var j="",u=A.series,z=A.mouse.position,B=A.mouse.margin,q=A
charAt(1)=="e"&&(b=r.left+this.plotWidth-(c+x)),v=this.processColor(s.background .x,o=A.y,E=a,D=this.mouseTrack,r=this.plotOffset,g=r.left,G=r.right,k=r.bottom,v
Color,{opacity:h}),a.fillStyle=v,a.fillRect(b,w,x,T),a.strokeStyle=s.labelBoxBor =r.top,J=A.mouse.trackDecimals,e=this.options,t=e.mouse.container,l=0,I=0,h,w,C;
derColor,a.strokeRect(Flotr.toPixel(b),Flotr.toPixel(w),x,T);var N=b+y,C=w+y;for if(!D){D=d.node('<div class="flotr-mouse-value" style="'+E+'"></div>');this.mous
(p=0;p<n.length;p++){if(!n[p].label||n[p].hide)continue;d=s.labelFormatter(n[p]. eTrack=D;d.insert(t||this.el,D)}if(!J||J<0){J=0}if(q&&q.toFixed){q=q.toFixed(J)}
label),a.fillStyle=n[p].color,a.fillRect(N,C,m-1,g-1),a.strokeStyle=s.labelBoxBo if(o&&o.toFixed){o=o.toFixed(J)}C=A.mouse.trackFormatter({x:q,y:o,series:A.serie
rderColor,a.lineWidth=1,a.strokeRect(Math.ceil(N)-1.5,Math.ceil(C)-1.5,m+2,g+2), s,index:A.index,nearest:A,fraction:A.fraction});if(b.isNull(C)||b.isUndefined(C)
Flotr.drawText(a,d,N+m+y,C+g,S),C+=g+y}}else{for(p=0;p<n.length;++p){if(!n[p].la ){d.hide(D);return}else{D.innerHTML=C;d.show(D)}if(!z){return}w=d.size(D);if(t){
bel||n[p].hide)continue;p%s.noColumns===0&&(o.push(u?"</tr><tr>":"<tr>"),u=!0);v h=d.position(this.el);l=h.top;I=h.left}if(!A.mouse.relative){j+="top:";if(z.char
ar k=n[p],L=s.labelBoxWidth,A=s.labelBoxHeight;d=s.labelFormatter(k.label),v="ba At(0)=="n"){j+=(l+B+v)}else{if(z.charAt(0)=="s"){j+=(l-B+v+this.plotHeight-w.hei
ckground-color:"+(k.bars&&k.bars.show&&k.bars.fillColor&&k.bars.fill?k.bars.fill ght)}}j+="px;bottom:auto;left:";if(z.charAt(1)=="e"){j+=(I-B+g+this.plotWidth-w.
Color:k.color)+";",o.push('<td class="flotr-legend-color-box">','<div style="bor width)}else{if(z.charAt(1)=="w"){j+=(I+B+g)}}j+="px;right:auto;"}else{if(u.pie&&
der:1px solid ',s.labelBoxBorderColor,';padding:1px">','<div style="width:',L-1, u.pie.show){var H={x:(this.plotWidth)/2,y:(this.plotHeight)/2},f=(Math.min(this.
"px;height:",A-1,"px;border:1px solid ",n[p].color,'">','<div style="width:',L," canvasWidth,this.canvasHeight)*u.pie.sizeRatio)/2,F=A.sAngle<A.eAngle?(A.sAngle+
px;height:",A,"px;",v,'"></div>',"</div>","</div>","</td>",'<td class="flotr-leg A.eAngle)/2:(A.sAngle+A.eAngle+2*Math.PI)/2;j+="bottom:"+(B-v-H.y-Math.sin(F)*f/
end-label">',d,"</td>")}u&&o.push("</tr>");if(o.length>0){var O='<table style="f 2+this.canvasHeight)+"px;top:auto;";j+="left:"+(B+g+H.x+Math.cos(F)*f/2)+"px;rig
ont-size:smaller;color:'+i.grid.color+'">'+o.join("")+"</table>";if(s.container) ht:auto;"}else{j+="top:";if(/n/.test(z)){j+=(l-B+v+A.yaxis.d2p(A.y)-w.height)}el
O=e.node(O),this.legend.markup=O,e.insert(s.container,O);else{var M={position:"a se{j+=(l+B+v+A.yaxis.d2p(A.y))}j+="px;bottom:auto;left:";if(/w/.test(z)){j+=(I-B
bsolute",zIndex:"2",border:"1px solid "+s.labelBoxBorderColor};l.charAt(0)=="n"? +g+A.xaxis.d2p(A.x)-w.width)}else{j+=(I+B+g+A.xaxis.d2p(A.x))}j+="px;right:auto;
(M.top=c+r.top+"px",M.bottom="auto"):l.charAt(0)=="c"?(M.top=c+(this.plotHeight- "}}D.style.cssText=E+j;if(A.mouse.relative){if(!/[ew]/.test(z)){D.style.left=(I+
T)/2+"px",M.bottom="auto"):l.charAt(0)=="s"&&(M.bottom=c+r.bottom+"px",M.top="au g+A.xaxis.d2p(A.x)-d.size(D).width/2)+"px"}else{if(!/[ns]/.test(z)){D.style.top=
to"),l.charAt(1)=="e"?(M.right=c+r.right+"px",M.left="auto"):l.charAt(1)=="w"&&( (l+v+A.yaxis.d2p(A.y)-d.size(D).height/2)+"px"}}}}})})();(function(){function b(
M.left=c+r.left+"px",M.right="auto");var P=e.create("div"),H;P.className="flotr- h,g){return(h.which?(h.which===1):(h.button===0||h.button===1))}function a(g,h){
legend",e.setStyles(P,M),e.insert(P,O),e.insert(this.el,P);if(!h)return;var B=s. return Math.min(Math.max(0,g),h.plotWidth-1)}function f(h,g){return Math.min(Mat
backgroundColor||i.grid.backgroundColor||"#ffffff";t.extend(M,e.size(P),{backgro h.max(0,h),g.plotHeight)}var e=Flotr.DOM,d=Flotr.EventAdapter,c=Flotr._;Flotr.ad
undColor:B,zIndex:"",border:""}),M.width+="px",M.height+="px",P=e.create("div"), dPlugin("selection",{options:{pinchOnly:null,mode:null,color:"#B6D9FF",fps:20},c
P.className="flotr-legend-bg",e.setStyles(P,M),e.opacity(P,h),e.insert(P," "),e. allbacks:{"flotr:mouseup":function(j){var g=this.options.selection,h=this.select
insert(this.el,P)}}}}}})}(),function(){function e(e){if(this.options.spreadsheet ion,k=this.getEventPosition(j);if(!g||!g.mode){return}if(h.interval){clearInterv
.tickFormatter)return this.options.spreadsheet.tickFormatter(e);var t=n.find(thi al(h.interval)}if(this.multitouches){h.updateSelection()}else{if(!g.pinchOnly){h
s.axes.x.ticks,function(t){return t.v==e});return t?t.label:e}var t=Flotr.DOM,n= .setSelectionPos(h.selection.second,k)}}h.clearSelection();if(h.selecting&&h.sel
Flotr._;Flotr.addPlugin("spreadsheet",{options:{show:!1,tabGraphLabel:"Graph",ta ectionIsSane()){h.drawSelection();h.fireSelectEvent();this.ignoreClick=true}},"f
bDataLabel:"Data",toolbarDownload:"Download CSV",toolbarSelectAll:"Select all",c lotr:mousedown":function(j){var g=this.options.selection,h=this.selection,k=this
svFileSeparator:",",decimalSeparator:".",tickFormatter:null,initialTab:"graph"}, .getEventPosition(j);if(!g||!g.mode){return}if(!g.mode||(!b(j)&&c.isUndefined(j.
callbacks:{"flotr:afterconstruct":function(){if(!this.options.spreadsheet.show)r touches))){return}if(!g.pinchOnly){h.setSelectionPos(h.selection.first,k)}if(h.i
eturn;var e=this.spreadsheet,n=t.node('<div class="flotr-tabs-group" style="posi nterval){clearInterval(h.interval)}this.lastMousePos.pageX=null;h.selecting=fals
tion:absolute;left:0px;width:'+this.canvasWidth+'px"></div>'),r=t.node('<div sty e;h.interval=setInterval(c.bind(h.updateSelection,this),1000/g.fps)},"flotr:dest
le="float:left" class="flotr-tab selected">'+this.options.spreadsheet.tabGraphLa roy":function(g){clearInterval(this.selection.interval)}},getArea:function(){var
bel+"</div>"),i=t.node('<div style="float:left" class="flotr-tab">'+this.options n=this.selection.selection,g=this.axes,o=n.first,k=n.second,j,h,m,l;j=g.x.p2d(n
.spreadsheet.tabDataLabel+"</div>"),s;e.tabsContainer=n,e.tabs={graph:r,data:i}, .first.x);h=g.x.p2d(n.second.x);m=g.y.p2d(n.first.y);l=g.y.p2d(n.second.y);retur
t.insert(n,r),t.insert(n,i),t.insert(this.el,n),s=t.size(i).height+2,this.plotOf n{x1:Math.min(j,h),y1:Math.min(m,l),x2:Math.max(j,h),y2:Math.max(m,l),xfirst:j,x
fset.bottom+=s,t.setStyles(n,{top:this.canvasHeight-s+"px"}),this.observe(r,"cli second:h,yfirst:m,ysecond:l}},selection:{first:{x:-1,y:-1},second:{x:-1,y:-1}},p
ck",function(){e.showTab("graph")}).observe(i,"click",function(){e.showTab("data revSelection:null,interval:null,fireSelectEvent:function(g){var h=this.selection
")}),this.options.spreadsheet.initialTab!=="graph"&&e.showTab(this.options.sprea .getArea();g=g||"select";h.selection=this.selection.selection;d.fire(this.el,"fl
dsheet.initialTab)}},loadDataGrid:function(){if(this.seriesData)return this.seri otr:"+g,[h,this])},setSelection:function(h,n){var q=this.options,g=this.axes.x,m
esData;var e=this.series,t={};return n.each(e,function(e,r){n.each(e.data,functi =this.axes.y,j=m.scale,o=g.scale,l=q.selection.mode.indexOf("x")!=-1,k=q.selecti
on(e){var n=e[0],s=e[1],o=t[n];if(o)o[r+1]=s;else{var u=[];u[0]=n,u[r+1]=s,t[n]= on.mode.indexOf("y")!=-1,p=this.selection.selection;this.selection.clearSelectio
u}})}),this.seriesData=n.sortBy(t,function(e,t){return parseInt(t,10)}),this.ser n();p.first.y=f((l&&!k)?0:(m.max-h.y1)*j,this);p.second.y=f((l&&!k)?this.plotHei
iesData},constructDataGrid:function(){if(this.spreadsheet.datagrid)return this.s ght-1:(m.max-h.y2)*j,this);p.first.x=a((k&&!l)?0:(h.x1-g.min)*o,this);p.second.x
preadsheet.datagrid;var r=this.series,i=this.spreadsheet.loadDataGrid(),s=["<col =a((k&&!l)?this.plotWidth:(h.x2-g.min)*o,this);this.selection.drawSelection();if
group><col />"],o,u,a,f=['<table class="flotr-datagrid"><tr class="first-row">'] (!n){this.selection.fireSelectEvent()}},setSelectionPos:function(k,j){var h=this
;f.push("<th>&nbsp;</th>"),n.each(r,function(e,t){f.push('<th scope="col">'+(e.l .options.selection.mode,g=this.selection.selection;if(h.indexOf("x")==-1){k.x=(k
abel||String.fromCharCode(65+t))+"</th>"),s.push("<col />")}),f.push("</tr>"),n. ==g.first)?0:this.plotWidth}else{k.x=a(j.relX,this)}if(h.indexOf("y")==-1){k.y=(
each(i,function(t){f.push("<tr>"),n.times(r.length+1,function(r){var i="td",s=t[ k==g.first)?0:this.plotHeight-1}else{k.y=f(j.relY,this)}},drawSelection:function
r],o=n.isUndefined(s)?"":Math.round(s*1e5)/1e5;if(r===0){i="th";var u=e.call(thi (){this.selection.fireSelectEvent("selecting");var p=this.selection.selection,o=
s,o);u&&(o=u)}f.push("<"+i+(i=="th"?' scope="row"':"")+">"+o+"</"+i+">")},this), this.octx,q=this.options,g=this.plotOffset,k=this.selection.prevSelection;if(k&&
f.push("</tr>")},this),s.push("</colgroup>"),a=t.node(f.join("")),o=t.node('<but p.first.x==k.first.x&&p.first.y==k.first.y&&p.second.x==k.second.x&&p.second.y==
ton type="button" class="flotr-datagrid-toolbar-button">'+this.options.spreadshe k.second.y){return}o.save();o.strokeStyle=this.processColor(q.selection.color,{o
et.toolbarDownload+"</button>"),u=t.node('<button type="button" class="flotr-dat pacity:0.8});o.lineWidth=1;o.lineJoin="miter";o.fillStyle=this.processColor(q.se
agrid-toolbar-button">'+this.options.spreadsheet.toolbarSelectAll+"</button>"),t lection.color,{opacity:0.4});this.selection.prevSelection={first:{x:p.first.x,y:
his.observe(o,"click",n.bind(this.spreadsheet.downloadCSV,this)).observe(u,"clic p.first.y},second:{x:p.second.x,y:p.second.y}};var m=Math.min(p.first.x,p.second
k",n.bind(this.spreadsheet.selectAllData,this));var l=t.node('<div class="flotr- .x),l=Math.min(p.first.y,p.second.y),n=Math.abs(p.second.x-p.first.x),j=Math.abs
datagrid-toolbar"></div>');t.insert(l,o),t.insert(l,u);var c=this.canvasHeight-t (p.second.y-p.first.y);o.fillRect(m+g.left+0.5,l+g.top+0.5,n,j);o.strokeRect(m+g
.size(this.spreadsheet.tabsContainer).height-2,h=t.node('<div class="flotr-datag .left+0.5,l+g.top+0.5,n,j);o.restore()},updateSelection:function(){if(!this.last
rid-container" style="position:absolute;left:0px;top:0px;width:'+this.canvasWidt MousePos.pageX){return}this.selection.selecting=true;if(this.multitouches){this.
h+"px;height:"+c+'px;overflow:auto;z-index:10"></div>');return t.insert(h,l),t.i selection.setSelectionPos(this.selection.selection.first,this.getEventPosition(t
nsert(h,a),t.insert(this.el,h),this.spreadsheet.datagrid=a,this.spreadsheet.cont his.multitouches[0]));this.selection.setSelectionPos(this.selection.selection.se
ainer=h,a},showTab:function(e){if(this.spreadsheet.activeTab===e)return;switch(e cond,this.getEventPosition(this.multitouches[1]))}else{if(this.options.selection
){case"graph":t.hide(this.spreadsheet.container),t.removeClass(this.spreadsheet. .pinchOnly){return}else{this.selection.setSelectionPos(this.selection.selection.
tabs.data,"selected"),t.addClass(this.spreadsheet.tabs.graph,"selected");break;c second,this.lastMousePos)}}this.selection.clearSelection();if(this.selection.sel
ase"data":this.spreadsheet.datagrid||this.spreadsheet.constructDataGrid(),t.show ectionIsSane()){this.selection.drawSelection()}},clearSelection:function(){if(!t
(this.spreadsheet.container),t.addClass(this.spreadsheet.tabs.data,"selected"),t his.selection.prevSelection){return}var o=this.selection.prevSelection,m=1,k=thi
.removeClass(this.spreadsheet.tabs.graph,"selected");break;default:throw"Illegal s.plotOffset,g=Math.min(o.first.x,o.second.x),n=Math.min(o.first.y,o.second.y),j
tab name: "+e}this.spreadsheet.activeTab=e},selectAllData:function(){if(this.sp =Math.abs(o.second.x-o.first.x),l=Math.abs(o.second.y-o.first.y);this.octx.clear
readsheet.tabs){var e,t,n,r,i=this.spreadsheet.constructDataGrid();return this.s Rect(g+k.left-m+0.5,n+k.top-m,j+2*m+0.5,l+2*m+0.5);this.selection.prevSelection=
preadsheet.showTab("data"),setTimeout(function(){(n=i.ownerDocument)&&(r=n.defau null},selectionIsSane:function(){var g=this.selection.selection;return Math.abs(
ltView)&&r.getSelection&&n.createRange&&(e=window.getSelection())&&e.removeAllRa g.second.x-g.first.x)>=5||Math.abs(g.second.y-g.first.y)>=5}})})();(function(){v
nges?(t=n.createRange(),t.selectNode(i),e.removeAllRanges(),e.addRange(t)):docum ar a=Flotr.DOM;Flotr.addPlugin("labels",{callbacks:{"flotr:afterdraw":function()
ent.body&&document.body.createTextRange&&(t=document.body.createTextRange())&&(t {this.labels.draw()}},draw:function(){var d,r,g,m,o,f,u,b,t,k,q,j="",c=0,e=this.
.moveToElementText(i),t.select())},0),!0}return!1},downloadCSV:function(){var t= options,p=this.ctx,v=this.axes,s={size:e.fontSize};for(q=0;q<v.x.ticks.length;++
"",r=this.series,i=this.options,s=this.spreadsheet.loadDataGrid(),o=encodeURICom q){if(v.x.ticks[q].label){++c}}o=this.plotWidth/c;if(e.grid.circular){p.save();p
ponent(i.spreadsheet.csvFileSeparator);if(i.spreadsheet.decimalSeparator===i.spr .translate(this.plotOffset.left+this.plotWidth/2,this.plotOffset.top+this.plotHe
eadsheet.csvFileSeparator)throw"The decimal separator is the same as the column ight/2);f=this.plotHeight*e.radar.radiusRatio/2+e.fontSize;u=this.axes.x.ticks.l
separator ("+i.spreadsheet.decimalSeparator+")";n.each(r,function(e,n){t+=o+'"'+ ength;b=2*(Math.PI/u);t=-Math.PI/2;h(this,v.x,false);h(this,v.x,true);h(this,v.y
(e.label||String.fromCharCode(65+n)).replace(/\"/g,'\\"')+'"'}),t+="%0D%0A",t+=n ,false);h(this,v.y,true);p.restore()}if(!e.HtmlText&&this.textEnabled){n(this,v.
.reduce(s,function(t,n){var r=e.call(this,n[0])||"";r='"'+(r+"").replace(/\"/g,' x,"center","top");n(this,v.x2,"center","bottom");n(this,v.y,"right","middle");n(
\\"')+'"';var s=n.slice(1).join(o);return i.spreadsheet.decimalSeparator!=="."&& this,v.y2,"left","middle")}else{if((v.x.options.showLabels||v.x2.options.showLab
(s=s.replace(/\./g,i.spreadsheet.decimalSeparator)),t+r+o+s+"%0D%0A"},"",this),F els||v.y.options.showLabels||v.y2.options.showLabels)&&!e.grid.circular){j="";l(
lotr.isIE&&Flotr.isIE<9?(t=t.replace(new RegExp(o,"g"),decodeURIComponent(o)).re this,v.x);l(this,v.x2);l(this,v.y);l(this,v.y2);p.stroke();p.restore();k=a.creat
place(/%0A/g,"\n").replace(/%0D/g,"\r"),window.open().document.write(t)):window. e("div");a.setStyles(k,{fontSize:"smaller",color:e.grid.color});k.className="flo
open("data:text/csv,"+t)}})}(),function(){var e=Flotr.DOM;Flotr.addPlugin("title tr-labels";a.insert(this.el,k);a.insert(k,j)}}function h(E,B,z){var C=z?B.minorT
s",{callbacks:{"flotr:afterdraw":function(){this.titles.drawTitles()}},drawTitle icks:B.ticks,D=B.orientation===1,w=B.n===1,A,F;A={color:B.options.color||e.grid.
s:function(){var t,n=this.options,r=n.grid.labelMargin,i=this.ctx,s=this.axes;if color,angle:Flotr.toRad(B.options.labelsAngle),textBaseline:"middle"};for(q=0;q<
(!n.HtmlText&&this.textEnabled){var o={size:n.fontSize,color:n.grid.color,textAl C.length&&(z?B.options.showMinorLabels:B.options.showLabels);++q){r=C[q];r.label
ign:"center"};n.subtitle&&Flotr.drawText(i,n.subtitle,this.plotOffset.left+this. +="";if(!r.label||!r.label.length){continue}x=Math.cos(q*b+t)*f;y=Math.sin(q*b+t
plotWidth/2,this.titleHeight+this.subtitleHeight-2,o),o.weight=1.5,o.size*=1.5,n )*f;A.textAlign=D?(Math.abs(x)<0.1?"center":(x<0?"right":"left")):"left";Flotr.d
.title&&Flotr.drawText(i,n.title,this.plotOffset.left+this.plotWidth/2,this.titl rawText(p,r.label,D?x:3,D?y:-(B.ticks[q].v/B.max)*(f-e.fontSize),A)}}function n(
eHeight-2,o),o.weight=1.8,o.size*=.8,s.x.options.title&&s.x.used&&(o.textAlign=s H,C,B,A){var I=C.orientation===1,E=C.n===1,w,D;w={color:C.options.color||e.grid.
.x.options.titleAlign||"center",o.textBaseline="top",o.angle=Flotr.toRad(s.x.opt color,textAlign:B,textBaseline:A,angle:Flotr.toRad(C.options.labelsAngle)};w=Flo
ions.titleAngle),o=Flotr.getBestTextAlign(o.angle,o),Flotr.drawText(i,s.x.option tr.getBestTextAlign(w.angle,w);for(q=0;q<C.ticks.length&&G(C);++q){r=C.ticks[q];
s.title,this.plotOffset.left+this.plotWidth/2,this.plotOffset.top+s.x.maxLabel.h if(!r.label||!r.label.length){continue}D=C.d2p(r.v);if(D<0||D>(I?H.plotWidth:H.p
eight+this.plotHeight+2*r,o)),s.x2.options.title&&s.x2.used&&(o.textAlign=s.x2.o lotHeight)){continue}Flotr.drawText(p,r.label,z(H,I,E,D),F(H,I,E,D),w);if(!I&&!E
ptions.titleAlign||"center",o.textBaseline="bottom",o.angle=Flotr.toRad(s.x2.opt ){p.save();p.strokeStyle=w.color;p.beginPath();p.moveTo(H.plotOffset.left+H.plot
ions.titleAngle),o=Flotr.getBestTextAlign(o.angle,o),Flotr.drawText(i,s.x2.optio Width-8,H.plotOffset.top+C.d2p(r.v));p.lineTo(H.plotOffset.left+H.plotWidth,H.pl
ns.title,this.plotOffset.left+this.plotWidth/2,this.plotOffset.top-s.x2.maxLabel otOffset.top+C.d2p(r.v));p.stroke();p.restore()}}function G(J){return J.options.
.height-2*r,o)),s.y.options.title&&s.y.used&&(o.textAlign=s.y.options.titleAlign showLabels&&J.used}function z(L,K,J,M){return L.plotOffset.left+(K?M:(J?-e.grid.
||"right",o.textBaseline="middle",o.angle=Flotr.toRad(s.y.options.titleAngle),o= labelMargin:e.grid.labelMargin+L.plotWidth))}function F(L,K,J,M){return L.plotOf
Flotr.getBestTextAlign(o.angle,o),Flotr.drawText(i,s.y.options.title,this.plotOf fset.top+(K?e.grid.labelMargin:M)+((K&&J)?L.plotHeight:0)}}function l(F,B){var G
fset.left-s.y.maxLabel.width-2*r,this.plotOffset.top+this.plotHeight/2,o)),s.y2. =B.orientation===1,D=B.n===1,z="",A,w,E,C=F.plotOffset;if(!G&&!D){p.save();p.str
options.title&&s.y2.used&&(o.textAlign=s.y2.options.titleAlign||"left",o.textBas okeStyle=B.options.color||e.grid.color;p.beginPath()}if(B.options.showLabels&&(D
eline="middle",o.angle=Flotr.toRad(s.y2.options.titleAngle),o=Flotr.getBestTextA ?true:B.used)){for(q=0;q<B.ticks.length;++q){r=B.ticks[q];if(!r.label||!r.label.
lign(o.angle,o),Flotr.drawText(i,s.y2.options.title,this.plotOffset.left+this.pl length||((G?C.left:C.top)+B.d2p(r.v)<0)||((G?C.left:C.top)+B.d2p(r.v)>(G?F.canva
otWidth+s.y2.maxLabel.width+2*r,this.plotOffset.top+this.plotHeight/2,o))}else{t sWidth:F.canvasHeight))){continue}E=C.top+(G?((D?1:-1)*(F.plotHeight+e.grid.labe
=[],n.title&&t.push('<div style="position:absolute;top:0;left:',this.plotOffset. lMargin)):B.d2p(r.v)-B.maxLabel.height/2);A=G?(C.left+B.d2p(r.v)-o/2):0;z="";if(
left,"px;font-size:1em;font-weight:bold;text-align:center;width:",this.plotWidth q===0){z=" first"}else{if(q===B.ticks.length-1){z=" last"}}z+=G?" flotr-grid-lab
,'px;" class="flotr-title">',n.title,"</div>"),n.subtitle&&t.push('<div style="p el-x":" flotr-grid-label-y";j+=['<div style="position:absolute; text-align:'+(G?
osition:absolute;top:',this.titleHeight,"px;left:",this.plotOffset.left,"px;font "center":"right")+"; ","top:"+E+"px; ",((!G&&!D)?"right:":"left:")+A+"px; ","wid
-size:smaller;text-align:center;width:",this.plotWidth,'px;" class="flotr-subtit th:"+(G?o:((D?C.left:C.right)-e.grid.labelMargin))+"px; ",B.options.color?("colo
le">',n.subtitle,"</div>"),t.push("</div>"),t.push('<div class="flotr-axis-title r:"+B.options.color+"; "):" ",'" class="flotr-grid-label'+z+'">'+r.label+"</div>
" style="font-weight:bold;">'),s.x.options.title&&s.x.used&&t.push('<div style=" "].join(" ");if(!G&&!D){p.moveTo(C.left+F.plotWidth-8,C.top+B.d2p(r.v));p.lineTo
position:absolute;top:',this.plotOffset.top+this.plotHeight+n.grid.labelMargin+s (C.left+F.plotWidth,C.top+B.d2p(r.v))}}}}}})})();(function(){var b=Flotr.DOM,a=F
.x.titleSize.height,"px;left:",this.plotOffset.left,"px;width:",this.plotWidth," lotr._;Flotr.addPlugin("legend",{options:{show:true,noColumns:1,labelFormatter:f
px;text-align:",s.x.options.titleAlign,';" class="flotr-axis-title flotr-axis-ti unction(c){return c},labelBoxBorderColor:"#CCCCCC",labelBoxWidth:14,labelBoxHeig
tle-x1">',s.x.options.title,"</div>"),s.x2.options.title&&s.x2.used&&t.push('<di ht:10,labelBoxMargin:5,container:null,position:"nw",margin:5,backgroundColor:"#F
v style="position:absolute;top:0;left:',this.plotOffset.left,"px;width:",this.pl 0F0F0",backgroundOpacity:0.85},callbacks:{"flotr:afterinit":function(){this.lege
otWidth,"px;text-align:",s.x2.options.titleAlign,';" class="flotr-axis-title flo nd.insertLegend()},"flotr:destroy":function(){var c=this.legend.markup;if(c){thi
tr-axis-title-x2">',s.x2.options.title,"</div>"),s.y.options.title&&s.y.used&&t. s.legend.markup=null;b.remove(c)}}},insertLegend:function(){if(!this.options.leg
push('<div style="position:absolute;top:',this.plotOffset.top+this.plotHeight/2- end.show){return}var r=this.series,t=this.plotOffset,g=this.options,d=g.legend,P
s.y.titleSize.height/2,"px;left:0;text-align:",s.y.options.titleAlign,';" class= =[],e=false,D=this.ctx,L=a.filter(r,function(c){return(c.label&&!c.hide)}).lengt
"flotr-axis-title flotr-axis-title-y1">',s.y.options.title,"</div>"),s.y2.option h,B=d.position,C=d.margin,f=d.backgroundOpacity,F,k,E;if(L){var z=d.labelBoxWidt
s.title&&s.y2.used&&t.push('<div style="position:absolute;top:',this.plotOffset. h,O=d.labelBoxHeight,H=d.labelBoxMargin,K=t.left+C,I=t.top+C,N=0,G={size:g.fontS
top+this.plotHeight/2-s.y.titleSize.height/2,"px;right:0;text-align:",s.y2.optio ize*1.1,color:g.grid.color};for(F=r.length-1;F>-1;--F){if(!r[F].label||r[F].hide
ns.titleAlign,';" class="flotr-axis-title flotr-axis-title-y2">',s.y2.options.ti ){continue}k=d.labelFormatter(r[F].label);N=Math.max(N,this._text.measureText(k,
tle,"</div>"),t=t.join("");var u=e.create("div");e.setStyles({color:n.grid.color G).width)}var w=Math.round(z+H*3+N),h=Math.round(L*(H+O)+H);if(!f&&f!==0){f=0.1}
}),u.className="flotr-titles",e.insert(this.el,u),e.insert(u,t)}}})}(); if(!g.HtmlText&&this.textEnabled&&!d.container){if(B.charAt(0)=="s"){I=t.top+thi
s.plotHeight-(C+h)}if(B.charAt(0)=="c"){I=t.top+(this.plotHeight/2)-(C+(h/2))}if
(B.charAt(1)=="e"){K=t.left+this.plotWidth-(C+w)}E=this.processColor(d.backgroun
dColor,{opacity:f});D.fillStyle=E;D.fillRect(K,I,w,h);D.strokeStyle=d.labelBoxBo
rderColor;D.strokeRect(Flotr.toPixel(K),Flotr.toPixel(I),w,h);var q=K+H;var o=I+
H;for(F=0;F<r.length;F++){if(!r[F].label||r[F].hide){continue}k=d.labelFormatter
(r[F].label);D.fillStyle=r[F].color;D.fillRect(q,o,z-1,O-1);D.strokeStyle=d.labe
lBoxBorderColor;D.lineWidth=1;D.strokeRect(Math.ceil(q)-1.5,Math.ceil(o)-1.5,z+2
,O+2);Flotr.drawText(D,k,q+z+H,o+O,G);o+=O+H}}else{for(F=0;F<r.length;++F){if(!r
[F].label||r[F].hide){continue}if(F%d.noColumns===0){P.push(e?"</tr><tr>":"<tr>"
);e=true}var v=r[F],n=d.labelBoxWidth,j=d.labelBoxHeight;k=d.labelFormatter(v.la
bel);E="background-color:"+((v.bars&&v.bars.show&&v.bars.fillColor&&v.bars.fill)
?v.bars.fillColor:v.color)+";";P.push('<td class="flotr-legend-color-box">','<di
v style="border:1px solid ',d.labelBoxBorderColor,';padding:1px">','<div style="
width:',(n-1),"px;height:",(j-1),"px;border:1px solid ",r[F].color,'">','<div st
yle="width:',n,"px;height:",j,"px;",E,'"></div>',"</div>","</div>","</td>",'<td
class="flotr-legend-label">',k,"</td>")}if(e){P.push("</tr>")}if(P.length>0){var
J='<table style="font-size:smaller;color:'+g.grid.color+'">'+P.join("")+"</tabl
e>";if(d.container){J=b.node(J);this.legend.markup=J;b.insert(d.container,J)}els
e{var l={position:"absolute",zIndex:"2",border:"1px solid "+d.labelBoxBorderColo
r};if(B.charAt(0)=="n"){l.top=(C+t.top)+"px";l.bottom="auto"}else{if(B.charAt(0)
=="c"){l.top=(C+(this.plotHeight-h)/2)+"px";l.bottom="auto"}else{if(B.charAt(0)=
="s"){l.bottom=(C+t.bottom)+"px";l.top="auto"}}}if(B.charAt(1)=="e"){l.right=(C+
t.right)+"px";l.left="auto"}else{if(B.charAt(1)=="w"){l.left=(C+t.left)+"px";l.r
ight="auto"}}var u=b.create("div"),A;u.className="flotr-legend";b.setStyles(u,l)
;b.insert(u,J);b.insert(this.el,u);if(!f){return}var M=d.backgroundColor||g.grid
.backgroundColor||"#ffffff";a.extend(l,b.size(u),{backgroundColor:M,zIndex:"",bo
rder:""});l.width+="px";l.height+="px";u=b.create("div");u.className="flotr-lege
nd-bg";b.setStyles(u,l);b.opacity(u,f);b.insert(u," ");b.insert(this.el,u)}}}}}}
)})();(function(){function b(e){if(this.options.spreadsheet.tickFormatter){retur
n this.options.spreadsheet.tickFormatter(e)}else{var d=a.find(this.axes.x.ticks,
function(f){return f.v==e});if(d){return d.label}return e}}var c=Flotr.DOM,a=Flo
tr._;Flotr.addPlugin("spreadsheet",{options:{show:false,tabGraphLabel:"Graph",ta
bDataLabel:"Data",toolbarDownload:"Download CSV",toolbarSelectAll:"Select all",c
svFileSeparator:",",decimalSeparator:".",tickFormatter:null,initialTab:"graph"},
callbacks:{"flotr:afterconstruct":function(){if(!this.options.spreadsheet.show){
return}var e=this.spreadsheet,d=c.node('<div class="flotr-tabs-group" style="pos
ition:absolute;left:0px;width:'+this.canvasWidth+'px"></div>'),g=c.node('<div st
yle="float:left" class="flotr-tab selected">'+this.options.spreadsheet.tabGraphL
abel+"</div>"),f=c.node('<div style="float:left" class="flotr-tab">'+this.option
s.spreadsheet.tabDataLabel+"</div>"),h;e.tabsContainer=d;e.tabs={graph:g,data:f}
;c.insert(d,g);c.insert(d,f);c.insert(this.el,d);h=c.size(f).height+2;this.plotO
ffset.bottom+=h;c.setStyles(d,{top:this.canvasHeight-h+"px"});this.observe(g,"cl
ick",function(){e.showTab("graph")}).observe(f,"click",function(){e.showTab("dat
a")});if(this.options.spreadsheet.initialTab!=="graph"){e.showTab(this.options.s
preadsheet.initialTab)}}},loadDataGrid:function(){if(this.seriesData){return thi
s.seriesData}var d=this.series,e={};a.each(d,function(g,f){a.each(g.data,functio
n(j){var h=j[0],m=j[1],l=e[h];if(l){l[f+1]=m}else{var k=[];k[0]=h;k[f+1]=m;e[h]=
k}})});this.seriesData=a.sortBy(e,function(g,f){return parseInt(f,10)});return t
his.seriesData},constructDataGrid:function(){if(this.spreadsheet.datagrid){retur
n this.spreadsheet.datagrid}var n=this.series,k=this.spreadsheet.loadDataGrid(),
e=["<colgroup><col />"],h,g,l;var f=['<table class="flotr-datagrid"><tr class="f
irst-row">'];f.push("<th>&nbsp;</th>");a.each(n,function(p,o){f.push('<th scope=
"col">'+(p.label||String.fromCharCode(65+o))+"</th>");e.push("<col />")});f.push
("</tr>");a.each(k,function(o){f.push("<tr>");a.times(n.length+1,function(r){var
p="td",t=o[r],s=(!a.isUndefined(t)?Math.round(t*100000)/100000:"");if(r===0){p=
"th";var q=b.call(this,s);if(q){s=q}}f.push("<"+p+(p=="th"?' scope="row"':"")+">
"+s+"</"+p+">")},this);f.push("</tr>")},this);e.push("</colgroup>");l=c.node(f.j
oin(""));h=c.node('<button type="button" class="flotr-datagrid-toolbar-button">'
+this.options.spreadsheet.toolbarDownload+"</button>");g=c.node('<button type="b
utton" class="flotr-datagrid-toolbar-button">'+this.options.spreadsheet.toolbarS
electAll+"</button>");this.observe(h,"click",a.bind(this.spreadsheet.downloadCSV
,this)).observe(g,"click",a.bind(this.spreadsheet.selectAllData,this));var j=c.n
ode('<div class="flotr-datagrid-toolbar"></div>');c.insert(j,h);c.insert(j,g);va
r m=this.canvasHeight-c.size(this.spreadsheet.tabsContainer).height-2,d=c.node('
<div class="flotr-datagrid-container" style="position:absolute;left:0px;top:0px;
width:'+this.canvasWidth+"px;height:"+m+'px;overflow:auto;z-index:10"></div>');c
.insert(d,j);c.insert(d,l);c.insert(this.el,d);this.spreadsheet.datagrid=l;this.
spreadsheet.container=d;return l},showTab:function(d){if(this.spreadsheet.active
Tab===d){return}switch(d){case"graph":c.hide(this.spreadsheet.container);c.remov
eClass(this.spreadsheet.tabs.data,"selected");c.addClass(this.spreadsheet.tabs.g
raph,"selected");break;case"data":if(!this.spreadsheet.datagrid){this.spreadshee
t.constructDataGrid()}c.show(this.spreadsheet.container);c.addClass(this.spreads
heet.tabs.data,"selected");c.removeClass(this.spreadsheet.tabs.graph,"selected")
;break;default:throw"Illegal tab name: "+d}this.spreadsheet.activeTab=d},selectA
llData:function(){if(this.spreadsheet.tabs){var e,d,h,g,f=this.spreadsheet.const
ructDataGrid();this.spreadsheet.showTab("data");setTimeout(function(){if((h=f.ow
nerDocument)&&(g=h.defaultView)&&g.getSelection&&h.createRange&&(e=window.getSel
ection())&&e.removeAllRanges){d=h.createRange();d.selectNode(f);e.removeAllRange
s();e.addRange(d)}else{if(document.body&&document.body.createTextRange&&(d=docum
ent.body.createTextRange())){d.moveToElementText(f);d.select()}}},0);return true
}else{return false}},downloadCSV:function(){var d="",f=this.series,e=this.option
s,h=this.spreadsheet.loadDataGrid(),g=encodeURIComponent(e.spreadsheet.csvFileSe
parator);if(e.spreadsheet.decimalSeparator===e.spreadsheet.csvFileSeparator){thr
ow"The decimal separator is the same as the column separator ("+e.spreadsheet.de
cimalSeparator+")"}a.each(f,function(k,j){d+=g+'"'+(k.label||String.fromCharCode
(65+j)).replace(/\"/g,'\\"')+'"'});d+="%0D%0A";d+=a.reduce(h,function(k,l){var m
=b.call(this,l[0])||"";m='"'+(m+"").replace(/\"/g,'\\"')+'"';var j=l.slice(1).jo
in(g);if(e.spreadsheet.decimalSeparator!=="."){j=j.replace(/\./g,e.spreadsheet.d
ecimalSeparator)}return k+m+g+j+"%0D%0A"},"",this);if(Flotr.isIE&&Flotr.isIE<9){
d=d.replace(new RegExp(g,"g"),decodeURIComponent(g)).replace(/%0A/g,"\n").replac
e(/%0D/g,"\r");window.open().document.write(d)}else{window.open("data:text/csv,"
+d)}}})})();(function(){var a=Flotr.DOM;Flotr.addPlugin("titles",{callbacks:{"fl
otr:afterdraw":function(){this.titles.drawTitles()}},drawTitles:function(){var e
,d=this.options,g=d.grid.labelMargin,c=this.ctx,b=this.axes;if(!d.HtmlText&&this
.textEnabled){var f={size:d.fontSize,color:d.grid.color,textAlign:"center"};if(d
.subtitle){Flotr.drawText(c,d.subtitle,this.plotOffset.left+this.plotWidth/2,thi
s.titleHeight+this.subtitleHeight-2,f)}f.weight=1.5;f.size*=1.5;if(d.title){Flot
r.drawText(c,d.title,this.plotOffset.left+this.plotWidth/2,this.titleHeight-2,f)
}f.weight=1.8;f.size*=0.8;if(b.x.options.title&&b.x.used){f.textAlign=b.x.option
s.titleAlign||"center";f.textBaseline="top";f.angle=Flotr.toRad(b.x.options.titl
eAngle);f=Flotr.getBestTextAlign(f.angle,f);Flotr.drawText(c,b.x.options.title,t
his.plotOffset.left+this.plotWidth/2,this.plotOffset.top+b.x.maxLabel.height+thi
s.plotHeight+2*g,f)}if(b.x2.options.title&&b.x2.used){f.textAlign=b.x2.options.t
itleAlign||"center";f.textBaseline="bottom";f.angle=Flotr.toRad(b.x2.options.tit
leAngle);f=Flotr.getBestTextAlign(f.angle,f);Flotr.drawText(c,b.x2.options.title
,this.plotOffset.left+this.plotWidth/2,this.plotOffset.top-b.x2.maxLabel.height-
2*g,f)}if(b.y.options.title&&b.y.used){f.textAlign=b.y.options.titleAlign||"righ
t";f.textBaseline="middle";f.angle=Flotr.toRad(b.y.options.titleAngle);f=Flotr.g
etBestTextAlign(f.angle,f);Flotr.drawText(c,b.y.options.title,this.plotOffset.le
ft-b.y.maxLabel.width-2*g,this.plotOffset.top+this.plotHeight/2,f)}if(b.y2.optio
ns.title&&b.y2.used){f.textAlign=b.y2.options.titleAlign||"left";f.textBaseline=
"middle";f.angle=Flotr.toRad(b.y2.options.titleAngle);f=Flotr.getBestTextAlign(f
.angle,f);Flotr.drawText(c,b.y2.options.title,this.plotOffset.left+this.plotWidt
h+b.y2.maxLabel.width+2*g,this.plotOffset.top+this.plotHeight/2,f)}}else{e=[];if
(d.title){e.push('<div style="position:absolute;top:0;left:',this.plotOffset.lef
t,"px;font-size:1em;font-weight:bold;text-align:center;width:",this.plotWidth,'p
x;" class="flotr-title">',d.title,"</div>")}if(d.subtitle){e.push('<div style="p
osition:absolute;top:',this.titleHeight,"px;left:",this.plotOffset.left,"px;font
-size:smaller;text-align:center;width:",this.plotWidth,'px;" class="flotr-subtit
le">',d.subtitle,"</div>")}e.push("</div>");e.push('<div class="flotr-axis-title
" style="font-weight:bold;">');if(b.x.options.title&&b.x.used){e.push('<div styl
e="position:absolute;top:',(this.plotOffset.top+this.plotHeight+d.grid.labelMarg
in+b.x.titleSize.height),"px;left:",this.plotOffset.left,"px;width:",this.plotWi
dth,"px;text-align:",b.x.options.titleAlign,';" class="flotr-axis-title flotr-ax
is-title-x1">',b.x.options.title,"</div>")}if(b.x2.options.title&&b.x2.used){e.p
ush('<div style="position:absolute;top:0;left:',this.plotOffset.left,"px;width:"
,this.plotWidth,"px;text-align:",b.x2.options.titleAlign,';" class="flotr-axis-t
itle flotr-axis-title-x2">',b.x2.options.title,"</div>")}if(b.y.options.title&&b
.y.used){e.push('<div style="position:absolute;top:',(this.plotOffset.top+this.p
lotHeight/2-b.y.titleSize.height/2),"px;left:0;text-align:",b.y.options.titleAli
gn,';" class="flotr-axis-title flotr-axis-title-y1">',b.y.options.title,"</div>"
)}if(b.y2.options.title&&b.y2.used){e.push('<div style="position:absolute;top:',
(this.plotOffset.top+this.plotHeight/2-b.y.titleSize.height/2),"px;right:0;text-
align:",b.y2.options.titleAlign,';" class="flotr-axis-title flotr-axis-title-y2"
>',b.y2.options.title,"</div>")}e=e.join("");var h=a.create("div");a.setStyles({
color:d.grid.color});h.className="flotr-titles";a.insert(this.el,h);a.insert(h,e
)}}})})();
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS