/*
 FusionCharts JavaScript Library
 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>
 FusionCharts JavaScript Library
 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>

 @version 3.7.0

 @attributions (infers respective third-party copyrights)
 Raphael 2.1.0 (modified as 'Red Raphael') <http://raphaeljs.com/license.html>
 JSON v2 <http://www.JSON.org/js.html>
 Firebug Lite 1.3.0 <http://getfirebug.com/firebuglite>
*/
(function(){if(!window.FusionCharts||!window.FusionCharts.version){var e=window,k=e.document,u=e.navigator,q={window:e},D=q.modules={},b=q.interpreters={},N=Object.prototype.toString,J=/msie/i.test(u.userAgent)&&!e.opera,c=/loaded|complete/,p=!1,a=function(){var a=q.ready;q.ready=!0;q.raiseEvent&&(q.readyNotified=!0,q.raiseEvent("ready",{version:q.core.version,now:!a},q.core));q.readyNow=!a},t=function(a,b){var c,d;if(b instanceof Array)for(c=0;c<b.length;c+=1)"object"!==typeof b[c]?a[c]=b[c]:("object"!==
typeof a[c]&&(a[c]=b[c]instanceof Array?[]:{}),t(a[c],b[c]));else for(c in b)"object"===typeof b[c]?(d=N.call(b[c]),"[object Object]"===d?("object"!==typeof a[c]&&(a[c]={}),t(a[c],b[c])):"[object Array]"===d?(a[c]instanceof Array||(a[c]=[]),t(a[c],b[c])):a[c]=b[c]):a[c]=b[c];return a};q.extend=function(a,b,c,d){var h;c&&a.prototype&&(a=a.prototype);if(!0===d)t(a,b);else for(h in b)a[h]=b[h];return a};q.uniqueId=function(){return"chartobject-"+(q.uniqueId.lastId+=1)};q.uniqueId.lastId=0;q.policies=
{options:{chartTypeSourcePath:["typeSourcePath",""],product:["product","v3"],insertMode:["insertMode","replace"],safeMode:["safeMode",!0],overlayButton:["overlayButton",void 0],containerBackgroundColor:["containerBackgroundColor","#ffffff"],containerBackgroundOpacity:["containerBackgroundOpacity",1],containerClassName:["containerClassName","fusioncharts-container"],chartType:["type",void 0],baseChartMessageFont:["baseChartMessageFont","Verdana,sans"],baseChartMessageFontSize:["baseChartMessageFontSize",
"10"],baseChartMessageColor:["baseChartMessageColor","#666666"],baseChartMessageImageHAlign:["baseChartMessageImageHAlign","middle"],baseChartMessageImageVAlign:["baseChartMessageImageVAlign","middle"],baseChartMessageImageAlpha:["baseChartMessageImageAlpha",100],baseChartMessageImageScale:["baseChartMessageImageScale",100],dataLoadStartMessage:["dataLoadStartMessage","Retrieving data. Please wait."],dataLoadErrorMessage:["dataLoadErrorMessage","Error in loading data."],dataInvalidMessage:["dataInvalidMessage",
"Invalid data."],dataEmptyMessage:["dataEmptyMessage","No data to display."],typeNotSupportedMessage:["typeNotSupportedMessage","Chart type not supported."],loadMessage:["loadMessage","Loading chart. Please wait."],renderErrorMessage:["renderErrorMessage","Unable to render chart."]},attributes:{lang:["lang","EN"],id:["id",void 0]},width:["width","400"],height:["height","300"],src:["swfUrl",""]};b.stat="swfUrl id width height debugMode registerWithJS backgroundColor scaleMode lang detectFlashVersion autoInstallRedirect".split(" ");
q.parsePolicies=function(a,b,c){var d,h,l;for(h in b)if(q.policies[h]instanceof Array)l=c[b[h][0]],a[h]=void 0===l?b[h][1]:l;else for(d in"object"!==typeof a[h]&&(a[h]={}),b[h])l=c[b[h][d][0]],a[h][d]=void 0===l?b[h][d][1]:l};q.parseCommands=function(a,c,g){var d,h;"string"===typeof c&&(c=b[c]||[]);d=0;for(h=c.length;d<h;d++)a[c[d]]=g[d];return a};q.registrars={module:function(){return q.core.apply(q.core,arguments)}};q.core=function(a){if(!(this instanceof q.core)){if(1===arguments.length&&a instanceof
Array&&"private"===a[0]){if(D[a[1]])return;D[a[1]]={};a[3]instanceof Array&&(q.core.version[a[1]]=a[3]);return"function"===typeof a[2]?a[2].call(q,D[a[1]]):q}if(1===arguments.length&&"string"===typeof a)return q.core.items[a];q.raiseError&&q.raiseError(this,"25081840","run","",new SyntaxError('Use the "new" keyword while creating a new FusionCharts object'))}var c={};this.__state={};1===arguments.length&&"object"===typeof arguments[0]?c=arguments[0]:q.parseCommands(c,b.stat,arguments);1<arguments.length&&
"object"===typeof arguments[arguments.length-1]&&(delete c[b.stat[arguments.length-1]],q.extend(c,arguments[arguments.length-1]));this.id="undefined"===typeof c.id?this.id=q.uniqueId():c.id;this.args=c;q.core.items[this.id]instanceof q.core&&q.raiseWarning(this,"06091847","param","",Error('A FusionChart oject with the specified id "'+this.id+'" already exists. Renaming it to '+(this.id=q.uniqueId())));q.parsePolicies(this,q.policies,c);this.attributes.id=this.id;this.resizeTo&&this.resizeTo(c.width,
c.height,!0);this.chartType&&this.chartType(c.type||c.swfUrl,!0);q.raiseEvent("beforeInitialize",c,this);q.core.items[this.id]=this;q.core.defaultOptions=q.core.options;q.raiseEvent("initialized",c,this);return this};q.core.prototype={};q.core.prototype.constructor=q.core;q.extend(q.core,{id:"FusionCharts",version:["3","7","0"],items:{},options:{},getObjectReference:function(a){return q.core.items[a].ref},register:function(a){return q.registrars[a=a&&a.toString&&a.toString().toLowerCase()]&&q.registrars[a].apply(q.core,
Array.prototype.slice.call(arguments,1))}});e.FusionCharts=q.core;e.FusionMaps&&e.FusionMaps.legacy&&(q.core(["private","modules.core.geo",e.FusionMaps.legacy,e.FusionMaps.version]),p=!0);c.test(k.readyState)||k.loaded?(q.ready=!0,setTimeout(a,1)):function(){function b(){arguments.callee.done||(arguments.callee.done=!0,g&&clearTimeout(g),p||(e.FusionMaps&&e.FusionMaps.legacy&&q.core(["private","modules.core.geo",e.FusionMaps.legacy,e.FusionMaps.version]),e.FusionMaps=q.core),setTimeout(a,1))}function F(){c.test(k.readyState)?
b():g=setTimeout(F,10)}var g,d;k.addEventListener?k.addEventListener("DOMContentLoaded",b,!1):k.attachEvent&&e.attachEvent("onLoad",b);if(J)try{"https:"===e.location.protocol?k.write('<script id="__ie_onload_fusioncharts" defer="defer" src="//:">\x3c/script>'):k.write('<script id="__ie_onload_fusioncharts" defer="defer" src="javascript:void(0)">\x3c/script>'),d=k.getElementById("__ie_onload_fusioncharts"),d.onreadystatechange=function(){"complete"==this.readyState&&b()}}catch(h){}/WebKit/i.test(u.userAgent)&&
(g=setTimeout(F,10));e.onload=function(a){return function(){b();a&&a.call&&a.call(e)}}(e.onload)}();e.FusionMaps=q.core}})();
FusionCharts.register("module",["private","modules.mantle.errormanager",function(){var e=this,k=e.window,u={type:"TypeException",range:"ValueRangeException",impl:"NotImplementedException",param:"ParameterException",run:"RuntimeException",comp:"DesignTimeError",undefined:"UnspecifiedException"},q=function(b,q,J,c,p,a){var t="#"+q+" "+(b?b.id:"unknown-source")+c+" "+a+" >> ";p instanceof Error?(p.name=u[J],p.module="FusionCharts"+c,p.level=a,p.message=t+p.message,t=p.message,k.setTimeout(function(){throw p;
},0)):t+=p;q={id:q,nature:u[J],source:"FusionCharts"+c,message:t};e.raiseEvent(a,q,b);if("function"===typeof k["FC_"+a])k["FC_"+a](q)},D;e.raiseError=function(b,e,k,c,p){q(b,e,k,c,p,"Error")};e.raiseWarning=function(b,e,k,c,p){q(b,e,k,c,p,"Warning")};D={outputHelpers:{text:function(b,e){D.outputTo("#"+b.eventId+" ["+(b.sender.id||b.sender).toString()+'] fired "'+b.eventType+'" event. '+("error"===b.eventType||"warning"===b.eventType?e.message:""))},event:function(b,e){this.outputTo(b,e)},verbose:function(b,
e){D.outputTo(b.eventId,b.sender.id,b.eventType,e)}},outputHandler:function(b,k){"function"!==typeof D.outputTo?e.core["debugger"].outputFailed=!0:(e.core["debugger"].outputFailed=!1,D.currentOutputHelper(b,k))},currentOutputHelper:void 0,outputTo:void 0,enabled:!1};D.currentOutputHelper=D.outputHelpers.text;e.extend(e.core,{"debugger":{syncStateWithCharts:!0,outputFormat:function(b){return b&&"function"===typeof b.toLowerCase&&"function"===typeof D.outputHelpers[b=b.toLowerCase()]?(D.currentOutputHelper=
D.outputHelpers[b],!0):!1},outputTo:function(b){"function"===typeof b?D.outputTo=b:null===b&&(e.core["debugger"].enable(!1),delete D.outputTo)},enable:function(b,k,q){var c;"object"===typeof b&&1===arguments.length&&(c=b,b=c.state,k=c.outputTo,q=c.outputFormat);"function"===typeof b&&("string"!==typeof k||2!==arguments.length&&!c||(q=k),k=b,b=!0);if("boolean"===typeof b&&b!==D.enabled)e.core[(D.enabled=b)?"addEventListener":"removeEventListener"]("*",D.outputHandler);"function"===typeof k&&(D.outputTo=
k);e.core["debugger"].outputFormat(q);return D.enabled},enableFirebugLite:function(){var b;k.console&&k.console.firebug?e.core["debugger"].enable(k.console.log,"verbose"):((b=k.document.getElementsByTagName("html"))&&b[0].setAttribute("debug","true"),e.loadScript("https://getfirebug.com/firebug-lite.js#overrideConsole=false,startOpened=true",function(){e.core["debugger"].enable(k.console.log,"verbose")},"{ startOpened: true }",!0,!0))}},debugMode:{enabled:function(){k.setTimeout(function(){throw Error("Deprecated! Please use FusionCharts.debugger.enable instead.");
},0);return e.core["debugger"].enable.apply(e.core["debugger"],arguments)}}},!1)}]);
FusionCharts.register("module",["private","modules.mantle.eventmanager",function(){var e=this,k=e.window,u=e.core,q=k.Object.prototype.toString,D=q.call([]),b=function(a,b,c,g){try{a[0].call(b,c,g||{})}catch(d){setTimeout(function(){throw d;},0)}},N=function(a,c,F){if(a instanceof Array)for(var g=0,d;g<a.length;g+=1){if(a[g][1]===c.sender||void 0===a[g][1])d=a[g][1]===c.sender?c.sender:e.core,b(a[g],d,c,F),!0===c.detached&&(a.splice(g,1),--g,c.detached=!1);if(!0===c.cancelled)break}},J={unpropagator:function(){return!1===
(this.cancelled=!0)},detacher:function(){return!1===(this.detached=!0)},undefaulter:function(){return!1===(this.prevented=!0)},listeners:{},lastEventId:0,addListener:function(a,b,c){var g,d;if(q.call(a)===D){g=[];for(d=0;d<a.length;d+=1)g.push(J.addListener(a[d],b,c));return g}if("string"!==typeof a)e.raiseError(c||e.core,"03091549","param","::EventTarget.addListener",Error("Unspecified Event Type"));else if("function"!==typeof b)e.raiseError(c||e.core,"03091550","param","::EventTarget.addListener",
Error("Invalid Event Listener"));else return a=a.toLowerCase(),J.listeners[a]instanceof Array||(J.listeners[a]=[]),J.listeners[a].push([b,c]),b},removeListener:function(a,b,c){var g;if("function"!==typeof b)e.raiseError(c||e.core,"03091560","param","::EventTarget.removeListener",Error("Invalid Event Listener"));else if(a instanceof Array)for(g=0;g<a.length;g+=1)J.removeListener(a[g],b,c);else if("string"!==typeof a)e.raiseError(c||e.core,"03091559","param","::EventTarget.removeListener",Error("Unspecified Event Type"));
else if(a=a.toLowerCase(),a=J.listeners[a],a instanceof Array)for(g=0;g<a.length;g+=1)a[g][0]===b&&a[g][1]===c&&(a.splice(g,1),--g)},triggerEvent:function(a,b,c,g,d,h){if("string"!==typeof a)e.raiseError(b,"03091602","param","::EventTarget.dispatchEvent",Error("Invalid Event Type"));else{a=a.toLowerCase();var l={eventType:a,eventId:J.lastEventId+=1,sender:b||Error("Orphan Event"),cancelled:!1,stopPropagation:this.unpropagator,prevented:!1,preventDefault:this.undefaulter,detached:!1,detachHandler:this.detacher};
N(J.listeners[a],l,c);N(J.listeners["*"],l,c);switch(l.prevented){case !0:if("function"===typeof h)try{h.call(g||b||k,l,c||{})}catch(L){setTimeout(function(){throw L;},0)}break;default:if("function"===typeof d)try{d.call(g||b||k,l,c||{})}catch(p){setTimeout(function(){throw p;},0)}}return!0}}},c=e.raiseEvent=function(a,b,c,g,d,h){return J.triggerEvent(a,c,b,g,d,h)},p=e.legacyEventList={},a={};e.disposeEvents=function(a){var b,c;for(b in J.listeners)for(c=0;c<J.listeners[b].length;c+=1)J.listeners[b][c][1]===
a&&J.listeners[b].splice(c,1)};e.raiseEventWithLegacy=function(a,b,e,g,d,h,l){var L=p[a];c(a,b,e,d,h,l);L&&"function"===typeof k[L]&&setTimeout(function(){k[L].apply(d||k,g)},0)};e.raiseEventGroup=function(b,e,F,g,d,h,l){var L=g.id,p=b+L;a[p]?(clearTimeout(a[p]),delete a[p]):L&&p?a[p]=setTimeout(function(){c(e,F,g,d,h,l);delete a[p]},0):c(e,F,g,d,h,l)};e.addEventListener=function(a,b){return J.addListener(a,b)};e.removeEventListener=function(a,b){return J.removeListener(a,b)};e.extend(u,{addEventListener:function(a,
b){return J.addListener(a,b)},removeEventListener:function(a,b){return J.removeListener(a,b)},ready:function(a,b,c){e.ready?(u.ready=function(a,d){"function"===typeof a&&setTimeout(function(){a.call(d||u,b||u)},0)},u.ready(a,c)):"function"===typeof a&&u.addEventListener("ready",function(){u.ready(a,b,c)});return this}});u.on=u.addEventListener;e.extend(u.prototype,{addEventListener:function(a,b){return J.addListener(a,b,this)},removeEventListener:function(a,b){return J.removeListener(a,b,this)}});
u.prototype.on=u.prototype.addEventListener;e.policies.options.events=["events",{}];e.addEventListener("beforeInitialize",function(a){a=a.sender;var b=a.options.events,c;if(b)for(c in b)"function"===typeof b[c]&&a.addEventListener(c,b[c])});e.ready&&!e.readyNotified&&(e.readyNotified=!0,e.raiseEvent("ready",{version:e.core.version,now:e.readyNow},e.core))}]);
FusionCharts.register("module",["private","modules.mantle.ajax",function(){var e=this,k=e.window,u=parseFloat(k.navigator.appVersion.split("MSIE")[1]),q=5.5<=u&&7>=u?!0:!1,D="file:"===k.location.protocol,b=k.ActiveXObject,N=(!b||!D)&&k.XMLHttpRequest,J={objects:0,xhr:0,requests:0,success:0,failure:0,idle:0},c=function(){var e;if(N)return c=function(){J.xhr++;return new N},c();try{e=new b("Msxml2.XMLHTTP"),c=function(){J.xhr++;return new b("Msxml2.XMLHTTP")}}catch(a){try{e=new b("Microsoft.XMLHTTP"),
c=function(){J.xhr++;return new b("Microsoft.XMLHTTP")}}catch(t){e=!1}}return e};e.core.ajax={stats:function(b){return b?J[b]:e.extend({},J)},headers:{"If-Modified-Since":"Sat, 29 Oct 1994 19:43:31 GMT","X-Requested-With":"XMLHttpRequest","X-Requested-By":"FusionCharts",Accept:"text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}};u=e.ajax=function(b,a){this.onSuccess=b;this.onError=a;this.open=!1;J.objects++;J.idle++};e.extend(u.prototype,{headers:e.core.ajax.headers,
transact:function(b,a,t,U){var F=this,g=F.xmlhttp,d=F.headers,h=F.onError,l=F.onSuccess;b="POST"===b;var L,P;if(!g||q)g=c(),F.xmlhttp=g;g.onreadystatechange=function(){try{4===g.readyState&&(!g.status&&D||200<=g.status&&300>g.status||304===g.status||1223===g.status||0===g.status?(l&&l(g.responseText,F,U,a),J.success++):h&&(h(Error("XmlHttprequest Error"),F,U,a),J.failure++),J.idle--,F.open=!1)}catch(b){h&&h(b,F,U,a),k.FC_DEV_ENVIRONMENT&&setTimeout(function(){throw b;},0),J.failure++}};try{g.open(b?
"POST":"GET",a,!0);g.overrideMimeType&&g.overrideMimeType("text/plain");if(b)if("string"===typeof t)L=t;else{L=[];for(P in t)L.push(P+"="+(t[P]+"").replace(/\=/g,"%3D").replace(/\&/g,"%26"));L=L.join("&")}else L=null;for(P in d)g.setRequestHeader(P,d[P]);g.send(L);J.requests++;J.idle++;F.open=!0}catch(n){e.raiseError(e.core,"1110111515A","run","XmlHttprequest Error",n.message)}return g},get:function(b,a){return this.transact("GET",b,void 0,a)},post:function(b,a,c){return this.transact("POST",b,a,
c)},abort:function(){var b=this.xmlhttp;this.open=!1;return b&&"function"===typeof b.abort&&b.readyState&&0!==b.readyState&&b.abort()},dispose:function(){this.open&&this.abort();delete this.onError;delete this.onSuccess;delete this.xmlhttp;delete this.open;J.objects--;return null}})}]);
FusionCharts.register("module",["private","modules.mantle.runtime;1.1",function(){var e=this,k=e.window,u=/(^|[\/\\])(fusioncharts\.js)([\?#].*)?$/ig,q=/[\\\"<>;&]/,D=/^[^\S]*?(sf|f|ht)(tp|tps):\/\//i,b={},N={},J={},c={},p=e.purgeDOM=function(a){var b=a.attributes,c,d;if(b)for(c=b.length-1;0<=c;--c)d=b[c].name,"function"===typeof a[d]&&(a[d]=null);if(b=a.childNodes)for(b=b.length,c=0;c<b;c+=1)p(a.childNodes[c])},a=function(a,b,c){var d,h;for(d in a)if(a[d]instanceof Array)b[a[d][0]]=c[d];else for(h in a[d])b[a[d][h][0]]=
c[d][h]},t=/^(FusionCharts|FusionWidgets|FusionMaps)/;e.getScriptBaseUri=function(a){var b=k.document.getElementsByTagName("script"),c=b.length,d,h;for(h=0;h<c;h+=1)if(d=b[h].getAttribute("src"),void 0!==d&&null!==d&&null!==d.match(a))return d.replace(a,"$1")};e.core.options.scriptBaseUri=function(){var a=e.getScriptBaseUri(u);return void 0===a?(e.raiseError(FusionCharts,"1603111624","run",">GenericRuntime~scriptBaseUri","Unable to locate FusionCharts script source location (URL)."),""):a}();e.isXSSSafe=
function(a,b){return b&&null!==D.exec(a)?!1:null===q.exec(a)};e.xssEncode=function(a){return null===a||void 0===a||"function"!==typeof a.toString?"":a=a.toString().replace(/&/g,"&amp;").replace(/\'/g,"&#39;").replace(/\"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};e.loadScript=function(a,F,g,d,h){if(!a)return!1;var l=F&&F.success||F,L=F&&F.failure,p,n={type:"script",success:!1},C=function(){c[p]=clearTimeout(c[p]);n.success?l&&l(a,p):L&&L(a,p);e.raiseEvent("externalresourceload",n,e.core)};
h=h?"":e.core.options.scriptBaseUri;p=h+a;e.isXSSSafe(p,!1)||(p="function"===typeof k.encodeURIComponent?k.encodeURIComponent(p):k.escape(p));n.path=h;n.src=p;n.file=a;if(!0===J[p]&&d)return n.success=!0,n.notReloaded=!0,"function"===typeof F&&(F(),e.raiseEvent("externalresourceload",n,e.core)),!0;if(b[p]&&d)return!1;b[p]=!0;N[p]&&N[p].parentNode&&N[p].parentNode.removeChild(N[p]);F=N[p]=k.document.createElement("script");F.type="text/javascript";F.src=p;g&&(F["\v"==="v"?"text":"innerHTML"]=g);"function"===
typeof l&&(J[p]=!1,c[p]=clearTimeout(c[p]),F.onload=function(){J[p]=!0;n.success=!0;C()},F.onerror=function(){J[p]=!1;b[p]=!1;C()},F.onreadystatechange=function(){if("complete"===this.readyState||"loaded"===this.readyState)J[p]=!0,n.success=!0,C()});k.document.getElementsByTagName("head")[0].appendChild(F);"function"===typeof L&&(c[p]=setTimeout(function(){J[p]||C()},e.core.options.html5ResourceLoadTimeout||15E3));return!0};e.capitalizeString=function(a,b){return a?a.replace(b?/(^|\s)([a-z])/g:/(^|\s)([a-z])/,
function(a,b,c){return b+c.toUpperCase()}):a};e.extend(e.core,{clone:function(b,c){var g=typeof b,d,h=e.extend({},this.args,!1,!1);a(e.policies,h,this);a(e.renderer.getRendererPolicy(this.options.renderer),h,this);delete h.id;delete h.animate;delete h.stallLoad;d=h.link;h=e.extend({},h,!1,!1);h.link=d;switch(g){case "object":e.extend(h,b);break;case "boolean":c=b}return c?h:new e.core(h)},isActive:function(){if(!this.ref||k.document.getElementById(this.id)!==this.ref)return!1;try{return t.test(this.ref.signature())}catch(a){return!1}},
chartType:function(a,b){var c=this.src,d=!0===b,h=this.options,l;"string"===typeof a&&(b="object"===typeof b?b:{},c=a.replace(/[\?\#][\s\S]*$/g,""),l=null!==c.match(/\.swf\s*?$/ig),c=c.replace(/\.swf\s*?$/ig,""),h.chartType=c.replace(/^[\s\S]*\//ig,"").replace(/^fcmap_/i,""),h.chartTypeSourcePath=-1===c.indexOf("/")?b.chartTypeSourcePath||this.options.chartTypeSourcePath||e.core.options.chartTypeSourcePath||"":c.replace(/[^\/]*?$/ig,""),this.src=((e.core.options.scriptBaseUri||"")+(h.chartTypeSourcePath||
e.core.options.chartTypeSourcePath||"")).replace(/\/\s*$/g,"")+"/"+h.chartType.replace(/\.swf\s*?$/ig,"")+".swf",l&&(e.raiseWarning(this,"08101320181","comp","FusionCharts#chartType",'Chart type has ".swf" in alias and as such has been deprecated. Please use chart type alias.'),h.chartTypeSourcePath=e.core.options.chartTypeSourcePath||""),void 0!==b.dataSource&&null!==b.dataSource?this.setChartData(b.dataSource,b.dataFormat,b.dataConfiguration):this.isActive()&&!d&&this.render());return(h.chartType||
"").toLowerCase()}},!0);k.getChartFromId=function(a){e.raiseWarning(this,"11133001041","comp","GenericRuntime~getObjectFromId()",'Use of deprecated getChartFromId() or getMapFromId(). Replace with "FusionCharts()" or FusionCharts.items[].');return e.core.items[a]instanceof e.core?e.core.items[a].ref:k.swfobject&&k.swfobject.getObjectById(a)};k.getMapFromId=k.getChartFromId}]);
FusionCharts.register("module",["private","api.printmanager",function(){var e=this;e.extend(e.core,{printManager:{configure:function(){e.raiseWarning(e.core,"28141714","impl",".printManager.configure","PrintManager is deprecated")},isReady:function(){e.raiseWarning(e.core,"28141714","impl",".printManager.isReady","PrintManager is deprecated");return!1},enabled:function(){e.raiseWarning(e.core,"28141714","impl",".printManager.enabled","PrintManager is deprecated");return!1},managedPrint:function(){e.raiseWarning(e.core,
"28141714","impl",".printManager.managedPrint","PrintManager is deprecated")}}},!1)}]);
FusionCharts.register("module",["private","modules.interface.renderer",function(){var e=this,k=e.window,u=k.document,q=function(){e.raiseError(this,"25081845","run","::RendererManager",Error("No active renderer"))},D=e.FusionChartsDOMInsertModes={REPLACE:"replace",APPEND:"append",PREPEND:"prepend"},b={undefined:{render:q,remove:q,update:q,resize:q,config:q,policies:{}}},N={},J=function(a){return function(){var b=this.ref;if(void 0===b||null===b||"function"!==typeof b[a])e.raiseError(this,"25081617",
"run","#"+a+"()","ExternalInterface call failed. Check whether chart has been rendered.");else return b[a].apply(b,arguments)}},c=function(a,b){return"function"===typeof a[b]?function(){return a[b].apply(a,arguments)}:a[b]},p=function(a,b){var c=u.getElementById(a),d=b.id||b.getAttribute("id"),h,l;if(null===c)return!1;if(a===d)return!0;d=b.getElementsByTagName("*");h=0;for(l=d.length;h<l;h++)if(d[h]===c)return!1;return!0},a=/[^\%\d]*$/ig,t;e.policies.options.containerElementId=["renderAt",void 0];
e.policies.options.renderer=["renderer",void 0];e.policies.options.containerElementType=["containerElementType",void 0];e.normalizeCSSDimension=function(a,b,c){a=void 0===a?c.offsetWidth||parseFloat(c.style.width):a;b=void 0===b?c.offsetHeight||parseFloat(c.style.height):b;var d={},h=c.style,l;h.width=a=a.toString?a.toString():"0";h.height=b=b.toString?b.toString():"0";if((d.widthIsRelative=a.match(/^\s*\d*\.?\d*\%\s*$/)&&!a.match(/^\s*0\%\s*$/))&&0===c.offsetWidth)for(l=c;l=l.offsetParent;)if(0<
l.offsetWidth){a=(l.offsetWidth*parseFloat(a.match(/\d*/)[0])/100).toString();break}if((d.heightIsRelative=b.match(/^\s*\d*\.?\d*\%\s*$/)&&!b.match(/^\s*0\%\s*$/))&&20>=c.offsetHeight)for(l=c;l=l.offsetParent;)if(0<l.offsetHeight){b=(l.offsetHeight*parseFloat(b.match(/\d*/)[0])/100).toString();break}d.width=a.replace?a.replace(/^\s*(\d*\.?\d*)\s*$/ig,"$1px"):a;d.height=b.replace?b.replace(/^\s*(\d*\.?\d*)\s*$/ig,"$1px"):b;h.width=d.width;h.height=d.height;d.pixelWidth=d.widthIsRelative?c.offsetWidth:
parseInt(d.width,10)||0;d.pixelHeight=d.heightIsRelative?c.offsetHeight:parseInt(d.height,10)||0;return d};t=e.renderer={register:function(a,c){if(!a||"function"!==typeof a.toString)throw Error("#03091436 ~renderer.register() Invalid value for renderer name.");a=a.toString().toLowerCase();if(void 0!==b[a])return e.raiseError(e.core,"03091438","param","::RendererManager>register",'Duplicate renderer name specified in "name"'),!1;b[a]=c;return!0},userSetDefault:!1,setDefault:function(a){if(!a||"function"!==
typeof a.toString)return e.raiseError(e.core,"25081731","param","::RendererManager>setDefault",'Invalid renderer name specified in "name"'),!1;if(void 0===b[a=a.toString().toLowerCase()])return e.raiseError(e.core,"25081733","range","::RendererManager>setDefault","The specified renderer does not exist."),!1;this.userSetDefault=!1;e.policies.options.renderer=["renderer",a];return!0},notifyRender:function(a){var b=e.core.items[a&&a.id];b&&(!1!==a.success||a.silent)||e.raiseError(e.core.items[a.id],
"25081850","run","::RendererManager",Error("There was an error rendering the chart. Enable FusionCharts JS debugger for more information."));if(b.ref=a.ref)a.ref.FusionCharts=e.core.items[a.id];e.raiseEvent("internal.DOMElementCreated",{},b)},protectedMethods:{options:!0,attributes:!0,src:!0,ref:!0,constructor:!0,signature:!0,link:!0,addEventListener:!0,removeEventListener:!0},getRenderer:function(a){return b[a]},getRendererPolicy:function(a){a=b[a].policies;return"object"===typeof a?a:{}},currentRendererName:function(){return e.policies.options.renderer[1]},
update:function(a){N[a.id].update.apply(a,Array.prototype.slice.call(arguments,1))},render:function(a){N[a.id].render.apply(a,Array.prototype.slice.call(arguments,1))},remove:function(a){N[a.id].remove.apply(a,Array.prototype.slice.call(arguments,1))},resize:function(a){N[a.id].resize.apply(a,Array.prototype.slice.call(arguments,1))},config:function(a){N[a.id].config.apply(a,Array.prototype.slice.call(arguments,1))},dispose:function(a){N[a.id].dispose.apply(a,Array.prototype.slice.call(arguments,
1))}};e.addEventListener("beforeInitialize",function(a){a=a.sender;var c=a.options.renderer.toLowerCase(),g;"string"===typeof a.options.renderer&&void 0===b[c]&&(a.options.renderer=e.policies.options.renderer[1]);a.options.renderer=c;N[a.id]=b[a.options.renderer];!0!==N[a.id].initialized&&"function"===typeof N[a.id].init&&(N[a.id].init(),N[a.id].initialized=!0);e.parsePolicies(a,N[a.id].policies||{},a.args);for(g in N[a.id].prototype)a[g]=N[a.id].prototype[g];for(g in N[a.id].events)a.addEventListener(g,
N[a.id].events[g])});e.addEventListener(["rendered","dataloaderror","nodatatodisplay","rendercancelled"],function(a,b){var c=a.sender;c instanceof e.core&&c.__state.rendering&&(e.raiseEvent("internal.rendered",b,c),delete c.__state.rendering)});e.addEventListener("loaded",function(a){var b=a.sender;a=a.sender.ref;var g,d;if(void 0!==a&&null!==a&&"function"===typeof a.getExternalInterfaceMethods){try{g=a.getExternalInterfaceMethods(),g="string"===typeof g?g.split(","):[]}catch(h){g=[],e.raiseError(b,
"13111126041","run","RendererManager^Loaded",Error("Error while retrieving data from the chart-object."+(h.message&&0<=h.message.indexOf("NPObject")?" Possible cross-domain security restriction.":"")))}for(a=0;a<g.length;a+=1)d=g[a],void 0===b[d]&&(b[d]=J(d));if(b.ref)for(d in g=t.protectedMethods,a=t.getRenderer(b.options.renderer).protectedMethods,b)if(a&&!g[d]&&!a[d]&&void 0===b.ref[d])try{b.ref[d]=c(b,d)}catch(l){}}});e.legacyEventList.resized="FC_Resized";e.extend(e.core.prototype,{render:function(a,
b,c){var d=this,h,l,L;if((L=k[this.id])&&L.FusionCharts&&L.FusionCharts===this||(L=this.ref)&&L.FusionCharts&&L.FusionCharts===this)e.renderer.dispose(this),L===k[this.id]&&(k[this.id]=void 0);void 0!==k[this.id]&&e.raiseError(this,"25081843","comp",".render",Error("#25081843:IECompatibility() Chart Id is same as a JavaScript variable name. Variable naming error. Please use unique name forchart JS variable, chart-id and container id."));c?"function"!==typeof c&&(c=void 0):"function"===typeof b?(c=
b,b=void 0):b||"function"!==typeof a||(c=a,a=void 0);b=(b||this.options.insertMode).toLowerCase()||D.REPLACE;void 0===a&&(a=this.options.containerElementId);"string"===typeof a&&(a=u.getElementById(a));if(void 0===a||null===a)return e.raiseError(this,"03091456","run",".render()",Error("Unable to find the container DOM element.")),this;if(p(this.id,a))return e.raiseError(this,"05102109","run",".render()",Error("A duplicate object already exists with the specific Id: "+this.id)),this;h=u.createElement(this.options.containerElementType||
"span");h.setAttribute("id",this.id);if("append"!==b&&"prepend"!==b)for(;a.hasChildNodes();)a.removeChild(a.firstChild);"prepend"===b&&a.firstChild?a.insertBefore(h,a.firstChild):a.appendChild(h);this.options.containerElement=a;this.options.containerElementId=a.id;if(b=h.style)b.position="relative",b.textAlign="left",b.lineHeight="normal",b.display="inline-block",b.zoom="1",b.fontWeight="normal",b.fontVariant="normal",b.fontStyle="normal",b.textDecoration="none",b["*DISPLAY"]="inline",b.padding="0",
b.margin="0",b.border="none",b.direction="ltr";this.options.containerClassName&&(h.className=this.options.containerClassName);b=e.normalizeCSSDimension(this.width,this.height,h);this.__state.renderedWidth=b.pixelWidth;this.__state.renderedHeight=b.pixelHeight;this.__state.rendering=!0;e.raiseEvent("beforeRender",l={container:a,width:this.width,height:this.height,renderer:this.options.renderer},this,void 0,function(a,b){e.renderer.render(d,h,function(){e.renderer.notifyRender.apply(this,arguments);
if(c)try{c.call(a.sender,b.container)}catch(d){setTimeout(function(){throw d;})}})},function(){e.raiseEvent("renderCancelled",l,d)});return this},remove:function(){e.renderer.remove(this);return this},resizeTo:function(b,c,g){var d=this,h=d.width,l=d.height,p=d.__state;"object"===typeof b&&(g=c,c=b.h,b=b.w);b=null===b||void 0===b?h:b.toString().replace(a,"");c=null===c||void 0===c?l:c.toString().replace(a,"");!0!==g?e.raiseEvent("beforeresize",{currentWidth:h,currentHeight:l,newWidth:b,newHeight:c},
d,void 0,function(){d.width=b;d.height=c;e.renderer.resize(d,{width:b,height:c});e.raiseEventWithLegacy("resized",{width:d.width,height:d.height,prevWidth:h,prevHeight:l,pixelWidth:d.ref&&d.ref.offsetWidth||0,pixelHeight:d.ref&&d.ref.offsetHeight||0,originalWidth:p.renderedWidth,originalHeight:p.renderedHeight},d,[d.id,d.width,d.height])},function(){e.raiseEvent("resizecancelled",{currentWidth:h,currentHeight:l,cancelledTargetWidth:b,cancelledTargetHeight:c},d)}):(d.width=b,d.height=c);return this},
dispose:function(){var a=this,b={};e.raiseEvent("beforeDispose",b,a,void 0,function(){e.renderer.dispose(a);e.raiseEvent("disposed",b,a);e.disposeEvents(a);delete e.core.items[a.id];for(var c in a)a.hasOwnProperty(c)&&delete a[c];a.disposed=!0},function(){e.raiseEvent("disposeCancelled",b,a)})},configure:function(a,b){var c;a&&("string"===typeof a?(c={},c[a]=b):c=a,e.renderer.config(this,c))}});e.extend(e.core,{setCurrentRenderer:function(){var a=t.setDefault.apply(t,arguments);t.userSetDefault=!0;
return a},getCurrentRenderer:function(){return t.currentRendererName.apply(t,arguments)},render:function(a,b){return a instanceof e.core?(a.render(b),a):(new e.core(a)).render(b)}},!1)}]);
FusionCharts.register("module",["private","modules.interface.transcoder",function(){var e=this,k=e.window,u=e.transcoders={},q={},D={},b=/url$/i,N=e._interactiveCharts={selectscatter:[!0,!1],dragcolumn2d:[!0,!0],dragarea:[!0,!0],dragline:[!0,!0],dragnode:[!0,!0]},J=function(b,c,l,g){var t=l.obj;l=l.args;l.dataSource=b;l.xmlHttpRequestObject=c;l.source="XmlHttpRequest";l.url=g;e.raiseEvent("dataLoadRequestCompleted",l,t,void 0,p,a)},c=function(a,b,c){var g=c.obj;c=c.args;c.error=a;c.httpStatus=b.xhr&&
b.xhr.status?b.xhr.status:-1;c.xmlHttpRequestObject=b;e.raiseEvent("dataLoadError",c,g);"function"===typeof k.FC_DataLoadError&&k.FC_DataLoadError(g.id,c)},p=function(a,b){a.sender.setChartData(b.dataSource,b.dataFormat,b.config,b.successcallback,b.silent)},a=function(a,b){e.raiseEvent("dataLoadCancelled",b,a.sender);b.xmlHttpRequestObject.abort()},t=function(a,b){var l=a.sender,g=l.__state,p=b.url;l.options.dataSource=b.url;g.dhmXhrObj||(g.dhmXhrObj=new e.ajax(J,c));g.dhmXhrObj.get("function"===
typeof k.decodeURIComponent?k.decodeURIComponent(p):k.unescape(p),{obj:l,args:b})},U=function(a,b){var c=a.sender,g=c.__state;e.raiseEvent("dataLoadRequestCancelled",b,c);g&&g.dhmXhrObj&&g.dhmXhrObj.abort()},F=function(a,b){var c=a.sender,g=c.__state,p=c.id;q[p]=b;D[p]&&delete D[p];D[p]={};g.dataReady=void 0;g.dataAvailable=!0;!0!==b.silent&&(!0!==c.options.safeMode||!0!==g.rendering||c.isActive()?(delete g.args,e.renderer.update(c,b)):(g.updatePending=b,e.raiseWarning(c,"23091255","run","::DataHandler~update",
"Renderer update was postponed due to async loading.")));e.raiseEvent("dataUpdated",b,c,void 0,b.successcallback)},g=function(a,b){e.raiseEvent("dataUpdateCancelled",b,a.sender,void 0,b.failurecallback)};e.dataFormats={};e.policies.options.dataSource=["dataSource",void 0];e.policies.options.dataFormat=["dataFormat",void 0];e.policies.options.dataConfiguration=["dataConfiguration",void 0];e.policies.options.showDataLoadingMessage=["showDataLoadingMessage",!1];e.addDataHandler=function(a,b){if("string"!==
typeof a||void 0!==u[a.toLowerCase()])e.raiseError(e.core,"03091606","param","::DataManager.addDataHandler",Error("Invalid Data Handler Name"));else{var c={},g=a.toLowerCase();u[g]=b;b.name=a;c["set"+a+"Data"]=function(b,c,h){return this.setChartData(b,a,c,h)};b.transportable&&(c["set"+a+"Url"]=function(b,c,h){return this.setChartDataUrl(b,a,c,h)},e.dataFormats[a+"URL"]=g+"Url");c["get"+a+"Data"]=function(){return this.getChartData(a)};e.dataFormats[a]=g;e.extend(e.core,c,!0)}};e.extend(e.core.prototype,
{setChartDataUrl:function(a,c,g,p,F){if(void 0===c||null===c||"function"!==typeof c.toString)c=this.options.dataFormat,e.raiseWarning(this,"03091609","param","FusionCharts#setChartDataUrl","Invalid Data Format. Reverting to current data format - "+c);c=c.toString().toLowerCase();c=b.test(c)?c.slice(0,-3):c;e.raiseEvent("dataLoadRequested",{source:"XmlHttpRequest",url:a,dataFormat:c,silent:!!F,config:g,successcallback:p},this,void 0,t,U)},setChartData:function(a,c,l,p,t){var n=this.options,C,w;if(void 0===
c||null===c||"function"!==typeof c.toString)c=n.dataFormat,e.raiseWarning(this,"03091610","param","FusionCharts#setChartData","Invalid Data Format. Reverting to current data format - "+c);c=c.toString().toLowerCase();b.test(c)?this.setChartDataUrl(a,c,l,p,t):(n.dataSource=a,C=c,n.dataFormat=c,w=u[C],"undefined"===typeof w?e.raiseError(e.core,"03091611","param","FusionCharts#setChartData",Error("Data Format not recognized")):(c=(c=e.renderer&&e.renderer.getRenderer(n.renderer||e.renderer.currentRendererName()))&&
c.dataFormat,l=c===C?w.passthrough?w.passthrough(a,l):{data:a}:w.encode(a,this,l||n.dataConfiguration)||{},l["native"]=c===C,l.format=l["native"]?c:"xml",l.dataFormat=C,l.dataSource=a,l.silent=!!t,"function"===typeof p&&(l.successcallback=p),e.raiseEvent("beforeDataUpdate",l,this,void 0,F,g)))},getChartData:function(a,b){var c=this.options,g=this.id,p;if(void 0===a||"function"!==typeof a.toString||void 0===(p=u[a=a.toString().toLowerCase()]))e.raiseError(this,"25081543","param","::transcoder~getChartData()",
Error('Unrecognized data-format specified in "format"'));else return D[g][a]?c=D[g][a]:q[g]?(a===q[g].format?D[g][a]=q[g]:(D[g].xml||(D[g].xml="xml"===q[g].format?q[g]:u[q[g].format].encode(q[g].data,this,c.dataConfiguration)),D[g][a]||(D[g][a]=p.decode(D[g].xml.data,this,c.dataConfiguration))),c=D[g][a]):c={error:Error("Data not defined")},!0===Boolean(b)?c:c.data},dataReady:function(a){return a?this.__state.dataAvailable:this.__state.dataReady}});e.extend(e.core,{transcodeData:function(a,b,c,g,
p){if(b&&"function"===typeof b.toString&&c&&"function"===typeof c.toString&&void 0!==u[c=c.toString().toLowerCase()]&&void 0!==u[b=b.toString().toLowerCase()])return a=u[b].encode(a,this,p),c=u[c].decode(a.data,this,p),c.error instanceof Error||(c.error=a.error),g?c:c.data;e.raiseError(this,"14090217","param",".transcodeData()",Error("Unrecognized data-format specified during transcoding."))}},!1);e.getRenderer&&!e.getRenderer("flash")||e.addEventListener("DataLoadRequested",function(a){var b=a.sender;
b.options&&"flash"===b.options.renderer&&b.options.useLegacyXMLTransport&&a.preventDefault()});e.addEventListener("beforeInitialize",function(a){a=a.sender;var c=a.options,g=c.dataSource,p=e.renderer&&e.renderer.getRenderer(c.renderer);delete q[a.id];D[a.id]={};if(void 0!==g&&null!==g){a.__state.dataSetDuringConstruction=!0;if("string"!==typeof c.dataFormat)switch(typeof g){case "function":g=c.dataSource=g.call(a,c.dataConfiguration);c.dataFormat="JSON";break;case "string":c.dataFormat=/^\s*?\{[\s\S]*\}\s*?$/g.test(a.options.dataFormat)?
"JSON":"XML";break;case "object":c.dataFormat="JSON"}c.dataFormat&&c.dataFormat.toString&&(a.__state.dataFetchDuringConstruction=b.test(c.dataFormat.toString()));a.setChartData(g,c.dataFormat,void 0,void 0,!0)}else p&&(a.__state.dataSetDuringConstruction=!1,e.raiseWarning(a,"1810131922A","param",":dataHandler~event:beforeInitialize","Data source was not defined during construction, hence set to blank renderer default - "+p.dataFormat),a.setChartData("",p.dataFormat,void 0,void 0,!0),a.__state.dataAvailable=
!1)});e.addEventListener("beforeDispose",function(a){var b=a.sender;delete q[a.sender.id];delete D[a.sender.id];b&&b.__state&&b.__state.dhmXhrObj&&b.__state.dhmXhrObj.abort()});e.addEventListener("disposed",function(a){delete D[a.sender.id]});e.addEventListener("loaded",function(a){a=a.sender;var b=a.__state.updatePending;a instanceof e.core&&void 0!==b&&(delete a.__state.updatePending,e.renderer.update(a,b))});e.addEventListener("dataUpdated",function(a,b){var c=a.sender,g=c.__state;g.rendering&&
(g.dataFetchDuringConstruction||g.updatePending)&&(delete g.dataFetchDuringConstruction,delete g.updatePending,e.renderer.update(c,b))});e.addEventListener(["dataLoadError","dataInvalid"],function(a){a.sender.__state.dataAvailable=!1});e.addEventListener("loaded",function(a){a=a.sender;var b=a.__state,c,g,p;p=function(a,b){return function(c){return!1===c?b.apply(this):this.ref.getUpdatedXMLData?e.core.transcodeData(this.ref.getUpdatedXMLData(),"xml",a):this.getData?this.getData(a):b.apply(this)}};
if(a.chartType&&N[a.chartType()]&&N[a.chartType()][0]){for(c in e.transcoders)g=e.transcoders[c].name,g="get"+g+"Data",a[g]=p(c,a.constructor.prototype[g]),a[g]._dynamicdatarouter=!0;b.dynamicDataRoutingEnabled=!0}else if(b.dynamicDataRoutingEnabled){for(c in e.transcoders)g=e.transcoders[c].name,g="get"+g+"Data",a.hasOwnProperty(g)&&a[g]._dynamicdatarouter&&delete a[g];b.dynamicDataRoutingEnabled=!1}})}]);"object"!==typeof JSON&&(JSON={});
(function(){function e(b){return 10>b?"0"+b:b}function k(b){D.lastIndex=0;return D.test(b)?'"'+b.replace(D,function(a){var b=J[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+b+'"'}function u(e,a){var t,q,F,g,d=b,h,l=a[e];l&&"object"===typeof l&&"function"===typeof l.toJSON&&(l=l.toJSON(e));"function"===typeof c&&(l=c.call(a,e,l));switch(typeof l){case "string":return k(l);case "number":return isFinite(l)?String(l):"null";case "boolean":case "null":return String(l);
case "object":if(!l)return"null";b+=N;h=[];if("[object Array]"===Object.prototype.toString.apply(l)){g=l.length;for(t=0;t<g;t+=1)h[t]=u(t,l)||"null";F=0===h.length?"[]":b?"[\n"+b+h.join(",\n"+b)+"\n"+d+"]":"["+h.join(",")+"]";b=d;return F}if(c&&"object"===typeof c)for(g=c.length,t=0;t<g;t+=1)"string"===typeof c[t]&&(q=c[t],(F=u(q,l))&&h.push(k(q)+(b?": ":":")+F));else for(q in l)Object.prototype.hasOwnProperty.call(l,q)&&(F=u(q,l))&&h.push(k(q)+(b?": ":":")+F);F=0===h.length?"{}":b?"{\n"+b+h.join(",\n"+
b)+"\n"+d+"}":"{"+h.join(",")+"}";b=d;return F}}"function"!==typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var q=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
D=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,b,N,J={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},c;"function"!==typeof JSON.stringify&&(JSON.stringify=function(e,a,t){var k;N=b="";if("number"===typeof t)for(k=0;k<t;k+=1)N+=" ";else"string"===typeof t&&(N=t);if((c=a)&&"function"!==typeof a&&("object"!==typeof a||"number"!==typeof a.length))throw Error("JSON.stringify");return u("",{"":e})});
"function"!==typeof JSON.parse&&(JSON.parse=function(b,a){function c(b,g){var d,h,e=b[g];if(e&&"object"===typeof e)for(d in e)Object.prototype.hasOwnProperty.call(e,d)&&(h=c(e,d),void 0!==h?e[d]=h:delete e[d]);return a.call(b,g,e)}var e;b=String(b);q.lastIndex=0;q.test(b)&&(b=b.replace(q,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(b.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+b+")"),"function"===typeof a?c({"":e},""):e;throw new SyntaxError("JSON.parse");})})();
FusionCharts.register("module",["private","modules.data.json",function(){var e=this,k=e.window,u=k.document,q=e.xssEncode,D,b;void 0===k.JSON&&e.raiseError(this,"1113062012","run","JSONDataHandler",Error("Could not find library support for JSON parsing."));e.policies.options.allowIESafeXMLParsing=["_allowIESafeXMLParsing",!0];D=function(){var b={set:!0,trendlines:!0,vtrendlines:!0,line:{trendlines:!0,vtrendlines:!0},data:!0,dataset:!0,lineset:!0,categories:!0,category:!0,linkeddata:!0,application:!0,
definition:!0,axis:!0,connectors:!0,connector:{connectors:!0},trendset:!0,row:{rows:!0},column:{columns:!0},label:{labels:!0},color:{colorrange:!0},dial:{dials:!0},pointer:{pointers:!0},point:{trendpoints:!0},process:{processes:!0},task:{tasks:!0},milestone:{milestones:!0},datacolumn:{datatable:!0},text:{datacolumn:!0},item:{legend:!0},alert:{alerts:!0},groups:{annotations:!0},items:{groups:!0,data:!0},shapes:!0,shape:{shapes:!0},entitydef:!0,entity:{entitydef:!0}},q={chart:"linkedchart",map:"linkedmap",
set:"data",vline:{chart:"data",graph:"data",dataset:"data",categories:"category",linkedchart:"data"},apply:{application:"application"},style:{definition:"definition"},marker:{application:"application",definition:"definition",data:"items"},entity:{entitydef:"entitydef",data:"data"},shape:{shapes:"shapes"},connector:{connectors:{chart:"connector",linkedchart:"connector",map:"connectors",linkedmap:"connectors"}},annotationgroup:{annotations:"groups"},annotation:{groups:"items"}},c={vline:{vline:"true"}},
p={chart:!0,map:!0,graph:!0},a={dataset:"data",categories:"category"},t={target:"target",value:"value"},D={styles:{definition:!0,application:!0},chart:{value:!0,target:!0},graph:{value:!0,target:!0},linkedchart:{value:!0,target:!0},markers:{definition:!0,application:!0,shapes:!0,connectors:!0,data:!0},map:{entitydef:!0,data:!0},linkedmap:{entitydef:!0,data:!0}},F,g;F={append:function(a,c,g,e){!b[g]||!0!==b[g]&&!0!==b[g][e]?c[g]=a:(c[g]instanceof Array||(c[g]=[]),c[g].push(a))},child:function(b,g,
l,L){var k,n,C,w,R,v;for(k=0;k<g.length;k+=1)switch(C=g[k],n=C.nodeName.toLowerCase(),C.nodeType){case 1:w=F.attr(C.attributes);v=p[n];!0===v&&(R=w,w={},w[n]=R);v=c[n];"object"===typeof v&&e.extend(w,v);if(v=q[n])if("object"===typeof v&&"object"===typeof v[l])for(R in R=void 0,v[l]){if(L[R]){n=v[l][R];break}}else"object"===typeof v&&"string"===typeof v[l]?n=v[l]:"string"===typeof v&&(n=v);C.childNodes.length&&((v=D[l])&&v[n]?F.child(b,C.childNodes,n,L):F.child(w,C.childNodes,n,L));(v=D[l])&&v[n]||
F.append(w,b,n,l);break;case 3:if(v=t[l])n=v,w=C.data,F.append(w,b,n,l);v=a[l];"string"===typeof v&&L.chart&&parseInt(L.chart.compactdatamode,10)&&(n=v,w=C.data,b[n]=b[n]?b[n]+w:w)}},attr:function(a){var b,c={};if(!a||!a.length)return c;for(b=0;b<a.length;b+=1)c[a[b].nodeName.toLowerCase()]=a[b].value||a[b].nodeValue;return c}};g=function(a){var b={},c,p,t,n,C,w,R,v,q;if("object"!==typeof a&&a&&"function"!==typeof a.toString)return g.errorObject=new TypeError("xml2json.parse()"),b;a=a.toString().replace(/<\!--[\s\S]*?--\x3e/g,
"").replace(/<\?xml[\s\S]*?\?>/ig,"").replace(/&(?!([^;\n\r]+?;))/g,"&amp;$1");a=a.replace(/^\s\s*/,"");for(var J=/\s/,D=a.length;J.test(a.charAt(--D)););a=a.slice(0,D+1);if(!a)return b;try{k.DOMParser?c=(new k.DOMParser).parseFromString(a,"text/xml"):u.body&&e.core.options.allowIESafeXMLParsing?(p=u.createElement("xml"),p.innerHTML=a,u.body.appendChild(p),c=p.XMLDocument,u.body.removeChild(p)):(c=new k.ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(a));if(!(c&&c.childNodes&&1===c.childNodes.length&&
(t=c.childNodes[0])&&t.nodeName&&(n=t.nodeName.toLowerCase()))||"chart"!==n&&"map"!==n&&"graph"!==n)return g.errorObject=new TypeError("xml2json.parse()"),b;if("graph"===n){C=c.createElement("chart");for(q=(R=t.attributes)&&R.length||0;q--;)C.setAttribute(R[q].name,R[q].value),R.removeNamedItem(R[q].name);if(q=(v=t.childNodes)&&v.length||0)--q,w=t.removeChild(v[q]),C.appendChild(w);for(;q--;)w=t.removeChild(v[q]),C.insertBefore(w,C.firstChild);c.replaceChild(C,t);t=C}}catch(W){g.errorObject=W}t?(t.attributes&&
(b[n]=F.attr(t.attributes)),t.childNodes&&F.child(b,t.childNodes,n,b),delete g.errorObject):g.errorObject=new TypeError("xml2json.parse()");return b};return function(a){delete g.errorObject;return{data:g(a),error:g.errorObject}}}();b=function(){var b,e;b={items:{explode:{data:"set",groups:{annotations:"annotationgroup"},items:{groups:"annotation"}},text:{chart:{target:"target",value:"value"},graph:{target:"target",value:"value"}},dsv:{dataset:{data:"dataset"},categories:{category:"categories"}},attr:{chart:{chart:"chart"},
graph:{graph:"graph"},map:{map:"map"},linkedmap:{map:"map"},linkedchart:{chart:"chart"}},group:{styles:{definition:"style",application:"apply"},map:{data:"entity",entitydef:"entity"},markers:{definition:"marker",application:"marker",shapes:"shape",connectors:"connector",items:"marker"}},tag:{markers:{items:"data"}}},qualify:function(b,e,a){return"object"===typeof this.items[b][a]?this.items[b][a][e]:this.items[b][a]}};e=function(c,p,a,t){var k="",F="",g="",d="",h,l,L;p&&"function"===typeof p.toLowerCase&&
(p=p.toLowerCase());if(void 0===a&&c[p])for(h in c[p])l=h.toLowerCase(),"compactdatamode"===l&&(t.applyDSV=1==c[p][h]);if(c instanceof Array)for(h=0;h<c.length;h+=1)g="string"===typeof c[h]?g+q(c[h]):g+e(c[h],p,a,t);else{for(h in c)l=h.toLowerCase(),c[h]instanceof Array&&(L=b.qualify("group",l,p))?(g=b.qualify("tag",l,p)||l,F+="<"+g+">"+e(c[h],L,p,t)+"</"+g+">"):"object"===typeof c[h]?(L=b.qualify("attr",l,p))?(d=e(c[h],L,p,t).replace(/\s*\/\>/ig,""),p=l):F+=e(c[h],l,p,t):t.applyDSV&&(L=b.qualify("dsv",
l,p))?F+=c[h]:(L=b.qualify("text",l,p))?(g=b.qualify("tag",l,p)||L,F+="<"+g+">"+c[h]+"</"+g+">"):"vline"===l&&Boolean(c[h])?p="vline":k+=" "+l+'="'+q(c[h]).toString().replace(/\"/ig,"&quot;")+'"';if(L=b.qualify("explode",a,p))p=L;g=p;g=(""!==d?d:"<"+g)+k+(""!==F?">"+F+"</"+g+">":" />")}return g};return function(b){delete e.errorObject;if(b&&"string"===typeof b)try{b=JSON.parse(b)}catch(p){e.errorObject=p}return{data:e(b,b&&b.graph?"graph":b&&b.map?"map":"chart",void 0,{}),error:e.errorObject}}}();
e.addDataHandler("JSON",{encode:b,decode:D,passthrough:function(b){var e={data:{}};if(!b)return e;if("string"!==typeof b)try{b=JSON.stringify(b)}catch(c){return e.error=c,e}try{e.data=JSON.parse(b.replace(/"([^"]+)":/g,function(a,b){return'"'+b.toLowerCase()+'":'}))}catch(p){e.error=p}return e},transportable:!0})}]);FusionCharts.register("module",["private","modules.data.xml",function(){var e=function(e){return{data:e,error:void 0}};this.addDataHandler("XML",{encode:e,decode:e,transportable:!0})}]);
FusionCharts.register("module",["private","modules.data.csv",function(){var e=this,k=e.window,u=e.core,q=k.parseInt,D=k.parseFloat,b=function(b){return b},N;N=function(b){this.data=[];this.columnCount=this.rowCount=0;this.configure(b)};N.decodeLiterals=function(b,c){return void 0!==b&&null!==b&&b.toString?b.replace("{tab}","\t").replace("{quot}",'"').replace("{apos}","'"):c};N.prototype.set=function(b,c,e){var a;if(this.rowCount<=b){for(a=this.rowCount;a<=b;a+=1)this.data[a]=[];this.rowCount=b+1}this.columnCount<=
c&&(this.columnCount=c+1);this.data[b][c]=e};N.prototype.setRow=function(b,c){var e;if(this.rowCount<=b){for(e=this.rowCount;e<=b;e+=1)this.data[e]=[];this.rowCount=b+1}this.columnCount<c.length&&(this.columnCount=c.length);this.data[b]=c};N.prototype.get=function(b,c){var e=this.data;return e[b]&&e[b][c]};N.prototype.configure=function(b){var c=N.decodeLiterals;this.delimiter=c(b.delimiter,",");this.qualifier=c(b.qualifier,'"');this.eolCharacter=c(b.eolCharacter,"\r\n");this.numberFormatted=!!q(b.numberFormatted,
0)};N.prototype.clear=function(){this.data=[];this.columnCount=this.rowCount=0};N.prototype.toString=function(){var b,c,e="";for(b=0;b<this.rowCount;b+=1)c=this.qualifier+this.data[b].join(this.qualifier+this.delimiter+this.qualifier)+this.qualifier,e+='""'===c?this.eolCharacter:c+this.eolCharacter;0<this.rowCount&&(e=e.slice(0,e.length-2));return e};e.addDataHandler("CSV",{encode:function(b,c){e.raiseError(c,"0604111215","run","::CSVDataHandler.encode()","FusionCharts CSV data-handler only supports encoding of data.");
throw Error("FeatureNotSupportedException()");},decode:function(e,c){var p=u.transcodeData(e,"xml","json")||{},a=c.jsVars,t,k,F,g,d,h,l,L=p.chart||p.map||p.graph||{};l=Boolean(L.exporterrorcolumns||0);var q=p.categories&&p.categories[0]&&p.categories[0].category||[],n=p.map&&!p.chart||a&&a.instanceAPI&&"geo"===a.instanceAPI.defaultSeriesType,C=!1,w=!1,R=!1,v=!1;k=!1;var oa=b,ea={},$,W,pa,Ca,fa,la,Q,ya,G,S,ba;d=0;t=new N({separator:L.exportdataseparator,qualifier:L.exportdataqualifier,numberFormatted:L.exportdataformattedval});
u.formatNumber&&t.numberFormatted&&(oa=function(a){return u.formatNumber(a,L)});if(n)for(S in ea.geo=!0,q=a.hcObj&&a.hcObj.entities&&a.hcObj.entities.items||[],t.setRow(0,["Id"," Short Name","Long Name","Value","Formatted Value"]),a=0,q)w=q[S],ba=w.eJSON,k=w.value,t.setRow(++a,[S,ba.shortLabel,ba.label,void 0===k?"":k,w.formattedValue]);else if(void 0!==($=p.dials&&p.dials.dial||p.pointers&&p.pointers.pointer||p.value))if(ea.gauge=!0,"string"===typeof $)t.set(0,0,oa($)),ea.singlevalue=!0,"string"===
typeof p.target&&(t.set(0,1,oa(p.target)),ea.bullet=!0);else for(t.setRow(0,["Id","Value"]),ea.multivalue=!0,a=0,h=1,d=$.length;a<d;a+=1,h+=1)t.setRow(h,[h,oa($[a].value)]);else if($=p.dataset||!(p.data instanceof Array)&&[]){ea.multiseries=!0;F=1;if(W=p.lineset)$=$.concat(W),ea.lineset=!0;if(pa=p.axis)$=$.concat(pa),ea.multiaxis=!0;la=$.length;fa=q.length;if(!(la=$.length)){for(a=0;a<fa;a+=1)Q=q[a],t.set(a+1,0,Q.label||Q.name);ea.multilevel=!0}for(a=0;a<la;a+=1)for(ya=$,ya[a].dataset?(ya=ya[a].dataset,
g=0,Ca=ya.length):(ya=$,g=a,Ca=g+1);g<Ca&&!C&&!R;g+=1,F+=1){n=ya[g];t.set(0,F,n.seriesname);"string"===typeof n.data&&(ea.compactdata=!0,n.data=n.data.split(L.dataseparator||"|"));h=d=0;for(G=n.data&&n.data.length||0;d<G||d<fa;d+=1){Q=q[d];k=h+1;S=n.data&&n.data[h]||{};if(void 0!==S.x&&void 0!==S.y){C=ea.xy=!0;break}if(void 0!==S.open||void 0!==S.high||void 0!==S.close||void 0!==S.low){v=ea.ohlc=!0;break}if(void 0!==S.rowid&&void 0!==S.columnid){R=ea.heatmap=!0;break}if(d<fa&&!Q.vline){t.set(k,0,
Q.label||Q.name);Q=D(S?S.value:"");Q=isNaN(Q)?"":oa(Q);t.set(k,F,Q);if(w||l||S.errorvalue)w||t.set(0,F+1,"Error"),ba=1,t.set(k,F+1,oa(S.errorvalue));h+=1}}ba&&(F+=ba,ba=0)}W&&($=$.slice(0,-W.length));pa&&($=$.slice(0,-pa.length))}else if($=p.data){t.set(0,1,L.yaxisname||"Value");ea.singleseries=!0;k="1"==L.showsumatend;a=0;for(fa=$.length;a<fa;a+=1)S=$[a],S.vline||(Q=D(S.value?S.value:""),t.setRow(a+1,[S.label||S.name,isNaN(Q)?"":(d+=Q,oa(Q))]));k&&(ea.summation=!0,t.setRow(a+1,[L.sumlabel||"Total",
oa(d)]))}if(v)for(t.clear(),t.setRow(0,["Open","Close","High","Low"]),a=0,k=1,$=p.dataset,Ca=$.length;a<Ca;a+=1)for(d=0,n=$[a]&&$[a].data||[],la=n.length;d<la;d+=1,k+=1)S=n[d]||{},t.setRow(d+1,[oa(S.open),oa(S.close),oa(S.high),oa(S.low)]);else if(C)for(t.clear(),w=!1,ba=0,t.setRow(0,["Series","x","y"]),a=0,k=1,$=p.dataset,Ca=$.length;a<Ca;a+=1)for(d=0,n=$[a]&&$[a].data||[],la=n.length;d<la;d+=1,k+=1){S=n[d]||{};Q=[$[a].seriesname,oa(S.x),oa(S.y)];void 0!==S.z&&(Q.push(oa(S.z)),ba||(t.set(0,3,"z"),
ba=1));if(w||l||void 0!==S.errorvalue||void 0!==S.horizontalerrorvalue||void 0!==S.verticalerrorvalue)p=oa(S.errorvalue),Q.push(S.errorvalue,void 0===S.horizontalerrorvalue?p:oa(S.horizontalerrorvalue),void 0===S.verticalerrorvalue?p:oa(S.verticalerrorvalue)),w||(t.set(0,ba+3,"Error"),t.set(0,ba+4,"Horizontal Error"),t.set(0,ba+5,"Vertical Error")),w=ea.error=!0;t.setRow(k,Q)}else if(R){t.clear();C={};R={};a=0;d=1;q=p.rows&&p.rows.row||[];for(l=q.length;a<l;a+=1,d+=1)Q=q[a],Q.id&&(C[Q.id.toLowerCase()]=
d,t.set(d,0,Q.label||Q.id));a=0;d=1;q=p.columns&&p.columns.column||[];for(l=q.length;a<l;a+=1,d+=1)Q=q[a],Q.id&&(R[Q.id.toLowerCase()]=d,t.set(0,d,Q.label||Q.id));n=p.dataset&&p.dataset[0]&&p.dataset[0].data||[];a=0;for(l=n.length;a<l;a+=1)S=n[a],k=S.rowid.toLowerCase(),F=S.columnid.toLowerCase(),C[k]||(C[k]=t.rowCount,t.set(t.rowCount,0,S.rowid)),R[F]||(R[F]=t.columnCount,t.set(0,t.columnCount,S.columnid)),t.set(C[k],R[F],oa(S.value))}$=q=W=pa=null;0<t.rowCount&&void 0===t.get(0,0)&&t.set(0,0,L.xaxisname||
"Label");return{data:t.toString(),error:void 0,predictedFormat:ea}},transportable:!1});u.addEventListener("Loaded",function(b){b=b.sender;"javascript"!==b.options.renderer||b.getDataAsCSV||(b.getDataAsCSV=b.ref.getDataAsCSV=b.getCSVData)})}]);
FusionCharts.register("module",["private","modules.renderer.js",function(){var e=this,k=e.window,u=k.document,q=e.core.options,D=/msie/i.test(k.navigator.userAgent)&&!k.opera,b=Boolean(k.SVGAngle||u.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")),N=function(){},J=e.hcLib={cmdQueue:[]},c=J.moduleCmdQueue={base:[],charts:[],powercharts:[],widgets:[],maps:[]},p=J.moduleDependencies={},a=J.moduleMeta={base:"fusioncharts.js",charts:"fusioncharts.charts.js",powercharts:"fusioncharts.powercharts.js",
widgets:"fusioncharts.widgets.js",maps:"fusioncharts.maps.js"},t={},U=J.getMetaSentence=function(){var a={};return function(b){b=b&&b.replace(/(^\s*)|(\s*$)/g,"")||"";return a[b]||(a[b]={key:b,subject:b.replace(/[^\/]*?$/ig,""),predicate:b.replace(/^.*\//ig,"")})}}(),F=J.getDependentModuleName=function(a){var b=[],c,d;a=U(a).predicate;for(c in p)void 0!==(d=p[c][a])&&(b[d]=c);return b},g=J.hasModule=function(a){var b,c;if(a instanceof Array){b=0;for(c=a.length;b<c;b+=1)if(!Boolean(e.modules["modules.renderer.js-"+
U(a[b]).predicate]))return!1;return!0}return Boolean(e.modules["modules.renderer.js-"+U(a).predicate])},d=J.loadModule=function(b,c,d,h){b instanceof Array||(b=[b]);var l=b.length,p=0,k;k=function(){if(p>=l)c&&c();else{var L=b[p],F=L&&L.match(/[^\/]*$/i)[0],pa=a[L];p+=1;if(L){if(g(F)){k();return}if(t[F]){e.raiseError(h||e.core,"1112201445A","run","JavaScriptRenderer~loadModule() ","required resources are absent or blocked from loading.");d&&d(F);return}}else d&&d(F);L=e.core.options["html5"+e.capitalizeString(F)+
"Src"];e.loadScript(void 0===L?pa:L,{success:function(){g(F)?k():d&&d(F)},failure:d&&function(){d(F)}},void 0,!0)}};k()},h=J.executeWaitingCommands=function(a){for(var b;b=a.shift();)"object"===typeof b&&N[b.cmd].apply(b.obj,b.args)},l=function(a){delete a.sender.jsVars._reflowData;a.sender.jsVars._reflowData={};delete a.sender.jsVars._reflowClean},L=function(){var a=function(){};a.prototype={LoadDataErrorText:"Error in loading data.",XMLLoadingText:"Retrieving data. Please wait",InvalidXMLText:"Invalid data.",
ChartNoDataText:"No data to display.",ReadingDataText:"Reading data. Please wait",ChartNotSupported:"Chart type not supported.",PBarLoadingText:"",LoadingText:"Loading chart. Please wait",RenderChartErrorText:"Unable to render chart."};return a.prototype.constructor=a}(),P=J.getContainerBackgroundColor=function(a){var c=a.options.containerBackgroundColor,d=a.options.containerBackgroundOpacity,g=a.jsVars.transparent;void 0!==g&&null!==g?d=a.jsVars.transparent?0:1:(d=parseFloat(d),0>d?d=0:1<d&&(d=1));
c||(c="#ffffff");if(D&&!b)return d?c:"transparent";c=c.replace(/^#?([a-f0-9]+)/ig,"$1");c=J.graphics.HEXtoRGB(c);c[3]=d.toString();return"rgba("+c.join(",")+")"};J.injectModuleDependency=function(a,b,d){var g=!1,e=U(a).subject;a=U(a).predicate;b=void 0===b?a:U(b).predicate;p[a]||(p[a]={},c[a]||(c[a]=[],J.moduleMeta[a]=e+q.html5ScriptNamePrefix+(b&&b.replace&&b.replace(/^[\s\S]*\//ig,"").replace(/\?/g,"%3F").replace(/\#/g,"%23").replace(/\:/g,"%3A")||"")+q.html5ScriptNameSuffix),g=!0);p[a][b]=d||0;
return g};J.needsModule=function(a,b){a=U(a).predicate;b=U(b).predicate;return void 0!==(J.moduleDependencies[a]&&J.moduleDependencies[a][b])};J.cleanupWaitingCommands=function(a){for(var b=a.chartType(),b=F(b),d,g=[],e;d=b.shift();){for(d=c[d]||[];e=d.shift();)"object"===typeof e&&e.obj!==a&&g.push(e);d.concat(g);g=[]}};e.extend(e.core.options,{html5ScriptNameSuffix:".js",html5ScriptNamePrefix:"fusioncharts."});e.extend(N,{dataFormat:"json",ready:!1,policies:{jsVars:{},options:{showChartLoadingMessage:["showChartLoadingMessage",
!0]}},init:function(){g("base")?N.ready=!0:d("base",function(){N.ready=!0;h(J.cmdQueue)},void 0,e.core)},render:function(a){var b=a,c=this.jsVars.msgStore;b&&this.options.showChartLoadingMessage&&(b.innerHTML='<small style="display: inline-block; *zoom:1; *display:inline; width: 100%; font-family: Verdana,sans; font-size: 10px; color: #666666; text-align: center; padding-top: '+(parseInt(b.style.height,10)/2-5)+'px">'+(c.PBarLoadingText||c.LoadingText)+"</small>",b.style.backgroundColor=P(this));
J.cmdQueue.push({cmd:"render",obj:this,args:arguments})},update:function(){J.cmdQueue.push({cmd:"update",obj:this,args:arguments})},resize:function(){J.cmdQueue.push({cmd:"resize",obj:this,args:arguments})},dispose:function(){var a=J.cmdQueue,b,c;b=0;for(c=a.length;b<c;b+=1)a[b].obj===this&&(a.splice(b,1),--c,--b)},load:function(){J.cmdQueue.push({cmd:"load",obj:this,args:arguments})},config:function(a,b){var c,d=this.jsVars,g=d.msgStore,d=d.cfgStore,e=this.options,h;h={LoadingText:"loadMessage",
ChartNotSupported:"typeNotSupportedMessage",RenderChartErrorText:"renderErrorMessage",XMLLoadingText:"dataLoadStartMessage",ChartNoDataText:"dataEmptyMessage",LoadDataErrorText:"dataLoadErrorMessage",InvalidXMLText:"dataInvalidMessage"};"string"===typeof a&&1<arguments.length&&(c=a,a={},a[c]=b);for(c in a)void 0!==g[c]?g[c]=a[c]:d[c.toLowerCase()]=a[c],h[c]&&(e[h[c]]=a[c])},protectedMethods:{},events:{beforeInitialize:function(a){var b=a.sender;a=b.jsVars;var c;a.fcObj=b;a.msgStore=a.msgStore||new L;
a.cfgStore=a.cfgStore||{};a.previousDrawCount=-1;a.drawCount=0;a._reflowData={};b.addEventListener("beforeRender",function(a){a.sender.jsVars.smartLabel=new J.SmartLabelManager(b.id,u.body||u.getElementsByTagName("body")[0]);a.detachHandler()});a.userModules instanceof Array||(c=a.userModules,a.userModules=[],"string"===typeof c&&(a.userModules=a.userModules.concat(c.split(","))));J.chartAPI&&J.chartAPI[void 0]||(a.needsLoaderCall=!0)},initialized:function(a){a=a.sender;var b=a.jsVars;b.needsLoaderCall&&
(delete b.needsLoaderCall,N.load.call(a))},beforeDataUpdate:l,beforeDispose:function(a){var b=a.sender.jsVars;b.smartLabel&&!b.smartLabel.disposed&&b.smartLabel.dispose();l.apply(this,arguments)},beforeRender:function(a){var b=a.sender.jsVars;delete b.drLoadAttempted;delete b.waitingModule;delete b.waitingModuleError;l.apply(this,arguments)},dataLoadRequested:function(a){a=a.sender;var b=a.jsVars;delete b.loadError;a.ref&&a.options.showDataLoadingMessage?b.hcObj&&!b.hasNativeMessage&&b.hcObj.showLoading?
b.hcObj.showMessage(b.msgStore.XMLLoadingText):a.ref.showChartMessage?a.ref.showChartMessage("XMLLoadingText"):b.stallLoad=!0:b.stallLoad=!0},dataLoadRequestCompleted:function(a){delete a.sender.jsVars.stallLoad},dataLoadError:function(a){var b=a.sender,c=b.jsVars;delete c.stallLoad;c.loadError=!0;b.ref&&"function"===typeof b.ref.showChartMessage&&b.ref.showChartMessage("LoadDataErrorText");b.__state.dataFetchDuringConstruction&&delete b.__state.dataFetchDuringConstruction;l.apply(this,arguments)}},
_call:function(a,b,c){a.apply(c||k,b||[])}});e.extend(N.prototype,{getSWFHTML:function(){e.raiseWarning(this,"11090611381","run","JavaScriptRenderer~getSWFHTML()","getSWFHTML() is not supported for JavaScript charts.")},addVariable:function(){e.raiseWarning(this,"11090611381","run","JavaScriptRenderer~addVariable()",'Use of deprecated "addVariable()". Replace with "configure()".');e.core.prototype.configure.apply(this,arguments)},getXML:function(){e.raiseWarning(this,"11171116291","run","JavaScriptRenderer~getXML()",
'Use of deprecated "getXML()". Replace with "getXMLData()".');return this.getXMLData.apply(this,arguments)},setDataXML:function(){e.raiseWarning(this,"11171116292","run","JavaScriptRenderer~setDataXML()",'Use of deprecated "setDataXML()". Replace with "setXMLData()".');return this.setXMLData.apply(this,arguments)},setDataURL:function(){e.raiseWarning(this,"11171116293","run","JavaScriptRenderer~setDataURL()",'Use of deprecated "SetDataURL()". Replace with "setXMLUrl()".');return this.setXMLUrl.apply(this,
arguments)},hasRendered:function(){return!(!this.jsVars.hcObj||!this.jsVars.hcObj.hasRendered)},setTransparent:function(a){var b;if(b=this.jsVars)"boolean"!==typeof a&&null!==a&&(a=!0),b.transparent=null===a?!1:!0===a?!0:!1}});e.extend(e.core,{_fallbackJSChartWhenNoFlash:function(){k.swfobject.hasFlashPlayerVersion(e.core.options.requiredFlashPlayerVersion)||e.renderer.setDefault("javascript")},_enableJSChartsForSelectedBrowsers:function(a){void 0!==a&&null!==a&&e.renderer.setDefault((new RegExp(a)).test(k.navigator.userAgent)?
"javascript":"flash")},_doNotLoadExternalScript:function(b){var c,d;for(c in b)d=c.toLowerCase(),a[d]&&(t[d]=Boolean(b[c]))},_preloadJSChartModule:function(){throw"NotImplemented()";}});e.renderer.register("javascript",N);b||D?e.renderer.setDefault("javascript"):k.swfobject&&k.swfobject.hasFlashPlayerVersion&&!k.swfobject.hasFlashPlayerVersion(e.core.options.requiredFlashPlayerVersion)&&(e.raiseWarning(e.core,"1204111846","run","JSRenderer","Switched to JavaScript as default rendering due to absence of required Flash Player."),
e.renderer.setDefault("javascript"))}]);
FusionCharts.register("module",["private","modules.renderer.js-lib",function(){var e=this,k=e.window,u=k.document,q=k.navigator,D=Boolean(k.SVGAngle||u.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")),b=/msie/i.test(q.userAgent)&&!k.opera,N=k.parseFloat,J=/\s+/g,c=/^#?/,p=/^rgba/i,a=/[#\s]/ig,t=/\{br\}/ig,U=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,F=Math.abs,g=Math.pow,d=Math.round,h=g(2,-24),l=Object.prototype.toString,L="ontouchstart"in u,q=L&&!(q.maxTouchPoints||
q.msMaxTouchPoints),P="http://www.fusioncharts.com?BS=FCHSEvalMark&utm_source=FCS_trial&pver="+k.escape(e.core.version),n=Math,C=n.max,w=n.min,R={pageX:0,pageY:0},v=e.hcLib||(e.hcLib={}),oa=function(a){var b=a.data,c=b.chart,m=c.paper,r=a.state,d=G(ya(a.originalEvent)),g=d.target||d.originalTarget||d.srcElement||d.relatedTarget||d.fromElement,e=c.elements.resizeBox,h=b.layerX=d.pageX-b.chartPosLeft,n=b.layerY=d.pageY-b.chartPosTop,B=h-b.ox,l=n-b.oy,p=b.bBox,v=b.ox,ga=b.oy,Z=b.zoomX,k=b.zoomY,p=b.canvasY,
t=b.canvasX,L=b.canvasW,S=b.canvasH,pa=b.canvasX2,q=b.canvasY2,T=b.strokeWidth,B=b.attr;switch(r){case "start":a=$(this);b.chartPosLeft=a.left;b.chartPosTop=a.top;h=d.pageX-b.chartPosLeft;n=d.pageY-b.chartPosTop;b.oy=n;b.ox=h;b.allowMove=!1;e||(e=c.elements.resizeBox=m.rect(c.layers.tracker).attr(B));h>t&&h<pa&&n>p&&n<q&&(b.allowMove=!0);g&&g.ishot&&(b.allowMove=!1);e.attr({x:0,y:0,width:0,height:0}).show();break;case "end":p=e.getBBox();c={chart:c,selectionLeft:p.x,selectionTop:p.y,selectionHeight:p.height,
selectionWidth:p.width,originalEvent:a.originalEvent};b.isDragged&&(b.selectionEnd&&b.selectionEnd(c),b.isDragged=0);e.hide();delete b.oy;delete b.ox;break;default:if(!b.allowMove)break;B=h-b.ox;l=n-b.oy;v=b.ox;ga=b.oy;b.isDragged||(c={chart:c,selectionLeft:(Z?w(v,v+B):t)+.5*T,selectionTop:(k?w(ga,ga+l):p)+.5*T,selectionHeight:0,selectionWidth:0,originalEvent:a.originalEvent},b.selectionStart&&b.selectionStart(c),b.isDragged=1);B=-(v-w(v-(v-C(v+B,t)),pa));l=-(ga-w(ga-(ga-C(ga+l,p)),q));e.attr({x:(Z?
w(v,v+B):t)+.5*T,y:(k?w(ga,ga+l):p)+.5*T,width:Z?F(B):L,height:k?F(l):S})}},ea=function(a){var b=a.data;a=a.originalEvent;var c=a.target||a.originalTarget||a.srcElement||a.relatedTarget||a.fromElement,m=a.type,r=a.layerX,d=a.layerY;void 0===r&&(r=a.pageX-b.chartPosLeft,d=a.pageY-b.chartPosTop);"mousedown"===m&&(c.ishot=r>b.canvasX&&r<b.canvasX2&&d>b.canvasY&&d<b.canvasY2);"mouseup"===m&&setTimeout(function(){c.ishot=!1},1)},n=function(){var a="innerWidth",b="innerHeight",c=u.documentElement||u.body,
r=c;"innerWidth"in k?r=k:(a="clientWidth",b="clientHeight");return function(){return{width:r[a],height:r[b],scrollTop:c.scrollTop,scrollLeft:c.scrollLeft}}}(),$=function(a,b){var c={left:a.offsetLeft||0,top:a.offsetTop||0};for(a=a.offsetParent;a;)c.left+=a.offsetLeft||0,c.top+=a.offsetTop||0,a===u.body||a===u.documentElement||b||(c.left-=a.scrollLeft,c.top-=a.scrollTop),a=a.offsetParent;return c},W=function(a){return a&&a.replace(/\$/g,"$$$$")},pa=function(a,b){return a||!1===a||0===a?a:b},Ca=function(){var a,
b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!1===a||0===a)return a;return""},fa=function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!1===a||0===a)return a},la=function(a,b,c,r){return v.dem.listen(a,b,c,r)},Q=function(a,b,c){return v.dem.unlisten(a,b,c)},ya=function(a){a=a.sourceEvent||a.originalEvent||a;return L&&a&&a.touches&&a.touches[0]||a||R},G=function(){var a;return function(b){void 0===b.pageX&&(b.pageX=b.clientX+(a||(a=k.document.body||k.document.documentElement)).scrollLeft,
b.pageY=b.clientY+a.scrollTop);return b}}(),S=function(a,b){b=G(ya(b));var c=b.pageX,r=b.pageY,m=$(a);return{chartX:c-m.left,chartY:r-m.top,pageX:c,pageY:r}},ba=function(a){return a&&a.replace(/^#?([a-f0-9]+)/ig,"#$1")||"none"},r=function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if(((a=arguments[b])||!1===a||0===a)&&!isNaN(a=Number(a)))return a},B=function(a,b){a=a||!1===a||0===a?Number(a):NaN;return isNaN(a)?null:b?F(a):a},ga=function(a){return"string"===typeof a?a.replace(t,"<br />"):""},
Z=function(a,b){for(var c=b.length,r=-1;c--;)if(a===b[c]){r=c;break}return r},Da=function(){if(Array.isArray)return Array.isArray;var a=Object.prototype.toString,b=a.call([]);return function(c){return a.call(c)===b}}(),T=function(a,b,c,r,m){var d,g,e,h;m?(r.push(a),m.push(b)):(r=[a],m=[b]);if(b instanceof Array)for(d=0;d<b.length;d+=1){try{g=a[d],e=b[d]}catch(n){continue}if("object"!==typeof e)c&&void 0===e||(a[d]=e);else{if(null===g||"object"!==typeof g)g=a[d]=e instanceof Array?[]:{};h=Z(e,m);-1!==
h?g=a[d]=r[h]:T(g,e,c,r,m)}}else for(d in b){try{g=a[d],e=b[d]}catch(B){continue}if(null!==e&&"object"===typeof e)if(h=l.call(e),"[object Object]"===h){if(null===g||"object"!==typeof g)g=a[d]={};h=Z(e,m);-1!==h?g=a[d]=r[h]:T(g,e,c,r,m)}else"[object Array]"===h?(null!==g&&g instanceof Array||(g=a[d]=[]),h=Z(e,m),-1!==h?g=a[d]=r[h]:T(g,e,c,r,m)):a[d]=e;else a[d]=e}return a},xa=function(a,b,c){if("object"!==typeof a&&"object"!==typeof b)return null;if("object"!==typeof b||null===b)return a;"object"!==
typeof a&&(a=b instanceof Array?[]:{});T(a,b,c);return a},va=function(a,b){var c;if(b instanceof Array)for(c=b.length-1;0<=c;--c)"object"!==typeof b[c]?!0===b[c]&&a&&a.splice&&a.splice(c,1):l.call(b[c])===l.call(a[c])&&va(a[c],b[c]);else for(c in b)"object"!==typeof b[c]?!0===b[c]&&a&&a.splice&&a.splice(c,1):l.call(b[c])===l.call(a[c])&&va(a[c],b[c]);return a},qa=function(){var a=/^@window_/g;return function(b,c){var r=b.replace(/\[[\'\"]/g,".").replace(/[\'\"]\]/g,"").replace(/\[/g,".@window_").replace(/\]/g,
"").split("."),d=k,m,g;g="";var e,h,n;h=r.length;for(n=0;n<h;n+=1){e=r[n];m=d;if(e.match(a))g=k[e.replace(a,"")],d=d[g];else{if(void 0===d||null===d)throw(g||e).replace(a,"")+" is not defined";d=d[e]}g=e}!d||"function"!==typeof d.call&&d!==k.alert?setTimeout(function(){throw e.replace(a,"")+"() is not a function";},0):d===k.alert?d(c):d.call(m,c)}}(),Na=function(){var a="FusionChartslinkEval"+parseInt(+new Date,10);return function(b){try{k[a]=new Function(b),eval('window["'+a+'"]();')}catch(c){setTimeout(function(){throw c;
},0)}D?delete k[a]:k[a]=null}}(),ha=function(a,b){a=Number(a);a=isNaN(a)?100:a;void 0!==b&&(a=a*b/100);return a%101},Sa=function(a,b,c){a=a.split(",");var d;void 0!==c&&(c=r(c.split(",")[0]));a[0]=ha(a[0],c);for(d=1;d<b;d+=1)a[d]=a[0]*ha(a[d],c)/100;return a.join(",")},ka=function(b,c,d){var r=0,m=0,g=0;d&&d.match(p)&&(d=d.split(","),r=d[0].slice(d[0].indexOf("(")+1),m=d[1],g=d[2],c||0===c||(c=parseInt(100*d[3].slice(0,d[3].indexOf(")")),10)));if(b)if(b.match(p))d=b.split(","),r=d[0].slice(d[0].indexOf("(")+
1),m=d[1],g=d[2];else{b=b.replace(a,"").split(",")[0];switch(b.length){case 3:b=b.charAt(0)+b.charAt(0)+b.charAt(1)+b.charAt(1)+b.charAt(2)+b.charAt(2);break;case 6:break;default:b=(b+"FFFFFF").slice(0,6)}r=parseInt(b.slice(0,2),16);m=parseInt(b.slice(2,4),16);g=parseInt(b.slice(4,6),16)}c||0===c||(c=100);"string"===typeof c&&(c=c.split(",")[0]);c=parseInt(c,10)/100;return"rgba("+r+","+m+","+g+","+c+")"},sa=function(){var a={};return function(b){var c=(b=b||this)&&b.FCcolor||b,d=c.color,r=c.ratio,
m=c.angle,g=c.alpha,e=c.r,h=c.cx,n=c.cy,B=c.fx,l=c.fy,p=c.gradientUnits,w=c.x1,v=c.y1,G=c.x2,ga=c.y2,Z=1,k,t,C,L;if("string"===typeof b)return a[L="~"+b]||(a[L]=b.replace(/^#?([a-f0-9]{3,6})/ig,"#$1"));d=d||"";if(!d)return k;L=[d,g,r,m,e,h,n,p,B,l,w,G,v,ga].join("_").replace(/[\(\)\s,\xb0#]/g,"_");if(a[L])return a[L];r=r&&(r+"").split(",")||[];g=(g||0===g)&&(g+"").split(",")||[];if(d=d.split(","))if(k="",1===d.length)C=d[0].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),k=g.length?"rgba("+ab(C).join(",")+","+
.01*N(g[0])+")":C.replace(/^#?([a-f0-9]{3,6})/ig,"#$1");else{b=0;for(t=d.length;b<t;b++)C=d[b].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),isNaN(r[b])||(r[b]=N(r[b]),C+=":"+r[b],isNaN(r[b+1])||(r[b+1]=N(r[b+1])+r[b])),isNaN(g[b])||""===g[b]||(Z=.01*g[b]),d[b]="rgba("+ab(C).join(",")+","+Z+")",isNaN(r[b])||(d[b]=d[b]+":"+r[b]);k+=d.join("-");if(void 0!==e||void 0!==B||void 0!==h||c.radialGradient)k="xr("+[B,l,e,h,n,p].join()+")"+k;else{k="-"+k;if(void 0!==w||void 0!==v||void 0!==G||void 0!==ga)k="("+[w,v,
G,ga,p].join()+")"+k;void 0===m&&(m=0);k=360-N(m)%360+k}}return a[L]=k}}(),Ra=function(){return function(){return""}}(),hb=function(b){return b.replace(a,"").replace(c,"#")},La=function(b,c){c=(0>c||100<c?100:c)/100;b=b.replace(a,"");var d=parseInt(b,16),r=Math.floor(d/65536),m=Math.floor((d-65536*r)/256);return("000000"+(r*c<<16|m*c<<8|(d-65536*r-256*m)*c).toString(16)).slice(-6)},za=function(b,c){c=(0>c||100<c?100:c)/100;b=b.replace(a,"");var d=parseInt(b,16),r=Math.floor(d/65536),m=Math.floor((d-
65536*r)/256);return("000000"+(256-(256-r)*c<<16|256-(256-m)*c<<8|256-(256-(d-65536*r-256*m))*c).toString(16)).slice(-6)},ab=function(a){a=parseInt(a,16);var b=Math.floor(a/65536),c=Math.floor((a-65536*b)/256);return[b,c,Math.floor(a-65536*b-256*c)]},Ea=function(a,b){if("object"!==typeof a)return"";if(a.fontSize||a["font-size"])!a.fontSize&&a["font-size"]&&(a.fontSize=a["font-size"],delete a["font-size"]),a.lineHeight=(parseFloat(a.fontSize)||b||10)*v.lineHeightFactor+"px",delete a["line-height"];
!a.lineHeight&&a["line-height"]&&(a.lineHeight=a["line-height"],delete a["line-height"]);return a.lineHeight},db=function(a,b,c,d,m){var g=Ca(a.labelbordercolor,b.bordercolor,c.labelbordercolor,""),e=fa(a.labelbgcolor,b.bgcolor,c.labelbgcolor),h=r(a.labelborderthickness,b.borderthickness,c.labelborderthickness,1);m=r(c.usedataplotcolorforlabels,0)?m||d.color:d.color;g=g?ka(g,r(a.labelborderalpha,b.borderalpha,c.labelborderalpha,a.labelalpha,b.alpha,c.labelalpha,100)):"";a={fontFamily:fa(a.labelfont,
b.font,c.labelfont,d.fontFamily),fontSize:fa(a.labelfontsize,b.fontsize,c.labelfontsize,parseInt(d.fontSize,10))+"px",color:ka(fa(a.labelfontcolor,b.fontcolor,c.labelfontcolor,m),r(a.labelfontalpha,b.fontalpha,c.labelfontalpha,a.labelalpha,b.alpha,c.labelalpha,100)),fontWeight:r(a.labelfontbold,b.fontbold,c.labelfontbold)?"bold":"normal",fontStyle:r(a.labelfontitalic,b.fontitalic,c.labelfontitalic)?"italic":"normal",border:g||e?h+"px solid":"",borderColor:g,borderThickness:h,borderPadding:r(a.labelborderpadding,
b.borderpadding,c.labelborderpadding,2),borderRadius:r(a.labelborderradius,b.borderradius,c.labelborderradius,0),backgroundColor:e?ka(e,r(a.labelbgalpha,b.bgalpha,c.labelbgalpha,a.labelalpha,b.alpha,c.labelalpha,100)):"",borderDash:r(a.labelborderdashed,b.borderdashed,c.labelborderdashed,0)?kb(r(a.labelborderdashlen,b.borderdashlen,c.labelborderdashlen,4),r(a.labelborderdashgap,b.borderdashgap,c.labelborderdashgap,2),h):void 0};a.lineHeight=Ea(a);return a},$a=function(){var a={top:{align:"center",
verticalAlign:"top",textAlign:"center"},right:{align:"right",verticalAlign:"middle",textAlign:"left"},bottom:{align:"center",verticalAlign:"bottom",textAlign:"center"},left:{align:"left",verticalAlign:"middle",textAlign:"right"}},b=/([^\,^\s]+)\)$/g,c=function(a,b){var c;/^(bar|bar3d)$/.test(a)&&(this.isBar=!0,this.yPos="bottom",this.yOppPos="top",this.xPos="left",this.xOppPos="right");c=parseInt(b.labelstep,10);this.labelStep=1<c?c:1;this.showLabel=r(b.showlabels,b.shownames,1);this.is3D=/3d$/.test(a)};
c.prototype={isBar:!1,yPos:"left",yOppPos:"right",xPos:"bottom",xOppPos:"top",addAxisGridLine:function(c,d,r,m,g,e,K,h){var n=""===r?!1:!0,B=0<m||0<e.match(b)[1]?!0:!1,l;if(n||B)B||(e="rgba(0,0,0,0)",m=.1),l={isGrid:!0,width:m,dashStyle:g,color:e,value:d,zIndex:void 0===K?2:K},n&&(d=c.opposite?h?this.xOppPos:this.yOppPos:h?this.xPos:this.yPos,d=a[d],l.label={text:r,style:c.labels.style,textAlign:d.textAlign,align:d.align,verticalAlign:d.verticalAlign,rotation:0,x:0,y:0}),c.plotLines.push(l);return l},
addAxisAltGrid:function(a,b){if(!this.is3D){var c=r(a._lastValue,a.min),d=fa(a._altGrid,!1);d&&a.plotBands.push({isGrid:!0,color:a.alternateGridColor,to:b,from:c,zIndex:1});a._lastValue=b;a._altGrid=!d}},addXaxisCat:function(b,c,d,E,r,m,g,e){var K=a[b.opposite?this.xOppPos:this.xPos];c={isGrid:!0,isDataLabel:!0,width:.1,color:"rgba(0,0,0,0)",value:c,label:{text:E,link:fa(r.labellink,m.link,g.labellink),style:db(r,m,g,b.labels.style,e),textAlign:K.textAlign,align:K.align,verticalAlign:K.verticalAlign,
rotation:0,x:0,y:0}};0!==d%this.labelStep&&(c.stepped=!0,c.label.style=b.steppedLabels.style);b.plotLines.push(c)},addVline:function(a,b,c,d){d=d._FCconf;var E=d.isBar,m=d.divlineStyle,M=ga(b.label),g=Boolean(r(b.showlabelborder,d.showVLineLabelBorder,1)),e=Boolean(r(b.showlabelbackground,1)),K=fa(b.labelhalign,E?"left":"center"),h=fa(b.labelvalign,E?"middle":"bottom").toLowerCase(),n=r(b.labelposition,0),B=r(b.lineposition,.5),l=r(b.showvlines,d.showVLines,1),p=r(b.alpha,d.vLineAlpha,80),w=fa(b.color,
d.vLineColor).replace(/^#?/,"#"),v=e?fa(b.labelbgcolor,d.vLineLabelBgColor,"333333").replace(/^#?/,"#"):"",G=fa(b.labelcolor,d.vLineLabelColor,b.color,d.vLineColor).replace(/^#?/,"#"),k=r(b.thickness,d.vLineThickness,1),Z=.5*k,t=Boolean(Number(fa(b.dashed,0))),C=r(b.dashlen,5),L=r(b.dashgap,2),S=d.smartLabel,pa=parseInt(m.fontSize,10)+2,F=0,q=r(b.rotatelabel,d.rotateVLineLabels)?270:0,B=0>B||1<B?.5:B,n=0>n||1<n?0:n;S.setStyle(m);S=S.getOriSize(M);w=ka(w,l?p:"0");if(E){switch(h){case "top":pa-=S.height+
Z+2;break;case "middle":pa-=.5*S.height+1;break;default:pa+=Z}b.labelhalign||(F-=S.width*n)}else{switch(h){case "top":pa=.5*-S.height+1;break;case "middle":pa=0;break;default:pa=.5*S.height}switch(K){case "left":F+=k;break;case "right":F-=k+1}}a.plotLines.push({isVline:!0,color:w,width:k,value:c-1+B,zIndex:r(b.showontop,d.showVLinesOnTop)?5:3,dashStyle:t?kb(C,L,k):void 0,label:{text:M,align:E?"left":"center",offsetScale:n,rotation:q,y:pa,x:F,textAlign:K,backgroundColor:v,borderWidth:l&&g?1:0,borderType:l&&
g?"solid":"",borderColor:l&&g?G:"",backgroundOpacity:l&&e?fa(b.labelbgalpha,d.vLineLabelBgAlpha)/100:0,style:{color:l?G:w,fontSize:m.fontSize,fontFamily:m.fontFamily,lineHeight:m.lineHeight,backgroundColor:v}}})}};return c.prototype.constructor=c}(),Ga=function(){var a=function(a,c,d,r,m){a=Math.abs(c-a);c=a/(d+1);b(a,d,r)||(m&&Number(c)/Number(r)<(1<r?2:.5)&&(r/=10),c=(Math.floor(c/r)+1)*r,a=c*(d+1));return a},b=function(a,b,d){return c(a/(b+1))>c(d)?!1:!0},c=function(a){a=Math.abs(a);a=String(a);
var b=0,c=a.indexOf(".");-1!=c&&(b=a.length-c-1);return b};return function(c,d,r,m,g,e,K,n){var B,l,w,p,v,G,k,ga=0;c=!0===isNaN(c)||void 0===c?.1:c;d=!0===isNaN(d)||void 0===d?0:d;c===d&&0===c&&(c=.1);g=void 0===typeof g?!0:g;e=void 0===typeof e?!0:e;B=Math.floor(Math.log(Math.abs(c))/Math.LN10);l=Math.floor(Math.log(Math.abs(d))/Math.LN10);l=Math.max(l,B);B=Math.pow(10,l);2>Math.abs(c)/B&&2>Math.abs(d)/B&&(l--,B=Math.pow(10,l));l=Math.floor(Math.log(c-d)/Math.LN10);w=Math.pow(10,l);0<c-d&&10<=B/
w&&(B=w);l=(Math.floor(c/B)+1)*B;0>d?w=-1*(Math.floor(Math.abs(d/B))+1)*B:e?w=0:(w=Math.floor(Math.abs(d/B)-1)*B,w=0>w?0:w);g&&0>=c&&(l=0);g=r||0===r?!0:!1;e=m||0===m?!0:!1;c=!1===g||!0===g&&Number(r)<c&&c-Number(r)>h?l:Number(r);d=!1===e||!0===e&&Number(m)>d&&Number(m)-d>h?w:Number(m);m=Math.abs(c-d);if(!1===e&&!1===g&&n)if(0<c&&0>d)for(r=!1,g=10<B?B/10:B,n=a(d,c,K,g,!1),e=n-(K+1)*g;!1===r;){if(e+=(K+1)*g,b(e,K,g))if(n=e-m,l=e/(K+1),p=Math.min(Math.abs(d),c),w=p==Math.abs(d)?-1:1,0===K)r=!0;else for(G=
1;G<=Math.floor((K+1)/2);G++)v=l*G,!(v-p>n)&&v>p&&(k=e-v,k/l==Math.floor(k/l)&&v/l==Math.floor(v/l)&&(m=e,c=-1==w?k:v,d=-1==w?-v:-k,r=!0))}else r=a(d,c,K,B,!0),n=r-m,m=r,0<c?c+=n:d-=n;else n&&(r=function(a,c,d){for(var r=0,m=1,M;;){M=a+r*m;M=0===M?1:M;if(b(c,M,d))break;r=-1==m||r>a?++r:r;if(25<r){M=0;break}m=r<=a?-1*m:1}return M},0<K&&(n=r(K,m,B),0===n&&(n=r(K,m+1,B),ga=1),K=n));return{Max:c,Min:d,Range:m,interval:B,divGap:(c-d+ga)/(K+1)}}}(),Xb=function(){var a=function(a,b,c){var d=c.jsVars&&c.jsVars.smartLabel,
r=a.offsetWidth,m=a.offsetHeight,M=this.chart;a=this.title;var g=c._chartMessageImageStyle,e=!1,h;void 0!==b&&(b=b.replace(/^\s+/,"").replace(/\s+$/,""),/^i\s*[\-]\s*/i.test(b)?(e=!0,h=b.replace(/^i\s*[\-]\s*/i,"")):h=b.replace(/^\\/,""));a.y=m/2;a.x=r/2;M.bgSWF=a.text=void 0;b=h;e?(M.bgSWF=b,M.bgImageHAlign=g.imageHAlign,M.bgImageVAlign=g.imageVAlign,M.bgImageScale=g.imageScale,M.bgSWFAlpha=g.imageAlpha):void 0!==b&&(d?(Ea(a.style),d.setStyle(a.style),d=d.getSmartText(ga(b),r,m),a.text=d.text):a.text=
ga(b),a.verticalAlign="middle");a.style=c._chartMessageStyle;delete c._chartMessageImageStyle;delete c._chartMessageStyle};a.prototype={chart:{events:{},margin:[0,0,0,0],backgroundColor:{FCcolor:{alpha:0}}},credits:{href:P,text:"FusionCharts XT Trial",enabled:!1},legend:{enabled:!1},title:{text:"",style:{fontFamily:"Verdana,sans",fontSize:"10px",color:"#666666"}},plotOptions:{series:{}},series:[{}],exporting:{enabled:!1},nativeMessage:!0};return a.prototype.constructor=a}(),Kb={"true":{"true":{"true":"center",
"false":"center"},"false":{"true":"center","false":"center"}},"false":{"true":{"true":"right","false":"left"},"false":{"true":"left","false":"right"}}},Ub=function(){return function(a,b,d,g,e,h,n){var B,l=d.trendStyle,w,p,v,G,k,Z,t,C,L,S,F,q,T,ba=h?"xAxis":"dataLabels";if(h?d.showVLines:d.showTrendlines)for(B=0,p=a.length;B<p;B+=1)if((T=a[B])&&T.line)for(w=0,v=T.line.length;w<v;w+=1)G=T.line[w],S=d.numberFormatter.getCleanValue(fa(G.startvalue,G.value,0)),F=d.numberFormatter.getCleanValue(fa(G.endvalue,
fa(G.startvalue,G.value,0))),h?C=b:g&&G.parentyaxis&&/^s$/i.test(G.parentyaxis)?(C=b[1],q=1):C=b[0],Z=C.max,t=C.min,k=!1,Z>=S&&Z>=F&&t<=S&&t<=F&&(g&&G.parentyaxis&&/^s$/i.test(G.parentyaxis)?k="1"!==fa(G.valueonleft,d.trendlineValuesOnOpp):g||(k="1"===fa(G.valueonright,d.trendlineValuesOnOpp)),Z=Boolean(r(G.istrendzone,h?1:0)),(t=(h?d.showVLineLabels:d.showTrendlineLabels)?ga(fa(G.displayvalue,d.numberFormatter[ba](k?F:S,q))):"")?(L=S<F,k={text:t,textAlign:e?"center":k?"left":"right",align:e?Kb[Z][!n][L]:
k?"right":"left",verticalAlign:e?"bottom":"middle",rotation:0,x:0,y:0,style:l},t=fa(G.color,d.trendlineColor),G.alwaysVisible=Z,t&&(k.style=xa({},l),k.style.color=t.replace(c,"#"))):k=void 0,t=pa(ga(fa(G.tooltext,T.tooltext,d.trendLineToolText))),t=m(t,[7,15,16,17,18,19],{startValue:S,startDataValue:d.numberFormatter[ba](S,q),endValue:F,endDataValue:d.numberFormatter[ba](F,q),axisName:C.title&&C.title.text},G),L=r(G.thickness,d.trendlineThickness,1),Z?C.plotBands.push({isTrend:!0,color:ka(fa(G.color,
d.trendlineColor),fa(G.alpha,d.trendlineAlpha,40)),from:S,to:F,label:k,zIndex:d.is3d||"1"!==fa(G.showontop,d.showTrendlinesOnTop)?3:5,tooltext:t,alwaysVisible:G.alwaysVisible}):C.plotLines.push({isTrend:!0,color:ka(fa(G.color,d.trendlineColor,d.trendlineColor),fa(G.alpha,d.trendlineAlpha,99)),value:S,to:F,width:L,dashStyle:"1"==fa(G.dashed,d.trendlinesAreDashed)?kb(r(G.dashlen,d.trendlinesDashLen),r(G.dashgap,d.trendlinesDashGap),L):void 0,label:k,zIndex:d.is3d||"1"!==fa(G.showontop,d.showTrendlinesOnTop)?
3:5,tooltext:t}))}}(),kb=function(a,b,c,d){return d||void 0===d?[a,b]:""},nb=function(){},gb=function(a,b,c){var d,r=gb[a];r||(r=function(){},r.prototype=c instanceof nb?c:new nb,r.prototype.constructor=r,r=gb[a]=new r);c&&(r.base=c);r.name=a;for(d in b)switch(typeof b[d]){case "object":if(b[d]instanceof nb){r[d]=b[d][d];break}default:r[d]=b[d];break;case "undefined":delete r[d]}return this instanceof gb?(a=function(){},a.prototype=r,a.prototype.constructor=a,new a):r},m=function(){var a=[{regex:/((^|[^\\])((\\)\\)*\$cleanvalue)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cleanvalue))/ig,argIndex:2,argKey:"cleanvalue"},{regex:/((^|[^\\])((\\)\\)*\$datavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$datavalue))/ig,argIndex:2,argKey:"formattedValue"},{regex:/((^|[^\\])((\\)\\)*\$value)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$value))/ig,argIndex:3,argKey:"value"},{regex:/((^|[^\\])((\\)\\)*\$label)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$label))/ig,argIndex:2,argKey:"label"},{regex:/((^|[^\\])((\\)\\)*\$seriesname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$seriesname))/ig,
argIndex:5,argKey:"seriesname"},{regex:/((^|[^\\])((\\)\\)*\$yaxisname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$yaxisname))/ig,argIndex:2,argKey:"yaxisName"},{regex:/((^|[^\\])((\\)\\)*\$xaxisname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xaxisname))/ig,argIndex:2,argKey:"xaxisName"},{regex:/((^|[^\\])((\\)\\)*\$displayvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$displayvalue))/ig,argIndex:3,argKey:"displayvalue"},{regex:/((^|[^\\])((\\)\\)*\$xdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xdatavalue))/ig,
argIndex:2,argKey:"xDataValue"},{regex:/((^|[^\\])((\\)\\)*\$ydatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$ydatavalue))/ig,argIndex:2,argKey:"yDataValue"},{regex:/((^|[^\\])((\\)\\)*\$xvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xvalue))/ig,argIndex:3,argKey:"x"},{regex:/((^|[^\\])((\\)\\)*\$yvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$yvalue))/ig,argIndex:3,argKey:"y"},{regex:/((^|[^\\])((\\)\\)*\$zvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$zvalue))/ig,argIndex:3,argKey:"z"},{regex:/((^|[^\\])((\\)\\)*\$name)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$name))/ig,argIndex:3,argKey:"name"},{regex:/((^|[^\\])((\\)\\)*\$percentValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentValue))/ig,argIndex:2,argKey:"percentValue"},{regex:/((^|[^\\])((\\)\\)*\$startValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$startValue))/ig,argIndex:2,argKey:"startValue"},{regex:/((^|[^\\])((\\)\\)*\$startDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$startDataValue))/ig,argIndex:2,argKey:"startDataValue"},{regex:/((^|[^\\])((\\)\\)*\$endValue)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$endValue))/ig,argIndex:2,argKey:"endValue"},{regex:/((^|[^\\])((\\)\\)*\$endDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$endDataValue))/ig,argIndex:2,argKey:"endDataValue"},{regex:/((^|[^\\])((\\)\\)*\$axisName)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$axisName))/ig,argIndex:2,argKey:"axisName"},{regex:/((^|[^\\])((\\)\\)*\$cumulativevalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativevalue))/ig,argIndex:2,argKey:"cumulativeValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativedatavalue)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativedatavalue))/ig,argIndex:2,argKey:"cumulativeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativePercentValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativePercentValue))/ig,argIndex:2,argKey:"cumulativePercentValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativepercentdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativepercentdatavalue))/ig,argIndex:2,argKey:"cumulativePercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$sum)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$sum))/ig,
argIndex:2,argKey:"sum"},{regex:/((^|[^\\])((\\)\\)*\$unformattedsum)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedsum))/ig,argIndex:2,argKey:"unformattedSum"},{regex:/((^|[^\\])((\\)\\)*\$targetvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$targetvalue))/ig,argIndex:2,argKey:"targetValue"},{regex:/((^|[^\\])((\\)\\)*\$targetdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$targetdatavalue))/ig,argIndex:2,argKey:"targetDataValue"},{regex:/((^|[^\\])((\\)\\)*\$processname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$processname))/ig,
argIndex:2,argKey:"processName"},{regex:/((^|[^\\])((\\)\\)*\$start)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$start))/ig,argIndex:2,argKey:"start"},{regex:/((^|[^\\])((\\)\\)*\$end)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$end))/ig,argIndex:2,argKey:"end"},{regex:/((^|[^\\])((\\)\\)*\$percentcomplete)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentcomplete))/ig,argIndex:2,argKey:"percentComplete"},{regex:/((^|[^\\])((\\)\\)*\$taskpercentcomplete)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskpercentcomplete))/ig,
argIndex:2,argKey:"taskPercentComplete"},{regex:/((^|[^\\])((\\)\\)*\$taskstartdate)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskstartdate))/ig,argIndex:2,argKey:"taskStartDate"},{regex:/((^|[^\\])((\\)\\)*\$taskenddate)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskenddate))/ig,argIndex:2,argKey:"taskEndDate"},{regex:/((^|[^\\])((\\)\\)*\$tasklabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tasklabel))/ig,argIndex:2,argKey:"taskLabel"},{regex:/((^|[^\\])((\\)\\)*\$date)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$date))/ig,
argIndex:2,argKey:"date"},{regex:/((^|[^\\])((\\)\\)*\$percentofprevvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentofprevvalue))/ig,argIndex:2,argKey:"percentOfPrevValue"},{regex:/((^|[^\\])((\\)\\)*\$sname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$sname))/ig,argIndex:2,argKey:"sName"},{regex:/((^|[^\\])((\\)\\)*\$lname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lname))/ig,argIndex:2,argKey:"lName"},{regex:/((^|[^\\])((\\)\\)*\$fromid)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromid))/ig,argIndex:2,
argKey:"fromId"},{regex:/((^|[^\\])((\\)\\)*\$fromlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromlabel))/ig,argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toid)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toid))/ig,argIndex:2,argKey:"toId"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/ig,argIndex:2,argKey:"toLabel"},{regex:/((^|[^\\])((\\)\\)*\$fromxvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromxvalue))/ig,argIndex:2,argKey:"fromXValue"},
{regex:/((^|[^\\])((\\)\\)*\$fromyvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromyvalue))/ig,argIndex:2,argKey:"fromYValue"},{regex:/((^|[^\\])((\\)\\)*\$fromxdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromxdatavalue))/ig,argIndex:2,argKey:"fromXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromydatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromydatavalue))/ig,argIndex:2,argKey:"fromYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromlabel))/ig,
argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toxvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toxvalue))/ig,argIndex:2,argKey:"toXValue"},{regex:/((^|[^\\])((\\)\\)*\$toyvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toyvalue))/ig,argIndex:2,argKey:"toYValue"},{regex:/((^|[^\\])((\\)\\)*\$toxdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toxdatavalue))/ig,argIndex:2,argKey:"toXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$toydatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toydatavalue))/ig,
argIndex:2,argKey:"toYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/ig,argIndex:2,argKey:"toLabel"},{regex:/((^|[^\\])((\\)\\)*\$openvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$openvalue))/ig,argIndex:2,argKey:"openValue"},{regex:/((^|[^\\])((\\)\\)*\$closevalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$closevalue))/ig,argIndex:2,argKey:"closeValue"},{regex:/((^|[^\\])((\\)\\)*\$highvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$highvalue))/ig,
argIndex:2,argKey:"highValue"},{regex:/((^|[^\\])((\\)\\)*\$lowvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lowvalue))/ig,argIndex:2,argKey:"lowValue"},{regex:/((^|[^\\])((\\)\\)*\$opendatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$opendatavalue))/ig,argIndex:2,argKey:"openDataValue"},{regex:/((^|[^\\])((\\)\\)*\$closedatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$closedatavalue))/ig,argIndex:2,argKey:"closeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$highdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$highdatavalue))/ig,
argIndex:2,argKey:"highDataValue"},{regex:/((^|[^\\])((\\)\\)*\$lowdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lowdatavalue))/ig,argIndex:2,argKey:"lowDataValue"},{regex:/((^|[^\\])((\\)\\)*\$maxvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$maxvalue))/ig,argIndex:2,argKey:"maxValue"},{regex:/((^|[^\\])((\\)\\)*\$maxdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$maxdatavalue))/ig,argIndex:2,argKey:"maxDataValue"},{regex:/((^|[^\\])((\\)\\)*\$minvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$minvalue))/ig,
argIndex:2,argKey:"minValue"},{regex:/((^|[^\\])((\\)\\)*\$mindatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$mindatavalue))/ig,argIndex:2,argKey:"minDataValue"},{regex:/((^|[^\\])((\\)\\)*\$q1)/ig,argIndex:2,argKey:"Q1"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQ1)/ig,argIndex:2,argKey:"unformattedQ1"},{regex:/((^|[^\\])((\\)\\)*\$q3)/ig,argIndex:2,argKey:"Q3"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQ3)/ig,argIndex:2,argKey:"unformattedQ3"},{regex:/((^|[^\\])((\\)\\)*\$median)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$median))/ig,
argIndex:2,argKey:"median"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMedian)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMedian))/ig,argIndex:2,argKey:"unformattedMedian"},{regex:/((^|[^\\])((\\)\\)*\$SD)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$SD))/ig,argIndex:2,argKey:"SD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedsd)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedsd))/ig,argIndex:2,argKey:"unformattedsd"},{regex:/((^|[^\\])((\\)\\)*\$QD)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$QD))/ig,
argIndex:2,argKey:"QD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQD)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedQD))/ig,argIndex:2,argKey:"unformattedQD"},{regex:/((^|[^\\])((\\)\\)*\$MD)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$MD))/ig,argIndex:2,argKey:"MD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMD)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMD))/ig,argIndex:2,argKey:"unformattedMD"},{regex:/((^|[^\\])((\\)\\)*\$mean)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$mean))/ig,argIndex:2,
argKey:"mean"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMean)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMean))/ig,argIndex:2,argKey:"unformattedMean"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMean)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMean))/ig,argIndex:2,argKey:"unformattedMean"},{regex:/((^|[^\\])((\\)\\)*\$volumeValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$volumeValue))/ig,argIndex:2,argKey:"volumeValue"},{regex:/((^|[^\\])((\\)\\)*\$volumeDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$volumeDataValue))/ig,
argIndex:2,argKey:"volumeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromXValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromXValue))/ig,argIndex:2,argKey:"fromXValue"},{regex:/((^|[^\\])((\\)\\)*\$fromYValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromYValue))/ig,argIndex:2,argKey:"fromYValue"},{regex:/((^|[^\\])((\\)\\)*\$fromXDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromXDataValue))/ig,argIndex:2,argKey:"fromXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromYDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromYDataValue))/ig,
argIndex:2,argKey:"fromYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromLabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromLabel))/ig,argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toXValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toXValue))/ig,argIndex:2,argKey:"toXValue"},{regex:/((^|[^\\])((\\)\\)*\$toYValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toYValue))/ig,argIndex:2,argKey:"toYValue"},{regex:/((^|[^\\])((\\)\\)*\$toXDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toXDataValue))/ig,
argIndex:2,argKey:"toXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$toYDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toYDataValue))/ig,argIndex:2,argKey:"toYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/ig,argIndex:2,argKey:"toLabel"},{regex:/((^|[^\\])((\\)\\)*\$tlLabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tlLabel))/ig,argIndex:5,argKey:"tlLabel"},{regex:/((^|[^\\])((\\)\\)*\$trlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$trlabel))/ig,argIndex:5,
argKey:"trLabel"},{regex:/((^|[^\\])((\\)\\)*\$bllabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$bllabel))/ig,argIndex:5,argKey:"blLabel"},{regex:/((^|[^\\])((\\)\\)*\$brlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$brlabel))/ig,argIndex:5,argKey:"brLabel"},{regex:/((^|[^\\])((\\)\\)*\$rowlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$rowlabel))/ig,argIndex:5,argKey:"rowLabel"},{regex:/((^|[^\\])((\\)\\)*\$columnlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$columnlabel))/ig,argIndex:5,argKey:"columnLabel"},
{regex:/((^|[^\\])((\\)\\)*\$errorvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorvalue))/ig,argIndex:2,argKey:"errorValue"},{regex:/((^|[^\\])((\\)\\)*\$errordatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errordatavalue))/ig,argIndex:2,argKey:"errorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$errorpercentvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorpercentvalue))/ig,argIndex:2,argKey:"errorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$errorpercentdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorpercentdatavalue))/ig,
argIndex:2,argKey:"errorPercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorValue))/ig,argIndex:2,argKey:"horizontalErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorDataValue))/ig,argIndex:2,argKey:"horizontalErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorValue))/ig,argIndex:2,argKey:"verticalErrorValue"},
{regex:/((^|[^\\])((\\)\\)*\$verticalErrorDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorDataValue))/ig,argIndex:2,argKey:"verticalErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorPercent)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorPercentValue))/ig,argIndex:2,argKey:"horizontalErrorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorPercentDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorPercentDataValue))/ig,argIndex:2,argKey:"horizontalErrorPercentDataValue"},
{regex:/((^|[^\\])((\\)\\)*\$verticalErrorPercent)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorPercentValue))/ig,argIndex:2,argKey:"verticalErrorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorPercentDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorPercentDataValue))/ig,argIndex:2,argKey:"verticalErrorPercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$xaxispercentvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xaxispercentvalue))/ig,argIndex:2,argKey:"xAxisPercentValue"},
{regex:/((^|[^\\])((\\)\\)*\$percentdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentdatavalue))/ig,argIndex:2,argKey:"percentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$trType)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$trType))/ig,argIndex:4,argKey:"trtype"},{regex:/((^|[^\\])((\\)\\)*\$tlType)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tlType))/ig,argIndex:4,argKey:"tltype"},{regex:/((^|[^\\])((\\)\\)*\$brType)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$brType))/ig,argIndex:4,argKey:"brtype"},{regex:/((^|[^\\])((\\)\\)*\$blType)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$blType))/ig,argIndex:4,argKey:"bltype"},{regex:/((^|[^\\])((\\)\\)*\$colorRangeLabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$colorRangeLabel))/ig,argIndex:5,argKey:"colorRangeLabel"},{regex:/((^|[^\\])((\\)\\)*\$zdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$zdatavalue))/ig,argIndex:2,argKey:"zDataValue"}],b=[],c,d=a.length;for(c=0;c<d;c+=1)b.push(c);return function(){var c=arguments[0],d=arguments[1],r,m,g,e,h;Da(d)||(d=b);if(c)for(h=d.length,e=0;e<h;e+=
1)if(g=a[d[e]])r=W(pa((m=arguments[g.argIndex])&&m[g.argKey],"")+""),c=c.replace(g.regex,"$2$4"+(g.parsingMethod?g.parsingMethod(r):r)),c=c.replace(g.escapeRegex,"$2$4$5");return c}}();e.core._setLineHeightFactor=function(a){!(a=N(a))||0>a||(v.lineHeightFactor=a)};e.extend(v,{BLANKSTRINGPLACEHOLDER:"#BLANK#",BLANKSTRING:"",COLOR_BLACK:"000000",COLOR_GLASS:"rgba(255, 255, 255, 0.3)",COLOR_WHITE:"FFFFFF",COLOR_TRANSPARENT:"rgba(0,0,0,0)",HASHSTRING:"#",BREAKSTRING:"<br />",STRINGSTRING:"string",OBJECTSTRING:"object",
COMMASTRING:",",ZEROSTRING:"0",SAMPLESTRING:"Ay0",TESTSTR:"Ag",ONESTRING:"1",DECIMALSTRING:".",STRINGUNDEFINED:"undefined",POSITION_TOP:"top",POSITION_RIGHT:"right",POSITION_BOTTOM:"bottom",POSITION_LEFT:"left",POSITION_CENTER:"center",POSITION_MIDDLE:"middle",POSITION_START:"start",POSITION_END:"end",FC_CONFIG_STRING:"_FCconf",SHAPE_RECT:"rect",HUNDREDSTRING:"100",PXSTRING:"px",COMMASPACE:", ",TEXTANCHOR:"text-anchor",TOUCH_THRESHOLD_PIXELS:15,CLICK_THRESHOLD_PIXELS:5,regex:{stripWhitespace:J,dropHash:c,
startsRGBA:p,cleanColorCode:a,breakPlaceholder:t,hexcode:/^#?[0-9a-f]{6}/i},fireEvent:function(a,b,c,d){v.dem.fire(a,b,c,d)},plotEventHandler:function(a,c,d){c=c||{};var r=c.type,m=S(a.container,c),m=xa(m,this.data("eventArgs")),g=a.logic.fireGroupEvent,h=this.data("groupId"),n=function(a,d){c.FusionChartsPreventEvent=!0;b&&d.toolText&&v.toolTip&&v.toolTip.preventTooltip()};"index"in m&&!("dataIndex"in m)&&(m.dataIndex=m.index);"value"in m&&!("dataValue"in m)&&(m.dataValue=m.value);d=fa(d,"dataplotclick").toLowerCase();
"dataplotrollover"===d?(c.FusionChartsPreventEvent=!1,g?e.raiseEventGroup(h,d,m,a.fusionCharts,void 0,void 0,n):e.raiseEvent(d,m,a.logic.chartInstance,void 0,void 0,n)):g&&"dataplotclick"!==d?e.raiseEventGroup(h,d,m,a.fusionCharts):e.raiseEvent(d,m,a.logic.chartInstance);"click"!==r&&"mouseup"!==r&&"touchend"!==r||!/click/i.test(d)||a.linkClickFN.call({link:m.link},a)},getEventCoordinate:G,getMouseCoordinate:S,addEvent:la,removeEvent:Q,getTouchEvent:ya,extend2:xa,deltend:function(a,b){if("object"!==
typeof a||"object"!==typeof b)return null;va(a,b);return a},imprint:function(a,b,c){var d;if("object"!==typeof a||null===a)return b;if("object"!==typeof b||null===b)return a;for(d in b)if(void 0===a[d]||!c&&null===a[d])a[d]=b[d];return a},pluck:fa,pluckNumber:r,getFirstDefinedValue:function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!1===a||0===a||""==a)return a},createElement:function(a,b,c){a=u.createElement(a);for(var d in b)a.setAttribute(d,b[d]);c&&c.appendChild&&c.appendChild(a);
return a},hashify:ba,pluckFontSize:function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if(((a=arguments[b])||!1===a||0===a)&&!isNaN(a=Number(a)))return 1>a?1:a;return 1},getValidValue:pa,getPosition:$,getViewPortDimension:n,bindSelectionEvent:function(a,b){b=b||{};var c=a.options.chart,d=a.container,m=c.zoomType,g=xa({},b.attr||{}),e=g["stroke-width"]=r(g.strokeWidth,g["stroke-width"],1),h=$(d),n=a.eventListeners||(a.eventListeners=[]);b=xa({chart:a,zoomX:/x/.test(m),zoomY:/y/.test(m),canvasY:a.canvasTop,
canvasX:a.canvasLeft,canvasW:a.canvasWidth,canvasH:a.canvasHeight,canvasX2:a.canvasLeft+a.canvasWidth,canvasY2:a.canvasTop+a.canvasHeight,strokeWidth:e,chartPosLeft:h.left,chartPosTop:h.top,attr:g},b);g.stroke=Ca(g.stroke,"rgba(51,153,255,0.8)");g.fill=Ca(g.fill,"rgba(185,213,241,0.3)");g.ishot=!0;d&&(Q(d,"pointerdrag",oa),n.push(la(d,"pointerdrag",oa,b)));c.link&&(Q(a.container,"mouseup mousedown",ea),n.push(la(a.container,"mouseup mousedown",ea,b)))},createContextMenu:function(a){var c=a.chart,
d=c.smartLabel,r=c.logic.hcJSON&&c.logic.hcJSON.chart.useRoundEdges,m=v.Raphael,g=function(a){var b=a.menufillcolor&&ba(a.menufillcolor),c=a.menulabelcolor&&ba(a.menulabelcolor),d=a.menufillhovercolor&&ba(a.menufillhovercolor);a=a.menulabelhovercolor&&ba(a.menulabelhovercolor);return{attrs:{backgroundColor:b,color:c},hover:{backgroundColor:d,color:a}}}(c.definition.chart),e=function(a,b,c){b=b||{};a=(a=(a=a&&m.tintshade(a.color,.7))&&m.getRGB(a))&&"rgb("+[a.r,a.g,a.b].join()+")";return{backgroundColor:b.backgroundHoverColor||
c.backgroundColor||a||"rgb(64, 64, 64)",color:b.hoverColor||c.color||"#FFFFFF"}}(a.basicStyle,a.hover,g.hover),h=function(a,b,c){b=xa({},b||{});b=xa(b,a);return{fontFamily:b.fontFamily||"Verdana,sans",fontSize:b.fontSize||"10px",color:b.color||c.color||"#000000",backgroundColor:b.backgroundColor||c.backgroundColor||"rgb(255, 255, 255)"}}(a.basicStyle,a.attrs,g.attrs),n={textAlign:"left",align:"left",paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",cursor:"pointer",borderWidth:"0px"},B=a.items,
l=a.position,w=a.verticalPadding||3,p=a.horizontalPadding||6,G={},k,ga,t,Z,S,L,F,pa,q,T,Da,P,R;if(c)k=$(c.container);else return!1;Z=function(){var a=G.items,c=a.length,m=0,g=0,e=0,E,s;G.menuItems||(G.menuItems=[]);for(d.setStyle(h);c--;)E=a[c],E=d.getOriSize(E.text),e||(e=E.height+2*w),m+=e,g=C(g,E.width+2*p);G.height=m;G.width=g;G.itemH=e;this.style.width=g+"px";G.menuRect||(m=G.menuRect=u.createElement("div"),m.style.border="1px solid rgb(100, 100, 100)",r&&(m.style.mozBorderRadius="4px",m.style.webkitBorderRadius=
"4px",m.style.borderRadius="4px",m.style.overflow="hidden"),b&&!D?m.style.filter="progid:DXImageTransform.Microsoft.Shadow(Color=#999999,direction=135,strength=3)":(m.style.mozBoxShadow="3px 3px 3px #999",m.style.webkitBoxShadow="3px 3px 3px #999",m.style.boxShadow="3px 3px 3px #999"),this.appendChild(m));g=a.length;for(c=0;c<g;c+=1)if(E=a[c],G.menuItems[c])G.menuItems[c].label.innerHTML=E.text;else{G.menuItems[c]={};m=G.menuItems[c].box=u.createElement("div");m.style.height=e+"px";m.style.lineHeight=
e+"px";for(s in n)m.style[s]=n[s];for(s in h)m.style[s]=h[s];G.menuRect.appendChild(m);m.innerHTML=E.text;v.dem.listen(m,"click",R);v.dem.listen(m,"pointerhover",T);G.menuItems[c].box._itemIdx=c}for(;G.menuItems[c];)G.menuItems[c].box.parentNode.removeChild(G.menuItems[c].box),G.menuItems.splice(c,1)};S=function(){t||(t=u.createElement("div"),t.style.position="absolute",t.style.zIndex="50",t.style.display="none",c.container.appendChild&&c.container.appendChild(t));return t};L=function(){ga=setTimeout(G.hide,
800)};F=function(){ga&&clearTimeout(ga)};pa=function(a){var b=a.x;a=a.y;var d={x:b,y:a},m=G.width,r=G.height,g=c.chartHeight,s=c.chartWidth;b+m>s&&0<b-m?d.x-=m:b+m>s&&(d.x=0);a+r>g&&0<a-r&&(d.y-=r);return d};q=function(){G.hide()};T=function(a){a.target&&a.target.parentNode&&("start"===a.state?Da:P).call(a.target)};Da=function(){var a=G.menuItems[this._itemIdx],b;F();for(b in e)a.box.style[b]=e[b]};P=function(){var a=G.menuItems[this._itemIdx],b;for(b in h)a.box.style[b]=h[b];L()};R=function(a){var b=
G.items[this._itemIdx];b.onclick&&b.onclick.call(b,a);a.originalEvent.stopPropagation?a.originalEvent.stopPropagation():a.originalEvent.cancelBubble=!0;G.hide()};G.showItem=function(a){a=this.menuItems[a];var b=this.height,c=this.itemH;a&&a._isHidden&&(a.box.style.display="",this.height=b+c,a._isHidden=!1,a=pa(l),this.left=a.x,this.top=a.y)};G.hideItem=function(a){a=this.menuItems[a];var b=this.height,c=this.itemH;a&&!a._isHidden&&(a.box.style.display="none",this.height=b-c,a._isHidden=!0,a=pa(l),
this.left=a.x,this.top=a.y)};G.redraw=function(){var a=this.menuContainer;this.items=B;a?Z.call(this.menuContainer):l&&void 0!==l.x&&void 0!==l.y?(this.menuContainer=S(),Z.call(this.menuContainer),a=pa(l),this.left=a.x,this.top=a.y,this.menuContainer.style.left=this.left+"px",this.menuContainer.style.top=this.top+"px"):(this.menuContainer=S(),Z.call(this.menuContainer))};G.show=function(a){var b=this;a&&void 0!==a.x&&void 0!==a.y?(a=pa(a),b.menuContainer.style.left=a.x+"px",b.menuContainer.style.top=
a.y+"px"):(b.menuContainer.style.left=b.left+"px",b.menuContainer.style.top=b.top+"px");b.menuContainer.style.display="";setTimeout(function(){b.visible=!0;m.click(q)},400)};G.hide=function(){this.visible&&(this.visible=!1,G.menuContainer.style.display="none",G.menuContainer.style.left=-G.width+"px",G.menuContainer.style.top=-G.height+"px",m.unclick(q))};G.update=function(a){a&&a.length&&(this.items=a,this.redraw())};G.updatePosition=function(a){var b=k.left,d=k.top;k=$(c.container);a?(l=a,a=pa(a),
this.left=a.x,this.top=a.y):(this.left-=b-k.left,this.top-=d-k.top)};G.add=function(a){var b=this.menuItems,c=b.length,m;d.setStyle(h);this.width=C(this.width,d.getOriSize(a.text).width);b[c]={};b=b[c].box=u.createElement("div");b.style.height=this.itemH+"px";b.style.lineHeight=this.itemH+"px";for(m in n)b.style[m]=n[m];for(m in h)b.style[m]=h[m];G.menuRect.appendChild(b);b.innerHTML=a.text;v.dem.listen(b,"click",R);v.dem.listen(b,"pointerhover",T);G.menuItems[c].box._itemIdx=c;this.height+=this.itemH};
G.removeItems=function(){for(var a=this.menuItems,b=a&&a.length,c;b--;)c=a[b],v.dem.unlisten(c.box,"click",R),v.dem.unlisten(c.box,"pointerhover",T),c.box&&c.box.parentNode&&c.box.parentNode.removeChild(c.box);delete this.menuItems;delete this.items};G.setPosition=function(a){void 0!==a.x&&void 0!==a.y&&(this.menuContainer.style.x=a.x,this.menuContainer.style.y=a.y)};G.destroy=function(){this.removeItems();this.menuContainer.parentNode.removeChild(this.menuContainer)};B&&B.length&&(G.redraw(),G.hide());
return G},getDefinedColor:function(a,b){return a||0===a||""===a?a:b},getFirstValue:Ca,getFirstColor:function(a){a=a.split(",")[0];a=a.replace(J,"");""==a&&(a="000000");return a.replace(c,"#")},getColorCodeString:function(a,b){var c="",d,m,r=0,g=b.split(",");for(m=g.length;r<m;r+=1)d=g[r].split("-"),c=2===d.length?"-1"!==d[0].indexOf("dark")?c+(za(a,100-parseInt(d[1],10))+","):c+(La(a,100-parseInt(d[1],10))+","):c+(g[r]+",");return c.substring(0,c.length-1)},pluckColor:function(a){if(pa(a))return a=
a.split(",")[0],a=a.replace(J,""),""==a&&(a="000000"),a.replace(c,"#")},toRaphaelColor:sa,gradientify:Ra,trimString:function(a){a=a.replace(/^\s\s*/,"");for(var b=/\s/,c=a.length;b.test(a.charAt(--c)););return a.slice(0,c+1)},getFirstAlpha:function(a){a=parseInt(a,10);if(isNaN(a)||100<a||0>a)a=100;return a},parsePointValue:B,parseUnsafeString:ga,parseTooltext:m,toPrecision:function(a,b){var c=g(10,b);return d(a*c)/c},hasTouch:q,CREDIT_HREF:P,CREDIT_STRING:"FusionCharts XT Trial",getSentenceCase:function(a){a=
a||"";return a.charAt(0).toUpperCase()+a.substr(1)},getCrispValues:function(a,b,c){var m=c%2/2;c=d(a+m)-m;a=d(a+b+m)-m-c;return{position:c,distance:a}},regescape:function(a){return a&&a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},regReplaceEscape:W,isArray:Da,stubFN:function(){},falseFN:function(){return!1},stableSort:function(a,b){var c=a.length,d;for(d=0;d<c;d++)a[d].ssI=d;a.sort(function(a,c){var d=b(a,c);return 0===d?a.ssI-c.ssI:d});for(d=0;d<c;d++)delete a[d].ssI},hasSVG:D,isIE:b,lineHeightFactor:1.2,
getLinkAction:function(a,b){var c=function(a){return a};return function(d){d=d||this.series&&this.series.chart;var m=a.chart||a.map||{},g=r(m.unescapelinks,1),m=r(m.clickurloverridesplotlinks,0),h=Ca(this.link,"");d=d&&d.options&&d.options.chart&&d.options.chart.link||"";var n=this.options&&this.options.chart&&this.options.chart.link||"",B=m?fa(d,n,h):fa(h,n,d),l=B,G,w,p,v,ga,t,Z,C,S,L;void 0!==B&&(g&&(B=k.decodeURIComponent?k.decodeURIComponent(B):k.unescape(B)),B=B.replace(/^\s+/,"").replace(/\s+$/,
""),-1!==B.search(/^[a-z]*\s*[\-\:]\s*/i)&&(ga=B.split(/\s*[\-\:]\s*/)[0].toLowerCase(),L=ga.length),setTimeout(function(){switch(ga){case "j":B=B.replace(/^j\s*\-/i,"j-");G=B.indexOf("-",2);-1===G?qa(B.slice(2)):qa(B.substr(2,G-2).replace(/\s/g,""),B.slice(G+1));break;case "javascript":Na(B.replace(/^javascript\s*\:/i,""));break;case "n":B.replace(/^n\s*\-/i,"n-");k.open(c(B.slice(2),g));break;case "f":B=B.replace(/^f\s*\-/i,"f-");G=B.indexOf("-",2);-1!==G?(w=B.substr(2,G-2))&&k.frames[w]?k.frames[w].location=
c(B.slice(G+1),g):k.open(c(B.slice(G+1),g),w):k.open(c(B.slice(2),g));break;case "p":B=B.replace(/p\s*\-/i,"p-");G=B.indexOf("-",2);p=B.indexOf(",",2);-1===G&&(G=1);v=c(B.slice(G+1),g);k.open(v,B.substr(2,p-2),B.substr(p+1,G-p-1)).focus();break;case "newchart":case "newmap":":"===B.charAt(L)&&(G=B.indexOf("-",L+1),S=B.substring(L+1,G),L=G);G=B.indexOf("-",L+1);t=B.substring(L+1,G).toLowerCase();switch(t){case "xmlurl":case "jsonurl":C=B.substring(G+1,B.length);break;case "xml":case "json":var d=Z=
B.substring(G+1,B.length),m={chart:{}},r,d=d.toLowerCase();if(a.linkeddata)for(r=0;r<a.linkeddata.length;r+=1)a.linkeddata[r].id.toLowerCase()===d&&(m=a.linkeddata[r].linkedchart||a.linkeddata[r].linkedmap);C=m;t="json"}e.raiseEvent("linkedChartInvoked",{alias:S,linkType:t.toUpperCase(),data:C},b);break;default:k.location.href=B}e.raiseEvent("linkClicked",{linkProvided:l,linkInvoked:B,linkAction:ga&&ga.toLowerCase()},b)},0))}},graphics:{parseAlpha:Sa,convertColor:ka,getDarkColor:La,getLightColor:za,
mapSymbolName:function(a,b){var c="circle";a=B(a);3<=a&&(c=(b?"spoke_":"poly_")+a);return c},getColumnColor:function(a,b,c,d,m,r,g,e,h){var B,n;B=a.split(",");n=b.split(",");r=r.split(",");g=g.split(",");a=a.replace(/\s/g,"").replace(/\,$/,"");h?e={FCcolor:{color:B[0],alpha:n[0]}}:m?(a=B[0],n=n[0],e={FCcolor:{color:La(a,75)+","+za(a,10)+","+La(a,90)+","+za(a,55)+","+La(a,80),alpha:n+","+n+","+n+","+n+","+n,ratio:"0,11,14,57,18",angle:e?"90":"0"}},r=[La(a,70)]):(b=Sa(b,B.length),e={FCcolor:{color:a,
alpha:b,ratio:c,angle:e?-d:d}});return[e,{FCcolor:{color:r[0],alpha:g[0]}}]},getAngle:function(a,b,c){a=180*Math.atan(b/a)/Math.PI;2==c?a=180-a:3==c?a+=180:4==c&&(a=360-a);return a},parseColor:hb,getValidColor:function(a){return U.test(hb(a))&&a},HSBtoRGB:function(a){var b=a[0],c=0,m=0,r=0,g=[],g=a[1]/100;a=a[2]/100;var e=b/60-Math.floor(b/60),B=a*(1-g),h=a*(1-e*g),g=a*(1-(1-e)*g);switch(Math.floor(b/60)%6){case 0:c=a;m=g;r=B;break;case 1:c=h;m=a;r=B;break;case 2:c=B;m=a;r=g;break;case 3:c=B;m=h;
r=a;break;case 4:c=g;m=B;r=a;break;case 5:c=a,m=B,r=h}return g=[d(255*c),d(255*m),d(255*r)]},RGBtoHSB:function(a){var b=a[0],c=a[1];a=a[2];var m=Math.max(Math.max(b,c),a),r=Math.min(Math.min(b,c),a),g=0,e=0;m==r?g=0:m==b?g=(60*(c-a)/(m-r)+360)%360:m==c?g=60*(a-b)/(m-r)+120:m==a&&(g=60*(b-c)/(m-r)+240);e=0===m?0:(m-r)/m;return[d(g),d(100*e),d(m/255*100)]},RGBtoHex:function(a){return("000000"+(a[0]<<16|a[1]<<8|a[2]).toString(16)).slice(-6)},HEXtoRGB:ab},setImageDisplayMode:function(a,b,c,d,m,r,g,e){var B=
d/100*e.width;d=d/100*e.height;e={};var h,n=r-2*m;h=g-2*m;var l=function(a,b,c,d,r,g){var e={};switch(a){case "top":e.y=m;break;case "bottom":e.y=g-d-m;break;case "middle":e.y=(g-d)/2}switch(b){case "left":e.x=m;break;case "right":e.x=r-c-m;break;case "middle":e.x=(r-c)/2}return e};switch(a){case "center":e.width=B;e.height=d;e.y=g/2-d/2;e.x=r/2-B/2;break;case "stretch":e.width=r-2*m;e.height=g-2*m;e.y=m;e.x=m;break;case "tile":e.width=B;e.height=d;e.tileInfo={};e.tileInfo.xCount=a=Math.ceil(n/B);
e.tileInfo.yCount=h=Math.ceil(h/d);b=l(b,c,B*a,d*h,r,g);e.y=b.y;e.x=b.x;break;case "fit":a=B/d>n/h?n/B:h/d;e.width=B*a;e.height=d*a;b=l(b,c,e.width,e.height,r,g);e.y=b.y;e.x=b.x;break;case "fill":a=B/d>n/h?h/d:n/B;e.width=B*a;e.height=d*a;b=l(b,c,e.width,e.height,r,g);e.y=b.y;e.x=b.x;break;default:b=l(b,c,B,d,r,g),e.width=B,e.height=d,e.y=b.y,e.x=b.x}return e},setLineHeight:Ea,parsexAxisStyles:db,supportedStyle:{font:"font",fontFamily:"font-family","font-family":"font-family",fontWeight:"font-weight",
"font-weight":"font-weight",fontSize:"font-size","font-size":"font-size",lineHeight:"line-height","line-height":"line-height",textDecoration:"text-decoration","text-decoration":"text-decoration",color:"color",whiteSpace:"white-space","white-space":"white-space",padding:"padding",margin:"margin",background:"background",backgroundColor:"background-color","background-color":"background-color",backgroundImage:"background-image","background-image":"background-image",backgroundPosition:"background-position",
"background-position":"background-position",backgroundPositionLeft:"background-position-left","background-position-left":"background-position-left",backgroundPositionTop:"background-position-top","background-position-top":"background-position-top",backgroundRepeat:"background-repeat","background-repeat":"background-repeat",border:"border",borderColor:"border-color","border-color":"border-color",borderStyle:"border-style","border-style":"border-style",borderThickness:"border-thickness","border-thickness":"border-thickness",
borderTop:"border-top","border-top":"border-top",borderTopColor:"border-top-color","border-top-color":"border-top-color",borderTopStyle:"border-top-style","border-top-style":"border-top-style",borderTopThickness:"border-top-thickness","border-top-thickness":"border-top-thickness",borderRight:"border-right","border-right":"border-right",borderRightColor:"border-right-color","border-right-color":"border-right-color",borderRightStyle:"border-right-style","border-right-style":"border-right-style",borderRightThickness:"border-right-thickness",
"border-right-thickness":"border-right-thickness",borderBottom:"border-bottom","border-bottom":"border-bottom",borderBottomColor:"border-bottom-color","border-bottom-color":"border-bottom-color",borderBottomStyle:"border-bottom-style","border-bottom-style":"border-bottom-style",borderBottomThickness:"border-bottom-thickness","border-bottom-thickness":"border-bottom-thickness",borderLeft:"border-left","border-left":"border-left",borderLeftColor:"border-left-color","border-left-color":"border-left-color",
borderLeftStyle:"border-left-style","border-left-Style":"border-left-style",borderLeftThickness:"border-left-thickness","border-left-thickness":"border-left-thickness"},getAxisLimits:Ga,createTrendLine:Ub,getDashStyle:kb,axisLabelAdder:$a,chartAPI:gb,createDialog:Xb,isCanvasElemSupported:function(){var a=u.createElement("canvas");return!(!a.getContext||!a.getContext("2d"))}})}]);
window.FusionCharts&&window.FusionCharts.register("module",["private","vendor.redraphael",function(){var e=this.hcLib,k=window.Raphael,u;(function(){(function(e,k){var b=/[\.\/]/,u=function(){},J=function(a,b){return a-b},c,p,a={n:{}},t=function(a,b){a=String(a);var g=p,d=Array.prototype.slice.call(arguments,2),e=t.listeners(a),l=0,k,q=[],n={},C=[],w=c;c=a;for(var R=p=0,v=e.length;R<v;R++)"zIndex"in e[R]&&(q.push(e[R].zIndex),0>e[R].zIndex&&(n[e[R].zIndex]=e[R]));for(q.sort(J);0>q[l];)if(k=n[q[l++]],
C.push(k.apply(b,d)),p)return p=g,C;for(R=0;R<v;R++)if(k=e[R],"zIndex"in k)if(k.zIndex==q[l]){C.push(k.apply(b,d));if(p)break;do if(l++,(k=n[q[l]])&&C.push(k.apply(b,d)),p)break;while(k)}else n[k.zIndex]=k;else if(C.push(k.apply(b,d)),p)break;p=g;c=w;return C.length?C:null};t._events=a;t.listeners=function(c){c=c.split(b);var e=a,g,d,h,l,p,k,n,t=[e],w=[];h=0;for(l=c.length;h<l;h++){n=[];p=0;for(k=t.length;p<k;p++)for(e=t[p].n,g=[e[c[h]],e["*"]],d=2;d--;)if(e=g[d])n.push(e),w=w.concat(e.f||[]);t=n}return w};
t.on=function(c,e){c=String(c);if("function"!=typeof e)return function(){};for(var g=c.split(b),d=a,h=0,l=g.length;h<l;h++)d=d.n,d=d.hasOwnProperty(g[h])&&d[g[h]]||(d[g[h]]={n:{}});d.f=d.f||[];h=0;for(l=d.f.length;h<l;h++)if(d.f[h]==e)return u;d.f.push(e);return function(a){+a==+a&&(e.zIndex=+a)}};t.f=function(a){var b=[].slice.call(arguments,1);return function(){t.apply(null,[a,null].concat(b).concat([].slice.call(arguments,0)))}};t.stop=function(){p=1};t.nt=function(a){return a?(new RegExp("(?:\\.|\\/|^)"+
a+"(?:\\.|\\/|$)")).test(c):c};t.nts=function(){return c.split(b)};t.off=t.unbind=function(c,e){if(c){var g=c.split(b),d,h,l,p,k,n,C=[a];p=0;for(k=g.length;p<k;p++)for(n=0;n<C.length;n+=l.length-2){l=[n,1];d=C[n].n;if("*"!=g[p])d[g[p]]&&l.push(d[g[p]]);else for(h in d)d.hasOwnProperty(h)&&l.push(d[h]);C.splice.apply(C,l)}p=0;for(k=C.length;p<k;p++)for(d=C[p];d.n;){if(e){if(d.f){n=0;for(g=d.f.length;n<g;n++)if(d.f[n]==e){d.f.splice(n,1);break}!d.f.length&&delete d.f}for(h in d.n)if(d.n.hasOwnProperty(h)&&
d.n[h].f){l=d.n[h].f;n=0;for(g=l.length;n<g;n++)if(l[n]==e){l.splice(n,1);break}!l.length&&delete d.n[h].f}}else for(h in delete d.f,d.n)d.n.hasOwnProperty(h)&&d.n[h].f&&delete d.n[h].f;d=d.n}}else t._events=a={n:{}}};t.once=function(a,b){var c=function(){t.unbind(a,c);return b.apply(this,arguments)};return t.on(a,c)};t.version="0.4.2";t.toString=function(){return"You are running Eve 0.4.2"};"undefined"!=typeof module&&module.exports?module.exports=t:k||"undefined"==typeof define?e.eve=t:define("eve",
[],function(){return t})})(this,!0);(function(e,k,b){!b&&"function"===typeof define&&define.amd?define(["eve"],function(b){return k(e,b)}):k(e,e.eve)})(this,function(e,k){function b(a){var c,f;void 0===b._url&&(b._url="");if(b.is(a,"function"))return l?a():k.on("raphael.DOMload",a);if(b.is(a,n))return b._engine.create[L](b,a.splice(0,3+b.is(a[0],P))).add(a);c=Array.prototype.slice.call(arguments,0);return b.is(c[c.length-1],"function")?(f=c.pop(),l?f.call(b._engine.create[L](b,c)):k.on("raphael.DOMload",
function(){f.call(b._engine.create[L](b,c))})):b._engine.create[L](b,arguments)}function N(){return this.hex}function J(a,b){for(var c=[],f=0,s=a.length;s-2*!b>f;f+=2){var d=[{x:+a[f-2],y:+a[f-1]},{x:+a[f],y:+a[f+1]},{x:+a[f+2],y:+a[f+3]},{x:+a[f+4],y:+a[f+5]}];b?f?s-4==f?d[3]={x:+a[0],y:+a[1]}:s-2==f&&(d[2]={x:+a[0],y:+a[1]},d[3]={x:+a[2],y:+a[3]}):d[0]={x:+a[s-2],y:+a[s-1]}:s-4==f?d[3]=d[2]:f||(d[0]={x:+a[f],y:+a[f+1]});c.push(["C",(-d[0].x+6*d[1].x+d[2].x)/6,(-d[0].y+6*d[1].y+d[2].y)/6,(d[1].x+
6*d[2].x-d[3].x)/6,(d[1].y+6*d[2].y-d[3].y)/6,d[2].x,d[2].y])}return c}function c(a,b,c,f,s,d,z,A,m){null==m&&(m=1);m=(1<m?1:0>m?0:m)/2;for(var O=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],r=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],e=0,g=0;12>g;g++)var X=m*O[g]+m,H=X*(X*(-3*a+9*c-9*s+3*z)+6*a-12*c+6*s)-3*a+3*c,X=X*(X*(-3*b+9*f-9*d+3*A)+6*b-12*f+6*d)-3*b+3*f,e=e+r[g]*ha(H*H+X*X);return m*e}function p(a,b,f,s,d,z,A,m,O){if(!(0>O||
c(a,b,f,s,d,z,A,m)<O)){var r=.5,e=1-r,g;for(g=c(a,b,f,s,d,z,A,m,e);.01<xa(g-O);)r/=2,e+=(g<O?1:-1)*r,g=c(a,b,f,s,d,z,A,m,e);return e}}function a(a,f,s){a=b._path2curve(a);f=b._path2curve(f);for(var d,z,A,m,O,r,e,g,X,H,B=s?0:[],E=0,h=a.length;E<h;E++)if(X=a[E],"M"==X[0])d=O=X[1],z=r=X[2];else{"C"==X[0]?(X=[d,z].concat(X.slice(1)),d=X[6],z=X[7]):(X=[d,z,d,z,O,r,O,r],d=O,z=r);for(var n=0,Ia=f.length;n<Ia;n++)if(H=f[n],"M"==H[0])A=e=H[1],m=g=H[2];else{"C"==H[0]?(H=[A,m].concat(H.slice(1)),A=H[6],m=H[7]):
(H=[A,m,A,m,e,g,e,g],A=e,m=g);var l;var G=X,M=H;l=s;var K=b.bezierBBox(G),k=b.bezierBBox(M);if(b.isBBoxIntersect(K,k)){for(var K=c.apply(0,G),k=c.apply(0,M),K=Da(~~(K/5),1),k=Da(~~(k/5),1),p=[],w=[],aa={},ac=l?0:[],I=0;I<K+1;I++){var v=b.findDotsAtSegment.apply(b,G.concat(I/K));p.push({x:v.x,y:v.y,t:I/K})}for(I=0;I<k+1;I++)v=b.findDotsAtSegment.apply(b,M.concat(I/k)),w.push({x:v.x,y:v.y,t:I/k});for(I=0;I<K;I++)for(G=0;G<k;G++){var sb=p[I],wa=p[I+1],M=w[G],v=w[G+1],t=.001>xa(wa.x-sb.x)?"y":"x",ga=
.001>xa(v.x-M.x)?"y":"x",yb;yb=sb.x;var V=sb.y,Z=wa.x,mc=wa.y,C=M.x,S=M.y,pa=v.x,Y=v.y;if(Da(yb,Z)<T(C,pa)||T(yb,Z)>Da(C,pa)||Da(V,mc)<T(S,Y)||T(V,mc)>Da(S,Y))yb=void 0;else{var L=(yb*mc-V*Z)*(C-pa)-(yb-Z)*(C*Y-S*pa),F=(yb*mc-V*Z)*(S-Y)-(V-mc)*(C*Y-S*pa),q=(yb-Z)*(S-Y)-(V-mc)*(C-pa);if(q){var L=L/q,F=F/q,q=+L.toFixed(2),da=+F.toFixed(2);yb=q<+T(yb,Z).toFixed(2)||q>+Da(yb,Z).toFixed(2)||q<+T(C,pa).toFixed(2)||q>+Da(C,pa).toFixed(2)||da<+T(V,mc).toFixed(2)||da>+Da(V,mc).toFixed(2)||da<+T(S,Y).toFixed(2)||
da>+Da(S,Y).toFixed(2)?void 0:{x:L,y:F}}else yb=void 0}yb&&aa[yb.x.toFixed(4)]!=yb.y.toFixed(4)&&(aa[yb.x.toFixed(4)]=yb.y.toFixed(4),sb=sb.t+xa((yb[t]-sb[t])/(wa[t]-sb[t]))*(wa.t-sb.t),M=M.t+xa((yb[ga]-M[ga])/(v[ga]-M[ga]))*(v.t-M.t),0<=sb&&1.001>=sb&&0<=M&&1.001>=M&&(l?ac++:ac.push({x:yb.x,y:yb.y,t1:T(sb,1),t2:T(M,1)})))}l=ac}else l=l?0:[];if(s)B+=l;else{K=0;for(k=l.length;K<k;K++)l[K].segment1=E,l[K].segment2=n,l[K].bez1=X,l[K].bez2=H;B=B.concat(l)}}}return B}function t(a,b,c,f,s,d){null!=a?(this.a=
+a,this.b=+b,this.c=+c,this.d=+f,this.e=+s,this.f=+d):(this.a=1,this.c=this.b=0,this.d=1,this.f=this.e=0)}function U(){return this.x+" "+this.y+" "+this.width+" × "+this.height}function F(a,b,c,f,s,d){function z(a,b){var c,f,eb,s;eb=a;for(f=0;8>f;f++){s=((O*eb+m)*eb+A)*eb-a;if(xa(s)<b)return eb;c=(3*O*eb+2*m)*eb+A;if(1E-6>xa(c))break;eb-=s/c}c=0;f=1;eb=a;if(eb<c)return c;if(eb>f)return f;for(;c<f;){s=((O*eb+m)*eb+A)*eb;if(xa(s-a)<b)break;a>s?c=eb:f=eb;eb=(f-c)/2+c}return eb}var A=3*b,m=3*(f-b)-A,
O=1-A-m,r=3*c,e=3*(s-c)-r,g=1-r-e;return function(a,b){var c=z(a,b);return((g*c+e)*c+r)*c}(a,1/(200*d))}function g(a,b){var c=[],f={};this.ms=b;this.times=1;if(a){for(var s in a)a.hasOwnProperty(s)&&(f[B(s)]=a[s],c.push(B(s)));c.sort(K)}this.anim=f;this.top=c[c.length-1];this.percents=c}function d(a,c,f,d,z,A){f=B(f);var e,g,X,H,E,h,n=a.ms,l={},G={},K={};if(d)for(h=0,w=Oa.length;h<w;h++){var p=Oa[h];if(p.el.id==c.id&&p.anim==a){p.percent!=f?(Oa.splice(h,1),X=1):g=p;c.attr(p.totalOrigin);break}}else d=
+G;h=0;for(var w=a.percents.length;h<w;h++)if(a.percents[h]==f||a.percents[h]>d*a.top){f=a.percents[h];E=a.percents[h-1]||0;n=n/a.top*(f-E);H=a.percents[h+1];e=a.anim[f];break}else d&&c.attr(a.anim[a.percents[h]]);if(e){if(g)g.initstatus=d,g.start=new Date-g.ms*d;else{for(var I in e)if(e.hasOwnProperty(I)&&(M.hasOwnProperty(I)||c.ca[I]))switch(l[I]=c.attr(I),null==l[I]&&(l[I]=m[I]),G[I]=e[I],M[I]){case P:K[I]=(G[I]-l[I])/n;break;case "colour":l[I]=b.getRGB(l[I]);h=b.getRGB(G[I]);K[I]={r:(h.r-l[I].r)/
n,g:(h.g-l[I].g)/n,b:(h.b-l[I].b)/n};break;case "path":h=s(l[I],G[I]);p=h[1];l[I]=h[0];K[I]=[];h=0;for(w=l[I].length;h<w;h++){K[I][h]=[0];for(var aa=1,ac=l[I][h].length;aa<ac;aa++)K[I][h][aa]=(p[h][aa]-l[I][h][aa])/n}break;case "transform":h=c._;if(w=Ia(h[I],G[I]))for(l[I]=w.from,G[I]=w.to,K[I]=[],K[I].real=!0,h=0,w=l[I].length;h<w;h++)for(K[I][h]=[l[I][h][0]],aa=1,ac=l[I][h].length;aa<ac;aa++)K[I][h][aa]=(G[I][h][aa]-l[I][h][aa])/n;else w=c.matrix||new t,h={_:{transform:h.transform},getBBox:function(){return c.getBBox(1)}},
l[I]=[w.a,w.b,w.c,w.d,w.e,w.f],O(h,G[I]),G[I]=h._.transform,K[I]=[(h.matrix.a-w.a)/n,(h.matrix.b-w.b)/n,(h.matrix.c-w.c)/n,(h.matrix.d-w.d)/n,(h.matrix.e-w.e)/n,(h.matrix.f-w.f)/n];break;case "csv":w=r(e[I]).split(ab);p=r(l[I]).split(ab);if("clip-rect"==I)for(l[I]=p,K[I]=[],h=p.length;h--;)K[I][h]=(w[h]-l[I][h])/n;G[I]=w;break;default:for(w=[].concat(e[I]),p=[].concat(l[I]),K[I]=[],h=c.ca[I].length;h--;)K[I][h]=((w[h]||0)-(p[h]||0))/n}h=e.easing;I=b.easing_formulas[h];if(!I)if((I=r(h).match($a))&&
5==I.length){var v=I;I=function(a){return F(a,+v[1],+v[2],+v[3],+v[4],n)}}else I=Y;h=e.start||a.start||+new Date;p={anim:a,percent:f,timestamp:h,start:h+(a.del||0),status:0,initstatus:d||0,stop:!1,ms:n,easing:I,from:l,diff:K,to:G,el:c,callback:e.callback,prev:E,next:H,repeat:A||a.times,origin:c.attr(),totalOrigin:z};Oa.push(p);if(d&&!g&&!X&&(p.stop=!0,p.start=new Date-n*d,1==Oa.length))return cb();X&&(p.start=new Date-p.ms*d);1==Oa.length&&od(cb)}k("raphael.anim.start."+c.id,c,a)}}function h(a){for(var b=
0;b<Oa.length;b++)Oa[b].el.paper==a&&Oa.splice(b--,1)}b.upgrade="1.0.0";b.version="2.1.0";b.eve=k;u=b;var l,L="apply",P="number",n="array",C=Array.prototype.slice,w=Array.prototype.splice,R=function(){return function(){}.hasOwnProperty("prototype")}(),v={doc:document,win:e},oa=Object.prototype.hasOwnProperty.call(v.win,"Raphael"),ea=v.win.Raphael,$=v.doc,W=v.win,pa=b.supportsTouch="createTouch"in $,Ca=b.supportsOnlyTouch=pa&&!(W.navigator.maxTouchPoints||W.navigator.msMaxTouchPoints),fa=function(){};
b.ca=b.customAttributes=fa.prototype;var la=function(){this.ca=this.customAttributes=new fa;this._CustomAttributes=function(){};this._CustomAttributes.prototype=this.ca;this._elementsById={};this.id=b._oid++;k("raphael.new",this)},Q=b.fn=la.prototype=b.prototype,ya={circle:1,rect:1,path:1,ellipse:1,text:1,image:1,group:1},G="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel dragstart dragmove dragend".split(" "),S=b._touchMap={mousedown:"touchstart",
mousemove:"touchmove",mouseup:"touchend"},ba=b._dragEventMap={dragstart:"mousedown",dragmove:"mousemove",dragend:"mouseup"},r=W.String,B=W.parseFloat,ga=W.parseInt,Z=W.Math,Da=Z.max,T=Z.min,xa=Z.abs,va=Z.pow,qa=Z.cos,Na=Z.sin,ha=Z.sqrt,Sa=Z.round,ka=Z.PI,sa=ka/180,Ra=180/ka,hb=r.prototype.toLowerCase,La=r.prototype.toUpperCase,za=W.Object.prototype.toString,ab=/[, ]+/,Ea=/\{(\d+)\}/g;b._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i;var db=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i,
$a=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,Ga=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,Xb=/,?([achlmqrstvxz]),?/gi,Kb=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/ig,
Ub=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/ig,kb=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/ig;
b._radial_gradient=/^x?r(?:\(([^\)]*?)\))?/;var nb={NaN:1,Infinity:1,"-Infinity":1},gb={hs:1,rg:1},m=b._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9","clip-path":"",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"about:blank","letter-spacing":0,"line-height":12,"vertical-align":"middle",opacity:1,path:"M0,0",r:0,rx:0,ry:0,
src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",visibility:"",title:"",transform:"",rotation:0,width:0,x:0,y:0},M=b._availableAnimAttrs={blur:P,"clip-rect":"csv","clip-path":"path",cx:P,cy:P,fill:"colour","fill-opacity":P,"font-size":P,height:P,opacity:P,path:"path",r:P,rx:P,ry:P,stroke:"colour","stroke-opacity":P,"stroke-width":P,transform:"transform",width:P,
x:P,y:P},E={},K=function(a,b){return B(a)-B(b)},V=function(){},Y=function(a){return a},da=b._rectPath=function(a,b,c,f,s){return s?[["M",a+s,b],["l",c-2*s,0],["a",s,s,0,0,1,s,s],["l",0,f-2*s],["a",s,s,0,0,1,-s,s],["l",2*s-c,0],["a",s,s,0,0,1,-s,-s],["l",0,2*s-f],["a",s,s,0,0,1,s,-s],["z"]]:[["M",a,b],["l",c,0],["l",0,f],["l",-c,0],["z"]]},ja=function(a,b,c,f){null==f&&(f=c);return[["M",a,b],["m",0,-f],["a",c,f,0,1,1,0,2*f],["a",c,f,0,1,1,0,-2*f],["z"]]},na=b._getPath={group:function(){return!1},path:function(a){return a.attr("path")},
circle:function(a){a=a.attrs;return ja(a.cx,a.cy,a.r)},ellipse:function(a){a=a.attrs;return ja(a.cx,a.cy,a.rx,a.ry)},rect:function(a){a=a.attrs;return da(a.x,a.y,a.width,a.height,a.r)},image:function(a){a=a.attrs;return da(a.x,a.y,a.width,a.height)},text:function(a){a=a._getBBox();return da(a.x,a.y,a.width,a.height)}},Xa=b.mapPath=function(a,b){if(!b)return a;var c,f,d,z,A,m,O;a=s(a);d=0;for(A=a.length;d<A;d++)for(O=a[d],z=1,m=O.length;z<m;z+=2)c=b.x(O[z],O[z+1]),f=b.y(O[z],O[z+1]),O[z]=c,O[z+1]=
f;return a};b.pick=function(){for(var a,b=0,c=arguments.length;b<c;b+=1)if((a=arguments[b])||!1===a||0===a)return a};var ca=b._lastArgIfGroup=function(a,c){var f=a.length-1,s=a[f];if(s&&s.constructor===b.el.constructor&&"group"===s.type)return c&&(a[f]=void 0,delete a[f],w.call(a,f,1)),s},Va=b._serializeArgs=function(a){var c=a[0],f,s;if(b.is(c,"object")&&!b.is(c,"array")&&"group"!==c.type)for(f=c,c.path&&(c=c.path)&&!b.is(c,"string")&&b.is(c[0],n),c=1,s=arguments.length;c<s;c+=2)f[arguments[c]]||
(f[arguments[c]]=arguments[c+1]);else for(f={},c=1,s=arguments.length;c<s;c+=2)f[arguments[c]]=a[(c-1)/2]||arguments[c+1];return f},Ka=b.merge=function(a,b,c,f,s){var d,z,A,m;s?(f.push(a),s.push(b)):(f=[a],s=[b]);if(b instanceof Array)for(d=0;d<b.length;d+=1){try{z=a[d],A=b[d]}catch(O){continue}if("object"!==typeof A)c&&void 0===A||(a[d]=A);else{if(null===z||"object"!==typeof z)z=a[d]=A instanceof Array?[]:{};m=checkCyclicRef(A,s);-1!==m?z=a[d]=f[m]:Ka(z,A,c,f,s)}}else for(d in b){try{z=a[d],A=b[d]}catch(r){continue}if(null!==
A&&"object"===typeof A)if(m=za.call(A),"[object Object]"===m){if(null===z||"object"!==typeof z)z=a[d]={};m=checkCyclicRef(A,s);-1!==m?z=a[d]=f[m]:Ka(z,A,c,f,s)}else"[object Array]"===m?(null!==z&&z instanceof Array||(z=a[d]=[]),m=checkCyclicRef(A,s),-1!==m?z=a[d]=f[m]:Ka(z,A,c,f,s)):a[d]=A;else a[d]=A}return a};b.extend=function(a,b,c){if("object"!==typeof a&&"object"!==typeof b)return null;if("object"!==typeof b||null===b)return a;"object"!==typeof a&&(a=b instanceof Array?[]:{});Ka(a,b,c);return a};
var ra=b.is=function(a,b){b=hb.call(b);return"finite"==b?!nb.hasOwnProperty(+a):b==n?a instanceof Array:"object"!==b||void 0!==a&&null!==a?"null"==b&&null===a||b==typeof a&&null!==a||"object"==b&&a===Object(a)||"array"==b&&Array.isArray&&Array.isArray(a)||za.call(a).slice(8,-1).toLowerCase()==b:!1};b.createUUID=function(a,b){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(a,b).toUpperCase()}}(/[xy]/g,function(a){var b=16*Z.random()|0;return("x"==a?b:b&3|8).toString(16)});var ta=
b.clone=R?function(a){if(Object(a)!==a)return a;var b=new a.constructor,c;for(c in a)"prototype"!==c&&a.hasOwnProperty(c)&&(b[c]=ta(a[c]));return b}:function(a){if(Object(a)!==a)return a;var b=new a.constructor,c;for(c in a)a.hasOwnProperty(c)&&(b[c]=ta(a[c]));return b};b._g=v;b.type=W.ENABLE_RED_CANVAS&&(W.CanvasRenderingContext2D||$.createElement("canvas").getContext)?"CANVAS":W.SVGAngle||$.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML";if("VML"==
b.type){var mb=$.createElement("div"),Ha;mb.innerHTML='<v:shape adj="1"/>';Ha=mb.firstChild;Ha.style.behavior="url(#default#VML)";if(!Ha||"object"!=typeof Ha.adj)return b.type="";mb=null}b.svg=!((b.vml="VML"==b.type)||(b.canvas="CANVAS"==b.type));b._Paper=la;b._id=0;b._oid=0;b.angle=function(a,c,f,s,d,z){return null==d?(a-=f,c-=s,a||c?(Z.atan2(-c,-a)*Ra+540)%360:0):b.angle(a,c,d,z)-b.angle(f,s,d,z)};b.rad=function(a){return a%360*sa};b.deg=function(a){return a*Ra%360};b.snapTo=function(a,b,c){var f;
ra(c,"finite")||(c=10);if(ra(a,n))for(f=a.length;f--;){if(xa(a[f]-b)<=c)return a[f]}else{a=+a;f=b%a;if(f<c)return b-f;if(f>a-c)return b-f+a}return b};b.setWindow=function(a){k("raphael.setWindow",b,v.win,a);W=v.win=a;$=v.doc=v.win.document;b._engine.initWin&&b._engine.initWin(v.win)};var ma=function(a){if(b.vml){var c=/^\s+|\s+$/g,f;try{var s=new ActiveXObject("htmlfile");s.write("<body>");s.close();f=s.body}catch(d){f=createPopup().document.body}var z=f.createTextRange();ma=rb(function(a){try{f.style.color=
r(a).replace(c,"");var b=z.queryCommandValue("ForeColor");return"#"+("000000"+((b&255)<<16|b&65280|(b&16711680)>>>16).toString(16)).slice(-6)}catch(s){return"none"}})}else{var A=v.doc.createElement("i");A.title="Raphaël Colour Picker";A.style.display="none";v.doc.body.appendChild(A);ma=rb(function(a){A.style.color=a;return v.doc.defaultView.getComputedStyle(A,"").getPropertyValue("color")})}return ma(a)},Ma=function(){return"hsb("+[this.h,this.s,this.b]+")"},Jb=function(){return"hsl("+[this.h,this.s,
this.l]+")"},Wa=function(){return this.hex},Eb=function(a,c,f){null==c&&ra(a,"object")&&"r"in a&&"g"in a&&"b"in a&&(f=a.b,c=a.g,a=a.r);null==c&&ra(a,"string")&&(f=b.getRGB(a),a=f.r,c=f.g,f=f.b);if(1<a||1<c||1<f)a/=255,c/=255,f/=255;return[a,c,f]},wb=function(a,c,f,s){var d={r:a*=255,g:c*=255,b:f*=255,hex:b.rgb(a,c,f),toString:Wa};ra(s,"finite")&&(d.opacity=s);return d};b.color=function(a){var c;b.is(a,"object")&&"h"in a&&"s"in a&&"b"in a?(c=b.hsb2rgb(a),a.r=c.r,a.g=c.g,a.b=c.b,a.hex=c.hex):b.is(a,
"object")&&"h"in a&&"s"in a&&"l"in a?(c=b.hsl2rgb(a),a.r=c.r,a.g=c.g,a.b=c.b,a.hex=c.hex):(b.is(a,"string")&&(a=b.getRGB(a)),b.is(a,"object")&&"r"in a&&"g"in a&&"b"in a?(c=b.rgb2hsl(a),a.h=c.h,a.s=c.s,a.l=c.l,c=b.rgb2hsb(a),a.v=c.b):(a={hex:"none"},a.r=a.g=a.b=a.h=a.s=a.v=a.l=-1));a.toString=Wa;return a};b.hsb2rgb=function(a,b,c,f){this.is(a,"object")&&"h"in a&&"s"in a&&"b"in a&&(c=a.b,b=a.s,a=a.h,f=a.o);var s,d,z;a=360*a%360/60;z=c*b;b=z*(1-xa(a%2-1));c=s=d=c-z;a=~~a;c+=[z,b,0,0,b,z][a];s+=[b,z,
z,b,0,0][a];d+=[0,0,b,z,z,b][a];return wb(c,s,d,f)};b.hsl2rgb=function(a,b,c,f){this.is(a,"object")&&"h"in a&&"s"in a&&"l"in a&&(c=a.l,b=a.s,a=a.h);if(1<a||1<b||1<c)a/=360,b/=100,c/=100;var s,d,z;a=360*a%360/60;z=2*b*(.5>c?c:1-c);b=z*(1-xa(a%2-1));c=s=d=c-z/2;a=~~a;c+=[z,b,0,0,b,z][a];s+=[b,z,z,b,0,0][a];d+=[0,0,b,z,z,b][a];return wb(c,s,d,f)};b.rgb2hsb=function(a,b,c){c=Eb(a,b,c);a=c[0];b=c[1];c=c[2];var f,s;f=Da(a,b,c);s=f-T(a,b,c);a=((0==s?null:f==a?(b-c)/s:f==b?(c-a)/s+2:(a-b)/s+4)+360)%6*60/
360;return{h:a,s:0==s?0:s/f,b:f,toString:Ma}};b.rgb2hsl=function(a,b,c){c=Eb(a,b,c);a=c[0];b=c[1];c=c[2];var f,s,d;f=Da(a,b,c);s=T(a,b,c);d=f-s;a=((0==d?null:f==a?(b-c)/d:f==b?(c-a)/d+2:(a-b)/d+4)+360)%6*60/360;f=(f+s)/2;return{h:a,s:0==d?0:.5>f?d/(2*f):d/(2-2*f),l:f,toString:Jb}};b._path2string=function(){return this.join(",").replace(Xb,"$1")};var rb=b._cacher=function(a,b,c){function f(){var s=C.call(arguments,0),d=s.join("␀"),z=f.cache=f.cache||{},A=f.count=f.count||[];if(z.hasOwnProperty(d)){a:for(var s=
A,A=d,m=0,O=s.length;m<O;m++)if(s[m]===A){s.push(s.splice(m,1)[0]);break a}return c?c(z[d]):z[d]}1E3<=A.length&&delete z[A.shift()];A.push(d);z[d]=a[L](b,s);return c?c(z[d]):z[d]}return f};b._preload=function(a,b){var c=$.createElement("img");c.style.cssText="position:absolute;left:-9999em;top:-9999em";c.onload=function(){b.call(this);this.onload=null;$.body.removeChild(this)};c.onerror=function(){$.body.removeChild(this)};$.body.appendChild(c);c.src=a};b.getRGB=rb(function(a){var c,f,s,d,z;a&&ra(a,
"object")&&"opacity"in a&&(c=a.opacity);if(!a||(a=r(a)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:N};if("none"==a)return{r:-1,g:-1,b:-1,hex:"none",toString:N};!gb.hasOwnProperty(a.toLowerCase().substring(0,2))&&"#"!==a.charAt()&&(a=ma(a));if(a=a.match(db)){a[2]&&(d=ga(a[2].substring(5),16),s=ga(a[2].substring(3,5),16),f=ga(a[2].substring(1,3),16));a[3]&&(d=ga((z=a[3].charAt(3))+z,16),s=ga((z=a[3].charAt(2))+z,16),f=ga((z=a[3].charAt(1))+z,16));a[4]&&(z=a[4].split(Ga),f=B(z[0]),
"%"==z[0].slice(-1)&&(f*=2.55),s=B(z[1]),"%"==z[1].slice(-1)&&(s*=2.55),d=B(z[2]),"%"==z[2].slice(-1)&&(d*=2.55),"rgba"==a[1].toLowerCase().slice(0,4)&&(c=B(z[3])),z[3]&&"%"==z[3].slice(-1)&&(c/=100));if(a[5])return z=a[5].split(Ga),f=B(z[0]),"%"==z[0].slice(-1)&&(f*=2.55),s=B(z[1]),"%"==z[1].slice(-1)&&(s*=2.55),d=B(z[2]),"%"==z[2].slice(-1)&&(d*=2.55),"deg"!=z[0].slice(-3)&&"°"!=z[0].slice(-1)||(f/=360),"hsba"==a[1].toLowerCase().slice(0,4)&&(c=B(z[3])),z[3]&&"%"==z[3].slice(-1)&&(c/=100),b.hsb2rgb(f,
s,d,c);if(a[6])return z=a[6].split(Ga),f=B(z[0]),"%"==z[0].slice(-1)&&(f*=2.55),s=B(z[1]),"%"==z[1].slice(-1)&&(s*=2.55),d=B(z[2]),"%"==z[2].slice(-1)&&(d*=2.55),"deg"!=z[0].slice(-3)&&"°"!=z[0].slice(-1)||(f/=360),"hsla"==a[1].toLowerCase().slice(0,4)&&(c=B(z[3])),z[3]&&"%"==z[3].slice(-1)&&(c/=100),b.hsl2rgb(f,s,d,c);a={r:f,g:s,b:d,toString:N};a.hex="#"+(16777216|d|s<<8|f<<16).toString(16).slice(1);b.is(c,"finite")&&(a.opacity=c);return a}return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:N}},b);
b.tintshade=rb(function(a,c){var f=b.getRGB(a),s;s=255;0>c&&(c*=-1,s=0);1<c&&(c=1);s=0===c?f:{r:s-(s-f.r)*c,g:s-(s-f.g)*c,b:s-(s-f.b)*c,toString:N};s.hex=b.rgb(s.r,s.g,s.b);f.error&&(s.error=f.error);"opacity"in f?(s.rgba="rgba("+[s.r,s.g,s.b,f.opacity].join()+")",s.opacity=f.opacity):s.rgba="rgb("+[s.r,s.g,s.b].join()+")";return s},b);b.hsb=rb(function(a,c,f){return b.hsb2rgb(a,c,f).hex});b.hsl=rb(function(a,c,f){return b.hsl2rgb(a,c,f).hex});b.rgb=rb(function(a,b,c){return"#"+(16777216|c|b<<8|a<<
16).toString(16).slice(1)});b.getColor=function(a){a=this.getColor.start=this.getColor.start||{h:0,s:1,b:a||.75};var b=this.hsb2rgb(a.h,a.s,a.b);a.h+=.075;1<a.h&&(a.h=0,a.s-=.2,0>=a.s&&(this.getColor.start={h:0,s:1,b:a.b}));return b.hex};b.getColor.reset=function(){delete this.start};b.parsePathString=function(a){if(!a)return null;var c=Tb(a);if(c.arr)return Fa(c.arr);var f={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},s=[];b.is(a,n)&&b.is(a[0],n)&&(s=Fa(a));s.length||r(a).replace(Kb,function(a,b,
c){var d=[];a=b.toLowerCase();c.replace(kb,function(a,b){b&&d.push(+b)});"m"==a&&2<d.length&&(s.push([b].concat(d.splice(0,2))),a="l",b="m"==b?"l":"L");if("r"==a)s.push([b].concat(d));else for(;d.length>=f[a]&&(s.push([b].concat(d.splice(0,f[a]))),f[a]););});s.toString=b._path2string;c.arr=Fa(s);return s};b.parseTransformString=rb(function(a){if(!a)return null;var c=[];b.is(a,n)&&b.is(a[0],n)&&(c=Fa(a));c.length||r(a).replace(Ub,function(a,b,f){var s=[];hb.call(b);f.replace(kb,function(a,b){b&&s.push(+b)});
c.push([b].concat(s))});c.toString=b._path2string;return c});var Tb=function(a){var b=Tb.ps=Tb.ps||{};b[a]?b[a].sleep=100:b[a]={sleep:100};setTimeout(function(){for(var c in b)b.hasOwnProperty(c)&&c!=a&&(b[c].sleep--,!b[c].sleep&&delete b[c])});return b[a]};b.findDotsAtSegment=function(a,b,c,f,s,d,z,A,m){var O=1-m,r=va(O,3),e=va(O,2),g=m*m,h=g*m,X=r*a+3*e*m*c+3*O*m*m*s+h*z,r=r*b+3*e*m*f+3*O*m*m*d+h*A,e=a+2*m*(c-a)+g*(s-2*c+a),h=b+2*m*(f-b)+g*(d-2*f+b),H=c+2*m*(s-c)+g*(z-2*s+c),g=f+2*m*(d-f)+g*(A-
2*d+f);a=O*a+m*c;b=O*b+m*f;s=O*s+m*z;d=O*d+m*A;A=90-180*Z.atan2(e-H,h-g)/ka;(e>H||h<g)&&(A+=180);return{x:X,y:r,m:{x:e,y:h},n:{x:H,y:g},start:{x:a,y:b},end:{x:s,y:d},alpha:A}};b.bezierBBox=function(a,c,f,s,d,z,A,m){b.is(a,"array")||(a=[a,c,f,s,d,z,A,m]);a=ia.apply(null,a);return{x:a.min.x,y:a.min.y,x2:a.max.x,y2:a.max.y,width:a.max.x-a.min.x,height:a.max.y-a.min.y}};b.isPointInsideBBox=function(a,b,c){return b>=a.x&&b<=a.x2&&c>=a.y&&c<=a.y2};b.isBBoxIntersect=function(a,c){var f=b.isPointInsideBBox;
return f(c,a.x,a.y)||f(c,a.x2,a.y)||f(c,a.x,a.y2)||f(c,a.x2,a.y2)||f(a,c.x,c.y)||f(a,c.x2,c.y)||f(a,c.x,c.y2)||f(a,c.x2,c.y2)||(a.x<c.x2&&a.x>c.x||c.x<a.x2&&c.x>a.x)&&(a.y<c.y2&&a.y>c.y||c.y<a.y2&&c.y>a.y)};b.pathIntersection=function(b,c){return a(b,c)};b.pathIntersectionNumber=function(b,c){return a(b,c,1)};b.isPointInsidePath=function(c,f,s){var d=b.pathBBox(c);return b.isPointInsideBBox(d,f,s)&&(1==a(c,[["M",f,s],["H",d.x2+10]],1)%2||1==a(c,[["M",f,s],["V",d.y2+10]],1)%2)};b._removedFactory=function(a){return function(){k("raphael.log",
null,"Raphaël: you are calling to method “"+a+"” of removed object",a)}};var vb=b.pathBBox=function(a){var b=Tb(a);if(b.bbox)return b.bbox;if(!a)return{x:0,y:0,width:0,height:0,x2:0,y2:0};a=s(a);for(var c=0,f=0,d=[],z=[],A,m=0,O=a.length;m<O;m++)A=a[m],"M"==A[0]?(c=A[1],f=A[2],d.push(c),z.push(f)):(c=ia(c,f,A[1],A[2],A[3],A[4],A[5],A[6]),d=d.concat(c.min.x,c.max.x),z=z.concat(c.min.y,c.max.y),c=A[5],f=A[6]);a=T[L](0,d);A=T[L](0,z);d=Da[L](0,d);z=Da[L](0,z);z={x:a,y:A,x2:d,y2:z,width:d-a,height:z-
A};b.bbox=ta(z);return z},Fa=function(a){a=ta(a);a.toString=b._path2string;return a},Fb=b._pathToRelative=function(a){var c=Tb(a);if(c.rel)return Fa(c.rel);b.is(a,n)&&b.is(a&&a[0],n)||(a=b.parsePathString(a));var f=[],s=0,d=0,z=0,A=0,m=0;"M"==a[0][0]&&(s=a[0][1],d=a[0][2],z=s,A=d,m++,f.push(["M",s,d]));for(var O=a.length;m<O;m++){var r=f[m]=[],e=a[m];if(e[0]!=hb.call(e[0]))switch(r[0]=hb.call(e[0]),r[0]){case "a":r[1]=e[1];r[2]=e[2];r[3]=e[3];r[4]=e[4];r[5]=e[5];r[6]=+(e[6]-s).toFixed(3);r[7]=+(e[7]-
d).toFixed(3);break;case "v":r[1]=+(e[1]-d).toFixed(3);break;case "m":z=e[1],A=e[2];default:for(var g=1,h=e.length;g<h;g++)r[g]=+(e[g]-(g%2?s:d)).toFixed(3)}else for(f[m]=[],"m"==e[0]&&(z=e[1]+s,A=e[2]+d),r=0,g=e.length;r<g;r++)f[m][r]=e[r];e=f[m].length;switch(f[m][0]){case "z":s=z;d=A;break;case "h":s+=+f[m][e-1];break;case "v":d+=+f[m][e-1];break;default:s+=+f[m][e-2],d+=+f[m][e-1]}}f.toString=b._path2string;c.rel=Fa(f);return f},Ob=b._pathToAbsolute=function(a){var c=Tb(a),f;if(c.abs)return Fa(c.abs);
b.is(a,n)&&b.is(a&&a[0],n)||(a=b.parsePathString(a));if(!a||!a.length)return f=["M",0,0],f.toString=b._path2string,f;var s=0,d=0,z=0,A=0,m=0;f=[];"M"==a[0][0]&&(s=+a[0][1],d=+a[0][2],z=s,A=d,m++,f[0]=["M",s,d]);for(var O=3==a.length&&"M"==a[0][0]&&"R"==a[1][0].toUpperCase()&&"Z"==a[2][0].toUpperCase(),r,e=m,g=a.length;e<g;e++){f.push(m=[]);r=a[e];if(r[0]!=La.call(r[0]))switch(m[0]=La.call(r[0]),m[0]){case "A":m[1]=r[1];m[2]=r[2];m[3]=r[3];m[4]=r[4];m[5]=r[5];m[6]=+(r[6]+s);m[7]=+(r[7]+d);break;case "V":m[1]=
+r[1]+d;break;case "H":m[1]=+r[1]+s;break;case "R":for(var h=[s,d].concat(r.slice(1)),X=2,H=h.length;X<H;X++)h[X]=+h[X]+s,h[++X]=+h[X]+d;f.pop();f=f.concat(J(h,O));break;case "M":z=+r[1]+s,A=+r[2]+d;default:for(X=1,H=r.length;X<H;X++)m[X]=+r[X]+(X%2?s:d)}else if("R"==r[0])h=[s,d].concat(r.slice(1)),f.pop(),f=f.concat(J(h,O)),m=["R"].concat(r.slice(-2));else for(h=0,X=r.length;h<X;h++)m[h]=r[h];switch(m[0]){case "Z":s=z;d=A;break;case "H":s=m[1];break;case "V":d=m[1];break;case "M":z=m[m.length-2],
A=m[m.length-1];default:s=m[m.length-2],d=m[m.length-1]}}f.toString=b._path2string;c.abs=Fa(f);return f},Mb=function(a,b,c,f){return[a,b,c,f,c,f]},Ua=function(a,b,c,f,s,d){var z=1/3,A=2/3;return[z*a+A*c,z*b+A*f,z*s+A*c,z*d+A*f,s,d]},Aa=function(a,b,c,f,s,d,z,A,m,r){var O=120*ka/180,e=sa*(+s||0),g=[],h,X=rb(function(a,b,c){var f=a*qa(c)-b*Na(c);a=a*Na(c)+b*qa(c);return{x:f,y:a}});if(r)E=r[0],h=r[1],d=r[2],H=r[3];else{h=X(a,b,-e);a=h.x;b=h.y;h=X(A,m,-e);A=h.x;m=h.y;qa(sa*s);Na(sa*s);h=(a-A)/2;E=(b-
m)/2;H=h*h/(c*c)+E*E/(f*f);1<H&&(H=ha(H),c*=H,f*=H);var H=c*c,B=f*f,H=(d==z?-1:1)*ha(xa((H*B-H*E*E-B*h*h)/(H*E*E+B*h*h)));d=H*c*E/f+(a+A)/2;var H=H*-f*h/c+(b+m)/2,E=Z.asin(((b-H)/f).toFixed(9));h=Z.asin(((m-H)/f).toFixed(9));E=a<d?ka-E:E;h=A<d?ka-h:h;0>E&&(E=2*ka+E);0>h&&(h=2*ka+h);z&&E>h&&(E-=2*ka);!z&&h>E&&(h-=2*ka)}if(xa(h-E)>O){var g=h,B=A,n=m;h=E+O*(z&&h>E?1:-1);A=d+c*qa(h);m=H+f*Na(h);g=Aa(A,m,c,f,s,0,z,B,n,[h,g,d,H])}d=h-E;s=qa(E);O=Na(E);z=qa(h);h=Na(h);d=Z.tan(d/4);c=4/3*c*d;d*=4/3*f;f=[a,
b];a=[a+c*O,b-d*s];b=[A+c*h,m-d*z];A=[A,m];a[0]=2*f[0]-a[0];a[1]=2*f[1]-a[1];if(r)return[a,b,A].concat(g);g=[a,b,A].concat(g).join().split(",");r=[];A=0;for(m=g.length;A<m;A++)r[A]=A%2?X(g[A-1],g[A],e).y:X(g[A],g[A+1],e).x;return r},ub=function(a,b,c,f,s,d,z,A,m){var r=1-m;return{x:va(r,3)*a+3*va(r,2)*m*c+3*r*m*m*s+va(m,3)*z,y:va(r,3)*b+3*va(r,2)*m*f+3*r*m*m*d+va(m,3)*A}},ia=rb(function(a,b,c,f,s,d,z,A){var m=s-2*c+a-(z-2*s+c),r=2*(c-a)-2*(s-c),O=a-c,e=(-r+ha(r*r-4*m*O))/2/m,m=(-r-ha(r*r-4*m*O))/
2/m,g=[b,A],h=[a,z];"1e12"<xa(e)&&(e=.5);"1e12"<xa(m)&&(m=.5);0<e&&1>e&&(e=ub(a,b,c,f,s,d,z,A,e),h.push(e.x),g.push(e.y));0<m&&1>m&&(e=ub(a,b,c,f,s,d,z,A,m),h.push(e.x),g.push(e.y));m=d-2*f+b-(A-2*d+f);r=2*(f-b)-2*(d-f);O=b-f;e=(-r+ha(r*r-4*m*O))/2/m;m=(-r-ha(r*r-4*m*O))/2/m;"1e12"<xa(e)&&(e=.5);"1e12"<xa(m)&&(m=.5);0<e&&1>e&&(e=ub(a,b,c,f,s,d,z,A,e),h.push(e.x),g.push(e.y));0<m&&1>m&&(e=ub(a,b,c,f,s,d,z,A,m),h.push(e.x),g.push(e.y));return{min:{x:T[L](0,h),y:T[L](0,g)},max:{x:Da[L](0,h),y:Da[L](0,
g)}}}),s=b._path2curve=rb(function(a,b){var c=!b&&Tb(a);if(!b&&c.curve)return Fa(c.curve);var f=Ob(a),s=b&&Ob(b),d={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},z={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},m=function(a,b){var c,f;if(!a)return["C",b.x,b.y,b.x,b.y,b.x,b.y];a[0]in{T:1,Q:1}||(b.qx=b.qy=null);switch(a[0]){case "M":b.X=a[1];b.Y=a[2];break;case "A":a=["C"].concat(Aa[L](0,[b.x,b.y].concat(a.slice(1))));break;case "S":c=b.x+(b.x-(b.bx||b.x));f=b.y+(b.y-(b.by||b.y));a=["C",c,f].concat(a.slice(1));
break;case "T":b.qx=b.x+(b.x-(b.qx||b.x));b.qy=b.y+(b.y-(b.qy||b.y));a=["C"].concat(Ua(b.x,b.y,b.qx,b.qy,a[1],a[2]));break;case "Q":b.qx=a[1];b.qy=a[2];a=["C"].concat(Ua(b.x,b.y,a[1],a[2],a[3],a[4]));break;case "L":a=["C"].concat(Mb(b.x,b.y,a[1],a[2]));break;case "H":a=["C"].concat(Mb(b.x,b.y,a[1],b.y));break;case "V":a=["C"].concat(Mb(b.x,b.y,b.x,a[1]));break;case "Z":a=["C"].concat(Mb(b.x,b.y,b.X,b.Y))}return a},A=function(a,b){if(7<a[b].length){a[b].shift();for(var c=a[b];c.length;)a.splice(b++,
0,["C"].concat(c.splice(0,6)));a.splice(b,1);e=Da(f.length,s&&s.length||0)}},r=function(a,b,c,d,z){a&&b&&"M"==a[z][0]&&"M"!=b[z][0]&&(b.splice(z,0,["M",d.x,d.y]),c.bx=0,c.by=0,c.x=a[z][1],c.y=a[z][2],e=Da(f.length,s&&s.length||0))},O=0,e=Da(f.length,s&&s.length||0);for(;O<e;O++){f[O]=m(f[O],d);A(f,O);s&&(s[O]=m(s[O],z));s&&A(s,O);r(f,s,d,z,O);r(s,f,z,d,O);var g=f[O],h=s&&s[O],X=g.length,H=s&&h.length;d.x=g[X-2];d.y=g[X-1];d.bx=B(g[X-4])||d.x;d.by=B(g[X-3])||d.y;z.bx=s&&(B(h[H-4])||z.x);z.by=s&&(B(h[H-
3])||z.y);z.x=s&&h[H-2];z.y=s&&h[H-1]}s||(c.curve=Fa(f));return s?[f,s]:f},null,Fa);b._parseDots=rb(function(a){for(var c=[],f=0,s=a.length;f<s;f++){var d={},z=a[f].match(/^([^:]*):?([\d\.]*)/);d.color=b.getRGB(z[1]);if(d.color.error)return null;d.opacity=d.color.opacity;d.color=d.color.hex;z[2]&&(d.offset=z[2]+"%");c.push(d)}f=1;for(s=c.length-1;f<s;f++)if(!c[f].offset){a=B(c[f-1].offset||0);z=0;for(d=f+1;d<s;d++)if(c[d].offset){z=c[d].offset;break}z||(z=100,d=s);z=B(z);for(z=(z-a)/(d-f+1);f<d;f++)a+=
z,c[f].offset=a+"%"}return c});var z=b._tear=function(a,b){a==b.top&&(b.top=a.prev);a==b.bottom&&(b.bottom=a.next);a.next&&(a.next.prev=a.prev);a.prev&&(a.prev.next=a.next)};b._tofront=function(a,b){if(b.top===a)return!1;z(a,b);a.next=null;a.prev=b.top;b.top.next=a;b.top=a;return!0};b._toback=function(a,b){if(b.bottom===a)return!1;z(a,b);a.next=b.bottom;a.prev=null;b.bottom.prev=a;b.bottom=a;return!0};b._insertafter=function(a,b,c,f){z(a,c);a.parent=f;b===f.top&&(f.top=a);b.next&&(b.next.prev=a);
a.next=b.next;a.prev=b;b.next=a};b._insertbefore=function(a,b,c,f){z(a,c);a.parent=f;b===f.bottom&&(f.bottom=a);b.prev&&(b.prev.next=a);a.prev=b.prev;b.prev=a;a.next=b};var A=b.toMatrix=function(a,b){var c=vb(a),f={_:{transform:""},getBBox:function(){return c}};O(f,b);return f.matrix};b.transformPath=function(a,b){return Xa(a,A(a,b))};var O=b._extractTransform=function(a,c){if(null==c)return a._.transform;c=r(c).replace(/\.{3}|\u2026/g,a._.transform||"");var f=b.parseTransformString(c),s=0,d=0,z=
0,m=1,A=1,O=a._,z=new t;O.transform=f||[];if(f)for(var d=0,e=f.length;d<e;d++){var g=f[d],h=g.length,X=r(g[0]).toLowerCase(),H=g[0]!=X,E=H?z.invert():0,B;"t"==X&&3==h?H?(h=E.x(0,0),X=E.y(0,0),H=E.x(g[1],g[2]),E=E.y(g[1],g[2]),z.translate(H-h,E-X)):z.translate(g[1],g[2]):"r"==X?2==h?(B=B||a.getBBox(1),z.rotate(g[1],B.x+B.width/2,B.y+B.height/2),s+=g[1]):4==h&&(H?(H=E.x(g[2],g[3]),E=E.y(g[2],g[3]),z.rotate(g[1],H,E)):z.rotate(g[1],g[2],g[3]),s+=g[1]):"s"==X?2==h||3==h?(B=B||a.getBBox(1),z.scale(g[1],
g[h-1],B.x+B.width/2,B.y+B.height/2),m*=g[1],A*=g[h-1]):5==h&&(H?(H=E.x(g[3],g[4]),E=E.y(g[3],g[4]),z.scale(g[1],g[2],H,E)):z.scale(g[1],g[2],g[3],g[4]),m*=g[1],A*=g[2]):"m"==X&&7==h&&z.add(g[1],g[2],g[3],g[4],g[5],g[6]);O.dirtyT=1;a.matrix=z}a.matrix=z;O.sx=m;O.sy=A;O.deg=s;O.dx=d=z.e;O.dy=z=z.f;1==m&&1==A&&!s&&O.bbox?(O.bbox.x+=+d,O.bbox.y+=+z):O.dirtyT=1},f=function(a){var b=a[0];switch(b.toLowerCase()){case "t":return[b,0,0];case "m":return[b,1,0,0,1,0,0];case "r":return 4==a.length?[b,0,a[2],
a[3]]:[b,0];case "s":return 5==a.length?[b,1,1,a[3],a[4]]:3==a.length?[b,1,1]:[b,1]}},Ia=b._equaliseTransform=function(a,c){c=r(c).replace(/\.{3}|\u2026/g,a);a=b.parseTransformString(a)||[];c=b.parseTransformString(c)||[];for(var s=Da(a.length,c.length),d=[],z=[],m=0,A,O,e,g;m<s;m++){e=a[m]||f(c[m]);g=c[m]||f(e);if(e[0]!=g[0]||"r"==e[0].toLowerCase()&&(e[2]!=g[2]||e[3]!=g[3])||"s"==e[0].toLowerCase()&&(e[3]!=g[3]||e[4]!=g[4]))return;d[m]=[];z[m]=[];A=0;for(O=Da(e.length,g.length);A<O;A++)A in e&&
(d[m][A]=e[A]),A in g&&(z[m][A]=g[A])}return{from:d,to:z}};b._getContainer=function(a,c,f,s){var d;d=null!=s||b.is(a,"object")?a:v.doc.getElementById(a);if(null!=d)return d.tagName?null==c?{container:d,width:d.style.pixelWidth||d.offsetWidth,height:d.style.pixelHeight||d.offsetHeight}:{container:d,width:c,height:f}:{container:1,x:a,y:c,width:f,height:s}};b.pathToRelative=Fb;b._engine={};b.path2curve=s;b.matrix=function(a,b,c,f,s,d){return new t(a,b,c,f,s,d)};(function(a){function c(a){return a[0]*
a[0]+a[1]*a[1]}function f(a){var b=ha(c(a));a[0]&&(a[0]/=b);a[1]&&(a[1]/=b)}a.add=function(a,b,c,f,s,d){var z=[[],[],[]],m=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]];b=[[a,c,s],[b,f,d],[0,0,1]];a&&a instanceof t&&(b=[[a.a,a.c,a.e],[a.b,a.d,a.f],[0,0,1]]);for(a=0;3>a;a++)for(c=0;3>c;c++){for(f=s=0;3>f;f++)s+=m[a][f]*b[f][c];z[a][c]=s}this.a=z[0][0];this.b=z[1][0];this.c=z[0][1];this.d=z[1][1];this.e=z[0][2];this.f=z[1][2]};a.invert=function(){var a=this.a*this.d-this.b*this.c;return new t(this.d/
a,-this.b/a,-this.c/a,this.a/a,(this.c*this.f-this.d*this.e)/a,(this.b*this.e-this.a*this.f)/a)};a.clone=function(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)};a.translate=function(a,b){this.add(1,0,0,1,a,b)};a.scale=function(a,b,c,f){null==b&&(b=a);(c||f)&&this.add(1,0,0,1,c,f);this.add(a,0,0,b,0,0);(c||f)&&this.add(1,0,0,1,-c,-f)};a.rotate=function(a,c,f){a=b.rad(a);c=c||0;f=f||0;var s=+qa(a).toFixed(9);a=+Na(a).toFixed(9);this.add(s,a,-a,s,c,f);this.add(1,0,0,1,-c,-f)};a.x=function(a,
b){return a*this.a+b*this.c+this.e};a.y=function(a,b){return a*this.b+b*this.d+this.f};a.get=function(a){return+this[r.fromCharCode(97+a)].toFixed(4)};a.toString=function(){return b.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()};a.toMatrixString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"};a.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+
this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"};a.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]};a.split=function(){var a={};a.dx=this.e;a.dy=this.f;var s=[[this.a,this.c],[this.b,this.d]];a.scalex=ha(c(s[0]));f(s[0]);a.shear=s[0][0]*s[1][0]+s[0][1]*s[1][1];s[1]=[s[1][0]-s[0][0]*a.shear,s[1][1]-s[0][1]*a.shear];a.scaley=ha(c(s[1]));f(s[1]);a.shear/=a.scaley;var d=-s[0][1],s=s[1][1];
0>s?(a.rotate=b.deg(Z.acos(s)),0>d&&(a.rotate=360-a.rotate)):a.rotate=b.deg(Z.asin(d));a.isSimple=!+a.shear.toFixed(9)&&(a.scalex.toFixed(9)==a.scaley.toFixed(9)||!a.rotate);a.isSuperSimple=!+a.shear.toFixed(9)&&a.scalex.toFixed(9)==a.scaley.toFixed(9)&&!a.rotate;a.noRotation=!+a.shear.toFixed(9)&&!a.rotate;return a};a.toTransformString=function(a){a=a||this.split();return a.isSimple?(a.scalex=+a.scalex.toFixed(4),a.scaley=+a.scaley.toFixed(4),a.rotate=+a.rotate.toFixed(4),(a.dx||a.dy?"t"+[a.dx,a.dy]:
"")+(1!=a.scalex||1!=a.scaley?"s"+[a.scalex,a.scaley,0,0]:"")+(a.rotate?"r"+[a.rotate,0,0]:"")):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}})(t.prototype);var X=navigator.userAgent.match(/Version\/(.*?)\s/)||navigator.userAgent.match(/Chrome\/(\d+)/);"Apple Computer, Inc."==navigator.vendor&&(X&&4>X[1]||"iP"==navigator.platform.slice(0,2))||"Google Inc."==navigator.vendor&&X&&8>X[1]?Q.safari=function(){var a=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});
setTimeout(function(){a.remove()});return!0}:Q.safari=V;for(var H=function(){this.returnValue=!1},aa=function(){return this.originalEvent.preventDefault()},ac=function(){this.cancelBubble=!0},yb=function(){return this.originalEvent.stopPropagation()},mc=b.addEvent=function(){if(v.doc.addEventListener)return function(a,b,c,f){var s=Ca&&S[b]||b,d;S[ba[b]]&&(s=S[ba[b]]);d=function(s){var d=v.doc.documentElement.scrollTop||v.doc.body.scrollTop,z=v.doc.documentElement.scrollLeft||v.doc.body.scrollLeft,
m;if(pa&&S.hasOwnProperty(Ca?b:ba[b]))for(var A=0,r=s.targetTouches&&s.targetTouches.length;A<r;A++)if(m=s.targetTouches[A].target,m==a||"tspan"==m.nodeName&&m.parentNode==a){m=s;s=s.targetTouches[A];s.originalEvent=m;s.preventDefault=aa;s.stopPropagation=yb;break}return c.call(f,s,s.clientX+z,s.clientY+d)};a.addEventListener(s,d,!1);return function(){a.removeEventListener(s,d,!1);return!0}};if(v.doc.attachEvent)return function(a,b,c,f){var s=function(a){a=a||v.win.event;var b=a.clientX+(v.doc.documentElement.scrollLeft||
v.doc.body.scrollLeft),s=a.clientY+(v.doc.documentElement.scrollTop||v.doc.body.scrollTop);a.preventDefault=a.preventDefault||H;a.stopPropagation=a.stopPropagation||ac;return c.call(f,a,b,s)};a.attachEvent("on"+b,s);return function(){a.detachEvent("on"+b,s);return!0}}}(),Ac=[],I=function(a){for(var c=a.clientX,f=a.clientY,s=v.doc.documentElement.scrollTop||v.doc.body.scrollTop,d=v.doc.documentElement.scrollLeft||v.doc.body.scrollLeft,z,m=Ac.length;m--;){z=Ac[m];if(pa&&"touchmove"===a.type)for(var A=
a.touches.length,r;A--;){if(r=a.touches[A],r.identifier==z.el._drag.id){c=r.clientX;f=r.clientY;(a.originalEvent?a.originalEvent:a).preventDefault();break}}else a.preventDefault();if(!z.el.removed){var A=b._engine.getNode(z.el),O=A.nextSibling,e=A.parentNode,g=A.style.display;v.win.opera&&e.removeChild(A);A.style.display="none";r=z.el.paper.getElementByPoint(c,f);A.style.display=g;v.win.opera&&(O?e.insertBefore(A,O):e.appendChild(A));r&&k("raphael.drag.over."+z.el.id,z.el,r);c+=d;f+=s;k("raphael.drag.move."+
z.el.id,z.move_scope||z.el,c-z.el._drag.x,f-z.el._drag.y,c,f,a)}}},wa=function(a){b.unmousemove(I).unmouseup(wa);for(var c=Ac.length,f;c--;)f=Ac[c],f.el._drag={},k("raphael.drag.end."+f.el.id,f.end_scope||f.start_scope||f.move_scope||f.el,a);Ac=[]},Ja=b.el={},pd=G.length;pd--;)(function(a){b[a]=Ja[a]=function(c,f){b.is(c,"function")&&(this.events=this.events||[],this.events.push({name:a,f:c,unbind:mc(this.shape||this.node||v.doc,a,c,f||this)}));return this};b["un"+a]=Ja["un"+a]=function(b){for(var c=
this.events||[],f=c.length;f--;)if(c[f].name==a&&c[f].f==b){c[f].unbind();c.splice(f,1);!c.length&&delete this.events;break}return this}})(G[pd]);Ja.data=function(a,c){var f=E[this.id]=E[this.id]||{};if(1==arguments.length){if(b.is(a,"object")){for(var s in a)a.hasOwnProperty(s)&&this.data(s,a[s]);return this}k("raphael.data.get."+this.id,this,f[a],a);return f[a]}f[a]=c;k("raphael.data.set."+this.id,this,c,a);return this};Ja.removeData=function(a){null==a?delete E[this.id]:E[this.id]&&delete E[this.id][a];
return this};Ja.getData=function(){return ta(E[this.id]||{})};var Jc=[],vd=function(){this.untrack=mc(v.doc,"mouseup",ud,this)},ud=function(){this.untrack();this.untrack=null;return this.fn&&this.fn.apply(this.scope||this.el,arguments)};Ja.mouseup=function(a,c,f){if(!f)return b.mouseup.apply(this,arguments);Jc.push(f={el:this,fn:a,scope:c});f.unbind=mc(this.shape||this.node||v.doc,"mousedown",vd,f);return this};Ja.unmouseup=function(a){for(var c=Jc.length,f;c--;)Jc[c].el===this&&Jc[c].fn===a&&(f=
Jc[c],f.unbind(),f.untrack&&f.untrack(),Jc.splice(c,1));return f?this:b.unmouseup.apply(this,arguments)};Ja.hover=function(a,b,c,f){return this.mouseover(a,c).mouseout(b,f||c)};Ja.unhover=function(a,b){return this.unmouseover(a).unmouseout(b)};var Kc=[];Ja.drag=function(a,c,f,s,d,z){function m(A){(A.originalEvent||A).preventDefault();var r=v.doc.documentElement.scrollTop||v.doc.body.scrollTop,O=v.doc.documentElement.scrollLeft||v.doc.body.scrollLeft;this._drag.x=A.clientX+O;this._drag.y=A.clientY+
r;this._drag.id=A.identifier;!Ac.length&&b.mousemove(I).mouseup(wa);pa&&!Ca&&!Ac.length&&b.dragmove(I).dragend(wa);Ac.push({el:this,move_scope:s,start_scope:d,end_scope:z});c&&k.on("raphael.drag.start."+this.id,c);a&&k.on("raphael.drag.move."+this.id,a);f&&k.on("raphael.drag.end."+this.id,f);k("raphael.drag.start."+this.id,d||s||this,A.clientX+O,A.clientY+r,A)}this._drag={};Kc.push({el:this,start:m});this.mousedown(m);pa&&!Ca&&this.dragstart(m);return this};Ja.onDragOver=function(a){a?k.on("raphael.drag.over."+
this.id,a):k.unbind("raphael.drag.over."+this.id)};Ja.undrag=function(){for(var a=Kc.length;a--;)Kc[a].el==this&&(this.unmousedown(Kc[a].start),Kc.splice(a,1),k.unbind("raphael.drag.*."+this.id));!Kc.length&&b.unmousemove(I).unmouseup(wa);delete this._drag};Ja.follow=function(a,c,f){if(a.removed||a.constructor!==b.el.constructor)return this;a.followers.push({el:this,stalk:f={before:"insertBefore",after:"insertAfter"}[f],cb:c});f&&this[f](a);return this};Ja.unfollow=function(a){if(a.removed||a.constructor!==
b.el.constructor)return this;for(var c=0,f=a.followers.length;c<f;c++)if(a.followers[c].el===this){a.followers.splice(c,1);break}return this};Q.hide=function(){this.canvas.style.visibility="hidden";return this};Q.show=function(){this.canvas.style.visibility="";return this};Q.group=function(){var a=arguments,c=ca(a,!0),a=b._engine.group(this,a[0],c);return this.__set__&&this.__set__.push(a),this._elementsById[a.id]=a};Q.circle=function(){var a=arguments,c=ca(a,!0),a=Va(a,"cx",0,"cy",0,"r",0,"fill",
"none","stroke","#000"),c=b._engine.circle(this,a,c);return this.__set__&&this.__set__.push(c),this._elementsById[c.id]=c};Q.rect=function(){var a=arguments,c=ca(a,!0),a=Va(a,"x",0,"y",0,"width",0,"height",0,"r",0,"fill","none","stroke","#000"),c=b._engine.rect(this,a,c);return this.__set__&&this.__set__.push(c),this._elementsById[c.id]=c};Q.ellipse=function(){var a=arguments,c=ca(a,!0),a=Va(a,"x",0,"y",0,"rx",0,"ry",0,"fill","none","stroke","#000"),c=b._engine.ellipse(this,a,c);return this.__set__&&
this.__set__.push(c),this._elementsById[c.id]=c};Q.path=function(){var a=arguments,c=ca(a,!0),a=Va(a,"path","","fill","none","stroke","#000"),c=b._engine.path(this,a,c);return this.__set__&&this.__set__.push(c),this._elementsById[c.id]=c};Q.image=function(){var a=arguments,c=ca(a,!0),a=Va(a,"src","about:blank","x",0,"y",0,"width",0,"height",0);out=b._engine.image(this,a,c);return this.__set__&&this.__set__.push(out),this._elementsById[out.id]=out};Q.text=function(){var a=arguments,c=ca(a,!0),a=Va(a,
"x",0,"y",0,"text","","stroke","none","fill","#000","text-anchor","middle","vertical-align","middle"),c=b._engine.text(this,a,c);return this.__set__&&this.__set__.push(c),this._elementsById[c.id]=c};Q.set=function(a){!b.is(a,"array")&&(a=w.call(arguments,0,arguments.length));var c=new Lc(a);this.__set__&&this.__set__.push(c);return c};Q.setStart=function(a){this.__set__=a||this.set()};Q.setFinish=function(a){a=this.__set__;delete this.__set__;return a};Q.setSize=function(a,c){return b._engine.setSize.call(this,
a,c)};Q.setViewBox=function(a,c,f,s,d){return b._engine.setViewBox.call(this,a,c,f,s,d)};Q.top=Q.bottom=null;Q.raphael=b;Q.getElementByPoint=function(a,b){var c,f,s=this.canvas,d=v.doc.elementFromPoint(a,b);if(v.win.opera&&"svg"==d.tagName){f=s.getBoundingClientRect();c=s.ownerDocument;var z=c.body,A=c.documentElement;c=f.top+(v.win.pageYOffset||A.scrollTop||z.scrollTop)-(A.clientTop||z.clientTop||0);f=f.left+(v.win.pageXOffset||A.scrollLeft||z.scrollLeft)-(A.clientLeft||z.clientLeft||0);z=s.createSVGRect();
z.x=a-f;z.y=b-c;z.width=z.height=1;c=s.getIntersectionList(z,null);c.length&&(d=c[c.length-1])}if(!d)return null;for(;d.parentNode&&d!=s.parentNode&&!d.raphael;)d=d.parentNode;d==this.canvas.parentNode&&(d=s);return d=d&&d.raphael?this.getById(d.raphaelid):null};Q.getElementsByBBox=function(a){var c=this.set();this.forEach(function(f){b.isBBoxIntersect(f.getBBox(),a)&&c.push(f)});return c};Q.getById=function(a){return this._elementsById[a]||null};Q.forEach=function(a,b){for(var c=this.bottom;c&&!1!==
a.call(b,c);)c=c.next;return this};Q.getElementsByPoint=function(a,b){var c=this.set();this.forEach(function(f){f.isPointInside(a,b)&&c.push(f)});return c};Ja.isPointInside=function(a,c){var f=this.realPath=this.realPath||na[this.type](this),s;return b.isPointInsidePath((s=this.attr("transform"))&&s.length&&b.transformPath(f,s)||f,a,c)};Ja.getBBox=function(a){if(this.removed)return{};var b=this._;if(a){if(b.dirty||!b.bboxwt)this.realPath=na[this.type](this),b.bboxwt=vb(this.realPath),b.bboxwt.toString=
U,b.dirty=0;return b.bboxwt}if(b.dirty||b.dirtyT||!b.bbox){if(b.dirty||!this.realPath)b.bboxwt=0,this.realPath=na[this.type](this);b.bbox=vb(Xa(this.realPath,this.matrix));b.bbox.toString=U;b.dirty=b.dirtyT=0}return b.bbox};Ja.clone=function(){if(this.removed)return null;var a=this.paper[this.type]().attr(this.attr());this.__set__&&this.__set__.push(a);return a};Ja.glow=function(a){if("text"==this.type)return null;a=a||{};var b=(a.width||10)+(+this.attr("stroke-width")||1),c=a.fill||!1,f=a.opacity||
.5,s=a.offsetx||0,d=a.offsety||0;a=a.color||"#000";for(var z=b/2,A=this.paper,m=A.set(),r=this.realPath||na[this.type](this),r=this.matrix?Xa(r,this.matrix):r,O=1;O<z+1;O++)m.push(A.path(r).attr({stroke:a,fill:c?a:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(b/z*O).toFixed(3),opacity:+(f/z).toFixed(3)}));return m.insertBefore(this).translate(s,d)};var dd=function(a,f,s,d,z,A,m,r,O){return null==O?c(a,f,s,d,z,A,m,r):b.findDotsAtSegment(a,f,s,d,z,A,m,r,p(a,f,s,d,z,A,m,
r,O))},ed=function(a,c){return function(f,d,z){f=s(f);for(var A,m,r,O,e="",g={},h=0,X=0,H=f.length;X<H;X++){r=f[X];if("M"==r[0])A=+r[1],m=+r[2];else{O=dd(A,m,r[1],r[2],r[3],r[4],r[5],r[6]);if(h+O>d){if(c&&!g.start){A=dd(A,m,r[1],r[2],r[3],r[4],r[5],r[6],d-h);e+=["C"+A.start.x,A.start.y,A.m.x,A.m.y,A.x,A.y];if(z)return e;g.start=e;e=["M"+A.x,A.y+"C"+A.n.x,A.n.y,A.end.x,A.end.y,r[5],r[6]].join();h+=O;A=+r[5];m=+r[6];continue}if(!a&&!c)return A=dd(A,m,r[1],r[2],r[3],r[4],r[5],r[6],d-h),{x:A.x,y:A.y,
alpha:A.alpha}}h+=O;A=+r[5];m=+r[6]}e+=r.shift()+r}g.end=e;A=a?h:c?g:b.findDotsAtSegment(A,m,r[0],r[1],r[2],r[3],r[4],r[5],1);A.alpha&&(A={x:A.x,y:A.y,alpha:A.alpha});return A}},Xc=ed(1),qd=ed(),fd=ed(0,1);b.getTotalLength=Xc;b.getPointAtLength=qd;b.getSubpath=function(a,b,c){if(1E-6>this.getTotalLength(a)-c)return fd(a,b).end;a=fd(a,c,1);return b?fd(a,b).end:a};Ja.getTotalLength=function(){if("path"==this.type)return this.node.getTotalLength?this.node.getTotalLength():Xc(this.attrs.path)};Ja.getPointAtLength=
function(a){if("path"==this.type)return qd(this.attrs.path,a)};Ja.getSubpath=function(a,c){if("path"==this.type)return b.getSubpath(this.attrs.path,a,c)};var Ya=b.easing_formulas={linear:function(a){return a},"<":function(a){return va(a,1.7)},">":function(a){return va(a,.48)},"<>":function(a){var b=.48-a/1.04,c=ha(.1734+b*b);a=c-b;a=va(xa(a),1/3)*(0>a?-1:1);b=-c-b;b=va(xa(b),1/3)*(0>b?-1:1);a=a+b+.5;return 3*(1-a)*a*a+a*a*a},backIn:function(a){return a*a*(2.70158*a-1.70158)},backOut:function(a){--a;
return a*a*(2.70158*a+1.70158)+1},elastic:function(a){return a==!!a?a:va(2,-10*a)*Na(2*(a-.075)*ka/.3)+1},bounce:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+.9375):(a-=2.625/2.75,a=7.5625*a*a+.984375);return a}};Ya.easeIn=Ya["ease-in"]=Ya["<"];Ya.easeOut=Ya["ease-out"]=Ya[">"];Ya.easeInOut=Ya["ease-in-out"]=Ya["<>"];Ya["back-in"]=Ya.backIn;Ya["back-out"]=Ya.backOut;var Oa=[],od=e.requestAnimationFrame||e.webkitRequestAnimationFrame||
e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(a){setTimeout(a,16)},cb=function(){for(var a=+new Date,c=0;c<Oa.length;c++){var f=Oa[c];if(!f.el.removed&&!f.paused){var s=a-f.start,z=f.ms,A=f.easing,m=f.from,r=f.diff,O=f.to,e=f.el,g={},h,X={},H;f.initstatus?(s=(f.initstatus*f.anim.top-f.prev)/(f.percent-f.prev)*z,f.status=f.initstatus,delete f.initstatus,f.stop&&Oa.splice(c--,1)):f.status=(f.prev+s/z*(f.percent-f.prev))/f.anim.top;if(!(0>s))if(s<z){var E=
A(s/z),B;for(B in m)if(m.hasOwnProperty(B)){switch(M[B]){case P:h=+m[B]+E*z*r[B];break;case "colour":h="rgb("+[gd(Sa(m[B].r+E*z*r[B].r)),gd(Sa(m[B].g+E*z*r[B].g)),gd(Sa(m[B].b+E*z*r[B].b))].join()+")";break;case "path":h=[];s=0;for(A=m[B].length;s<A;s++){h[s]=[m[B][s][0]];O=1;for(X=m[B][s].length;O<X;O++)h[s][O]=(+m[B][s][O]+E*z*r[B][s][O]).toFixed(4);h[s]=h[s].join(" ")}h=h.join(" ");break;case "transform":if(r[B].real)for(h=[],s=0,A=m[B].length;s<A;s++)for(h[s]=[m[B][s][0]],O=1,X=m[B][s].length;O<
X;O++)h[s][O]=m[B][s][O]+E*z*r[B][s][O];else h=function(a){return+m[B][a]+E*z*r[B][a]},h=[["m",h(0),h(1),h(2),h(3),h(4),h(5)]];break;case "csv":if("clip-rect"==B)for(h=[],s=4;s--;)h[s]=+m[B][s]+E*z*r[B][s];break;default:for(A=[].concat(m[B]),h=[],s=e.ca[B].length;s--;)h[s]=+A[s]+E*z*r[B][s]}g[B]=h}e.attr(g);(function(a,b,c){setTimeout(function(){k("raphael.anim.frame."+a,b,c)})})(e.id,e,f.anim)}else{(function(a,c,f){setTimeout(function(){k("raphael.anim.frame."+c.id,c,f);k("raphael.anim.finish."+
c.id,c,f);b.is(a,"function")&&a.call(c)})})(f.callback,e,f.anim);e.attr(O);Oa.splice(c--,1);if(1<f.repeat&&!f.next){for(H in O)O.hasOwnProperty(H)&&(X[H]=f.totalOrigin[H]);f.el.attr(X);d(f.anim,f.el,f.anim.percents[0],null,f.totalOrigin,f.repeat-1)}f.next&&!f.stop&&d(f.anim,f.el,f.next,null,f.totalOrigin,f.repeat)}}}b.svg&&e&&e.paper&&e.paper.safari();Oa.length&&od(cb)},gd=function(a){return 255<a?255:0>a?0:a};Ja.animateWith=function(a,c,f,s,z,A){if(this.removed)return A&&A.call(this),this;f=f instanceof
g?f:b.animation(f,s,z,A);d(f,this,f.percents[0],null,this.attr());f=0;for(s=Oa.length;f<s;f++)if(Oa[f].anim==c&&Oa[f].el==a){Oa[s-1].start=Oa[f].start;break}return this};Ja.onAnimation=function(a){a?k.on("raphael.anim.frame."+this.id,a):k.unbind("raphael.anim.frame."+this.id);return this};g.prototype.delay=function(a){var b=new g(this.anim,this.ms);b.times=this.times;b.del=+a||0;return b};g.prototype.repeat=function(a){var b=new g(this.anim,this.ms);b.del=this.del;b.times=Z.floor(Da(a,0))||1;return b};
b.animation=function(a,c,f,s){if(a instanceof g)return a;if(b.is(f,"function")||!f)s=s||f||null,f=null;a=Object(a);c=+c||0;var d={},z,A;for(A in a)a.hasOwnProperty(A)&&B(A)!=A&&B(A)+"%"!=A&&(z=!0,d[A]=a[A]);return z?(f&&(d.easing=f),s&&(d.callback=s),new g({100:d},c)):new g(a,c)};Ja.animate=function(a,c,f,s){if(this.removed)return s&&s.call(this),this;a=a instanceof g?a:b.animation(a,c,f,s);d(a,this,a.percents[0],null,this.attr());return this};Ja.setTime=function(a,b){a&&null!=b&&this.status(a,T(b,
a.ms)/a.ms);return this};Ja.status=function(a,b){var c=[],f=0,s,z;if(null!=b)return d(a,this,-1,T(b,1)),this;for(s=Oa.length;f<s;f++)if(z=Oa[f],z.el.id==this.id&&(!a||z.anim==a)){if(a)return z.status;c.push({anim:z.anim,status:z.status})}return a?0:c};Ja.pause=function(a){for(var b=0;b<Oa.length;b++)Oa[b].el.id!=this.id||a&&Oa[b].anim!=a||!1===k("raphael.anim.pause."+this.id,this,Oa[b].anim)||(Oa[b].paused=!0);return this};Ja.resume=function(a){for(var b=0;b<Oa.length;b++)if(Oa[b].el.id==this.id&&
(!a||Oa[b].anim==a)){var c=Oa[b];!1!==k("raphael.anim.resume."+this.id,this,c.anim)&&(delete c.paused,this.status(c.anim,c.status))}return this};Ja.stop=function(a){for(var b=0;b<Oa.length;b++)Oa[b].el.id!=this.id||a&&Oa[b].anim!=a||!1!==k("raphael.anim.stop."+this.id,this,Oa[b].anim)&&Oa.splice(b--,1);return this};k.on("raphael.remove",h);k.on("raphael.clear",h);Ja.toString=function(){return"Raphaël’s object"};Ja.toFront=function(){if(this.removed)return this;var a=b._engine.getNode(this),c=this.parent,
f=this.followers,s;b._tofront(this,c)&&c.canvas.appendChild(a);a=0;for(c=f.length;a<c;a++)(s=f[a]).stalk&&s.el[s.stalk](this);return this};Ja.toBack=function(){if(this.removed)return this;var a=b._engine.getNode(this),c=this.parent,f=this.followers,s;b._toback(this,c)&&c.canvas.insertBefore(a,c.canvas.firstChild);a=0;for(c=f.length;a<c;a++)(s=f[a]).stalk&&s.el[s.stalk](this);return this};Ja.insertAfter=function(a){if(this.removed)return this;var c=b._engine.getNode(this),f=b._engine.getLastNode(a),
s=a.parent.canvas,d=this.followers,z;f.nextSibling?s.insertBefore(c,f.nextSibling):s.appendChild(c);b._insertafter(this,a,this.parent,a.parent);c=0;for(f=d.length;c<f;c++)(z=d[c]).stalk&&z.el[z.stalk](a);return this};Ja.insertBefore=function(a){if(this.removed)return this;var c=b._engine.getNode(this),f=b._engine.getNode(a),s=this.followers,d;a.parent.canvas.insertBefore(c,f);b._insertbefore(this,a,this.parent,a.parent);this.parent=a.parent;c=0;for(f=s.length;c<f;c++)(d=s[c]).stalk&&d.el[d.stalk](a);
return this};Ja.appendChild=function(a){if(this.removed||"group"!==this.type)return this;var c=this.followers,f,s,d;if(a.parent===this)return a.toFront(),this;s=b._engine.getNode(a);b._tear(a,a.parent);this.canvas.appendChild(s);a.parent=this;!this.bottom&&(this.bottom=a);a.prev=this.top;a.next=null;this.top&&(this.top.next=a);this.top=a;s=0;for(d=c.length;s<d;s++)(f=c[s]).stalk&&f.el[f.stalk](a);return this};Ja.removeChild=function(a){if(this.removed||"group"!==this.type||a.parent!==this)return this;
var c=b._engine.getNode(a),f=this.paper;b._tear(a,this);f.canvas.appendChild(c);this.parent=f;!f.bottom&&(f.bottom=this);(this.prev=f.top)&&(f.top.next=this);f.top=this;this.next=null;return this};var Lc=function(a){this.items=[];this.length=0;this.type="set";if(a)for(var b=0,c=a.length;b<c;b++)!a[b]||a[b].constructor!=Ja.constructor&&a[b].constructor!=Lc||(this[this.items.length]=this.items[this.items.length]=a[b],this.length++)},Ib=Lc.prototype;Ib.push=function(){for(var a,b,c=0,f=arguments.length;c<
f;c++)!(a=arguments[c])||a.constructor!=Ja.constructor&&a.constructor!=Lc||(b=this.items.length,this[b]=this.items[b]=a,this.length++);return this};Ib.pop=function(){this.length&&delete this[this.length--];return this.items.pop()};Ib.forEach=function(a,b){for(var c=0,f=this.items.length;c<f&&!1!==a.call(b,this.items[c],c);c++);return this};for(var jb in Ja)Ja.hasOwnProperty(jb)&&(Ib[jb]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a][L](c,b)})}}(jb));Ib.attr=function(a,
c){if(a&&b.is(a,n)&&b.is(a[0],"object"))for(var f=0,s=a.length;f<s;f++)this.items[f].attr(a[f]);else for(f=0,s=this.items.length;f<s;f++)this.items[f].attr(a,c);return this};Ib.clear=function(){for(;this.length;)this.pop()};Ib.splice=function(a,b,c){a=0>a?Da(this.length+a,0):a;b=Da(0,T(this.length-a,isNaN(b)&&this.length||b));var f=[],s=[],d=[],z;for(z=2;z<arguments.length;z++)d.push(arguments[z]);for(z=0;z<b;z++)s.push(this[a+z]);for(;z<this.length-a;z++)f.push(this[a+z]);var A=d.length;for(z=0;z<
A+f.length;z++)this.items[a+z]=this[a+z]=z<A?d[z]:f[z-A];for(z=this.items.length=this.length-=b-A;this[z];)delete this[z++];return new Lc(s)};Ib.exclude=function(a){for(var b=0,c=this.length;b<c;b++)if(this[b]==a)return this.splice(b,1),!0};Ib.animate=function(a,c,f,s){!b.is(f,"function")&&f||(s=f||null);var d=this.items.length,z=d,A=this,m;if(!d)return this;s&&(m=function(){!--d&&s.call(A)});f=b.is(f,"string")?f:m;c=b.animation(a,c,f,m);for(a=this.items[--z].animate(c);z--;)this.items[z]&&!this.items[z].removed&&
this.items[z].animateWith(a,c,c);return this};Ib.insertAfter=function(a){for(var b=this.items.length;b--;)this.items[b].insertAfter(a);return this};Ib.getBBox=function(){for(var a=[],b=[],c=[],f=[],s=this.items.length;s--;)if(!this.items[s].removed){var d=this.items[s].getBBox();a.push(d.x);b.push(d.y);c.push(d.x+d.width);f.push(d.y+d.height)}a=T[L](0,a);b=T[L](0,b);c=Da[L](0,c);f=Da[L](0,f);return{x:a,y:b,x2:c,y2:f,width:c-a,height:f-b}};Ib.clone=function(a){a=new Lc;for(var b=0,c=this.items.length;b<
c;b++)a.push(this.items[b].clone());return a};Ib.toString=function(){return"Raphaël‘s set"};Ib.glow=function(a){var b=this.paper.set();this.forEach(function(c,f){var s=c.glow(a);null!=s&&s.forEach(function(a,c){b.push(a)})});return b};b.registerFont=function(a){if(!a.face)return a;this.fonts=this.fonts||{};var b={w:a.w,face:{},glyphs:{}},c=a.face["font-family"],f;for(f in a.face)a.face.hasOwnProperty(f)&&(b.face[f]=a.face[f]);this.fonts[c]?this.fonts[c].push(b):this.fonts[c]=[b];if(!a.svg){b.face["units-per-em"]=
ga(a.face["units-per-em"],10);for(var s in a.glyphs)if(a.glyphs.hasOwnProperty(s)&&(c=a.glyphs[s],b.glyphs[s]={w:c.w,k:{},d:c.d&&"M"+c.d.replace(/[mlcxtrv]/g,function(a){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[a]||"M"})+"z"},c.k))for(var d in c.k)c.hasOwnProperty(d)&&(b.glyphs[s].k[d]=c.k[d])}return a};Q.getFont=function(a,c,f,s){s=s||"normal";f=f||"normal";c=+c||{normal:400,bold:700,lighter:300,bolder:800}[c]||400;if(b.fonts){var d=b.fonts[a];if(!d){a=new RegExp("(^|\\s)"+a.replace(/[^\w\d\s+!~.:_-]/g,
"")+"(\\s|$)","i");for(var z in b.fonts)if(b.fonts.hasOwnProperty(z)&&a.test(z)){d=b.fonts[z];break}}var A;if(d)for(z=0,a=d.length;z<a&&(A=d[z],A.face["font-weight"]!=c||A.face["font-style"]!=f&&A.face["font-style"]||A.face["font-stretch"]!=s);z++);return A}};Q.print=function(a,c,f,s,d,z,A){z=z||"middle";A=Da(T(A||0,1),-1);var m=r(f).split(""),O=0,e=0,g="";b.is(s,f)&&(s=this.getFont(s));if(s){f=(d||16)/s.face["units-per-em"];var h=s.face.bbox.split(ab);d=+h[0];var X=h[3]-h[1],H=0;z=+h[1]+("baseline"==
z?X+ +s.face.descent:X/2);for(var h=0,B=m.length;h<B;h++){if("\n"==m[h])e=n=O=0,H+=X;else var E=e&&s.glyphs[m[h-1]]||{},n=s.glyphs[m[h]],O=O+(e?(E.w||s.w)+(E.k&&E.k[m[h]]||0)+s.w*A:0),e=1;n&&n.d&&(g+=b.transformPath(n.d,["t",O*f,H*f,"s",f,f,d,z,"t",(a-d)/f,(c-z)/f]))}}return this.path(g).attr({fill:"#000",stroke:"none"})};Q.add=function(a){if(b.is(a,"array"))for(var c=this.set(),f=0,s=a.length,d;f<s;f++)d=a[f]||{},ya.hasOwnProperty(d.type)&&c.push(this[d.type]().attr(d));return c};b.format=function(a,
c){var f=b.is(c,n)?[0].concat(c):arguments;a&&b.is(a,"string")&&f.length-1&&(a=a.replace(Ea,function(a,b){return null==f[++b]?"":f[b]}));return a||""};b.fullfill=function(){var a=/\{([^\}]+)\}/g,b=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,c=function(a,c,f){var s=f;c.replace(b,function(a,b,c,f,d){b=b||f;s&&(b in s&&(s=s[b]),"function"==typeof s&&d&&(s=s()))});return s=(null==s||s==f?a:s)+""};return function(b,f){return String(b).replace(a,function(a,b){return c(a,b,f)})}}();b.ninja=
function(){oa?v.win.Raphael=ea:delete Raphael;return b};var bb=b.vml&&.5||0;b.crispBound=rb(function(a,b,c,f,s){var d={},z;a=a||0;b=b||0;c=c||0;f=f||0;s=s||0;z=s%2/2+bb;d.x=Sa(a+z)-z;d.y=Sa(b+z)-z;d.width=Sa(a+c+z)-z-d.x;d.height=Sa(b+f+z)-z-d.y;d["stroke-width"]=s;0===d.width&&0!==c&&(d.width=1);0===d.height&&0!==f&&(d.height=1);return d},b);Ja.crisp=function(){var a=this.attrs,c,f=this.attr(["x","y","width","height","stroke-width"]),f=b.crispBound(f.x,f.y,f.width,f.height,f["stroke-width"]);for(c in f)a[c]===
f[c]&&delete f[c];return this.attr(f)};b.st=Ib;b.define=function(a,c,f,s,d,z){var A;if(b.is(a,n))for(z=0,A=a.length;z<A;z++)b.define(a[z]);else if(b.is(a,"object"))b.define(a.name,a[a.name],a.ca,a.fn,a.e,a.data);else if(a&&!b.fn[a])return b.fn[a]=function(){var z=arguments,A=c.apply(this,z),m;if(s&&b.is(s,"object"))for(m in s)A[m]=s[m];if(d&&b.is(d,"object"))for(m in d)A[m]&&A[m](d[m]);if(f){if(b.is(f,"function"))A.ca[a]=f;else for(m in f)A.ca[m]=f[m];A.ca[a]&&(b._lastArgIfGroup(z,!0),A.attr(a,C.call(z)))}return A},
f&&(b.fn[a].ca=f),s&&(b.fn[a].fn=s),d&&(b.fn[a].e=d),z&&(b.fn[a].data=z),b.fn[a]};(function(a,c,f){function s(){/in/.test(a.readyState)?setTimeout(s,9):b.eve("raphael.DOMload")}null==a.readyState&&a.addEventListener&&(a.addEventListener(c,f=function(){a.removeEventListener(c,f,!1);a.readyState="complete"},!1),a.readyState="loading");s()})(document,"DOMContentLoaded");k.on("raphael.DOMload",function(){l=!0});(function(){if(b.svg){var a=String,c=parseFloat,f=parseInt,s=Math,d=s.max,z=s.abs,A=s.pow,
m=s.sqrt,r=/[, ]+/,O=!(!/AppleWebKit/.test(b._g.win.navigator.userAgent)||/Chrome/.test(b._g.win.navigator.userAgent)&&!(29>b._g.win.navigator.appVersion.match(/Chrome\/(\d+)\./)[1])),e=b.eve,g={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},h={};b.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};b._url="";var X=function(a,b){var c=
a.gradient;if(c){if(c===b)return;c.refCount--;c.refCount||c.parentNode.removeChild(c);delete a.gradient}b&&(a.gradient=b,b.refCount++)},H=b._createNode=function(c,f){if(f){"string"==typeof c&&(c=H(c));for(var s in f)f.hasOwnProperty(s)&&("xlink:"==s.substring(0,6)?c.setAttributeNS("http://www.w3.org/1999/xlink",s.substring(6),a(f[s])):c.setAttribute(s,a(f[s])))}else c=b._g.doc.createElementNS("http://www.w3.org/2000/svg",c);return c},B={userSpaceOnUse:"userSpaceOnUse",objectBoundingBox:"objectBoundingBox"},
E={pad:"pad",redlect:"reflect",repeat:"repeat"},n=function(f,r){if(!f.paper||!f.paper.defs)return 0;var O="linear",e=f.paper,g=(e.id+"-"+r).replace(/[\(\)\s%:,\xb0#]/g,"_"),h=.5,n=.5,Ia,l,I,G,K,M=f.node,k=M.style,p=b._g.doc.getElementById(g);if(!p){r=a(r).replace(b._radial_gradient,function(a,b){O="radial";b=b&&b.split(",")||[];G=b[5];K=b[6];var f=b[0],s=b[1],d=b[2],z=b[3],r=b[4],e=f&&s,g;d&&(Ia=/\%/.test(d)?d:c(d));if(G===B.userSpaceOnUse)return e&&(h=f,n=s),z&&r&&(l=z,I=r,e||(h=l,n=I)),"";e&&(h=
c(f),n=c(s),f=2*(.5<n)-1,.25<(g=A(h-.5,2))+A(n-.5,2)&&.25>g&&(n=m(.25-g)*f+.5)&&.5!==n&&(n=n.toFixed(5)-1E-5*f));z&&r&&(l=c(z),I=c(r),f=2*(.5<I)-1,.25<(g=A(l-.5,2))+A(I-.5,2)&&.25>g&&(I=m(.25-g)*f+.5)&&.5!==I&&(I=I.toFixed(5)-1E-5*f),e||(h=l,n=I));return""});r=r.split(/\s*\-\s*/);if("linear"==O){var p=r.shift(),w=p.match(/\((.*)\)/),aa,w=w&&w[1]&&w[1].split(/\s*\,\s*/),p=-c(p);if(isNaN(p))return null;w&&w.length?(w[0]in B?(G=w.shift(),w[0]in E&&(K=w.shift())):(w[4]&&(G=w[4]),w[5]&&(K=w[5])),aa=[w[0]||
"0%",w[1]||"0%",w[2]||"100%",w[3]||"0%"]):(aa=[0,0,s.cos(b.rad(p)),s.sin(b.rad(p))],p=1/(d(z(aa[2]),z(aa[3]))||1),aa[2]*=p,aa[3]*=p,0>aa[2]&&(aa[0]=-aa[2],aa[2]=0),0>aa[3]&&(aa[1]=-aa[3],aa[3]=0))}w=b._parseDots(r);if(!w)return null;p=H(O+"Gradient",{id:g});p.refCount=0;G in B&&p.setAttribute("gradientUnits",a(G));K in E&&p.setAttribute("spreadMethod",a(K));"radial"===O?(void 0!==Ia&&p.setAttribute("r",a(Ia)),void 0!==l&&void 0!==I&&(p.setAttribute("cx",a(l)),p.setAttribute("cy",a(I))),p.setAttribute("fx",
a(h)),p.setAttribute("fy",a(n))):H(p,{x1:aa[0],y1:aa[1],x2:aa[2],y2:aa[3]});aa=0;for(var ac=w.length;aa<ac;aa++)p.appendChild(H("stop",{offset:w[aa].offset?w[aa].offset:aa?"100%":"0%","stop-color":w[aa].color||"#fff","stop-opacity":void 0===w[aa].opacity?1:w[aa].opacity}));e.defs.appendChild(p)}X(f,p);H(M,{fill:"url('"+b._url+"#"+g+"')",opacity:1,"fill-opacity":1});k.fill="";k.opacity=1;return k.fillOpacity=1},Ia=function(a){var b=a.getBBox(1);H(a.pattern,{patternTransform:a.matrix.invert()+" translate("+
b.x+","+b.y+")"})},l=function(c,f,s){if("path"==c.type){for(var d=a(f).toLowerCase().split("-"),z=c.paper,A=s?"end":"start",m=c.node,r=c.attrs,O=r["stroke-width"],e=d.length,X="classic",B,E,n=3,l=3,Ia=5;e--;)switch(d[e]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":X=d[e];break;case "wide":l=5;break;case "narrow":l=2;break;case "long":n=5;break;case "short":n=2}"open"==X?(n+=2,l+=2,Ia+=2,B=1,E=s?4:1,d={fill:"none",stroke:r.stroke}):(E=B=n/2,d={fill:r.stroke,stroke:"none"});
c._.arrows?s?(c._.arrows.endPath&&h[c._.arrows.endPath]--,c._.arrows.endMarker&&h[c._.arrows.endMarker]--):(c._.arrows.startPath&&h[c._.arrows.startPath]--,c._.arrows.startMarker&&h[c._.arrows.startMarker]--):c._.arrows={};if("none"!=X){var e="raphael-marker-"+X,I="raphael-marker-"+A+X+n+l+"-obj"+c.id;b._g.doc.getElementById(e)?h[e]++:(z.defs.appendChild(H(H("path"),{"stroke-linecap":"round",d:g[X],id:e})),h[e]=1);var G=b._g.doc.getElementById(I);G?(h[I]++,n=G.getElementsByTagName("use")[0]):(G=H(H("marker"),
{id:I,markerHeight:l,markerWidth:n,orient:"auto",refX:E,refY:l/2}),n=H(H("use"),{"xlink:href":"#"+e,transform:(s?"rotate(180 "+n/2+" "+l/2+") ":"")+"scale("+n/Ia+","+l/Ia+")","stroke-width":(1/((n/Ia+l/Ia)/2)).toFixed(4)}),G.appendChild(n),z.defs.appendChild(G),h[I]=1);H(n,d);z=B*("diamond"!=X&&"oval"!=X);s?(s=c._.arrows.startdx*O||0,O=b.getTotalLength(r.path)-z*O):(s=z*O,O=b.getTotalLength(r.path)-(c._.arrows.enddx*O||0));d={};d["marker-"+A]="url('"+b._url+"#"+I+"')";if(O||s)d.d=b.getSubpath(r.path,
s,O);H(m,d);c._.arrows[A+"Path"]=e;c._.arrows[A+"Marker"]=I;c._.arrows[A+"dx"]=z;c._.arrows[A+"Type"]=X;c._.arrows[A+"String"]=f}else s?(s=c._.arrows.startdx*O||0,O=b.getTotalLength(r.path)-s):(s=0,O=b.getTotalLength(r.path)-(c._.arrows.enddx*O||0)),c._.arrows[A+"Path"]&&H(m,{d:b.getSubpath(r.path,s,O)}),delete c._.arrows[A+"Path"],delete c._.arrows[A+"Marker"],delete c._.arrows[A+"dx"],delete c._.arrows[A+"Type"],delete c._.arrows[A+"String"];for(d in h)h.hasOwnProperty(d)&&!h[d]&&(c=b._g.doc.getElementById(d))&&
c.parentNode.removeChild(c)}},I={"":[0],none:[0],"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},G=function(c,f,s){var d=I[a(f).toLowerCase()],z,A;if(f=d||void 0!==f&&[].concat(f)){z=c.attrs["stroke-width"]||1;s={round:z,square:z,butt:0}[c.attrs["stroke-linecap"]||s["stroke-linecap"]]||0;A=f.length;z=d?z:1;for(d=[];A--;)d[A]=f[A]*z+(A%2?1:-1)*s,0>d[A]&&(d[A]=0);b.is(f,"array")&&H(c.node,{"stroke-dasharray":d.join(",")})}},
K=function(a,b){for(var c in b)e("raphael.attr."+c+"."+a.id,a,b[c],c),a.ca[c]&&a.attr(c,b[c])},M=b._setFillAndStroke=function(c,s){if(c.paper.canvas){var A=c.node,m=c.attrs,e=c.paper,g=A.style,h=g.visibility;g.visibility="hidden";for(var B in s)if(s.hasOwnProperty(B)&&b._availableAttrs.hasOwnProperty(B)){var E=s[B];m[B]=E;switch(B){case "blur":c.blur(E);break;case "href":case "title":case "target":var I=A.parentNode;if("a"!=I.tagName.toLowerCase()){if(""==E)break;var K=H("a");K.raphael=!0;K.raphaelid=
A.raphaelid;I.insertBefore(K,A);K.appendChild(A);I=K}"target"==B?I.setAttributeNS("http://www.w3.org/1999/xlink","show","blank"==E?"new":E):I.setAttributeNS("http://www.w3.org/1999/xlink",B,E);A.titleNode=I;break;case "cursor":g.cursor=E;break;case "transform":c.transform(E);break;case "rotation":b.is(E,"array")?c.rotate.apply(c,E):c.rotate(E);break;case "arrow-start":l(c,E);break;case "arrow-end":l(c,E,1);break;case "clip-path":var p=!0;case "clip-rect":I=!p&&a(E).split(r);c._.clipispath=!!p;if(p||
4==I.length){c.clip&&c.clip.parentNode.parentNode.removeChild(c.clip.parentNode);var K=H("clipPath"),M=H(p?"path":"rect");K.id=b.createUUID();H(M,p?{d:E?m["clip-path"]=b._pathToAbsolute(E):b._availableAttrs.path,fill:"none"}:{x:I[0],y:I[1],width:I[2],height:I[3],transform:c.matrix.invert()});K.appendChild(M);e.defs.appendChild(K);H(A,{"clip-path":"url('"+b._url+"#"+K.id+"')"});c.clip=M}!E&&(E=A.getAttribute("clip-path"))&&((E=b._g.doc.getElementById(E.replace(/(^url\(#|\)$)/g,"")))&&E.parentNode.removeChild(E),
H(A,{"clip-path":""}),delete c.clip);break;case "path":"path"==c.type&&(H(A,{d:E?m.path=b._pathToAbsolute(E):b._availableAttrs.path}),c._.dirty=1,c._.arrows&&("startString"in c._.arrows&&l(c,c._.arrows.startString),"endString"in c._.arrows&&l(c,c._.arrows.endString,1)));break;case "width":if(A.setAttribute(B,E),c._.dirty=1,m.fx)B="x",E=m.x;else break;case "x":m.fx&&(E=-m.x-(m.width||0));case "rx":if("rx"==B&&"rect"==c.type)break;case "cx":A.setAttribute(B,E);c.pattern&&Ia(c);c._.dirty=1;break;case "height":if(A.setAttribute(B,
E),c._.dirty=1,m.fy)B="y",E=m.y;else break;case "y":m.fy&&(E=-m.y-(m.height||0));case "ry":if("ry"==B&&"rect"==c.type)break;case "cy":A.setAttribute(B,E);c.pattern&&Ia(c);c._.dirty=1;break;case "r":"rect"==c.type?H(A,{rx:E,ry:E}):A.setAttribute(B,E);c._.dirty=1;break;case "src":"image"==c.type&&A.setAttributeNS("http://www.w3.org/1999/xlink","href",E);break;case "stroke-width":if(1!=c._.sx||1!=c._.sy)E/=d(z(c._.sx),z(c._.sy))||1;e._vbSize&&(E*=e._vbSize);O&&0===E&&(E=1E-6);A.setAttribute(B,E);m["stroke-dasharray"]&&
G(c,m["stroke-dasharray"],s);c._.arrows&&("startString"in c._.arrows&&l(c,c._.arrows.startString),"endString"in c._.arrows&&l(c,c._.arrows.endString,1));break;case "stroke-dasharray":G(c,E,s);break;case "fill":var aa=a(E).match(b._ISURL);if(aa){var K=H("pattern"),k=H("image");K.id=b.createUUID();H(K,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});H(k,{x:0,y:0,"xlink:href":aa[1]});K.appendChild(k);(function(a){b._preload(aa[1],function(){var b=this.offsetWidth,c=this.offsetHeight;H(a,{width:b,
height:c});H(k,{width:b,height:c});e.safari()})})(K);e.defs.appendChild(K);g.fill="url('"+b._url+"#"+K.id+"')";H(A,{fill:g.fill});c.pattern=K;c.pattern&&Ia(c);break}I=b.getRGB(E);if(!I.error)delete s.gradient,delete m.gradient,!b.is(m.opacity,"undefined")&&b.is(s.opacity,"undefined")&&H(A,{opacity:m.opacity}),!b.is(m["fill-opacity"],"undefined")&&b.is(s["fill-opacity"],"undefined")&&H(A,{"fill-opacity":m["fill-opacity"]}),c.gradient&&X(c);else if(("circle"==c.type||"ellipse"==c.type||"r"!=a(E).charAt())&&
n(c,E)){if("opacity"in m||"fill-opacity"in m)if(I=b._g.doc.getElementById(A.getAttribute("fill").replace(/^url\(#|\)$/g,"")))I=I.getElementsByTagName("stop"),H(I[I.length-1],{"stop-opacity":("opacity"in m?m.opacity:1)*("fill-opacity"in m?m["fill-opacity"]:1)});m.gradient=E;m.fill="none";g.fill="";break}I.hasOwnProperty("opacity")?(H(A,{"fill-opacity":g.fillOpacity=1<I.opacity?I.opacity/100:I.opacity}),c._.fillOpacityDirty=!0):c._.fillOpacityDirty&&b.is(m["fill-opacity"],"undefined")&&b.is(s["fill-opacity"],
"undefined")&&(A.removeAttribute("fill-opacity"),g.fillOpacity="",delete c._.fillOpacityDirty);case "stroke":I=b.getRGB(E);A.setAttribute(B,I.hex);g[B]=I.hex;"stroke"==B&&(I.hasOwnProperty("opacity")?(H(A,{"stroke-opacity":g.strokeOpacity=1<I.opacity?I.opacity/100:I.opacity}),c._.strokeOpacityDirty=!0):c._.strokeOpacityDirty&&b.is(m["stroke-opacity"],"undefined")&&b.is(s["stroke-opacity"],"undefined")&&(A.removeAttribute("stroke-opacity"),g.strokeOpacity="",delete c._.strokeOpacityDirty),c._.arrows&&
("startString"in c._.arrows&&l(c,c._.arrows.startString),"endString"in c._.arrows&&l(c,c._.arrows.endString,1)));break;case "gradient":"circle"!=c.type&&"ellipse"!=c.type&&"r"==a(E).charAt()||n(c,E);break;case "line-height":case "vertical-align":break;case "visibility":"hidden"===E?c.hide():c.show();break;case "opacity":m.gradient&&!m.hasOwnProperty("stroke-opacity")&&H(A,{"stroke-opacity":1<E?E/100:E});case "fill-opacity":if(m.gradient){if(I=b._g.doc.getElementById(A.getAttribute("fill").replace(/^url\(#|\)$/g,
"")))I=I.getElementsByTagName("stop"),H(I[I.length-1],{"stop-opacity":E});break}default:"font-size"==B&&(E=f(E,10)+"px"),I=B.replace(/(\-.)/g,function(a){return a.substring(1).toUpperCase()}),g[I]=E,c._.dirty=1,A.setAttribute(B,E)}}"text"===c.type&&w(c,s);g.visibility=h}},w=function(f,d){if("text"==f.type&&(d.hasOwnProperty("text")||d.hasOwnProperty("font")||d.hasOwnProperty("font-size")||d.hasOwnProperty("x")||d.hasOwnProperty("y")||d.hasOwnProperty("line-height")||d.hasOwnProperty("vertical-align"))){var z=
f.attrs,A=f.node,m=A.firstChild&&b._g.doc.defaultView.getComputedStyle(A.firstChild,""),r=m?c(b._g.doc.defaultView.getComputedStyle(A.firstChild,"").getPropertyValue("font-size")):10,O=c(d["line-height"]||z["line-height"])||1.2*r,e=z.hasOwnProperty("vertical-align")?z["vertical-align"]:"middle",g=(d.direction||(m?m.getPropertyValue("direction"):"initial")).toLowerCase(),h=!!document.documentMode;isNaN(O)&&(O=1.2*r);b.is(d.text,"array")&&(d.text=d.text.join("<br>"));e="top"===e?-.5:"bottom"===e?.5:
0;if(d.hasOwnProperty("text")&&(d.text!==z.text||f._textdirty)){for(z.text=d.text;A.firstChild;)A.removeChild(A.firstChild);for(var E=a(d.text).split(/\n|<br\s*?\/?>/ig),r=[],X=0,B=E.length;X<B;X++)m=H("tspan"),X?H(m,{dy:O,x:z.x}):H(m,{dy:O*E.length*e,x:z.x}),E[X]||(m.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),E[X]=" "),m.appendChild(b._g.doc.createTextNode(E[X])),A.appendChild(m),r[X]=m,!h&&"rtl"===g&&X<B-1&&(m=H("tspan"),H(m,{visibility:"hidden","font-size":"0px"}),
m.appendChild(b._g.doc.createTextNode("i")),A.appendChild(m));f._textdirty=!1}else for(r=A.getElementsByTagName("tspan"),X=h=0,B=r.length;X<B;X++)if(m=r[X],g=m.attributes[0],!g||"visibility"!==g.name&&"visibility"!==g.nodeName||"hidden"!==g.value&&"hidden"!==g.nodeValue)X?H(m,{dy:O,x:z.x}):(g=r[1]&&r[1].attributes[0],!g||"visibility"!==g.name&&"visibility"!==g.nodeName||"hidden"!==g.value&&"hidden"!==g.nodeValue||(h=s.floor(.5*r.length)),H(r[0],{dy:O*(r.length-h)*e,x:z.x}));H(A,{x:z.x,y:z.y});f._.dirty=
1;A=f._getBBox();O=z.y-(A.y+A.height/2);if(A.isCalculated)switch(z["vertical-align"]){case "top":O=.75*A.height;break;case "bottom":O=-(.25*A.height);break;default:O=z.y-(A.y+.25*A.height)}O&&b.is(O,"finite")&&r[0]&&H(r[0],{dy:O})}},p=function(a,c,f){f=f||c;f.canvas&&f.canvas.appendChild(a);this.node=this[0]=a;a.raphael=!0;a.raphaelid=this.id=b._oid++;this.matrix=b.matrix();this.realPath=null;this.attrs=this.attrs||{};this.followers=this.followers||[];this.paper=c;this.ca=this.customAttributes=this.customAttributes||
new c._CustomAttributes;this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1};this.parent=f;!f.bottom&&(f.bottom=this);(this.prev=f.top)&&(f.top.next=this);f.top=this;this.next=null},k=b.el;p.prototype=k;k.constructor=p;b._engine.getNode=function(a){a=a.node||a[0].node;return a.titleNode||a};b._engine.getLastNode=function(a){a=a.node||a[a.length-1].node;return a.titleNode||a};k.rotate=function(b,f,s){if(this.removed)return this;b=a(b).split(r);b.length-1&&(f=c(b[1]),s=c(b[2]));b=c(b[0]);null==s&&
(f=s);if(null==f||null==s)s=this.getBBox(1),f=s.x+s.width/2,s=s.y+s.height/2;this.transform(this._.transform.concat([["r",b,f,s]]));return this};k.scale=function(b,f,s,d){var z;if(this.removed)return this;b=a(b).split(r);b.length-1&&(f=c(b[1]),s=c(b[2]),d=c(b[3]));b=c(b[0]);null==f&&(f=b);null==d&&(s=d);if(null==s||null==d)z=this.getBBox(1);s=null==s?z.x+z.width/2:s;d=null==d?z.y+z.height/2:d;this.transform(this._.transform.concat([["s",b,f,s,d]]));return this};k.translate=function(b,f){if(this.removed)return this;
b=a(b).split(r);b.length-1&&(f=c(b[1]));b=c(b[0])||0;this.transform(this._.transform.concat([["t",b,+f||0]]));return this};k.transform=function(a){var c=this._;if(null==a)return c.transform;b._extractTransform(this,a);this.clip&&!c.clipispath&&H(this.clip,{transform:this.matrix.invert()});this.pattern&&Ia(this);this.node&&H(this.node,{transform:this.matrix});if(1!=c.sx||1!=c.sy)a=this.attrs.hasOwnProperty("stroke-width")?this.attrs["stroke-width"]:1,this.attr({"stroke-width":a});return this};k.hide=
function(){!this.removed&&this.paper.safari(this.node.style.display="none");return this};k.show=function(){!this.removed&&this.paper.safari(this.node.style.display="");return this};k.remove=function(){if(!this.removed&&this.parent.canvas){var a=b._engine.getNode(this),c=this.paper,f=c.defs;c.__set__&&c.__set__.exclude(this);e.unbind("raphael.*.*."+this.id);for(this.gradient&&f&&X(this);f=this.followers.pop();)f.el.remove();for(;f=this.bottom;)f.remove();this._drag&&this.undrag();if(this.events)for(;f=
this.events.pop();)f.unbind();this.parent.canvas.removeChild(a);this.removeData();delete c._elementsById[this.id];b._tear(this,this.parent);for(f in this)this[f]="function"===typeof this[f]?b._removedFactory(f):null;this.removed=!0}};k._getBBox=function(){var a=this.node,b={},c=this.attrs,f,s;"none"===a.style.display&&(this.show(),s=!0);try{b=a.getBBox(),"text"==this.type&&(void 0===b.x&&(b.isCalculated=!0,f=c["text-anchor"],b.x=(c.x||0)-b.width*("start"===f?0:"middle"===f?.5:1)),void 0===b.y&&(b.isCalculated=
!0,f=c["vertical-align"],b.y=(c.y||0)-b.height*("bottom"===f?1:"middle"===f?.5:0)))}catch(d){}finally{b=b||{}}s&&this.hide();return b};k.attr=function(a,c){if(this.removed)return this;if(null==a){var f={},s;for(s in this.attrs)this.attrs.hasOwnProperty(s)&&(f[s]=this.attrs[s]);f.gradient&&"none"==f.fill&&(f.fill=f.gradient)&&delete f.gradient;f.transform=this._.transform;f.visibility="none"===this.node.style.display?"hidden":"visible";return f}if(null==c&&b.is(a,"string")){if("fill"==a&&"none"==this.attrs.fill&&
this.attrs.gradient)return this.attrs.gradient;if("transform"==a)return this._.transform;if("visibility"==a)return"none"===this.node.style.display?"hidden":"visible";var f=a.split(r),d={},z=0;for(s=f.length;z<s;z++)a=f[z],a in this.attrs?d[a]=this.attrs[a]:b.is(this.ca[a],"function")?d[a]=this.ca[a].def:d[a]=b._availableAttrs[a];return s-1?d:d[f[0]]}if(null==c&&b.is(a,"array")){d={};z=0;for(s=a.length;z<s;z++)d[a[z]]=this.attr(a[z]);return d}null!=c?(f={},f[a]=c):null!=a&&b.is(a,"object")&&(f=a);
for(z in f)e("raphael.attr."+z+"."+this.id,this,f[z],z);var A={};for(z in this.ca)if(this.ca[z]&&f.hasOwnProperty(z)&&b.is(this.ca[z],"function")&&!this.ca["_invoked"+z]){this.ca["_invoked"+z]=!0;s=this.ca[z].apply(this,[].concat(f[z]));delete this.ca["_invoked"+z];for(d in s)s.hasOwnProperty(d)&&(f[d]=s[d]);this.attrs[z]=f[z];!1===s&&(A[z]=f[z],delete f[z])}M(this,f);var m,z=0;for(s=this.followers.length;z<s;z++)m=this.followers[z],m.cb&&!m.cb.call(m.el,f,this)||m.el.attr(f);for(d in A)f[d]=A[d];
return this};k.blur=function(a){if(0!==+a){var c=H("filter"),f=H("feGaussianBlur");this.attrs.blur=a;c.id=b.createUUID();H(f,{stdDeviation:+a||1.5});c.appendChild(f);this.paper.defs.appendChild(c);this._blur=c;H(this.node,{filter:"url('"+b._url+"#"+c.id+"')"})}else this._blur&&(this._blur.parentNode.removeChild(this._blur),delete this._blur,delete this.attrs.blur),this.node.removeAttribute("filter")};k.on=function(a,c){if(this.removed)return this;var f=c;b.supportsTouch&&(a=b._touchMap[a]||"click"===
a&&"touchstart"||a,f=function(a){a.preventDefault();c()});this.node["on"+a]=f;return this};b._engine.path=function(a,b,c){var f=H("path");a=new p(f,a,c);a.type="path";M(a,b);K(a,b);return a};b._engine.group=function(a,b,c){var f=H("g");a=new p(f,a,c);a.type="group";a.canvas=a.node;a.top=a.bottom=null;a._id=b||"";b&&f.setAttribute("class","raphael-group-"+a.id+"-"+b);return a};b._engine.circle=function(a,b,c){var f=H("circle");a=new p(f,a,c);a.type="circle";M(a,b);K(a,b);return a};b._engine.rect=function(a,
b,c){var f=H("rect");a=new p(f,a,c);a.type="rect";b.rx=b.ry=b.r;M(a,b);K(a,b);return a};b._engine.ellipse=function(a,b,c){var f=H("ellipse");a=new p(f,a,c);a.type="ellipse";M(a,b);K(a,b);return a};b._engine.image=function(a,b,c){var f=H("image");a=new p(f,a,c);a.type="image";f.setAttribute("preserveAspectRatio","none");M(a,b);K(a,b);return a};b._engine.text=function(a,b,c){var f=H("text");a=new p(f,a,c);a.type="text";a._textdirty=!0;M(a,b);K(a,b);return a};b._engine.setSize=function(a,b){this.width=
a||this.width;this.height=b||this.height;this.canvas.setAttribute("width",this.width);this.canvas.setAttribute("height",this.height);this._viewBox&&this.setViewBox.apply(this,this._viewBox);return this};b._engine.create=function(){var a=b._getContainer.apply(0,arguments),c=a&&a.container,f=a.x,s=a.y,d=a.width,a=a.height;if(!c)throw Error("SVG container not found.");var z=H("svg"),A,f=f||0,s=s||0,d=d||512,a=a||342;H(z,{height:a,version:1.1,width:d,xmlns:"http://www.w3.org/2000/svg"});1==c?(z.style.cssText=
"overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-ms-user-select:none;user-select:none;-o-user-select:none;cursor:default;position:absolute;left:"+f+"px;top:"+s+"px",b._g.doc.body.appendChild(z),A=1):(z.style.cssText="overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-ms-user-select:none;user-select:none;-o-user-select:none;cursor:default;position:relative",
c.firstChild?c.insertBefore(z,c.firstChild):c.appendChild(z));c=new b._Paper;c.width=d;c.height=a;c.canvas=z;H(z,{id:"raphael-paper-"+c.id});c.clear();c._left=c._top=0;A&&(c.renderfix=function(){});c.renderfix();return c};b._engine.setViewBox=function(a,b,c,f,s){e("raphael.setViewBox",this,this._viewBox,[a,b,c,f,s]);var z=d(c/this.width,f/this.height),A=this.top,m=s?"meet":"xMinYMin",r;null==a?(this._vbSize&&(z=1),delete this._vbSize,r="0 0 "+this.width+" "+this.height):(this._vbSize=z,r=a+" "+b+
" "+c+" "+f);for(H(this.canvas,{viewBox:r,preserveAspectRatio:m});z&&A;)m="stroke-width"in A.attrs?A.attrs["stroke-width"]:1,A.attr({"stroke-width":m}),A._.dirty=1,A._.dirtyT=1,A=A.prev;this._viewBox=[a,b,c,f,!!s];return this};b.prototype.renderfix=function(){var a=this.canvas,b=a.style,c;try{c=a.getScreenCTM()||a.createSVGMatrix()}catch(f){c=a.createSVGMatrix()}a=-c.e%1;c=-c.f%1;if(a||c)a&&(this._left=(this._left+a)%1,b.left=this._left+"px"),c&&(this._top=(this._top+c)%1,b.top=this._top+"px")};b.prototype._desc=
function(a){var c=this.desc;if(c)for(;c.firstChild;)c.removeChild(c.firstChild);else this.desc=c=H("desc"),this.canvas.appendChild(c);c.appendChild(b._g.doc.createTextNode(b.is(a,"string")?a:"Created with Red Raphaël "+b.version))};b.prototype.clear=function(){var a;for(e("raphael.clear",this);a=this.bottom;)a.remove();for(a=this.canvas;a.firstChild;)a.removeChild(a.firstChild);this.bottom=this.top=null;a.appendChild(this.desc=H("desc"));a.appendChild(this.defs=H("defs"))};b.prototype.remove=function(){var a;
for(e("raphael.remove",this);a=this.bottom;)a.remove();this.defs&&this.defs.parentNode.removeChild(this.defs);this.desc&&this.desc.parentNode.removeChild(this.desc);this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(a in this)this[a]="function"==typeof this[a]?b._removedFactory(a):null;this.removed=!0};var aa=b.st,ac;for(ac in k)k.hasOwnProperty(ac)&&!aa.hasOwnProperty(ac)&&(aa[ac]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a].apply(c,
b)})}}(ac))}})();(function(){if(b.vml){var a=String,c=parseFloat,f=Math,s=f.round,d=f.max,z=f.min,A=f.sqrt,m=f.abs,r=/[, ]+/,O=b.eve,e={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},g=/([clmz]),?([^clmz]*)/gi,h=/ progid:\S+Blur\([^\)]+\)/g,H=/-?[^,\s-]+/g,E={path:1,rect:1,image:1},X={circle:1,ellipse:1},B=function(c){var f=/[ahqstv]/ig,d=b._pathToAbsolute;a(c).match(f)&&(d=b._path2curve);f=/[clmz]/g;if(d==b._pathToAbsolute&&!a(c).match(f))return(c=a(c).replace(g,function(a,b,c){var f=[],d="m"==
b.toLowerCase(),z=e[b];c.replace(H,function(a){d&&2==f.length&&(z+=f+e["m"==b?"l":"L"],f=[]);f.push(s(21600*a))});return z+f}))||"m0,0";var f=d(c),z;c=[];for(var A=0,m=f.length;A<m;A++){d=f[A];z=f[A][0].toLowerCase();"z"==z&&(z="x");for(var r=1,O=d.length;r<O;r++)z+=s(21600*d[r])+(r!=O-1?",":"");c.push(z)}return c.length?c.join(" "):"m0,0"},n=function(a,c,f){var s=b.matrix();s.rotate(-a,.5,.5);return{dx:s.x(c,f),dy:s.y(c,f)}},I=function(a,b,c,f,s,d){var z=a._,A=a.matrix,r=z.fillpos;a=a.node;var O=
a.style,e=1,g="",h=21600/b,H=21600/c;O.visibility="hidden";if(b&&c){a.coordsize=m(h)+" "+m(H);O.rotation=d*(0>b*c?-1:1);d&&(s=n(d,f,s),f=s.dx,s=s.dy);0>b&&(g+="x");0>c&&(g+=" y")&&(e=-1);O.flip=g;a.coordorigin=f*-h+" "+s*-H;if(r||z.fillsize)if(f=(f=a.getElementsByTagName("fill"))&&f[0])a.removeChild(f),r&&(s=n(d,A.x(r[0],r[1]),A.y(r[0],r[1])),f.position=s.dx*e+" "+s.dy*e),z.fillsize&&(f.size=z.fillsize[0]*m(b)+" "+z.fillsize[1]*m(c)),a.appendChild(f);O.visibility="visible"}};b._url="";b.toString=
function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+this.version};var l=function(b,c,f){c=a(c).toLowerCase().split("-");f=f?"end":"start";for(var s=c.length,d="classic",z="medium",A="medium";s--;)switch(c[s]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":d=c[s];break;case "wide":case "narrow":A=c[s];break;case "long":case "short":z=c[s]}b=b.node.getElementsByTagName("stroke")[0];b[f+"arrow"]=d;b[f+"arrowlength"]=z;b[f+
"arrowwidth"]=A},Ia=function(a,b){for(var c in b)O("raphael.attr."+c+"."+a.id,a,b[c],c),a.ca[c]&&a.attr(c,b[c])},K=b._setFillAndStroke=function(f,A){if(f.paper.canvas){f.attrs=f.attrs||{};var m=f.node,O=f.attrs,e=m.style,g=E[f.type]&&(A.x!=O.x||A.y!=O.y||A.width!=O.width||A.height!=O.height||A.cx!=O.cx||A.cy!=O.cy||A.rx!=O.rx||A.ry!=O.ry||A.r!=O.r),h=X[f.type]&&(O.cx!=A.cx||O.cy!=A.cy||O.r!=A.r||O.rx!=A.rx||O.ry!=A.ry),H="group"===f.type,n;for(n in A)A.hasOwnProperty(n)&&(O[n]=A[n]);g&&(O.path=b._getPath[f.type](f),
f._.dirty=1);A.href&&(m.href=A.href);A.title&&(m.title=A.title);A.target&&(m.target=A.target);A.cursor&&(e.cursor=A.cursor);"blur"in A&&f.blur(A.blur);if(A.path&&"path"==f.type||g)m.path=B(~a(O.path).toLowerCase().indexOf("r")?b._pathToAbsolute(O.path):O.path),"image"==f.type&&(f._.fillpos=[O.x,O.y],f._.fillsize=[O.width,O.height],I(f,1,1,0,0,0));"transform"in A&&f.transform(A.transform);"rotation"in A&&(e=A.rotation,b.is(e,"array")?f.rotate.apply(f,e):f.rotate(e));"visibility"in A&&("hidden"===A.visibility?
f.hide():f.show());h&&(e=+O.cx,h=+O.cy,g=+O.rx||+O.r||0,n=+O.ry||+O.r||0,m.path=b.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",s(21600*(e-g)),s(21600*(h-n)),s(21600*(e+g)),s(21600*(h+n)),s(21600*e)));"clip-rect"in A&&(e=a(A["clip-rect"]).split(r),4==e.length&&(e[0]=+e[0],e[1]=+e[1],e[2]=+e[2]+e[0],e[3]=+e[3]+e[1],g=H?m:m.clipRect||b._g.doc.createElement("div"),h=g.style,H?(f.clip=e.slice(),g=f.matrix.offset(),g=[c(g[0]),c(g[1])],e[0]-=g[0],e[1]-=g[1],e[2]-=g[0],e[3]-=g[1],h.width="10800px",h.height=
"10800px"):m.clipRect||(h.top="0",h.left="0",h.width=f.paper.width+"px",h.height=f.paper.height+"px",m.parentNode.insertBefore(g,m),g.appendChild(m),g.raphael=!0,g.raphaelid=m.raphaelid,m.clipRect=g),h.position="absolute",h.clip=b.format("rect({1}px {2}px {3}px {0}px)",e)),A["clip-rect"]||(H&&f.clip?(m.style.clip="rect(auto auto auto auto)",delete f.clip):m.clipRect&&(m.clipRect.style.clip="rect(auto auto auto auto)")));f.textpath&&(H=f.textpath.style,A.font&&(H.font=A.font),A["font-family"]&&(H.fontFamily=
'"'+A["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,"")+'"'),A["font-size"]&&(H.fontSize=A["font-size"]),A["font-weight"]&&(H.fontWeight=A["font-weight"]),A["font-style"]&&(H.fontStyle=A["font-style"]));"arrow-start"in A&&l(f,A["arrow-start"]);"arrow-end"in A&&l(f,A["arrow-end"],1);if(null!=A.opacity||null!=A["stroke-width"]||null!=A.fill||null!=A.src||null!=A.stroke||null!=A["stroke-width"]||null!=A["stroke-opacity"]||null!=A["fill-opacity"]||null!=A["stroke-dasharray"]||null!=A["stroke-miterlimit"]||
null!=A["stroke-linejoin"]||null!=A["stroke-linecap"]){H=m.getElementsByTagName("fill");e=-1;H=H&&H[0];!H&&(H=w("fill"));"image"==f.type&&A.src&&(H.src=A.src);A.fill&&(H.on=!0);if(null==H.on||"none"==A.fill||null===A.fill)H.on=!1;H.on&&A.fill&&((h=a(A.fill).match(b._ISURL))?(H.parentNode==m&&m.removeChild(H),H.rotate=!0,H.src=h[1],H.type="tile",g=f.getBBox(1),H.position=g.x+" "+g.y,f._.fillpos=[g.x,g.y],b._preload(h[1],function(){f._.fillsize=[this.offsetWidth,this.offsetHeight]})):(h=b.getRGB(A.fill),
H.color=h.hex,H.src="",H.type="solid",h.error&&(f.type in{circle:1,ellipse:1}||"r"!=a(A.fill).charAt())&&G(f,A.fill,H)?(O.fill="none",O.gradient=A.fill,H.rotate=!1):"opacity"in h&&!("fill-opacity"in A)&&(e=h.opacity)));if(-1!==e||"fill-opacity"in A||"opacity"in A)h=((+O["fill-opacity"]+1||2)-1)*((+O.opacity+1||2)-1)*((+e+1||2)-1),h=z(d(h,0),1),H.opacity=h,H.src&&(H.color="none");m.appendChild(H);H=m.getElementsByTagName("stroke")&&m.getElementsByTagName("stroke")[0];e=!1;!H&&(e=H=w("stroke"));if(A.stroke&&
"none"!=A.stroke||A["stroke-width"]||null!=A["stroke-opacity"]||A["stroke-dasharray"]||A["stroke-miterlimit"]||A["stroke-linejoin"]||A["stroke-linecap"])H.on=!0;"none"!=A.stroke&&null!==A.stroke&&null!=H.on&&0!=A.stroke&&0!=A["stroke-width"]||(H.on=!1);h=b.getRGB("stroke"in A?A.stroke:O.stroke);H.on&&A.stroke&&(H.color=h.hex);h=((+O["stroke-opacity"]+1||2)-1)*((+O.opacity+1||2)-1)*((+h.opacity+1||2)-1);g=.75*(c(A["stroke-width"])||1);h=z(d(h,0),1);null==A["stroke-width"]&&(g=O["stroke-width"]);A["stroke-width"]&&
(H.weight=g);g&&1>g&&(h*=g)&&(H.weight=1);H.opacity=h;A["stroke-linejoin"]&&(H.joinstyle=A["stroke-linejoin"])||e&&(e.joinstyle="miter");H.miterlimit=A["stroke-miterlimit"]||8;A["stroke-linecap"]&&(H.endcap="butt"==A["stroke-linecap"]?"flat":"square"==A["stroke-linecap"]?"square":"round");A["stroke-dasharray"]&&(h={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"},H.dashstyle=
h.hasOwnProperty(A["stroke-dasharray"])?h[A["stroke-dasharray"]]:A["stroke-dasharray"].join&&A["stroke-dasharray"].join(" ")||"");e&&m.appendChild(H)}if("text"==f.type){f.paper.canvas.style.display="";m=f.paper.span;H=O.font&&O.font.match(/\d+(?:\.\d*)?(?=px)/);h=O["line-height"]&&(O["line-height"]+"").match(/\d+(?:\.\d*)?(?=px)/);e=m.style;O.font&&(e.font=O.font);O["font-family"]&&(e.fontFamily=O["font-family"]);O["font-weight"]&&(e.fontWeight=O["font-weight"]);O["font-style"]&&(e.fontStyle=O["font-style"]);
H=c(O["font-size"]||H&&H[0])||10;e.fontSize=100*H+"px";h=c(O["line-height"]||h&&h[0])||12;O["line-height"]&&(e.lineHeight=100*h+"px");b.is(A.text,"array")&&(A.text=f.textpath.string=A.text.join("\n").replace(/<br\s*?\/?>/ig,"\n"));f.textpath.string&&(m.innerHTML=a(f.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));m=m.getBoundingClientRect();f.W=O.w=(m.right-m.left)/100;f.H=O.h=(m.bottom-m.top)/100;f.X=O.x;f.Y=O.y;switch(O["vertical-align"]){case "top":f.bby=f.H/
2;break;case "bottom":f.bby=-f.H/2;break;default:f.bby=0}("x"in A||"y"in A||void 0!==f.bby)&&(f.path.v=b.format("m{0},{1}l{2},{1}",s(21600*O.x),s(21600*(O.y+(f.bby||0))),s(21600*O.x)+1));m="x y text font font-family font-weight font-style font-size line-height".split(" ");H=0;for(e=m.length;H<e;H++)if(m[H]in A){f._.dirty=1;break}switch(O["text-anchor"]){case "start":f.textpath.style["v-text-align"]="left";f.bbx=f.W/2;break;case "end":f.textpath.style["v-text-align"]="right";f.bbx=-f.W/2;break;default:f.textpath.style["v-text-align"]=
"center",f.bbx=0}f.textpath.style["v-text-kern"]=!0}}},G=function(f,s,d){f.attrs=f.attrs||{};var z=Math.pow,m="linear",O=".5 .5";f.attrs.gradient=s;s=a(s).replace(b._radial_gradient,function(a,b){m="radial";b=b&&b.split(",")||[];var f=b[3],s=b[4];f&&s&&(f=c(f),s=c(s),.25<z(f-.5,2)+z(s-.5,2)&&(s=A(.25-z(f-.5,2))*(2*(.5<s)-1)+.5),O=f+" "+s);return""});s=s.split(/\s*\-\s*/);if("linear"==m){var r=s.shift(),r=-c(r);if(isNaN(r))return null}s=b._parseDots(s);if(!s)return null;f=f.shape||f.node;if(s.length){d.parentNode==
f&&f.removeChild(d);d.on=!0;d.method="none";d.color=s[0].color;d.color2=s[s.length-1].color;for(var e=[],g=1,h=void 0===s[0].opacity?1:s[0].opacity,H=0,E=s.length;H<E;H++)s[H].offset&&e.push(s[H].offset+" "+s[H].color),void 0!==s[H].opacity&&(g=s[H].opacity);d.colors=e.length?e.join():"0% "+d.color;d.opacity=g;d["o:opacity2"]=h;"radial"==m?(d.type="gradientTitle",d.focus="100%",d.focussize="0 0",d.focusposition=O,d.angle=0):(d.type="gradient",d.angle=(270-r)%360);f.appendChild(d)}return 1},p=function(a,
c,f){f=f||c;var s;f.canvas&&f.canvas.appendChild(a);s=w("skew");s.on=!0;a.appendChild(s);this.skew=s;this.node=this[0]=a;a.raphael=!0;a.raphaelid=this.id=b._oid++;this.Y=this.X=0;this.attrs=this.attrs||{};this.followers=this.followers||[];this.paper=c;this.ca=this.customAttributes=this.customAttributes||new c._CustomAttributes;this.matrix=b.matrix();this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1};this.parent=f;!f.bottom&&(f.bottom=this);(this.prev=f.top)&&(f.top.next=this);f.top=
this;this.next=null},f=b.el;p.prototype=f;f.constructor=p;f.transform=function(c){if(null==c)return this._.transform;var f=this.paper._viewBoxShift,s=f?"s"+[f.scale,f.scale]+"-1-1t"+[f.dx,f.dy]:"",d;f&&(d=c=a(c).replace(/\.{3}|\u2026/g,this._.transform||""));b._extractTransform(this,s+c);var f=this.matrix.clone(),z=this.skew;c=this.node;var s=~a(this.attrs.fill).indexOf("-"),A=!a(this.attrs.fill).indexOf("url(");f.translate(-.5,-.5);A||s||"image"==this.type?(z.matrix="1 0 0 1",z.offset="0 0",z=f.split(),
s&&z.noRotation||!z.isSimple?(c.style.filter=f.toFilter(),f=this.getBBox(),s=this.getBBox(1),A=f.x2&&s.x2&&"x2"||"x",z=f.y2&&s.y2&&"y2"||"y",A=f[A]-s[A],f=f[z]-s[z],c.coordorigin=-21600*A+" "+-21600*f,I(this,1,1,A,f,0)):(c.style.filter="",I(this,z.scalex,z.scaley,z.dx,z.dy,z.rotate))):(c.style.filter="",z.matrix=a(f),z.offset=f.offset());d&&(this._.transform=d);return this};f.rotate=function(b,f,s){if(this.removed)return this;if(null!=b){b=a(b).split(r);b.length-1&&(f=c(b[1]),s=c(b[2]));b=c(b[0]);
null==s&&(f=s);if(null==f||null==s)s=this.getBBox(1),f=s.x+s.width/2,s=s.y+s.height/2;this._.dirtyT=1;this.transform(this._.transform.concat([["r",b,f,s]]));return this}};f.translate=function(b,f){if(this.removed)return this;b=a(b).split(r);b.length-1&&(f=c(b[1]));b=c(b[0])||0;f=+f||0;this._.bbox&&(this._.bbox.x+=b,this._.bbox.y+=f);this.transform(this._.transform.concat([["t",b,f]]));return this};f.scale=function(b,f,s,d){if(this.removed)return this;b=a(b).split(r);b.length-1&&(f=c(b[1]),s=c(b[2]),
d=c(b[3]),isNaN(s)&&(s=null),isNaN(d)&&(d=null));b=c(b[0]);null==f&&(f=b);null==d&&(s=d);if(null==s||null==d)var z=this.getBBox(1);s=null==s?z.x+z.width/2:s;d=null==d?z.y+z.height/2:d;this.transform(this._.transform.concat([["s",b,f,s,d]]));this._.dirtyT=1;return this};f.hide=function(a){!this.removed&&(this.node.style.display="none");return this};f.show=function(a){!this.removed&&(this.node.style.display="");return this};f._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/
2,y:this.Y+(this.bby||0)-this.H/2,width:this.W,height:this.H}};f.remove=function(){if(!this.removed&&this.parent.canvas){var a=b._engine.getNode(this),c=this.paper,f=this.shape;c.__set__&&c.__set__.exclude(this);O.unbind("raphael.*.*."+this.id);f&&f.parentNode.removeChild(f);for(a.parentNode&&a.parentNode.removeChild(a);a=this.followers.pop();)a.el.remove();for(;a=this.bottom;)a.remove();this._drag&&this.undrag();if(this.events)for(;a=this.events.pop();)a.unbind();this.removeData();delete c._elementsById[this.id];
b._tear(this,this.parent);for(a in this)this[a]="function"===typeof this[a]?b._removedFactory(a):null;this.removed=!0}};f.attr=function(a,c){if(this.removed)return this;if(null==a){var f={},s;for(s in this.attrs)this.attrs.hasOwnProperty(s)&&(f[s]=this.attrs[s]);f.gradient&&"none"==f.fill&&(f.fill=f.gradient)&&delete f.gradient;f.transform=this._.transform;f.visibility="none"===this.node.style.display?"hidden":"visible";return f}if(null==c&&b.is(a,"string")){if("fill"==a&&"none"==this.attrs.fill&&
this.attrs.gradient)return this.attrs.gradient;if("visibility"==a)return"none"===this.node.style.display?"hidden":"visible";var f=a.split(r),d={},z=0;for(s=f.length;z<s;z++)a=f[z],a in this.attrs?d[a]=this.attrs[a]:b.is(this.ca[a],"function")?d[a]=this.ca[a].def:d[a]=b._availableAttrs[a];return s-1?d:d[f[0]]}if(this.attrs&&null==c&&b.is(a,"array")){d={};z=0;for(s=a.length;z<s;z++)d[a[z]]=this.attr(a[z]);return d}null!=c&&(f={},f[a]=c);null==c&&b.is(a,"object")&&(f=a);for(z in f)O("raphael.attr."+
z+"."+this.id,this,f[z],z);if(f){var A={};for(z in this.ca)if(this.ca[z]&&f.hasOwnProperty(z)&&b.is(this.ca[z],"function")&&!this.ca["_invoked"+z]){this.ca["_invoked"+z]=!0;s=this.ca[z].apply(this,[].concat(f[z]));delete this.ca["_invoked"+z];for(d in s)s.hasOwnProperty(d)&&(f[d]=s[d]);this.attrs[z]=f[z];!1===s&&(A[z]=f[z],delete f[z])}"text"in f&&"text"==this.type&&(b.is(f.text,"array")&&(f.text=f.text.join("\n")),this.textpath.string=f.text.replace(/<br\s*?\/?>/ig,"\n"));K(this,f);var m,z=0;for(s=
this.followers.length;z<s;z++)m=this.followers[z],m.cb&&!m.cb.call(m.el,f,this)||m.el.attr(f);for(d in A)f[d]=A[d]}return this};f.blur=function(a){var c=this.node.runtimeStyle,f=c.filter,f=f.replace(h,"");0!==+a?(this.attrs.blur=a,c.filter=f+"  progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+a||1.5)+")",c.margin=b.format("-{0}px 0 0 -{0}px",s(+a||1.5))):(c.filter=f,c.margin=0,delete this.attrs.blur);return this};f.on=function(a,c){if(this.removed)return this;this.node["on"+a]=function(){var a=
b._g.win.event;a.target=a.srcElement;c(a)};return this};b._engine.getNode=function(a){a=a.node||a[0].node;return a.clipRect||a};b._engine.getLastNode=function(a){a=a.node||a[a.length-1].node;return a.clipRect||a};b._engine.group=function(a,c,f){var s=b._g.doc.createElement("div"),d=new p(s,a,f);s.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";d._id=c||"";c&&(s.className="raphael-group-"+d.id+"-"+c);(f||a).canvas.appendChild(s);d.type="group";d.canvas=d.node;d.transform=b._engine.group.transform;
d.top=null;d.bottom=null;return d};b._engine.group.transform=function(f){if(null==f)return this._.transform;var s=this.node.style,d=this.clip,z=this.paper._viewBoxShift,A=z?"s"+[z.scale,z.scale]+"-1-1t"+[z.dx,z.dy]:"";z&&(f=a(f).replace(/\.{3}|\u2026/g,this._.transform||""));b._extractTransform(this,A+f);f=this.matrix;A=f.offset();z=c(A[0])||0;A=c(A[1])||0;s.left=z+"px";s.top=A+"px";s.zoom=(this._.tzoom=f.get(0))+"";d&&(s.clip=b.format("rect({1}px {2}px {3}px {0}px)",[d[0]-z,d[1]-A,d[2]-z,d[3]-A]));
return this};b._engine.path=function(a,b,c){var f=w("shape");f.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";f.coordsize="21600 21600";f.coordorigin=a.coordorigin;a=new p(f,a,c);a.type=b.type||"path";a.path=[];a.Path="";b.type&&delete b.type;K(a,b);Ia(a,b);return a};b._engine.rect=function(a,c,f){var s=b._rectPath(c.x,c.y,c.w,c.h,c.r);c.path=s;c.type="rect";a=a.path(c,f);c=a.attrs;a.X=c.x;a.Y=c.y;a.W=c.width;a.H=c.height;c.path=s;return a};b._engine.ellipse=function(a,b,c){b.type=
"ellipse";a=a.path(b,c);b=a.attrs;a.X=b.x-b.rx;a.Y=b.y-b.ry;a.W=2*b.rx;a.H=2*b.ry;return a};b._engine.circle=function(a,b,c){b.type="circle";a=a.path(b,c);b=a.attrs;a.X=b.x-b.r;a.Y=b.y-b.r;a.W=a.H=2*b.r;return a};b._engine.image=function(a,c,f){var s=b._rectPath(c.x,c.y,c.w,c.h);c.path=s;c.type="image";c.stroke="none";a=a.path(c,f);f=a.attrs;var s=a.node,d=s.getElementsByTagName("fill")[0];f.src=c.src;a.X=f.x=c.x;a.Y=f.y=c.y;a.W=f.width=c.w;a.H=f.height=c.h;d.parentNode==s&&s.removeChild(d);d.rotate=
!0;d.src=f.src;d.type="tile";a._.fillpos=[f.x,f.y];a._.fillsize=[f.w,f.h];s.appendChild(d);I(a,1,1,0,0,0);return a};b._engine.text=function(c,f,d){var z=w("shape"),A=w("path"),m=w("textpath");x=f.x||0;y=f.y||0;text=f.text;A.v=b.format("m{0},{1}l{2},{1}",s(21600*f.x),s(21600*f.y),s(21600*f.x)+1);A.textpathok=!0;m.string=a(f.text).replace(/<br\s*?\/?>/ig,"\n");m.on=!0;z.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";z.coordsize="21600 21600";z.coordorigin="0 0";c=new p(z,c,d);c.shape=
z;c.path=A;c.textpath=m;c.type="text";c.attrs.text=a(f.text||"");c.attrs.x=f.x;c.attrs.y=f.y;c.attrs.w=1;c.attrs.h=1;K(c,f);Ia(c,f);z.appendChild(m);z.appendChild(A);return c};b._engine.setSize=function(a,c){var f=this.canvas.style;this.width=a;this.height=c;a==+a&&(a+="px");c==+c&&(c+="px");f.width=a;f.height=c;f.clip="rect(0 "+a+" "+c+" 0)";this._viewBox&&b._engine.setViewBox.apply(this,this._viewBox);return this};b._engine.setViewBox=function(a,b,c,f,s){O("raphael.setViewBox",this,this._viewBox,
[a,b,c,f,s]);var z=this.width,A=this.height,m=1/d(c/z,f/A),r,e;s&&(r=A/f,e=z/c,c*r<z&&(a-=(z-c*r)/2/r),f*e<A&&(b-=(A-f*e)/2/e));this._viewBox=[a,b,c,f,!!s];this._viewBoxShift={dx:-a,dy:-b,scale:m};this.forEach(function(a){a.transform("...")});return this};var w;b._engine.initWin=function(c){var f=c.document;f.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!f.namespaces.rvml&&f.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),w=b._createNode=function(b,c){var s=f.createElement("<rvml:"+
b+' class="rvml">'),d;for(d in c)s[d]=a(c[d]);return s}}catch(s){w=b._createNode=function(b,c){var s=f.createElement("<"+b+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">'),d;for(d in c)s[d]=a(c[d]);return s}}};b._engine.initWin(b._g.win);b._engine.create=function(){var a=b._getContainer.apply(0,arguments),c=a.container,f=a.height,s=a.width,d=a.x,a=a.y;if(!c)throw Error("VML container not found.");var z=new b._Paper,A=z.canvas=b._g.doc.createElement("div"),m=A.style,d=d||0,a=a||0,s=s||512,f=
f||342;z.width=s;z.height=f;s==+s&&(s+="px");f==+f&&(f+="px");z.coordsize="21600000 21600000";z.coordorigin="0 0";A.id="raphael-paper-"+z.id;z.span=b._g.doc.createElement("span");z.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;";A.appendChild(z.span);m.cssText=b.format("top:0;left:0;width:{0};height:{1};display:inline-block;cursor:default;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",s,f);1==c?(b._g.doc.body.appendChild(A),m.left=d+"px",
m.top=a+"px",m.position="absolute"):c.firstChild?c.insertBefore(A,c.firstChild):c.appendChild(A);z.renderfix=function(){};return z};b.prototype.clear=function(){var a;for(O("raphael.clear",this);a=this.bottom;)a.remove();this.canvas.innerHTML="";this.span=b._g.doc.createElement("span");this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";this.canvas.appendChild(this.span);this.bottom=this.top=null};b.prototype.remove=function(){var a;
for(O("raphael.remove",this);a=this.bottom;)a.remove();this.canvas.parentNode.removeChild(this.canvas);for(a in this)this[a]="function"==typeof this[a]?b._removedFactory(a):null;return!0};var M=b.st,aa;for(aa in f)f.hasOwnProperty(aa)&&!M.hasOwnProperty(aa)&&(M[aa]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a].apply(c,b)})}}(aa))}})();oa?v.win.Raphael=b:Raphael=b;return b},!0)})();e.Raphael=u;e.Raphael.desc="";k&&k!==u?window.Raphael=k:window.Raphael===u&&(window.Raphael=
void 0)}]);FusionCharts.register("module",["private","fusioncharts.redraphael.helper",function(){var e={};this.hcLib.Raphael.fn._elementFromEvent=function(k){if(!k||this.removed)return null;var u=k.srcElement||k.target||(k=k.originalEvent)&&(k.srcElement||k.target)||e;"tspan"===u.nodeName&&(u=u.parentNode);return this.getById(u.raphaelid)}}]);
FusionCharts.register("module",["private","fusioncharts.redraphael.css",function(){var e=this.hcLib.Raphael,k=e.eve,u=e._g,q=e.fn,D=e.el,b=/[, ]+/,N=/\B([A-Z]{1})/g,J,c;J=function(b){this.rules={};this.ns=b||""};c=J.prototype;c.getSheet=function(){var b=this.node;b||(b=this.node=u.doc.createElement("style"),this.node.setAttribute("id",e.format("raphael-stylesheet-{0}",e._oid++)),this.node.setAttribute("type","text/css"),(u.doc.head||u.doc.getElementsByTagName("head")[0]).appendChild(this.node));return b};
c.setCssText=function(b){var a=this.node;if(!a)if(b)a=this.getSheet();else return;a.styleSheet?a.styleSheet.cssText=b||"":(a.innerHTML="",b&&a.appendChild(u.doc.createTextNode(b)))};c.destroy=function(){this.node&&this.node.parentNode&&this.node.parentNode.removeChild(this.node);delete this.rules};c.clear=function(){this.setCssText("");this.rules={}};c.add=function(b,a){var c=this.rules[b]||(this.rules[b]={}),e;for(e in a)c[e]=a[e]};c.render=function(){this.setCssText(this.toString())};c.toString=
function(b){var a=b?"":"\n",c=b?"":"\t";b=b?":":": ";var e=a,k,g;for(k in this.rules){e+=k.replace(/(^|\,)/g,"$1"+this.ns+" ")+" {"+a;k=this.rules[k];for(g in k)k[g]&&(e+=c+g.replace(N,"-$1").toLowerCase()+b+k[g]+";"+a);e+="}"+a}return e};k.on("raphael.new",function(){this._stylesheet=this._stylesheet||new J;this.cssNamespace("")});k.on("raphael.remove",function(){this._stylesheet&&this._stylesheet.destroy();delete this._stylesheet});q.cssNamespace=function(b){arguments.length&&(this._stylesheet.ns=
e.format("{0}#raphael-paper-{1}",b&&b+" "||"",this.id));return this._stylesheet.ns};q.cssAddRule=function(b,a){if(1===arguments.length&&"object"===typeof b){for(var c in b)this.cssAddRule(c,b[c]);return this}return this._stylesheet.add(b,a),this};q.cssRender=function(){return e.svg&&this._stylesheet.render(),this};q.cssClear=function(){return this._stylesheet.clear(),this};e._availableAttrs["class"]="";e.svg&&k.on("raphael.attr.class",function(b){var a=this.node;b=b||"";a.setAttribute("class","group"===
this.type&&this._id?"raphael-group-"+this.id+"-"+this._id+" "+b:b)});e.vml&&k.on("raphael.attr.class",function(b){var a=this.paper,c="."+b,a=a._stylesheet&&a._stylesheet.rules,e=this.parent,k=this.attrs,g={},d;this.node.className="group"===this.type?b&&this._id+" "+b||this._id:"rvml "+b;if(c&&a){b=a[c];for(d in b)"color"===d&&"text"===this.type&&(d="fill"),!k[d]&&(g[d]=b[d]);for(;e&&e.attr;){if(b=e.attr("class"))for(d in c="."+b+" "+c,b=a[c],b)"color"===d&&"text"===this.type&&(d="fill"),k[d]||g[d]||
(g[d]=b[d]);e=e.parent}this.css(g)}});D.css=function(c,a){var t,q,F,g;if(this.removed)return this;this.styles||(this.styles={});if(null==a&&e.is(c,"string")){t=c.split(b);q={};g=0;for(F=t.length;g<F;g++)c=t[g],c in this.styles&&(q[c]=this.styles[c]);return F-1?q:q[t[0]]}if(null==a&&e.is(c,"array")){q={};g=0;for(F=c.length;g<F;g++)q[c[g]]=this.styles(c[g]);return q}null!=a?(t={},t[c]=a):null!=c&&e.is(c,"object")&&(t=c);q={};for(g in t)F=g.replace(/\B([A-Z]{1})/g,"-$1").toLowerCase(),e._availableAttrs.hasOwnProperty(F)||
"color"===F?("color"===F&&"text"===this.type&&(F="fill"),q[F]=t[g],q.dirty=!0):(k("raphael.css."+F+"."+this.id,this,t[g],F),this.node.style[F]=t[g],this.styles[F]=t[g]);g=0;for(F=this.followers.length;g<F;g++)this.followers[g].el.attr(t);q.hasOwnProperty("dirty")&&(delete q.dirty,this.attr(q));return this}}]);
FusionCharts.register("module",["private","modules.renderer.js-raphaelexport",function(){var e=this.hcLib,k=e.Raphael,u=e.pluckNumber,q=e.pluck,D=k._availableAttrs,b=/^matrix\(|\)$/g,N=/\,/g,J=/\n|<br\s*?\/?>/ig,c=/[^\d\.]/ig,p=/[\%\(\)\s,\xb0#]/g,a=/group/ig,t=/&/g,U=/"/g,F=/'/g,g=/</g,d=/>/g,h=0;(function(e){var k=Math,P=parseFloat,n=k.max,C=k.abs,w=k.pow,R=String,v=/[, ]+/,oa=[{reg:/xmlns\=\"http\:\/\/www.w3.org\/2000\/svg\"/ig,repStr:""},{reg:/^.*<svg /,repStr:'<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" '},
{reg:/\/svg>.*$/,repStr:"/svg>"},{reg:/<desc\>[^<]*<\/desc\>/,repStr:""},{reg:/zIndex="[^"]+"/g,repStr:""},{reg:/url\((\\?[\'\"])[^#]+#/g,repStr:"url($1#"},{reg:/ href=/g,repStr:" xlink:href="},{reg:/(id|class|width|height)=([^" >]+)/g,repStr:'$1="$2"'},{reg:/:(path|rect)/g,repStr:"$1"},{reg:/<ima?ge? ([^\>]+?[^\/])\>/gi,repStr:"<image $1 />"},{reg:/<\/ima?ge?\>/g,repStr:""},{reg:/style="([^"]+)"/g,repStr:function(a){return a.toLowerCase()}}],ea={blur:function(){},transform:function(){},src:function(a,
b){b.attrSTR+=' xlink:href="'+b.attrs.src+'"'},path:function(a,b){var c=b.attrs.path,c=e._pathToAbsolute(c||"");b.attrSTR+=' d="'+(c.toString&&c.toString()||"").replace(N," ")+'"'},gradient:function(a,b,c){var d=a.attrs.gradient,g="linear",h,v,G,t=.5,q=.5,r=v="",B="",ga,Z,F,T;h=d.replace(p,"_");if(!c[h]){d=R(d).replace(e._radial_gradient,function(a,b){var c,d,r,e,h,B,n;b=b&&b.split(",")||[];g="radial";c=b[0];d=b[1];r=b[2];e=b[3];h=b[4];T=b[5];n=c&&d;r&&(F=/\%/.test(r)?r:P(r));if("userSpaceOnUse"===
T)return n&&(t=c,q=d),e&&h&&(ga=e,Z=h,n||(t=ga,q=Z)),"";n&&(t=P(c),q=P(d),c=2*(.5<q)-1,.25<(B=w(t-.5,2))+w(q-.5,2)&&.25>B&&(q=k.sqrt(.25-B)*c+.5)&&.5!==q&&(q=q.toFixed(5)-1E-5*c));e&&h&&(ga=P(e),Z=P(h),c=2*(.5<Z)-1,.25<(B=w(ga-.5,2))+w(Z-.5,2)&&.25>B&&(Z=k.sqrt(.25-B)*c+.5)&&.5!==Z&&(Z=Z.toFixed(5)-1E-5*c),n||(t=ga,q=Z));return""});d=d.split(/\s*\-\s*/);if("linear"===g){v=d.shift();v=-P(v);if(isNaN(v))return null;G=[0,0,k.cos(e.rad(v)),k.sin(e.rad(v))];v=1/(n(C(G[2]),C(G[3]))||1);G[2]*=v;G[3]*=v;
0>G[2]&&(G[0]=-G[2],G[2]=0);0>G[3]&&(G[1]=-G[3],G[3]=0)}d=e._parseDots(d);if(!d)return null;"radial"===g?(v='<radialGradient fx = "'+t+'" fy = "'+q+'" cy = "'+Z+'" cx = "'+ga+'" r = "'+F+'" gradientUnits = "'+T+'" id = "'+h+'">',r="</radialGradient>"):(v='<linearGradient x1 = "'+G[0]+'" y1 = "'+G[1]+'" x2 = "'+G[2]+'" y2 = "'+G[3]+'" gradientTransform ="matrix('+a.matrix.invert()+')" id = "'+h+'">',r="</linearGradient>");a=0;for(G=d.length;a<G;a++)B+='<stop offset="'+(d[a].offset?d[a].offset:a?"100%":
"0%")+'" stop-color="'+(d[a].color||"#fff")+'" stop-opacity="'+(void 0===d[a].opacity?1:d[a].opacity)+'" />';c[h]=!0;c.str+=v+B+r}b.attrSTR+=" fill=\"url('#"+h+"')\""},fill:function(a,b){var c=b.attrs,d=c.fill,g;a.attrs.gradient||(d=e.color(d),g=d.opacity,"text"===a.type?b.styleSTR+="fill:"+d+"; stroke-opacity:0; ":(b.attrSTR+=' fill="'+d+'"',c["fill-opacity"]||!g&&0!==g||(b.attrSTR+=' fill-opacity="'+g+'"')))},stroke:function(a,b){var c=b.attrs,d,g;d=e.color(c.stroke);g=d.opacity;"text"!==a.type&&
(b.attrSTR+=' stroke="'+d+'"',c["stroke-opacity"]||!g&&0!==g||(b.attrSTR+=' stroke-opacity="'+g+'"'))},"clip-rect":function(a,c,d){var e=R(c.attrs["clip-rect"]),g=e.split(v),e=e.replace(p,"_")+"__"+h++;4===g.length&&(d[e]||(d[e]=!0,d.str+='<clipPath id="'+e+'"><rect x="'+g[0]+'" y="'+g[1]+'" width="'+g[2]+'" height="'+g[3]+'" transform="matrix('+a.matrix.invert().toMatrixString().replace(b,"")+')"/></clipPath>'),c.attrSTR+=' clip-path="url(#'+e+')"')},cursor:function(a,b){var c=b.attrs.cursor;c&&
(b.styleSTR+="cursor:"+c+"; ")},font:function(a,b){b.styleSTR+="font:"+b.attrs.font.replace(/\"/ig," ")+"; "},"font-size":function(a,b){var d=q(b.attrs["font-size"],"10");d&&d.replace&&(d=d.replace(c,""));b.styleSTR+="font-size:"+d+"px; "},"font-weight":function(a,b){b.styleSTR+="font-weight:"+b.attrs["font-weight"]+"; "},"font-family":function(a,b){b.styleSTR+="font-family:"+b.attrs["font-family"]+"; "},"line-height":function(){},"clip-path":function(){},visibility:function(){},"vertical-align":function(){},
"text-anchor":function(a,b){var c=b.attrs["text-anchor"]||"middle";"text"===a.type&&(b.attrSTR+=' text-anchor="'+c+'"')},title:function(){},text:function(a,b){var e=b.attrs,h=e.text,n=q(e["font-size"],e.font,"10"),l=q(e["line-height"]),w,G,k;n&&n.replace&&(n=n.replace(c,""));n=u(n);l&&l.replace&&(l=l.replace(c,""));l=u(l,n&&1.2*n);w=n?.85*n:.75*l;n=e.x;G=q(e["vertical-align"],"middle").toLowerCase();h=R(h).split(J);k=h.length;e=0;for(w="top"===G?w:"bottom"===G?w-l*k:w-l*k*.5;e<k;e++)b.textSTR+="<tspan ",
G=(h[e]||"").replace(t,"&amp;").replace(U,"&quot;").replace(F,"&#39;").replace(g,"&lt;").replace(d,"&gt;"),b.textSTR=e?b.textSTR+('dy="'+l+'" x="'+n+'" '):b.textSTR+('dy="'+w+'"'),b.textSTR+=">"+G+"</tspan>"}},$=function(c,d){var e="",g={attrSTR:"",styleSTR:"",textSTR:"",attrs:c.attr()},h=c.isShadow,n="",l="",w,k,p=g.attrs;if("none"===c.node.style.display||h)c.next&&(e+=$(c.next,d));else{for(w in p)if("gradient"!==w&&(void 0!==D[w]||ea[w])&&void 0!==p[w])if(ea[w])ea[w](c,g,d);else g.attrSTR+=" "+
w+'="'+p[w]+'"';c.attrs.gradient&&ea.gradient(c,g,d);"rect"===c.type&&p.r&&(g.attrSTR+=' rx="'+p.r+'" ry="'+p.r+'"');for(k in c.styles)g.styleSTR+=k+":"+c.styles[k]+"; ";"image"===c.type&&(g.attrSTR+=' preserveAspectRatio="none"');if("text"===c.type&&!p["text-anchor"])ea["text-anchor"](c,g);c.bottom&&(n=$(c.bottom,d));c.next&&(l=$(c.next,d));h=c.type;h.match(a)&&(h="g");e+="<"+h+' transform="matrix('+c.matrix.toMatrixString().replace(b,"")+')" style="'+g.styleSTR+'"'+g.attrSTR+">"+g.textSTR+n+"</"+
h+">"+l}return e};e.fn.toSVG=function(a){var b="",c={str:""},d=0,g=oa.length,h="";if(e.svg){if(this.canvas&&this.canvas.parentNode){for(b=this.canvas.parentNode.innerHTML;d<g;d+=1)c=oa[d],b=b.replace(c.reg,c.repStr);this._stylesheet&&(b=b.replace(/^(<svg\s[\s\S]*?>)/ig,'$1<style type="text/css">'+this._stylesheet.toString(!0)+"</style>"))}}else b='<svg style="overflow: hidden; position: relative;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+this.width+'" version="1.1" height="'+
this.height+'">',this.bottom&&(h=$(this.bottom,c)),b+="<defs>"+c.str+"</defs>"+h+"</svg>";a||(b=b.replace(/<image [^\>]*\>/gi,""));return b}})(k)}]);
FusionCharts.register("module",["private","modules.renderer.js-raphaelshadow",function(){var e=this.window,k=e.Math.sqrt,u=e.parseFloat,q=e.parseInt,e=e.SVGFilterElement||e.SVGFEColorMatrixElement&&2===e.SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE,D=this.hcLib.Raphael,b={"drop-shadow":"drop-shadow",stroke:"stroke",fill:"fill","stroke-width":"stroke-width","stroke-opacity":"stroke-opacity","stroke-linecap":"stroke-linecap","stroke-linejoin":"stroke-linejoin","shape-rendering":"shape-rendering",
transform:"transform"},N=D._createNode,J;D.svg?(e&&(D.el.dropshadow=function(b,e,a,t){var q=this.node,F=this._.shadowFilter,g=this.paper.cacheShadows||(this.paper.cacheShadows={}),d="drop-shadow"+[b,e,a,t].join(" "),h;if("none"===b){if(F){--F.use;this.node.removeAttribute("filter");if(!F.use){d=F.hash;for(h in F)b=F[h],b.parentNode&&b.parentNode.removeChild(b),delete F[h];delete g[d]}delete this._.shadowFilter}}else F&&g[d]===F||(F=this.paper.defs.appendChild(N("filter",{id:D.createUUID(),width:"200%",
height:"200%"})),t=D.color(t),t.error&&(t=D.color("rgba(0,0,0,1)")),h=D.pick(t.opacity,1),this._.shadowFilter=g[d]={use:1,filter:F,hash:d,offset:F.appendChild(N("feOffset",{result:"offOut","in":"SourceGraphic",dx:u(b),dy:u(e)})),matrix:F.appendChild(N("feColorMatrix",{result:"matrixOut","in":"offOut",type:"matrix",values:"0 0 0 0 "+t.r/255+" 0 0 0 0 "+t.g/255+" 0 0 0 0 "+t.b/255+" 0 0 0 "+h+" 0"})),blur:F.appendChild(N("feGaussianBlur",{result:"blurOut","in":"matrixOut",stdDeviation:k(u(a))})),blend:F.appendChild(N("feComposite",
{"in":"SourceGraphic",in2:"blurOut",operator:"over"}))},q.setAttribute("filter",'url("'+D._url+"#"+F.id+'")'));return this}),J=function(c,e){var a=this.__shadowscale,k={},q,F;for(F in c)switch(b[F]&&(k[F]=c[F],delete c[F]),F){case "transform":q=e.matrix.clone();q.translate(this.__shadowx,this.__shadowy);this.transform(q.toTransformString());break;case "stroke-width":c[F]=((k[F]||1)+6-2*this.__shadowlevel)*a}this.attr(c);for(F in k)c[F]=k[F]},D.ca["drop-shadow"]=function(b,e,a,k,u,F){a=this._.shadows||
(this._.shadows=[]);var g,d,h,l,L;if(!this.__shadowblocked)if("none"===b)for(;d=a.pop();)d.remove();else for(k=D.color(k),k.error&&(k=D.color("rgba(0,0,0,1)")),u instanceof Array?(g=u[0],u=u[1]):g=u,g=1/D.pick(g,1),u=1/D.pick(u,1),b=D.pick(b,1)*g,e=D.pick(e,1)*g,g=.05*D.pick(k.opacity,1),h=q(this.attr("stroke-width")||1,10)+6,l=this.matrix.clone(),l.translate(b,e),L=1;3>=L;L++)d=(a[L-1]||this.clone().follow(this,J,!F&&"before")).attr({stroke:k.hex,"stroke-opacity":g*L,"stroke-width":(h-2*L)*u,transform:l.toTransformString(),
"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"}),d.__shadowlevel=L,d.__shadowscale=u,d.__shadowx=b,d.__shadowy=e,F&&F.appendChild(d),a.push(d);return!1},D.el.shadow=function(b,e,a,k){var q;a&&a.constructor===D.el.constructor&&(k=a,a=void 0);"object"===typeof b&&(e&&e.constructor===D.el.constructor&&(k=e),e=b.opacity,a=b.scalefactor,q=!!b.useFilter,b=void 0===b.apply?!!e:b.apply);void 0===e&&(e=1);if(this.dropshadow){if(q)return b&&this.dropshadow(1,1,3,"rgb(64,64,64)")||this.dropshadow("none"),
this;this._.shadowFilter&&this.dropshadow("none")}return this.attr("drop-shadow",b?[1,1,3,"rgba(64,64,64,"+e+")",a,k]:"none")}):D.vml?(D.ca["drop-shadow"]=function(b,e,a,k,q,F){var g=this._.shadow,d,h;if(this.isShadow)return!1;"none"===b?g&&(this._.shadow=g.remove()):(g||(g=this._.shadow=this.clone(),F&&F.appendChild(g.follow(this))||g.follow(this,void 0,"before"),g.attr({fill:"none","fill-opacity":.5,"stroke-opacity":1}).isShadow=!0,0>=g.attr("stroke-width")&&g.attr("stroke-width",1)),F=g.node.runtimeStyle,
d=F.filter.replace(/ progid:\S+Blur\([^\)]+\)/g,""),k=D.color(k),k.error&&(k=D.color("rgba(0,0,0,1)")),h=D.pick(k.opacity,1)/5,q=1/D.pick(q,1),b=D.pick(b,1)*q,e=D.pick(e,1)*q,g.translate(b,e),F.filter=d+" progid:DXImageTransform.Microsoft.Blur(pixelRadius="+u(.4*a)+" makeShadow=True Color="+k.hex+' shadowOpacity="'+h+'");');return!1},D.el.shadow=function(b,e,a,k){a&&a.constructor===D.el.constructor&&(k=a,a=void 0);"object"===typeof b&&(e&&"group"===e.type&&(k=e),e=b.opacity,a=b.scalefactor,b=void 0===
b.apply?!!e:b.apply);void 0===e&&(e=1);return this.attr("drop-shadow",b||!e?[1,1,5,"rgba(64,64,64,"+e+")",a,k]:"none")}):D.canvas&&(D.el.shadow=function(){return this})}]);
FusionCharts.register("module",["private","modules.renderer.js-raphaelshapes",function(){var e=this.window,k="createTouch"in e.document,u=/msie/i.test(e.navigator.userAgent)&&!e.opera,q=e.Math,D=q.cos,b=q.sin,N=q.abs,J=q.pow,c=q.atan2,p=q.tan,a=q.acos,t=q.min,U=q.round,F=q.PI,g=q.sqrt,d=2*F,h=e.parseInt,l=e.parseFloat,L=String,P=Array.prototype.slice,n=J(2,-24),C="rgba(192,192,192,"+(u?.002:1E-6)+")",w=this.hcLib.Raphael,R=w.eve,v=w._createNode,oa=w._setFillAndStroke,ea=w.el.constructor,$={speed:"optimizeSpeed",
crisp:"crispEdges",precision:"geometricPrecision"},W={enabled:!1,"false":!1,0:!1,disabled:!0,"true":!0,1:!0},pa={Q:"L",Z:"X",q:"l",z:"x",",":" "},Ca=/,?([achlmqrstvxz]),?/gi,fa=/\s*\,\s*/g,la,Q=function(){return this.join(",").replace(Ca,la)},ya,G,S=w._cacher(function(a,b,c,d){return g(J(c-a,2)+J(d-b,2))}),ba=w._cacher(function(a,b,c,d,e){var g=c-a,h=d-b;c=S(a,b,c,d);return{x:a+g/c*e,y:b+h/c*e}});if(w.svg)R.on("raphael.attr.shape-rendering",function(a,b){var c=this.node;this.attrs[b]=a=$[a]||a||"auto";
c.setAttribute(b,a);c.style.shapeRendering=a});else if(w.vml)R.on("raphael.attr.shape-rendering",function(a){this.node.style.antialias="crisp"!==a});w.define&&w.define([{name:"polypath",polypath:function(){return this.path(void 0,w._lastArgIfGroup(arguments))},ca:{polypath:function(a,c,d,e,g,n){var k,G,v;k=[];a=h(a,10)||0;c=l(c)||0;d=l(d)||0;e=l(e)||0;g=null===g||isNaN(g)?.5*F:w.rad(g);n=null===n||isNaN(n)?0:l(n);G=g;if(2<a)switch(g=2*F/a,n){case 0:for(n=0;n<a;n++)k.push("L",c+e*D(-G),d+e*b(-G)),
G+=g;k[0]="M";k.push("Z");break;case 1:for(n=0;n<a;n++)k.push("M",c,d,"L",c+e*D(-G),d+e*b(-G)),G+=g;break;default:g*=.5;v=e*D(g)*(1-n);for(n=0;n<a;n++)k.push("L",c+e*D(-G),d+e*b(-G)),G+=g,k.push("L",c+v*D(-G),d+v*b(-G)),G+=g;k[0]="M";k.push("Z")}else 0===e?k.push("M",c,d,"L",c,d,"Z"):k.push("M",c-e,d,"A",e,e,0,0,0,c+e,d,"A",e,e,0,0,0,c-e,d,"Z");return{path:k}},r:function(a){var b=this.attrs.polypath;b[3]=a;this.attr("polypath",b);return!1}}},{name:"ringpath",ringpath:function(){return this.path(void 0,
w._lastArgIfGroup(arguments))},ca:function(a,c,e,g,h,l){var k=l%d-h%d,w=l-h,G,v,p,t,C;this._.ringangle=.5*(h+l);N(w)<n?(w=D(h),h=b(h),e=["M",a+e*w,c+e*h,"L",a+g*w,c+g*h,"Z"]):(N(w)>n&&N(w)%d<n?(e=["M",a-e,c,"A",e,e,0,0,0,a+e,c,"A",e,e,0,0,0,a-e,c],0!==g&&(e=e.concat(["M",a-g,c,"A",g,g,0,0,1,a+g,c,"A",g,g,0,0,1,a-g,c]))):(w=D(h),h=b(h),G=D(l),l=b(l),k%=d,0>k&&(k+=d),k=k<F?0:1,v=a+e*w,t=c+e*h,p=a+e*G,C=c+e*l,G=a+g*G,l=c+g*l,.01>N(v-p)&&.01>N(t-C)&&(t=C+.01),e=["M",v,t,"A",e,e,0,k,1,p,C,"L",G,l],0!==
g&&(a+=g*w,c+=g*h,.01>N(G-a)&&.01>N(l-c)&&(c=l+.01),e.push("A",g,g,0,k,0,a,c))),e.push("Z"));return{path:e}}},{name:"cubepath",cubepath:function(){var a={"stroke-linejoin":"round","shape-rendering":"precision",stroke:"none"},b=arguments,c=b.length-1,d=b[c],e,g;d&&d.constructor===w.el.constructor?b[c]=void 0:d=void 0;c=this.path(a,d);e=this.path(a,d);a=this.path(a,d);a._.cubetop=c.follow(a,void 0,"before");a._.cubeside=e.follow(a,void 0,"before");for(g in w.fn.cubepath.ca)a.ca[g]=w.fn.cubepath.ca[g];
return a.attr("cubepath",[b[0],b[1],b[2],b[3],b[4],b[5]])},fn:{_getBBox2:function(){var a=this._.cubeside.getBBox(),b=this._.cubetop.getBBox(),c=this.getBBox();return{x:c.x+b.height,y:c.y-a.width,width:c.width,height:c.height}}},ca:{cubepath:function(a,b,c,d,e,g){var h=this._.cubetop,n=this._.cubeside;a=a||0;b=b||0;c=c||0;d=d||0;e=e||0;g=g||0;this.attr("path",["M",a+c,b,"l",0,d,-c,0,0,-d,"z"]);h.attr("path",["M",a,b,"l",1,1,c-1,0,0,-1,e,-g,-c,0,"z"]);n.attr("path",["M",a+c-1,b+1,"l",0,d-1,1,0,e,-g,
0,-d,-e,g]);return!1},"stroke-linejoin":function(){return{"stroke-linejoin":"round"}},"drop-shadow":function(a,b,c,d){var e=this._.cubetop,g=this._.cubeside;this.dropshadow&&(e.dropshadow(a,-b,c,d),g.dropshadow(a,-b,c,d));return!1},fill:function(a,b){var d=this._.cubetop,e=this._.cubeside,g=this.attr("cubepath")||[0,0,0,0,0,0],h=g[2],n=g[4],g=g[5],l;a=w.color(a);b?(this.attr("fill",a),d.attr("fill",w.tintshade(a,-.78).rgba),e.attr("fill",w.tintshade(a,-.65).rgba)):(l="opacity"in a?"rgba("+[a.r,a.g,
a.b,a.opacity]+")":"rgb("+[a.r,a.g,a.b]+")",this.attr("fill",[270,w.tintshade(l,.55).rgba,w.tintshade(l,-.65).rgba].join("-")),e.attr("fill",[270,w.tintshade(l,-.75).rgba,w.tintshade(l,-.35).rgba].join("-")),d.attr("fill",[45+w.deg(c(g,n+h)),w.tintshade(l,-.78).rgba,w.tintshade(l,.22).rgba].join("-")));return!1}}},{name:"scroller",scroller:function(a,b,c,d,e,g,h){var n=this.group("scroller",h),k=n.attrs,G=n._.scroller={};e=e&&"horizontal"||"vertical";var v,p={},t,C,q;G.track=this.rect(n).mousedown(function(a){var b=
k["scroll-position"];a="horizontal"===k["scroll-orientation"]?a.layerX||a.x:a.layerY||a.y;a=(a-G.anchorOffset)/G.trackLength;v=w.animation({"scroll-position":a},2E3*N(b-a),"easeIn");n.animate(v);R("raphael.scroll.start."+n.id,n,b)}).mouseup(G._mouseupTrack=function(){this.stop(v);R("raphael.scroll.end."+this.id,this,k["scroll-position"])},n,!0);G.anchor=this.rect(n).drag(function(){p["scroll-position"]=t+arguments[C]/G.trackLength;n.animate(p,0)},function(a,b,c){C="horizontal"===k["scroll-orientation"]?
0:1;R("raphael.scroll.start."+n.id,n,t=k["scroll-position"]);c.stopPropagation()},function(){R("raphael.scroll.end."+n.id,n,t=k["scroll-position"])});for(q in w.fn.scroller.fn)n[q]=w.fn.scroller.fn[q];for(q in w.fn.scroller.ca)n.ca[q]=w.fn.scroller.ca[q];k["scroll-orientation"]=e;k["stroke-width"]=1;n.ca["scroll-repaint"]=n.ca["scroll-repaint-"+e];!w.is(g,"object")&&(g={});return n.attr({ishot:!0,"scroll-display-buttons":g.showButtons&&"arrow"||"none","scroll-display-style":g.displayStyleFlat&&"flat"||
"3d","scroll-ratio":l(g.scrollRatio)||1,"scroll-position":l(g.scrollPosition)||0,"scroll-repaint":[a,b,c,d]})},fn:{scroll:function(a,b){var c=this._.scroller;b=b||this;c.callback=function(){return a.apply(b,arguments)};return this},remove:function(){var a=this._.scroller,b;this.attr("scroll-display-buttons","none");a.track.unmouseup(a._mouseupTrack);for(b in a)a[b]&&a[b].remove&&a[b].remove(),a[b]=null;delete this._.scroller;w.el.remove.apply(this,arguments)}},ca:{"stroke-width":function(){return!1},
"drop-shadow":function(a,b,c,d,e,g){this._.scroller.track.attr("drop-shadow",[a,b,c,d,e,g]);return!1},"scroll-display-style":function(a){var b=this.attrs,c=b["scroll-display-style"],d=b.fill;a={flat:"flat","3d":"3d",transparent:"transparent"}[a]||c;d&&a!==c&&(b["scroll-display-style"]=a,this.attr("fill",d));return{"scroll-display-style":a}},"scroll-display-buttons":function(a){var b=this,c=b.paper,d=b._.scroller,e=b.attrs,g=e["scroll-display-buttons"],h=e["scroll-repaint"],n,l;void 0===g&&(g="none");
a={none:"none",arrow:"arrow"}[a]||g;a!==g&&(e["scroll-display-buttons"]=a,"none"===a&&d.start?(d.arrowstart.remove(),delete d.arrowstart,d.arrowend.remove(),delete d.arrowend,d.start.unmouseup(d._mouseupStart),d.start.remove(),delete d.start,d.end.unmouseup(d._mouseupEnd),d.end.remove(),delete d.end):(d.arrowstart=c.polypath(b),d.arrowend=c.polypath(b),d.start=c.rect(b).mousedown(function(){var a;0!==(a=e["scroll-position"])&&(b.animate({"scroll-position":a-.1},100).animate(n=w.animation({"scroll-position":0},
4500*a,"easeIn")),R("raphael.scroll.start."+b.id,b,a))}).mouseup(d._mouseupStart=function(){b.stop(n);R("raphael.scroll.end."+b.id,b,e["scroll-position"])},b,!0),d.end=c.rect(b).mousedown(function(){var a;1!==(a=e["scroll-position"])&&(b.animate({"scroll-position":a+.1},100).animate(l=w.animation({"scroll-position":1},4500*(1-a),"easeIn")),R("raphael.scroll.start."+b.id,b,a))}).mouseup(d._mouseupEnd=function(){b.stop(l);R("raphael.scroll.end."+b.id,b,e["scroll-position"])},b,!0),e.fill&&b.attr("fill",
e.fill)),h&&b.attr("scroll-repaint",h));return{"scroll-display-buttons":a}},"scroll-orientation":function(a){var b=this.attrs,c=b["scroll-repaint"],d=b["scroll-orientation"];a={horizontal:"horizontal",vertical:"vertical"}[a]||d;d!==a&&(this.ca["scroll-repaint"]=this.ca["scroll-repaint-"+a],c&&(c[2]+=c[3],c[3]=c[2]-c[3],c[2]-=c[3],this.attr("scroll-repaint",c)),b.fill&&this.attr("fill",b.fill));return{"scroll-orientation":a}},"scroll-ratio":function(a){var b=this.attrs,c=b["scroll-ratio"],d=b["scroll-repaint"];
a=1<a?1:.01>a?.01:l(a);d&&a!==c&&(b["scroll-ratio"]=a,this.attr("scroll-repaint",d));return{"scroll-ratio":a}},"scroll-position":function(a,b){var c=this.attrs,d="horizontal"===c["scroll-orientation"],e=c["scroll-repaint"],g=c["scroll-position"],h=this._.scroller,n=h.anchor;a=1<a?1:0>a?0:l(a);isNaN(a)&&(a=g);e&&(g!==a||b)&&(g=h.start&&h.start.attr(d&&"width"||"height")||0,d&&n.attr("x",e[0]+g+(e[2]-2*g-n.attr("width"))*a+.5)||n.attr("y",e[1]+g+(e[3]-2*g-n.attr("height"))*a+.5),!b&&1>c["scroll-ratio"]&&
(R("raphael.scroll.change."+this.id,this,a),h.callback&&h.callback(a)));return{"scroll-position":a}},r:function(a){var b=this._.scroller;b.track.attr("r",a);b.anchor.attr("r","none"===this.attrs["scroll-display-buttons"]&&a||0);return!1},"scroll-repaint-horizontal":function(a,b,c,d){var e=this.attrs,g=this._.scroller,h=e["scroll-ratio"],n=e["scroll-position"],l=0,k=c*h,e="none"===e["scroll-display-buttons"];c&&--c;a&&(a+=.5);d&&--d;b&&(b+=.5);g.track.attr({width:c,height:d,y:b,x:a}).crisp();e||(l=
t(d,.5*c),k-=2*l*h,g.start.attr({width:l,height:d,x:a,y:b}),g.arrowstart.attr("polypath",[3,a+.5*l,b+.5*d,.25*l,180]),g.end.attr({width:l,height:d,x:a+c-l,y:b}),g.arrowend.attr("polypath",[3,a+c-.5*l,b+.5*l,.25*l,0]));g.trackLength=c-2*l-k;g.trackOffset=a+l+.5;g.anchorOffset=g.trackOffset+.5*(k-1);g.anchor.attr({height:d,width:k-1,y:b,x:g.trackOffset+g.trackLength*n}).crisp()},"scroll-repaint-vertical":function(a,b,c,d){var e=this.attrs,g=this._.scroller,h=e["scroll-ratio"],n=e["scroll-position"],
l=0,k=d*h,e="none"===e["scroll-display-buttons"];c&&--c;a&&(a+=.5);d&&--d;b&&(b+=.5);g.track.attr({width:c,height:d,y:b,x:a}).crisp();e||(l=t(c,.5*d),k-=2*l*h,g.start.attr({width:c,height:l,x:a,y:b}),g.arrowstart.attr("polypath",[3,a+.5*c,b+.5*l,.25*l,90]),g.end.attr({width:c,height:l,x:a,y:b+d-l}),g.arrowend.attr("polypath",[3,a+.5*c,b+d-.5*l,.25*l,-90]));g.trackLength=d-2*l-k;g.trackOffset=b+l+.5;g.anchorOffset=g.trackOffset+.5*(k-1);g.anchor.attr({height:k-1,width:c,y:g.trackOffset+g.trackLength*
n,x:a}).crisp()},fill:function(a){var b=this.attrs,c=this._.scroller,d=b["scroll-repaint"],e="flat"===b["scroll-display-style"],g="horizontal"===b["scroll-orientation"],h={stroke:"none"},n;k&&d&&3<(n=16-d[g&&3||2])&&(h.stroke=C,h["stroke-width"]=n);a=w.color(a);a.error&&(a="#000000");a="opacity"in a?"rgba("+[a.r,a.g,a.b,a.opacity]+")":"rgb("+[a.r,a.g,a.b]+")";h.fill=e&&a||[90*g,w.tintshade(a,.15).rgba,a].join("-");h.stroke=w.tintshade(a,-.75).rgba;c.track.attr(h);h.fill=e&&w.tintshade(a,-.6).rgba||
[270*g,w.tintshade(a,.3).rgba+":40",w.tintshade(a,-.7).rgba].join("-");h.stroke=w.tintshade(a,-.6).rgba;c.anchor.attr(h);h.stroke="none";"none"!==b["scroll-display-buttons"]&&(h.fill=C,c.start.attr(h),c.end.attr(h),h.fill=w.tintshade(a,-.4).rgba,c.arrowstart.attr(h),c.arrowend.attr(h));return!1}}},{name:"button",button:function(a,b,c,d,e,g){g=this.group("button",g);var h;g._.button={bound:this.rect(g),tracker:this.rect(g).attr({fill:C,stroke:C,cursor:"pointer"}).data("compositeButton",g)};!w.is(e,
"object")&&(e={});for(h in w.fn.button.fn)g[h]=w.fn.button.fn[h];for(h in w.fn.button.ca)g.ca[h]=w.fn.button.ca[h];return g.attr({ishot:!0,"button-padding":[e.horizontalPadding,e.verticalPadding],"button-label":c,"button-symbol":d,"button-disabled":e.disabled||"false","button-symbol-position":e.symbolPosition,"button-symbol-padding":e.symbolPadding}).attr("button-repaint",[a,b,e.width,e.height,e.r])},data:{hoverin:function(){var a=this._.button.hoverbackIn;a&&!1===a()||(this.attr("fill","hover").hovered=
!0)},hoverout:function(){var a=this._.button.hoverbackOut;a&&!1===a()||(this.attr("fill",(this.pressed||this.active)&&"active"||"normal").hovered=!1)},mousedown:function(){this.attr("fill","active").pressed=!0},mouseup:function(){var a=this._.button.callback;this.attr("fill",this.hovered&&"hover"||this.active&&"active"||"normal").pressed=!1;a()}},fn:{tooltip:function(){w.el.tooltip&&w.el.tooltip.apply(this._.button.tracker,arguments);return this},buttonclick:function(a,b){var c=this._.button;b=b||
this;c.callback=function(){return a.apply(b,arguments)};return this},labelcss:function(){var a=this._.button,b=a.label;a.cssArg=arguments;b&&b.css.apply(b,arguments);return this.attr("button-repaint",this.attrs["button-repaint"])},buttonhover:function(a,b,c,d){var e=this._.button;c=c||this;d=d||this;e.hoverbackIn=function(){return a.apply(c,arguments)};e.hoverbackOut=function(){return b.apply(d,arguments)};return this},remove:function(){var a=this._.button,b;this.attr("button-disabled","true");for(b in a)a[b]&&
a[b].remove&&a[b].remove(),a[b]=null;delete this._.button;w.el.remove.apply(this,arguments)}},ca:{"button-active":function(a){this.attr("fill",(this.active=!!a)?"active":this.hovered&&"hover"||"normal")},"button-disabled":function(a){var b=this._.button.tracker,c=this.attrs["button-disabled"],d=this.paper.button.data;a=W[a];c=W[c];if(void 0!==a&&a!==c)switch(a){case !0:b.attr("fill","rgba(204,204,205,.5)").unmousedown(d.mousedown).unmouseup(d.mouseup).unhover(d.hoverin,d.hoverout);break;case !1:b.attr("fill",
C).mousedown(d.mousedown,this).mouseup(d.mouseup,this,!0).hover(d.hoverin,d.hoverout,this,this)}},"button-label":function(a){var b=this._.button,c=this.attrs,d=b.label,e=b.cssArg,g=this.attrs["button-repaint"];a=L(a||"");"none"===a?d&&(b.label=d.remove()):a&&(!d&&(d=b.label=this.paper.text(this).insertBefore(b.tracker)),d.attr({text:a,"text-anchor":"middle","vertical-align":"middle"}),e&&e.length&&d.css.apply(d,e));g&&c["button-label"]!==a&&this.attr("button-repaint",g)},"button-symbol":function(a){var b=
this.attrs,c=this._.button,d=c.symbol,e=this.attrs["button-repaint"];a=L(a||"");"none"===a?d&&(c.symbol=d.remove()):a&&!d&&(c.symbol=this.paper.symbol(this).insertAfter(c.bound));e&&b["button-symbol"]!==a&&this.attr("button-repaint",e)},"button-symbol-position":function(a){return{"button-symbol-position":{top:"top",right:"right",bottom:"bottom",left:"left",none:"none"}[L(a).toLowerCase()]||"none"}},"button-symbol-padding":function(a){return{"button-symbol-padding":l(a)}},"button-padding":function(a,
b){return{"button-padding":[null==a&&(a=5)||l(a),null==b&&a||l(b)]}},"button-repaint":function(a,b,c,d,e){var g=this._.button,h=g.bound,n=g.label,l=g.symbol,k=this.attrs,G=k["button-padding"],v=G[0],p=G[1],C,q;void 0===a&&(a=0);void 0===b&&(b=0);if(void 0===c||void 0===d)C=n&&n.getBBox()||{width:0,height:0},void 0===c&&(c=2*v+C.width),void 0===d&&(d=2*p+C.height);h=w.crispBound(a,b,c,d,h.attr("stroke-width"));h.r=w.pick(e,U(.1*t(d,c)));a=h.x;b=h.y;c=h.width;d=h.height;n&&n.attr({x:a+c/2,y:b+d/2});
if(l){!w.is(q=k["button-symbol-padding"],"finite")&&(q=.2*d);e=d-p;C=.5*e;switch(k["button-symbol-position"]+(n&&"+"||"-")){case "right+":a=a+(c+(2*C+p))-C-v;b+=.5*d;n.attr("transform",["t",-(e+q),0]);break;case "left+":a=a+v+C;b+=.5*d;n.attr("transform",["t",e+q,0]);break;case "top+":a+=.5*c;b=b+G[1]+C;n.attr("transform",["t",0,e+q]);break;case "bottom+":a+=.5*c;b=b+(d+(2*C+q))-p-C;n.attr("transform",["t",0,-(e+q)]);break;default:a+=.5*c,b+=.5*d}l.attr("symbol",[k["button-symbol"],a,b,C])}g.bound.attr(h);
g.tracker.attr(h)},fill:function(a,b,c,d){var e=this._.button,g=e.bound,h=e.symbol,n=e.label,l={normal:e.gradient,active:e.gradientActive,hover:e.gradientHover}[a];l||(a=w.getRGB(a),a.error&&(a=w.color("#cccccc")),a="opacity"in a?"rgba("+[a.r,a.g,a.b,a.opacity]+")":"rgb("+[a.r,a.g,a.b]+")",e.gradient=[90,w.tintshade(a,-.8).rgba+":0",w.tintshade(a,.8).rgba+":100"].join("-"),e.gradientActive=[270,w.tintshade(a,-.8).rgba+":0",w.tintshade(a,.8).rgba+":100"].join("-"),d=w.getRGB(d),d.error&&(d=a)||(d=
"opacity"in d?"rgba("+[d.r,d.g,d.b,d.opacity]+")":"rgb("+[d.r,d.g,d.b]+")"),e.gradientHover=[90,w.tintshade(d,-.9).rgba+":0",w.tintshade(d,.7).rgba+":100"].join("-"),c=c||w.tintshade(a,.2).rgba,b=b||w.tintshade(a,-.2).rgba,e.symbolFill=c,e.labelFill=b,l=(this.pressed||this.active)&&e.gradientActive||this.hovered&&e.gradienthover||e.gradient);g.attr("fill",l);h&&h.attr("fill",e.symbolFill);n&&n.attr("fill",e.labelFill);return!1},stroke:function(a,b){var c=this._.button,d=c.symbol;a=w.color(a);a.error&&
(a=w.color("#999999"));c.bound.attr("stroke",a);d&&d.attr("stroke",b||a);return!1},"stroke-width":function(a,b){var c=this._.button,d=c.symbol;c.bound.attr("stroke-width",a);c.tracker.attr("stroke-width",a);d&&d.attr("stroke-width",b);return!1}}},{name:"trianglepath",trianglepath:function(){var a=arguments,b=w._lastArgIfGroup(a);return this.path(b).attr("trianglepath",[a[0],a[1],a[2],a[3],a[4],a[5],a[6]||0,a[7]||0,a[8]||0])},fn:{sides:function(){var a=this._args;return[S(a[0],a[1],a[2],a[3]),S(a[2],
a[3],a[4],a[5]),S(a[4],a[5],a[0],a[1])]},enclosedAngles:function(){var b=this._sides;return[a((J(b[0],2)+J(b[2],2)-J(b[1],2))/(2*b[0]*b[2])),a((J(b[0],2)+J(b[1],2)-J(b[2],2))/(2*b[0]*b[1])),a((J(b[2],2)+J(b[1],2)-J(b[0],2))/(2*b[2]*b[1]))]},semiperimeter:function(){var a=this._sides||this.sides();return(a[0]+a[1]+a[2])/2}},ca:{trianglepath:function(a,b,c,d,e,h,n,l,k){if(n||l||k){this._args=arguments;this._sides=this.sides();var G=this.enclosedAngles(),w;w=this.semiperimeter();w=g(w*(w-this._sides[0])*
(w-this._sides[1])*(w-this._sides[2]))/w;G=[t(n,w)/p(G[0]/2),t(l,w)/p(G[1]/2),t(k,w)/p(G[2]/2)];G=[ba(a,b,e,h,G[0]),ba(a,b,c,d,G[0]),ba(c,d,a,b,G[1]),ba(c,d,e,h,G[1]),ba(e,h,c,d,G[2]),ba(e,h,a,b,G[2])];this.attr({path:["M",G[0].x,G[0].y,"Q",a,b,G[1].x,G[1].y,"L",G[2].x,G[2].y,"Q",c,d,G[3].x,G[3].y,"L",G[4].x,G[4].y,"Q",e,h,G[5].x,G[5].y,"L",G[0].x,G[0].y]})}else this.attr({path:["M",a,b,"L",c,d,e,h,"Z"]})}}}]);w.ca["text-bound"]=function(a,b,c,d,e,g){d=this.paper;var h=this._.textbound;if("text"===
this.type){if(!(b&&"none"!==b||a&&"none"!==a))return this._.textbound=h&&h.unfollow(this).remove(),!1;c&&w.is(c,"finite")||(c=0);e&&w.is(e,"finite")||(e=0);!h&&(h=this._.textbound=d.rect(0,0,0,0,this.group).follow(this,w.ca["text-bound"].reposition,"before"));h.attr({stroke:b,"stroke-width":c,fill:a,"shape-rendering":1===c&&"crisp"||"",r:e});g&&h.attr("stroke-dasharray",g);w.ca["text-bound"].reposition.call(h,this.attr(),this);return!1}};w.ca["text-bound"].reposition=function(a,b){var c={},d,e,g,
h,n;a.hasOwnProperty("visibility")&&this.attr("visibility",a.visibility);if(a.hasOwnProperty("text-bound")||a.hasOwnProperty("x")||a.hasOwnProperty("y")||a.hasOwnProperty("text")||a.hasOwnProperty("text-anchor")||a.hasOwnProperty("text-align")||a.hasOwnProperty("font-size")||a.hasOwnProperty("line-height")||a.hasOwnProperty("vertical-align")||a.hasOwnProperty("transform")||a.hasOwnProperty("rotation"))d=b.attrs["text-bound"],e=L(d&&d[3]||"0").split(fa),d=l(e[0])||0,e=w.pick(l(e[1]),d),g=b.getBBox(),
h=g.width,n=g.height,isNaN(h)||(c.x=g.x-d,c.y=g.y-e,c.width=h+2*d,c.height=n+2*e),this.attr(c)};w.fn.symbol=function(){var a=arguments,b=a.length-1,c=a[b];c&&c.constructor===w.el.constructor?a[b]=void 0:c=void 0;b=this.path(void 0,c);b.ca.symbol=w.fn.symbol.ca.symbol;return a.length===!!c+0?b:b.attr("symbol",a)};w.fn.symbol.cache={"":w._cacher(function(a,b,c,d){return 3<arguments.length?["M",a,b,"h",c,"v",d,"h",-c,"v",-d,"z"]:["M",a-c,b-c,"h",c*=2,"v",c,"h",-c,"v",-c,"z"]})};w.fn.symbol.ca={symbol:function(a){var b=
w.is(a,"object")&&1===arguments.length&&!w.is(a,"function")?a:arguments,c;b===a&&(a=b[0]);b=(c=w.is(a,"function")&&a||w.fn.symbol.cache[a]||w.fn.symbol.cache[""])&&c.apply(w,P.call(b,1));w.is(b,"array")||w.is(b,"string")?this.attr("path",b):b&&this.attr(b)}};w.addSymbol=function(a,b){var c=w.is(b,"function")&&(c={},c[a]=b,c)||a,d=w.fn.symbol.cache,e=[],g;for(g in c)b=c[g],d[g]=w.is(b,"function")&&w._cacher(b,w)||(e.push(g),b);for(;g=e.pop();)d[g]=d[d[g]]};w.svg?(la="$1",ya=function(a){a?"string"===
typeof a?a=a.replace(Ca,la):a.toString=Q:a="M0,0";this.node.setAttribute("d",a.toString());return this},w._engine.litepath=function(a,b,c,d){a=v("path");(d||b).canvas.appendChild(a);b=new ea(a,b,d);b.type="litepath";b.id=a.raphaelid=w._oid++;a.raphael=!0;oa(b,{fill:"none",stroke:"#000"});return b},w._getPath.litepath=function(a){return w.parsePathString(a.node.getAttribute("d"))}):w.vml&&(la=function(a,b){return pa[b]||b},G=function(){this._transform.apply(this,arguments);this._.bcoord&&(this.node.coordsize=
this._.bcoord);return this},ya=function(a){a?"string"===typeof a?a=a.replace(Ca,la):a.toString=Q:a="M0,0";this.node.path=a;return this},w._engine.litepath=function(a,b,c,d){a=v("shape");var e=a.style,g=new ea(a,b,d);e.cssText="position:absolute;left:0;top:0;width:21600px;height:21600px;";c=l(c);isNaN(c)?a.coordsize="21600 21600":(g._.bzoom=c,e.width="1px",e.height="1px",a.coordsize=g._.bcoord=c+" "+c);a.coordorigin=b.coordorigin;g.type="litepath";g.id=a.raphaelid=w._oid++;a.raphael=!0;g._transform=
g.transform;g.transform=G;w._setFillAndStroke(g,{fill:"none",stroke:"#000"});(d||b).canvas.appendChild(a);b=v("skew");b.on=!0;a.appendChild(b);g.skew=b;return g},w._getPath.litepath=function(a){return w.parsePathString(a.node.path||"")});w.fn.litepath=function(a,b,c){b&&b.constructor===ea&&(c=b,b=void 0);a&&a.constructor===ea&&(c=a,a="");b=w._engine.litepath(a,this,b,c);b.ca.litepath=ya;a&&b.attr("litepath",w.is(a,"array")?[a]:a);return this.__set__&&this.__set__.push(b),this._elementsById[b.id]=
b}}]);
FusionCharts.register("module",["private","modules.renderer.js-htmlrenderer",function(){var e=this.hcLib,k=e.Raphael,u=e.dem,q=this.window,D=q.document,b=/msie/i.test(q.navigator.userAgent)&&!q.opera,N="VML"===k.type,J=e.hasTouch,c={cursor:"cursor"},p={x:"left",y:"top",strokeWidth:"borderThickness","stroke-width":"borderThickness",width:"width",height:"height"},a={fill:"backgroundColor",stroke:"borderColor",color:"color"},t={left:0,top:0,padding:0,border:"none",margin:0,outline:"none","-webkit-apperance":"none",position:"absolute",
zIndex:20},U,F=function(a,b,c,e){a=D.createElement(a);for(var g in b)p[g]?a.style[g]=b[g]:a.setAttribute(g,b[g]);for(g in c)a.style[g]=c[g];e&&e.appendChild&&e.appendChild(a);return a},g;g=function(a,b,c){b&&b instanceof g&&(b=b.element);(this.element=F(a,c,t,b)).ishot="true";this.nodeName=a.toLowerCase();this.added=Boolean(b)};g.prototype={attr:function(d){var e=this.element,g={},k,t,n,C,w,q,v;if("object"!==typeof d){if(!(g=this[d])){if("string"===typeof d)e&&e.getAttribute&&(C=e.getAttribute(d));
else if(void 0!==d&&null!==d&&"object"===typeof d)for(n in d)e.setAttribute(n,d[n]);g=C}return g}for(k in d){n=d[k];if(c[k]){switch(k){case "cursor":"pointer"===n&&N&&(n="hand")}e.style[c[k]]=n;t=!0}else if(p[k])e.style[p[k]]=n+"px",t=!0;else if(a[k])e.style[a[k]]=n&&n.replace(/^#?([a-f0-9]+)/ig,"#$1")||"none",t=!0;else if(/^visibility$/i.test(k))t="hidden"===n,e.style.display=t?"none":"",this.hidden=t,t=!0;else if(/^opacity$/i.test(k))e.style.opacity=n,b&&(t=100*Number(n),e.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity="+
t+")"),t=!0;else if(/^innerhtml$/i.test(k)){if(N&&"select"==e.nodeName.toLowerCase()){for(t=n.match(/<option\s?[\s\S]*?(\/>|><\/option>|>[\s\S]*?<\/option>)/ig);e.firstChild;)e.removeChild(e.firstChild);w=0;for(q=t.length;w<q;w+=1)C=t[w],v=D.createElement("option"),/<option\s([\s\S]*[\'\"])\s*?(\/>|>[\s\S]*<\/option>)/ig.test(C)&&(v.value=C.replace(/<option\s([\s\S]*[\'\"])\s*?(\/>|>[\s\S]*<\/option>)/ig,"$1").replace(/[\s\S]*value\s*\=\s*[\'\"]([\s\S]*)[\'\"]/,"$1")),v.text=C.replace(/<option\s*[\s\S]*[\'\"]?\s*?[\/>|\>]([\s\S]*)<\/option>/ig,
"$1 "),e.options.add(v)}else"input"!==e.nodeName.toLowerCase()&&void 0!==n&&(e.innerHTML=n||"");t=!0}else/^text$/i.test(k)?("input"!==e.nodeName.toLowerCase()&&(e.innerHTML="",void 0!==n&&e.appendChild(D.createTextNode(n))),t=!0):/^type$/i.test(k)&&b&&this.added&&(t=!0);t&&(g[k]=n,delete d[k],t=!1)}for(k in d)e.setAttribute(k,d[k]);for(k in g)this[k]=d[k]=g[k],delete g[k];return this},val:function(a){var b=this.element,c=void 0===a;return"input"===this.nodeName&&"checkbox"===b.getAttribute("type")?
c?this.checked()?1:0:this.checked(a):c?b.value:(b.value=a,this)},checked:function(a){var b=this.element;return void 0===a?b.checked:(a?b.setAttribute("checked","checked"):b.removeAttribute("checked"),this)},css:function(a,b){var c=this.element.style,e;if("object"===typeof a)for(e in a)c[e]=a[e];else e&&void 0!==b&&(c[e]=b);return this},translate:function(a,b){var c=this.element;void 0!==a&&(c.style.left=a+"px");void 0!==b&&(c.style.top=b+"px");return this},add:function(a,b){var c=this.element,e=a.element;
b?e.insertBefore(c,e.firstChild):e.appendChild(c);this.added=!0;return this},hide:function(){this.element.style.display="none";return this},show:function(){this.element.style.display="";return this},focus:function(){"function"===typeof this.element.focus?this.element.focus():e.dem.fire(this.element,"focus")},destroy:function(){var a=this.element||{};a.onclick=a.onmouseout=a.onmouseover=a.onmousemove=a.onblur=a.onfocus=null;U||(U=F("div"));a&&U.appendChild(a);U.innerHTML="";delete this.element;return null},
on:N?function(a,b){this.element["on"+a]=function(){var a=q.event;a.target=a.srcElement;b(a)};return this}:function(a,b){var c=b;J&&"click"===a&&(a="touchstart",c=function(a){a.preventDefault();b()});this.element["on"+a]=c;return this},bind:function(a,b,c){u.listen(this.element,a,b,c);return this},unbind:function(a,b){u.unlisten(this.element,a,b);return this},trigger:function(a,b){u.fire(this.element,a,b);return this},fadeIn:function(a,b){var c="fast"===a?400:1E3;this.show();this.attr({opacity:0});
e.danimate.animate(this.element,{opacity:1},c,"linear",b)}};g.prototype.constructor=g;k.fn.html=function(a,b,c,e){var k={},n;b&&"type"in b&&(k.type=b.type,delete b.type);a=(new g(a,e,k)).css(c).attr(b);for(n in k)b[n]=k[n];return a}}]);
FusionCharts.register("module",["private","modules.renderer.js-raphaeltooltip",function(){var e=this,k=e.window,u=k.document,q=u.body||u.getElementsByTagName("body")[0],D=e.hcLib,b=D.Raphael,N=b.eve,J=D.createElement,c=D.addEvent,p=D.removeEvent,a=D.getPosition,t=D.hasTouch,U=D.getTouchEvent,F=k.Math,g=F.ceil,d=F.floor,h={},l=k.screen.availHeight,L=k.screen.availWidth,P={"":1,moz:1,webkit:1,o:1,ms:1},n={borderRadius:"borderRadius",boxShadow:"boxShadow"},C=/\-([a-z])/ig,w=function(a,b){return b.toUpperCase()},
R=function(a){var c=v.forbiddenStyle,d,e,g;for(d in a)e=C.test(d)?d.replace(C,w):d,void 0!==a[d]&&!c[e]&&(this[e]=a[d]),b.vml&&/color/ig.test(e)&&(this[e]=b.getRGB(this[e]).toString());for(d in n)if(this[d])for(g in P)this[g+d]=this[d]},v=D.toolTip={elementId:"fusioncharts-tooltip-element",element:null,lastTarget:null,currentTarget:null,currentPaper:null,pointeroffset:12,prevented:!1,defaultStyle:D.extend2(R.prototype,{backgroundColor:"#ffffee",borderColor:"#000000",borderWidth:"1px",color:"#000000",
fontSize:"10px",lineHeight:"12px",padding:"3px",borderStyle:"solid"}),defaultContainerStyle:{position:"absolute",textAlign:"left",margin:"0",zIndex:"99999",pointer:"default",display:"block"},forbiddenStyle:{}},oa=function(a){!0===v._oobready?v._oobready=!1:(p(q,"touchstart",oa),!v.hidden&&v.currentTarget&&(a=a.srcElement||a.target||h,a.raphael&&v.currentTarget.paper.getById(a.raphaelid)===v.currentTarget||v.hide()))};b.svg&&(v.defaultContainerStyle.pointerEvents="none",v.defaultStyle.borderRadius=
"0",v.defaultStyle.boxShadow="none");b.vml&&(v.forbiddenStyle.borderRadius=!0,v.forbiddenStyle.boxShadow=!0,v.defaultStyle.filter="");v.setup=function(){var a=v.container,c=v.textElement,d=v.style,g=v.defaultContainerStyle,h=v.forbiddenStyle,n;a||(a=v.element=J("span"),(u.body||u.getElementsByTagName("body")[0]).appendChild(a),a.setAttribute("id",v.elementId),d=v.containerStyle=a.style,c=v.textElement=J("span"),a.appendChild(c),v.style=b.vml?c.runtimeStyle:c.style,v.style.overflow="hidden",v.style.display=
"block",v.hidden=!1,v.hide());for(n in g)!h[n]&&(d[n]=g[n]);v.scatted=!0;N.on("raphael.drag.start.*",function(){v.scatted&&(v.waitingScat=!0)});N.on("raphael.drag.move.*",function(){v.waitingScat&&(v.block(),v.waitingScat=!1)});N.on("raphael.drag.end.*",function(){v.waitingScat=!1;v.scatted&&v.unblock(!0)});N.on("raphael.remove",function(){if(v.currentPaper===this||v.currentTarget&&v.currentTarget.paper===this)v.hide(),v.currentTarget=v.currentPaper=null});e.addEventListener("LinkedChartInvoked",
function(a){v.currentPaper===a.sender.jsVars.hcObj.paper&&v.hide()});e.addEventListener("realTimeUpdateComplete",function(a){v.currentPaper===a.sender.jsVars.hcObj.paper&&v.hide()})};v.restyle=function(a){var b=v.style,c;for(c in a)b[c]=a[c]};v.onelement=function(b){if(!b.__tipProcessed){var d=this.paper,e="group"===this.type?d&&d._elementFromEvent(b):this,g=d.__tipStyle;e&&g&&e.__tipNeeded&&((b.originalEvent||b).FusionChartsPreventEvent&&v.preventTooltip(),v.hiding&&(v.hiding=clearTimeout(v.hiding)),
v.currentPaper!==d&&(d.__tipCp=d.canvas&&a(d.canvas.parentNode,!0)||{},v.restyle(d.__tipStyle),v.currentPaper=d),v.lastTarget=v.currentTarget,v.currentTarget=e,v.scatted=e.__tipScatted,v.onredraw.call(this,b),b.__tipProcessed=!0,t&&(v._oobready=!0,c(q||(q=u.body||u.getElementsByTagName("body")[0]),"touchstart",oa)))}};v.onredraw=function(a){a.__tipProcessed||(a.__tipProcessed=!0,(this.paper&&this.paper._elementFromEvent(a))===v.currentTarget&&(a=U(a),v.x=d(a.pageX||a.clientX+u.body.scrollLeft+u.documentElement.scrollLeft||
0),v.y=d(a.pageY||a.clientY+u.body.scrollTop+u.documentElement.scrollTop||0),v.redraw()))};v.onhide=function(a){a.__tipProcessed||(a.__tipProcessed=!0,(this.paper&&this.paper._elementFromEvent(a))===v.currentTarget&&(v.hiding=setTimeout(v.hide,200)))};v.redraw=function(){if(!v.prevented&&!v.blocked&&v.currentTarget&&v.currentTarget.__tipNeeded){var a=v.currentTarget,b=a.paper,c=v.textElement,d=v.containerStyle,e=v.style,h=a.__tipText,a=v.pointeroffset,n=b.__tipCp,k=u.documentElement||u.body,w=k.scrollLeft,
k=k.scrollTop,G=v.x,p=v.y,t,r=b.width,B=b.height,b=b.__tipConstrain;if(100>r||100>B)b=!1;v.hidden&&(v.containerStyle.top="-999em",v.show());h!==v.text&&(v.text=h,d.width=d.height="",c.innerHTML=h,e.whiteSpace="nowrap",h=g(e.pixelWidth||c.offsetWidth||0),t=g(e.pixelHeight||c.offsetHeight||0),(v.textWidthOverflow=G+h>n.left+r)?(d.width=(r>h?h+2*a:r-2*a||0)+"px",e.whiteSpace="normal"):d.width="",(v.textHeightOverflow=t>B)?(d.height=(B||0)-2*a+"px",e.whiteSpace="normal"):d.height="");h=g(e.pixelWidth||
c.offsetWidth||0);t=g(e.pixelHeight||c.offsetHeight||0);b?(v.textWidthOverflow?G=(G-h<n.left?n.left:G-h)-w:G+a+h>n.left-w+r-a&&(G=G-h-a),v.textHeightOverflow?p=n.top-k:p+a+t>n.top-k+B-a&&(p=p-t-1.5*a)):(w+L<G+a+h&&(G=G-h-a),k+l<p+a+t&&(p=p-t-1.5*a));d.left=(G+a||0)+"px";d.top=(p+a||0)+"px";v.hidden&&v.show()}};v.hide=function(){v.hiding&&(v.hiding=clearTimeout(v.hiding));v.containerStyle.display="none";v.hidden=!0;v.prevented=!1};v.show=function(){v.blocked||(v.hiding&&(v.hiding=clearTimeout(v.hiding)),
v.containerStyle.display="inline",v.hidden=!1)};v.preventTooltip=function(){v.prevented=!0};v.block=function(){v.blocked=!0;v.containerStyle.display="none"};v.unblock=function(a){v.blocked=!1;a&&(v.containerStyle.display=v.hidden&&"none"||"inline")};b.fn.tooltip=function(c,d,e){d&&(d=.4*(void 0===d.opacity?1:d.opacity),b.svg?c.boxShadow="1px 1px 3px rgba(64,64,64,"+d+")":c.filter='progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=135, Color="#404040", shadowOpacity="'+d/2+'")');this.__tipStyle=
new R(c);this.__tipCp=this.canvas&&a(this.canvas.parentNode,!0)||{};this.__tipConstrain=Boolean(e);return this};b.el.trackTooltip=function(a){var b=!!this.__tiptracking;if(void 0===a||(a=!!a)===b)return this;a?t?this.touchstart(v.onelement):(this.mouseover(v.onelement),this.mousemove(v.onredraw),this.mouseout(v.onhide)):t?this.untouchstart(v.onelement):(this.unmouseover(v.onelement),this.unmousemove(v.onredraw),this.unmouseout(v.onhide));this.__tiptracking=a;return this};b.el.tooltip=function(a,c,
d,e,g){v.setup();b.el.tooltip=function(a,b,c,d,e){if(v.element && !document.getElementById(v.element.id)){v.setup();}b=!1===a||void 0===a||""===a;this.__tipScatted=void 0===d?this.__tipScatted:!d;void 0===this.__tipScatted&&(this.__tipScatted=!0);null!==e&&(this.__tip_blocked=e);b^!this.__tipText&&(this.__tipNeeded=!b);this.__tipText=a;if(v.currentTarget===this&&a!==v.text&&!v.hidden)v[b?"hide":"redraw"]();return this};return b.el.tooltip.call(this,a,c,d,e,g)};e.core._setTooltipZIndex=function(a){a=parseInt(a,10);v&&!isNaN(a)&&(v.defaultContainerStyle.zIndex=a,v.containerStyle&&
(v.containerStyle.zIndex=a))}}]);
FusionCharts.register("module",["private","modules.renderer.js-smartlabel",function(){var e=this.hcLib,k=e.isIE,u=e.hasSVG,q=Math.max,D=this.window,b=/ HtmlUnit/.test(D.navigator.userAgent),N=D.document,J=/ AppleWebKit\//.test(D.navigator.userAgent),c=!!N.createElement("canvas").getContext,p=!(!c||!N.createElement("canvas").getContext("2d").measureText),D=function(){function a(a,b,c){if(!a||!a.length)return 0;var d=c.getWidthFunction(),e=0,g=0,g=d(a),h=g/a.length;c=b;e=Math.ceil(b/h);if(g<b)return a.length-
1;e>a.length&&(c=b-g,e=a.length);for(;0<c;)if(c=b-d(a.substr(0,e)),g=Math.floor(c/h))e+=g;else return e;for(;0>c;)if(c=b-d(a.substr(0,e)),g=Math.floor(c/h))e+=g;else break;return e}function t(a,b){b=5<b?b:5;this.maxContainers=20>b?b:20;this.last=this.first=null;this.containers={};this.length=0;this.rootNode=a;if(R){var c=N.createElementNS("http://www.w3.org/2000/svg","svg");c.setAttributeNS("http://www.w3.org/2000/svg","xlink","http://www.w3.org/1999/xlink");c.setAttributeNS("http://www.w3.org/2000/svg",
"height","0");c.setAttributeNS("http://www.w3.org/2000/svg","width","0");this.svgRoot=c;this.rootNode.appendChild(c)}}function D(a,c,e){if("undefined"!==typeof a&&"object"!==typeof a){this.id=a;var g;"string"===typeof c&&(c=N.getElementById(c));a:{if(c&&(c.offsetWidth||c.offsetHeight)){if(c.appendChild){c.appendChild(c=N.createElement("div"));c.className="fusioncharts-smartlabel-container";c.setAttribute("aria-hidden","true");c.setAttribute("role","presentation");a=c;break a}}else if((a=N.getElementsByTagName("body")[0])&&
a.appendChild){c=N.createElement("div");c.className="fusioncharts-smartlabel-container";c.setAttribute("aria-hidden","true");c.setAttribute("role","presentation");a.appendChild(c);a=c;break a}a=void 0}a=this.parentContainer=a;a.innerHTML="WgI";if(b||!a.offsetHeight&&!a.offsetWidth)R=!0;a.innerHTML="";for(g in d)a.style[g]=d[g];this.containerManager=new t(a,10);this.showNoEllipses=!e;this.init=!0;this.style={};this.setStyle()}}var F=e.supportedStyle,g={fontWeight:1,"font-weight":1,fontStyle:1,"font-style":1,
fontSize:1,"font-size":1,fontFamily:1,"font-family":1},d={position:"absolute",top:"-9999em",left:"-9999em",whiteSpace:"nowrap",padding:"0px",width:"1px",height:"1px",overflow:"hidden"},h=J?0:4.5,l=0,L=/\b_SmartLabel\b/,P=/\b_SmartLabelBR\b/,n=/(<[^<\>]+?\>)|(&(?:[a-z]+|#[0-9]+);|.)/ig,C=RegExp("\\<span[^\\>]+?_SmartLabel[^\\>]{0,}\\>(.*?)\\<\\/span\\>","ig"),w=/<[^>][^<]*[^>]+>/i,R=!1,v=0,oa=0,ea,$,W;N.getElementsByClassName?(ea="getElementsByClassName",$="_SmartLabel",W=!0):(ea="getElementsByTagName",
$="span",W=!1);t.prototype={get:function(a){var b=this.containers,c=this.length,d=this.maxContainers,e,g="",h="",h=this.getCanvasFont(a);for(e in F)void 0!==a[e]&&(g+=F[e]+":"+a[e]+";");if(!g)return!1;if(b[g])g=b[g],this.first!==g&&(g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),g.next=this.first,g.next.prev=g,this.last===g&&(this.last=g.prev),g.prev=null,this.first=g);else{if(c>=d)for(a=c-d+1;a--;)this.removeContainer(this.last);g=this.addContainer(g,h)}return g},getCanvasFont:function(a){var b,
d=[];if(!c||!p)return!1;for(b in g)void 0!==a[b]&&d.push(a[b]);return d.join(" ")},setMax:function(a){var b=this.length;a=5<a?a:5;a=20>a?a:20;if(a<b){for(b-=a;b--;)this.removeContainer(this.last);this.length=a}this.maxContainers=a},addContainer:function(a,b){var c,d;this.containers[a]=d={next:null,prev:null,node:null,ellipsesWidth:0,lineHeight:0,dotWidth:0,avgCharWidth:4,keyStr:a,canvasStr:b,charCache:{}};d.next=this.first;d.next&&(d.next.prev=d);this.first=d;this.last||(this.last=d);this.length+=
1;c=d.node=N.createElement("div");this.rootNode.appendChild(c);k&&!u?c.style.setAttribute("cssText",a):c.setAttribute("style",a);c.setAttribute("aria-hidden","true");c.setAttribute("role","presentation");c.style.display="inline-block";c.innerHTML="WgI";d.lineHeight=c.offsetHeight;d.avgCharWidth=c.offsetWidth/3;R?(c=d.svgText=N.createElementNS("http://www.w3.org/2000/svg","text"),c.setAttribute("style",a),this.svgRoot.appendChild(c),c.textContent="WgI",d.lineHeight=c.getBBox().height,d.avgCharWidth=
(c.getBBox().width-h)/3,c.textContent="...",d.ellipsesWidth=c.getBBox().width-h,c.textContent=".",d.dotWidth=c.getBBox().width-h):b?(c=d.canvas=N.createElement("canvas"),c.style.height=c.style.width="0px",this.rootNode.appendChild(c),d.context=c=c.getContext("2d"),c.font=b,d.ellipsesWidth=c.measureText("...").width,d.dotWidth=c.measureText(".").width):(c.innerHTML="...",d.ellipsesWidth=c.offsetWidth,c.innerHTML=".",d.dotWidth=c.offsetWidth,c.innerHTML="");return d},removeContainer:function(a){var b=
a.keyStr;b&&this.length&&a&&(--this.length,a.prev&&(a.prev.next=a.next),a.next&&(a.next.prev=a.prev),this.first===a&&(this.first=a.next),this.last===a&&(this.last=a.prev),a.node.parentNode.removeChild(a.node),a.canvas&&a.canvas.parentNode.removeChild(a.canvas),delete this.containers[b])},dispose:function(){var a,b=this.containers;this.maxContainers=null;for(a in b)this.removeContainer(b[a]);this.rootNode.parentNode.removeChild(this.rootNode);this.last=this.first=this.rootNode=null}};t.prototype.constructor=
t;D.prototype={dispose:function(){this.init&&(this.containerManager.dispose(),delete this.container,delete this.context,delete this.cache,delete this.containerManager,delete this.containerObj,delete this.id,delete this.style,delete this.parentContainer,delete this.showNoEllipses)},useEllipsesOnOverflow:function(a){this.init&&(this.showNoEllipses=!a)},getWidthFunction:function(){var a=this.context,b=this.container,c=this.containerObj.svgText;return c?function(a){var b;c.textContent=a;a=c.getBBox();
b=a.width-h;1>b&&(b=a.width);return b}:a?function(b){return a.measureText(b).width}:function(a){b.innerHTML=a;return b.offsetWidth}},getSmartText:function(b,c,d,e){if(!this.init)return!1;if(void 0===b||null===b)b="";var g={text:b,maxWidth:c,maxHeight:d,width:null,height:null,oriTextWidth:null,oriTextHeight:null,oriText:b,isTruncated:!1},h=!1,k,p,t=0,r,B,F,u=-1,D=h=-1;p=this.container;var J=this.context,U=0;F=0;var va,qa,Na;Na=[];var ha=0,Sa=this.showNoEllipses?"":"...";B=this.lineHeight;var ka,U=
[],u=k=-1;ka=function(a){a=a.replace(/^\s\s*/,"");for(var b=/\s/,c=a.length;b.test(a.charAt(--c)););return a.slice(0,c+1)};h=-1;qa=this.getWidthFunction();if(p){if(!R){p.innerHTML=b;g.oriTextWidth=h=p.offsetWidth;g.oriTextHeight=F=p.offsetHeight;if(F<=d&&h<=c)return g.width=g.oriTextWidth=h,g.height=g.oriTextHeight=F,g;if(B>d)return g.text="",g.width=g.oriTextWidth=0,g.height=g.oriTextHeight=0,g}b=ka(b).replace(/(\s+)/g," ");h=w.test(b);B=this.showNoEllipses?c:c-l;if(h){t=b.replace(n,"$2");b=b.replace(n,
'$1<span class="_SmartLabel">$2</span>');b=b.replace(/(<br\s*\/*\>)/g,'<span class="_SmartLabel _SmartLabelBR">$1</span>');p.innerHTML=b;ha=p[ea]($);J=0;for(qa=ha.length;J<qa;J+=1)if(b=ha[J],W||L.test(b.className))ka=b.innerHTML,""!==ka&&(" "===ka?u=U.length:"-"===ka&&(k=U.length),U.push({spaceIdx:u,dashIdx:k,elem:b}),Na.push(ka));ha=0;k=U.length;v=U[0].elem.offsetWidth;if(v>c)return g.text="",g.width=g.oriTextWidth=g.height=g.oriTextHeight=0,g;v>B&&!this.showNoEllipses&&(B=c-2*oa,B>v?Sa="..":(B=
c-oa,B>v?Sa=".":(B=0,Sa="")));Na=U[0].elem.offsetLeft;J=U[0].elem.offsetTop;if(e)for(;ha<k;ha+=1)b=U[ha].elem,qa=b.offsetLeft-Na+b.offsetWidth,qa>B&&(va||(va=ha),p.offsetWidth>c&&(r=ha,ha=k));else for(;ha<k;ha+=1)b=U[ha].elem,ka=b.offsetHeight+(b.offsetTop-J),qa=b.offsetLeft-Na+b.offsetWidth,e=null,qa>B?(va||(va=ha),qa>c&&(h=U[ha].spaceIdx,u=U[ha].dashIdx,h>D?(U[h].elem.innerHTML="<br/>",D=h):u>D?(U[u].elem.innerHTML=u===ha?"<br/>-":"-<br/>",D=u):b.parentNode.insertBefore(e=N.createElement("br"),
b),b.offsetHeight+b.offsetTop>d?(e?e.parentNode.removeChild(e):D===u?U[u].elem.innerHTML="-":U[h].elem.innerHTML=" ",r=ha,ha=k):va=null)):ka>d&&(r=ha,ha=k);if(r<k){g.isTruncated=!0;va=va?va:r;for(ha=k-1;ha>=va;--ha)b=U[ha].elem,b.parentNode.removeChild(b);for(;0<=ha;--ha)b=U[ha].elem,P.test(b.className)?b.parentNode.removeChild(b):ha=0}g.text=p.innerHTML.replace(C,"$1");g.isTruncated&&(g.text+=Sa,g.tooltext=t)}else{Na=b.split("");k=Na.length;p="";r=[];va=Na[0];this.cache[va]?v=this.cache[va].width:
(v=qa(va),this.cache[va]={width:v});if(B>v)r=b.substr(0,a(b,B,this)).split(""),ha=r.length;else{if(v>c)return g.text="",g.width=g.oriTextWidth=g.height=g.oriTextHeight=0,g;Sa&&(B=c-2*oa,B>v?Sa="..":(B=c-oa,B>v?Sa=".":(B=0,Sa="")))}U=qa(r.join(""));F=this.lineHeight;if(e){for(;ha<k;ha+=1)if(va=r[ha]=Na[ha],this.cache[va]?v=this.cache[va].width:(v=qa(va),this.cache[va]={width:v}),U+=v,U>B&&(p||(p=r.slice(0,-1).join("")),U>c))return g.text=ka(p)+Sa,g.tooltext=g.oriText,g.width=qa(g.text),g.height=this.lineHeight,
g;g.text=r.join("");g.width=U;g.height=this.lineHeight}else{for(;ha<k;ha+=1)if(va=r[ha]=Na[ha]," "!==va||J||(va="&nbsp;"),this.cache[va]?v=this.cache[va].width:(v=qa(va),this.cache[va]={width:v}),U+=v,U>B&&(p||(p=r.slice(0,-1).join("")),U>c)){h=b.substr(0,r.length).lastIndexOf(" ");u=b.substr(0,r.length).lastIndexOf("-");h>D?(U=qa(r.slice(D+1,h).join("")),r.splice(h,1,"<br/>"),D=h,e=h+1):u>D?(u===r.length-1?(U=qa(r.slice(D+1,h).join("")),r.splice(u,1,"<br/>-")):(U=qa(r.slice(D+1,h).join("")),r.splice(u,
1,"-<br/>")),D=u,e=u+1):(r.splice(r.length-1,1,"<br/>"+Na[ha]),h=r.length-2,U=qa(r.slice(D+1,h+1).join("")),D=h,e=ha);F+=this.lineHeight;if(F>d)return g.text=ka(p)+Sa,g.tooltext=g.oriText,g.width=c,g.height=F-this.lineHeight,g;t=q(t,U);p=null;va=a(b.substr(e),B,this);U=qa(b.substr(e,va||1));r.length<e+va&&(r=r.concat(b.substr(r.length,e+va-r.length).split("")),ha=r.length-1)}t=q(t,U);g.text=r.join("");g.width=t;g.height=F}return g}g.height=p.offsetHeight;g.width=p.offsetWidth}else g.error=Error("Body Tag Missing!");
return g},setStyle:function(a){if(!this.init)return!1;if(a!==this.style||this.styleNotSet){a||(a=this.style);var b=a,c=b.fontSize=b.fontSize||"12px";b.lineHeight=b.lineHeight||b["line-height"]||1.2*parseInt(c,10)+"px";this.style=a;(this.containerObj=a=this.containerManager.get(a))?(this.container=a.node,this.context=a.context,this.cache=a.charCache,this.lineHeight=a.lineHeight,l=a.ellipsesWidth,oa=a.dotWidth,this.styleNotSet=!1):this.styleNotSet=!0}},getTextSize:function(a,b,c){if(!this.init)return!1;
var d={text:a,width:null,height:null,oriTextWidth:null,oriTextHeight:null,isTruncated:!1},e=this.container;e&&(e.innerHTML=a,d.oriTextWidth=e.offsetWidth,d.oriTextHeight=e.offsetHeight,d.width=Math.min(d.oriTextWidth,b),d.height=Math.min(d.oriTextHeight,c),d.width<d.oriTextWidth||d.height<d.oriTextHeight)&&(d.isTruncated=!0);return d},getOriSize:function(a){if(!this.init)return!1;var b={text:a,width:null,height:null},c=this.container,d=this.getWidthFunction(),e=0;if(R){a=a.split(/(<br\s*\/*\>)/g);
c=a.length;for(b.height=this.lineHeight*c;c--;)e=q(e,d(a[c]));b.width=e}else c&&(c.innerHTML=a,b.width=c.offsetWidth,b.height=c.offsetHeight);return b}};return D.prototype.constructor=D}();e.SmartLabelManager=D}]);
FusionCharts.register("module",["private","modules.renderer.js-numberformatter",function(){var e=this,k=e.hcLib,u=k.pluckNumber,q=k.extend2,D=k.getValidValue,b=k.pluck,N=k.getFirstValue,J=Math.abs,c=Math.pow,p=Math.round,a=function(a){return a&&a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},t={},U=function(a){var b=[],c;for(c in a)b.push(c+"_"+a[c]);b.sort();return b.join(",")},F=function(a){var b={},c;for(c in a)b[c.toLowerCase()]=a[c];return b};k.NumberFormatter=function(){function e(a,b,d){var g;
if(0>=b)return p(a)+"";if(isNaN(b))return a+="",12<a.length&&-1!=a.indexOf(".")&&(b=12-a.split(".")[0].length,g=c(10,b),a=p(a*g)/g+""),a;g=c(10,b);a=p(a*g)/g+"";if(1==d)for(-1==a.indexOf(".")&&(a+=".0"),d=a.split("."),b-=d[1].length,d=1;d<=b;d++)a+="0";return a}function d(a,b,c,d,e){var g=Number(a),h="",k=!1,l="",p="",t=l=0;if(isNaN(g))return"";if(1E15<g)return g.toExponential(e?1:14);l=0;t=a.length;-1!=a.indexOf(".")&&(h=a.substring(a.indexOf(".")+1,a.length),t=a.indexOf("."));0>g&&(k=!0,l=1);l=
a.substring(l,t);a=l.length;e=d.length-1;g=d[e];if(a<g)p=l;else for(;a>=g;)p=(a-g?c:"")+l.substr(a-g,g)+p,a-=g,g=0>=--e?d[0]:d[e],a<g&&(p=l.substring(a,0)+p);""!=h&&(p=p+b+h);!0===k&&(p="-"+p);return p}var h,k={formatnumber:"1",formatnumberscale:"1",defaultnumberscale:"",numberscaleunit:["K","M"],numberscalevalue:[1E3,1E3],numberprefix:"",numbersuffix:"",decimals:"",forcedecimals:"0",yaxisvaluedecimals:"2",decimalseparator:".",thousandseparator:",",thousandseparatorposition:[3],indecimalseparator:"",
inthousandseparator:"",sformatnumber:"1",sformatnumberscale:"0",sdefaultnumberscale:"",snumberscaleunit:["K","M"],snumberscalevalue:[1E3,1E3],snumberprefix:"",snumbersuffix:"",sdecimals:"2",sforcedecimals:"0",syaxisvaluedecimals:"2",xFormatNumber:"0",xFormatNumberScale:"0",xDefaultNumberScale:"",xNumberScaleUnit:["K","M"],xNumberScaleValue:[1E3,1E3],xNumberPrefix:"",xNumberSuffix:""},t={mscombidy2d:{formatnumberscale:"1"}},F=function(c,d,e){var g,h,p,F,P,J,U,Ca,fa,la=d.name,Q=q({},k),ya,G,S,ba,r,
B,ga,Z,Da,T,xa;(p=t[la])&&(Q=q(Q,p));this.csConf=Q;this.chartAPI=d;D(c.numberscaleunit)&&(g=c.numberscaleunit.split(","));if(h=D(c.snumberscaleunit,c.numberscaleunit))h=h.split(",");if(p=D(c.xnumberscaleunit,c.numberscaleunit))p=p.split(",");if(F=D(c.ticknumberscaleunit,c.numberscaleunit))F=F.split(",");if(P=D(c.ynumberscaleunit,c.numberscaleunit))P=P.split(",");D(c.numberscalevalue)&&(J=c.numberscalevalue.split(","));if(G=D(c.snumberscalevalue,c.numberscalevalue))G=G.split(",");if(U=D(c.xnumberscalevalue,
c.numberscalevalue))U=U.split(",");if(Ca=D(c.ticknumberscalevalue,c.numberscalevalue))Ca=Ca.split(",");if(fa=D(c.ynumberscalevalue,c.numberscalevalue))fa=fa.split(",");if(D(c.thousandseparatorposition))for(ya=c.thousandseparatorposition.split(","),S=ya.length,r=k.thousandseparatorposition[0];S--;)ba=parseInt(ya[S],10),0>=ba&&(ba=r),r=ya[S]=ba;d||(d={});S=u(c.scalerecursively,0);ba=u(c.sscalerecursively,S);r=u(c.xscalerecursively,S);B=u(c.maxscalerecursion,-1);ga=u(c.smaxscalerecursion,B);Z=u(c.xmaxscalerecursion,
B);Da=D(c.scaleseparator," ");T=D(c.sscaleseparator,Da);xa=D(c.xscaleseparator,Da);B||(B=-1);this.baseConf=g={cacheStore:[],formatnumber:b(c.formatnumber,d.formatnumber,Q.formatnumber),formatnumberscale:b(c.formatnumberscale,d.formatnumberscale,Q.formatnumberscale),defaultnumberscale:N(c.defaultnumberscale,d.defaultnumberscale,Q.defaultnumberscale),numberscaleunit:b(g,d.numberscaleunit,Q.numberscaleunit).concat(),numberscalevalue:b(J,d.numberscalevalue,Q.numberscalevalue).concat(),numberprefix:N(c.numberprefix,
d.numberprefix,Q.numberprefix),numbersuffix:N(c.numbersuffix,d.numbersuffix,Q.numbersuffix),decimalprecision:parseInt("auto"===c.decimals?Q.decimalprecision:b(c.decimals,c.decimalprecision,d.decimals,Q.decimals,d.decimalprecision,Q.decimalprecision),10),forcedecimals:b(c.forcedecimals,d.forcedecimals,Q.forcedecimals),decimalseparator:b(c.decimalseparator,d.decimalseparator,Q.decimalseparator),thousandseparator:b(c.thousandseparator,d.thousandseparator,Q.thousandseparator),thousandseparatorposition:b(ya,
d.thousandseparatorposition,Q.thousandseparatorposition),indecimalseparator:N(c.indecimalseparator,d.indecimalseparator,Q.indecimalseparator),inthousandseparator:N(c.inthousandseparator,d.inthousandseparator,Q.inthousandseparator),scalerecursively:S,maxscalerecursion:B,scaleseparator:Da};D(g.inthousandseparator)&&(this.baseConf._REGinthousandseparator=new RegExp(a(g.inthousandseparator),"g"));D(g.indecimalseparator)&&(this.baseConf._REGindecimalseparator=new RegExp(a(g.indecimalseparator)));this.Y=
[];e||(e={cacheStore:[],formatnumber:g.formatnumber,formatnumberscale:g.formatnumberscale,defaultnumberscale:g.defaultnumberscale,numberscaleunit:g.numberscaleunit.concat(),numberscalevalue:g.numberscalevalue.concat(),numberprefix:g.numberprefix,numbersuffix:g.numbersuffix,decimalprecision:g.decimalprecision,forcedecimals:g.forcedecimals,decimalseparator:g.decimalseparator,thousandseparator:g.thousandseparator,thousandseparatorposition:g.thousandseparatorposition,indecimalseparator:g.indecimalseparator,
inthousandseparator:g.inthousandseparator,scalerecursively:S,maxscalerecursion:B,scaleseparator:Da},d.useScaleRecursively&&(e.numberscalevalue&&e.numberscalevalue.length)==(e.numberscaleunit&&e.numberscaleunit.length)||(e.scalerecursively=S=0),J={cacheStore:[],formatnumber:e.formatnumber,formatnumberscale:e.formatnumberscale,defaultnumberscale:e.defaultnumberscale,numberscaleunit:e.numberscaleunit.concat(),numberscalevalue:e.numberscalevalue.concat(),numberprefix:e.numberprefix,numbersuffix:e.numbersuffix,
decimalprecision:parseInt(b(c.yaxisvaluedecimals,e.decimalprecision,2),10),forcedecimals:b(c.forceyaxisvaluedecimals,e.forcedecimals),decimalseparator:e.decimalseparator,thousandseparator:e.thousandseparator,thousandseparatorposition:e.thousandseparatorposition.concat(),indecimalseparator:e.indecimalseparator,inthousandseparator:e.inthousandseparator,scalerecursively:S,maxscalerecursion:B,scaleseparator:Da},G={cacheStore:[],formatnumber:b(c.sformatnumber,d.sformatnumber,k.sformatnumber),formatnumberscale:b(c.sformatnumberscale,
d.sformatnumberscale,k.sformatnumberscale),defaultnumberscale:N(c.sdefaultnumberscale,d.sdefaultnumberscale,e.defaultnumberscale),numberscaleunit:b(h,d.snumberscaleunit,k.snumberscaleunit).concat(),numberscalevalue:b(G,d.snumberscalevalue,k.snumberscalevalue).concat(),numberprefix:N(c.snumberprefix,d.snumberprefix,k.snumberprefix),numbersuffix:N(c.snumbersuffix,d.snumbersuffix,k.snumbersuffix),decimalprecision:parseInt(b(c.syaxisvaluedecimals,c.sdecimals,c.decimals,d.sdecimals,k.sdecimals),10),forcedecimals:b(c.forcesyaxisvaluedecimals,
c.sforcedecimals,c.forcedecimals,d.sforcedecimals,k.sforcedecimals),decimalseparator:b(c.decimalseparator,d.decimalseparator,k.decimalseparator),thousandseparator:b(c.thousandseparator,d.thousandseparator,k.thousandseparator),thousandseparatorposition:e.thousandseparatorposition.concat(),indecimalseparator:b(c.indecimalseparator,d.indecimalseparator,k.indecimalseparator),inthousandseparator:b(c.inthousandseparator,d.inthousandseparator,k.inthousandseparator),scalerecursively:ba,maxscalerecursion:ga,
scaleseparator:T},h=q({},G),h.decimalprecision=parseInt(b(c.sdecimals,c.decimals,c.syaxisvaluedecimals,d.sdecimals,k.sdecimals),10),h.forcedecimals=b(c.sforcedecimals,c.forcedecimals,c.forcesyaxisvaluedecimals,d.sforcedecimals,k.sforcedecimals),h.cacheStore=[],d.useScaleRecursively&&(G.numberscalevalue&&G.numberscalevalue.length)==(G.numberscaleunit&&G.numberscaleunit.length)||(G.scalerecursively=ba=0),/^(bubble|scatter|selectscatter)$/.test(la)&&(J.formatnumber=b(c.yformatnumber,J.formatnumber),
J.formatnumberscale=b(c.yformatnumberscale,J.formatnumberscale),J.defaultnumberscale=N(c.ydefaultnumberscale,J.defaultnumberscale),J.numberscaleunit=b(P,J.numberscaleunit),J.numberscalevalue=b(fa,J.numberscalevalue),J.numberprefix=b(c.ynumberprefix,J.numberprefix),J.numbersuffix=b(c.ynumbersuffix,J.numbersuffix),e.formatnumber=b(c.yformatnumber,e.formatnumber),e.formatnumberscale=b(c.yformatnumberscale,e.formatnumberscale),e.defaultnumberscale=N(c.ydefaultnumberscale,e.defaultnumberscale),e.numberscaleunit=
b(c.ynumberscaleunit,e.numberscaleunit.concat()),e.numberscalevalue=b(c.ynumberscalevalue,e.numberscalevalue.concat()),e.numberprefix=b(c.ynumberprefix,e.numberprefix),e.numbersuffix=b(c.ynumbersuffix,e.numbersuffix)),/^(mscombidy2d|mscombidy3d)$/.test(la)&&(G.formatnumberscale=u(c.sformatnumberscale)),/^(pie2d|pie3d|doughnut2d|doughnut3d|marimekko|pareto2d|pareto3d)$/.test(la)&&(e.decimalprecision=b(c.decimals,"2")),S&&(e.numberscalevalue.push(1),e.numberscaleunit.unshift(e.defaultnumberscale),J.numberscalevalue.push(1),
J.numberscaleunit.unshift(J.defaultnumberscale)),ba&&(G.numberscalevalue.push(1),G.numberscaleunit.unshift(G.defaultnumberscale),h.numberscalevalue.push(1),h.numberscaleunit.unshift(h.defaultnumberscale)),this.Y[0]={yAxisLabelConf:J,dataLabelConf:e},this.Y[1]={yAxisLabelConf:G,dataLabelConf:h},this.paramLabels=e,this.param1=J,this.param2=G,this.paramLabels2=h);this.paramX={cacheStore:[],formatnumber:b(c.xformatnumber,g.formatnumber),formatnumberscale:b(c.xformatnumberscale,g.formatnumberscale),defaultnumberscale:N(c.xdefaultnumberscale,
g.defaultnumberscale),numberscaleunit:b(p,g.numberscaleunit.concat()),numberscalevalue:b(U,g.numberscalevalue.concat()),numberprefix:b(c.xnumberprefix,g.numberprefix),numbersuffix:b(c.xnumbersuffix,g.numbersuffix),decimalprecision:parseInt(b(c.xaxisvaluedecimals,c.xaxisvaluesdecimals,g.decimalprecision,2),10),forcedecimals:b(c.forcexaxisvaluedecimals,0),decimalseparator:g.decimalseparator,thousandseparator:g.thousandseparator,thousandseparatorposition:g.thousandseparatorposition.concat(),indecimalseparator:g.indecimalseparator,
inthousandseparator:g.inthousandseparator,scalerecursively:r,maxscalerecursion:Z,scaleseparator:xa};this.paramLegend=q(q({},g),{cacheStore:[],decimalprecision:parseInt(u(c.legendvaluedecimals,g.decimalprecision,2),10),forcedecimals:u(c.legendvalueforcedecimals,g.forcedecimals,0),formatnumberscale:b(c.legendvalueformatnumberscale,g.formatnumberscale),formatnumber:b(c.legendvalueformatnumber,g.formatnumber)});d.useScaleRecursively&&(this.paramX.numberscalevalue&&this.paramX.numberscalevalue.length)==
(this.paramX.numberscaleunit&&this.paramX.numberscaleunit.length)||(this.paramX.scalerecursively=r=0);r&&(this.paramX.numberscalevalue.push(1),this.paramX.numberscaleunit.unshift(this.paramX.defaultnumberscale));this.paramScale={cacheStore:[],formatnumber:b(c.tickformatnumber,g.formatnumber),formatnumberscale:b(c.tickformatnumberscale,g.formatnumberscale),defaultnumberscale:N(c.tickdefaultnumberscale,g.defaultnumberscale),numberscaleunit:b(F,g.numberscaleunit.concat()),numberscalevalue:b(Ca,g.numberscalevalue.concat()),
numberprefix:b(c.ticknumberprefix,g.numberprefix),numbersuffix:b(c.ticknumbersuffix,g.numbersuffix),decimalprecision:parseInt(b(c.tickvaluedecimals,g.decimalprecision,"2"),10),forcedecimals:b(c.forcetickvaluedecimals,g.forcedecimals,0),decimalseparator:g.decimalseparator,thousandseparator:g.thousandseparator,thousandseparatorposition:g.thousandseparatorposition.concat(),indecimalseparator:g.indecimalseparator,inthousandseparator:g.inthousandseparator,scalerecursively:S,maxscalerecursion:B,scaleseparator:Da};
S&&(this.paramScale.numberscalevalue.push(1),this.paramScale.numberscaleunit.unshift(this.paramScale.defaultnumberscale));this.timeConf={inputDateFormat:b(c.inputdateformat,c.dateformat,"mm/dd/yyyy"),outputDateFormat:b(c.outputdateformat,c.inputdateformat,c.dateformat,"mm/dd/yyyy"),days:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),months:"January February March April May June July August September October November December".split(" "),daySuffix:" st nd rd th th th th th th th th th th th th th th th th th st nd rd th th th th th th th st".split(" ")};
this.cleaneValueCacheStore={};this.percentStrCacheStore={}};F.prototype={cleaneValueCacheStore:{},percentStrCacheStore:{},dispose:function(){this.Y&&delete this.Y;this.cleaneValueCacheStore&&delete this.cleaneValueCacheStore;this.percentStrCacheStore&&delete this.percentStrCacheStore;this.paramLabels&&delete this.paramLabels;this.param1&&delete this.param1;this.param2&&delete this.param2;this.paramLabels2&&delete this.paramLabels2;this.csConf&&delete this.csConf;this.chartAPI&&delete this.chartAPI;
this.baseConf&&delete this.baseConf;this.timeConf&&delete this.timeConf;this.paramX&&delete this.paramX;this.paramScale&&delete this.paramScale},parseMLAxisConf:function(a,c){var d=this.baseConf,e=this.csConf,g=this.chartAPI,h=u(a.scalerecursively,d.scalerecursively),p=u(a.maxscalerecursion,d.maxscalerecursion),t=D(a.scaleseparator,d.scaleseparator),q,F,L,P,U,Q;c=u(c,this.Y.length);D(a.numberscaleunit)&&(q=a.numberscaleunit.split(","));D(a.numberscalevalue)&&(F=a.numberscalevalue.split(","));p||(p=
-1);if(D(a.thousandseparatorposition))for(L=a.thousandseparatorposition.split(","),P=L.length,Q=k.thousandseparatorposition[0];P--;)(U=u(J(L[P])))?Q=U:U=Q,L[P]=U;d={cacheStore:[],formatnumber:b(a.formatnumber,d.formatnumber),formatnumberscale:b(a.formatnumberscale,d.formatnumberscale),defaultnumberscale:N(a.defaultnumberscale,d.defaultnumberscale),numberscaleunit:b(q,d.numberscaleunit).concat(),numberscalevalue:b(F,d.numberscalevalue).concat(),numberprefix:N(a.numberprefix,d.numberprefix),numbersuffix:N(a.numbersuffix,
d.numbersuffix),forcedecimals:b(a.forcedecimals,d.forcedecimals),decimalprecision:parseInt("auto"===a.decimals?e.decimalprecision:b(a.decimals,d.decimalprecision),10),decimalseparator:b(a.decimalseparator,d.decimalseparator),thousandseparator:b(a.thousandseparator,d.thousandseparator),thousandseparatorposition:b(L,d.thousandseparatorposition),indecimalseparator:N(a.indecimalseparator,d.indecimalseparator),inthousandseparator:N(a.inthousandseparator,d.inthousandseparator),scalerecursively:h,maxscalerecursion:p,
scaleseparator:t};g.useScaleRecursively&&(d.numberscalevalue&&d.numberscalevalue.length)==(d.numberscaleunit&&d.numberscaleunit.length)||(d.scalerecursively=h=0);g={cacheStore:[],formatnumber:d.formatnumber,formatnumberscale:d.formatnumberscale,defaultnumberscale:d.defaultnumberscale,numberscaleunit:d.numberscaleunit.concat(),numberscalevalue:d.numberscalevalue.concat(),numberprefix:d.numberprefix,numbersuffix:d.numbersuffix,decimalprecision:parseInt(b(a.yaxisvaluedecimals,d.decimalprecision,2),10),
forcedecimals:b(a.forceyaxisvaluedecimals,d.forcedecimals),decimalseparator:d.decimalseparator,thousandseparator:d.thousandseparator,thousandseparatorposition:d.thousandseparatorposition.concat(),indecimalseparator:d.indecimalseparator,inthousandseparator:d.inthousandseparator,scalerecursively:h,maxscalerecursion:p,scaleseparator:t};h&&(d.numberscalevalue.push(1),d.numberscaleunit.unshift(d.defaultnumberscale),g.numberscalevalue.push(1),g.numberscaleunit.unshift(g.defaultnumberscale));this.Y[c]={dataLabelConf:d,
yAxisLabelConf:g}},percentValue:function(a){var b=this.percentStrCacheStore[a];void 0===b&&(b=isNaN(this.paramLabels.decimalprecision)?"2":this.paramLabels.decimalprecision,b=this.percentStrCacheStore[a]=d(e(a,b,this.paramLabels.forcedecimals),this.paramLabels.decimalseparator,this.paramLabels.thousandseparator,this.paramLabels.thousandseparatorposition)+"%");return b},getCleanValue:function(a,b){var c=this.cleaneValueCacheStore[a];if(void 0===c){var d=this.baseConf,c=a+"";d._REGinthousandseparator&&
(c=c.replace(d._REGinthousandseparator,""));d._REGindecimalseparator&&(c=c.replace(d._REGindecimalseparator,"."));c=parseFloat(c);c=isFinite(c)?c:NaN;this.cleaneValueCacheStore[a]=c=isNaN(c)?null:b?J(c):c}return c},dataLabels:function(a,b){var c=this.Y[b]||(b?this.Y[1]:this.Y[0]),d,c=c&&c.dataLabelConf||this.baseConf;d=c.cacheStore[a];void 0===d&&(d=c.cacheStore[a]=h(a,c));return d},yAxis:function(a,b){var c=this.Y[b]||(b?this.Y[1]:this.Y[0]),d,c=c&&c.yAxisLabelConf||this.baseConf;d=c.cacheStore[a];
void 0===d&&(d=c.cacheStore[a]=h(a,c,!0));return d},xAxis:function(a){var b=this.paramX.cacheStore[a];void 0===b&&(b=this.paramX.cacheStore[a]=h(a,this.paramX,!0));return b},sYAxis:function(a){var b=this.Y[1],c,b=b&&b.yAxisLabelConf||this.baseConf;c=b.cacheStore[a];void 0===c&&(c=b.cacheStore[a]=h(a,b));return c},scale:function(a){var b=this.paramScale.cacheStore[a];void 0===b&&(b=this.paramScale.cacheStore[a]=h(a,this.paramScale));return b},getCleanTime:function(a){var b;this.timeConf.inputDateFormat&&
Date.parseExact&&(b=Date.parseExact(a,this.timeConf.inputDateFormat));return b&&b.getTime()},legendValue:function(a){var b=this.paramLegend.cacheStore[a];void 0===b&&(b=this.paramLegend.cacheStore[a]=h(a,this.paramLegend));return b},legendPercentValue:function(a){var b=this.percentStrCacheStore[a],c=this.paramLegend;void 0===b&&(b=isNaN(c.decimalprecision)?"2":c.decimalprecision,b=this.percentStrCacheStore[a]=d(e(a,b,c.forcedecimals),c.decimalseparator,c.thousandseparator,c.thousandseparatorposition)+
"%");return b},getDateValue:function(a){var b,c,d;a&&!/\//.test(this.timeConf.inputDateFormat)&&(a=a.replace(new RegExp(this.timeConf.inputDateFormat.replace(/[a-z]/ig,"").slice(0,1),"g"),"/"));a=/^dd/.test(this.timeConf.inputDateFormat)&&a&&a.replace(/(\d{1,2})\/(\d{1,2})\/(\d{2,4})/,"$2/$1/$3")||a;b=new Date(a);c=b.getTime();!c&&a&&/\:/.test(a)&&(a=a.split(":"),c=u(a[0],0),d=u(a[1],0),a=u(a[2],0),c=23<c?24===c&&0===d&&0===a?c:23:c,d=59<d?59:d,a=59<a?59:a,b=new Date,b.setHours(c),b.setMinutes(d),
b.setSeconds(a),c=b.getTime());return{ms:c,date:b}},getFormattedDate:function(a,c){var d="object"===typeof a&&a||new Date(a),e=this.timeConf,g=b(c,e.outputDateFormat),h=d.getFullYear(),k=d.getMonth(),l=d.getDate(),p=d.getDay(),t=d.getMinutes(),q=d.getSeconds(),d=d.getHours(),t=9<t?""+t:"0"+t,q=9<q?""+q:"0"+q,d=9<d?""+d:"0"+d;g.match(/dnl/)&&(g=g.replace(/dnl/ig,e.days[p]));g.match(/dns/)&&(g=g.replace(/dns/ig,e.days[p]&&e.days[p].substr(0,3)));g.match(/dd/)&&(g=g.replace(/dd/ig,l));g.match(/mnl/)&&
(g=g.replace(/mnl/ig,e.months[k]));g.match(/mns/)&&(g=g.replace(/mns/ig,e.months[k]&&e.months[k].substr(0,3)));g.match(/mm/)&&(g=g.replace(/mm/ig,k+1));g.match(/yyyy/)&&(g=g.replace(/yyyy/ig,h));g.match(/yy/)&&(g=g.replace(/yy/ig,(h%1E3%100+"").replace(/^(\d)$/,"0$1")));g.match(/hh12/)&&(g=g.replace(/hh12/ig,d%12||12));g.match(/hh/)&&(g=g.replace(/hh/ig,d));g.match(/mn/)&&(g=g.replace(/mn/ig,t));g.match(/ss/)&&(g=g.replace(/ss/ig,q));g.match(/ampm/)&&(g=g.replace(/ampm/ig,12>d?"AM":"PM"));g.match(/ds/)&&
(g=g.replace(/ds/ig,e.daySuffix[l]));return g}};F.prototype.constructor=F;h=function(a,c,h){if(null!==a){a=Number(a);var k=a+"",l,p,t,q,F;l=1==c.formatnumberscale?c.defaultnumberscale:"";F=(F=k.split(".")[1])?F.length:c.forcedecimals?"2":"";if(1==c.formatnumberscale){k=a;p=c.numberscalevalue;a=c.numberscaleunit;l={};var L=c.defaultnumberscale;t=0;var D=[],J=[];if(c.scalerecursively){for(t=0;t<p.length;t++)if(q=u(p[t])||1E3,Math.abs(Number(k))>=q&&t<p.length-1)L=k%q,k=(k-L)/q,0!==L&&(D.push(L),J.push(a[t]));
else{D.push(k);J.push(a[t]);break}D.reverse();J.reverse();l.value=D;l.scale=J}else{if(p.length===a.length)for(t=0;t<p.length;t++)if(q=u(p[t])||1E3,Math.abs(Number(k))>=q)L=a[t]||"",k=Number(k)/q;else break;l.value=k;l.scale=L}p=l;a=k=p.value;l=p.scale}if(c.scalerecursively&&0!==c.formatnumberscale&&"0"!==c.formatnumberscale){h=p.value;p=p.scale;a=-1==c.maxscalerecursion?h.length:Math.min(h.length,c.maxscalerecursion);if(1==c.formatnumber)for(k="",q=0;q<a;q++)l=0===q?h[q]:Math.abs(h[q]),t=l+"",q==
a-1&&(t=e(l,b(c.decimalprecision,F),c.forcedecimals)),k=k+d(t,c.decimalseparator,c.thousandseparator,c.thousandseparatorposition)+p[q]+(q<a-1?c.scaleseparator:"");else for(k="",q=0;q<a;q++)k=k+(0===q?h[q]:Math.abs(h[q])+"")+p[q]+(q<a-1?c.scaleseparator:"");k=(c.numberprefix||"")+k+(c.numbersuffix||"")}else 1==c.formatnumber&&(k=e(a,b(c.decimalprecision,F),c.forcedecimals),k=d(k,c.decimalseparator,c.thousandseparator,c.thousandseparatorposition,h)),k=(c.numberprefix||"")+k+l+(c.numbersuffix||"");return k}};
return F}();e.extend(e.core,{formatNumber:function(a,b){b=b&&F(b)||{};var c=U(b),e;t[c]?e=t[c]:t[c]=e=new k.NumberFormatter(b,{useScaleRecursively:!0});return e.dataLabels(a)}},!1);e.extend(e.core,{formatNumber:function(a,b,c,l){c=c&&F(c)||{};var p=this.jsVars.instanceAPI||{},u=p.numberFormatter,n;""===U(c)?u?n=u:(u=this.getChartData(e.dataFormats.JSON,!0),u=u.data||{},u=u.chart||{},c=U(u),t[c]?n=t[c]:t[c]=n=new k.NumberFormatter(u,p)):(u=this.getChartData(e.dataFormats.JSON,!0),u=u.data||{},u=u.chart||
{},u=q(q({},u),c),c=U(u),t[c]?n=t[c]:t[c]=n=new k.NumberFormatter(u,p));switch((b&&b.toLowerCase?b:"").toLowerCase()){case "yaxisvalues":a=n.yAxis(a,l);break;case "xaxisvalues":a=n.xAxis(a);break;case "scale":a=n.scale(a);break;default:a=n.dataLabels(a,l)}return a}},!0)}]);
FusionCharts.register("module",["private","modules.renderer.js-dom",function(){var e=this.hcLib,k=this.window,u=k.document,q=e.extend2,D="ontouchstart"in k;(function(b){var e=function(){var b={},e;b.pointerdrag={start:["mousedown"],end:["mouseup"],onStart:["mousemove"],postHandlers:{},preHandlers:{}};b.pointerhover={start:["mouseover"],end:["mouseout"]};b.click={start:["click"]};b.escape={start:["keydown"],preHandlers:{start:function(a){a=a||k.event;return a.keyCode&&27===a.keyCode?!0:!1}}};D&&(e=
b.pointerdrag,e.start.push("touchstart"),e.end.push("touchend"),e.onStart.push("touchmove"),e.postHandlers.onStart=function(a){a.preventDefault?a.preventDefault():a.returnValue=!1});return b}(),J;J=q({},e);b.dem=new function(){var b={},e={},a=u.addEventListener?function(a,b,c){a.addEventListener(b,c,!1)}:function(a,b,c){a.attachEvent("on"+b,c)},t=u.removeEventListener?function(a,b,c){a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent("on"+b,c)},D=function(a,b,c){var e=[],g,p,t;t=J[b];c.start=
function(b){b=b||k.event;for(var e=t.onStart,g=t.end,h=[],p=[],n=e&&e.length||0;n--;)h.push(F(a,e[n],c,"onStart"));for(n=g&&g.length||0;n--;)p.push(F(a,g[n],c,"end"));c.startUn=c.startUn?c.startUn.concat(h):h;c.endUn=c.endUn?c.endUn.concat(p):p;c.state="start";c.closure(b)};c.onStart=function(a){a=a||k.event;c.state="on";if(c.gDef&&c.gDef.preHandlers&&"function"===typeof c.gDef.preHandlers.onStart)c.gDef.preHandlers.onStart(a);c.closure(a);if(c.gDef&&c.gDef.postHandlers&&"function"===typeof c.gDef.postHandlers.onStart)c.gDef.postHandlers.onStart(a)};
c.end=function(a){a=a||k.event;for(var b=c.startUn,d=c.endUn,e=b&&b.length||0;e--;)b[e]();delete c.startUn;c.startUn=[];for(e=d&&d.length||0;e--;)d[e]();delete c.endUn;c.endUn=[];c.state="end";c.closure(a)};if(t)for(b=t.start,p=b.length;p--;)(g=b[p])&&e.push(F(a,g,c,"start"));return e},F=function(b,c,e,g){g=g||"closure";a(b,c,e[g]);return function(){t(b,c,e[g])}},g=function(a){return function(b){b=b||k.event;a.handler.call(a.context||a.elem,{data:a.data,type:a.type,state:a.state,isGesture:a.isGesture,
target:b.target||b.srcElement,originalEvent:b})}};return{listen:function(a,h,k,t,q){var n=this;h="string"===typeof h?h.split(" "):h;var C=h.length,w=[],N=function(a,b,c){w.push(function(){n.unlisten(a,b,c)})},v,oa,ea,$,W;if(a.ownerDocument&&a.ownerDocument===u)for(;C--;)oa=h[C],$=Boolean(J[oa]),W="function"===typeof k?k:k[C],ea={handler:W,elem:a,type:oa,isGesture:$,gDef:$?J[oa]:null,data:t,context:q,start:[],end:[],links:{prev:null,next:null}},ea.closure=g(ea),$?((v=e[oa])||(v=e[oa]=[]),v.push(ea),
D(a,oa,ea)):((v=b[oa])||(v=b[oa]=[]),v.push(ea),F(a,oa,ea)),N(a,oa,W);else for(;C--;)oa=h[C],W="function"===typeof k?k:k[C],ea={handler:W,elem:a,type:oa,isGesture:$,data:t,context:q,start:[],end:[],links:{prev:null,next:null}},ea.closure=g(ea),(v=b[oa])||(v=b[oa]=[]),v.push(ea),F(a,oa,ea),N(a,oa,W);return{unlisten:function(){for(var a=w.length;a--;)w[a]();w.length=0;w=null}}},unlisten:function(a,g,k){var q,F=!1,n,u;if(Boolean(J[g]))for(n=(q=e[g])&&q.length||0;n--;){if(u=q[n],u.handler===k&&u.elem===
a){var F=a,w=void 0,D=void 0,v=void 0,w=void 0;if(w=J[g])for(w=w.start,v=w.length;v--;)(D=w[v])&&t(F,D,u.start);q.splice(n,1);F=!0}}else for(n=(q=b[g])&&q.length||0;n--;)u=q[n],u.handler===k&&u.elem===a&&(t(a,g,u.closure),q.splice(n,1),F=!0);return F},fire:function(a,e,g,k){var p;if(a.ownerDocument&&a.ownerDocument===u)u.createEvent?(p=u.createEvent("HTMLEvents"),p.initEvent(e,!0,!0),g&&(g.originalEvent?g.originalEvent=p:q(p,g)),"function"===typeof a[e]&&a[e].call(a),a.dispatchEvent(p)):(p=u.createEventObject(),
p.eventType=e,g&&(g.originalEvent?g.originalEvent=p:q(p,g)),"function"===typeof a[e]&&a[e].call(a),a.fireEvent("on"+e,p)),k&&!p.returnValue&&k(p);else for(k=(e=b[e])&&e.length||0;k--;)p=e[k],p.elem===a&&p.closure(g)}}}})(e||k);(function(b){function e(a,b){var c="";u.defaultView&&u.defaultView.getComputedStyle?c=u.defaultView.getComputedStyle(a,"").getPropertyValue(b):a.currentStyle&&(b=b.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()}),c=a.currentStyle[b]);c=parseInt(c,10);return isNaN(c)?
0:c}function D(b,c,e,g,d,h,k,q){var u=c/40,n=p[h||"linear"](g-e,u),J=0,w=function(){var c;J<u?(c=n[J],b.style[d]=e+c+q,a&&"opacity"===d&&(c=100*Number(c),b.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity="+c+")"),J+=1,setTimeout(w,40)):k&&k()};q=q||"";setTimeout(w,40)}var c={width:{suffix:"px"},height:{suffix:"px"},opacity:!0,top:{suffix:"px"},left:{suffix:"px"}},p={linear:function(a,b){for(var c=[],e=a/b,d=0;d<b;d+=1)c[d]=e*(d+1);return c}},a=/msie/i.test(k.navigator.userAgent)&&!k.opera;
b.danimate=q({animate:function(a,b,k,g,d){g={};var h={},l=function(){q+=1;q===p&&"function"===typeof d&&d()},p=0,q=0,n,u;if(40>k){for(u in b)a.style[u]=b[u];d&&d()}else for(u in b)c[u]&&(p+=1,g[u]=b[u],h[u]=e(a,u),n="object"===typeof c[u]&&c[u].suffix,D(a,k,h[u],g[u],u,"linear",l,n))}},{})})(e||k)}]);
FusionCharts.register("module",["private","modules.renderer.js-colormanager",function(){var e=this.hcLib,k=e.pluckNumber,u=e.graphics.getDarkColor,q=e.graphics.getLightColor,D="AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" "),b="8BBA00 F6BD0F FF654F AFD8F8 FDB398 CDC309 B1D0D2 FAD1B9 B8A79E D7CEA5 C4B3CE E9D3BE EFE9AD CEA7A2 B2D9BA".split(" "),N=e.defaultPaletteOptions={paletteColors:[D,
D,D,D,D],bgColor:["CBCBCB,E9E9E9","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["50,50","60,50","40,20","20,10","30,30"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:["","","","",""],canvasBorderColor:["545454","545454","415D6F","845001","68001B"],canvasBorderAlpha:[100,100,100,90,100],showShadow:[0,
1,1,1,1],divLineColor:["717170","7B7D6D","92CDD6","965B01","68001B"],divLineAlpha:[40,45,65,40,30],altHGridColor:["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"],altHGridAlpha:[50,35,10,20,15],altVGridColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],altVGridAlpha:[10,20,10,15,10],anchorBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["555555","60634E",
"025B6A","A15E01","68001B"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],legendBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],legendBorderColor:["545454","545454","415D6F","845001","D55979"],plotGradientColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],plotBorderColor:["333333","8A8A8A","FFFFFF","FFFFFF","FFFFFF"],plotFillColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],bgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],bgAlpha3D:["100",
"100","100","100","100"],bgAngle3D:[90,90,90,90,90],bgRatio3D:["","","","",""],canvasBgColor3D:["DDE3D5","D8D8D7","EEDFCA","CFD2D8","FEE8E0"],canvasBaseColor3D:["ACBB99","BCBCBD","C8A06C","96A4AF","FAC7BC"],divLineColor3D:["ACBB99","A4A4A4","BE9B6B","7C8995","D49B8B"],divLineAlpha3D:[100,100,100,100,100],legendBgColor3D:["F0F3ED","F3F3F3","F7F0E8","EEF0F2","FEF8F5"],legendBorderColor3D:["C6CFB8","C8C8C8","DFC29C","CFD5DA","FAD1C7"],toolTipbgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor3D:["49563A",
"666666","49351D","576373","681C09"],baseFontColor3D:["49563A","4A4A4A","49351D","48505A","681C09"],anchorBgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"]},D=e.colorManager=function(b,c){var p=b.chart,a=e.extend2({},N),t=c.defaultPaletteOptions||{},D;a||(a={});for(D in t)a[D]=t[D];a=this.paletteOptions=a;t=this.themeEnabled=p.palettethemecolor;this.paletteIndex=(0<p.palette&&6>p.palette?p.palette:k(c.paletteIndex,1))-1;this.iterator=0;this.paletteColors=a.paletteColors[this.themeEnabled?0:
this.paletteIndex];D=p.palettecolors;void 0!==D&&null!==D&&""!==p.palettecolors&&(this.paletteColors=p.palettecolors.split(/\s*\,\s*/));this.paletteLen=this.paletteColors.length;this.useFlatColors=k(p.useflatdataplotcolor,c.useFlatColor,0);t&&(this.paletteIndex=5,a.bgColor.push(q(t,35)+","+q(t,10)),a.bgAngle.push(270),a.bgRatio.push("0,100"),a.bgAlpha.push("50,50"),a.canvasBgColor.push("FFFFFF"),a.canvasBgAngle.push(0),a.canvasBgAlpha.push("100"),a.canvasBgRatio.push(""),a.canvasBorderColor.push(u(t,
80)),a.canvasBorderAlpha.push(100),a.showShadow.push(1),a.divLineColor.push(u(t,20)),a.divLineAlpha.push(40),a.altHGridColor.push(q(t,20)),a.altHGridAlpha.push(15),a.altVGridColor.push(q(t,80)),a.altVGridAlpha.push(10),a.anchorBgColor.push("FFFFFF"),a.toolTipBgColor.push("FFFFFF"),a.toolTipBorderColor.push(u(t,80)),a.baseFontColor.push(t.split&&t.split(",")[0]),a.borderColor.push(u(t,60)),a.borderAlpha.push(50),a.legendBgColor.push("FFFFFF"),a.legendBorderColor.push(u(t,80)),a.plotGradientColor.push("FFFFFF"),
a.plotBorderColor.push(u(t,85)),a.plotFillColor.push(u(t,85)),a.bgColor3D.push("FFFFFF"),a.bgAlpha3D.push("100"),a.bgAngle3D.push(90),a.bgRatio3D.push(""),a.canvasBgColor3D.push(q(t,20)),a.canvasBaseColor3D.push(q(t,40)),a.divLineColor3D.push(u(t,20)),a.divLineAlpha3D.push(40),a.legendBgColor3D.push("FFFFFF"),a.legendBorderColor3D.push(u(t,80)),a.toolTipbgColor3D.push("FFFFFF"),a.toolTipBorderColor3D.push(u(t,80)),a.baseFontColor3D.push(t.split&&t.split(",")[0]),a.anchorBgColor3D.push("FFFFFF"),a.tickColor&&
a.tickColor.push(u(t,90)),a.trendDarkColor&&a.trendDarkColor.push(u(t,90)),a.trendLightColor&&a.trendLightColor.push(q(t,a.TrendLightShadeOffset)),a.msgLogColor&&a.msgLogColor.push(q(t,80)),a.dialColor&&a.dialColor.push(u(t,95)+",FFFFFF,"+u(t,95)),a.dialBorderColor&&a.dialBorderColor.push(u(t,95)+",FFFFFF,"+u(t,95)),a.pivotColor&&a.pivotColor.push(q(t,95)+",FFFFFF,"+q(t,95)),a.pivotBorderColor&&a.pivotBorderColor.push(u(t,95)+",FFFFFF,"+u(t,95)),a.pointerBorderColor&&a.pointerBorderColor.push(u(t,
75)),a.pointerBgColor&&a.pointerBgColor.push(u(t,75)),a.thmBorderColor&&a.thmBorderColor.push(u(t,90)),a.thmFillColor&&a.thmFillColor.push(q(t,55)),a.cylFillColor&&a.cylFillColor.push(q(t,55)),a.periodColor&&a.periodColor.push(q(t,10)),a.winColor&&a.winColor.push("666666"),a.lossColor&&a.lossColor.push("CC0000"),a.drawColor&&a.drawColor.push("666666"),a.scorelessColor&&a.scorelessColor.push("FF0000"),a.gridColor&&a.gridColor.push(q(t,30)),a.categoryBgColor&&a.categoryBgColor.push(q(t,10)),a.dataTableBgColor&&
a.dataTableBgColor.push(q(t,10)),a.gridResizeBarColor&&a.gridResizeBarColor.push(u(t,90)),a.scrollBarColor&&a.scrollBarColor.push(q(t,50)))};D.prototype={getColor:function(b){return this.paletteOptions[b][this.paletteIndex]},getPlotColor:function(b){var c=this.paletteColors;b=this.useFlatColors?this.getColor("plotFillColor"):c[b%this.paletteLen];b||(this.iterator===this.paletteLen&&(this.iterator=0),b=c[this.iterator],this.iterator+=1);return b},parseColorMix:function(b,c){var e=[],a,k,D,F,g,d,h,
l,L,N;c=c.replace(/\s/g,"");c=c.toLowerCase();if(""===c||null===c||void 0===c)e=[b];else for(k=c.split(","),D=b.split(","),F=Math.max(k.length,D.length,1),g=k[0],d=D[0],L=/[\{\}]/ig,N=0;N<F;N++)h=(k[N]||g).replace(L,""),l=D[N]||d,"color"==h?e.push(l):"light"==h.substr(0,5)?(a=h.indexOf("-"),a=-1==a?1:h.substr(a+1,h.length-a),a=100-a,e.push(q(l,a))):"dark"==h.substr(0,4)?(a=h.indexOf("-"),a=-1==a?1:h.substr(a+1,h.length-a),a=100-a,e.push(u(l,a))):e.push(h);return e},parseAlphaList:function(b,c){var e=
b.split(","),a=[],t,q=100,F;for(F=0;F<c;F++)t=k(e[F]),void 0!==t&&null!==t&&(q=t),a[F]=q;return a.join()},parseRatioList:function(b,c){var e=b.split(","),a=[],k=0,q,F;for(F=0;F<c;F++)q=e[F],q=isNaN(q)||void 0===q?0:Math.abs(Number(q)),q=100<q?100:q,a[F]=q,k+=q;k=100<k?100:k;if(e.length<c)for(F=e.length;F<c;F++)a[F]=(100-k)/(c-e.length);a[-1]=0;return a.join()}};D.prototype.constructor=D;e.defaultGaugePaletteOptions={paletteColors:[b,b,b,b,b],bgColor:["CBCBCB,E9E9E9","CFD4BE,F3F5DD","C5DADD,EDFBFE",
"A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["50,50","60,50","40,20","20,10","30,30"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["555555","60634E","025B6A","A15E01","68001B"],tickColor:["333333","60634E","025B6A","A15E01","68001B"],trendDarkColor:["333333","60634E","025B6A","A15E01","68001B"],trendLightColor:["f1f1f1","F3F5DD",
"EDFBFE","FFF5E8","FFD1DD"],pointerBorderColor:["545454","60634E","415D6F","845001","68001B"],pointerBgColor:["545454","60634E","415D6F","845001","68001B"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:["","","","",""],canvasBorderColor:["545454","545454","415D6F","845001","68001B"],canvasBorderAlpha:[100,100,100,90,100],altHGridColor:["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"],altHGridAlpha:[50,
35,10,20,15],altVGridColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],altVGridAlpha:[10,20,10,15,10],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],legendBgColor:["ffffff","ffffff","ffffff","ffffff","ffffff"],legendBorderColor:["545454","545454","415D6F","845001","D55979"],plotFillColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],plotBorderColor:["999999","8A8A8A","6BA9B6","C1934D","FC819F"],msgLogColor:["717170","7B7D6D","92CDD6","965B01","68001B"],
TrendLightShadeOffset:30}}]);
FusionCharts.register("module",["private","modules.renderer.js-annotations",function(){var e=this,k=e.core,u=e.hcLib,q=e.window,D=/msie/i.test(q.navigator.userAgent)&&!q.opera,b=u.addEvent,N=u.removeEvent,J=u.hasTouch,c=q.Number,p=J?6:5,a="rgba(192,192,192,"+(D?.002:1E-6)+")",D=q.Math,t=D.min,U=D.max,F=D.sin,g=D.cos,d=D.PI,h=d/180,l=e.extend,L=u.pluck,P=u.pluckNumber,n=u.graphics.convertColor,C=u.getValidValue,w=u.parseUnsafeString,R=u.setImageDisplayMode,v=u.graphics.parseColor,oa=u.setLineHeight,
ea=u.getMouseCoordinate,$={style:{}},W=u.toRaphaelColor,pa=function(a,b){return{start:-b,end:-a,angle:a-b}},Ca=function(a,b,d,e,g){var h,k,l=0,p=0;k=void 0===b||null===b?1:b;var n;if(!a||!a.toString)return{value:d,hasDynamicMacros:!1};a=a.toString();a=a.toLowerCase().replace(/\s/g,"");if(d=a.match(/^[\+\-]?\d+(\.\d+)?|[\+\-]\d+(\.\d+)?/g)){for(b=0;b<d.length;b+=1)l+=Number(d[b])||0;l*=k}if(d=a.match(/^[\+\-]?(\$[a-z0-9\.]+)|[\+\-](\$[a-z0-9\.]+)/g))for(b=0;b<d.length;b+=1){h=d[b];var q=e,t=g,v=h.split("."),
w=void 0,F=void 0,u=0;for(k=void 0;w=v.shift();)switch(typeof(F=q[w])){case "object":q=F[w];break;case "function":F=F(v,t),"-"===h.charAt()&&(F*=-1),k=!0;default:u+=c(F)||0,v.length=0}h=u;k&&(n=!0);p+=h}if(d=a.match(/^[\+\-]?\$\d+(\.\d+)?|[\+\-]\$\d+(\.\d+)?/g))for(b=0;b<d.length;b+=1)p=p+Number(d[b].replace("$",""))||0;return{value:l+p,hasDynamicMacros:n}},fa=function(a,b,c){if(!b.removed){b=b.data("annotation");var d=b.getRenderer(),g=ea(d.container,c),h=g.annotationOptions=b.options,k=g.groupOptions=
b.group.options;g._shape=b;"id"in h&&(g.annotationId=h.id);"id"in k&&(g.groupId=k.id);e.raiseEvent(a,g,d.fusionCharts,c)}},la,Q,ya;Q=function(a,b,c,d,e){this.options=a;this.attrs={};this.css={};this.bounds={};this.shared=b;this.snaps=c||{};this.annotations=e;this.items=b=[];this._idstore=d;a.id&&(this._id=a.id,d[a.id]=this);if(a=a.items)for(d=0,c=a.length;d<c;d+=1)b.push(new ya(a[d],this))};l(Q.prototype,{scaleImageX:1,scaleImageY:1,scaleText:1,scaleValue:1,scaleValueComplement:1,scaleX:1,scaleY:1});
Q.prototype.setup=function(){var a=this.options,b=this.shared,c=this.getRenderer();c&&(this.isBelow=0!==P(a.showbelow,a.showbelowchart,b.showbelow),this.useTracker=!this.isBelow&&c.layers.tracker&&this.shared.useTracker,this.raiseOwnEvents=b.interactionevents)};Q.prototype.scale=function(){var a=this.options,b=this.shared,c=this.bounds,d=this.snaps,e=this.getRenderer(),g=b.rootxscale,h=b.rootyscale,k=c.xs=P(a.xscale,b.xscale,100)/100,l=c.ys=P(a.yscale,b.yscale,100)/100,p,n,q;e&&(this.scaleText*=l,
this.scaleImageX*=k,this.scaleImageY*=l,0!==P(a.autoscale,b.autoscale)&&(k=P(a.origw,b.origw),l=P(a.origh,b.origh),k=e.chartWidth/k,l=e.chartHeight/l,e=0!==P(a.constrainedscale,b.constrainedscale),p=k<l?k:l,n=e?p:k,q=e?p:l,this.scaleValue=Q.prototype.scaleValue*p,this.scaleValueComplement=Q.prototype.scaleValueComplement*(e?p:k<l?l:k),this.scaleX=Q.prototype.scaleX*n,this.scaleY=Q.prototype.scaleX*q,c.xs*=n,c.ys*=q,g*=n,h*=q,"1"==L(a.scaletext,b.scaletext)&&(this.scaleText=Q.prototype.scaleText*q),
"1"==L(a.scaleimages,b.scaleimages)&&(this.scaleImageX=Q.prototype.scaleImageX*n,this.scaleImageY=Q.prototype.scaleImageY*q)),c.x=Ca(L(a.x,a.xpos),g,0,d,this.isBelow).value+P(a.grpxshift,b.grpxshift,0),c.y=Ca(L(a.y,a.ypos),h,0,d,this.isBelow).value+P(a.grpyshift,b.grpyshift,0),this.xshift=P(a.xshift,b.xshift,0),this.yshift=P(a.yshift,b.yshift,0))};Q.prototype.draw=function(){var a=this.getRenderer(),b=this.options,c=this.bounds,d=this.items,e=a&&a.layers.dataset,g=this.wrapper;if(a){g||(this.wrapper=
g=a.paper.group("annotations"),e&&(this.isBelow?g.insertBefore(e):g.insertAfter(a.layers.datalabels||e)));this.wrapper.attr({x:0,y:0,visibility:P(b.visible,1)?"":"hidden"}).translate(c.x,c.y);b=0;for(c=d.length;b<c;b+=1)a=d[b],a.scale(!0),a.queueDraw?a.queue():(a.setup(),a.draw());return this}};Q.prototype.destroy=function(){for(var a=this.wrapper,b=this.items,c;c=b.shift();)c.destroy();a&&(this.wrapper=a.remove());this._idstore[this._id]===this&&delete this._idstore[this._id]};Q.prototype.addItem=
function(a,b){var c;this.items.push(c=new ya(a,this,this._idstore));b&&null!==this.getRenderer()&&(c.scale(),c.setup(),c.draw());return c};Q.prototype.removeItem=function(a){for(var b=this.items,c=b.length;c--;)if(a===b[c]._id)return b.splice(c,1)};Q.prototype.getRenderer=function(){return this.annotations&&this.annotations.getRenderer()||null};ya=function(a,b){var c=!1,d;this.options=a;this.group=b;this.args=[];this.attrs={};this.attrsTracker={};this.style={};this.bounds={};this._idstore=b._idstore;
a.id&&(this._id=a.id,b._idstore[a.id]=this);this.type=a.type&&a.type.toLowerCase&&a.type.toLowerCase();for(d in ya.eventNames)"function"===typeof a[d]&&(this[d]=a[d],c=!0);this.hasEvents=c;"function"===typeof a.onload&&(this.onload=a.onload)};e.extend(ya.prototype,{getAbsoluteBounds:function(){var a=this.bounds,b=a.x1,c=a.y1,d=a.x2,e=a.y2,g=t(b,d),h=t(c,e),b=U(b,d)-g,c=U(c,e)-h;return{x:g,width:b,y:h,height:c,r:a.r,unscaled:{width:b/a.xs,height:c/a.ys}}},queue:function(){this.group.annotations.shapesToDraw.push(this)},
scale:function(a){var b=this,c=b.group,d=c.bounds,e=b.bounds,g=b.options,h=c.snaps,k=L(g.x,g.xpos),l=L(g.y,g.ypos),p=L(g.tox,g.toxpos),n=L(g.toy,g.toypos),q=e.xs=d.xs,d=e.ys=d.ys,t=P(g.xshift,c.xshift,0),v=P(g.yshift,c.yshift,0),w;w=function(d,e,g,h){d=Ca(d,e,g,h,c.isBelow);d.hasDynamicMacros&&a&&(b.queueDraw=!0);return d.value};b.hasDimension=!0;b.hasDimensionX=!0;b.hasDimensionY=!0;e.x1=w(k,q,0,h)+t;void 0===p?(b.hasDimension=!1,b.hasDimensionX=!1,e.x2=e.x1):e.x2=w(p,q,0,h)+t;e.y1=w(l,d,0,h)+v;
void 0===n?(b.hasDimension=!1,b.hasDimensionY=!1,e.y2=e.y1):e.y2=w(n,d,0,h)+v;ya.angularShapeTypes[b.type]&&(e.angles=pa(w(g.startangle,1,0,h),w(g.endangle,1,360,h)));e.r=w(g.radius,c.scaleValue,0,h)},setup:function(){var b=this.options,c=this.group,d=c.options,e=this.attrs,g=this.style,h=c.scaleValue,k=P(d.fillalpha,d.alpha,100),p=this.fillAlpha=L(b.fillalpha,b.alpha,k),q=this.fillColor=L(b.fillcolor,b.color,d.color),t=this.fillPattern=L(b.fillpattern&&b.fillpattern.toLowerCase&&b.fillpattern.toLowerCase(),
d.fillpattern&&d.fillpattern.toLowerCase&&d.fillpattern.toLowerCase()),v=this.bordered=P(b.showborder,ya.borderedShapeTypes[this.type],!!C(b.bordercolor)),F=this.borderColor=L(b.bordercolor,d.bordercolor,q),k=this.borderAlpha=P(b.borderalpha,b.alpha,d.borderalpha,k),u=this.dashed=!!P(b.dashed,0),D=P(b.borderthickness,b.thickness,2)*h;this.link=L(b.link,d.link);this.shadow="1"==L(b.showshadow,d.showshadow);void 0===q&&(q=ya.borderedShapeTypes[this.type]&&"none"||"#ff0000",void 0===F&&(F="#ff0000"));
v&&D?(e.stroke=n(F,k),e["stroke-linecap"]="round",e["stroke-width"]=D,u&&(e["stroke-dasharray"]=[P(b.dashlen,5)*h,P(b.dashgap,3)*h])):e.stroke="none";this.fillOptions={gradientUnits:"objectBoundingBox",color:q,alpha:p,ratio:L(b.fillratio,d.fillratio),angle:360-P(b.fillangle,0),radialGradient:"radial"===t};this.link&&(g.cursor="pointer",g._cursor="hand");e.visibility=P(b.visible,1)?"":"hidden";this.useTracker=c.useTracker;this.toolText=w(L(b.tooltext,d.tooltext));if(this.useTracker||this.link||this.toolText)l(this.attrsTracker,
{stroke:a,fill:a}),this.link&&(this.attrsTracker.ishot=+new Date);this.raiseOwnEvents=c.raiseOwnEvents},draw:function(){var a=this.getRenderer(),c=this.type,d=this.attrs,e=this.style,g=a&&a.paper,h=ya.types[c]&&ya.types[c].call&&ya.types[c].call(this,a),k=ya.imageShapeTypes[h],l=ya.textShapeTypes[h],p=k||l||ya.trackerShapeTypes[h],n=this.link||this.toolText,q=this.wrapper,c=this.tracker,t=a&&a.layers.tracker||this.group.wrapper,v=!1,w=c||q,F=ya.eventNames,u=ya.ownEvents,D,L;if(a){if(h){if(q)if(q.elemType!==
h){if(this.ownEventsAttached){for(L in u)w["un"+L].apply(q,u[L]);this.ownEventsAttached=!1}q=q.remove()}else if(this.hasEvents)for(D in F)(L=this[D])&&L.eventAttached&&(N(w.node,F[D],L),L.eventAttached=!1);k||(d.fill=W(this.fillOptions));q?q.attr(d).css(e):(this.args.push(this.group.wrapper),q=this.wrapper=g[h].apply(g,this.args).attr(d).css(e),q.elemType=h,q.data("annotation",this),v=!0,this.args.pop());!this.shadow||this.shadowAdded||k||l?q.shadow(this.shadowAdded=!1):q.shadow(this.shadowAdded=
!0,U(this.borderAlpha,this.fillOptions.alpha)/100);n?this.useTracker&&(c||(this.args.push(t),c=this.tracker=p?g.rect(0,0,0,0,0,t):g[h].apply(g,this.args),this.args.pop()),c.attr(d).attr(this.attrsTracker)):c&&(c=c.remove());w=c||q;if(this.raiseOwnEvents&&!this.ownEventsAttached){for(L in u)w[L].apply(q,u[L]);this.ownEventsAttached=!0}this.link&&w.click(a.linkClickFN,this);this.toolText&&(w.tooltip(this.toolText||""),this.group.wrapper.trackTooltip(!0));if(this.hasEvents)for(D in F)(L=this[D])&&!L.eventAttached&&
(b(w.node,F[D],L,this),L.eventAttached=!0);k||(c&&p&&(a=q.getBBox(),c.attr({x:a.x,y:a.y,width:a.width,height:a.height})),v&&this.onload&&this.onload(d))}return this}},destroy:function(){var a=this.wrapper,b=this.tracker,c=b||a,d=ya.eventNames,e=ya.ownEvents,g,h;if(a){if(this.ownEventsAttached){for(h in e)c["un"+h].apply(a,e[h]);this.ownEventsAttached=!1}if(this.hasEvents)for(g in d)(h=this[g])&&h.eventAttached&&(N(c.node,d[g],h),h.eventAttached=!1);b&&(this.tracker=b.remove());this.wrapper=a.remove()}this._idstore[this._id]===
this&&delete this._idstore[this._id]},getRenderer:function(){return this.group&&this.group.getRenderer()||null}});e.extend(ya,{imageShapeTypes:{image:!0},angularShapeTypes:{circle:!0,arc:!0},textShapeTypes:{text:!0},trackerShapeTypes:{image:!0,text:!0},borderedShapeTypes:{path:!0,line:!0},eventNames:{onmouseover:J?"touchstart":"mouseover",onmouseout:"mouseout",onmousemove:J?"touchmove":"mousemove",onclick:"click"},ownEvents:{click:[function(a){fa("annotationClick",this,a)}],hover:[function(a){fa("annotationRollOver",
this,a)},function(a){fa("annotationRollOut",this,a)}]},textAlignOptions:{left:"start",right:"end",center:"middle"},textVerticalAlignOptions:{top:"bottom",middle:"middle",bottom:"top"},textRotationOptions:{0:"0",1:"270",right:"90",cw:"90",left:"270",ccw:"270"},types:{rectangle:function(){var a=this.args,b=this.attrs,c=this.getAbsoluteBounds(),d=.5*c.width;c.r>d&&(c.r=d);a[0]=b.x=c.x;a[1]=b.y=c.y;a[2]=b.width=c.width;a[3]=b.height=c.height;a[4]=b.r=c.r;return"rect"},line:function(){var a=this.attrs,
b=this.bounds;this.args[0]=a.path=["M",b.x1,b.y1,"L",b.x2,b.y2];1===a["stroke-width"]&&(a["shape-rendering"]="crisp");a["stroke-width"]<p&&(this.attrsTracker["stroke-width"]=p);this.bordered&&this.dashed&&(this.attrsTracker["stroke-dasharray"]="solid");return"path"},path:function(){var a=this.attrs,b=this.bounds;this.args[0]=a.path=this.options.path;a.transform=["T",b.x1,b.y1,"S",b.xs,b.ys,b.x1,b.y1];1===a["stroke-width"]&&(a["shape-rendering"]="crisp");return"path"},polygon:function(){var a=this.args,
b=this.attrs,c=this.options,d=this.bounds,e=this.group,g=e.snaps;a[0]=Ca(c.sides,1,5,g,e.isBelow).value;a[1]=d.x1;a[2]=d.y1;a[3]=d.r;a[4]=Ca(c.startangle,1,0,g,e.isBelow).value;a[5]=0;b.polypath=a.slice(0);return"polypath"},circle:function(a){var b=this.args,c=this.attrs,e=this.options,k=this.bounds,l=a.chartWidth,p=a.chartHeight,n=this.group.scaleValueComplement,q=this.group.snaps,t=k.angles,w=this.group;a=k.r;L(e.radius)||(k.r=l<p?l*k.xs:p*k.ys,k.r=a=.3*k.r);e=Ca(e.yradius,n,a,q,w.isBelow).value;
this.fillPattern||(this.fillOptions.radialGradient=!0,this.fillPattern="radial");"radial"===this.fillPattern&&(this.fillOptions.cx=this.fillOptions.cy=.5);l=t.angle%360;if(!l&&a===e)return b[0]=c.cx=k.x1,b[1]=c.cy=k.y1,b[2]=c.r=k.r,"circle";l||(t.start-=.001);p=t.start*h;l=t.end*h;t=t.angle*h;n=k.x1;q=k.y1;k=n+g(p)*a;p=q+F(p)*e;n+=g(l)*a;l=q+F(l)*e;b[0]=c.path=["M",k,p,"A",a,e,0,0,t>=d?0:1,n,l,"Z"];return"path"},arc:function(a){var b=this.options,c=this.args,d=this.attrs,e=this.bounds,g=a.chartWidth;
a=a.chartHeight;var k=this.group,l=k.scaleValue,p=e.angles;L(b.radius)||(e.r=g<a?g*e.xs:a*e.ys,e.r*=.3);e.innerR=Ca(b.innerradius,l,.8*e.r,this.group.snaps,k.isBelow).value;e.innerR>e.r&&(e.innerR+=e.r,e.r=e.innerR-e.r,e.innerR-=e.r);this.fillPattern||(this.fillOptions.radialGradient=!0,this.fillPattern="radial");"radial"===this.fillPattern&&(this.fillOptions.cx=this.fillOptions.cy=.5);c[0]=e.x1;c[1]=e.y1;c[2]=e.r;c[3]=e.innerR;c[4]=p.start*h;c[5]=p.end*h;d.ringpath=c.slice(0);return"ringpath"},text:function(a){var b=
this.args,c=this.style,d=this.attrs,e=this.group,g=this.bounds,h=this.options,k=this.getAbsoluteBounds(),p=L(h.align,e.options.textalign,"center").toLowerCase(),n=L(h.valign,e.options.textvalign,"middle").toLowerCase(),q=w(L(h.text,h.label)),t=a.logic.smartLabel,F=P(h.wrap,e.options.wraptext,1),u,D,J=L(h.rotatetext,e.options.rotatetext,"0").toLowerCase(),J=ya.textRotationOptions[J],C="0"!==J?"y":"x",N=a.options.orphanStyles;a=l({},N.defaultStyle.style||{});N=e.id&&N[e.id.toLowerCase()]||$;a=l(a,N.style);
var N=parseFloat(a.fontSize),R=L(h.font,e.options.font,a.fontFamily),e=P(h.fontsize,e.options.fontsize,N)*e.scaleText;F&&(u=P(h.wrapwidth,this.hasDimensionX?k.width/g.xs:void 0),D=P(h.wrapheight,this.hasDimensionY?k.height/g.ys:void 0),u&&(u*=g.xs),D&&(D*=g.ys));c.fontFamily=R;c.fontWeight=P(h.bold,h.isbold,0)?"bold":"normal";P(h.italic,h.isitalic,0)&&(c.fontStyle="italic");h.bgcolor&&(!d["text-bound"]&&(d["text-bound"]=[]),d["text-bound"][0]=v(h.bgcolor));h.bordercolor&&(!d["text-bound"]&&(d["text-bound"]=
[]),d["text-bound"][1]=v(h.bordercolor),d["text-bound"][2]=P(h.borderthickness,1),d["text-bound"][3]=P(h.padding,1));h.fontcolor&&(d.fill=v(h.fontcolor),this.fillOptions&&(this.fillOptions.color=d.fill));c.fontSize=e+"px";e===N?c.lineHeight=a.lineHeight:oa(c);d["text-anchor"]=ya.textAlignOptions[p]||ya.textAlignOptions.center;t.setStyle(c);c=t.getSmartText(q,u,D,!1);d["vertical-align"]=ya.textVerticalAlignOptions[n]||ya.textVerticalAlignOptions.middle;d["text-anchor"]===ya.textAlignOptions.left?k[C]+=
P(h.leftmargin,0):d["text-anchor"]===ya.textAlignOptions.center&&(k[C]+=.5*P(h.leftmargin,0));"0"!==J&&(d.rotation=[parseFloat(J),k.x,k.y]);b[0]=d.x=k.x;b[1]=d.y=k.y;b[2]=d.text=c.text;c.tooltext&&(d.title=c.tooltext);delete d.stroke;delete d["stroke-weight"];return"text"},image:function(a){var b=this,c=b.style,d=a.chartWidth,e=a.chartHeight;a=b.options;var g=b.attrs,h=b.args,k=C(a.url),p=b.group.scaleImageX*L(Number(a.xscale),100)/100,n=b.group.scaleImageY*L(Number(a.yscale),100)/100,t=b.getAbsoluteBounds(),
w={width:1,height:1},v;if(!k)return h[0]=g.x=t.x,h[1]=g.y=t.y,h[2]=g.width=t.width,h[3]=g.height=t.height,h[4]=g.r=t.r,"rect";v=new q.Image;v.onload=function(){w=R("none","top","left",100,0,d,e,v);delete w.x;delete w.y;w=l(w,{width:(b.hasDimensionX?t.unscaled.width:w.width)*p,height:(b.hasDimensionY?t.unscaled.height:w.height)*n});setTimeout(function(){var a,d,e;if(a=b.wrapper){a.attr(w);if(d=b.tracker)e=a.getBBox(),d.attr({x:e.x,y:e.y,width:e.width,height:e.height});a.css({opacity:c.opacity=U(P(b.fillAlpha,
b.borderAlpha),b.borderAlpha)/100})}b.onload&&b.onload(w)},0)};v.src=k;h[0]=g.src=k;h[1]=g.x=t.x;h[2]=g.y=t.y;h[3]=g.width=(b.hasDimensionX?t.unscaled.width:w.width)*p;h[4]=g.height=(b.hasDimensionY?t.unscaled.height:w.height)*n;c.opacity=U(P(b.fillAlpha,b.borderAlpha),b.borderAlpha)/100;delete g.stroke;delete g.fill;delete g["stroke-linecap"];return"image"}}});la=function(){this.groups=[];this._idstore={};this._options={}};u.Annotations=la;e.extend(la.prototype,{reset:function(a,b,c){var d=this.groups,
e;this.clear();if(c){e={};for(var g in c)switch(typeof c[g]){case "object":case "function":e["-$"+g]=e["$"+g]=e["+$"+g]=c[g];break;default:e["$"+g]=e["+$"+g]=c[g],e["-$"+g]=-1*c[g]}e=this._literals=e}b&&(this._options=b);if(a&&a.groups&&d)for(c=0;c<a.groups.length;c+=1)d.push(new Q(a.groups[c],b,e,this._idstore,this))},getRenderer:function(){return this._renderer},addGroup:function(a){var b=this.getRenderer();this.groups.push(a=new Q(a,this._options,this._literals,this._idstore,this));b&&(a.setup(),
a.scale(),a.draw());return a},addItem:function(a,b,c){var d,g=this.getRenderer();"string"===typeof a?d=this._idstore[a]:(c=b,b=a);if(d&&d.addItem){if(!g&&c){e.raiseWarning(this,"04031411430","run","Annotations~addItem()","Cannot draw the shapeif the group has not been drawn. Use Annotations~draw() to draw the group and pass the renderer to it.");return}a=d.addItem(b,c)}else a=this.addGroup({}).addItem(b,c);return a},draw:function(a){var b=this.groups,c,d;if(b&&(this._renderer=a||this._renderer))for(c=
0,d=b.length;c<d;c++)a=b[c],a.setup(),a.scale(),a.draw()},clear:function(){var a=this.groups,b;if(a){for(;b=a.shift();)b.destroy();this.shapesToDraw=[]}},dispose:function(){var a;this.disposing=!0;this.clear();for(a in this)delete this[a];this.disposed=!0},hide:function(a){if(a=this._idstore[a])return a.attrs.visibility="hidden",a.wrapper&&a.wrapper.hide(),a},show:function(a){if(a=this._idstore[a])return a.attrs.visibility="",a.wrapper&&a.wrapper.show(),a},update:function(a,b,c){a=this._idstore[a];
var d;if(a&&b){if("object"===typeof b)for(d in b.id&&delete b.id,b.type&&delete b.type,b)a.options[(d+"").toLowerCase()]=b[d]+"";else a.options[(b+"").toLowerCase()]=c+"";a.wrapper&&(a.scale(),a.setup(),a.draw());return a}},destroy:function(a){var b=this._idstore[a],c=b.group;b&&"function"===typeof b.destroy&&(c&&c.removeItem(a),b.destroy())},shapesToDraw:[]});e.core.addEventListener("beforeinitialize",function(a){"javascript"===a.sender.options.renderer&&(a.sender.annotations=new la)});e.core.addEventListener("disposed",
function(a){a.sender.annotations&&a.sender.annotations.dispose()});e.addEventListener("internal.animationComplete",function(a){var b=(a=a.sender.annotations)&&a.shapesToDraw,c=b&&b.length,d,e;if(c){for(e=0;e<c;e++)d=b[e],d.queueDraw=!1,d.scale(),d.setup(),d.draw();a.shapesToDraw=[]}});k.addEventListener("rendered",function(a,b){if("javascript"===b.renderer){var c=a.sender,d=c.jsVars||{},e=d.instanceAPI;d.hcObj&&e&&e.drawAnnotations?(c.showAnnotation||(c.showAnnotation=function(){c.annotations.show.apply(c.annotations,
arguments)}),c.hideAnnotation||(c.hideAnnotation=function(){c.annotations.hide.apply(c.annotations,arguments)})):(delete c.showAnnotation,delete c.hideAnnotation)}})}]);
FusionCharts.register("module",["private","modules.renderer.js-base",function(){var e=this,k=e.hcLib,u=k.Raphael,q=e.window,D=q.document,b=k.BLANKSTRING,N=k.createTrendLine,J="https:"===q.location.protocol?"https://export.api3.fusioncharts.com/":"http://export.api3.fusioncharts.com/",c=k.pluck,p=k.getValidValue,a=k.pluckNumber,t=k.getFirstValue,U=k.getDefinedColor,F=k.parseUnsafeString,g=k.FC_CONFIG_STRING,d=k.extend2,h=k.getDashStyle,l=k.parseTooltext,L=k.toPrecision,P=k.regex.dropHash,n=k.HASHSTRING,
C=k.getSentenceCase,w=k.addEvent,R=function(a){return void 0!==a&&null!==a},v=q.Math,oa=k.TOUCH_THRESHOLD_PIXELS,ea=k.CLICK_THRESHOLD_PIXELS,$=v.min,W=v.max,pa=v.abs,Ca=v.ceil,fa=v.floor,la=v.log,Q=v.pow,ya=v.sqrt,G=v.round,S=k.graphics.getColumnColor,ba=k.getFirstColor,r=k.setLineHeight,B=k.pluckFontSize,ga=k.getFirstAlpha,Z=k.graphics.getDarkColor,Da=k.graphics.getLightColor,T=k.graphics.convertColor,xa=k.COLOR_TRANSPARENT,va=k.POSITION_CENTER,qa=k.POSITION_TOP,Na=k.POSITION_BOTTOM,ha=k.POSITION_RIGHT,
Sa=k.POSITION_LEFT,ka=k.parsexAxisStyles,sa=k.chartAPI,Ra=k.graphics.mapSymbolName,hb=sa.singleseries,La=sa.multiseries,za=k.COMMASTRING,ab=k.STRINGUNDEFINED,Ea=k.ZEROSTRING,db=k.ONESTRING,$a=k.HUNDREDSTRING,Ga=k.PXSTRING,Xb=k.COMMASPACE,Kb=q.navigator.userAgent.match(/(iPad|iPhone|iPod)/g),Ub={left:"start",right:"end",center:"middle"},kb=k.BLANKSTRINGPLACEHOLDER,nb=k.BGRATIOSTRING,gb=k.COLOR_WHITE,m=k.TESTSTR,M=k.graphics.getAngle,E=k.axisLabelAdder,K=k.falseFN,V=k.NumberFormatter,Y=k.getLinkAction,
da=k.getAxisLimits,ja=k.createDialog,na=function(a,b){return 0<a?la(a)/la(b||10):null},Xa=k.hasTouch=void 0!==D.documentElement.ontouchstart,ca=k.fireEvent=function(a,b,c,d){k.dem.fire(a,b,c,d)},Va={1:"bold",0:"normal"},Ka={1:"italic",0:"normal"},ra={1:"underline",0:"none"},ta={font:function(a,b){b.style.fontFamily=a},size:function(a,b){a&&(b.style.fontSize=B(a)+Ga)},color:function(a,c,d){c.style.color=a&&a.replace&&a.replace(P,n)||b;d&&(c.color=c.style.color)},bgcolor:function(a,c){c.style.backgroundColor=
a&&a.replace&&a.replace(P,n)||b},bordercolor:function(a,c){c.style.border="1px solid";c.style.borderColor=a&&a.replace&&a.replace(P,n)||b},ishtml:b,leftmargin:function(b,c){c.style.marginLeft=a(b,0)+Ga},letterspacing:function(b,c){c.style.letterSpacing=a(b,0)+Ga},bold:function(a,b){b.style.fontWeight=Va[a]||""},italic:function(a,b){b.style.fontStyle=Ka[a]||""},underline:function(a,b){b.style.textDecoration=ra[a]||""}},mb=k.chartPaletteStr={chart2D:{bgColor:"bgColor",bgAlpha:"bgAlpha",bgAngle:"bgAngle",
bgRatio:"bgRatio",canvasBgColor:"canvasBgColor",canvasBaseColor:"canvasBaseColor",divLineColor:"divLineColor",legendBgColor:"legendBgColor",legendBorderColor:"legendBorderColor",toolTipbgColor:"toolTipbgColor",toolTipBorderColor:"toolTipBorderColor",baseFontColor:"baseFontColor",anchorBgColor:"anchorBgColor"},chart3D:{bgColor:"bgColor3D",bgAlpha:"bgAlpha3D",bgAngle:"bgAngle3D",bgRatio:"bgRatio3D",canvasBgColor:"canvasBgColor3D",canvasBaseColor:"canvasBaseColor3D",divLineColor:"divLineColor3D",divLineAlpha:"divLineAlpha3D",
legendBgColor:"legendBgColor3D",legendBorderColor:"legendBorderColor3D",toolTipbgColor:"toolTipbgColor3D",toolTipBorderColor:"toolTipBorderColor3D",baseFontColor:"baseFontColor3D",anchorBgColor:"anchorBgColor3D"}},Ha=function(){var a={},b,c=function(){var d,f,g,m,h=0,k,E,l=parseInt(e.core.options.resizeTrackingInterval,10)||300,p;for(d in a)h+=1,f=a[d],g=f.jsVars,k=f.ref,!f.disposed&&(m=k&&k.parentNode)&&(E=k.style)&&(/\%/g.test(E.width)||/\%/g.test(E.height))?(k=m.offsetWidth,p=m.offsetHeight,!g.resizeLocked&&
(k&&g._containerOffsetW!==k||p&&g._containerOffsetH!==p)&&(f.resizeTo&&f.resizeTo(),g._containerOffsetW=k,g._containerOffsetH=p)):(delete a[d],--h);b=h?setTimeout(c,l):clearTimeout(b)};return function(d,f){var g=d.jsVars,m=f||d.ref&&d.ref.parentNode||{};g._containerOffsetW=m.parentNode.offsetWidth;g._containerOffsetH=m.parentNode.offsetHeight;a[d.id]=d;b||(b=setTimeout(c,parseInt(e.core.options.resizeTrackingInterval,10)||300))}}(),ma={getExternalInterfaceMethods:function(){var a=sa[this.jsVars.type],
a=a&&a.eiMethods,b="saveAsImage,print,exportChart,getXML,hasRendered,signature,cancelExport,getSVGString,lockResize,showChartMessage,",c;if("string"===typeof a)b+=a+za;else if(void 0!==a||null!==a)for(c in a)b+=c+za;return b.substr(0,b.length-1)},drawOverlayButton:function(a){var b=this.jsVars,c=b.overlayButton,d,f;if(a&&a.show){c||(c=b.overlayButton=D.createElement("span"),k.dem.listen(c,"click",function(){e.raiseEvent("OverlayButtonClick",a,b.fcObj)}));for(d=a.message?a.message:"Back";c.firstChild;)c.removeChild(c.firstChild);
c.appendChild(D.createTextNode(d));b.overlayButtonMessage=d;d={border:"1px solid "+(a.borderColor?a.borderColor.replace(P,n):"#7f8975"),backgroundColor:a.bgColor?a.bgColor.replace(P,n):"#edefec",fontFamily:a.font?a.font:"Verdana,sans",color:"#"+a.fontColor?a.fontColor:"49563a",fontSize:(a.fontSize?a.fontSize:"10")+Ga,padding:(a.padding?a.padding:"3")+Ga,fontWeight:0===parseInt(a.bold,10)?"normal":"bold",position:"absolute",top:"0",right:"0",_cursor:"hand",cursor:"pointer"};for(f in d)c.style[f]=d[f];
b.hcObj.container.appendChild(c);b.overlayButtonActive=!0}else c&&(b.overlayButton=c.parentNode.removeChild(c),b.overlayButtonActive=!1,delete b.overlayButtonMessage)},print:function(a){return this.jsVars.hcObj&&this.jsVars.hcObj.hasRendered&&this.jsVars.hcObj.print(a)},exportChart:function(a){var b=this.jsVars.hcObj;return b&&b.options&&b.options.exporting&&b.options.exporting.enabled?b.exportChart(a):!1},getSVGString:function(){return this.jsVars&&this.jsVars.hcObj&&this.jsVars.hcObj.paper&&this.jsVars.hcObj.paper.toSVG()},
resize:function(){var a=this.jsVars,b=a.container,c=a.hcObj;c&&(c&&c.destroy&&c.destroy(),k.createChart(a.fcObj,b,a.type,void 0,void 0,!1,!0),delete a.isResizing)},lockResize:function(a){return"boolean"!==typeof a?!!this.jsVars.resizeLocked:this.jsVars.resizeLocked=a},showChartMessage:function(a,b,c){var d=this.jsVars,f=d.hcObj,e=d.fcObj,g=e.options;d.msgStore[a]&&(a=d.msgStore[a]);b&&f&&f.hasRendered?a?f.showMessage(a,c):f.hideLoading():(f&&f.destroy&&f.destroy(),e._chartMessageImageStyle={imageHAlign:g.baseChartMessageImageHAlign,
imageVAlign:g.baseChartMessageImageVAlign,imageAlpha:g.baseChartMessageImageAlpha,imageScale:g.baseChartMessageImageScale},e._chartMessageStyle={color:g.baseChartMessageColor,fontFamily:g.baseChartMessageFont,fontSize:g.baseChartMessageFontSize},k.createChart(d.fcObj,d.container,d.type,void 0,a));return a},signature:function(){return"FusionCharts/3.4.0 (XT)"}},Ma=k.HCstub=function(c,d,e,g){c=c.chart;var f=a(c.showborder,1)?a(c.borderthickness,1):0,m=a(c.charttopmargin,g.charttopmargin,15)+f,h=a(c.chartrightmargin,
g.chartrightmargin,15)+f,H=a(c.chartbottommargin,g.chartbottommargin,15)+f,f=a(c.chartleftmargin,g.chartleftmargin,15)+f,E=m+H,l=f+h;e*=.7;d*=.7;E>e&&(m-=(E-e)*m/E,H-=(E-e)*H/E);l>d&&(f-=(l-d)*f/l,h-=(l-d)*h/l);d={_FCconf:{0:{stack:{}},1:{stack:{}},x:{stack:{}},oriCatTmp:[],isSpline:-1!==g.chartInstance.options.chartType.search(/spline/i),noWrap:!1,marginLeftExtraSpace:0,marginRightExtraSpace:0,marginBottomExtraSpace:0,marginTopExtraSpace:0,marimekkoTotal:0},chart:{alignTicks:!1,ignoreHiddenSeries:!1,
events:{},reflow:!1,spacingTop:m,spacingRight:h,spacingBottom:H,spacingLeft:f,marginTop:m,marginRight:h,marginBottom:H,marginLeft:f,borderRadius:0,plotBackgroundColor:"#FFFFFF",textDirection:"1"===c.hasrtltext?"rtl":"",style:{},animation:a(c.defaultanimation,c.animation,1)?{duration:500*a(c.animationduration,1)}:!1},colors:"AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" "),credits:{href:k.CREDIT_HREF,
text:k.CREDIT_STRING,enabled:!1},global:{},labels:{items:[]},lang:{},legend:{enabled:!0,symbolWidth:12,borderRadius:1,backgroundColor:"#FFFFFF",initialItemX:0,title:{text:b,x:0,y:0,padding:2},scroll:{},itemStyle:{}},loading:{},plotOptions:{series:{pointPadding:0,borderColor:"#333333",events:{},animation:a(c.animation,c.defaultanimation,1)?{duration:1E3*a(c.animationduration,1)}:!1,states:{hover:{enabled:!1},select:{enabled:!1}},dataLabels:{enabled:!0,color:"#555555",style:{},formatter:function(){return this.point.showPercentValues?
g.numberFormatter.percentValue(this.percentage):this.point.displayValue}},point:{events:{}}},area:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},radar:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},areaspline:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},line:{shadow:!0,states:{hover:{enabled:!1}},marker:{lineWidth:1,
radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},scatter:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},bubble:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},spline:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},pie:{size:"80%",allowPointSelect:!0,cursor:"pointer",point:{events:{legendItemClick:c.interactivelegend===
Ea?K:function(){this.slice()}}}},pie3d:{size:"80%",allowPointSelect:!0,cursor:"pointer",point:{events:{legendItemClick:c.interactivelegend===Ea?K:function(){this.slice()}}}},column:{},floatedcolumn:{},column3d:{},bar:{},bar3d:{}},point:{},series:[],subtitle:{text:b,style:{}},symbols:[],title:{text:b,style:{}},toolbar:{},tooltip:{style:{}},xAxis:{steppedLabels:{style:{}},labels:{x:0,style:{},enabled:!1},lineWidth:0,plotLines:[],plotBands:[],title:{style:{},text:b},tickWidth:0,scroll:{enabled:!1}},
yAxis:[{startOnTick:!1,endOnTick:!1,title:{style:{},text:b},tickLength:0,labels:{x:0,style:{}},plotBands:[],plotLines:[]},{tickLength:0,gridLineWidth:0,startOnTick:!1,endOnTick:!1,title:{style:{},text:b},labels:{x:0,style:{},enabled:!1,formatter:function(){return this.value!==kb?this.value:b}},opposite:!0,plotBands:[],plotLines:[]}],exporting:{buttons:{exportButton:{},printButton:{enabled:!1}}}};c.palettecolors&&"string"===typeof c.palettecolors&&(d.colors=c.palettecolors.split(/\s*\,\s*/));return g.hcJSON=
d},Jb=function(a,b,c,d,f){var e=[],g=!1;d=d||0;for(f=f||{max:Number.MIN_VALUE,min:Number.MAX_VALUE};d<a.length;++d)if(g)if(isNaN(a[d].y)||null===a[d].y){if(!c)break}else e.push({index:d,y:a[d].y});else isNaN(a[d].y)||null===a[d].y||(g=!0,e.push({index:d,y:a[d].y}));if(2<e.length){var g=f,m={},h,k,E;for(k=0;k<e.length;++k)h=e[k].index,m["D"+h]=0;for(h=0;10>h;++h)for(k=0;k<e.length;++k)E=0===k?(3*(e[k+1].y-e[k].y)-m["D"+e[k+1].index])/2:k===e.length-1?(3*(e[k].y-e[k-1].y)-m["D"+e[k-1].index])/2:(3*
(e[k+1].y-e[k-1].y)-m["D"+e[k+1].index]-m["D"+e[k-1].index])/4,m["D"+e[k].index]=E;h=G(b/(e.length-1));for(k=1;k<e.length;++k){E=g;for(var l=void 0,p=void 0,I=void 0,r=void 0,K=p=void 0,n=void 0,M=void 0,q=void 0,q=void 0,l=m["D"+e[0].index],p=m["D"+e[k].index],I=e[0].y,r=3*(e[k].y-e[0].y)-2*l-p,p=2*(e[0].y-e[k].y)+l+p,K=E.max,n=E.min,M=0;M<=h;M++)q=M/h,q=I+l*q+r*q*q+p*q*q*q,q<n&&(n=q),q>K&&(K=q);E.max=K;E.min=n}}d<a.length&&!c&&Jb(a,b,c,d,f);return f},Wa=k.placeVerticalAxis=function(c,d,e,h,f,k,
E,H,l,r){var K=e[g],n=K.smartLabel,M,I,q,t,w=0,v=K.marginRightExtraSpace,V=K.marginLeftExtraSpace,F={},Y={},u={},B=c.plotLines,da=c.plotBands,K=d.verticalAxisValuesPadding,G=isNaN(d.fixedValuesPadding)?0:d.fixedValuesPadding,D=K-G,L=d.verticalAxisValuesPadding,na=d.verticalAxisNamePadding,ja=d.verticalAxisNameWidth,Va=d.rotateVerticalAxisName&&String(d.rotateVerticalAxisName).toLowerCase(),J="none"!==Va,Xa=c.offset?c.offset:0,C=0,N=0,ca=0,Ha=0,Ka=0,ra=0,P=0,Wa,mb,ta,Ma,K=2,P=E?v+5:V+4,rb=W(a(e.chart.plotBorderWidth,
1),0),ma=c.showLine?c.lineThickness:rb,ia=function(a,b){var c,f;a&&a.label&&void 0!==p(a.label.text)&&(ta=a.label,ta.style&&ta.style!==mb&&(mb=ta.style,n.setStyle(mb)),M=n.getOriSize(a.label.text),f=(c=M.width)?c+2:0,a.isGrid?(F[b]={width:c,height:M.height,label:ta},Ha<=f&&(Ha=f,d.lYLblIdx=b)):a.isTrend&&(E&&ta.textAlign===Sa||ta.textAlign===ha?(Y[b]={width:c,height:M.height,label:ta},Ka=W(Ka,f)):(u[b]={width:c,height:M.height,label:ta},ra=W(ra,f))))},wb=function(a,d){var e,g=d?w:w+a;e=c.title.style;
I=I||{};if(0<g)return J?(g<I.height&&(n.setStyle(e),I=n.getSmartText(c.title.text,f,g)),e=I.height):(g<I.width&&(n.setStyle(e),I=n.getSmartText(c.title.text,g,f)),e=I.width),c.title._actualWidth=e,c.title.text=I.text,I.tooltext&&(c.title.originalText=I.tooltext),d?g-e+a:g-e;c.title.text=b;return 0},R=function(a,b,c){for(var f in a)a[f].label.x=b,a[f].label.y=c},ca=0;for(Wa=da.length;ca<Wa;ca+=1)ia(da[ca],ca);ca=0;for(Wa=B.length;ca<Wa;ca+=1)ia(B[ca],ca);c.title&&c.title.text!=b&&(mb=c.title.style,
n.setStyle(mb),q=n.getOriSize(m).height,c.title._originalText=c.title.text,J?(c.title.rotation="cw"===Va?90:270,I=n.getSmartText(c.title.text,f,k),w=I.height,t=q):(c.title.rotation=0,I=n.getSmartText(c.title.text,void 0!==ja?ja:k,f),w=I.width,t=20));0<ra&&(N=ra+L);l&&(h=a(h.chart.maxlabelwidthpercent,0),1<=h&&100>=h&&(l=h*l/100,Ha>l&&(Ha=l)));C=W(Ka,Ha);C+=C?D+G:0;0<w&&(C+=w+na+P);(function(){if(N+C>k){Ma=N+C-k;if(N){if(L>=Ma){L-=Ma;return}Ma-=L;L=0}if(D+na>=Ma)na>=Ma?na-=Ma:(D-=Ma-na,na=0);else{Ma-=
D+na;na=D=0;if(20<ra)if(Ka>Ha){if(ra-Ka>=Ma){ra-=Ma;return}if(Ka-ra>=Ma){Ka-=Ma;return}Ka>ra?(Ma-=Ka-ra,Ka=ra):(Ma-=ra-Ka,ra=Ka);if(2*(Ka-Ha)>=Ma){ra-=Ma/2;Ka-=Ma/2;return}Ma-=2*(Ka-Ha);ra=Ka=Ha}else{if(ra-20>=Ma){ra-=Ma;return}Ma-=ra-20;ra=20}if(Ka>Ha){if(Ka-Ha>=Ma){Ka-=Ma;return}Ma-=Ka-Ha;Ka=Ha}w-t>=Ma?w-=Ma:(Ma-=w-t,w=t,ra>=Ma?ra=0:(Ma-=ra,ra=0,w>=Ma?w=0:(Ma-=w,w=0,Ha>=Ma&&(Ka=Ha-=Ma))))}}})();ca=function(a,c){var d,e=0,s=c?ra-2:ra+a-2,g;if(0<ra){for(g in u)ta=u[g].label,u[g].width>s?(ta.style&&
ta.style!==mb&&(mb=ta.style,n.setStyle(mb)),d=n.getSmartText(ta.text,s,f,!0),ta.text=d.text,d.tooltext&&(ta.originalText=d.tooltext),u[g].height=d.height,e=W(e,d.width)):e=W(e,u[g].width);return c?s-e+a:s-e}for(g in u)u[g].label.text=b;return 0}(0,!0);ca=wb(ca,!0);ca=function(a){var c=0,d=W(Ha,Ka)+a-2,e;if(0<d){for(e in F)ta=F[e].label,F[e].width>d?(ta.style&&ta.style!==mb&&(mb=ta.style,n.setStyle(mb)),a=n.getSmartText(ta.text,d,f,!0),ta.text=a.text,a.tooltext&&(ta.originalText=a.tooltext),F[e].height=
a.height,c=W(c,a.width)):c=W(c,F[e].width);for(e in Y)ta=Y[e].label,Y[e].width>d?(ta.style&&ta.style!==mb&&(mb=ta.style,n.setStyle(mb)),a=n.getSmartText(ta.text,d,f,!0),ta.text=a.text,a.tooltext&&(ta.originalText=a.tooltext),Y[e].height=a.height,c=W(c,a.width)):c=W(c,Y[e].width);return d-c}for(e in F)F[e].label.text=b;for(e in Y)Y[e].label.text=b;return 0}(ca);ca=wb(ca);l=d.verticalAxisNamePadding-na;ca&&l&&(ca>l?(na+=l,ca-=l):(na+=ca,ca=0));l=d.verticalAxisValuesPadding-(D+G);ca&&l&&(ca>l?(D+=l,
ca-=l):(D+=ca,ca=0));l=d.verticalAxisValuesPadding-L;ca&&l&&(ca>l?(L+=l,ca-=l):(L+=ca,ca=0));0<ra&&(N=ra+L);C=W(Ka,Ha);C+=C?D+G:0;0<w&&(C+=w+na+P);l=W(Ka,Ha);l+=0<l?D+G:0;0<w?(J?w<I.height&&(I=n.getSmartText(c.title.text,f,w)):(w<I.width&&(I=n.getSmartText(c.title.text,w,f)),c.title.y=-((I.height-q)/2)),c.title.text=I.text,I.tooltext&&(c.title.originalText=I.tooltext),c.title.margin=l+na+P+(J?w-q:w/2)):c.title.text=b;q=-(D+G+Xa+V+2);v=v+L+Xa+2;P=W(Ka,Ha);c.labels.style&&(K=.35*parseInt(c.labels.style.fontSize,
10));E?(0<ra&&R(u,q,K),0<P&&(R(F,v,K),R(Y,v,K))):(0<ra&&R(u,v,K),0<P&&(R(F,q,K),R(Y,q,K)));c.labels._textY=K;c.labels._righttX=v;c.labels._leftX=q;C=C||ma;N=N||(H?0:rb);r?(e.chart.marginLeft+=E?N:C-r,e.chart.marginRight+=E?C-r:N):(e.chart.marginLeft+=E?N:C,e.chart.marginRight+=E?C:N);return N+C},Eb=k.titleSpaceManager=function(c,d,e,m){var f=this.snapLiterals||(this.snapLiterals={}),h=d.chart,k=F(h.caption);d=F(h.subcaption);var H=h=a(h.captionpadding,10),E=c[g],l=this.smartLabel||E.smartLabel,p=
!1,n=0,K,I,r=0,M=0,q=0,t=0,w=c.title,v=c.subtitle,V=W(a(c.chart.plotBorderWidth,1),0),Y=0,u=0;if(3<m){h<V&&(h=V+2);k!==b&&(K=w.style,q=Ca(a(parseFloat(K.fontHeight,10),parseFloat(K.lineHeight,10),12)));d!==b&&(I=v.style,t=a(parseInt(I.fontHeight,10),parseInt(I.lineHeight,10),12));if(0<q||0<t)m=W(m,0),n=q+t+h,n>m?(r=m-n,p=!0,r<h?h=W(r,5):(r-=h,h=0,t>r?(M=t-r+10,t=0,v._originalText=v.text,v.text=""):(r-=t,t=0,q>r&&(M=q-r)))):M=m-n,0<q&&(l.setStyle(K),q+=M,m=l.getSmartText(k,e,q),M=q-m.height,w.height=
q=m.height,w.text=m.text,m.tooltext&&(w.originalText=m.tooltext),Y=m.width),0<t&&(l.setStyle(I),t+=M,e=l.getSmartText(d,e,t),M=t-e.height,t=e.height,v.text=e.text,v.height=e.height,e.tooltext&&(v.originalText=e.tooltext),u=e.width),p&&0<M&&(h+=$(H-h,M)),n=q+t+h;n=n||V;w.isOnTop?(f.captionstarty=c.chart.marginTop,c.chart.marginTop+=n):(c.chart.marginBottom+=n,f.captionstarty=w.y=E.height-c.chart.marginBottom+h,c.chart.marginTop+=5,n+=5);w._captionWidth=Y;v._subCaptionWidth=u;w._lineHeight=q;v._lineHeight=
t}else v&&(v.text=""),w&&(w.text="");return n},wb=k.stepYAxisNames=function(a,c,d,e,f,m){var h=0,k=e.plotLines,E=[],l,p=e.plotLines.length;c=c[g].smartLabel;for(var n=parseFloat(B(d.basefontsize,10)),K;h<p;h+=1)d=k[h],d.isGrid&&d.label&&d.label.text&&(E.push(d),0===d.value&&(l=E.length-1));if(p=E.length)if(e.labels.style?c.setStyle(e.labels.style):E[0].label&&E[0].label.style&&c.setStyle(e.labels.style),h=c.getOriSize("W").height,m||(h+=.4*n),a/=p-1,a<h){m=W(1,Ca(h/a));for(h=a=l;h<p;h+=1)d=E[h],h===
f&&((h-a)%m&&K&&(K.label.text=""),a=f),d&&d.label&&((h-a)%m?d.label.text=b:K=d);for(h=a=l;0<=h;--h)d=E[h],h===f&&((a-h)%m&&K&&(K.label.text=""),a=f),d&&d.label&&((a-h)%m?d.label.text=b:K=d)}},rb=k.placeHorizontalAxis=function(c,d,e,m,f,h,k){var H=e[g],E=m&&m.chart||{},l,n,K,r,I,M,q,t,w,v,V,F,Y=0,u=0,B=10,da=1,G=0,D=0,na=0,L=0,ja=!1,ca=!1,C=!1,J=a(E.labelstep,0),Va=a(E.xaxisminlabelwidth,0),Xa=a(E.maxlabelheight,h),N=d.labelDisplay,Ha=d.rotateLabels,ra=d.horizontalLabelPadding,Ka=H.marginBottomExtraSpace,
ta=e.chart.marginLeft,Ma=e.chart.marginRight,P=H.smartLabel,Wa=H.plotBorderThickness,mb=d.catCount,rb=d.slantLabels,ma=f/(c.max-c.min),ia=0,R=0,wb=0,Fa=0,Q=m&&m.chart||{},S=1E3*a(Q.updateinterval,Q.refreshinterval),U=Q.datastreamurl,ea=Boolean(this.realtimeEnabled&&S&&void 0!==U),Jb,T,Tb,Aa,oa,Ua,ub,Ob,Eb,Fb,ba,vb,Z,Mb,Ba,pa,ka,ga,sa,la,Da,qa,xa,Ra,lb,Ga=null,za=null,Qa,Ea,$a,ec,La,hb,db,kb,Zb,ua,Yb,fc,Pa=[],Lb=[],ob,Bb=0,Cb=0,$b,nb,tb,gc,jc,gb,fb,kc=d.horizontalAxisNamePadding,zb=0,Za=d.staggerLines,
Nb=ia,Ub=!1,Kb=!1,Xb=0,lc,Db,Pb,Wb,sd,Sc,td,$c,ad,Cc,Tc,bd,nc,Mc,Uc,Ec,cd,Nc,Vc,vc;Yb=c.plotLines;B=ua=0;for(fb=Yb.length;ua<fb;ua+=1)(n=Yb[ua])&&n.label&&!n.isTrend&&B<parseInt(n.label.style.lineHeight,10)&&(B=parseInt(n.label.style.lineHeight,10),M=n.label.style);if(M||c.labels.style)M=M||c.labels.style,P.setStyle(M),t=P.getOriSize("W"),B=P.lineHeight,q=t.width+4,F=P.getOriSize("WWW").width+4;c.title&&c.title.text!=b&&(M=c.title.style,P.setStyle(M),D=P.getOriSize("W").height,c.title.rotation=0,
r=P.getSmartText(c.title.text,f,h),u=r.height);ta!=parseInt(E.chartleftmargin,10)&&(db=!0);Ma!=parseInt(E.chartrightmargin,10)&&(kb=!0);void 0!==E.canvaspadding&&""!==E.canvaspadding&&(Kb=!0);Zb=f-k;switch(N){case "none":ja=C=!0;Ha&&(Y=rb?300:270,t=B,B=q,q=t);break;case "rotate":Y=rb?300:270;t=B;B=q;q=t;ja=!0;break;case "stagger":ca=ja=!0;w=fa((h-D)/B);w<Za&&(Za=w);break;default:Ha&&(Y=rb?300:270,t=B,B=q,q=t)}H.isBar&&(ja=!0);ua=0;Yb=c.plotLines;if(typeof e._FCconf.isXYPlot!==ab||H.isBar){Jb={};Ua=
oa=0;Fb=Eb=null;ga={};Ub=!0;ma=f/(c.max-c.min);Wb=function(a,f,d){var g,z,m,h,O,k;k=a.plotObj;O=a.labelTextWidth;O||(I=k.label,I.style&&I.style!==M&&(M=I.style,P.setStyle(M)),O=P.getOriSize(I.text).width+4,a.oriWidth=O,O>T&&(O=T),a.labelTextWidth=O,a.leftEdge=k.value*ma-O/2,a.rightEdge=k.value*ma+O/2,d&&(O=$(O,2*(n.value-c.min)*ma+e.chart.marginLeft),a.labelTextWidth=O));if(typeof f!==ab){if(d=f.plotObj,I=d.label,I.style&&I.style!==M&&(M=I.style,P.setStyle(M)),f.oriWidth?m=f.oriWidth:(m=P.getOriSize(I.text).width+
4,f.oriWidth=m),m>T&&(m=T),f.labelTextWidth=m,f.leftEdge=d.value*ma-m/2,f.rightEdge=d.value*ma+m/2,g=k.value*ma,z=g+O/2,h=d.value*ma,m=h-m/2,m<z)if(g+q<h-q)z-=m,g=h-g,a.labelTextWidth=z>g?$(O,g):W(q,O-z/2),f.labelTextWidth=2*(g-a.labelTextWidth/2),a.leftEdge=k.value*ma-a.labelTextWidth/2,a.rightEdge=k.value*ma+a.labelTextWidth/2,f.leftEdge=d.value*ma-f.labelTextWidth/2,f.rightEdge=d.value*ma+f.labelTextWidth/2;else return f.labelTextWidth=0,d.label.text=b,!1}else d&&(O=$(O,2*(c.max-n.value)*ma+e.chart.marginRight),
a.labelTextWidth=O,a.leftEdge=k.value*ma-O/2,a.rightEdge=k.value*ma+O/2);a.nextCat=f;return!0};ca?Za>nb?Za=nb:2>Za&&(Za=2):Za=1;for(fb=Yb.length;ua<fb;ua+=1)(n=Yb[ua])&&n.label&&typeof n.label.text!==ab&&(n.isGrid?(Aa={plotObj:n},n.isCat&&(Ob=ua%Za,Jb[Ob]||(Jb[Ob]=[]),Eb?(Fb=Aa,Jb[Ob].push(Fb)):(Fb=Eb=Aa,Jb[Ob].push(Eb))),Pa.push(Aa)):n.isTrend&&Lb.push({plotObj:n}));fc=c.plotBands;ua=0;for(fb=fc.length;ua<fb;ua+=1)(n=fc[ua])&&n.isTrend&&n.label&&typeof n.label.text!==ab&&Lb.push({plotObj:n});if(Pa.length)if(!C&&
!Y)if(H.distributedColumns)for(ua=0,fb=Pa.length;ua<fb;ua+=1)pa=Pa[ua],ka=ua%Za,n=pa.plotObj,n.label&&n.isCat&&(0<=ua-Za?(vb=Pa[ua-Za],xa=vb.plotObj.value*ma+vb.plotObj._weight*ma/2):(vb=null,xa=c.min*ma-ta),ua+Za<fb?(ba=Pa[ua+Za],Ra=ba.plotObj.value*ma-ba.plotObj._weight*ma/2):(ba=null,Ra=c.max*ma+Ma),I=n.label,I.style&&I.style!==M&&(M=I.style,P.setStyle(M)),Z=n.value*ma,ad=Z-n._weight*ma/2,$c=Z+n._weight*ma/2,1<Za?(la=ad-xa,Da=$c+Ra,lb=$c-ad+$(la,Da)):lb=$c-ad,I=n.label,I.style&&I.style!==M&&P.setStyle(I.style),
lb<q&&q<P.getOriSize(I.text).width?(n.label.text=b,pa.labelTextWidth=0):(pa.labelTextWidth=lb,l=P.getSmartText(I.text,lb-4,h,ja),lb=l.width+4,pa.labelTextWidth=lb,Fa=W(Fa,l.height)));else{nb=Pa.length;$b=Pa.length-1;(ob=(Pa[$b].plotObj.value-Pa[0].plotObj.value)*ma)?(T=.1*ob,Tb=W(.2*ob,ob/nb)):Tb=T=f;for(K in Jb)for(ua=0,Mb=Jb[K].length;ua<Mb;){for(ub=ua+1;!Wb(Jb[K][ua],Jb[K][ub]);)ub+=1;ua=ub}Eb&&(Ua=(Eb.plotObj.value-c.min)*ma+ta-Eb.labelTextWidth/2);n=Pa[0].plotObj;Eb&&n===Eb.plotObj||(I=n.label,
I.style&&I.style!==M&&(M=I.style,P.setStyle(M)),V=P.getOriSize(I.text).width+4,Z=(n.value-c.min)*ma+ta,Eb&&(Qa=Ua-Z,V=Qa<V&&Qa>q/2?2*Qa:0),Pa[0].labelTextWidth=V,0<V&&(t=Z-V/2),t<Ua&&(Ua=t));Fb&&(V=Fb.labelTextWidth,oa=(c.max-Fb.plotObj.value)*ma+Ma-V/2);n=Pa[$b].plotObj;Fb&&n===Fb.plotObj||(I=n.label,I.style&&I.style!==M&&(M=I.style,P.setStyle(M)),V=P.getOriSize(I.text).width+4,Z=(c.max-n.value)*ma+Ma,Fb&&(Qa=Z-oa,V=Qa<V&&Qa>q/2?2*Qa:0),Pa[$b].labelTextWidth=V,0<V&&(t=Z-V/2),t<oa&&(oa=t));Bb=0>Ua?
-Ua:0;Cb=0>oa?-oa:0;gb=Bb+Cb;if(0<gb)for(K in Zb>gb?(Ba=(Ba=Cb*f/(Cb+f))?Ba+4:0,e.chart.marginRight+=Ba,f-=Ba,Ba=(Ba=Bb*f/(Bb+f))?Ba+4:0,e.chart.marginLeft+=Ba,f-=Ba,ma=f/(c.max-c.min)):Bb<Cb?Zb>=Cb&&kb?(Ba=(Ba=Cb*f/(Cb+f))?Ba+4:0,e.chart.marginRight+=Ba,f-=Ba,ma=f/(c.max-c.min)):db&&(Ba=(Ba=Bb*f/(Bb+f))?Ba+4:0,e.chart.marginLeft+=Ba,f-=Ba,ma=f/(c.max-c.min)):Zb>=Bb&&db?(Ba=(Ba=Bb*f/(Bb+f))?Ba+4:0,e.chart.marginLeft+=Ba,f-=Ba,ma=f/(c.max-c.min)):kb&&(Ba=(Ba=Cb*f/(Cb+f))?Ba+4:0,e.chart.marginRight+=
Ba,f-=Ba,ma=f/(c.max-c.min)),Ma=e.chart.marginRight,ta=e.chart.marginLeft,ob=(Pa[$b].plotObj.value-Pa[0].plotObj.value)*ma,T=.1*ob,Tb=W(.2*ob,ob/nb),Jb){ua=0;for(Mb=Jb[K].length;ua<Mb;){for(ub=ua+1;!Wb(Jb[K][ua],Jb[K][ub],!0);)ub+=1;ua=ub}K+=1}ua=0;for(fb=Pa.length;ua<fb;ua+=1)if(pa=Pa[ua],ka=ua%Za,n=pa.plotObj,n.label)if(n.isCat)pa.labelTextWidth&&(ga[ka]=pa);else{ba=(vb=ga[ka])?vb.nextCat:Jb[ka]?Jb[ka][0]:null;sa=null;if(ua>=Za)for(za=ua-Za,sa=Pa[za];!sa.labelTextWidth;)if(za>=Za)za-=Za,sa=Pa[za];
else{sa=null;break}xa=sa?sa.rightEdge:c.min*ma-ta;Ra=ba?ba.leftEdge:c.max*ma+Ma;I=n.label;I.style&&I.style!==M&&(M=I.style,P.setStyle(M));V=P.getOriSize(I.text).width+4;hb=n.value*ma-V/2;if(H.isBar&&ua==fb-1&&sa)xa>hb&&(sa.plotObj.label.text=b,sa.labelTextWidth=0,xa=sa.leftEdge);else if(xa>hb||Ra<hb+V){n.label.text=b;pa.labelTextWidth=0;continue}xa=W(xa,hb);Z=n.value*ma;lb=2*$(Z-xa,Ra-Z);lb.toFixed&&(lb=lb.toFixed(2));I=n.label;I.style&&I.style!==M&&P.setStyle(I.style);lb<q&&q<P.getOriSize(I.text).width?
(n.label.text=b,pa.labelTextWidth=0):(pa.labelTextWidth=lb,l=P.getSmartText(I.text,lb-4,h,ja),lb=l.width+4,pa.labelTextWidth=lb,pa.leftEdge=Z-lb/2,pa.rightEdge=Z+lb/2,Fa=W(Fa,l.height))}sa=qa=null;ua=0;for(fb=Pa.length;ua<fb;ua+=1)if(pa=Pa[ua],n=pa.plotObj,ka=ua%Za,n.isCat&&pa.labelTextWidth){sa=qa=null;Z=n.value*ma;if(ua>=Za)for(za=ua-Za,sa=Pa[za];!sa.labelTextWidth;)if(za>Za)za-=Za,sa=Pa[za];else{sa=null;break}la=sa?Z-sa.rightEdge:Z-c.min*ma+e.chart.marginLeft;if(ua+Za<fb)for(Ga=ua+Za,qa=Pa[Ga];!qa.labelTextWidth;)if(Ga+
Za<fb-1)Ga+=Za,qa=Pa[Ga];else{qa=null;break}Da=qa?qa.leftEdge-Z:c.max*ma+e.chart.marginRight-Z;lb=2*$(la,Da);lb>Tb&&(lb=Tb);lb>pa.oriWidth&&(lb=pa.oriWidth);pa.labelTextWidth=lb;I=n.label;I.style&&I.style!==M&&P.setStyle(I.style);l=P.getSmartText(I.text,lb-4,h,ja);pa.labelTextWidth=l.width+4;Fa=W(Fa,l.height);pa.rightEdge=Z+pa.labelTextWidth/2}}else if(Y)for(ua=0,fb=Pa.length;ua<fb;ua+=1)if((n=Pa[ua].plotObj)&&n.label&&n.label.text){I=n.label;I.style&&I.style!==M&&(M=I.style,P.setStyle(M));K=1;if(ua+
K<fb)for(Cc=Pa[K+ua].plotObj;Cc&&(Cc.value-n.value)*ma<q;)if(n.isCat){if(Cc.label){Cc.label.text=b;K+=1;if(K+ua>=fb-1)break;Cc=Yb[K+ua].plotObj}}else if(Cc.isCat){n.label.text=b;n=Cc;ua+=K-1;I=n.label;I.style&&I.style!==M&&(M=I.style,P.setStyle(M));break}wb=W(wb,P.getOriSize(I.text).width+4)}K=0;for(fb=Lb.length;K<fb;K+=1)(n=Lb[K].plotObj)&&n.label&&void 0!==p(n.label.text)&&(I=n.label,I.style&&I.style!==M&&(M=I.style,P.setStyle(M)),l=P.getOriSize(I.text),I.verticalAlign===Na?ia=W(ia,l.height):R=
W(R,l.height))}else{for(fb=Yb.length;ua<fb;ua+=1)(n=Yb[ua])&&(n.isGrid?Pa.push(n):n.isTrend&&Lb.push(n));fc=c.plotBands;ua=0;for(fb=fc.length;ua<fb;ua+=1)(n=fc[ua])&&Lb.push(n);$b=Pa.length-1;nb=Pa.length;ca&&(Za>nb?Za=nb:2>Za&&(Za=2));if(nb)for(c.scroll&&c.scroll.viewPortMin&&c.scroll.viewPortMax?(ec=c.scroll.viewPortMin,La=c.scroll.viewPortMax,kb=db=!1):(ec=c.min,La=c.max),ob=(Pa[$b].value-Pa[0].value)*ma,tb=sd=ob/(mb-1),gc=(Pa[0].value-ec)*ma,jc=(La-Pa[$b].value)*ma,"auto"===N?tb<F&&(Y=rb?300:
270,t=B,B=q,q=t,ja=!0):"stagger"===N&&(tb*=Za),"line"!==this.defaultSeriesType&&("area"===this.defaultSeriesType?H.drawFullAreaBorder&&(Wa>gc&&(ec=c.min-=Wa/(2*ma),gc+=(Pa[0].value-ec)*ma),Wa>jc&&(La=c.max+=Wa/(2*ma),jc+=(La-Pa[$b].value)*ma)):(Wa>gc&&(ec=c.min-=Wa/(2*ma),gc+=(Pa[0].value-ec)*ma),Wa>jc&&(La=c.max+=Wa/(2*ma),jc+=(La-Pa[$b].value)*ma))),q<Va&&(q=Va),da=ca||C?W(1,J):W(1,J,Ca(q/tb)),H.x&&(H.x.stepValue=da),tb*=da,v=2*(gc+ta),(I=Yb[0].label)&&I.text&&(I.style&&P.setStyle(I.style),V=270===
Y?$(tb,P.getOriSize(I.text).height+4):$(tb,P.getOriSize(I.text).width+4),V>v&&(C||(Bb=(V-v)/2),db||(Kb&&(Bb=0),tb-=Bb/(mb-1),Pb=tb*(mb-1),ma=tb,lc=(ob-Pb)/ma,La=c.max+=lc,ec=c.min-=lc,Bb=0,ob=Pb,gc=(Pa[0].value-ec)*ma,jc=(La-Pa[$b].value)*ma))),v=2*(jc+Ma),(I=Yb[$b].label)&&I.text&&(I.style&&P.setStyle(I.style),V=270===Y?$(tb,P.getOriSize(I.text).height+4):$(tb,P.getOriSize(I.text).width+4),V>v&&(C||(Cb=(V-v)/2),kb||(Kb&&(Cb=0),tb-=Cb/(mb-1),Pb=tb*(mb-1),ma=tb,lc=(ob-Pb)/ma,Cb=0,ob=Pb,gc=(Pa[0].value-
ec)*ma,jc=(La-Pa[$b].value)*ma))),gb=Bb+Cb,0<gb&&(Zb>gb?(Ba=(Ba=Cb*f/(Cb+f))?Ba+4:0,e.chart.marginRight+=Ba,f-=Ba,Ba=(Ba=Bb*f/(Bb+f))?Ba+4:0,e.chart.marginLeft+=Ba,f-=Ba,ma=f/(c.max-c.min)):Bb<Cb?Zb>=Cb&&kb?(Ba=(Ba=Cb*f/(Cb+f))?Ba+4:0,e.chart.marginRight+=Ba,f-=Ba,ma=f/(c.max-c.min)):db&&(Ba=(Ba=Bb*f/(Bb+f))?Ba+4:0,e.chart.marginLeft+=Ba,f-=Ba,ma=f/(c.max-c.min)):Zb>=Bb&&db?(Ba=(Ba=Bb*f/(Bb+f))?Ba+4:0,e.chart.marginLeft+=Ba,f-=Ba,ma=f/(c.max-c.min)):kb&&(Ba=(Ba=Cb*f/(Cb+f))?Ba+4:0,e.chart.marginRight+=
Ba,f-=Ba,ma=f/(c.max-c.min)),ob=(Pa[$b].value-Pa[0].value)*ma,tb=ob/(mb-1),ca&&(tb*=Za),da=ca||C?W(1,J):Y?W(1,J,Ca(B/tb)):W(1,J,Ca(q/tb)),H.x&&(H.x.stepValue=da),tb*=da),K=0;K<nb;K+=1){n=Pa[K];if(K%da&&n.label){if(n.stepped=!0,n.label.style=c.steppedLabels.style,!ea)continue}else n.stepped=!1;n&&n.label&&void 0!==p(n.label.text)&&(I=n.label,I.style&&I.style!==M&&(M=I.style,P.setStyle(M)),Y&&C?(l=P.getOriSize(I.text),wb=W(wb,l.width+4),Fa=W(Fa,l.height)):C||(l=Y||ca?P.getOriSize(I.text):P.getSmartText(I.text,
tb-4,h,ja),wb=W(wb,l.width+4),Fa=W(Fa,l.height)))}K=0;for(fb=Lb.length;K<fb;K+=1)(n=Lb[K])&&n.label&&void 0!==p(n.label.text)&&(I=n.label,I.style&&I.style!==M&&(M=I.style,P.setStyle(M)),l=P.getOriSize(I.text),I.verticalAlign===Na?ia=W(ia,l.height):R=W(R,l.height));c.scroll&&c.scroll.enabled&&!Y&&!C&&(lc=wb/2,e.chart.marginLeft<lc&&(Db=lc-e.chart.marginLeft,Zb>Db&&(f-=Db,Zb-=Db,e.chart.marginLeft+=Db)),e.chart.marginRight<lc&&(Db=lc-e.chart.marginRight,Zb>Db&&(f-=Db,Zb-=Db,e.chart.marginRight+=Db)))}C?
(zb=B,Y&&(zb=wb)):zb=Y?wb:ca?Za*Fa:Fa;0<zb&&(zb+ra>Xa&&(zb=Xa-ra,Za=Math.floor(zb/Fa)),Nb+=ra+zb);0<u&&(Nb+=u+kc);Ea=ra-4;$a=R+Nb+2;t=0;$a>h&&(Qa=$a-h,kc>Qa?(kc-=Qa,Qa=0):(Qa-=kc,kc=0,Ea>Qa?(Ea-=Qa,Qa=0):(Qa-=Ea,Ea=0),ra=Ea+4),R>Qa?(R-=Qa,Qa=0):(0<R&&(Qa-=R,R=0),0<Qa&&(ia>Qa?(ia-=Qa,Qa=0):(0<ia&&(Qa-=ia,ia=0),0<Qa&&((t=u-D)>Qa?(u-=Qa,Qa=0):(Qa-=t,u=D,0<Qa&&((t=zb-B)>Qa?(zb-=Qa,Qa=0):(Qa-=t,zb=B,0<Qa&&(Qa-=u+kc,u=0,0<Qa&&(Qa-=zb,zb=0,0<Qa&&(ra-=Qa)))))))))));ra+=Ka;Tc=H.is3d?-e.chart.xDepth:0;bd=zb+
ra;Ec=Tc;cd=.5*B;G=B+ra;fb=Pa.length;na=0;if(Ub)if(Y)for(vc=ha,nc=rb?ra+8:ra+4,fb=Pa.length,K=0;K<fb;K+=1)(n=Pa[K].plotObj)&&n.label&&void 0!==p(n.label.text)&&(I=n.label,I.style&&I.style!==M&&(M=I.style,P.setStyle(M)),ua=1,l=P.getSmartText(I.text,zb-4,q,ja),I.text=l.text,l.tooltext&&(I.originalText=l.tooltext),Ec=Tc+cd/2,I.y=nc,I.x=Ec,I.rotation=Y,I.textAlign=vc,na+=1);else for(Mc=zb,vc=va,nc=G,K=0;K<fb;K+=da)n=Pa[K].plotObj,B=parseInt(n.label.style.lineHeight,10),n&&n.label&&void 0!==p(n.label.text)&&
(I=n.label,I.style&&I.style!==M&&(M=I.style,P.setStyle(M)),C||(l=P.getSmartText(I.text,Pa[K].labelTextWidth-4,Mc,ja),I.text=l.text,l.tooltext&&(I.originalText=l.tooltext),ca&&(nc=G+na%Za*B)),I.y=nc,I.x=Ec,I.rotation=Y,I.textAlign=vc,na+=1);else{Y?(Mc=tb,Uc=zb-4,vc=ha,nc=rb?ra+8:ra+4):ca?(Uc=tb-4,vc=va):(Mc=zb,Uc=tb-4,vc=va,nc=G);for(K=0;K<fb;K+=da)n=Pa[K],B=Ca(parseFloat(n.label.style.lineHeight)),cd=.5*B,G=B+ra,n&&n.label&&void 0!==p(n.label.text)&&(I=n.label,I.style&&I.style!==M&&(M=I.style,P.setStyle(M)),
C||(ca&&(Mc=B),Sc=ta+(K-ec)*sd-e.chart.spacingLeft,td=300===Y?$(ya(2.999*Sc*Sc+Sc*Sc)-ra,Uc):Uc,l=P.getSmartText(I.text,td,Mc,ja),Xb=W(Xb,Y?l.width:l.height),I.text=l.text,l.tooltext&&(I.originalText=l.tooltext),ca&&(nc=G+na%Za*B)),Y?Ec=Tc+.5*B:ca||(nc=B+ra),I.y=nc,I.x=Ec,I.rotation=Y,I.textAlign=vc,na+=1);300===Y&&(zb=Xb,bd=zb+ra);d._labelY=G;d._labelX=Tc;d._yShipment=nc;d._isStagger=ca;d._rotation=Y;d._textAlign=vc;d._adjustedPx=cd;d._staggerLines=Za;d._labelHeight=B}fb=Lb.length;for(K=Vc=Nc=0;K<
fb;K+=1)(n=Lb[K].plotObj?Lb[K].plotObj:Lb[K])&&n.label&&void 0!==p(n.label.text)&&(I=n.label,I.style&&I.style!==M&&(M=I.style,P.setStyle(M)),I.verticalAlign===Na?(l=P.getSmartText(I.text,f,ia,!0),Vc=W(Vc,l.height),I.text=l.text,l.tooltext&&(I.originalText=l.tooltext),I.y=bd+P.getOriSize(I.text).height,I.x=Ec):(l=P.getSmartText(I.text,f,R,!0),Nc=W(Nc,l.height),I.text=l.text,l.tooltext&&(I.originalText=l.tooltext),I.y=-(R-P.getOriSize("W").height+ra+2)));0<u&&(P.setStyle(c.title.style),r=P.getSmartText(c.title.text,
f,u),c.title.text=r.text,r.tooltext&&(c.title.originalText=r.tooltext),c.title.margin=bd+Vc+kc);Nb=Vc;0<zb&&(H.horizontalAxisHeight=ra+zb-Ka,Nb+=H.horizontalAxisHeight);0<u&&(Nb+=L=u+kc);Nb=Nb||ra-Ka;e.chart.marginBottom+=Nb;0<Nc&&(e.chart.marginTop+=Nc,Nb+=Nc);if(c.opposite)for(c.title.margin-=zb-(r&&r.height||0)+ra,Nb-=L,e.chart.marginTop+=Nb,e.chart.marginBottom-=Nb,e.xAxis.opposite=1,fb=Yb.length,ua=0;ua<fb;ua+=1)(n=Yb[ua])&&n.isGrid&&(I=n.label)&&void 0!==I.text&&(I.textAlign=Sa,I.y-=nc+ra+4);
return Nb},Tb=k.configureLegendOptions=function(d,e,g,m,f){m=d.legend;var h=d.chart,k=h.is3D?mb.chart3D:mb.chart2D,H=h.useRoundEdges,E=a(e.legendiconscale,1),n=(parseInt(m.itemStyle.fontSize,10)||10)+1,l=this.colorManager,K;if(0>=E||5<E)E=1;m.padding=4;0>=n&&(n=1);K=3*E;n=$(n*E,f-8);0>=n&&(K=n=0);m.symbolWidth=n;m.symbolPadding=K;m.textPadding=4;m.legendHeight=f=n+2*K;m.rowHeight=W(parseInt(m.itemStyle.lineHeight,10)||12,f);g?(m.align=ha,m.verticalAlign="middle",m.layout="vertical"):m.x=(h.marginLeft-
h.spacingLeft-h.marginRight+h.spacingRight)/2;g=c(e.legendbordercolor,l.getColor(k.legendBorderColor));f=a(e.legendborderalpha,100);h=a(e.legendbgalpha,100);m.backgroundColor=T(c(e.legendbgcolor,l.getColor(k.legendBgColor)),h);m.borderColor=T(g,f);m.borderWidth=a(e.legendborderthickness,!H||e.legendbordercolor?1:0);m.shadow=Boolean(a(e.legendshadow,1));m.symbol3DLighting=Boolean(a(e.use3dlighting,e.useplotgradientcolor,1));m.shadow&&(m.shadow={enabled:m.shadow,opacity:W(f,h)/100});m.reversed=Boolean(a(e.reverselegend,
0)-a(this.reverseLegend,0));m.style={padding:4};Boolean(a(e.interactivelegend,1))?m.symbolStyle={_cursor:"hand",cursor:"pointer"}:(d.legend.interactiveLegend=!1,m.itemStyle.cursor="default",m.itemHoverStyle={cursor:"inherit"});m.borderRadius=a(e.legendborderradius,H?3:0);m.legendAllowDrag=Boolean(a(e.legendallowdrag,0));m.title.text=F(t(e.legendcaption,b));m.legendScrollBgColor=ba(c(e.legendscrollbgcolor,e.scrollcolor,l.getColor("altHGridColor")));m.legendScrollBarColor=c(e.legendscrollbarcolor,g);
m.legendScrollBtnColor=c(e.legendscrollbtncolor,g)},vb=k.placeLegendBlockRight=function(c,d,e,m,f){this.configureLegendOptions(c,d.chart,!0,f,e);var h=this.snapLiterals||(this.snapLiterals={}),k=0,H=c.series,E,n=c[g],l=this.smartLabel||n.smartLabel,K=c.chart.spacingRight,p=c.legend,M,r=p.textPadding,q=p.title.padding,t=p.symbolWidth,w=p.symbolPadding,v=t+2*w,V=2*m,Y=0,F=a(d.chart.legendpadding,7);d=F+p.borderWidth/2+a(d.chart.canvasborderthickness,1);var u=2*p.padding,B=u,da=!1,G=[];e-=u+F;f&&(H=
H&&H[0]&&H[0].data);if(typeof H===ab||typeof H.length===ab)return 0;f=H.length;for(k=0;k<f;k+=1)(E=H[k])&&!1!==E.showInLegend&&(E.__i=k,G.push(E));G.sort(function(a,b){return a.legendIndex-b.legendIndex||a.__i-b.__i});f=G.length;M=e-v-F-r;0>M&&(M=0);l.setStyle(p.itemStyle);p.reversed&&G.reverse();for(k=0;k<f;k+=1)E=G[k],da=!0,E._legendX=0,E._legendY=B,0===M?(B+=E._legendH=v,E.name=b,E._totalWidth=t+w):(H=l.getSmartText(E.name,M,V),E.name=H.text,H.tooltext&&(E.originalText=H.tooltext),H.height<v&&
(E._legendTestY=(v-H.height)/2),E._totalWidth=t+w+r+H.width+F,B+=E._legendH=W(H.height,v),Y=W(H.width,Y));if(da)return p.itemWidth=Y+v+F+r,p.width=p.itemWidth+u,p.title.text!==b&&(l.setStyle(p.title.style),H=l.getSmartText(p.title.text,e,V),p.title.text=H.text,H.tooltext&&(p.title.originalText=H.tooltext),k=H.width+u,p.width<k&&(p.initialItemX=(k-p.width)/2,p.width=k),p.initialItemY=H.height+q,B+=p.initialItemY),p.height=p.totalHeight=B,p.height>m&&(p.height=m,p.scroll.enabled=!0,p.scroll.flatScrollBars=
n.flatScrollBars,p.scroll.scrollBar3DLighting=n.scrollBar3DLighting,p.width+=(p.scroll.scrollBarWidth=10)+(p.scroll.scrollBarPadding=2)),h.legendstartx=n.width-K-p.width,h.legendwidth=p.width,h.legendendx=h.legendstartx+h.legendwidth,h.legendheight=p.height,d=$(p.width+d,e),c.chart.marginRight+=d+F,d;p.enabled=!1;return 0},Fa=k.placeLegendBlockBottom=function(c,d,e,h,f){this.configureLegendOptions(c,d.chart,!1,f,e);var k=this.snapLiterals||(this.snapLiterals={}),E=0,H=c.series,n=c[g],l=n.smartLabel||
this.smartLabel,K=c.chart,p=K.spacingBottom,M=K.spacingLeft,K=K.spacingRight,I=c.legend,r,q=I.textPadding,t=I.title.padding,w,v=I.symbolWidth,V=I.symbolPadding,Y=I.legendHeight,B=d.chart;w=0;var u=2*h,da=I.rowHeight,G=.05*da,D=[];r=a(B.minimisewrappinginlegend,0);var B=a(parseInt(B.legendnumcolumns,10),0),na=0,L=0,ja=0,ca=E=0,C=0,J=0,Va=I.padding,Xa=2*Va,Va=q+V+Va;d=a(d.chart.legendpadding,7)+I.borderWidth/2+1;var N=Xa,P=!1,ra,Ha=[],Ka=!1,ma=0,ta=0;0>B&&(B=0);e-=Xa;l.setStyle(I.itemStyle);E=l.getOriSize(m).height;
d=$(d,h-E-8);h-=d;f&&(H=H&&H[0]&&H[0].data);if(typeof H===ab||typeof H.length===ab)return 0;f=H.length;for(E=0;E<f;E+=1)(ra=H[E])&&!1!==ra.showInLegend&&(ra.__i=E,Ha.push(ra));Ha.sort(function(a,b){return a.legendIndex-b.legendIndex||a.__i-b.__i});f=Ha.length;l.setStyle(I.itemStyle);for(E=0;E<f;E+=1)P=!0,Ha[E].name=F(Ha[E].name),H=l.getOriSize(Ha[E].name),na=W(na,H.width),C=W(C,$(H.height,u)),L+=H.width,ja+=1;E=L/ja;Y=Y+G+q+V+Xa;L+=Y*ja;if(P){E+=Y;na+=Y;0<B&&ja<B&&(B=ja);L<=e&&(0>=B||B===ja)?(B=ja,
ca=E=L/ja,Ka=!0,C>da&&(J=(C-da)/2,da=C)):0<B&&(ca=e/B)>E?ca>na&&(ca=na):e>na&&(r||1.5*E>na)?(B=fa(e/na),ja<B&&(B=ja),ca=na):e>=2*E?(B=fa(e/E),ja<B&&(B=ja),ca=fa(e/B),ca>na&&(ca=na)):(B=1,ca=e);I.itemWidth=ca;r=ca-Y;0>r&&(V=r=q=0);I.symbolPadding=V;I.textPadding=q;I.width=ca*B-G;I.title.text!==b&&(l.setStyle(I.title.style),H=l.getSmartText(I.title.text,e,u),I.title.text=H.text,H.tooltext&&(I.title.originalText=H.tooltext),w=H.width+Xa,I.width<w&&(I.initialItemX=(w-I.width)/2,I.width=w),I.initialItemY=
w=H.height+t);l.setStyle(I.itemStyle);I.reversed&&Ha.reverse();for(E=0;E<f;E+=1){e=Ha[E];0===r&&(D[ma]=!0,e.name=b,t=1,q=parseInt(ma/B,10),G=ma%B,e._legendX=G*ca,e._legendY=q*da+Xa,e._legendH=t*da,e._totalWidth=v+V);if(Ka)H=l.getOriSize(e.name),H.height<da&&(e._legendTestY=(da-H.height)/2),e._markerYGutter=J,e._legendX=ta,e._legendY=Xa,e._legendH=da,e._totalWidth=v+Va+H.width,ta+=H.width+Y;else{H=l.getSmartText(e.name,r,u);e.name=H.text;for(H.tooltext&&(e.originalText=H.tooltext);!0===D[ma];)ma+=
1;q=H.height/da;G=ma;for(t=0;t<q;t+=1,G+=B)D[G]=!0;H.height<da&&(e._legendTestY=(da-H.height)/2);q=parseInt(ma/B,10);G=ma%B;e._legendX=G*ca;e._legendY=q*da+Xa;e._legendH=t*da;e._totalWidth=v+Va+H.width}ma+=1}l=Ka?1:Ca(D.length/B);I.height=I.totalHeight=N+(l*da+w);I.rowHeight=da;I.legendNumColumns=B;I.height>h&&(I.height=h,I.scroll.enabled=!0,I.scroll.flatScrollBars=n.flatScrollBars,I.scroll.scrollBar3DLighting=n.scrollBar3DLighting,I.width+=(I.scroll.scrollBarWidth=10)+(I.scroll.scrollBarPadding=
2));k.legendstartx=M+.5*(n.width-M-K-I.width)+(I.x||0);k.legendwidth=I.width;k.legendendx=k.legendstartx+k.legendwidth;k.legendstarty=n.height-p-I.height;k.legendheight=I.height;k.legendendy=k.legendstarty+k.legendheight;d+=I.height;c.chart.marginBottom+=d;return d}I.enabled=!1;return 0},Fb=function(a,b){return a.value-b.value},Ob=function(a,b,c){var d=b._originalText;a=a[g].smartLabel;b.text=b.rotation?a.getSmartText(d,c,b._actualWidth).text:a.getSmartText(d,b._actualWidth,c).text;b.centerYAxisName=
!0},Mb=k.adjustVerticalAxisTitle=function(a,b,c){if(b&&b.text){var d=b.text,f=a[g].smartLabel,e=2*$(a.chart.marginTop,a.chart.marginBottom)+c,m=c+a.chart.marginTop+a.chart.marginBottom;b.style&&f.setStyle(b.style);d=f.getOriSize(d);void 0===b.centerYAxisName&&(b.centerYAxisName=!0);b.rotation?d.width>e&&(b.y=m/2-(c/2+a.chart.marginTop),b.centerYAxisName=!1):d.height>e&&(b.y=(m/2-(c/2+a.chart.marginTop))/2,b.centerYAxisName=!1)}},Ua=k.adjustVerticalCanvasMargin=function(b,c,d,e){var f=c.chart,g=c=
0,m=0,h=a(f.canvastopmargin,0),f=a(f.canvasbottommargin,0),k=h/(h+f),E=b.chart.marginTop,n=b.chart.marginBottom;f>n&&(c+=f-n);h>E&&(c+=h-E);c>d?h>E&&f>n?(g=d*k,m=d*(1-k)):h>E?g=d:m=d:0<c&&(f>n&&(m=f-n),h>E&&(g=h-E));g&&(b.chart.marginTop+=g);m&&(b.chart.marginBottom+=m,e&&e.title&&(e.title.margin+=m));return g+m},Aa=k.adjustHorizontalCanvasMargin=function(b,c,d,e,f){var g=c.chart;c=a(g.canvasleftmargin,0);var g=a(g.canvasrightmargin,0),m=c/(c+g),h=0,k=b.chart.marginLeft,E=b.chart.marginRight,n=0,
l=0;c>k&&(h+=c-k);g>E&&(h+=g-E);h>d?c>k&&g>E?(n=d*m,l=d*(1-m)):g>E?l=d:n=d:0<h&&(c>k&&(n=c-k),g>E&&(l=g-E));n&&(b.chart.marginLeft+=n,e&&e.title&&(e.title.margin+=n));l&&(b.chart.marginRight+=l,f&&f.title&&(f.title.margin+=l));return l+n},ub=function(a,b){return a-b},ia=k.getDataParser={column:function(b,d,e){var m=b[g],f=d.borderWidth;return function(g,k,E){var n=d.plotgradientcolor,l=d.is3d,K=d.isRoundEdges,p=d.plotBorderColor,M=c(g.color,d.color),r=c(g.ratio,d.ratio),q=ga(d.plotBorderAlpha),t=
a(g.dashed,d.dashed),w=c(g.dashlen,d.dashLen),v=c(g.dashgap,d.dashGap),V=d.use3DLighting,Y=ga(c(g.alpha,d.alpha)).toString(),B={opacity:Y/100},F=d.isBar,u=d.fillAangle,da=0>E?F?180-u:360-u:u,u=S(M+za+n,Y,r,da,K,p,$(Y,q).toString(),F,l),G=t?h(w,v,f):"none";k=e.getPointStub(g,E,m.oriCatTmp[k],b,d,d.showValues,d.yAxis);g=e.pointHoverOptions(g,d,{plotType:"column",is3d:l,isBar:F,use3DLighting:V,isRoundEdged:K,color:M,gradientColor:n,alpha:Y,ratio:r,angle:da,borderWidth:f,borderColor:p,borderAlpha:q,borderDashed:t,
borderDashGap:v,borderDashLen:w,shadow:B});k.y=E;k.shadow=B;k.color=u[0];k.borderColor=u[1];k.borderWidth=f;k.use3DLighting=V;k.dashStyle=G;k.tooltipConstraint=e.tooltipConstraint;k.hoverEffects=g.enabled&&g.options;k.rolloverProperties=g.enabled&&g.rolloverOptions;return k}},line:function(b,d,e){var m=b[g];return function(f,g,k){var E=a(f.alpha,d.lineAlpha),n={opacity:E/100},l=a(f.anchorsides,d.anchorSides,0),K=a(f.anchorborderthickness,d.anchorBorderThickness,1),p=ba(c(f.anchorbordercolor,d.anchorBorderColor)),
M=ba(c(f.anchorbgcolor,d.anchorBgColor)),r=a(f.anchorstartangle,d.anchorStartAngle,90),q=c(f.anchoralpha,d.anchorAlpha),t=c(f.anchorbgalpha,q),w=a(f.anchorradius,d.anchorRadius),v=Boolean(a(f.anchorshadow,d.anchorShadow,0));g=e.getPointStub(f,k,m.oriCatTmp[g],b,d,d.showValues,d.yAxis);var V=c(f.anchorimageurl,d.imageUrl),Y=c(f.anchorimagescale,d.imageScale),B=c(f.anchorimagealpha,d.imageAlpha);g.y=k;g.shadow=n;g.anchorShadow=d.anchorShadow;g.dashStyle=a(f.dashed,d.lineDashed)?h(d.lineDashLen,d.lineDashGap,
d.lineThickness):null;g.color={FCcolor:{color:ba(c(f.color,d.lineColor)),alpha:E}};g.valuePosition=c(f.valueposition,d.valuePosition);k=e.pointHoverOptions(f,d,{plotType:"anchor",anchorBgColor:M,anchorAlpha:q,anchorBgAlpha:t,anchorAngle:r,anchorBorderThickness:K,anchorBorderColor:p,anchorBorderAlpha:q,anchorSides:l,anchorRadius:w,imageUrl:V,imageScale:Y,imageAlpha:B,shadow:n});g.marker={enabled:void 0===d.drawAnchors?0!==E:!!d.drawAnchors,shadow:v&&{opacity:q/100},fillColor:{FCcolor:{color:ba(c(f.anchorbgcolor,
d.anchorBgColor)),alpha:(c(f.anchorbgalpha,d.anchorBgAlpha)*q/100).toString()}},lineColor:{FCcolor:{color:ba(c(f.anchorbordercolor,d.anchorBorderColor)),alpha:q}},imageUrl:V,imageScale:Y,imageAlpha:B,lineWidth:a(f.anchorborderthickness,d.anchorBorderThickness),radius:a(f.anchorradius,d.anchorRadius),symbol:Ra(a(f.anchorsides,d.anchorSides)),startAngle:c(f.anchorstartangle,d.anchorAngle)};g.hoverEffects=k.enabled&&k.options;g.rolloverProperties=k.enabled&&k.rolloverOptions;return g}},area:function(b,
d,e){var m=b[g];return function(f,g,h){var k=c(f.alpha,d.fillAlpha),E={opacity:W(k,d.lineAlpha)/100,inverted:!0},n=a(f.anchorsides,d.anchorSides,0),l=a(f.anchorborderthickness,d.anchorBorderThickness,1),K=ba(c(f.anchorbordercolor,d.anchorBorderColor)),p=ba(c(f.anchorbgcolor,d.anchorBgColor)),M=a(f.anchorstartangle,d.anchorStartAngle,90),r=c(f.anchoralpha,d.anchorAlpha),q=c(f.anchorbgalpha,r),t=a(f.anchorradius,d.anchorRadius),w=Boolean(a(f.anchorshadow,d.anchorShadow,0));g=e.getPointStub(f,h,m.oriCatTmp[g],
b,d,d.showValues,d.yAxis);var v=c(f.anchorimageurl,d.imageUrl),V=c(f.anchorimagescale,d.imageScale),Y=c(f.anchorimagealpha,d.imageAlpha);g.y=h;g.shadow=E;g.anchorShadow=d.anchorShadow;g.color={FCcolor:{color:ba(c(f.color,d.fillColor)),alpha:k}};g.valuePosition=c(f.valueposition,d.valuePosition);h=e.pointHoverOptions(f,d,{plotType:"anchor",anchorBgColor:p,anchorAlpha:r,anchorBgAlpha:q,anchorAngle:M,anchorBorderThickness:l,anchorBorderColor:K,anchorBorderAlpha:r,anchorSides:n,anchorRadius:t,imageUrl:v,
imageScale:V,imageAlpha:Y,shadow:E});g.marker={enabled:d.drawAnchors,shadow:w&&{opacity:r/100},fillColor:{FCcolor:{color:ba(c(f.anchorbgcolor,d.anchorBgColor)),alpha:(c(f.anchorbgalpha,d.anchorBgAlpha)*r/100).toString()}},lineColor:{FCcolor:{color:ba(c(f.anchorbordercolor,d.anchorBorderColor)),alpha:r}},imageUrl:v,imageScale:V,imageAlpha:Y,lineWidth:a(f.anchorborderthickness,d.anchorBorderThickness),radius:t,symbol:Ra(a(f.anchorsides,d.anchorSides)),startAngle:c(f.anchorstartangle,d.anchorAngle)};
g.hoverEffects=h.enabled&&h.options;g.rolloverProperties=h.enabled&&h.rolloverOptions;g.events={click:d.getLink};return g}}};e.core.options.resizeTrackingInterval=300;e.core.options.preventTrackResize=!1;e.core.options.SVGDefinitionURL="relative";k.createChart=function(b,d,g,m,f,h,E){var H=b.jsVars,n,l,K=sa[g||(g=b.chartType())],p,M=H.hasNativeMessage,r=b.options,q=b.args,t;t=function(a){var c={renderer:"javascript"},f=H.fcObj,h=f.width,n=f.height,l=K&&K.eiMethods,r=H.overlayButton,q;d.jsVars=b.jsVars;
H.container=d;H.hcObj=a;H.type=g;H.width=d.offsetWidth;H.height=d.offsetHeight;H.instanceAPI=p;if(a.hasRendered){e.extend(d,ma);if(l&&"string"!==typeof l)for(q in l)d[q]=l[q];H.overlayButtonActive&&r&&(r.innerHTML="",r.appendChild(D.createTextNode(H.overlayButtonMessage)),a.container.appendChild(r))}(/\%/g.test(h)||/\%/g.test(n))&&d&&d.parentNode&&!e.core.options.preventTrackResize&&Ha(f,d);m&&(m({success:a.hasRendered,ref:d,id:b.id}),a.hasRendered&&(k.raiseEvent("loaded",{type:g,renderer:"javascript"},
b,[b.id]),M||(f.__state.firstRenderNotified=!0,setTimeout(function(){k.raiseEvent("rendered",{renderer:"javascript"},f,[f.id])},0))));a.hasRendered&&H.previousDrawCount<H.drawCount&&(c.width=H.width,c.height=H.height,c.drawCount=H.drawCount,c.displayingMessage=M,c.renderer=f.options.renderer,k.raiseEvent("drawcomplete",c,f,[f.id]),M||E||setTimeout(function(){f.__state&&!f.__state.firstRenderNotified&&k.raiseEvent("rendered",{renderer:"javascript"},f,[f.id]);e.raiseEvent("renderComplete",c,f)},0))};
H.instanceAPI&&H.instanceAPI.dispose&&H.instanceAPI.dispose();p=K?new sa(g):new sa("stub");p.chartInstance=b;p.origRenderWidth=b.__state.renderedWidth;p.origRenderHeight=b.__state.renderedHeight;void 0!==f?"string"===typeof f&&(f=new ja(d,f,b),M=H.hasNativeMessage=!0):!K||!K.init||K&&"stub"===K.name?(b._chartMessageImageStyle={imageHAlign:c(q.typeNotSupportedMessageImageHAlign,r.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:c(q.typeNotSupportedMessageImageVAlign,r.baseChartMessageImageVAlign).toLowerCase(),
imageAlpha:a(q.typeNotSupportedMessageImageAlpha,r.baseChartMessageImageAlpha),imageScale:a(q.typeNotSupportedMessageImageScale,r.baseChartMessageImageScale)},b._chartMessageStyle={color:q.typeNotSupportedMessageColor||r.baseChartMessageColor,fontFamily:q.typeNotSupportedMessageFont||r.baseChartMessageFont,fontSize:q.typeNotSupportedMessageFontSize||r.baseChartMessageFontSize},f=new ja(d,r.typeNotSupportedMessage,b),M=H.hasNativeMessage=!0):H.message?(f=new ja(d,H.message,b),M=H.hasNativeMessage=
!0):H.loadError?(b._chartMessageImageStyle={imageHAlign:c(q.dataLoadErrorMessageImageHAlign,r.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:c(q.dataLoadErrorMessageImageVAlign,r.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:a(q.dataLoadErrorMessageImageAlpha,r.baseChartMessageImageAlpha),imageScale:a(q.dataLoadErrorMessageImageScale,r.baseChartMessageImageScale)},b._chartMessageStyle={color:q.dataLoadErrorMessageColor||r.baseChartMessageColor,fontFamily:q.dataLoadErrorMessageFont||
r.baseChartMessageFont,fontSize:q.dataLoadErrorMessageFontSize||r.baseChartMessageFontSize},f=new ja(d,r.dataLoadErrorMessage,b),M=H.hasNativeMessage=!0):H.stallLoad?(b._chartMessageImageStyle={imageHAlign:c(q.dataLoadStartMessageImageHAlign,r.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:c(q.dataLoadStartMessageImageVAlign,r.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:a(q.dataLoadStartMessageImageAlpha,r.baseChartMessageImageAlpha),imageScale:a(q.dataLoadStartMessageImageScale,
r.baseChartMessageImageScale)},b._chartMessageStyle={fontFamily:q.dataLoadStartMessageFont||r.baseChartMessageFont,fontSize:q.dataLoadStartMessageFontSize||r.baseChartMessageFontSize,color:q.dataLoadStartMessageColor||r.baseChartMessageColor},f=new ja(d,r.dataLoadStartMessage,b),M=H.hasNativeMessage=!0):(e.raiseEvent("internal.drawStart",{chartType:g,logicName:p.name,logicBase:p.base&&p.base.name,defaultSeriesType:p.defaultSeriesType},b),n=b.jsVars&&b.jsVars.themeObject&&b.jsVars.themeObject.getThemedJSONData()||
b.getChartData(e.dataFormats.JSON,!0),l=n.data,n.error instanceof Error?(b._chartMessageImageStyle={imageHAlign:c(q.dataInvalidMessageImageHAlign,r.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:c(q.dataInvalidMessageImageVAlign,r.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:a(q.dataInvalidMessageImageAlpha,r.baseChartMessageImageAlpha),imageScale:a(q.dataInvalidMessageImageScale,r.baseChartMessageImageScale)},b._chartMessageStyle={fontFamily:q.dataInvalidMessageFont||r.baseChartMessageFont,
fontSize:q.dataInvalidMessageFontSize||r.baseChartMessageFontSize,color:q.dataInvalidMessageColor||r.baseChartMessageColor},f=new ja(d,r.dataInvalidMessage,b),M=H.hasNativeMessage=!0,b.__state.dataReady=!1,E||e.raiseEvent("dataInvalid",{error:n.error},H.fcObj,void 0,function(){k.raiseEvent("dataxmlinvalid",{},b,[b.id])})):(E||k.raiseEvent("dataloaded",{},b,[b.id]),f=p.init(d,l,b,t),p.inited=!0,H.previousDrawCount=H.drawCount,H.drawCount+=1,0===f.series.length?(b._chartMessageImageStyle={imageHAlign:c(q.dataEmptyMessageImageHAlign,
r.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:c(q.dataEmptyMessageImageVAlign,r.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:a(q.dataEmptyMessageImageAlpha,r.baseChartMessageImageAlpha),imageScale:a(q.dataEmptyMessageImageScale,r.baseChartMessageImageScale)},b._chartMessageStyle={fontFamily:q.dataEmptyMessageFont||r.baseChartMessageFont,fontSize:q.dataEmptyMessageFontSize||r.baseChartMessageFontSize,color:q.dataEmptyMessageColor||r.baseChartMessageColor},f=new ja(d,r.dataEmptyMessage,
b),M=H.hasNativeMessage=!0,b.__state.dataReady=!1,E||k.raiseEvent("nodatatodisplay",{},b,[b.id])):(b.__state.dataReady=!0,M=H.hasNativeMessage=!1,delete H.message)));f||(b._chartMessageImageStyle={imageHAlign:r.baseChartMessageImageHAlign,imageVAlign:r.baseChartMessageImageVAlign,imageAlpha:r.baseChartMessageImageAlpha,imageScale:r.baseChartMessageImageScale},b._chartMessageStyle={fontFamily:r.baseChartMessageFont,fontSize:r.baseChartMessageFontSize,color:r.baseChartMessageColor},f=new ja(d,"Error rendering chart {0x01}",
b),M=H.hasNativeMessage=!0);M&&!p.inited&&p.init(d,l,b,t);f.chart=f.chart||{};f.credits=f.credits||{};f.credits.enabled=K&&!0===K.creditLabel?!0:!1;!1===h&&(f.chart.animation=!1,f.plotOptions||(f.plotOptions={}),f.plotOptions.series||(f.plotOptions.series={}),f.plotOptions.series.animation=!1);d.style&&(f.chart.containerBackgroundColor=k.getContainerBackgroundColor(b));return p.draw(f,t)};sa("base",{useScaleRecursively:!0,tooltipConstraint:"chart",rendererId:"root",canvasPaddingModifiers:["anchor",
"anchorlabel"],drawAnnotations:!0,draw:function(a,b){var c=this.renderer;c||(c=this.renderer=new sa("renderer."+this.rendererId));this.updateDefaultAnnotations();return c.init(this,a,b)},init:function(g,m,A){var h=this.chartInstance||A,f=h.jsVars;A=f._reflowData||(f._reflowData={});var E=f._reflowClean,n=h.options,H=n.args,l,K;/^\s*absolute\s*$/i.test(e.core.options.SVGDefinitionURL)&&(u._url=(u._g&&u._g.win||q).location.href.replace(/#.*?$/,b));this.dataObj=m=d({},m);K=m.chart=m.chart||m.graph||
m.map||{};delete m.graph;delete m.map;A&&!this.stateless&&(l=A.hcJSON,delete A.hcJSON,d(this,A,!0),this.preReflowAdjustments&&this.preReflowAdjustments.call(this),A.hcJSON=l);this.containerElement=g;this.config={};this.smartLabel=f.smartLabel;this.smartLabel.useEllipsesOnOverflow(a(K.useellipseswhenoverflow,K.useellipsewhenoverflow,1));this.colorManager=new k.colorManager(m,this);this.linkClickFN=Y(m,h);this.numberFormatter=new V(m.chart,this);if(!this.standaloneInit)return h._chartMessageImageStyle=
{imageHAlign:c(H.typeNotSupportedMessageImageHAlign,n.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:c(H.typeNotSupportedMessageImageVAlign,n.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:a(H.typeNotSupportedMessageImageAlpha,n.baseChartMessageImageAlpha),imageScale:a(H.typeNotSupportedMessageImageScale,n.baseChartMessageImageScale)},h._chartMessageStyle={fontFamily:H.typeNotSupportedMessageFont||n.baseChartMessageFont,fontSize:H.typeNotSupportedMessageFontSize||n.baseChartMessageFontSize,
color:H.typeNotSupportedMessageColor||n.baseChartMessageColor},new k.createDialog(g,n.typeNotSupportedMessage,h);g=this.chart(g.offsetWidth||parseFloat(g.style.width),g.offsetHeight||parseFloat(g.style.height),h);A&&!this.stateless&&(A.hcJSON&&d(g,A.hcJSON,!0),this.postReflowAdjustments&&this.postReflowAdjustments.call(this),E&&this.cleanedData&&(this.cleanedData(this,E),this.cleanedData(A,E)));return g},postSpaceManager:function(){var b=this.hcJSON,c=b._FCconf,d=b.chart,e=d.marginLeft,f=d.spacingLeft,
g=d.spacingRight,m=c.width-e-d.marginRight,h=b.title,b=b.subtitle,k=c.width,E=h.align,c=h.x,n=h.horizontalPadding,l=h.alignWithCanvas,K=(G(e)||0)+a(m,k)/2,e=this.snapLiterals||(this.snapLiterals={}),m=h._captionWidth,p=b._subCaptionWidth,r=h._lineHeight,M=b._lineHeight,q=h.text;if(void 0===c){switch(E){case ha:c=l?k-d.marginRight-n:k-n;break;case Sa:c=l?d.marginLeft+n:n;break;default:c=l?K:f+.5*(k-f-g)||k/2}h.align===Sa?(g=f=0,h.align="start"):h.align===ha?(f=m,g=p,h.align="end"):(f=m/2,g=p/2,h.align=
"middle");h.x=c;h.y=h.y||d.spacingTop||0;b.y=q?h.y+r+2:h.y||d.spacingTop||0;e.captionstartx=c-f-2;e.captionwidth=m+4;e.captionendx=e.captionstartx+e.captionwidth;e.captionstarty=h.y||0;e.captionheight=r+2;e.captionendy=e.captionstarty+e.captionheight;e.subcaptionstartx=c-g-2;e.subcaptionwidth=p+4;e.subcaptionendx=e.subcaptionstartx+e.subcaptionwidth;e.subcaptionstarty=b.y||0;e.subcaptionheight=M+2;e.subcaptionendy=e.subcaptionstarty+e.subcaptionheight}},chart:function(s,m){var A=this.name,k=this.dataObj,
f=k.chart,n=this.colorManager,l,H,K,w,v,V,Y,I=this.defaultSeriesType,u,da,G,na,D,L,ca,ja,C,J,N,P,ra,Ha,ma,Ka,ta,Wa,ia,R,rb,wb,Fa,Jb,Q,S,U,Tb,Aa,Ua,ub,$,Eb,Fb,Ob,vb,sa,Mb,ka,fa,ga,la,xa,ya,Ca,Ra,La,Ta,Hb,Ab,sb,hb,kb,qb,Ba,Vb,qc,ab,gb,ic,rc,tc,yc,Kb,lb,zc,Dc,Qa,Bc,hd,ec,id,uc,jd,Yc,Zb,ua,Yb,fc,Pa,Lb,ob,Bb,Cb,$b,kd,tb,gc,jc,rd,fb,kc,zb,Za,Nb,Rc,Zc,ld,lc,Db,Pb,Wb;l=Ma(k,s,m,this);C=l.chart;ja=l.xAxis;u=l[g];this.snapLiterals||(this.snapLiterals={});N=this.snapLiterals;N.chartstartx=0;N.chartstarty=0;
N.chartwidth=s;N.chartheight=m;N.chartendx=s;N.chartendy=m;N.chartcenterx=s/2;N.chartcentery=m/2;N.chartbottommargin=C.spacingBottom;N.chartleftmargin=C.spacingLeft;N.chartrightmargin=C.spacingRight;N.charttopmargin=C.spacingTop;this.updateSnapPoints&&this.updateSnapPoints();this.postHCJSONCreation&&this.postHCJSONCreation.call(this,l);e.raiseEvent("internal.postlogic",this,this.chartInstance);l.labels.smartLabel=V=u.smartLabel=this.smartLabel;u.width=s;u.height=m;G=l.plotOptions;u.isDual=this.isDual;
u.numberFormatter=this.numberFormatter;u.axisGridManager=new E(I,f);u.tooltext=f.plottooltext;u.trendLineToolText=f.trendlinetooltext;C.is3D=H=u.is3d=/3d$/.test(I);C.isBar=da=u.isBar=this.isBar;Y=/^pie/.test(I);ca=1==f.useroundedges;L=H?mb.chart3D:mb.chart2D;C.events.click=l.plotOptions.series.point.events.click=this.linkClickFN;C.defaultSeriesType=I;Ka=0<f.palette&&6>f.palette?f.palette:a(this.paletteIndex,1);--Ka;C.paletteIndex=Ka;C.usePerPointLabelColor=f.colorlabelsfromplot==db;C.syncLabelWithAnchor=
a(f.synclabelwithanchoronhover,1);C.useRoundEdges=ca&&!H&&!this.distributedColumns&&"pie"!==this.defaultSeriesType;void 0!==c(f.clickurl)&&(C.link=f.clickurl,C.style.cursor="pointer",l.plotOptions.series.point.events.click=function(){C.events.click.call({link:f.clickurl})});ta=c(f.basefont,"Verdana,sans");Wa=B(f.basefontsize,10);ia=c(f.basefontcolor,n.getColor(L.baseFontColor));R=c(f.outcnvbasefont,ta);rb=B(f.outcnvbasefontsize,Wa);wb=rb+Ga;Fa=c(f.outcnvbasefontcolor,ia).replace(/^#?([a-f0-9]+)/ig,
"#$1");S=Wa;Wa+=Ga;ia=ia.replace(/^#?([a-f0-9]+)/ig,"#$1");u.trendStyle=u.outCanvasStyle={fontFamily:R,color:Fa,fontSize:wb};Jb=r(u.trendStyle);u.inCanvasStyle={fontFamily:ta,fontSize:Wa,color:ia};Q=r(u.inCanvasStyle);u.divlineStyle={fontFamily:ta,fontSize:Wa,color:ia,lineHeight:Q};ja.labels.style={fontFamily:c(f.labelfont,R),fontSize:a(f.labelfontsize,rb)+Ga,color:c(f.labelfontcolor,Fa)};ja.labels.style.lineHeight=r(ja.labels.style);ja.steppedLabels.style={fontFamily:R,fontSize:wb,lineHeight:Jb,
color:Fa,visibility:"hidden"};l.yAxis[0].labels.style={fontFamily:R,fontSize:wb,lineHeight:Jb,color:Fa};l.yAxis[1].labels.style={fontFamily:R,fontSize:wb,lineHeight:Jb,color:Fa};Tb=c(f.legenditemfont,R);Aa=B(f.legenditemfontsize,rb);Ua=c(f.legenditemfontcolor,Fa).replace(/^#?([a-f0-9]+)/ig,"#$1");ub=Va[a(f.legenditemfontbold,0)]||"";U=B(f.legendcaptionfontsize,rb)+Ga;Aa+=Ga;l.legend.itemStyle={fontFamily:Tb,fontSize:Aa,color:Ua,fontWeight:ub};r(l.legend.itemStyle);l.legend.itemHiddenStyle={fontFamily:Tb,
fontSize:Aa,color:c(f.legenditemhiddencolor,"cccccc").replace(/^#?([a-f0-9]+)/ig,"#$1"),fontWeight:ub};r(l.legend.itemHiddenStyle);l.legend.itemHoverStyle={color:c(f.legenditemhoverfontcolor,Ua).replace(/^#?([a-f0-9]+)/ig,"#$1")};l.legend.title.style={fontFamily:c(f.legendcaptionfont,Tb),fontSize:U,color:c(f.legendcaptionfontcolor,Fa).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontWeight:Va[a(f.legendcaptionfontbold,1)]||""};r(l.legend.title.style);l.legend.title.align=Ub[f.legendcaptionalignment&&f.legendcaptionalignment.toLowerCase()||
va]||Ub.center;J=(J=t(f.valuebordercolor,b))?T(J,a(f.valueborderalpha,f.valuealpha,100)):b;l.plotOptions.series.dataLabels.style={fontFamily:c(f.valuefont,ta),fontSize:c(f.valuefontsize,parseInt(Wa,10))+Ga,lineHeight:Q,color:T(c(f.valuefontcolor,ia),a(f.valuefontalpha,f.valuealpha,100)),fontWeight:a(f.valuefontbold)?"bold":"normal",fontStyle:a(f.valuefontitalic)?"italic":"normal",border:J||f.valuebgcolor?a(f.valueborderthickness,1)+"px solid":"",borderColor:J,borderThickness:a(f.valueborderthickness,
1),borderPadding:a(f.valueborderpadding,2),borderRadius:a(f.valueborderradius,0),backgroundColor:f.valuebgcolor?T(f.valuebgcolor,a(f.valuebgalpha,f.valuealpha,100)):b,borderDash:a(f.valueborderdashed,0)?h(a(f.valueborderdashlen,4),a(f.valueborderdashgap,2),a(f.valueborderthickness,1)):void 0};r(l.plotOptions.series.dataLabels.style);l.plotOptions.series.dataLabels.color=l.plotOptions.series.dataLabels.style.color;l.tooltip.style={fontFamily:ta,fontSize:Wa,lineHeight:Q,color:ia};l.title.style={fontFamily:c(f.captionfont,
R),color:c(f.captionfontcolor,Fa).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:a(f.captionfontsize,rb+3)+Ga,fontWeight:0===a(f.captionfontbold)?"normal":"bold"};l.title.align=c(f.captionalignment,va);l.title.isOnTop=a(f.captionontop,1);l.title.alignWithCanvas=a(f.aligncaptionwithcanvas,this.alignCaptionWithCanvas,1);l.title.horizontalPadding=a(f.captionhorizontalpadding,l.title.alignWithCanvas?0:15);r(l.title.style);l.subtitle.style={fontFamily:c(f.subcaptionfont,f.captionfont,R),color:c(f.subcaptionfontcolor,
f.captionfontcolor,Fa).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:a(f.subcaptionfontsize,a(W(a(f.captionfontsize)-3,-1),rb)+a(this.subTitleFontSizeExtender,1))+Ga,fontWeight:0===a(f.subcaptionfontbold,this.subTitleFontWeight,f.captionfontbold)?"normal":"bold"};l.subtitle.align=l.title.align;l.subtitle.isOnTop=l.title.isOnTop;l.subtitle.alignWithCanvas=l.title.alignWithCanvas;l.subtitle.horizontalPadding=l.title.horizontalPadding;r(l.subtitle.style);J=(J=t(f.xaxisnamebordercolor,b))?T(J,a(f.xaxisnameborderalpha,
f.xaxisnamealpha,100)):b;ja.title.style={fontFamily:c(f.xaxisnamefont,R),fontSize:c(f.xaxisnamefontsize,parseInt(wb,10))+Ga,color:T(c(f.xaxisnamefontcolor,Fa),a(f.xaxisnamefontalpha,f.xaxisnamealpha,100)),fontWeight:a(f.xaxisnamefontbold,1)?"bold":"normal",fontStyle:a(f.xaxisnamefontitalic)?"italic":"normal",border:J||f.xaxisnamebgcolor?a(f.xaxisnameborderthickness,1)+"px solid":void 0,borderColor:J,borderThickness:a(f.xaxisnameborderthickness,1),borderPadding:a(f.xaxisnameborderpadding,2),borderRadius:a(f.xaxisnameborderradius,
0),backgroundColor:f.xaxisnamebgcolor?T(f.xaxisnamebgcolor,a(f.xaxisnamebgalpha,f.xaxisnamealpha,100)):b,borderDash:a(f.xaxisnameborderdashed,0)?h(a(f.xaxisnameborderdashlen,4),a(f.xaxisnameborderdashgap,2),a(f.xaxisnameborderthickness,1)):void 0};r(ja.title.style);J=(J=c(f.pyaxisnamebordercolor,f.yaxisnamebordercolor,b))?T(J,a(f.pyaxisnameborderalpha,f.yaxisnameborderalpha,f.pyaxisnamealpha,f.yaxisnamealpha,100)):b;l.yAxis[0].title.style={fontFamily:c(f.pyaxisnamefont,f.yaxisnamefont,R),fontSize:c(f.pyaxisnamefontsize,
f.yaxisnamefontsize,parseInt(wb,10))+Ga,color:T(c(f.pyaxisnamefontcolor,f.yaxisnamefontcolor,Fa),a(f.pyaxisnamefontalpha,f.yaxisnamefontalpha,f.pyaxisnamealpha,f.yaxisnamealpha,100)),fontWeight:a(f.pyaxisnamefontbold,f.yaxisnamefontbold,1)?"bold":"normal",fontStyle:a(f.pyaxisnamefontitalic,f.yaxisnamefontitalic)?"italic":"normal",border:J||f.pyaxisnamebgcolor||f.yaxisnamebgcolor?a(f.pyaxisnameborderthickness,f.yaxisnameborderthickness,1)+"px solid":void 0,borderColor:J,borderThickness:a(f.pyaxisnameborderthickness,
f.yaxisnameborderthickness,1),borderPadding:a(f.pyaxisnameborderpadding,f.yaxisnameborderpadding,2),borderRadius:a(f.pyaxisnameborderradius,f.yaxisnameborderradius,0),backgroundColor:f.pyaxisnamebgcolor||f.yaxisnamebgcolor?T(c(f.pyaxisnamebgcolor,f.yaxisnamebgcolor),a(f.pyaxisnamebgalpha,f.yaxisnamebgalpha,f.pyaxisnamealpha,f.yaxisnamealpha,100)):b,borderDash:a(f.pyaxisnameborderdashed,f.yaxisnameborderdashed,0)?h(a(f.pyaxisnameborderdashlen,f.yaxisnameborderdashlen,4),a(f.pyaxisnameborderdashgap,
f.yaxisnameborderdashgap,2),a(f.pyaxisnameborderthickness,f.yaxisnameborderthickness,1)):void 0};r(l.yAxis[0].title.style);l.yAxis[1].title.style={fontFamily:R,color:Fa,fontSize:wb,lineHeight:void 0,fontWeight:"bold"};J=(J=c(f.syaxisnamebordercolor,f.yaxisnamebordercolor,b))?T(J,a(f.syaxisnameborderalpha,f.yaxisnameborderalpha,f.syaxisnamealpha,f.yaxisnamealpha,100)):b;l.yAxis[1].title.style={fontFamily:c(f.syaxisnamefont,f.yaxisnamefont,R),fontSize:c(f.syaxisnamefontsize,f.yaxisnamefontsize,parseInt(wb,
10))+Ga,color:T(c(f.syaxisnamefontcolor,f.yaxisnamefontcolor,Fa),a(f.syaxisnamefontalpha,f.yaxisnamefontalpha,f.syaxisnamealpha,f.yaxisnamealpha,100)),fontWeight:a(f.syaxisnamefontbold,f.yaxisnamefontbold,1)?"bold":"normal",fontStyle:a(f.syaxisnamefontitalic,f.yaxisnamefontitalic)?"italic":"normal",border:J||f.syaxisnamebgcolor||f.yaxisnamebgcolor?a(f.syaxisnameborderthickness,f.yaxisnameborderthickness,1)+"px solid":void 0,borderColor:J,borderThickness:a(f.syaxisnameborderthickness,f.yaxisnameborderthickness,
1),borderPadding:a(f.syaxisnameborderpadding,f.yaxisnameborderpadding,2),borderRadius:a(f.syaxisnameborderradius,f.yaxisnameborderradius,0),backgroundColor:f.syaxisnamebgcolor||f.yaxisnamebgcolor?T(c(f.syaxisnamebgcolor,f.yaxisnamebgcolor),a(f.syaxisnamebgalpha,f.yaxisnamebgalpha,f.syaxisnamealpha,f.yaxisnamealpha,100)):b,borderDash:a(f.syaxisnameborderdashed,f.yaxisnameborderdashed,0)?h(a(f.syaxisnameborderdashlen,f.yaxisnameborderdashlen,4),a(f.syaxisnameborderdashgap,f.yaxisnameborderdashgap,2),
a(f.syaxisnameborderthickness,f.yaxisnameborderthickness,1)):void 0};r(l.yAxis[1].title.style);C.overlapColumns=a(f[da&&"overlapbars"||"overlapcolumns"],H?0:1);l.orphanStyles={defaultStyle:{style:d({},u.inCanvasStyle)},connectorlabels:{style:d({},l.plotOptions.series.dataLabels)},vyaxisname:{style:d({},l.yAxis[0].title.style)}};l.plotOptions.series.dataLabels.tlLabelStyle={fontFamily:p(f.tlfont,ta),color:ba(p(f.tlfontcolor,ia)),fontSize:B(f.tlfontsize,S)+"px"};r(l.plotOptions.series.dataLabels.tlLabelStyle);
l.plotOptions.series.dataLabels.trLabelStyle={fontFamily:p(f.trfont,ta),color:ba(p(f.trfontcolor,ia)),fontSize:B(f.trfontsize,S)+"px"};r(l.plotOptions.series.dataLabels.trLabelStyle);l.plotOptions.series.dataLabels.blLabelStyle={fontFamily:p(f.blfont,ta),color:ba(p(f.blfontcolor,ia)),fontSize:B(f.blfontsize,S)+"px"};r(l.plotOptions.series.dataLabels.blLabelStyle);l.plotOptions.series.dataLabels.brLabelStyle={fontFamily:p(f.brfont,ta),color:ba(p(f.brfontcolor,ia)),fontSize:B(f.brfontsize,S)+"px"};
r(l.plotOptions.series.dataLabels.brLabelStyle);this.parseStyles(l);delete l.xAxis.labels.style.backgroundColor;delete l.xAxis.labels.style.borderColor;delete l.yAxis[0].labels.style.backgroundColor;delete l.yAxis[0].labels.style.borderColor;delete l.yAxis[1].labels.style.backgroundColor;delete l.yAxis[1].labels.style.borderColor;u.showTooltip=a(f.showtooltip,this.showtooltip,1);u.tooltipSepChar=c(f.tooltipsepchar,this.tooltipsepchar,Xb);u.showValues=a(f.showvalues,this.showValues,1);u.seriesNameInToolTip=
a(f.seriesnameintooltip,1);u.showVLines=a(f.showvlines,1);u.showVLinesOnTop=a(f.showvlinesontop,0);u.showVLineLabels=a(f.showvlinelabels,this.showVLineLabels,1);u.showVLineLabelBorder=a(f.showvlinelabelborder,1);u.rotateVLineLabels=a(f.rotatevlinelabels,0);u.vLineColor=c(f.vlinecolor,"333333");u.vLineLabelColor=c(f.vlinelabelcolor);u.vLineThickness=c(f.vlinethickness,1);u.vLineAlpha=a(f.vlinealpha,80);u.vLineLabelBgColor=c(f.vlinelabelbgcolor,"ffffff");u.vLineLabelBgAlpha=a(f.vlinelabelbgalpha,H?
50:100);u.trendlineColor=c(f.trendlinecolor,"333333");u.trendlineThickness=c(f.trendlinethickness,1);u.trendlineAlpha=a(f.trendlinealpha);u.showTrendlinesOnTop=c(f.showtrendlinesontop,0);u.trendlineValuesOnOpp=c(f.trendlinevaluesonopp,f.trendlinevaluesonright,0);u.trendlinesAreDashed=a(f.trendlinesaredashed,0);u.trendlinesDashLen=a(f.trendlinedashlen,5);u.trendlinesDashGap=a(f.trendlinedashgap,2);u.showTrendlines=a(f.showtrendlines,1);u.showTrendlineLabels=a(f.showtrendlinelabels,this.showTrendlineLabels,
1);u.flatScrollBars=a(f.flatscrollbars,0);u.scrollBar3DLighting=a(f.scrollbar3dlighting,1);C.anchorTrackingRadius=a(f.anchortrackingradius,Xa?oa:ea);l.plotOptions.series.connectNullData=a(f.connectnulldata,0);C.backgroundColor={FCcolor:{color:c(f.bgcolor,n.getColor(L.bgColor)),alpha:c(f.bgalpha,n.getColor(L.bgAlpha)),angle:c(f.bgangle,n.getColor(L.bgAngle)),ratio:c(f.bgratio,n.getColor(L.bgRatio))}};C.rotateValues=a(f.rotatevalues,0);C.placeValuesInside=a(f.placevaluesinside,0);C.valuePosition=c(f.valueposition,
"auto");C.valuePadding=a(f.valuepadding,2);C.managePlotOverflow=a(f.manageplotoverflow,1);C.borderColor=T(c(f.bordercolor,H?"#666666":n.getColor("borderColor")),c(f.borderalpha,H?"100":n.getColor("borderAlpha")));na=a(f.showborder,H?0:1);C.borderWidth=na?a(f.borderthickness,1):0;C.borderRadius=a(f.borderradius,0);C.borderDashStyle=a(f.borderdashed,0)?h(a(f.borderdashlen,4),a(f.borderdashgap,2),C.borderWidth):void 0;C.plotBorderColor=T(c(f.canvasbordercolor,n.getColor("canvasBorderColor")),c(f.canvasborderalpha,
n.getColor("canvasBorderAlpha")));"0"!==f.showcanvasborder&&(D=Boolean(c(f.canvasborderthickness,ca?0:1)),"1"!==f.showaxislines&&"1"!==f.showxaxisline&&"1"!==f.showyaxisline&&"1"!==f.showsyaxisline||"1"===f.showcanvasborder||(D=0));C.plotBorderWidth=H||!D?0:a(f.canvasborderthickness,this.canvasborderthickness,C.useRoundEdges?1:2);C.bgSWF=c(f.bgimage,f.bgswf);C.bgSWFAlpha=a(f.bgimagealpha,f.bgswfalpha,100);$=c(f.bgimagedisplaymode,"none").toLowerCase();Eb=p(f.bgimagevalign,b).toLowerCase();Fb=p(f.bgimagehalign,
b).toLowerCase();"tile"==$||"fill"==$||"fit"==$?(Eb!=qa&&"middle"!=Eb&&Eb!=Na&&(Eb="middle"),Fb!=Sa&&"middle"!=Fb&&Fb!=ha&&(Fb="middle")):(Eb!=qa&&"middle"!=Eb&&Eb!=Na&&(Eb=qa),Fb!=Sa&&"middle"!=Fb&&Fb!=ha&&(Fb=Sa));C.bgImageDisplayMode=$;C.bgImageVAlign=Eb;C.bgImageHAlign=Fb;C.bgImageScale=a(f.bgimagescale,100);C.logoURL=p(f.logourl);C.logoPosition=c(f.logoposition,"tl").toLowerCase();C.logoAlpha=a(f.logoalpha,100);C.logoLink=p(f.logolink);C.logoScale=a(f.logoscale,100);C.logoLeftMargin=a(f.logoleftmargin,
0);C.logoTopMargin=a(f.logotopmargin,0);Ob=C.toolbar={button:{}};vb=Ob.button;vb.scale=a(f.toolbarbuttonscale,1.15);vb.width=a(f.toolbarbuttonwidth,15);vb.height=a(f.toolbarbuttonheight,15);vb.radius=a(f.toolbarbuttonradius,2);vb.spacing=a(f.toolbarbuttonspacing,5);vb.fill=T(c(f.toolbarbuttoncolor,"ffffff"));vb.labelFill=T(c(f.toolbarlabelcolor,"cccccc"));vb.symbolFill=T(c(f.toolbarsymbolcolor,"ffffff"));vb.hoverFill=T(c(f.toolbarbuttonhovercolor,"ffffff"));vb.stroke=T(c(f.toolbarbuttonbordercolor,
"bbbbbb"));vb.symbolStroke=T(c(f.toolbarsymbolbordercolor,"9a9a9a"));vb.strokeWidth=a(f.toolbarbuttonborderthickness,1);vb.symbolStrokeWidth=a(f.toolbarsymbolborderthickness,1);sa=vb.symbolPadding=a(f.toolbarsymbolpadding,5);vb.symbolHPadding=a(f.toolbarsymbolhpadding,sa);vb.symbolVPadding=a(f.toolbarsymbolvpadding,sa);Mb=Ob.position=c(f.toolbarposition,"tr").toLowerCase();switch(Mb){case "tr":case "rt":case "top right":case "right top":Mb="tr";break;case "br":case "rb":case "bottom right":case "right bottom":Mb=
"br";break;case "tl":case "lt":case "top left":case "left top":Mb="tl";break;case "bl":case "lb":case "bottom left":case "left bottom":Mb="bl";break;default:Mb="tr"}ka=Ob.hAlign="left"===(b+f.toolbarhalign).toLowerCase()?"l":Mb.charAt(1);fa=Ob.vAlign="bottom"===(b+f.toolbarvalign).toLowerCase()?"b":Mb.charAt(0);Ob.hDirection=a(f.toolbarhdirection,"r"===ka?-1:1);Ob.vDirection=a(f.toolbarvdirection,"b"===fa?-1:1);Ob.vMargin=a(f.toolbarvmargin,6);Ob.hMargin=a(f.toolbarhmargin,10);Ob.x=a(f.toolbarx,"l"===
ka?0:s);Ob.y=a(f.toolbary,"t"===fa?0:m);ga=c(f.divlinecolor,n.getColor(L.divLineColor));la=c(f.divlinealpha,H?n.getColor("divLineAlpha3D"):n.getColor("divLineAlpha"));xa=a(f.divlinethickness,1);ya=Boolean(a(f.divlinedashed,f.divlineisdashed,this.divLineIsDashed,0));Ca=a(f.divlinedashlen,4);Ra=a(f.divlinedashgap,2);l.yAxis[0].gridLineColor=T(ga,la);l.yAxis[0].gridLineWidth=xa;l.yAxis[0].gridLineDashStyle=ya?h(Ca,Ra,xa):"none";l.yAxis[0].alternateGridColor=da?T(c(f.alternatevgridcolor,n.getColor("altVGridColor")),
1===a(f.showalternatevgridcolor,1)?c(f.alternatevgridalpha,n.getColor("altVGridAlpha")):Ea):T(c(f.alternatehgridcolor,n.getColor("altHGridColor")),"0"===f.showalternatehgridcolor?0:c(f.alternatehgridalpha,n.getColor("altHGridAlpha")));ic=a(f.vdivlinethickness,1);rc=Boolean(a(f.vdivlinedashed,f.vdivlineisdashed,0));tc=a(f.vdivlinedashlen,4);yc=a(f.vdivlinedashgap,2);ja.gridLineColor=T(c(f.vdivlinecolor,n.getColor(L.divLineColor)),c(f.vdivlinealpha,n.getColor("divLineAlpha")));ja.gridLineWidth=ic;ja.gridLineDashStyle=
rc?h(tc,yc,ic):"none";ja.alternateGridColor=T(c(f.alternatevgridcolor,n.getColor("altVGridColor")),"1"===f.showalternatehgridcolor?c(f.alternatevgridalpha,n.getColor("altVGridAlpha")):0);Ta=c(f.canvasbgcolor,n.getColor(L.canvasBgColor));Ab=c(f.canvasbgalpha,n.getColor("canvasBgAlpha"));c(f.showcanvasbg,db)==Ea&&(Ab="0");l.plotOptions.series.shadow=a(f.showshadow,f.showcolumnshadow,this.defaultPlotShadow,n.getColor("showShadow"));this.inversed&&(l.yAxis[0].reversed=!0,l.yAxis[1].reversed=!0);this.isStacked&&
(this.distributedColumns?(u.showStackTotal=Boolean(a(f.showsum,1)),v=a(f.usepercentdistribution,1),La=a(f.showpercentvalues,0),Hb=a(f.showpercentintooltip,v,0),u.showXAxisPercentValues=a(f.showxaxispercentvalues,1)):(u.showStackTotal=Boolean(a(this.showSum,f.showsum,0)),v=a(this.stack100percent,f.stack100percent,0),La=a(f.showpercentvalues,v,0),Hb=a(f.showpercentintooltip,La)),u.showPercentValues=La,u.showPercentInToolTip=Hb,v?(u.isValueAbs=!0,G[I].stacking="percent",u[0].stacking100Percent=!0):G[I].stacking=
"normal");this.isDual&&("0"===f.primaryaxisonleft&&(l.yAxis[0].opposite=!0,l.yAxis[1].opposite=!1),l.yAxis[0].showAlways=!0,l.yAxis[1].showAlways=!0);C.useRoundEdges&&(l.plotOptions.series.shadow=a(f.showshadow,f.showcolumnshadow,1),l.plotOptions.series.borderRadius=1,l.tooltip.style.borderRadius="2px",C.plotBorderRadius=3,D||(C.plotBorderWidth=0),C.plotShadow=l.plotOptions.series.shadow?{enabled:!0,opacity:Ab/100}:0);1===a(f.use3dlighting,1)&&(l.legend.lighting3d=!0);l.plotOptions.series.userMaxColWidth=
da?f.maxbarheight:a(f.maxcolwidth,this.maxColWidth);l.plotOptions.series.maxColWidth=pa(a(l.plotOptions.series.userMaxColWidth,50))||1;l.title.text=F(f.caption);l.subtitle.text=F(f.subcaption);0===a(f.showtooltip,this.showtooltip)&&(l.tooltip.enabled=!1);sb=l.tooltip.style;sb.backgroundColor=T(c(sb.backgroundColor,f.tooltipbgcolor,n.getColor("toolTipBgColor")),c(f.tooltipbgalpha,100));sb.borderColor=T(c(sb.borderColor,f.tooltipbordercolor,n.getColor("toolTipBorderColor")),c(f.tooltipborderalpha,100));
l.tooltip.shadow=a(f.showtooltipshadow,f.showshadow,1)?{enabled:!0,opacity:W(a(f.tooltipbgalpha,100),a(f.tooltipborderalpha,100))/100}:!1;l.tooltip.constrain=a(f.constraintooltip,1);sb.borderWidth=a(f.tooltipborderthickness,1)+"px";f.tooltipborderradius&&(sb.borderRadius=a(f.tooltipborderradius,1)+"px");sb.padding=a(f.tooltippadding,this.tooltippadding,3)+"px";f.tooltipcolor&&(sb.color=ba(f.tooltipcolor));u.userPlotSpacePercent=l.plotOptions.series.userPlotSpacePercent=f.plotspacepercent;hb=a(f.plotspacepercent,
20)%100;u.plotSpacePercent=l.plotOptions.series.groupPadding=hb/200;H&&!Y?(C.series2D3Dshift="mscombi3d"===A?!0:Boolean(a(f.use3dlineshift,0)),C.canvasBaseColor3D=c(f.canvasbasecolor,n.getColor("canvasBaseColor3D")),C.canvasBaseDepth=a(f.canvasbasedepth,10),C.canvasBgDepth=a(f.canvasbgdepth,3),C.showCanvasBg=Boolean(a(f.showcanvasbg,1)),C.showCanvasBase=Boolean(a(f.showcanvasbase,1)),da?(C.xDepth=5,C.yDepth=5,C.showCanvasBg&&(u.marginTopExtraSpace+=C.canvasBgDepth),u.marginLeftExtraSpace+=C.yDepth+
(C.showCanvasBase?C.canvasBaseDepth:0),u.marginBottomExtraSpace+=5):(C.xDepth=10,C.yDepth=10,C.showCanvasBg&&(u.marginRightExtraSpace+=C.canvasBgDepth),u.marginBottomExtraSpace+=C.yDepth+(C.showCanvasBase?C.canvasBaseDepth:0)),Ta=Ta.split(za)[0],Ab=Ab.split(za)[0],C.use3DLighting=Boolean(a(f.use3dlighting,1)),C.plotBackgroundColor=C.use3DLighting?{FCcolor:{color:Z(Ta,85)+za+Da(Ta,55),alpha:Ab+za+Ab,ratio:nb,angle:M(s-(C.marginLeft+C.marginRight),m-(C.marginTop+C.marginBottom),1)}}:T(Ta,Ab),C.canvasBgColor=
T(Z(Ta,80),Ab),K=c(f.zeroplanecolor,f.divlinecolor,n.getColor(L.divLineColor)),w=c(f.zeroplanealpha,f.divlinealpha,n.getColor("divLineAlpha")),C.zeroPlaneColor=T(K,w),C.zeroPlaneBorderColor=T(c(f.zeroplanebordercolor,K),a(f.zeroplaneshowborder,1)?w:0),C.zeroPlaneShowBorder=a(f.zeroplaneshowborder,1)):(C.is3D=!1,C.plotBackgroundColor={FCcolor:{color:Ta,alpha:Ab,angle:c(f.canvasbgangle,n.getColor("canvasBgAngle")),ratio:c(f.canvasbgratio,n.getColor("canvasBgRatio"))}});this.parseExportOptions(l);this.parseHoverEffectOptions(C);
this.preSeriesAddition&&this.preSeriesAddition(l,k,s,m);this.series&&this.series(k,l,A,s,m);this.postSeriesAddition(l,k,s,m);this.spaceManager(l,k,s,m);this.postSpaceManager&&this.postSpaceManager(l,k,s,m);kb=a(f.drawquadrant,0);u.isXYPlot&&kb&&(qb=ja.min,Ba=ja.max,Vb=l.yAxis[0].min,qc=l.yAxis[0].max,ab=a(f.quadrantxval,(qb+Ba)/2),gb=a(f.quadrantyval,(Vb+qc)/2),gb>=Vb&&gb<=qc&&ab>=qb&&ab<=Ba&&(Kb=T(c(f.quadrantlinecolor,C.plotBorderColor),c(f.quadrantlinealpha,$a)),lb=a(f.quadrantlinethickness,C.plotBorderWidth),
zc=a(f.quadrantlinedashed,f.quadrantlineisdashed,0),Dc=a(f.quadrantlinedashLen,4),Qa=a(f.quadrantlinedashgap,2),Bc=p(f.quadrantlabeltl,b),hd=p(f.quadrantlabeltr,b),ec=p(f.quadrantlabelbl,b),id=p(f.quadrantlabelbr,b),uc=a(f.quadrantlabelpadding,3),jd=zc?h(Dc,Qa,lb):"none",ja.plotLines.push({color:Kb,value:ab,width:lb,dashStyle:jd,zIndex:3}),l.yAxis[0].plotLines.push({color:Kb,value:gb,width:lb,dashStyle:jd,zIndex:3}),Yc=s-C.marginRight-C.marginLeft,Zb=m-C.marginTop-C.marginBottom,ob=u.inCanvasStyle,
ua=Yc/(Ba-qb)*(ab-qb),Yb=Yc-ua,Pa=Zb/(qc-Vb)*(gb-Vb),fc=Zb-Pa,ua-=uc,Yb-=uc,fc-=uc,Pa-=uc,Bb=uc+Ga,Cb=Zb-uc+Ga,$b=uc+Ga,kd=Yc-uc+Ga,V.setStyle(ob),0<fc&&(Bc!==b&&0<ua&&(J=t(f.quadrantlabeltlbordercolor,f.quadrantlabelbordercolor,b),Db=c(f.quadrantlabeltlbgcolor,f.quadrantlabelbgcolor),Pb=a(f.quadrantlabeltlborderthickness,f.quadrantlabelborderthickness,1),J=J?T(J,a(f.quadrantlabeltlborderalpha,f.quadrantlabelborderalpha,f.quadrantlabeltlalpha,f.quadrantlabelalpha,100)):b,Wb={left:$b,top:Bb,fontSize:c(a(f.quadrantlabeltlfontsize,
f.quadrantlabelfontsize),parseInt(ob.fontSize,10))+Ga,lineHeight:ob.lineHeight,fontFamily:c(f.quadrantlabeltlfont,f.quadrantlabelfont,ob.fontFamily),color:T(c(f.quadrantlabeltlfontcolor,f.quadrantlabelfontcolor,ob.color),a(f.quadrantlabeltlfontalpha,f.quadrantlabelfontalpha,100)),fontWeight:a(f.quadrantlabeltlfontbold,f.quadrantlabelfontbold)?"bold":"normal",fontStyle:a(f.quadrantlabeltlfontitalic,f.quadrantlabelfontitalic)?"italic":"normal",border:J||Db?Pb+"px solid":b,borderColor:J,borderThickness:Pb,
borderPadding:a(f.quadrantlabeltlborderpadding,f.quadrantlabelborderpadding,2),borderRadius:a(f.quadrantlabeltlborderradius,f.quadrantlabelborderradius,0),backgroundColor:Db?T(Db,a(f.quadrantlabeltlbgalpha,f.quadrantlabelbgalpha,f.quadrantlabeltlalpha,f.quadrantlabelalpha,100)):b,borderDash:a(f.quadrantlabeltlborderdashed,f.quadrantlabelborderdashed,0)?h(a(f.quadrantlabeltlborderdashlen,f.quadrantlabelborderdashlen,4),a(f.quadrantlabeltlborderdashgap,f.quadrantlabelborderdashgap,2),Pb):void 0},r(Wb),
V.setStyle(Wb),Lb=V.getSmartText(Bc,ua,fc),l.labels.items.push({html:Lb.text,title:Lb.title,zIndex:3,vAlign:qa,style:Wb})),hd!==b&&0<Yb&&(J=t(f.quadrantlabeltrbordercolor,f.quadrantlabelbordercolor,b),Db=c(f.quadrantlabeltrbgcolor,f.quadrantlabelbgcolor),Pb=a(f.quadrantlabeltrborderthickness,f.quadrantlabelborderthickness,1),J=J?T(J,a(f.quadrantlabeltrborderalpha,f.quadrantlabelborderalpha,f.quadrantlabeltralpha,f.quadrantlabelalpha,100)):b,Wb={left:kd,top:Bb,fontSize:c(a(f.quadrantlabeltrfontsize,
f.quadrantlabelfontsize),parseInt(ob.fontSize,10))+Ga,lineHeight:ob.lineHeight,fontFamily:c(f.quadrantlabeltrfont,f.quadrantlabelfont,ob.fontFamily),color:T(c(f.quadrantlabeltrfontcolor,f.quadrantlabelfontcolor,ob.color),a(f.quadrantlabeltrfontalpha,f.quadrantlabelfontalpha,100)),fontWeight:a(f.quadrantlabeltrfontbold,f.quadrantlabelfontbold)?"bold":"normal",fontStyle:a(f.quadrantlabeltrfontitalic,f.quadrantlabelfontitalic)?"italic":"normal",border:J||Db?Pb+"px solid":b,borderColor:J,borderThickness:Pb,
borderPadding:a(f.quadrantlabeltrborderpadding,f.quadrantlabelborderpadding,2),borderRadius:a(f.quadrantlabeltrborderradius,f.quadrantlabelborderradius,0),backgroundColor:Db?T(Db,a(f.quadrantlabeltrbgalpha,f.quadrantlabelbgalpha,f.quadrantlabeltralpha,f.quadrantlabelalpha,100)):b,borderDash:a(f.quadrantlabeltrborderdashed,f.quadrantlabelborderdashed,0)?h(a(f.quadrantlabeltrborderdashlen,f.quadrantlabelborderdashlen,4),a(f.quadrantlabeltrborderdashgap,f.quadrantlabelborderdashgap,2),Pb):void 0},r(Wb),
V.setStyle(Wb),Lb=V.getSmartText(hd,ua,fc),l.labels.items.push({html:Lb.text,textAlign:ha,title:Lb.title,zIndex:3,vAlign:qa,style:Wb}))),0<Pa&&(ec!==b&&0<ua&&(J=t(f.quadrantlabelblbordercolor,f.quadrantlabelbordercolor,b),Db=c(f.quadrantlabelblbgcolor,f.quadrantlabelbgcolor),Pb=a(f.quadrantlabelblborderthickness,f.quadrantlabelborderthickness,1),J=J?T(J,a(f.quadrantlabelblborderalpha,f.quadrantlabelborderalpha,f.quadrantlabelblalpha,f.quadrantlabelalpha,100)):b,Wb={left:$b,top:Cb,fontSize:c(a(f.quadrantlabelblfontsize,
f.quadrantlabelfontsize),parseInt(ob.fontSize,10))+Ga,lineHeight:ob.lineHeight,fontFamily:c(f.quadrantlabelblfont,f.quadrantlabelfont,ob.fontFamily),color:T(c(f.quadrantlabelblfontcolor,f.quadrantlabelfontcolor,ob.color),a(f.quadrantlabelblfontalpha,f.quadrantlabelfontalpha,100)),fontWeight:a(f.quadrantlabelblfontbold,f.quadrantlabelfontbold)?"bold":"normal",fontStyle:a(f.quadrantlabelblfontitalic,f.quadrantlabelfontitalic)?"italic":"normal",border:J||Db?Pb+"px solid":b,borderColor:J,borderThickness:Pb,
borderPadding:a(f.quadrantlabelblborderpadding,f.quadrantlabelborderpadding,2),borderRadius:a(f.quadrantlabelblborderradius,f.quadrantlabelborderradius,0),backgroundColor:Db?T(Db,a(f.quadrantlabelblbgalpha,f.quadrantlabelbgalpha,f.quadrantlabelblalpha,f.quadrantlabelalpha,100)):b,borderDash:a(f.quadrantlabelblborderdashed,f.quadrantlabelborderdashed,0)?h(a(f.quadrantlabelblborderdashlen,f.quadrantlabelborderdashlen,4),a(f.quadrantlabelblborderdashgap,f.quadrantlabelborderdashgap,2),Pb):void 0},r(Wb),
V.setStyle(Wb),Lb=V.getSmartText(ec,ua,fc),l.labels.items.push({html:Lb.text,textAlign:Sa,title:Lb.title,zIndex:3,vAlign:Na,style:Wb})),id!==b&&0<Yb&&(J=t(f.quadrantlabelbrbordercolor,f.quadrantlabelbordercolor,b),Db=c(f.quadrantlabelbrbgcolor,f.quadrantlabelbgcolor),Pb=a(f.quadrantlabelbrborderthickness,f.quadrantlabelborderthickness,1),J=J?T(J,a(f.quadrantlabelbrborderalpha,f.quadrantlabelborderalpha,f.quadrantlabelbralpha,f.quadrantlabelalpha,100)):b,Wb={left:kd,top:Cb,fontSize:c(a(f.quadrantlabelbrfontsize,
f.quadrantlabelfontsize),parseInt(ob.fontSize,10))+Ga,lineHeight:ob.lineHeight,fontFamily:c(f.quadrantlabelbrfont,f.quadrantlabelfont,ob.fontFamily),color:T(c(f.quadrantlabelbrfontcolor,f.quadrantlabelfontcolor,ob.color),a(f.quadrantlabelbrfontalpha,f.quadrantlabelfontalpha,100)),fontWeight:a(f.quadrantlabelbrfontbold,f.quadrantlabelfontbold)?"bold":"normal",fontStyle:a(f.quadrantlabelbrfontitalic,f.quadrantlabelfontitalic)?"italic":"normal",border:J||Db?Pb+"px solid":b,borderColor:J,borderThickness:Pb,
borderPadding:a(f.quadrantlabelbrborderpadding,f.quadrantlabelborderpadding,2),borderRadius:a(f.quadrantlabelbrborderradius,f.quadrantlabelborderradius,0),backgroundColor:Db?T(Db,a(f.quadrantlabelbrbgalpha,f.quadrantlabelbgalpha,f.quadrantlabelbralpha,f.quadrantlabelalpha,100)):b,borderDash:a(f.quadrantlabelbrborderdashed,f.quadrantlabelborderdashed,0)?h(a(f.quadrantlabelbrborderdashlen,f.quadrantlabelborderdashlen,4),a(f.quadrantlabelbrborderdashgap,f.quadrantlabelborderdashgap,2),Pb):void 0},r(Wb),
V.setStyle(Wb),Lb=V.getSmartText(id,ua,fc),l.labels.items.push({html:Lb.text,textAlign:ha,vAlign:Na,title:Lb.title,zIndex:3,style:Wb})))));if(this.hasVDivLine&&(tb=a(f.showvdivlines,0),gc=a(f.numvdivlines,0)+1,tb&&(gc=u.x.catCount-1),1<gc)){fb=ja.min;kc=u.x.catCount-1;zb=ja.max;Nb=kc/gc;Rc=!0;Zc=fb;ja.scroll&&!isNaN(ja.scroll.viewPortMax)&&(zb=ja.scroll.viewPortMax);jc=c(f.vdivlinecolor,ga);rd=a(f.vdivlinealpha,la);ic=a(f.vdivlinethickness,xa);rc=a(f.vdivlinedashed,f.vdivlineisdashed,ya);tc=a(f.vdivlinedashlen,
Ca);yc=a(f.vdivlinedashgap,Ra);(lc=a(f.showalternatevgridcolor,0))&&(ld=T(c(f.alternatevgridcolor,n.getColor("altVGridColor")),c(f.alternatevgridalpha,n.getColor("altVGridAlpha"))));for(Za=Nb;Za<kc;Za+=Nb,Rc=!Rc)Rc&&lc&&ja.plotBands.push({isNumVDIV:!0,color:ld,from:Zc,to:Za,zIndex:1}),ja.plotLines.push({isNumVDIV:!0,width:ic,color:T(jc,rd),dashStyle:rc?h(tc,yc,ic):"none",value:Za,zIndex:1}),Zc=Za;Rc&&lc&&ja.plotBands.push({isNumVDIV:!0,color:ld,from:Zc,to:zb,zIndex:1})}P=C.marginTop;ra=C.marginBottom;
Ha=C.marginLeft;ma=C.marginRight;N.canvasstartx=Ha;N.canvasstarty=P;N.canvasendx=s-ma;N.canvasendy=m-ra;N.canvaswidth=N.canvasendx-N.canvasstartx;N.canvasheight=N.canvasendy-N.canvasstarty;l.legend&&l.legend.enabled&&"vertical"===l.legend.layout&&(N.legendstarty=P+.5*(u.height-ra-P-N.legendheight)+(l.legend.y||0),N.legendendy=N.legendstarty+N.legendheight);H&&C.xDepth>C.marginLeft&&(C.marginLeft=C.xDepth);q.console&&q.console.log&&q.FC_DEV_ENVIRONMENT&&console.log(l);return l},parseHoverEffectOptions:function(b){var d=
this.dataObj.chart,e;b.showHoverEffect=d.showhovereffect;b.plotHoverEffect=a(d.plothovereffect,d.anchorhovereffect,b.showHoverEffect);e=b.plotHoverEffects={enabled:b.plotHoverEffect};e.highlight=a(d.highlightonhover,d.highlightplotonhover,b.plotHoverEffect);e.columnHighlight=a(e.highlight,d.highlightcolumnonhover,d.highlightbaronhover);e.anchorHighlight=a(e.highlight,d.highlightanchoronhover);e.imageHighlight=a(e.highlight,d.highlightanchorimageonhover);e.anchorImageHoverAlpha=c(d.anchorimagehoveralpha);
e.anchorImageHoverScale=c(d.anchorimagehoverscale);e.bubbleHighlight=a(e.highlight,d.highlightbubbleonhover);e.color=c(d.plotfillhovercolor,d.columnhovercolor,d.barhovercolor,d.bubblehovercolor);e.alpha=c(d.plotfillhoveralpha,d.columnhoveralpha,d.barhoveralpha,d.bubblehoveralpha);e.scale=c(d.plothoverscale,d.columnhoverscale,d.barhoverscale,d.bubblehoverscale);e.gradientColor=d.plothovergradientcolor;e.ratio=d.plothoverratio;e.angle=d.plothoverangle;e.borderColor=d.plotborderhovercolor;e.borderAlpha=
d.plotborderhoveralpha;e.borderThickness=d.plotborderhoverthickness;e.borderDashed=d.plotborderhoverdashed;e.borderDashGap=d.plotborderhoverdashgap;e.borderDashLen=d.plotborderhoverdashlen;e.shadow=d.plothovershadow;e.anchorScale=d.anchorhoverscale;e.anchorSides=d.anchorhoversides;e.anchorRadius=d.anchorhoverradius;e.anchorAlpha=d.anchorhoveralpha;e.anchorBgColor=c(d.anchorbghovercolor,d.anchorhovercolor);e.anchorBgAlpha=d.anchorbghoveralpha;e.anchorBorderColor=d.anchorborderhovercolor;e.anchorBorderAlpha=
d.anchorborderhoveralpha;e.anchorBorderThickness=d.anchorborderhoverthickness;e.anchorStartAngle=d.anchorhoverstartangle;e.anchorDip=a(d.anchorhoverdip);e.anchorAnimation=a(d.anchorhoveranimation,1);e.negativeColor=c(d.negativehovercolor,d.negativecolor);e.is3DBubble=a(d.is3donhover)},parseExportOptions:function(e){var g=this.chartInstance,m=this.dataObj.chart;d(e.exporting,{enabled:a(m.exportenabled,0),bgcolor:g.jsVars.transparent||0===a(g.options.containerBackgroundOpacity,1)?b:g.options.containerBackgroundColor||
"#ffffff",bgalpha:(g.jsVars.transparent?0:a(g.options.containerBackgroundOpacity,1))+b,exporttargetwindow:c(m.exporttargetwindow,Kb?"_blank":"_self"),exportaction:m.exportaction&&"save"===m.exportaction.toString().toLowerCase()&&"save"||"download",exportfilename:c(m.exportfilename,"FusionCharts"),exporthandler:c(m.html5exporthandler,m.exporthandler,J),exportparameters:c(m.exportparameters,b),exportformat:c(m.exportformat,"PNG"),exportcallback:c(m.exportcallback,b),exportwithimages:a(m.exportwithimages,
0),buttons:{printButton:{enabled:!!a(m.printshowbutton,m.showprintmenuitem,0)},exportButton:{enabled:!(!a(m.exportenabled,0)||!a(m.exportshowbutton,m.exportshowmenuitem,1))}}});var g=e.exporting,h;m=m.exportformats;e=C(e.exporting.exportaction);e={JPG:e+" as JPEG image",PNG:e+" as PNG image",PDF:e+" as PDF document",SVG:e+" as SVG vector image"};var f,k,E;if(m){m=m.split(/\s*?\|\s*?/);for(E=0;E<m.length;E++)k=(f=m[E].split(/\s*?=\s*?/))&&f[0].toUpperCase()||b,f=f&&f[1]||b,e[k]&&(h||(h={}))&&(h[k]=
f||e[k]);h=h||e}else h=e;g.exportformats=h},defaultSeriesType:b,paletteIndex:1,creditLabel:!1,titleSpaceManager:Eb,placeLegendBlockBottom:Fa,configureLegendOptions:Tb,placeLegendBlockRight:vb,placeHorizontalAxis:rb,placeVerticalAxis:Wa,placeHorizontalCanvasMarginAdjustment:Aa,placeVerticalCanvasMarginAdjustment:Ua,placeHorizontalXYSpaceManager:function(b,d,e,m){var f=b[g],h,k,E,l,n=d.chart,K,p,r,M,q,t,w,V=b.chart,v=f.marginLeftExtraSpace,u=f.marginTopExtraSpace,Y=f.marginBottomExtraSpace,B=f.marginRightExtraSpace;
l=e-(v+B+V.marginRight+V.marginLeft);var F=m-(Y+V.marginBottom+V.marginTop),C=.3*l;e=.3*F;var da=b.xAxis.showLine?b.xAxis.lineThickness:0;E=b.yAxis[0].showLine?b.yAxis[0].lineThickness:0;h=l-C;m=F-e;K=c(n.legendposition,Na).toLowerCase();b.legend.enabled&&K===ha&&(h-=this.placeLegendBlockRight(b,d,h/2,F));q=a(n.xaxisnamepadding,5);t=a(n.labelpadding,4);w=c(n.rotatexaxisname,"ccw");w=w===Ea?"none":w;p=c(n.showplotborder,f.is3d?Ea:db)===db;p=f.plotBorderThickness=p?f.is3d?1:a(n.plotborderthickness,
1):0;r=W(a(V.plotBorderWidth,1),0);!f.isDual&&V.marginRight<r&&void 0===n.chartrightmargin&&(k=r-V.marginRight,l>C+k&&(V.marginRight=r,l-=k,C=.3*l,h=l-C));k=f.x;M=W(r,p/2);t<M&&(t=M);k.verticalAxisNamePadding=q;k.verticalAxisValuesPadding=t+da;k.rotateVerticalAxisName=w;k.verticalAxisNameWidth=a(n.xaxisnamewidth);h-=Wa(b.xAxis,k,b,d,F,h,!1,!1,l);b.xAxis.lineEndExtension=E;h-=Aa(b,d,h,b.xAxis);l=h+C;b.legend.enabled&&K!==ha&&(m-=this.placeLegendBlockBottom(b,d,l,m/2));m-=this.titleSpaceManager(b,d,
l,m/2);k=f[0];k.horizontalAxisNamePadding=a(n.yaxisnamepadding,5);k.horizontalLabelPadding=W(a(n.yaxisvaluespadding,4))+E;k.labelDisplay="auto";k.staggerLines=a(n.staggerlines,2);k.slantLabels=a(n.slantlabels,0);k.horizontalLabelPadding=k.horizontalLabelPadding<r?r:k.horizontalLabelPadding;this.xAxisMinMaxSetter(b,d,l);E=b.xAxis;q=E.plotLines;h=m/(E.max-E.min);q&&q.length&&(r=(q[0].value-E.min)*h,q=(E.max-q[q.length-1].value)*h,f.isBar&&(p>r&&(E.min-=(p-r)/(2*h)),p>q&&(E.max+=(p-q)/(2*h))));m-=this.placeHorizontalAxis(b.yAxis[0],
k,b,d,l,m,C);m-=Ua(b,d,m,b.yAxis[0]);wb(e+m,b,n,b.xAxis,f.x.lYLblIdx,!0);Mb(b,b.xAxis.title,m);b.legend.enabled&&K===ha&&(b=b.legend,d=e+m,b.height>d&&(b.height=d,b.scroll.enabled=!0,d=(b.scroll.scrollBarWidth=10)+(b.scroll.scrollBarPadding=2),b.width+=d,V.marginRight+=d),b.y=20);V.marginLeft+=v;V.marginTop+=u;V.marginBottom+=Y;V.marginRight+=B},placeVerticalXYSpaceManager:function(b,d,e,m){var f=b[g],h,k,E=!0;h=0;var l=d.chart,n=!1,K,p,r,q,M=b.chart,t,w,V,v=f.marginLeftExtraSpace,u=f.marginTopExtraSpace,
Y=f.marginBottomExtraSpace,B=f.marginRightExtraSpace;q=e-(v+B+M.marginRight+M.marginLeft);var F=m-(Y+M.marginBottom+M.marginTop),C=.3*q;m=.3*F;var da=q-C;e=F-m;h=f.drawFullAreaBorder=a(l.drawfullareaborder,1);var G=c(l.legendposition,Na).toLowerCase();t=b.xAxis.showLine?b.xAxis.lineThickness:0;w=b.yAxis[0].showLine?b.yAxis[0].lineThickness:0;V=f.isDual&&b.yAxis[1].showLine?b.yAxis[1].lineThickness:0;K=a(l.yaxisnamepadding,5);p=a(l.yaxisvaluespadding,l.labelypadding,4);k=c(l.showplotborder,f.is3d?
Ea:db)===db;k=f.plotBorderThickness=k?f.is3d?1:a(l.plotborderthickness,1):0;r=W(a(M.plotBorderWidth,1),0);k=W(r,k/2);"area"!==this.defaultSeriesType||h||(k=r);p<r&&(p=r);!f.isDual&&M.marginRight<r&&void 0===l.chartrightmargin&&(h=r-b.chart.marginRight,q>C+h&&(q-=h,C=.3*q,da=q-C));b.legend.enabled&&G===ha&&(da-=this.placeLegendBlockRight(b,d,da/2,F));f.isDual&&(n=!0,h=f[1],E=b.yAxis[1].opposite,r=c(l.rotateyaxisname,E?"cw":"ccw"),r=r===Ea?"none":r,h.verticalAxisNamePadding=K,h.verticalAxisValuesPadding=
p+V,h.rotateVerticalAxisName=r,h.verticalAxisNameWidth=a(l.syaxisnamewidth),da-=Wa(b.yAxis[1],h,b,d,F,da/2,E,n));h=f[0];E=!E;r=c(l.rotateyaxisname,E?"cw":"ccw");r=r===Ea?"none":r;h.verticalAxisNamePadding=K;h.verticalAxisValuesPadding=p+w;h.rotateVerticalAxisName=r;h.verticalAxisNameWidth=a(n?l.pyaxisnamewidth:l.yaxisnamewidth);da-=Wa(b.yAxis[0],h,b,d,F,da,E,n,q);da-=Aa(b,d,da,b.yAxis[0],b.yAxis[1]);E=da+C;b.legend.enabled&&G!==ha&&(e-=this.placeLegendBlockBottom(b,d,E,e/2));e-=this.titleSpaceManager(b,
d,E,e/2);h=f.x;h.horizontalAxisNamePadding=a(l.xaxisnamepadding,5);h.horizontalLabelPadding=a(l.labelpadding,l.labelxpadding,4)+t;h.labelDisplay=c(l.labeldisplay,"auto").toLowerCase();h.rotateLabels=a(l.rotatelabels,l.rotatexaxislabels,0);h.staggerLines=a(l.staggerlines,2);h.slantLabels=a(l.slantlabels,l.slantlabel,0);b.yAxis[0].opposite?(b.xAxis.lineEndExtension=w,b.xAxis.lineStartExtension=V):(b.xAxis.lineEndExtension=V,b.xAxis.lineStartExtension=w);h.horizontalLabelPadding<k&&(h.horizontalLabelPadding=
k);q={left:0,right:0};q=M.managePlotOverflow&&this.canvasPaddingModifiers&&this.calculateCanvasOverflow(b,!0)||q;t=q.left+q.right;w=.6*E;t>w&&(V=q.left/t,q.left-=V*(t-w),q.right-=(1-V)*(t-w));this.xAxisMinMaxSetter(b,d,E,q.left,q.right);e-=this.placeHorizontalAxis(b.xAxis,h,b,d,E,e,C);e-=Ua(b,d,e,b.xAxis);b.title.alignWithCanvas||("left"===b.title.align&&b.yAxis[0].title.text&&Ob(b,b.yAxis[0].title,m+e),"right"===b.title.align&&n&&b.yAxis[1].title.text&&Ob(b,b.yAxis[1].title,m+e));n&&(wb(m+e,b,l,
b.yAxis[1],f[1].lYLblIdx),Mb(b,b.yAxis[1].title,m+e));wb(m+e,b,l,b.yAxis[0],f[0].lYLblIdx);Mb(b,b.yAxis[0].title,m+e);b.legend.enabled&&G===ha&&(b=b.legend,d=m+e,b.height>d&&"gradient"!==b.type&&(b.height=d,b.scroll.enabled=!0,d=(b.scroll.scrollBarWidth=10)+(b.scroll.scrollBarPadding=2),b.width+=d,M.marginRight+=d));M.marginLeft+=v;M.marginTop+=u;M.marginBottom+=Y;M.marginRight+=B},placeVerticalAxisTitle:Mb,calculateCanvasOverflow:function(a,c){for(var d=this.canvasPaddingModifiers,e=a.chart,f=this.smartLabel,
g=0,m=0,h=0,k=0,E=g=!1,l=!1,n=d&&d.length||0,K,r,p,q,M;n--;)switch(m=d[n],m){case "anchor":E=r=g=!0;break;case "anchorlabel":p=r=g=!0;break;case "errorbar":l=g=!0}if(g&&(n=(d=a.series)&&d.length||0,c))for(;n--;)K=d[n],r&&(g=K&&K.data||[],1<g.length&&(q=g[0],M=g[g.length-1],E&&(g=q&&q.marker&&q.marker.enabled&&(q.marker.radius||0)+(q.marker.lineWidth||0)||0,m=M&&M.marker&&M.marker.enabled&&(M.marker.radius||0)+(M.marker.lineWidth||0)||0,h=W(g+2,h),k=W(m+2,k)),p&&(f.setStyle(a.plotOptions.series.dataLabels.style),
e.rotateValues?(m=f.getOriSize(q&&q.displayValue||b),g=m.height/2,m=f.getOriSize(M&&M.displayValue||b),m=m.height/2):(m=f.getOriSize(q&&q.displayValue||b),g=m.width/2,m=f.getOriSize(M&&M.displayValue||b),m=m.width/2),h=W(g+2,h),k=W(m+2,k)))),l&&(m=g=K.errorBarWidth/2+K.errorBarThickness||0,h=W(g+2,h),k=W(m+2,k));return{left:h,right:k}},spaceManager:function(){return this.placeVerticalXYSpaceManager.apply(this,arguments)},axisMinMaxSetter:function(b,c,d,e,f,g,m,h){d=c.stacking100Percent?da(99,1,100,
0,f,g,m,h):da(a(c.max,d),a(c.min,e),d,e,f,g,m,h);b.min=Number(L(d.Min,10));b.max=Number(L(d.Max,10));b.tickInterval=Number(L(d.divGap,10));c.numdivlines=v.round((b.max-b.min)/b.tickInterval)-1;2>=d.Range/d.divGap&&(b.alternateGridColor=xa);this.highValue=c.max;this.lowValue=c.min;delete c.max;delete c.min},configurePlotLines:function(d,e,m,h,f,k,E,l,n,K,r){var p=m.min,q=m.max,M=m.tickInterval,t=K?"xAxis":h.stacking100Percent?"percentValue":"yAxis",w=p,V=1,v=m.gridLineColor,u=m.gridLineWidth,Y=m.gridLineDashStyle,
B=0>p&&0<q?!0:!1,F=0===p,C=0===q,da=0===a(h.showzeroplanevalue,d.showzeroplanevalue),G=!0,na,D=1,ja=0<a(d.numdivlines,0),J=e[g].axisGridManager,ca=this.colorManager,N=this.is3D,Xa=a(d.showaxislimitgridlines,this.showAxisLimitGridLines),N=a(Xa,N||e.chart.plotBorderWidth?0:1),Va=this.inversed;e=e.xAxis;r=a(r,n?1:0);delete m._altGrid;delete m._lastValue;K&&!h.catOccupied&&(h.catOccupied={});!B||K&&h.catOccupied[0]||(K?(G=a(d.showvzeroplane,1),na=a(d.showvzeroplanevalue,k),ja=a(d.vzeroplanethickness,
1),ca=c(d.vzeroplanealpha,d.vdivlinealpha,ca.getColor("divLineAlpha")),d=0<ja?T(c(d.vzeroplanecolor,v),ca):xa):(ca=a(d.divlinealpha,ca.getColor("divLineAlpha")),na=a(h.showzeroplanevalue,d.showzeroplanevalue,k),!1===this.defaultZeroPlaneHighlighted?(G=a(h.showzeroplane,d.showzeroplane,!(this.defaultZeroPlaneHidden&&!ja)),ja=u):(ja=1===u?2:u,D=5,ca=$(2*ca,100)),ja=a(h.zeroplanethickness,d.zeroplanethickness,ja),ca=c(h.zeroplanealpha,d.zeroplanealpha,ca),d=0<ja?T(c(h.zeroplanecolor,d.zeroplanecolor,
v),ca):xa),G&&(na=na?l[t](0,r):b,(D=J.addAxisGridLine(m,0,na,ja,Y,d,D,K))&&(D.isZeroPlane=!0)),m.effectiveZeroPlaneThickness=G&&parseInt(ca,10)&&ja);K&&h.catOccupied[p]||(na=!f||F&&da?b:l[t](p,r),(D=Xa||N&&(Va||!e.showLine)?J.addAxisGridLine(m,p,na,u,Y,v||xa,2,K):J.addAxisGridLine(m,p,na,.1,void 0,xa,2,K))&&(D.isMinLabel=!0));0>=u&&(u=.1,v=xa);for(p=Number(L(w+M,10));p<q;p=Number(L(p+M,10)),V+=1)B&&0>w&&0<p&&!n&&(J.addAxisAltGrid(m,0),V+=1),0===p||K&&h.catOccupied[p]||(na=1===k&&0===V%E?l[t](p,r):
b,J.addAxisGridLine(m,p,na,u,Y,v,2,K)),w=p,n||J.addAxisAltGrid(m,p);n||J.addAxisAltGrid(m,q);0!==V%E||K&&h.catOccupied[q]||(na=!f||C&&da?b:l[t](q,r),(D=Xa||N&&(!Va||!e.showLine)?J.addAxisGridLine(m,q,na,u,Y,v||xa,2,K):J.addAxisGridLine(m,q,na,.1,Y,xa,2,K))&&(D.isMaxLabel=!0));this.realtimeEnabled&&(m.labels._enabled=m.labels.enabled,m._gridLineWidth=m.gridLineWidth,m._alternateGridColor=m.alternateGridColor);m.labels.enabled=!1;m.gridLineWidth=0;m.alternateGridColor=xa;m.plotLines.sort(Fb)},xAxisMinMaxSetter:function(b,
c,d,e,f){var m=b[g],h=m.x,k=c.chart,E=h.min=a(h.min,0),l=h.max=a(h.max,h.catCount-1),n=0,K=0,p=b.chart.defaultSeriesType,r=/^(column|column3d|bar|bar3d|floatedcolumn|sparkwinloss|boxandwhisker2d|dragcolumn)$/.test(p),q=/^(line|area|spline|areaspline)$/.test(p),p=/^(scatter|bubble|candlestick|dragnode)$/.test(p),M=b.xAxis,t=M.scroll,w=t&&t.enabled,V=a(k.canvaspadding),v=R(V),u=Ca($(a(V,e,0),d/2-10)),V=Ca($(a(V,f,0),d/2-10)),Y,B,F,C;h.adjustMinMax&&(Y=a(k.setadaptivexmin,1),l=E=!Y,B=a(this.numVDivLines,
k.numvdivlines,4),F=k.adjustvdiv!==Ea,C=a(k.showxaxisvalues,k.showxaxisvalue,1),Y=a(k.showvlimits,C),C=a(k.showvdivlinevalue,k.showvdivlinevalues,C),this.axisMinMaxSetter(M,h,k.xaxismaxvalue,k.xaxisminvalue,E,l,B,F),E=M.min,l=M.max,h.requiredAutoNumericLabels&&(B=a(parseInt(k.xaxisvaluesstep,10),1),this.configurePlotLines(k,b,M,h,Y,C,1>B?1:B,m.numberFormatter,!1,!0)),M.plotLines.sort(Fb));M.labels.enabled=!1;M.gridLineWidth=0;M.alternateGridColor=xa;(r||m.isScroll)&&!m.hasNoColumn&&!v&&R(e)&&R(f)&&
(K=d/(l-E+1)*.5,u=0<K-e?0:u,V=0<K-f?0:V,n=0<K-e?.5:0,K=0<K-f?.5:0);r&&!m.hasNoColumn&&(K=n=.5);m.is3d&&(u+=a(b.chart.xDepth,0));b=(d-(u+V))/((w?t.vxLength:l)-E+(n+K));M.min=E-(n+u/b);M.max=l+(K+V/b);w&&(n=t.vxLength,b=M.max-M.min,t.viewPortMin=M.min,t.viewPortMax=M.max,t.scrollRatio=n/b,t.flatScrollBars=m.flatScrollBars,t.scrollBar3DLighting=m.scrollBar3DLighting,M.max=M.min+n);q&&M.min===M.max&&(M.min-=.65,M.max+=.65);p&&c.vtrendlines&&N(c.vtrendlines,M,m,!1,!0,!0)},postSeriesAddition:function(b){var e=
b[g],m=e.isBar,h=e.is3d,f=b.chart.rotateValues&&!m?270:0,k=e[0],E=k&&k.stacking100Percent,n,K,p,r,M,q,t,V,w,v,u,Y,B,F,C,da,G,na,D,ja,L,J,ca;if(this.isStacked)for(p in n=e.plotSpacePercent,K=b.chart.defaultSeriesType,n=1-2*n,da=b.series,G=this.numberFormatter,L=d({},b.plotOptions.series.dataLabels.style),J=parseFloat(L.fontSize),ca=!k.stacking100Percent,L.color=b.plotOptions.series.dataLabels.color,r=k.stack,r){k=r[p].length;M=n/k;t=-(n-M)/2;F=[];Y=0;for(V=da.length;Y<V;Y+=1)w=da[Y],w.yAxis||c(w.type,
K)!==p||F.push(w);for(q=0;q<k;q+=1,t+=M){u=r[p][q];C=[];Y=0;for(V=F.length;Y<V;Y+=1)w=F[Y],a(w.columnPosition,0)===q&&C.push(w.data);if(u&&u.length)for(v=0,w=u.length;v<w;v+=1)if(Y=u[v])for(B=(Y.n||0)+(Y.p||0),e.showStackTotal&&(V=v,V+=t,Y=0>B?Y.n:Y.p,b.xAxis.plotLines.push({value:V,width:0,isVline:ca,isTrend:!ca,zIndex:4,_isStackSum:1,_catPosition:v,_stackIndex:q,label:{align:va,textAlign:h||270!==f?m?0>B?ha:Sa:va:0>B?ha:Sa,offsetScale:ca?Y:void 0,offsetScaleIndex:0,rotation:f,style:L,verticalAlign:qa,
y:m?0:0>B?270===f?4:J:-4,x:0,text:e.numberFormatter.yAxis(B)}})),Y=0,V=C.length;Y<V;Y+=1)if(D=C[Y][v])if(ja=B&&(D.y||0)/B*100,na=G.percentValue(ja),D.toolText=l(D.toolText,[14,24,25,112],{percentValue:na,sum:G.dataLabels(B),unformattedSum:B}),D.y||0===D.y)E&&(D.y=ja,D.previousY||0===D.previousY)&&(D.previousY=D.previousY/B*100),D.showPercentValues&&(D.displayValue=na)}}},styleMapForFont:ta,styleApplicationDefinition_font:function(a,b,c){var d,f,e=!1,m,h,k=this.styleMapForFont;switch(b){case "caption":d=
a.title;break;case "datalabels":d=a.xAxis.labels;break;case "datavalues":d=a.plotOptions.series.dataLabels;e=!0;break;case "tldatavalues":d={style:a.plotOptions.series.dataLabels.tlLabelStyle};break;case "trdatavalues":d={style:a.plotOptions.series.dataLabels.trLabelStyle};break;case "bldatavalues":d={style:a.plotOptions.series.dataLabels.blLabelStyle};break;case "brdatavalues":d={style:a.plotOptions.series.dataLabels.brLabelStyle};break;case "subcaption":d=a.subtitle;break;case "tooltip":d=a.tooltip;
break;case "trendvalues":d={style:a[g].trendStyle};break;case "xaxisname":d=a.xAxis.title;break;case "yaxisname":case "pyaxisname":case "axistitle":d=[];b=0;for(m=a.yAxis.length;b<m;b+=1)d.push(a.yAxis[b].title);break;case "yaxisvalues":d=[];b=0;for(m=a.yAxis.length;b<m;b+=1)d.push(a.yAxis[b].labels);break;case "vlinelabels":d={style:a[g].divlineStyle};break;case "legend":d={style:a.legend.itemStyle};break;default:(d=a.orphanStyles[b])||(a.orphanStyles[b]=d={text:"",style:{}})}if("object"===typeof d)if(d instanceof
Array)for(b=0,m=d.length;b<m;b+=1){h=d[b];for(f in c)if(a=f.toLowerCase(),"function"===typeof k[a])k[a](c[f],h,e);r(h.style)}else{for(f in c)if(a=f.toLowerCase(),"function"===typeof k[a])k[a](c[f],d,e);r(d.style)}},parseStyles:function(a){var b,c,d,f={},e,g=this.dataObj;if(g.styles&&g.styles.definition instanceof Array&&g.styles.application instanceof Array){for(b=0;b<g.styles.definition.length;b+=1)c=g.styles.definition[b],c.type&&c.name&&this["styleApplicationDefinition_"+c.type.toLowerCase()]&&
(f[c.name.toLowerCase()]=c);for(b=0;b<g.styles.application.length;b+=1)for(c=g.styles.application[b].styles&&g.styles.application[b].styles.split(za)||[],e=0;e<c.length;e+=1)if(d=c[e].toLowerCase(),f[d]&&g.styles.application[b].toobject)this["styleApplicationDefinition_"+f[d].type.toLowerCase()](a,g.styles.application[b].toobject.toLowerCase(),f[d])}},updateDefaultAnnotations:function(){var b=this.renderer,d=this.dataObj,e=this.chartInstance,g=d&&d.annotations||{},f={},m;if(this.drawAnnotations&&
e.dataReady()&&d&&d.chart&&a(d.chart.showannotations,1)){m=a(g.scaleonresize,d.chart.scaleonresize,1);var b={interactionevents:c(this.annotationInteractionEvents,!0),showbelow:c(g.showbelow,g.showbelowchart),autoscale:g.autoscale,scaletext:g.scaletext,scaleimages:g.scaleimages,constrainedscale:g.constrainedscale,scaleonresize:m,origw:c(g.origw,d.chart.origw,m?this.origRenderWidth:b.chartWidth),origh:c(g.origh,d.chart.origh,m?this.origRenderHeight:b.chartHeight),xshift:g.xshift,yshift:g.yshift,grpxshift:g.grpxshift,
grpyshift:g.grpyshift,xscale:g.xscale,yscale:g.yscale,rootxscale:a(g.xscale,100)/100,rootyscale:a(g.yscale,100)/100},h;b||(b={});for(h in f)b[h]=f[h];e.annotations.reset(g,b,this.snapLiterals)}else e.annotations.clear()},dispose:function(){var a;this.disposing=!0;this.renderer&&this.renderer.dispose();this.numberFormatter&&this.numberFormatter.dispose();this.hcJSON&&this.hcJSON.chart&&this.hcJSON.chart.renderTo&&delete this.hcJSON.chart.renderTo;for(a in this)delete this[a];delete this.disposing;
this.disposed=!0}});sa("stub",{init:function(a,b,c){this.containerElement=a;this.smartLabel=c.jsVars.smartLabel},standaloneInit:!0},sa.base);sa("barbase",{spaceManager:function(){return this.placeHorizontalXYSpaceManager.apply(this,arguments)}},sa.base);sa("singleseries",{series:function(a,b,c){var d=a.data||a.dataset&&a.dataset[0]&&a.dataset[0].data,f;d&&0<d.length&&d instanceof Array&&(f={data:[],hoverEffects:this.parseSeriesHoverOptions(a,b,{},c),colorByPoint:!0},b.legend.enabled=!1,c=this.point(c,
f,d,a.chart,b),c instanceof Array?b.series=b.series.concat(c):b.series.push(c),this.configureAxis(b,a),a.trendlines&&N(a.trendlines,b.yAxis,b[g],!1,this.isBar))},defaultSeriesType:b,configureAxis:function(b,d){var e=b[g],m=b.xAxis,f=d.chart,h=b.chart.is3D,k,E,l,n,K,p,r,M,q,t,V,w,v=0,u,Y,B,C,da,G,D,na=this.numberFormatter,ja=a(f.syncaxislimits,0),L;m.title.text=F(f.xaxisname);L=a(parseInt(f.yaxisvaluesstep,10),parseInt(f.yaxisvaluestep,10),1);L=1>L?1:L;k=b.yAxis[0];E=e[0];if(e.isDual)l=na.getCleanValue(f.pyaxismaxvalue),
n=na.getCleanValue(f.pyaxisminvalue),k.title.text=F(f.pyaxisname),ja&&!E.stacking100Percent?(w=e[1],V=a(w.max),w=a(w.min),void 0!==V&&void 0!==w&&(E.min=$(E.min,w),E.max=W(E.max,V)),V=na.getCleanValue(f.syaxismaxvalue),w=na.getCleanValue(f.syaxisminvalue),null!==w&&(n=null!==n?$(n,w):w),null!==V&&(l=null!==l?W(l,V):V)):ja=0;else{l=na.getCleanValue(f.yaxismaxvalue);n=na.getCleanValue(f.yaxisminvalue);if(e.isSpline)for(w=0;w<b.series.length;w++)V=Jb(b.series[w].data,e.width,b.plotOptions.series.connectNullData),
E.min=$(E.min,V.min),E.max=W(E.max,V.max);k.title.text=F(f.yaxisname)}r=a(this.isStacked?0:this.setAdaptiveYMin,f.setadaptiveymin,this.defSetAdaptiveYMin,0);p=K=!r;M=a(e.numdivlines,f.numdivlines,this.numdivlines,4);q=f.adjustdiv!==Ea;t=a(this.showYAxisValues,f.showyaxisvalues,f.showyaxisvalue,1);V=a(f.showyaxislimits,f.showlimits,t);w=a(f.showdivlinevalue,f.showdivlinevalues,t);h||(v=a(f.showaxislines,f.drawAxisLines,0),B=a(f.axislinethickness,1),da=a(f.axislinealpha,100),100<da&&(da=100),Y=T(c(f.axislinecolor,
"#000000"),da),k.showLine=a(f.showyaxisline,v),u=m.showLine=a(f.showxaxisline,v),C=m.lineThickness=a(f.xaxislinethickness,B),k.lineThickness=a(f.yaxislinethickness,B),G=m.lineAlpha=a(f.xaxislinealpha,da),100<G&&(G=m.lineAlpha=100),D=k.lineAlpha=a(f.yaxislinealpha,da),100<D&&(D=k.lineAlpha=100),m.lineColor=T(c(f.xaxislinecolor,Y),G),k.lineColor=T(c(f.yaxislinecolor,Y),D),b.chart.xAxisLineVisible=u&&!!C&&0<G);this.axisMinMaxSetter(k,E,l,n,K,p,M,q);this.configurePlotLines(f,b,k,E,V,w,L,e.numberFormatter,
!1);k.reversed&&0<=k.min&&(b.plotOptions.series.threshold=k.max);e.isDual&&(k=b.yAxis[1],E=e[1],V=a(f.showsecondarylimits,V),w=a(f.showdivlinesecondaryvalue,t),ja?(m=b.yAxis[0],k.min=m.min,k.max=m.max,k.tickInterval=m.tickInterval,delete E.max,delete E.min):(l=na.getCleanValue(f.syaxismaxvalue),n=na.getCleanValue(f.syaxisminvalue),r=a(f.setadaptivesymin,r),p=K=!r,this.axisMinMaxSetter(k,E,l,n,K,p,M,q)),h||(k.showLine=a(f.showsyaxisline,v),k.lineThickness=a(f.syaxislinethickness,B),h=k.lineAlpha=a(f.syaxislinealpha,
da),100<h&&(h=100),k.lineColor=T(c(f.syaxislinecolor,Y),h)),this.configurePlotLines(f,b,k,E,V,w,L,e.numberFormatter,!0),k.title.text=F(f.syaxisname))},pointValueWatcher:function(b,d,e,m,f,h,k){b=b[g];var E;if(null!==d)return e=a(e,0),b[e]||(b[e]={}),e=b[e],m&&(this.distributedColumns&&(b.marimekkoTotal+=d),m=e.stack,f=a(f,0),h=a(h,0),k=c(k,ab),m[k]||(m[k]=[]),k=m[k],k[h]||(k[h]=[]),h=k[h],h[f]||(h[f]={}),f=h[f],0<=d?f.p?(E=f.p,d=f.p+=d):f.p=d:f.n?(E=f.n,d=f.n+=d):f.n=d),e.max=e.max>d?e.max:d,e.min=
e.min<d?e.min:d,E},parseSeriesHoverOptions:function(b,d,e){b=d.chart.plotHoverEffects;d={enabled:c(e.showhovereffect,e.hovereffect,b.enabled)};d.highlight=a(e.highlightonhover,e.highlightplotonhover,b.highlight);d.columnHighlight=a(d.highlight,e.highlightcolumnonhover,e.highlightbaronhover,b.columnHighlight);d.anchorHighlight=a(d.highlight,e.highlightanchoronhover,b.anchorHighlight);d.anchorHighlight=a(d.highlight,e.highlightimageonhover,b.imageHighlight);d.bubbleHighlight=a(d.highlight,e.highlightbubbleonhover,
e.highlightbaronhover,b.bubbleHighlight);d.imageHoverAlpha=c(e.anchorimagehoveralpha,b.anchorImageHoverAlpha);d.imageHoverScale=c(e.anchorimagehoverscale,b.anchorImageHoverScale);d.color=c(e.hovercolor,e.bubblehovercolor,b.color);d.alpha=c(e.hoveralpha,b.alpha);d.scale=c(e.hoverscale,e.bubblehoverscale,b.scale);d.gradientColor=void 0!==e.hovergradientcolor?e.hovergradientcolor:b.gradientColor;d.ratio=c(e.hoverratio,b.ratio);d.angle=c(e.hoverangle,b.angle);d.borderColor=c(e.borderhovercolor,b.borderColor);
d.borderAlpha=c(e.borderhoveralpha,b.borderAlpha);d.borderThickness=a(e.borderhoverthickness,b.borderThickness);d.borderDashed=a(e.borderhoverdashed,b.borderDashed);d.borderDashGap=a(e.borderhoverdashgap,b.borderDashGap);d.borderDashLen=a(e.borderhoverdashlen,b.borderDashLen);d.shadow=c(e.hovershadow,b.shadow);d.anchorSides=c(e.anchorhoversides,b.anchorSides);d.anchorRadius=c(e.anchorhoverradius,b.anchorRadius);d.anchorScale=c(e.anchorhoverscale,b.anchorScale);d.anchorAlpha=c(e.anchorhoveralpha,e.hoveralpha,
b.anchorAlpha);d.anchorBgColor=c(e.anchorbghovercolor,e.anchorhovercolor,b.anchorBgColor);d.anchorBgAlpha=c(e.anchorbghoveralpha,b.anchorBgAlpha);d.anchorBorderColor=c(e.anchorborderhovercolor,b.anchorBorderColor);d.anchorBorderAlpha=c(e.anchorborderhoveralpha,b.anchorBorderAlpha);d.anchorBorderThickness=a(e.anchorborderhoverthickness,b.anchorBorderThickness);d.anchorStartAngle=c(e.anchorhoverstartangle,b.anchorStartAngle);d.anchorDip=c(e.anchorhoverdip,b.anchorDip);d.anchorAnimation=a(e.anchorhoveranimation,
b.anchorAnimation,1);d.negativeColor=c(e.negativehovercolor,b.negativeColor);d.is3DBubble=a(e.is3donhover,b.is3DBubble);return d},pointHoverOptions:function(d,e,g){var m,f,k,E={};m=e.hoverEffects;e=a(d.hovereffect,m&&m.enabled);f=!1;var l={enabled:e},n=g&&b+g.plotType.toLowerCase();if(void 0===e)if(this.forceHoverEnable)f=e=l.enabled=!0;else{"anchor"==n&&(f=g.imageUrl?e=l.enabled=void 0!==c(d.anchorimagehoveralpha,m.imageHoverAlpha,d.anchorimagehoverscale,m.imageHoverScale,void 0):e=l.enabled=void 0!==
c(d.hovercolor,d.anchorhovercolor,d.anchorbghovercolor,m.anchorBgColor,m.color,d.hoveralpha,d.anchorhoveralpha,m.anchorAlpha,d.bghoveralpha,d.anchorbghoveralpha,m.anchorBgAlpha,d.anchorborderhovercolor,d.borderhovercolor,m.anchorBorderColor,d.anchorborderhoverthickness,d.borderhoverthickness,m.anchorBorderThickness,d.anchorborderhoveralpha,d.borderhoveralpha,m.anchorBorderAlpha,d.hoverdip,d.anchorhoverdip,m.anchorDip,d.anchorhoverstartangle,m.anchorStartAngle,d.hoversides,d.anchorhoversides,m.anchorSides,
d.hoverradius,d.anchorhoverradius,m.anchorRadius,void 0));if("column"==n||"bubble"==n)f=e=l.enabled=void 0!==c(d.hoveralpha,m.alpha,d.hovergradientcolor,m.gradientColor,d.borderhovercolor,m.borderColor,d.borderhoverthickness,m.borderThickness,d.hoverratio,m.ratio,d.hoverangle,m.angle,d.borderhoveralpha,m.borderAlpha,d.borderhoverdashed,m.borderDashed,d.borderhoverdashgap,m.borderDashGap,d.borderhoverdashlen,m.borderDashLen,d.hovercolor,m.color,void 0);f||"bubble"!=n||(f=e=l.enabled=void 0!==c(d.negativehovercolor,
m.negativeColor,d.is3donhover,m.is3DBubble,d.hoverscale,m.scale,void 0));"pie"==n&&(f=e=l.enabled=void 0!==c(d.hovercolor,m.color,d.hoveralpha,m.alpha,d.borderhovercolor,m.borderColor,d.borderhoverthickness,m.borderThickness,d.borderhoveralpha,m.borderAlpha,void 0))}if(e){l.highlight=a(d.highlightonhover,m.highlight);l.columnHighlight=a(l.highlight,d.highlightcolumnonhover,d.highlightbaronhover);l.anchorHighlight=a(l.highlight,d.highlightanchoronhover);l.bubbleHighlight=a(l.highlight,d.highlightbubbleonhover);
l.alpha=c(d.hoveralpha,m.alpha,g.alpha);l.scale=c(d.hoverscale,m.scale,1);l.gradientColor=void 0===d.hovergradientcolor?m.gradientColor:d.hovergradientcolor;l.borderColor=c(d.borderhovercolor,m.borderColor,g.borderColor);l.borderThickness=a(d.borderhoverthickness,m.borderThickness,g.borderWidth);l.ratio=c(d.hoverratio,m.ratio,g.ratio);l.angle=c(d.hoverangle,m.angle,g.angle);l.borderAlpha=c(d.borderhoveralpha,m.borderAlpha,g.borderAlpha);l.borderDashed=a(d.borderhoverdashed,m.borderDashed,g.borderDashed,
0);l.borderDashGap=a(d.borderhoverdashgap,m.borderDashGap,g.borderDashGap);l.borderDashLen=a(d.borderhoverdashlen,m.borderDashLen,g.borderDashLen);l.shadow=c(d.hovershadow,m.shadow,0);l.color=c(d.hovercolor,m.color);"anchor"==n&&(g.imageUrl?(l.imageHoverAlpha=a(d.anchorimagehoveralpha,m.imageHoverAlpha,100),l.imageHoverScale=g.imageScale*pa(a(d.anchorimagehoverscale,m.imageHoverScale,110))*.01,l.anchorAnimation=a(d.anchorhoveranimation,m.anchorAnimation,1)):(l.anchorColor=ba(c(d.hovercolor,d.anchorhovercolor,
d.anchorbghovercolor,m.anchorBgColor,m.color,g.anchorBgColor)),l.anchorAlpha=c(d.hoveralpha,d.anchorhoveralpha,m.anchorAlpha,g.anchorAlpha),l.anchorBgAlpha=c(d.bghoveralpha,d.anchorbghoveralpha,m.anchorBgAlpha,l.anchorAlpha,g.anchorBgAlpha),l.anchorBorderColor=c(d.anchorborderhovercolor,d.borderhovercolor,m.anchorBorderColor,g.anchorBorderColor),l.anchorBorderThickness=c(d.anchorborderhoverthickness,d.borderhoverthickness,m.anchorBorderThickness,g.anchorBorderThickness),l.anchorBorderAlpha=a(d.anchorborderhoveralpha,
d.borderhoveralpha,m.anchorBorderAlpha,l.anchorAlpha,g.anchorBorderAlpha),l.anchorDip=a(d.hoverdip,d.anchorhoverdip,m.anchorDip),l.startAngle=c(d.anchorhoverstartangle,m.anchorStartAngle,g.anchorAngle),l.anchorSides=a(d.hoversides,d.anchorhoversides,m.anchorSides,g.anchorSides),l.anchorRadius=a(d.hoverradius,d.anchorhoverradius,m.anchorRadius),l.anchorScale=a(d.hoverscale,d.anchorhoverscale,m.anchorScale),l.anchorAnimation=a(d.anchorhoveranimation,m.anchorAnimation,1),void 0===l.anchorRadius&&(l.anchorRadius=
!f||l.anchorHighlight?g.anchorRadius&&g.anchorRadius+1:g.anchorRadius)));if(f||(l.columnHighlight||l.bubbleHighlight)&&l.color&&1==l.highlight)l.highlight=0;"column"==n&&(l.color=(c(l.color,g.color)+za+(void 0===l.gradientColor?g.gradientColor:l.gradientColor)).replace(/,+?$/,""));"pie"===n&&(l.color=c(l.color,g.color).replace(/,+?$/,""));"bubble"==n&&(l.negativeColor=c(d.negativehovercolor,m.negativeColor,g.negativeColor),l.is3d=a(d.is3donhover,m.is3DBubble,g.is3d),l.color=l.negativeColor&&0>d.z?
l.negativeColor:l.color||g.color,k="string"==typeof l.color,l.color=ba(k?l.color:l.color.FCcolor.color),l.color=l.is3d?sa.bubble.getPointColor(l.color,l.alpha):{FCcolor:{color:l.color,alpha:l.alpha}});if(1==l.highlight&&"anchor"!==n){d=(k="string"==typeof l.color)?l.color.split(/\s{0,},\s{0,}/):l.color.FCcolor.color.split(/\s{0,},\s{0,}/);m=d.length;for(f=0;f<m;f++)d[f]=Da(d[f],70);k?l.color=d.join(","):l.color.FCcolor.color=d.join(",")}"pie"===n&&(E={color:this.getPointColor(l.color,l.alpha,g.radius3D),
alpha:l.alpha,borderColor:T(l.borderColor,l.borderAlpha),borderWidth:l.borderThickness});"column"==n&&(l.colorArr=S(l.color,l.alpha,l.ratio,l.angle,g.isRoundEdged,l.borderColor,$(l.alpha,l.borderAlpha).toString(),g.isBar,g.is3d),l.dashStyle=l.borderDashed?h(l.borderDashLen,l.borderDashGap,l.borderThickness):"none",E={shadow:l.shadow,color:l.colorArr[0],borderColor:l.colorArr[1],borderWidth:l.borderThickness,use3DLighting:g.use3DLighting,dashStyle:l.dashStyle});"anchor"==n&&(E=g.imageUrl?{animation:l.anchorAnimation,
imageHoverAlpha:l.imageHoverAlpha,imageHoverScale:l.imageHoverScale}:{animation:l.anchorAnimation,shadow:l.shadow,fillColor:{FCcolor:{color:l.anchorColor,alpha:l.anchorBgAlpha*l.anchorAlpha/100+b}},lineColor:{FCcolor:{color:l.anchorBorderColor,alpha:l.anchorBorderAlpha}},lineWidth:l.anchorBorderThickness,radius:l.anchorRadius,symbol:Ra(l.anchorSides),startAngle:l.startAngle,sides:l.anchorSides,scale:l.anchorScale,dip:l.anchorDip});"bubble"==n&&(E={symbol:l.seriesAnchorSymbol,shadow:l.shadow,scale:l.scale,
fillColor:l.color,lineColor:{FCcolor:{color:l.borderColor,alpha:l.alpha}},lineWidth:l.borderThickness})}return{enabled:e,options:l,rolloverOptions:E}},getPointStub:function(d,e,m,h){var f=this.dataObj.chart;h=h[g];e=null===e?e:h.numberFormatter.dataLabels(e);var k=p(F(c(d.tooltext,h.tooltext))),E=p(F(d.displayvalue)),f=h.showTooltip?void 0!==k?l(k,[1,2,3,5,6,7],{formattedValue:e,label:m,yaxisName:F(f.yaxisname),xaxisName:F(f.xaxisname)},d,f):null===e?!1:m!==b?m+h.tooltipSepChar+e:e:b;h=a(d.showvalue,
h.showValues)?void 0!==E?E:e:b;d=c(d.link);return{displayValue:h,categoryLabel:m,toolText:f,link:d}},updateSnapPoints:function(){var a=this,b=a.snapLiterals,c=function(a,b){var c=0;switch(a){case "startx":c=b.x;break;case "starty":c=b.y;break;case "x":case "middlex":case "centerx":c=b.x+b.width/2;break;case "y":case "middley":case "centery":c=b.y+b.height/2;break;case "endx":c=b.x+b.width;break;case "endy":c=b.y+b.height;break;default:c=0}return c};b.dataset=function(b,d){var e=a.renderer&&a.renderer.plots,
g,m,h,k;h=a.is3D;if(!e||!e.length)return 0;isNaN(b[0])?g=0:(g=Number(b[0]),b=b.slice(1));m=b[0];if("set"===m){isNaN(b[1])?(k=0,b=b.slice(1)):(k=Number(b[1]),b=b.slice(2));m=b[0];e=(e=e[g]&&e[g].items[k])&&e.graphic;if(!e)return 0;h=d&&h?e._getBBox2():e.getBBox();k=c(m,h)}return k};b.xaxis=function(b){var d=a.renderer&&a.renderer.xAxis&&a.renderer.xAxis[0]&&a.renderer.xAxis[0].labels,e,g;if(!d||!d.length)return 0;g=b[0];if("label"===g){isNaN(b[1])?(e=0,b=b.slice(1)):(e=Number(b[1]),b=b.slice(2));g=
b[0];b=d[e];if(!b)return 0;b=b.getBBox();e=c(g,b)}return e};b.yaxis=function(b){var d=a.renderer&&a.renderer.yAxis,e,g;if(!d||!d.length)return 0;isNaN(b[0])?e=0:(e=Number(b[0]),b=b.slice(1));e=d[e];if(!e)return 0;d=b[0];if("label"===d){g=e.labels;isNaN(b[1])?(e=0,b=b.slice(1)):(e=Number(b[1]),b=b.slice(2));d=b[0];b=g[e];if(!b)return 0;b=b.getBBox();g=c(d,b)}return g}}},sa.base);sa("multiseries",{series:function(b,c,d){var e,f,m=c[g],h,k;c.legend.enabled=Boolean(a(b.chart.showlegend,1));if(b.dataset&&
0<b.dataset.length){this.categoryAdder(b,c);e=0;for(f=b.dataset.length;e<f;e+=1)h=b.dataset[e],k={hoverEffects:this.parseSeriesHoverOptions(b,c,h,d),visible:!a(h.initiallyhidden,0),data:[]},this.isStacked||(k.numColumns=f),h=this.point(d,k,h,b.chart,c,m.oriCatTmp.length,e),h instanceof Array?c.series=c.series.concat(h):c.series.push(h);this.configureAxis(c,b);b.trendlines&&!this.isLog&&N(b.trendlines,c.yAxis,m,!1,this.isBar,void 0,this.inversed)}},categoryAdder:function(c,d){var e,m=0,f=d[g],h=f.axisGridManager,
k=c.chart,l=d.xAxis,E,f=f.x,n,K,p,M;if(c.categories&&c.categories[0]&&c.categories[0].category)for(c.categories[0].font&&(d.xAxis.labels.style.fontFamily=c.categories[0].font),void 0!==(e=a(c.categories[0].fontsize))&&(1>e&&(e=1),d.xAxis.labels.style.fontSize=e+Ga,r(d.xAxis.labels.style)),c.categories[0].fontcolor&&(d.xAxis.labels.style.color=c.categories[0].fontcolor.split(za)[0].replace(/^\#?/,"#")),K=d[g].oriCatTmp,p=c.categories[0].category,e=0;e<p.length;e+=1)p[e].vline?h.addVline(l,p[e],m,d):
(n=a(p[e].showlabel,k.showlabels,1),M=c.categories[0].category[e],E=F(t(M.label,M.name)),h.addXaxisCat(l,m,m,n?E:b,{},M,k),K[m]=t(F(M.tooltext),E),m+=1);f.catCount=m},getPointStub:function(d,e,m,h,f,k,E,n,K,r){var M=this.dataObj.chart,q=this.isDual,w=this.isXY,V=this.isMLAxis,v=this.isStacked,u=this.isErrorChart,Y;h=h[g];var B,C,da=null===e?e:this.numberFormatter.dataLabels(e,E),G,na=p(F(c(d.tooltext,f.plottooltext,h.tooltext))),D=h.tooltipSepChar,ja,L={},J,ca,N,Xa,Va,P,ra,Ha,ma;u&&(ca=null===n?n:
this.numberFormatter.dataLabels(n,E),P=null===e?b:this.numberFormatter.percentValue(n/e*100),ja=[1,2,3,4,5,6,7,99,100,101,102],e={yaxisName:Xa=F(q?E?M.syaxisname:M.pyaxisname:M.yaxisname),xaxisName:Va=F(M.xaxisname),formattedValue:da,label:m,errorDataValue:ca,errorPercentValue:P},w?(N=null===K?K:this.numberFormatter.xAxis(K),ra=null===r?b:this.numberFormatter.percentValue(K/r*100),ja.push(103,104,105,106,107,108,109,110),ma=c(d.horizontalerrorvalue,d.errorvalue),e.errorValue=Ha=c(d.verticalerrorvalue,
d.errorvalue),r=p(F(c(d.verticalerrorplottooltext,d.errorplottooltext,f.verticalerrorplottooltext,f.errorplottooltext,M.verticalerrorplottooltext,M.errorplottooltext))),null!==n&&(e.verticalErrorDataValue=ca,e.verticalErrorPercentValue=P,e.verticalErrorValue=Ha),null!==K&&(e.horizontalErrorDataValue=N,e.horizontalErrorPercentValue=ra,e.horizontalErrorValue=ma),J=p(F(c(d.horizontalerrorplottooltext,d.errorplottooltext,f.horizontalerrorplottooltext,f.errorplottooltext,M.horizontalerrorplottooltext,
M.errorplottooltext))),L._hErrortoolText=h.showTooltip?void 0!==J?l(J,ja,{yaxisName:Xa=F(q?E?M.syaxisname:M.pyaxisname:M.yaxisname),xaxisName:Va=F(M.xaxisname),formattedValue:da,label:m,errorDataValue:N,errorPercentValue:ra,errorValue:ma,verticalErrorDataValue:ca,verticalErrorPercentValue:P,verticalErrorValue:Ha,horizontalErrorDataValue:N,horizontalErrorPercentValue:ra,horizontalErrorValue:ma},d,M,f):null===n?!1:N:!1):(r=p(F(c(d.errorplottooltext,f.errorplottooltext,M.errorplottooltext))),e.errorValue=
Ha=c(d.errorvalue)),L._errortoolText=h.showTooltip?void 0!==r?l(r,ja,e,d,M,f):null===n?!1:ca:!1);h.showTooltip?void 0!==na?(v=[4,5,6,7],E={yaxisName:Xa||F(q?E?M.syaxisname:M.pyaxisname:V?f._yAxisName:M.yaxisname),xaxisName:Va||F(M.xaxisname)},w?(v.push(8,9,10,11),E.yDataValue=da,E.xDataValue=m,u&&(v.push(103,104,105,106,107,108,109,110),null!==n&&(E.verticalErrorDataValue=ca,E.verticalErrorPercentValue=P,E.verticalErrorValue=Ha),null!==K&&(E.horizontalErrorDataValue=N,E.horizontalErrorPercentValue=
ra,E.horizontalErrorValue=ma))):(v.push(1,2,3),E.formattedValue=da,E.label=m,u&&(v.push(99,100,101,102),E.errorValue=Ha,null!==n&&(E.errorDataValue=ca,E.errorPercentValue=P))),f=l(na,v,E,d,M,f)):null===da?f=!1:(h.seriesNameInToolTip&&(G=t(f&&f.seriesname)),f=G?G+D:b,f+=m?m+D:b,h.showPercentInToolTip&&v?(C=!0,f+="$percentValue"):f+=da):f=!1;a(d.showvalue,k)?void 0!==p(d.displayvalue)?Y=F(d.displayvalue):h.showPercentValues?B=!0:Y=da:Y=b;L.link=c(d.link);L.displayValue=Y;L.categoryLabel=m;L.toolText=
f;L.showPercentValues=B;L.showPercentInToolTip=C;return L}},sa.singleseries);sa("xybase",{hideRLine:function(){var a=this.chart.series[this.index+1];a&&a.hide&&a.hide()},showRLine:function(){var a=this.chart.series[this.index+1];a&&a.show&&a.show()},getRegressionLineSeries:function(a,b,c){var d,f,e,g;g=a.sumXY;var m=a.sumX,h=a.sumY;f=a.xValues;e=a.sumXsqure;d=a.yValues;a=a.sumYsqure;b?(f.sort(ub),d=f[0],f=f[f.length-1],g=(c*g-m*h)/(c*e-Q(m,2)),e=isNaN(g)?h/c:g*(d-m/c)+h/c,c=isNaN(g)?h/c:g*(f-m/c)+
h/c,c=[{x:d,y:e},{x:f,y:c}]):(d.sort(ub),e=d[0],d=d[d.length-1],g=(c*g-m*h)/(c*a-Q(h,2)),f=isNaN(g)?m/c:g*(e-h/c)+m/c,c=isNaN(g)?m/c:g*(d-h/c)+m/c,c=[{x:f,y:e},{x:c,y:d}]);return c},pointValueWatcher:function(a,b,c,d){var f=a[g];null!==b&&(a=f[0],a.max=a.max>b?a.max:b,a.min=a.min<b?a.min:b);null!==c&&(a=f.x,a.max=a.max>c?a.max:c,a.min=a.min<c?a.min:c);d&&(c=c||0,b=b||0,d.sumX+=c,d.sumY+=b,d.sumXY+=c*b,d.sumXsqure+=Q(c,2),d.xValues.push(c),d.sumYsqure+=Q(b,2),d.yValues.push(b))}},sa.multiseries);sa("scrollbase",
{postSeriesAddition:function(){var b=this.hcJSON,d=b.xAxis.scroll,e=b[g],m=e.width,f=e.x.catCount,h=this.dataObj.chart,k=this.colorManager,l,E,n,K,M,p;e.isScroll=!0;b.chart.hasScroll=!0;if(this.isStacked)l=1;else{E=l=0;K=b.series;p=b.chart.defaultSeriesType;for(n=K.length;E<n;E++)M=c(K[E].type,p),"column"===M&&(l+=1);1>l&&(l=1)}f*=l;m=a(h.numvisibleplot,fa(m/this.avgScrollPointWidth));d&&2<=m&&m<f&&(d.enabled=!0,d.vxLength=m/l,d.startPercent=$(1,W(0,parseFloat(h.scrolltoend)||0)),d.padding=a(h.scrollpadding,
0),d.height=a(h.scrollheight,16),d.showButtons=!!a(h.scrollshowbuttons,1),d.buttonPadding=a(h.scrollbtnpadding,0),d.color=ba(c(h.scrollcolor,k.getColor("altHGridColor"))),e.marginBottomExtraSpace+=d.padding+d.height);if(Xa||a(h.enabletouchscroll,0))b.chart.zoomType="x",b.chart.nativeZoom=!1,b.chart.selectionMarkerFill="rgba(255,255,255,0)",(b.callbacks||(b.callbacks=[])).push(function(a){w(a,"selectionstart selectiondrag",sa.scrollbase.performTouchScroll,{})})},performTouchScroll:function(a){var b=
this.xAxis[0].scroller,c=b.config,c=c.trackLength/(c.width/c.scrollRatio)*(a.chartX||1);!0!==a.isOutsidePlot&&ca(b.elements.anchor.element,"selectionstart"===a.type?"dragstart":"drag",{pageX:-c,pageY:-a.chartY})}},sa.multiseries);sa("logbase",{isLog:!0,isValueAbs:!0,configureAxis:function(e,m){var h=e[g],k=h.axisGridManager,f=this.numberFormatter,l=e.series,E=e.xAxis,n=e.yAxis[0],K=h[0],M=m.chart,p=!a(M.showyaxislimits,M.showlimits,M.showyaxisvalues,1),r=!a(M.showdivlinevalues,M.showyaxisvalues,1),
q=a(M.base,M.logbase,10),t=a(M.yaxismaxvalue),w=a(M.yaxisminvalue),V=this.colorManager,v=1===a(M.showminordivlinevalues),u=c(M.minordivlinecolor,n.gridLineColor,V.getColor("divLineColor")),Y=a(M.minordivlinealpha,M.divlinealpha,V.getColor("divLineAlpha")),V=[n,void 0,void 0,a(M.divlinethickness,2),n.gridLineDashStyle,n.gridLineColor,2],u=[n,void 0,void 0,a(M.minordivlinethickness,1),n.gridLineDashStyle,T(c(M.minordivlinecolor,u),a(M.minordivlinealpha,Y/2)),2],Y=v||Y&&u[3],B=a(M.showaxislimitgridlines,
this.showAxisLimitGridLines),C=a(B,this.is3D||e.chart.plotBorderWidth?0:1),da,G;0>=q&&(q=10);0>=t&&(t=void 0);0>=w&&(w=void 0);t=this.getLogAxisLimits(K.max||q,K.min||1,t,w,q,Y?M.numminordivlines:0);E.title.text=F(M.xaxisname);E.showLine=a(M.showxaxisline,M.showaxislines,0);E.lineThickness=a(M.xaxislinethickness,M.axislinethickness,1);E.lineAlpha=a(M.xaxislinealpha,M.axislinealpha,100);E.lineColor=T(c(M.xaxislinecolor,M.axislinecolor,"000"));d(n,{title:{text:F(M.yaxisname)},labels:{enabled:!1},gridLineWidth:0,
alternateGridColor:xa,reversed:"1"===M.invertyaxis,max:na(t.Max,q),min:na(t.Min,q),showLine:a(M.showyaxisline,M.showaxislines,0),lineThickness:a(M.yaxislinethickness,M.axislinethickness,1),lineAlpha:a(M.yaxislinealpha,M.axislinealpha,100),lineColor:T(c(M.yaxislinecolor,M.axislinecolor,"000"))});for(M=l.length;M--;)if(w=l[M])for(w.threshold=n.min,G=(w=w.data)&&w.length||0;G--;)da=w[G],da.y=na(da.y,q);delete K.max;delete K.min;K.isLog=!0;n.reversed&&0<=n.min&&(e.plotOptions.series.threshold=n.max);
m.trendlines&&N(m.trendlines,[{max:t.Max,min:t.Min,plotLines:n.plotLines,plotBands:n.plotBands,title:n.title}],h);for(M=n.plotLines.length;M--;)da=n.plotLines[M],da.value&&(da.value=na(da.value,q)),da.from&&(da.from=na(da.from,q)),da.to&&(da.to=na(da.to,q));for(M=n.plotBands.length;M--;)da=n.plotBands[M],da.from&&(da.from=na(da.from,q)),da.to&&(da.to=na(da.to,q));for(M=t.divArr.length;M--;){da=t.divArr[M];if(da.ismajor)V[1]=na(da.value,q),V[2]=f.yAxis(da.value),k.addAxisGridLine.apply(k,V);else if(Y||
da.isextreme)u[1]=na(da.value,q),u[2]=v||da.isextreme?f.yAxis(da.value):b,k.addAxisGridLine.apply(k,u);w=n.plotLines[n.plotLines.length-1];da.isextreme?(w.width=B||C&&(!da.isMin||!E.showLine)?w.width:.1,p&&(w.label.text=b)):r&&w.label&&(w.label.text=b)}},getLogAxisLimits:function(a,b,c,d,f,e){var g=function(a){return null===a||void 0===a||""===a||isNaN(a)?!1:!0},m=0,h=[],k,l,E,n,M,K,p,r;g(c)&&Number(c)>=a?a=Number(c):(c=1<f?Ca(la(a)/la(f)):fa(la(a)/la(f)),a=Q(f,c),l=c);l||(l=1<f?Ca(la(a)/la(f)):fa(la(a)/
la(f)));g(d)&&Number(d)<=b?b=Number(d):(c=1<f?fa(la(b)/la(f)):Ca(la(b)/la(f)),b=Q(f,c),k=c);k||(k=1<f?fa(la(b)/la(f)):Ca(la(b)/la(f)));d=Number(String(la(f)/la(10)));e=Number(e)||(fa(d)==d?8:4);1<f?(E=l,n=k):0<f&&1>f&&(E=k,n=l);d=l;for(k=E;k>=n;--k)if(E=Q(f,d),b<=E&&a>=E&&(h[m++]={value:E,ismajor:!0}),k!=n){l=1<f?-1:1;E=Q(f,d)-Q(f,d+l);c=E/(e+1);for(g=1;g<=e;++g)E=Q(f,d+l)+c*g,b<=E&&a>=E&&(h[m++]={value:E,ismajor:!1});1<f?d--:d++}for(p in h)for(r in h[p])"value"==r&&(M||(M=h[p][r]==b&&(h[p].isextreme=
h[p].isMin=!0)),K||(K=h[p][r]==a&&(h[p].isextreme=h[p].isMax=!0)));M||(h[m++]={value:b,ismajor:!0,isMin:!0,isextreme:!0});K||(h[m]={value:a,ismajor:!0,isMax:!0,isextreme:!0});return{Max:a,Min:b,divArr:h}},pointValueWatcher:function(b,c,d){b=b[g];d=a(d,0);0<c&&(b[d]||(b[d]={}),d=b[d],d.max=d.max>c?d.max:c,d.min=d.min<c?d.min:c)}},sa.mslinebase);hb=sa.singleseries;La=sa.multiseries;sa("column2dbase",{point:function(e,m,k,l,f){var E=k.length,n=f[g],M=n.axisGridManager,K=f.xAxis,n=n.x,p=this.colorManager,
r=/3d$/.test(f.chart.defaultSeriesType),q=this.isBar,w=/^spark/i.test(e);e=c(l.showplotborder,w||r?Ea:db)===db?r?1:a(l.plotborderthickness,1):0;var V=f.chart.useRoundEdges,v=a(l.plotborderalpha,l.plotfillalpha,100),u=c(l.plotbordercolor,p.getColor("plotBorderColor")).split(za)[0],w=w?"":a(l.useplotgradientcolor,1)?U(l.plotgradientcolor,p.getColor("plotGradientColor")):b,Y=0,B=Boolean(a(l.use3dlighting,1)),da=f[g].numberFormatter,C,G=a(l.plotborderdashed,0),na=a(l.plotborderdashlen,5),D=a(l.plotborderdashgap,
4),L,ja,ca,J,N,Xa,Va,P,ra,Ha,ma,Ka,ta,Wa;for(ca=0;ca<E;ca+=1)ta=k[ca],ta.vline?M.addVline(K,ta,Y,f):(ja=da.getCleanValue(ta.value),C=a(ta.showlabel,l.showlabels,1),J=F(t(ta.label,ta.name)),L=c(ta.color,p.getPlotColor()),N=c(ta.alpha,l.plotfillalpha,$a),Xa=c(ta.ratio,l.plotfillratio),Va=c(360-l.plotfillangle,q?180:90),P=c(ta.alpha,v),ra=a(ta.dashed,G),Ha=c(ta.dashgap,D),ma=c(ta.dashlen,na),M.addXaxisCat(K,Y,Y,C?J:b,ta,{},l,L),Y+=1,0>ja&&(Va=q?180-Va:360-Va),Wa={opacity:N/100},Ka=S(L+za+w.replace(/,+?$/,
""),N,Xa,Va,V,u,P+b,q,r),C=ra?h(ma,Ha,e):"none",L=this.pointHoverOptions(ta,m,{plotType:"column",is3d:r,isBar:q,use3DLighting:B,isRoundEdged:V,color:L,gradientColor:w,alpha:N,ratio:Xa,angle:Va,borderWidth:e,borderColor:u,borderAlpha:P,borderDashed:ra,borderDashGap:Ha,borderDashLen:ma,shadow:Wa}),m.data.push(d(this.getPointStub(ta,ja,J,f),{y:ja,shadow:Wa,color:Ka[0],borderColor:Ka[1],borderWidth:e,use3DLighting:B,dashStyle:C,tooltipConstraint:this.tooltipConstraint,hoverEffects:L.enabled&&L.options,
rolloverProperties:L.enabled&&L.rolloverOptions})),this.pointValueWatcher(f,ja));n.catCount=Y;return m},defaultSeriesType:"column"},hb);sa("linebase",{defaultSeriesType:"line",hasVDivLine:!0,defaultPlotShadow:1,point:function(e,m,k,l,f){var E,n,M,K,p,r,q,w,V,v,u,Y,B,da,C,G,na,D,L,ja,ca,J,N,Va,Xa,P;e=f.chart;var ra=k.length,Ha=f.xAxis;E=f[g];var ma=this.colorManager,ta,Ka=E.axisGridManager,Wa=0,Ma=E.x,mb=f[g].numberFormatter,ia,R,Fa;da=ba(c(l.linecolor,l.palettecolors,ma.getColor("plotFillColor")));
C=c(l.linealpha,$a);u=a(l.linethickness,this.lineThickness,4);Y=Boolean(a(l.linedashed,0));q=a(l.linedashlen,5);w=a(l.linedashgap,4);Xa=a(l.anchorshadow,0);m.color={FCcolor:{color:da,alpha:C}};m.lineWidth=u;m.anchorShadow=Xa;m.step=c(this.stepLine,m.step);m.drawVerticalJoins=Boolean(a(m.drawVerticalJoins,l.drawverticaljoins,1));m.useForwardSteps=Boolean(a(m.useForwardSteps,l.useforwardsteps,1));B=a(l.drawanchors,l.showanchors);for(n=0;n<ra;n+=1)K=k[n],K.vline?Ka.addVline(Ha,K,Wa,f):(E=mb.getCleanValue(K.value),
p=a(K.showlabel,l.showlabels,1),M=F(t(K.label,K.name)),Ka.addXaxisCat(Ha,Wa,Wa,p?M:b,K,{},l),Wa+=1,V=ba(c(K.color,da)),v=a(K.alpha,C),p=a(K.dashed,Y)?h(q,w,u):"none",r={opacity:v/100},na=a(K.anchorsides,l.anchorsides,0),Va=a(K.anchorstartangle,l.anchorstartangle,90),ja=a(K.anchorradius,l.anchorradius,this.anchorRadius,3),L=ba(c(K.anchorbordercolor,l.anchorbordercolor,da)),D=a(K.anchorborderthickness,l.anchorborderthickness,this.anchorBorderThickness,1),ca=ba(c(K.anchorbgcolor,l.anchorbgcolor,ma.getColor("anchorBgColor"))),
J=c(K.anchoralpha,l.anchoralpha,$a),N=c(K.anchorbgalpha,l.anchorbgalpha,J),ia=c(K.anchorimageurl,l.anchorimageurl),R=c(K.anchorimagescale,l.anchorimagescale,100),Fa=c(K.anchorimagealpha,l.anchorimagealpha,100),G=void 0===B?0!==v:!!B,P=Boolean(a(K.anchorshadow,Xa,0)),ta=this.pointHoverOptions(K,m,{plotType:"anchor",anchorBgColor:ca,anchorAlpha:J,anchorBgAlpha:N,anchorAngle:Va,anchorBorderThickness:D,anchorBorderColor:L,anchorBorderAlpha:J,anchorSides:na,anchorRadius:ja,imageUrl:ia,imageScale:R,imageAlpha:Fa,
shadow:r}),m.data.push(d(this.getPointStub(K,E,M,f),{y:E,color:{FCcolor:{color:V,alpha:v}},shadow:r,dashStyle:p,valuePosition:c(K.valueposition,e.valuePosition),marker:{enabled:!!G,shadow:P&&{opacity:J/100},fillColor:{FCcolor:{color:ca,alpha:N*J/100+b}},lineColor:{FCcolor:{color:L,alpha:J}},lineWidth:D,radius:ja,startAngle:Va,symbol:Ra(na),imageUrl:ia,imageScale:R,imageAlpha:Fa},tooltipConstraint:this.tooltipConstraint,hoverEffects:ta.enabled&&ta.options,rolloverProperties:ta.enabled&&ta.rolloverOptions})),
this.pointValueWatcher(f,E));Ma.catCount=Wa;return m},defaultZeroPlaneHighlighted:!1},hb);sa("area2dbase",{defaultSeriesType:"area",hasVDivLine:!0,parseAnchorVisibility:function(b,d,e){var g=a(b.drawanchors,d.drawanchors,d.showanchors);return R(g)?g:R(c(b.anchorsides,d.anchorsides,b.anchorstartangle,d.anchorstartangle,b.anchorradius,d.anchorradius,b.anchorbordercolor,d.anchorbordercolor,b.anchorborderthickness,d.anchorborderthickness,b.anchorbgcolor,d.anchorbgcolor,b.anchoralpha,d.anchoralpha,b.anchorbgalpha,
d.anchorbgalpha,b.anchorshadow,d.anchorshadow))||e},point:function(e,m,k,l,f){e=f.chart;var E=k.length,n=f.xAxis,M=f[g],K=M.axisGridManager,M=M.x,r=f[g].numberFormatter,q=this.colorManager,w=0,V,v,u,Y,B,da,C,G,na,D,L,ja,ca,J,N,Va,Xa,P,ra,Ha,ma,ta,Ka,Wa,Ma,mb,ia,R,Fa;B=c(l.plotfillcolor,l.areabgcolor,p(l.palettecolors)?q.getPlotColor(0):q.getColor("plotFillColor")).split(/\s*\,\s*/)[0];ma=za+(a(l.useplotgradientcolor,1)?U(l.plotgradientcolor,q.getColor("plotGradientColor")):b);da=c(l.plotfillalpha,
l.areaalpha,this.isStacked?$a:"90");C=a(l.plotfillangle,270);G=c(l.plotbordercolor,l.areabordercolor,p(l.palettecolors)?q.getPlotColor(0):q.getColor("plotBorderColor")).split(/\s*\,\s*/)[0];na=l.showplotborder==Ea?Ea:c(l.plotborderalpha,l.plotfillalpha,l.areaalpha,$a);V=a(l.plotborderangle,270);v=Boolean(a(l.plotborderdashed,0));u=a(l.plotborderdashlen,5);ca=a(l.plotborderdashgap,4);Xa=a(l.plotborderthickness,l.areaborderthickness,1);ta=m.fillColor={FCcolor:{color:B+ma.replace(/,+?$/,""),alpha:da,
ratio:nb,angle:C}};m.lineWidth=Xa;m.dashStyle=v?h(u,ca,Xa):"none";m.lineColor={FCcolor:{color:G,alpha:na,ratio:$a,angle:V}};m.step=c(this.stepLine,m.step);m.drawVerticalJoins=Boolean(a(m.drawVerticalJoins,l.drawverticaljoins,1));m.useForwardSteps=Boolean(a(m.useForwardSteps,l.useforwardsteps,1));Xa=Boolean(a(l.drawanchors,l.showanchors,1));Ma=Boolean(this.parseAnchorVisibility({},l,0));m.anchorShadow=Ka=a(l.anchorshadow,0);for(v=0;v<E;v+=1)ca=k[v],ca.vline?K.addVline(n,ca,w,f):(V=r.getCleanValue(ca.value),
Y=a(ca.showlabel,l.showlabels,1),u=F(t(ca.label,ca.name)),K.addXaxisCat(n,w,w,Y?u:b,ca,{},l),w+=1,Y=a(ca.anchorsides,l.anchorsides,0),ja=a(ca.anchorstartangle,l.anchorstartangle,90),D=a(ca.anchorradius,l.anchorradius,3),L=ba(c(ca.anchorbordercolor,l.anchorbordercolor,G)),P=a(ca.anchorborderthickness,l.anchorborderthickness,1),J=ba(c(ca.anchorbgcolor,l.anchorbgcolor,q.getColor("anchorBgColor"))),N=c(ca.anchoralpha,l.anchoralpha,this.anchorAlpha,Ma?$a:0),Va=c(ca.anchorbgalpha,l.anchorbgalpha,N),Wa=
Boolean(a(ca.anchorshadow,Ka,0)),ra=p(ca.color),Ha=a(ca.alpha),ra=void 0!==ra||void 0!==Ha?{FCcolor:{color:ra?ba(ra)+ma:B,alpha:void 0===Ha?ga(Ha)+b:da,ratio:nb,angle:C}}:ta,mb=c(ca.anchorimageurl,l.anchorimageurl),ia=c(ca.anchorimagescale,l.anchorimagescale,100),R=c(ca.anchorimagealpha,l.anchorimagealpha,100),Ha={opacity:W(Ha,na)/100,inverted:!0},Fa=this.pointHoverOptions(ca,m,{plotType:"anchor",anchorBgColor:J,anchorAlpha:N,anchorBgAlpha:Va,anchorAngle:ja,anchorBorderThickness:P,anchorBorderColor:L,
anchorBorderAlpha:N,anchorSides:Y,anchorRadius:D,imageUrl:mb,imageScale:ia,imageAlpha:R,shadow:Ha}),m.data.push(d(this.getPointStub(ca,V,u,f),{y:V,shadow:Ha,color:ra,valuePosition:c(ca.valueposition,e.valuePosition),marker:{enabled:Xa,shadow:Wa&&{opacity:N/100},fillColor:{FCcolor:{color:J,alpha:Va*N/100+b}},lineColor:{FCcolor:{color:L,alpha:N}},lineWidth:P,radius:D,symbol:Ra(Y),startAngle:ja,imageUrl:mb,imageScale:ia,imageAlpha:R},tooltipConstraint:this.tooltipConstraint,previousY:this.pointValueWatcher(f,
V),hoverEffects:Fa.enabled&&Fa.options,rolloverProperties:Fa.enabled&&Fa.rolloverOptions})));M.catCount=w;return m}},hb);sa("mscolumn2dbase",{point:function(d,e,m,h,f,l,k,E,n){d=a(h.ignoreemptydatasets,0);var M=!1,K=m.data||[],r=f[g],q=c(e.type,this.defaultSeriesType),t=c(e.isStacked,f.plotOptions[q]&&f.plotOptions[q].stacking),w=c(this.isValueAbs,r.isValueAbs,!1),V=a(e.yAxis,0),v=f[g].numberFormatter,u=this.colorManager,Y=u.getPlotColor(),B,da=f._FCconf.isBar,C=e.hoverEffects;t||(e.columnPosition=
a(n,E,k));e.name=p(m.seriesname);if(0===a(m.includeinlegend)||void 0===e.name)e.showInLegend=!1;e.color=c(m.color,Y).split(za)[0].replace(/^#?/g,"#");k=/3d$/.test(f.chart.defaultSeriesType);n=c(360-h.plotfillangle,da?180:90);0>B&&(n=360-n);m=e._dataParser=ia.column(f,{seriesname:e.name,plottooltext:m.plottooltext,color:c(m.color,Y),alpha:c(m.alpha,h.plotfillalpha,$a),plotgradientcolor:a(h.useplotgradientcolor,1)?U(h.plotgradientcolor,u.getColor("plotGradientColor")):b,ratio:c(m.ratio,h.plotfillratio),
fillAangle:n,isRoundEdges:f.chart.useRoundEdges,plotBorderColor:c(h.plotbordercolor,k?gb:u.getColor("plotBorderColor")).split(za)[0],plotBorderAlpha:h.showplotborder==Ea||k&&h.showplotborder!=db?Ea:c(h.plotborderalpha,$a),isBar:this.isBar,is3d:k,dashed:a(m.dashed,h.plotborderdashed,0),dashLen:a(m.dashlen,h.plotborderdashlen,5),dashGap:a(m.dashgap,h.plotborderdashgap,4),borderWidth:a(h.plotborderthickness,db),showValues:a(m.showvalues,r.showValues),yAxis:V,use3DLighting:a(h.use3dlighting,1),_sourceDataset:m,
hoverEffects:C},this);for(h=0;h<l;h+=1)(r=K[h])?(B=v.getCleanValue(r.value,w),null===B?e.data.push({y:null}):(M=!0,r=m(r,h,B),e.data.push(r),r.previousY=this.pointValueWatcher(f,B,V,t,h,E,q))):e.data.push({y:null});!d||M||this.realtimeEnabled||(e.showInLegend=!1);return e},defaultSeriesType:"column"},La);sa("mslinebase",{hasVDivLine:!0,point:function(d,e,m,h,f,l){d=a(h.ignoreemptydatasets,0);var k=!1,E=this.colorManager,n,M;n=f.chart;var K=m.data||[];M=f[g];var r=c(e.type,this.defaultSeriesType),
q=c(e.isStacked,f.plotOptions[r]&&f.plotOptions[r].stacking),t=c(this.isValueAbs,M.isValueAbs,!1),w=a(e.yAxis,0),V=this.numberFormatter,v=ba(c(m.color,h.linecolor,E.getPlotColor())),u=a(m.alpha,h.linealpha,$a),Y=a(h.showshadow,this.defaultPlotShadow,1),B=a(m.drawanchors,m.showanchors,h.drawanchors,h.showanchors),da=a(m.anchorsides,h.anchorsides,0),C=a(m.anchorstartangle,h.anchorstartangle,90),F=a(m.anchorradius,h.anchorradius,3),G=ba(c(m.anchorbordercolor,h.anchorbordercolor,v)),na=a(m.anchorborderthickness,
h.anchorborderthickness,1),E=ba(c(m.anchorbgcolor,h.anchorbgcolor,E.getColor("anchorBgColor"))),D=c(m.anchoralpha,h.anchoralpha,$a),L=c(m.anchorbgalpha,h.anchorbgalpha,D),ca=D&&c(m.anchorshadow,h.anchorshadow,0),ja=e.hoverEffects;e.name=p(m.seriesname);if(0===a(m.includeinlegend)||void 0===e.name||0===u&&1!==B)e.showInLegend=!1;e.marker={enabled:Boolean(a(B,1)),fillColor:{FCcolor:{color:E,alpha:L*D/100+b}},lineColor:{FCcolor:{color:G,alpha:D+b}},lineWidth:na,radius:F,symbol:Ra(da),startAngle:C};e.color=
{FCcolor:{color:v,alpha:u}};e.shadow=Y?{opacity:Y?u/100:0}:!1;e.anchorShadow=ca;e.step=c(this.stepLine,e.step);e.drawVerticalJoins=Boolean(a(e.drawVerticalJoins,h.drawverticaljoins,1));e.useForwardSteps=Boolean(a(e.useForwardSteps,h.useforwardsteps,1));e.lineWidth=a(m.linethickness,h.linethickness,2);n=e._dataParser=ia.line(f,{seriesname:e.name,plottooltext:m.plottooltext,lineAlpha:u,anchorAlpha:D,showValues:a(m.showvalues,M.showValues),yAxis:w,lineDashed:Boolean(a(m.dashed,h.linedashed,0)),lineDashLen:a(m.linedashlen,
h.linedashlen,5),lineDashGap:a(m.linedashgap,h.linedashgap,4),lineThickness:e.lineWidth,lineColor:v,valuePosition:c(m.valueposition,n.valuePosition),drawAnchors:B,anchorBgColor:E,anchorBgAlpha:L,anchorBorderColor:G,anchorBorderThickness:na,anchorRadius:F,anchorSides:da,anchorAngle:C,anchorShadow:e.anchorShadow,anchorStartAngle:a(m.anchorstartangle,h.anchorstartangle),_sourceDataset:m,hoverEffects:ja,imageUrl:c(m.anchorimageurl,h.anchorimageurl),imageScale:c(m.anchorimagescale,h.anchorimagescale,100),
imageAlpha:c(m.anchorimagealpha,h.anchorimagealpha,100)},this);for(h=0;h<l;h+=1)(M=K[h])?(m=V.getCleanValue(M.value,t),null===m?e.data.push({y:null}):(k=!0,M=n(M,h,m),e.data.push(M),M.previousY=this.pointValueWatcher(f,m,w,q,h,0,r))):e.data.push({y:null});!d||k||this.realtimeEnabled||(e.showInLegend=!1);return e},defaultSeriesType:"line",defaultPlotShadow:1,defaultZeroPlaneHighlighted:!1},La);sa("msareabase",{hasVDivLine:!0,point:function(d,e,m,l,f,k){d=a(l.ignoreemptydatasets,0);var E=!1,n=f.chart,
M=m.data||[],K=f[g],r=c(e.type,this.defaultSeriesType),p=c(e.isStacked,f.plotOptions[r]&&f.plotOptions[r].stacking),q=c(this.isValueAbs,K.isValueAbs,!1),t=a(e.yAxis,0),w=f[g].numberFormatter,V=this.colorManager,v=V.getPlotColor(),u=c(m.color,l.plotfillcolor,v).split(za)[0].replace(/^#?/g,"#").split(za)[0],Y=c(m.alpha,l.plotfillalpha,l.areaalpha,this.areaAlpha,70),B=a(l.plotfillangle,270),v=c(m.plotbordercolor,l.plotbordercolor,l.areabordercolor,this.isRadar?v:"666666").split(za)[0],da=c(m.showplotborder,
l.showplotborder)==Ea?Ea:c(m.plotborderalpha,l.plotborderalpha,m.alpha,l.plotfillalpha,l.areaalpha,"95"),C=a(l.plotborderangle,270),F=a(m.anchorsides,l.anchorsides,0),G=a(m.anchorstartangle,l.anchorstartangle,90),D=a(m.anchorradius,l.anchorradius,3),na=ba(c(m.anchorbordercolor,l.anchorbordercolor,u)),L=a(m.anchorborderthickness,l.anchorborderthickness,1),ca=ba(c(m.anchorbgcolor,l.anchorbgcolor,V.getColor("anchorBgColor"))),ja=Boolean(sa.area2dbase.parseAnchorVisibility(m,l,0)),ja=a(m.anchoralpha,
l.anchoralpha,this.anchorAlpha,ja?$a:0),J=a(m.anchorbgalpha,l.anchorbgalpha,ja),N=ja&&c(m.anchorshadow,l.anchorshadow,0),Xa=e.hoverEffects;this.isRadar||(u+=za+(a(l.useplotgradientcolor,1)?U(l.plotgradientcolor,V.getColor("plotGradientColor")):b),u=u.replace(/,+?$/,""));e.step=c(this.stepLine,e.step);e.drawVerticalJoins=Boolean(a(e.drawVerticalJoins,l.drawverticaljoins,1));e.useForwardSteps=Boolean(a(e.useForwardSteps,l.useforwardsteps,1));e.name=c(m.seriesname);if(0===a(m.includeinlegend)||void 0===
e.name)e.showInLegend=!1;e.fillColor={FCcolor:{color:u,alpha:Y,ratio:nb,angle:B}};e.color=u;e.shadow={opacity:a(l.showshadow,1)?da/100:0};e.anchorShadow=N;e.lineColor={FCcolor:{color:v,alpha:da,ratio:$a,angle:C}};e.lineWidth=c(m.plotborderthickness,l.plotborderthickness,1);e.dashStyle=Boolean(a(m.dashed,l.plotborderdashed,0))?h(a(m.dashlen,l.plotborderdashlen,5),a(m.dashgap,l.plotborderdashgap,4),e.lineWidth):void 0;e.marker={fillColor:{FCcolor:{color:ca,alpha:J*ja/100+b}},lineColor:{FCcolor:{color:na,
alpha:ja+b}},lineWidth:L,radius:D,symbol:Ra(F),startAngle:G};m=e._dataParser=ia.area(f,{seriesname:e.name,plottooltext:m.plottooltext,lineAlpha:da,anchorAlpha:ja,showValues:a(m.showvalues,K.showValues),yAxis:t,fillColor:u,fillAlpha:Y,valuePosition:c(m.valueposition,n.valuePosition),drawAnchors:Boolean(a(m.drawanchors,l.drawanchors,l.showanchors,1)),anchorBgColor:ca,anchorBgAlpha:J,anchorBorderColor:na,anchorBorderThickness:L,anchorRadius:D,anchorSides:F,anchorAngle:G,anchorShadow:e.anchorShadow,getLink:this.linkClickFN,
anchorStartAngle:a(m.anchorstartangle,l.anchorstartangle),_sourceDataset:m,hoverEffects:Xa,imageUrl:c(m.anchorimageurl,l.anchorimageurl),imageScale:c(m.anchorimagescale,l.anchorimagescale,100),imageAlpha:c(m.anchorimagealpha,l.anchorimagealpha,100)},this);for(n=0;n<k;n+=1)(K=M[n])?(l=K?w.getCleanValue(K.value,q):null,null===l?e.data.push({y:null}):(E=!0,K=m(K,n,l),e.data.push(K),K.previousY=this.pointValueWatcher(f,l,t,p,n,0,r))):e.data.push({y:null});!d||E||this.realtimeEnabled||(e.showInLegend=
!1);return e},defaultSeriesType:"area",defaultPlotShadow:0},La);sa("scatterbase",{showValues:0,defaultPlotShadow:0,rendererId:"cartesian",defaultSeriesType:"scatter",canvasPaddingModifiers:["anchorlabel"],point:function(d,e,m,l,f,k,E){d=a(l.ignoreemptydatasets,0);var n=this.colorManager,M=n.getPlotColor(),K,r,q,t,w,V,v,u,Y,B,da,C,F,G,D,na,L,ca,ja;k=!1;var J,N;w=a(m.drawline,l.drawlines,0);V=a(m.drawprogressioncurve,0);t=m.data||[];var Xa,Va,P,ra,Ha,ma=a(m.showvalues,f[g].showValues),ta=this.numberFormatter,
Ka,Wa=e._showRegression=a(m.showregressionline,l.showregressionline,0);e.zIndex=1;e.name=p(m.seriesname);if(0===a(m.includeinlegend)||void 0===e.name)e.showInLegend=!1;if(w||V)q=ba(c(m.color,M)),t=c(m.alpha,$a),w=a(m.linethickness,l.linethickness,2),V=Boolean(a(m.linedashed,m.dashed,l.linedashed,0)),v=a(m.linedashlen,l.linedashlen,5),u=a(m.linedashgap,l.linedashgap,4),e.color=T(c(m.linecolor,l.linecolor,q),a(m.linealpha,l.linealpha,t)),e.lineWidth=w,e.dashStyle=V?h(v,u,w):"none";w=Boolean(a(m.drawanchors,
m.showanchors,l.drawanchors,l.showanchors,1));E=a(m.anchorsides,l.anchorsides,E+3);V=a(m.anchorradius,l.anchorradius,3);q=ba(c(m.anchorbordercolor,m.color,l.anchorbordercolor,q,M));M=a(m.anchorborderthickness,l.anchorborderthickness,1);v=ba(c(m.anchorbgcolor,l.anchorbgcolor,n.getColor("anchorBgColor")));u=c(m.anchoralpha,m.alpha,l.anchoralpha,$a);da=c(m.anchorbgalpha,m.alpha,l.anchorbgalpha,u);J=c(m.anchorstartangle,l.anchorstartangle,90);e.anchorShadow=n=a(l.anchorshadow,0);e.marker={fillColor:this.getPointColor(v,
$a),lineColor:{FCcolor:{color:q,alpha:u+b}},lineWidth:M,radius:V,symbol:Ra(E)};t=m.data||[];Ha=t.length;Wa&&(e.events={hide:this.hideRLine,show:this.showRLine},Xa={sumX:0,sumY:0,sumXY:0,sumXsqure:0,sumYsqure:0,xValues:[],yValues:[]},ra=a(m.showyonx,l.showyonx,1),Va=ba(c(m.regressionlinecolor,l.regressionlinecolor,q)),P=a(m.regressionlinethickness,l.regressionlinethickness,M),K=ga(a(m.regressionlinealpha,l.regressionlinealpha,u)),Va=T(Va,K));for(r=0;r<Ha;r+=1)(Y=t[r])?(K=ta.getCleanValue(Y.y),ja=ta.getCleanValue(Y.x),
null===K?e.data.push({y:null,x:ja}):(k=!0,N=this.getPointStub(Y,K,ta.xAxis(ja),f,m,ma),C=a(Y.anchorsides,E),F=a(Y.anchorradius,V),G=ba(c(Y.anchorbordercolor,q)),D=a(Y.anchorborderthickness,M),na=ba(c(Y.anchorbgcolor,v)),L=c(Y.anchoralpha,Y.alpha,u),ca=c(Y.anchorbgalpha,da),B=Boolean(a(Y.anchorshadow,n,0)),Ka=this.pointHoverOptions(Y,e,{plotType:"anchor",anchorBgColor:na,anchorAlpha:L,anchorBgAlpha:ca,anchorAngle:J,anchorBorderThickness:D,anchorBorderColor:G,anchorBorderAlpha:L,anchorSides:C,anchorRadius:F,
shadow:void 0}),e.data.push({y:K,x:ja,displayValue:N.displayValue,toolText:N.toolText,link:N.link,marker:{enabled:w,shadow:B&&{opacity:L/100},fillColor:{FCcolor:{color:na,alpha:ca*L/100+b}},lineColor:{FCcolor:{color:G,alpha:L}},lineWidth:D,radius:F,symbol:Ra(C),startAngle:c(Y.anchorstartangle,m.anchorstartangle,l.anchorstartangle,90)},hoverEffects:Ka.enabled&&Ka.options,rolloverProperties:Ka.enabled&&Ka.rolloverOptions}),this.pointValueWatcher(f,K,ja,Wa&&Xa))):e.data.push({y:null});Wa&&(m=this.getRegressionLineSeries(Xa,
ra,Ha),this.pointValueWatcher(f,m[0].y,m[0].x),this.pointValueWatcher(f,m[1].y,m[1].x),f={type:"line",color:Va,showInLegend:!1,lineWidth:P,enableMouseTracking:!1,marker:{enabled:!1},data:m,zIndex:0},e=[e,f]);d&&!k&&(e.showInLegend=!1);return e},postSeriesAddition:function(b,c){for(var d=b.chart,e=c.chart,f=b.series,m=0,g=f.length;m<g;m+=1)f[m]._showRegression&&(f[m].relatedSeries=[m+1]);d.clipBubbles=a(e.clipbubbles,1)},categoryAdder:function(d,e){var m,l=0,f,k=e[g].x,E,n=e.xAxis,M,K,p=d.chart,q=
parseInt(p.labelstep,10),w=a(p.showlabels,1),V=c(p.xaxislabelmode,"categories").toLowerCase(),v=this.colorManager,u=e[g].numberFormatter,Y,B,da,C,G,D;e._FCconf.isXYPlot=!0;q=1<q?q:1;k.catOccupied={};if("auto"!==V&&d.categories&&d.categories[0]&&d.categories[0].category){K=d.categories[0];K.font&&(e.xAxis.labels.style.fontFamily=K.font);void 0!==(f=a(K.fontsize))&&(1>f&&(f=1),e.xAxis.labels.style.fontSize=f+Ga,r(e.xAxis.labels.style));K.fontcolor&&(e.xAxis.labels.style.color=K.fontcolor.split(za)[0].replace(/^\#?/,
"#"));m=c(K.verticallinecolor,v.getColor("divLineColor"));f=a(K.verticallinethickness,1);E=a(K.verticallinealpha,v.getColor("divLineAlpha"));v=a(K.verticallinedashed,0);Y=a(K.verticallinedashlen,4);B=a(K.verticallinedashgap,2);da=T(m,E);for(m=0;m<K.category.length;m+=1)C=K.category[m],E=u.getCleanValue(C.x),null===E||C.vline||(k.catOccupied[E]=!0,M=a(C.showlabel,C.showname,w),G=a(C.showverticalline,C.showline,C.sl,0),D=a(C.linedashed,v),M=0===M||0!==l%q?b:F(t(C.label,C.name)),n.plotLines.push({isGrid:!0,
isCat:!0,isDataLabel:!0,width:G?f:0,color:da,dashStyle:h(Y,B,f,D),value:E,label:{text:M,link:c(C.link,p.labellink),style:ka({},C,p,n.labels.style),align:va,verticalAlign:Na,textAlign:va,rotation:0,x:0,y:0}}),this.pointValueWatcher(e,null,E),l+=1);"mixed"===V&&(k.requiredAutoNumericLabels=a(this.requiredAutoNumericLabels,1))}else k.requiredAutoNumericLabels=a(this.requiredAutoNumericLabels,1);k.adjustMinMax=!0},getPointColor:function(a,b){var c,d;a=ba(a);b=ga(b);c=Da(a,70);d=Z(a,50);return{FCcolor:{gradientUnits:"objectBoundingBox",
cx:.4,cy:.4,r:"100%",color:c+za+d,alpha:b+za+b,ratio:nb,radialGradient:!0}}}},sa.xybase);sa("mscombibase",{canvasPaddingModifiers:["anchor","anchorlabel"],series:function(b,d,e){var m,f,h,l,k=b.chart,E,n=[],K=[],M=[],r,p,q=d[g],w=this.isDual,V=0,v;d.legend.enabled=Boolean(a(b.chart.showlegend,1));if(b.dataset&&0<b.dataset.length){this.categoryAdder(b,d);l=q.oriCatTmp.length;m=0;for(f=b.dataset.length;m<f;m+=1)switch(h=b.dataset[m],r=w&&"s"===c(h.parentyaxis,"p").toLowerCase()?!0:!1,E={hoverEffects:this.parseSeriesHoverOptions(b,
d,h,e),visible:!a(h.initiallyhidden,0),legendIndex:m,data:[]},r?(E.yAxis=1,p=t(h.renderas,this.secondarySeriesType),this.secondarySeriesFilter&&(v=this.secondarySeriesFilter[p])):(p=t(h.renderas,this.defaultSeriesType),this.defaultSeriesFilter&&(v=this.defaultSeriesFilter[p])),p=p.toLowerCase(),p){case "line":case "spline":E.type=!0===v?p:"line";n.push(sa.mslinebase.point.call(this,e,E,h,k,d,l,m));break;case "area":case "splinearea":E.type=!0===v?p:"area";d.chart.series2D3Dshift=!0;M.push(sa.msareabase.point.call(this,
e,E,h,k,d,l,m));break;case "column":case "column3d":K.push(sa.mscolumn2dbase.point.call(this,e,E,b.dataset[m],k,d,l,m,void 0,V));V+=1;break;default:r?(E.type="line",n.push(sa.mslinebase.point.call(this,e,E,h,k,d,l,m))):(K.push(sa.mscolumn2dbase.point.call(this,e,E,b.dataset[m],k,d,l,m,void 0,V)),V+=1)}"0"!==k.areaovercolumns?(d.chart.areaOverColumns=!0,d.series=d.series.concat(K,M,n)):(d.chart.areaOverColumns=!1,d.series=d.series.concat(M,K,n));if(0===K.length&&1!==l)q.hasNoColumn=!0;else if(!this.isStacked)for(e=
0,m=K.length;e<m;e+=1)K[e].numColumns=m;this.configureAxis(d,b);b.trendlines&&N(b.trendlines,d.yAxis,d[g],w,this.isBar)}}},sa.mscolumn2dbase)}]);
FusionCharts.register("module",["private","modules.renderer.js-renderer",function(){function e(a,b,c,d){var e=b.paper,g=b.layers,h=c?"y-axis":"x-axis",l=this.layerAboveDataset=g.layerAboveDataset,k=this.layerBelowDataset=g.layerBelowDataset,g=l.bands||(l.bands=[]),n=g.length,r=k.bands||(k.bands=[]),p=r.length,q=l.lines||(l.lines=[]),t=q.length,w=k.lines||(k.lines=[]),v=w.length,l=l.labels||(l.labels=[]),u=l.length,k=k.labels||(k.labels=[]),B=k.length;this.renderer=b;this.axisData=a||{};this.globalOptions=
b.options;this.isVertical=c;this.topBandGroup=this.topBandGroup||e.group(h+"-bands",this.layerAboveDataset);this.belowBandGroup=this.belowBandGroup||e.group(h+"-bands",this.layerBelowDataset);g.push(this.topBandGroup);n&&g[n].insertAfter(g[n-1]);r.push(this.belowBandGroup);p&&r[p].insertAfter(r[p-1]);this.topLineGroup=this.topLineGroup||e.group(h+"-lines",this.layerAboveDataset);this.belowLineGroup=this.belowLineGroup||e.group(h+"-lines",this.layerBelowDataset);this.topLabelGroup=this.topLabelGroup||
e.group(h+"-labels",this.layerAboveDataset);this.belowLabelGroup=this.belowLabelGroup||e.group(h+"-labels",this.layerBelowDataset);q.push(this.topLineGroup);t&&q[t].insertAfter(q[t-1]);w.push(this.belowLineGroup);v&&w[v].insertAfter(w[v-1]);l.push(this.topLabelGroup);u&&l[u].insertAfter(l[u-1]);k.push(this.belowLabelGroup);B&&k[B].insertAfter(k[B-1]);this.isReverse=d;this.configure()}function k(a,b,c,d){return Sa(b-c[1]-d.top,a-c[0]-d.left)}function u(a,b){var c=b?360:$a;a=(a||0)%c;return 0>a?c+a:
a}var q=this,D=q.window,b=q.hcLib,N=b.Raphael,J=b.chartAPI,c=/msie/i.test(D.navigator.userAgent)&&!D.opera,p=D.document,a=D.Image,t="VML"===N.type,U=b.BLANKSTRING,F=b.getPosition,g="rgba(192,192,192,"+(c?.002:1E-6)+")",c=b.TOUCH_THRESHOLD_PIXELS,d=b.CLICK_THRESHOLD_PIXELS,h=b.stubFN,l={pageX:0,pageY:0},L=parseFloat,P=parseInt,n=b.extend2,C=b.addEvent,w=b.getMouseCoordinate,R=b.removeEvent,v=b.pluck,oa=b.pluckNumber,ea=b.toRaphaelColor,$=b.setImageDisplayMode,W=b.FC_CONFIG_STRING,pa=b.plotEventHandler,
Ca=b.isArray,fa=b.each=function(a,b,c,d){var e;c||(c=a);d||(d={});if(Ca(a))for(e=0;e<a.length;e+=1){if(!1===b.call(c,a[e],e,a,d))return e}else if(null!==a&&void 0!==a)for(e in a)if(!1===b.call(c,a[e],e,a,d))return e},la=b.createElement,Q=b.createContextMenu,ya=b.hasTouch,G=ya?c:d,S=b.getSentenceCase,ba=b.getCrispValues,r=b.getValidValue,B=b.getFirstValue,ga=b.regex.dropHash,Z=b.HASHSTRING,Da=function(a){return a!==xa&&null!==a},T=function(a,b){a[1]===a[4]&&(a[1]=a[4]=ka(a[1])+b%2/2);a[2]===a[5]&&
(a[2]=a[5]=ka(a[2])+b%2/2);return a},xa,va=8===p.documentMode?"visible":"",qa=D.Math,Na=qa.sin,ha=qa.cos,Sa=qa.atan2,ka=qa.round,sa=qa.min,Ra=qa.max,hb=qa.abs,La=qa.ceil,za=qa.floor,ab=180/qa.PI,Ea=qa.PI,db=Ea/2,$a=2*Ea,Ga=Ea+db,Xb=b.getFirstColor,Kb=b.graphics.getLightColor,Ub=b.POSITION_TOP,kb=b.POSITION_BOTTOM,nb=b.POSITION_RIGHT,gb=b.POSITION_LEFT;N.ca.ishot=function(a){if(this.removed)return!1;var b=this.node;a=a||"";b.ishot=a;switch(this.type){case "group":for(b=this.bottom;b;)b.attr("ishot",
a),b=b.next;break;case "text":if(N.svg)for(b=b.getElementsByTagName("tspan")[0];b;)b.ishot=a,b=b.nextSibling}return!1};N.addSymbol({printIcon:function(a,b,c){var d=.75*c,e=.5*c,g=.33*c,h=ka(a-c)+.5,l=ka(b-c)+.5,k=ka(a+c)+.5;c=ka(b+c)+.5;var n=ka(a-d)+.5,r=ka(b-d)+.5,d=ka(a+d)+.5,p=ka(b+e)+.5,q=ka(a+e)+.5,t=ka(b+g)+.5;a=ka(a-e)+.5;g=ka(b+g+g)+.5;return["M",n,l,"L",d,l,d,r,n,r,"Z","M",h,r,"L",h,p,n,p,n,b,d,b,d,p,k,p,k,r,"Z","M",n,b,"L",n,c,d,c,d,b,"Z","M",q,t,"L",a,t,"M",q,g,"L",a,g]},exportIcon:function(a,
b,c){var d=.66*c,e=.5*d,g=ka(a-c)+.5,h=ka(b-c)+.5,l=ka(a+c)+.5;c=ka(b+c)-.5;var k=ka(a-e)+.5,n=b<c-3?c-3:ka(b)+.5,e=ka(a+e)-.5,r=ka(a+d)-.5,d=ka(a-d)+.5;return["M",g,n,"L",g,c,l,c,l,n,l,c,g,c,"Z","M",a,c-1,"L",d,b,k,b,k,h,e,h,e,b,r,b,"Z"]}});b.rendererRoot=J("renderer.root",{standaloneInit:!1,isRenderer:!0,inited:!1,callbacks:[],init:function(a,b,c){var d=this,e=d.container=a&&a.containerElement||b.chart.renderTo,g=b.tooltip,h=d.layer,l,k;d.options=b;d.logic=a;d.definition=a.dataObj;d.smartLabel=
a.smartLabel;d.numberFormatter=a.numberFormatter;d.fusionCharts=a.chartInstance;d.linkClickFN=a.linkClickFN;k=(l=b.chart)&&l.animation&&l.animation.duration;d.animationCompleteQueue=[];e.innerHTML=U;e=d.paper=d.fusionCharts.jsVars.paper=new N(e,e.offsetWidth||a.width,e.offsetHeight||a.height);!1!==q.core.options._useSVGDescTag&&e._desc&&(l=a.friendlyName||"Vector image",d.definition&&d.definition.chart&&d.definition.chart.caption&&(l+=' with caption "'+d.definition.chart.caption+'"'),e._desc(l));
d.chartWidth=e.width;d.chartHeight=e.height;d.elements||(d.elements={});h||(h=d.layers={},h.background=h.background||e.group("background"),h.dataset=h.dataset||e.group("dataset").insertAfter(h.background),h.tracker=h.tracker||e.group("hot").insertAfter(h.dataset));g&&!1!==g.enabled&&(e.tooltip(g.style,g.shadow,g.constrain),h.tracker.trackTooltip(!0),h.dataset.trackTooltip(!0));d.disposeChartStyleSheet();d.setMargins();d.drawBackground();d.drawButtons();d.drawGraph();b.legend&&b.legend.enabled&&d.drawLegend();
d.drawCaption();d.drawLogo();d.setChartEvents();d.drawLabels&&d.drawLabels();fa(b.callbacks,function(a){a.apply(d,this)},[a]);fa(d.callbacks,function(a){a.apply(d,this)},[a]);d.fusionCharts.annotations&&d.fusionCharts.annotations.draw(d);d.createChartStyleSheet();d.options.nativeMessage||k||q.raiseEvent("internal.animationComplete",{},d.fusionCharts);d.hasRendered=!0;c&&c(d)},disposeChartStyleSheet:function(){this.paper.cssClear()},createChartStyleSheet:function(){this.paper.cssRender()},addCSSDefinition:function(a,
b){var c=this.paper;b.color&&(b.fill=b.color);c.cssAddRule(a,b)},animationCompleteQueue:[],animationComplete:function(){var a,b,c,d;this.animatedElements=this.animatedElements?++this.animatedElements:1;if(this.animatedElements===this.animatingElementsCount){c=this.animationCompleteQueue;a=0;for(b=c.length;a<b;a++)d=c[a],d.fn&&d.fn.call(d.scope);this.animationCompleteQueue=[];q.raiseEvent("internal.animationComplete",{},this.fusionCharts)}},getAnimationCompleteFn:function(){var a=this;a.animatingElementsCount=
a.animatingElementsCount?++a.animatingElementsCount:1;return function(){a.animationComplete()}},reinit:function(a,b,c){this.hasRendered||this.init(b,c)},dispose:function(){var a=this.eventListeners,b=a&&a.length;this.disposing=!0;if(b)for(;b--;)a[b].unlisten();if(this.toolbar&&this.toolbar.length){for(;this.toolbar.length;)a=this.toolbar.pop(),a.remove();this.toolbar.add=null}if(this.menus&&this.menus.length)for(;this.menus.length;)a=this.menus.pop(),a.destroy();this.paper&&(this.paper.clear(),this.paper.remove(),
delete this.paper);this.exportIframe&&(this.exportIframe.parentNode.removeChild(this.exportIframe),delete this.exportIframe);delete this.disposing;this.container=null;this.disposed=!0},onContainerClick:function(a){var c=a.target||a.originalTarget||a.srcElement||a.relatedTarget||a.fromElement,d=a.data,e=d.fusionCharts;a=b.getMouseCoordinate(d.container,a.originalEvent);e.ref&&(e=n({height:e.args.height,width:e.args.width,pixelHeight:e.ref.offsetHeight,pixelWidth:e.ref.offsetWidth,id:e.args.id,renderer:e.args.renderer,
container:e.options.containerElement},a),q.raiseEvent("chartclick",e,d.logic.chartInstance),c&&c.ishot&&d||d.options.chart.link&&d.linkClickFN.call(d,d))},onContainerMouseMove:function(a){var c=a.data,d=c.fusionCharts;a=b.getMouseCoordinate(c.container,a.originalEvent);d.ref&&(d=n({height:d.args.height,width:d.args.width,pixelHeight:d.ref.offsetHeight,pixelWidth:d.ref.offsetWidth,id:d.args.id,renderer:d.args.renderer,container:d.options.containerElement},a),q.raiseEvent("chartMouseMove",d,c.logic.chartInstance))},
onContainerRollOver:function(a){var c=a.data,d=c.fusionCharts;a=b.getMouseCoordinate(c.container,a.originalEvent);d.ref&&(d=n({height:d.args.height,width:d.args.width,pixelHeight:d.ref.offsetHeight,pixelWidth:d.ref.offsetWidth,id:d.args.id,renderer:d.args.renderer,container:d.options.containerElement},a),q.raiseEvent("chartRollOver",d,c.logic.chartInstance))},onContainerRollOut:function(a){var c=a.chart,d=c.fusionCharts;a=b.getMouseCoordinate(c.container,a.event);d.ref&&(d=n({height:d.args.height,
width:d.args.width,pixelHeight:d.ref.offsetHeight,pixelWidth:d.ref.offsetWidth,id:d.args.id,renderer:d.args.renderer,container:d.options.containerElement},a),q.raiseEvent("chartRollOut",d,c.logic.chartInstance))},mouseStateIn:!1,winMouseHover:function(a){var b=a.originalEvent,b=b.target||b.originalTarget||b.srcElement||b.relatedTarget||b.fromElement,c=a.data,d=c.paper;a={chart:c,event:a.originalEvent};t?d.getById(b.parentNode.raphaelid)||(c.onContainerRollOut(a),c.mouseStateIn=!1,R(p,"mouseover",
c.winMouseHover)):b.viewportElement||(c.mouseStateIn=!1,c.onContainerRollOut(a),R(D,"mouseover",c.winMouseHover))},chartHoverManager:function(){return function(a){var b=a.type,c=a.data,d=c.eventListeners||(c.eventListeners=[]);"mouseover"!==b&&"touchstart"!==b||!1!==c.mouseStateIn||(c.mouseStateIn=!0,c.onContainerRollOver(a),d.push(C(t?p:D,"mouseover",c.winMouseHover,c)))}}(),setChartEvents:function(){var a=this.options,b=this.eventListeners||(this.eventListeners=[]),a=this.link=a.chart.link,c=this.container,
d=oa(this.definition&&this.definition.chart.enablechartmousemoveevent,0);R(c,"click",this.onContainerClick);b.push(C(c,"click",this.onContainerClick,this));R(this.paper.canvas,"mouseover",this.chartHoverManager,this);R(this.paper.canvas,"touchstart",this.chartHoverManager,this);R(this.paper.canvas,"mouseout",this.chartHoverManager,this);R(this.paper.canvas,"touchend",this.chartHoverManager,this);b.push(C(this.paper.canvas,"mouseover touchstart mouseout touchend",this.chartHoverManager,this));R(c,
"mousemove",this.onContainerMouseMove,this);R(c,"touchmove",this.onContainerMouseMove,this);d&&b.push(C(c,"mousemove touchmove",this.onContainerMouseMove,this));this.paper.canvas.style.cursor=N.svg?a&&"pointer"||"default":a&&"hand"||"default"},onOverlayMessageClick:function(){var a=this.elements;N.animation({opacity:0},1E3);a.messageText&&a.messageText.hide();a.messageVeil&&a.messageVeil.hide()},showMessage:function(a,b){var c=this.paper,d=this.options.chart,e=this.elements,g=e.messageText,h=e.messageVeil,
l=c.width,k=c.height;h||(h=e.messageVeil=c.rect(0,0,l,k).attr({fill:"rgba(0,0,0,0.2)",stroke:"none"}));h.show().toFront().attr("cursor",b?"pointer":"default")[b?"click":"unclick"](this.onOverlayMessageClick,this);g||(g=e.messageText=c.text(l/2,k/2,U).attr({fill:"rgba(255,255,255,1)","font-family":"Verdana,sans","font-size":10,"line-height":14,direction:d.textDirection,ishot:!0}));a=a||U;this.smartLabel.setStyle({"line-height":"14px","font-family":"Verdana,sans","font-size":"10px"});c=this.smartLabel.getSmartText(a,
l-(d.spacingRight||0)-(d.spacingLeft||0),k-(d.spacingTop||0)-(d.spacingBotton||0));g.attr({text:c.text,ishot:!0,cursor:b?"pointer":"default"})[b?"click":"unclick"](this.onOverlayMessageClick,this).show().toFront()},drawButtons:function(){var a=this,b=a.logic,c="zoomline"===b.rendererId,d=a.paper,e=a.elements,g=a.toolbar||(a.toolbar=[]),h=a.menus||(a.menus=[]),l=a.layers,k=a.options,n=k[W],b=n&&n.outCanvasStyle||b.outCanvasStyle||{},n=k.chart.toolbar||{},r=n.hDirection,p=c?1:n.vDirection,q=n.button||
{},t=q.scale,w=q.width*q.scale,v=q.height*q.scale,u=r*(q.spacing*q.scale+w),B=q.radius,C=(k=k.exporting)&&k.buttons||{},F=C.exportButton&&!1!==C.exportButton.enabled,C=C.printButton&&!1!==C.printButton.enabled,G,D=l.buttons||(l.buttons=d.group("buttons").trackTooltip(!0));g.y||(g.y=(c?0:n.y)+n.vMargin*p+sa(0,v*p));g.x||(g.x=n.x+n.hMargin*r-Ra(0,w*r));g.count=0;g.add=function(a,b,c){c="string"===typeof c?{tooltip:c}:c||{};var e=0===g.count?u-r*q.spacing*q.scale:u,e=c.x||(g.x+=e),m=c.tooltip||"";g.push(a=
d.button(e,c.y||g.y,xa,a,{width:w,height:v,r:B,id:g.count++,verticalPadding:q.symbolHPadding*t,horizontalPadding:q.symbolHPadding},D).attr({ishot:!0,fill:[q.fill,q.labelFill,q.symbolFill,q.hoverFill],stroke:[q.stroke,q.symbolStroke],"stroke-width":[q.strokeWidth,q.symbolStrokeWidth]}).tooltip(m).buttonclick(b));return a};F&&(h.push(G=e.exportMenu=Q({chart:a,basicStyle:b,items:function(b){var c=[],d=function(b){return function(){a.logic.chartInstance.exportChart({exportFormat:b})}},e;for(e in b)c.push({text:b[e],
onclick:d(e)});return c}(k.exportformats)})),e.exportButton=g.add("exportIcon",function(a,b){return function(){G.visible?G.hide():G.show({x:a,y:b+1})}}(g.x+w,g.y+v),{tooltip:"Export chart"}));C&&(e.printButton=g.add("printIcon",function(){a.print()},{tooltip:"Print chart"}))},setMargins:function(){var a=this.paper,b=this.options.chart||{},c=ka;this.canvasBorderWidth=b.plotBorderWidth||0;this.canvasTop=c(b.marginTop)||0;this.canvasLeft=c(b.marginLeft)||0;this.canvasWidth=c(a.width-(b.marginLeft||0)-
(b.marginRight||0));this.canvasHeight=c(a.height-(b.marginTop||0)-(b.marginBottom||0));this.canvasRight=this.canvasLeft+this.canvasWidth;this.canvasBottom=this.canvasTop+this.canvasHeight},drawBackground:function(){var b=this,c=b.paper,d=b.layers,e=b.elements,g=d.background,h=e.background,l=e.chartborder,k=b.options.chart||{},n=L(k.borderWidth)||0,r=.5*n,p=2*n,t=k.borderWidth||0,w=b.chartHeight,v=b.chartWidth,u=e.backgroundImage,B=k.bgSWF,C=k.bgSWFAlpha/100,F=k.bgImageDisplayMode,G=k.bgImageVAlign,
D=k.bgImageHAlign,J=k.bgImageScale,N=t+","+t+","+(v-2*t)+","+(w-2*t),P,R,Q,S,Fa,U,T;c.canvas.style.backgroundColor=k.containerBackgroundColor;!g&&(g=d.background=c.group("background"));d={x:n,y:n,width:c.width-p,height:c.height-p,stroke:"none",fill:ea(k.backgroundColor)};h?h.attr(d):h=e.background=c.rect(d,g);d={x:r,y:r,width:c.width-n,height:c.height-n,stroke:k.borderColor,"stroke-width":n,"stroke-dasharray":k.borderDashStyle,fill:"none",r:k.borderRadius||0};l?l.attr(d):l=e.chartborder=c.rect(d,
g);B&&(P=new a,Fa=Q=1,u=[],P.onload=function(){R=$(F,G,D,J,t,v,w,P);R["clip-rect"]=N;if(R.tileInfo)for(Q=R.tileInfo.xCount,Fa=U=R.tileInfo.yCount,T=R.y,delete R.tileInfo;Q&&R.width&&R.height;)--U,S?(u[void 0]=S.clone().attr({x:R.x,y:R.y}),g.appendChild(u[void 0])):u[void 0]=S=c.image(B,g).attr(R).css({opacity:C}),R.y+=R.height,0===U&&(U=Fa,--Q,R.x+=R.width,R.y=T);else{if(b.disposed||c.disposed)return;u[0]=c.image(B,g);u[0].attr(R).css({opacity:C}).attr({visibility:va,"clip-rect":N})}q.raiseEvent("BackgroundLoaded",
{url:B,bgImageAlpha:100*C,bgImageDisplayMode:F,bgImageVAlign:G,bgImageHAlign:D,bgImageScale:J,imageWidth:P.width,imageHeight:P.height},b.logic.chartInstance)},P.onerror=function(a){q.raiseEvent("BackgroundLoadError",{url:B,bgImageAlpha:100*C,error:a,bgImageDisplayMode:F,bgImageVAlign:G,bgImageHAlign:D,bgImageScale:J},b.logic.chartInstance)},P.src=B,e.backgroundImage=u)},drawGraph:function(){var a=this,b=a.paper,c=a.plots=a.elements.plots,d=a.logic,e=a.layers,g=a.options,h=a.elements,l=g.chart,g=a.datasets=
g.series,k=B(l.rendererId,l.defaultSeriesType),r=e.background,q=e.dataset=e.dataset||b.group("dataset").insertAfter(r),p,t,r=function(a,b){return function(e){var g=c[a],m,h={hcJSON:{series:[]}},l=h.hcJSON.series[a]||(h.hcJSON.series[a]={}),k=d.chartInstance.jsVars._reflowData;m=(e=B(e,!g.visible))?"visible":"hidden";fa(g.graphics,function(a){!0!==a.data("alwaysInvisible")&&a.attr("visibility",m)});g.visible=e;b.visible=e;l.visible=e;n(k,h,!0)}},w=function(b){return function(d,e){a["legendClick"+k]&&
a["legendClick"+k](c[b],d,e)||a.legendClick&&a.legendClick(c[b],d,e)}},u=function(b){return function(){return a.getEventArgs&&a.getEventArgs(c[b])}},C=function(b,d,e){return function(g,h){d.call(a,c[b],e,{numUpdate:g,hasAxisChanged:h})}};e.tracker=e.tracker||b.group("hot").insertAfter(q);a.drawCanvas();a.drawAxes();c||(c=a.plots=a.plots||[],h.plots=c);e=0;for(h=g.length;e<h;e++)b=g[e]||{},q=b.updatePlot="updatePlot"+S(v(b.type,b.plotType,k)),q=a[q],p=b.drawPlot="drawPlot"+S(v(b.type,b.plotType,k)),
p=a[p]||a.drawPlot,(t=c[e])||(c.push(t={index:e,items:[],data:b.data||[],name:b.name,userID:b.userID,setVisible:r(e,b),legendClick:w(e),getEventArgs:u(e),realtimeUpdate:C(e,q||p,b)}),b.plot=t,b.legendClick=t.legendClick,b.getEventArgs=t.getEventArgs,b.setVisible=t.setVisible),p.call(a,t,b);l.hasScroll&&(a.drawScroller(),a.finalizeScrollPlots())},drawPlot:h,drawCanvas:h,drawAxes:h,drawScroller:function(){},drawLegend:function(){var a=this,b=a.options,c=a.paper,d=b.chart||{},e=b.legend,g=e.scroll,b=
{elements:{}},h=b.elements,l=a.layers.legend,k=h.box,r=h.caption,q=h.elementGroup,p="vertical"===e.layout,t=d.marginBottom,w=d.spacingBottom,v=d.spacingLeft,u=d.spacingRight,B=c.width,C=c.height,F=a.canvasTop,G=e.width,D=e.height,L=e.borderRadius,J=e.backgroundColor,P=e.borderColor,R=e.borderWidth||0,Q=.5*R,Fa=.5*R+2,T=oa(e.padding,4),ea=.5*T,W,Ua,Aa,$,ia,s,z,A;A=g&&g.enabled;p?(p=B-u-G,t=F+.5*(C-t-F-D)+(e.y||0)):(p=v+.5*(B-v-u-G)+(e.x||0),t=C-w-D);w=N.crispBound(p,t,G,D,R);p=w.x;t=w.y;G=w.width;
D=w.height;l||(l=a.layers.legend=c.group("legend").insertBefore(a.layers.tracker).translate(p,t).attr("class","fusioncharts-legend"));a.addCSSDefinition(".fusioncharts-legend .fusioncharts-caption",n({"text-anchor":e.title.align},e.title.style));e.legendAllowDrag&&(a.addCSSDefinition(".fusioncharts-legend",{cursor:"move"}),Ua=p,Aa=t,l.drag(function(a,b){$=s+a;ia=z+b;$+G+Fa>B&&($=B-G-Fa);ia+D+Fa>C&&(ia=C-D-Fa);$<Fa&&($=Fa);ia<Fa&&(ia=Fa);l.translate($-Ua,ia-Aa);Ua=$;Aa=ia},function(){s=Ua;z=Aa}));
L={x:0,y:0,width:G,height:D,r:L,stroke:P,"stroke-width":R,fill:J||"none",ishot:e.legendAllowDrag};k?k.attr(L):k=h.box=c.rect(L,l);k.shadow(e&&e.shadow);A?(W=D-T,k=","+G+","+W,q=h.elementGroup=c.group("legenditems",l).attr({"clip-rect":"0,"+ea+k}),g=h.scroller||(h.scroller=c.scroller(G-10+ea-R,Q,10,D-R,!1,{scrollPosition:g.scrollPosition||0,scrollRatio:(W+T)/e.totalHeight,showButtons:!1,displayStyleFlat:g.flatScrollBars},l)),g.attr("fill",e.legendScrollBgColor).scroll(function(b){q.transform(["T",
0,(W-e.totalHeight)*b]);n(a.fusionCharts.jsVars._reflowData,{hcJSON:{legend:{scroll:{position:b}}}},!0)})):q=h.elementGroup=l;if(e.title&&e.title.text!==U){switch(e.title.align){case "start":A=T;break;case "end":A=G-T-(A?10:0);break;default:A=.5*G}L={"class":"fusioncharts-caption","text-anchor":e.title.align,text:e.title.text,title:e.title.originalText||"",x:A,y:T,fill:e.title.style.color,"vertical-align":"top",direction:d.textDirection,"line-height":e.title.style.lineHeight};r?r.attr(L):r=h.caption=
c.text(L,q).attr("class","fusioncharts-caption")}this["draw"+S(e.type||"point")+"LegendItem"](b)},drawPointLegendItem:function(a){var b=this,c=b.paper,d=b.options,e=d.series,h=d.chart,l=h.defaultSeriesType,d=d.legend,k=d.legendHeight,r=d.symbolPadding,p=d.textPadding||2,t=oa(d.padding,4),h=h.textDirection,u=d.itemHoverStyle,B=d.itemHiddenStyle,C=d.itemStyle,F=C.color,B=B&&B.color||"#CCCCCC",G=u&&u.color||F,u=d.symbol3DLighting,D=d.symbolWidth,L=!1!==d.interactiveLegend,J=a.elements,N=J.elementGroup;
a=a.item=[];var J=J.item=[],P=[],R={line:!0,spline:!0,scatter:!0,bubble:!0,dragnode:!0,zoomline:!0},Q,S,T,U,Fa,W,$,Z,Ua,Aa,ub,ia,s,z,A,O,f,Ia,X,H,aa;ia=0;for(s=e.length;ia<s;ia+=1)if((Q=e[ia])&&!1!==Q.showInLegend)if(Z=Q.type||l,"point"===Q.legendType)for(Q=Q.data||[],Fa=0,W=Q.length;Fa<W;Fa+=1)T=Q[Fa]||{},!1!==T.showInLegend&&(T._legendType=Z,P.push(T));else switch(Q._legendType=Z,Z){case "pie":case "pie3d":case "funnel":case "pyramid":P=Q.data;break;default:P.push(Q)}P.sort(function(a,b){return(a.legendIndex||
0)-(b.legendIndex||0)||a.__i-b.__i});d.reversed&&P.reverse();e=d.initialItemX||0;l=d.initialItemY||0;Fa=function(a){var c=this.data("legendItem"),d=c.getEventArgs?c.getEventArgs():{},e;a=w(b.logic.chartInstance.ref,a);d.chartX=a.chartX;d.chartY=a.chartY;d.pageX=a.pageX;d.pageY=a.pageY;d.preventDefaults=function(){e=!0};q.raiseEvent("LegendItemClicked",d,b.logic.chartInstance);L&&!e&&c.legendClick()};W=function(a){var c=this.data("legendItem"),d=c.getEventArgs?c.getEventArgs():{};a=w(b.logic.chartInstance.ref,
a);var e=!1!==c.visible,c=c.plot.legend.elements.legendItemText;d.chartX=a.chartX;d.chartY=a.chartY;d.pageX=a.pageX;d.pageY=a.pageY;e&&c&&c.attr({fill:G});q.raiseEvent("LegendItemRollover",d,b.logic.chartInstance)};$=function(a){var c=this.data("legendItem"),d=c.getEventArgs?c.getEventArgs():{};a=w(b.logic.chartInstance.ref,a);var e=!1!==c.visible,c=c.plot.legend.elements.legendItemText;d.chartX=a.chartX;d.chartY=a.chartY;d.pageX=a.pageX;d.pageY=a.pageY;e&&c&&c.attr({fill:F});q.raiseEvent("LegendItemRollout",
d,b.logic.chartInstance)};b.addCSSDefinition(".fusioncharts-legend .fusioncharts-legenditem",d.itemStyle);ia=0;for(s=P.length;ia<s;ia+=1)!1!==P[ia].showInLegend&&(aa={elements:{},hiddenColor:B,itemTextColor:F,hoverColor:G},a.push(aa),J.push(aa.elements),Q=P[ia],Ua=e+Q._legendX+t,Aa=l+Q._legendY-t,ub=Q._legendH,S=Q._legendType||Z,T=!1!==Q.visible,U=aa.itemLineColor=ea(Q.color||{}),Q.plot.legend=aa,aa.elements.legendItemText=c.text({"class":"fusioncharts-legenditem",x:Ua+k+p-2,y:Aa+(Q._legendTestY||
0),text:Q.name,fill:T?F:B,"vertical-align":"top",direction:h,"text-anchor":"start",cursor:C.cursor||"pointer",ishot:L,"line-height":C.lineHeight,"font-size":C.fontSize},N).data("legendItem",Q),R[S]?(S=Aa+(Q._markerYGutter||0)+r+.5*D,Q.lineWidth&&(H=aa.elements.legendItemLine=c.path({"stroke-width":Q.lineWidth,stroke:T?U:B,cursor:C.cursor||"pointer",ishot:L,path:["M",Ua+r,S,"L",Ua+r+D,S]},N).data("legendItem",Q)),Q&&(f=Q.marker)&&!1!==f.enabled&&(aa.symbolStroke=ea(v((Ia=f.lineColor)&&(Ia.FCcolor&&
Ia.FCcolor.color.split(",")[0]||Ia),U)),u?f.fillColor&&f.fillColor.FCcolor?(S=n({},f.fillColor),S.FCcolor.alpha="100"):S=v(f.fillColor,U):S={FCcolor:{color:v((X=f.fillColor)&&(X.FCcolor&&X.FCcolor.color.split(",")[0]||X),U),angle:0,ratio:"0",alpha:"100"}},aa.symbolColor=ea(S),z=.5*D,U=Ua+r+z,S=Aa+(Q._markerYGutter||0)+r+z,H&&(z*=.6),A=f.symbol.split("_"),O="spoke"===A[0]?1:0,S=A[1]?aa.elements.legendItemSymbol=c.polypath(A[1],U,S,z,f.startAngle,O,N):aa.elements.legendItemSymbol=c.circle(U,S,z,N),
S.data("legendItem",Q).attr({cursor:C.cursor||"pointer",stroke:T?aa.symbolStroke:B,fill:T?aa.symbolColor:B,"stroke-width":1,ishot:L}))):(S=b.getSymbolPath(Ua+r,Aa+(Q._markerYGutter||0)+r,D,D,S,Q,!u),aa.symbolColor=ea(S.color),aa.symbolStroke=ea(S.strokeColor),S=aa.elements.legendItemSymbol=c.path({path:S.path,"stroke-width":S.strokeWidth,stroke:T?aa.symbolStroke:B,fill:T?aa.symbolColor:B,cursor:C.cursor||"pointer",ishot:L},N).data("legendItem",Q)),aa.elements.legendItemBackground=c.rect({x:Ua,y:Aa,
width:Q._totalWidth,height:ub,r:0,fill:ea(Q.legendFillColor||g),"stroke-width":1,stroke:ea(Q.legendBorderColor||"none"),cursor:C.cursor||"pointer",ishot:L},N).click(Fa).mouseover(W).mouseout($).data("legendItem",Q));d.reversed&&P.reverse()},drawCaption:function(){var a=this.options.chart,b=this.options.title,c=this.options.subtitle,d=this.paper,e=this.smartLabel,g=this.elements,h=this.layers,l=h.caption,k=g.caption,n=g.subcaption,r=b.text,p=c&&c.text,q=b.x,t;!r&&!p||l||(l=h.caption=d.group("caption"),
h.tracker?l.insertBefore(h.tracker):l.insertAfter(h.dataset));r?(this.addCSSDefinition(".fusioncharts-caption",b.style),t={"class":"fusioncharts-caption",text:b.text,fill:b.style.color,x:q,y:b.y||a.spacingTop||0,"text-anchor":b.align||"middle","vertical-align":b.verticalAlign||"top",visibility:"visible",direction:a.textDirection,title:b.originalText||""},k?k.attr(t):k=g.caption=d.text(t,l).attr("class","fusioncharts-caption"),k.css(b.style),e?(e.setStyle(b.style),t=e.getOriSize(b.text).height):t=
10):k&&(k=g.caption=k.remove());p?(this.addCSSDefinition(".fusioncharts-subcaption",c.style),t={"class":"fusioncharts-subcaption",text:c.text,title:c.originalText||"",fill:c.style.color,x:q,y:r?k.attrs.y+t+2:b.y||a.spacingTop||0,"text-anchor":b.align||"middle","vertical-align":"top",direction:a.textDirection,visibility:"visible"},n?n.attr(t):n=g.subcaption=d.text(t,l).attr("class","fusioncharts-subcaption"),n.css(c.style)):n&&(g.subcaption=n.remove());r||p||!l||(h.caption=l.remove())},drawLogo:function(){var b=
this,c=b.paper,d=b.elements,e=b.options,g=e.credits,h=e.chart||{},l=h.borderWidth||0,k=b.chartHeight,n=b.chartWidth,r=d.logoImage,p=h.logoURL,v=h.logoAlpha/100,u=h.logoPosition,B=h.logoLink,C=h.logoScale,F=h.logoLeftMargin,G=h.logoTopMargin,e={tr:{vAlign:Ub,hAlign:nb},bl:{vAlign:kb,hAlign:gb},br:{vAlign:kb,hAlign:nb},cc:{vAlign:"middle",hAlign:"middle"}},L,J,N;b.logic&&g.enabled&&c.text().attr({text:g.text,x:6,y:k-4,"vertical-align":kb,direction:h.textDirection,"text-anchor":"start",fill:"rgba(0,0,0,0.5)",
title:g.title||""}).css({fontSize:9,fontFamily:"Verdana,sans",cursor:"pointer",_cursor:"hand"}).click(function(){try{D.open(g.href)}catch(a){(D.top||D).location.href=g.href}});p&&(L=new a,(N=e[u])||(N={vAlign:Ub,hAlign:gb}),L.onload=function(){b.disposed||c.disposed||(J=$("none",N.vAlign,N.hAlign,C,l,n,k,L),t&&(J.w=J.width||0,J.h=J.height||0),J.src=p,r=b.paper.image(J).translate(F,G).css("opacity",v),B&&r.css({cursor:"pointer",_cursor:"hand"}),r.mouseover(function(a){a=w(b.logic.chartInstance.ref,
a);q.raiseEvent("LogoRollover",{logoURL:p,logoAlpha:100*v,logoPosition:u||"tl",logoScale:C,logoLink:B,chartX:a.chartX,chartY:a.chartY,pageX:a.pageX,pageY:a.pageY},b.logic.chartInstance)}),r.mouseout(function(a){a=w(b.logic.chartInstance.ref,a);q.raiseEvent("LogoRollout",{logoURL:p,logoAlpha:100*v,logoPosition:u||"tl",logoScale:C,logoLink:B,chartX:a.chartX,chartY:a.chartY,pageX:a.pageX,pageY:a.pageY},b.logic.chartInstance)}),r.click(function(a){a=w(b.logic.chartInstance.ref,a);q.raiseEvent("LogoClick",
{logoURL:p,logoAlpha:100*v,logoPosition:u||"tl",logoScale:C,logoLink:B,chartX:a.chartX,chartY:a.chartY,pageX:a.pageX,pageY:a.pageY},b.logic.chartInstance,void 0,function(){B&&h.events.click.call({link:B})})}),q.raiseEvent("LogoLoaded",{logoURL:p,logoAlpha:100*v,logoPosition:u||"tl",logoScale:C,logoLink:B},b.logic.chartInstance))},L.onerror=function(a){q.raiseEvent("LogoLoadError",{logoURL:p,logoAlpha:100*v,logoPosition:u||"tl",logoScale:C,logoLink:B,error:a},b.logic.chartInstance)},L.src=p,d.logoImage=
r)},getEventArgs:function(a){a=a||{};return{datasetName:a.name,datasetIndex:a.index,id:a.userID,visible:a.visible}},legendClick:function(a,b){var c=a.legend,d=c&&c.elements,e=d&&d.legendItemText,g=d&&d.legendItemSymbol,d=d&&d.legendItemLine,h=c&&c.hiddenColor,l=c&&c.itemLineColor,k=c&&c.itemTextColor,n=c&&c.symbolColor,r=c&&c.symbolStroke,c=v(b,!a.visible);a.setVisible(b);c?(g&&g.attr({fill:n||l,stroke:r}),e&&e.attr({fill:k}),d&&d.attr({stroke:l})):(g&&g.attr({fill:h,stroke:h}),e&&e.attr({fill:h}),
d&&d.attr({stroke:h}));if((e=this.datasets&&this.datasets[a.index]&&this.datasets[a.index].relatedSeries)&&e instanceof Array&&0<e.length)for(g=e.length;g--;)d=parseFloat(e[g]),d=this.plots[d],d.legendClick.call(d,c,!1)},exportChart:function(c){var d=this,e=d.fusionCharts,g=d.options;c="object"===typeof c&&function(a){var b={},c;for(c in a)b[c.toLowerCase()]=a[c];return b}(c)||{};var h=n(n({},g.exporting),c),l=(h.exportformat||"png").toLowerCase(),k=h.exporthandler,r=(h.exportaction||U).toLowerCase(),
t=h.exporttargetwindow||U,w=h.exportfilename,v=h.exportparameters,u=h.exportcallback,B=h.exportwithimages;if(!g.exporting||!g.exporting.enabled||!k)return!1;q.raiseEvent("beforeExport",h,e,void 0,function(){function c(){var a;if("download"===r){/webkit/ig.test(D.navigator.userAgent)&&"_self"===t&&(t=F=m+"export_iframe",d.exportIframe||(d.exportIframe=G=la("IFRAME",{name:F,width:"1px",height:"1px"},p.body),G.style.cssText="position:absolute;left:-10px;top:-10px;"));L=la("form",{method:"POST",action:k,
target:t,style:"display:none;"},p.body);for(a in C)la("input",{type:"hidden",name:a,value:C[a]},L);L.submit();p.body.removeChild(L);L=void 0;return!0}J=new q.ajax(function(a){var c={};a.replace(RegExp("([^?=&]+)(=([^&]*))?","g"),function(a,b,d,e){c[b]=e});u&&D[u]&&"function"===typeof D[u]&&D[u].call(D,c);b.raiseEvent("exported",c,e)},function(a){a={statusCode:0,statusMessage:"failure",error:a,DOMId:m,width:n.width,height:n.height};u&&D[u]&&"function"===typeof D[u]&&D[u].call(D,a);b.raiseEvent("exported",
a,e,[a])});for(a in C)C.hasOwnProperty(a)&&(C[a]=encodeURIComponent(C[a]));J.post(k,C)}var g=d.layers.buttons,m=e.id,n=d.paper,K=q&&q.hcLib,C,F,G,L,J,N,K=K&&K.isCanvasElemSupported(),P,R,Q=0,S={},T,U,ea,W,$={};g&&g.attr("visibility","hidden");N=n.toSVG(B&&K&&"svg"!==l);g&&g.attr("visibility","visible");N=N.replace(/(\sd\s*=\s*["'])[M\s\d\.]*(["'])/ig,"$1M 0 0 L 0 0$2");C={charttype:e.chartType(),stream:N,stream_type:"svg",meta_bgColor:h.bgcolor||"",meta_bgAlpha:h.bgalpha||"1",meta_DOMId:e.id,meta_width:n.width,
meta_height:n.height,parameters:["exportfilename="+w,"exportformat="+l,"exportaction="+r,"exportparameters="+v].join("|")};-1!==N.indexOf("<image ")?K?(R=(P=N.match(/<image [^\>]*\>/gi))&&P.length,T=function(a){a=a&&a.split("/");a=a[a.length-1].split(".");return{name:a[0],type:a[1]||"png"}},U=function(b,c,d,e,g){var f=new a;f.onload=function(){var a="image/"+d,m=p.createElement("canvas"),h=m.getContext("2d"),l="";m.width=f.width;m.height=f.height;h.drawImage(f,0,0);l=m.toDataURL(a);$[b]=l;W(l,c,d,
e,g)};f.onerror=function(){ea()};f.src=b},W=function(a,b,c,d,e){S["image_"+Q]={name:b,type:c,encodedData:a,width:d,height:e};ea()},ea=function(){var a={},b,d,e,g,f,m=!1;Q<R?(b=P[Q].replace(/\"/g,""),b.split(" ").forEach(function(b){b=b.split("=");a[b[0]]=b[1]}),a["xlink:href"]&&(b=(d=T(a["xlink:href"]))&&d.name||"temp_image_"+Q,e=d&&d.type||"png",g=parseInt(a.width,10),f=parseInt(a.height,10),d=b+"."+e,$[a["xlink:href"]]?m=!0:U(a["xlink:href"],b,e,g,f)),b='xlink:href="'+a["xlink:href"],N=N.replace(b,
'xlink:href="temp/'+d),Q+=1,m&&ea()):(C.encodedImgData=JSON.stringify(S),C.stream=N,c())},ea()):c():c();q.raiseEvent("exportDataReady",C,e)},function(){q.raiseEvent("exportCancelled",h,e)})},print:function(a){var b=this,c=n({},a);if(b.isPrinting)return!1;q.raiseEvent("BeforePrint",c,b.logic.chartInstance,void 0,function(){var a=b.container,d=b.elements,e=d.printButton,g=d.exportButton,m=[],h=a.parentNode,d=p.body||p.getElementsByTagName("body")[0],l=d.childNodes;b.isPrinting=!0;fa(l,function(a,b){1==
a.nodeType&&(m[b]=a.style.display,a.style.display="none")});!1!==c.hideButtons&&(e&&"hidden"!=e.attrs.visibility&&e.attr({visibility:"hidden"}),g&&"hidden"!=g.attrs.visibility&&g.attr({visibility:"hidden"}));d.appendChild(a);D.print();setTimeout(function(){e&&e.attr({visibility:"visible"});g&&g.attr({visibility:"visible"});h.appendChild(a);fa(l,function(a,b){1==a.nodeType&&(a.style.display=m[b])});b.isPrinting=!1;q.raiseEvent("PrintComplete",c,b.logic.chartInstance)},1E3)},function(){q.raiseEvent("PrintCancelled",
c,b.logic.chartInstance)})},getSymbolPath:function(a,b,c,d,e,g,h){var l=["M"],k,n,r;k=(g.color&&Xb("string"===typeof g.color?g.color:g.color.FCcolor.color)||U).replace(ga,"");r=Kb(k,60).replace(ga,Z);h?k={FCcolor:{color:k,angle:0,ratio:"0",alpha:"100"}}:(h=Kb(k,40),k={FCcolor:{color:k+","+k+","+h+","+k+","+k,ratio:"0,30,30,30,10",angle:0,alpha:"100,100,100,100,100"}});switch(e){case "column":case "dragcolumn":case "column3d":g=.25*c;e=.5*g;h=.7*d;n=.4*d;l=l.concat([a,b+d,"l",0,-h,g,0,0,h,"z","m",
g+e,0,"l",0,-d,g,0,0,d,"z","m",g+e,0,"l",0,-n,g,0,0,n,"z"]);k.FCcolor.angle=270;break;case "bar":case "bar3d":g=.3*c;e=.6*c;h=d/4;n=h/2;l=l.concat([a,b,"L",a+e,b,a+e,b+h,a,b+h,"Z","M",a,b+h+n,"L",a+c,b+h+n,a+c,b+h+n+h,a,b+2*h+n,"Z","M",a,b+2*(h+n),"L",a+g,b+2*(h+n),a+g,b+d,a,b+d,"Z"]);break;case "area":case "area3d":case "areaspline":case "dragarea":h=.6*d;n=.2*d;d*=.8;l=l.concat([a,b+d,"L",a,b+h,a+.3*c,b+n,a+.6*c,b+h,a+c,b+n,a+c,b+d,"Z"]);k.FCcolor.angle=270;break;case "pie":case "pie3d":g=.5*c;
e=.9*g;c=a+g+1;d=b+g-1;a=a+g-1;b=b+g+1;l=l.concat(["M",c,d,"L",c,d-e+1,"A",e-1,e-1,0,0,1,c+e-1,d,"Z","M",a,b,"L",a,b-e,"A",e,e,0,1,0,a+e,b,"Z"]);k.FCcolor.radialGradient="1";k.FCcolor.ratio="0,0,0,100,0";break;case "boxandwhisker2d":l=l.concat([a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]);k=g.color;r="#000000";break;default:l=l.concat([a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]),k.FCcolor.angle=270,k.FCcolor.ratio="0,70,30"}return{path:l,color:k,strokeWidth:.5,strokeColor:r}}});e.prototype={configure:function(){var a=
this.axisData,b=this.renderer,c=this.isVertical,d=this.isReverse,e=b.options,g=e.chart,h=g.marginBottom,g=g.marginRight,l=b.canvasTop,k=b.canvasLeft,n=this.min=a.min,n=this.span=(this.max=a.max)-n,k=this.startX=oa(a.startX,k),l=this.startY=oa(a.startY,l),r=this.endX=oa(a.endX,b.canvasRight),a=this.endY=oa(a.endY,b.canvasBottom),n=this.pixelRatio=c?(a-l)/n:(r-k)/n,p=this.relatedObj={};p.marginObj={top:l,right:g,bottom:h,left:k};p.canvasObj={x:k,y:l,w:r-k,h:a-l,toX:r,toY:a};this.startPixel=d?c?a:r:
c?l:k;this.pixelValueRatio=d?-n:n;this.primaryOffset=this.secondaryOffset=0;this.cache={lowestVal:0,highestVal:0,indexArr:[],hashTable:{}};this.elements=this.elements||{};this.belowBandGroup&&(b.elements.axes=b.elements.axes||{},b.elements.axes.belowBandGroup=this.belowBandGroup,e&&e.chart&&e.chart.hasScroll&&this.belowBandGroup.attr({"clip-rect":b.elements["clip-canvas"]}));this.poi={}},draw:function(){var a=this.axisData,b=a&&a.plotLines||[],c=a&&a.plotBands||[],d=a&&a.showLine,e=a&&a.tickLength,
g=a&&a.tickWidth;a&&a.title&&this.drawAxisName();a&&a.labels&&(this.renderer.addCSSDefinition("."+a.labels.className+" .fusioncharts-label",a.labels.style),this.belowLabelGroup&&this.belowLabelGroup.attr("class",a.labels.className),this.topLabelGroup&&this.topLabelGroup.attr("class",a.labels.className));b&&0<b.length&&this.drawPlotLine();c&&0<c.length&&this.drawPlotBands();isNaN(e)||0===e||isNaN(g)||0===g||this.drawTicks();d&&this.drawLine()},scroll:function(){},setOffset:function(a,b){var c=this.primaryOffset=
a,d=this.secondaryOffset=b||this.secondaryOffset,e=this.isVertical,g,h,l,k=[this.topLabelGroup,this.belowLabelGroup,this.topLineGroup,this.belowLineGroup,this.topBandGroup,this.belowBandGroup],n,r;n=0;for(r=k.length;n<r;n+=1)if(l=k[n])g=e?d:c,h=e?c:d,l.attr({transform:"t"+g+","+h});e||this.drawPlotLine&&this.drawPlotLine()},update:function(){},drawTicks:function(){var a=this.axisData,b=this.renderer.paper,c=this.min,d=this.max,e=this.isVertical,g=this.layerBelowDataset,g=this.tickGroup=this.tickGroup||
b.group("axis-ticks",g),h=this.relatedObj.canvasObj,l=a.offset,k=a.opposite,n=a.showAxis,r=a.tickInterval,p=a.tickLength,q=a.tickWidth,a=a.tickColor,t=c;if(e&&n)for(c=this.getAxisPosition(c),e=this.getAxisPosition(d),h=k?h.toX+l:h.x-l,b.path(["M",h,c,"L",h,e],g).attr({stroke:a,"stroke-width":q});za(t)<=d;)l=this.getAxisPosition(t),c=k?h+p:h-p,b.path(["M",h,l,"L",c,l],g).attr({stroke:a,"stroke-width":q}),t+=r},getAxisPosition:function(a,b){var c;b?c=(a-this.startPixel)/this.pixelValueRatio+this.min:
(a=this.axisData.reversed?this.min+(this.max-a):a,c=this.startPixel+(a-this.min)*this.pixelValueRatio);return c},drawPlotLine:function(){var a=this.renderer,b=a.paper,c=this.isVertical,d=+!c,e=this.lines=this.lines||[],h=this.labels=this.labels||[],l=this.relatedObj.canvasObj,k=this.globalOptions||{},n=this.elements||{},r=this.axisData.plotLines||[],p=this.primaryOffset,q=c?this.startY:this.startX,t=c?this.endY:this.endX,w=parseFloat(a.canvasBorderWidth)||0,v=Ra(r.length,Ra(e.length,h.length)),u=
a.layers.datalabels,B=this.belowLineGroup,C=this.topLineGroup,F=this.belowLabelGroup,D=this.topLabelGroup,L=!1!==(a.tooltip||{}).enabled,J=function(b){return function(c){pa.call(this,a,c,b)}},N=k.chart.xDepth||0,k=k.chart.textDirection,P=[],R=0,Q,S,W,$,Z,Ua,Aa,ub,ia,s,z,A,O,f,Ia,X,H,aa,ba,sa,ha,ka,I,wa,Ja,fa,ga,la,xa,va,ya,qa,Da,Ca,za,Ya,Oa,Ga,cb,Na,Ea,La,jb;for(jb=0;jb<v;jb+=1){W=$=Z=null;W=e[jb];$=h[jb];if(Aa=r[jb])if(ub=Aa.width,ia=Aa.isVline,s=Aa.isTrend,z=Aa.isGrid,A=Aa.tooltext,O=Aa.value,f=
Aa.color,Ia=Aa.dashStyle,X=s?Aa.to:null,H=Aa._isStackSum,Q=3<Aa.zIndex?C:B,aa=Aa.label){ba=aa.style;sa=aa.text;ha=ba&&ba.color;ka=aa.offsetScaleIndex||0;I=aa.offsetScale;if(wa=ba&&ba.fontSize)Ja=wa,-1!==Ja.indexOf("px")&&(Ja=Ja.replace("px",""),Ja=parseFloat(Ja));S=ba&&ba.lineHeight;wa=ba?{fontFamily:ba.fontFamily,fontSize:ba.fontSize,lineHeight:ba.lineHeight,fontWeight:ba.fontWeight,fontStyle:ba.fontStyle}:null;S&&(fa=S,-1!==fa.indexOf("px")&&(fa=fa.replace("px",""),fa=parseFloat(fa)));ga=aa.rotation;
la=aa.x||0;xa=aa.y||0;va=aa.align;ya=aa.verticalAlign;qa=aa.textAlign;Da=oa(parseInt(aa.borderWidth,10),1);S=H?u:3<=Aa.zIndex?D:F;aa.backgroundColor&&(aa.labelBgClr=ea({color:aa.backgroundColor,alpha:100*aa.backgroundOpacity}));aa.borderColor&&(aa.labelBorderClr=ea({color:aa.borderColor,alpha:"100"}));Ca=Ja?.2*Ja:2;qa="left"===qa?"start":"right"===qa?"end":"middle"}Ua=Ea="visible";La=0>oa(I,O,0);c?(Ya=this.getAxisPosition(O),Ga=s?this.getAxisPosition(X)||Ya:Ya,cb=Ya!==Ga?!0:!1,Na=["M",l.x,Ya,"L",
l.toX,Ga],ia?a.logic.isBar&&(za=a.yAxis[ka],!H&&!isNaN(I)&&0<=I&&1>=I&&(I=za.min+(za.max-za.min)*I),Oa=za.getAxisPosition(oa(I,O))+la+Ca*(La?-1:1)):Oa=aa?za=this.axisData.isOpposite||"right"===va?l.toX+la:l.x+la:za=this.axisData.isOpposite?l.toX:l.x):(za=this.getAxisPosition(O)||0,Oa=s?this.getAxisPosition(X)||za:za,!s&&!ia&&0<N&&!a.logic.isBar&&(za+=N,Oa+=N,t+=N),cb=za!==Oa?!0:!1,Na=["M"+za,l.y,"L",Oa,l.toY],Ea=za+p<q||za+p>t?"hidden":Ea,ia?(za=a.yAxis[ka],!H&&!isNaN(I)&&0<=I&&1>=I&&(I=za.min+(za.max-
za.min)*(1-I)),Ya=za.getAxisPosition(oa(I,O))+xa,Ya-=(w+parseFloat(Da))*(xa&&(0<xa?-1:1))):this.axisData.opposite||"top"===ya&&!z?(Ya=l.y+xa,Ga="bottom"):Ya=l.toY+xa,Ga=Ya);Ua=c?Ua:Oa+p<q||Oa+p>t?"hidden":Ua;if(Aa&&"visible"===Ea&&.1<ub)cb={path:T(Na,ub),stroke:f,"stroke-width":ub,"shape-rendering":!cb&&1<=ub?"crisp":void 0,"stroke-dasharray":Ia?Ia:void 0,visibility:Ea},W?W.attr(cb):(W=e[jb]=b.path(cb,Q).css(Aa.style),n.lines=n.lines||[],n.lines.push(W)),L&&A&&ub<G&&Ea&&(Z=b.path({stroke:g,"stroke-width":G,
ishot:!0,path:Na,fill:g},a.layers.tracker)),Z=Z||W,L&&A&&Z.tooltip(A);else if(W||$)W&&W.remove(),W=null,e&&(e[jb]=null),n&&n.lines&&(n.lines[jb]=null);aa&&Aa&&!Aa.stepped&&"visible"===Ua&&aa.text!=U&&" "!=aa.text?(Ya=s?"left"===va?Ya:Ga:Ga,Z=Oa-+!ia*d*N+d*(la||0),H?(Ga=c||ga?"middle":"bottom",Ya+=c?0:Ja*(La?-.4:.4),ga&&(Ya+=La?4:-2,qa=La?"end":"start")):d&&this.axisData.opposite?(Ga=kb,qa=ga?"start":"middle"):Ga=ya,/\n|<br\s*?\/?>/ig.test(sa)&&z&&(ga?(Ga="middle",Z-=d*(la||0)):(Ga=d&&this.axisData.opposite&&
!ga?"middle":Ub,Ya-=fa)),cb={"class":"fusioncharts-label",text:sa,fill:wa?ha||f:null,title:aa&&(aa.originalText||U),cursor:aa.link?"pointer":U,x:Z,y:Ya,"text-anchor":qa,"vertical-align":Ga,direction:k,transform:" ","text-bound":[ba.backgroundColor||aa.labelBgClr,ba.borderColor||aa.labelBorderClr,ba.borderThickness||Da,ba.borderPadding||Ca,ba.borderRadius,ba.borderDash],visibility:Ua,"line-height":ba.lineHeight},$?$.attr(cb):($=h[jb]=b.text(cb,S).attr("class","fusioncharts-label"),W&&(W.label=$),n.labels=
n.labels||[],n.labels.push($),Aa.isDataLabel&&$.click(J("dataLabelClick")).hover(J("dataLabelRollOver"),J("dataLabelRollOut"))),wa&&$.css(wa),Aa.isDataLabel&&(Ua={text:sa,index:R,link:aa.link},R+=1,$.data("eventArgs",Ua)),ga&&$.attr("transform",["r",ga,Z,Ya]),H&&$&&P.push($)):$&&($.isRotationSet=!1,$.remove(),h&&(h[jb]=null),n&&n.labels&&(n.labels[jb]=null));!W&&!$||Aa&&null===Aa.value||(Aa&&Aa.isMinLabel?this.poi.min={label:$,index:jb,line:W}:Aa&&Aa.isMaxLabel?this.poi.max={label:$,index:jb,line:W}:
Aa&&Aa.isZeroPlane&&(this.poi.zero={label:$,index:jb,line:W}));W=$=null}oa(a.options.plotOptions.series.animation.duration,0)},drawPlotBands:function(){var a=this.renderer,b=a.paper,c=this.isVertical,d=this.axisData.plotBands||[],e=this.bands=this.bands||[],g=this.bandLabels=this.bandLabels||[],h=this.relatedObj.canvasObj,l=this.primaryOffset,k=c?this.startY:this.startX,n=c?this.endY:this.endX,r=a.options.chart.hasScroll,p=this.belowBandGroup,q=this.topBandGroup,t=this.belowLabelGroup,w=this.topLabelGroup,
v=this.elements||{},u=a.options.chart.textDirection,a=!1!==(a.tooltip||{}).enabled,B,C,F,G,D,L,J,N,P,R,Q,S,T,$,W,U,ia,s,z,A,O,f,Z,X,H,aa,ba,pa,sa,ha,I,wa,fa,ga,ka,la=Ra(d.length,e.length);for(ka=0;ka<la;ka+=1){ga="visible";wa=e[ka];fa=g[ka];if(B=d[ka])if(C=B.tooltext,F=B.to,G=B.from,D=B.value,L=B.width,J=B.color,ha=3<B.zIndex?q:p,N=B.label){if(P=N.style){if($=P.fontSize)R=$,-1!==R.indexOf("px")&&(R=R.replace("px",""),parseFloat(R));(R=P.lineHeight)&&-1!==R.indexOf("px")&&(R=R.replace("px",""),parseFloat(R));
z=P.color}(R=N.borderWidth)&&-1!==R.indexOf("px")&&R.replace("px","");Q=N.align;S=N.x;T=N.y;ia=N.text;s=N.originalText;W=N.backgroundColor;U=N.backgroundOpacity;W&&(O=N.labelBgClr=ea({color:W,alpha:100*U}));if(W=N.borderColor)f=N.labelBorderClr=ea({color:W,alpha:"100"});W=N.textAlign;W="left"===W?"start":"right"===W?"end":"middle";U=N.verticalAlign;A=N.borderType;I=3<B.zIndex?w:t}Z=this.getAxisPosition(oa(F,D));X=this.getAxisPosition(oa(G,D));H=c?h.x:X;aa=c?Z:h.y;ba=c?h.w:(this.axisData.reversed?
X-Z:Z-X)||L||1;X=c?X-Z||1:h.h;Z=H+ba;ba=hb(ba);0>X&&(X=hb(X),aa-=X);c||(ga=r?"hidden":H+l>n||Z+l<k?"hidden":ga);N&&(pa=c?"right"===Q?h.toX+S:h.x+S:H+ba/2,sa=c?aa+X/2:h.toY+T);if(!wa&&B&&"visible"===ga)B={x:H,y:aa,width:ba,height:X,fill:ea(J),"stroke-width":0},wa?wa.attr(B):(wa=e[ka]=b.rect(B,ha),v.bands=v.bands||[],v.bands[ka]=wa),a&&C&&wa.tooltip(C);else if(wa&&(!B||"hidden"===ga)){v.labels&&(g[ka]=v.labels[ka]=null);wa.label&&wa.label.remove();e[ka]=v.bands[ka]=null;wa.remove();continue}wa&&N&&
N.text&&(B={"class":"fusioncharts-label",text:ia,title:s||"",fill:z,"text-bound":[O,f,R,.2*$,"solid"===A?!1:!0],x:pa,y:sa,"text-anchor":W,direction:u,"vertical-align":U,"line-height":P.lineHeight},fa?fa.attr(B):(fa=g[ka]=wa.label=b.text(B,I).attr("class","fusioncharts-label"),P&&fa.css(P),v.labels=v.labels||[],v.labels[ka]=fa))}},drawAxisName:function(){var a=this.axisData,b=a.title||{},c=b&&b.style,d=b&&b.className,e=b.align,g=b.centerYAxisName||!1,h=this.renderer.paper,l=this.isVertical,k=this.relatedObj.canvasObj,
n=oa(a.offset,0)+oa(b.margin,0),r=b.text||"",p=this.name||void 0,a=a.opposite,q=this.layerBelowDataset,q=q.nameGroup=q.nameGroup||h.group("axis-name",q),t=oa(b.rotation,a?90:270),w=l?a?k.toX+n:k.x-n:(k.x+k.toX)/2,v={fontFamily:c.fontFamily,fontSize:c.fontSize,lineHeight:c.lineHeight,fontWeight:c.fontWeight,fontStyle:c.fontStyle},u,g=l?"low"===e?k.toY:g?(k.y+k.toY)/2:this.renderer.chartHeight/2:k.toY+n;r?(!isNaN(t)&&t&&l&&(u=c.fontSize,u=-1!=u.indexOf("px")?u.replace("px",""):u,a?(w+=parseFloat(u),
u=270===t?"bottom":"top"):(w-=parseFloat(u),u=270===t?"top":"bottom")),this.renderer.addCSSDefinition("."+d,v),d={"class":d,x:0,y:0,text:r,fill:c.color,direction:this.renderer.options.chart.textDirection,"text-anchor":"low"===e?90==t?"end":"start":"middle","vertical-align":l?t?u:"middle":a?kb:"top",transform:l?"t"+w+","+g+"r"+t:"t"+w+","+g,"font-size":c.fontSize},b.originalText&&(d.title=b.originalText),p?p.attr(d):p=this.name=h.text(d,q),setTimeout(function(){p.attr({"line-height":c.lineHeight,"text-bound":[c.backgroundColor,
c.borderColor,c.borderThickness,c.borderPadding,c.borderRadius,c.borderDash]})},0)):p&&p.remove();this.elements.name=p},drawLine:function(){var a=this.axisData,b=this.renderer.paper,c=this.min,d=this.max,e=this.isVertical,g=a.opposite,h=this.layerBelowDataset,h=this.lineGroup=this.lineGroup||b.group("axis-lines",h),l=a.lineColor,k=a.lineThickness,n=a.lineEndExtension||0,r=a.lineStartExtension||0,a=this.relatedObj.canvasObj;e?(c=this.getAxisPosition(c)-r,n=this.getAxisPosition(d)+n,d=e=g?a.toX+k/2:
a.x-k/2):(d=a.x-r,e=a.toX+n,c=n=g?a.y-k/2:a.toY+k/2);b=b.path({path:["M",d,c,"L",e,n],stroke:l,"stroke-width":k},h);this.elements.axisLine=b},realtimeUpdateX:function(a){if(0<a){for(var b=this.axisData.plotBands,c=this.min+a,d,e=b.length;e--;)(d=b[e])&&!d.isNumVDIV&&(d.value<c||d.from<c||d.to<c?b.splice(e,1):(void 0!==d.value&&(d.value-=a),void 0!==d.from&&(d.from-=a),void 0!==d.to&&(d.to-=a)));this.drawPlotLine();this.drawPlotBands()}},realtimeUpdateY:function(a,b){var c=this.axisData,d=this.min=
c.min=a,c=this.span=(this.max=c.max=b)-d,c=this.pixelRatio=this.isVertical?this.relatedObj.canvasObj.h/c:this.relatedObj.canvasObj.w/c;this.pixelValueRatio=this.isReverse?-c:c;this.drawPlotLine();this.drawPlotBands()}};e.prototype.constructor=e;J("renderer.cartesian",{drawCanvas:function(){var a=this.options.chart||{},b=a.plotBackgroundColor,c=this.paper,d=this.elements,e=d.canvas,g=d.canvas3DBase,h=d.canvas3dbaseline,g=d.canvasBorder,l=d.canvasBg,k=this.canvasTop,n=this.canvasLeft,r=this.canvasWidth,
p=this.canvasHeight,q=oa(a.plotBorderRadius,0),l=a.plotBorderWidth,w=.5*l,v=a.plotBorderColor,u=a.isBar,B=a.is3D,C=a.use3DLighting,F=a.showCanvasBg,G=a.canvasBgDepth,D=a.showCanvasBase,L=a.canvasBaseColor3D,J=a.canvasBaseDepth,P=a.plotShadow,R=t&&0===l&&P&&P.enabled,Q=a.xDepth||0,a=a.yDepth||0,S=this.layers,W=S.background,T=S.dataset;S.tracker=S.tracker||c.group("hot").insertAfter(T);S.datalabels=S.datalabels||c.group("datalabels").insertAfter(T);S=S.canvas=S.canvas||c.group("canvas").insertAfter(W);
g||(d.canvasBorder=c.rect({x:n-w,y:k-w,width:r+l,height:p+l,r:q,"stroke-width":l,stroke:v,"stroke-linejoin":2<l?"round":"miter"},S).shadow(P));d["clip-canvas"]=[Ra(0,n-Q),Ra(0,k-a),Ra(1,r+2*Q),Ra(1,p+2*a)];d["clip-canvas-init"]=[Ra(0,n-Q),Ra(0,k-a),1,Ra(1,p+2*a)];B&&(F&&(l=u?d.canvasBg=c.path(["M",n,",",k,"L",n+1.2*G,",",k-G,",",n+r-G,",",k-G,",",n+r,",",k,"Z"],S):d.canvasBg=c.path(["M",n+r,",",k,"L",n+r+G,",",k+1.2*G,",",n+r+G,",",k+p-G,",",n+r,",",k+p,"Z"],S),l.attr({"stroke-width":0,stroke:"none",
fill:ea(b)})),D&&(g=u?d.canvas3DBase=c.cubepath(n-Q-J-1,k+a+1,J,p,Q+1,a+1,S):d.canvas3DBase=c.cubepath(n-Q-1,k+p+a+1,r,J,Q+1,a+1,S),g.attr({stroke:"none","stroke-width":0,fill:[L.replace(ga,Z),!C]}),h||(h=d.canvas3dbaseline=c.path(void 0,S)),h.attr({path:u?["M",n,k,"V",p+k]:["M",n,k+p,"H",r+n],stroke:N.tintshade(L.replace(ga,Z),.05).rgba})));!e&&b&&(d.canvas=c.rect({x:n,y:k,width:r,height:p,r:q,"stroke-width":0,stroke:"none",fill:ea(b)},S).shadow(R))},drawAxes:function(){var a=this.logic,b=this.options,
c=this.paper,d=this.layers,g=d.dataset,h=d.layerBelowDataset=d.layerBelowDataset||c.group("axisbottom").trackTooltip(!0),l=d.layerAboveDataset=d.layerAboveDataset||c.group("axistop").trackTooltip(!0),c=this.xAxis=[],d=this.yAxis=[];h.insertBefore(g);l.insertAfter(g);if(b.xAxis&&b.xAxis.length)for(g=0,h=b.xAxis.length;g<h;g+=1)c[g]=this.xAxis[g]=new e(b.xAxis[g],this,a.isBar);else c[0]=this.xAxis[0]=new e(b.xAxis,this,a.isBar);if(b.yAxis)for(g=0,h=b.yAxis.length;g<h;g+=1)d[g]=this.yAxis[g]=new e(b.yAxis[g],
this,!a.isBar,!a.isBar);g=0;for(h=d.length;g<h;g+=1)d[g].axisData&&(d[g].axisData.title&&(d[g].axisData.title.className="fusioncharts-yaxis-"+g+"-title"),d[g].axisData.labels&&(d[g].axisData.labels.className="fusioncharts-yaxis-"+g+"-gridlabels")),d[g].draw();g=0;for(h=c.length;g<h;g+=1)c[g].axisData&&(c[g].axisData.title&&(c[g].axisData.title.className="fusioncharts-xaxis-"+g+"-title"),c[g].axisData.labels&&(c[g].axisData.labels.className="fusioncharts-xaxis-"+g+"-gridlabels")),c[g].draw()},drawScroller:function(){var a=
this,b=a.options,c=a.paper,d=a.layers,e=a.xAxis["0"]||{},g=e.axisData||{},h=g.scroll||{},l=a.canvasTop,k=a.canvasLeft,r=a.canvasWidth,p=a.canvasHeight,t=a.canvasBorderWidth,w=t||(g.showLine?g.lineThickness:0),v=t||g.lineStartExtension,g=t||g.lineEndExtension,t=b.chart.useRoundEdges,u,B,C,F,G,D,L,J,P,R,Q,S,T,$,U,ea=d.dataset,Z=d.datalabels,ba=d.tracker;F=d.layerAboveDataset;var pa,ia;h.enabled&&(pa=d.scroll=d.scroll||c.group("scroll").insertAfter(F),F=h.scrollRatio,b=oa(b[W].xAxisScrollPos,h.startPercent),
G=h.viewPortMax,D=h.viewPortMin,B=h.vxLength,L=La(B),J=h.showButtons,P=h.height,R=h.padding,Q=h.color,S=h.flatScrollBars,B=h.windowedCanvasWidth=e.getAxisPosition(B),u=h.fullCanvasWidth=e.getAxisPosition(G-D)-B,C=ka(b*u),T=a.fusionCharts.jsVars._reflowData,$={hcJSON:{_FCconf:{xAxisScrollPos:0}}},U=$.hcJSON._FCconf,d.scroller=c.scroller(k-v,l+p+w+R-!!w,r+v+g,P,!0,{showButtons:J,displayStyleFlat:S,scrollRatio:F,scrollPosition:b},pa).data("fullCanvasWidth",u).data("windowedCanvasWidth",B).attr({"scroll-display-style":S,
fill:Q,r:t&&2||0}).scroll(function(b){var c;C=-ka(b*u);ea&&ea.transform(["T",C,0]);Z&&Z.transform(["T",C,0]);ba&&ba.transform(["T",C,0]);e.setOffset&&e.setOffset(C);c={position:b,direction:b-h.lastPos||0,vxLength:L};U.xAxisScrollPos=h.lastPos=b;n(T,$,!0);if(0!==c.direction)for(ia=0;ia<a.datasets.length;ia++)a[a.datasets[ia].drawPlot+"Scroll"]&&a[a.datasets[ia].drawPlot+"Scroll"].call(a,a.plots[ia],a.datasets[ia],c)}),function(){var b;N.eve.on("raphael.scroll.start."+d.scroller.id,function(c){b=c;
q.raiseEvent("scrollstart",{scrollPosition:c},a.logic.chartInstance)});N.eve.on("raphael.scroll.end."+d.scroller.id,function(c){q.raiseEvent("scrollend",{prevScrollPosition:b,scrollPosition:c},a.logic.chartInstance)})}());return h.enabled},finalizeScrollPlots:function(){var a=this,c=a.container,d=a.elements,e=a.layers,g=e.scroller,h=e.dataset,k=e.datalabels,e=e.tracker,n,r={},p,t=a.xAxis["0"]||{},w=(t.axisData||{}).scroll||{},v=oa(a.options[W].xAxisScrollPos,w.startPercent),u=w.fullCanvasWidth;w.enabled&&
(h.attr({"clip-rect":d["clip-canvas"]}),k.attr({"clip-rect":d["clip-canvas"]}),e.attr({"clip-rect":d["clip-canvas"]}),d=function(c){var d=a.elements.canvas,e=n.left,h=n.top,k=c.state,E=ya&&b.getTouchEvent(c)||l;c=c.originalEvent;e=(c.clientX||c.pageX||E.pageX)-e;h=(c.clientY||c.pageY||E.pageY)-h;switch(k){case "start":p=d.isPointInside(e,h);r.ox=p&&e||null;if(!p)return!1;r.prevScrollPosition=g.attrs["scroll-position"];q.raiseEvent("scrollstart",{scrollPosition:r.prevScrollPosition},a.logic.chartInstance);
break;case "end":q.raiseEvent("scrollend",{prevScrollPosition:r.prevScrollPosition,scrollPosition:r.scrollPosition},a.logic.chartInstance);p=!1;r={};break;default:if(!p)break;d=e-r.ox;r.ox=e;r.scrollPosition=g.attrs["scroll-position"]-d/u;g.attr({"scroll-position":r.scrollPosition})}},ya&&(n=F(c),c&&(R(c,"pointerdrag",d),C(c,"pointerdrag",d))),0<v&&(c=-ka(v*u),h&&h.transform(["T",c,0]),k&&k.transform(["T",c,0]),e&&e.transform(["T",c,0]),t.setOffset&&t.setOffset(c)))},drawPlotColumn:function(a,b,c){var d=
this,e=a.data,h=e.length,l=a.items,k=a.graphics||(a.graphics=[]),n=d.paper,r=d.smartLabel,p=d.logic,q=d.layers,t=d.options,w=d.elements,u=t.chart,B=!1!==(t.tooltip||{}).enabled,C,F=d.definition.chart,D=t.plotOptions.series,J=D.dataLabels.style,R=d.xAxis[b.xAxis||0],Q=d.yAxis[b.yAxis||0],S=d.chartWidth,T=d.chartHeight,$=Q.axisData.reversed,U=p.isLog,Z=p.is3D,ba=p.isStacked,fa=p.isWaterfall,ga=p.isCandleStick,Ua=v(R.axisData.scroll,{}),Aa=c||{},ha=Ua.enabled,ia=oa(Aa.position,t[W].xAxisScrollPos,Ua.startPercent),
s=Aa.vxLength||La(Ua.vxLength),z=Aa.scrollStart||Ra(0,ka((h-s)*ia)-1)||0,A=Aa.scrollEnd||sa(h,z+s+2)||h,O=u.canvasBorderOpacity=N.color(u.plotBorderColor).opacity,f=d.canvasBorderWidth,Ia=u.isCanvasBorder=0!==O&&0<f,X,H=c!==xa?0:isNaN(+D.animation)&&D.animation.duration||1E3*D.animation,aa=b.numColumns||1,la=b.columnPosition||0,yb=u.use3DLighting,va=!1===b.visible?"hidden":"visible",za=u.overlapColumns,I=R.getAxisPosition(0),wa=R.getAxisPosition(1)-I,Ja=F&&F.plotspacepercent,qa=oa(F&&F.plotpaddingpercent),
ya=D.groupPadding,Ca=D.maxColWidth,Ga=(1-.01*Ja)*wa||sa(wa*(1-2*ya),Ca*aa),Ea=Ga/2,Na=Ga/aa,Sa=sa(Na-1,1<aa?za||qa!==xa?0<qa?Na*qa/100:0:4:0),Xc=la*Na-Ea+Sa/2,$a=Q.max,ab=Q.min,Ya=0<$a&&0<=ab,Oa=0>=$a&&0>ab,kb=0<$a&&0>ab,cb=Oa||$&&Ya?$a:U||Ya?ab:0,db=Q.yBasePos=Q.getAxisPosition(cb),nb,Ib=oa(u.useRoundEdges,0),jb=q.dataset=q.dataset||n.group("dataset-orphan"),bb=q.datalabels=q.datalabels||n.group("datalabels").insertAfter(jb),eb=q.tracker,gb=d.canvasTop,Kb=d.canvasLeft,Ub=d.canvasWidth,Xb=d.canvasBottom,
Fc=d.canvasRight,sc,md,nd,Gc,cc,dc,Oc,Qb,bc,xb,pb,oc,Gb,wc,Rb,hc,Sb,ib,xc,Hc,Ta,Hb,Ab,sb,pc,Pc,qb,Ba,Vb,qc,Qc,Wc,ic,rc,tc,yc,Ic,lb,zc,Dc=function(a){pa.call(this,d,a)},Qa=function(a,b){return function(c){a.attr(b);pa.call(this,d,c,"DataPlotRollOver")}},Bc=function(a,b){return function(c){a.attr(b);pa.call(this,d,c,"DataPlotRollOut")}};d.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",{fontFamily:J.fontFamily,fontSize:J.fontSize,lineHeight:J.lineHeight,fontWeight:J.fontWeight,fontStyle:J.fontStyle,
color:J.color});bb.attr("class","fusioncharts-datalabels");H&&(!c&&bb.attr({transform:"...t"+S+","+T}),d.animationCompleteQueue.push({fn:function(){bb.attr({transform:"...t"+-S+","+-T})},scope:d}));Na-=Sa;ha&&z>A-s-2&&(z=Ra(0,A-s-2));ba&&(yc=jb.shadows||(jb.shadows=n.group("shadows",jb).toBack()));Vb=jb.column||(jb.column=n.group("columns",jb));ga||Z||ha||Vb.attrs["clip-rect"]||Vb.attr({"clip-rect":w["clip-canvas"]});fa&&Vb.toBack();if(Z)for(cc=u.xDepth||0,dc=u.yDepth||0,qc=Vb.negative=Vb.negative||
n.group("negative-values",Vb),ic=Vb.column=Vb.column||n.group("positive-values",Vb),Wc=Vb.zeroPlane,!Wc&&0>ab&&0<=$a&&(Wc=Vb.zeroPlane=n.group("zero-plane",Vb).insertBefore(ic),md=u.zeroPlaneColor,nd=u.zeroPlaneBorderColor,Gc=u.zeroPlaneShowBorder,w.zeroplane=n.cubepath(Kb-cc,db+dc,Ub,1,cc,dc,Wc).attr({fill:[md,!yb],stroke:nd||"none","stroke-width":Gc?1:0})),(Qc=qc.data("categoryplots"))||(qc.data("categoryplots",Array(h)),Qc=qc.data("categoryplots")),(rc=ic.data("categoryplots"))||(ic.data("categoryplots",
Array(h)),rc=ic.data("categoryplots")),xb=0;xb<h;xb+=1)Qc[xb]=Qc[xb]||n.group(qc),rc[xb]=rc[xb]||n.group(ic);else tc=Vb;r.setStyle({fontFamily:J.fontFamily,fontSize:J.fontSize,lineHeight:J.lineHeight,fontWeight:J.fontWeight,fontStyle:J.fontStyle});for(xb=z;xb<A;xb+=1){pb=e[xb];Rb=pb.y;C=pb.toolText;sc=a.index+"_"+xb;qb=Ba=null;if(null===Rb){if(bc=l[xb])qb=bc.graphic,Z||qb.attr({height:0})}else{Oc=!1;wc=oa(pb.x,xb);oc=pb.link;Gb=L(pb.borderWidth)||0;Pc=pb._FCW*wa;Sb=R.getAxisPosition(pb._FCX)||R.getAxisPosition(wc)+
Xc;hc=pb.previousY;xc=Q.getAxisPosition(hc||cb);ib=Q.getAxisPosition(Rb+(hc||0));Ta=hb(ib-xc);Hb=Pc||Na;zc={index:xb,link:oc,value:pb.y,displayValue:pb.displayValue,categoryLabel:pb.categoryLabel,toolText:pb.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible};if(Z){0>Rb&&(ib=xc,Oc=!0);tc=0>Rb?Qc:rc;(bc=l[xb])||(bc=l[xb]={index:xb,value:Rb,graphic:n.cubepath(tc[xb]),dataLabel:null,tracker:null,hot:null});qb=bc.graphic;sb=pc={};pb.hoverEffects&&(sb={fill:[ea(pb.color),!yb],
stroke:Gb&&ea(pb.borderColor)||"NONE","stroke-width":Gb},Ab=pb.rolloverProperties,pc={fill:[ea(Ab.color),!yb],stroke:Ab.borderWidth&&ea(Ab.borderColor)||"NONE","stroke-width":Ab.borderWidth});qb.attr({cubepath:[Sb-cc,H?db+dc:ib+dc,Hb,H?0:Ta,cc,dc],fill:[ea(pb.color),!yb],stroke:Gb&&ea(pb.borderColor)||"NONE","stroke-width":Gb,visibility:va}).shadow(D.shadow&&pb.shadow,yc).data("BBox",{height:Ta,width:Hb,x:Sb,y:ib});H&&qb.animate({cubepath:[Sb-cc,ib+dc,Hb,Ta,cc,dc]},H,"normal",d.getAnimationCompleteFn());
if(oc||B)!ba&&Ta<G&&(ib-=(G-Ta)/2,Ta=G),bc.tracker||(bc.tracker=n.cubepath(eb)),Ba=bc.tracker,Ba.attr({cubepath:[Sb-cc,ib+dc,Hb,Ta,cc,dc],cursor:oc?"pointer":"",stroke:Gb&&g||"NONE","stroke-width":Gb,fill:g,ishot:!0,visibility:va});(Ba||qb).data("eventArgs",zc).data("groupId",sc).click(Dc).hover(Qa(qb,pc),Bc(qb,sb)).tooltip(C);(Ba||qb)._.cubetop.data("eventArgs",zc).data("groupId",sc).click(Dc).hover(Qa(qb,pc),Bc(qb,sb)).tooltip(C);(Ba||qb)._.cubeside.data("eventArgs",zc).data("groupId",sc).click(Dc).hover(Qa(qb,
pc),Bc(qb,sb)).tooltip(C);ba&&Oc&&(qb.toBack(),Ba&&Ba.toBack())}else{Qb=!1;if(!U&&!$&&0>Rb||!U&&$&&0<Rb)ib=xc,Qb=!0;$&&!kb&&0<Rb&&(ib=xc-Ta,Qb=!1);fa&&0>Rb&&Da(hc)&&(ib-=Ta,Qb=!0);ga||ha||(P(ib)<=gb&&(Ta-=gb-ib-+Ia,ib=gb-+Ia),ka(ib+Ta)>=Xb&&(Ta-=ka(ib+Ta)-Xb+ +!!Gb+ +Ia,u.xAxisLineVisible&&!Ia&&(Ta+=1)),1>=Gb&&(ka(Sb)<=Kb&&(Hb+=Sb,Sb=Kb-Gb/2+ +!!Gb-+Ia,Hb-=Sb),ka(Sb+Hb)>=Fc&&(Hb=Fc-Sb+Gb/2-+!!Gb+ +Ia)));Ic=N.crispBound(Sb,ib,Hb,Ta,Gb);Sb=Ic.x;ib=Ic.y;Hb=Ic.width;Ta=Ic.height;if(!ga&&Ia&&(!Da(hc)||
fa&&hc===Rb&&Rb===pb._FCY))if(Oa&&!$)X=ib-(gb-Gb/2),Ta+=X,db=ib-=X;else if(U||Ya||$&&Oa)Ta=Xb-ib+Gb/2,db=ib+Ta;fa&&hc&&0<Gb&&0!==D.connectorOpacity&&1===D.connectorWidth&&D.connectorDashStyle&&(--Ta,0>Rb&&(ib+=1));1>Ta&&(ib+=0>Rb?1:0===Rb?0:-(1-Ta),Ta=1);b._columnWidth=Hb;if(!(bc=l[xb])){bc=l[xb]={index:xb,value:Rb,width:Hb,graphic:null,valueBelowPlot:Qb,dataLabel:null,tracker:null};nb=0;H||(db=ib,nb=Ta||1);sb=pc={};pb.hoverEffects&&(sb={fill:ea(pb.color),stroke:ea(pb.borderColor),"stroke-width":Gb,
"stroke-dasharray":pb.dashStyle},Ab=pb.rolloverProperties,pc={fill:ea(Ab.color),stroke:ea(Ab.borderColor),"stroke-width":Ab.borderWidth,"stroke-dasharray":Ab.dashStyle});lb={x:Sb,y:db,width:Hb,height:nb,r:Ib,fill:ea(pb.color),stroke:ea(pb.borderColor),"stroke-width":Gb,"stroke-dasharray":pb.dashStyle,"stroke-linejoin":"miter",visibility:va};qb?qb.attr(lb):qb=bc.graphic=n.rect(lb,tc);qb.shadow(D.shadow&&pb.shadow,yc).data("BBox",Ic);H&&qb.animate({y:ib,height:Ta||1},H,"normal",d.getAnimationCompleteFn());
if(oc||B)!ba&&Ta<G&&(ib-=(G-Ta)/2,Ta=G),lb={x:Sb,y:ib,width:Hb,height:Ta,r:Ib,cursor:oc?"pointer":"",stroke:g,"stroke-width":Gb,fill:g,ishot:!0,visibility:va},(Ba=bc.tracker)?Ba.attr(lb):Ba=bc.tracker=n.rect(lb,eb);Ba=bc.tracker;(Ba||qb).data("eventArgs",zc).data("groupId",sc).click(Dc).hover(Qa(qb,pc),Bc(qb,sb)).tooltip(C)}}Hc=d.drawPlotColumnLabel(a,b,xb,Sb,ib)}Hc&&k.push(Hc);qb&&k.push(qb);Ba&&k.push(Ba);d.drawTracker&&d.drawTracker.call(d,a,b,xb)}a.visible=!1!==b.visible;return a},drawPlotColumnScroll:function(a,
b,c){var d=a.data.length,e=a.items,g;g=c.vxLength;var h=Ra(0,ka((d-g)*c.position)-1)||0,d=sa(d,h+g+2)||d;h>d-g-2&&(h=Ra(0,d-g-2));c.scrollEnd=d;for(g=h;g<d;g++)if(!e[g]){c.scrollStart=g;this.drawPlotColumn(a,b,c);break}},drawPlotColumnLabel:function(a,b,c,d,e,g){var h=this.options,l=this.logic;d=h.chart;var k=this.paper,n=this.smartLabel,r=this.layers,h=h.plotOptions.series.dataLabels.style,p=1===d.rotateValues?270:0,q=this.canvasHeight,t=this.canvasTop,w=a.data[c];a=a.items[c];var u=d.valuePadding+
2,B=a.graphic;c=a.dataLabel;var C=v(a.valueBelowPlot,0>w.y),F=l.isStacked,l=l.is3D,G=d.xDepth||0,D=d.yDepth||0,L=w.displayValue;b=!1===b.visible?"hidden":"visible";var J=d.placeValuesInside,N;g=g||r.datalabels;Da(L)&&L!==U&&null!==w.y?(a._state&&a._state.labelWidth||(n=n.getOriSize(L),a._state=p?{labelWidth:n.height,labelHeight:n.width}:{labelWidth:n.width,labelHeight:n.height}),B=B.data("BBox"),r=B.height,n=N=a._state.labelHeight+u,u=.5*N+u,B=B.x+.5*B.width,N=C?t+q-(e+r):e-t,F?(e=sa(t+q-.5*n,e+.5*
r+(D||0)),e=Ra(t+.5*n,e),B-=G):J?r>=n?(e+=C?r-u:u,w._valueBelowPoint=1,l&&(B-=G,e+=D)):N>=n?(e+=C?r+u:-u,l&&C&&(B-=G,e+=D)):(e+=C?r-u:u,w._valueBelowPoint=1,l&&(B-=G,e+=D)):N>=n?(e+=C?r+u:-u,l&&(C?(B-=G,e+=D):B-=G/2)):(e+=C?r-u:u,w._valueBelowPoint=1,l&&(B-=G,e+=D)),c?c.attr({x:B,y:e,visibility:b}):c=a.dataLabel=k.text({text:L,"class":"fusioncharts-label",x:B,y:e,fill:h.color,"font-size":h.fontSize,direction:d.textDirection,visibility:b},g).attr({"line-height":h.lineHeight,"text-bound":[h.backgroundColor,
h.borderColor,h.borderThickness,h.borderPadding,h.borderRadius,h.borderDash]}),p&&c.attr("transform","T0,0,R"+p)):c&&c.attr({text:U});return c},drawPlotFloatedcolumn:function(a,b){this.drawPlotColumn.call(this,a,b)},drawPlotColumn3d:function(a,b){this.drawPlotColumn.call(this,a,b)},drawPlotBar:function(a,b){var c=this,d=a.data,e=d.length,h=a.items,l=a.graphics=[],k=c.paper,n=c.logic,r=c.layers,p=c.options,q=c.elements,t=p.chart,w=!1!==(p.tooltip||{}).enabled,u,v=c.definition.chart,p=p.plotOptions.series,
B=p.dataLabels.style,C={fontFamily:B.fontFamily,fontSize:B.fontSize,lineHeight:B.lineHeight,fontWeight:B.fontWeight,fontStyle:B.fontStyle},B=c.xAxis[b.xAxis||0],F=c.yAxis[b.yAxis||0],D=n.is3D,n=n.isStacked,J=t.canvasBorderOpacity=N.color(t.plotBorderColor).opacity,R=c.canvasBorderWidth,J=t.isCanvasBorder=0!==J&&0<R,R=isNaN(+p.animation)&&p.animation.duration||1E3*p.animation,Q=b.numColumns||1,S=b.columnPosition||0,T=t.use3DLighting,$=!1===b.visible?"hidden":"visible",W=t.overlapColumns,U=B.getAxisPosition(0),
U=B.getAxisPosition(1)-U,Z=v&&v.plotspacepercent,v=oa(v&&v.plotpaddingpercent),ba=p.groupPadding,Ua=p.maxColWidth,Z=(1-.01*Z)*U||sa(U*(1-2*ba),Ua*Q),U=Z/2,Z=Z/Q,W=sa(Z-1,1<Q?W||v!==xa?0<v?Z*v/100:0:4:0),Q=Z-W,S=S*Z-U+W/2,Aa=F.max,fa=F.min,W=F.getAxisPosition(0>Aa&&0>fa?Aa:0<Aa&&0<fa?fa:0),v=oa(t.useRoundEdges,0),ia=c.canvasTop,U=c.canvasLeft,s=c.canvasHeight,Z=c.canvasRight,z=c.chartWidth,A=c.chartHeight,O,f,Ia,X,H,aa,ga,ha,la,va,ba=F.axisData.effectiveZeroPlaneThickness;ga=r.dataset=r.dataset||k.group("dataset-orphan");
var I=r.datalabels=r.datalabels||k.group("datalabels").insertAfter(ga),r=r.tracker,wa,Ja,qa,za,ya,Ca,Ua=function(a){pa.call(this,c,a)},Da=function(a,b){return function(d){a.attr(b);pa.call(this,c,d,"DataPlotRollOver")}},Ga=function(a,b){return function(d){a.attr(b);pa.call(this,c,d,"DataPlotRollOut")}},Ra;c.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",C);I.attr("class","fusioncharts-datalabels");R&&(c.animationCompleteQueue.push({fn:function(){I.attr({transform:"...t"+-z+","+-A})},
scope:c}),I.attr({transform:"...t"+z+","+A}));n&&(ya=ga.shadows||(ga.shadows=k.group("shadows",ga).toBack()));ha=ga.column=ga.column||k.group("bars",ga);if(D)for(O=t.xDepth||0,f=t.yDepth||0,C=ha.negative=ha.negative||k.group("negative-values",ha),ga=ha.column=ha.column||k.group("positive-values",ha),qa=ha.zeroPlane,!qa&&0>fa&&0<=Aa&&(qa=ha.zeroPlane=k.group("zero-plane",ha).insertBefore(ga),va=t.zeroPlaneColor,Aa=t.zeroPlaneBorderColor,fa=t.zeroPlaneShowBorder,q.zeroplane=k.cubepath(W-O,ia+f,1,s,
O,f,qa).attr({fill:[va,!T],stroke:Aa||"none","stroke-width":fa?1:0})),(qa=C.data("categoryplots"))||(C.data("categoryplots",Array(e)),qa=C.data("categoryplots")),(va=ga.data("categoryplots"))||(ga.data("categoryplots",Array(e)),va=ga.data("categoryplots")),q=0;q<e;q+=1)qa[q]=qa[q]||k.group(C),va[q]=va[q]||k.group(ga);else ha.attrs["clip-rect"]||ha.attr({"clip-rect":q["clip-canvas"]}),za=ha;q=0;for(C=e-1;q<e;q+=1,--C){ia=d[q];fa=ia.y;wa=s=null;if(null===fa){if(aa=h[q])wa=aa.graphic,D||wa.attr({width:0})}else{ha=
oa(ia.x,q);ga=ia.link;u=ia.toolText;Aa=L(ia.borderWidth)||0;ha=B.getAxisPosition(ha)+S;aa=(Ia=ia.previousY)?F.getAxisPosition(Ia):W;la=F.getAxisPosition(fa+(Ia||0));Ia=hb(la-aa);0<fa&&(la=aa);Ja={index:q,link:ga,value:ia.y,displayValue:ia.displayValue,categoryLabel:ia.categoryLabel,toolText:ia.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible};if(D){za=0>fa?qa:va;(aa=h[q])||(aa=h[q]={index:q,value:fa,graphic:k.cubepath(za[C]),dataLabel:null,tracker:null});wa=aa.graphic;
H=X={};ia.hoverEffects&&(H={fill:[ea(ia.color),!T],stroke:Aa&&ea(ia.borderColor)||"NONE","stroke-width":Aa},X=ia.rolloverProperties,X={fill:[ea(X.color),!T],stroke:X.borderWidth&&ea(X.borderColor)||"NONE","stroke-width":X.borderWidth});wa.attr({cubepath:[R?W-O:la-O,ha+f,R?0:Ia,Q,O,f],fill:[ea(ia.color),!T],stroke:Aa&&ea(ia.borderColor)||"NONE","stroke-width":Aa,"stroke-dasharray":ia.dashStyle,cursor:ga?"pointer":"",visibility:$}).shadow(p.shadow&&ia.shadow,ya).data("BBox",{height:Q,width:Ia,x:la,
y:ha});R&&wa.animate({cubepath:[la-O,ha+f,Ia,Q,O,f]},R,"normal",c.getAnimationCompleteFn());if(ga||w)!n&&Ia<G&&(la-=(G-Ia)/2,Ia=G),aa.tracker||(aa.tracker=k.cubepath(r)),s=aa.tracker,s.attr({cubepath:[la-O,ha+f,Ia,Q,O,f],cursor:ga?"pointer":"",stroke:Aa&&g||"NONE","stroke-width":Aa,fill:g,ishot:!0});(s||wa).data("eventArgs",Ja).click(Ua).hover(Da(wa,X),Ga(wa,H)).tooltip(u);(s||wa)._.cubetop.data("eventArgs",Ja).click(Ua).hover(Da(wa,X),Ga(wa,H));(s||wa)._.cubeside.data("eventArgs",Ja).click(Ua).hover(Da(wa,
X),Ga(wa,H));if(!n||n&&0>fa)wa.toBack(),s&&s.toBack()}else{P(la)<=U&&(Ia+=la,la=U+Aa/2+.2,t.xAxisLineVisible&&!J&&--la,Ia-=la);ka(la+Ia)>=Z&&(Ia=Z-la-Aa/2-.2);Ca=N.crispBound(la,ha,Ia,Q,Aa);la=Ca.x;ha=Ca.y;Ia=Ca.width;Ra=Ca.height;1>=Ia&&(Ia=1,la+=0>fa?-Ia:0===fa?0:1<ba?Ia:0);(aa=h[q])||(aa=h[q]={index:q,value:fa,height:Ra,graphic:null,dataLabel:null,tracker:null});wa=aa.graphic;H=X={};ia.hoverEffects&&(H={fill:ea(ia.color),stroke:ea(ia.borderColor),"stroke-width":Aa,"stroke-dasharray":ia.dashStyle},
X=ia.rolloverProperties,X={fill:ea(X.color),stroke:ea(X.borderColor),"stroke-width":X.borderWidth,"stroke-dasharray":X.dashStyle});fa={x:R?W:la,y:ha,width:R?0:Ia||1,height:Ra,r:v,fill:ea(ia.color),stroke:ea(ia.borderColor),"stroke-width":Aa,"stroke-dasharray":ia.dashStyle,"stroke-linejoin":"miter",cursor:ga?"pointer":"",visibility:$};wa?wa.attr(fa):wa=aa.graphic=k.rect(fa,za);wa.shadow(p.shadow&&ia.shadow,ya).data("BBox",Ca);R&&wa.animate({x:la,width:Ia||1},R,"normal",c.getAnimationCompleteFn());
if(ga||w)!n&&Ia<G&&(la-=(G-Ia)/2,Ia=G),s=aa.tracker,fa={x:la,y:ha,width:Ia,height:Q,r:v,cursor:ga?"pointer":"",stroke:g,"stroke-width":Aa,fill:g,ishot:!0},s?s.attr(fa):s=aa.tracker=k.rect(fa,r),s.data("eventArgs",Ja);(s||wa).data("eventArgs",Ja).click(Ua).hover(Da(wa,X),Ga(wa,H)).tooltip(u)}u=c.drawPlotBarLabel(a,b,q,la,ha)}u&&l.push(u);wa&&l.push(wa);s&&l.push(s);c.drawTracker&&c.drawTracker.call(c,a,b,q)}a.visible=!1!==b.visible;return a},drawPlotBarLabel:function(a,b,c,d,e,g){var h=this.options,
l=this.logic,k=h.chart,n=this.paper,r=this.layers,p=h.plotOptions.series.dataLabels.style,h=this.canvasLeft,q=this.canvasWidth,t=a.data[c],w=a.items[c];a=k.valuePadding+2;var u=w.graphic;c=w.dataLabel;var v=0>t.y,B=l.isStacked,l=l.is3D,C=k.xDepth||0,F=k.yDepth||0,G=t.displayValue;b=!1===b.visible?"hidden":"visible";var D=k.placeValuesInside;g=g||r.datalabels;if(Da(G)&&G!==U&&null!==t.y){c||(c=w.dataLabel=n.text({"class":"fusioncharts-label",text:G,"font-size":p.fontSize,title:t.originalText||"",fill:p.color,
direction:k.textDirection,x:0,y:0,"line-height":p.lineHeight},g).attr("text-bound",[p.backgroundColor,p.borderColor,p.borderThickness,p.borderPadding,p.borderRadius,p.borderDash]));r=c.getBBox();g=u.data("BBox");p=g.height;n=g.width;g=B?"middle":v?D?"start":"end":D?"end":"start";k=v?d-h:h+q-(d+n);r=r.width;r+=a;p=e+.5*p;t=d+(v?0:n);e=v?d-h:h+q-(d+n);if(B)t=Ra(h+.5*r,t+.5*(v?n:-n)),t=sa(h+q-.5*r,t),t-=l?C:0,p+=l?F:0;else if(D?n>=r?(t+=v?a:-a,l&&(p+=F,t-=C)):r<k?(t+=v?-a:a,g=v?"end":"start",l&&v&&(t-=
C)):(v?(t=d+n+Ra(r-d-n+h,0)-a,g="end",t-=l?C:0):(t=d-Ra(r-(h+q-d),0)+a,g="start"),l&&(t-=C,p+=F)):e>=r?(t+=v?-a:a,l&&v&&(t-=C,p+=C)):(t+=v?a+r:-(a+r),l&&(t-=C,p+=F)),t>h+q||t<h)t=h+4,g="start";c.attr({x:t,y:p,"text-anchor":g,visibility:b})}else c&&c.attr({text:U});return c},drawPlotBar3d:function(a,b){this.drawPlotBar.call(this,a,b)},drawPlotLine:function(b,c){var d=this,e=d.paper,h=d.elements,l=d.options,k=l.chart,n=d.logic,r=l.plotOptions.series,p=b.items,q=b.graphics=b.graphics||[],t,w=d.xAxis[c.xAxis||
0],u=d.yAxis[c.yAxis||0],v=n.multisetRealtime||n.dragExtended,B=n.isWaterfall,C,F,G,D,J,P=0,R=!1!==(l.tooltip||{}).enabled,Q,S=isNaN(+r.animation)&&r.animation.duration||1E3*r.animation,W,U=r.dataLabels.style,T={fontFamily:U.fontFamily,fontSize:U.fontSize,lineHeight:U.lineHeight,fontWeight:U.fontWeight,fontStyle:U.fontStyle},$=k.xDepth||0,Z=k.yDepth||0,fa=k.series2D3Dshift,ha=c.step,ga=c.drawVerticalJoins,ia=c.useForwardSteps,s=b.data,z=!1===c.visible?"hidden":"visible",A,O=s.length,f=w.getAxisPosition(0),
la=w.getAxisPosition(1)-f,X=la*O,H=w.axisData.scroll||{},aa=k.hasScroll||!1,ka,va=r.connectNullData,qa=d.chartWidth,za=d.chartHeight,I=function(){hc.attr({"clip-rect":null});Rb.show();wc.show();Sb.show();Fc.attr({transform:"...t"+-qa+","+-za})},wa,Ja,xa,ya,Ca,Da,Ga,Na=null,Ea,La,Sa=r.connectorWidth=L(c.lineWidth),$a=c.color,Ya,Oa,db=r.connectorDashStyle=c.dashStyle,cb,ab,nb,Ib,jb,bb,eb,gb,hb,kb=d.layers,Kb=kb.dataset=kb.dataset||e.group("dataset-orphan"),Fc=kb.datalabels=kb.datalabels||e.group("datalabels").insertAfter(Kb),
sc=kb.tracker,Xb=h["clip-canvas-init"].slice(0),Ub=h["clip-canvas"].slice(0),Gc=u.axisData.reversed,cc=u.max,dc=u.min,Oc=u.getAxisPosition(0<cc&&0<dc?Gc?cc:dc:0>cc&&0>dc?Gc?dc:cc:Gc?cc:0)+(fa?Z:0),Qb=[],bc=k.anchorTrackingRadius,xb=/drag/ig.test(d.logic.rendererId),pb,oc,Gb,wc,Rb,hc,Sb,ib,xc,Hc,Ta,Hb,Ab=[],sb=function(a){pa.call(this,d,a)},pc=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOver",a,d)}},Pc=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOut",
a,d)}},qb=function(a,f,h,l,k,n,r,p){return function(){var s=h.imageUrl,t=h.imageScale,w=h.imageAlpha,u=r.imageHoverAlpha,v=r.imageHoverScale,A=this.height*t*.01,B=this.width*t*.01,C=this.width*v*.01;eb={x:a-this.width*t*.005,y:f-this.height*t*.005,width:B,height:A,alpha:w};gb={x:a-this.width*v*.005,y:f-this.height*v*.005,width:C,height:this.height*v*.01,alpha:u};u=C>B?gb:eb;xb&&(u={cx:a,cy:f,r:.5*Ra(A,B)});(l.graphic=Ib=e.image(s,Sb).attr(eb).css({opacity:.01*w}).data("alwaysInvisible",!t).data("setRolloverProperties",
r).data("setRolloverAttr",gb).data("setRolloutAttr",eb).data("anchorRadius",t).data("anchorHoverRadius",v))&&q.push(Ib);if(Ja||R||r)jb=l.tracker=(xb?e.circle(sc):e.rect(sc)).attr(u).attr({cursor:Ja?"pointer":"",stroke:g,"stroke-width":h.lineWidth,fill:g,ishot:!0,visibility:z}).data("eventArgs",k).data("groupId",pb).click(sb).hover(pc(l),Pc(l)).tooltip(n);d.drawTracker&&d.drawTracker.call(d,b,c,p);(Ta=l.dataLabel=d.drawPlotLineLabel(b,c,p,a,f))&&q.push(Ta)}},Ba=function(a,e,f,g,h,l,k,n){return function(){(Ta=
g.dataLabel=d.drawPlotLineLabel(b,c,n,a,e))&&q.push(Ta)}};d.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",T);Fc.attr("class","fusioncharts-datalabels");r.connectorOpacity=N.color($a).opacity;u.yBasePos=Oc;B&&(C=(F=d.definition.chart)&&F.plotspacepercent,G=r.groupPadding,D=r.maxColWidth,J=(1-.01*C)*la||sa(la*(1-2*G),1*D),P=J/2);Fc.attr({transform:"...t"+qa+","+za});S&&d.animationCompleteQueue.push({fn:I,scope:d});Gb=Kb.line||(Kb.line=e.group("line-connector",Kb));wc=b.lineShadowLayer||
(b.lineShadowLayer=e.group("connector-shadow",Gb));Rb=b.anchorShadowLayer||(b.anchorShadowLayer=e.group("anchor-shadow",Gb));hc=b.lineLayer||(b.lineLayer=e.group("connector",Gb));Sb=b.anchorLayer||(b.anchorLayer=e.group("anchors",Gb));Sb.hide();wc.hide();Rb.hide();for(A=0;A<O;A+=1){wa=s[A];Ca=wa.y;Da=wa.previousY||0;Q=wa.toolText;pb=b.index+"_"+A;hb=Ta=Ib=jb=null;t=p[A]={index:A,value:null,graphic:null,connector:null,dataLabel:null,shadowGroup:Rb,tracker:null};if(null===Ca)Ab.length=0,0===va&&(Na=
null);else{ya=oa(wa.x,A);Ja=wa.link;"boxandwhisker"===c.relatedSeries&&c.pointStart&&(ya+=c.pointStart);La=u.getAxisPosition(Ca+Da)+(fa?Z:0);Ea=w.getAxisPosition(ya)-$;Ea=ba(Ea,Sa,Sa).position;La=ba(La,Sa,Sa).position;if((cb=wa.marker)&&cb.enabled)if(ab=cb.symbol.split("_"),nb="spoke"===ab[0]?1:0,xa=cb.radius,ib=cb.shadow,oc={index:A,link:Ja,value:wa.y,displayValue:wa.displayValue,categoryLabel:wa.categoryLabel,toolText:wa.toolText,id:b.userID,datasetIndex:b.index,datasetName:b.name,visible:b.visible},
eb=gb={},bb=wa.rolloverProperties,cb.imageUrl)Hb=new a,Hb.onload=qb(Ea,La,cb,t,oc,Q,bb,A),Hb.onerror=Ba(Ea,La,cb,t,oc,Q,bb,A),Hb.src=cb.imageUrl;else{bb&&(eb={polypath:[ab[1]||2,Ea,La,xa,cb.startAngle,nb],fill:ea(cb.fillColor),"stroke-width":cb.lineWidth,stroke:ea(cb.lineColor)},gb={polypath:[bb.sides||2,Ea,La,bb.radius,bb.startAngle,bb.dip],fill:ea(bb.fillColor),"stroke-width":bb.lineWidth,stroke:ea(bb.lineColor)});Ib=t.graphic=e.polypath(ab[1]||2,Ea,La,xa,cb.startAngle,nb,Sb).attr({fill:ea(cb.fillColor),
"stroke-width":cb.lineWidth,stroke:ea(cb.lineColor),cursor:Ja?"pointer":"",visibility:xa?z:"hidden"}).data("alwaysInvisible",!xa).data("setRolloverProperties",bb).data("setRolloverAttr",gb).data("setRolloutAttr",eb).data("anchorRadius",xa).data("anchorHoverRadius",bb&&bb.radius).shadow(ib||!1,Rb);if(Ja||R||bb)xa=Ra(xa,bb&&bb.radius||0,bc),jb=t.tracker=e.circle({cx:Ea,cy:La,r:xa,cursor:Ja?"pointer":"",stroke:g,"stroke-width":cb.lineWidth,fill:g,ishot:!0,visibility:z},sc);(jb||Ib).data("eventArgs",
oc).data("groupId",pb).click(sb).hover(pc(t),Pc(t)).tooltip(Q);d.drawTracker&&d.drawTracker.call(d,b,c,A)}xc=Hc!==[ea(wa.color||$a),wa.dashStyle||db].join(":");if(null!==Na){if(Ab.length&&(Qb=Qb.concat(Ab),Ab.length=0),(v||B||!Qb.join(""))&&Qb.push("M",Ga,Na),B&&Qb.push("m",-P,0),ha?ia?(Qb.push("H",Ea),B&&Qb.push("h",P),ga?Qb.push("V",La):Qb.push("m",0,La-Na)):(ga&&Qb.push("V",La),Qb.push("M",Ga,La,"H",Ea)):Qb.push("L",Ea,La),v||xc)hb=t.connector=e.path(Qb,hc).attr({"stroke-dasharray":Oa,"stroke-width":Sa,
stroke:Ya,"stroke-linecap":"round","stroke-linejoin":2<Sa?"round":"miter",visibility:z}).shadow(r.shadow&&wa.shadow,wc),Qb=[]}else!v&&Ab.push("M",Ea,La);cb&&cb.imageUrl||(Ta=t.dataLabel=d.drawPlotLineLabel(b,c,A,Ea,La));Ga=Ea;Na=La;Ya=ea(wa.color||$a);Oa=wa.dashStyle||db;Hc=[Ya,Oa].join(":")}Ta&&q.push(Ta);Ib&&q.push(Ib);hb&&q.push(hb);jb&&q.push(jb)}!v&&Qb.join("")&&(hb=e.path(Qb,hc).attr({"stroke-dasharray":Oa,"stroke-width":Sa,stroke:Ya,"stroke-linecap":"round","stroke-linejoin":2<Sa?"round":"miter",
visibility:z}).shadow(r.shadow&&wa.shadow,wc))&&q.push(hb);aa&&(ka=H.startPercent,Ub[2]=X+Xb[0],1===ka&&(Xb[0]=Ub[2],Ub[0]=0));S?(W=N.animation({"clip-rect":Ub},S,aa?"easeIn":"normal",d.getAnimationCompleteFn()),hc.attr({"clip-rect":Xb}).animate(B?W.delay(S):W)):(I&&I(),I=void 0);b.visible=!1!==c.visible;return b},hoverPlotAnchor:function(a,b,c,d,e){var g=d.graphic;d=d.dataLabel;var h=e.options.chart,l=1===h.rotateValues?270:0,k=g.data("setRolloverProperties"),n=g.data("isRealtime"),r=n&&g.attr("polypath"),
p=g.data("setRolloverAttr"),q="image"===g.type,t=g.data("setRolloutAttr"),w=d&&(d.data("isBelow")?1:-1)*(q?.5*(p.height-t.height):g.data("anchorHoverRadius")-g.data("anchorRadius")),u="DataPlotRollOver"==c?p:t,v={transform:"T0,"+("DataPlotRollOver"===c?w:0)+"R"+l},B={fill:u.fill,"stroke-width":u["stroke-width"],stroke:u.stroke},u=q?u:{polypath:u.polypath},h=h.syncLabelWithAnchor,C=g.data("anchorRadius"),F=g.data("anchorHoverRadius"),p=!(/,0\)$/.test(p.fill)&&/,0\)$/.test(t.fill))&&g.data("anchorHoverRadius")-
g.data("anchorRadius")&&k.animation&&50;d&&d.data("isMiddle")&&(v={transform:"T,"+("DataPlotRollOver"===c?w:0)+",0R"+l});k&&(("DataPlotRollOver"==c&&0!==F||"DataPlotRollOut"==c&&0!==C)&&g.attr({visibility:"visible"}),q?g.css({opacity:.01*u.alpha}):g.attr(B),n&&!q&&(u.polypath[1]=r[1],u.polypath[2]=r[2]),g.stop(),g.animate(u,p,"easeOut",function(){("DataPlotRollOver"==c&&!F||"DataPlotRollOut"==c&&!C)&&g.attr({visibility:"hidden"})}),d&&d.stop(),p&&h&&d&&d.animate(v,p,"easeOut"));pa.call(a,e,b,c)},
drawPlotArea:function(b,c){var d=this,e=d.paper,h=d.options,l=h.chart,k=d.logic,r=h.plotOptions.series,p=d.elements,q=b.items,t=b.graphics=b.graphics||[],w,u=d.xAxis[c.xAxis||0],v=d.yAxis[c.yAxis||0],B=v.axisData.reversed,C=l.xDepth||0,F=l.yDepth||0,k=k.isStacked,G=!1!==(h.tooltip||{}).enabled,D,L,h=r.dataLabels.style,J={fontFamily:h.fontFamily,fontSize:h.fontSize,lineHeight:h.lineHeight,fontWeight:h.fontWeight,fontStyle:h.fontStyle,color:h.color},h=isNaN(+r.animation)&&r.animation.duration||1E3*
r.animation,N=l.series2D3Dshift,P="0"===d.definition.chart.drawfullareaborder,R=b.data,Q=!1===c.visible?"hidden":"visible",S=R.length,U=u.getAxisPosition(0),W=(u.getAxisPosition(1)-U)*S,T=u.axisData.scroll||{},U=l.hasScroll||!1,$=r.connectNullData,Z,ba,fa,ia,s,z=v.max,A=v.min,O=v.getAxisPosition(0<z&&0>A?0:!B&&0<z&&0<=A?A:z)+(N?F:0),f=d.chartWidth,ha=d.chartHeight,B=function(){$a.attr({"clip-rect":null});cb.show();Oa.show();La.attr({transform:"...t"+-f+","+-ha})},X=null,H,aa,z=c.lineWidth,A=c.dashStyle,
ga=ea(c.fillColor),la=ea(c.lineColor),ka=0,sa=/drag/ig.test(d.logic.rendererId),I,wa,va,qa,xa,za,ya=[],Ca=[],Da=null,Ga=[],Ea=d.layers;ia=Ea.dataset=Ea.dataset||e.group("dataset-orphan");var La=Ea.datalabels=Ea.datalabels||e.group("datalabels").insertAfter(ia),Na=Ea.tracker,Ea=p["clip-canvas-init"].slice(0),p=p["clip-canvas"].slice(0),l=l.anchorTrackingRadius,Ya,Oa,Sa,cb,$a,ab,db,jb,bb,eb,gb=function(a){pa.call(this,d,a)},hb=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOver",
a,d)}},kb=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOut",a,d)}},Da=function(a,f,h,l,k,r,p,q){return function(){var s=h.imageUrl,w=h.imageScale,u=h.imageAlpha,z=p.imageHoverAlpha,v=p.imageHoverScale,A=this.width*w*.01,B=this.width*v*.01;xa={x:a-this.width*w*.005,y:f-this.height*w*.005,width:A,height:this.height*w*.01,alpha:u};za={x:a-this.width*v*.005,y:f-this.height*v*.005,width:B,height:this.height*v*.01,alpha:z};z=B>A?za:xa;sa&&(z={cx:a,cy:f,r:.5*Ra(B,A)});(l.graphic=
wa=e.image(s,cb).attr(xa).css({opacity:.01*u}).data("alwaysInvisible",!w).data("setRolloverProperties",p).data("setRolloverAttr",za).data("setRolloutAttr",xa).data("anchorRadius",w).data("anchorHoverRadius",v))&&t.push(wa);if(ba||G||p)Ya=n({cursor:ba?"pointer":"",stroke:g,"stroke-width":h.lineWidth,fill:g,ishot:!0,visibility:Q},z),va=l.tracker=(sa?e.circle(Ya,Na):e.rect(Ya,Na)).data("eventArgs",k).click(gb).hover(hb(l),kb(l)).tooltip(r),d.drawTracker&&d.drawTracker.call(d,b,c,q);(eb=l.dataLabel=d.drawPlotLineLabel(b,
c,q,a,f))&&t.push(eb)}},nb=function(a,e,f,g,h,l,k,n){return function(){(eb=g.dataLabel=d.drawPlotLineLabel(b,c,n,a,e))&&t.push(eb)}};d.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",J);La.attr("class","fusioncharts-datalabels");v.yBasePos=O;La.attr({transform:"...t"+f+","+ha});h&&d.animationCompleteQueue.push({fn:B,scope:d});J=ia;k&&(ab=J.shadows||(J.shadows=e.group("shadows",J).toBack()));$a=J.area=J.area||e.group("area",J);J=J.areaConnector||(J.areaConnector=e.group("area-connector",
J));b.lineShadowLayer||(b.lineShadowLayer=e.group("connector-shadow",J));Oa=b.anchorShadowLayer||(b.anchorShadowLayer=e.group("anchor-shadow",J));Sa=b.lineLayer||(b.lineLayer=e.group("connector",J));cb=b.anchorLayer||(b.anchorLayer=e.group("anchors",J));cb.hide();Oa.hide();J=ia;for(J=0;J<S;J+=1){Z=R[J];ia=Z.y;w=oa(Z.x,J);H=u.getAxisPosition(w)-C;wa=eb=va=null;w=q[J]={};if(null===ia)0===$&&(X=null,0<ka&&(1===ka?ya.splice(-8,8):(ya=ya.concat(Ca),ya.push("Z")),Ca=[])),w.chart=d,w.index=J,w.value=ia;
else{ba=Z.link;D=Z.toolText;L=Z.previousY;s=(s=v.getAxisPosition(L)||null)||O;aa=v.getAxisPosition(ia+(L||0))+(N?F:0);if((bb=Z.marker)&&bb.enabled)if(L={index:J,link:ba,value:Z.y,displayValue:Z.displayValue,categoryLabel:Z.categoryLabel,toolText:Z.toolText,id:b.userID,datasetIndex:b.index,datasetName:b.name,visible:b.visible},xa=za={},qa=Z.rolloverProperties,bb.imageUrl)fa=new a,fa.onload=Da(H,aa,bb,w,L,D,qa,J),fa.onerror=nb(H,aa,bb,w,L,D,qa,J),fa.src=bb.imageUrl;else{I=bb.symbol.split("_");fa=bb.radius;
jb=bb.shadow;qa&&(xa={polypath:[I[1]||2,H,aa,fa,bb.startAngle,0],fill:ea(bb.fillColor),"stroke-width":bb.lineWidth,stroke:ea(bb.lineColor)},qa=Z.rolloverProperties,za={polypath:[qa.sides||2,H,aa,qa.radius,qa.startAngle,qa.dip],fill:ea(qa.fillColor),"stroke-width":qa.lineWidth,stroke:ea(qa.lineColor)});wa=w.graphic=e.polypath(I[1]||2,H,aa,fa,bb.startAngle,0,cb).attr({fill:ea(bb.fillColor),"stroke-width":bb.lineWidth,stroke:ea(bb.lineColor),cursor:ba?"pointer":"",visibility:fa?Q:"hidden"}).data("alwaysInvisible",
!fa).data("setRolloverProperties",qa).data("setRolloverAttr",za).data("setRolloutAttr",xa).data("anchorRadius",fa).data("anchorHoverRadius",qa&&qa.radius).shadow(jb||!1,Oa);if(ba||G||qa)k||(fa=Ra(fa,qa&&qa.radius||0,l)),va=w.tracker=e.circle({cx:H,cy:aa,r:fa,cursor:ba?"pointer":"",stroke:g,"stroke-width":bb.lineWidth,fill:g,ishot:!0,visibility:Q},Na);(va||wa).data("eventArgs",L).click(gb).hover(hb(w),kb(w)).tooltip(D);d.drawTracker&&d.drawTracker.call(d,b,c,J)}null===X?(Ga.push("M",H,",",aa),ya.push("M",
H,",",s),ka=0):Ga.push("L",H,",",aa);ya.push("L",H,",",aa);Ca.unshift("L",H,",",s);ka++;X=aa;bb&&bb.imageUrl||(eb=w.dataLabel=d.drawPlotLineLabel(b,c,J,H,aa));w.chart=d;w.index=J;w.value=ia;w.dataLabel=eb}eb&&t.push(eb);wa&&t.push(wa);va&&t.push(va)}0<ka&&(1===ka?ya.splice(-8,8):(ya=ya.concat(Ca),ya.push("Z")));(Da=b.graphic=e.path(ya,$a).attr({fill:ga,"stroke-dasharray":A,"stroke-width":P?0:z,stroke:la,"stroke-linecap":"round","stroke-linejoin":2<z?"round":"miter",visibility:Q}).shadow(r.shadow&&
Z.shadow,ab))&&t.push(Da);U&&(r=T.startPercent,p[2]=W+Ea[0],1===r&&(Ea[0]=p[2],p[0]=0));h?db=$a.attr({"clip-rect":Ea}).animate({"clip-rect":p},h,U?"easeIn":"normal",d.getAnimationCompleteFn()):(B&&B(),B=void 0);ab&&(h?ab.attr({"clip-rect":Ea}).animateWith($a,db,{"clip-rect":p},h,U?"easeIn":"normal",function(){ab.attr({"clip-rect":null})}):ab.attr({"clip-rect":null}));P&&(r=b.connector=e.path(Ga,Sa).attr({"stroke-dasharray":A,"stroke-width":z,stroke:la,"stroke-linecap":"round","stroke-linejoin":2<
z?"round":"miter",visibility:Q}),h?Sa.attr({"clip-rect":Ea}).animateWith($a,db,{"clip-rect":p},h,U?"easeIn":"normal",function(){Sa.attr({"clip-rect":null})}):Sa.attr({"clip-rect":null}),r&&t.push(r));b.visible=!1!==c.visible;return b},drawPlotScatter:function(a,b){var c=this,d=c.options,e=d.chart,h=d.plotOptions.series,l=c.paper,k=c.elements,n=a.items,r,p=a.graphics=a.graphics||[],q=c.xAxis[b.xAxis||0],t=c.yAxis[b.yAxis||0],w=a.data,u=!1===b.visible?"hidden":"visible",d=!1!==(d.tooltip||{}).enabled,
v,B=h.dataLabels.style,C={fontFamily:B.fontFamily,fontSize:B.fontSize,lineHeight:B.lineHeight,fontWeight:B.fontWeight,fontStyle:B.fontStyle,color:B.color},B=isNaN(+h.animation)&&h.animation.duration||1E3*h.animation,F=c.chartWidth,G=c.chartHeight,D,J,L,N,P,R,Q,S,U,W=b.lineWidth,T=0<W,$=b.color,Z=b.dashStyle,ba=h.connectNullData,s=[],z,A,O,f,fa,X,H=c.layers,aa=H.dataset||(H.dataset=l.group("dataset-orphan")),ha=H.datalabels||(H.datalabels=l.group("datalabels").insertAfter(aa)),H=H.tracker,e=e.anchorTrackingRadius,
ga,oa,ka,I=function(a){pa.call(this,c,a)},la=function(a){return function(b){c.hoverPlotAnchor(this,b,"DataPlotRollOver",a,c)}},qa=function(a){return function(b){c.hoverPlotAnchor(this,b,"DataPlotRollOut",a,c)}};c.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",C);ha.attr("class","fusioncharts-datalabels");B&&(c.animationCompleteQueue.push({fn:function(){ha.attr({transform:"...t"+-F+","+-G})},scope:c}),ha.attr({transform:"...t"+F+","+G}));ga=aa.line||(aa.line=l.group("line-connector",
aa));a.lineShadowLayer=l.group("connector-shadow",ga);aa=a.anchorShadowLayer=l.group("anchor-shadow",ga);C=a.lineLayer=l.group("connector",ga);ga=a.anchorLayer=l.group("anchors",ga);D=0;for(J=w.length;D<J;D+=1){L=w[D];z=L.marker;S=U=f=v=fa=null;ka=a.index+"_"+D;R=L.y;P=L.x;if(null!==R&&null!==P){if(z&&z.enabled){N=L.link;v=L.toolText;O=z.radius;oa=z.shadow;U=t.getAxisPosition(R);S=q.getAxisPosition(P);A={index:D,link:N,y:L.y,x:L.x,displayValue:L.displayValue,categoryLabel:L.categoryLabel,toolText:L.toolText,
id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible};f=z.symbol.split("_");r=n[D]={index:D,x:P,y:R,value:R};P=R={};L.hoverEffects&&(P={polypath:[f[1]||2,S,U,O,z.startAngle,0],fill:ea(z.fillColor),"stroke-width":z.lineWidth,stroke:ea(z.lineColor)},X=L.rolloverProperties,R={polypath:[X.sides||2,S,U,X.radius,X.startAngle,X.dip],fill:ea(X.fillColor),"stroke-width":X.lineWidth,stroke:ea(X.lineColor)});f=r.graphic=l.polypath(f[1]||2,S,U,O,z.startAngle,0,ga).attr({fill:ea(z.fillColor),
"stroke-width":z.lineWidth,stroke:ea(z.lineColor),cursor:N?"pointer":"",visibility:O?u:"hidden"}).data("alwaysInvisible",!O).data("setRolloverProperties",X).data("setRolloverAttr",R).data("setRolloutAttr",P).data("anchorRadius",O).data("anchorHoverRadius",X&&X.radius).shadow(oa||!1,aa);if(N||d||X)O=Ra(O,X&&X.radius||0,e),fa=r.tracker=l.circle({cx:S,cy:U,r:O,cursor:N?"pointer":"",stroke:g,"stroke-width":z.lineWidth,fill:g,ishot:!0,visibility:u},H);(fa||f).data("eventArgs",A).data("groupId",ka).click(I).hover(la(r),
qa(r)).tooltip(v)}T&&((void 0===Q||null===Q&&0===ba)&&S&&U&&s.push("M",S,",",U),S&&U&&s.push("L",S,",",U),Q=U);v=r.dataLabel=c.drawPlotLineLabel(a,b,D,S,U)}else T&&0===ba&&(Q=null),n[D]={chart:c,index:D,x:P,y:R};v&&p.push(v);f&&p.push(f);fa&&p.push(fa);c.drawTracker&&c.drawTracker.call(c,a,b,D)}s.length&&(h=a.graphic=l.path(s,C).attr({"stroke-dasharray":Z,"stroke-width":W,stroke:$,"stroke-linecap":"round","stroke-linejoin":2<W?"round":"miter",visibility:u}).shadow(h.shadow&&L.shadow),C.attr({"clip-rect":k[B?
"clip-canvas-init":"clip-canvas"]}),B&&C.animate({"clip-rect":k["clip-canvas"]},B,"normal"),p.push(h));B&&ga.attr({opacity:0}).animate({opacity:1},B,"normal",c.getAnimationCompleteFn());a.visible=!1!==b.visible;return a},drawPlotLineLabel:function(a,b,c,d,e,g){var h=this.options,l=h.chart,k=this.paper,n=this.layers,p=h.plotOptions.series.dataLabels.style,h=1===l.rotateValues?270:0,q=this.canvasHeight,t=this.canvasTop,w=a.data,u=w[c],v=a.items[c],B=r(u.valuePosition,"auto").toLowerCase();a=this.logic.defaultSeriesType;
var C=v.graphic,F=u.marker,C=F&&F.enabled?C&&"image"==C.type&&.5*C.attr("height")||F&&F.radius-3:0,C=l.valuePadding+2+C;b=!1===b.visible?"hidden":"visible";F=v.dataLabel;g=g||n.datalabels;switch(B){case "above":c=0;break;case "below":c=1;break;default:n=w[c-1]||{},w=w[c+1]||{},c=c?n.y>u.y?1:(null==n.y&&w.y)>u.y?1:0:0}n=u.displayValue;Da(n)&&n!==U?(F?h&&F.attr("transform",["r",360-h]):F=v.dataLabel=k.text(g).attr({"class":"fusioncharts-label",text:n,fill:p.color,"text-bound":[p.backgroundColor,p.borderColor,
p.borderThickness,p.borderPadding,p.borderRadius,p.borderDash],direction:l.textDirection,"font-weight":p.fontWeight,"font-style":p.fontStyle,"font-family":p.fontFamily,"font-size":p.fontSize,"line-height":p.lineHeight}),F.attr({title:u.originalText||"",fill:p.color}),v._state&&v._state.labelWidth||(g=F.getBBox(),v._state={labelWidth:g.width,labelHeight:g.height}),l=k=h?v._state.labelWidth:v._state.labelHeight,g=e-t,q=t+q-e,l=l+C+4,t=.5*k+C,/bubble/i.test(a)||(c?q>l?(e+=t,u._valueBelowPoint=1):g>l&&
(e-=t,u._valueBelowPoint=0):g>l?(e-=t,u._valueBelowPoint=0):q>l&&(e+=t,u._valueBelowPoint=1)),F.attr({x:d,y:e,visibility:b}).data("isBelow",u._valueBelowPoint),h&&F.attr("transform","T0,0,R"+h)):F&&F.attr({text:U});return F},drawLabels:function(){for(var a=this.paper,b=this.options,c=b.labels&&b.labels.items&&b.labels.items,d=c&&c.length,e=this.layers.layerAboveDataset,g=this.elements.quadran||(this.elements.quadran=[]),h=this.canvasTop,l=this.canvasLeft,b=b.chart.textDirection,k={right:"end",left:"start",
undefined:"start"},n,r,p;d--;)p=c[d],n=p.style,r={fontFamily:n.fontFamily,fontSize:n.fontSize,lineHeight:n.lineHeight,fontWeight:n.fontWeight,fontStyle:n.fontStyle,fill:n.color},Da(p.html)&&p.html!==U&&(g[d]=a.text({text:p.html},e).css(r).attr({x:parseInt(n.left,10)+l,y:parseInt(n.top,10)+h,"text-anchor":k[p.textAlign],"vertical-align":p.vAlign,direction:b,"text-bound":[n.backgroundColor,n.borderColor,n.borderThickness,n.borderPadding,n.borderRadius,n.borderDash]}))}},J["renderer.root"]);J("renderer.piebase",
{isHovered:!1,getPlotData:function(a,b){var c=this.datasets[0],d=c.data[a],c=c.userData||(c.userData=[]),e,g;if(c[a])c=c[a];else{c=c[a]={};for(g in d)"object"!==typeof(e=d[g])&&"function"!==typeof e&&0!==g.indexOf("_")&&(c[g]=e);c.value=c.y;c.label=c.name;delete c.y;delete c.total;delete c.doNotSlice;delete c.name;delete c.centerAngle;delete c.showInLegend}c.sliced=b;return c},redrawDataLabels:function(a){var b=a.elements.plots[0];a.placeDataLabels(!0,b.items,b);return{}},sliceInOtherPies:function(a){var b=
this.options.series[0],c=b.plot.items,d=c.length,e=0,g;for(b.enableMultiSlicing=!0;d--;)d!==a&&(g=c[d]).sliced&&++e&&this.plotGraphicClick.call(g);b.enableMultiSlicing=!1;return!!e},plotGraphicClick:function(a){var b=this.graphic||this,c=b.plotItem||b.data("plotItem"),d=c.seriesData,e=c.chart,g=e.logic.chartInstance,h=c.index,l=b.data("eventArgs")||{},k=e.options.series[0].enableMultiSlicing,r=d.data[c.index].doNotSlice,p=c.slicedTranslation,t,w;!d.isRotating&&pa.call(b,e,a);if(!(d.isRotating||d.singletonCase||
r||(b=!k&&e.sliceInOtherPies(h),(a=c.sliced)&&b)))return b=c.graphic,d=c.connector,k=c.dataLabel,p="object"===typeof p?"t"+p:p,r=c.connectorPath,t=(a?-1:1)*c.transX,w=(a?-1:1)*c.transY,q.raiseEvent("slicingStart",{slicedState:a,dataIndex:"index"in l&&l.index,data:e.getPlotData(h,a)},g),b.animate({transform:a?"t0,0":p},200,"easeIn",function(){q.raiseEvent("slicingEnd",{slicedState:c.sliced,dataIndex:"index"in l&&l.index,data:e.getPlotData(h,c.sliced)},g)}),k&&k.x&&k.animate({x:k.x+(a?0:t)},200,"easeIn"),
r&&(r[1]+=t,r[2]+=w,r[4]+=t,r[6]+=t,d.animate({path:r},200,"easeIn")),a=c.sliced=!a,b={hcJSON:{series:[]}},b.hcJSON.series[0]={data:p=[]},p[h]={sliced:a},n(g.jsVars._reflowData,b,!0),a},plotDragStart:function(a,b,c){var d=this.data("plotItem"),e=d.chart,d=d.seriesData,g=e.options.series,h=-e.datasets[0].startAngle*ab;d.isRotating=!1;if(g[0].enableRotation){g=e.container;e={left:0,top:0};if(g.getBoundingClientRect)g=g.getBoundingClientRect(),e.top=g.top+(D.pageYOffset||p.scrollTop||0)-(p.clientTop||
0),e.left=g.left+(D.pageXOffset||p.scrollLeft||0)-(p.clientLeft||0);else for(;g;)e.left+=g.offsetLeft||0,e.top+=g.offsetTop||0,g!==p.body&&g!==p.documentElement&&(e.left-=g.scrollLeft||0,e.top-=g.scrollTop||0),g=g.offsetParent;d.chartPosition=e;a=k.call(c,a,b,d.pieCenter,d.chartPosition);d.dragStartAngle=a;d.startingAngleOnDragStart=h}},plotDragEnd:function(a){var b=this.data("plotItem"),c=b.chart,d=b.seriesData,e=-c.datasets[0].startAngle*ab,g={hcJSON:{series:[{startAngle:e}]}};c.disposed||(n(c.logic.chartInstance.jsVars._reflowData,
g,!0),c.rotate(d,c.options.series[0]));!d.isRotating&&c.plotGraphicClick.call(b,a);d.isRotating&&(setTimeout(function(){d.isRotating=!1},0),q.raiseEvent("RotationEnd",{startingAngle:u(e,!0),changeInAngle:e-d.startingAngleOnDragStart},c.logic.chartInstance));!c.isHovered&&c.onPlotHover(this,!1)},plotDragMove:function(a,b,c,d,e){a=this.data("plotItem");var g=a.chart,h=a.seriesData,l=g.options.series;l[0].enableRotation&&!h.singletonCase&&(c=k.call(e,c,d,h.pieCenter,h.chartPosition),h.isRotating||(h.dragStartAngle!==
c&&(h.isRotating=!0),q.raiseEvent("RotationStart",{startingAngle:u(h.startingAngleOnDragStart,!0)},g.logic.chartInstance)),l[0].startAngle+=c-h.dragStartAngle,h.dragStartAngle=c,h.moveDuration=0,c=(new Date).getTime(),!h._lastTime||h._lastTime+h.timerThreshold<c)&&(setTimeout(function(){g.rotate(h,l[0])},0),h._lastTime=c)},plotRollOver:function(a){var b=this.plotItem||this.data("plotItem"),c=b.chart,d,e;b.seriesData.isRotating||(pa.call(this,c,a,"DataPlotRollOver"),c.onPlotHover(this,!0));c.isHovered=
!0;(a=b.innerDiameter)&&(d=b.centerLabelConfig)&&(e=d.label)&&c.drawDoughnutCenterLabel(e,b.center[0],b.center[1],a,a,d,!1)},plotRollOut:function(a){var b=this.plotItem||this.data("plotItem"),c=b.chart,d=c.options.series[0],e,g;b.seriesData.isRotating||(pa.call(this,c,a,"DataPlotRollOut"),c.onPlotHover(this,!1));c.isHovered=!1;(a=b.innerDiameter)&&(e=d.centerLabelConfig)&&((g=e.label)||!g)&&c.drawDoughnutCenterLabel(g,b.center[0],b.center[1],a,a,e,!1)},onPlotHover:function(a,b){var c=a.data("plotItem"),
d=c.rolloverProperties,e=b?d.color:c.color,g=b?d.borderWidth:c.borderWidth,h=b?d.borderColor:c.borderColor;d&&c.graphic.attr({fill:ea(e),"stroke-width":g,stroke:h})},getEventArgs:function(a){a=a||{};return{datasetName:a.label,datasetIndex:a.originalIndex,id:a.userID,visible:!0,label:a.label,value:a.value,percentValue:a.percentage,tooltext:a.toolText,link:a.link,sliced:a.sliced}},legendClick:function(a){var b=a.chart;b.elements.plots[0].isRotating=!1;b.plotGraphicClick.call(a)},placeDataLabels:function(){var a=
function(a,b){return a.point.value-b.point.value},b=function(a,b){return a.angle-b.angle},c=["start","start","end","end"],d=[-1,1,1,-1],e=[1,1,-1,-1];return function(g,h,l,k){var n=this.options.plotOptions,r=n.pie,p=this.canvasLeft+.5*this.canvasWidth,q=this.canvasTop+.5*this.canvasHeight,t=this.smartLabel,w=n.series.dataLabels,u=w.style,v=oa(La(parseFloat(u.lineHeight)),12),v=B(w.placeLabelsInside,1===h.length?!0:!1),n=w.skipOverlapLabels,C=w.manageLabelOverflow,F=w.connectorPadding,G=w.distance,
D=k&&k.metrics||[p,q,r.size,r.innerSize||0],L=D[1],J=D[0];k=.5*D[2];var N=[[],[],[],[]],P=this.canvasLeft,R=this.canvasTop,r=this.canvasWidth,G=l.labelsRadius||(l.labelsRadius=k+G),q=p=parseInt(u.fontSize,10),Q=q/2,F=[F,F,-F,-F];l=l.labelsMaxInQuadrant||(l.labelsMaxInQuadrant=za(G/q));var w=w.isSmartLineSlanted,D=D[3]/2,S,U,W,T,$,Z,ba,s,z,A,O,f,ea,X,H,aa,ga,ka,la,pa;g||t.setStyle(u);if(1==h.length&&!D&&v)T=h[0],(H=T.dataLabel)&&H.show(),T.slicedTranslation=[P,R],H&&(H.attr({visibility:va,align:"middle",
transform:["t",J,L]}),H.x=J);else if(v)pa=D+(k-D)/2,fa(h,function(a){(H=a.dataLabel)&&H.show();H&&(ea=a.angle,f=L+pa*Na(ea),s=J+pa*ha(ea),H.x=s,H._x=s,H.y=f,a.sliced&&(la=a.slicedTranslation,ga=la[0]-P,ka=la[1]-R,s+=ga,f+=ka),H.attr({visibility:va,align:"middle",transform:["t",s,f]}))});else{fa(h,function(a){(H=a.dataLabel)&&H.show();H&&(ea=a.angle%$a,0>ea&&(ea=$a+ea),aa=0<=ea&&ea<db?1:ea<Ea?2:ea<Ga?3:0,N[aa].push({point:a,angle:ea}))});for(h=g=4;h--;){if(n&&(v=N[h].length-l,0<v))for(N[h].sort(a),
u=N[h].splice(0,v),v=0,W=u.length;v<W;v+=1)T=u[v].point,T.dataLabel.attr({visibility:"hidden"}),T.connector&&T.connector.attr({visibility:"hidden"});N[h].sort(b)}v=Ra(N[0].length,N[1].length,N[2].length,N[3].length);X=Ra(sa(v,l)*q,G+q);N[1].reverse();for(N[3].reverse();g--;){D=N[g];W=D.length;n||(q=W>l?X/W:p,Q=q/2);T=W*q;u=X;for(h=0;h<W;h+=1,T-=q)v=hb(X*Na(D[h].angle)),u<v?v=u:v<T&&(v=T),u=(D[h].oriY=v)-q;S=c[g];W=X-(W-1)*q;u=0;for(h=D.length-1;0<=h;--h,W+=q)if(T=D[h].point,ea=D[h].angle,$=T.sliced,
H=T.dataLabel,v=hb(X*Na(ea)),v<u?v=u:v>W&&(v=W),u=v+q,A=(v+D[h].oriY)/2,Z=J+e[g]*G*ha(qa.asin(A/X)),A*=d[g],A+=L,O=L+k*Na(ea),ba=J+k*ha(ea),(2>g&&Z<ba||1<g&&Z>ba)&&(Z=ba),s=Z+F[g],f=A-Q-2,z=s+F[g],H.x=z,H._x=z,C&&(U=1<g?z-this.canvasLeft:this.canvasLeft+r-z,t.setStyle(T.style),v=oa(La(parseFloat(T.style.lineHeight)),12)+2*La(oa(parseFloat(T.style.border),12),12),v=t.getSmartText(T.labelText,U,v),H.attr({text:v.text,title:v.tooltext||""})),H.y=f,$&&(ga=T.transX,ka=T.transY,s+=ga,Z+=ga,ba+=ga,O+=ka,
z+=ga),H.attr({visibility:va,"text-anchor":S,vAlign:"middle",x:z,y:A}),v=T.connector)T.connectorPath=T=["M",ba,O,"L",w?Z:ba,A,s,A],v.attr({path:T,visibility:va})}}}}()},J["renderer.root"])}]);
FusionCharts.register("module",["private","modules.renderer.js-interface",function(){var e=this,k=e.hcLib,u=e.renderer.getRenderer("javascript"),q=k.hasModule,D=k.loadModule,b=k.getMetaSentence,N=k.moduleCmdQueue,J=k.executeWaitingCommands,c=k.injectModuleDependency,p=k.moduleDependencies,a=k.getDependentModuleName,t,U;t=function(c){var g,d,h,l={},p;c=b(c);for(g in e.core.items)g=e.core.items[g],d=g.chartType(),h=g.options.chartTypeSourcePath+d,(d=g.jsVars)&&d.waitingModule&&g.__state.rendering&&
k.needsModule(c.predicate,h)&&(d.waitingModuleError=!0,d=a(h).concat(d.userModules),d.length&&(d=d[d.length-1],l[d]=k.moduleCmdQueue[d]));for(p in l)J(l[p]);e.raiseError(e.core,"11171116151","run","HC-interface~renderer.load","Unable to load required modules and resources: "+c.key)};U=function(a,b,c){var h=a.args,l=a.options;a._chartMessageImageStyle={imageHAlign:h.typeNotSupportedMessageImageHAlign||l.baseChartMessageImageHAlign,imageVAlign:h.typeNotSupportedMessageImageVAlign||l.baseChartMessageImageVAlign,
imageAlpha:h.typeNotSupportedMessageImageAlpha||l.baseChartMessageImageAlpha,imageScale:h.typeNotSupportedMessageImageScale||l.baseChartMessageImageScale};a._chartMessageStyle={color:h.typeNotSupportedMessageColor||l.baseChartMessageColor,fontFamily:h.typeNotSupportedMessageFont||l.baseChartMessageFont,fontSize:h.typeNotSupportedMessageFontSize||l.baseChartMessageFontSize};e.hcLib.createChart(a,b,"stub",c,l.typeNotSupportedMessage)};k.eventList=e.extend(e.legacyEventList,{loaded:"FC_Loaded",dataloaded:"FC_DataLoaded",
rendered:"FC_Rendered",drawcomplete:"FC_DrawComplete",dataxmlinvalid:"FC_DataXMLInvalid",nodatatodisplay:"FC_NoDataToDisplay",exported:"FC_Exported"});k.raiseEvent=e.raiseEventWithLegacy;p.charts=e.extend(p.charts||{},{column2d:0,column3d:0,bar2d:0,bar3d:0,pie2d:0,pie3d:0,line:0,area2d:0,doughnut2d:0,doughnut3d:0,pareto2d:0,pareto3d:0,mscolumn2d:0,mscolumn3d:0,msline:0,msarea:0,msbar2d:0,msbar3d:0,stackedcolumn2d:0,marimekko:0,stackedcolumn3d:0,stackedarea2d:0,stackedcolumn2dline:0,stackedcolumn3dline:0,
stackedbar2d:0,stackedbar3d:0,msstackedcolumn2d:0,mscombi2d:0,mscombi3d:0,mscolumnline3d:0,mscombidy2d:0,mscolumn3dlinedy:0,stackedcolumn3dlinedy:0,msstackedcolumn2dlinedy:0,scatter:0,bubble:0,ssgrid:0,scrollcolumn2d:0,scrollcolumn3d:0,scrollline2d:0,scrollarea2d:0,scrollstackedcolumn2d:0,scrollcombi2d:0,scrollcombidy2d:0,zoomline:0});p.powercharts=e.extend(p.powercharts||{},{spline:0,splinearea:0,msspline:0,mssplinearea:0,mssplinedy:0,multiaxisline:0,multilevelpie:0,waterfall2d:0,msstepline:0,inversemsline:0,
inversemscolumn2d:0,inversemsarea:0,errorbar2d:0,errorscatter:0,errorline:0,logmsline:0,logmscolumn2d:0,logstackedcolumn2d:0,radar:0,dragnode:0,candlestick:0,selectscatter:0,dragcolumn2d:0,dragline:0,dragarea:0,boxandwhisker2d:0,kagi:0,heatmap:0});p.widgets=e.extend(p.widgets||{},{angulargauge:0,bulb:0,cylinder:0,drawingpad:0,funnel:0,hbullet:0,hled:0,hlineargauge:0,vlineargauge:0,pyramid:0,realtimearea:0,realtimecolumn:0,realtimeline:0,realtimelinedy:0,realtimestackedarea:0,realtimestackedcolumn:0,
sparkcolumn:0,sparkline:0,sparkwinloss:0,thermometer:0,vbullet:0,gantt:0,vled:0});p.maps=e.extend(p.maps||{},{});e.extend(u,{render:function(b,g){var d=this.chartType(),h=this.options.chartTypeSourcePath+d,l=this.jsVars,p=this.__state,t=k.chartAPI,n=this.options,C=this.args,w=this.options.showChartLoadingMessage,D,v;D=a(h).concat(l.userModules);l.isResizing&&(l.isResizing=clearTimeout(l.isResizing));l.hcObj&&l.hcObj.destroy&&l.hcObj.destroy();if(t[d]){if(t[p.lastRenderedType]&&p.lastRenderedType!==
d)for(v in e.raiseEvent("chartTypeChanged",{previousType:p.lastRenderedType,newType:d},this),t[p.lastRenderedType].eiMethods)delete this[v];p.lastRenderedType=d;p.lastRenderedSrc=this.src;!l.waitingModuleError&&k.raiseEvent("internal.loaded",{type:d,triggeredModuleLoad:l.drLoadAttempted||l.waitingModule},this,[this.id]);delete l.waitingModule;delete l.waitingModuleError;delete l.drLoadAttempted;e.hcLib.createChart(this,b,d,g)}else{if(d&&q(D)){if(l.drLoadAttempted){e.raiseError(this,11112822001,"run",
"HC-interface~renderer.render","Chart runtimes not loaded even when resource is present");U(this,b,g);return}c(h)&&(D=a(h).concat(l.userModules));l.drLoadAttempted=!0}else{if(!D.length){U(this,b,g);return}if(l.waitingModuleError){U(this,b,g);delete l.waitingModule;delete l.waitingModuleError;return}}(d=N[D[D.length-1]])?(d.push({cmd:"render",obj:this,args:arguments}),l.waitingModule||(l=w?n.PBarLoadingText||n.loadMessage:"",this._chartMessageImageStyle={imageHAlign:C.loadMessageImageHAlign||n.baseChartMessageImageHAlign,
imageVAlign:C.loadMessageImageVAlign||n.baseChartMessageImageVAlign,imageAlpha:C.loadMessageImageAlpha||n.baseChartMessageImageAlpha,imageScale:C.loadMessageImageScale||n.baseChartMessageImageScale},this._chartMessageStyle={color:C.loadMessageColor||n.baseChartMessageColor,fontFamily:C.loadMessageFont||n.baseChartMessageFont,fontSize:C.loadMessageFontSize||n.baseChartMessageFontSize},e.hcLib.createChart(this,b,"stub",void 0,l),u.load.call(this,b,g))):(e.raiseError(this,12080515551,"run","HC-interface~renderer.render",
"Unregistered module in dependentModule definition."),this._chartMessageImageStyle={imageHAlign:C.renderErrorMessageImageHAlign||n.baseChartMessageImageHAlign,imageVAlign:C.renderErrorMessageImageVAlign||n.baseChartMessageImageVAlign,imageAlpha:C.renderErrorMessageImageAlpha||n.baseChartMessageImageAlpha,imageScale:C.renderErrorMessageImageScale||n.baseChartMessageImageScale},this._chartMessageStyle={color:C.renderErrorMessageColor||n.baseChartMessageColor,fontFamily:C.renderErrorMessageFont||n.baseChartMessageFont,
fontSize:C.renderErrorMessageFontSize||n.baseChartMessageFontSize},e.hcLib.createChart(this,b,"stub",void 0,n.renderErrorMessage))}},update:function(a){var b=this.ref,c=this.jsVars,h=c&&c.fcObj,h=c.container||h&&h.options&&h.options.containerElement&&h.options.containerElement.childNodes[0];c.hcObj&&c.hcObj.destroy&&c.hcObj.destroy();c.isResizing&&(c.isResizing=clearTimeout(c.isResizing));void 0===a.error?(delete c.stallLoad,delete c.loadError,this.isActive()?this.src!==this.__state.lastRenderedSrc?
this.render():e.hcLib.createChart(this,h):this.__state.rendering&&!c.waitingModule&&e.hcLib.createChart(this,h)):(this.isActive()&&"function"===typeof b.showChartMessage&&b.showChartMessage("InvalidXMLText"),delete c.loadError)},resize:function(a){var b=this.ref,c,h=this.jsVars;b&&b.resize&&(h.isResizing&&(h.isResizing=clearTimeout(h.isResizing)),h.isResizing=setTimeout(function(){c=e.normalizeCSSDimension(a.width,a.height,b);void 0!==a.width&&(b.style.width=c.width);void 0!==a.height&&(b.style.height=
c.height);b.resize();delete h.isResizing},0))},dispose:function(){var a,b=this.jsVars;b.isResizing&&(b.isResizing=clearTimeout(b.isResizing));b.instanceAPI&&b.instanceAPI.dispose&&(b.instanceAPI.dispose(),delete b.instanceAPI);if(a=this.ref)e.purgeDOM(a),a.parentNode&&a.parentNode.removeChild(a);b.container=null;k.cleanupWaitingCommands(this)},load:function(b,c){var d=this.jsVars,h=this.chartType(),l=e.hcLib.chartAPI[h],h=a(h).concat(d.userModules),p=h[h.length-1];l||!h||h&&0===h.length?(delete d.waitingModule,
b&&U(this,b||this.ref,c)):d.waitingModule||(d.waitingModule=!0,delete d.waitingModuleError,D(h,function(){delete d.waitingModule;J(k.moduleCmdQueue[p])},t,this))}})}]);
FusionCharts.register("module",["private","modules.api.dynamicchartattributes",function(){var e=this;e.extend(e.core,{setChartAttribute:function(k,u){var q,D,b,N;if("string"===typeof k)q=k,k={},k[q]=u;else if(null===k||"object"!==typeof k)return;N=0;if(b=(q=this.getChartData(e.dataFormats.JSON))&&(q.chart||q.graph||q.map)){for(D in k)N+=1,null===k[D]?delete b[D.toLowerCase()]:b[D.toLowerCase()]=k[D];0<N&&("undefined"===typeof b.animation&&(b.animation="0"),this.setChartData(q,e.dataFormats.JSON))}else e.raiseError(this,
"2105141421","run","#setChartAttribute()","Could not retrieve attribute list. Is data ready?")},getChartAttribute:function(k){var u=this.getChartData(e.dataFormats.JSON),u=u&&(u.chart||u.graph||u.map),q,D;if(0===arguments.length||void 0===k||void 0===u)return u;if("string"===typeof k)q=u[k.toString().toLowerCase()];else if(k instanceof Array)for(q={},D=0;D<k.length;D+=1)q[k[D]]=u[k[D].toString().toLowerCase()];else e.raiseError(this,"25081429","param","~getChartAttribute()",'Unexpected value of "attribute"');
return q}},!0)}]);
FusionCharts.register("module",["private","api.linkmanager",function(){var e=this,k=e.FusionChartsDOMInsertModes,u={},q=function(b,k){this.items={};this.root=b;this.parent=k;k instanceof e.core?this.level=this.parent.link.level+1:(u[b.id]=[{}],this.level=0)},D=function(b,e){return(b.options.containerElement===e.options.containerElement||b.options.containerElementId===e.options.containerElementId)&&b.options.insertMode===k.REPLACE};e.policies.link=["link",void 0];q.prototype.configuration=function(){return u[this.root.id][this.level]||
(u[this.root.id][this.level]={})};e.extend(e.core,{configureLink:function(b,k){var q;if(b instanceof Array){for(q=0;q<b.length;q+=1)"object"!==typeof u[this.link.root.id][q]&&(u[this.link.root.id][q]={}),e.extend(u[this.link.root.id][q],b[q]);u[this.link.root.id].splice(b.length)}else"object"===typeof b?("number"!==typeof k&&(k=this.link.level),void 0===u[this.link.root.id][k]&&(u[this.link.root.id][k]={}),e.extend(u[this.link.root.id][k],b)):e.raiseError(this,"25081731","param","~configureLink()",
"Unable to update link configuration from set parameters")}},!0);e.addEventListener("beforeInitialize",function(b){b.sender.link instanceof q?b.sender.link.parent instanceof e.core&&(b.sender.link.parent.link.items[b.sender.id]=b.sender):b.sender.link=new q(b.sender)});e.addEventListener("linkedChartInvoked",function(b,k){var u=b.sender,c=u.clone({dataSource:k.data,dataFormat:k.linkType,link:new q(u.link.root,u)},!0),p=k.alias,a;p&&(!c.typeSource&&c.swfUrl&&(c.typeSource=c.swfUrl.replace(/(.*?)?[^\/]*\.swf.*?/ig,
"$1")),c.type=p);u.args&&0!==parseInt(u.args.animate,10)&&delete c.animate;e.extend(c,u.link.configuration());e.raiseEvent("beforeLinkedItemOpen",{level:u.link.level},u.link.root,void 0,function(){e.core.items[c.id]instanceof e.core&&e.core.items[c.id].dispose();a=new e.core(c);D(a,u)||u.options.overlayButton&&u.options.overlayButton.message||("object"!==typeof u.options.overlayButton&&(u.options.overlayButton={}),u.options.overlayButton.message="Close");a.render();e.raiseEvent("linkedItemOpened",
{level:u.link.level,item:a},u.link.root)})});e.addEventListener("overlayButtonClick",function(b,k){if("LinkManager"===k.id){var q=b.sender,c=q.link.level-1,p=q.link.parent,a=q.link.root;e.raiseEvent("beforeLinkedItemClose",{level:c,item:q},a,q,function(){setTimeout(function(){e.core.items[q.id]&&q.dispose();e.raiseEvent("linkedItemClosed",{level:c},a)},0);p.disposed||p.isActive()||!D(q,p)||p.render()})}});e.addEventListener("Loaded",function(b){b=b.sender;var k;b&&void 0!==b.link&&b.link.root!==b&&
b.link.parent instanceof e.core&&(b.ref&&"function"===typeof b.ref.drawOverlayButton?(k=e.extend({show:!0,id:"LinkManager"},b.link.parent.options.overlayButton),e.extend(k,b.link.parent.link.configuration().overlayButton||{}),b.ref.drawOverlayButton(k)):e.raiseWarning(b,"04091602","run","::LinkManager^Loaded","Unable to draw overlay button on object. -"+b.id))});e.addEventListener("beforeDispose",function(b){var k=b.sender;k&&k.link instanceof q&&(k&&k.link&&k.link.parent instanceof e.core&&k.link.parent.link&&
k.link.parent.link.items&&delete k.link.parent.link.items[b.sender.id],delete u[k.id])})}]);
FusionCharts.register("module",["private","modules.renderer.js-thememanager",function(){var e=this,k,u,q,D=/\s+!important$/,b=/\\!important$/,N=function(a,b){for(var c=b.length,e=-1;c--;)if(a===b[c]){e=c;break}return e},J=function(a,b,c,e,k){var p,n,q,t;k?(e.push(a),k.push(b)):(e=[a],k=[b]);if(b instanceof Array)for(p=0;p<b.length;p+=1){try{n=a[p],q=b[p]}catch(u){continue}if("object"!==typeof q)c&&void 0===q||(a[p]=q);else{if(null===n||"object"!==typeof n)n=a[p]=q instanceof Array?[]:{};t=N(q,k);
-1!==t?n=a[p]=e[t]:J(n,q,c,e,k)}}else for(p in b){try{n=a[p],q=b[p]}catch(v){continue}if(null!==q&&"object"===typeof q)if(t=Object.prototype.toString.call(q),"[object Object]"===t){if(null===n||"object"!==typeof n)n=a[p]={};t=N(q,k);-1!==t?n=a[p]=e[t]:J(n,q,c,e,k)}else"[object Array]"===t?(null!==n&&n instanceof Array||(n=a[p]=[]),t=N(q,k),-1!==t?n=a[p]=e[t]:J(n,q,c,e,k)):a[p]=q;else a[p]=q}return a},c=function(a,b,c){if("object"!==typeof a&&"object"!==typeof b)return null;if("object"!==typeof b||
null===b)return a;"object"!==typeof a&&(a=b instanceof Array?[]:{});J(a,b,c);return a},p=function(a){var c={important:!1,str:""};if(!a)return c;a=a.toString();D.test(a)?(a=a.replace(D,""),c.important=!0):(a=a.replace(b,"!imporant"),c.important=!1);c.str=a;return c},a=function(b,c){var e,l,k,p,n,q,u=0,D=0;for(e in b)if(l=b[e],l instanceof Array)for(q=l.length,n=0;n<q;n+=1){if(p=l[n],"object"===typeof p)if("category"===e)if("true"===p.vline){if(k=c.component("vline",u,p))t(p,k),u+=1}else{if(k=c.component("category",
D,p,q))t(p,k),D+=1}else if(k=c.component(e,n,p,q))t(p,k),a(p,k)}else"object"===typeof l&&(k=c.component(e,null,l))&&(t(l,k),a(l,k))},t=function(a,b){var c=b.getAll(),e,k;for(e in c)k=c[e].toString(),k=p(k),k.important?a[e.toLowerCase()]=k.str:void 0===a[e.toLowerCase()]&&(a[e.toLowerCase()]=k.str)},U=function(a,b){"geo"===b.defaultSeriesType&&F.call(this,a,b)},F=function(a,b){var c=a.sender,l=c.getChartData(e.dataFormats.JSON,!0),k;l.error||((k=l.data.chart.theme)?q.themify(k,c,c.chartType(),l.data,
"geo"===b.defaultSeriesType&&"geo"):c.jsVars.themeObject&&c.jsVars.themeObject.dispose())};k=function(){this.themeStore={}};k.prototype={constructor:k,add:function(a){for(var b=0,c=a.length,e;b<c;b+=1)(e=a[b].name)&&(this.themeStore[e]=a[b])},themify:function(a,b,c,l,k){var p=b.jsVars,n=a.split(","),q=[],t=n.length,D,v;if(t){for(v=0;v<t;v+=1){D=this.themeStore;var J;J=n[v];J=J.replace(/^\s\s*/,"");for(var N=/\s/,$=J.length;N.test(J.charAt(--$)););J=J.slice(0,$+1);(D=D[J])&&q.push(this.evaluateThemeJSON(D.theme,
b,c,k))}q.length?(p.themeObject=new u(q,b,!1,l),this.applyTheme(b),b.addEventListener("chartTypeChanged",F),b.addEventListener("internal.drawstart",U)):e.raiseWarning(b,"14051100501","run","api.themes~themify()",'The theme "'+a+'" requested has not been registered.')}},evaluateThemeJSON:function(a,b,e,l){var k={},p=b.jsVars,n=function(a){var b,d;for(b in a)d=a[b],k[b]=d instanceof Array?c(k[b]||[],d):"object"===typeof d?c(k[b]||{},d):d};e=e||b.chartType();p.themeObject&&a!==p.themeObject&&(p.themeObject.dispose(),
delete p.themeObject);n(a.base);l&&a[l]&&n(a[l]);e&&a[e]&&n(a[e]);return k},applyTheme:function(b){b=b.jsVars.themeObject;var c=b.getThemedJSONData().data;c&&a(c,b)}};u=function(a,b,e,l){this.themeArray=a;this.themeComponents={};this.base={};this.chartInstance=b;this.isChildInstance=Boolean(e);this.themedData=e?null:c({},l);this.length=a.length;b=0;for(e=a.length;b<e;b+=1)this.parse(a[b])};u.prototype={constructor:u,pushTheme:function(a){a&&(this.themeArray.push(a),this.parse(a),this.length+=1)},
popTheme:function(){},parse:function(a){var b=this.themeComponents,e=this.chartInstance,l=this.base,k,q,n;for(q in a)if("string"===typeof a[q]||"number"===typeof a[q])if(l[q]){if(k=p(a[q]),n=p(l[q]),k.important||!n.important)l[q]=a[q]}else l[q]=a[q];else b[q]||(b[q]=[]),k=b[q],a[q]instanceof Array?k.push(c([],a[q])):"object"===typeof a[q]?k.push(new u([a[q]],e,!0)):"function"===typeof a[q]&&k.push(a[q])},merge:function(a){var b=this.base,c=a.base,e=this.themeComponents,k=a.themeComponents,q,n,t;for(t in c)if(q=
p(b[t]),n=p(c[t]),!q.important||n.important)b[t]=c[t];for(t in k)e[t]=e[t]?e[t].concat(k[t]):[].concat(k[t]);this.length+=a.length},get:function(a){return this.base[a]},getAll:function(){return c({},this.base)},component:function(a,b,c,e){var k=this.themeComponents,p=this.chartInstance,n=new u([],p,!0),q,t,D;t=k[a];if(!t)return null;a=0;for(k=t.length;a<k;a+=1)D=t[a],"function"===typeof D?(b=b||0,n.pushTheme(D.call(p,b,c,e))):D instanceof Array?(b=b||0,q=D.length,b%=q,q=D[b],q instanceof u?n.merge(q):
"function"===typeof q?n.pushTheme(q.call(p,b,c,e)):n.pushTheme(q)):D instanceof u?n.merge(D):n.pushTheme(D);return n},getThemedJSONData:function(){return{data:this.themedData}},dispose:function(){var a=this.themeComponents,b=this.chartInstance,c,e;for(c in a)if(e=a[c].length){for(;e--;)a[c][e].dispose&&a[c][e].dispose();delete a[c]}this.isChildInstance||(b.removeEventListener("chartTypeChanged",F),b.removeEventListener("internal.drawstart",U));this.dataWithoutTheme=this.isChildInstance=this.themeArray=
this.base=this.chartInstance=this.themeComponents=null}};q=new k;e.registrars.theme=e.registerTheme=function(a){a&&("[object Array]"!==Object.prototype.toString.call(a)&&(a=[a]),q.add(a))};e.addEventListener("beforeDataUpdate",function(a,b){var c=a.sender,k=e.core.transcodeData(b.data,b.format,e.dataFormats.JSON),p=k.chart&&k.chart.theme;p?q.themify(p,c,c.args.type,k):c.jsVars.themeObject&&(c.jsVars.themeObject.dispose(),delete c.jsVars.themeObject)})}]);
FusionCharts.register("theme",{name:"default",theme:{base:{chart:{labelDisplay:"stagger !important",caption:"Theme Caption \\!important",canvasBgColor:"#56EF22",borderThickness:"5 !important",borderColor:"#E60539",baseFontColor:"#781129"},categories:[{fontColor:"#0F4F40",fontSize:15,category:function(e){return{showLabel:e%2?0:1}},vline:{color:"#000000",thickness:2}}],dataset:[{color:"#8C3146",data:function(e,k){8==e&&(k.value="");return{color:32E3>Number(k.value)?"#8C3146":"#FF0000",alpha:"100"}}}],
trendlines:[{line:function(e){return e?{color:"#ff0000",thickness:3}:{color:"#ffff00",thickness:3}}}]},pie2d:{chart:{bgColor:"#FF0000"}},msline:{chart:{canvasBgColor:"#ff0000"}},geo:{chart:{canvasBgColor:"#0000ff"}},world:{chart:{canvasBgColor:"#00ff00"}}}});

/*
 FusionCharts JavaScript Library
 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>
 FusionCharts JavaScript Library
 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>

 @version 3.7.0
*/
FusionCharts.register("module",["private","modules.renderer.js-charts",function(){function wa(a){var m={left:a.offsetLeft,top:a.offsetTop};for(a=a.offsetParent;a;)m.left+=a.offsetLeft,m.top+=a.offsetTop,a!==Ia.body&&a!==Ia.documentElement&&(m.left-=a.scrollLeft,m.top-=a.scrollTop),a=a.offsetParent;return m}function na(a,m){for(var c=[],d=0,n=a.length;d<n;d++)c[d]=m.call(a[d],a[d],d,a);return c}function da(a,m){var c=m?360:S;a=(a||0)%c;return 0>a?c+a:a}function Ja(a,m){return a<=y?a:m<=y?m:m>a?0:m}
function Oa(a,m,c,d,n){return la((m-c[1]-d.top)/n,a-c[0]-d.left)}function Ka(a,m,c,d,n,b,r,ca,e,q){"object"===typeof a&&(m=a.y,c=a.r,d=a.innerR,n=a.radiusYFactor,b=a.depth,r=a.seriesGroup,ca=a.renderer,a=a.x);if(0>n||1<=n)n=.6;a=a||0;m=m||0;c=c||1;d=d||0;b=b||0;this.renderer=ca;this.hasOnePoint=e;this.use3DLighting=q;this.cx=a;this.cy=m;this.rx=c;this.ry=c*n;this.radiusYFactor=n;this.isDoughnut=0<d;this.innerRx=d;this.innerRy=d*n;this.depth=b;this.leftX=a-c;this.rightX=a+c;this.leftInnerX=a-d;this.rightInnerX=
a+d;this.depthY=m+b;this.topY=m-this.ry;this.bottomY=this.depthY+this.ry;this.bottomBorderGroup=ca.group("bottom-border",r).attr({transform:"t0,"+b});this.outerBackGroup=ca.group("outer-back-Side",r);this.slicingWallsBackGroup=ca.group("slicingWalls-back-Side",r);this.innerBackGroup=ca.group("inner-back-Side",r);this.innerFrontGroup=ca.group("inner-front-Side",r);this.slicingWallsFrontGroup=ca.group("slicingWalls-front-Side",r);this.topGroup=ca.group("top-Side",r);this.moveCmdArr=["M"];this.lineCmdArr=
["L"];this.closeCmdArr=["Z"];this.centerPoint=[a,m];this.leftPoint=[this.leftX,m];this.topPoint=[a,this.topY];this.rightPoint=[this.rightX,m];this.bottomPoint=[a,m+this.ry];this.leftDepthPoint=[this.leftX,this.depthY];this.rightDepthPoint=[this.rightX,this.depthY];this.leftInnerPoint=[this.leftInnerX,m];this.rightInnerPoint=[this.rightInnerX,m];this.leftInnerDepthPoint=[this.leftInnerX,this.depthY];this.rightInnerDepthPoint=[this.rightInnerX,this.depthY];this.pointElemStore=[];this.slicingWallsArr=
[];a=["A",this.rx,this.ry,0,0,1,this.rightX,m];c=["A",this.rx,this.ry,0,0,1,this.leftX,m];d=["A",this.rx,this.ry,0,0,0,this.rightX,this.depthY];n=["A",this.rx,this.ry,0,0,0,this.leftX,this.depthY];b=["A",this.innerRx,this.innerRy,0,0,0,this.rightInnerX,m];m=["A",this.innerRx,this.innerRy,0,0,0,this.leftInnerX,m];r=["A",this.innerRx,this.innerRy,0,0,1,this.rightInnerX,this.depthY];ca=["A",this.innerRx,this.innerRy,0,0,1,this.leftInnerX,this.depthY];this.isDoughnut?(this.topBorderPath=this.moveCmdArr.concat(this.leftPoint,
a,c,this.moveCmdArr,this.leftInnerPoint,b,m),this.topPath=this.moveCmdArr.concat(this.leftPoint,a,c,this.lineCmdArr,this.leftInnerPoint,b,m,this.closeCmdArr),this.innerFrontPath=this.moveCmdArr.concat(this.leftInnerPoint,b,this.lineCmdArr,this.rightInnerDepthPoint,ca,this.closeCmdArr),this.innerBackPath=this.moveCmdArr.concat(this.rightInnerPoint,m,this.lineCmdArr,this.leftInnerDepthPoint,r,this.closeCmdArr)):this.topBorderPath=this.topPath=this.moveCmdArr.concat(this.leftPoint,a,c,this.closeCmdArr);
this.outerBackPath=this.moveCmdArr.concat(this.leftPoint,a,this.lineCmdArr,this.rightDepthPoint,n,this.closeCmdArr);this.outerFrontPath=this.moveCmdArr.concat(this.rightPoint,c,this.lineCmdArr,this.leftDepthPoint,d,this.closeCmdArr);this.clipPathforOuter=["M",this.leftX,this.topY,"L",this.rightX,this.topY,this.rightX,this.bottomY,this.leftX,this.bottomY,"Z"];this.clipPathforInner=["M",this.leftInnerX,this.topY,"L",this.rightInnerX,this.topY,this.rightInnerX,this.bottomY,this.leftInnerX,this.bottomY,
"Z"];this.clipPathforNoClip=["M",this.leftInnerX,this.topY,"L",this.leftInnerX,this.bottomY,"Z"];this.colorObjs=[]}var ja=this,E=ja.hcLib,ia=E.Raphael,x=ja.window,Ia=x.document,Y=E.BLANKSTRING,Va=E.createTrendLine,g=E.pluck,va=E.getValidValue,Ba=E.parseTooltext,f=E.pluckNumber,Ha=E.getFirstValue,Sa=E.getDefinedColor,oa=E.parseUnsafeString,sa=E.FC_CONFIG_STRING,ta=E.extend2,za=E.getDashStyle,T=E.toRaphaelColor,La=E.toPrecision,Ma=E.stubFN,aa=E.hasSVG,xa=E.each,Aa=E.TOUCH_THRESHOLD_PIXELS,Pa=E.CLICK_THRESHOLD_PIXELS,
ua=E.plotEventHandler,b=E.hasTouch?Aa:Pa,e="rgba(192,192,192,"+(E.isIE?.002:1E-6)+")",h=8===x.document.documentMode?"visible":"",P=Math,u=P.sin,w=P.cos,la=P.atan2,p=P.round,s=P.min,t=P.max,qa=P.abs,ba=P.PI,D=P.ceil,G=P.floor,H=P.sqrt,M=ba/180,L=180/ba,y=Math.PI,Wa=y/2,S=2*y,Xa=y+Wa,Ga=E.graphics.getColumnColor,ka=E.getFirstColor,ga=E.setLineHeight,Ta=E.pluckFontSize,Ea=E.getFirstAlpha,ha=E.graphics.getDarkColor,ea=E.graphics.getLightColor,ma=E.graphics.convertColor,Qa=E.COLOR_TRANSPARENT,Ua=E.POSITION_CENTER,
$a=E.POSITION_TOP,Ya=E.POSITION_BOTTOM,ab=E.POSITION_RIGHT,bb=E.POSITION_LEFT,cb=E.parsexAxisStyles,Za=E.hashify,l=E.chartAPI,Fa=E.graphics.mapSymbolName,x=l.singleseries,X=E.COMMASTRING,ra=E.ZEROSTRING,Ca=E.ONESTRING,ya=E.HUNDREDSTRING,Ra=E.PXSTRING,db=E.COMMASPACE;l("column2d",{standaloneInit:!0,friendlyName:"Column Chart",creditLabel:!1,rendererId:"cartesian"},l.column2dbase);l("column3d",{friendlyName:"3D Column Chart",defaultSeriesType:"column3d",defaultPlotShadow:1,is3D:!0,fireGroupEvent:!0,
defaultZeroPlaneHighlighted:!1},l.column2d);l("bar2d",{friendlyName:"Bar Chart",isBar:!0,defaultSeriesType:"bar",spaceManager:l.barbase},l.column2d);l("bar3d",{friendlyName:"3D Bar Chart",defaultSeriesType:"bar3d",defaultPlotShadow:1,fireGroupEvent:!0,is3D:!0,defaultZeroPlaneHighlighted:!1},l.bar2d);l("line",{friendlyName:"Line Chart",standaloneInit:!0,creditLabel:!1,rendererId:"cartesian"},l.linebase);l("area2d",{friendlyName:"Area Chart",standaloneInit:!0,creditLabel:!1,rendererId:"cartesian"},
l.area2dbase);l("pie2d",{friendlyName:"Pie Chart",standaloneInit:!0,defaultSeriesType:"pie",defaultPlotShadow:1,reverseLegend:1,alignCaptionWithCanvas:0,sliceOnLegendClick:!0,rendererId:"pie",point:function(a,m,c,d,n){a=n[sa];var b=this.colorManager,r=a.is3d,ca=f(d.plotborderthickness),e=f(ca,r?.1:1),q=f(d.enablemultislicing,1),J=f(d.use3dlighting,1),k=J?f(d.radius3d,d["3dradius"],90):100,F=f(d.showzeropies,1),h=f(d.showpercentintooltip,1),P=f(d.showlabels,1),z=f(d.showvalues,1),l=f(d.showpercentvalues,
d.showpercentagevalues,0),A=g(d.tooltipsepchar,d.hovercapsepchar,db),eb=g(d.labelsepchar,A),fa=g(d.plotbordercolor,d.piebordercolor),B=n[sa].numberFormatter,w=c.length,u=f(d.plotborderdashed,0),N=f(d.plotborderdashlen,5),C=f(d.plotborderdashgap,4),I=f(d.showvalueinlegend,0),O=f(d.showlabelinlegend,1),p=f(d.valuebeforelabelinlegend,0),Da=f(d.showvalueaspercentinlegend,1),K=f(d.reverseplotorder,0),U=g(d.legendsepchar,", "),W=n.plotOptions.series.dataLabels.style,V=0,y=[],Q,v,R,Z,t,$,D,s,Na,L,la,x,G,
M,S,E,H,qa,T,ba=-1;H=m.centerLabelConfig={label:oa(g(d.defaultcenterlabel,"")),font:g(d.centerlabelfont,W.fontFamily),fontSize:f(d.centerlabelfontsize,parseInt(W.fontSize,10)),color:ka(g(d.centerlabelcolor,d.valuefontcolor,a.inCanvasStyle.color,"555555")),alpha:f(d.centerlabelalpha,100),bold:f(d.centerlabelbold,W.fontWeight),italic:f(d.centerlabelitalic,W.style),bgColor:g(d.centerlabelbgcolor,""),bgAlpha:f(d.centerlabelbgalpha,100),borderColor:g(d.centerlabelbordercolor,W.borderColor),borderAlpha:f(d.centerlabelborderalpha,
100),borderThickness:f(d.centerlabelborderthickness,W.borderThickness),borderRadius:f(d.centerlabelborderradius,W.borderRadius),textPadding:f(d.centerlabeltextpadding,W.borderPadding),padding:f(d.centerlabelpadding,2),bgOval:f(d.centerlabelbgoval,0),shadow:f(d.showcenterlabelshadow,0),hoverColor:d.centerlabelhovercolor&&ka(g(d.centerlabelhovercolor)),hoverAlpha:f(d.centerlabelhoveralpha),toolText:oa(g(d.centerlabeltooltext,""))};100<k&&(k=100);0>k&&(k=0);f(d.showlegend,0)&&(n.legend.enabled=!0,n.legend.reversed=
!Boolean(f(d.reverselegend,0)),m.showInLegend=!0);for(v=0;v<w;v+=1)Z=c[v],R=B.getCleanValue(Z.value,!0),null===R||!F&&0===R||(y.push(Z),V+=R);0===V&&(y=[]);m.enableRotation=1<y.length?f(d.enablerotation,1):0;m.alphaAnimation=f(d.alphaanimation,1);m.is3D=r;m.placeLabelsInside=d.placevaluesinside;m.use3DLighting=J;m.pieYScale=f(d.pieyscale,40);1>m.pieYScale&&(m.pieYScale=1);100<=m.pieYScale&&(m.pieYScale=80);m.pieYScale/=100;m.pieSliceDepth=f(d.pieslicedepth,15);1>m.pieSliceDepth&&(m.pieSliceDepth=
1);m.managedPieSliceDepth=m.pieSliceDepth;m.enableMultiSlicing=!!q;r&&d.showplotborder!=Ca&&!ca&&(m.showBorderEffect=1);for(v=y.length-1;0<=v;--v){Z=y[v];R=B.getCleanValue(Z.value,!0);Q=oa(g(Z.label,Z.name,Y));w=g(Z.color,b.getPlotColor(v));$=g(Z.alpha,d.plotfillalpha);D=g(Z.bordercolor,fa);s=g(Z.borderalpha,d.plotborderalpha,d.pieborderalpha);r&&(D||void 0!==s)&&(m.showBorderEffect=0);D=g(D,ea(w,r?90:25)).split(X)[0];s=d.showplotborder==ra?ra:g(s,$,"80");$=g($,ya);F={opacity:Math.max($,s)/100};if(c=
Boolean(f(Z.issliced,d.issliced,0)))q||(-1!==ba&&(m.data[y.length-ba-1].sliced=!1),ba=v),a.preSliced=c;ca=(S=f(Z.dashed,u))?za(g(Z.dashlen,N),g(Z.dashgap,C),e):void 0;t=va(oa(g(Z.tooltext,a.tooltext)));la=B.percentValue(R/V*100);x=B.dataLabels(R)||Y;L=1===f(Z.showlabel,P)?Q:Y;Na=1===(G=f(Z.showvalue,z))?1===l?la:x:Y;M=va(oa(Z.displayvalue));Na=void 0!==M&&G?M:Na!==Y&&L!==Y?L+eb+Na:g(L,Na);void 0!==t?t=Ba(t,[1,2,3,5,6,7,14,24,25],{formattedValue:x,label:Q,yaxisName:oa(d.yaxisname),xaxisName:oa(d.xaxisname),
percentValue:la,sum:B.dataLabels(V),unformattedSum:V},Z,d):(t=Q,G=h?la:x,t=t!=Y?t+A+G:G);G=O?Q:Y;I&&(E=Da?B.legendPercentValue(R/V*100):B.legendValue(R),G=p?E+(G&&U+G):(G&&G+U)+E);S=this.pointHoverOptions(Z,m,{plotType:"pie",use3DLighting:J,color:w,alpha:$,borderWidth:e,borderColor:D,borderAlpha:s,borderDashed:S,borderDashGap:g(Z.dashgap,C),borderDashLen:f(Z.dashlen,N),radius3D:k,shadow:F});Q={label:g((qa=Z.centerlabel||d.centerlabel)&&this.replaceMacros(qa,["\\$value","\\$percentValue","\\$displayValue",
"\\$label"],[x,la,void 0===M?"":M,Q]),""),font:H.font,fontSize:f(Z.centerlabelfontsize,H.fontSize),color:ka(g(Z.centerlabelcolor,H.color)),alpha:f(Z.centerlabelalpha,H.alpha),bold:f(Z.centerlabelbold,H.bold),italic:f(Z.centerlabelitalic,H.italic),bgColor:g(Z.centerlabelbgcolor,H.bgColor),bgAlpha:f(Z.centerlabelbgalpha,H.bgAlpha),borderColor:g(Z.centerlabelbordercolor,H.borderColor),borderAlpha:f(Z.centerlabelborderalpha,H.borderAlpha),borderThickness:H.borderThickness,borderRadius:H.borderRadius,
textPadding:H.textPadding,padding:H.padding,bgOval:H.bgOval,shadow:H.shadow,hoverColor:(T=g(Z.centerlabelhovercolor,H.hoverColor))&&ka(T),hoverAlpha:f(Z.centerlabelhoveralpha,H.hoverAlpha),toolText:g(Z.centerlabeltooltext,"")};m.data.push({displayValue:Na,style:cb(Z,{},d,W,w),categoryLabel:L,showInLegend:G!==Y,y:R,name:G,shadow:F,toolText:t,color:this.getPointColor(w,$,k),_3dAlpha:$,borderColor:ma(D,s),borderWidth:e,link:va(Z.link),sliced:c,dashStyle:ca,doNotSlice:g(d.enableslicing,Ca)!=Ca,hoverEffects:S.enabled&&
S.options,rolloverProperties:S.enabled&&S.rolloverOptions,centerLabelConfig:Q})}K&&(m.reversePlotOrder=!0,m.data&&m.data.reverse());m.valueTotal=V;n.legend.enabled=d.showlegend===Ca?!0:!1;m.startAngle=f(d.startingangle,0);n.chart.startingAngle=g(1<y.length?d.startingangle:0,0);return m},replaceMacros:function(a,m,c){for(var d=m.length||0,n;d--;)n=new RegExp(m[d],"gi"),a=a.replace(n,c[d]);return a},containsMacro:function(a,m){for(var c=m.length||0,d;c--;)if(d=new RegExp(m[c],"gi"),d=a.match(d))return!0;
return!1},getPointColor:function(a,m,c){var d,n;a=ka(a);m=Ea(m);100>c&&aa?(d=Math.floor(85*(100-.35*c))/100,d=ha(a,d),n=Math.floor(50*(100+c))/100,a=ea(a,n),m={FCcolor:{color:a+X+d,alpha:m+X+m,ratio:c+","+(100-c),radialGradient:!0,gradientUnits:"userSpaceOnUse"}}):m={FCcolor:{color:a+X+a,alpha:m+X+m,ratio:"0,100"}};return m},configureAxis:function(a,m){var c=0,d=a[sa],n=m.chart,b=a.xAxis.labels.style,r,ca;r=(r=Ha(n.valuebordercolor,Y))?ma(r,f(n.valueborderalpha,n.valuealpha,100)):Y;b={fontFamily:g(n.valuefont,
b.fontFamily),fontSize:g(n.valuefontsize,parseInt(b.fontSize,10))+Ra,lineHeight:b.lineHeight,color:ma(g(n.valuefontcolor,b.color),f(n.valuefontalpha,n.valuealpha,100)),fontWeight:f(n.valuefontbold)?"bold":"normal",fontStyle:f(n.valuefontitalic)?"italic":"normal",border:r||n.valuebgcolor?f(n.valueborderthickness,1)+"px solid":void 0,borderColor:r,borderThickness:f(n.valueborderthickness,1),borderPadding:f(n.valueborderpadding,2),borderRadius:f(n.valueborderradius,0),backgroundColor:n.valuebgcolor?
ma(n.valuebgcolor,f(n.valuebgalpha,n.valuealpha,100)):Y,borderDash:f(n.valueborderdashed,0)?za(f(n.valueborderdashlen,4),f(n.valueborderdashgap,2),f(n.valueborderthickness,1)):"none"};a.plotOptions.series.dataLabels.style=b;delete d.x;delete d[0];delete d[1];a.chart.plotBorderColor=a.chart.plotBackgroundColor=Qa;d=d.pieDATALabels=[];if(1===a.series.length&&(ca=a.series[0].data)&&0<(c=a.series[0].data.length)&&a.plotOptions.series.dataLabels.enabled)for(;c--;)ca[c]&&void 0!==va(ca[c].displayValue)&&
d.push({text:ca[c].displayValue,style:ca[c].style})},spaceManager:function(a,m,c,d){var n=a[sa],b=n.is3d,r=this.name,ca=this.colorManager,e=this.smartLabel||n.smartLabel,q=f(n.pieDATALabels&&n.pieDATALabels.length,0),J=0,k=m.chart,F=f(k.managelabeloverflow,0),h=f(k.slicingdistance),P=n.preSliced||k.enableslicing!==ra||k.showlegend===Ca&&k.interactivelegend!==ra?qa(f(h,20)):0,z=f(k.pieradius,0),l=f(k.enablesmartlabels,k.enablesmartlabel,1),A=l?f(k.skipoverlaplabels,k.skipoverlaplabel,1):0,w=f(k.issmartlineslanted,
1),fa=q?f(k.labeldistance,k.nametbdistance,5):P,B=f(k.smartlabelclearance,5);c-=a.chart.marginRight+a.chart.marginLeft;var u=d-(a.chart.marginTop+a.chart.marginBottom);d=s(u,c);var p=g(k.smartlinecolor,ca.getColor("plotFillColor")),N=f(k.smartlinealpha,100),C=f(k.smartlinethickness,.7),I=a.plotOptions.series.dataLabels,ca=I.style,O=q?f(parseInt(ca.lineHeight,10),12):0,ca=a.series[0]||{},y=ca.pieYScale,Da=ca.pieSliceDepth;d=0===z?.15*d:z;var K=0,K=2*d,U=f("doughnut2d"===r?0:k.placevaluesinside);I.connectorWidth=
C;I.connectorPadding=f(k.connectorpadding,5);I.connectorColor=ma(p,N);q&&(l&&(fa=B),fa+=P);B=K+2*(O+fa);u-=this.titleSpaceManager(a,m,c,t(B<u?u-B:u/2,parseFloat(a.title.style.lineHeight,10)));k.showlegend===Ca&&(g(k.legendposition,Ya).toLowerCase()!==ab?u-=this.placeLegendBlockBottom(a,m,c,u/2,!0):c-=this.placeLegendBlockRight(a,m,c/3,u,!0));if(1!==q)for(;q--;)e.setStyle(n.pieDATALabels[q].style),m=e.getOriSize(n.pieDATALabels[q].text),J=t(J,m.width);0===z&&(b?(u-=Da,K=s(c/2-J-P,(u/2-O)/y)-fa):K=
s(c/2-J-P,u/2-O)-fa,K>=d?d=K:h||(P=fa=t(s(fa-(d-K),P),10)));b&&(q=u-2*(d*y+O),Da>q&&(ca.managedPieSliceDepth=Da-q));a.plotOptions.pie3d.slicedOffset=a.plotOptions.pie.slicedOffset=P;a.plotOptions.pie3d.size=a.plotOptions.pie.size=2*d;a.plotOptions.series.dataLabels.distance=fa;a.plotOptions.series.dataLabels.isSmartLineSlanted=w;a.plotOptions.series.dataLabels.enableSmartLabels=l;a.plotOptions.series.dataLabels.skipOverlapLabels=A;a.plotOptions.series.dataLabels.manageLabelOverflow=F;a.plotOptions.series.dataLabels.placeLabelsInside=
U;if("doughnut2d"===r||"doughnut3d"===r)if(r=f(k.doughnutradius,0),q=(q=f(k.use3dlighting,1))?f(k.radius3d,k["3dradius"],50):100,100<q&&(q=100),0>q&&(q=0),k=0===r||r>=d?d/2:r,a.plotOptions.pie3d.innerSize=a.plotOptions.pie.innerSize=2*k,0<q&&aa&&(k=parseInt(k/d*100,10),r=(100-k)/2,q=parseInt(r*q/100,10),k=k+X+q+X+2*(r-q)+X+q,a.series[0]&&a.series[0].data))for(F=a.series[0].data,a=0,q=F.length;a<q;a+=1)r=F[a],r.color.FCcolor&&(r.color.FCcolor.ratio=k,r.rolloverProperties.color&&(r.rolloverProperties.color.FCcolor.ratio=
k))},creditLabel:!1,eiMethods:{isPlotItemSliced:function(a){var m=this.jsVars.hcObj,c,d,n;return m&&m.datasets&&m.datasets[0]&&(c=m.datasets[0].data)&&(n=c.length)&&c[a=n-a-1]&&(d=c[a].plot)&&d.sliced},slicePlotItem:function(a,m){var c=this.jsVars.hcObj,d,n,b,r;return c&&c.datasets&&(d=c.datasets[0])&&(n=d.data)&&(r=n.length)&&n[a=d.reversePlotOrder?a:r-a-1]&&(b=n[a].plot)&&((!!m!==b.sliced||void 0===m)&&c.plotGraphicClick.call(b)||b.sliced)},centerLabel:function(a,m){var c=this.jsVars.hcObj,d=c.options,
n=d.series[0],d=d.plotOptions.pie.innerSize,b=c.canvasLeft+.5*c.canvasWidth,r=c.canvasTop+.5*c.canvasHeight,ca=n.centerLabelConfig,e;if("object"!==typeof m)m=ca;else for(e in ca)void 0===m[e]&&(m[e]=ca[e]);m.label=a;n.centerLabelConfig=m;d&&c.drawDoughnutCenterLabel(a||"",b,r,d,d,m,!0)},startingAngle:function(a,m){var c=this.jsVars.hcObj,d=c.datasets[0].plot,n="pie"===c.options.chart.defaultSeriesType,b,r=(b=c.datasets[0].startAngle)*(n?-L:1)+(0>(n?-1:1)*b?360:0);if(!isNaN(a)){if(d.singletonCase||
d.isRotating)return;a+=m?r:0;n?((n=c.options.series[0]).startAngle=-a*M,c.rotate(d,n)):c.rotate(a);r=a}return p(100*((r%=360)+(0>r?360:0)))/100}}},x);l.pie2d.eiMethods.togglePieSlice=l.pie2d.eiMethods.sliceDataItem=l.pie2d.eiMethods.slicePlotItem;l.pie2d.eiMethods.enableSlicingMovement=l.pie2d.eiMethods.enablelink=function(){ja.raiseWarning(this,"1301081430","run","JSRenderer~enablelink()","Method deprecated.")};l("pie3d",{friendlyName:"3D Pie Chart",defaultSeriesType:"pie3d",rendererId:"pie3d",creditLabel:!1,
fireGroupEvent:!0,getPointColor:function(a){return a},defaultPlotShadow:0},l.pie2d);l("doughnut2d",{friendlyName:"Doughnut Chart",getPointColor:function(a,m,c){var d;a=ka(a);m=Ea(m);100>c&&aa?(d=ha(a,G(100*(85-.2*(100-c)))/100),a=ea(a,G(100*(100-.5*c))/100),m={FCcolor:{color:d+","+a+","+a+","+d,alpha:m+","+m+","+m+","+m,radialGradient:!0,gradientUnits:"userSpaceOnUse",r:c}}):m={FCcolor:{color:a+","+a,alpha:m+","+m,ratio:"0,100"}};return m}},l.pie2d);l("doughnut3d",{friendlyName:"3D Doughnut Chart",
defaultSeriesType:"pie3d",rendererId:"pie3d",fireGroupEvent:!0,getPointColor:l.pie3d,defaultPlotShadow:0},l.doughnut2d);l("pareto2d",{standaloneInit:!0,friendlyName:"Pareto Chart",point:function(a,m,c,d,n){a=c.length;var b=0,r=0,e={},h=this.colorManager,q=/3d$/.test(n.chart.defaultSeriesType),J=this.isBar,k=g(360-d.plotfillangle,90),F=g(d.showplotborder,q?ra:Ca)===Ca?q?1:f(d.plotborderthickness,1):0,P=n.chart.useRoundEdges,l=g(d.tooltipsepchar,", "),z=g(d.plotbordercolor,h.getColor("plotBorderColor")).split(X)[0],
u=d.showplotborder==ra?ra:g(d.plotborderalpha,d.plotfillalpha,ya),A=n.xAxis,w=f(d.showcumulativeline,1),fa=n[sa],B=fa.axisGridManager,p=fa.x,y=d.showtooltip!=ra,N=[],C=f(d.use3dlighting,1),I=n[sa].numberFormatter,O=f(d.showlinevalues,d.showvalues),t=f(d.plotborderdashed,0),Da,K=f(d.plotborderdashlen,5),U=f(d.plotborderdashgap,4),W=oa(d.xaxisname),V=oa(d.yaxisname),D=fa.numberFormatter,Q=m,v,R,Z,s,$,G,H,L,la,x,M,S,E,qa,ba,T,ha,ga,ma,pa,ea,da,ia,aa,u=q?d.showplotborder?u:ra:u,z=q?g(d.plotbordercolor,
"#FFFFFF"):z;Z=f(d.useplotgradientcolor,1)?Sa(d.plotgradientcolor,h.getColor("plotGradientColor")):Y;for(ba=R=0;R<a;R+=1)pa=c[R],c[R].vline?B.addVline(A,pa,ba,n):(v=I.getCleanValue(pa.value,!0),null!==v&&(r+=pa.value=v,N.push(pa),ba+=1));a=N.length;N.sort(function(a,c){return c.value-a.value});w&&0<r?(x=f(d.linedashed,0),ea=ka(g(d.linecolor,h.getColor("plotBorderColor"))),e=g(d.linealpha,100),M=f(d.linedashlen,5),s=f(d.linedashgap,4),R=f(d.linethickness,2),E={opacity:e/100},ma=g(d.valueposition,"auto"),
qa=f(d.drawanchors,d.showanchors),void 0===qa&&(qa=e!=ra),ha=f(d.anchorborderthickness,1),ga=f(d.anchorsides,0),Da=f(d.anchorradius,3),T=ka(g(d.anchorbordercolor,ea)),v=ka(g(d.anchorbgcolor,h.getColor("anchorBgColor"))),ba=Ea(g(d.anchoralpha,ya)),c=Ea(g(d.anchorbgalpha,ba))*ba/100,x=x?za(M,s,R):void 0,s=Boolean(f(pa.anchorshadow,d.anchorshadow,0)),M=this.pointHoverOptions(pa,m,{plotType:"anchor",anchorBgColor:v,anchorAlpha:ba,anchorBgAlpha:c,anchorAngle:g(d.anchorstartangle,90),anchorBorderThickness:ha,
anchorBorderColor:T,anchorBorderAlpha:ba,anchorSides:ga,anchorRadius:Da,shadow:S}),e={yAxis:1,data:[],type:"line",color:{FCcolor:{color:ea,alpha:e}},lineWidth:R,marker:{enabled:qa,shadow:s&&1<=Da?{opacity:ba/100}:!1,fillColor:{FCcolor:{color:v,alpha:c}},lineColor:{FCcolor:{color:T,alpha:ba}},lineWidth:ha,radius:Da,symbol:Fa(ga),startAngle:g(d.anchorstartangle,90)}},Q=[Q,e],fa[1]||(fa[1]={}),fa[1].stacking100Percent=!0):("1"!==d.showsecondarylimits&&(d.showsecondarylimits="0"),"1"!==d.showdivlinesecondaryvalue&&
(d.showdivlinesecondaryvalue="0"));fa[1]||(fa[1]={});fa[1].stacking100Percent=!0;for(R=0;R<a;R+=1)pa=N[R],S=f(pa.showlabel,d.showlabels,1),c=oa(S?Ha(pa.label,pa.name):Y),H=g(pa.color,h.getPlotColor()),B.addXaxisCat(A,R,R,c,pa,{},d,H),b+=v=pa.value,s=f(pa.dashed,t),$=g(pa.dashgap,U),G=g(pa.dashlen,K),L=g(pa.alpha,d.plotfillalpha,ya),la=g(pa.ratio,d.plotfillratio),S={opacity:L/100},da=g(pa.alpha,u)+Y,ea=Ga(H+X+Z.replace(/,+?$/,""),L,la,k,P,z+Y,da+Y,J,q),Da=s?za(G,$,F):"none",ba=b/r*100,ha=I.percentValue(ba),
T=null===v?v:D.dataLabels(v),ga=va(oa(pa.displayvalue)),ga=f(pa.showvalue,fa.showValues)?void 0!==ga?ga:T:Y,fa.showTooltip?void 0!==(qa=va(oa(g(pa.tooltext,fa.tooltext))))?(ia={formattedValue:T,label:c,yaxisName:V,xaxisName:W,cumulativeValue:b,cumulativeDataValue:D.dataLabels(b),cumulativePercentValue:ha,sum:D.dataLabels(r),unformattedSum:r},aa=[1,2,3,5,6,7,20,21,22,23,24,25],qa=Ba(qa,aa,ia,pa,d)):qa=null===T?!1:c!==Y?c+fa.tooltipSepChar+T:T:qa=Y,$=this.pointHoverOptions(pa,m,{plotType:"column",is3d:q,
isBar:J,use3DLighting:C,isRoundEdged:P,color:H,gradientColor:Z,alpha:L,ratio:la,angle:k,borderWidth:F,borderColor:z,borderAlpha:da,borderDashed:s,borderDashGap:$,borderDashLen:G,shadow:S}),s=g(pa.link),m.data.push({link:s,toolText:qa,displayValue:ga,categoryLabel:c,y:v,shadow:S,color:ea[0],borderColor:ea[1],borderWidth:F,use3DLighting:C,dashStyle:Da,tooltipConstraint:this.tooltipConstraint,hoverEffects:$.enabled&&$.options,rolloverProperties:$.enabled&&$.rolloverOptions}),this.pointValueWatcher(n,
v),w&&(v=va(oa(g(pa.cumulativeplottooltext,d.cumulativeplottooltext))),S=1==O?ha:0===O||ga===Y?Y:ha,qa=y?void 0!==v?Ba(v,aa||[1,2,3,5,6,7,20,21,22,23,24,25],ia||{formattedValue:T,label:c,yaxisName:V,xaxisName:W,cumulativeValue:b,cumulativeDataValue:D.dataLabels(b),cumulativePercentValue:ha,sum:D.dataLabels(r),unformattedSum:r},pa,d):(c!==Y?c+l:Y)+ha:Y,e.data.push({shadow:E,color:e.color,marker:e.marker,y:ba,toolText:qa,displayValue:S,valuePosition:ma,categoryLabel:c,link:s,dashStyle:x,hoverEffects:M.enabled&&
M.options,rolloverProperties:M.enabled&&M.rolloverOptions}));p.catCount=a;return Q},defaultSeriesType:"column",isDual:!0,creditLabel:!1,rendererId:"cartesian"},x);l("pareto3d",{friendlyName:"3D Pareto Chart",defaultSeriesType:"column3d",fireGroupEvent:!0,defaultPlotShadow:1,is3D:!0},l.pareto2d);l("mscolumn2d",{standaloneInit:!0,friendlyName:"Multi-series Column Chart",creditLabel:!1,rendererId:"cartesian"},l.mscolumn2dbase);l("mscolumn3d",{defaultSeriesType:"column3d",friendlyName:"Multi-series 3D Column Chart",
defaultPlotShadow:1,fireGroupEvent:!0,is3D:!0,defaultZeroPlaneHighlighted:!1},l.mscolumn2d);l("msbar2d",{friendlyName:"Multi-series Bar Chart",isBar:!0,defaultSeriesType:"bar",spaceManager:l.barbase},l.mscolumn2d);l("msbar3d",{defaultSeriesType:"bar3d",friendlyName:"Multi-series 3D Bar Chart",fireGroupEvent:!0,defaultPlotShadow:1,is3D:!0,defaultZeroPlaneHighlighted:!1},l.msbar2d);l("msline",{standaloneInit:!0,friendlyName:"Multi-series Line Chart",creditLabel:!1,rendererId:"cartesian"},l.mslinebase);
l("msarea",{standaloneInit:!0,friendlyName:"Multi-series Area Chart",creditLabel:!1,rendererId:"cartesian"},l.msareabase);l("stackedcolumn2d",{friendlyName:"Stacked Column Chart",isStacked:!0},l.mscolumn2d);l("stackedcolumn3d",{friendlyName:"3D Stacked Column Chart",isStacked:!0},l.mscolumn3d);l("stackedbar2d",{friendlyName:"Stacked Bar Chart",isStacked:!0},l.msbar2d);l("stackedbar3d",{friendlyName:"3D Stacked Bar Chart",isStacked:!0},l.msbar3d);l("stackedarea2d",{friendlyName:"Stacked Area Chart",
isStacked:!0,areaAlpha:100,showSum:0},l.msarea);l("marimekko",{friendlyName:"Marimekko Chart",isValueAbs:!0,distributedColumns:!0,isStacked:!0,xAxisMinMaxSetter:Ma,postSeriesAddition:function(a,m){var c=a[sa],d=0,b=a.xAxis,e=100/c.marimekkoTotal,r=[],ca=a.series,h=0,q=ta({},a.plotOptions.series.dataLabels.style),J=parseInt(q.fontSize,10),k=f(m.chart.plotborderthickness,1),F=a.chart.rotateValues,P=f(m.chart.rotatexaxispercentvalues,0),l=-.5*k-(k%2+(P?1:0)+!a.chart.plotBorderWidth),z=P?J/2*1.2:0,u=
F?270:0,A=c[0],w=A.stacking100Percent,fa=!w,B=c.inCanvasStyle,g=this.numberFormatter,y=m.categories&&m.categories[0]&&m.categories[0].category||[],N=0,C=[],I,O,s,t,K,U,W,V,H,Q,k=[];c.isXYPlot=!0;c.distributedColumns=!0;b.min=0;b.max=100;b.labels.enabled=!1;b.gridLineWidth=0;b.alternateGridColor=Qa;I=A.stack;m.chart.interactivelegend="0";A=0;for(O=a.xAxis.plotLines.length;A<O;A+=1)s=b.plotLines[A],s.isGrid&&(s.isCat=!0,r[s.value]=s,s._hideLabel=!0);for(A=O=0;A<y.length;A+=1)y[A].vline||(N+=C[O]=g.getCleanValue(y[A].widthpercent||
0),O+=1);s=I.floatedcolumn&&I.floatedcolumn[0]||[];if(100===N&&(s&&s.length)!==O)for(;O--;)s[O]||(s[O]={p:null});N=p(N);if(s)for(K=0,O=s.length;K<O;){Q=s[K];d+=t=Q&&Q.p||0;W=100===N?C[K]:t*e;U=h+W/2;V=h+W;k.push(V);for(A=0;A<ca.length;A+=1)if(a.series[A].visible=!0,y=a.series[A].data[K],y._FCX=h,y._FCW=W,H=g.percentValue(y.y/t*100),y.toolText=Ba(y.toolText,[14,24,25,111,112],{xAxisPercentValue:g.percentValue(W),percentValue:H,sum:g.dataLabels(t),unformattedSum:t}),w){if(y.y||0===y.y)I=y.y/t*100,y.y=
I,y.showPercentValues&&(y.displayValue=H);if(y.previousY||0===y.previousY)y.previousY=y.previousY/t*100}c.showStackTotal&&a.xAxis.plotLines.push({value:U,width:0,isVline:fa,isTrend:!fa,_isStackSum:1,zIndex:4,label:{align:Ua,textAlign:Ua,rotation:u,style:q,verticalAlign:$a,offsetScale:fa?0>t?Q.n:Q.p:void 0,offsetScaleIndex:0,y:0>t?270===F?4:J:-4,x:0,text:g.yAxis(La(t,10))}});r[K]&&(r[K].value=U,r[K]._weight=W,r[K]._hideLabel=!1);K+=1;c.showXAxisPercentValues&&K<O&&a.xAxis.plotLines.push({value:V,width:0,
isVine:!0,label:{align:Ua,textAlign:P?bb:Ua,rotation:P?270:0,backgroundColor:"#ffffff",backgroundOpacity:1,borderWidth:"1px",borderType:"solid",borderColor:B.color,style:{color:B.color,fontSize:B.fontSize,fontFamily:B.fontFamily,lineHeight:B.lineHeight},verticalAlign:Ya,y:l,x:z,text:this.numberFormatter.percentValue(V)},zIndex:5});h=V}K=0;for(O=r.length;K<O;K+=1)r[K]&&r[K]._hideLabel&&(r[K].value=null);A=0;for(O=a.xAxis.plotLines.length;A<O;A+=1)if(s=b.plotLines[A],s.isVline&&!s._isStackSum&&(c=s.value))c-=
.5,d=k[G(c)],e=k[D(c)],s.value=d+(e-d)*(c-G(c))},defaultSeriesType:"floatedcolumn"},l.stackedcolumn2d);l("msstackedcolumn2d",{friendlyName:"Multi-series Stacked Column Chart",series:function(a,m,c){var d,b,e,r,ca=m[sa],h=0,q,J;q=[];var k;m.legend.enabled=Boolean(f(a.chart.showlegend,1));if(a.dataset&&0<a.dataset.length){this.categoryAdder(a,m);d=0;for(b=a.dataset.length;d<b;d+=1)if(k=a.dataset[d].dataset)for(e=0,r=k.length;e<r;e+=1,h+=1)q={hoverEffects:this.parseSeriesHoverOptions(a,m,k[e],c),visible:!f(k[e].initiallyhidden,
0),data:[],numColumns:b,columnPosition:d},J=Math.min(ca.oriCatTmp.length,k[e].data&&k[e].data.length),q=this.point(c,q,k[e],a.chart,m,J,h,d),m.series.push(q);if(this.isDual&&a.lineset&&0<a.lineset.length)for(e=0,r=a.lineset.length;e<r;e+=1,h+=1)d=a.lineset[e],q={hoverEffects:this.parseSeriesHoverOptions(a,m,d,c),visible:!f(d.initiallyhidden,0),data:[],yAxis:1,type:"line"},J=Math.min(ca.oriCatTmp.length,d.data&&d.data.length),m.series.push(l.msline.point.call(this,"msline",q,d,a.chart,m,J,h));this.configureAxis(m,
a);a.trendlines&&Va(a.trendlines,m.yAxis,m[sa],this.isDual,this.isBar)}},postSpaceManager:function(a,m,c){var d=a[sa],b,e,r;l.base.postSpaceManager.call(this);if(this.isStacked&&d.showStackTotal&&(b=a.chart,a=(m=a.xAxis)&&m.plotLines,b=c-b.marginLeft-b.marginRight,c=d.plotSpacePercent,d=d[0].stack,d=d.column&&d.column.length,e=(1-2*c)/d,m=b/(m.max-m.min),50<m*e&&.1==c))for(m=50/m,c=a&&a.length,d=-((d-1)/2)*m,r=0;r<c;r+=1)e=a[r],e._isStackSum&&(b=e._catPosition+(d+m*e._stackIndex),e.value=b)}},l.stackedcolumn2d);
l("mscombi2d",{friendlyName:"Multi-series Combination Chart",standaloneInit:!0,creditLabel:!1,rendererId:"cartesian"},l.mscombibase);l("mscombi3d",{friendlyName:"Multi-series 3D Combination Chart",series:l.mscombi2d.series,eiMethods:function(a){var m={};xa(a.split(","),function(a){m[a]=function(){ja.raiseWarning(this,"1301081430","run","JSRenderer~"+a+"()","Method not applicable.")}});return m}("view2D,view3D,resetView,rotateView,getViewAngles,fitToStage")},l.mscolumn3d);l("mscolumnline3d",{friendlyName:"Multi-series Column and Line Chart"},
l.mscombi3d);l("stackedcolumn2dline",{friendlyName:"Stacked Column and Line Chart",isStacked:!0,stack100percent:0},l.mscombi2d);l("stackedcolumn3dline",{friendlyName:"Stacked 3D Column and Line Chart",isStacked:!0,stack100percent:0},l.mscombi3d);l("mscombidy2d",{friendlyName:"Multi-series Dual Y-Axis Combination Chart",isDual:!0,secondarySeriesType:void 0},l.mscombi2d);l("mscolumn3dlinedy",{friendlyName:"Multi-series 3D Column and Line Chart",isDual:!0,secondarySeriesType:"line"},l.mscolumnline3d);
l("stackedcolumn3dlinedy",{friendlyName:"Stacked 3D Column and Line Chart",isDual:!0,secondarySeriesType:"line"},l.stackedcolumn3dline);l("msstackedcolumn2dlinedy",{friendlyName:"Multi-series Dual Y-Axis Stacked Column and Line Chart",isDual:!0,stack100percent:0,secondarySeriesType:"line"},l.msstackedcolumn2d);l("scrollcolumn2d",{friendlyName:"Scrollable Multi-series Column Chart",postSeriesAddition:l.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:40},
l.mscolumn2d);l("scrollline2d",{friendlyName:"Scrollable Multi-series Line Chart",postSeriesAddition:l.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:75},l.msline);l("scrollarea2d",{friendlyName:"Scrollable Multi-series Area Chart",postSeriesAddition:l.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:75},l.msarea);l("scrollstackedcolumn2d",{friendlyName:"Scrollable Stacked Column Chart",postSeriesAddition:function(a,
m,c,d){l.base.postSeriesAddition.call(this,a,m,c,d);l.scrollbase.postSeriesAddition.call(this,a,m,c,d)},canvasborderthickness:1,tooltipConstraint:"plot",avgScrollPointWidth:75},l.stackedcolumn2d);l("scrollcombi2d",{friendlyName:"Scrollable Combination Chart",postSeriesAddition:l.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:40},l.mscombi2d);l("scrollcombidy2d",{friendlyName:"Scrollable Dual Y-Axis Combination Chart",postSeriesAddition:l.scrollbase.postSeriesAddition,
tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:40},l.mscombidy2d);l("scatter",{friendlyName:"Scatter Chart",isXY:!0,standaloneInit:!0,defaultSeriesType:"scatter",defaultZeroPlaneHighlighted:!1,creditLabel:!1},l.scatterbase);l("bubble",{friendlyName:"Bubble Chart",standaloneInit:!0,standaloneInut:!0,defaultSeriesType:"bubble",rendererId:"bubble",point:function(a,m,c,d,b){a=f(d.ignoreemptydatasets,0);var e=!1,r=this.colorManager,ca,h,q,J,k,F,P,l,z,u,A,w,fa,B,y,s,N=f(c.showvalues,
b[sa].showValues);ca=f(d.bubblescale,1);var C=g(d.negativecolor,"FF0000"),I=b.plotOptions.bubble,O=this.numberFormatter,p=m._showRegression=f(c.showregressionline,d.showregressionline,0),t,K,U,W;m.name=va(c.seriesname);q=Boolean(f(c.drawanchors,c.showanchors,d.drawanchors,1));l=g(c.plotfillalpha,c.bubblefillalpha,d.plotfillalpha,ya);z=f(c.showplotborder,d.showplotborder,1);u=ka(g(c.plotbordercolor,d.plotbordercolor,"666666"));A=g(c.plotborderthickness,d.plotborderthickness,1);w=g(c.plotborderalpha,
d.plotborderalpha,"95");z=1===z?A:0;r=g(c.color,c.plotfillcolor,d.plotfillcolor,r.getPlotColor());m.marker={enabled:q,fillColor:this.getPointColor(r,ya),lineColor:ma(u,z?w:0),lineWidth:z,symbol:"circle"};if(A=c.data){s=A.length;I.bubbleScale=ca;if(0===f(c.includeinlegend)||void 0===m.name)m.showInLegend=!1;p&&(m.events={hide:this.hideRLine,show:this.showRLine},t={sumX:0,sumY:0,sumXY:0,sumXsqure:0,sumYsqure:0,xValues:[],yValues:[]},K=f(c.showyonx,d.showyonx,1),U=ka(g(c.regressionlinecolor,d.regressionlinecolor,
r)),W=f(c.regressionlinethickness,d.regressionlinethickness,1),ca=Ea(f(c.regressionlinealpha,d.regressionlinealpha,100)),U=ma(U,ca));for(h=0;h<s;h+=1)(J=A[h])?(ca=O.getCleanValue(J.y),fa=O.getCleanValue(J.x),B=O.getCleanValue(J.z,!0),null===ca?m.data.push({y:null,x:fa}):(e=!0,P=0!==f(d.use3dlighting,J.is3d,c.is3d,d.is3d),k=ka(g(J.color,0>J.z?C:r)),F=g(J.alpha,l),y=this.getPointStub(J,ca,fa,b,c,N),k=P?this.getPointColor(k,F):{FCcolor:{color:k,alpha:F}},null!==B&&(I.zMax=I.zMax>B?I.zMax:B,I.zMin=I.zMin<
B?I.zMin:B),J=this.pointHoverOptions(J,m,{plotType:"bubble",is3d:P,seriesAnchorSymbol:"circle",color:k,negativeColor:C,alpha:F,borderWidth:z,borderColor:u,borderAlpha:w,shadow:!1}),m.data.push({y:ca,x:fa,z:B,displayValue:y.displayValue,toolText:y.toolText,link:y.link,hoverEffects:J.enabled&&J.options,rolloverProperties:J.enabled&&J.rolloverOptions,marker:{enabled:q,fillColor:k,lineColor:{FCcolor:{color:u,alpha:w}},lineWidth:z,symbol:"circle"}}),this.pointValueWatcher(b,ca,fa,p&&t))):m.data.push({y:null});
p&&(c={type:"line",color:U,showInLegend:!1,lineWidth:W,enableMouseTracking:!1,marker:{enabled:!1},data:this.getRegressionLineSeries(t,K,s),zIndex:0},m=[m,c])}a&&!e&&(m.showInLegend=!1);return m},getPointStub:function(a,m,c,d,b,e){var r=this.dataObj.chart;d=d[sa];m=null===m?m:d.numberFormatter.dataLabels(m);var ca,h=d.tooltipSepChar,q=va(oa(g(a.tooltext,b.plottooltext,d.tooltext)));d.showTooltip?void 0!==q?b=Ba(q,[4,5,6,7,8,9,10,11,12,13,118],{yDataValue:m,xDataValue:d.numberFormatter.xAxis(c),yaxisName:oa(r.yaxisname),
xaxisName:oa(r.xaxisname),zDataValue:d.numberFormatter.dataLabels(a.z)},a,r,b):null===m?b=!1:(d.seriesNameInToolTip&&(ca=g(b&&b.seriesname)),b=ca?ca+h:Y,b+=c?d.numberFormatter.xAxis(c)+h:Y,b=b+m+(a.z?h+d.numberFormatter.dataLabels(a.z):Y)):b=Y;c=f(a.showvalue,e,d.showValues)?void 0!==g(a.displayvalue,a.name,a.label)?oa(g(a.displayvalue,a.name,a.label)):m:Y;a=va(a.link);return{displayValue:c,toolText:b,link:a}}},l.scatter);l("ssgrid",{friendlyName:"Grid Component",standaloneInit:!0,defaultSeriesType:"ssgrid",
rendererId:"ssgrid",chart:function(a,b){var c=this.containerElement,d=ta({},this.dataObj),n=d.chart||(d.chart=d.graph||{}),e=this.chartInstance,r=0,ca=[],h=d.data,q=h&&h.length,J=this.smartLabel,k=this.numberFormatter,F=c.offsetHeight,P=c.offsetWidth,u=this.colorManager,z,w,A,y,fa,B,s,p,N,C,I,O,t,D,K,U,W,V,H,Q,v,R,Z,G,$,S=0;w=0;var c={_FCconf:{0:{stack:{}},1:{stack:{}},x:{stack:{}},noWrap:!1,marginLeftExtraSpace:0,marginRightExtraSpace:0,marginBottomExtraSpace:0,marginTopExtraSpace:0,marimekkoTotal:0},
chart:{ignoreHiddenSeries:!1,events:{},spacingTop:0,spacingRight:0,spacingBottom:0,spacingLeft:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,borderRadius:0,borderColor:"#000000",borderWidth:1,defaultSeriesType:"ssgrid",textDirection:"1"===n.hasrtltext?"rtl":"",style:{fontFamily:g(n.basefont,"Verdana,sans"),fontSize:Ta(n.basefontsize,20)+Ra,color:g(n.basefontcolor,u.getColor("baseFontColor")).replace(/^#?([a-f0-9]+)/ig,"#$1")},plotBackgroundColor:Qa},labels:{smartLabel:J},colors:"AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" "),
credits:{href:E.CREDIT_HREF,text:E.CREDIT_STRING,enabled:!1},legend:{enabled:!1},series:[],subtitle:{text:Y},title:{text:Y},tooltip:{enabled:!1},exporting:{buttons:{exportButton:{},printButton:{enabled:!1}}}},M=c[sa],L=z=w=S=0,x=r=D=0;$=e.jsVars.cfgStore;e=c.chart;fa=e.toolbar={button:{}};B=fa.button;delete d.graph;ga(c.chart.style);e.events.click=this.linkClickFN;B.scale=f(n.toolbarbuttonscale,1.15);B.width=f(n.toolbarbuttonwidth,15);B.height=f(n.toolbarbuttonheight,15);B.radius=f(n.toolbarbuttonradius,
2);B.spacing=f(n.toolbarbuttonspacing,5);B.fill=ma(g(n.toolbarbuttoncolor,"ffffff"));B.labelFill=ma(g(n.toolbarlabelcolor,"cccccc"));B.symbolFill=ma(g(n.toolbarsymbolcolor,"ffffff"));B.hoverFill=ma(g(n.toolbarbuttonhovercolor,"ffffff"));B.stroke=ma(g(n.toolbarbuttonbordercolor,"bbbbbb"));B.symbolStroke=ma(g(n.toolbarsymbolbordercolor,"9a9a9a"));B.strokeWidth=f(n.toolbarbuttonborderthickness,1);B.symbolStrokeWidth=f(n.toolbarsymbolborderthickness,1);d=B.symbolPadding=f(n.toolbarsymbolpadding,5);B.symbolHPadding=
f(n.toolbarsymbolhpadding,d);B.symbolVPadding=f(n.toolbarsymbolvpadding,d);B=fa.position=g(n.toolbarposition,"tr").toLowerCase();switch(B){case "tr":case "tl":case "br":case "bl":break;default:B="tr"}d=fa.hAlign="left"===(Y+n.toolbarhalign).toLowerCase()?"l":B.charAt(1);B=fa.vAlign="bottom"===(Y+n.toolbarvalign).toLowerCase()?"b":B.charAt(0);fa.hDirection=f(n.toolbarhdirection,"r"===d?-1:1);fa.vDirection=f(n.toolbarvdirection,"b"===B?-1:1);fa.vMargin=f(n.toolbarvmargin,6);fa.hMargin=f(n.toolbarhmargin,
10);fa.x=f(n.toolbarx,"l"===d?0:a);fa.y=f(n.toolbary,"t"===B?0:b);void 0!==g(n.clickurl)&&(e.link=n.clickurl,e.style.cursor="pointer");z=f($.showpercentvalues,n.showpercentvalues,0);w=g($.numberitemsperpage,n.numberitemsperpage);f($.showshadow,n.showshadow,0);r=g($.basefont,n.basefont,"Verdana,sans");A=Ta($.basefontsize,n.basefontsize,10);A+=Ra;y=ka(g($.basefontcolor,n.basefontcolor,u.getColor("baseFontColor")));d=ka(g($.alternaterowbgcolor,n.alternaterowbgcolor,u.getColor("altHGridColor")));fa=g($.alternaterowbgalpha,
n.alternaterowbgalpha,u.getColor("altHGridAlpha"))+Y;B=f($.listrowdividerthickness,n.listrowdividerthickness,1);s=ka(g($.listrowdividercolor,n.listrowdividercolor,u.getColor("borderColor")));p=f($.listrowdivideralpha,n.listrowdivideralpha,u.getColor("altHGridAlpha"))+15+Y;N=f($.colorboxwidth,n.colorboxwidth,8);C=f($.colorboxheight,n.colorboxheight,8);I=f($.navbuttonradius,n.navbuttonradius,7);O=ka(g($.navbuttoncolor,n.navbuttoncolor,u.getColor("canvasBorderColor")));t=ka(g($.navbuttonhovercolor,n.navbuttonhovercolor,
u.getColor("altHGridColor")));D=f($.textverticalpadding,n.textverticalpadding,3);K=f($.navbuttonpadding,n.navbuttonpadding,5);U=f($.colorboxpadding,n.colorboxpadding,10);W=f($.valuecolumnpadding,n.valuecolumnpadding,10);V=f($.namecolumnpadding,n.namecolumnpadding,5);H=f($.borderthickness,n.borderthickness,1);Q=ka(g($.bordercolor,n.bordercolor,u.getColor("borderColor")));v=g($.borderalpha,n.borderalpha,u.getColor("borderAlpha"))+Y;R=g($.bgcolor,n.bgcolor,"FFFFFF");Z=g($.bgalpha,n.bgalpha,ya);G=g($.bgratio,
n.bgratio,ya);$=g($.bgangle,n.bgangle,ra);e.borderRadius=H/16;e.borderWidth=H;e.borderColor=T({FCcolor:{color:Q,alpha:v}});e.backgroundColor={FCcolor:{color:R,alpha:Z,ratio:G,angle:$}};e.borderRadius=f(n.borderradius,0);$={fontFamily:r,fontSize:A,color:y};ga($);J.setStyle($);for(r=0;r<q;r+=1)if(A=h[r],H=k.getCleanValue(A.value),Q=oa(Ha(A.label,A.name)),y=ka(g(A.color,u.getPlotColor())),g(A.alpha,n.plotfillalpha,ya),Q!=Y||null!=H)ca.push({value:H,label:Q,color:y}),S+=H,x+=1;for(r=0;r<x;r+=1)A=ca[r],
H=A.value,A.dataLabel=A.label,A.displayValue=z?k.percentValue(H/S*100):k.dataLabels(H),h=J.getOriSize(A.displayValue),L=Math.max(L,h.width+W);w?w>=x?(z=F/x,w=x):(k=F-2*(K+I),z=k/w):(S=parseInt($.lineHeight,10),S=Math.max(S+2*D,C),w=F/S,w>=x?(z=F/x,w=x):(k=F-2*(K+I),w=Math.floor(k/S),z=k/w));D=P-U-N-V-L-W;r=U+N+V;k=g(n.basefont,"Verdana,sans");L=Ta(n.basefontsize,10);u=g(n.basefontcolor,u.getColor("baseFontColor"));h=g(n.outcnvbasefont,k);A=Ta(n.outcnvbasefontsize,L);q=A+Ra;n=g(n.outcnvbasefontcolor,
u).replace(/^#?([a-f0-9]+)/ig,"#$1");L+=Ra;u=u.replace(/^#?([a-f0-9]+)/ig,"#$1");M.trendStyle=M.outCanvasStyle={fontFamily:h,color:n,fontSize:q};ga(M.trendStyle);M.inCanvasStyle={fontFamily:k,fontSize:L,color:u};c.tooltip.style={fontFamily:k,fontSize:L,lineHeight:void 0,color:u};c.tooltip.shadow=!1;e.height=F;e.width=P;e.rowHeight=z;e.labelX=r;e.colorBoxWidth=N;e.colorBoxHeight=C;e.colorBoxX=U;e.valueX=U+N+V+D+W;e.valueColumnPadding=W;e.textStyle=$;e.listRowDividerAttr={"stroke-width":B,stroke:{FCcolor:{color:s,
alpha:p}}};e.alternateRowColor={FCcolor:{color:d,alpha:fa}};e.navButtonRadius=I;e.navButtonPadding=K;e.navButtonColor=O;e.navButtonHoverColor=t;e.lineHeight=parseInt($.lineHeight,10);F=[];n=0;M=!0;for(r=0;r<x&0!==w;r+=1)0===r%w&&(F.push({data:[],visible:M}),M=!1,n+=1),A=ca[r],P=J.getSmartText(A.dataLabel,D,z),F[n-1].data.push({label:P.text,originalText:P.tooltext,displayValue:A.displayValue,y:A.value,color:A.color});c.series=F;l.base.parseExportOptions.call(this,c);c.tooltip.enabled=!!c.exporting.enabled;
return c},creditLabel:!1},l.base);l("renderer.bubble",{drawPlotBubble:function(a,m){var c=this,d=c.options,n=d.chart,h=d.plotOptions.series,r=h.dataLabels&&h.dataLabels.style||{},ca={fontFamily:r.fontFamily,fontSize:r.fontSize,lineHeight:r.lineHeight,fontWeight:r.fontWeight,fontStyle:r.fontStyle},r=c.paper,P=c.elements,q=a.items,J=a.graphics=a.graphics||[],k=c.xAxis[m.xAxis||0],F=c.yAxis[m.yAxis||0],u=a.data,w=!1!==(d.tooltip||{}).enabled,z,l,h=isNaN(+h.animation)&&h.animation.duration||1E3*h.animation,
A=!1===m.visible?"hidden":"visible",d=d.plotOptions.bubble,y=d.zMax,d=d.bubbleScale,fa=s(c.canvasHeight,c.canvasWidth)/8,y=H(y),B,g,t,N,C,I,O,D,S,K,U;B=c.layers;g=B.dataset=B.dataset||r.group("dataset-orphan");var W=B.tracker,V,x,Q=function(a){ua.call(this,c,a)},v=function(a,d,b){return function(m){a.attr(d);ua.call(this,c,m,b)}};c.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",ca);B.datalabels?B.datalabels.attr("class","fusioncharts-datalabels"):B.datalabels=r.group({"class":"fusioncharts-datalabels"},
"datalables").insertAfter(g);ca=g.bubble=g.bubble||r.group("bubble",g);n.clipBubbles&&!ca.attrs["clip-rect"]&&ca.attr({"clip-rect":P["clip-canvas"]});B=0;for(g=u.length;B<g;B+=1){t=u[B];K=U=x=null;S=t.marker;if(null!==t.y&&S&&S.enabled){N=t.link;n=t.toolText;C=f(t.x,B);I=t.y;P={index:B,link:N,value:I,y:I,x:C,z:t.z,displayValue:t.displayValue,toolText:t.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible};D=F.getAxisPosition(I);O=k.getAxisPosition(C);l=H(t.z);V=p(l*fa/y)*
d||0;l=z={};t.hoverEffects&&(l={fill:T(S.fillColor),"stroke-width":S.lineWidth,stroke:T(S.lineColor),r:V},z=t.rolloverProperties,z={fill:T(z.fillColor),"stroke-width":z.lineWidth,stroke:T(z.lineColor),r:V*z.scale});K=r.circle(O,D,0,ca).attr({fill:T(S.fillColor),"stroke-width":S.lineWidth,stroke:T(S.lineColor),visibility:A}).animate({r:V||0},h,"easeOut",c.getAnimationCompleteFn());if(N||w)V<b&&(V=b),U=r.circle(O,D,V,W).attr({cursor:N?"pointer":"",stroke:e,"stroke-width":S.lineWidth,fill:e,ishot:!!N,
visibility:A});(U||K).data("eventArgs",P).click(Q).hover(v(K,z,"DataPlotRollOver"),v(K,l,"DataPlotRollOut")).tooltip(n);q[B]={index:B,x:C,y:I,z:t.z,value:I,graphic:K,dataLabel:x,tracker:U};x=c.drawPlotLineLabel(a,m,B,O,D)}else q[B]={index:B,x:C,y:I};x&&J.push(x);K&&J.push(K);U&&J.push(U)}a.visible=!1!==m.visible;return a}},l["renderer.cartesian"]);l("renderer.ssgrid",{drawGraph:function(){var a=this.options.series,b=this.elements,c=b.plots,d=a.length,n;c||(c=this.plots=this.plots||[],b.plots=c);this.drawSSGridNavButton();
for(n=0;n<d;n++)(b=c[n])||c.push(b={items:[],data:a[n].data}),a[n].data&&a[n].data.length&&this.drawPlot(b,a[n]);1<d&&this.nenagitePage(0)},drawPlot:function(a){var b=a.data,c=this.paper,d=this.options.chart,n=d.colorBoxHeight,e=d.colorBoxWidth,r=d.colorBoxX,h=d.labelX,f=d.valueX,q=d.rowHeight,J=d.width,k=d.listRowDividerAttr,F=k["stroke-width"],k=T(k.stroke),P=F%2/2,u=d.textStyle,z=this.layers,z=z.dataset=z.dataset||c.group("dataset-orphan"),w=T(d.alternateRowColor);a=a.items;var A=0,l,y,B,g;b&&
b.length||(b=[]);k={stroke:k,"stroke-width":F};g=0;for(F=b.length;g<F;g+=1)B=b[g],y=B.y,l=a[g]={index:g,value:y,graphic:null,dataLabel:null,dataValue:null,alternateRow:null,listRowDivider:null,hot:null},null!==y&&void 0!==y&&(0===g%2&&(l.alternateRow=c.rect(0,A,J,q,0,z).attr({fill:w,"stroke-width":0})),y=p(A)+P,l.listRowDivider=c.path(["M",0,y,"L",J,y],z).attr(k),l.graphic=c.rect(r,A+q/2-n/2,e,n,0,z).attr({fill:B.color,"stroke-width":0,stroke:"#000000"}),y=l.dataLabel=c.text().attr({text:B.label,
title:B.originalText||"",x:h,y:A+q/2,fill:u.color,direction:d.textDirection,"text-anchor":"start"}).css(u),z.appendChild(y),l=l.dataValue=c.text().attr({text:B.displayValue,title:B.originalText||"",x:f,y:A+q/2,fill:u.color,direction:d.textDirection,"text-anchor":"start"}).css(u),z.appendChild(l),A+=q);y=p(A)+P;c.path(["M",0,y,"L",J,y],z).attr(k)},drawSSGridNavButton:function(){var a=this,b=a.paper,c=a.options,d=c.chart,n=c.series,e=d.navButtonColor,r=d.navButtonHoverColor,c=d.navButtonRadius,h=.67*
c,f=d.navButtonPadding+h+(n&&n[0].data&&n[0].data.length*d.rowHeight)+.5*c,d=d.width-20,q,J,k,F;1<n.length&&(F=a.naviigator=b.group("navigation"),a.navElePrv=n=b.group(F),q=b.path(["M",20,f,"L",20+c+h,f-h,20+c,f,20+c+h,f+h,"Z"]).attr({fill:e,"stroke-width":0,cursor:"pointer"}),n.appendChild(q),k=b.circle(20+c,f,c).attr({fill:Qa,"stroke-width":0,cursor:"pointer"}).mouseover(function(){q.attr({fill:r,cursor:"pointer"})}).mouseout(function(){q.attr({fill:e})}).click(function(){a.nenagitePage(-1)}),n.appendChild(k),
a.navEleNxt=n=b.group(F),J=b.path(["M",d,f,"L",d-c-h,f-h,d-c,f,d-c-h,f+h,"Z"]).attr({fill:e,"stroke-width":0,cursor:"pointer"}),n.appendChild(J),b=b.circle(d-c,f,c).attr({fill:Qa,"stroke-width":0,cursor:"pointer"}).mouseover(function(){J.attr({fill:r})}).mouseout(function(){J.attr({fill:e})}).click(function(){a.nenagitePage(1)}),n.appendChild(b))},nenagitePage:function(a){var b=this.plots,c=b.length;a=(this.currentSeriesIndex||0)+(a||0);var d,n=function(a){a.graphic&&a.graphic.hide();a.dataLabel&&
a.dataLabel.hide();a.dataValue&&a.dataValue.hide();a.alternateRow&&a.alternateRow.hide();a.listRowDivider&&a.listRowDivider.hide()};if(b[a]){for(d=c;d--;)xa(b[d].items,n);xa(b[a].items,function(a){a.graphic&&a.graphic.show();a.dataLabel&&a.dataLabel.show();a.dataValue&&a.dataValue.show();a.alternateRow&&a.alternateRow.show();a.listRowDivider&&a.listRowDivider.show()});this.currentSeriesIndex=a;ja.raiseEvent("pageNavigated",{pageId:a,data:this.options.series[a].data},this.logic.chartInstance);0===
a?this.navElePrv.hide():this.navElePrv.show();a===c-1?this.navEleNxt.hide():this.navEleNxt.show()}}},l["renderer.root"]);Ka.prototype={getArcPath:function(a,b,c,d,n,e,r,h,f,q){return c==n&&d==e?[]:["A",r,h,0,q,f,n,e]},parseColor:function(a,b){var c,d,n,e,r,h,f,q,J,k,F=b/2,P,u,z,l,A;A=3;this.use3DLighting?(c=ha(a,80),d=ha(a,75),h=ea(a,85),f=ea(a,70),q=ea(a,40),J=ea(a,50),ea(a,30),k=ea(a,65),ha(a,85),n=ha(a,69),e=ha(a,75),r=ha(a,95)):(A=10,c=ha(a,90),d=ha(a,87),h=ea(a,93),f=ea(a,87),q=ea(a,80),k=J=
ea(a,85),ea(a,80),r=ha(a,85),n=ha(a,75),e=ha(a,80));P=d+X+h+X+f+X+h+X+d;z=b+X+b+X+b+X+b+X+b;u=d+X+a+X+h+X+a+X+d;l=F+X+F+X+F+X+F+X+F;q=d+X+a+X+q+X+a+X+d;n=e+X+h+X+J+X+h+X+n;e="FFFFFF"+X+"FFFFFF"+X+"FFFFFF"+X+"FFFFFF"+X+"FFFFFF";A=0+X+F/A+X+b/A+X+F/A+X+0;return{frontOuter:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftX,y1:0,x2:this.rightX,y2:0,color:n,alpha:z,angle:0,ratio:"0,20,15,15,50"}},backOuter:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftX,y1:0,x2:this.rightX,y2:0,color:q,alpha:l,
angle:0,ratio:"0,62,8,8,22"}},frontInner:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftInnerX,y1:0,x2:this.rightInnerX,y2:0,color:u,alpha:l,angle:0,ratio:"0,25,5,5,65"}},backInner:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftInnerX,y1:0,x2:this.rightInnerX,y2:0,color:P,alpha:z,angle:0,ratio:"0,62,8,8,22"}},topBorder:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftX,y1:0,x2:this.rightX,y2:0,color:e,alpha:A,angle:0,ratio:"0,20,15,15,50"}},topInnerBorder:{FCcolor:{gradientUnits:"userSpaceOnUse",
x1:this.leftInnerX,y1:0,x2:this.rightInnerX,y2:0,color:e,alpha:A,angle:0,ratio:"0,50,15,15,20"}},top:aa?{FCcolor:{gradientUnits:"userSpaceOnUse",radialGradient:!0,cx:this.cx,cy:this.cy,r:this.rx,fx:this.cx-.3*this.rx,fy:this.cy+1.2*this.ry,color:k+X+r,alpha:b+X+b,ratio:"0,100"}}:{FCcolor:{gradientUnits:"objectBoundingBox",color:f+X+f+X+h+X+d,alpha:b+X+b+X+b+X+b,angle:-72,ratio:"0,8,15,77"}},bottom:T(ma(a,F)),startSlice:T(ma(c,b)),endSlice:T(ma(c,b))}},rotate:function(a){if(!this.hasOnePoint){for(var b=
this.pointElemStore,c=0,d=b.length,e;c<d;c+=1)e=b[c],e=e._confObject,e.start+=a,e.end+=a,this.updateSliceConf(e);this.refreshDrawing()}},refreshDrawing:function(){return function(){var a=this.slicingWallsArr,b=0,c,d=a.length,e,h,r,f,P=this.slicingWallsFrontGroup,q=this.slicingWallsBackGroup;a:{var J=a[0]&&a[0]._conf.index,k,F;f=J<=y;e=1;for(c=a.length;e<c;e+=1)if(F=a[e]._conf.index,k=F<=y,k!=f||F<J)break a;e=0}for(;b<d;b+=1,e+=1)e===d&&(e=0),c=a[e],f=c._conf.index,f<Wa?P.appendChild(c):f<=y?(h?c.insertBefore(h):
P.appendChild(c),h=c):f<Xa?(r?c.insertBefore(r):q.appendChild(c),r=c):q.appendChild(c)}}(),updateSliceConf:function(a,b){var c=this.getArcPath,d=a.start,e=a.end,h=da(d),r=da(e),f,P,q,J,k,F,l,g,z,t,A,s,p,B,D,H,N=this.cx,C=this.cy,I=this.rx,O=this.ry,x=I+(aa?-1:2),L=O+(aa?-1:2),K=this.innerRx,U=this.innerRy,W=this.depth,V=this.depthY,G=a.elements,Q,v,R,Z,M,$,la;f=w(h);P=u(h);q=w(r);J=u(r);k=N+I*f;F=C+O*P;l=N+x*f;g=C+L*P;Q=F+W;v=N+I*q;R=C+O*J;z=N+x*q;t=C+L*J;Z=R+W;this.isDoughnut?(A=N+K*f,s=C+U*P,D=
s+W,p=N+K*q,B=C+U*J,H=B+W,a.startSlice=["M",k,F,"L",k,Q,A,D,A,s,"Z"],a.endSlice=["M",v,R,"L",v,Z,p,H,p,B,"Z"]):(a.startSlice=["M",k,F,"L",k,Q,N,V,N,C,"Z"],a.endSlice=["M",v,R,"L",v,Z,N,V,N,C,"Z"]);aa?(c=(h>r?S:0)+r-h,a.clipTopPath=this.isDoughnut?["M",k,F,"A",I,O,0,c>y?1:0,1,v,R,"L",p,B,"A",K,U,0,c>y?1:0,0,A,s,"Z"]:["M",k,F,"A",I,O,0,c>y?1:0,1,v,R,"L",this.cx,this.cy,"Z"],a.clipOuterFrontPath1=this.clipPathforNoClip,a.clipTopBorderPath=["M",l,g,"A",x,L,0,c>y?1:0,1,z,t,"L",v,R,v,R+1,"A",I,O,0,c>y?
1:0,0,k,F+1,"L",k,F,"Z"],d!=e?h>r?h<y?(a.clipOuterFrontPath=["M",this.rightX,C,"A",I,O,0,0,1,v,R,"v",W,"A",I,O,0,0,0,this.rightX,C+W,"Z"],a.clipOuterFrontPath1=["M",this.leftX,C,"A",I,O,0,0,0,k,F,"v",W,"A",I,O,0,0,1,this.leftX,C+W,"Z"],a.clipOuterBackPath=["M",this.rightX,C,"A",I,O,0,1,0,this.leftX,C,"v",W,"A",I,O,0,1,1,this.rightX,C+W,"Z"],this.isDoughnut&&(a.clipInnerBackPath=["M",this.rightInnerX,C,"A",K,U,0,1,0,this.leftInnerX,C,"v",W,"A",K,U,0,1,1,this.rightInnerX,C+W,"Z"],a.clipInnerFrontPath=
["M",this.rightInnerX,C,"A",K,U,0,0,1,p,B,"v",W,"A",K,U,0,0,0,this.rightInnerX,C+W,"Z","M",this.leftInnerX,C,"A",K,U,0,0,0,A,s,"v",W,"A",K,U,0,0,1,this.leftInnerX,C+W,"Z"])):r>y?(a.clipOuterFrontPath=["M",this.rightX,C,"A",I,O,0,1,1,this.leftX,C,"v",W,"A",I,O,0,1,0,this.rightX,C+W,"Z"],a.clipOuterBackPath=["M",this.leftX,C,"A",I,O,0,0,1,v,R,"v",W,"A",I,O,0,0,0,this.leftX,C+W,"Z","M",this.rightX,C,"A",I,O,0,0,0,k,F,"v",W,"A",I,O,0,0,1,this.rightX,C+W,"Z"],this.isDoughnut&&(a.clipInnerFrontPath=["M",
this.rightInnerX,C,"A",K,U,0,1,1,this.leftInnerX,C,"v",W,"A",K,U,0,1,0,this.rightInnerX,C+W,"Z"],a.clipInnerBackPath=["M",this.leftInnerX,C,"A",K,U,0,0,1,p,B,"v",W,"A",K,U,0,0,0,this.leftInnerX,C+W,"Z","M",this.rightInnerX,C,"A",K,U,0,0,0,A,s,"v",W,"A",K,U,0,0,1,this.rightInnerX,C+W,"Z"])):(a.clipOuterFrontPath=["M",this.rightX,C,"A",I,O,0,0,1,v,R,"v",W,"A",I,O,0,0,0,this.rightX,C+W,"Z"],a.clipOuterBackPath=["M",k,F,"A",I,O,0,0,1,this.rightX,C,"v",W,"A",I,O,0,0,0,k,Q,"Z"],this.isDoughnut&&(a.clipInnerFrontPath=
["M",this.rightInnerX,C,"A",K,U,0,0,1,p,B,"v",W,"A",K,U,0,0,0,this.rightInnerX,C+W,"Z"],a.clipInnerBackPath=["M",A,s,"A",K,U,0,0,1,this.rightInnerX,C,"v",W,"A",K,U,0,0,0,A,D,"Z"])):h<y?r>y?(a.clipOuterFrontPath=["M",k,F,"A",I,O,0,0,1,this.leftX,C,"v",W,"A",I,O,0,0,0,k,Q,"Z"],a.clipOuterBackPath=["M",this.leftX,C,"A",I,O,0,0,1,v,R,"v",W,"A",I,O,0,0,0,this.leftX,C+W,"Z"],this.isDoughnut&&(a.clipInnerFrontPath=["M",A,s,"A",K,U,0,0,1,this.leftInnerX,C,"v",W,"A",K,U,0,0,0,A,D,"Z"],a.clipInnerBackPath=
["M",this.leftInnerX,C,"A",K,U,0,0,1,p,B,"v",W,"A",K,U,0,0,0,this.leftInnerX,C+W,"Z"])):(a.clipOuterFrontPath=["M",k,F,"A",I,O,0,0,1,v,R,"v",W,"A",I,O,0,0,0,k,Q,"Z"],a.clipOuterBackPath=this.clipPathforNoClip,this.isDoughnut&&(a.clipInnerFrontPath=["M",A,s,"A",K,U,0,0,1,p,B,"v",W,"A",K,U,0,0,0,A,D,"Z"],a.clipInnerBackPath=this.clipPathforNoClip)):(a.clipOuterFrontPath=this.clipPathforNoClip,a.clipOuterBackPath=["M",k,F,"A",I,O,0,0,1,v,R,"v",W,"A",I,O,0,0,0,k,Q,"Z"],this.isDoughnut&&(a.clipInnerFrontPath=
this.clipPathforNoClip,a.clipInnerBackPath=["M",A,s,"A",K,U,0,0,1,p,B,"v",W,"A",K,U,0,0,0,A,D,"Z"])):a.clipOuterFrontPath=a.clipOuterBackPath=a.clipInnerBackPath=a.clipInnerFrontPath=this.clipPathforNoClip,b||(a.elements.startSlice._conf.index=h,a.elements.endSlice._conf.index=r,a.elements.frontOuter._conf.index=Ja(r,h),a.elements.frontOuter1&&(a.elements.frontOuter1._conf.index=h,a.elements.frontOuter1.attr("litepath",[a.clipOuterFrontPath1])),a.thisElement.attr("litepath",[a.clipTopPath]),a.elements.bottom.attr("litepath",
[a.clipTopPath]),a.elements.bottomBorder.attr("litepath",[a.clipTopPath]),a.elements.topBorder&&a.elements.topBorder.attr("litepath",[a.clipTopBorderPath]),a.elements.frontOuter.attr("litepath",[a.clipOuterFrontPath]),a.elements.backOuter.attr("litepath",[a.clipOuterBackPath]),this.isDoughnut&&(a.elements.backInner.attr("litepath",[a.clipInnerBackPath]),a.elements.frontInner.attr("litepath",[a.clipInnerFrontPath]),a.elements.backInner._conf.index=Ja(r,h)),this.hasOnePoint?(a.elements.startSlice.hide(),
a.elements.endSlice.hide()):(a.elements.startSlice.attr("litepath",[a.startSlice]).show(),a.elements.endSlice.attr("litepath",[a.endSlice]).show()))):(l=this.moveCmdArr,g=this.lineCmdArr,z=this.closeCmdArr,M=this.centerPoint,t=this.leftPoint,x=this.topPoint,L=this.rightPoint,W=this.bottomPoint,$=this.leftDepthPoint,la=this.rightDepthPoint,f=this.leftInnerPoint,P=this.rightInnerPoint,q=this.leftInnerDepthPoint,J=this.rightInnerDepthPoint,a.clipOuterFrontPath1=[],d!=e?(h>r?h<y?(d=c(N,C,k,F,this.leftX,
C,I,O,1,0),e=c(N,C,this.leftX,C,this.rightX,C,I,O,1,0),R=c(N,C,this.rightX,C,v,R,I,O,1,0),a.clipOuterBackPath=l.concat(t,e,g,la,c(N,V,this.rightX,V,this.leftX,V,I,O,0,0),z),a.clipOuterFrontPath1=l.concat([k,F],d,g,$,c(N,V,this.leftX,V,k,Q,I,O,0,0),z),a.clipOuterFrontPath=l.concat(L,R,g,[v,Z],c(N,V,v,Z,this.rightX,V,I,O,0,0),z),a.clipTopBorderPath=l.concat([k,F],d,e,R),this.isDoughnut?(k=c(N,C,p,B,this.rightInnerX,C,K,U,0,0),F=c(N,C,this.rightInnerX,C,this.leftInnerX,C,K,U,0,0),s=c(N,C,this.leftInnerX,
C,A,s,K,U,0,0),a.clipInnerBackPath=l.concat(P,F,g,q,c(N,V,this.leftInnerX,V,this.rightInnerX,V,K,U,1,0),z),a.clipInnerFrontPath=l.concat(f,s,g,[A,D],c(N,V,A,D,this.leftInnerX,V,K,U,1,0),z,l,[p,B],k,g,J,c(N,V,this.rightInnerX,V,p,H,K,U,1,0),z),a.clipTopPath=a.clipTopBorderPath.concat(g,[p,B],k,F,s,z),a.clipTopBorderPath=a.clipTopBorderPath.concat(l,[p,B],k,F,s)):a.clipTopPath=a.clipTopBorderPath.concat(g,M,z)):r>y?(d=c(N,C,k,F,this.rightX,C,I,O,1,0),e=c(N,C,this.rightX,C,this.leftX,C,I,O,1,0),R=c(N,
C,this.leftX,C,v,R,I,O,1,0),a.clipOuterFrontPath=l.concat(L,e,g,$,c(N,V,this.leftX,V,this.rightX,V,I,O,0,0),z),a.clipOuterBackPath=l.concat([k,F],d,g,la,c(N,V,this.rightX,V,k,Q,I,O,0,0),z,l,t,R,g,[v,Z],c(N,V,v,Z,this.leftX,V,I,O,0,0),z),a.clipTopBorderPath=l.concat([k,F],d,e,R),this.isDoughnut?(k=c(N,C,p,B,this.leftInnerX,C,K,U,0,0),F=c(N,C,this.leftInnerX,C,this.rightInnerX,C,K,U,0,0),s=c(N,C,this.rightInnerX,C,A,s,K,U,0,0),a.clipInnerFrontPath=l.concat(f,F,g,J,c(N,V,this.rightInnerX,V,this.leftInnerX,
V,K,U,1,0),z),a.clipInnerBackPath=l.concat(P,s,g,[A,D],c(N,V,A,D,this.rightInnerX,V,K,U,1,0),z,l,[p,B],k,g,q,c(N,V,this.leftInnerX,V,p,H,K,U,1,0),z),a.clipTopPath=a.clipTopBorderPath.concat(g,[p,B],k,F,s,z),a.clipTopBorderPath=a.clipTopBorderPath.concat(l,[p,B],k,F,s)):a.clipTopPath=a.clipTopBorderPath.concat(g,M,z)):(d=c(N,C,k,F,this.rightX,C,I,O,1,0),e=c(N,C,this.rightX,C,v,R,I,O,1,0),a.clipOuterFrontPath=l.concat(L,e,g,[v,Z],c(N,V,v,Z,this.rightX,V,I,O,0,0),z),a.clipOuterBackPath=l.concat([k,F],
d,g,la,c(N,V,this.rightX,V,k,Q,I,O,0,0),z),a.clipTopBorderPath=l.concat([k,F],d,e),this.isDoughnut?(k=c(N,C,p,B,this.rightInnerX,C,K,U,0,0),F=c(N,C,this.rightInnerX,C,A,s,K,U,0,0),a.clipInnerFrontPath=l.concat([p,B],k,g,J,c(N,V,this.rightInnerX,V,p,H,K,U,1,0),z),a.clipInnerBackPath=l.concat(P,F,g,[A,D],c(N,V,A,D,this.rightInnerX,V,K,U,1,0),z),a.clipTopPath=a.clipTopBorderPath.concat(g,[p,B],k,F,z),a.clipTopBorderPath=a.clipTopBorderPath.concat(l,[p,B],k,F)):a.clipTopPath=a.clipTopBorderPath.concat(g,
M,z)):h<y?r>y?(d=c(N,C,k,F,this.leftX,C,I,O,1,0),e=c(N,C,this.leftX,C,v,R,I,O,1,0),a.clipOuterBackPath=l.concat(t,e,g,[v,Z],c(N,V,v,Z,this.leftX,V,I,O,0,0),z),a.clipOuterFrontPath=l.concat([k,F],d,g,$,c(N,V,this.leftX,V,k,Q,I,O,0,0),z),a.clipTopBorderPath=l.concat([k,F],d,e),this.isDoughnut?(k=c(N,C,p,B,this.leftInnerX,C,K,U,0,0),F=c(N,C,this.leftInnerX,C,A,s,K,U,0,0),a.clipInnerBackPath=l.concat([p,B],k,g,q,c(N,V,this.leftInnerX,V,p,H,K,U,1,0),z),a.clipInnerFrontPath=l.concat(f,F,g,[A,D],c(N,V,A,
D,this.leftInnerX,V,K,U,1,0),z),a.clipTopPath=a.clipTopBorderPath.concat(g,[p,B],k,F,z),a.clipTopBorderPath=a.clipTopBorderPath.concat(l,[p,B],k,F)):a.clipTopPath=a.clipTopBorderPath.concat(g,M,z)):(d=c(N,C,k,F,v,R,I,O,1,0),a.clipOuterBackPath=l.concat([k,F]),a.clipTopBorderPath=a.clipOuterBackPath.concat(d),a.clipOuterFrontPath=a.clipTopBorderPath.concat(g,[v,Z],c(N,V,v,Z,k,Q,I,O,0,0),z),this.isDoughnut?(k=c(N,C,p,B,A,s,K,U,0,0),a.clipInnerBackPath=l.concat([p,B]),a.clipTopPath=a.clipTopBorderPath.concat(g,
[p,B],k,z),a.clipTopBorderPath=a.clipTopBorderPath.concat(l,[p,B],k),a.clipInnerFrontPath=a.clipInnerBackPath.concat(k,g,[A,D],c(N,V,A,D,p,H,K,U,1,0),z)):a.clipTopPath=a.clipTopBorderPath.concat(g,M,z)):(d=c(N,C,k,F,v,R,I,O,1,0),a.clipOuterFrontPath=l.concat([k,F]),a.clipTopBorderPath=a.clipOuterFrontPath.concat(d),a.clipOuterBackPath=a.clipTopBorderPath.concat(g,[v,Z],c(N,V,v,Z,k,Q,I,O,0,0),z),this.isDoughnut?(k=c(N,C,p,B,A,s,K,U,0,0),a.clipInnerFrontPath=l.concat([p,B]),a.clipTopPath=a.clipTopBorderPath.concat(g,
[p,B],k,z),a.clipTopBorderPath=a.clipTopBorderPath.concat(a.clipInnerFrontPath,k),a.clipInnerBackPath=a.clipInnerFrontPath.concat(k,g,[A,D],c(N,V,A,D,p,H,K,U,1,0),z)):a.clipTopPath=a.clipTopBorderPath.concat(g,M,z)),d=l.concat(t,g,L),k=l.concat(x,g,W),a.clipTopPath=a.clipTopPath.concat(d,k),a.clipOuterFrontPath=a.clipOuterFrontPath.concat(d),a.clipOuterFrontPath1=a.clipOuterFrontPath1.concat(d),a.clipOuterBackPath=a.clipOuterBackPath.concat(d),this.isDoughnut&&(k=l.concat(f,g,P),a.clipInnerFrontPath=
a.clipInnerFrontPath.concat(k),a.clipInnerBackPath=a.clipInnerBackPath.concat(k))):(a.clipTopPath=a.clipOuterFrontPath=a.clipOuterBackPath=[],this.isDoughnut&&(a.clipInnerFrontPath=a.clipInnerBackPath=[])),b||(a.elements.startSlice._conf.index=h,a.elements.endSlice._conf.index=r,a.elements.frontOuter._conf.index=Ja(r,h),a.elements.frontOuter1&&(a.elements.frontOuter1._conf.index=h,G.frontOuter1.attr({path:a.clipOuterFrontPath1})),a.thisElement.attr({path:a.clipTopPath}),G.topBorder.attr({path:a.clipTopBorderPath}),
G.bottom.attr({path:a.clipTopPath}),G.bottomBorder.attr({path:a.clipTopBorderPath}),G.frontOuter.attr({path:a.clipOuterFrontPath}),G.backOuter.attr({path:a.clipOuterBackPath}),this.isDoughnut&&(G.frontInner.attr({path:a.clipInnerFrontPath}),G.backInner.attr({path:a.clipInnerBackPath})),this.hasOnePoint?(a.elements.startSlice.hide(),a.elements.endSlice.hide()):(a.elements.startSlice.attr({path:a.startSlice}).show(),a.elements.endSlice.attr({path:a.endSlice}).show())))},onPlotHover:function(a,b){var c=
this.pointElemStore[a]._confObject,d=c.thisElement,e=c.elements,h=this.colorObjs[a],r=h.hoverProps,f=b?r.hoverColorObj:h.color,l=h.showBorderEffect,q=b?r.borderColor:h.borderColor,h=b?r.borderWidth:h.borderWidth;aa?(r={fill:T(f.top),"stroke-width":0},1!==l&&(r.stroke=q,r["stroke-width"]=h),d._attr(r),l&&e.topBorder.attr({fill:T(f.topBorder),"stroke-width":0})):(d._attr({fill:T(f.top),"stroke-width":0}),e.topBorder.attr({stroke:q,"stroke-width":h}));e.bottom.attr({fill:T(f.bottom),"stroke-width":0});
e.bottomBorder.attr({stroke:q,"stroke-width":h});e.frontOuter.attr({fill:T(f.frontOuter),"stroke-width":0});e.backOuter.attr({fill:T(f.backOuter),"stroke-width":0});e.startSlice.attr({fill:T(f.startSlice),stroke:q,"stroke-width":h});e.endSlice.attr({fill:T(f.endSlice),stroke:q,"stroke-width":h});d=da(c.start);c=da(c.end);(d>c?S:0)+c-d>y&&e.frontOuter1.attr({fill:T(f.frontOuter),"stroke-width":0});this.isDoughnut&&(e.frontInner.attr({fill:T(f.frontInner),"stroke-width":0}),e.backInner.attr({fill:T(f.backInner),
"stroke-width":0}))},createSlice:function(){var a={stroke:!0,strokeWidth:!0,"stroke-width":!0,dashstyle:!0,"stroke-dasharray":!0,translateX:!0,translateY:!0,"stroke-opacity":!0,transform:!0,fill:!0,opacity:!0,ishot:!0,start:!0,end:!0,cursor:!0},b=function(b,c){var d,e,m=this,h=m._confObject,n,f=h.elements,l,P,g=h.Pie3DManager;"string"===typeof b&&void 0!==c&&null!==c&&(d=b,b={},b[d]=c);if(b&&"string"!==typeof b){void 0!==b.cx&&(b.start=b.cx);void 0!==b.cy&&(b.end=b.cy);for(d in b)if(e=b[d],a[d])if(h[d]=
e,"ishot"===d||"cursor"===d){n={};n[d]=e;for(l in f)f[l].attr(n);m._attr(n)}else if("transform"===d){for(l in f)f[l].attr({transform:b[d]});m._attr({transform:b[d]})}else"stroke"===d||"strokeWidth"===d||"stroke-width"===d||"dashstyle"===d||"stroke-dasharray"===d?(n={},n[d]=e,f.topBorder&&f.topBorder.attr(n),f.startSlice.attr(n),f.endSlice.attr(n),f.bottomBorder.attr(n)):"fill"===d||"start"!==d&&"end"!==d||(P=!0);else m._attr(d,e);P&&(g.updateSliceConf(h),g.refreshDrawing())}else m=m._attr(b);return m},
c=function(a,b,d,c){var e=this._confObject.elements,m;for(m in e)if(d)e[m].drag(b,d,c);else e[m].on(a,b);return d?this.drag(b,d,c):this._on(a,b)},d=function(){var a=this._confObject.elements,b;for(b in a)a[b].hide();return this._hide()},e=function(){var a=this._confObject.elements,b;for(b in a)a[b].show();return this._show()},h=function(){var a=this._confObject,b=a.elements,d;for(d in b)b[d].destroy();aa&&(a.clipTop.destroy(),a.clipOuterFront.destroy(),a.clipOuterBack.destroy(),a.clipOuterFront1&&
a.clipOuterFront1.destroy(),a.clipInnerFront&&a.clipInnerFront.destroy(),a.clipInnerBack&&a.clipInnerBack.destroy());return this._destroy()};return function(a,f,l,q,P,k,g,u,p,z){var w=this.renderer;l=this.parseColor(l,q);a={start:a,end:f,elements:{},Pie3DManager:this};f=this.slicingWallsArr;q=a.elements;var A,s=aa?"litepath":"path";z&&(this.colorObjs[g]={color:l,borderColor:P,borderWidth:k,showBorderEffect:!1},z.hoverColorObj=this.parseColor(z.color,z.alpha),this.colorObjs[g].hoverProps=z);this.updateSliceConf(a,
!0);aa?(z={fill:T(l.top),"stroke-width":0},1!==p&&(z.stroke=P,z["stroke-width"]=k),z=w[s](a.clipTopPath,this.topGroup).attr(z),p&&(q.topBorder=w[s](a.clipTopBorderPath,this.topGroup).attr({fill:T(l.topBorder),"stroke-width":0}))):(z=w[s](a.clipTopPath,this.topGroup).attr({fill:T(l.top),"stroke-width":0}),q.topBorder=w[s](a.clipTopBorderPath,this.topGroup).attr({stroke:P,"stroke-width":k}));q.bottom=w[s](a.clipTopPath,this.bottomBorderGroup).attr({fill:T(l.bottom),"stroke-width":0});q.bottomBorder=
w[s](aa?a.clipTopPath:a.clipTopBorderPath,this.bottomBorderGroup).attr({stroke:P,"stroke-width":k});q.frontOuter=w[s](a.clipOuterFrontPath,this.slicingWallsFrontGroup).attr({fill:T(l.frontOuter),"stroke-width":0});q.backOuter=w[s](a.clipOuterBackPath,this.outerBackGroup).attr({fill:T(l.backOuter),"stroke-width":0});q.startSlice=w[s](a.startSlice,this.slicingWallsFrontGroup).attr({fill:T(l.startSlice),stroke:P,"stroke-width":k});q.endSlice=w[s](a.endSlice,this.slicingWallsFrontGroup).attr({fill:T(l.endSlice),
stroke:P,"stroke-width":k});P=da(a.start);k=da(a.end);p=(P>k?S:0)+k-P;p>y&&(q.frontOuter1=w[s](a.clipOuterFrontPath1,this.slicingWallsFrontGroup).attr({fill:T(l.frontOuter),"stroke-width":0}),q.frontOuter1._conf={index:P,isStart:.5,pIndex:g},aa&&(a.clipOuterFront1=a.clipOuterFrontPath1));q.frontOuter._conf={index:Ja(k,P),isStart:.5,pIndex:g};q.startSlice._conf={index:P,isStart:0,pIndex:g};q.endSlice._conf={index:k,isStart:1,pIndex:g};this.hasOnePoint&&(q.startSlice.hide(),q.endSlice.hide());this.isDoughnut?
(q.frontInner=w[s](a.clipInnerFrontPath,this.innerFrontGroup).attr({fill:T(l.frontInner),"stroke-width":0}),q.backInner=w[s](a.clipInnerBackPath,this.innerBackGroup).attr({fill:T(l.backInner),"stroke-width":0}),q.backInner._conf={index:Ja(k,P),isStart:.5,pIndex:g},p>y?aa?f.push(q.startSlice,q.frontOuter1,q.frontOuter,q.backInner,q.endSlice):f.push(q.startSlice,q.frontOuter1,q.frontOuter,q.endSlice):aa?f.push(q.startSlice,q.frontOuter,q.backInner,q.endSlice):f.push(q.startSlice,q.frontOuter,q.endSlice)):
p>y?f.push(q.startSlice,q.frontOuter1,q.frontOuter,q.endSlice):f.push(q.startSlice,q.frontOuter,q.endSlice);if(void 0!==u){for(A in q)q[A].tooltip(u);z.tooltip(u)}aa&&(a.clipTop=a.clipTopPath,a.clipOuterFront=a.clipOuterFrontPath,a.clipOuterBack=a.clipOuterBackPath,this.isDoughnut&&(a.clipInnerFront=a.clipInnerFrontPath,a.clipInnerBack=a.clipInnerBackPath));z._confObject=a;a.thisElement=z;z._destroy=z.destroy;z.destroy=h;z._show=z.show;z.show=e;z._hide=z.hide;z.hide=d;z._on=z.on;z.on=c;z._attr=z.attr;
z.attr=b;this.pointElemStore.push(z);return z}}()};Ka.prototype.constructor=Ka;l("renderer.pie3d",{type:"pie3d",isHovered:!1,translate:function(){var a=0,b=this.options,c=b.series[0],d=b.plotOptions.series.dataLabels,e=b.plotOptions.pie3d,h=g(c.startAngle,0)%360,r=c.managedPieSliceDepth,l=c.slicedOffset=e.slicedOffset,y=this.canvasWidth,q=this.canvasHeight,J=[this.canvasLeft+.5*y,this.canvasTop+.5*q-.5*r],k,F,t,D,z,b=c.data,H,A=s(y,q),x,L,B,la=d.distance,ba=c.pieYScale,N=c.pieSliceDepth,C=c.slicedOffsetY=
l*ba;J.push(e.size,e.innerSize||0);J=na(J,function(a,b){return(x=/%$/.test(a))?[y,q-r,A,A][b]*parseInt(a,10)/100:a});J[2]/=2;J[3]/=2;J.push(J[2]*ba);J.push((J[2]+J[3])/2);J.push(J[5]*ba);c.getX=function(a,b){t=P.asin((a-J[1])/(J[2]+la));return J[0]+(b?-1:1)*w(t)*(J[2]+la)};c.center=J;xa(b,function(b){a+=b.y});c.labelsRadius=J[2]+la;c.labelsRadiusY=c.labelsRadius*ba;c.quadrantHeight=(q-r)/2;c.quadrantWidth=y/2;D=-h*M;D=p(1E3*D)/1E3;z=D+S;e=f(parseInt(d.style.fontSize,10),10)+4;c.maxLabels=G(c.quadrantHeight/
e);c.labelFontSize=e;c.connectorPadding=f(d.connectorPadding,5);c.isSmartLineSlanted=g(d.isSmartLineSlanted,!0);c.connectorWidth=f(d.connectorWidth,1);c.enableSmartLabels=d.enableSmartLabels;c.Pie3DManager||(c.Pie3DManager=new Ka(J[0],J[1],J[2],J[3],ba,N,this.layers.dataset,this.paper,1===c.data.length,c.use3DLighting));xa(b,function(b){k=D;H=a?b.y/a:0;D=p(1E3*(D+H*S))/1E3;D>z&&(D=z);F=D;b.shapeArgs={start:p(1E3*k)/1E3,end:p(1E3*F)/1E3};b.centerAngle=t=(F+k)/2%S;b.slicedTranslation=[p(w(t)*l),p(u(t)*
C)];L=w(t)*J[2];c.radiusY=B=u(t)*J[4];b.tooltipPos=[J[0]+.7*L,J[1]+B];b.percentage=100*H;b.total=a})},drawPlotPie3d:function(a,b){this.translate();var c=this,d=a.items,e=a.data,h=c.options,r=h.plotOptions,l=r.series,P=c.layers,q=c.elements.plots[0],g=c.datasets[0],r=r.series.dataLabels,k=l.dataLabels.style,l=f(a.moveDuration,l.animation.duration),s=c.paper,p=h.tooltip||{},p=p&&!1!==p.enabled,y=g.slicedOffset,z=g.slicedOffsetY,t=c.plotDragMove,A=c.plotDragStart,D=c.plotDragEnd,H=c.plotRollOver,B=c.plotRollOut,
x=!!c.datasets[0].enableRotation,L=b.showBorderEffect,N=e.length,C=h.chart,h=C.usePerPointLabelColor,C=C.textDirection,I={fontFamily:k.fontFamily,fontSize:k.fontSize,lineHeight:k.lineHeight,fontWeight:k.fontWeight,fontStyle:k.fontStyle},O=function(a){return function(){c.legendClick(a,!0,!1)}},S=function(a){return function(){return c.getEventArgs(a)}},G=function(a){return function(b,d,c,e,m){t.call(a,b,d,c,e,m)}},K=function(a){return function(b,d,c){A.call(a,b,d,c)}},U=function(a){return function(b){D.call(a,
b)}},W=function(a){return function(b){B.call(a,b)}},V=function(a){return function(b){H.call(a,b)}},M,Q,v,R,Z,la,$,ba,qa,E;e&&N||(e=[]);q.singletonCase=1===N;q.chartPosition=wa(c.container);q.pieCenter=g.center;q.timerThreshold=30;for(E=-1;++E<N;)v=e[E],k=v.y,R=v.displayValue,I=v.sliced,ba=v.shapeArgs,M=v.centerAngle,qa=v.toolText,la=(Z=!!v.link)||x||!v.doNotSlice,null===k||void 0===k||(Q=d[E])||(b.data[E].plot=Q=d[E]={chart:c,index:E,seriesData:q,value:k,angle:M,link:v.link,shapeArgs:ba,slicedX:I&&
!q.singletonCase?w(M)*y:0,slicedY:I&&!q.singletonCase?u(M)*z:0,sliced:I,labelText:R,name:v.name,label:v.name,percentage:v.percentage,toolText:qa,originalIndex:N-E-1,style:v.style,graphic:g.Pie3DManager.createSlice(ba.start,ba.end,v.color,v._3dAlpha,v.borderColor,v.borderWidth,E,p?qa:"",L,v.rolloverProperties)},b.data[E].legendClick=O(Q),b.data[E].getEventArgs=S(Q),Q.graphic.plotItem=Q,Q.graphic.data("plotItem",Q),Q.transX=w(M)*y,Q.transY=u(M)*z,Q.slicedTranslation="t"+Q.transX+","+Q.transY,M={index:b.reversePlotOrder?
E:N-1-E,link:v.link,value:v.y,displayValue:v.displayValue,categoryLabel:v.categoryLabel,isSliced:v.sliced,toolText:v.toolText},Q.graphic.attr({transform:"t"+Q.slicedX+","+Q.slicedY,ishot:la,cursor:Z?"pointer":""}).drag(G(Q),K(Q),U(Q)).data("groupId",E).data("eventArgs",M).mouseover(V(Q)).mouseout(W(Q)),void 0!==R&&(k=v.style,I={fontFamily:k.fontFamily,fontSize:k.fontSize,lineHeight:k.lineHeight,fontWeight:k.fontWeight,fontStyle:k.fontStyle},Q.dataLabel=s.text(P.dataset).css(I).attr({text:R,title:v.originalText||
"",fill:(h?T(v.color):k.color)||"#000000","text-bound":[k.backgroundColor,k.borderColor,k.borderThickness,k.borderPadding,k.borderRadius,k.borderDash],visibility:"hidden",direction:C,ishot:la,cursor:Z?"pointer":""}).data("eventArgs",M).hover(V(Q),W(Q)).drag(G(Q),K(Q),U(Q)).data("plotItem",Q),0<r.distance&&($=r.connectorWidth)&&r.enableSmartLabels&&(Q.connector=s.path("M 0 0 l 0 0",P.dataset).attr({"stroke-width":$,stroke:r.connectorColor||"#606060",visibility:"hidden",ishot:la,cursor:Z?"pointer":
""}).data("eventArgs",M).hover(V(Q),W(Q)).drag(G(Q),K(Q),U(Q)).data("plotItem",Q))));g.Pie3DManager.refreshDrawing();0<l?c.animate(d,l):c.placeDataLabels(!1,d)},rotate:function(a){var b=this.datasets[0],c=this.elements.plots[0].items,d=b.slicedOffset,e=b.slicedOffsetY,h=b.startAngle,r;a=isNaN(a)?-b._lastAngle:a;r=(a-h)%360;b.startAngle=f(a,b.startAngle)%360;r=-(r*ba)/180;b.Pie3DManager&&b.Pie3DManager.rotate(r);xa(c,function(a){var b=a.graphic,c=a.shapeArgs,m=c.start+=r,c=c.end+=r,h=a.angle=da((m+
c)/2),m=a.sliced,c=w(h),h=u(h);a.slicedTranslation=[p(c*d),p(h*e)];a.transX=a.slicedTranslation[0];a.transY=a.slicedTranslation[1];a.slicedX=m?w(r)*d:0;a.slicedY=m?u(r)*e:0;b&&m&&a.graphic.attr({transform:"t"+a.slicedTranslation[0]+","+a.slicedTranslation[1]})});this.placeDataLabels(!0,c)},plotRollOver:function(a){var b=this.chart,c=b.datasets[0].Pie3DManager;this.seriesData.isRotating||(ua.call(this.graphic,b,a,"DataPlotRollOver"),c.colorObjs[this.index]&&c.onPlotHover(this.index,!0));b.isHovered=
!0},plotRollOut:function(a){var b=this.chart,c=b.datasets[0].Pie3DManager;this.seriesData.isRotating||(ua.call(this.graphic,b,a,"DataPlotRollOut"),c.colorObjs[this.index]&&c.onPlotHover(this.index,!1));b.isHovered=!1},plotDragStart:function(a,b,c){var d=this.seriesData,e=this.chart.datasets[0];d.isRotating=!1;e.enableRotation&&(a=Oa.call(c,a,b,d.pieCenter,d.chartPosition,e.pieYScale),e.dragStartAngle=a,e._lastAngle=-e.startAngle,e.startingAngleOnDragStart=e.startAngle)},plotDragEnd:function(a){var b=
this.chart,c=b.datasets[0],d=c.Pie3DManager,e=c.startAngle,h=this.seriesData,f={hcJSON:{series:[{startAngle:e}]}};b.disposed||ta(b.logic.chartInstance.jsVars._reflowData,f,!0);!h.isRotating&&b.plotGraphicClick.call(this,a);h.isRotating&&(setTimeout(function(){h.isRotating=!1},0),ja.raiseEvent("rotationEnd",{startingAngle:da(e,!0),changeInAngle:e-c.startingAngleOnDragStart},b.logic.chartInstance),!b.isHovered&&d.colorObjs[this.index]&&d.onPlotHover(this.index,!1))},plotDragMove:function(a,b,c,d,e){var h=
this.chart;a=h.datasets[0];b=this.seriesData;h.options.series[0].enableRotation&&!b.singletonCase&&(c=Oa.call(e,c,d,b.pieCenter,b.chartPosition,a.pieYScale),b.isRotating||(a.dragStartAngle!==c&&(b.isRotating=!0),ja.raiseEvent("rotationStart",{startingAngle:da(a.startAngle,!0)},h.logic.chartInstance)),d=c-a.dragStartAngle,a.dragStartAngle=c,b.moveDuration=0,a._lastAngle+=180*d/ba,c=(new Date).getTime(),!a._lastTime||a._lastTime+b.timerThreshold<c)&&(a._lastTime||h.rotate(),b.timerId=setTimeout(function(){h.disposed&&
h.disposing||h.rotate()},b.timerThreshold),a._lastTime=c)},animate:function(a,b){var c,d,e,h=a.length,f,l,P,q=this,g,k=function(){q.disposed||q.disposing||q.placeDataLabels(!1,a)};if(q.datasets[0].alphaAnimation)q.layers.dataset.attr({opacity:0}),q.layers.dataset.animate({opacity:1},b,"ease-in",function(){q.disposed||q.disposing||q.placeDataLabels(!1,a)});else for(c=0;c<h;c++)f=a[c],l=f.graphic,P=f.shapeArgs,f=2*ba,l&&(l.attr({start:f,end:f}),g=P.start,P=P.end,d?l.animateWith(d,e,{cx:g-f,cy:P-f},
b,"ease-in"):(e=ia.animation({cx:g-f,cy:P-f},b,"ease-in",k),d=l.animate(e)))},placeDataLabels:function(){var a=function(a,b){return a.point.value-b.point.value},b=function(a,b){return a.angle-b.angle},c=["start","start","end","end"],d=[-1,1,1,-1],e=[1,1,-1,-1];return function(l,r){var g=this.datasets[0],H=this.smartLabel,q=this.options.plotOptions.series.dataLabels,J=q.style,k=f(D(parseFloat(J.lineHeight)),12),F=Ha(q.placeInside,!1),M=q.skipOverlapLabels,x=q.manageLabelOverflow,z=q.connectorPadding,
L=q.connectorWidth,A,G,la=0<q.distance,B=g.center,ba=B[1],E=B[0],N=B[2],C=B[4],I=[[],[],[],[]],O,T,X,K=this.canvasLeft,U=this.canvasTop,W=this.canvasWidth,V,Y,Q,v,R,Z,ha,$,ga,ka,ea,ma=g.labelsRadius,da=p(100*g.labelsRadiusY)/100,ia=g.labelFontSize,aa=ia,Ga=aa/2,z=[z,z,-z,-z],Ea=g.maxLabels,oa=g.isSmartLineSlanted,ra=g.enableSmartLabels,ja,g=g.pieSliceDepth/2;l||H.setStyle(J);if(1==r.length)v=r[0],ja=v.dataLabel,v.slicedTranslation=[K,U],ja&&(ja.attr({visibility:h,"text-anchor":"middle",x:E,y:ba+Ga-
2}),ja.x=E);else if(F)xa(r,function(a){if(ja=a.dataLabel){ea=a.angle;ka=ba+B[6]*u(ea)+Ga-2;ha=E+B[5]*w(ea);ja.x=ha;ja._x=ha;ja.y=ka;if(a.sliced){a=a.slicedTranslation;var b=a[1]-U;ha+=a[0]-K;ka+=b}ja.attr({visibility:h,align:"middle",x:ha,y:ka})}});else{xa(r,function(a){if(ja=a.dataLabel)ea=a.angle,0>ea&&(ea=S+ea),O=0<=ea&&ea<Wa?1:ea<y?2:ea<Xa?3:0,I[O].push({point:a,angle:ea})});for(X=F=4;X--;){if(M&&(v=I[X].length-Ea,0<v))for(I[X].sort(a),T=I[X].splice(0,v),Y=0,Q=T.length;Y<Q;Y+=1)v=T[Y].point,v.dataLabel.attr({visibility:"hidden"}),
v.connector&&v.connector.attr({visibility:"hidden"});I[X].sort(b)}X=t(I[0].length,I[1].length,I[2].length,I[3].length);da=t(s(X,Ea)*aa,da+aa);I[1].reverse();I[3].reverse();for(H.setStyle(J);F--;){Y=I[F];Q=Y.length;M||(aa=Q>Ea?da/Q:ia,Ga=aa/2);v=Q*aa;J=da;for(X=0;X<Q;X+=1,v-=aa)G=qa(da*u(Y[X].angle)),J<G?G=J:G<v&&(G=v),J=(Y[X].oriY=G)-aa;T=c[F];Q=da-(Q-1)*aa;J=0;for(X=Y.length-1;0<=X;--X,Q+=aa)v=Y[X].point,ea=Y[X].angle,R=v.sliced,ja=v.dataLabel,G=qa(da*u(ea)),G<J?G=J:G>Q&&(G=Q),J=G+aa,$=(G+Y[X].oriY)/
2,G=E+e[F]*ma*w(P.asin($/da)),$*=d[F],$+=ba,ga=ba+C*u(ea),Z=E+N*w(ea),(2>F&&G<Z||1<F&&G>Z)&&(G=Z),ha=G+z[F],ka=$+Ga-2,A=ha+z[F],ja.x=A,ja._x=A,x&&(V=1<F?A-this.canvasLeft:this.canvasLeft+W-A,H.setStyle(v.style),k=f(D(parseFloat(v.style.lineHeight)),12)+2*D(parseFloat(v.style.border),12),k=H.getSmartText(v.labelText,V,k),ja.attr({text:k.text,title:k.tooltext||""})),ea<y&&($+=g,ga+=g,ka+=g),ja.y=ka,R&&(k=v.transX,R=v.transY,ha+=k,G+=k,Z+=k,ga+=R,A+=k),ja.attr({visibility:h,"text-anchor":T,x:A,y:$}),
la&&L&&ra&&(A=v.connector,v.connectorPath=G=["M",Z,ga,"L",oa?G:Z,$,ha,$],A?(A.attr({path:G}),A.attr("visibility",h)):v.connector=A=this.paper.path(G).attr({"stroke-width":L,stroke:q.connectorColor||"#606060",visibility:h}))}}}}()},l["renderer.piebase"]);l("renderer.pie",{drawDoughnutCenterLabel:function(a,b,c,d,e,f,l){var P=this.options.series[0];f=f||P.lastCenterLabelConfig;var g=this.paper,q=this.smartLabel,u=this.layers.dataset,k=this.elements,p=f.padding,s=2*f.textPadding,w={fontFamily:f.font,
fontSize:f.fontSize+"px",lineHeight:1.2*f.fontSize+"px",fontWeight:f.bold?"bold":"",fontStyle:f.italic?"italic":""},z=1.414*(.5*d-p)-s;e=1.414*(.5*e-p)-s;var y;q.setStyle(w);q=q.getSmartText(a,z,e);(e=k.doughnutCenterLabel)?(e.attr("text")!==a&&this.centerLabelChange(a),y=k.centerLabelOvalBg):(f.bgOval&&(k.centerLabelOvalBg=y=g.circle(b,c,.5*d-p,u)),e=k.doughnutCenterLabel=g.text(u).hover(this.centerLabelRollover,this.centerLabelRollout).click(this.centerLabelClick),e.chart=this);a?(e.css(w).attr({x:b,
y:c,text:q.text,visibility:h,direction:this.options.chart.textDirection,title:f.toolText?"":q.tooltext||"",fill:T({FCcolor:{color:f.color,alpha:f.alpha}}),"text-bound":f.bgOval?"none":[T({FCcolor:{color:f.bgColor,alpha:f.bgAlpha}}),T({FCcolor:{color:f.borderColor,alpha:f.borderAlpha}}),f.borderThickness,f.textPadding,f.borderRadius]}).tooltip(f.toolText),f.bgOval&&y&&y.attr({visibility:h,fill:Za(f.bgColor),"fill-opacity":f.bgAlpha/100,stroke:Za(f.borderColor),"stroke-width":f.borderThickness,"stroke-opacity":f.borderAlpha/
100})):(e.attr("visibility","hidden"),y&&y.attr("visibility","hidden"));l&&(P.lastCenterLabelConfig=f)},centerLabelRollover:function(){var a=this.chart,b=a.fusionCharts,c=a.options.series[0].lastCenterLabelConfig,b={height:b.args.height,width:b.args.width,pixelHeight:b.ref.offsetHeight,pixelWidth:b.ref.offsetWidth,id:b.args.id,renderer:b.args.renderer,container:b.options.containerElement,centerLabelText:c&&c.label};this.attr("text")&&ja.raiseEvent("centerLabelRollover",b,a.logic.chartInstance,this,
a.hoverOnCenterLabel)},centerLabelRollout:function(){var a=this.chart,b=a.fusionCharts,c=a.options.series[0].lastCenterLabelConfig,b={height:b.args.height,width:b.args.width,pixelHeight:b.ref.offsetHeight,pixelWidth:b.ref.offsetWidth,id:b.args.id,renderer:b.args.renderer,container:b.options.containerElement,centerLabelText:c&&c.label};this.attr("text")&&ja.raiseEvent("centerLabelRollout",b,a.logic.chartInstance,this,a.hoverOffCenterLabel)},centerLabelClick:function(){var a=this.chart,b=a.fusionCharts,
c=a.options.series[0].lastCenterLabelConfig,b={height:b.args.height,width:b.args.width,pixelHeight:b.ref.offsetHeight,pixelWidth:b.ref.offsetWidth,id:b.args.id,renderer:b.args.renderer,container:b.options.containerElement,centerLabelText:c&&c.label};this.attr("text")&&ja.raiseEvent("centerLabelClick",b,a.logic.chartInstance)},centerLabelChange:function(a){var b=this.fusionCharts;ja.raiseEvent("centerLabelChanged",{height:b.args.height,width:b.args.width,pixelHeight:b.ref.offsetHeight,pixelWidth:b.ref.offsetWidth,
id:b.args.id,renderer:b.args.renderer,container:b.options.containerElement,centerLabelText:a},this.logic.chartInstance)},hoverOnCenterLabel:function(){var a=this.chart.options.series[0].lastCenterLabelConfig;(a.hoverColor||a.hoverAlpha)&&this.attr({fill:T({FCcolor:{color:a.hoverColor||a.color,alpha:a.hoverAlpha||a.alpha}})})},hoverOffCenterLabel:function(){var a=this.chart.options.series[0].lastCenterLabelConfig;(a.hoverColor||a.hoverAlpha)&&this.attr({fill:T({FCcolor:{color:a.color,alpha:a.alpha}})})},
drawPlotPie:function(a,b){var c=this,d=a.items,e=a.data,l=c.options,P=l.series[0],g=l.plotOptions,p=g.pie,q=g.series,s=c.layers,k=s.dataset,F=c.elements.plots[0],g=g.series.dataLabels,t=q.dataLabels.style,D=q.shadow,q=f(a.moveDuration,q.animation.duration),z=c.paper,G=l.tooltip||{},G=G&&!1!==G.enabled,A=((b.startAngle*=-y/180)||0)%S,H=p.slicedOffset,M=b.valueTotal,B=S/M,x=c.canvasLeft+.5*c.canvasWidth,L=c.canvasTop+.5*c.canvasHeight,N=.5*p.size,p=.5*(p.innerSize||0),C=c.plotDragMove,I=c.plotDragStart,
O=c.plotDragEnd,la=c.plotRollOver,ba=c.plotRollOut,K=!!c.datasets[0].enableRotation,U=e.length,W=l.chart,l=W.usePerPointLabelColor,W=W.textDirection,V=P.centerLabelConfig,E=V.label,Q={fontFamily:t.fontFamily,fontSize:t.fontSize,lineHeight:t.lineHeight,fontWeight:t.fontWeight,fontStyle:t.fontStyle},v,R,Z,X,$,qa,Y,ha,ea,ka,ga=a.shadowGroup,aa,da,ja,ma,Ga,Ea=function(a){return function(){c.legendClick(a,!0,!1)}},oa=function(a){return function(){return c.getEventArgs(a)}},ra=function(){c.disposed||c.disposing||
c.paper.ca.redrawDataLabels||(c.placeDataLabels(!1,d,a),c.paper.ca.redrawDataLabels=c.redrawDataLabels)};e&&U||(e=[]);ga||(ga=a.shadowGroup=z.group(k).toBack());F.singletonCase=1===U;F.chartPosition||(F.chartPosition=wa(c.container));F.pieCenter=[x,L];F.timerThreshold=30;ea=ha=A;for(aa=U;aa--;)R=e[aa],Q=R.y,Z=R.displayValue,$=R.sliced,t=R.toolText,qa=(X=!!R.link)||K||!R.doNotSlice,null!==Q&&void 0!==Q&&(v=R.color.FCcolor,v.r=N,v.cx=x,v.cy=L,R.rolloverProperties&&(v=R.rolloverProperties.color.FCcolor,
v.r=N,v.cx=x,v.cy=L),ea=ha,ha-=F.singletonCase?S:Q*B,Y=.5*(ha+ea),q?ma=Ga=A:(ma=ha,Ga=ea),(v=d[aa])||(b.data[aa].plot=v=d[aa]={chart:c,index:aa,seriesData:F,value:Q,angle:Y,slicedX:w(Y)*H,slicedY:u(Y)*H,sliced:$,labelText:Z,toolText:t,label:R.name,link:R.link,percentage:M?Q*M/100:0,originalIndex:U-aa-1,style:R.style,color:R.color,borderColor:R.borderColor,borderWidth:R.borderWidth,rolloverProperties:R.rolloverProperties,center:[x,L],innerDiameter:2*p,centerLabelConfig:R.centerLabelConfig,graphic:z.ringpath(x,
L,N,p,ma,Ga,s.dataset).attr({"stroke-width":R.borderWidth,"stroke-linejoin":"round",stroke:R.borderColor,fill:T(R.color),"stroke-dasharray":R.dashStyle,redrawDataLabels:A,ishot:qa,cursor:X?"pointer":""}).shadow(D&&R.shadow,ga).drag(C,I,O).hover(la,ba)},G&&v.graphic.tooltip(t),b.data[aa].legendClick=Ea(v),b.data[aa].getEventArgs=oa(v),v.graphic.data("plotItem",v),X={index:b.reversePlotOrder?aa:U-1-aa,link:R.link,value:R.y,displayValue:R.displayValue,categoryLabel:R.categoryLabel,isSliced:R.sliced,
toolText:R.toolText},v.graphic.data("eventArgs",X),void 0!==Z&&(t=R.style,Q={fontFamily:t.fontFamily,fontSize:t.fontSize,lineHeight:t.lineHeight,fontWeight:t.fontWeight,fontStyle:t.fontStyle},v.dataLabel=z.text(k).css(Q).attr({text:Z,fill:(l?T(R.color):t.color)||"#000000","text-bound":[t.backgroundColor,t.borderColor,t.borderThickness,t.borderPadding,t.borderRadius,t.borderDash],ishot:qa,direction:W,visibility:"hidden"}).drag(C,I,O).hover(la,ba).data("eventArgs",X).hide(),v.dataLabel.data("plotItem",
v),0<g.distance&&(ka=g.connectorWidth)&&g.enableSmartLabels&&(v.connector=z.path("M 0 0 l 0 0",k).attr({"stroke-width":ka,stroke:g.connectorColor||"#606060",visibility:h,ishot:!0}).data("eventArgs",X).drag(C,I,O).hover(la,ba),v.connector.data("plotItem",v)))),v.angle=Y,v.transX=w(Y)*H,v.transY=u(Y)*H,v.slicedTranslation="t"+w(Y)*H+","+u(Y)*H,q?da?v.graphic.animateWith(da,ja,{ringpath:[x,L,N,p,ha,ea],transform:v.sliced?v.slicedTranslation:""},q,"easeIn"):(ja=ia.animation({ringpath:[x,L,N,p,ha,ea],
redrawDataLabels:c,transform:v.sliced?v.slicedTranslation:""},q,"easeIn",ra),da=v.graphic.animate(ja)):v.graphic.attr({transform:v.sliced?v.slicedTranslation:""}));E&&p&&c.drawDoughnutCenterLabel(E,x,L,2*p,2*p,V,!0);P.lastCenterLabelConfig=V;q?P.doughnutCenterLabel&&P.doughnutCenterLabel.attr({"fill-opacity":0}).animate(ia.animation({"fill-opacity":100},100).delay(100<q?q-100:0)):c.placeDataLabels(!1,d,a)},rotate:function(a,b){var c=a.items,d=a.data,e=this.options.plotOptions.pie,h=e.slicedOffset,
f=S/b.valueTotal,l=this.canvasLeft+.5*this.canvasWidth,P=this.canvasTop+.5*this.canvasHeight,g=.5*e.size,e=.5*(e.innerSize||0),p,k,s,t,y;s=(b.startAngle||0)%S;for(y=d.length;y--;)p=d[y],k=p.y,null!==k&&void 0!==k&&(p=c[y],t=s,s-=p.seriesData.singletonCase?S:k*f,k=.5*(s+t),p.angle=k,p.transX=w(k)*h,p.transY=u(k)*h,p.slicedTranslation="t"+w(k)*h+","+u(k)*h,p.graphic.attr({ringpath:[l,P,g,e,s,t],transform:p.sliced?p.slicedTranslation:""}));this.placeDataLabels(!0,c,a)}},l["renderer.piebase"])},[3,2,
2,"sr4"]]);
FusionCharts.register("module",["private","modules.renderer.js-zoomline",function(){var wa=this,na=wa.hcLib,da=wa.window,Ja=/msie/i.test(da.navigator.userAgent)&&!da.opera,Oa=na.chartAPI,Ka=na.chartAPI,ja=na.extend2,E=na.raiseEvent,ia=na.pluck,x=na.pluckNumber,Ia=na.getFirstColor,Y=na.graphics.convertColor,Va=na.bindSelectionEvent,g=na.createTrendLine,va=na.parseUnsafeString,Ba=na.regescape,f=na.Raphael,Ha=na.hasTouch,Sa=na.getMouseCoordinate,oa=na.FC_CONFIG_STRING,sa="rgba(192,192,192,"+(Ja?.002:
1E-6)+")",ta=da.Math,za=ta.ceil,T=ta.floor,La=ta.max,Ma=ta.min,aa=ta.cos,xa=ta.sin,Aa=da.parseFloat,Pa=da.parseInt,ua;ja(na.eventList,{zoomed:"FC_Zoomed",pinned:"FC_Pinned",resetzoomchart:"FC_ResetZoomChart"});Oa("zoomline",{friendlyName:"Zoomable and Panable Multi-series Line Chart",rendererId:"zoomline",standaloneInit:!0,hasVDivLine:!0,defaultSeriesType:"stepzoom",canvasborderthickness:1,defaultPlotShadow:1,chart:function(){for(var b=this.base.chart.apply(this,arguments),e=b[oa],h=this.dataObj.chart,
f=this.colorManager.getColor("canvasBorderColor"),g=b.chart,w=0,la=b.series,p=la&&la.length||0,s;p--;)s=la[p],w=La(w,s&&s.showAnchors&&s.attrs&&s.attrs.anchors&&(s.attrs.anchors.r||0)+(s.attrs.anchors["stroke-width"]||0)||0);ja(g,{animation:!1,zoomType:"x",canvasPadding:La(w,x(h.canvaspadding,0)),overFlowingMarkerWidth:w,scrollColor:Ia(ia(h.scrollcolor,this.colorManager.getColor("altHGridColor"))),scrollShowButtons:!!x(h.scrollshowbuttons,1),scrollHeight:x(h.scrollheight,16)||16,scrollBarFlat:e.flatScrollBars,
allowPinMode:x(h.allowpinmode,1),skipOverlapPoints:x(h.skipoverlappoints,1),showToolBarButtonTooltext:x(h.showtoolbarbuttontooltext,1),btnResetChartTooltext:ia(h.btnresetcharttooltext,"Reset Chart"),btnZoomOutTooltext:ia(h.btnzoomouttooltext,"Zoom out one level"),btnSwitchToZoomModeTooltext:ia(h.btnswitchtozoommodetooltext,"<strong>Switch to Zoom Mode</strong><br/>Select a subset of data to zoom into it for detailed view"),btnSwitchToPinModeTooltext:ia(h.btnswitchtopinmodetooltext,"<strong>Switch to Pin Mode</strong><br/>Select a subset of data and compare with the rest of the view"),
pinPaneFill:Y(ia(h.pinpanebgcolor,f),x(h.pinpanebgalpha,15)),zoomPaneFill:Y(ia(h.zoompanebgcolor,"#b9d5f1"),x(h.zoompanebgalpha,30)),zoomPaneStroke:Y(ia(h.zoompanebordercolor,"#3399ff"),x(h.zoompaneborderalpha,80)),showPeakData:x(h.showpeakdata,0),maxPeakDataLimit:x(h.maxpeakdatalimit,h.maxpeaklimit,null),minPeakDataLimit:x(h.minpeakdatalimit,h.minpeaklimit,null),crossline:{enabled:x(h.showcrossline,1),line:{"stroke-width":x(h.crosslinethickness,1),stroke:Ia(ia(h.crosslinecolor,"#000000")),"stroke-opacity":x(h.crosslinealpha,
20)/100},labelEnabled:x(h.showcrosslinelabel,h.showcrossline,1),labelstyle:{fontSize:Aa(h.crosslinelabelsize)?Aa(h.crosslinelabelsize)+"px":e.outCanvasStyle.fontSize,fontFamily:ia(h.crosslinelabelfont,e.outCanvasStyle.fontFamily)},valueEnabled:x(h.showcrosslinevalues,h.showcrossline,1),valuestyle:{fontSize:Aa(h.crosslinevaluesize)?Aa(h.crosslinevaluesize)+"px":e.inCanvasStyle.fontSize,fontFamily:ia(h.crosslinevaluefont,e.inCanvasStyle.fontFamily)}},useCrossline:x(h.usecrossline,1),tooltipSepChar:ia(h.tooltipsepchar,
", ")});return b},preSeriesAddition:function(){var b=this.dataObj,e=b.chart,h=this.hcJSON,f=h[oa],g=this.smartLabel,w=x(e.compactdatamode,0),la=ia(e.dataseparator,"|"),p=x(e.showlabels,1),s=e.labeldisplay&&e.labeldisplay.toLowerCase(),t=p&&x(e.labelheight),E="rotate"===s?270:x(e.rotatelabels,1)?270:0,ba=h.xAxis.labels.style,D=Aa(ba.lineHeight),G=h.chart.labelPadding=x(e.labelpadding,.2*D)+h.chart.plotBorderWidth,H,M,L,y=0,T=-1,S,Y,aa;0>t&&(t=void 0);0>G&&(G=(h.chart.plotBorderWidth||0)+2);H=(H=b.categories)&&
H[0]||{};b=H.category;delete H.category;h.categories=s=ja({data:M=w&&b&&b.split&&b.split(la)||b||[],rotate:E,wrap:"none"!==s},H);void 0!==b&&(H.category=b);H=M.length||0;if(S=!w&&p&&0!==t&&H||0){for(;S--;)M[S]=M[S]&&(L=M[S].label||"")&&((Y=L.length)>y&&(y=Y,T=S,L)||L)||"";y&&(L=M[T])}else if(w&&H&&!t)if(E){w=da.document.createElement("div");t=da.document.createElement("span");w.setAttribute("class","fusioncharts-zoomline-localsmartlabel");w.style.cssText="display:block;width:1px;position:absolute;";
for(aa in ba)w.style[aa]=ba[aa];t.innerHTML=b.replace(/\s*/g,"").replace(/\{br\}/ig,"<br />").replace(new RegExp(Ba(la),"g")," ");w.appendChild(t);da.document.body.appendChild(w);t=t.offsetWidth||void 0;w.parentNode.removeChild(w)}else L=M[H-1]||M[0];void 0!==t&&0!==t||!p||(L?(g.setStyle(ba),L=g.getSmartText(L),t=E?L.width:L.height):t=D*(E&&3||1));t>.3*f.height&&(t=.3*f.height);s.labelHeight=t&&t+6||0;s.show=t&&p||0;s.css=ja({},ba);E?(s.css.rotation=E,s.css["text-anchor"]="end"):s.css["vertical-align"]=
"top";h.xAxis.min=0;h.xAxis.max=H&&H-1||0;t+=x(e.scrollheight,16)||16;h.chart.marginBottom+=G;f.marginBottomExtraSpace+=t;ia(e.caption,e.subcaption)||(f.marginTopExtraSpace+=16)},series:function(){var b=this.dataObj,e=b.chart,h=b.dataset,f=this.hcJSON,u=f[oa],w=u[0],E=f.series,p=x(e.yaxismaxvalue),s=x(e.yaxisminvalue),t=x(e.forceyaxislimits,0),T=x(e.compactdatamode,0),ba=ia(e.dataseparator,"|"),D=Ba(e.indecimalseparator),G=Ba(e.inthousandseparator),H=x(e.drawanchors,e.showanchors,1),M=!!x(e.showlegend,
1),L,y,Y,S,aa,da=Infinity,ka=-Infinity,ga;aa=f.categories.data.length;if(h&&h.length&&aa){D&&(D=new RegExp(D,"g"));G&&(G=new RegExp(G,"g"));!G&&!D&&T&&t&&void 0!==p&&void 0!==s?(t=!0,ka=La(p,s),da=Ma(s,p)):t=!1;p=0;for(s=h.length;p<s;p++){L=h[p];Y=L.data;delete L.data;T?(S=Y||"",G&&(S=S.replace(G,"")),D&&(S=S.replace(D,".")),S=S.split(ba)):S=Y||[];S.length>aa&&(S.length=aa);ga=S.length;if(T){if(!t)for(;ga--;)y=Aa(S[ga]),isNaN(y)&&(y=void 0),y>ka&&(ka=y),y<=da&&(da=y),S[ga]=y}else for(;ga--;)y=S[ga]&&
S[ga].value||"",G&&(y=y.replace(G,"")),D&&(y=y.replace(D,".")),y=Aa(y),isNaN(y)&&(y=void 0),y>ka&&(ka=y),y<=da&&(da=y),S[ga]=y;E.push(y={index:p,type:"zoomline",data:S,name:L.seriesname||"",showInLegend:L.seriesname&&x(L.includeinlegend,1)&&M||!1,showAnchors:x(L.drawanchors,L.showanchors,H),visible:!x(L.initiallyhidden,0),lineWidth:2});S.length=aa;void 0!==Y&&(L.data=Y);y.attrs=this.seriesGraphicsAttrs(L);L=y.attrs.anchors;y.color=y.attrs.graphics.stroke;y.ancorRadius=L.r+L["stroke-width"]/2;y.marker=
{fillColor:L.fill,lineColor:L.stroke,lineWidth:1,symbol:"circle"}}-Infinity!==ka&&Infinity!==da||(ka=da=void 0);t=Pa(x(e.displaystartindex,1),10)-1;ba=Pa(x(e.displayendindex,aa||2),10)-1;1>(h=x(e.pixelsperpoint,15))&&(h=1);(E=x(e.pixelsperlabel,e.xaxisminlabelwidth,f.categories.rotate?20:60))<h&&(E=h);(0>t||t>=(aa-1||1))&&(t=0);(ba<=t||ba>(aa-1||1))&&(ba=aa-1||1);f.stepZoom={cnd:x(e.connectnulldata,0),amrd:x(e.anchorminrenderdistance,20),nvl:x(e.numvisiblelabels,0),cdm:T,oppp:h,oppl:E,dsi:t,dei:ba,
vdl:ba-t,dmax:w.max=ka,dmin:w.min=da,clen:aa,offset:0,step:1,llen:0,alen:0,ddsi:t,ddei:ba,ppc:0};this.configureAxis(f,b);b.trendlines&&g(b.trendlines,f.yAxis,u,!1,this.isBar)}},seriesGraphicsAttrs:function(b){var e=this.dataObj.chart,h="0"!=(b.dashed||e.linedashed||"0"),g,u,h={"stroke-width":x(b.linethickness,e.linethickness,2),stroke:Ia(ia(b.color,e.linecolor,this.colorManager.getPlotColor())),"stroke-opacity":x(b.alpha,e.linealpha,100)/100,"stroke-dasharray":h?[x(b.linedashlen,e.linedashlen,5),
x(b.linedashgap,e.linedashgap,4)]:"none","stroke-linejoin":"round","stroke-linecap":"round"};g=ja({},h);u=h["stroke-width"]+x(e.pinlinethicknessdelta,1);g["stroke-width"]=0<u&&u||0;g["stroke-dasharray"]=[3,2];return{graphics:h,pin:g,shadow:{opacity:h["stroke-opacity"],apply:x(e.showshadow,+!f.vml)},anchors:{"stroke-linejoin":"round","stroke-linecap":"round",r:x(b.anchorradius,e.anchorradius,h["stroke-width"]+2),stroke:Ia(ia(b.anchorbordercolor,e.anchorbordercolor,h.stroke)),"stroke-opacity":x(b.anchorborderalpha,
e.anchorborderalpha,100)/100,"stroke-width":x(b.anchorborderthickness,e.anchorborderthickness,h["stroke-width"]),fill:Ia(ia(b.anchorbgcolor,e.anchorbgcolor,"#ffffff")),"fill-opacity":x(b.anchorbgalpha,e.anchorbgalpha,100)/100,opacity:x(b.anchoralpha,e.anchoralpha,100)/100},anchorShadow:x(e.anchorshadow,e.showshadow,+!f.vml)&&{apply:!0,opacity:x(b.anchoralpha,e.anchoralpha,100)/100}}},eiMethods:{zoomOut:function(){var b=this.jsVars,e;if(b&&(e=b.hcObj))return e.zoomOut&&b.hcObj.zoomOut()},zoomTo:function(b,
e){var h=this.jsVars,f;if(h&&(f=h.hcObj))return f.zoomRange&&h.hcObj.zoomRange(b,e)},resetChart:function(){var b=this.jsVars,e;b&&(e=b.hcObj)&&(e.pinRangePixels&&b.hcObj.pinRangePixels(),e.resetZoom&&b.hcObj.resetZoom())},setZoomMode:function(b){var e=this.jsVars,h;e&&(h=e.hcObj)&&h.activatePin&&h.activatePin(!b)},getViewStartIndex:function(){var b=this.jsVars,e;if(b&&b.hcObj&&(e=b.hcObj._zoominfo))return e.ddsi},getViewEndIndex:function(){var b=this.jsVars,e;if(b&&b.hcObj&&(e=b.hcObj._zoominfo))return b=
e.ddei-1,(b>=e.clen?e.clen:b)-1}}},Oa.msline);Ka("renderer.zoomline",{resetZoom:function(){var b=this._zoomhistory,e=this.options.stepZoom;if(!b.length)return!1;b.length=0;this.zoomTo(e.dsi,e.dei)&&E("zoomReset",this._zoomargs,this.fusionCharts,[this.fusionCharts.id]);return!0},zoomOut:function(){var b=this._zoomhistory.pop(),e=this.options.stepZoom,h,f,g;b?(h=b.dsi,f=b.dei):this._prezoomed&&(h=0,f=e.clen-1);(g=this.zoomTo(h,f))&&wa.raiseEvent("zoomedout",g,this.fusionCharts);return!0},zoomRangePixels:function(b,
e){var h=this._zoomhistory,f=this._zoominfo,g=f.ppp,f=f.ddsi,w;h.push(this._zoominfo);(w=this.zoomTo(f+T(b/g),f+T(e/g)))?wa.raiseEvent("zoomedin",w,this.fusionCharts):h.pop()},zoomRange:function(b,e){var f=this._zoomhistory,g;f.push(this._zoominfo);(g=this.zoomTo(+b,+e))?wa.raiseEvent("zoomedin",g,this.fusionCharts):f.pop()},zoomTo:function(b,e){var f=this.xlabels.data,g=this._zoominfo,u=this._zoomhistory,w=g.clen;0>b&&(b=0);b>=w-1&&(b=w-1);e<=b&&(e=b+1);e>w-1&&(e=w-1);if(b===e||b===g.dsi&&e===g.dei)return!1;
this.pinRangePixels();g=ja({},g);g.dsi=b;g.dei=e;g=this._zoominfo=g;this.updatePlotZoomline();this.zoomOutButton[g.vdl===g.clen-1?"hide":"show"]();this.resetButton[u.length?"show":"hide"]();this.elements.zoomscroller.attr({"scroll-ratio":g.vdl/(w-!!w),"scroll-position":[g.dsi/(w-g.vdl-1),!0]});f={level:u.length+1,startIndex:b,startLabel:f[b],endIndex:e,endLabel:f[e]};E("zoomed",f,this.fusionCharts,[this.fusionCharts.id,b,e,f.startLabel,f.endLabel,f.level]);return f},activatePin:function(b){var e=
this._zoominfo,f=this.options.chart,g=this.pinButton;if(g&&e.pinned^(b=!!b))return b||this.pinRangePixels(),E("zoomModeChanged",{pinModeActive:b},this.fusionCharts,[]),f.showToolBarButtonTooltext&&g.tooltip(f[b&&"btnSwitchToZoomModeTooltext"||"btnSwitchToPinModeTooltext"]||""),g.attr("button-active",b),e.pinned=b},pinRangePixels:function(b,e){var f=this.paper,g=this.elements,u=this.xlabels.data,w=this._zoominfo,x=this.layers.zoompin,p=g.pinrect,s=g["clip-pinrect"],t=this._pingrouptransform,T=this.plots,
ba=e-b,D,G;if(w&&x&&p){if(b===e)return x.hide(),g.pintracker.hide(),this.pinButton.attr("button-active",!1),w.pinned=!1;for(G=T.length;G--;)p=T[G],D=p.pinline,D||(D=p.pinline=f.path(void 0,x).attr(p.attrPin)),D.attr("path",p.graphic.attrs.path);s[0]=b+this.canvasLeft;s[2]=ba;x.attr({"clip-rect":s,transform:t}).show();g.pintracker.__pindragdelta=0;g.pintracker.show().attr({transform:t,x:b,width:ba});b=this.getValuePixel(b);e=this.getValuePixel(e);E("pinned",{startIndex:b,endIndex:e,startLabel:u[b],
endLabel:u[e]},this.fusionCharts,[this.fusionCharts.id,b,e,u[b],u[e]]);return w.pinned=!0}},getValuePixel:function(b){var e=this._zoominfo;return e.ddsi+T(b/e.ppp)},getParsedLabel:function(b){var e=this.xlabels;return e.parsed[b]||(e.parsed[b]=va(e.data[b]||""))},drawGraph:function(){var b=this,e=b.paper,h=b.canvasLeft,g=b.canvasTop,u=b.canvasWidth,w=b.canvasHeight,x=b.options,p=x.chart,s=p.plotBorderWidth,t=p.useRoundEdges,E=p.showToolBarButtonTooltext,ba=p.crossline,D=b.layers,G=b.toolbar,H=b.elements,
M=p.allowPinMode,L=x.categories,y=!1,T,S,Y,aa,da,ga,ia;ga=b._zoominfo=ja({},x.stepZoom);b._zoomhistory=[];ga.clen&&(y=b._prezoomed=ga.dei-ga.dsi<ga.clen-1,da=b._visw=b.canvasWidth-2*p.canvasPadding,aa=b._visx=b.canvasLeft+p.canvasPadding,b._visout=-(b.chartHeight+b.canvasHeight+1E3),b.base.drawGraph.apply(b,arguments),b._ypvr=b.yAxis[0]&&b.yAxis[0].pixelValueRatio||0,ia=b._ymin||(b._ymin=b.yAxis[0].endY),b._yminValue=b.yAxis[0].min,x=D.dataset.attr("clip-rect",[b._visx-p.overFlowingMarkerWidth,b.canvasTop,
b._visw+2*p.overFlowingMarkerWidth,b.canvasHeight]),Y=D.scroll||(D.scroll=e.group("scroll").insertAfter(D.layerAboveDataset)),b.xlabels=[],b.xlabels.show=L.show,b.xlabels.height=L.labelHeight,b.xlabels.wrap=L.wrap,b.xlabels.rotate=L.rotate,b.xlabels.data=L.data||[],b.xlabels.parsed=[],b.xlabels.css=L.css,b.xlabels.group=e.group("zoomline-plot-xlabels",D.datalabels),D.datalabels.transform(["T",aa,g+w+p.scrollHeight+p.labelPadding]),b._lcmd=L.rotate?"y":"x",M&&(M=f.crispBound(0,g-ia,0,w,s),T=H["clip-pinrect"]=
[M.x,g,M.width,M.height],S=D.zoompin=e.group("zoompin").insertBefore(x).transform(b._pingrouptransform=["T",aa,ia]).hide(),H.pinrect=e.rect(0,g-ia,b._visw,w,D.zoompin).attr({"stroke-width":0,stroke:"none",fill:p.pinPaneFill,"shape-rendering":"crisp",ishot:!0}),H.pintracker=e.rect(D.tracker).attr({transform:S.transform(),x:0,y:g-ia,width:0,height:w,stroke:"none",fill:sa,ishot:!0,cursor:f.svg&&"ew-resize"||"e-resize"}).drag(function(b){var e=aa+b+this.__pindragdelta,h=this.__pinboundleft,g=this.__pinboundright,
p=this.data("cliprect").slice(0);e<h?e=h:e>g&&(e=g);S.transform(["T",e,ia]);H.pintracker.transform(S.transform());f.svg||(p[0]=p[0]+e-aa-this.__pindragdelta,S.attr("clip-rect",p));this.__pindragoffset=b},function(){this.__pinboundleft=0-T[0]+aa+h;this.__pinboundright=this.__pinboundleft+da-T[2];this.data("cliprect",S.attr("clip-rect"));S._.clipispath=!0},function(){S._.clipispath=!1;this.__pindragdelta=this.__pindragoffset;delete this.__pindragoffset;delete this.__pinboundleft;delete this.__pinboundright}),
b.pinButton=G.add("pinModeIcon",function(){b.activatePin(!b._zoominfo.pinned)},{tooltip:E&&p.btnSwitchToPinModeTooltext||""})),s++,M=f.crispBound(h-s,g+w+s,u+s+s,p.scrollHeight,s),s--,H.zoomscroller=e.scroller(M.x+(t&&-1||s%2),M.y-(t&&4||2),M.width-(!t&&2||0),M.height,!0,{showButtons:p.scrollShowButtons,scrollRatio:ga.vdl/(ga.clen-!!ga.clen),scrollPosition:[ga.dsi/(ga.clen-ga.vdl-1),!1],displayStyleFlat:p.scrollBarFlat},Y).attr({fill:p.scrollColor,r:t&&2||0}).scroll(b.updatePlotZoomline,b),t&&H.zoomscroller.shadow(!0),
function(){var e;f.eve.on("raphael.scroll.start."+H.zoomscroller.id,function(f){e=f;b.crossline&&b.crossline.disable(!0);wa.raiseEvent("scrollstart",{scrollPosition:f},b.logic.chartInstance)});f.eve.on("raphael.scroll.end."+H.zoomscroller.id,function(f){b.crossline&&b.crossline.disable(!1);wa.raiseEvent("scrollend",{prevScrollPosition:e,scrollPosition:f},b.logic.chartInstance)})}(),Va(b,{attr:{stroke:p.zoomPaneStroke,fill:p.zoomPaneFill,strokeWidth:0},selectionStart:function(){},selectionEnd:function(e){var f=
e.selectionLeft-h;e=f+e.selectionWidth;b.crossline&&b.crossline.hide();b[b._zoominfo.pinned?"pinRangePixels":"zoomRangePixels"](f,e)}}),b.zoomOutButton=G.add("zoomOutIcon",function(){b.zoomOut()},{tooltip:E&&p.btnZoomOutTooltext||""})[y&&"show"||"hide"](),b.resetButton=G.add("resetIcon",function(){b.resetZoom()},{tooltip:E&&p.btnResetChartTooltext||""}).hide(),M=b.resetButton.attr("fill"),M[2]="rgba(255,255,255,0)",b.resetButton.attr("fill",[M[0],M[1],M[2],M[3]]),ba&&0!==ba.enabled&&1===p.useCrossline&&
(b.crossline=new ua(b,ba)),b.updatePlotZoomline())},drawPlotZoomline:function(b,e){var f=this.paper,g=e.attrs,u=e.visible,w=u?"show":"hide",x=this.layers.dataset,p=b.group||(b.group=f.group("plot-zoomline-dataset",x)),x=b.anchorGroup||(b.anchorGroup=f.group("plot-zoomline-anchors",x)),f=b.graphic||(b.graphic=f.path(void 0,p)),s=["T",this._visx,this._ymin||(this._ymin=this.yAxis[0].endY)];p.transform(s)[w]();x.transform(s)[w]();b.graphic=f.attr(g.graphics).shadow(g.shadow);b.attrPin=g.pin;b.visible=
u;b.anchors=[];b.anchors.show=e.showAnchors;b.anchors.attrs=g.anchors;b.anchors.attrsShadow=g.anchorShadow;b.anchors.left=-(g.anchors.r+.5*g.anchors["stroke-width"]);b.anchors.right=this._visw-b.anchors.right},updatePlotZoomline:function(b,e){var f=this.paper,g=this._ypvr,u=this._visw,w=this.xlabels,x=w.css,p=w.group,s=this.plots,t=this.options.chart.textDirection,E,ba,D,G,H,M,L,y;!e&&(e=this._zoominfo);D=e.oppp;G=e.vdl=e.dei-e.dsi;H=e.ppl=e.nvl?u/e.nvl:e.oppl;u=e.step=(M=e.ppp=u/G)<D?za(D/M):1;D=
e.lskip=za(La(H,Aa(x.lineHeight))/M/u);void 0!==b?(H=(e.clen-G-1)*b,e.offset=(H-(H=Pa(H)))*M,G=H+G):(H=e.dsi,G=e.dei,e.offset=0);L=e.norm=H%u;e.ddsi=H-=L;e.ddei=G=G+2*u-L;e.pvr=g;e._ymin=this._ymin;e._yminValue=this._yminValue;g=w.show?za((G-H)/u/D):0;L=e.llen-1;e.llen=g;y=e.ppc=M*D*u;if(g>L)for(D=L,L=g;D<L;D++)(E=w[D])&&E.show()||(w[D]=f.text(0,0,"",p).css(x).attr({direction:t}));else for(D=g,L+=1;D<L;D++)w[D].hide();g=M*u<e.amrd?0:za((G-H)/u);x=g-e.alen;e.alen=g;w.wrap&&(w.rotate?(w._width=w.height,
w._height=y):(w._width=y,w._height=w.height));for(E=s.length;E--;){p=s[E];e.plotName=p.name||"";t=p.anchors;if(t.show&&x){ba=t.attrs;D=0;for(L=g;D<L;D++)t[D]=t[D]&&t[D].show()||f.circle(ba,p.anchorGroup);D=g;for(L=t.length;D<L;D++)t[D]&&t[D].hide()}this.drawPlotZoomlineGraphics(e,p.data,p.graphic,t,!E&&w,ba,p.anchorGroup)}da.FC_DEV_ENVIRONMENT&&da.jQuery&&(FusionCharts["debugger"].enable()?(this.debug=this.debug||(da.jQuery("#fc-zoominfo").length||da.jQuery("body").append('<pre id="fc-zoominfo">'),
da.jQuery("#fc-zoominfo").css({position:"absolute",left:"10px",top:"0","pointer-events":"none",opacity:.7,width:"250px",zIndex:"999",border:"1px solid #cccccc","box-shadow":"1px 1px 3px #cccccc",background:"#ffffff"})),this.debug.text(JSON.stringify(e,0,2))):(this.debug&&da.jQuery("#fc-zoominfo").remove(),delete this.debug))},drawPlotZoomlineGraphics:function(b,e,f,g,u,w,x){var p=this.smartLabel,s=this.paper,t=this.numberFormatter,E=this.options.chart,ba=E.useCrossline,D=E.showPeakData,G=E.maxPeakDataLimit,
H=E.minPeakDataLimit,M=[],L=!b.cnd,y=b.ddei,T=b.clen,S=b.step,Y=b.lskip,aa=b.ppp,da=b.offset,ga=b.pvr,ja=this._visw,ia=this._visout,ha=this._lcmd,ea,ma="M",oa,na,sa=u&&u[0],ua,xa,va=g[0],ta={},wa={},l,Fa,X,ra=0,Ca,ya,za,Aa=-b.norm,a=b.ddsi,m=0,c,d,n=E.tooltipSepChar,Ba;sa&&(u.group.transform(["T",-da,0]),za=u.wrap,ua=u._height,xa=u._width,za&&p.setStyle(u.css));u=function(a,b){var d=a&&a.length,c=Math.max.apply(Math,a),e=Math.min.apply(Math,a),f=0;if(c>G||e<H)for(;f<d;){e=a[f];if(e>G||e<H)c=b+f,Ba(e,
c,c,!0);f+=1}};for(Ba=function(a,f,h,q){var p=void 0,k=void 0,u=void 0;ba||(d=c+n+t.yAxis(a),d=b.plotName&&b.plotName+n+d||d);Ca=ra/3+m;Fa=h*aa;ea=Fa-da;if(void 0===(oa=e[f])){if(L)ma="M",l=ia,ea=Fa-da,X=ia;else{if(0===Ca){for(p=f;0<p&&(--p,k=e[p],void 0===k););k&&(Fa=p*aa*-1,l=ia,M[ra++]=ma,M[ra++]=Fa,M[ra++]=X=(k-b._yminValue)*ga,ma="L")}if(f===y){for(p=f;p<T&&(p+=1,u=e[p],void 0===u););u&&(Fa=p*aa,l=ia,M[ra++]=ma,M[ra++]=Fa,M[ra++]=X=(u-b._yminValue)*ga,ma="L")}}m++}else M[ra++]=ma,M[ra++]=l=ea=
Fa-da,M[ra++]=X=(oa-b._yminValue)*ga,ma="L";va&&(va=va.attr((ta.cx=l,ta.cy=X,ta)).next);q&&g.push(s.circle(w,x))};a<=y;a+=S,Aa+=S)c=this.getParsedLabel(a),Ba(e[a],a,Aa),!sa||Ca%Y||(ya=sa.attrs,na=c,ea=0>ea||ea>ja?ia:Fa,sa._prevtext===na?delete wa.text:wa.text=sa._prevtext=na,ya[ha]===ea?delete wa[ha]:wa[ha]=ea,za&&na&&(wa.text=p.getSmartText(na,xa,ua).text),sa=sa.attr(wa).next),D&&1<S&&(na=Ma(a+1,y),ya=Ma(na+S,y),ya=ya===y?e.slice(na):e.slice(na,ya),u(ya,na));y>=T&&va&&va.attr((ta.cx=ia,ta.cy=ia,
ta));f.attr("path",M);ba||function(a,b,c){var e=c.plotName;f.tooltipListenerAttached||(f.tooltipListenerAttached=!0,f.mousemove(function(c){var g=a._zoominfo,l=a._visx,m=g.step,n=g.ppp*m;c=Sa(a.container,c).chartX-l;var p,l=E.tooltipSepChar;c=(c+=n/2+g.offset)-c%n;p=(p=a.getValuePixel(c))+p%m;d=a.getParsedLabel(p)+l+t.yAxis(b[p]);d=e&&e+l+d||d;f.tooltip(d)}))}(this,e,b)},legendClick:function(b){var e=!b.visible,f=e?"show":"hide";b.group[f]();b.anchorGroup[f]();this.base.legendClick.apply(this,arguments);
return b.visible=e},dispose:function(){var b;this.crossline&&(this.crossline.dispose(),delete this.crossline);(b=this.elements.pintracker)&&(b.undrag(),delete this.elements.pintracker);delete this.zoomOutButton;delete this.resetButton;delete this.pinButton;this.xlabels&&(this.xlabels.length=0);delete this.xlabels;this.base.dispose.apply(this)}},Ka["renderer.cartesian"]);ua=function(b,e){var f=b.paper,g=b.options.chart,u=this.left=b._visx,w=this.width=b._visw,x=this.top=b.canvasTop,p=this.height=b.canvasHeight,
s=this._visout=b._visout,t=this.plots=b.plots,E=b.layers.dataset,ba,D=e.labelstyle,G=e.valuestyle;ba=this.group=f.group("crossline-labels",E).attr({transform:["T",u,b._ymin]});this.tracker=f.rect(u,x,w,p,E).attr({stroke:"none","stroke-width":0,fill:sa}).toFront().mousedown(this.onMouseDown,this).mouseup(this.onMouseUp,this,!0).mouseout(this.onMouseOut,this).mousemove(this.onMouseMove,this);Ha&&this.tracker.touchstart(this.onMouseMove,this);this.container=b.container;this.line=f.path(void 0,E).attr(ja({path:["M",
u,x,"l",0,p]},e.line)).toBack();u=this.labels=e.valueEnabled&&f.set();e.labelEnabled&&(this.positionLabel=f.text(s,x+p+(g.scrollHeight||0)+2.5,"").insertAfter(b.xlabels.group.parent).css(D).attr({"vertical-align":"top",direction:g.textDirection,"text-bound":["rgba(255,255,255,1)","rgba(0,0,0,1)",1,2.5]}));this.hide();this.pixelRatio=b._ypvr;this.yminValue=b._yminValue;this.positionLabels=b.xlabels||{data:[],parsed:[]};this.getZoomInfo=function(){return b._zoominfo};this.getDataIndexFromPixel=function(e){return b.getValuePixel(e)};
this.getPositionLabel=function(e){return b.getParsedLabel(e)};if(e.valueEnabled){x=0;for(p=t.length;x<p;x++)D=t[x],D=D.graphic.attrs.stroke,u.push(f.text(0,s,"",ba).css(G).attr({fill:D,direction:g.textDirection,"text-bound":["rgba(255,255,255,0.8)","rgba(0,0,0,0.2)",1,2.5]}));this.numberFormatter=b.numberFormatter}};ua.prototype.disable=function(b){void 0!==b&&(this.disabled=!!b)&&this.visible&&this.hide();return this.disabled};ua.prototype.onMouseOut=function(){this.hide()};ua.prototype.onMouseDown=
function(){!Ha&&this.hide();this._mouseIsDown=!0};ua.prototype.onMouseUp=function(){!Ha&&this.hide();delete this._mouseIsDown};ua.prototype.onMouseMove=function(b){if(!(this.disabled||this._mouseIsDown&&!Ha)){var e=this.getZoomInfo(),f=this.line,g=this.left,u=e.step,w=e.ppp*u;b=Sa(this.container,b).chartX-g;var x;b=(b+=w/2+e.offset)-b%w;x=(x=this.getDataIndexFromPixel(za(b)))+x%u;b-=e.offset;f.transform(["T",T(b),0]);this.hidden&&this.show();if(x!==this.position||this.hidden)this.position=x,this.lineX=
b,this.updateLabels()}};ua.prototype.updateLabels=function(){var b=this,e=b.labels,f=b.plots,g=b.width,u=b.position,w=b.lineX,x=T(w),p=b.pixelRatio,s=b.yminValue,t=b._visout,E=b.numberFormatter;e&&e.forEach(function(e,D){var G=f[D],H=G.data[u],M,L;e.attr({text:E.xAxis(H)});M=e.getBBox();L=.5*M.width+10;M=M.height;G=void 0!==H&&G.visible?(H-s)*p:t;G<-1*(b.height-M)?G+=M:G>s*p-M&&(G-=M);e.attr({x:La(0,Ma(x,g)),y:G,"text-anchor":w<=L&&"start"||w+L>=g&&"end"||"middle"})});b.positionLabel&&b.positionLabel.attr({x:w+
b.left,text:b.getPositionLabel(u)})};ua.prototype.show=function(){this.disabled||(this.hidden=!1,this.group.attr("visibility","visible"),this.line.attr("visibility","visible"),this.positionLabel&&this.positionLabel.attr("visibility","visible"))};ua.prototype.hide=function(){this.hidden=!0;this.group.attr("visibility","hidden");this.line.attr("visibility","hidden");this.positionLabel&&this.positionLabel.attr("visibility","hidden")};ua.prototype.dispose=function(){for(var b in this)this.hasOwnProperty(b)&&
delete this[b]};f.addSymbol({pinModeIcon:function(b,e,f){var g=.5*f,u=b-f,w=b+f,x=b-g,p=b+g,s=b+.5,t=s+1,E=s+1.5,T=e-f,D=e+g,G=e-g,g=e+(f-g);return["M",u,T,"L",x,G,x,g,u,D,b-.5,D,b,e+f+.5,s,D,w,D,p,g,p,G,w,T,E,T,E,G,E,g,t,g,t,G,E,G,E,T,"Z"]},zoomOutIcon:function(b,e,g){b-=.2*g;e-=.2*g;var x=.8*g,u=f.rad(43),w=f.rad(48),E=b+x*aa(u),u=e+x*xa(u),p=b+x*aa(w),w=e+x*xa(w),s=f.rad(45),t=E+g*aa(s),T=u+g*xa(s),Y=p+g*aa(s);g=w+g*xa(s);return["M",E,u,"A",x,x,0,1,0,p,w,"Z","M",E+1,u+1,"L",t,T,Y,g,p+1,w+1,"Z",
"M",b-2,e,"L",b+2,e,"Z"]},resetIcon:function(b,e,f){var g=b-f,u=(ta.PI/2+ta.PI)/2;b+=f*aa(u);var u=e+f*xa(u),w=2*f/3;return["M",g,e,"A",f,f,0,1,1,b,u,"L",b+w,u-1,b+2,u+w-.5,b,u]}})}]);

/*
 FusionCharts JavaScript Library
 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>

 @version 3.7.0
*/
FusionCharts.register("module",["private","modules.renderer.js-messagelogger",function(){var Y=this.hcLib,cb=Y.Raphael,Ua,Za=Y.isIE,Ga=Y.graphics.HEXtoRGB,y=Y.graphics.convertColor,Aa,L,$a,oa,q,D,h,ea,ta,K,T,X,ca,Oa,Ha=this.window,ma=Ha.document,tb=8===ma.documentMode,V=!0,W=!1,F=Y.pluck,pa=Y.pluckNumber,ub=Y.FC_CONFIG_STRING,Ba={display:"block",paddingLeft:"10px",paddingRight:"10px","font-family":"Arial","font-size":"11px"},w=function(h,q){var u=this,D;q||(q="");for(D=u.indexOf(h);-1!==D;)u=u.replace(h,
q),D=u.indexOf(h);return u};Oa=function(w,F,u){var L=w.hcJSON,T=L&&L[ub],K=F&&F.chartWidth,O=F&&F.chartHeight,L=oa/100*K,ca=q/100*O,da=(K-L)/2,pa=(O-ca)/2,ma=L-18-22,ha=ca-18-22,Ba=ea,ta=ea;w=u.html("div",{fill:"transparent",width:K,height:O},{fontSize:"10px",lineHeight:"15px",fontFamily:(T&&T.inCanvasStyle||w.inCanvasStyle).fontFamily},F&&F.container);w.veil=u.html("div",{id:"veil",fill:"000000",width:K,height:O,opacity:.1},void 0,w).on("click",function(){X&&Y.messageLogger.close()});h&&D&&(w.title=
u.html("p",{id:"Title",innerHTML:h,x:5,y:5},{"font-weight":"bold"},w));w.dialog=u.html("div",{id:"dialog",x:da,y:pa,fill:"ffffff",strokeWidth:1,stroke:Ba,width:L,height:ca},{borderRadius:"5px",boxShadow:"1px 1px 3px #000000","-webkit-border-radius":"5px","-webkit-box-shadow":"1px 1px 3px #000000",filter:'progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color="#000000")'},w);w.logBackground=u.html("div",{id:"dialogBackground",x:0,y:0,fill:ta,width:L,height:ca},void 0,w.dialog);X&&
(w.closeBtnContainer=u.html("div",{id:"closeBtnContainer",width:18,height:18,x:da+L-21,y:pa+3},{},w),F=new cb("closeBtnContainer",18,18),K=F.group("closeGroup"),w.closeButton=F.symbol("closeIcon",0,0,6,K).attr({transform:"t9,9","stroke-width":2,stroke:y("999999"),ishot:!0,"stroke-linecap":"round","stroke-linejoin":"round"}).css({cursor:"pointer",_cursor:"hand"}).click(function(){Y.messageLogger.close()}));w.logWrapper=u.html("div",{id:"logWrapper",x:(L-ma)/2,y:(ca-ha)/2,width:ma,height:ha},{overflow:"auto"},
w.dialog).on("scroll",function(){var h=this&&this.scrollTop,q=this&&this.scrollHeight,u=this&&this.offsetHeight;W?W=!1:V=q-h===u?!0:!1});w.log=u.html("div",{id:"log",x:0,y:0},{},w.logWrapper);w.hide();return w};Ua=function(h,q,u,w){if(Y.messageLogger)return Y.messageLogger;this.chart=h;this.instanceAPI=q;this.renderer=u;this.paper=w;this.menuCreated=!1;this.log=(h=this.ui=Oa(q,u,w))&&h.log;h&&this.updateStatus("INITIALIZED")};Ua.prototype={STATUS:"",updateStatus:function(h){var q=this.renderer,q=
q&&q.menu instanceof Array&&q.menu[0];this.status=h;switch(q&&this.status.toLowerCase()){case "initialized":Aa?q.hideItem(4):q.hideItem(1);break;case "closed":Aa?q.showItem(3):q.showItem(0);Aa?q.hideItem(4):q.hideItem(1);break;case "active":Aa?q.showItem(4):q.showItem(1),Aa?q.hideItem(3):q.hideItem(0)}},appendMessage:function(h){var q=this.status,u=F(h.msgid,""),D=F(h.msgtitle,""),y=F(h.msgtext,""),L=h&&F(h.msgtype,"literal"),O=h&&!!pa(h.clearlog,0),ca=h&&!!pa(h.hidelog,0),da=h&&!!pa(h.showlog,0),
oa=h&&!!pa(h.msggoestolog,$a),Y=h&&!!pa(h.msggoestojs,ta);oa&&"INITIALIZED"===q&&this.updateStatus("CLOSED");ca&&this.close();O&&this.clear();da&&this.open();oa&&"ACTIVE"!==this.status&&this.show();if((""!==D&&void 0!==D||""!==y&&void 0!==y)&&this.log&&oa){var q=this.log,O=h&&h.msgtitle,ca=h&&h.msgtext,da=h&&F(h.msgtype,"literal"),ha,X;h="";var ea,Da,ka;q&&q.element&&(ea=q.element);ea&&(Da=ea.parentElement);O&&(O+=" : ");switch(da.toLowerCase()){case "info":O&&(ha='<span style="color: #005900">$titleVal$</span>');
ca&&(X="<span>$msgVal$</span>");break;case "literal":O&&(ha='<span style="color: #005900">$titleVal$</span>');ca&&(X="<span>$msgVal$</span>");break;case "error":O&&(ha='<span style="color: #CC0000">$titleVal$</span>');ca&&(X='<span style="color: #CC0000">$msgVal$</span>');break;case "link":O&&(ha='<span style="color: #005900">$titleVal$</span>');ca&&(X='<a href="$msgVal$">$msgVal$</a>');break;default:O&&(ha='<span style="color: #005900">$titleVal$</span>'),ca&&(X="<span>$msgVal$</span>")}ha&&(ha=
ha.replace("$titleVal$",O),h+=ha);X&&(X=w.call(X,"$msgVal$",ca),h+=X);if(ea&&h){ha=ma.createElement("span");for(ka in Ba)ha.style[ka]=Ba[ka];ha.innerHTML=h;ea.appendChild&&ea.appendChild(ha);Za&&tb&&(ka=ea.innerHTML,ea.innerHTML=ka);V&&(W=!0,ea=Da.scrollHeight,Da.scrollTop=ea)}Za||(this.ui.element.scrollHeight+=30,this.ui.element.scrollTop=this.ui.element.scrollHeight)}Y&&K&&(Y=Ha[K],"function"===typeof Y&&(T?Y(u,D,y,L):Y(y)))},hide:function(){"ACTIVE"===this.status&&(this.ui.hide(),this.updateStatus("BEFORE CLOSE"))},
close:function(){"ACTIVE"===this.status&&(this.ui.hide(),this.updateStatus("CLOSED"))},open:function(){"ACTIVE"!==this.status&&(this.ui.show(),this.updateStatus("ACTIVE"))},show:function(){"ACTIVE"!==this.status&&"CLOSED"!==this.status&&(this.ui.show(),this.updateStatus("ACTIVE"))},clear:function(){var h=this.log;if(h=h&&h.element)for(;h.hasChildNodes();)h.removeChild(h.lastChild)},destroy:function(){this.hide();this.updateStatus("DESTROYED");Y.messageLogger=null;delete Y.messageLogger;return null}};
Ua.prototype.constructor=Ua;this.core.addEventListener(["rendered","dataupdated","resized"],function(w){var F=w&&w.sender;w=w&&w.eventType;var u=F&&F.jsVars,y=u&&u.hcObj,W=y&&y.options,V=u&&u.instanceAPI,O=V&&V.renderer,y=O&&O.paper,W=W&&W.chart,ma=F&&F.options,ma=ma&&ma.renderer,da=Y&&Y.messageLogger,Ba=da&&da.status,Oa=u&&u._reflowData,ha=Oa&&Oa._messageLogger||{},u=ha&&ha.appendedMessages,Ha;if(!ma||"javascript"===ma.toLowerCase())if(L=W&&W.useMessageLog){W&&(Aa=W.showRTMenuItem,$a=W.messageGoesToLog,
ta=W.messageGoesToJS,K=W.messageJSHandler,T=W.messagePassAllToJS,oa=W.messageLogWPercent,q=W.messageLogHPercent,D=W.messageLogShowTitle,h=W.messageLogTitle,X=W.messageLogIsCancelable,ea=W.messageLogColor,ea=ea.replace(/^#?([a-f0-9]+)/ig,"$1"),Ga(ea),ca=W.alwaysShowMessageLogMenu);da&&(da=Y.messageLogger=da.destroy());Ha=(da=Y.messageLogger=new Ua(F,V,O,y))&&da.ui&&da.ui.log&&da.ui.log.element;if("resized"===w)switch(u&&(Ha.innerHTML=u),Ba.toLowerCase()){case "active":da.ui.show();da.updateStatus(Ba);
break;case "closed":da.updateStatus(Ba)}ca&&(da.menuCreated=!0);F.addEventListener("RealTimeUpdateComplete",function(h,q){var u=q&&q.updateObject,w=u&&u.msgtitle,D=u&&u.msgtext,y=u&&pa(u.showlog,0),W=u&&pa(u.hidelog,0),T=u&&pa(u.clearlog,0);if(w||D||y||W||T)!L||Aa||!$a||ca||da.menuCreated||(V.drawMLMenuButtons.call(O,F),da.menuCreated=!0),da.appendMessage(u),ha.appendedMessages=Ha&&Ha.innerHTML,Oa._messageLogger=ha});F.addEventListener("beforeDispose",function(){da&&da.destroy()})}})}]);
FusionCharts.register("module",["private","modules.renderer.js-realtime",function(){var Y=this,cb=Y.window,Ua=Math,Za=Ua.random,Ga=Ua.max,y=Y.hcLib.pluckNumber,Aa=function(y,q,D){clearTimeout(D);return setTimeout(y,q)},L,$a;L=function(y){var q=y.sender,D=q.jsVars;y=q.__state;var h=D.instanceAPI,L=h.hcJSON,ta=h.numberFormatter,K=L&&L.alerts&&L.alerts.alert||[],D=D._rtLastUpdatedData&&D._rtLastUpdatedData.values,T=K.length,X;if(D&&D.length){h=function(h){var D,y=ta.getCleanValue(h),L,X=function(h){return function(){eval(h.param)}};
for(L=0;L<T;L+=1)if(h=K[L],D=h.action&&h.action.toLowerCase(),h.minvalue<y&&h.maxvalue>y){if("1"!==h.occuronce||!h.hasOccurred){h.hasOccurred=!0;h.state="1";switch(D){case "calljs":setTimeout(X(h),0);break;case "showannotation":q.showAnnotation&&q.showAnnotation(h.param)}Y.raiseEvent("AlertComplete",null,h)}}else"showannotation"===D&&"1"===h.state&&q.hideAnnotation&&q.hideAnnotation(h.param),h.state="2"};L=Ga(D.length,0);for(X=0;X<L;X+=1)y.lastSetValues&&D[X]===y.lastSetValues[X]||h(D[X]);y.lastSetValues=
D}};$a=function(oa){var q=oa.sender,D=q.__state,h,ea,ta,K,T,X,ca,Oa,Ha,ma,Ga,V;D.dataSetDuringConstruction&&!D.rtStateChanged&&void 0===D.rtPreInit&&(q.dataReady()?(D.rtStateChanged=!0,D.rtPreInit=!0):D.rtPreInit=!1);D.rtStateChanged&&(D.rtStateChanged=!1,h=q.jsVars,ea=h.hcObj)&&(ta=ea.logic,T=(K=ea.options)&&K.chart||{},X=1E3*y(T.updateInterval,T.refreshInterval),ca=1E3*y(T.clearInterval,0),Oa=T.dataStreamURL,Ha=T.dataStamp,T=Boolean(ta&&ta.realtimeEnabled&&0<X&&void 0!==Oa&&T),K=K&&K.plotOptions&&
K.plotOptions.series.animation&&K.plotOptions.series.animation.duration||0,ma=D._rtAjaxObj,Ga=function(){q.clearChart&&q.clearChart();ca&&(D._toClearChart=setTimeout(Ga,ca))},V=function(){var h=Oa,h=h+((-1===Oa.indexOf("?")?"?num=":"&num=")+Za());Ha&&(h+="&dataStamp="+Ha);ma.open&&ma.abort();ma.get(h);D._rtAjaxLatencyStart=new Date},0>=X?(D._toRealtime=clearTimeout(D._toRealtime),ma&&ma.abort()):10>X&&(X=10),D._toClearChart=clearTimeout(D._toClearChart),0<ca&&(10>ca?ca=10:D._toClearChart=setTimeout(Ga,
ca)),D._rtStaticRefreshMS=X,T&&(void 0===D._rtPaused&&(D._rtPaused=!1),D._rtDataUrl=Oa,D.lastSetValues=null,ma=D._rtAjaxObj||(D._rtAjaxObj=new Y.ajax),ma.onSuccess=function(y,F,L,T){if(!q.disposed){var K=h.hcObj&&h.hcObj.logic;L=K.linearDataParser&&K.linearDataParser(y,K.multisetRealtime);D._rtAjaxLatencyStart&&(D._rtAjaxLatency=new Date-D._rtAjaxLatencyStart);if(q.isActive()&&L&&ea&&(ea.realtimeUpdate||K.realtimeUpdate)){Ha=L.dataStamp?L.dataStamp:null;L.interval=1E3>X?X:1E3;F=q.getDataJSON();ea.realtimeUpdate?
ea.realtimeUpdate(L):K.realtimeUpdate(L);h._rtLastUpdatedData=K.multisetRealtime?L:q.getDataJSON();K=(K.realtimeDrawingLatency||0)+(D._rtAjaxLatency||0);Y.raiseEvent("realtimeUpdateComplete",{data:y,updateObject:L,prevData:F.values,source:"XmlHttpRequest",url:T,networkLatency:D._rtAjaxLatency,latency:K},oa.sender);try{cb.FC_ChartUpdated&&cb.FC_ChartUpdated(oa.sender.id)}catch(w){setTimeout(function(){throw w;},1)}D._rtPaused||(K>=D._rtStaticRefreshMS&&(K=D._rtStaticRefreshMS-1),D._toRealtime=setTimeout(V,
D._rtStaticRefreshMS-K))}else D._toRealtime=clearTimeout(D._toRealtime)}},ma.onError=function(h,F,y,L){D._rtAjaxLatencyStart&&(D._rtAjaxLatency=new Date-D._rtAjaxLatencyStart);Y.raiseEvent("realtimeUpdateError",{source:"XmlHttpRequest",url:L,xmlHttpRequestObject:F.xhr,error:h,httpStatus:F.xhr&&F.xhr.status?F.xhr.status:-1,networkLatency:D._rtAjaxLatency},oa.sender);D._toRealtime=q.isActive()?setTimeout(V,X):clearTimeout(D._toRealtime)},D._rtPaused||(D._toRealtime=Aa(V,K>X?K:X,D._toRealtime))),q.removeEventListener("realtimeUpdateComplete",
L),ta.dataObj&&ta.dataObj.alerts&&ta.dataObj.alerts&&ta.dataObj.alerts.alert&&ta.dataObj.alerts.alert.length&&q.addEventListener("realtimeUpdateComplete",L))};Y.addEventListener(["beforeDataUpdate","beforeRender"],function(y){y=y.sender;var q=y.__state;y.jsVars&&(y.jsVars._rtLastUpdatedData=null);q._toRealtime&&(q._toRealtime=clearTimeout(q._toRealtime));q._toClearChart&&(q._toClearChart=clearTimeout(q._toClearChart));q._rtAjaxLatencyStart=null;q._rtAjaxLatency=null});Y.addEventListener(["renderComplete",
"dataUpdated"],function(y){var q=y.sender.__state;q&&(void 0===q.rtPreInit&&(q.rtPreInit=!1),q._rtPaused&&delete q._rtPaused,q.rtStateChanged||(q.rtStateChanged=!0,$a.apply(this,arguments)))});Y.core.addEventListener("beforeDispose",function(y){y=y.sender.__state;y._toRealtime&&(y._toRealtime=clearTimeout(y._toRealtime));y._toClearChart&&(y._toClearChart=clearTimeout(y._toClearChart))});Y.core.addEventListener("drawComplete",$a)}]);
FusionCharts.register("module",["private","modules.renderer.js-widgets",function(){function Y(){}function cb(a,e,c,d){e=h(e,d);a=h(a,c);return e&&a?a/c==e/d?c/a:Math.min(c/a,d/e):1}function Ua(a,e){var c=a.labels,d=c._textY,b=c._righttX,c=c._leftX,f,m,g=e.length;for(f=0;f<g;f+=1)if(m=e[f]&&e[f].label)m.y=d,m.x=m.align===bb?b:c}function Za(a,e,c,d){var b,f,m,g,n,p;c instanceof Array||(c=this.colorManager.getPlotColor(0));if(a&&0<a.length){for(f=m=a.length-1;0<=f;--f)if(b=a[f])b.minvalue=d.numberFormatter.getCleanValue(b.minvalue),
b.maxvalue=d.numberFormatter.getCleanValue(b.maxvalue),null===b.minvalue&&(null!==b.maxvalue?b.minvalue=b.maxvalue:f!==m&&a.splice(f,1)),void 0!==b.label&&(b.label=O(b.label)),void 0!==b.name&&(b.name=O(b.name)),null!==b.maxvalue&&b.minvalue>b.maxvalue&&(g=b.minvalue,b.minvalue=b.maxvalue,b.maxvalue=g);a.sort(Hb);a[0].code||(a[0].code=c[0]);void 0===D(a[0].alpha)&&(a[0].alpha=Fa);f=0;for(m=a.length-1;f<m;f+=1)if(g=f+1,b=a[f],d=a[g],d.code||(d.code=c[g]),void 0===D(d.alpha)&&(d.alpha=Fa),null===b.maxvalue&&
(b.maxvalue=d.minvalue),b.maxvalue>d.minvalue){if(b.maxvalue>d.maxvalue){g=T(b);g.maxvalue=b.maxvalue;p=g.minvalue=d.maxvalue;for(n=f+2;n<m&&a[n].minvalue<p;n+=1);a.splice(n,0,g);m+=1}b.maxvalue=d.minvalue}b=a[f];null===b.maxvalue&&(b.maxvalue=b.minvalue)}a&&0<a.length||(e||(e={code:"CCCCCC",alpha:"100",bordercolor:"000000",borderalpha:"100"}),a=[e],this.defaultAsigned=!0);this.colorArr=a}var Ga=this,y=Ga.hcLib,Aa=y.Raphael,L=y.BLANKSTRING,$a=y.createTrendLine,oa=y.createContextMenu,q=y.pluck,D=y.getValidValue,
h=y.pluckNumber,ea=y.getFirstDefinedValue,ta=y.getColorCodeString,K=y.FC_CONFIG_STRING,T=y.extend2,X=y.getDashStyle,ca=y.hashify,Oa=y.hasSVG,Ha=y.falseFN,ma=y.getFirstValue,tb=y.getFirstColor,V=y.graphics.getDarkColor,W=y.graphics.getLightColor,F=y.graphics.convertColor,pa=y.graphics.parseColor,ub=y.graphics.parseAlpha,Ba=y.COLOR_TRANSPARENT,w=y.chartAPI,ab=y.parseTooltext,Ob=w.singleseries,u=y.COMMASTRING,db=y.ZEROSTRING,Eb=y.ONESTRING,Pb=/\\,/ig,O=y.parseUnsafeString,Qb=y.HCstub,da=Ga.window,Ra=
/msie/i.test(da.navigator.userAgent)&&!da.opera,ob=y.regex.hexcode,ha="rgba(192,192,192,"+(Ra?.002:1E-6)+")",Rb=parseFloat,Sb=parseInt,Da=Math,ka=Da.round,Fb=Da.ceil,va=Da.max,Ja=Da.min,vb=Da.abs,Gb=Da.atan2,ga=Da.pow,kb=Da.sqrt,eb=Da.PI/180,fb=y.regex.dropHash,wb=y.toPrecision,Tb=y.isArray,hb=y.HASHSTRING,S=y.toRaphaelColor,Da=y.TOUCH_THRESHOLD_PIXELS,Ub=y.CLICK_THRESHOLD_PIXELS,xb=void 0!==da.document.documentElement.ontouchstart,yb=xb?Da:Ub,Vb=y.getPosition,qa=y.plotEventHandler,Hb,zb,Ab,Bb,Va,
Ib,Jb,Kb,Wb={left:"start",right:"end",center:"middle"},pb={"true":void 0,"false":"crisp"},Cb=function(a,e,c){var d=0,b=a.length;if(c)for(;d<b;d++){if(!1===e.call(c,a[d],d,a))return d}else for(;d<b;d++)if(!1===e.call(a[d],a[d],d,a))return d},xa=function(a,e){var c;a||(a={});for(c in e)a[c]=e[c];return a},lb=function(a){return"object"===typeof a},Ea=function(a){return"string"===typeof a},$=function(a){return void 0!==a&&null!==a},qb=Ra&&!Oa?"visible":"",rb=y.regex.startsRGBA,Ka=y.setLineHeight,Lb=y.pluckFontSize,
La=y.POSITION_MIDDLE,Wa=y.POSITION_TOP,mb=y.POSITION_BOTTOM,bb=y.POSITION_RIGHT,Ia=y.POSITION_LEFT,ya=y.POSITION_MIDDLE,Fa=y.HUNDREDSTRING,jb=y.PXSTRING,Mb=y.COMMASPACE,sa={right:"end",left:"start",middle:"middle",start:"start",end:"end",center:"middle",undefined:"","":""},Xb=function(){return function(a,e,c){var d,b=this,f=this._Attr,m=Aa.vml?-1.5:0,g=Aa.vml?-1.5:0,n;f||(f=b._Attr={});Ea(a)&&$(e)&&(d=a,a={},a[d]=e);if(Ea(a)||void 0===a)b="angle"==a?b._Attr[a]:b._attr(a);else for(d in a)e=a[d],"angle"===
d?(f[d]=e,n=e*eb,f.tooltipPos[0]=f.cx+f.toolTipRadius*Math.cos(n),f.tooltipPos[1]=f.cy+f.toolTipRadius*Math.sin(n),f.prevValue=e,c&&c.duration?b.animate({transform:"R"+e+","+m+","+g},c.duration,"easeIn"):b.attr({transform:"R"+e+","+m+","+g})):b._attr(d,e);return b}},nb=function(a){var e=[],c;(function(a){(c=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(a))?e=[parseInt(c[1],10),parseInt(c[2],10),parseInt(c[3],10),parseFloat(c[4])]:(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a))&&
(e=[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16),1])})(a);return{get:function(c){return e&&!isNaN(e[0])?"rgb"===c?"rgb("+e[0]+","+e[1]+","+e[2]+")":"hex"===c?"#"+("000000"+(e[0]<<16|e[1]<<8|e[2]).toString(16)).slice(-6):"a"===c?e[3]:"rgba("+e.join(",")+")":a},brighten:function(a){if(!isNaN(a)&&0!==a){var b;for(b=0;3>b;b++)e[b]+=parseInt(255*a,10),0>e[b]&&(e[b]=0),255<e[b]&&(e[b]=255)}return this},setOpacity:function(a){e[3]=a;return this}}},Ra=T({},y.defaultGaugePaletteOptions);Y.prototype=
{numDecimals:function(a){a=wb(a,10);a=Math.abs(a);a=wb(a-Math.floor(a),10);a=String(a).length-2;return 0>a?0:a},toRadians:function(a){return a/180*Math.PI},toDegrees:function(a){return a/Math.PI*180},flashToStandardAngle:function(a){return-1*a},standardToFlashAngle:function(a){return-1*a},flash180ToStandardAngle:function(a){var e=360-(0>(a%=360)?a+360:a);return 360==e?0:e},getAngularPoint:function(a,e,c,d){d*=Math.PI/180;a+=c*Math.cos(d);e-=c*Math.sin(d);return{x:a,y:e}},remainderOf:function(a,e){var c=
a%e,d=void 0,d=ga(10,void 0===d?2:d),c=ka(Number(String(c*d)));return c/=d},boundAngle:function(a){return 0<=a?Y.prototype.remainderOf(a,360):360-Y.prototype.remainderOf(Math.abs(a),360)},toNearestTwip:function(a){var e=0>a?-1:1;a=Math.abs(a);a=ka(100*a);var c=Math.floor(a/5);return(2<Number(String(a-5*c))?5*c+5:5*c)/100*e},roundUp:function(a,e){var c=ga(10,void 0===e?2:e);a=ka(Number(String(a*c)));return a/=c}};Y.prototype.constructor=Y;y.MathExt=Y;zb=function(a,e,c,d,b,f,m,g){var n=a[K].smartLabel,
p=e.chart,k=a.chart,l,s,r=0;e=a.title;m=a.subtitle;var v=e.text,t=m.text;b=h(p.captionpadding,b,2);var H=0,G=0,r=0,z=h(p.captiononright,0),q=D(p.captionposition,"top").toLowerCase(),p=0,A={left:0,right:0};g=g.snapLiterals||(g.snapLiterals={});var x=0,C=0;v!==L&&(l=e.style,H=h(parseInt(l.fontHeight,10),parseInt(l.lineHeight,10),12),h(parseInt(l.fontSize,10),10));t!==L&&(s=m.style,G=h(parseInt(s.fontHeight,10),parseInt(s.lineHeight,10),12),r=h(parseInt(s.fontSize,10),10));if(0<H||0<G){n.setStyle(l);
l=n.getSmartText(e.text,c,d);0<l.width&&(l.width+=2,p=l.height);n.setStyle(s);s=n.getSmartText(m.text,c,d-p);0<s.width&&(s.width+=2);n=l.height+0+r/2;switch(q){case "middle":e.y=d/2-l.height;m.y=e.y+n;break;case "bottom":m.y=d-k.marginBottom-k.marginTop-s.height;e.y=m.y-(0<l.height?n:0);break;default:e.y=0,m.y=n}r=Math.max(l.width,s.width);a.title.text=l.text;l.tooltext&&(a.title.originalText=l.tooltext);a.subtitle.text=s.text;s.tooltext&&(a.subtitle.originalText=s.tooltext);0<r&&(r+=b);a=Math.min(r,
c);z?(e.align=m.align=sa.start,A.right=a,e.x=f-r+b,m.x=f-r+b):(e.align=m.align=sa.end,A.left=a,e.x=r-b,m.x=r-b,x=a,C=s.width);e._captionWidth=l.width;m._subCaptionWidth=s.width;g.captionstartx=e.x-x;g.captionstarty=e.y;g.captionwidth=l.width;g.captionheight=p||0;g.captionendx=g.captionstartx+g.captionwidth;g.captionendy=g.captionstarty+g.captionheight;g.subcaptionstartx=m.x-C;g.subcaptionstarty=m.y;g.subcaptionwidth=0<s.width?s.width:0;g.subcaptionheight=0<s.height?s.height:0;g.subcaptionendx=g.subcaptionstartx+
g.subcaptionwidth;g.subcaptionendy=g.subcaptionstarty+g.subcaptionheight}return A};Ab=function(a,e,c,d,b,f){var m=a.chart,g=e.chart;e=a.title;var n=h(g.captionpadding,2),g=h(g.captiononright,0);a=a.subtitle;f=f.snapLiterals;var p=0,k=0;m.spacingRight=m.spacingLeft=0;$(d)||(d=0);$(b)||(b=0);g?(c-=m.marginRight,a.align=e.align=sa.start,e.x=a.x=c+n+b+2):(a.align=e.align=sa.end,e.x=a.x=m.marginLeft-m.spacingLeft-n-d-2,p=e._captionWidth,k=a._subCaptionWidth);f.captionstartx=e.x-p;f.subcaptionstartx=a.x-
k;f.captionendx=f.captionstartx+f.captionwidth;f.subcaptionendx=f.subcaptionstartx+f.subcaptionwidth};Bb=function(a,e,c,d,b){this.userMin=a;this.userMax=e;this.numMajorTM=h(d.majorTMNumber,-1);this.numMinorTM=h(d.minorTMNumber,5);this.adjustTM=d.adjustTM;this.tickValueStep=h(d.tickValueStep,1);this.showLimits=h(d.showLimits,1);this.showTickValues=h(d.showTickValues,1);this.nf=b;this.stopMaxAtZero=c;this.setMinAsZero=!d.setAdaptiveMin;this.upperLimitDisplay=d.upperLimitDisplay;this.lowerLimitDisplay=
d.lowerLimitDisplay;this.userMaxGiven=null===this.userMax||void 0===this.userMax||""===this.userMax?!1:!0;this.userMinGiven=null===this.userMin||void 0===this.userMin||""===this.userMin?!1:!0;this.majorTM=[];this.minorTM=[];this.MathExt=new Y};Bb.prototype={setAxisCoords:function(a,e){this.startAxisPos=a;this.endAxisPos=e},calculateLimits:function(a,e){var c=!0,d=!0,b=Number(this.userMax),f=Number(this.userMin),m,g;if(this.userMaxGiven&&this.userMinGiven)a=b,e=f;else if(isNaN(a)&&(a=.9,d=!1),isNaN(e)&&
(e=0,c=!1),a===e&&0===a&&(isNaN(b)||(a=b),isNaN(b)||0===b))a=.9;f=Math.floor(Math.log(Math.abs(a))/Math.LN10);m=Math.floor(Math.log(Math.abs(e))/Math.LN10);m=Math.max(m,f);f=ga(10,m);2>Math.abs(a)/f&&2>Math.abs(e)/f&&(m--,f=ga(10,m));m=Math.floor(Math.log(a-e)/Math.LN10);m=ga(10,m);0<a-e&&10<=f/m&&(f=m);m=(Math.floor(a/f)+1)*f;0>e?g=-1*(Math.floor(Math.abs(e/f))+1)*f:this.setMinAsZero?g=0:(g=Math.floor(Math.abs(e/f)-1)*f,g=0>g?0:g);this.stopMaxAtZero&&0>=a&&(m=0);this.max=!1===this.userMaxGiven||
!0===this.userMaxGiven&&b<a&&d?m:b;this.min=!1===this.userMinGiven||!0===this.userMinGiven&&Number(this.userMin)>e&&c?g:Number(this.userMin);this.min>this.max?this.min==Number(this.userMin)&&this.max==b?(c=this.min,this.min=this.max,this.max=c):this.min==Number(this.userMin)?this.max=this.min+1:this.max==b&&(this.min=this.max-1):this.min==this.max&&(this.max=this.min+1);this.range=Math.abs(this.max-this.min);this.interval=f;this.calcTickInterval()},calcTickInterval:function(){var a,e,c=0;-1!=this.numMajorTM&&
2>this.numMajorTM&&(this.numMajorTM=2);!1===this.userMinGiven&&!1===this.userMaxGiven&&-1!==this.numMajorTM?(this.numMajorTM=-1==this.numMajorTM?5:this.numMajorTM,a=this.getDivisibleRange(this.min,this.max,this.numMajorTM,this.interval,!0),e=a-this.range,this.range=a,0<this.max?this.max+=e:this.min-=e):(this.numMajorTM=-1==this.numMajorTM?5:this.numMajorTM,!0===this.adjustTM&&(a=function(a,b){for(var c=0,e=1,g;;){g=b.numMajorTM+c*e;g=0===g?1:g;if(b.isRangeDivisible(a,g,b.interval))break;c=-1==e||
c>b.numMajorTM?++c:c;if(25<c){g=b.numMajorTM;break}e=c<=b.numMajorTM?-1*e:1}b.numMajorTM=1<g?g:b.numMajorTM},e=this.numMajorTM,a(this.range,this),2===this.numMajorTM&&(this.numMajorTM=e,a(this.range+1,this),c=1)));this.majorTickInt=(this.max-this.min+c)/(this.numMajorTM-1)},isRangeDivisible:function(a,e,c){return this.MathExt.numDecimals(a/(e-1))>this.MathExt.numDecimals(c)?!1:!0},getDivisibleRange:function(a,e,c,d,b){if(3>c)return this.range;a=Math.abs(e-a);e=a/(c-1);this.isRangeDivisible(a,c,d)||
(b&&Number(e)/Number(d)<(1<d?2:.5)&&(d/=10),e=(Math.floor(e/d)+1)*d,a=e*(c-1));return a},calculateTicks:function(){this.majorTM=[];this.minorTM=[];for(var a=0,e,c,d=this.numMajorTM,b=this.numMinorTM,f=this.nf,m=this.tickValueStep,g=O(this.lowerLimitDisplay),n=O(this.upperLimitDisplay),p=this.majorTickInt,k=this.min,l=this.showTickValues,s=!1,r=h(this.showLimits,l);a<d;a+=1)e=a<d-1?wb(Number(k+p*a),10):this.max,c=f.scale(e),s=!1,0!==a%m&&a!==d-1?c=L:0===a||a===d-1?r?0===a&&g?(c=g,s=!0):a==d-1&&n&&
(c=n,s=!0):c=L:l||(c=L),this.majorTM.push({displayValue:c,isString:s,value:e});c=p/(b+1);for(a=0;a<d-1;a+=1)for(e=1;e<=b;e+=1)this.minorTM.push(this.majorTM[a].value+c*e)},returnDataAsTick:function(a,e){var c={};c.value=a;c.displayValue=this.nf.dataLabels(a);c.showValue=e;return c},getMax:function(){return this.max},getMin:function(){return this.min},getMajorTM:function(){return this.majorTM},getMinorTM:function(){return this.minorTM},getAxisPosition:function(a){if(void 0===this.startAxisPos||void 0===
this.endAxisPos)throw Error("Cannot calculate position, as axis co-ordinates have not been defined. Please use setAxisCoords() method to define the same.");return this.startAxisPos+(this.endAxisPos-this.startAxisPos)/(this.max-this.min)*(a-this.min)},getValueFromPosition:function(a){if(void 0===this.startAxisPos||void 0===this.endAxisPos)throw Error("Cannot calculate value, as axis co-ordinates have not been defined. Please use setAxisCoords() method to define the same.");var e,c;e=this.max-this.min;
c=a-this.startAxisPos;return c/(c+(this.endAxisPos-a))*e+this.min}};w("gaugebase",{creditLabel:!1,defaultPaletteOptions:Ra,multiValueGauge:!1,decimals:2,formatnumberscale:0,drawAnnotations:!0,useScaleRecursively:!0,includeColorRangeInLimits:!1,init:function(a,e,c){var d=c.jsVars;this.rtLatestSeriesData=d&&d._rtLastUpdatedData?d._rtLastUpdatedData:null;return w.base.init.apply(this,arguments)},chart:function(a,e){var c=this.name,d=this.dataObj||{},b=d.chart||{},f=this.defaultSeriesType,m=this.realtimeEnabled,
g=this.colorManager,n,p=d.alerts,k,l,s,r,v,t,H,G,z,Q,A,x,C;l=Qb(d,a,e,this);v=l.chart;k=l[K];l.labels.smartLabel=k.smartLabel=this.smartLabel;this.width=a;this.height=e;k.width=a;k.height=e;r=l.plotOptions;v.useRoundEdges=1==b.useroundedges;k.tooltext=b.plottooltext;k.targettooltext=b.targettooltext;n=(v.is3D=s=k.is3d=/3d$/.test(f))?y.chartPaletteStr.chart3D:y.chartPaletteStr.chart2D;v.defaultSeriesType=f;t=0<b.palette&&6>b.palette?b.palette:h(this.paletteIndex,1);--t;v.paletteIndex=t;f=T({},d.colorrange);
this.colorRangeGetter=new Za(f.color,void 0,this.defaultPaletteOptions.paletteColors[t],this);v.events.click=l.plotOptions.series.point.events.click=this.linkClickFN;void 0!==q(b.clickurl)&&(v.link=b.clickurl,v.style.cursor="pointer",l.plotOptions.series.point.events.click=function(){v.events.click.call({link:b.clickurl})});H=q(b.basefont,"Verdana,sans");G=Lb(b.basefontsize,10);z=q(b.basefontcolor,g.getColor("baseFontColor"));f=q(b.outcnvbasefont,H);A=Lb(b.outcnvbasefontsize,G);t=A+jb;Q=q(b.outcnvbasefontcolor,
z).replace(/^#?([a-f0-9]+)/ig,"#$1");G+=jb;z=z.replace(/^#?([a-f0-9]+)/ig,"#$1");this.trendStyle=this.outCanvasStyle={fontFamily:f,color:Q,fontSize:t};x=Ka(this.trendStyle);this.inCanvasStyle={fontFamily:H,fontSize:G,color:z};C=Ka(this.inCanvasStyle);k.trendStyle=k.outCanvasStyle={fontFamily:f,color:Q,fontSize:t};T(l.legend,{title:{style:{fontFamily:q(b.legendcaptionfont,f),fontSize:h(b.legendcaptionfontsize,A)+"px",color:ca(q(b.legendcaptionfontcolor,Q)),fontWeight:h(b.legendcaptionfontbold,1)?"bold":
"normal"},align:Wb[q(b.legendcaptionalignment)]},itemStyle:{fontFamily:q(b.legenditemfont,f),fontSize:h(b.legenditemfontsize,A)+"px",color:ca(q(b.legenditemfontcolor,Q)),fontWeight:h(b.legenditemfontbold)?"bold":"normal"},itemHiddenStyle:{fontFamily:f,fontSize:A+"px",color:ca(q(b.legenditemhiddencolor,Q))},itemHoverStyle:{color:ca(q(b.legenditemhoverfontcolor,b.legenditemfontcolor,Q))}});l.legend.title.style.lineHeight=Ka(l.legend.title.style);l.legend.itemStyle.lineHeight=Ka(l.legend.itemStyle);
l.legend.itemHiddenStyle.lineHeight=Ka(l.legend.itemHiddenStyle);k=(k=ma(b.valuebordercolor,L))?F(k,h(b.valueborderalpha,b.valuealpha,100)):L;k=r.series.dataLabels.style={fontFamily:q(b.valuefont,H),fontSize:q(b.valuefontsize,parseInt(G,10))+jb,color:F(q(b.valuefontcolor,z),h(b.valuefontalpha,b.valuealpha,100)),fontWeight:h(b.valuefontbold)?"bold":"normal",fontStyle:h(b.valuefontitalic)?"italic":"normal",border:k||b.valuebgcolor?h(b.valueborderthickness,1)+"px solid":void 0,borderColor:k,borderThickness:h(b.valueborderthickness,
1),borderPadding:h(b.valueborderpadding,2),borderRadius:h(b.valueborderradius,0),backgroundColor:b.valuebgcolor?F(b.valuebgcolor,h(b.valuebgalpha,b.valuealpha,100)):L,borderDash:h(b.valueborderdashed,0)?X(h(b.valueborderdashlen,4),h(b.valueborderdashgap,2),h(b.valueborderthickness,1)):"none"};Ka(k);r.series.dataLabels.color=k.color;this.isDataLabelBold&&(k.fontWeight="bold",delete k.lineHeight,Ka(k));l.tooltip.style={fontFamily:H,fontSize:G,lineHeight:C,color:z};l.title.style={fontFamily:q(b.captionfont,
f),color:q(b.captionfontcolor,Q).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:h(b.captionfontsize,A+3)+jb,fontWeight:0===h(b.captionfontbold)?"normal":"bold"};l.title.align=q(b.captionalignment,La);l.title.isOnTop=h(b.captionontop,1);l.title.alignWithCanvas=h(b.aligncaptionwithcanvas,this.alignCaptionWithCanvas,1);l.title.horizontalPadding=h(b.captionhorizontalpadding,l.title.alignWithCanvas?0:15);Ka(l.title.style);l.subtitle.style={fontFamily:q(b.subcaptionfont,b.captionfont,f),color:q(b.subcaptionfontcolor,
b.captionfontcolor,Q).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:h(b.subcaptionfontsize,h(va(h(b.captionfontsize)-3,-1),A)+h(this.subTitleFontSizeExtender,1))+jb,fontWeight:0===h(b.subcaptionfontbold,this.subTitleFontWeight,b.captionfontbold)?"normal":"bold"};l.subtitle.align=l.title.align;l.subtitle.isOnTop=l.title.isOnTop;l.subtitle.alignWithCanvas=l.title.alignWithCanvas;l.subtitle.horizontalPadding=l.title.horizontalPadding;Ka(l.subtitle.style);l.chart.trendPointStyle={style:this.trendStyle};
l.orphanStyles={defaultStyle:{style:T({},this.inCanvasStyle)}};l.chart.colorRangeStyle={style:{fontFamily:H,fontSize:G,lineHeight:C,color:z}};Ka(l.chart.colorRangeStyle);k=h(b.scaleonresize,1);v.origW=r=h(b.origw,k?this.origRenderWidth:a);v.origH=k=h(b.origh,k?this.origRenderHeight:e);r=(v.autoScale=H=h(b.autoscale,1))?cb(r,k,a,e):1;this.scaleFactor=v.scaleFactor=r;this.createGaugeAxis&&this.createGaugeAxis(d,l,{fontFamily:f,fontSize:t,lineHeight:x,color:Q});this.parseStyles(l);delete l.xAxis.labels.style.backgroundColor;
delete l.xAxis.labels.style.borderColor;delete l.yAxis[0].labels.style.backgroundColor;delete l.yAxis[0].labels.style.borderColor;delete l.yAxis[1].labels.style.backgroundColor;delete l.yAxis[1].labels.style.borderColor;this.showTooltip=h(b.showtooltip,this.showTooltip,1);this.tooltipSepChar=q(b.tooltipsepchar,Mb);this.showValues=h(b.showvalues,b.showvalue,this.showValues,1);this.seriesNameInToolTip=h(b.seriesnameintooltip,1);this.showTooltip||(l.tooltip.enabled=!1);l.plotOptions.series.connectNullData=
h(b.connectnulldata,0);v.backgroundColor={FCcolor:{color:q(b.bgcolor,g.getColor(n.bgColor)),alpha:q(b.bgalpha,g.getColor(n.bgAlpha)),angle:q(b.bgangle,g.getColor(n.bgAngle)),ratio:q(b.bgratio,g.getColor(n.bgRatio))}};n=h(b.showborder,s?0:1);v.borderWidth=n?h(b.borderthickness,1):0;v.borderRadius=h(b.borderradius,0);v.borderDashStyle=h(b.borderdashed,0)?X(h(b.borderdashlen,4),h(b.borderdashgap,2),v.borderWidth):void 0;v.borderColor=F(q(b.bordercolor,s?"#666666":g.getColor("borderColor")),q(b.borderalpha,
s?"100":g.getColor("borderAlpha")));v.plotBackgroundColor=v.plotBorderColor=Ba;v.plotBorderWidth=0;v.plotShadow=0;v.bgSWF=q(b.bgimage,b.bgswf);v.bgSWFAlpha=h(b.bgimagealpha,b.bgswfalpha,100);s=q(b.bgimagedisplaymode,"none").toLowerCase();n=D(b.bgimagevalign,L).toLowerCase();f=D(b.bgimagehalign,L).toLowerCase();"tile"==s||"fill"==s||"fit"==s?(n!=Wa&&n!=ya&&n!=mb&&(n=ya),"left"!=f&&f!=ya&&"right"!=f&&(f=ya)):(n!=Wa&&n!=ya&&n!=mb&&(n=Wa),"left"!=f&&f!=ya&&"right"!=f&&(f="left"));v.bgImageDisplayMode=
s;v.bgImageVAlign=n;v.bgImageHAlign=f;v.bgImageScale=h(b.bgimagescale,100);v.logoURL=D(b.logourl);v.logoPosition=q(b.logoposition,"tl").toLowerCase();v.logoAlpha=h(b.logoalpha,100);v.logoLink=D(b.logolink);v.logoScale=h(b.logoscale,100);v.logoLeftMargin=h(b.logoleftmargin,0);v.logoTopMargin=h(b.logotopmargin,0);v.annRenderDelay=D(b.annrenderdelay);s=l.tooltip.style;s.backgroundColor=F(q(s.backgroundColor,b.tooltipbgcolor,b.hovercapbgcolor,b.hovercapbg,g.getColor("toolTipBgColor")),q(b.tooltipbgalpha,
100));s.borderColor=F(q(s.borderColor,b.tooltipbordercolor,b.hovercapbordercolor,b.hovercapborder,g.getColor("toolTipBorderColor")),q(b.tooltipborderalpha,100));l.tooltip.constrain=h(b.constraintooltip,1);l.tooltip.shadow=h(b.showtooltipshadow,b.showshadow,1)?{enabled:!0,opacity:va(h(b.tooltipbgalpha,100),h(b.tooltipborderalpha,100))/100}:!1;s.borderWidth=h(b.tooltipborderthickness,1)+"px";b.tooltipborderradius&&(s.borderRadius=h(b.tooltipborderradius,1)+"px");l.tooltip.style.padding=h(b.tooltippadding,
this.tooltippadding,3)+"px";b.tooltipcolor&&(s.color=tb(b.tooltipcolor));v.rotateValues=h(b.rotatevalues,0);v.placeValuesInside=h(b.placevaluesinside,0);v.valuePosition=b.valueposition;v.valuePadding=h(b.valuepadding,4);l.plotOptions.series.shadow=h(b.showshadow,b.showcolumnshadow,this.defaultPlotShadow,this.colorManager.getColor("showShadow"));v.useRoundEdges&&(l.plotOptions.series.shadow=h(b.showshadow,b.showcolumnshadow,1),l.plotOptions.series.borderRadius=1,l.tooltip.borderRadius=2);l.title.text=
O(b.caption);l.subtitle.text=O(b.subcaption);b.showtooltip==db&&(l.tooltip.enabled=!1);g=h(b.plotspacepercent,20);if(80<g||0>g)g=20;this.plotSpacePercent=l.plotOptions.series.groupPadding=g/200;this.parseExportOptions(l);v.dataStreamURL=q(b.datastreamurl,"");v.refreshInterval=h(b.refreshinterval,1);v.dataStamp=b.datastamp;v.useMessageLog=h(b.usemessagelog,0);v.messageLogWPercent=Ja(h(b.messagelogwpercent,80),100);v.messageLogHPercent=Ja(h(b.messageloghpercent,70),100);v.messageLogShowTitle=h(b.messagelogshowtitle,
1);v.messageLogTitle=q(b.messagelogtitle,"Message Log");v.messageLogColor=q(b.messagelogcolor,"#fbfbfb");v.messageGoesToJS=h(b.messagegoestojs,0);v.messageGoesToLog=h(b.messagegoestolog,1);v.messageJSHandler=q(b.messagejshandler,"");v.messagePassAllToJS=h(b.messagepassalltojs,0);v.messageLogIsCancelable=h(b.messagelogiscancelable,1);v.alwaysShowMessageLogMenu=h(b.alwaysshowmessagelogmenu,v.useMessageLog);v.showRTMenuItem=h(b.showrtmenuitem,0);g=h(b.showgaugeborder,1);v.gaugeBorderColor=q(b.gaugebordercolor,
this.gaugeBorderColor,"333333");v.gaugeBorderThickness=g?h(b.gaugeborderthickness,this.gaugeBorderThickness,2):0;v.gaugeBorderAlpha=q(b.gaugeborderalpha,Fa);v.gaugeFillColor=q(b.gaugefillcolor,b.ledbgcolor,"000000");v.useSameFillColor=h(b.usesamefillcolor,0);v.useSameFillBgColor=h(b.usesamefillbgcolor,v.useSameFillColor);v.colorRangeFillMix=ea(b.colorrangefillmix,b.gaugefillmix,this.colorRangeFillMix,"{light-10},{dark-10},{light-10},{dark-10}");v.colorRangeFillRatio=ea(b.colorrangefillratio,b.gaugefillratio,
this.colorRangeFillRatio,b.gaugefillratio,"0,10,80,10");v.showColorRangeBorder=h(b.showcolorrangeborder,b.showgaugeborder,this.showColorRangeBorder,0);v.colorRangeBorderColor=q(b.colorrangebordercolor,b.gaugebordercolor,"{dark-20}");v.colorRangeBorderThickness=g?h(b.colorrangeborderthickness,b.gaugeborderthickness,1):0;v.colorRangeBorderAlpha=h(b.colorrangeborderalpha,b.gaugeborderalpha,100);v.roundRadius=h(b.roundradius,b.gaugeroundradius,0);v.showShadow=h(b.showshadow,1);v.gaugeType=h(b.gaugetype,
this.gaugeType,1);this.preSeriesAddition&&this.preSeriesAddition(l,d,a,e);this.series(d,l,c,a,e);this.postSeriesAddition&&this.postSeriesAddition(l,d,a,e);this.configureAxis&&this.configureAxis(l,d);this.spaceManager&&this.spaceManager(l,d,a,e);this.postSpaceManager&&this.postSpaceManager();this.updateSnapPoints&&this.updateSnapPoints(l);this.latestDataUpdater&&this.latestDataUpdater(l,d,a,e);c=v.toolbar={button:{}};g=c.button;g.scale=h(b.toolbarbuttonscale,1.15);g.width=h(b.toolbarbuttonwidth,15);
g.height=h(b.toolbarbuttonheight,15);g.radius=h(b.toolbarbuttonradius,2);g.spacing=h(b.toolbarbuttonspacing,5);g.fill=F(q(b.toolbarbuttoncolor,"ffffff"));g.labelFill=F(q(b.toolbarlabelcolor,"cccccc"));g.symbolFill=F(q(b.toolbarsymbolcolor,"ffffff"));g.hoverFill=F(q(b.toolbarbuttonhovercolor,"ffffff"));g.stroke=F(q(b.toolbarbuttonbordercolor,"bbbbbb"));g.symbolStroke=F(q(b.toolbarsymbolbordercolor,"9a9a9a"));g.strokeWidth=h(b.toolbarbuttonborderthickness,1);g.symbolStrokeWidth=h(b.toolbarsymbolborderthickness,
1);d=g.symbolPadding=h(b.toolbarsymbolpadding,5);g.symbolHPadding=h(b.toolbarsymbolhpadding,d);g.symbolVPadding=h(b.toolbarsymbolvpadding,d);g=c.position=q(b.toolbarposition,"tr").toLowerCase();switch(g){case "tr":case "tl":case "br":case "bl":break;default:g="tr"}d=c.hAlign="left"===(L+b.toolbarhalign).toLowerCase()?"l":g.charAt(1);g=c.vAlign="bottom"===(L+b.toolbarvalign).toLowerCase()?"b":g.charAt(0);c.hDirection=h(b.toolbarhdirection,"r"===d?-1:1);c.vDirection=h(b.toolbarvdirection,"b"===g?-1:
1);c.vMargin=h(b.toolbarvmargin,6);c.hMargin=h(b.toolbarhmargin,10);c.x=h(b.toolbarx,"l"===d?0:a);c.y=h(b.toolbary,"t"===g?0:e);da.console&&da.console.log&&da.FC_DEV_ENVIRONMENT&&console.log(l);h(b.showrtmenuitem,0)?(l.callbacks||(l.callbacks=[])).push(this.drawRTMenuButtons):v.useMessageLog&&v.alwaysShowMessageLogMenu&&v.messageGoesToLog&&(l.callbacks||(l.callbacks=[])).push(this.drawMLMenuButtons);m&&p&&(this.hcJSON.alerts=this.parseAlertObj(p));return l},parseAlertObj:function(){return Va.parseAlertObj.apply(this,
arguments)},drawMLMenuButtons:function(){var a=this.options,e=a.chart,c=this.menu||(this.menu=[]),d=this.toolbar,a=a[K],b;c.push(b=oa({chart:this,basicStyle:a&&a.outCanvasStyle||this.outCanvasStyle||{},items:[{text:"Show Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&y.messageLogger.open();b.showItem(4);b.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&y.messageLogger.close();b.showItem(3);b.hideItem(4)}}],position:{x:e.spacingLeft,y:this.chartHeight-
e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15)}}));b.hideItem(1);this.elements.configureButton=d.add("loggerIcon",function(a,c){return function(){b.visible?b.hide():b.show({x:a,y:c+1})}}(),{x:e.spacingLeft,y:this.chartHeight-e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15),tooltip:"Show & Hide Message"})},drawRTMenuButtons:function(){var a=this.logic,e=a.chartInstance,c=this.options,d=c.chart,b=d&&d.alwaysShowMessageLogMenu,f=this.menu||(this.menu=[]),m=this.toolbar,c=(c=c[K])&&
c.outCanvasStyle||this.outCanvasStyle||{},g,a=(a=e.isUpdateActive||a.eiMethods.isUpdateActive)&&a.call(e);f.push(g=oa({chart:this,basicStyle:c,items:[{text:"Stop Update",visibility:a?qb:"hidden",onclick:function(){g.hideItem(0);g.showItem(1);e.stopUpdate()}},{text:"Start Update",visibility:a?"hidden":qb,onclick:function(){g.hideItem(1);g.showItem(0);e.restartUpdate()}},{text:"Clear Chart",onclick:function(){e.clearChart()}},{text:"Show Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&
y.messageLogger.open();g.showItem(4);g.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&y.messageLogger.close();g.showItem(3);g.hideItem(4)}}],position:{x:d.spacingLeft,y:this.chartHeight-d.spacingBottom+(d.showFormBtn||d.showRestoreBtn?10:-15)}}));g.hideItem(2);g.hideItem(0);g.hideItem(1);g.showItem(a?0:1);!b&&g.hideItem(3);g.hideItem(4);this.elements.configureButton=m.add("configureIcon",function(a,b){return function(){g.visible?g.hide():g.show({x:a,y:b+
1})}}(),{x:d.spacingLeft,y:this.chartHeight-d.spacingBottom+(d.showFormBtn||d.showRestoreBtn?10:-15),tooltip:"Manage RealTime Update"})},latestDataUpdater:function(a){var e=this.chartInstance;a=(a=a.series&&a.series)&&a[0]&&a[0].data;var c,d,b;if((e=e&&e.jsVars&&e.jsVars._rtLastUpdatedData)&&a)for(c=0,d=e.values&&e.values.length;c<d;c+=1)if(b=a[c])b.y=e.values[c],b.displayValue=e.labels[c],b.toolText=e.toolTexts[c]},styleApplicationDefinition_font:function(a,e,c){var d,b=!1,f,m,g,n=this.styleMapForFont;
switch(e){case "caption":a=a.title;break;case "datalabels":a=a.plotOptions.series.dataLabels;break;case "value":a=a.plotOptions.series.dataLabels;break;case "datavalues":a=a.plotOptions.series.dataLabels;b=!0;break;case "subcaption":a=a.subtitle;break;case "tooltip":a=a.tooltip;break;case "trendvalues":a=a.chart.trendPointStyle;break;case "xaxisname":a=a.xAxis.title;break;case "vlinelabels":a={style:a[K].divlineStyle};break;case "gaugelabels":a=a.chart.colorRangeStyle;break;case "tickvalues":a=a.scale.tickValues;
break;case "limitvalues":a=a.scale.limitValues;break;case "openvalue":a=a.chart.openValue;break;case "closevalue":a=a.chart.closeValue;break;case "highlowvalue":a=a.chart.highLowValue;break;case "legend":a={style:a.legend.itemStyle};break;default:a.orphanStyles[e]=a={text:"",style:{}}}if("object"===typeof a)if(a instanceof Array)for(f=0,m=a.length;f<m;f+=1){g=a[f];for(d in c)if(e=d.toLowerCase(),"function"===typeof n[e])n[e](c[d],g,b);Ka(g.style)}else{for(d in c)if(e=d.toLowerCase(),"function"===
typeof n[e])n[e](c[d],a,b);Ka(a.style)}},createGaugeAxis:function(a,e,c){a=a.chart;var d=this.colorManager,b=this.numberFormatter,f=this.isHorizontal?h(a.ticksbelowgauge,a.ticksbelowgraph,this.ticksbelowgauge,1)?3:1:h(a.ticksonright,this.ticksOnRight,1)?2:4,d=q(a.majortmcolor,d.getColor("tickColor")),m=h(a.majortmalpha,100),g=h(h(a.majortmheight)*this.scaleFactor,this.majorTMHeight,6),n=h(a.tickvaluestep,a.tickvaluesstep,1),p=h(a.showtickmarks,1),k=p?h(a.connecttickmarks,this.connectTickMarks,1):
0,l=h(a.showtickvalues,p),s=h(a.majortmthickness,1),r=h(b.getCleanValue(a.upperlimit)),b=h(b.getCleanValue(a.lowerlimit)),v=1==h(a.reversescale,0);this.isHorizontal||(v=!v);n=1>n?1:n;e.scale={min:null,max:null,axisPosition:f,showTickMarks:p,showTickValues:l,showLimits:h(a.showlimits,l),adjustTM:Boolean(h(a.adjusttm,1)),majorTMNumber:h(a.majortmnumber,-1),majorTMColor:F(d,m),majorTMHeight:p?g:0,majorTMThickness:s,minorTMNumber:h(a.minortmnumber,this.minorTMNumber,4),minorTMColor:F(q(a.minortmcolor,
d),h(a.minortmalpha,m)),minorTMHeight:p?h(h(a.minortmheight,a.minortmwidth)*this.scaleFactor,ka(g/2)):0,minorTMThickness:h(a.minortmthickness,1),tickMarkDistance:h(h(a.tickmarkdistance,a.tickmarkgap)*this.scaleFactor,this.tickMarkDistance,3),tickValueDistance:h(h(a.tickvaluedistance,a.displayvaluedistance)*this.scaleFactor,2)+2,placeTicksInside:h(a.placeticksinside,0),placeValuesInside:h(a.placevaluesinside,0),tickValueStep:n,setAdaptiveMin:h(a.setadaptivemin,0),upperLimit:r,lowerLimit:b,upperLimitDisplay:D(a.upperlimitdisplay),
lowerLimitDisplay:D(a.lowerlimitdisplay),reverseScale:v,connectorColor:F(q(a.connectorcolor,d),h(a.connectoralpha,m)),connectorThickness:k?h(a.connectorthickness,s):0,majorTM:[],minorTM:[],trendPoint:[],labels:{style:T({},c)},tickValues:{style:T({},c)},limitValues:{style:T({},c)}}},configureAxis:function(a,e){var c=e.chart,d,b,f,m,g=this.colorManager,n,p,k,l,s,r=this.colorRangeGetter,v=(r=r&&r.colorArr)&&r.length;b=r&&r[0];d=r&&r[v-1];m=this.minDataValue;p=this.maxDataValue;r=a.scale;k=r.lowerLimit;
l=r.upperLimit;var v=this.numberFormatter,t;if(a.series[0]&&($(m)&&$(p)?(k=k<=m?k:b&&b.minvalue,l=l>=p?l:d&&d.maxvalue):(k=h(k,b&&b.minvalue),l=h(l,d&&d.maxvalue)),d=new Bb(k,l,!1,r,this.numberFormatter),d.calculateLimits(this.maxDataValue,this.minDataValue),d.calculateTicks(),r.majorTM=d.getMajorTM(),r.minorTM=d.getMinorTM(),b=r.min=d.min,d=r.max=d.max,e.trendpoints&&(f=e.trendpoints.point)&&0<(n=f.length))){r.trendPoint=[];for(p=0;p<n;p+=1)m=f[p],s=h(m.dashed,0)?X(q(Math.max(m.dashlen,m.thickness),
4),h(m.dashgap,3),h(m.thickness,1)):void 0,k=h(m.startvalue,m.value),l=h(m.endvalue,k),t=k!==l,k<=d&&k>=b&&l<=d&&l>=b&&(r.trendPoint.push({style:T(T(a.chart.trendPointStyle.style),{}),startValue:k,endValue:l,tooltext:D(O(m.markertooltext)),displayValue:D(O(m.displayvalue),t?L:v.scale(k)),showOnTop:h(m.showontop,c.ticksbelowgauge,c.ticksbelowgraph,1),color:q(m.color,g.getColor("trendLightColor")),alpha:h(m.alpha,99),thickness:h(m.thickness,1),dashStyle:s,useMarker:h(m.usemarker,0),markerColor:F(q(m.markercolor,
m.color,g.getColor("trendLightColor")),100),markerBorderColor:F(q(m.markerbordercolor,m.bordercolor,g.getColor("trendDarkColor")),100),markerRadius:h(h(m.markerradius)*this.scaleFactor,5),markerToolText:ma(m.markertooltext),trendValueDistance:h(h(m.trendvaluedistance,c.trendvaluedistance)*this.scaleFactor,r.tickValueDistance),isZone:t,valueInside:h(m.valueinside,c.placevaluesinside,0),showBorder:h(m.showborder,1),borderColor:F(q(m.bordercolor,m.color,g.getColor("trendDarkColor")),h(m.borderalpha,
m.alpha,100)),radius:h(h(m.radius)*this.scaleFactor),innerRadius:h(h(m.innerradius)*this.scaleFactor)}),pa(q(m.bordercolor,m.color,g.getColor("trendDarkColor"))));"lineargauge"===this.defaultSeriesType&&y.stableSort&&y.stableSort(r.trendPoint,function(a,b){return a.startValue-b.startValue})}},placeTickMark:function(a,e,c){var d=this.smartLabel,b=a.chart,f=this.width-(b.marginRight+b.marginLeft),m=this.height-(b.marginTop+b.marginBottom);a=a.scale;var g=a.min,n=a.max,p=a.axisPosition,k=a.showLimits,
l=a.showTickValues,s=a.tickMarkDistance,r=a.tickValueDistance,v=Math.max(a.majorTMHeight,a.minorTMHeight),t=a.placeTicksInside,H=a.placeValuesInside,G=a.reverseScale,z=0,q=0,A=1,x,C=a.majorTM.length-1,J=2===p||4===p?!1:!0,B=6;e=J?m-c:f-e;c=0;var la=a.tickValues.style,ba=a.limitValues.style;a.majorTM[0]&&a.majorTM[1]&&(x=a.majorTM[1].value-a.majorTM[0].value);t||(z+=s+v);if(l||k)for(d.setStyle(ba),k=h(parseInt(ba.fontSize,10),10),l=h(parseInt(ba.lineHeight,10),12),l/=2,H||(z+=r),3===p&&(q=k),J?(m=
e-z,f=f/(n-g)*x/2+6):(f=e-z,m=m/(n-g)*x+l),a.majorTM[0]&&(x=a.majorTM[0],x.isString?x.displayValue&&(g=d.getSmartText(x.displayValue,f,m),x.displayValue=g.text,x._oriText=g.oriText,g.tooltext&&(x.originalText=g.tooltext),J?(c=Math.max(c,g.height),x.labelY=1===p&&!H||3===p&&H?k-g.height:q,B=Math.min(6,g.width/2)):(c=Math.max(c,g.width),x.labelY=k-(G?g.height-l:l),x.labelX=0)):A=0,J&&(G?(x.labelX=B,x.align=bb):(x.labelX=-B,x.align=Ia))),a.majorTM[C]&&(x=a.majorTM[C],x.isString?x.displayValue&&(g=d.getSmartText(x.displayValue,
f,m),x.displayValue=g.text,x._oriText=g.oriText,g.tooltext&&(x.originalText=g.tooltext),J?(c=Math.max(c,g.height),x.labelY=1===p&&!H||3===p&&H?k-g.height:q,B=Math.min(6,g.width/2)):(c=Math.max(c,g.width),x.labelY=k-(G?l:g.height-l),x.labelX=0)):(B=6,C+=1),J&&(G?(x.labelX=-B,x.align=Ia):(x.labelX=B,x.align=bb)));A<C;A++)0===A||A===C-1?(d.setStyle(ba),k=h(parseInt(ba.fontSize,10),10),l=h(parseInt(ba.lineHeight,10),12)):(d.setStyle(la),k=h(parseInt(la.fontSize,10),10),l=h(parseInt(la.lineHeight,10),
12)),J&&(q=1===p&&H||3===p&&!H?k:0),x=a.majorTM[A],x.displayValue&&(x.labelX=h(x.labelX,0),J?(c=Math.max(c,l),x.labelY=q):(g=d.getOriSize(x.displayValue),c=Math.max(c,g.width),x.labelY=k-g.height/2));d=z;H||(z+=c);z=Math.min(e,z);a._labelUsedSpace=H?c:z-d;switch(p){case 1:b.marginTop+=z;break;case 2:b.marginRight+=z;break;case 3:b.marginBottom+=z;break;case 4:b.marginLeft+=z}return z},eiMethods:{feedData:function(a){var e=this.jsVars,c=e.hcObj,d=c.logic,b=c.options&&c.options.series&&c.options.series[0],
f,m;if(this.isActive()&&d&&d.linearDataParser&&(m=d.linearDataParser(a,d.multisetRealtime))){f=this.getDataJSON();c.realtimeUpdate?c.realtimeUpdate(m):c.logic.realtimeUpdate?c.logic.realtimeUpdate(m):b&&b.realtimeUpdate&&b.realtimeUpdate(m);e._rtLastUpdatedData=d.multisetRealtime?m:this.getDataJSON();Ga.raiseEvent("realtimeUpdateComplete",{data:a,updateObject:m,prevData:f.values,source:"feedData",url:null},e.fcObj);try{da.FC_ChartUpdated&&da.FC_ChartUpdated(e.fcObj.id)}catch(g){setTimeout(function(){throw g;
},0)}return!0}return!1},getData:function(){var a,e=(a=this.jsVars)&&(a=a.hcObj)&&(a=a.options)&&(a=a.series)&&(a=a[0])&&a.data;return(a=e&&e[0])?h(a.value,a.y):null},setData:function(a,e){var c="";if(a&&a.toString||""===a||0===a)c="value="+a.toString();if(e&&e.toString||""===e)c=c+"&label="+e.toString();c&&this.feedData(c)},stopUpdate:function(a){var e=this.__state;clearTimeout(e._toRealtime);e._rtAjaxObj&&e._rtAjaxObj.abort();e._rtPaused=!0;Ga.raiseEvent("realimeUpdateStopped",{source:a},this)},
restartUpdate:function(){var a=this.__state;a._rtDataUrl&&a._rtPaused&&(a._rtPaused=!1,a._rtAjaxObj.get(a._rtDataUrl))},isUpdateActive:function(){return!this.__state._rtPaused},clearChart:function(a){var e=this.jsVars,c;a=a&&a.toString&&a.toString();(c=e.hcObj)&&(c=c.options)&&(c=c.scale)&&(e=c.min,isNaN(e)||(this.jsVars.hcObj.fusionCharts.feedData("&showLabel=0&value="+e),y.raiseEvent("chartCleared",{source:a},this,[this.id,a])))},getDataJSON:function(){var a=0,e,c,d=[],b=[],f=[],m=(e=this.jsVars)&&
(e=e.hcObj)&&(e=e.options)&&(e=e.series)&&(e=e[0])&&e.data;for(e=m&&m.length?m.length:0;a<e;a+=1)c=m[a],d.push(h(c.value,c.y)),b.push(c.displayValue||""),f.push(c.toolText||"");return{values:d,labels:b,toolTexts:f}},showLog:function(){return this.feedData("showLog=1")},hideLog:function(){return this.feedData("hideLog=1")},clearLog:function(){return this.feedData("clearLog=1")}},linearDataParser:function(a,e){var c={values:u,colors:u,toolTexts:u,links:function(a){var b=[],c;a=a.replace(Pb,"_fc_escaped_comma_");
b=a.split(",");a=0;for(c=b.length;a<c;a+=1)b[a]=b[a].replace(/_fc_escaped_comma_/ig,",");return b},valueVisibility:u},d=this.chartInstance,b,f,m,g,n,p={},k=0;a=a&&a.toString&&a.toString()||"";b=a.split("&");g=0;for(n=b.length;g<n;g+=1)if(f=b[g].split("="),m=f[1],f=f[0],f!==L&&void 0!==f&&void 0!==m&&(m!==L||e))switch(f=f.toLowerCase(),f){case "label":p.labels=m.split(",");break;case "vline":p.vlines=m.split(",");break;case "vlinelabel":p.vlineLabels=m.split(",");break;case "vlinecolor":p.vlineColors=
m.split(",");break;case "vlinethickness":p.vlineThickness=m.split(",");break;case "vlinedashed":p.vlineDashed=m.split(",");break;case "value":p.values=m.split("|");k=1;break;case "showlabel":p.showLabels=m.split(",");break;case "showvalue":p.valueVisibility=m.split("|");break;case "tooltext":p.toolTexts=m.split("|");break;case "link":p.links=m.split("|");break;case "color":p.colors=m.split("|");break;case "datastamp":p.dataStamp=m;break;case "stopupdate":p.pause="1"==m;break;case "clear":p.clear=
"1"==m;break;default:p[f]=m}if(e)for(p.values||(p.values=[]),g=p.values.length;g--;){for(f in c)p[f]?"function"===typeof c[f]?p[f][g]&&(p[f][g]=c[f].call(this,p[f][g])):p[f][g]&&(p[f][g]=p[f][g].split(c[f])):p[f]=[];k=va(p.values[g].length,k)}p.labels&&(k=va(k,p.labels.length));p.dimension=k;p.pause&&d.stopUpdate&&d.stopUpdate("datastream");return p},series:function(){var a=this.dataObj,e=this.hcJSON,c=a.pointers&&a.pointers.pointer||a.value,d=a.chart,b=this.colorRangeGetter,f=(b=b&&b.colorArr)&&
b.length,m={},g=m.data=[],n,p;e.legend.enabled=!1;Tb(c)||(c="object"!==typeof c?[{value:c}]:[c]);n=0;for(p=this.multiValueGauge?c.length:1;n<p;n++)g.push(this.getPointStub(c[n],n,e,a));e.series[0]=m;f&&this.pointValueWatcher&&h(d.includecolorrangeinlimits,this.includeColorRangeInLimits)&&(a=h(b[0].minvalue),$(a)&&this.pointValueWatcher(a),a=h(b[f-1].maxvalue),$(a)&&this.pointValueWatcher(a))},pointValueWatcher:function(a){null!==a&&(this.maxDataValue=this.maxDataValue>a?this.maxDataValue:a,this.minDataValue=
this.minDataValue<a?this.minDataValue:a)},updateSnapPoints:function(a){var e=a.chart,c=this.width,d=this.height,b=e.marginBottom;a=e.marginLeft;var f=e.marginRight,e=e.marginTop,c=xa(this.snapLiterals||(this.snapLiterals={}),{chartstartx:0,chartstarty:0,chartwidth:c,chartheight:d,chartendx:c,chartendy:d,chartcenterx:c/2,chartcentery:d/2,chartbottommargin:b,chartleftmargin:a,chartrightmargin:f,charttopmargin:e,canvasstartx:a,canvasstarty:e,canvaswidth:c-a-f,canvasheight:d-e-b,canvasendx:c-f,canvasendy:d-
b});c.gaugestartx=c.canvasstartx;c.gaugestarty=c.canvasstarty;c.gaugeendx=c.canvasendx;c.gaugeendy=c.canvasendy;c.gaugecenterx=c.canvascenterx=a+c.canvaswidth/2;c.gaugecentery=c.canvascentery=e+c.canvasheight/2}},w.base);w("linearscalegauge",{spaceManager:function(a,e,c,d){var b=a.chart,f=c-(b.marginRight+b.marginLeft),m=d-(b.marginTop+b.marginBottom),g=b.marginRight,n=b.marginLeft,p=b.marginTop,k=b.marginBottom,l=Ja(va(.3*f,5),f),h=Ja(va(.3*m,5),m),r,v,t=0,H;5>l&&10<c&&(l=f=5,H=g+n,g=b.marginRight=
(c-f)*g/H,n=b.marginLeft=(c-f)*n/H);5>h&&10<d&&(h=m=5,H=p+k,p=b.marginRight=(d-m)*p/H,k=b.marginLeft=(d-m)*k/H);this.manageTitleSpace&&a.title.alignCaptionWithCanvas&&(v=this.manageTitleSpace(a,e,l,h));this.placeTickMark&&(r=this.placeTickMark(a,l,h));this.manageTitleSpace&&!a.title.alignCaptionWithCanvas&&(v=this.manageTitleSpace(a,e,l,h));this.placeDataLabels&&(t=this.placeDataLabels(a,l,h,p,g,k,n,r));this.postDataLabelsPlacement&&this.postDataLabelsPlacement(a,l,h);this.fixCaptionAlignment&&this.fixCaptionAlignment(v,
a,e,c,0,t)},manageTitleSpace:function(a,e,c,d){c=a.chart;return this.titleSpaceManager(a,e,this.width-(c.marginRight+c.marginLeft),this.height-(c.marginTop+c.marginBottom)-d)},placeDataLabels:function(a,e,c,d,b,f){var m=this.smartLabel;e=a.chart;var g=this.width-(e.marginRight+e.marginLeft),n=this.height-(e.marginTop+e.marginBottom);d=e.marginBottom;b=a.plotOptions.series.dataLabels;var p=b.style,k=h(parseInt(p.lineHeight,10),12);c=n-c;var n=e.valuePadding,l=0;(a=a.series[0].data[0])&&a.displayValue!==
L&&(m.setStyle(p),a.isLabelString?(m=m.getSmartText(a.displayValue,g,c-n),a.displayValue=m.text,m.tooltext&&(a.originalText=m.tooltext)):m=m.getOriSize(a.displayValue)," "===a.displayValue&&(m={height:k}),0<m.height&&(l=m.height+n),l>c&&(a=l-c,n=a<n?n-a:0,l=c),e.marginBottom+=l,b.align=La,e.valuePadding=d-f+n);return l},postDataLabelsPlacement:function(a){var e=this.smartLabel,c=a.chart,d=this.width-(c.marginRight+c.marginLeft),b=this.height-(c.marginTop+c.marginBottom);a=a.scale;var f=a.min,m=a.max,
g=a.axisPosition,n=a.limitValues.style,c=a.reverseScale,p,k=a.majorTM.length-1,g=2===g||4===g?!1:!0,l=h(parseInt(n.fontSize,10),10),s=h(parseInt(n.lineHeight,10),12)/2;a.majorTM[0]&&a.majorTM[1]&&(p=a.majorTM[1].value-a.majorTM[0].value);g?(b=a._labelUsedSpace,d=d/(m-f)*p/2+6):(d=a._labelUsedSpace,b=b/(m-f)*p+s);e.setStyle(n);a.majorTM[0]&&a.majorTM[0].isString&&(p=a.majorTM[0],p.displayValue&&(f=e.getSmartText(p._oriText,d,b),p.displayValue=f.text,f.tooltext&&(p.originalText=f.tooltext),g?(f=Math.min(6,
f.width/2),p.labelX=c?f:-f):p.labelY=l-(c?f.height-s:s)));a.majorTM[k]&&a.majorTM[k].isString&&(p=a.majorTM[k],p.displayValue&&(f=e.getSmartText(p._oriText,d,b),p.displayValue=f.text,f.tooltext&&(p.originalText=f.tooltext),g?(f=Math.min(6,f.width/2),p.labelX=c?-f:f):p.labelY=l-(c?s:f.height-s)))},getPointStub:function(a,e,c,d,b){var f=c[K];e=this.colorManager;var m=this.numberFormatter;c=m.getCleanValue(a.value);var g=D(a.link),n=D(O(q(a.tooltext,f.tooltext))),f=D(O(a.displayvalue)),p=m.dataLabels(c),
k,m=d.chart;d=h(m.showhovereffect);var l,s,r;this.showTooltip?void 0!==n?(b=ab(n,[1,2],{formattedValue:p},a,m),r=!0):b=null===p?!1:void 0!==b?b+this.tooltipSepChar+p:p:b=!1;a=h(a.showvalue,this.showValues)?void 0!==f?f:D(p," "):L;this.pointValueWatcher&&this.pointValueWatcher(c);this.getPointColorObj&&(k=this.getPointColorObj(m,c));0!==d&&(d||m.gaugefillhovercolor||m.plotfillhovercolor||m.gaugefillhoveralpha||m.plotfillhoveralpha||0===m.gaugefillhoveralpha)&&(d=!0,f=q(m.gaugefillhovercolor,m.plotfillhovercolor,
"{dark-10}"),m=h(m.gaugefillhoveralpha,m.plotfillhoveralpha),l={},s={},s.fluidColor=k.code,s.fluidAlpha=k.alpha,f=(n=/\{/.test(f))?e.parseColorMix(D(k.code,L),f)[0]:f,l.fluidColor=f,l.fluidAlpha=h(m,k.alpha));return{y:c,displayValue:a,toolText:b,isLabelString:r,color:F(k.code,k.alpha),link:g,colorRange:k,doNotSlice:!0,rolloverProperties:{enabled:d,hoverAttr:l,outAttr:s}}},getPointColorObj:function(a,e){return this.colorRangeGetter.getColorObj(e)}},w.gaugebase);w("led",{singleValued:!0,isDataLabelBold:!0,
preSeriesAddition:function(a,e){var c=e.chart,d=a.chart;d.ledGap=h(c.ledgap,2);d.ledSize=h(c.ledsize,2);d.plotHoverEffect=h(c.showhovereffect,0)}},w.linearscalegauge);w("vled",{friendlyName:"Vertical LED Gauge",defaultSeriesType:"led",defaultPlotShadow:1,standaloneInit:!0,realtimeEnabled:!0,chartleftmargin:15,chartrightmargin:15,charttopmargin:10,chartbottommargin:10,showTooltip:0,connectTickMarks:0,rendererId:"led",creditLabel:!1},w.led);w("hled",{friendlyName:"Horizontal LED Gauge",defaultPlotShadow:1,
standaloneInit:!0,creditLabel:!1,isHorizontal:!0,rendererId:"led",connectTickMarks:1,realtimeEnabled:!0},w.vled);w("bullet",{creditLabel:!1,defaultSeriesType:"bullet",defaultPlotShadow:1,drawAnnotations:!0,realtimeEnabled:!1,subTitleFontSizeExtender:0,subTitleFontWeight:0,connectTickMarks:0,minorTMNumber:0,majorTMHeight:4,chartleftmargin:10,chartrightmargin:15,charttopmargin:5,chartbottommargin:5,isDataLabelBold:!0,defaultPaletteOptions:xa(T({},Ra),{paletteColors:[["A6A6A6","CCCCCC","E1E1E1","F0F0F0"],
["A7AA95","C4C6B7","DEDFD7","F2F2EE"],["04C2E3","66E7FD","9CEFFE","CEF8FF"],["FA9101","FEB654","FED7A0","FFEDD5"],["FF2B60","FF6C92","FFB9CB","FFE8EE"]],bgColor:["FFFFFF","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["100","60,50","40,20","20,10","30,30"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["333333",
"60634E","025B6A","A15E01","68001B"],tickColor:["333333","60634E","025B6A","A15E01","68001B"],trendColor:["545454","60634E","415D6F","845001","68001B"],plotFillColor:["545454","60634E","415D6F","845001","68001B"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50]}),preSeriesAddition:function(){var a=this.dataObj.chart;this.hcJSON.chart.colorRangeBorderThickness=h(a.showgaugeborder,a.showcolorrangeborder,0)?h(a.colorrangeborderthickness,a.gaugeborderthickness,this.gaugeBorderThickness,
2):0},postSeriesAddition:function(a){var e=this.dataObj,c=this.colorManager,d=a.series[0],b=e.chart,f=h(b.showhovereffect),m={value:e.target},g=h(b.targetthickness,3),n=q(b.targetcolor,c.getColor("plotFillColor")),p=D(b.targetalpha,100),k=F(n,p),l=h(b.targetfillpercent,60),s,r,v,t;0!==f&&(f||b.targethovercolor||b.targethoveralpha||0===b.targethoveralpha||b.targethoverthickness||0===b.targethoverthickness)&&(f=!0,v={},t={},r=h(b.targethoverthickness,g+2),g!==r&&(v["stroke-width"]=r,t["stroke-width"]=
g),s=q(b.targethovercolor,"{dark-10}"),p=h(b.targethoveralpha,p),r&&(t.stroke=k,r=/\{/.test(s),v.stroke=F(r?c.parseColorMix(n,s)[0]:s,p)),s=!!h(b.showhoveranimation,1));a=this.getPointStub(m,1,a,e);delete a.rolloverProperties;d.data.push(T(a,{borderColor:k,borderWidth:g,targetThickness:g,targetFillPercent:l,rolloverProperties:{enabled:f,hoverAttr:v,outAttr:t,showHoverAnimation:s}}))},getPointStub:function(a,e,c,d,b){var f=this.numberFormatter,m=this.colorManager,g=c[K];c=f.getCleanValue(a.value);
var n=D(a.link),p=D(O(e?g.targettooltext:g.tooltext)),k=D(O(a.displayvalue)),l=f.dataLabels(c),g=this.colorRangeGetter.getColorObj(c),s=d.chart,r=e?f.dataLabels(f.getCleanValue(d.value)):l,v=e?c:f.getCleanValue(d.target),t=e?l:f.dataLabels(v),H=q(s.plotfillcolor,m.getColor("plotFillColor"));e=h(s.plotasdot,0);var f=h(s.showhovereffect),G=h(s.showplotborder,0),z=G?h(s.plotborderthickness,1):0,Q=h(s.plotfillpercent,e?25:40),A,x,C,J;d=this.showTooltip?void 0!==p?ab(p,[1,2,26,27],{formattedValue:r,targetValue:v,
targetDataValue:t},d,s):null===l?!1:void 0!==b?b+this.tooltipSepChar+l:l:L;a=h(a.showvalue,this.showValues)?void 0!==k?k:D(l," "):L;this.pointValueWatcher&&this.pointValueWatcher(c);/\{/.test(b=q(s.plotbordercolor,"{dark-20}"))&&(x=!0,b=m.parseColorMix(H,b).join());r=h(s.plotfillalpha,100);k=F(H,r);p=h(s.plotborderalpha,100);l=F(b,p);0!==f&&(f||s.plotfillhovercolor||s.plotfillhoveralpha||0===s.plotfillhoveralpha||s.showplotborderonhover||0===s.showplotborderonhover||s.plotborderhovercolor||s.plotborderhoverthickness||
0===s.plotborderhoverthickness||s.plotborderhoveralpha||0===s.plotborderhoveralpha)&&(f=!0,C={},J={},A=q(s.plotfillhovercolor,"{dark-10}"),r=h(s.plotfillhoveralpha,r),A=/\{/.test(A)?m.parseColorMix(H,A)[0]:A,C.fill=F(A,r),J.fill=k,H=h(s.showplotborderonhover),void 0===H&&(H=s.plotborderhoverthickness||s.plotborderhovercolor||s.plotborderhoveralpha?1:G),H=H?h(s.plotborderhoverthickness,z||1):0,z!==H&&(C["stroke-width"]=H,J["stroke-width"]=z),G=q(s.plotborderhovercolor,"{dark-10}"),p=h(s.plotborderhoveralpha,
p),H&&(J.stroke=l,H=/\{/.test(G),C.stroke=F(H?m.parseColorMix(x?A:b,G)[0]:G,p)),A=!!h(s.showhoveranimation,1));return{y:c,displayValue:a,toolText:d,plotAsDot:e,plotFillPercent:Q,color:k,borderColor:l,borderWidth:z,link:n,colorRange:g,doNotSlice:!0,rolloverProperties:{enabled:f,hoverAttr:C,outAttr:J,showHoverAnimation:A}}}},w.linearscalegauge);w("vbullet",{friendlyName:"Vertical Bullet Gauge",creditLabel:!1,defaultSeriesType:"bullet",gaugeType:4,ticksOnRight:0,rendererId:"bullet",standaloneInit:!0},
w.bullet);w("hbullet",{friendlyName:"Horizontal Bullet Gauge",creditLabel:!1,defaultSeriesType:"hbullet",gaugeType:1,standaloneInit:!0,isHorizontal:!0,defaultCaptionPadding:5,rendererId:"hbullet",placeDataLabels:function(a,e){var c=this.smartLabel,d=a.chart,b=this.width-(d.marginRight+d.marginLeft),f=this.height-(d.marginTop+d.marginBottom),m=a.plotOptions.series.dataLabels,g=m.style,n=h(parseInt(g.fontSize,10),10),b=b-e,p=d.valuePadding,k=0,l=a.series[0].data[0];l&&l.displayValue!==L&&(c.setStyle(g),
l.isLabelString?(c=c.getSmartText(l.displayValue,b-p,f),l.displayValue=c.text,c.tooltext&&(l.originalText=c.tooltext)):c=c.getOriSize(l.displayValue),0<c.height&&(k=c.width+p),k>b&&(k=b),d.marginRight+=k,m.align=Ia,m.x=0,m.y=n-c.height/2);return k},manageTitleSpace:function(a,e,c){var d=a.chart,b=e.chart,f=this.width-(d.marginRight+d.marginLeft),d=this.height-(d.marginTop+d.marginBottom),m=h(b.captionpadding,2),b=h(h(b.captiononright,0)?b.canvasrightmargin:b.canvasleftmargin);$(b)&&(b-=m);c=h(b,f-
c);return zb(a,e,c,d,this.defaultCaptionPadding,this.width,this.height,this)},fixCaptionAlignment:function(a,e,c,d,b,f){d=e.chart;var m=c.chart,g=h(m.canvasleftmargin),m=h(m.canvasrightmargin);d.marginRight+=a.right;d.marginLeft+=a.left;$(g)&&(d.spacingLeft=d.marginLeft=g,d.spacingLeft-=a.left+0-1);$(m)&&(d.spacingRight=d.marginRight=m,d.spacingRight-=a.right+0-1);Ab(e,c,this.width,b,f,this)}},w.bullet);w("lineargauge",{creditLabel:!1,defaultSeriesType:"lineargauge",multiValueGauge:!0,realtimeEnabled:!0,
gaugeType:1,chartleftmargin:15,chartrightmargin:15,charttopmargin:10,chartbottommargin:10,colorRangeFillMix:"{light-10},{dark-20},{light-50},{light-85}",colorRangeFillRatio:"0,8,84,8",isDataLabelBold:!0,eiMethods:T(T({},w.gaugebase.eiMethods),{getData:function(a){var e,c=(e=this.jsVars)&&(e=e.hcObj)&&(e=e.options)&&(e=e.series)&&(e=e[0])&&e.data;e=c&&c.length?c.length:0;return void 0!==a&&0<a&&a<=e?(a=c[a-1],h(a.value,a.y)):null},getDataForId:function(a){var e,c=(e=this.jsVars)&&(e=e.hcObj)&&e.dataById;
return c[a]&&c[a].point?(a=c[a].point,h(a.value,a.y)):null},setData:function(a,e,c){var d="",b,f=(b=this.jsVars)&&(b=b.hcObj)&&(b=b.options)&&(b=b.series)&&(b=b[0])&&b.data;b=f&&f.length||0;f=0;if(0<a&&a<=b&&(e&&e.toString()||""===e||0===e)){for(f=a;--f;)d+="|";a="value="+(d+e);if(c&&c.toString||""===c)a+="&label="+d+c.toString();this.feedData(a)}},setDataForId:function(a,e,c){var d,b=(d=this.jsVars)&&(d=d.hcObj)&&d.dataById;b[a]&&void 0!==b[a].index&&this.setData(b[a].index+1,e,c)}}),placeDataLabels:function(a,
e,c,d,b,f,m,g){d=a.scale;b=this.smartLabel;f=a.chart;m=this.width-(f.marginRight+f.marginLeft);var n=this.height-(f.marginTop+f.marginBottom),p,k=a.plotOptions.series.dataLabels;p=k.style;var l=a.scale&&a.scale.labels&&a.scale.labels.style,s=h(parseInt(p.lineHeight,10),12);c=n-c;e=m-e;var r=f.valuePadding,v,t=0,H=0,q=0,z=0,Q=0,A=0,x=a.series&&a.series[0]&&a.series[0].data||[];a=a.scale&&a.scale.trendPoint||[];var C=0,J=x.length,B;for(b.setStyle(p);C<J;C+=1)(B=x[C])&&B.displayValue!==L&&(v=r+B.radius*
(3>=B.sides?.5:B.sides%2?1.1-1/B.sides:1),f.valuePadding=Math.max(f.valuePadding,v),this.isHorizontal?(B.isLabelString?(p=b.getSmartText(B.displayValue,m,c-r),B.displayValue=p.text,p.tooltext&&(B.originalText=p.tooltext)):p=b.getOriSize(B.displayValue)," "===B.displayValue&&(p={height:s}),0<p.height&&(t=p.height+v),t>c&&(t=c),f.pointerOnOpp?(3===d.axisPosition&&(z=Math.max(g,z),t=Math.max(g,t)),H=Math.max(H,t)):(1===d.axisPosition&&(Q=Math.max(g,Q),t=Math.max(g,t)),q=Math.max(t,q))):(B.isLabelString?
(p=b.getSmartText(B.displayValue,e-r,n),B.displayValue=p.text,p.tooltext&&(B.originalText=p.tooltext)):p=b.getOriSize(B.displayValue),0<p.width&&(A=p.width+v),A>e&&(A=e),f.pointerOnOpp?2===d.axisPosition?(f.marginRight-=g,f.marginRight+=Math.max(g,A)):f.marginRight+=A:4===d.axisPosition?(f.marginLeft-=g,f.marginLeft+=Math.max(g,A)):f.marginLeft+=A),k.align=La);b.setStyle(l);C=0;for(J=a.length;C<J;C+=1)(B=a[C])&&B.displayValue!==L&&(v=r+.5*B.markerRadius,f.valuePadding=Math.max(v,f.valuePadding),this.isHorizontal&&
(p=b.getOriSize(B.displayValue),0<p.height&&(t=p.height+v),t>c&&(t=c),B.showOnTop?(1===d.axisPosition&&(Q=Math.max(g,Q),t=Math.max(g,t)),q=Math.max(q,t)):(3===d.axisPosition&&(z=Math.max(g,z),t=Math.max(g,t)),H=Math.max(t,H)),k.align=La));this.isHorizontal&&(f.marginBottom+=H-z,f.marginTop+=q-Q,t=q+H-z-Q);return t},preSeriesAddition:function(a,e){var c=a.chart,d=e.chart,b=this.colorManager,f=a.scale;c.pointerRadius=h(d.pointerradius,10);c.pointerBgColor=q(d.pointerbgcolor,d.pointercolor,b.getColor("pointerBgColor"));
c.pointerBgAlpha=h(d.pointerbgalpha,100);c.pointerBorderColor=q(d.pointerbordercolor,b.getColor("pointerBorderColor"));c.pointerBorderThickness=h(d.pointerborderthickness,1);c.pointerBorderAlpha=h(d.pointerborderalpha,100);c.pointerSides=h(d.pointersides,3);c.showGaugeLabels=h(d.showgaugelabels,1);c.showPointerShadow=h(d.showpointershadow,d.showshadow,1);c.valuePadding=h(d.valuepadding,2);this.isHorizontal?(c.pointerOnOpp=h(d.pointerontop,1==f.axisPosition?0:1)?0:1,c.gaugeType=f.reverseScale?2:1,
c.valueAbovePointer=h(d.valueabovepointer,c.pointerOnOpp?0:1,1),c.valueInsideGauge=c.valueAbovePointer===c.pointerOnOpp?1:0):(c.pointerOnOpp=h(d.pointeronright,2==f.axisPosition?0:1),c.gaugeType=f.reverseScale?4:3)},getPointStub:function(a,e,c,d,b){var f=this.numberFormatter,m=this.colorManager,g=c.chart,n=c[K];c=f.getCleanValue(a.value);var p=D(a.link),k=D(O(q(a.tooltext,n.tooltext))),l=D(O(a.displayvalue)),s=f.dataLabels(c),f=this.colorRangeGetter.getColorObj(c);d=d.chart;var n=h(a.alpha,a.bgalpha,
g.pointerBgAlpha),r=q(a.color,a.bgcolor,g.pointerBgColor),v=F(r,n),t=h(a.showborder,d.showplotborder,1),H=h(a.borderalpha,g.pointerBorderAlpha),G=q(a.bordercolor,g.pointerBorderColor),z=F(G,H),Q=t?h(a.borderthickness,g.pointerBorderThickness):0,A=h(a.radius,g.pointerRadius),x=h(a.showhovereffect,d.showhovereffect),C,J,B,la,ba,I,M,E=!1,Ma=!1,u,w,N;this.showTooltip?void 0!==k?(b=ab(k,[1,2],{formattedValue:s},a,d),Ma=!0):b=null===s?!1:void 0!==b?b+this.tooltipSepChar+s:s:b=L;h(a.showvalue,this.showValues)?
void 0!==l?E=!0:l=D(s," "):l=L;k=h(a.sides,g.pointerSides);3>k&&(k=3);this.pointValueWatcher&&this.pointValueWatcher(c);0!==x&&(x||a.bghovercolor||d.pointerbghovercolor||d.plotfillhovercolor||a.bghoveralpha||d.pointerbghoveralpha||d.plotfillhoveralpha||0===a.bghoveralpha||0===d.pointerbghoveralpha||a.showborderonhover||d.showborderonhover||0===a.showborderonhover||0===d.showborderonhover||a.borderhoverthickness||d.pointerborderhoverthickness||0===a.borderhoverthickness||0===d.pointerborderhoverthickness||
a.borderhovercolor||d.pointerborderhovercolor||a.borderhoveralpha||d.pointerborderhoveralpha||0===a.borderhoveralpha||0===d.pointerborderhoveralpha||a.hoverradius||d.pointerhoverradius||0===a.hoverradius||0===d.pointerhoverradius)&&(x=!0,s=q(a.bghovercolor,d.pointerbghovercolor,d.plotfillhovercolor,"{dark-10}"),B=h(a.bghoveralpha,d.pointerbghoveralpha,d.plotfillhoveralpha),C=h(a.showborderonhover,d.showborderonhover),void 0===C&&(C=a.borderhoverthickness||0===a.borderhoverthickness||a.borderhovercolor||
a.borderhoveralpha||0===a.borderhoveralpha?1:t),t=q(a.borderhovercolor,d.pointerborderhovercolor,"{dark-10}"),ba=h(a.borderhoveralpha,d.pointerborderhoveralpha),la=C?h(a.borderhoverthickness,d.pointerborderhoverthickness,Q||1):0,J=h(a.hoverradius,d.pointerhoverradius,A+2),I=!!h(a.showhoveranimation,d.showhoveranimation,1),C={},w={},Q!==la&&(C["stroke-width"]=la,w["stroke-width"]=Q),w.fill=v,s=(M=/\{/.test(s))?m.parseColorMix(r,s)[0]:s,C.fill=F(s,h(B,n)),la&&(w.stroke=z,r=/\{/.test(t),C.stroke=F(r?
m.parseColorMix(G,t)[0]:t,h(ba,H))),J&&(I?(u={r:J},N={r:A}):(C.r=J,w.r=A)));return{y:c,displayValue:l,id:q(a.id,"pointer_"+e),editMode:h(a.editmode,d.editmode),isLabelString:E,isTooltextString:Ma,toolText:b,_tooltext:a.tooltext,plotFillPercent:q(d.plotfillpercent,40),bgalpha:n,color:v,borderAlpha:h(d.showplotborder,1)?g.pointerBorderAlpha:0,borderColor:z,borderWidth:Q,radius:A,sides:k,link:p,colorRange:f,doNotSlice:!0,tooltipConstraint:this.tooltipConstraint,rolloverProperties:{enabled:x,hoverAttr:C,
hoverAnimAttr:u,outAttr:w,outAnimAttr:N}}}},w.linearscalegauge);w("hlineargauge",{friendlyName:"Horizontal Linear Gauge",creditLabel:!1,defaultSeriesType:"lineargauge",rendererId:"hlinear",standaloneInit:!0,isHorizontal:!0},w.lineargauge);w("vlineargauge",{friendlyName:"Vertical Linear Gauge",creditLabel:!1,defaultSeriesType:"lineargauge",connectTickMarks:0,standaloneInit:!0},w.lineargauge);w("thermometer",{friendlyName:"Thermometer Gauge",creditLabel:!1,defaultSeriesType:"thermometer",rendererId:"thermometer",
connectTickMarks:0,tickMarkDistance:0,standaloneInit:!0,realtimeEnabled:!0,isDataLabelBold:!0,defaultPlotShadow:0,alignCaptionWithCanvas:0,defaultPaletteOptions:xa(T({},Ra),{thmBorderColor:["545454","60634E","415D6F","845001","68001B"],thmFillColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"]}),preSeriesAddition:function(a,e){var c=a.chart,d=e.chart,b=this.colorManager,f;f=this.numberFormatter;var m=h(d.showhovereffect);c.thmOriginX=h(d.thmoriginx,d.gaugeoriginx);c.thmOriginY=h(d.thmoriginy,d.gaugeoriginy);
c.thmBulbRadius=h(f.getCleanValue(d.thmbulbradius,!0));c.thmHeight=h(f.getCleanValue(h(d.thmheight,d.gaugeheight),!0));c.gaugeFillColor=q(d.gaugefillcolor,d.thmfillcolor,b.getColor("thmFillColor"));c.gaugeFillAlpha=h(d.gaugefillalpha,d.thmfillalpha,Fa);0!==m&&(m||d.thmfillhovercolor||d.plotfillhovercolor||d.thmfillhoveralpha||d.plotfillhoveralpha||0===d.thmfillhoveralpha)&&(c.plotHoverEffects={},c.plotHoverEffects.enabled=!0,f=q(d.thmfillhovercolor,d.plotfillhovercolor,"{dark-10}"),c.plotHoverEffects.thmFillHoverColor=
/\{/.test(f)?b.parseColorMix(c.gaugeFillColor,f)[0]:f,c.plotHoverEffects.thmFillHoverAlpha=q(d.thmfillhoveralpha,d.plotfillhoveralpha,c.gaugeFillAlpha));f=h(d.gaugeborderalpha,h(d.showgaugeborder,1)?40:0);c.gaugeBorderColor=F(q(d.gaugebordercolor,b.getColor("thmBorderColor")),f);c.gaugeBorderThickness=h(d.gaugeborderthickness,1);c.thmGlassColor=q(d.thmglasscolor,W(c.gaugeFillColor,30));c.use3DLighting=!h(d.use3dlighting,1)},getPointColorObj:function(a){return{code:q(a.gaugefillcolor,a.thmfillcolor,
this.colorManager.getColor("thmFillColor")),alpha:h(a.gaugefillalpha,a.thmfillalpha,100)}},getPointStub:w.linearscalegauge,placeDataLabels:w.linearscalegauge,manageTitleSpace:w.linearscalegauge,spaceManager:function(a,e,c,d){var b=a.chart,f=c-(b.marginRight+b.marginLeft),m=d-(b.marginTop+b.marginBottom),g=b.marginRight,n=b.marginLeft,p=b.marginTop,k=b.marginBottom;d=.3*f;var l=.3*m,s=b.thmOriginX,r=b.thmOriginY,v=b.thmBulbRadius,t=b.thmHeight,H=$(s),q=$(r),z=$(v),Q=$(t),A=4===a.scale.axisPosition,
x=0,C=0,J,B,la=0;a.title.alignWithCanvas||(m-=la=this.manageTitleSpace(a,e,0,m/2));this.placeTickMark&&(f-=x=this.placeTickMark(a,2*h(v,4),l));z||(b.thmBulbRadius=v=Math.min(f/2,.13*h(t,m)),z=!0);z&&(B=.643*v,d=J=2*B,z=(2*v-J)/2,H?b.marginLeft=A?b.marginLeft+(C=s-B-x):b.marginLeft+(C=s-B):A?(b.marginLeft+=(c-n-g-z-J)/2-x/2,b.marginRight-=(c-n-g-z-J)/2-x/2,b.marginRight+=C=Math.min(v,f/2)-B):(b.marginLeft+=(c-n-g-z-J)/2-x/2,b.marginRight-=(c-n-g-z-J)/2-x/2,b.marginLeft+=C=Math.min(v,f/2)-B),f-=C);
b.marginRight+=f-J;a.title.alignWithCanvas&&(m-=la=this.manageTitleSpace(a,e,0,m/2));q&&(l=r-la+v);this.placeDataLabels&&(m-=this.placeDataLabels(a,d,l,p,g,k,n));Q||(b.thmHeight=q?t=Math.max(r-la+v-B,3*v):t=Math.max(m-B,3*v));b.marginTop=q?b.marginTop+(r-la+v-t):b.marginTop+(m-t);e=1.766*v;b.marginBottom+=e;b.valuePadding+=e;b.thmHeight=b.plotHeight=t-e;this.postDataLabelsPlacement&&this.postDataLabelsPlacement(a,d,l)}},w.gaugebase);w("cylinder",{friendlyName:"Cylinder Gauge",creditLabel:!1,defaultSeriesType:"cylinder",
connectTickMarks:0,rendererId:"cylinder",tickMarkDistance:2,standaloneInit:!0,charttopmargin:10,chartbottommargin:10,chartrightmargin:10,chartleftmargin:10,isDataLabelBold:!0,realtimeEnabled:!0,alignCaptionWithCanvas:0,defaultPaletteOptions:xa(T({},Ra),{cylFillColor:["CCCCCC","ADB68F","E1F5FF","FDB548","FF7CA0"],periodColor:["EEEEEE","ECEEE6","E6ECF0","FFF4E6","FFF2F5"]}),preSeriesAddition:function(a,e){var c=a.chart,d=e.chart,b=this.colorManager,f=h(d.showhovereffect);c.cylFillColor=q(d.gaugefillcolor,
d.cylfillcolor,b.getColor("cylFillColor"));c.cylFillAlpha=q(d.gaugefillalpha,d.cylfillalpha,100);0!==f&&(f||d.cylfillhovercolor||d.plotfillhovercolor||d.cylfillhoveralpha||d.plotfillhoveralpha||0===d.cylfillhoveralpha)&&(c.plotHoverEffects={},c.plotHoverEffects.enabled=!0,f=q(d.cylfillhovercolor,d.plotfillhovercolor,"{dark-10}"),c.plotHoverEffects.cylFillHoverColor=/\{/.test(f)?b.parseColorMix(c.cylFillColor,f)[0]:f,c.plotHoverEffects.cylFillHoverAlpha=q(d.cylfillhoveralpha,d.plotfillhoveralpha,c.cylFillAlpha));
c.cylGlassColor=q(d.cylglasscolor,"FFFFFF");c.cyl3DLighting=h(d.use3dlighting,"1")},getPointColorObj:function(a){return{code:q(a.gaugefillcolor,a.thmfillcolor,this.colorManager.getColor("cylFillColor")),alpha:h(a.gaugefillalpha,a.thmfillalpha,100)}},getPointStub:w.linearscalegauge,placeDataLabels:w.linearscalegauge,manageTitleSpace:w.linearscalegauge,spaceManager:function(a,e,c,d){var b=a.chart,f=e.chart,m=c-(b.marginRight+b.marginLeft),g=d-(b.marginTop+b.marginBottom),n=b.marginRight,p=b.marginLeft,
k=b.marginTop,l=b.marginBottom,s=.2*m,r=.3*g,v=h(f.cylyscale,30),t=this.scaleFactor,H=this.numberFormatter;a.title.alignWithCanvas||(g-=this.manageTitleSpace(a,e,m/2,g/2));this.placeTickMark&&(m-=this.placeTickMark(a,s,r));this.placeDataLabels&&(g-=this.placeDataLabels(a,s,r,k,n,l,p)+8,b.valuePadding+=8);this.postDataLabelsPlacement&&this.postDataLabelsPlacement(a,s,r);b.cylHeight=D(f.cylheight);if(50<v||0>v)v=30;b.cylYScale=v/=100;n=Math.max(Ja(m,1.2*g)/2,5);n=h(D(H.getCleanValue(f.cylradius,!0))*
t,n);b.marginLeft=h(D(f.cyloriginx)*t,b.marginLeft);b.marginLeft+=m/2-n;b.marginRight=c-(b.marginLeft+2*n);a.title.alignWithCanvas&&(g-=this.manageTitleSpace(a,e,m/2,g/2));a=g-n*v*2;H=h(D(H.getCleanValue(f.cylheight,!0))*t,a);v=b.yScaleRadius=n*v;a=b.cylinderTotalHeight=2*v+H;g=g-a+b.marginTop;b.marginTop=h(D(f.cyloriginy)*t-H,v+g);b.marginBottom=d-(b.marginTop+H);b.cylRadius=n;b.cylHeight=H;b.yScaleRadius=v}},w.gaugebase);w("angulargauge",{friendlyName:"Angular Gauge",standaloneInit:!0,drawAnnotations:!0,
defaultSeriesType:"angulargauge",creditLabel:!1,rendererId:"angular",isAngular:!0,eiMethods:w.lineargauge.eiMethods,multiValueGauge:!0,realtimeEnabled:!0,defaultPaletteOptions:xa(T({},Ra),{dialColor:["999999,ffffff,999999","ADB68F,F3F5DD,ADB68F","A2C4C8,EDFBFE,A2C4C8","FDB548,FFF5E8,FDB548","FF7CA0,FFD1DD,FF7CA0"],dialBorderColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"],pivotColor:["999999,ffffff,999999","ADB68F,F3F5DD,ADB68F","A2C4C8,EDFBFE,A2C4C8","FDB548,FFF5E8,FDB548","FF7CA0,FFD1DD,FF7CA0"],
pivotBorderColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"]}),subTitleFontSizeExtender:0,charttopmargin:5,chartrightmargin:5,chartbottommargin:5,chartleftmargin:5,defaultPlotShadow:1,gaugeBorderColor:"{dark-20}",gaugeBorderThickness:1,updateSnapPoints:function(a){w.gaugebase.updateSnapPoints.apply(this,arguments);var e=a.series[0],c=this.snapLiterals;c.gaugestartangle=a.chart.gaugeStartAngle/eb;c.gaugeendangle=a.chart.gaugeEndAngle/eb;c.chartcenterx=a.chart.origW/2;c.chartcentery=a.chart.origH/
2;c.gaugecenterx=e.gaugeOriginX;c.gaugecentery=e.gaugeOriginY;c.gaugeinnerradius=e.gaugeInnerRadius;c.gaugeouterradius=e.gaugeOuterRadius;c.dial=function(c){var b=a.series[0],f=c[1]||c[0],e=(c=b.data[Number(c[0])||0])&&c.graphic;if(e){e=e.matrix;switch(f){case "startx":b=b.gaugeOriginX+e.x(-c.rearExtension,0);break;case "starty":b=b.gaugeOriginY+e.y(-c.rearExtension,0);break;case "endx":b=b.gaugeOriginX+e.x(c.radius,0);break;case "endy":b=b.gaugeOriginY+e.y(c.radius,0);break;default:b=0}return b}return 0}},
preSeriesAddition:function(a,e){var c=e.chart,d=h(c.gaugescaleangle,180),b=h(c.gaugestartangle),c=h(c.gaugeendangle),f=$(b),m=Oa?.001:.01,g=$(c);if(360<d||-360>d)d=0<d?360:-360;if(360<c||-360>c)c%=360;if(360<b||-360>b)b%=360;if(f&&g){if(d=b-c,360<d||-360>d)d%=360,c=b-d}else if(f){if(c=b-d,360<c||-360>c)c%=360,b+=0<c?-360:360}else if(g){if(b=c+d,360<b||-360>b)b%=360,c+=0<b?-360:360}else 360===d?(b=180,c=-180):-360===d?c=b=-180:(b=90+d/2,c=b-d);360===Math.abs(d)&&(d+=0<d?-m:m,c=b-d);c=360-c;b=360-b;
if(360<b||360<c)b-=360,c-=360;a.chart.gaugeStartAngle=b*eb;a.chart.gaugeEndAngle=c*eb;a.chart.gaugeScaleAngle=-d*eb},series:function(a,e){var c={data:[],colorByPoint:!0},d=a.chart,b=this.colorRangeGetter,f=(b=b&&b.colorArr)&&b.length,m=e[K],g=this.numberFormatter,n=this.colorManager,p,k,l,s=c.showValue=h(d.showvalue,d.showrealtimevalue,0),r=this.scaleFactor,v=0,t=a.dials&&a.dials.dial,H,G,z=h(d.showhovereffect),Q,A,x,C,J,B,la,ba,I,M,E,Ma,u,w,N=h(d.editmode,0),U,R,y,P,ja,Z,ra,sb,Db,aa,ua;U=v=h(D(d.pivotradius)*
r,5);c.pivotRadius=U;R=0;y=t&&t.length;aa=0;y||(R=-1,y=0,t=[]);for(0!==z&&(z||d.dialborderhovercolor||d.dialborderhoveralpha||0===d.dialborderhoveralpha||d.dialborderhoverthickness||0===d.dialborderhoverthickness||d.dialbghovercolor||d.plotfillhovercolor||d.dialbghoveralpha||d.plotfillhoveralpha||0===d.dialbghoveralpha)&&(z=1);R<y;R+=1){P=t[R]||{};p=g.getCleanValue(P.value);this.pointValueWatcher&&this.pointValueWatcher(p);ja=h(P.rearextension,0);v=Math.max(v,ja*r);l=g.dataLabels(p);Z=D(l,L);sb=h(P.showvalue,
s);Db=h(D(P.valuey)*r);ra=q(P.tooltext,P.hovertext)?!0:!1;sb&&!$(Db)&&(aa+=1);k=(k=D(O(q(P.tooltext,P.hovertext,m.tooltext))))?ab(k,[1,2],{formattedValue:l},P,d):Z;u=q(P.color,P.bgcolor,n.getColor("dialColor"));J=h(P.alpha,P.bgalpha,100);w=S({FCcolor:{color:u,alpha:J,angle:90}});H=q(P.bordercolor,n.getColor("dialBorderColor"));ua=h(P.borderalpha,100);l=F(H,ua);G=h(P.borderthickness,1);ba=h(P.radius);I=h(P.basewidth);E=h(P.topwidth,0);M=h(P.baseradius,0);Q=h(P.showhovereffect,z);if(0!==Q&&(Q||P.borderhovercolor||
P.borderhoveralpha||0===P.borderhoveralpha||P.borderhoverthickness||0===P.borderhoverthickness||P.bghovercolor||P.bghoveralpha||0===P.bghoveralpha)){Q=!0;Ma={};la={};A=q(P.borderhovercolor,d.dialborderhovercolor,"{dark-10}");C=h(P.borderhoveralpha,d.dialborderhoveralpha,ua);if(x=h(P.borderhoverthickness,d.dialborderhoverthickness,G))Ma.stroke=l,B=/\{/.test(A),la.stroke=F(B?n.parseColorMix(H,A)[0]:A,C);x!==G&&(la["stroke-width"]=x,Ma["stroke-width"]=G);H=q(P.bghovercolor,d.dialbghovercolor,d.plotfillhovercolor,
"{dark-10}");J=h(P.bghoveralpha,d.dialbghoveralpha,d.plotfillhoveralpha,J);Ma.fill=w;H=(A=/\{/.test(H))?n.parseColorMix(u,H).join():H;A={FCcolor:{color:H,alpha:J,angle:90}};la.fill=S(A)}c.data.push({rolloverProperties:{enabled:Q,hasHoverSizeChange:void 0,hoverRadius:h(NaN*r),baseHoverWidth:h(NaN*r,1.6*U),topHoverWidth:h(NaN*r),rearHoverExtension:h(NaN*r),hoverFill:A,hoverAttr:la,outAttr:Ma},_tooltext:q(P.tooltext,P.hovertext),y:p,id:q(P.id,R),color:w,showValue:sb,editMode:h(P.editmode,N),borderColor:l,
shadowAlpha:ua,borderThickness:G,baseWidth:h(I*r,1.6*U),topWidth:h(E*r),baseRadius:h(M*r),rearExtension:ja*r,valueX:h(D(P.valuex)*r),valueY:Db,radius:h(ba*r),link:q(P.link,L),isLabelString:ra,toolText:k,displayValue:sb?q(Z," "):L,doNotSlice:!0})}c.displayValueCount=aa;c.compositPivotRadius=v;e.series[0]=c;f&&this.pointValueWatcher&&h(d.includecolorrangeinlimits,this.includeColorRangeInLimits)&&(c=h(b[0].minvalue),$(c)&&this.pointValueWatcher(c),c=h(b[f-1].maxvalue),$(c)&&this.pointValueWatcher(c))},
postSeriesAddition:function(a,e){var c=e.chart,d=a.series[0],b=this.colorManager,f;d.valueBelowPivot=h(c.valuebelowpivot,0);d.gaugeFillMix=c.gaugefillmix;d.gaugeFillRatio=c.gaugefillratio;void 0===d.gaugeFillMix&&(d.gaugeFillMix="{light-10},{light-70},{dark-10}");void 0===d.gaugeFillRatio?d.gaugeFillRatio=",6":""!==d.gaugeFillRatio&&(d.gaugeFillRatio=","+d.gaugeFillRatio);f=b.parseColorMix(q(c.pivotfillcolor,c.pivotcolor,c.pivotbgcolor,b.getColor("pivotColor")),q(c.pivotfillmix,"{light-10},{light-30},{dark-20}"));
d.pivotFillAlpha=b.parseAlphaList(q(c.pivotfillalpha,Fa),f.length);d.pivotFillRatio=b.parseRatioList(q(c.pivotfillratio,db),f.length);d.pivotFillColor=f.join();d.pivotFillAngle=h(c.pivotfillangle,0);d.isRadialGradient="radial"==q(c.pivotfilltype,"radial").toLowerCase();d.showPivotBorder=h(c.showpivotborder,0);d.pivotBorderThickness=h(c.pivotborderthickness,1);d.pivotBorderColor=F(q(c.pivotbordercolor,b.getColor("pivotBorderColor")),1==d.showPivotBorder?q(c.pivotborderalpha,Fa):db);this.parseColorMix=
b.parseColorMix;this.parseAlphaList=b.parseAlphaList;this.parseRatioList=b.parseRatioList},spaceManager:function(a,e,c,d){var b=a.chart,f=e.chart,m=a.scale,g=a.series[0],n=g.displayValueCount,p=m.tickValues.style,k=h(parseInt(p.lineHeight,10),12),l=h(parseInt(p.fontSize,10),10),s=.8*l,r=.1*k,v=Oa?0:.1*k,t=h(parseInt(a.plotOptions.series.dataLabels.style.lineHeight,10),12),H=c-(b.marginRight+b.marginLeft),q=d-(b.marginTop+b.marginBottom),z=this.scaleFactor,Q=g.compositPivotRadius,A,x,C=b.gaugeStartAngle,
J=b.gaugeEndAngle,B,la=n*t+2+g.pivotRadius,ba=0,I=g.valueBelowPivot,M,E,Ma,u,w,N,y,R,F,P,L,Z,ra,S,K,aa,ua,fa,na,ia,T,W,O,Y,ha,da,X,wa,V,ca,qa,ea,ga,ma,ka,pa,sa;B=/^\d+\%$/.test(f.gaugeinnerradius)?parseInt(f.gaugeinnerradius,10)/100:.7;q-=this.titleSpaceManager(a,e,H,q/2);I||(ba=la,la=0);g.gaugeOuterRadius=h(Math.abs(D(f.gaugeouterradius)*z));g.gaugeInnerRadius=h(Math.abs(D(f.gaugeinnerradius)*z),g.gaugeOuterRadius*B);var va=b.gaugeStartAngle,ta=b.gaugeEndAngle,Pa=q,Ga=g.gaugeOuterRadius,Xa=h(D(f.gaugeoriginx)*
z-b.marginLeft),Ca=h(D(f.gaugeoriginy)*z-b.marginTop),oa=Math.max(Q,l),Aa=la,Da=ba,Ha=$(Ga),Ja=$(Xa),Ka=$(Ca),Ba=2*Math.PI,xa=Math.PI,ya=Math.PI/2,Fa=xa+ya,Na,Ua=Xa,ab=Ca,Ra,gb,Sa,Ea,Ya,Wa=!1,Za,$a,db,fb,Va,Ta,cb,za,Qa,hb,ib=va%Ba;0>ib&&(ib+=Ba);(oa=oa||0)&&oa<H/2&&oa<Pa/2&&(Wa=!0);Aa>Pa/2&&(Aa=Pa/2);Da>Pa/2&&(Da=Pa/2);Za=Math.cos(va);$a=Math.sin(va);db=Math.cos(ta);fb=Math.sin(ta);gb=Math.min(Za,db,0);Ea=Math.max(Za,db,0);Sa=Math.min($a,fb,0);Ya=Math.max($a,fb,0);if(!Ha||!Ja||!Ka){hb=ta-va;Ta=ib+
hb;if(Ta>Ba||0>Ta)Ea=1;if(0<hb){if(ib<ya&&Ta>ya||Ta>Ba+ya)Ya=1;if(ib<xa&&Ta>xa||Ta>Ba+xa)gb=-1;if(ib<Fa&&Ta>Fa||Ta>Ba+Fa)Sa=-1}else{if(ib>ya&&Ta<ya||Ta<-Fa)Ya=1;if(ib>xa&&Ta<xa||Ta<-xa)gb=-1;if(ib>Fa&&Ta<Fa||Ta<-ya)Sa=-1}Ja?Ha||(za=H-Xa,Qa=-Xa,Na=gb?Math.min(za/Ea,Qa/gb):za/Ea):(cb=Ea-gb,Va=H/cb,Xa=-Va*gb,Na=Va,Wa&&(H-Xa<oa?(Xa=H-oa,za=H-Xa,Qa=-Xa,Na=gb?Math.min(za/Ea,Qa/gb):za/Ea):Xa<oa&&(Xa=oa,za=H-Xa,Qa=-Xa,Na=gb?Math.min(za/Ea,Qa/gb):za/Ea)),Ua=Xa);Ka?Ha||(za=Pa-Ca,Qa=-Ca,Na=Math.min(Na,Sa?Math.min(za/
Ya,Qa/Sa):za/Ya)):(cb=Ya-Sa,Va=Pa/cb,Ca=-Va*Sa,Wa&&(Pa-Ca<oa?(Ca=Pa-oa,za=Pa-Ca,Qa=-Ca,Na=Math.min(Na,Sa?Math.min(za/Ya,Qa/Sa):za/Ya)):Ca<oa&&(Ca=oa,za=Pa-Ca,Qa=-Ca,Na=Math.min(Na,Sa?Math.min(za/Ya,Qa/Sa):za/Ya))),Pa-Ca<Aa?(Ca=Pa-Aa,za=Pa-Ca,Qa=-Ca,Na=Math.min(Na,Sa?Math.min(za/Ya,Qa/Sa):za/Ya)):Ca<Da&&(Ca=Da,za=Pa-Ca,Qa=-Ca,Na=Math.min(Na,Sa?Math.min(za/Ya,Qa/Sa):za/Ya)),Na=Math.min(Na,Va),ab=Ca);Ra=Na;0>=Ra&&(Ra=Math.min(H/2,Pa/2))}A=g.gaugeOriginX=Ua;x=g.gaugeOriginY=ab;M=m.majorTM;E=0;Ma=M.length;
w=a.labels.smartLabel;L=m.min;Z=m.max-m.min;ua=H-A;fa=q-x;na=m.placeValuesInside;ia=Math.cos(89.98*eb);T=-ia;W=$(g.gaugeOuterRadius);O=m.tickValueDistance;Y=m.showTickValues;ha=m.showLimits;da=h(g.gaugeOuterRadius,Ra);X=h(g.gaugeInnerRadius,da*B);wa=da;V=.2*da;ka=1.5*k;sa=(J-C)/Z;if(Y||ha)for(na?X>O+k?ca=X-O:(ca=X,O=0):(wa+=O,W||(V+=O)),w.setStyle(p);E<Ma;E+=1)if(P=M[E],pa=C+(P.value-L)*sa,ra=Math.cos(pa),S=Math.sin(pa),u=P.displayValue,N=w.getOriSize(u),y=N.width,R=N.height,F=R/2,0<y&&0<R)if(P.x=
0,na)P.align=ra>ia?bb:ra<T?Ia:La,P.isString&&(K=ca*ra,qa=Math.abs(K),qa<y&&(N=w.getSmartText(u,Math.max(qa,k),ka),P.displayValue=N.text,N.tooltext&&(P.originalText=N.tooltext),R=N.height,F=R/2)),ra>ia||ra<T?(P.y=l-F+v,P.y-=.4*R*S):P.y=s-(0>S?0:R-r);else if(P.align=ra>ia?Ia:ra<T?bb:La,K=wa*ra,aa=wa*S,W||(0<aa?(ma=F+F*S,fa<aa+ma&&(aa=fa-ma,wa=Math.max(aa/S,V))):0>aa&&(ma=F-F*S,x<-aa+ma&&(aa=ma-x,wa=Math.max(aa/S,V)))),ra>ia)K+y>ua&&(W?P.isString&&(N=w.getSmartText(u,ua-K,ka),P.displayValue=N.text,N.tooltext&&
(P.originalText=N.tooltext),R=N.height,F=R/2):(K=ua-y,wa=Math.max(K/ra,V),K=wa*ra,P.isString&&K+y>ua&&(N=w.getSmartText(u,ua-K,ka),P.displayValue=N.text,N.tooltext&&(P.originalText=N.tooltext),R=N.height,F=R/2,y=N.width,K=ua-y,wa=Math.max(K/ra,V)))),P.y=l-F+v+.4*R*S;else if(ra<T)y-K>A&&(W?P.isString&&(N=w.getSmartText(u,A+K,ka),P.displayValue=N.text,N.tooltext&&(P.originalText=N.tooltext),R=N.height,F=R/2):(K=y-A,wa=Math.max(K/ra,V),K=wa*ra,P.isString&&y-K>A&&(N=w.getSmartText(u,A+K,ka),P.displayValue=
N.text,N.tooltext&&(P.originalText=N.tooltext),y=N.width,R=N.height,F=R/2,K=y-A,wa=Math.max(K/ra,V)))),P.y=l-F+v+.4*R*S;else{0<S?(ea=fa,ga=R+aa):(ea=x,ga=R-aa);if(!W){if(ga>ea&&(wa=Math.max(ea-R,V),ga=R+wa),P.isString&&ga>ea||y>H)N=w.getSmartText(u,H,Math.max(ea-V,k)),P.displayValue=N.text,N.tooltext&&(P.originalText=N.tooltext),R=N.height,wa=Math.max(ea-R,V)}else if(P.isString&&ga>ea||y>H)N=w.getSmartText(u,H,Math.max(R-ga+ea,k)),P.displayValue=N.text,N.tooltext&&(P.originalText=N.tooltext),R=N.height;
P.y=s-(0<S?0:R-r)}W||(g.gaugeOuterRadius=na?wa:wa-O,0>=g.gaugeOuterRadius&&(g.gaugeOuterRadius=Math.abs(V)));g.gaugeInnerRadius=h(g.gaugeInnerRadius,g.gaugeOuterRadius*B)}},w.gaugebase);w("bulb",{friendlyName:"Bulb Gauge",defaultSeriesType:"bulb",defaultPlotShadow:1,standaloneInit:!0,drawAnnotations:!0,charttopmargin:10,chartrightmargin:10,chartbottommargin:10,chartleftmargin:10,realtimeEnabled:!0,isDataLabelBold:!0,rendererId:"bulb",preSeriesAddition:function(a){a=a.chart;a.colorRangeGetter=this.colorRangeGetter;
a.defaultColors=this.colorManager.getPlotColor(0);a.defaultColLen=a.defaultColors.length},getPointColor:function(a,e,c){return c?{FCcolor:{cx:.4,cy:.4,r:"80%",color:W(a,65)+u+W(a,75)+u+V(a,65),alpha:e+u+e+u+e,ratio:"0,30,70",radialGradient:!0}}:F(a,e)},getPointStub:function(a,e,c,d,b){var f=c.chart,m=c[K];e=d.chart;c=this.numberFormatter;d=c.getCleanValue(a.value);var g=c.dataLabels(d);c=D(a.link);var n=D(O(q(a.tooltext,m.tooltext))),p=D(O(a.displayvalue)),m=this.colorRangeGetter.getColorObj(d),k=
f.useColorNameAsValue=h(e.usecolornameasvalue,0),l=m.colorObj||m.prevObj||m.nextObj||{},s=this.colorManager,r=O(q(l.label,l.name)),v=q(e.gaugefillalpha,l.alpha,Fa),t=q(l.bordercolor,e.gaugebordercolor,V(l.code,70)),H=h(l.borderalpha,e.gaugeborderalpha,"90")*v/100,G=h(e.showgaugeborder,0),z=G?h(e.gaugeborderthickness,1):0,Q=f.is3D=h(e.is3d,1),A=this.getPointColor(l.code,v,Q),x=h(e.showhovereffect),C,J,B,la,ba,I,M,E,u;m.isOnMeetPoint&&(l=m.nextObj);f.gaugeFillAlpha=v;t=(E=/\{/.test(t))?s.parseColorMix(q(l.bordercolor,
l.code),t)[0]:t;f=F(t,H);0!==x&&(x||e.gaugefillhovercolor||e.plotfillhovercolor||e.gaugefillhoveralpha||e.plotfillhoveralpha||0===e.gaugefillhoveralpha||e.is3donhover||0===e.is3donhover||e.showgaugeborderonhover||0===e.showgaugeborderonhover||e.gaugeborderhovercolor||e.gaugeborderhoveralpha||0===e.gaugeborderhoveralpha||e.gaugeborderhoverthickness||0===e.gaugeborderhoverthickness)&&(x=!0,C=q(e.gaugefillhovercolor,e.plotfillhovercolor,"{dark-10}"),J=h(e.gaugefillhoveralpha,e.plotfillhoveralpha),B=
h(e.showgaugeborderonhover),void 0===B&&(B=e.gaugeborderhovercolor||e.gaugeborderhoveralpha||0===e.gaugeborderhoveralpha||e.gaugeborderhoverthickness||0===e.gaugeborderhoverthickness?1:G),G=q(e.gaugeborderhovercolor,"{dark-10}"),ba=h(e.gaugeborderhoveralpha),la=B?h(e.gaugeborderhoverthickness,z||1):0,Q=!!h(e.is3donhover,Q),h(e.showhoveranimation,1),B={},u={},z!==la&&(B["stroke-width"]=la,u["stroke-width"]=z),u.fill=S(A),C=(M=/\{/.test(C))?s.parseColorMix(l.code,C)[0]:q(C,l.code),B.fill=S(this.getPointColor(C,
h(J,v),Q)),la&&(u.stroke=f,l=/\{/.test(G),B.stroke=F(l?s.parseColorMix(E?C:t,G)[0]:G,h(ba,H))));this.showTooltip?void 0!==n?(a=ab(n,[1,2],{formattedValue:g},a,e),I=!0):a=k?r:null===g?!1:void 0!==b?b+this.tooltipSepChar+g:g:a=!1;b=void 0!==p?p:k?r:g;this.pointValueWatcher&&this.pointValueWatcher(d);return{y:d,displayValue:b,toolText:a,isLabelString:I,colorName:r,color:A,borderWidth:z,borderColor:f,colorRange:m,link:c,doNotSlice:!0,rolloverProperties:{enabled:x,hoverAttr:B,hoverAnimAttr:void 0,outAttr:u}}},
spaceManager:function(a,e,c,d){var b=this.smartLabel,f=a.series[0],m=f&&f.data[0],f=a.chart,g=e.chart,n=f.scaleFactor=this.scaleFactor;c-=f.marginRight+f.marginLeft;d-=f.marginTop+f.marginBottom;var p=f.marginLeft,k=f.marginTop,l=h(g.valuepadding,4),s=f.useColorNameAsValue,r,v=0,t;this.showValues?(m.y=D(m.y,a.scale.min),m.displayValue=D(m.displayValue,this.numberFormatter.dataLabels(a.scale.min))):m.displayValue=L;t=m.displayValue;f.gaugeOriginX=h(g.gaugeoriginx,g.bulboriginx,-1);f.gaugeOriginY=h(g.gaugeoriginy,
g.bulboriginy,-1);f.gaugeRadius=h(g.gaugeradius,g.bulbradius,-1);g=-1!==f.gaugeRadius;d-=e=this.titleSpaceManager(a,e,c,.3*d);k+=e;f.dataLabels={style:a.plotOptions.series.dataLabels.style};e=f.dataLabels.style;b.setStyle(e);1==f.placeValuesInside?(a=g?f.gaugeRadius*n:Math.min(c,d)/2,r=Math.sqrt(ga(2*a,2)/2),b=b.getSmartText(t,r,r)):(r=(g?d-2*f.gaugeRadius*n:.7*d)-l,b=b.getSmartText(t,c,r),v=b.height+l,a=Math.min(c,d-v)/2);s&&(m.displayValue=b.text,b.tooltext&&(m.originalText=b.tooltext));f.valuePadding=
l;f.valueTextHeight=b.height;f.labelLineHeight=parseInt(e.lineHeight,10);a=g?f.gaugeRadius*n:a;b=-1===f.gaugeOriginX?p+c/2:f.gaugeOriginX*n;n=-1===f.gaugeOriginY?k+(d-v)/2:f.gaugeOriginY*n;f.marginTop=f.marginLeft=0;f.gaugeRadius=a;f.gaugeOriginX=b;f.gaugeOriginY=n},updateSnapPoints:function(a){w.gaugebase.updateSnapPoints.apply(this,arguments);this.snapLiterals.gaugeradius=a.chart.gaugeRadius}},w.gaugebase);w("drawingpad",{friendlyName:"DrawingPad Component",standaloneInit:!0,defaultSeriesType:"drawingpad",
rendererId:"drawingpad",defaultPlotShadow:1,drawAnnotations:!0,chartleftmargin:0,charttopmargin:0,chartrightmargin:0,chartbottommargin:0,chart:function(){T(this.dataObj.chart,{bgcolor:this.dataObj.chart.bgcolor||"#ffffff",bgalpha:this.dataObj.chart.bgalpha||"100"});return this.base.chart.apply(this,arguments)},series:function(){T(this.hcJSON,{legend:{enabled:!1},chart:{plotBackgroundColor:Ba,plotBorderColor:Ba},series:[{data:[]}]})},spaceManager:function(){},creditLabel:!1},w.bulb);w("funnel",{friendlyName:"Funnel Chart",
standaloneInit:!0,defaultSeriesType:"funnel",sliceOnLegendClick:!0,defaultPlotShadow:1,subTitleFontSizeExtender:0,tooltippadding:3,drawAnnotations:!0,isDataLabelBold:!1,formatnumberscale:1,rendererId:"funnel",alignCaptionWithCanvas:0,defaultPaletteOptions:xa(T({},Ra),{paletteColors:y.defaultPaletteOptions.paletteColors}),preSeriesAddition:function(a,e){var c=e.chart,d=this.colorManager,b=a.plotOptions.series.dataLabels;b.connectorWidth=h(c.smartlinethickness,1);b.connectorColor=F(q(c.smartlinecolor,
d.getColor("baseFontColor")),h(c.smartlinealpha,100));h(c.showlegend,0)?(a.legend.enabled=!0,a.legend.reversed=!Boolean(h(c.reverselegend,0))):a.legend.enabled=!1;a.plotOptions.series.point.events.legendItemClick=c.interactivelegend===db?Ha:function(){this.slice()}},series:function(a,e,c){a.data&&0<a.data.length&&(a=this.point(c,{data:[],colorByPoint:!0,showInLegend:!0},a.data,a.chart,e))&&e.series.push(a)},pointHoverOptions:function(a,e,c){var d=h(a.showhovereffect,e.showhovereffect),b={enabled:d},
f={};void 0===d&&(d=b.enabled=void 0!==q(a.hovercolor,e.plotfillhovercolor,a.hoveralpha,e.plotfillhoveralpha,a.borderhovercolor,e.plotborderhovercolor,a.borderhoverthickness,e.plotborderhoverthickness,a.borderhoveralpha,e.plotborderhoveralpha));if(d){b.highlight=h(a.highlightonhover,e.highlightonhover);b.color=q(a.hovercolor,e.plotfillhovercolor);b.alpha=q(a.hoveralpha,e.plotfillhoveralpha,c.alpha);b.borderColor=q(a.borderhovercolor,e.plotborderhovercolor,c.borderColor);b.borderThickness=h(a.borderhoverthickness,
e.plotborderhoverthickness,c.borderWidth);b.borderAlpha=q(a.borderhoveralpha,e.plotborderhoveralpha,c.borderAlpha);0!==b.highlight&&void 0===b.color&&(b.highlight=1);b.color=q(b.color,c.color).replace(/,+?$/,L);if(1===b.highlight){a=b.color.split(/\s{0,},\s{0,}/);e=a.length;for(c=0;c<e;c+=1)a[c]=W(a[c],70);b.color=a.join(",")}f={color:b.color,alpha:b.alpha,borderColor:F(b.borderColor,b.borderAlpha),borderWidth:b.borderThickness}}return{enabled:d,options:b,rolloverOptions:f}},point:function(a,e,c,
d,b){a=b[K];var f=0,m=L,g=[],n=q(d.plotborderthickness,Eb),p=!0,k=!1,l=L,s=b.chart,r=this.isPyramid,v=h(d.showpercentintooltip,1),t=h(d.showlabels,1),H=h(d.showvalues,1),G=h(d.showpercentvalues,d.showpercentagevalues,0),z=q(d.tooltipsepchar,d.hovercapsepchar,Mb),Q=q(d.labelsepchar,z),A=q(d.plotbordercolor,d.piebordercolor),x=this.smartLabel,C=this.numberFormatter,J=c.length,B,la=this.colorManager,s=s.issliced=h(d.issliced,0),ba=0,I=h(d.showvalueinlegend,0),M=h(d.showlabelinlegend,1),E=h(d.valuebeforelabelinlegend,
0),Ma=h(d.showvalueaspercentinlegend,1),w=q(d.legendsepchar,", "),Nb=b.plotOptions.series.dataLabels.style,N={apply:d.showshadow==Eb,opacity:1},U,R,S,P,ja,Z,ra,T,$,aa,ua,fa,na,ia,V;e.isPyramid=r;na=e.streamlinedData=h(d.streamlineddata,1);e.is2d=h(d.is2d,0);e.isHollow=h(d.ishollow,na?1:0);ua=h(d.percentofprevious,0);aa=h(this.isPyramid?d.pyramidyscale:d.funnelyscale);e.labelDistance=Math.abs(h(d.labeldistance,d.nametbdistance,50));e.showLabelsAtCenter=h(d.showlabelsatcenter,0);e.yScale=0<=aa&&40>=
aa?aa/200:.2;t||H||(b.plotOptions.series.dataLabels.enabled=!1,!1===b.tooltip.enabled&&(p=!1));e.useSameSlantAngle=h(d.usesameslantangle,na?0:1);for(b=0;b<J;b+=1)U=c[b],c[b].vline||(U.cleanValue=aa=C.getCleanValue(U.value,!0),null!==aa&&(k=!0,V=V||aa,g.push(U),f+=aa,V=Math.max(V,aa)));if(k){e.valueSum=f;c=C.dataLabels(f);J=g.length;!r&&na&&g.sort(function(a,b){return b.cleanValue-a.cleanValue});r||na||e.data.push({showInLegend:!1,y:f,name:"",shadow:N,smartTextObj:B,color:R,alpha:S,borderColor:F(P,
ja),borderWidth:n,link:D(U.link),style:y.parsexAxisStyles(U,{},d,Nb,R),displayValue:L,doNotSlice:0===h(d.enableslicing,1)});for(b=0;b<g.length;b+=1){U=g[b];k=U.cleanValue;fa=b?g[b-1].value:k;J=O(q(U.label,U.name,L));B=x.getOriSize(J);R=b&&!r&&na?b-1:b;R=q(U.color,la.getPlotColor(R));S=q(U.alpha,d.plotfillalpha,Fa);P=q(U.bordercolor,A,W(R,25)).split(u)[0];ja=1!=d.showplotborder?db:q(U.borderalpha,d.plotborderalpha,d.pieborderalpha,"80");N.opacity=Math.max(S,ja)/100;if(aa=h(U.issliced,s))ba+=1,a.preSliced=
aa;ia=r||!na?f:ua?fa:V;p&&(ra=C.percentValue(k/ia*100),T=C.dataLabels(k)||L,Z=1===t?J:L,m=1===h(U.showvalue,H)?1===G?ra:T:L,m=($=D(O(U.displayvalue)))?$:m!==L&&Z!==L?Z+Q+m:q(Z,m)||L,na&&(l=ua?ra:C.percentValue(k/fa*100)),Z=D(O(q(U.tooltext,a.tooltext))),void 0!==Z?Z=ab(Z,[1,2,3,7,14,24,25,37],{formattedValue:T,label:J,percentValue:ua?C.percentValue(k/V*100):ra,sum:c,unformattedSum:f,percentOfPrevValue:l},U,d):(Z=1===v?ra:T,Z=J!==L?J+z+Z:Z));fa=M?J:L;I&&(ia=Ma?C.legendPercentValue(k/ia*100):C.legendValue(k),
fa=E?ia+(fa&&w+fa):(fa&&fa+w)+ia);ia=this.pointHoverOptions(U,d,{color:R,alpha:S,borderColor:P,borderAlpha:ja,borderWidth:n});B={displayValue:m,style:y.parsexAxisStyles(U,{},d,Nb,R),categoryLabel:J,toolText:Z,showInLegend:fa!==L,y:k,name:fa,shadow:N,smartTextObj:B,color:R,alpha:S,borderColor:F(P,ja),borderWidth:n,link:D(U.link),isSliced:aa,doNotSlice:0===h(d.enableslicing,1),tooltipConstraint:this.tooltipConstraint,hoverEffects:ia.enabled&&ia.options,rolloverProperties:ia.enabled&&ia.rolloverOptions};
b||r||!na||(B.showInLegend=!1);e.data.push(B)}f||(e.data=[]);e.labelMaxWidth=0;e.noOFSlicedElement=ba;return e}return null},spaceManager:function(a,e,c,d){var b=this.smartLabel,f=e.chart,m=a.chart,g=q(f.legendposition,mb).toLowerCase(),n=c-(m.marginRight+m.marginLeft);d-=m.marginTop+m.marginBottom;var p=this.isPyramid,k=0,l=0,s,r=a.series[0],v,t,H,G,z,Q,A,x,C,J,B,la,ba,I,M,E,u,w,y,N,F;if(r){v=this._tempSnap={top3DSpace:0,bottom3DSpace:0,topLabelSpace:0,rightLabelSpace:0};a.legend.enabled&&(g===bb?
n-=this.placeLegendBlockRight(a,e,n/2,d,!0):d-=this.placeLegendBlockBottom(a,e,n,d/2,!0));g=.1*d;s=h(f.slicingdistance,g);g=s>2*g?0:s;f=Math.min(2*(d-g),n);m.marginTop+=g/2;m.marginBottom+=g/2;r.SlicingDistance=s;l=r.data;A=l.length;x=p?0:1;g=r.labelDistance+3;s=r.showLabelsAtCenter;la=Math.min(f,.3*n);G=n-la;ba=n-la-g;M=0;E=(t=l[0])&&l[0].y?l[0].y:1;u=r.valueSum?r.valueSum:1;w=p?0:1;y=.8/E;N=1==r.useSameSlantAngle;B=(F=!p&&!r.streamlinedData)?l[0].y-l[1].y:0;!p&&t&&l[0].displayValue&&(C=l[0],t=a.plotOptions.series.dataLabels.style,
I=h(Fb(parseFloat(t.lineHeight)+t.borderPadding+t.borderThickness),10),b.setStyle(t),H=b.getSmartText(C.displayValue,n,I),C.displayValue=H.text,H.tooltext&&(C.originalText=H.tooltext),C.labelWidht=b.getOriSize(H.text).width,m.marginTop+=v.topLabelSpace=I+4);for(;x<A;x+=1)C=l[x],t=C.style,I=h(Fb(parseFloat(t.lineHeight)+t.borderPadding+t.borderThickness),10),b.setStyle(t),s?b.getSmartText(C.displayValue,n,I):(Q=p?(t=B+C.y/2)?t/u:1:F?.2+y*B:C.y?N?C.y/E:Math.sqrt(C.y/E):1,t=la*Q,J=ba+(la-t)/2,H=b.getSmartText(C.displayValue,
J,I),C.displayValue=H.text,H.tooltext&&(C.originalText=H.tooltext),M=Math.max(M,H.width),0<G&&(H=0<H.width?J-H.width:J+g,t=1/(Q+1)*(t+2*H+la),G=Math.min(G,t-la)),B+=F?-(l[x+1]&&l[x+1].y||0):C.y);C&&(z=p?1:F?.2:C.y?N?C.y/E:Math.sqrt(C.y/E):1);G=la+G;G>f&&(G=f);B=F?l[0].y-l[1].y:0;if(!s)for(x=p?0:1,A=l.length;x<A;x+=1)C=l[x],Q=p?(t=B+C.y/2)?t/u:1:F?.2+y*B:C.y?N?C.y/E:kb(C.y/E):1,t=G*Q,J=ba+(la-t)/2,H=b.getSmartText(C.displayValue,J,I),k=va(k,.5*t+H.width+g),B+=F?-(l[x+1]&&l[x+1].y||0):C.y;0<M?(v.rightLabelSpace=
n-G,l=k-(.5*c-m.marginRight),0<l&&(m.marginRight+=l,m.marginLeft-=l),m.marginRight+=.5*v.rightLabelSpace,m.marginLeft+=.5*v.rightLabelSpace,n-=a.title.alignWithCanvas?v.rightLabelSpace:0):g=0;r.labelDistance=r.connectorWidth=g;this.titleSpaceManager(a,e,n,d/2);(s||!M)&&f<n&&(m.marginLeft+=.5*(n-f-g),m.marginRight+=.5*(n-f-g));r.is2d||(m.marginTop+=v.top3DSpace=G*r.yScale*w/2,m.marginBottom+=v.bottom3DSpace=G*r.yScale*z/2)}},updateSnapPoints:function(){w.gaugebase.updateSnapPoints.apply(this,arguments);
var a=this.snapLiterals,e=this._tempSnap||{};a.plotwidth=a.canvaswidth;a.plotsemiwidth=a.canvaswidth/2;a.plotheight=a.canvasheight+e.top3DSpace+e.bottom3DSpace;a.plotstartx=a.canvasstartx;a.plotstarty=a.canvasstarty-e.top3DSpace;a.plotendx=a.canvasendx;a.plotendy=a.canvasendy+e.bottom3DSpace;a.canvaswidth+=e.rightLabelSpace;a.canvasheight=a.plotheight+e.topLabelSpace;a.canvasstarty=a.plotstarty-e.topLabelSpace;a.canvasendy=a.plotendy;a.canvasendx+=e.rightLabelSpace},eiMethods:{sliceDataItem:function(a){var e=
this.jsVars.hcObj,c;if(e&&e.series&&(c=e.series[0])&&c.data&&c.data[a]&&c.data[a].slice)return c.data[c.xIncrement-1-a].slice()}},useSortedData:!0,creditLabel:!1},w.gaugebase);w("pyramid",{friendlyName:"Pyramid Chart",subTitleFontSizeExtender:0,drawAnnotations:!0,standaloneInit:!0,defaultSeriesType:"pyramid",defaultPlotShadow:1,useSortedData:!1,isPyramid:1,creditLabel:!1,rendererId:"pyramid"},w.funnel);w("sparkbase",{defaultPlotShadow:0,useSortedData:!1,subTitleFontSizeExtender:0,subTitleFontWeight:0,
drawAnnotations:!0,showYAxisValues:0,numdivlines:0,chartrightmargin:3,chartleftmargin:3,charttopmargin:3,chartbottommargin:3,decimals:2,showTrendlineLabel:0,zeroplanethickness:0,tooltippadding:1,useScaleRecursively:!0,showTrendlineLabels:0,showAxisLimitGridLines:0,styleApplicationDefinition_font:w.gaugebase.styleApplicationDefinition_font,defaultPaletteOptions:xa(T({},Ra),{paletteColors:[["555555","A6A6A6","CCCCCC","E1E1E1","F0F0F0"],["A7AA95","C4C6B7","DEDFD7","F2F2EE"],["04C2E3","66E7FD","9CEFFE",
"CEF8FF"],["FA9101","FEB654","FED7A0","FFEDD5"],["FF2B60","FF6C92","FFB9CB","FFE8EE"]],bgColor:["FFFFFF","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["100","60,50","40,20","20,10","30,30"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:["","","","",""],canvasBorderColor:["BCBCBC","BEC5A7","93ADBF",
"C97901","FF97B1"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["333333","60634E","025B6A","A15E01","68001B"],trendColor:["666666","60634E","415D6F","845001","68001B"],plotFillColor:["666666","A5AE84","93ADBF","C97901","FF97B1"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],periodColor:["EEEEEE","ECEEE6","E6ECF0","FFF4E6","FFF2F5"],winColor:["666666","60634E",
"025B6A","A15E01","FF97B1"],lossColor:["CC0000","CC0000","CC0000","CC0000","CC0000"],drawColor:["666666","A5AE84","93ADBF","C97901","FF97B1"],scorelessColor:["FF0000","FF0000","FF0000","FF0000","FF0000"]}),preSeriesAddition:function(a,e){var c=a.plotOptions.series.dataLabels.style,d=a.chart,b=e.chart,c={fontFamily:c.fontFamily,fontSize:c.fontSize,lineHeight:c.lineHeight,fontWeight:c.fontWeight,fontStyle:c.fontStyle},f,m,g,n;if("sparkwinloss"==this.name&&(f=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data,
m={w:1,l:-1,d:.1},0<(g=f&&f.length)))for(;g;)--g,n=f[g],n.value=m[n.value.toLowerCase()];d.borderWidth=h(b.showborder,this.showBorder,0)?h(b.borderthickness,1):0;d.plotBorderWidth=h(b.canvasborderthickness,1);f=d.openColor=pa(q(b.opencolor,"0099FF"));m=d.closeColor=pa(q(b.closecolor,"0099FF"));d.highColor=pa(q(b.highcolor,"00CC00"));d.lowColor=pa(q(b.lowcolor,"CC0000"));d.openHoverColor=F(pa(q(b.openhovercolor,b.anchorhovercolor,b.plotfillhovercolor,W(f,70))),h(b.openhoveralpha,b.anchorhoveralpha,
b.plotfillhoveralpha,100));d.closeHoverColor=F(pa(q(b.closehovercolor,b.anchorhovercolor,b.plotfillhovercolor,W(m,70))),h(b.closehoveralpha,b.anchorhoveralpha,b.plotfillhoveralpha,100));d.highHoverColor=F(pa(q(b.highhovercolor,b.anchorhovercolor,b.plotfillhovercolor,W(d.highColor,70))),h(b.highhoveralpha,b.anchorhoveralpha,b.plotfillhoveralpha,100));d.lowHoverColor=F(pa(q(b.lowhovercolor,b.anchorhovercolor,b.plotfillhovercolor,W(d.lowColor,70))),h(b.lowhoveralpha,b.anchorhoveralpha,b.plotfillhoveralpha,
100));this.forceHoverEnable=q(b.openhovercolor,b.closehovercolor,b.highhovercolor,b.lowhovercolor,b.openhoveralpha,b.closehoveralpha,b.highhoveralpha,b.lowhoveralpha,b.winhovercolor,b.losshovercolor,b.drawhovercolor,b.scorelesshovercolor);a.chart.openValue={style:T({},c)};Ka(a.chart.openValue.style);a.chart.openValue.style.color=f;a.chart.closeValue={style:T({},c)};Ka(a.chart.openValue.style);a.chart.closeValue.style.color=m;a.chart.highLowValue={style:T({},c)};this.parseStyles(a);0===this.showCanvas&&
(d.plotBackgroundColor=Ba);this.showCanvasBorder||(d.plotBorderWidth=0);d.useRoundEdges||(d.plotShadow=0);b.zeroplanethickness=q(b.zeroplanethickness,this.zeroplanethickness);delete b.yaxisname;delete b.xaxisname;b.showlabels=q(b.showlabels,db)},spaceManager:function(a,e,c,d){var b=a[K],f=this.smartLabel||b.smartLabel,m=e.chart,g=a.series[0],n=a.chart,p=c-(n.marginRight+n.marginLeft),k=h(m.canvasleftmargin),l=h(m.canvasrightmargin),s=a.valuePadding=h(m.valuepadding,2),r=a.plotOptions.series.dataLabels.style,
v=parseInt(r.lineHeight,10),t=p,H=b=0,G,z;if(g){d=zb(a,e,.7*p,d,void 0,c,d,this);t-=d.left+d.right;p=c-(n.marginRight+n.marginLeft);z=G=g=0;f.setStyle(r);$(n.openValue.label)&&(f.setStyle(n.openValue.style),v=h(parseInt(n.openValue.style.lineHeight,10),10),r=f.getSmartText(n.openValue.label,t,1.5*v),0<r.width&&(b=g=r.width+s,t-=g));$(n.closeValue.label)&&(f.setStyle(n.closeValue.style),v=h(parseInt(n.closeValue.style.lineHeight,10),10),r=f.getSmartText(n.closeValue.label,t,1.5*v),0<r.width&&(H=G=
r.width+s,t-=G));$(n.highLowValue.label)&&(f.setStyle(n.highLowValue.style),v=h(parseInt(n.highLowValue.style.lineHeight,10),10),f=f.getSmartText(n.highLowValue.label,t,1.5*v),0<f.width&&(H+=z=f.width+s));n.marginRight+=z+G;n.marginLeft+=g;$(k)?(n.spacingLeft=n.marginLeft=k,n.spacingLeft-=d.left+g):n.marginLeft+=d.left;$(l)?(n.spacingRight=n.marginRight=l,n.spacingRight-=d.right+z+G):n.marginRight+=d.right;this.xAxisMinMaxSetter(a,e,p);n=a.xAxis;l=n.min;p=n.max;k=h(m.periodlength,0);m=F(q(m.periodcolor,
this.colorManager.getColor("periodColor")),h(m.periodalpha,100));s=1;if(0<k)for(;l<=p;l+=k)s?(n.plotBands.push({color:m,from:l,to:Math.min(p,l+k),zIndex:1}),s=0):s=1;Ab(a,e,c,b,H,this)}}},Ob);w("sparkline",{friendlyName:"Spark Line Chart",standaloneInit:!0,defaultSeriesType:"line",rendererId:"sparkline",creditLabel:!1,showtooltip:0,showCanvas:0,point:w.linebase.point,lineThickness:1,anchorRadius:2,anchorBorderThickness:0,postSeriesAddition:function(a,e){var c=a.chart,d=e.chart,b=this.colorManager,
f=a.series&&a.series[0],m=f&&a.series[0].data,g,n,p,k=this.highValue,l=this.lowValue,s=this.numberFormatter,r=c.openColor,v=c.closeColor,t=c.highColor,H=c.lowColor,G=c.openHoverColor,z=c.closeHoverColor,Q=c.highHoverColor,A=c.lowHoverColor,x;x=pa(q(d.anchorcolor,b.getColor("plotFillColor")));var C=h(d.showopenanchor,d.drawanchors,d.showanchors,1),J=h(d.showcloseanchor,d.drawanchors,d.showanchors,1),B=h(d.showhighanchor,d.drawanchors,d.showanchors,1),u=h(d.showlowanchor,d.drawanchors,d.showanchors,
1),ba=h(d.anchoralpha,100),I,M=h(d.drawanchors,d.showanchors,0),E=M?h(d.anchoralpha,100):0,Ma,w,y=0,N=q(d.linecolor,b.getColor("plotFillColor")),D=h(d.linealpha,100),R,K;if(0<(b=g=m&&m.length)){n=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data;f.color=F(N,D);R=m[0]&&m[0].y||L;for(K=m[b-1]&&m[b-1].y||L;g;)--g,f=m[g],p=n[g],x=void 0,I=h(f.anchorbgalpha,ba),f.color=F(q(p.color,N),h(p.alpha,D)),f.marker.fillColor=F(q(f.anchorbgcolor,x),h(f.anchorbgalpha,E)),x=F(pa(q(d.anchorhovercolor,d.plotfillhovercolor,
W(N,70))),h(d.lowhoveralpha,d.anchorhoveralpha,d.plotfillhoveralpha,100)),h(d.anchorhoverradius,f.marker.radius),f.marker.enabled=!!M,f.y==l&&(x=q(f.anchorbgcolor,H),f.marker.fillColor=F(x,I),x=A,f.marker.enabled=!!u,w=s.dataLabels(f.y)),f.y==k&&(x=q(f.anchorbgcolor,t),f.marker.fillColor=F(x,I),x=Q,f.marker.enabled=!!B,Ma=s.dataLabels(f.y)),void 0!==f.toolText&&(f.toolText=ab(f.toolText,[54,55,56,57,58,59,60,61],{openDataValue:s.dataLabels(R),closeDataValue:s.dataLabels(K),highDataValue:s.dataLabels(k),
lowDataValue:s.dataLabels(l),openValue:R,closeValue:K,highValue:k,lowValue:l},{},d)),h(p.showvalue,d.showvalue,d.showvalues,0)||(f.displayValue=L),$(f.y)&&(y=1),p=f.hoverEffects,f.marker.enabled&&p&&(p.anchorColor=x,p=f.rolloverProperties,p.radius=h(d.anchorhoverradius,f.marker.radius),p.lineWidth=0,p.lineColor=p.fillColor=x);f=m[0];f.marker.fillColor=F(q(f.anchorbgcolor,r),I);f.marker.enabled=!!C;p=f.hoverEffects;f.marker.enabled&&p&&(p.anchorColor=G,p=f.rolloverProperties,p.radius=h(d.anchorhoverradius,
f.marker.radius),p.lineWidth=0,p.lineColor=p.fillColor=G);r=s.dataLabels(f.y);f.y==l&&u&&(f.marker.fillColor=F(q(f.anchorbgcolor,H),I),f.marker.enabled=!!u);f.y==k&&B&&(f.marker.fillColor=F(q(f.anchorbgcolor,t),I),f.marker.enabled=!!B);f=m[b-1];f.marker.fillColor=F(q(f.anchorbgcolor,v),I);f.marker.enabled=!!J;p=f.hoverEffects;f.marker.enabled&&p&&(p.anchorColor=z,p=f.rolloverProperties,p.radius=h(d.anchorhoverradius,f.marker.radius),p.lineWidth=0,p.lineColor=p.fillColor=z);m=s.dataLabels(f.y);f.y==
l&&u&&(f.marker.fillColor=F(q(f.anchorbgcolor,H),I),f.marker.enabled=!!u);f.y==k&&B&&(f.marker.fillColor=F(q(f.anchorbgcolor,t),I),f.marker.enabled=!!B);c.openValue.label=c.closeValue.label=c.highLowValue.label=c.highLowValue.highLabel=void 0;y&&(c.openValue.label=h(d.showopenvalue,1)?r:L,c.closeValue.label=h(d.showclosevalue,1)?m:L,h(d.showhighlowvalue,1)&&(c.highLowValue.label="["+Ma+" | "+w+"]",c.highLowValue.highLabel=Ma,c.highLowValue.lowLabel=w))}}},w.sparkbase);w("sparkcolumn",{friendlyName:"Spark Column Chart",
standaloneInit:!0,rendererId:"cartesian",defaultSeriesType:"column",creditLabel:!1,showCanvasBorder:!0,point:w.column2dbase.point,useFlatColor:!0,postSeriesAddition:function(a,e){var c=e.chart,d=this.colorManager,b=a.series&&a.series[0]&&a.series[0].data,f,m,g,n,p=this.highValue,k=this.lowValue,l=this.numberFormatter,s=q(c.plotfillalpha,Fa),r=q(c.plotfillcolor,d.getColor("plotFillColor")),v=q(c.plotborderalpha,Fa),t=q(c.plotbordercolor),H,G=q(c.highcolor,"000000"),z=q(c.lowcolor,"000000"),Q=q(c.highbordercolor,
t),A=q(c.lowbordercolor,t),x=h(c.showplotborder,0)?h(c.plotborderthickness,1):0,C,J,B,u,ba,I;if(0<(d=b&&b.length))for(m=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data;d;)--d,f=b[d],g=m[d],C=q(g.color,r),J=q(g.alpha,s),B=q(g.bordercolor,t),u=q(g.borderalpha,v),ba=q(g.ratio,c.plotfillratio),I=q(360-c.plotfillangle,90),f.y==p&&(C=q(g.color,G),B=q(g.bordercolor,Q),n=f.hoverEffects)&&(n.color=q(g.hovercolor,c.highhovercolor,c.plotfillhovercolor,W(C,70)),n.borderColor=q(g.borderhovercolor,c.highborderhovercolor,
c.plotborderhovercolor,B),n.colorArr=n=this.getColumnColor(g,n.color,q(g.hoveralpha,c.highhoveralpha,c.plotfillhoveralpha,J),n.borderColor,u,ba,I,a.chart.useRoundEdges),H=f.rolloverProperties,H.color=n[0],H.borderColor=n[1]),f.y==k&&(C=q(g.color,z),B=q(g.bordercolor,A),n=f.hoverEffects)&&(n.color=q(g.hovercolor,c.lowhovercolor,c.plotfillhovercolor,W(C,70)),n.borderColor=q(g.borderhovercolor,c.lowborderhovercolor,c.plotborderhovercolor,B),n.colorArr=n=this.getColumnColor(g,f.hoverEffects.color,q(g.hoveralpha,
c.lowhoveralpha,c.plotfillhoveralpha,J),f.hoverEffects.borderColor,u,ba,I,a.chart.useRoundEdges),H=f.rolloverProperties,H.color=n[0],H.borderColor=n[1]),void 0!==f.toolText&&(f.toolText=ab(f.toolText,[56,57,60,61],{highValue:p,lowValue:k,highDataValue:l.dataLabels(p),lowDataValue:l.dataLabels(k)},{},c)),n=this.getColumnColor(g,C,J,B,u,ba,I,a.chart.useRoundEdges),f.color=n[0],f.borderColor=n[1],f.borderWidth=x,h(g.showvalue,c.showvalue,c.showvalues,0)||(f.displayValue=L)},getColumnColor:function(a,
e,c,d,b,f,m,g,n,p){var k;d=q(d,V(e,60));k=e.split(u);a=c.split(u);d=d.split(u);b=b.split(u);p?n={FCcolor:{color:k[0],alpha:a[0]}}:g?(e=k[0],c=a[0],n={FCcolor:{color:V(e,75)+u+W(e,25)+u+V(e,80)+u+W(e,65)+u+V(e,80),alpha:c+u+c+u+c+u+c+u+c,ratio:"0,10,13,57,20",angle:n?"-180":"0"}},d=[V(e,70)]):(c=ub(c,k.length),n={FCcolor:{color:e,alpha:c,ratio:f,angle:n?180-m:m}});return[n,{FCcolor:{color:d[0],alpha:b[0]}}]}},w.sparkbase);w("sparkwinloss",{friendlyName:"Spark Win-Loss Chart",standaloneInit:!0,defaultSeriesType:"column",
rendererId:"sparkwinloss",creditLabel:!1,showCanvasBorder:!1,showCanvas:0,showtooltip:0,postSeriesAddition:function(a,e){var c=a.chart,d=e.chart,b=this.colorManager,f=a.series&&a.series[0]&&a.series[0].data,m=q(d.plotfillalpha,Fa),g=q(d.plotfillcolor,b.getColor("plotFillColor")),n=q(d.plotborderalpha,Fa),p=q(d.plotbordercolor),k=h(d.showplotborder,0)?h(d.plotborderthickness,1):0,l=q(d.wincolor,b.getColor("winColor")),s=q(d.losscolor,b.getColor("lossColor")),r=q(d.drawcolor,b.getColor("drawColor")),
b=q(d.scorelesscolor,b.getColor("scorelessColor")),v=d.winhovercolor,t=d.losshovercolor,H=d.drawhovercolor,G=d.scorelesshovercolor,z=L,Q,A,x,C,J,B,u=0,ba=0,I=0;A=a.yAxis[0];var M,E,w,y,F,N;a.tooltip.enabled=!1;A.min=-1.1;A.max=1.1;if(0<(y=f&&f.length)){for(F=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data;y;){--y;M=f[y];N=F[y];switch(N.value){case 1:z=q(N.color,l,g);Q=q(N.hovercolor,v,z);u+=1;break;case -1:z=q(N.color,s,g);Q=q(N.hovercolor,t,z);ba+=1;break;case .1:z=q(N.color,r,g),Q=q(N.hovercolor,
H,z),I+=1}1==N.scoreless&&(z=q(N.color,b,g),Q=q(N.hovercolor,G,N.color,b,Q));A=q(N.alpha,m);x=q(N.bordercolor,p);C=q(N.borderalpha,n);J=q(N.ratio,d.plotfillratio);B=q(360-d.plotfillangle,90);w=this.getColumnColor(N,z,A,x,C,J,B,a.chart.useRoundEdges);M.color=w[0];M.borderColor=w[1];M.borderWidth=k;h(N.showvalue,0)||(M.displayValue=L);if(E=M.hoverEffects)M=M.rolloverProperties,E.color=W(Q,70),w=E.colorArr=this.getColumnColor(N,E.color,A,x,C,J,B,a.chart.useRoundEdges),M.color=w[0],M.borderColor=w[1],
E.borderThickness=k,M.borderWidth=k}1==h(d.showvalue,1)&&(c.closeValue.style=T({},a.plotOptions.series.dataLabels.style),c.closeValue.label=u+"-"+ba+(0<I?"-"+I:L))}}},w.sparkcolumn);Va={realtimeEnabled:!0,canvasPaddingModifiers:null,linearDataParser:w.gaugebase.linearDataParser,eiMethods:xa({},w.gaugebase.eiMethods),decimals:2,prepareRealtimeValueText:function(){var a=this.hcJSON,e=this.hcJSON[K],c=e.rtLabel,d=a.chart.realtimeValueSeparator,b=new RegExp(d+"$","g");c&&c.label&&(e=e.realtimeValues.join(d).replace(b,
L),c.label.text=e,a.xAxis.plotLines&&(a.xAxis.plotLines[0]=c))},chart:function(){var a=this.dataObj.chart,e=this.numberFormatter,c,d,b,f=h(a.showrealtimevalue,1),m=h(a.realtimevaluepadding),g,n,a=this.dataObj.chart;a.adjustdiv="0";f&&(a.xaxisname=a.xaxisname?"<br/>"+a.xaxisname:"<br/>");c=w.msareabase.chart.apply(this,arguments);b=c.chart;d=c[K];g=c.series;d.isDual?(d._userPMin=h(a.pyaxisminvalue),d._userPMax=h(a.pyaxismaxvalue),d._userSMin=h(a.syaxisminvalue),d._userSMax=h(a.syaxismaxvalue)):(d._userMin=
h(a.yaxisminvalue),d._userMax=h(a.yaxismaxvalue));b.dataStreamURL=q(a.datastreamurl,"");b.refreshInterval=h(a.refreshinterval,1);b.updateInterval=h(a.updateinterval,b.refreshInterval);b.clearInterval=h(a.clearchartinterval,0);b.dataStamp=a.datastamp;b.useMessageLog=h(a.usemessagelog,0);b.messageLogWPercent=Ja(h(a.messagelogwpercent,80),100);b.messageLogHPercent=Ja(h(a.messageloghpercent,70),100);b.messageLogShowTitle=h(a.messagelogshowtitle,1);b.messageLogTitle=q(a.messagelogtitle,"Message Log");
b.messageLogColor=q(a.messagelogcolor,"#fbfbfb");b.messageGoesToJS=h(a.messagegoestojs,0);b.messageGoesToLog=h(a.messagegoestolog,1);b.messageJSHandler=q(a.messagejshandler,"");b.messagePassAllToJS=h(a.messagepassalltojs,0);b.messageLogIsCancelable=h(a.messagelogiscancelable,1);b.alwaysShowMessageLogMenu=h(a.alwaysshowmessagelogmenu,b.useMessageLog);b.showRTMenuItem=h(a.showrtmenuitem,0);b.showRealtimeValue=f;b.realtimeValueSeparator=q(a.realtimevaluesep,", ");b.realtimeValuePadding=m;b.realtimeValueFont=
q(a.realtimevaluefont,"");b.realtimeValueFontBold=q(a.realtimevaluefontbold,0);b.realtimeValueFontColor=q(a.realtimevaluefontcolor,"");b.realtimeValueFontSize=h(a.realtimevaluefontsize,"");if(f){if(!d.realtimeValues)for(d.realtimeValues=[],f=0,m=g.length;f<m;f++)a=g[f],n=(n=a.data)&&n.length&&n[n.length-1]&&n[n.length-1].y,d.realtimeValues[f]=e.dataLabels(n,a.yAxis);d.rtLabel||(e=T({},d.outCanvasStyle),e.fontWeight=b.realtimeValueFontBold?"bold":"normal",b.realtimeValueFontColor&&(e.color=b.realtimeValueFontColor.replace(fb,
hb)),b.realtimeValueFontSize&&(e.fontSize=b.realtimeValueFontSize+jb),b.realtimeValueFont&&(e.fontFamily=b.realtimeValueFont),g=h(parseInt(e.fontSize,10),10),d.rtLabel={color:ha,alwaysVisible:!0,isTrend:!0,value:(d.x.catCount-1)/2,width:.01,label:{align:La,textAlign:La,rotation:0,textVAlign:Wa,text:" ",x:0,y:.8*g+(c.xAxis.title.margin|0),style:e}},c.xAxis.plotLines.splice(0,0,d.rtLabel))}b.showRTMenuItem?(c.callbacks||(c.callbacks=[])).push(this.drawRTMenuButtons):b.useMessageLog&&b.alwaysShowMessageLogMenu&&
b.messageGoesToLog&&(c.callbacks||(c.callbacks=[])).push(this.drawMLMenuButtons);this.dataObj.alerts&&(this.hcJSON.alerts=this.parseAlertObj(this.dataObj.alerts));return c},parseAlertObj:function(a){var e=this.numberFormatter,c=a&&a.alert,d=c.length,b={alert:[]},f,m,g,n,p;for(a=0;a<d;a+=1)n=c[a],f=e.getCleanValue(n.minvalue),m=e.getCleanValue(n.maxvalue),g=q(n.action,""),n=q(n.param,""),null!==f&&null!==m&&""!==g&&(f>m&&(p=m,m=f,f=p),b.alert.push({minvalue:f,maxvalue:m,param:n,action:g}));return b},
drawMLMenuButtons:function(){var a=this.options,e=a.chart,c=this.menu||(this.menu=[]),d=this.toolbar,a=a[K],b;c.push(b=oa({chart:this,basicStyle:a&&a.outCanvasStyle||this.outCanvasStyle||{},items:[{text:"Show Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&y.messageLogger.open();b.showItem(4);b.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&y.messageLogger.close();b.showItem(3);b.hideItem(4)}}],position:{x:e.spacingLeft,y:this.chartHeight-
e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15)}}));b.hideItem(1);this.elements.configureButton=d.add("loggerIcon",function(a,c){return function(){b.visible?b.hide():b.show({x:a,y:c+1})}}(),{x:e.spacingLeft,y:this.chartHeight-e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15),tooltip:"Show & Hide Message"})},drawRTMenuButtons:function(){var a=this.logic,e=a.chartInstance,c=this.options,d=c.chart,b=d&&d.alwaysShowMessageLogMenu,f=this.menu||(this.menu=[]),m=this.toolbar,c=(c=c[K])&&
c.outCanvasStyle||this.outCanvasStyle||{},g,n=e.isUpdateActive||a.eiMethods.isUpdateActive,n=n&&n.call(e);f.push(g=oa({chart:this,basicStyle:c,items:[{text:"Stop Update",visibility:n?qb:"hidden",onclick:function(){g.hideItem(0);g.showItem(1);e.stopUpdate()}},{text:"Start Update",visibility:n?"hidden":qb,onclick:function(){g.hideItem(1);g.showItem(0);e.restartUpdate()}},{text:"Clear Chart",onclick:function(){e.clearChart()}},{text:"Show Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&
y.messageLogger.open();g.showItem(4);g.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&y.messageLogger.close();g.showItem(3);g.hideItem(4)}}],position:{x:d.spacingLeft,y:this.chartHeight-d.spacingBottom+(d.showFormBtn||d.showRestoreBtn?10:-15)}}));h(a.dataObj.chart.allowclear,1)||g.hideItem(2);g.hideItem(0);g.hideItem(1);!b&&g.hideItem(3);g.hideItem(4);g.showItem(n?0:1);this.elements.configureButton=m.add("configureIcon",function(a,b){return function(){g.visible?
g.hide():g.show({x:a,y:b+1})}}(),{x:d.spacingLeft,y:this.chartHeight-d.spacingBottom+(d.showFormBtn||d.showRestoreBtn?10:-15),tooltip:"Manage RealTime Update"})},shiftPlotLines:function(a,e,c,d){var b,f,m=[],g=d[0],n=g&&g.RTValueArr,p=n&&n.length||0,k=(d=d[1])&&d.RTValueArr,l=k&&k.length||0,s=a&&a.length||0,r;c=h(c,-.5);for(r=0;r<s;r+=1)if(b=a[r],b.isGrid||b.isVline)if(f=b.value+=e,f<c||f===c&&b.isVline)a.splice(r,1),b.isGrid&&m.push(b),--r,--s;if(g&&n&&p)for(n.splice(0,-e),p=n.length,delete g.min,
delete g.max,r=0;r<p;r+=1)(a=n[r])&&void 0!==a.min&&(!1===g.min<a.min&&(g.min=a.min),!1===g.max>a.max&&(g.max=a.max));if(d&&k&&l)for(k.splice(0,-e),l=k.length,delete d.min,delete d.max,r=0;r<l;r+=1)(a=k[r])&&void 0!==a.min&&(!1===d.min<a.min&&(d.min=a.min),!1===d.max>a.max&&(d.max=a.max));return m},configureAxis:function(a){var e=a[K],c=a.xAxis,d=e.x,b=e.axisGridManager,f=d.catCount,m=e.oriCatTmp,g=e[0],n=g&&g.RTValueArr,p=e[1],k=p&&p.RTValueArr,l=this.dataObj,s=l.chart||(l.chart={}),l=a.series,r=
l[0].data.length,s=this.numDisplaySets=h(s.numdisplaysets,va(r,15)),v=c.plotLines,t=v&&v.length||0,H=[],q=this.chartInstance.jsVars._reflowData,z;q.hcJSON&&(z=q.hcJSON[K])&&(g.min=z[0]&&z[0].min,g.max=z[0]&&z[0].max,p.min=z[1]&&z[1].min,p.max=z[1]&&z[1].max);p=((this.dataObj.categories||(this.dataObj.categories=[{category:[]}]))[0]||(this.dataObj.categories[0]={category:[]})).category||(this.dataObj.categories[0].category=[]);0===f&&(this.chartInstance.jsVars._forceReflow=!0);g=s-r;if(0<g){for(;t--;)v[t].value+=
g;for(c.plotLines=[];g--;)H[g]={y:null},b.addXaxisCat(c,g,g," ",{},{},{}),n&&n.unshift(null),k&&k.unshift(null),m.unshift(null),p.unshift({label:" "});c.plotLines=c.plotLines.reverse().concat(v)}else g&&(this.shiftPlotLines(c.plotLines,g,-.5,e),m.splice(0,-g));for(g=l.length;g--;)c=l[g],e=c.data,c.data=H.concat(e.slice(-s));this.needsRedraw=0===f;d.catCount=s;return w.msareabase.configureAxis&&w.msareabase.configureAxis.apply(this,arguments)},postSeriesAddition:function(a,e,c,d,b){e=a[K];c=e.isBar;
d=a.chart.rotateValues&&!c?270:0;var f=e[0],m=f.RTValueArr,g=f&&f.stacking100Percent,n,p,k,l,h,r,v,t,H;if(this.isStacked&&m&&(e.showStackTotal||g))for(b=b||0,r=a.series,v=T({},a.plotOptions.series.dataLabels.style),t=parseFloat(v.fontSize),H=!f.stacking100Percent,v.color=a.plotOptions.series.dataLabels.color,f=m.length;b<f;b+=1)if(p=m[b])if(h=(p.n||0)+(p.p||0),e.showStackTotal&&(n=b,p=0>h?p.n:p.p,a.xAxis.plotLines.push({value:n,width:0,isVline:H,isTrend:!H,zIndex:4,_isStackSum:1,_catPosition:b,label:{align:La,
textAlign:270===d?0>h?bb:Ia:La,offsetScale:H?p:void 0,offsetScaleIndex:0,rotation:d,style:v,verticalAlign:Wa,y:c?0:0>h?270===d?4:t:-4,x:0,text:e.numberFormatter.yAxis(h)}})),g)for(p=0,n=r.length;p<n;p+=1)if(r[p].data){k=r[p].data[b];if(k.y||0===k.y)l=k.y/h*100,k.y=l,k.showPercentValues&&(k.displayValue=this.numberFormatter.percentValue(l)),k.showPercentInToolTip&&(k.toolText=k.toolText+parseInt(100*l,10)/100+"%");if(k.previousY||0===k.previousY)k.previousY=k.previousY/h*100}},pointValueWatcher:function(a,
e,c,d,b){if(null!==e){var f=a[K];a=f[c||(c=0)];var m;a||(a=f[c]={});c=a.RTValueArr;c||(c=a.RTValueArr=[]);(f=c[b])||(f=c[b]={});d&&(0<=e?f.p?(m=f.p,e=f.p+=e):f.p=e:f.n?(m=f.n,e=f.n+=e):f.n=e);!1===f.max>e&&(f.max=e,!1===a.max>e&&(a.max=e));!1===f.min<e&&(f.min=e,!1===a.min<e&&(a.min=e));return m}},realtimeUpdate:function(a,e){var c=this.hcJSON,d=this.dataObj,b=d.chart,f="0"===b.allowclear?0:1,m=c[K],g=this.numberFormatter,n=m.x,p=n._labelY,k=n._labelX,l=n._yShipment,s=n._isStagger,r=n._rotation,v=
n._textAlign,t=n._adjustedPx,H=n._staggerLines,q=n._labelHeight,z,Q=m.axisGridManager,A=n.catCount,x=this.renderer,C=this.chartInstance.jsVars,J=a.values,B=a.labels||[],u=a.showLabels||[],ba=a.colors,I=a.toolTexts,M=a.links,E=c.xAxis,w="0"===d.chart.showlabels,y=c.chart.showRealtimeValue,F=d.categories,N=C._reflowData,U=[],R=h(m._startIndex,0),S=n.stepValue,n=a.dimension>A?A:a.dimension,P=A-n,U=[],ja=a.vlines,Z,ra,W,V,aa,ua,fa,na,ia,$,Y=new Date,da,ha,X,ea,ca,wa;a.clear&&f&&this.realtimeUpdate({dimension:this.numDisplaySets,
values:[],labels:[]},0<a.dimension);if(a.dimension){c.plotOptions.series.animation=!1;ja?(Z=a.vlineColors||[],ra=a.vlineLabels||[],W=a.vlineThickness||[],V=a.vlineDashed||[]):ja=[];F||(F=d.categories=[]);F[0]?F[0].category||(F[0].category=[]):F[0]={category:[]};F=F[0].category;U=this.shiftPlotLines(E.plotLines,-n,-.5,m);for(f=U.length;f--;)($=U[f]).label&&(aa=$.label,aa.text="0"===u[f]||w?"":O(B[f]||L),z=P+f,$.value=z,ua=A+f+R,(z=0===ua%S)?(aa.style=E.labels.style,aa.y=s?p+ua/S%H*q:l,aa.x=k+(r?t:
0),aa.rotation=r,aa.textAlign=v):aa.style=E.steppedLabels.style,E.plotLines.push(T({},$)),F.shift(),F.push({label:aa.text})),"1"===ja[f]&&Q.addVline(E,{color:Z[f]&&decodeURIComponent(Z[f]),label:ra[f]&&decodeURIComponent(ra[f]),thickness:W[f]&&decodeURIComponent(W[f]),dashed:V[f]&&decodeURIComponent(V[f])},P+f,c);U=[];m._startIndex=(n+R)%(s?S*H:S);R=c.series&&c.series.length;n&&m.oriCatTmp.splice(0,n);m._skipValueWatcher=!1;for(f=0;f<R;f+=1){Z=c.series[f];W=J&&J[f]||[];V=ba&&ba[f]||[];S=M&&M[f]||
[];P=I&&I[f]||[];u=Z.yAxis||0;m._rtCounter||(m._rtCounter=1);!U[f]&&(U[f]=[]);Q=U[f];ra=Z.data;fa=ra.length;w=fa-n;for(F=0;w<fa;w+=1,F+=1)ja=decodeURIComponent(D(W[F],null)),ia=g.getCleanValue(ja),aa=decodeURIComponent(B[F]||""),m.oriCatTmp[w]=aa,ra.shift(),ja=Z._dataParser({value:ja,label:aa,color:V&&V[F]&&decodeURIComponent(V[F]),link:S&&S[F]&&decodeURIComponent(S[F]),tooltext:P&&P[F]&&decodeURIComponent(P[F])},w,ia),ja.y=ia,ra.push(ja),Q.push(ja),ja.previousY=this.pointValueWatcher(c,ia,u,this.isStacked,
w);y&&(m.realtimeValues[f]=g.dataLabels(ia,Z.yAxis))}m._rtCounter+=n;this.postSeriesAddition(c,void 0,void 0,void 0,fa-n);y&&this.prepareRealtimeValueText();g=c.yAxis[0];J=m[0];I=h(this.isStacked?0:this.setAdaptiveYMin,b.setadaptiveymin,0);ba=B=!I;M=(g.max-g.min)/4;if(m.isDual){if(J.max>g.max||J.min<g.min||(!ba||0!==g.min)&&g.min!==m._userPMin&&J.min-g.min>M||(!B||0!==g.max)&&g.max!==m._userPMax&&g.max-J.max>M)C._forceReflow=!0,m._skipValueWatcher=!0;g=c.yAxis[1];J=m[1];ba=B=!h(b.setadaptivesymin,
I);M=(g.max-g.min)/4;if(J.max>g.max||J.min<g.min||(!ba||0!==g.min)&&g.min!==m._userSMin&&J.min-g.min>M||(!B||0!==g.max)&&g.max!==m._userSMax&&g.max-J.max>M)C._forceReflow=!0,m._skipValueWatcher=!0}else if(J.max>g.max||J.min<g.min||(!ba||0!==g.min)&&g.min!==m._userMin&&J.min-g.min>M||(!B||0!==g.max)&&g.max!==m._userMax&&g.max-J.max>M)C._forceReflow=!0,m._skipValueWatcher=!0;da=m[0]&&m[0].RTValueArr;ha=m[1]&&m[1].RTValueArr;C._forceReflow&&(g=c.yAxis[0],J=m[0],X=m[0]&&m[0].min,ea=m[0]&&m[0].max,ca=
m[1]&&m[1].min,wa=m[1]&&m[1].max,F=g.min,R=g.max,M=h(m.numdivlines,b.numdivlines,this.numdivlines,4),y=b.adjustdiv!==db,fa=h(m._userMax,m._userPMax),ia=h(m._userMin,m._userPMin),f=h(b.showyaxisvalues,b.showyaxisvalue,1),Q=h(b.showlimits,f),u=h(b.showdivlinevalue,b.showdivlinevalues,f),w=h(parseInt(b.yaxisvaluesstep,10),parseInt(b.yaxisvaluestep,10),1),w=1>w?1:w,this.axisMinMaxSetter(g,J,fa,ia,B,ba,M,y),g.plotLines=[],g.plotBands=[],g.labels.enabled=g.labels._enabled,g.gridLineWidth=g._gridLineWidth,
g.alternateGridColor=g._alternateGridColor,this.configurePlotLines(b,c,g,J,Q,u,w,m.numberFormatter,!1),F===g.min&&R===g.max&&(na=!0),m.isDual?(fa=m._userSMax,ia=m._userSMin,I=h(b.setadaptivesymin,I),ba=B=!I,Q=h(b.showsecondarylimits,Q),u=h(b.showdivlinesecondaryvalue,f),g=c.yAxis[1],J=m[1],F=g.min,R=g.max,this.axisMinMaxSetter(g,J,fa,ia,B,ba,M,y),g.plotLines=[],g.plotBands=[],g.labels.enabled=g.labels._enabled,g.gridLineWidth=g._gridLineWidth,g.alternateGridColor=g._alternateGridColor,this.configurePlotLines(b,
c,g,J,Q,u,w,m.numberFormatter,!0),F===g.min&&R===g.max&&na&&(C._forceReflow=!1)):na&&(C._forceReflow=!1),d.trendlines&&$a(d.trendlines,c.yAxis,m,m.isDual,this.isBar));N.hcJSON&&(b=N.hcJSON[K],delete N.hcJSON[K],T(c.series,N.hcJSON.series,!0),N.hcJSON[K]=b,b=null);T(N,{preReflowAdjustments:function(){this.dataObj.categories=d.categories},postReflowAdjustments:function(){var a,b=c.series,d=b&&b.length;this.hcJSON.xAxis.plotLines=E.plotLines;this.hcJSON._FCconf[0].RTValueArr=da;this.hcJSON._FCconf[1].RTValueArr=
ha;if(b)for(a=0;a<d;a+=1)this.hcJSON.series[a].data=b[a].data},postHCJSONCreation:function(a){T(a,{_FCconf:{0:{min:X,max:ea},1:{min:ca,max:wa},_skipValueWatcher:!0,realtimeValues:m.realtimeValues,rtvHTMLWrapper:m.rtvHTMLWrapper}},!0)},hcJSON:{_FCconf:{_userMax:m._userMax,_userMin:m._userMin,_userPMax:m._userPMax,_userSMax:m._userSMax,_userPMin:m._userPMin,_userSMin:m._userSMin,_chartState:m._chartState,_rtCounter:m._rtCounter,_startIndex:m._startIndex,oriCatTmp:m.oriCatTmp,x:{catCount:A,_labelY:p,
_labelX:k,_yShipment:l,_isStagger:s,_rotation:r,_textAlign:v,_adjustedPx:t,_staggerLines:H,_labelHeight:q},0:{min:h(X,m[0]&&m[0].min),max:h(ea,m[0]&&m[0].max)},1:{min:h(ca,m[1]&&m[1].min),max:h(wa,m[1]&&m[1].max)}}}},!0);if(!e){C._forceReflow&&(C._forceReflow=!1,g=c.yAxis[0],p=g.plotBands.concat(g.plotLines),Ua(g,p),x.yAxis[0].realtimeUpdateY(g.min,g.max),m.isDual&&(g=c.yAxis[1],p=g.plotBands.concat(g.plotLines),Ua(g,p),x.yAxis[1].realtimeUpdateY(g.min,g.max)),this.containerElement.resizeTo());x.xAxis[0].realtimeUpdateX(n);
f=0;for(w=U.length;f<w;f+=1)x.plots[f]&&x.plots[f].realtimeUpdate&&x.plots[f].realtimeUpdate(n,C._forceReflow);this.realtimeDrawingLatency=new Date-Y}}},extractTrendLines:function(a){var e=a.plotLines;a=a.plotBands;for(var c,d=e.length,b=[],f=[];d;)c=d-1,c=e[c],c.isTrend&&f.push(c),--d;for(d=a.length;d;)c=d-1,e=a[c],e.isTrend&&b.push(e),--d;return{trendLines:f,trendBands:b}}};xa(Va.eiMethods,{clearChart:function(a){a=a&&a.toString&&a.toString();this.feedData("clear=1");y.raiseEvent("ChartCleared",
{source:a},this,[this.id,a])},getDataJSON:function(){return this.jsVars._rtLastUpdatedData||{values:[]}},getData:function(){var a=this.jsVars.hcObj.options,e=a[K].oriCatTmp,c,d=[],b,f,m,g;if(!a||!a.series)return d;a=a.series;b=[];for(m=a.length;m--;)for(c=a[m],b[c.index]=c.name,f=c.data,g=e.length;g--;)c=d[g]||(d[g]=[e[g]]),c[m+1]=f[g].y;b.unshift(null);d.unshift(b);return d}});w("realtimearea",xa({friendlyName:"Realtime Data Streaming Area Chart",standaloneInit:!0,multisetRealtime:!0,defaultPlotShadow:1,
creditLabel:!1,rendererId:"realtimecartesian"},Va),w.msareabase);w("realtimecolumn",xa({friendlyName:"Realtime Data Streaming Column Chart",standaloneInit:!0,multisetRealtime:!0,creditLabel:!1,rendererId:"realtimecartesian"},Va),w.mscolumn2dbase);w("realtimeline",xa({friendlyName:"Realtime Data Streaming Line Chart",standaloneInit:!0,multisetRealtime:!0,creditLabel:!1,rendererId:"realtimecartesian"},Va),w.mslinebase);w("realtimelinedy",xa({friendlyName:"Realtime Data Streaming Dual Y-Axis Line Chart",
standaloneInit:!0,multisetRealtime:!0,isDual:!0,creditLabel:!1,series:w.mscombibase,rendererId:"realtimecartesian"},Va),w.mslinebase);w("realtimestackedarea",{friendlyName:"Realtime Data Streaming Stacked Area Chart",isStacked:!0,showSum:0,areaAlpha:100,creditLabel:!1},w.realtimearea);w("realtimestackedcolumn",{friendlyName:"Realtime Data Streaming Column Chart",isStacked:!0,creditLabel:!1},w.realtimecolumn);Hb=function(a,e){return a.minvalue-e.minvalue};Za.prototype={getColorObj:function(a){for(var e=
this.colorArr,c=0,d=e.length,b,f,m={};c<d;c+=1){m.index=c;b=e[c];f=e[c+1];if(a<b.minvalue)return m.nextObj=b,m;if(a>=b.minvalue&&a<=b.maxvalue)return m.colorObj=b,f&&a==f.minvalue&&(m.nextObj=f,m.isOnMeetPoint=!0),m;m.prevObj=b}m.index=c-1;return m},getColorRangeArr:function(a,e){var c,d=this.colorArr,b,f,m=[],g,n;if(!this.defaultAsigned&&(a>e&&(c=a,a=e,e=c),a<e&&(b=this.getColorObj(a),f=this.getColorObj(e),b&&f))){c=a;b=b.index;for(f=f.index;b<=f;b+=1)g=T({},d[b]),g.minvalue!==c&&(g.minvalue=c),
m.push(g),n=g,c=g.maxvalue;n.maxvalue=e}return m}};Za.prototype.constructor=Za;Ib=function(){var a={fluidHRatio:!0,fluidColor:!0,fluidAlpha:!0,fluidFill:!0},e=[],c=0,d=function(a){c=Boolean(a)?a.duration:0},b=function(b,d){var f,p,k=this,l,s,r=!1,v=!1,t=this._3dAttr;Ea(b)&&$(d)&&(f=b,b={},b[f]=d);if(Ea(b))k=a[b]?k._3dAttr[b]:k._attr(b);else for(f in b)p=b[f],a[f]?("fluidFill"===f?(p&&p.linearGradient&&p.stops&&p.stops[0]&&(p=p.stops[0][1]),rb.test(p)?(s=new nb(p),l=s.get("hex"),s=100*s.get("a")):
p&&p.FCcolor?(l=p.FCcolor.color.split(u)[0],s=p.FCcolor.alpha.split(u)[0]):ob.test(p)&&(l=p.replace(fb,hb)),t.fluidColor=q(l,t.fluidColor,"000000"),t.fluidAlpha=h(s,t.fluidAlpha,100),r=!0):"fluidColor"===f?(t.fluidColor=q(p,t.fluidColor,"000000"),r=!0):"fluidAlpha"===f?(t.fluidAlpha=h(p,t.fluidAlpha,100),r=!0):0<=p&&1>=p&&(t.fluidHRatio=p,v=!0),r&&(p=V(t.fluidColor,t.is2D?80:70),k.fluid.attr({fill:F(p,t.fluidAlpha)}),k.fluidTop.attr({fill:F(p,t.fluidAlpha)}),k.topLight.attr({stroke:F(p,.4*t.fluidAlpha)}),
k.topLightBorder.attr({fill:S({FCcolor:{color:p+u+p,alpha:"40,0",ratio:"0,80",radialGradient:!0,cx:.5,cy:1,r:"70%"}})})),v&&(p=t.scaleY+t.h*(1-t.fluidHRatio),c?(k.fluid.animate({path:t.fluidPath.concat(["L",t.lx2,p,t.lx1,p,"Z"])},c,"easeIn"),k.fluidTop.animate({path:e.concat(["M",t.lx1,p,"A",t.lCylWidthHalf,1,0,1,0,t.lx2,p,"Z"])},c,"easeIn")):(k.fluid.attr({path:t.fluidPath.concat(["L",t.lx2,p,t.lx1,p,"Z"])}),k.fluidTop.attr({path:e.concat(["M",t.lx1,p,"A",t.lCylWidthHalf,1,0,1,0,t.lx2,p,"Z"])})))):
this._attr(f,p);return k},f=function(a,b,c){this.border.shadow(a,b,c)};return function(a,c,n,p,k,l,s,r,v,t,H,G,z){var Q,A,x,C,J,B,w,ba,I,M,E,y,D,L,N,U;lb(a)&&(c=a.y,n=a.r,p=a.h,l=a.renderer,s=a.fluidHRatio,r=a.conColor,v=a.conBorderColor,t=a.conBorderThickness,H=a.fluidColor,G=a.fluidAlpha,z=a.is2D,a=a.x);0<=s&&1>=s||(s=0);r=q(r,"FFFFFF");v=q(v,"#000000");t=h(t,1);H=q(H,"000000");G=h(G,100);U={x:a,y:c,r:n,h:p,renderer:l,fluidHRatio:s,conColor:r,conBorderColor:v,conBorderThickness:t,fluidStroke:3,
fluidColor:H,is2D:z,fluidAlpha:G};k._attr=k.attr;k.attr=b;k._setAnimate=d;k.shadow=f;k._3dAttr=U;Q=V(r,80);H=V(H,z?80:70);r=W(r,80);A=.643*n;x=.33*A;C=A-x;J=a-A;B=a+A;w=a-C;C=a+C;ba=c+A;I=ba+p;M=I+.766*n;E=c+x;p=ba+p*(1-s);s=.9*A;y=n+s-A;D=a-s;L=a+s;M-=Math.abs(Math.sqrt(y*y-s*s));N=parseInt(a-.6*A,10);A=a+A/2;U.fluidPath=["M",D,M,"A",y,y,0,1,0,L,M];U.scaleY=ba;U.lx1=D;U.lx2=L;U.lCylWidthHalf=s;k.topLight=l.path(["M",D,ba,"L",L,ba],k).attr({"stroke-width":1,stroke:F(H,40)});k.topLightBorder=l.path(["M",
D,ba,"L",L,ba,L,E,D,E,"Z"],k).attr({"stroke-width":0,fill:S({FCcolor:{color:H+u+H,alpha:z?"0,0":"40,0",ratio:"0,80",radialGradient:!0,cx:.5,cy:1,r:"70%"}})});k.fluid=l.path(U.fluidPath.concat(["L",L,p,D,p,"Z"]),k).attr({"stroke-width":0,fill:F(H,G)});k.fluidTop=l.path(e.concat(["M",D,p,"A",s,1,0,1,0,L,p,"Z"]),k).attr({"stroke-width":0,fill:F(H,G)});k.border=l.path(e.concat(["M",w,c,"A",x,x,0,0,0,J,E],["L",J,I],["A",n,n,0,1,0,B,I],["L",B,E],["A",x,x,0,0,0,C,c,"Z"]),k).attr({"stroke-width":t,stroke:v});
z||(k.bulbBorderLight=l.path(e.concat(["M",J,I,"A",n,n,0,0,1,B,I],["M",B,I,"A",n,n,0,0,0,J,I],["M",J,I,"A",n,n,0,1,0,B,I,"Z"]),k).attr({"stroke-width":0,stroke:"#00FF00",fill:S({FCcolor:{cx:.5,cy:.5,r:"50%",color:Q+u+r,alpha:"0,50",ratio:"78,30",radialGradient:!0}})}),k.bulbTopLight=l.path(e.concat(["M",J,I,"A",n,n,0,0,1,B,I],["A",n,n,0,0,0,J,I],["A",n,n,0,1,0,B,I,"Z"]),k).attr({"stroke-width":0,fill:S({FCcolor:{cx:.3,cy:.1,r:"100%",color:r+u+Q,alpha:"60,0",ratio:"0,30",radialGradient:!0}})}),k.bulbCenterLight=
l.path(e.concat(["M",J,I,"A",n,n,0,1,0,B,I],["A",n,n,0,0,0,J,I],["A",n,n,0,0,1,B,I,"Z"]),k).attr({"stroke-width":0,fill:S({FCcolor:{cx:.25,cy:.7,r:"100%",color:r+u+Q,alpha:"80,0",ratio:"0,70",radialGradient:!0}})}),k.cylLeftLight=l.path(e.concat(["M",a,c,"L",w,c],["A",x,x,0,0,0,J,E],["L",J,I,a,I,"Z"]),k).attr({"stroke-width":0,fill:S({FCcolor:{color:r+u+Q,alpha:"50,0",ratio:"0,80",angle:0}})}),k.cylRightLight=l.path(e.concat(["M",J,c,"L",C,c],["A",x,x,0,0,1,B,E],["L",B,I,J,I,"Z"]),k).attr({"stroke-width":0,
fill:S({FCcolor:{color:r+u+Q+u+Q,alpha:"50,0,0",ratio:"0,40,60",angle:180}})}),k.cylLeftLight1=l.path(["M",N,E,"L",J,E,J,I,N,I,"Z"],k).attr({"stroke-width":0,fill:S({FCcolor:{color:r+u+Q,alpha:"60,0",ratio:"0,100",angle:180}})}),k.cylRightLight1=l.path(["M",N-.01,E,"L",A,E,A,I,N-.01,I,"Z"],k).attr({"stroke-width":0,fill:S({FCcolor:{color:r+u+Q,alpha:"60,0",ratio:"0,100",angle:0}})}));return k}}();Jb=function(){var a={fluidHRatio:!0,color:!0,alpha:!0,fill:!0},e=[],c=0,d=function(a){c=Boolean(a)?a.duration:
0},b=function(b,d){var f,p,k=this,l,s,r=!1,v=!1,t=this._3dAttr,H,G,z,Q,A,x,C,J;Ea(b)&&$(d)&&(f=b,b={},b[f]=d);if(Ea(b))k=a[b]?k._3dAttr[b]:k._attr(b);else for(f in b)p=b[f],a[f]?("fill"===f?(p&&p.linearGradient&&p.stops&&p.stops[0]&&(p=p.stops[0][1]),rb.test(p)?(s=new nb(p),l=s.get("hex"),s=100*s.get("a")):p&&p.FCcolor?(l=p.FCcolor.color.split(u)[0],s=p.FCcolor.alpha.split(u)[0]):ob.test(p)&&(l=p.replace(fb,hb)),t.fluidColor=q(l,t.fluidColor,"000000"),t.fluidAlpha=h(s,t.fluidAlpha,100),r=!0):"color"===
f?(t.fluidColor=q(p,t.fluidColor,"000000"),r=!0):"alpha"===f?(t.fluidAlpha=h(p,t.fluidAlpha,100),r=!0):0<=p&&1>=p&&(t.fluidHRatio=p,v=!0),r&&(p=V(t.fluidColor,70),H=W(t.fluidColor,70),z=V(t.conColor,80),G=W(t.conColor,80),s=t.fluidAlpha,Q=s+u+s,k.fluid.attr({"stroke-width":0,fill:S({FCcolor:{cx:.5,cy:0,r:"100%",color:H+u+p,alpha:Q,ratio:"0,100",radialGradient:!0}})}),k.fluidTop.attr({"stroke-width":3,stroke:F(H,s),fill:S({FCcolor:{cx:.5,cy:.7,r:"100%",color:H+u+p,alpha:Q,ratio:"0,100",radialGradient:!0}})}),
k.btnBorderLight.attr({fill:S({FCcolor:{color:G+u+z+u+G+u+G+u+z+u+p+u+z+u+G,alpha:"50,50,50,50,50,"+.7*s+",50,50",ratio:"0,15,0,12,0,15,43,15",angle:0}})})),v&&(z=t.x,p=t.r,H=t.fluidStroke,G=H/2,A=t.h*t.fluidHRatio,H=z-p,z+=p,Q=H+G,x=z-G,C=t.y+t.h,A=C-A,J=p*t.r3dFactor,G=p-G,c?(k.fluid.animate({path:e.concat(["M",H,C],["A",p,va(J,1),0,0,0,z,C],["L",z,A],["A",p,va(J,1),0,0,0,H,A,"Z"])},c,"easeIn"),k.fluidTop.animate({path:e.concat(["M",Q,A],["A",G,J,0,0,0,x,A],["L",x,A],["A",G,J,0,0,0,Q,A,"Z"])},c,
"easeIn")):(k.fluid.attr({path:e.concat(["M",H,C],["A",p,J,0,0,0,z,C],["L",z,A],["A",p,J,0,0,1,H,A,"Z"])}),k.fluidTop.attr({path:e.concat(["M",Q,A],["A",G,J,0,0,0,x,A],["L",x,A],["A",G,J,0,0,0,Q,A,"Z"])})))):this._attr(f,p);return k},f=function(){};return function(a,c,n,p,k,l,s,r,v,t,H,G,z){var Q,A,x,C,J,B,w,ba,I,M,E,y,D,L,N,U,R,K;lb(a)&&(c=a.y,n=a.r,p=a.h,k=a.r3dFactor,l=a.parentGroup,s=a.renderer,r=a.fluidHRatio,v=a.conColor,t=a.conAlpha,H=a.fluidColor,G=a.fluidAlpha,a=a.x);k=h(k,.15);Aa.vml&&(k=
k||.001);0<=r&&1>=r||(r=0);v=q(v,"FFFFFF");t=h(t,30);H=q(H,"000000");G=h(G,100);t={x:a,y:c,r:n,h:p,r3dFactor:k,renderer:s,fluidHRatio:r,conColor:v,conAlpha:t,fluidStroke:3,fluidColor:H,fluidAlpha:G};l=s.group("graphic",l);l._attr=l.attr;l.attr=b;l._setAnimate=d;l.shadow=f;l._3dAttr=t;k*=n;t=n-1.5;Q=c+p;p=Q-p*r;r=a-n;A=a+n;x=r+1.5;C=A-1.5;J=r-2;B=A+2;w=n+2;ba=k+2;I=Q+4;M=I+.001;E=V(v,80);y=V(v,90);v=W(v,80);D=V(H,70);H=W(H,70);L=V(D,90);N=.85*n;U=a-N;a+=N;R=Math.sqrt((1-N*N/(n*n))*k*k);N=c+R;R=Q+R;
K=c-1;l.btnBorder=s.path(e.concat(["M",J,I],["A",w,ba,0,0,0,B,I],["L",B,M],["A",w,ba,0,0,0,J,M,"Z"]),l).attr({"stroke-width":4,stroke:F(E,80)});l.btnBorder1=s.path(e.concat(["M",r,I],["A",n,k,0,0,0,A,I],["L",A,M],["A",n,k,0,0,0,r,M,"Z"]),l).attr({"stroke-width":4,stroke:F(E,50)});l.btnBorderLight=s.path(e.concat(["M",r,Q],["A",n,k,0,0,0,A,Q],["A",n,k,0,0,0,r,Q,"Z"]),l).attr({"stroke-width":0,fill:S({FCcolor:{color:v+u+E+u+v+u+v+u+E+u+D+u+E+u+v,alpha:"50,50,50,50,50,70,50,50",ratio:"0,15,0,12,0,15,43,15",
angle:0}})});J=z?v+u+E+u+v+u+E+u+y+u+y+u+E+u+v:v+u+E+u+E+u+E+u+E+u+E+u+E+u+v;l.back=s.path(e.concat(["M",r,Q],["A",n,k,0,0,0,A,Q],["L",A,c],["A",n,k,0,0,0,r,c,"Z"]),l).attr({"stroke-width":1,stroke:F(E,50),fill:S({FCcolor:{color:J,alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,43,15,0,12,0,15",angle:0}})});J=z?H+u+D:D+u+D;l.fluid=s.path(e.concat(["M",r,Q],["A",n,va(k,1),0,0,0,A,Q],["L",A,p],["A",n,va(k,1),0,0,0,r,p,"Z"]),l).attr({"stroke-width":0,fill:S({FCcolor:{cx:.5,cy:0,r:"100%",color:J,alpha:G+
u+G,ratio:"0,100",radialGradient:!0}})});J=z?H+u+D:D+u+D;l.fluidTop=s.path(e.concat(["M",x,p],["A",t,k,0,0,0,C,p],["L",C,p],["A",t,k,0,0,0,x,p,"Z"]),l).attr({"stroke-width":2,stroke:z?F(H,G):F(L),fill:S({FCcolor:{cx:.5,cy:.7,r:"100%",color:J,alpha:G+u+G,ratio:"0,100",radialGradient:!0}})});J=z?v+u+E+u+v+u+v+u+E+u+v+u+E+u+v:E+u+E+u+E+u+E+u+E+u+E+u+E+u+E;l.front=s.path(e.concat(["M",r,Q],["A",n,k,0,0,0,A,Q],["L",A,c],["A",n,k,0,0,1,r,c,"Z"]),l).attr({"stroke-width":1,stroke:F(E,50),fill:S({FCcolor:{color:J,
alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,0,12,0,15,43,15",angle:0}})});z&&(l.frontLight=s.path(e.concat(["M",r,Q],["A",n,k,1,0,0,U,R],["L",U,N],["A",n,k,0,0,1,r,c,"Z"]),l).attr({"stroke-width":0,stroke:"#"+E,fill:S({FCcolor:{color:J,alpha:"40,0",ratio:"0,100",angle:0}})}));z&&(l.frontLight1=s.path(e.concat(["M",a,R],["A",n,k,0,0,0,A,Q],["L",A,c],["A",n,k,1,0,0,a,N,"Z"]),l).attr({"stroke-width":0,stroke:"#"+E,fill:S({FCcolor:{color:J,alpha:"40,0",ratio:"0,100",angle:180}})}));l.cylinterTop=s.path(e.concat(["M",
r,K],["A",n,k,0,0,0,A,K],["L",A,K],["A",n,k,0,0,0,r,K,"Z"]),l).attr({"stroke-width":2,stroke:F(E,40)});return l}}();Kb=function(){var a={value:!0},e=0,c=function(a){e=Boolean(a)?a.duration:0},d=function(b,c){var d,n,p=this,k=this._3dAttr,l,h,r,v,t,H,q;Ea(b)&&$(c)&&(d=b,b={},b[d]=c);if(Ea(b))p=a[b]?p._3dAttr[b]:p._attr(b);else for(d in b)if(n=b[d],a[d]){if(n>=k.minValue&&n<=k.maxValue){k[d]=n;l=(n-k.minValue)/k.perLEDValueLength;n=ka(l)*k.sizeGapSum-k.ledGap;if(k.LEDCase){h=p.colorArr;v=h.length;for(r=
0;r<v;r+=1)t=h[r],t.maxLEDNoFrac<=l?q=k.LEDLowerFN:H?q=k.LEDUpperFN:(q=void 0,H=t),q&&(t[q](),"show"===q&&t.attr(t.oriShapeArg));H||(H=t);H.show();H.attr(H.hoverShapeArg)}p.darkShade&&(l={},k.isXChange?(l.width=Math.ceil(k.w-n),k.isIncrement&&(l.x=k.x+n)):(l.height=Math.ceil(k.h-n),k.isIncrement&&(l.y=k.y+n)),e?p.darkShade.animate(l,e,"easeIn"):p.darkShade.attr(l))}}else this._attr(d,n);return p},b=function(){};return function(a,e,g,n,p,k,l,s,r,v,t,H,G,z,Q,A,x,C,J,B,u){var ba=function(a){var b=0,
c,d;return function(){b=0;for(c=a.colorArr.length;b<c;b+=1)d=a.colorArr[b],d.attr(d.data("rollover"))}},I=function(a){var b=0,c,d;return function(){b=0;for(c=a.colorArr.length;b<c;b+=1)d=a.colorArr[b],d.attr(d.data("rollout"))}},w,E,y,D,L,N,U,R,K,P,ja,Z,T,O,X,aa,ua,fa,na,ia,da,Y,ea,ca;lb(a)&&(e=a.y,g=a.w,n=a.h,p=a.wGroup,k=a.renderer,l=a.value,s=a.gaugeFillColor,r=a.gaugeBorderColor,v=a.gaugeBorderAlpha,t=a.gaugeBorderThickness,H=a.colorRangeManager,G=a.minValue,z=a.maxValue,Q=a.useSameFillColor,
A=a.useSameFillBgColor,x=a.ledSize,C=a.ledGap,J=a.type,a=a.x);l>=G&&l<=z||(l=G);s=q(s,"FFFFFF");r=q(r,"000000").replace(fb,hb);v=h(v,1);t=h(t,2);ca={x:a,y:e,w:g,h:n,wGroup:p,renderer:k,value:l,gaugeFillColor:s,gaugeBorderColor:r,gaugeBorderAlpha:v,gaugeBorderThickness:t,colorRangeManager:H,minValue:G,maxValue:z,ledGap:C,ledSize:x,type:J,useSameFillColor:Q,useSameFillBgColor:A};p=k.group("graphic",p);p._attr=p.attr;p.attr=d;p._setAnimate=c;p.shadow=b;p._3dAttr=ca;H=H.getColorRangeArr(G,z);w=a;E=e;
D=y=!0;L=2===J||4===J?n:g;N=C+x;U=C/2;R=U/2;K=L-x;P=z-G;z=0;ja=H.length;O=T=0;X=!1;ua=aa="show";fa=a;na=e;ia=t/2;da=a-ia;Y=e-ia;ea=a+g+ia;ia=e+n+ia;Q&&(O+=1,aa="hide");A&&(O+=2,ua="hide");0>K?(Q=1,x=L):(Q=parseInt(K/N,10)+1,x+=K%N/Q,N=x+C);A=P/Q;p.colorArr=[];L=[];1===J?fa+=N-C/2:2===J?(D=!1,na+=N-C/2):3===J?(w=a+g,y=!1,fa+=N-C/2):(E=e+n,D=y=!1,na+=N-C/2);ca.ledGap=C;ca.ledSize=x;ca.sizeGapSum=N;ca.perLEDValueLength=A;ca.isIncrement=y;ca.isXChange=D;ca.LEDLowerFN=aa;ca.LEDUpperFN=ua;(ca.LEDCase=O)&&
(3===O?Z={x:a,y:e,width:g,height:n}:X=!0);for(p.border=k.path(["M",da,Y,"L",ea,Y,ea,ia,da,ia,"Z"],p).attr({stroke:F(r,v),"stroke-width":t}).shadow({apply:B});z<ja;z+=1)if((r=H[z])&&$(r.maxvalue)&&(v=ka((r.maxvalue-G)/A),x=v-T,T=v,0<x)){t={r:0};X&&(Z={});x*=N;if(D)if(t.y=E,t.width=x-C,t.height=n,y?(t.x=w,w+=x):(t.x=w-t.width,w-=x),X&&(Z.width=t.x-a,y&&1===O||!y&&2===O?(Z.x=a,Z.width+=t.width):Z.width=g-Z.width),0===z||z===ja-1){if(t.width+=R,y&&z===ja-1||!y&&0===z)t.x-=R,t.width=Math.ceil(t.width)}else t.width+=
U,t.x-=R;else if(t.x=w,t.width=g,t.height=x-C,y?(t.y=E,E+=x):(t.y=E-t.height,E-=x),X&&(Z.height=t.y-e,y&&1===O||!y&&2===O?(Z.y=e,Z.height+=t.height):Z.height=n-Z.height),0===z||z===ja-1){if(t.height+=R,y&&z===ja-1||!y&&0===z)t.y-=R,t.height=Math.ceil(t.height)}else t.height+=U,t.y-=R;x=k.rect(t.x,t.y,t.width,t.height,p).attr({"stroke-width":0,fill:S({FCcolor:{color:q(r.code,"000000"),alpha:h(r.alpha,100)}})});x.oriShapeArg=t;x.hoverShapeArg=Z;x.maxLEDNo=v;x.maxLEDNoFrac=(r.maxvalue-G)/A;u&&(x.data("rollover",
{"stroke-width":0,fill:S({FCcolor:{color:V(q(r.code,"000000"),80)+","+W(q(r.code,"000000"),80),alpha:h(r.alpha,100),angle:J%2?90:0}})}),x.data("rollout",{"stroke-width":0,fill:S({FCcolor:{color:q(r.code,"000000"),alpha:h(r.alpha,100)}})}));p.colorArr.push(x)}p.darkShade=k.rect(a,e,g,n,0,p).attr({"stroke-width":0,fill:F(s,50)});for(z=1;z<Q;z+=1)D?(L.push("M",fa,na,"L",fa,na+n),fa+=N):(L.push("M",fa,na,"L",fa+g,na),na+=N);p.LEDGap=k.path(L,p).attr({stroke:F(s,100),"stroke-width":C});p.tracker=k.rect(a,
e,g,n,0,p).attr({fill:ha});u&&p.tracker.hover(ba(p),I(p));p.attr({value:l});return p}}();w("renderer.drawingpad",{deleteme:function(a){this.container.innerHTML="called from drawingpad: "+a}},w["renderer.root"]);w("renderer.widgetbase",{drawLegend:function(){},drawGraph:function(){var a=this.elements,e=this.paper,c=this.layers,d=this.options,b=c.dataset;d.nativeMessage||(c.dataset||(b=a.widgetGroup=c.dataset=e.group("dataset"),c.tracker=e.group("hot"),c.tracker.insertAfter(c.dataset)),c.datalabels||
(c.datalabels=e.group("datalabels").insertAfter(b)),b.translate(this.canvasLeft,this.canvasTop),c.datalabels.translate(this.canvasLeft,this.canvasTop),d.tooltip&&!1!==d.tooltip.enabled&&e.tooltip(d.tooltip.style,d.tooltip.shadow,d.tooltip.constrain),this.drawWidget(),this.drawScale(),this.drawValue())},drawWidgetValue:function(){},drawValue:function(a,e){var c=this.options,d=e||c.plotOptions.series.animation,c=c.series&&c.series[0]&&c.series[0].data||[],b;if(c.length){if(a&&(b=a.length))for(;b--;)c[b]&&
(c[b]=a[b]);this.drawWidgetValue(c,d);this.drawWidgetLabel(c,d)}},drawWidgetLabel:function(a){var e=this.paper,c=this.options,d=c.chart,b=this.elements,f=this.layers;a=a[0];var f=f.datalabels||(f.datalabels=e.group("datalabels").insertAfter(f.dataset)),m=this.canvasWidth,g=this.canvasHeight,n=d.valuePadding,p=a.displayValue,k=h(d.yScaleRadius,0),c=c.plotOptions.series.dataLabels.style,l={fontFamily:c.fontFamily,fontSize:c.fontSize,lineHeight:c.lineHeight,fontWeight:c.fontWeight,fontStyle:c.fontStyle},
g=g+n+k;null!==a.y&&!isNaN(a.y)&&$(p)&&p!==L&&(b.dataLabel?b.dataLabel.attr({text:p}):b.dataLabel=e.text(f).attr({"vertical-align":"top",text:p,x:m/2,y:g,"text-anchor":sa[ya],fill:c.color,direction:d.textDirection,title:a.originalText||"","text-bound":[c.backgroundColor,c.borderColor,c.borderThickness,c.borderPadding,c.borderRadius,c.borderDash]}).css(l),e=b.dataLabel.getBBox(),0>e.x+d.spacingLeft&&(e=e.width-d.spacingLeft,d.origW<e&&(e=d.origW-d.spacingLeft),b.dataLabel.attr({x:e/2})))},drawScale:function(){var a=
this.paper,e=this.elements,c=this.layers.dataset,d=this.options,b=this.canvasWidth,f=this.canvasHeight,m=d.scale,g=m.minorTM,d=d.chart.textDirection,n=m.min,p=m.max,k=m.majorTM,l=m.axisPosition,h=m.minorTMHeight,r=m.majorTMHeight,v=m.connectorColor,t=m.connectorThickness,q=m.minorTMColor,G=m.minorTMThickness,z=m.majorTMColor,Q=m.majorTMThickness,A=m.tickMarkDistance,x=m.tickValueDistance,C=m.placeTicksInside,J=m.placeValuesInside,B=Math.max(r,h),c=e.scaleGroup||(e.scaleGroup=a.group("scale",c)),u=
La,w=ya,I=m.reverseScale,y=n,E=G/2,F=Q/2,n=p-n,D=0,K=0,N=0,U=0,R=0,S=0,P=0,T=0,Z=0,O=0,W=0,V=0,aa=0,ua=0,fa=0,na=0;C?(A=-A,r=-r,h=-h,J?(B=-B,x=-x):B=-A):J&&(B=-A,x=-x);I&&(n=-n,y=p);switch(l){case 1:D=b/n;U=-A;S=U-F;T=U-E;O=U-r;V=U-h;ua=U-B-x;u=La;w=J?Wa:mb;break;case 2:K=f/n;N=A;R=N+F;P=N+E;Z=N+r;W=N+h;aa=N+B+x;fa=b;u=J?bb:Ia;w=ya;break;case 3:D=b/n;U=A;S=U+F;T=U+E;O=U+r;V=U+h;ua=U+B+x;na=f;u=La;w=J?mb:Wa;break;case 4:K=f/n,N=-A,R=N-F,P=N-E,Z=N-r,W=N-h,aa=N-B-x,u=J?Ia:bb,w=ya}e.minorTM||(e.minorTM=
[]);e.majorTM||(e.majorTM=[]);this.tmLabel||(e.tmLabel=[]);if(h)for(f=0,p=g.length;f<p;f+=1)l=g[f]-y,b=l*D,l*=K,e.minorTM[f]=a.path(["M",b+P,l+T,"L",b+W,l+V],c).attr({"shape-rendering":pb[1>G],stroke:q,"stroke-linecap":"round","stroke-width":G});f=0;for(p=k.length;f<p;f+=1)g=k[f],l=g.value-y,q=g.displayValue,b=l*D,l*=K,h&&(e.majorTM[f]=a.path(["M",b+R,l+S,"L",b+Z,l+O],c).attr({"shape-rendering":pb[1>Q],stroke:z,"stroke-linecap":"round","stroke-width":Q})),q!==L&&(P=0===f||f===p-1?m.limitValues.style:
m.tickValues.style,G=g.labelX||0,e.tmLabel[f]=a.text(b+aa+G,l+ua,q,c).attr({"text-anchor":sa[g.align||u],direction:d,"vertical-align":w,title:g.originalText||""}).css(P));t&&(e.tmConnector=a.path(["M",N,U,"L",n*D+N,n*K+U],c).attr({"shape-rendering":pb[1>t],stroke:v,"stroke-linecap":"round","stroke-width":t}));c.translate(fa,na);return c},realtimeUpdate:function(a){if(a===this.lastUpdatedObj)return!1;var e=this.options,c=e.series,d=this.logic,c=c&&c[0]&&c[0].data,b=a.values||[],f=a.labels||[],m=a.toolTexts||
[],g=a.showLabels||[],n=c&&c.length||0,h=[],k;if(n){for(;n--;)k={},void 0!==b[n]&&""!==b[n]?(k.value=b[n],k.hasNewData=!0):k.value=c[n].y,f[n]&&(k.displayvalue=f[n],k.hasNewData=!0),m[n]&&(k.tooltext=m[n],k.hasNewData=!0),k.hasNewData&&(h[n]=d.getPointStub(k,n,e,this.definition)),"0"!=g[n]&&c[n].displayValue||(h[n].displayValue=L);h.length&&(this.lastUpdatedObj=a)&&this.drawValue(h);return Boolean(h.length)}}},w["renderer.root"]);w("renderer.bulb",{drawWidget:function(){var a=this.options,e=a.chart,
c=this.paper,d=this.elements,b=e.gaugeRadius,a=a.series[0]&&a.series[0].data&&a.series[0].data[0]||{},f=a.rolloverProperties||{},m={cx:e.gaugeOriginX,cy:e.gaugeOriginY,stroke:a.borderColor,"stroke-linecap":"round","stroke-width":a.borderWidth,r:e.animation?.001:b},g={r:b},n;null===a.y||isNaN(a.y)||(n=d.bulb=(n=d.bulb)?n.attr(m):c.circle(m,this.layers.dataset),e.animation&&n.animate(g,e.animation.duration,"easeIn"),f.enabled&&n.mouseover(function(){n.attr(f.hoverAttr);f.hoverAnimAttr&&n.animate(f.hoverAnimAttr,
100,"easeIn")}).data("hoverAttr",f.hoverAttr).mouseout(function(){n.attr(f.outAttr);f.hoverAnimAttr?n.animate(g,100,"easeIn"):n.attr(g)}).data("outAttr",f.outAttr))},drawWidgetValue:function(a){var e=this,c=e.elements;a=a[0];var d=a.rolloverProperties||{},b=d.hoverAttr,f=d.outAttr,m={fill:S(a.color),ishot:!0},c=c.bulb,g=c.data("hoverAttr"),n=c.data("outAttr");d.enabled&&(b&&b.stroke&&(g.stroke=b.stroke,n.stroke=f.stroke),b&&b.fill&&(g.fill=b.fill,n.fill=f.fill));c||e.drawWidget();d={value:a.y,displayValue:a.displayValue,
toolText:a.toolText};null===a.y||isNaN(a.y)||c.attr(m).click(function(a){qa.call(this,e,a)}).hover(function(a){qa.call(this,e,a,"DataPlotRollOver")},function(a){qa.call(this,e,a,"DataPlotRollOut")}).tooltip(a.toolText).data("eventArgs",d)},drawScale:function(){},drawWidgetLabel:function(a){var e=this.options.chart,c=this.paper,d=this.elements,b=this.layers,f=e.gaugeRadius,m=e.gaugeOriginX,g=e.gaugeOriginY;a=a[0];var n=d.dataLabel,h=e.dataLabels.style,k={fontFamily:h.fontFamily,fontSize:h.fontSize,
lineHeight:h.lineHeight,fontWeight:h.fontWeight,fontStyle:h.fontStyle};b.datalabels||(b.datalabels=c.group("datalabels").insertAfter(b.dataset));e.placeValuesInside?(b=g,f=ya):(b=g+f+e.valuePadding,f=Wa);null===a.y||isNaN(a.y)||a.displayValue===L||(n||(d.dataLabel=n=c.text(this.layers.dataset)),n.attr({text:a.displayValue,"text-anchor":"middle",x:m,y:b,title:a.originalText||"","vertical-align":f,fill:h.color,direction:e.textDirection,"text-bound":[h.backgroundColor,h.borderColor,h.borderThickness,
h.borderPadding,h.borderRadius,h.borderDash]}).css(k))}},w["renderer.widgetbase"]);w("renderer.thermometer",{drawWidget:function(){var a=this.options,e=a.chart,c=this.paper,d=a.series[0].data[0],b=e.plotHoverEffects||{},f=e.thmBulbRadius,m=.643*f,g=new nb(d.color),n=g.get("hex").replace(fb,L),g=100*g.get("a"),h;d.minValue=a.scale.min;d.maxValue=a.scale.max;h=this.elements.thermometer=Ib(0+m,0-m,f,e.thmHeight,this.layers.dataset,c,0,e.thmGlassColor,e.gaugeBorderColor,e.gaugeBorderThickness,n,g,e.use3DLighting);
b.enabled&&h.data("hoverInAttrs",{fluidColor:b.thmFillHoverColor,fluidAlpha:b.thmFillHoverAlpha}).data("hoverOutAttrs",{fluidColor:n,fluidAlpha:g}).hover(function(){h.attr(h.data("hoverInAttrs"))},function(){h.attr(h.data("hoverOutAttrs"))})},drawWidgetValue:function(a,e){var c=this,d=c.elements,b=c.options.scale,f=b.max,m=b.min,b=a[0],f=(h(b.y,m)-m)/(f-m),g;d.thermometer||c.drawWidget();b.fluidHRatio=f;m={value:b.y,displayValue:b.displayValue,toolText:b.toolText};e&&d.thermometer._setAnimate(e);
d.thermometer.attr({fluidHRatio:f,ishot:!0}).click(function(a){qa.call(this,c,a)}).hover(function(a){qa.call(this,c,a,"DataPlotRollOver")},function(a){qa.call(this,c,a,"DataPlotRollOut")}).data("eventArgs",m);if(b.toolText&&(g=d.thermometer.bottom)){do g.tooltip(b.toolText);while(g=g.next)}}},w["renderer.widgetbase"]);w("renderer.cylinder",{drawWidget:function(){var a=this.options,e=a.chart,c=e.plotHoverEffects||{},d=this.paper,b=this.elements,f=this.layers.dataset,m=a.scale,g=m.max,a=a.series[0].data[0],
h,p;a.minValue=m.min;a.maxValue=g;b.cylinder=Jb(e.cylRadius,0,e.cylRadius,e.cylHeight,e.cylYScale,f,d,0,e.cylGlassColor,"100",e.cylFillColor,e.cylFillAlpha,e.cyl3DLighting);c.enabled&&(h={color:c.cylFillHoverColor,alpha:c.cylFillHoverAlpha},p={color:e.cylFillColor,alpha:e.cylFillAlpha},b.cylinder.hover(function(){b.cylinder.attr(h)},function(){b.cylinder.attr(p)}))},drawWidgetValue:function(a,e){var c=this,d=c.elements,b=c.options.scale,f=b.max,m=b.min,b=a[0],f=(h(b.y,m)-m)/(f-m),g;d.cylinder||c.drawWidget();
m={value:b.y,displayValue:b.displayValue,toolText:b.toolText};b.fluidHRatio=f;e&&d.cylinder._setAnimate(e);d.cylinder.attr({fluidHRatio:f,ishot:!0}).click(function(a){qa.call(this,c,a)}).hover(function(a){qa.call(this,c,a,"DataPlotRollOver")},function(a){qa.call(this,c,a,"DataPlotRollOut")}).data("eventArgs",m);if(b.toolText&&(g=d.cylinder.bottom)){do g.tooltip(b.toolText);while(g=g.next)}}},w["renderer.widgetbase"]);w("renderer.led",{drawWidget:function(){var a=this.options,e=this.paper,c=this.logic,
d=a.chart,b=this.elements,f=a.scale,m=f.max,g=f.min,a=a.series[0].data[0],h=this.layers.dataset;a.minValue=g;a.maxValue=m;b.led=Kb(0,0,this.canvasWidth,this.canvasHeight,h,e,0,d.gaugeFillColor,d.gaugeBorderColor,d.gaugeBorderAlpha,d.gaugeBorderThickness,c.colorRangeGetter,g,m,d.useSameFillColor,d.useSameFillBgColor,d.ledSize,d.ledGap,c.isHorizontal?f.reverseScale?3:1:f.reverseScale?4:2,d.showShadow,d.plotHoverEffect)},drawWidgetValue:function(a,e){var c=this.elements,d=a[0].y;c.led||this.drawWidget();
e&&c.led._setAnimate(e);c.led.attr({value:d})}},w["renderer.widgetbase"]);w("renderer.bullet",{drawWidget:function(){var a=this.options,e=this.paper,c=this.logic,d=a.chart,b=a.scale,a=this.elements,f=this.layers.dataset,m=this.canvasWidth,g=this.canvasHeight,n=b.min,p=b.max,k=b&&b.trendPoint||[],l=d.colorRangeFillMix,s=d.colorRangeFillRatio,r=d.colorRangeBorderColor,v=d.colorRangeBorderAlpha,t=d.colorRangeBorderThickness,q=c.colorRangeGetter.getColorRangeArr(n,p),d=d.showShadow,G,z,Q,A,x,C=c.colorManager,
J,B,w;a.linear||(a.linear=G=e.group("colorrange",f),a.outerRect=e.rect(G));a.outerRect.attr({x:0,y:0,width:m,height:g,stroke:"none",r:0});c=c.isHorizontal?b.reverseScale?3:1:b.reverseScale?4:2;1===c?(f=function(a,b){return{x:a*m/(p-n),y:0,width:(b-a)*m/(p-n),height:g}},z=270):2===c?(f=function(a,b){return{x:0,y:a*g/(p-n),width:m,height:(b-a)*g/(p-n)}},z=180):3===c?(f=function(a,b){return{x:m-b*m/(p-n),y:0,width:(b-a)*m/(p-n),height:g}},z=270):(f=function(a,b){return{x:0,y:g-b*g/(p-n),width:m,height:(b-
a)*g/(p-n)}},z=180);a.colorRangeElems||(a.colorRangeElems=[]);c=0;for(b=q.length;c<b;c+=1)A=q[c],x=f(A.minvalue-n,A.maxvalue-n),A.x=x.x,A.y=x.y,A.width=x.width,A.height=x.height,Q=A.code,Q=F(ta(Q,r),v),d&&Math.max(A.alpha,v),J=C.parseColorMix(A.code,l),B=C.parseAlphaList(A.alpha,J.length),w=h(A.borderAlpha,v),A=B.split(u),A=va.apply(Math,A),A=va(t&&w||0,A),a.colorRangeElems[c]||(a.colorRangeElems[c]=e.rect(G)),a.colorRangeElems[c].attr({x:x.x,y:x.y,width:x.width,height:x.height,r:0,"stroke-width":t,
stroke:Q,fill:S({FCcolor:{color:J.toString(),ratio:s,alpha:B,angle:z}})}).shadow({apply:d,opacity:A/100});for(;a.colorRangeElems[c];)a.colorRangeElems[c].remove(),a.colorRangeElems.splice(c,1);a.trendObjElems||(a.trendObjElems=[]);c=0;for(b=k.length;c<b;c+=1)l=k[c],x=f(l.startValue-n,l.endValue-n),l.isZone?(a.trendObjElems[c]||(a.trendObjElems[c]=e.rect(G)),a.trendObjElems[c].attr({x:x.x,y:x.y,width:0<x.width?x.width:0,height:0<x.height?x.height:0,r:0,fill:S({FCcolor:{color:l.color,alpha:l.alpha}})})):
a.trendObjElems[c]=this.path(["M",x.x,x.y,"L",x.x,x.y+x.height],G).attr({stroke:F(l.color,l.alpha),"stroke-width":l.thickness,"stroke-dasharray":l.dashStyle});for(;a.trendObjElems[c];)a.trendObjElems[c].remove(),a.trendObjElems.splice(c,1)},drawWidgetValue:function(a){var e=this,c=e.paper,d=e.layers.dataset,b=e.canvasWidth,f=e.canvasHeight,m=e.options.scale,g=m.max,n=m.min,p=g-n,k=a[0],l=a[1],s=m&&m.trendPoint||[],r,v,t=l.borderWidth,q=e.logic.isHorizontal,G;v=a.length;var z=0,Q=0,A=0,x=0,C=n,J,B,
u,w,I,y;q?(z=b/p,x=f/2):(Q=f/p,A=b/2);m.reverseScale&&(z=-z,Q=-Q,C=g);for(;v--;)G=a[v],m=h(G.y,C)-C,G.plotX=G.origX=m*z+A,G.plotY=G.origY=m*Q+x;for(v=s.length;v--;)G=s[v],m=G.startValue-n,G.plotX=G.origX=m*z+A,G.plotY=G.origY=m*Q+x;m=function(a){a=h(a,C)-C;return{x:a*z+A,y:a*Q+x}}(Math.min(Math.max(n,0),g));$(k.y)&&(k.plotAsDot?(s=v=k.plotFillPercent/100*(q?f:b),a=k.plotX-v/2,g=k.plotY-s/2,q?(k.animInitAttr={x:m.x},k.animAttr={x:a}):(k.animInitAttr={y:m.y},k.animAttr={y:g})):(a=Math.min(k.plotX,m.x),
g=Math.min(k.plotY,m.y),s=Math.abs(k.plotY-m.y),v=Math.abs(k.plotX-m.x),q?(k.animInitAttr={x:m.x,width:0},k.animAttr={x:a,width:v},s=k.plotFillPercent/100*f,g-=s/2):(k.animInitAttr={y:m.y,height:0},k.animAttr={y:g,height:s},v=k.plotFillPercent/100*b,a-=v/2)),n={link:G.link,value:k.y,displayValue:k.displayValue,toolText:G.toolText},G.shapeType="rect",G.shapeArgs={x:a,y:g,height:s,width:v,endY:r,r:0},u=k.rolloverProperties||{},u.enabled&&void 0!==u.plotFillHoverPercent&&(u.showHoverAnimation?(J={},
B={}):(J=u.hoverAttr,B=u.outAttr),k.plotAsDot?(J.width=J.height=u.plotFillHoverPercent/100*(q?f:b),J.x=k.plotX-J.width/2,J.y=k.plotY-J.width/2,B.width=B.height=v,B.x=a,B.y=g):q?(J.height=u.plotFillHoverPercent/100*f,J.y=Math.min(k.plotY,m.y)-J.height/2,B.height=s,B.y=g):(J.width=u.plotFillHoverPercent/100*b,J.x=Math.min(k.plotX,m.x)-J.width/2,B.width=v,B.x=a)),G.graphic=c.rect(a,g,v,s,0,d).attr({fill:G.color,stroke:G.borderColor,ishot:!0,"stroke-width":G.borderWidth}).click(function(a){qa.call(this,
e,a)}).hover(function(a){qa.call(this,e,a,"DataPlotRollOver");u.enabled&&(this.attr(u.hoverAttr),u.showHoverAnimation&&this.animate(J,100,"easeOut"))},function(a){qa.call(this,e,a,"DataPlotRollOut");u.enabled&&(this.attr(u.outAttr),u.showHoverAnimation&&this.animate(B,100,"easeOut"))}).tooltip(G.toolText).data("eventArgs",n));$(l.y)&&(q?(v=f*l.targetFillPercent/100,s=v/2,k=a=l.plotX,n=g=l.plotY-s,r=l.plotY+s,s=v,v=t,G=a-t/2,m=[a+t,l.plotY]):(v=b*l.targetFillPercent/100,s=v/2,G=a=l.plotX-s,g=r=l.plotY,
k=l.plotX+s,s=t,n=g-t/2,m=[l.plotX,g+t+10]),l.shapeType="rect",l.tooltipPos=m,l.trackerArgs={x:G,y:n,height:s,width:v,r:0},l.shapeArgs=["M",a,g,"L",k,r],l.animInitAttr={d:["M",l.plotX,l.plotY,"L",l.plotX,l.plotY]},l.animAttr={d:l.shapeArgs},n={link:l.link,value:l.y,displayValue:l.displayValue,toolText:l.toolText},w=l.rolloverProperties||{},w.enabled&&void 0!==w.plotFillHoverPercent&&(w.showHoverAnimation?(y={},I={d:l.shapeArgs}):(y=w.hoverAttr,w.outAttr.d=l.shapeArgs),q?(v=f*l.plotFillHoverPercent/
100,s=v/2,y.d=["M",a,l.plotY-s,"L",k,l.plotY+s]):(v=b*l.plotFillHoverPercent/100,s=v/2,y.d=["M",l.plotX-s,g,"L",l.plotX+s,r])),l.graphic=c.path(l.shapeArgs,d).attr({stroke:l.borderColor,"stroke-width":t,"stroke-linecap":"round",ishot:!0,"shape-rendering":pb[1>t]}).click(function(a){qa.call(this,e,a)}).hover(function(a){qa.call(this,e,a,"DataPlotRollOver");w.enabled&&(this.attr(w.hoverAttr),w.showHoverAnimation&&this.animate(y,100,"easeOut"))},function(a){qa.call(this,e,a,"DataPlotRollOut");w.enabled&&
(this.attr(w.outAttr),w.showHoverAnimation&&this.animate(I,100,"easeOut"))}).tooltip(l.toolText).data("eventArgs",n))}},w["renderer.widgetbase"]);w("renderer.hbullet",{drawWidgetLabel:function(a){var e=this.options,c=e.chart,d=this.layers,b=this.paper,f=d.datalabels;a=a[0];var m=this.canvasWidth,g=this.canvasHeight,h=c.valuePadding,e=e.plotOptions.series.dataLabels.style,p={fontFamily:e.fontFamily,fontSize:e.fontSize,lineHeight:e.lineHeight,fontWeight:e.fontWeight,fontStyle:e.fontStyle};f||(f=d.datalabels=
b.group("datalabels").insertAfter(d.dataset));d=m+h;void 0===a.y||isNaN(a.y)||a.displayValue===L||(a.dataLabel=b.text(d,g/2,a.displayValue,f).attr({"text-anchor":sa[Ia],title:a.originalText||"",fill:e.color,direction:c.textDirection,"text-bound":[e.backgroundColor,e.borderColor,e.borderThickness,e.borderPadding,e.borderRadius,e.borderDash]}).css(p))}},w["renderer.bullet"]);w("renderer.hlinear",{drawWidget:function(){var a=this.options,e=this.paper,c=this.logic,d=a.chart,b=a.scale,a=this.elements,
f=this.layers.dataset,m=this.canvasWidth,g=this.canvasHeight,n=b.min,p=b.max,b=b&&b.trendPoint||[],k=d.colorRangeFillMix,l=d.colorRangeFillRatio,s=d.colorRangeBorderColor,r=d.colorRangeBorderAlpha,v=d.colorRangeBorderThickness,t=c.colorRangeGetter.getColorRangeArr(n,p),H=d.showShadow,G,z,Q,A,x,C,J=this.pointOrientation={top:1,bottom:3},B=c.colorManager,w,y,I;a.linear||(a.linear=z=e.group("colorrange",f),a.outerRect=e.rect(z));a.outerRect.attr({x:0,y:0,width:m,height:g,stroke:"none",r:0});Q=function(a,
b){return{x:a*m/(p-n),y:0,width:(b-a)*m/(p-n),height:g}};a.colorRangeElems||(a.colorRangeElems=[]);c=0;for(G=t.length;c<G;c+=1)x=t[c],C=Q(x.minvalue-n,x.maxvalue-n),x.x=C.x,x.y=C.y,x.width=C.width,x.height=C.height,A=x.code,A=F(ta(q(x.bordercolor,A),s),h(x.borderalpha,r)),H&&Math.max(x.alpha,r),w=B.parseColorMix(x.code,k),y=B.parseAlphaList(x.alpha,w.length),x=h(x.borderAlpha,r),I=y.split(u),I=va.apply(Math,I),I=va(v&&x||0,I),a.colorRangeElems[c]||(a.colorRangeElems[c]=e.rect(z)),a.colorRangeElems[c].attr({x:C.x,
y:C.y,width:C.width,height:C.height,r:0,"stroke-width":v,stroke:A,fill:S({FCcolor:{color:w.toString(),ratio:l,alpha:y,angle:270}})}).shadow({apply:H,opacity:I/100});for(;a.colorRangeElems[c];)a.colorRangeElems[c].remove(),a.colorRangeElems.splice(c,1);a.trendObjElems||(a.trendObjElems=[]);c=0;for(G=b.length;c<G;c+=1)k=b[c],C=Q(k.startValue-n,k.endValue-n),k.isZone?(a.trendObjElems[c]||(a.trendObjElems[c]=e.rect(z)),a.trendObjElems[c].attr({x:C.x,y:C.y,width:0<C.width?C.width:0,height:0<C.height?C.height:
0,r:0,"stroke-width":0,fill:S({FCcolor:{color:k.color,alpha:k.alpha}})}).tooltip(k.tooltext)):a.trendObjElems[c]=e.path(["M",C.x,C.y,"L",C.x,C.y+C.height],z).attr({stroke:F(k.color,k.alpha),"stroke-width":k.thickness,"stroke-dasharray":k.dashStyle}).tooltip(k.tooltext),k.useMarker&&(k.showOnTop?(s="bottom",l=0):(s="top",l=g),s=90*J[s],k.graphic=e.polypath(3,C.x,l,k.markerRadius,s,0,f).attr({fill:k.markerColor,stroke:k.markerBorderColor,"stroke-width":1}).shadow({apply:d.showShadow}).tooltip(k.tooltext));
for(;a.trendObjElems[c];)a.trendObjElems[c].remove(),a.trendObjElems.splice(c,1)},drawWidgetValue:function(a,e){var c=a&&a.length||0,d=this.options.chart,b=this.pointOrientation,f={point:[],showPointerShadow:d.showPointerShadow},d=d.pointerOnOpp?"top":"bottom";for(this.dataById={};c--;)f.point[c]={startAngle:90*b[d]};this.drawPointerValues(null,e,f)},drawPointerValues:function(a,e,c){var d=this;a=d.layers.dataset;var b=d.options,f=d.elements,m=d.paper,g=b.scale,n=b.series&&b.series[0]&&b.series[0].data||
[],p=d.canvasWidth,k=d.canvasHeight,k=b.chart.pointerOnOpp?k:0,l=b.chart.showPointerShadow,b=!1!==b.tooltip.enabled,s=(g.max-g.min)/p,r=g.min,v=g.max,t=n.length,q,G,z,u,A={pageX:0,pageY:0},x=function(a){G=d.fusionCharts.getDataJSON();this.dragStartX=a},C=function(){var a,b=d.fusionCharts;(a=b&&b.jsVars)&&(a._rtLastUpdatedData=b.getDataJSON());Ga.raiseEvent("RealTimeUpdateComplete",{data:"&value="+this.updatedValStr,updateObject:{values:[this.updatedValStr]},prevData:G.values,source:"editMode",url:null},
b);try{da.FC_ChartUpdated&&da.FC_ChartUpdated(b.id)}catch(c){setTimeout(function(){throw c;},1)}this.graphic.tooltip(this.toolText)},w=function(a,b,c,e,f){a=xb&&(xb&&f.sourceEvent&&f.sourceEvent.touches&&f.sourceEvent.touches[0]||f)||A;b=h(this.y,g.min);e=b-(this.dragStartX-c)*s;var m=0,k=[];e<g.min?e=g.min:e>g.max&&(e=g.max);for(;m<this.index;m+=1)k.push("");k.push(e);b!==e&&d.realtimeUpdate({values:k},{duration:0})&&(this.updatedValStr=k.join("|"),this.dragStartX=c||f.pageX||a.pageX)},B,y,F,I,M,
E;I=function(a){qa.call(this,d,a)};M=function(a){var b=this.data("rolloverProperties");b.enabled&&(this.attr(b.hoverAttr),b.hoverAnimAttr&&this.animate(b.hoverAnimAttr,100,"easeIn"));qa.call(this,d,a,"DataPlotRollOver")};for(E=function(a){var b=this.data("rolloverProperties");b.enabled&&(this.attr(b.outAttr),b.outAnimAttr&&this.animate(b.outAnimAttr,100,"easeIn"));qa.call(this,d,a,"DataPlotRollOut")};t--;)q=n[t],y=q.rolloverProperties||{},u=c&&c.point[t]&&c.point[t].startAngle||q._startAngle,u+=.2,
f.pointers||(f.pointers=[]),f.pointers[t]||(void 0!==q.id&&(d.dataById[q.id]={index:t,point:q}),z=l?{opacity:Math.max(q.bgalpha,q.borderalpha)/100}:!1,B=q.editMode?void 0:q.link,F={link:B,value:q.y,displayValue:q.displayValue,toolText:q.toolText},q.graphic=f.pointers[t]=m.polypath(q.sides,0,k||0,q.radius,u,0,a).attr({fill:q.color,stroke:q.borderColor,ishot:!0,r:q.radius,"stroke-width":q.borderWidth}).shadow(!!z,z&&z.opacity).click(I).hover(M,E).data("eventArgs",F).data("rolloverProperties",y),B&&
q.graphic.css({cursor:"pointer",_cursor:"hand"}),q._startAngle=u,q.editMode&&(q.index=t,q.graphic.css({cursor:"pointer",_cursor:"hand"}).attr({ishot:!0}),q.graphic.drag(w,x,C,q,q,q))),q.graphic=f.pointers[t],b&&q.graphic.tooltip(q.toolText),e&&e.duration?q.graphic.animate({polypath:[q.sides,p*(h(q.y,r)-r)/(v-r),k||0,q.radius,u,0]},e.duration,"easeIn"):q.graphic.attr({polypath:[q.sides,p*(h(q.y,r)-r)/(v-r),k||0,q.radius,u,0]})},drawWidgetLabel:function(a,e){var c=this.options,d=c.scale,b=this.layers,
f=this.paper,m=c.chart,g=this.logic,b=b.datalabels||(b.datalabels=f.group("datalabels").insertAfter(b.dataset)),n=d.min,p=d.max,k=m.textDirection,l=g.colorRangeGetter.getColorRangeArr(n,p),g=g.numberFormatter,s=m.colorRangeStyle.style||{},r,v=this.canvasWidth,t=this.canvasHeight,d=d&&d.trendPoint||[],H=m.pointerOnOpp,G=m.valueInsideGauge;r=m.showGaugeLabels;var z=c.plotOptions.series.dataLabels.style,u,A,x,C,w,B,y,F,I;F=!1;var c=this.smartLabel,M,E,D;D=h(parseInt(z.fontHeight,10),parseInt(z.lineHeight,
10),12);var K=m.valuePadding+.5*D,m=m.valuePadding,S=K,z={fontFamily:z.fontFamily,fontSize:z.fontSize,lineHeight:z.lineHeight,fontWeight:z.fontWeight,fontStyle:z.fontStyle},K=G===H?K-D/4:K+D/4;c.setStyle(z);E=c.getOriSize("W...").width;C=this.getPointerLabelXY=function(a,b,c,d){return{x:(a-n)*v/(p-n),y:c?b?t-d-K:t+K:b?K:-(K+d),align:"middle"}};w=function(a,b){return{x:(a-n+(b-a)/2)*v/(p-n),y:t/2,width:(b-a)*v/(p-n),height:t}};if(a&&a.length)for(z=a.length;z--;)if(x=a[z],0!==x.showvalue&&x.displayValue!==
L&&(M=c.getOriSize(x.displayValue),x.setWidth&&(M=c.getSmartText(x.displayValue,x.setWidth,M.height,!0)),B=this.getPointerLabelXY(x.y,G,H,M.height/2),x.isLabelString)){F=!1;for(I=1;!F;){y=a[z+I];if(!y)break;y.isLabelString?F=!0:I+=1}y&&(F=c.getOriSize(y.displayValue),u=C(y.y,G,H,F.height/2),I=u.x-F.width/2-(B.x+M.width/2),u=u.x-B.x,0>I&&(A=M.width+I,A>u&&(x.setWidth=A=u),A>E?(B=x.setWidth&&x.setWidth<=A?c.getSmartText(x.displayValue,x.setWidth,M.height,!0):c.getSmartText(x.displayValue,A,M.height,
!0),x.displayValue=B.text,B.tooltext&&(x.originalText=B.tooltext)):(B=c.getSmartText(x.displayValue,E,M.height,!0),x.displayValue=B.text,B.tooltext&&(x.originalText=B.tooltext),I=2*I+E-4),x.setWidth=null,A=F.width+I-4,y.setWidth=A>u?u:A>E?A:E));x.setWidth&&(B=c.getSmartText(x.displayValue,x.setWidth,M.height,!0),x.displayValue=B.text,B.tooltext&&(x.originalText=B.tooltext),x.setWidth=null)}this.drawPointerLabels(null,e);s=s||{};c.setStyle(s);if(l&&r)for(z=0,H=l.length;z<H;z+=1)r=l[z],G=q(r.label,
r.name),$(G)&&G!==L&&(B=w(r.minvalue,r.maxvalue),M=B.width-4>E&&B.height-4>D?c.getSmartText(G,B.width-4,B.height-4):c.getSmartText(G,B.width,B.height),f.text(b).attr({"text-anchor":ya,title:M.tooltext||"","vertical-align":ya,text:M.text,x:B.x,y:B.y,direction:k,fill:s.color}).css(s));if(d)for(z=0,H=d.length;z<H;z+=1){l=d[z];l.displayValue=q(l.displayValue,g.dataLabels(l.startValue));c.setStyle(l.style);D=c.getOriSize("Wg").height;M=c.getOriSize(l.displayValue);B=C(l.startValue,0,!l.showOnTop);l.setWidth&&
(M=c.getSmartText(l.displayValue,l.setWidth,M.height,!0));F=!1;for(I=1;!F;){y=d[z+I];if(!y)break;y.showOnTop===l.showOnTop?F=!0:I+=1}y&&(F=c.getOriSize(y.displayValue),u=C(y.startValue,0,!y.showOnTop),I=u.x-F.width/2-(B.x+M.width/2),0>I&&(u=u.x-B.x,A=M.width+I,A>u&&(l.setWidth=A=u),A>E?(M=l.setWidth&&l.setWidth<=A?c.getSmartText(l.displayValue,l.setWidth,M.height,!0):c.getSmartText(l.displayValue,M.width+I-4,M.height,!0),l.displayValue=M.text,M.tooltext&&(l.originalText=M.tooltext)):(M=c.getSmartText(l.displayValue,
E,M.height,!0),l.displayValue=M.text,M.tooltext&&(l.originalText=M.tooltext),I=2*I+E-4),l.setWidth=null,A=F.width+I-4,y.setWidth=A>u?u:A>E?A:E));l.setWidth&&(M=c.getSmartText(l.displayValue,l.setWidth,M.height,!0),l.displayValue=M.text,M.tooltext&&(l.originalText=M.tooltext),l.setWidth=null);D=l.showOnTop?-(m+M.height/2):t+S;s=l.isZone?w(l.startValue,l.endValue).x:B.x;l.dataLabel=f.text(0,D,l.displayValue,b).attr({"text-anchor":sa[B.align],direction:k,title:l.originalText||""}).css(l.style);l.dataLabel.attr({x:s})}},
drawPointerLabels:function(a,e){for(var c=this.layers.datalabels,d=this.paper,b=this.options,f=b.chart,m=f.pointerOnOpp,g=f.valueInsideGauge,f=f.textDirection,h=this.smartLabel,p=b.series&&b.series[0]&&b.series[0].data||[],b=b.plotOptions.series.dataLabels.style,k=p.length,l={fontFamily:b.fontFamily,fontSize:b.fontSize,lineHeight:b.lineHeight,fontWeight:b.fontWeight,fontStyle:b.fontStyle},s,r,q;k--;)r=p[k],s=r.displayValue,0!==r.showvalue&&s!==L&&(q=h.getOriSize(s),q=this.getPointerLabelXY(r.y,g,
m,q.height/2),r.dataLabel?r.dataLabel.attr({text:s,title:r.originalText||""}):r.dataLabel=d.text(c).attr({"text-anchor":sa[q.align],title:r.originalText||"",text:s,x:0,y:q.y,fill:b.color,direction:f,"text-bound":[b.backgroundColor,b.borderColor,b.borderThickness,b.borderPadding,b.borderRadius,b.borderDash]}).css(l),e&&e.duration?r.dataLabel.animate({x:q.x},e.duration,"easeIn"):r.dataLabel.attr({x:q.x}))},realtimeUpdate:function(a,e){if(a===this.lastUpdatedObj)return!1;var c=this.options,d=c[K],b=
c.series,f=this.numberFormatter,b=b&&b[0]&&b[0].data,m=a.values||[],g=a.labels||[],h=a.toolTexts||[],p=a.showLabels||[],k=b&&b.length||0,l,s,r=null,v=[],t;e=e||c.plotOptions.series.animation;if(k){for(;k--;)c={},t={},l=b[k],void 0!==m[k]&&""!==m[k]?(c.value=t.value=m[k],r=t.displayvalue=t.tooltext=f.dataLabels(t.value),t.hasNewData=!0):t.value=l.y,g[k]&&(t.displayvalue=g[k],t.hasNewData=!0),"0"==p[k]&&(t.displayvalue=L,t.hasNewData=!0),s=D(O(q(l._tooltext,d.tooltext))),h[k]&&(s=D(O(h[k])),t.hasNewData=
!0),t.hasNewData&&(v[k]=t,T(l,{y:t.value,displayValue:l.displayValue||"1"==p[k]?t.displayvalue:L,toolText:void 0!==s?ab(s,[1,2],{formattedValue:r},c):r}));v.length&&(this.lastUpdatedObj=a,this.drawPointerValues(b,e),this.drawPointerLabels(b,e));return Boolean(v.length)}}},w["renderer.widgetbase"]);w("renderer.angular",{drawWidget:function(){var a=this.options,e=a.chart,c=a.scale,d=a.series[0],a=this.paper,b=this.elements,f=this.layers.dataset,m=d.gaugeOuterRadius,g=d.gaugeInnerRadius,n=d.gaugeFillRatio,
p=e.gaugeBorderColor,k=e.gaugeBorderThickness,l=e.gaugeBorderAlpha,s=d.gaugeFillMix,r=d.gaugeOriginX,v=d.gaugeOriginY,t=e.gaugeStartAngle,H=e.gaugeEndAngle,G=e.showShadow,e=e.textDirection,z=c.min,w=c.max,A=this.logic,x=A.colorRangeGetter.getColorRangeArr(z,w),C=0,J=x.length,B=w-z,H=H-t,y,D,I=t,M=Math.cos(t),E=Math.sin(t),K=r+m*M;D=v+m*E;var M=r+g*M,E=v+g*E,T,c=c.trendPoint,O;b.trendPointGroup||(b.trendPointGroup=a.group("trendpoint",f));for(;C<J;C+=1)y=x[C],D=t+(Math.min(y.maxvalue,w)-z)/B*H,M=A.parseColorMix(y.code,
s),E=A.parseAlphaList(y.alpha,M.length),K=A.parseRatioList(g/m*100+n,M.length),O=y.bordercolor,T=h(y.borderAlpha,l),O=O&&-1==O.indexOf("{")?F(O,T):A.parseColorMix(y.code,q(O,p))[0],O=F(O,T),y=E.split(u),y=va.apply(Math,y),y=G?va(k&&T||0,y):0,T=D,I>D&&(I+=D,D=I-D,I-=D),a.ringpath(r,v,m,g,I,D,f).attr({fill:S({FCcolor:{cx:r,cy:v,r:m,gradientUnits:"userSpaceOnUse",color:M.join(),alpha:E,ratio:K,radialGradient:!0}}),"stroke-width":k,stroke:O}).shadow({apply:G,opacity:y/100}),I=T;b.tickMarkGroup||(b.tickMarkGroup=
a.group("tickmark",f));b.trendMarkerGroup||(b.trendMarkerGroup=a.group("trendmarker",f));b.pointGroup||(b.pointGroup=a.group("pointers",f).translate(r,v));b.pivot||(b.pivot=a.circle(f));b.pivot.attr({cx:r,cy:v,r:d.pivotRadius,fill:S({FCcolor:d.isRadialGradient?{color:d.pivotFillColor,alpha:d.pivotFillAlpha,ratio:d.pivotFillRatio,radialGradient:!0,angle:d.pivotFillAngle,cx:.5,cy:.5,r:"50%"}:{color:d.pivotFillColor,alpha:d.pivotFillAlpha,ratio:d.pivotFillRatio,radialGradient:!1,angle:d.pivotFillAngle}}),
"stroke-width":d.pivotBorderThickness,stroke:d.pivotBorderColor}).shadow({apply:G});f=Math.cos(89.99*eb);n=-f;C=0;for(J=c.length;C<J;C+=1)d=c[C],G=d.isZone,s=t+(d.startValue-z)/B*H,p=h(d.radius,m),k=h(d.innerRadius,G?Math.max(g-15,0):g),l=h(d.trendValueDistance,0),M=Math.cos(s),E=Math.sin(s),K=r+p*M,D=v+p*E,M=r+k*M,E=v+k*E,G?(E=t+(d.endValue-z)/B*H,s>E&&(s+=E,E=s-E,s-=E),d.graphic=a.ringpath(r,v,p,k,s,E,b.trendPointGroup).attr({fill:F(d.color,d.alpha),"stroke-width":d.showBorder?d.thickness:0,stroke:d.borderColor,
"stroke-dasharray":d.dashStyle})):d.graphic=a.path(["M",K,D,"L",M,E],b.tickMarkGroup).attr({"stroke-width":d.showBorder?d.thickness:0,stroke:d.borderColor,"stroke-linecap":"round","stroke-dasharray":d.dashStyle}),d.useMarker&&(d.markerElement=a.polypath("3",K,D,d.markerRadius,(-s+Math.PI)/eb,0,b.trendMarkerGroup).attr({fill:d.markerColor,"stroke-width":1,stroke:d.markerBorderColor}),""!==d.markerToolText&&d.markerElement.tooltip(d.markerToolText)),d.displayValue!==L&&(D=(d.endValue+d.startValue)/
2,E=t+(D-z)/B*H,M=Math.cos(E),E=Math.sin(E),d.valueInside?(D=k-2-l,p=M>f?bb:M<n?Ia:La):(D=p+2+l,p=M>f?Ia:M<n?bb:La),K=r+D*M,D=v+D*E,k=d.style,d.textElement=a.text(b.trendMarkerGroup).attr({x:K,y:D,text:d.displayValue,title:d.originalText||"",direction:e,"text-anchor":sa[d.align||p],"vertical-align":Wa}).css(k),K=d.textElement.getBBox(),K=K.height,D=M>f||M<n?D+(-(K/2)+.4*K*E*(d.valueInside?-1:1)):d.valueInside?D+-(0>E?0:K):D+-(0<E?0:K),d.textElement.attr({y:D}))},drawWidgetValue:function(a,e){var c=
this,d=c.options,b=d.chart,f=d.scale,m=d.series[0],g=c.paper,n=c.elements,p=Number(m.gaugeOriginX),k=Number(m.gaugeOriginY),l=b.gaugeStartAngle,s=b.gaugeEndAngle,b=b.showShadow,d=!1!==d.tooltip.enabled,r=f.min,q=f.max,t=n.pointGroup,H=q-r,G=s-l,z=H/G,u=0,A,x,C,w,B,y,D,I=a&&a.length,F,E=Xb(l,s),L=Vb(c.container),K=function(a,b){var d;d=[p,k];d=Gb(d[1]-b+L.top,d[0]-a+L.left);c.rotationStartAngle=d;F=c.fusionCharts.getDataJSON()},S=function(){var a=c.fusionCharts,b;(b=a&&a.jsVars)&&(b._rtLastUpdatedData=
a.getDataJSON());Ga.raiseEvent("RealTimeUpdateComplete",{data:"&value="+this.updatedValStr,updateObject:{values:[this.updatedValStr]},prevData:F.values,source:"editMode",url:null},a);try{da.FC_ChartUpdated&&da.FC_ChartUpdated(a.id)}catch(d){setTimeout(function(){throw d;},1)}},N=function(a,b,d,e){a=[p,k];d=Gb(a[1]-e+L.top,a[0]-d+L.left);e=c.rotationStartAngle;var g;e=0>d&&0<e?vb(d)-c.rotationStartAngle:0<d&&0>e?vb(c.rotationStartAngle)-d:c.rotationStartAngle-d;e=this.y-e*z;a=[];b=0;g=this.index;e<
f.min?e=f.min:e>f.max&&(e=f.max);for(;b<g;b+=1)a.push("");a.push(e);e!==this.value&&c.realtimeUpdate({values:a},{duration:0})&&(this.updatedValStr=a.join("|"),c.rotationStartAngle=d)},U,R,T,P,O,Z,W,V,X,aa;void 0===c.dataById&&(c.dataById={});n.pointers||(n.pointers=[]);V=function(a){qa.call(this,c,a)};X=function(a){var b=this.data("rolloverProperties");qa.call(this,c,a,"DataPlotRollOver");b.enabled&&(a=this.attr("transform"),this.attr("transform",""),this.attr(b.hoverAttr),this.attr("transform",a))};
for(aa=function(a){var b=this.data("rolloverProperties");qa.call(this,c,a,"DataPlotRollOut");b.enabled&&(a=this.attr("transform"),this.attr("transform",""),this.attr(b.outAttr),this.attr("transform",a))};u<I;u+=1)s=a[u],R=s.rolloverProperties||{},$(s.y)||(s.y=r,$(s.toolText)||(s.toolText=r)," "===s.displayValue&&(s.displayValue=r)),void 0!==s.id&&(c.dataById[s.id]={index:u,point:s}),s.index=u,A=h(s.radius,(Number(m.gaugeOuterRadius)+Number(m.gaugeInnerRadius))/2),x=s.baseWidth,y=x/2,C=s.topWidth,
D=C/2,B=s.rearExtension,w=s.baseRadius,s.tooltipPos=[p,k],n.pointers[u]?w=n.pointers[u]:(U=s.editMode?void 0:s.link,T=["M",A,-D,"L",A,D,-B,y,-B,-y,"Z"],R.hasHoverSizeChange&&(R.outAttr.path=T,P=h(R.hoverRadius,A),O=R.baseHoverWidth,O/=2,Z=R.topHoverWidth,Z/=2,W=R.rearHoverExtension,R.hoverAttr.path=["M",P,-Z,"L",P,Z,-W,O,-W,-O,"Z"]),U={link:U,value:s.y,displayValue:s.displayValue,toolText:s.toolText},n.pointers[u]=C?g.path(T,t):g.trianglepath(A,D,-B,y,-B,-y,0,w,w,t),s.graphic=w=n.pointers[u],s.graphic.attr({fill:s.color,
stroke:s.borderColor,ishot:!0,"stroke-width":s.borderThickness}).click(V).hover(X,aa).data("eventArgs",U).data("rolloverProperties",R),(x||C||s.borderThickness)&&s.graphic.shadow({apply:b}),w._attr=w.attr,w.attr=E,w._Attr={tooltipPos:s.tooltipPos,cx:p,cy:k,toolTipRadius:A-B,color:s.color},A=l/eb,w.attr({angle:A}),s.editMode&&(s.index=u,s.graphic.css({cursor:"pointer",_cursor:"hand"}).attr({ishot:!0}),s.graphic.drag(N,K,S,s,s,s))),s.y>=r&&s.y<=q&&(A=(s.y-r)/H*G,A=(l+A)/eb,w.attr({angle:A},null,e),
d&&w.tooltip(s.toolText))},drawWidgetLabel:function(a){var e=this.paper,c=this.layers,d=c.datalabels,b=this.options,f=b.series[0],m=b.plotOptions.series.dataLabels.style,g=f.pivotRadius,n=h(parseInt(m.lineHeight,10),12),p=f.valueBelowPivot,k=f.gaugeOriginX,l=b.chart.textDirection,s={fontFamily:m.fontFamily,fontSize:m.fontSize,lineHeight:m.lineHeight,fontWeight:m.fontWeight,fontStyle:m.fontStyle},r,q,t,u=f.gaugeOriginY+(p?n/2+g+2:-(n/2)-g-2);d||(d=c.datalabels=e.group("datalabels").insertAfter(c.dataset));
Cb(a,function(a,b){r=a.displayValue;t=a.valueY;q=h(a.valueX,k);$(t)||(t=p?u+n*b:u-n*b);$(r)&&r!==L&&(a.dataLabel?a.dataLabel.attr({text:r,title:a.originalText||""}):a.dataLabel=e.text(d).attr({x:q,y:t,text:r,"text-anchor":sa[La],direction:l,title:a.originalText||"",fill:m.color,"text-bound":[m.backgroundColor,m.borderColor,m.borderThickness,m.borderPadding,m.borderRadius,m.borderDash]}).css(s))})},drawScale:function(){var a=this.options,e=a.chart,c=a.scale,d=this.paper,b=this.elements,f=a.series[0],
a=Number(f.gaugeOriginX),m=Number(f.gaugeOriginY),g=e.gaugeStartAngle,n=c.min,p=e.textDirection,k=Number(f.gaugeInnerRadius),l=Number(f.gaugeOuterRadius),f=c.max-n,e=e.gaugeEndAngle-g,s=0,r=c.majorTM,q=c.minorTM,t=b.tickMarkGroup,u,G,z,w,A,x,C=Math.cos,y=Math.sin,B=Number(c.minorTMHeight),D=Number(c.majorTMHeight),L=c.placeTicksInside,s=c.placeValuesInside;A=c.tickValueDistance;var I,M,E=c.limitValues.style,K=c.tickValues.style,S=.75*h(parseInt(E.lineHeight,10),12),O=.75*h(parseInt(K.lineHeight,10),
12);L?(L=k,B=L+B,D=L+D):(L=l,B=L-B,D=L-D);I=s?k-A:l+A;b.majorTM||(b.majorTM=[]);b.tmLabel||(b.tmLabel=[]);s=0;for(k=r.length;s<k;s+=1)l=r[s],u=l.value,A=l.displayValue,x=(u-n)*e/f+g,M=C(x),x=y(x),u=a+L*M,G=m+L*x,z=a+D*M,w=m+D*x,b.majorTM[s]=d.path(["M",u,G,"L",z,w],t).attr({stroke:F(c.majorTMColor,c.majorTMAlpha),"stroke-width":c.majorTMThickness,"stroke-linecap":"round"}),""!==A&&(0===s||s===k-1?(z=E,G=m+I*x+(l.y||0)-S):(z=K,G=m+I*x+(l.y||0)-O),u=a+I*M+(l.x||0),b.tmLabel[s]=d.text(u,G,A,t).attr({"text-anchor":sa[l.align||
La],title:l.originalText||"",direction:p,"vertical-align":Wa}).css(z));b.minorTM||(b.minorTM=[]);s=0;for(k=q.length;s<k;s+=1)u=q[s],x=(u-n)*e/f+g,u=a+L*C(x),G=m+L*y(x),z=a+B*C(x),w=m+B*y(x),b.minorTM[s]=d.path(["M",u,G,"L",z,w],t).attr({stroke:F(c.minorTMColor,c.minorTMAlpha),"stroke-width":c.minorTMThickness,"stroke-linecap":"round"})},realtimeUpdate:function(a,e){if(a===this.lastUpdatedObj)return!1;var c=this.options,d=c[K],b=c.series,f=this.numberFormatter,b=b&&b[0]&&b[0].data,m=a.values||[],g=
a.labels||[],h=a.toolTexts||[],p=a.showLabels||[],k=b&&b.length||0,l,s,r=null,v=[],t,u;e=e||c.plotOptions.series.animation;if(k){for(;k--;)t={},c={},u=!1,l=b[k],s=l.id&&(l.id.toLowerCase&&l.id.toLowerCase()||l.id),void 0!==m[k]&&""!==m[k]&&(u=!0)||s&&a[s]?(c.value=t.value=u?m[k]:a[s],r=t.displayvalue=t.tooltext=f.dataLabels(t.value),t.hasNewData=!0):t.value=l.y,g[k]&&(t.displayvalue=g[k],t.hasNewData=!0),"0"==p[k]&&(t.displayvalue=L,t.hasNewData=!0),s=D(O(q(l._tooltext,d.tooltext))),h[k]&&(s=D(O(h[k])),
t.hasNewData=!0),t.hasNewData&&(v[k]=t,T(l,{y:t.value,displayValue:l.displayValue||"1"===p[k]?t.displayvalue:L,toolText:void 0!==s?ab(s,[1,2],{formattedValue:r},c):r}));v.length&&(this.lastUpdatedObj=a,this.drawWidgetValue(b,e),this.drawWidgetLabel(b,e));return Boolean(v.length)}}},w["renderer.widgetbase"]);w("renderer.funnel",{type:"funnel",pyramidFunnelShape:function(){var a={y:!0,R1:!0,R2:!0,h:!0,r3dFactor:!0,color:!0,opacity:!0,fill:!0,stroke:!0,strokeColor:!0,strokeAlpha:!0,"stroke-width":!0},
e=function(a,c,d,e,h,p,k,l,s,r){lb(a)&&(c=a.y,d=a.R1,e=a.R2,h=a.h,p=a.r3dFactor,k=a.is2D,r=a.isHollow,s=a.isFunnel,a=a.x);l=a-d;var q=a+d,t=a-e,u=a+e,G=c+h,z,w;if(k)z={silhuette:["M",l,c,"L",q,c,u,G,t,G,"Z"]},s||(z.lighterHalf=["M",l,c,"L",a,c,a,G,t,G,"Z"],z.darkerHalf=["M",a,c,"L",q,c,u,G,a,G,"Z"]);else if(s){t=a;u=c;c=d||.01;q=e||.01;a=r;l=c*p;p*=q;h=u+h;G=ga(q,2)-ga(c,2);d=-2*(ga(q,2)*u-ga(c,2)*h);e=ga(c*p,2)+ga(q*u,2)-ga(q*l,2)-ga(c*h,2);r=kb(ga(d,2)-4*G*e);e=(-d+r)/(2*G);G=(-d-r)/(2*G);e<h&&
e>u?w=G:G<h&&G>u&&(w=e);e=kb((ga(w-u,2)-ga(l,2))/ga(c,2));d=-e;G={x:ka(ga(c,2)*e/(w-u)*100)/100,y:ka(100*(ga(l,2)/(w-u)+u))/100};e={x:ka(ga(q,2)*e/(w-h)*100)/100,y:ka(100*(ga(p,2)/(w-h)+h))/100};r={x:ka(ga(c,2)*d/(w-u)*100)/100,y:ka(100*(ga(l,2)/(w-u)+u))/100};w={x:ka(ga(q,2)*d/(w-h)*100)/100,y:ka(100*(ga(p,2)/(w-h)+h))/100};G={topLeft:r,bottomLeft:w,topRight:G,bottomRight:e};for(z in G)if(isNaN(G[z].x)||isNaN(G[z].y))G[z].x="topLeft"===z||"bottomLeft"===z?-c:c,G[z].y="bottomRight"===z||"bottomLeft"===
z?h:u;h=G.topLeft;d=G.bottomLeft;z=t+h.x;w=t+G.topRight.x;u=t+d.x;t+=G.bottomRight.x;h=h.y;d=d.y;G=["A",c,l,0,0,0,w,h];e=["A",c,l,0,1,1,w,h];r=["A",q,p,0,0,1,u,d];q=["A",q,p,0,1,0,u,d];q={front:["M",z,h].concat(G,["L",t,d],r,["Z"]),back:["M",z,h].concat(e,["L",t,d],q,["Z"]),silhuette:["M",z,h].concat(e,["L",t,d],r,["Z"])};a||(q.top=["M",z,h].concat(G,["L",w,h],["A",c,l,0,1,0,z,h],["Z"]));z=q}else z=d*p,w=e*p,h=Ja(5,d),d=Ja(2,2*z),e=Ja(2,d),p=e/p,z={top:["M",l,c,"L",a,c+z,q,c,a,c-z,"Z"],front:["M",
l,c,"L",a,c+z,q,c,u,G,a,G+w,t,G,"Z"],topLight:["M",l,c+.5,"L",a,c+z+.5,a,c+z-d,l+p,c,"Z"],topLight1:["M",q,c+.5,"L",a,c+z+.5,a,c+z-e,q-p,c,"Z"],silhuette:["M",l,c,"L",a,c-z,q,c,u,G,a,G+w,t,G,"Z"],centerLight:["M",a,c+z,"L",a,G+w,a-5,G+w,a-h,c+z,"Z"],centerLight1:["M",a,c+z,"L",a,G+w,a+5,G+w,a+h,c+z,"Z"]};return z},c=function(b,c){var d,g,n=this,p,k,l=!1,s=!1,r=this._3dAttr,q;Ea(b)&&$(c)&&(d=b,b={},b[d]=c);if(Ea(b))n=a[b]?this._3dAttr[b]:this._attr(b);else{for(d in b)g=b[d],a[d]?(r[d]=g,"fill"===d?
(g&&g.linearGradient&&g.stops&&g.stops[0]&&(g=g.stops[0][1]),rb.test(g)?(k=new nb(g),p=k.get("hex"),k=100*k.get("a")):g&&g.FCcolor?(p=g.FCcolor.color.split(u)[0],k=g.FCcolor.opacity.split(u)[0]):ob.test(g)&&(p=g.replace(fb,hb),k=h(r.opacity,100)),r.color=p,r.opacity=k,s=!0):"color"===d||"opacity"===d?(r.fill=S(F(r.color,h(r.opacity,100))),s=!0):"stroke"===d||"strokeColor"===d||"strokeAlpha"===d?r.is2D&&("stroke"===d?(g&&g.linearGradient&&g.stops&&g.stops[0]&&(g=g.stops[0][1]),rb.test(g)?(k=new nb(g),
p=k.get("hex"),k=100*k.get("a")):g&&g.FCcolor?(p=g.FCcolor.color.split(u)[0],k=g.FCcolor.opacity.split(u)[0]):ob.test(g)&&(p=g.replace(fb,hb),k=h(r.opacity,100)),r.strokeColor=p,r.strokeAlpha=k):r.stroke=F(r.strokeColor,h(r.strokeAlpha,100)),r.isFunnel?this.funnel2D.attr("stroke",r.stroke):this.borderElement.attr("stroke",r.stroke)):"stroke-width"===d?r.is2D&&(r.isFunnel?this.funnel2D.attr(d,g):this.borderElement.attr(d,g)):l=!0):this._attr(d,g);r.is2D?(l&&(p=e(r.x,r.y,r.R1,r.R2,r.h,r.r3dFactor,r.is2D),
n.shadowElement.attr({path:p.silhuette}),r.isFunnel?n.funnel2D.attr({path:p.silhuette}):(n.lighterHalf.attr({path:p.lighterHalf}),n.darkerHalf.attr({path:p.darkerHalf}),n.borderElement.attr({path:p.silhuette}))),s&&(r.isFunnel?n.funnel2D.attr("fill",S(F(r.color,h(r.opacity,100)))):(p=V(r.color,80),k=W(r.color,80),n.lighterHalf.attr("fill",S(F(k,h(r.opacity,100)))),n.darkerHalf.attr("fill",S(F(p,h(r.opacity,100))))))):(l&&(p=e(r.x,r.y,r.R1,r.R2,r.h,r.r3dFactor,r.is2D),n.shadowElement.attr("path",p.silhuette),
r.isFunnel?(n.front.attr("path",p.front),n.back.attr("path",p.back),n.toptop&&p.top&&n.toptop.attr("path",p.top)):(n.front.attr("path",p.front),n.toptop.attr("path",p.top),n.topLight.attr("path",p.topLight),n.topLight1.attr("path",p.topLight1),n.centerLight.attr("path",p.centerLight),n.centerLight1.attr("path",p.centerLight1))),s&&(p=r.color,k=r.opacity,r.isFunnel?(s=W(p,60),l=V(p,60),n.back.attr("fill",S({FCcolor:{color:l+u+s+u+p,alpha:k+u+k+u+k,ratio:"0,60,40",angle:0}})),n.front.attr("fill",S({FCcolor:{color:p+
u+s+u+l,alpha:k+u+k+u+k,ratio:"0,40,60",angle:0}})),n.toptop&&n.toptop.attr("fill",S({FCcolor:{color:s+u+l,alpha:k+u+k,ratio:"0,100",angle:-65}}))):(s=W(p,80),d=W(p,70),l=V(p,80),g="0,"+k,q=p+u+d,r=5/(r.R1*r.r3dFactor)*100,n.centerLight.attr("fill",S({FCcolor:{color:q,alpha:g,ratio:"0,100",angle:0}})),n.centerLight1.attr("fill",S({FCcolor:{color:q,alpha:g,ratio:"0,100",angle:180}})),n.topLight.attr("fill",S({FCcolor:{color:d+u+d+u+p+u+p,alpha:k+u+k+u+0+u+0,ratio:"0,50,"+r+u+(50-r),angle:-45}})),n.topLight1.attr("fill",
S({FCcolor:{color:d+u+p+u+l,alpha:k+u+k+u+k,ratio:"0,50,50",angle:0}})),n.front.attr("fill",S({FCcolor:{color:p+u+p+u+l+u+l,alpha:k+u+k+u+k+u+k,ratio:"0,50,0,50",angle:0}})),n.toptop.attr("fill",S({FCcolor:{color:s+u+p+u+l+u+l,alpha:k+u+k+u+k+u+k,ratio:"0,25,30,45",angle:-45}})))))}return n},d=function(){var a=this.shadowElement;d&&a.shadow.apply(a,arguments)};return function(a,f,m,g,n,p,k,l,s,q,v){var t=this.layers.dataset;lb(a)&&(f=a.y,m=a.R1,g=a.R2,n=a.h,p=a.r3dFactor,k=a.gStr,l=a.is2D,s=a.renderer,
v=a.isHollow,q=a.isFunnel,a=a.x);p=h(p,.15);a={x:a,y:f,R1:m,R2:g,h:n,r3dFactor:p,is2D:l,isHollow:v,isFunnel:q,renderer:s};f=e(a);k=s.group(k,t);k.Shapeargs=f;k.shadowElement=s.path(f.silhuette,k).attr({fill:ha,stroke:"none"});k._attr=k.attr;k.attr=c;k.shadow=d;k._3dAttr=a;q?l?k.funnel2D=s.path(f.silhuette,k):(k.back=s.path(f.back,k).attr({"stroke-width":0,stroke:"none"}),k.front=s.path(f.front,k).attr({"stroke-width":0,stroke:"none"}),f.top&&(k.toptop=s.path(f.top,k).attr({"stroke-width":0,stroke:"none"}))):
l?(k.lighterHalf=s.path(f.lighterHalf,k).attr({"stroke-width":0}),k.darkerHalf=s.path(f.darkerHalf,k).attr({"stroke-width":0}),k.borderElement=s.path(f.silhuette,k).attr({fill:ha,stroke:"none"})):(k.front=s.path(f.front,k).attr({"stroke-width":0}),k.centerLight=s.path(f.centerLight,k).attr({"stroke-width":0}),k.centerLight1=s.path(f.centerLight1,k).attr({"stroke-width":0}),k.toptop=s.path(f.top,k).attr({"stroke-width":0}),k.topLight=s.path(f.topLight,k).attr({"stroke-width":0}),k.topLight1=s.path(f.topLight1,
k).attr({"stroke-width":0}));return k}}(),getPlotData:function(a){var e=this.datasets[0],c=e.data[a],d=e.userData||(e.userData=[]),e="y name color alpha borderColor borderWidth link displayValue toolText".split(" "),b;if(d[a])a=d[a];else{a=d[a]={};for(d=0;d<e.length;d++)a[b=e[d]]=c[b];a.value=a.y;a.label=a.name;delete a.y;delete a.name}return a},translate:function(){var a=this.datasets[0],e=a.data,c=this.canvasWidth/2,d=this.canvasHeight,b=e.length-1,f=e[0],m=f&&e[b].y,g=f&&e[0].y,n,p,k,l,s=this.canvasTop,
q=a.yScale,v=a.isHollow,t=a.is2d,u=0,w=this.paper,z={},y=a.streamlinedData,A=a.labelDistance,x=.8/d,C,J=0,B=c+this.canvasLeft,D=a.showLabelsAtCenter,F=.3*h(parseInt(this.options.plotOptions.series.dataLabels.style.fontSize,10),10);n=y?d/(g-m):g?d/g:d;p=c;Cb(e,function(d,f){(d.x=f)?(d.isSliced&&(C=d.x,1<C&&!z[C]&&(z[C]=!0,J+=1),C<b&&(z[C+1]=!0,J+=1)),y?(k=1==a.useSameSlantAngle?g?c*d.y/g:c:g?c*kb(d.y/g):c,l=n*(e[f-1].y-d.y)||1):(u+=l=n*e[f].y,k=c*(1-u*x)),d.shapeArgs={x:B,y:s,R1:p,R2:k,h:l||1,r3dFactor:q,
isHollow:v,gStr:"point",is2D:t,renderer:w,isFunnel:!0},D?(d.labelAline="middle",d.labelX=B,d.labelY=(t?s:s+q*p)+l/2+F):(d.labelAline="start",d.labelX=B+A+k+3,d.labelY=s+F+l),s+=l,p=k):(k=1==a.useSameSlantAngle?g?c*e[0].y/g:c:g?c*kb(e[0].y/g):c,d.labelWidht>2*k?(d.labelAline="start",d.labelX=0):(d.labelAline="middle",d.labelX=B),d.labelY=(t?s:s-q*p)-F-3);d.plotX=B;d.plotY=s});a._temp={slicingGapPosition:z,noOfGap:J}},drawPlotFunnel:function(a,e){this.translate();var c=this,d=a.items,b=a.data,f=c.options,
h=f.plotOptions,g=c.elements.plots[0],n=h.series.dataLabels,p=c.paper,k=f.tooltip||{},k=k&&!1!==k.enabled,l,h=h.series.animation.duration||0,q=c.layers,r=q.tracker,q=q.datalabels||(q.datalabels=p.group("datalabels").insertAfter(q.dataset)),v=g.showLabelsAtCenter,t=e._temp||{},u=t.slicingGapPosition,t=t.noOfGap,w=e.SlicingDistance,z,y=w/2,A=0,x=f.chart.issliced,f=f.chart.textDirection,C=n.style,C={fontFamily:C.fontFamily,fontSize:C.fontSize,lineHeight:C.lineHeight,fontWeight:C.fontWeight,fontStyle:C.fontStyle},
J=function(a,b){return function(d){a.graphic.attr(b);qa.call(this,c,d,"DataPlotRollOver")}},B=function(a,b){return function(d){a.graphic.attr(b);qa.call(this,c,d,"DataPlotRollOut")}},D,F,I,M,E,L,K,S;if(!(I=c.datasets[0].streamlinedData&&2>b.length)){t&&(z=Ja(1.5*y,w/t),A=y);w=function(a){return function(){c.legendClick(a,!0,!1)}};y=function(a){return function(){return c.getEventArgs(a)}};S=function(a){return function(){a.attr({visibility:"visible"})}};b&&b.length||(b=[]);g.singletonCase=I&&2==b.length||
1==b.length;e.data||(e.data=[]);for(K=b.length;K--;)M=b[K],D=M.y,F=M.displayValue,l=M.toolText,L=!!M.link,E=x?0:M.isSliced,null!==D&&void 0!==D&&M.shapeArgs?((I=d[K])||(e.data[K].plot=I=d[K]={value:D,displayValue:F,sliced:!!E,chart:c,plotItems:d,seriesData:g,cursor:L?"pointer":"",x:M.x,index:K,graphic:c.pyramidFunnelShape(M.shapeArgs).attr({fill:M.color,opacity:0,"stroke-width":M.borderWidth,stroke:M.borderColor}),dataLabel:p.text(q).attr({text:F,title:M.originalText||"",ishot:!0,cursor:L?"pointer":
"",direction:f,x:0,y:0}).css(C),trackerObj:p.path(r)},e.data[K].legendClick=w(I),e.data[K].getEventArgs=y(I),D=F={},M.hoverEffects&&(D={color:M.color,opacity:M.alpha,"stroke-width":M.borderWidth,stroke:M.borderColor},F=M.rolloverProperties,F={color:F.color,opacity:F.alpha,"stroke-width":F.borderWidth,stroke:F.borderColor}),!M.doNotSlice&&I.trackerObj.click(c.slice,I),I.trackerObj.mouseup(c.plotMouseUp,I),I.trackerObj.hover(J(I,F),B(I,D)),I.dataLabel.hover(J(I,F),B(I,D)),k&&I.trackerObj.tooltip(l),
!M.doNotSlice&&I.dataLabel.click(c.slice,I),I.dataLabel.mouseup(c.plotMouseUp,I),v&&0===K&&"funnel"==c.type&&g.streamlinedData||(I.connector=p.path(q).attr({"stroke-width":n.connectorWidth,stroke:n.connectorColor,ishot:!0,cursor:L?"pointer":""}).click(c.slice,I).mouseup(c.plotMouseUp,I).hover(J(I,F),B(I,D))),I.dy=0,t&&(A&&(I._startTranslateY=l="t0,"+A,I.dy=I.DistanceAvailed=A,I.graphic.attr({transform:l}),I.dataLabel.attr({transform:l}),I.connector.attr({transform:l})),u[M.x]&&(A-=z))),h?(q.attr({visibility:"hidden"}),
I.graphic.animate({opacity:M.alpha},h,"easeIn",K===b.length-1&&S(q))):I.graphic.attr({opacity:M.alpha})):e.data[K].plot=d[K]={dataLabel:p.text(q).attr({text:F,title:M.originalText||"",direction:f,x:0,y:0}).css(C)};c.drawDataLabels();c.drawTracker(a,e)}},slice:function(a,e,c,d){var b=this.chart;a=b.datasets[0].SlicingDistance/2;c=e=0;var f=this.plotItems,h=f.length,g,n,p,k,l,q,r,v;q={hcJSON:{chart:{issliced:!1},series:[]}};q.hcJSON.series[0]={data:p=[]};d=this.sliced=$(d)?d:!this.sliced;r=-a;v=function(a,
c){return function(){Ga.raiseEvent("SlicingEnd",{slicedState:a,data:b.getPlotData(c)},b.logic.chartInstance)}};for(e=0;e<h;e+=1)n=f[e],n!==this?(n.sliced=!1,p[e]={isSliced:!1},k=!1):(p[e]={isSliced:d},k=!0,l=e),n.graphic&&(g=n.dy,g=-g,d&&(n.x<this.x?(g+=r,c+=1):n.x==this.x?c?e==h-1&&(g+=.5*a):g+=.5*-a:g+=a),n.graphic.attr({transform:"t0,"+n.dy}),n.dy+=g,g={transform:"...t0,"+g},k&&Ga.raiseEvent("SlicingStart",{slicedState:!d,data:b.getPlotData(l)},b.logic.chartInstance),n.graphic.animate(g,300,"easeIn",
k&&v(d,l)),n.dataLabel&&n.dataLabel.animate(g,300,"easeIn"),n.connector&&n.connector.animate(g,300,"easeIn"),n.trackerObj&&n.trackerObj.animate(g,300,"easeIn"),1==e&&!f[0].graphic&&f[0].dataLabel&&f[0].dataLabel.animate(g,300,"easeIn"));T(b.logic.chartInstance.jsVars._reflowData,q,!0)},drawDataLabels:function(){var a=this.datasets[0],e=a.data,c=this.options.plotOptions.series.dataLabels,d=this.elements.plots[0].items,b,f,m,g,n=a.showLabelsAtCenter,p=Number(c.style.lineHeight.split(/px/)[0]),k=h(parseInt(c.style.fontSize,
10),10),l=.3*k,q=.3*p,r,v,t,u,w,z=a.labelDistance,y,A;for(w=e.length-1;0<=w;--w)g=e[w],A=g.displayValue,c=d[w],f=g.labelY,b=g.labelX,m=g.labelAline,y=g.style,k=h(parseInt(y.fontSize,10),10),l=.3*k,k={fontFamily:y.fontFamily,fontSize:y.fontSize,lineHeight:y.lineHeight,fontWeight:y.fontWeight,fontStyle:y.fontStyle},n?f=0===w&&"funnel"==this.type&&a.streamlinedData?f-q+(d[1].DistanceAvailed||0):f-q+(c.DistanceAvailed||0):(u=t=f-l,void 0!==r&&void 0!==v&&v-t<p&&(u=v-p,f=u+l),r=g.plotY,v=u,"undefined"===
typeof A||A===L||0===w&&"funnel"==this.type&&a.streamlinedData||(g=b-3,l=g-z,g=["M",l,t,"L",g,u],c.connector.attr({path:g,"shape-rendering":t===u&&1>u?"crisp":""})),f=0===w&&"funnel"==this.type&&a.streamlinedData?f+(d[1].DistanceAvailed||0):u+(c.DistanceAvailed||0)),A!==L&&c.dataLabel.attr({transform:"t"+b+","+f,"text-anchor":sa[m],text:A,fill:y.color,"font-size":y.fontSize,"text-bound":[y.backgroundColor,y.borderColor,y.borderThickness,y.borderPadding,y.borderRadius,y.borderDash]}).css(k)},drawTracker:function(a){var e=
this.paper,c=a.items;a=a.data;for(var d,b,f=+new Date,h=a.length-1,g,n=this.layers.tracker,p;0<=h;--h)g=c[h],p=a[h],b=g.trackerObj,g.graphic&&(d=g.graphic.Shapeargs.silhuette,p={link:p.link,value:p.y,displayValue:p.displayValue,categoryLabel:p.categoryLabel,toolText:p.toolText},b?b.attr({path:d,isTracker:f,fill:ha,stroke:"none",transform:"t0,"+(g._startTranslateY||0),ishot:!0,cursor:g.cursor}):g.trackerObj=e.path(d,n).attr({isTracker:f,fill:ha,stroke:"none",transform:"t0,"+(g._startTranslateY||0),
ishot:!0,cursor:g.cursor}),b.data("eventArgs",p))},getEventArgs:function(a){return a.chart.getPlotData(a.index)},legendClick:function(a){var e=a.chart;e.slice.call(e.plots[0].items[a.index])},plotMouseUp:function(a){qa.call(this.trackerObj,this.chart,a)}},w["renderer.piebase"]);w("renderer.pyramid",{type:"pyramid",translate:function(){var a=this.datasets[0],e=a.data,c=this.canvasWidth/2,d=this.canvasHeight,b=e.length-1,f,m,g=this.canvasTop,n=a.yScale,p=a.is2d,k=this.paper,l=a.valueSum?a.valueSum:
1,q=0,r,v={},t=0,u=a.labelDistance,w=a.showLabelsAtCenter,z=.3*h(parseInt(this.options.plotOptions.series.dataLabels.style.fontSize,10),10),y=this.canvasLeft+c,A=d/l,x=0;Cb(e,function(a,d){a.x=d;a.isSliced&&((r=a.x)&&!v[r]&&(v[r]=!0,t+=1),r<b&&(v[r+1]=!0,t+=1));q+=a.y;f=c*q/l;m=A*a.y;a.shapeArgs={x:y,y:g,R1:x,R2:f,h:m,r3dFactor:n,gStr:"point",is2D:p,renderer:k};w?(a.labelAline="middle",a.labelX=y,a.labelY=(p?g:g+n*x)+m/2+z):(a.labelAline="start",a.labelX=y+u+(x+f)/2+3,a.labelY=g+z+m/2);g+=m;a.plotX=
y;a.plotY=g-m/2;x=f});a._temp={slicingGapPosition:v,noOfGap:t}},drawPlotPyramid:function(a,e){this.translate();var c=this,d=a.items,b=a.data,f=c.options,h=f.plotOptions,g=c.elements.plots[0],n=c.datasets[0],p=h.series.dataLabels,k=g.showLabelsAtCenter,h=h.series.animation.duration||0,l=c.paper,q=f.tooltip||{},q=q&&!1!==q.enabled,r,v=c.layers,t=v.tracker,v=v.datalabels||(v.datalabels=l.group("datalabels").insertAfter(v.dataset)),u=n._temp||{},w=u.slicingGapPosition,u=u.noOfGap,z=n.SlicingDistance,
y,A=z/2,n=0,x=f.chart.issliced,f=f.chart.textDirection,C=p.style,C={fontFamily:C.fontFamily,fontSize:C.fontSize,lineHeight:C.lineHeight,fontWeight:C.fontWeight,fontStyle:C.fontStyle},D=function(a,b){return function(d){a.graphic.attr(b);qa.call(this,c,d,"DataPlotRollOver")}},B=function(a,b){return function(d){a.graphic.attr(b);qa.call(this,c,d,"DataPlotRollOut")}},F,L,I,M,E,K,S,O;K=function(a){return function(){c.legendClick(a,!0,!1)}};S=function(a){return function(){return c.getEventArgs(a)}};O=function(a){return function(){a.attr({visibility:"visible"})}};
u&&(y=Ja(1.5*A,z/u),n=A);b&&b.length||(b=[]);g.singletonCase=1==b.length;for(E=b.length;E--;)A=b[E],F=A.y,L=A.displayValue,r=A.toolText,I=!!A.link,M=x?0:A.isSliced,null!==F&&void 0!==F&&A.shapeArgs?((z=d[E])||(e.data[E].plot=z=d[E]={value:F,sliced:!!M,cursor:I?"pointer":"",chart:c,plotItems:d,seriesData:g,x:A.x,index:E,graphic:c.pyramidFunnelShape(A.shapeArgs).attr({fill:A.color,opacity:h?0:A.alpha,"stroke-width":A.borderWidth,stroke:A.borderColor}),dataLabel:l.text(v).attr({text:L,title:A.originalText||
"",direction:f,ishot:!0,cursor:I?"pointer":"",x:0,y:0}).css(C),trackerObj:l.path(t)},F=L={},A.hoverEffects&&(F={color:A.color,opacity:A.alpha,"stroke-width":A.borderWidth,stroke:A.borderColor},L=A.rolloverProperties,L={color:L.color,opacity:L.alpha,"stroke-width":L.borderWidth,stroke:L.borderColor}),e.data[E].legendClick=K(z),e.data[E].getEventArgs=S(z),!A.doNotSlice&&z.trackerObj.click(c.slice,z),z.trackerObj.mouseup(c.plotMouseUp,z).hover(D(z,L),B(z,F)),q&&z.trackerObj.tooltip(r),!A.doNotSlice&&
z.dataLabel.click(c.slice,z),z.dataLabel.mouseup(c.plotMouseUp,z).hover(D(z,L),B(z,F)),k&&0===E&&"funnel"==c.type&&g.streamlinedData||(z.connector=l.path(v).attr({"stroke-width":p.connectorWidth,stroke:p.connectorColor,ishot:!0,cursor:I?"pointer":""}).click(c.slice,z).mouseup(c.plotMouseUp,z).hover(D(z,L),B(z,F))),z.dy=0,u&&(n&&(z._startTranslateY=r="t,0,"+n,z.dy=z.DistanceAvailed=n,z.graphic.attr({transform:r}),z.dataLabel.attr({transform:r}),z.connector.attr({transform:r})),w[A.x]&&(n-=y))),h&&
(v.attr("visibility","hidden"),z.graphic.animate({opacity:A.alpha},h,"easeIn",E===b.length-1&&O(v)))):e.data[E].plot=d[E]={dataLabel:l.text(v).attr({text:L,title:A.originalText||"",direction:f,x:0,y:0}).css(C)};c.drawDataLabels();c.drawTracker(a,e)}},w["renderer.funnel"]);w("renderer.sparkline",{callbacks:[function(){if(!this.options.nativeMessage){var a=this.options,e=this.layers,c=this.paper,d=a.series[0]&&a.series[0].data&&a.series[0].data[0],b=e.limitlabels,f=this.smartLabel,a=a.chart,h=a.highLowValue.highLabel,
g=a.highLowValue.lowLabel,n=a.valuePadding,p=this.canvasHeight/2,k;d&&(b||(b=e.limitlabels=c.group("limitlabels").insertAfter(e.dataset)),b.translate(this.canvasLeft,this.canvasTop),$(a.openValue.label)&&(d.openValue=c.text(-n,p,a.openValue.label,b).attr({direction:a.textDirection,"text-anchor":sa[bb]}).css(a.openValue.style)),e=a.closeValue.label,k=this.canvasWidth+n,$(e)&&(d.closeValue=c.text(this.canvasWidth+n,p,e,b).attr({direction:a.textDirection,"text-anchor":sa[Ia]}).css(a.closeValue.style),
f.setStyle(a.closeValue.style),k+=f.getOriSize(e).width+n),$(h)&&(c.text(k,p,"[",b).attr({direction:a.textDirection,"text-anchor":sa[Ia]}).css(a.highLowValue.style),f.setStyle(a.highLowValue.style),k+=f.getOriSize("[").width+1,d.highLabel=c.text(k,p,h,b).attr({direction:a.textDirection,"text-anchor":sa[Ia]}).css(a.highLowValue.style).css({color:a.highColor}),k+=f.getOriSize(h).width+1),$(g)&&(c.text(k,p,"|",b).attr({direction:a.textDirection,"text-anchor":sa[Ia]}).css(a.highLowValue.style),k+=f.getOriSize("|").width+
1,d.dataLabel=c.text(k,p,g,b).attr({direction:a.textDirection,"text-anchor":sa[Ia]}).css(a.highLowValue.style).css({color:a.lowColor}),k+=f.getOriSize(g).width+1,c.text(k,p,"]",b).attr({direction:a.textDirection,"text-anchor":sa[Ia]}).css(a.highLowValue.style)))}}]},w["renderer.cartesian"]);w("renderer.sparkwinloss",{callbacks:[function(){if(!this.options.nativeMessage){var a=this.options,e=this.layers,c=this.paper,d=a.series[0]&&a.series[0].data&&a.series[0].data[0],b=e.limitlabels,f=a.plotOptions.series.dataLabels&&
a.plotOptions.series.dataLabels.style||{},a=a.chart,h=a.closeValue.label,g={fontFamily:f.fontFamily,fontSize:f.fontSize,lineHeight:f.lineHeight,fontWeight:f.fontWeight,fontStyle:f.fontStyle};d&&(b||(b=e.limitlabels=c.group("limitlabels").insertAfter(e.dataset)),b.translate(this.canvasLeft,this.canvasTop),$(h)&&h!==L&&(d.dataLabel=c.text(this.canvasWidth+a.valuePadding,this.canvasHeight/2,h,b).attr({"text-anchor":sa[Ia],fill:f.color,direction:a.textDirection,"text-bound":[f.backgroundColor,f.borderColor,
f.borderThickness,f.borderPadding,f.borderRadius,f.borderDash]}).css(g)))}}]},w["renderer.cartesian"]);w("renderer.realtimecartesian",{updatePlotColumn:function(a,e,c){var d=this,b=a.data,f=b.length,m=a.items,g=a.graphics||(a.graphics=[]),n=d.paper,p=d.layers,k=d.options,l=k.chart,q=!1!==(k.tooltip||{}).enabled,r=d.definition.chart,k=k.plotOptions.series,v=d.xAxis[e.xAxis||0],t=d.yAxis[e.yAxis||0],u=d.logic.isStacked,w=e.numColumns||1,z=e.columnPosition||0,y=l.canvasBorderOpacity=Aa.color(l.plotBorderColor).opacity,
A=d.canvasBorderWidth,y=l.isCanvasBorder||(l.isCanvasBorder=0!==y&&0<A),x,A=!1===e.visible?"hidden":"visible",C=l.overlapColumns,D=v.getAxisPosition(0),D=v.getAxisPosition(1)-D,B=r&&r.plotspacepercent,F=k.groupPadding,K=k.maxColWidth,r=h(r&&r.plotpaddingpercent),B=(1-.01*B)*D||Ja(D*(1-2*F),K*w),D=B/2,B=B/w,C=Ja(B-1,1<w?C||void 0!==r?0<r?B*r/100:0:4:0),w=B-C,z=z*B-D+C/2,D=t.max,B=t.min,C=0<D&&0<=B,r=0>=D&&0>B,D=0>D&&0>B?D:0<D&&0<B?B:0,l=h(l.useRoundEdges,0),I=p.dataset=p.dataset||n.group("dataset-orphan"),
p=p.tracker,B=d.canvasTop,F=d.canvasLeft,K=d.canvasBottom,M=d.canvasRight,E,O,T,W,N,U,R,V,P,ja,Z,X,da,Y,aa;da=function(a,b){return function(c){a.attr(b);qa.call(this,d,c,"dataplotrollover")}};Y=function(a,b){return function(c){a.attr(b);qa.call(this,d,c,"dataplotrollout")}};aa=function(a){qa.call(this,d,a)};u&&(Z=I.shadows||(I.shadows=n.group("shadows",I).toBack()));I=I.column=I.column||n.group("columns",I);if(X=c.numUpdate||0)for(c=0;c<X;c+=1)(E=m.shift())&&delete E._state,m.push(E);for(c=0;c<f;c+=
1)if(P=c+X,O=b[c],U=O.y,E=h(O.x,c),V=v.getAxisPosition(E)+z,E=m[c],N=O.toolText,T=O.link,W=O.displayValue||L,x=Rb(O.borderWidth)||0,R={index:c,link:T,value:U,displayValue:O.displayValue,categoryLabel:O.categoryLabel,toolText:N,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible},P>=f&&(E||(E=m[c]={index:c,value:U,width:w,graphic:null,dataLabel:null,tracker:null}),E&&(E.valueBelowPlot=0>U),P=ja={},O.hoverEffects&&(P={fill:S(O.color),stroke:S(O.borderColor),"stroke-width":x,"stroke-dasharray":O.dashStyle},
ja=O.rolloverProperties,ja={fill:S(ja.color),stroke:S(ja.borderColor),"stroke-width":ja.borderWidth,"stroke-dasharray":ja.dashStyle}),E.graphic||(E.graphic=n.rect(I).attr({visibility:A}),g.push(E.graphic),E.graphic.shadow(k.shadow&&O.shadow,Z)),E.graphic.attr({r:l,fill:S(O.color||""),stroke:S(O.borderColor||""),"stroke-width":x,"stroke-dasharray":O.dashStyle,"stroke-linejoin":"miter"}),E.tracker||(E.tracker=n.rect(p).attr({stroke:ha,fill:ha,visibility:A}),g.push(E.tracker)),E._attrHoverInFn&&E.tracker.unhover(E._attrHoverInFn,
E._attrHoverOutFn),E._attrClickFn&&E.tracker.unclick(E._attrClickFn),E.tracker.attr({height:0,width:0,r:l,"stroke-width":x,stroke:ha,cursor:T?"pointer":"",ishot:!0}).data("eventArgs",R).click(E._attrClickFn=aa).hover(E._attrHoverInFn=da(E.graphic,ja),E._attrHoverOutFn=Y(E.graphic,P)).tooltip(N)),E&&(E.index=c),null===U)E&&(E.graphic&&E.graphic.attr({height:0,"stroke-width":0}),E.tracker&&E.tracker.attr({height:0,"stroke-width":0}),E.dataLabel&&E.dataLabel.attr({text:""}));else if(R=O.previousY,P=
t.getAxisPosition(R||D),O=t.getAxisPosition(U+(R||0)),N=vb(O-P),0>U&&(O=P),Sb(O)<=B&&(N-=B-O-+y,O=B-+y),ka(O+N)>=K&&(N-=ka(O+N)-K+ +!!x+ +y),1>=x&&(ka(V)<=F&&(w+=V,V=F-x/2+ +!!x-+y,w-=V),ka(V+w)>=M&&(w=M-V+x/2-+!!x+ +y)),P=Aa.crispBound(V,O,w,N,x),V=P.x,O=P.y,w=P.width,N=P.height,y&&!$(R)&&(r?(x=O-(B-x/2),N+=x,O-=x):C&&(N=K-O+x/2)),1>=N&&(N=1,O+=0>U?0:-N),E&&E.graphic&&(E.graphic.attr({x:V,y:O,width:w,height:N}).data("BBox",P),E.dataLabel&&E.dataLabel.attrs.text!==W&&E.dataLabel.attr({text:W}),d.drawPlotColumnLabel(a,
e,c,V,O),T||q))!u&&N<yb&&(O-=(yb-N)/2,N=yb),E.tracker&&E.tracker.attr({x:V,y:O,width:w,height:N});return a},updatePlotLine:function(a,e,c){var d=this,b=d.paper,f=d.options,m=f.chart,g=f.plotOptions.series,n=a.items,p=a.graphics||(a.graphics=[]),k,l=d.xAxis[e.xAxis||0],q=d.yAxis[e.yAxis||0],r=!1!==(f.tooltip||{}).enabled,f=a.data,v=!1===e.visible?"hidden":"visible",t=f.length,w=g.connectNullData,y,z,D,A,x,C,F,B=null,K,O=e.lineWidth,I=e.color,M,E,T,V,W,N,U,R,X,P,ja=d.layers,Z=ja.dataset=ja.dataset||
b.group("dataset-orphan"),ja=ja.tracker,$,Y,ca,aa,ea,fa,na,ia,ga,ma,ka,oa,pa,sa;ma=function(a){qa.call(this,d,a)};ka=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOver",a,d)}};oa=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOut",a,d)}};sa=function(b,c,f,g,h,k,l,m,n){return function(){var k=f.imageUrl,q=f.imageScale,s=f.imageAlpha,t=l.imageHoverAlpha,u=l.imageHoverScale,w=this.width*q*.01,x=this.width*u*.01;X={x:b-this.width*q*.005,y:c-this.height*q*.005,
width:w,height:this.height*q*.01,alpha:s};P={x:b-this.width*u*.005,y:c-this.height*u*.005,width:x,height:this.height*u*.01,alpha:t};t=x>w?P:X;g.graphic&&g.graphic.attr(X).attr("src",k).css({opacity:.01*s}).data("alwaysInvisible",0===q).data("setRolloverProperties",l).data("setRolloverAttr",P).data("setRolloutAttr",X).data("anchorRadius",q).data("anchorHoverRadius",u);if(n||r||l)g.tracker.attr(t).attr({cursor:n?"pointer":"",stroke:ha,"stroke-width":f.lineWidth,fill:ha,ishot:!0,visibility:v}).data("eventArgs",
h),d.drawTracker&&d.drawTracker.call(d,a,e,m);($=g.dataLabel=d.drawPlotLineLabel(a,e,m,b,c))&&p.push($)}};pa=function(b,c,f,g,h,k,l,m){return function(){($=g.dataLabel=d.drawPlotLineLabel(a,e,m,b,c))&&p.push($)}};Y=Z.line||(Z.line=b.group("line-connector",Z));ca=a.lineShadowLayer||(a.lineShadowLayer=b.group("connector-shadow",Y));aa=a.anchorShadowLayer||(a.anchorShadowLayer=b.group("anchor-shadow",Y));Z=a.lineLayer||(a.lineLayer=b.group("connector",Y));Y=a.anchorLayer||(a.anchorLayer=b.group("anchors",
Y));if(na=c.numUpdate||0)for(c=0;c<na;c+=1)(k=n.shift())&&delete k._state,n.push(k);for(c=0;c<t;c+=1)if(fa=c+na,y=f[c],C=y.y,x=h(y.x,c),x=l.getAxisPosition(x),A=y.toolText,z=y.link,D=y.displayValue||L,E=y.marker||{},T=V=E.radius||0,ea=E.shadow,W=E.lineWidth||0,N=E.fillColor||"",U=E.lineColor||"",k=E.imageUrl,ga=!!k,k=n[c],k._state||(k._state={}),fa>=t&&(k||(k=n[c]={index:c,value:C,graphic:null,connector:null,dataLabel:null,tracker:null}),k.graphic&&"image"===k.graphic.type&&!ga&&(k.graphic&&k.graphic.remove(),
k.tracker&&k.tracker.remove(),k.graphic=k.tracker=null),k.graphic||(k.graphic=(ga?b.image(Y):b.polypath(Y)).attr({visibility:v}),p.push(k.graphic)),ga||k.graphic.attr({fill:S(N),"stroke-width":W,stroke:S(U)}),k.connector||(k.connector=b.path(Z).attr({visibility:v}),k.connector.shadow(g.shadow&&y.shadow,ca),p.push(k.connector)),k.connector.attr({"stroke-dasharray":M,stroke:S(K||I),"stroke-width":O,"stroke-linecap":"round","stroke-linejoin":2<O?"round":"miter"}),k.tracker||(k.tracker=(ga?b.rect(ja):
b.circle(ja)).attr({stroke:ha,fill:ha,visibility:v}),p.push(k.tracker)),V=va(V,R&&R.radius||0,m.anchorTrackingRadius),ia={index:c,link:z,value:y.y,displayValue:y.displayValue,categoryLabel:y.categoryLabel,toolText:y.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible},k._attrClickFn&&k.tracker.unclick(k._attrClickFn),k._attrHoverInFn&&k.tracker.unhover(k._attrHoverInFn,k._attrHoverOutFn),k.tracker.attr({r:V,"stroke-width":W,stroke:ha,cursor:z?"pointer":"",ishot:!0}).data("eventArgs",
ia).click(k._attrClickFn=ma).hover(k._attrHoverInFn=ka(k),k._attrHoverOutFn=oa(k)).tooltip(A)),k&&(k.index=c),null===C)k&&(k.graphic&&k.graphic.attr({polypath:[2,0,0,0,0,0],"stroke-width":0}),k.dataLabel&&k.dataLabel.attr({text:""}),k.connector&&k.connector.attr({path:"M-9999,-9999Lh-1","stroke-width":0}),k.tracker&&k.tracker.attr({r:0,"stroke-width":0})),0===w&&(B=null);else{K=q.getAxisPosition(C);if(E&&E.enabled)if(M=E.symbol.split("_"),C=k.graphic,X=P={},R=y.rolloverProperties,ga)fa>=t?(M=new da.Image,
M.onload=sa(x,K,E,k,ia,A,R,c,z),M.onerror=pa(x,K,E,k,ia,A,R,c),M.src=E.imageUrl):(P=C.data("setRolloverAttr"),X=C.data("setRolloutAttr"),P&&(P.x=x-.5*P.width,P.y=K-.5*P.height,C&&C.stop(),k.dataLabel&&k.dataLabel.stop(),X.x=x-.5*X.width,X.y=K-.5*X.height,C.attr(X),k.tracker&&k.tracker.attr({x:X.x,y:X.y,fill:ha})));else{if(R=y.rolloverProperties)X={polypath:[M[1]||2,x,K,T,E.startAngle,0],fill:S(E.fillColor),"stroke-width":E.lineWidth,stroke:S(E.lineColor)},R=y.rolloverProperties,P={polypath:[R.sides||
2,x,K,R.radius,R.startAngle,R.dip],fill:S(R.fillColor),"stroke-width":R.lineWidth,stroke:S(R.lineColor)};C&&C.attr({polypath:[M[1]||2,x,K,T,E.startAngle,0],visibility:0===T?"hidden":v}).data("isRealtime",!0).data("alwaysInvisible",0===T).data("setRolloverProperties",R).data("setRolloverAttr",P).data("setRolloutAttr",X).data("anchorRadius",T).data("anchorHoverRadius",R&&R.radius).shadow(ea||!1,aa);(z||r)&&k.tracker&&k.tracker.attr({cx:x,cy:K})}k.dataLabel&&k.dataLabel.attrs.text!=D&&k.dataLabel.attr({text:D});
$=d.drawPlotLineLabel(a,e,c,x,K);null!==B?(F=["M",F,u,B],F.push("L",x,u,K),(B=k.connector)&&B.attr({path:F,"stroke-width":O})):k.connector&&k.connector.attr({path:"M-9999,-9999Lh-1","stroke-width":0});F=x;B=K;K=y.color;M=y.dashStyle||e.dashStyle}return a},updatePlotArea:function(a,e,c){var d=this,b=d.paper,f=d.options,m=f.chart,g=d.logic,n=f.plotOptions.series,p=a.items,k=a.graphics||(a.graphics=[]),l,q=d.xAxis[e.xAxis||0],r=d.yAxis[e.yAxis||0],v=r.axisData.reversed,t=g.isStacked,w=!1!==(f.tooltip||
{}).enabled,f="0"===d.definition.chart.drawfullareaborder,g=a.data,y=!1===e.visible?"hidden":"visible",z=g.length,D=n.connectNullData,A,x,C,F,B,K,O,I=r.max,M=r.min,v=r.getAxisPosition(0<I&&0<M?v?I:M:0>I&&0>M?v?M:I:v?I:0),I=null,E,M=e.lineWidth,T=e.dashStyle,V=S(e.lineColor),W=0,N,U,R,X,P,Y,Z,$=[],ca=[],ea=[],aa=d.layers,ga=aa.dataset=aa.dataset||b.group("dataset-orphan"),aa=aa.tracker,fa,na,ia,ma,ka,oa,pa,sa,ta,xa,wa,ya,Aa,Ba;r.yBasePos=v;xa=function(a){qa.call(this,d,a)};wa=function(a){return function(b){d.hoverPlotAnchor(this,
b,"DataPlotRollOver",a,d)}};ya=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOut",a,d)}};Aa=function(b,c,f,g,h,l,m,n,p){return function(){var l=f.imageUrl,q=f.imageScale,r=f.imageAlpha,s=m.imageHoverAlpha,t=m.imageHoverScale,u=this.width*q*.01,v=this.width*t*.01;Y={x:b-this.width*q*.005,y:c-this.height*q*.005,width:u,height:this.height*q*.01,alpha:r};Z={x:b-this.width*t*.005,y:c-this.height*t*.005,width:v,height:this.height*t*.01,alpha:s};s=v>u?Z:Y;g.graphic&&g.graphic.attr(Y).attr("src",
l).css({opacity:.01*r}).data("alwaysInvisible",0===q).data("setRolloverProperties",m).data("setRolloverAttr",Z).data("setRolloutAttr",Y).data("anchorRadius",q).data("anchorHoverRadius",t);if(p||w||m)g.tracker.attr(s).attr({cursor:p?"pointer":"",stroke:ha,"stroke-width":f.lineWidth,fill:ha,ishot:!0,visibility:y}).data("eventArgs",h),d.drawTracker&&d.drawTracker.call(d,a,e,n);(ma=g.dataLabel=d.drawPlotLineLabel(a,e,n,b,c))&&k.push(ma)}};Ba=function(b,c,f,g,h,l,m,n){return function(){(ma=g.dataLabel=
d.drawPlotLineLabel(a,e,n,b,c))&&k.push(ma)}};t&&(ia=ga.shadows||(ga.shadows=b.group("shadows",ga).toBack()));fa=ga.line||(ga.line=b.group("line-connector",ga));a.lineShadowLayer||(a.lineShadowLayer=b.group("connector-shadow",fa));ga=a.anchorShadowLayer||(a.anchorShadowLayer=b.group("anchor-shadow",fa));t=a.lineLayer||(a.lineLayer=b.group("connector",fa));fa=a.anchorLayer||(a.anchorLayer=b.group("anchors",fa));if(oa=c.numUpdate||0)for(c=0;c<oa;c+=1)(l=p.shift())&&delete l._state,p.push(l);for(c=0;c<
z;c+=1)ka=c+oa,A=g[c],B=A.y,l=h(A.x,c),E=q.getAxisPosition(l),F=A.toolText,x=A.link,C=A.displayValue||L,N=A.marker||{},U=O=N.radius||0,na=N.shadow,K=N.lineWidth||0,R=N.fillColor||"",X=N.lineColor||"",sa=N.imageUrl,ta=!!sa,l=p[c],ka>=z&&(l||(l=p[c]={index:c,graphic:null,connector:null,dataLabel:null,tracker:null}),l.graphic&&"image"===l.graphic.type&&!ta&&(l.graphic&&l.graphic.remove(),l.tracker&&l.tracker.remove(),l.graphic=l.tracker=null),l.graphic||(l.graphic=(ta?b.image(fa):b.polypath(fa)).attr({visibility:y}),
k.push(l.graphic)),ta||l.graphic.attr({fill:S(R),"stroke-width":K,stroke:S(X)}),l.tracker||(l.tracker=(ta?b.rect(aa):b.circle(aa)).attr({stroke:ha,fill:ha,visibility:y}),k.push(l.tracker)),O=va(O,P&&P.radius||0,m.anchorTrackingRadius),pa={index:c,link:x,value:A.y,displayValue:A.displayValue,categoryLabel:A.categoryLabel,toolText:A.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible},l._attrHoverInFn&&l.tracker.unhover(l._attrHoverInFn,l._attrHoverOutFn),l._attrClickFn&&
l.tracker.unclick(l._attrClickFn),l.tracker.attr({r:O,"stroke-width":K,cursor:x?"pointer":"",ishot:!0}).data("eventArgs",pa).click(l._attrClickFn=xa).hover(l._attrHoverInFn=wa(l),l._attrHoverOutFn=ya(l)).tooltip(F)),l&&(l.index=c),null===B?(l&&(l.graphic&&l.graphic.attr({polypath:[2,0,0,0,0,0],"stroke-width":0}),l.dataLabel&&l.dataLabel.attr({text:""}),l.tracker&&l.tracker.attr({r:0,"stroke-width":0})),0===D&&(I=null,0<W&&(1===W?$.splice(-8,8):($=$.concat(ca),$.push("Z")),ca=[]))):(x=A.link,K=A.previousY,
O=(O=r.getAxisPosition(K)||null)||v,B=r.getAxisPosition(B+(K||0)),N&&N.enabled&&(K=N.symbol.split("_"),R=l.graphic,Y=Z={},P=A.rolloverProperties,ta&&R?ka>=z?(ka=new da.Image,ka.onload=Aa(E,B,N,l,pa,F,P,c,x),ka.onerror=Ba(E,B,N,l,pa,F,P,c),ka.src=sa):(Z=R.data("setRolloverAttr"),Y=R.data("setRolloutAttr"),R&&R.stop(),l.dataLabel&&l.dataLabel.stop(),Z&&(Z.x=E-.5*Z.width,Z.y=B-.5*Z.height,Y.x=E-.5*Y.width,Y.y=B-.5*Y.height,R.attr(Y),l.tracker&&l.tracker.attr({x:Y.x,y:Y.y,fill:ha}))):(P&&(Y={polypath:[K[1]||
2,E,B,U,N.startAngle,0],fill:S(N.fillColor),"stroke-width":N.lineWidth,stroke:S(N.lineColor)},P=A.rolloverProperties,Z={polypath:[P.sides||2,E,B,P.radius,P.startAngle,P.dip],fill:S(P.fillColor),"stroke-width":P.lineWidth,stroke:S(P.lineColor)}),R&&R.attr({polypath:[K[1]||2,E,B,U,N.startAngle,0],visibility:0===U?"hidden":y}).data("isRealtime",!0).data("alwaysInvisible",0===U).data("setRolloverProperties",P).data("setRolloverAttr",Z).data("setRolloutAttr",Y).data("anchorRadius",U).data("anchorHoverRadius",
P&&P.radius).shadow(na||!1,ga),(x||w)&&l.tracker&&l.tracker.attr({cx:E,cy:B}))),l.dataLabel&&l.dataLabel.attrs.text!==C&&l.dataLabel.attr({text:C}),ma=d.drawPlotLineLabel(a,e,c,E,B),null===I?(ea.push("M",E,u,B),$.push("M",E,u,O),W=0):ea.push("L",E,u,B),$.push("L",E,u,B),ca.unshift("L",E,u,O),W++,I=B);0<W&&(1===W?$.splice(-8,8):($=$.concat(ca),$.push("Z")));a.graphic||(a.graphic=b.path(void 0).attr({"stroke-dasharray":T,"stroke-width":f?0:M,stroke:V,"stroke-linecap":"round","stroke-linejoin":2<M?"round":
"miter"}).shadow(n.shadow&&A.shadow,ia),k.push(a.graphic));a.graphic.attr({path:$});f&&(a.connector||(a.connector=b.path(t).attr({"stroke-dasharray":T,"stroke-width":M,stroke:V,"stroke-linecap":"round","stroke-linejoin":2<M?"round":"miter"}),k.push(a.connector)),a.connector.attr({path:ea}));return a}},w["renderer.cartesian"])},[3,2,0,"sr2"]]);

/*
 FusionCharts JavaScript Library - Gantt Chart
 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>

 @version 3.5.1
*/
FusionCharts.register("module",["private","modules.renderer.js-gantt",function(){var ea=this,E=ea.hcLib,Na=ea.window,ua=/msie/i.test(Na.navigator.userAgent)&&!Na.opera,rb=E.chartAPI,Oa=E.chartAPI,eb=E.extend2,e=E.pluck,d=E.pluckNumber,oa=E.getFirstColor,Ja=E.graphics,S=Ja.convertColor,fb=Ja.getDarkColor,hc=Ja.parseColor,Da=E.parseUnsafeString,Ea=E.getFirstValue,Zb=E.getValidValue,ka=E.Raphael,ic=E.COMMASTRING,Pa=E.setLineHeight,Eb=E.getDashStyle,Fb=E.toRaphaelColor,Qa=E.each,jc=E.FC_CONFIG_STRING,
Ka="rgba(192,192,192,"+(ua?.002:1E-6)+")",$b=Ja.mapSymbolName,ua=Math,La=ua.ceil,va=ua.round,W=ua.max,Ca=ua.min,ac=ua.abs,Ra=parseInt,Gb=parseFloat,kc={pageX:0,pageY:0},T=E.plotEventHandler,ha,ca,sb=E.hasTouch=void 0!==Na.document.documentElement.ontouchstart,lc=E.addEvent,mc=E.removeEvent,Sa=function(b){return void 0!==b&&null!==b},Ta={left:"start",right:"end",center:"middle"},gb={left:0,right:1,center:.5,undefined:.5},tb={top:1,bottom:0,middle:.5,undefined:.5},Ua={left:5,right:-5,center:0,undefined:0},
Fa=function(b,a){this.min=b.min;this.max=d(b.visibleMax,b.max);this.pixelValueRatio=a/(this.max-this.min);this.startPixel=b.chart.marginLeft+b.chart.ganttStartX};Fa.prototype={getPixel:function(b){return this.startPixel+(b-this.min)*this.pixelValueRatio}};Fa.prototype.constructor=Fa;rb("gantt",{friendlyName:"Gantt Chart",rendererId:"gantt",standaloneInit:!0,defaultSeriesType:"gantt",canvasborderthickness:1,defaultPlotShadow:1,creditLabel:!1,fireGroupEvent:!0,defaultPaletteOptions:function(){var b=
arguments;return E.extend2(E.extend2(E.extend2(E.extend2({},b[0]),b[1]),b[2]),b[3])}(eb({},E.defaultGaugePaletteOptions),{paletteColors:["AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" "),"AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" "),"AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" "),
"AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" "),"AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" ")],bgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],bgAngle:[270,270,270,270,270],bgRatio:["100","100","100","100","100"],bgAlpha:["100","100","100",
"100","100"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:["","","","",""],canvasBorderColor:["545454","545454","415D6F","845001","68001B"],canvasBorderAlpha:[100,100,100,90,100],gridColor:["DDDDDD","D8DCC5","99C4CD","DEC49C","FEC1D0"],gridResizeBarColor:["999999","545454","415D6F","845001","D55979"],categoryBgColor:["F1F1F1","EEF0E6","F2F8F9","F7F0E6","FFF4F8"],dataTableBgColor:["F1F1F1","EEF0E6",
"F2F8F9","F7F0E6","FFF4F8"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["555555","60634E","025B6A","A15E01","68001B"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],legendBgColor:["ffffff","ffffff","ffffff","ffffff","ffffff"],legendBorderColor:["666666","545454","415D6F","845001","D55979"],plotBorderColor:["999999","8A8A8A","6BA9B6","C1934D","FC819F"],plotFillColor:["EEEEEE",
"D8DCC5","BCD8DE","E9D8BE","FEDAE3"],scrollBarColor:["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"]}),charttopmargin:10,chartbottommargin:20,series:function(){var b=this.dataObj,a=b.chart,J=(J=b.categories)||[],c=J.length,q=this.hcJSON,k=q.chart,s=q[jc],y=this.smartLabel,f=this.colorManager,g=q.categories={},u=[],n=this.inCanvasStyle,r=this.numberFormatter,C=Infinity,l=-Infinity,t=k.origW-k.marginLeft-k.marginRight,D=k.origH-k.marginTop-k.marginBottom,m=b.processes||{},h=m&&m.process,x=h&&h.length,
v=Ra(n.fontSize,10),P=b.datatable,pa=P&&P.datacolumn,G=pa&&pa.length,Y=b.connectors,L=Y&&Y.length,M=q.connectors=[],N=b.milestones&&b.milestones.milestone,B=N&&N.length,Z=q.milestone=[],H=b.tasks,$=H&&H.task,K=$&&$.length,w=0,p=0,bc=d(a.forceganttwidthpercent,0),aa=0,T=0,ca=!1,ka={top:"top",bottom:"bottom"},A={top:"top",bottom:"bottom",undefined:"middle"},Q={right:"right",left:"left"},ba={right:"right",left:"left",undefined:"center"},F=q.dataTable={},hb=Infinity,ib=-Infinity,ha=q.processIDMap=[],
ea,ua,La=d(a.dateintooltip,1),Ja=b.legend&&b.legend.item,Fa=q.tasksMap||(q.tasksMap={}),Na=0,Oa=0,ub,za,Hb,Ib,jb,vb,Qa,Jb,Kb,qa,wa,Aa,Ta,gb,Ua,Qb,wb,rb,xa,na,kb,R,Lb,Va,Wa,Mb,Nb,Ba,la,ma,Xa,Ya,Za,lb,$a,ab,Ga,Ha,fa,sb,Rb,ga,ia,da,mb,nb,bb,U,I,Sb,cb,xb,Ia,yb,Tb,Ob,ob,Ub,zb,Ab,Bb,Cb,Db,Pb,pb,tb,cc,dc,ec,Ma,V,fc,sa,O,ya,ra,qb,ja,Vb,Wb,Xb,Yb,ta,db,gc,z,X;if(x){q.tasks=[];delete q.yAxis;delete q.xAxis;k.backgroundColor=S(e(a.bgcolor,"FFFFFF"),e(a.bgalpha,f.getColor("bgAlpha")));d(a.showborder,0)||(k.borderWidth=
0);k.plotBorderColor=S(e(a.canvasbordercolor,f.getColor("canvasBorderColor")),0===d(a.showcanvasborder,1)?0:e(a.canvasborderalpha,100));k.backgroundColor={FCcolor:{color:e(a.bgcolor,"FFFFFF"),alpha:e(a.bgalpha,f.getColor("bgAlpha")),angle:e(a.bgangle,f.getColor("bgAngle")),ratio:e(a.bgratio,f.getColor("bgRatio"))}};k.plotBackgroundColor={FCcolor:{color:e(a.canvasbgcolor,f.getColor("canvasBgColor")),alpha:e(a.canvasbgalpha,f.getColor("canvasBgAlpha")),angle:e(a.canvasbgangle,f.getColor("canvasBgAngle")),
ratio:e(a.canvasbgratio,f.getColor("canvasBgRatio"))}};k.plotBorderWidth=d(a.canvasborderthickness,1);k.outputDateFormat=e(a.outputdateformat,k.dateFormat);k.extendCategoryBg=d(a.extendcategorybg,0);k.ganttLineColor=S(e(a.ganttlinecolor,f.getColor("gridColor")),d(a.ganttlinealpha,100));k.ganttLineThickness=d(a.ganttlinethickness,1);k.ganttLineDashStyle=d(a.ganttlinedashed,0)?Eb(d(a.ganttlinedashlen,1),a.ganttlinedashgap,k.ganttLineThickness):void 0;k.gridBorderColor=S(e(a.gridbordercolor,f.getColor("gridColor")),
d(a.gridborderalpha,100));k.gridBorderThickness=d(a.gridborderthickness,1);k.gridBorderDashStyle=d(a.gridborderdashed,0)?Eb(d(a.gridborderdashlen,1),a.gridborderdashgap,k.gridborderThickness):void 0;k.showSlackAsFill=d(a.showslackasfill,1);k.slackFillColor=oa(e(a.slackfillcolor,"FF5E5E"));k.gridResizeBarColor=S(e(a.gridresizebarcolor,f.getColor("gridResizeBarColor")),d(a.gridresizebaralpha,100));k.gridResizeBarThickness=d(a.gridresizebarthickness,1);k.taskBarRoundRadius=d(a.taskbarroundradius,0);
k.taskBarFillMix=a.taskbarfillmix;k.taskBarFillRatio=a.taskbarfillratio;void 0===k.taskBarFillMix&&(k.taskBarFillMix="{light-10},{dark-20},{light-50},{light-85}");void 0===k.taskBarFillRatio&&(k.taskBarFillRatio="0,8,84,8");k.connectorExtension=d(a.connectorextension,10);k.clickURL=e(a.clickurl,"");k.annRenderDelay=a.annrenderdelay;k.taskDatePadding=d(a.taskdatepadding,3);k.taskLabelPadding=d(a.tasklabelspadding,2);k.ganttStartX=d(a.ganttwidthpercent,65);100<k.ganttStartX&&(k.ganttStartX=100);Aa=
k.ganttStartX=.01*(100-k.ganttStartX)*t;k.gridWidth=t-k.ganttStartX;gc=d(a.showfulldatatable,1);bb=m.width;bb=d(k.ganttStartX*(/\%/g.test(bb)&&.01*Gb(bb,10))||bb);Aa-=d(bb,0);ea=va(bb);T+=1;for(z=0;z<G;z+=1)Jb=pa[z].width,Kb=d(k.ganttStartX*(/\%/g.test(Jb)&&.01*Gb(Jb,10))||Jb),Aa-=d(Kb,0),Kb=pa[z].width=va(Kb),T+=1;0<=Aa?Aa/=T:(ca=!0,Aa=k.ganttStartX/T);if(bc||!gc)for((isNaN(ea)||ca)&&(ea=Aa),z=0;z<G;z+=1)(isNaN(pa[z].width)||ca)&&(pa[z].width=Aa);for(z=0;z<c;z+=1){ia=J[z];C=Infinity;l=-Infinity;
mb=e(ia.bgcolor,f.getColor("categoryBgColor"));nb=d(ia.bgalpha,100);Xa=e(ia.font,n.fontFamily);Ya=d(ia.fontsize,v+1);Za=e(ia.fontcolor,n.color);lb=d(ia.isbold,1);$a=d(ia.isitalic,0);ab=d(ia.isunderline,0);d(ia.verticalpadding,3);Ga=e(ia.align,"center").toLowerCase();Ha=e(ia.valign,"middle").toLowerCase();sb=(Rb=ia.category)&&Rb.length;Ma=0;ja={};for(X=0;X<sb;X+=1)ga=Rb[X],la=r.getDateValue(ga.start).ms,ma=r.getDateValue(ga.end).ms,isNaN(la)&&(la=void 0),la>l&&(l=la),la<=C&&(C=la),isNaN(ma)&&(ma=void 0),
ma>l&&(l=ma),ma<=C&&(C=ma),fa=Da(e(ga.label,ga.name)),V={color:oa(e(ga.fontcolor,Za)),fontFamily:e(ga.font,Xa),fontSize:d(ga.fontsize,Ya)+"px",fontWeight:d(ga.isbold,lb)&&"bold"||"normal",fontStyle:d(ga.isitalic,$a)&&"italic"||"normal",textDecoration:d(ga.isunderline,ab)&&"underline"||"none"},Pa(V),y.setStyle(V),qa=y.getOriSize(fa),Ma=W(Ma,qa.height),O="FCCAT_"+z+"_"+X,Hb=e(ga.hoverbandcolor,ia.hoverbandcolor,a.categoryhoverbandcolor,a.hoverbandcolor,f.getColor("gridColor")),Ib=d(ga.hoverbandalpha,
ia.hoverbandalpha,a.categoryhoverbandalpha,a.hoverbandalpha,30),jb=d(ga.showhoverband,ia.showhoverband,a.showcategoryhoverband,a.showhoverband,a.showhovereffect,1),g[O]={text:fa,style:V,start:la,end:ma,index:X,isLast:z===c-1,bgColor:S(e(ga.bgcolor,mb),d(ga.bgalpha,nb)),dimension:ja,link:ga.link,align:ba[[e(ga.align,Ga).toLowerCase()]],vAlign:A[ka[e(ga.valign,Ha).toLowerCase()]],hoverColor:S(Hb,Ib),useHover:jb,usePlotHover:d(ga.showganttpanehoverband,ia.showganttpanehoverband,a.showganttpaneverticalhoverband,
jb)},g[ya]&&(g[ya].nextCol=g[O],g[O].prevCol=g[ya]),ya=O;if(xb=g["FCCAT_"+z+"_0"])g[O].first=xb,xb.last=g[O],g[cb]&&(g[cb].nextRow=xb,xb.prevRow=g[cb]);cb=O;ja.h=Ma+5+2*d(ia.verticalpadding,3);ja.y=p;ja.min=C;ja.max=l;ja.numCat=X;p+=ja.h;ib=W(ib,l);hb=Ca(hb,C)}g.min=hb;g.max=ib;if(x){Ma=wa=0;db="right"===e(m.positioningrid,"left").toLowerCase();V={color:oa(e(m.headerfontcolor,n.color)),fontFamily:e(m.headerfont,n.fontFamily),fontSize:d(m.headerfontsize,v+3)+"px",fontWeight:d(m.headerisbold,1)&&"bold"||
"normal",fontStyle:d(m.headerisitalic,0)&&"italic"||"normal",textDecoration:d(m.headerisunderline,0)&&"underline"||"none"};Pa(V);fa=Da(m.headertext);y.setStyle(V);qa=y.getOriSize(fa);wa=W(wa,qa.width);Ga=ba[Q[e(m.headeralign,"center").toLowerCase()]];Ha=A[ka[e(m.headervalign,"middle").toLowerCase()]];ja={};O=ra=cb="processHeader";F.processHeader={text:fa,style:V,align:Ga,vAlign:Ha,isHeader:!0,link:e(m.headerlink),dimension:{x:0,w:0,h:W(qa.height,p)},bgColor:S(e(m.headerbgcolor,f.getColor("dataTableBgColor")),
d(m.headerbgalpha,100)),key:O,isLast:db,drawResizer:!db&&G,prevCol:null,nextCol:null,prevRow:null,nextRow:null};mb=e(m.bgcolor,f.getColor("dataTableBgColor"));nb=d(m.bgalpha,100);Xa=e(m.font,n.fontFamily);Ya=d(m.fontsize,v);Za=e(m.fontcolor,n.color);lb=d(m.isbold,0);$a=d(m.isitalic,0);ab=d(m.isunderline,0);Ga=e(m.align,"center").toLowerCase();Ha=e(m.valign,"middle").toLowerCase();for(z=0;z<x;z+=1)da=h[z],Hb=e(da.hoverbandcolor,m.hoverbandcolor,a.processhoverbandcolor,a.hoverbandcolor,f.getColor("gridColor")),
Ib=d(da.hoverbandalpha,m.hoverbandalpha,a.processhoverbandalpha,a.hoverbandalpha,30),jb=d(da.showhoverband,m.showhoverband,a.showprocesshoverband,a.showhoverband,a.showhovereffect,1),V={color:oa(e(da.fontcolor,Za)),fontSize:d(da.fontsize,Ya)+"px",fontFamily:e(da.font,Xa),fontWeight:d(da.isbold,lb)&&"bold"||"normal",fontStyle:d(da.isitalic,$a)&&"italic"||"normal",textDecoration:d(da.isunderline,ab)&&"underline"||"none"},Pa(V),fa=Da(e(da.label,da.name)),y.setStyle(V),qa=y.getOriSize(fa),Ma=W(Ma,qa.height),
wa=W(wa,qa.width),ya=O,O=e(da.id,"__FCDPID__"+z).toUpperCase(),F[O]&&(O="__FCDPID__"+z),ha[z]=O,Sa(ub=d(da.height,a.rowheight))&&(ub=ac(ub),Na+=ub||0,Oa+=1),F[O]={text:qa.text,style:V,link:da.link,id:O,processHeight:ub,labelHeight:qa.height,align:ba[[e(da.align,Ga).toLowerCase()]],vAlign:A[ka[e(da.valign,Ha).toLowerCase()]],bgColor:S(e(da.bgcolor,mb),d(da.bgalpha,nb)),prevCol:F[ya],dimension:{},hoverColor:S(Hb,Ib),useHover:jb,usePlotHover:d(da.showganttpanehoverband,m.showganttpanehoverband,a.showganttpanehorizontalhoverband,
jb),isLast:db,nextCol:null,prevRow:null,nextRow:null},F[ya]&&(F[ya].nextCol=F[O]);F[O].first=F[ra];F[ra].last=F[O];F[ra].processCount=x;F[ra].countDefinedHeight=Oa;F[ra].totalHeight=Na;ua=F[ra].maxProcessHeight=Ma+8;isNaN(ea)&&(ea=wa+10);aa+=ea;ja.x=0;F[ra].dimension.w=ja.w=ea;ja.h=ua=W((D-F[ra].dimension.h)/x,ua)}db&&(aa=0);if(G)for(q.datacolumns=[],z=0;z<G;z+=1){U=pa[z];wa=0;mb=oa(e(U.bgcolor,P.bgcolor,f.getColor("dataTableBgColor")));nb=d(U.bgalpha,P.bgalpha,100);Xa=e(U.font,P.font,n.fontFamily);
Za=oa(e(U.fontcolor,P.fontcolor,n.color));Ya=d(U.fontsize,P.fontsize,v);lb=d(U.isbold,P.isbold,0);$a=d(U.isitalic,P.isitalic,0);ab=d(U.isunderline,P.isunderline,0);Ga=ba[Q[e(U.align,P.align,"center").toLowerCase()]];Ha=A[ka[e(U.valign,P.valign,"middle").toLowerCase()]];V={color:oa(e(U.headerfontcolor,P.headerfontcolor,Za)),fontFamily:e(U.headerfont,P.headerfont,Xa),fontSize:d(U.headerfontsize,P.headerfontsize,Ya+3)+"px",fontWeight:d(U.headerisbold,P.headerisbold,1)&&"bold"||"normal",fontStyle:d(U.headerisitalic,
P.headerisitalic,$a)&&"italic"||"normal",textDecoration:d(U.headerisunderline,P.headerisunderline,ab)&&"underline"||"none"};Pa(V);fa=Da(U.headertext);y.setStyle(V);qa=y.getOriSize(fa);wa=W(wa,qa.width);O=ra="_FCDtHeader_"+z;kb=F[O]={text:fa,style:V,align:ba[Q[e(U.headeralign,P.headeralign,Ga).toLowerCase()]],vAlign:A[ka[e(U.headervalign,P.headervalign,Ha).toLowerCase()]],link:e(U.headerlink),drawResizer:db||z<G-1,dimension:{x:0+aa,w:U.width,h:F.processHeader&&F.processHeader.dimension.h},isHeader:!0,
key:O,bgColor:S(e(U.headerbgcolor,P.headerbgcolor,f.getColor("dataTableBgColor")),d(U.headerbgalpha,P.headerbgalpha,100))};kb.data=[];fc=U.text||[];qb=F.processHeader;Ia=F[cb];Ia.nextRow=F[O];F[O].prevRow=Ia;qb=qb.nextCol;Ia=Ia.nextCol;ja={};cb=ra;for(X=0;qb;qb=qb.nextCol,Ia=Ia.nextCol,X+=1)ya=O,O="_FCDt_"+z+"_"+X,(sa=fc[X])?(V={fontFamily:e(sa.font,Xa),color:oa(e(sa.fontcolor,Za)),fontSize:d(sa.fontsize,Ya)+"px",fontWeight:d(sa.isbold,lb)&&"bold"||"normal",fontStyle:d(sa.isitalic,$a)&&"italic"||
"normal",textDecoration:d(sa.isunderline,ab)&&"underline"||"none"},Pa(V),y.setStyle(V),fa=Da(sa.label),qa=y.getOriSize(fa),wa=W(wa,qa.width),F[O]={text:fa,style:V,link:e(sa.link,""),bgColor:S(e(sa.bgcolor,mb),d(sa.bgalpha,nb)),align:ba[Q[e(sa.align,Ga).toLowerCase()]],vAlign:A[ka[e(sa.valign,Ha).toLowerCase()]],prevCol:F[ya],dimension:ja,nextCol:null,nextRow:null,prevRow:null}):F[O]={prevCol:F[ya],dimension:ja,isNaN:!0,nextCol:null,nextRow:null,prevRow:null},F[ya].nextCol=F[O],F[O].prevRow=Ia,Ia.nextRow=
F[O],F[O].hoverColor=F[ha[X]].hoverColor,F[O].useHover=F[ha[X]].useHover,F[O].usePlotHover=F[ha[X]].usePlotHover;F[O].first=F[ra];F[ra].last=F[O];isNaN(U.width)?kb.width=wa+10:kb.width=U.width;ja.x=0+aa;aa+=F[ra].dimension.w=ja.w=kb.width;ja.h=ua;q.datacolumns.push(kb)}db&&(da=F.processHeader,da.dimension.x=da.nextCol.dimension.x=aa,aa+=ea);bc||(k.ganttStartX=Ca(k.ganttStartX,aa));k.totalGridWidth=aa;Wb=b.trendlines||{};q.trendlines=[];for(z=0;z<Wb.length;z+=1)for(B=(Xb=Wb[z].line)&&Xb.length,X=0;X<
B;X+=1)ta=Xb[X],Yb=d(ta.istrendzone,0),Ba=e(ta.color,f.getColor("legendBorderColor")),V=eb({},s.trendStyle),V.color=S(Ba),Pa(V),q.trendlines.push({start:r.getDateValue(ta.start).ms,end:r.getDateValue(ta.end).ms,displayValue:Da(e(ta.displayvalue,ta.start)),color:S(Ba,d(ta.alpha,Yb?40:99)),style:V,isTrendZone:Yb,dashedStyle:d(ta.dashed,0)?Eb(d(ta.dashlen,3),d(ta.dashgap,3),d(ta.thickness,1)):void 0,thickness:d(ta.thickness,1)});if(K){C=Infinity;l=-Infinity;d(a.taskbarroundradius,0);Wa=a.taskbarfillmix;
Mb=a.taskbarfillratio;void 0===Wa&&(Wa="{light-10},{dark-20},{light-50},{light-85}");void 0===Mb&&(Mb="0,8,84,8");k.shadow=d(a.showshadow,1);Qa=d(a.showslackasfill,1);for(z=0;z<K;z+=1)I=$[z],Sb=w%x,la=r.getDateValue(I.start).ms,ma=r.getDateValue(I.end).ms,O=e(F[Ea(I.processid,"").toUpperCase()],F["__FCDPID__"+Sb],F[ha[Sb]]).id.toUpperCase(),yb=d(I.alpha,H.alpha,100),Ba=e(I.color,H.color,f.getColor("plotFillColor")),Ob=d(I.borderalpha,H.borderalpha,100),Tb=e(I.bordercolor,H.bordercolor,f.getColor("plotBorderColor")),
isNaN(la)&&(la=void 0),la>l&&(l=la),la<=C&&(C=la),isNaN(ma)&&(ma=void 0),ma>l&&(l=ma),ma<=C&&(C=ma),V={color:oa(e(I.fontcolor,H.fontcolor,n.color)),fontSize:d(I.fontsize,H.fontsize,v)+"px",fontFamily:e(I.font,H.font,n.fontFamily)},Pa(V),w+=1,ob=f.parseColorMix(Ba,Wa),Ub=f.parseAlphaList(yb.toString(),ob.length),zb=f.parseRatioList(Mb,ob.length),Ab=d(I.angle,H.angle,270),Pb=f.parseColorMix(e(I.slackfillcolor,H.slackfillcolor,a.slackfillcolor,"FF5E5E"),Wa),pb=Ca(d(I.percentcomplete,-1),100),fa=Ea(e(I.label,
I.name),""),Db="",d(I.showlabel,I.showname,H.showlabels,H.showname,a.showtasklabels,a.showtasknames,0)&&(Db=fa),d(I.showpercentlabel,H.showpercentlabel,a.showpercentlabel,0)&&-1!==pb&&(Db+=" "+pb+"%"),tb={FCcolor:{color:ob.join(),alpha:Ub,ratio:zb,angle:Ab}},Pb=Qa?{FCcolor:{color:Pb.join(),alpha:Ub,ratio:zb,angle:Ab}}:Ka,cc={FCcolor:{color:f.parseColorMix(e(I.hoverfillcolor,H.hoverfillcolor,a.taskhoverfillcolor,fb(Ba,80)),Wa).join(),alpha:f.parseAlphaList(e(I.hoverfillalpha,H.hoverfillalpha,a.taskhoverfillalpha,
yb).toString(),ob.length),ratio:zb,angle:Ab}},dc=S(e(I.hoverbordercolor,H.hoverbordercolor,a.taskhoverbordercolor,fb(Tb,80)),e(I.hoverborderalpha,H.hoverborderalpha,a.taskhoverborderalpha,Ob)),ec=Qa?{FCcolor:{color:f.parseColorMix(fb(e(I.slackhoverfillcolor,H.slackhoverfillcolor,a.slackhoverfillcolor,a.slackfillcolor,"FF5E5E"),80),Wa).join(),alpha:f.parseAlphaList(e(I.slackhoverfillalpha,H.slackhoverfillalpha,a.slackhoverfillalpha,yb).toString(),ob.length),ratio:zb,angle:Ab}}:Ka,Bb=r.getFormattedDate(la),
Cb=r.getFormattedDate(ma),za=Zb(Da(e(I.tooltext,I.hovertext,H.plottooltext,s.tooltext))),za=void 0!==za?E.parseTooltext(za,[3,28,29,30,31],{end:Cb,start:Bb,label:fa,percentComplete:-1!==pb?r.percentValue(pb):"",processName:F[O]&&F[O].text},I):(""!==fa?fa+(La?", ":""):"")+(La?Bb+" - "+Cb:""),Va=Ea(I.id,"").toUpperCase(),Fa[Ea(Va,z)]={dataObj:{processId:O,label:Db,labelAlign:ba[[e(I.labelalign,a.tasklabelsalign,"center").toLowerCase()]],link:I.link,start:la,end:ma,id:Ea(I.id,"").toUpperCase(),showAsGroup:d(I.showasgroup,
0),animation:d(I.animation,a.animation,a.defaultanimation,1),style:V,percentComplete:pb,color:Fb(tb),slackColor:Fb(Pb),hoverFillColor:Fb(cc),hoverBorderColor:dc,slackHoverColor:Fb(ec),showHoverEffect:d(I.showhovereffect,H.showhovereffect,a.showtaskhovereffect,a.showhovereffect,1),shadow:{opacity:W(yb,Ob)/100,inverted:!0},borderColor:S(Tb,Ob),borderThickness:d(I.showborder,H.showborder,1)?d(I.borderthickness,H.borderthickness,1):0,height:e(I.height,"35%"),topPadding:e(I.toppadding,"35%"),showPercentLabel:d(I.showpercentlabel,
H.showpercentlabel,a.showpercentlabel,0),startDate:d(I.showstartdate,H.showstartdate,a.showtaskstartdate)?Bb:void 0,endDate:d(I.showenddate,H.showenddate,a.showtaskenddate)?Cb:void 0,toolText:za,_start:I.start,_end:I.end,_formatSDate:Bb,_formatEDate:Cb,_label:fa}},u.push(Fa[Ea(Va,z)].dataObj);ib=W(ib,l);hb=Ca(hb,C)}q.series.push({showInLegend:!1,data:u});B=N&&N.length;for(z=0;z<B;z+=1)R=N[z],Va=Ea(R.taskid,"").toUpperCase(),Nb=e(R.shape,"polygon").toLowerCase(),Lb=d(R.numsides,5),Vb=0,"star"===Nb?
Vb=.4:(Nb=$b(Lb),Nb=$b(Lb).split("-")[0]),Ba=e(R.color,f.getColor("legendBorderColor")),za=Zb(Da(e(R.tooltext,R.hovertext,a.milestonetooltext))),void 0!==za&&Fa[Va]?(I=Fa[Va].dataObj,za=E.parseTooltext(za,[28,32,33,34,35,36],{date:r.getFormattedDate(R.date),taskStartDate:I._formatSDate,taskEndDate:I._formatEDate,taskLabel:I._label,taskPercentComplete:-1!==I.percentComplete?r.percentValue(I.percentComplete):"",processName:F[I.processId]&&F[I.processId].text},R)):za=r.getFormattedDate(R.date),Z.push({numSides:Lb,
startAngle:d(R.startangle,90),radius:R.radius,origDate:R.date,date:r.getDateValue(R.date),fillColor:oa(Ba),fillAlpha:.01*d(R.fillalpha,R.alpha,100),borderColor:oa(e(R.bordercolor,Ba)),borderAlpha:.01*d(R.borderalpha,R.alpha,100),hoverFillColor:oa(e(R.hoverfillcolor,a.milestonehoverfillcolor,fb(Ba,80))),hoverFillAlpha:.01*d(R.hoverfillalpha,a.milestonehoverfillalpha,R.fillalpha,R.alpha,100),hoverBorderColor:oa(e(R.hoverbordercolor,a.milestonehoverbordercolor,fb(e(R.bordercolor,Ba),80))),hoverBorderAlpha:.01*
d(R.hoverborderalpha,a.milestonehoverborderalpha,R.borderalpha,R.alpha,100),showHoverEffect:d(R.showhovereffect,a.showmilestonehovereffect,a.showhovereffect,1),depth:Vb,taskId:Va,borderThickness:d(R.borderthickness,1),link:R.link,toolText:za});for(z=0;z<L;z+=1)if(gb=(Ta=(xa=Y[z])&&xa.connector)&&Ta.length)for(X=0;X<gb;X+=1)na=Ta[X],Ua=e(na.color,xa.color,f.getColor("plotBorderColor")),Qb=d(na.alpha,xa.alpha,100),wb=d(na.thickness,xa.thickness,1),rb=d(na.isdashed,xa.isdashed,1),M.push({fromTaskId:Ea(na.fromtaskid,
"").toUpperCase(),toTaskId:Ea(na.totaskid,"").toUpperCase(),fromTaskConnectStart:d(na.fromtaskconnectstart,0),toTaskConnectStart:d(na.totaskconnectstart,1),color:S(Ua),alpha:.01*Qb,link:na.link,showHoverEffect:d(na.showhovereffect,xa.showhovereffect,a.showconnectorhovereffect,a.showhovereffect,1),hoverColor:S(e(na.hovercolor,xa.hovercolor,a.connectorhovercolor,fb(Ua,80)),d(na.hoveralpha,xa.hoveralpha,a.connectorhoveralpha,Qb)),hoverThickness:d(na.hoverthickness,xa.hoverthickness,a.connectorhoverthickness,
wb),thickness:wb,dashedStyle:rb?Eb(d(na.dashlen,xa.dashlen,5),d(na.dashgap,xa.dashgap,wb),wb):void 0});q.legend.enabled=Boolean(d(a.showlegend,1));q.legend.interactiveLegend=!1;q.legend.itemStyle.cursor="default";q.legend.itemHoverStyle={cursor:"inherit"};B=Ja&&Ja.length;for(z=0;z<B;z+=1)vb=Ja[z],Sa(vb.label)&&""!==vb.label&&q.series.push({name:Da(vb.label),showInLegend:!0,type:!1,color:hc(e(vb.color,f.getPlotColor()))});q.max=ib;q.min=hb;q.chart.hasScroll=!0;return q}},spaceManager:function(b,a,
J,c){this.titleSpaceManager(b,a,J,.3*c);var q=this.numberFormatter,k=b.chart,s=a.chart,y=b.dataTable,f=b.categories,g=b.scrollOptions={},u=y.__scrollOptions={},n=y.processHeader;c=c-k.marginTop-k.marginBottom;J=J-k.marginLeft-k.marginRight;var r=k.totalGridWidth,C=b.verticalScroll={enabled:d(s.useverticalscrolling,1)},l=d(s.ganttpaneduration,-1),t=e(s.ganttpanedurationunit,"s").toLowerCase(),D=q.getDateValue(s.scrolltodate).ms,m=n&&n.maxProcessHeight,h,x,q=0;if(n){h=n.processCount-n.countDefinedHeight;
b.legend.enabled&&(c-=this.placeLegendBlockBottom(b,a,J,c/2));c-=n.dimension.h;g.padding=d(s.scrollpadding,b.chart.plotBorderWidth/2);g.height=d(s.scrollheight,16);g.showButtons=!!d(s.scrollshowbuttons,1);g.buttonPadding=d(s.scrollbtnpadding,0);g.flatScrollBars=d(s.flatscrollbars,0);g.color=oa(e(s.scrollcolor,this.colorManager.getColor("altHGridColor")));a=g.height+g.padding;r>k.ganttStartX&&(u.enabled=!0,u.startPercent=Boolean(d(s.scrolltoend,0)));J-=k.ganttStartX;f.scroll={};g=new Date(f&&f.min);
if(-1!==l){switch(t){case "y":g.setYear(g.getFullYear()+l);break;case "m":g.setMonth(g.getMonth()+l);break;case "d":g.setDate(g.getDate()+l);break;case "h":g.setHours(g.getHours()+l);break;case "mn":g.setMinutes(g.getMinutes()+l);break;default:g.setSeconds(g.getSeconds()+l)}g=g.getTime();g>b.min&&g<b.max&&(b.visibleMax=g,f.scroll.enabled=!0)}if(u.enabled||f.scroll.enabled)c-=a;u=c-n.totalHeight;g=u/(h?h:n.processCount);!d(s.forcerowheight,0)&&!h&&n.totalHeight<c&&(g=c/n.processCount,u=c,x=!0);m>g&&
(m=3>m-g?g:u/va(u/m));n.maxProcessHeight=m;C.enabled&&g<m&&h||0>g?(u=m,C.startPercent=Boolean(d(s.scrolltoend,0)),J-=a):(C.enabled=!1,u=g);f.scroll.startPercent=d(s.scrolltoend,0);if(Infinity===b.min||-Infinity===b.max||b.min===b.max)b.min=f.min=0,b.max=f.max=1;if(Infinity===f.min||-Infinity===f.max)f.min=b.min,f.max=b.max;f.axis=new Fa(b,J);f.startX=f.axis.getPixel(Ca(f.min,b.min));f.endX=f.axis.getPixel(W(f.max,b.max));f.visibleW=J;D&&D>f.min&&D<f.max&&(f.scroll.startPercent=Ca((f.axis.getPixel(D)-
f.startX)/(f.endX-f.startX-f.visibleW),1));for(n=n.nextCol;n;){q+=n.dimension.h=x?u:n.processHeight||u;if(b=n.nextRow)for(;b;)b.dimension.h=n.dimension.h,b=b.nextRow;n=n.nextCol}y.processHeader.totalPH=q;k.processHeight=c+y.processHeader.dimension.h}}},rb.gaugebase);Oa("renderer.gantt",{drawProcess:function(b){var a=this,d=a.options,c=d.chart,q=a.paper,k=a.logic,s=k.smartLabel,y=a.canvasTop,f=a.canvasLeft,g=a.layers,u=g.gridLayer,n=g.gridHeaderLayer,r=c.gridBorderThickness,C=.5*r,l=c.gridBorderColor,
t=c.gridBorderDashStyle,D=0,m=0,h=[],x=y,v=b.dimension.w||16,P=b.dimension.x||0,pa=d.dataTable.processHeader,G=pa.nextCol.dimension.h,Y=pa.totalPH,k=S(e(k.dataObj.chart.rolloverbandcolor,"#FF0000"),e(k.dataObj.chart.rolloverbandalpha,30)),L=pa.items||(pa.items={}),d=d.categories||{},M,N,B,Z,H,$,K,w,p,E,aa;L.hoverEle||(L.hoverEle=q.rect(d.startX,0,d.endX,G,0,g.dataset).attr({fill:k,visibility:"hidden","stroke-width":0}));p=function(b){T.call(this,a,b,"ProcessClick")};E=function(b){ha=clearTimeout(ha);
if(!ca||ca.removed)ca=null;ca&&a.gridOutHandler.call(ca);a.gridHoverHandler.call(this);T.call(this,a,b,"ProcessRollOver")};for(aa=function(b){ca=this;ha=clearTimeout(ha);ha=setTimeout(function(){a.gridOutHandler.call(ca)},500);T.call(ca,a,b,"ProcessRollOut")};b;)w=b.dimension,K=f+P,B=b.text,B=b.align,L=b.items||(b.items={}),G=b.link,N=b.isHeader?n:u,Z=L.background,d=La(x+m)-.5,B={x:La(K+D)-.5,y:d,width:v+.5,height:w.h+C+.5,radius:0,fill:b.bgColor||Ka,"stroke-dasharray":t,stroke:l,cursor:G?"pointer":
"","stroke-width":0},Z?Z.attr(B):(L.background=q.rect(N).attr(B).hover(E,aa),M={isHeader:b.isHeader,label:b.text,vAlign:b.vAlign,align:b.align,link:b.link,id:b.id},L.background.click(p).data("dataObj",b).data("eventArgs",M).data("data",{y:d,gridObj:b,rollOverColor:k,useHover:!0,useNext:!0,height:w.h+C+.5,hoverEle:pa.items.hoverEle})),b.isNaN||(w=b.dimension,B=b.text,B=b.align,Z=L.label,B=b.text,Sa(B)&&""!==B&&($=b.style,s.setStyle($),H=s.getSmartText(B,v-8,W(Ra($.lineHeight,10),w.h)),$.title=H.oriText,
B=b.align,B={text:H.text,x:K+v*gb[B]+Ua[B],y:x+w.h-w.h*tb[b.vAlign],"text-anchor":Ta[B],cursor:G?"pointer":"","vertical-align":b.vAlign},Z?Z.attr(B):L.label=q.text(N).attr(B).css($).hover(E,aa).click(p).data("eventArgs",M).data("dataObj",b).data("data",{y:d,gridObj:b,rollOverColor:k,useHover:!0,height:w.h+C+.5,useNext:!0,hoverEle:pa.items.hoverEle}))),b.xPos=K,b.yPos=La(x+w.h)-r%2*.5,h.push("M",K,b.yPos,"h",v),(Z=L.hBorder)?Z.attr("path",h):L.hBorder=q.path(h,N).attr({"stroke-dasharray":t,stroke:l,
"stroke-width":r}),x+=w.h,b.nextCol||(D=C,m-=0,Z=b.first.items.vBorder,B=["M",La(K+v)-r%2*.5,y,"v",Y],Z?Z.attr("path",B):b.first.items.vBorder=q.path(B,n).attr({"stroke-dasharray":t,stroke:l,"stroke-width":r}),b.nextRow&&!b.isLast&&(b.first.items.dragEle||(b.first.items.dragEle=q.path(B,g.gridTracker).attr({stroke:c.gridResizeBarColor,"stroke-width":c.gridResizeBarThickness,visibility:"hidden"})),b.first.items.tracker||(b.first.items.tracker=q.path(B,g.gridTracker).attr({stroke:Ka,ishot:!0,"stroke-width":30}).css("cursor",
ka.svg&&"ew-resize"||"e-resize").drag(this.dragMove,this.dragStart,this.dragUp).data("drag-options",{grid:b.first,xPos:La(K+v)-r%2*.5,chart:a})))),b=b.nextCol},dragStart:function(){var b=this.data("drag-options"),a=b.grid,J=a.items,c=a.nextRow,e={style:{lineHeight:16}},k=a.nextCol.style||e,s=c&&c.nextCol&&c.nextCol.style||e,y=b.chart,f=y.canvasLeft,g=a.dimension,k=W(Ra(a.style.lineHeight,10),Ra(k.lineHeight,10))+2,e=W(Ra((c||e).style.lineHeight,10),Ra(s.lineHeight,10))+2;b.leftSideLimit=f+d(a.dimension.x,
0)+k;b.rightSideLimit=f+d(c&&c.dimension.x+c.dimension.w,g.x+g.w)-e;b.origX=b.lastX||(b.lastX=0);J.dragEle.show();y.trackerClicked=!0;b.draged=!1},dragMove:function(b){var a=this.data("drag-options"),d=a.grid.items,c=a.xPos+b,e=a.leftSideLimit,k=a.rightSideLimit;c<e&&(b=e-a.xPos);c>k&&(b=k-a.xPos);c={transform:"t"+(a.origX+b)+ic+0};this.attr(c);d.dragEle.attr(c);a.draged=!0;a.lastX=b},dragUp:function(){var b=this.data("drag-options"),a=b.chart,d=b.grid,c=d.nextRow,e=a.canvasLeft,k=d.dimension,s=c&&
c.dimension,y=d.items,f={hcJSON:{dataTable:{}}};a.trackerClicked=!1;y.dragEle.hide();b.draged&&(k.w=b.xPos+b.lastX-e-k.x,d.nextCol&&(d.nextCol.dimension.w=k.w),f.hcJSON.dataTable[d.key]={dimension:k},c&&(s.w+=s.x-k.x-k.w,s.x=k.x+k.w,c.dimension.w=s.w,c.dimension.x=s.x,a.drawProcess(c),f.hcJSON.dataTable[c.key]={dimension:s}),a.drawProcess(d),eb(a.logic.chartInstance.jsVars._reflowData,f,!0),b.xPos+=b.lastX,b.lastX+=b.origX)},drawCategories:function(){var b=this,a=b.options,e=a.chart,c=b.paper,q=b.layers,
k=b.logic.smartLabel,s=b.canvasTop,y=a.categories,f=a.dataTable.processHeader,g=y.FCCAT_0_0,u=y.axis,n=y.endX,r=y.startX,C=n-r,l=e.ganttLineThickness,t=f.totalPH+f.dimension.h,D=[],m=[],h=q.dataset,q=q.ganttHeaderLayer,x,v,P,E,G,Y,L,M,N,B,Z,H,$,K,w;$=function(a){T.call(this,b,a,"CategoryClick")};K=function(a){ha=clearTimeout(ha);if(!ca||ca.removed)ca=null;ca&&b.gridOutHandler.call(ca);b.gridHoverHandler.call(this);T.call(this,b,a,"CategoryRollOver")};w=function(a){ca=this;ha=clearTimeout(ha);ha=setTimeout(function(){b.gridOutHandler.call(ca)},
500);T.call(ca,b,a,"CategoryRollOut")};E=y.items||(y.items={});f=a.dataTable.processHeader;for(E.hoverEle=c.rect(0,s+f.dimension.h,50,f.totalPH,0,h).attr({fill:Ka,visibility:"hidden","stroke-width":0});g;)v=C/g.dimension.numCat,G=r+v*(g.index+1),N=G-v,M=g.dimension.h,B=N,H=s+g.dimension.y,Y=g.align,L=g.vAlign,P=g.link,E=g.items||(g.items={}),v=!(!g.nextRow&&g.nextCol),Z=a.verticalScroll.enabled&&v?a.scrollOptions.height:0,x={align:g.align,vAlign:g.vAlign,link:g.link,text:g.text},N=B=d(u.getPixel(g.start),
N),G=d(u.getPixel(!v&&g.nextCol.start||(v?W(g.end||0,a.max):void 0)),G),v=G-N,B=va(B)+.5,H=va(H)+.5,g.isLast&&(D.push("M",B,H,"v",t-g.dimension.y),H-=.5*l,M-=l,e.extendCategoryBg&&c.rect(B,H,v,t,0,h).attr({fill:g.bgColor,"stroke-width":0,stroke:e.ganttLineColor}).toBack()),E.background=c.rect(B,H,v+Z,M,0,q).attr({fill:g.bgColor,"stroke-width":0,cursor:P?"pointer":"",stroke:e.ganttLineColor}).click($).data("eventArgs",x).data("dataObj",g).hover(K,w).data("data",{x:B,width:v,gridObj:g,hoverEle:y.items.hoverEle}),
m.push("M",B,H,"v",M),g.nextRow&&m.push("M",r,H+M,"H",n+Z),k.setStyle(g.style),G=k.getSmartText(g.text,v-5,M),g.style.title=G.oriText,E.label=c.text(q).attr({text:G.text,x:B+v*gb[Y]+Ua[Y],y:H+M-M*tb[L],"text-anchor":Ta[Y],cursor:P?"pointer":"","vertical-align":L}).css(g.style).hover(K,w).click($).data("eventArgs",x).data("dataObj",g).data("data",{x:B,width:v,gridObj:g,hoverEle:y.items.hoverEle}),g=g.nextCol;for(;f;)D.push("M",y.startX,f.yPos,"H",n),f=f.nextCol;E=y.items||(y.items={});E.headerGrid=
c.path(m,q).attr({"stroke-dasharray":e.ganttLineDashStyle,"stroke-width":l,stroke:e.ganttLineColor});E.processGrid=c.path(D,h).attr({"stroke-dasharray":e.ganttLineDashStyle,"stroke-width":e.ganttLineThickness,stroke:e.ganttLineColor})},drawScroller:function(){var b=this,a=b.options,e=b.paper,c=b.layers,q=b.canvasTop,k=b.canvasHeight,s=a.scrollOptions,y=a.categories,f=y.startX,g=y.endX-f,u=s.flatScrollBars,n={hcJSON:{categories:{scroll:{}}}},r=c.dataset,C=c.datalabels,l=c.ganttTracker,t=c.ganttHeaderLayer,
D=b.logic.chartInstance&&b.logic.chartInstance.jsVars._reflowData||{},m=a.chart,h=c.gridLayer,x=(f=a.dataTable)&&f.processHeader,v=b.canvasLeft,P=b.canvasWidth,E=m.gridBorderThickness,G=m.totalGridWidth,Y=Ca(m.ganttStartX,G)+E,L=y.scroll,M=f&&f.__scrollOptions,N=a.verticalScroll,B={hcJSON:{dataTable:{__scrollOptions:{}},verticalScroll:{}}},Z=B.hcJSON.dataTable.__scrollOptions,H=x.totalPH,$=c.gridHeaderLayer,K=c.gridTracker,w,p,f=d(y.startX,m.ganttStartX),c=c.scroll=c.scroll||e.group("scroll").insertAfter(l);
L.enabled&&(a=y.visibleW/g,L.scroller=e.scroller(f,q+k-s.height,y.visibleW,s.height,!0,{showButtons:s.showButtons,displayStyleFlat:u,buttonWidth:s.buttonWidth,scrollRatio:a,scrollPosition:L.startPercent},c).attr({"scroll-display-style":u,fill:s.color}).scroll(function(a){p=-va(a*(g-y.visibleW));r&&r.transform(["T",p,r.data("vOffset")]);C&&C.transform(["T",p,C.data("vOffset")]);l&&l.transform(["T",p,l.data("vOffset")]);t&&t.transform(["T",p,0]);r&&r.data("hOffset",p);C&&C.data("hOffset",p);l&&l.data("hOffset",
p);n.hcJSON.categories.scroll.startPercent=a;eb(D,n,!0)}),function(){var a;ka.eve.on("raphael.scroll.start."+L.scroller.id,function(c){a=c;ea.raiseEvent("scrollstart",{scrollPosition:c},b.logic.chartInstance)});ka.eve.on("raphael.scroll.end."+L.scroller.id,function(c){ea.raiseEvent("scrollend",{prevScrollPosition:a,scrollPosition:c},b.logic.chartInstance)})}(),L.startPercent&&(p=-va(L.startPercent*(g-y.visibleW)),r&&r.data("hOffset",p),C&&C.data("hOffset",p),l&&l.data("hOffset",p),t&&t.transform(["T",
p,0]),r&&r.transform(["T",p,r.data("vOffset")]),C&&C.transform(["T",p,r.data("vOffset")]),l&&l.transform(["T",p,r.data("vOffset")])));M.enabled&&(M.scroller=e.scroller(v,q+k-s.height,Y,s.height,!0,{showButtons:s.showButtons,displayStyleFlat:u,buttonWidth:s.buttonWidth,scrollRatio:Y/G,scrollPosition:M.startPercent},c).attr({"scroll-display-style":u,fill:s.color}).scroll(function(a){p=-va(a*(G-Y));h&&h.transform(["T",p,h.data("vOffset")]);$&&$.transform(["T",p,0]);K&&K.transform(["T",p,K.data("vOffset")]);
h.data("hOffset",p);$.data("hOffset",p);K.data("hOffset",p);Z.startPercent=a;eb(D,B,!0)}),function(){var a;ka.eve.on("raphael.scroll.start."+M.scroller.id,function(c){a=c;ea.raiseEvent("scrollstart",{scrollPosition:c},b.logic.chartInstance)});ka.eve.on("raphael.scroll.end."+M.scroller.id,function(c){ea.raiseEvent("scrollend",{prevScrollPosition:a,scrollPosition:c},b.logic.chartInstance)})}(),M.startPercent&&(p=-va(M.startPercent*(G-Y)),h&&h.transform(["T",p,0]),K&&K.transform(["T",p,0]),$&&$.transform(["T",
p,0]),h.data("hOffset",p),K.data("hOffset",p)));N.enabled&&(w=m.processHeight-x.dimension.h,N.scroller=e.scroller(v+P-s.height,q+x.dimension.h,s.height,m.processHeight-x.dimension.h,!1,{showButtons:s.showButtons,displayStyleFlat:u,buttonWidth:s.buttonWidth,scrollRatio:w/H,scrollPosition:N.startPercent},c).attr({"scroll-display-style":u,fill:s.color}).scroll(function(a){p=-va(a*(H-w));h&&h.transform(["T",h.data("hOffset"),p]);r&&r.transform(["T",r.data("hOffset"),p]);C&&C.transform(["T",C.data("hOffset"),
p]);l&&l.transform(["T",l.data("hOffset"),p]);K&&K.transform(["T",K.data("hOffset"),p]);h.data("vOffset",p);K.data("vOffset",p);r.data("vOffset",p);l.data("vOffset",p);C.data("vOffset",p);B.hcJSON.verticalScroll.startPercent=a;eb(D,B,!0)}),function(){var a;ka.eve.on("raphael.scroll.start."+N.scroller.id,function(c){a=c;ea.raiseEvent("scrollstart",{scrollPosition:c},b.logic.chartInstance)});ka.eve.on("raphael.scroll.end."+N.scroller.id,function(c){ea.raiseEvent("scrollend",{prevScrollPosition:a,scrollPosition:c},
b.logic.chartInstance)})}(),N.startPercent&&(p=-va(N.startPercent*(H-w)),h&&h.transform(["T",h.data("hOffset"),p]),r&&r.transform(["T",r.data("hOffset"),p]),C&&C.transform(["T",C.data("hOffset"),p]),l&&l.transform(["T",l.data("hOffset"),p]),K&&K.transform(["T",K.data("hOffset"),p]),h.data("vOffset",p),K.data("vOffset",p),r.data("vOffset",p),C.data("vOffset",p),l.data("vOffset",p)))},finalizeScrollPlots:function(){var b=this,a=b.options,d=b.canvasTop,c=a.categories,e=c.endX,k=c.startX,s=c.scroll,y=
a.chart,f=a.dataTable,g=f&&f.processHeader,u=b.canvasLeft,n=y.gridBorderThickness,r=y.totalGridWidth,C=Ca(y.ganttStartX,r)+n,l,t,D,m,h,x=e-k-c.visibleW,e=b.container,v=f&&f.__scrollOptions,P=a.verticalScroll,T=g.totalPH,G=y.processHeight-g.dimension.h,Y,L,M,N,B,s=c.scroll,a=function(a){var e=b.elements.canvas,f=N.left,n=N.top,q=a.type,p=sb&&E.getTouchEvent(a)||kc,f=a.layerX||p.layerX||(a.pageX||p.pageX)-f;a=a.layerY||p.layerY||(a.pageY||p.pageY)-n;switch(q){case "dragstart":B=e.isPointInside(f,a);
Y=f>k&&f<k+c.visibleW;M=f>u&&f<k+c.visibleW&&a>d+g.dimension.h;L=f<k;l=B&&f||null;t=B&&a||null;break;case "dragend":B=!1;h=m=D=t=l=void 0;break;default:if(!B||b.trackerClicked)break;e=f-l;q=a-t;l=f;t=a;Y&&s&&s.scroller&&(D=s.scroller.attrs["scroll-position"]-e/x,s.scroller.attr({"scroll-position":D}));M&&P&&P.scroller&&(m=P.scroller.attrs["scroll-position"]-q/(T-G),P.scroller.attr({"scroll-position":m}));L&&v&&v.scroller&&(h=v.scroller.attrs["scroll-position"]-e/(r-C),v.scroller.attr({"scroll-position":h}))}};
sb&&(N=E.getPosition(e),e&&(mc(e,"dragstart drag dragend",a),lc(e,"dragstart drag dragend",a)))},gridHoverHandler:function(){var b=this.data("data"),a=b.gridObj,d=!!a.prevRow,c={};if(!a.isHeader)if(b.x&&(c.x=b.x),b.y&&(c.y=b.y),b.width&&(c.width=b.width),b.height&&(c.height=b.height),a.hoverColor&&(c.fill=a.hoverColor),a.usePlotHover&&b.hoverEle.attr(c).show(),b.useNext&&a.useHover){for(;a&&d;)a=a.prevRow,d=!!a.prevRow;for(;a;)a.items.background.attr("fill",a.hoverColor),a=a.nextRow}else a.useHover&&
a.items.background.attr("fill",a.hoverColor)},gridOutHandler:function(){var b=this.data("data"),a=b.gridObj,d=!!a.prevRow;if(!a.isHeader)if(a.usePlotHover&&b.hoverEle.hide(),b.useNext&&a.useHover){for(;a&&d;)a=a.prevRow,d=!!a.prevRow;for(;a;)a.items.background.attr("fill",a.bgColor||Ka),a=a.nextRow}else a.useHover&&a.items.background.attr("fill",a.bgColor)},drawAxes:function(){if(this.options.dataTable){Oa["renderer.cartesian"].drawAxes.call(this,arguments);var b=this.options,a=b.chart,e=this.paper,
c=this.layers,q=c.layerBelowDataset,k=c.layerAboveDataset,s=c.gridLayer,y=c.dataset,f=b.dataTable,g=b.categories,f=f&&f.processHeader,u=this.canvasTop,y=this.canvasLeft,s=a.gridBorderThickness,n=Ca(a.ganttStartX,a.totalGridWidth)+s,r=f.dimension,C=r.h,r=a.processHeight-r.h,l=d(g.startX,a.ganttStartX),g=g.visibleW,a=.5*a.ganttLineThickness,s=.5*s,s=c.gridLayer=c.gridLayer||e.group("grid",q).attr({"clip-rect":[y,u+C+s,n,r-s]});c.gridHeaderLayer=c.gridHeaderLayer||e.group("grid-header",q).attr({"clip-rect":[y,
u,n,C+r]});q=c.gridTracker=c.gridTracker||e.group("grid-tracker",q).attr({"clip-rect":[y,u,n,C+r]});s.data("vOffset",0);s.data("hOffset",0);q.data("vOffset",0);q.data("hOffset",0);c.ganttHeaderLayer=c.ganttHeaderLayer||e.group("gantt",k).attr({"clip-rect":[l,u,g+(b.verticalScroll.enabled?b.scrollOptions.height:0),this.chartHeight]});y=c.dataset.attr({"clip-rect":[l,u+C-a,g,r+a]});b=c.datalabels.attr({"clip-rect":[l,u+C-a-10,g,r+a+10]});e=c.ganttTracker=e.group("gantt-hot",c.tracker).attr({"clip-rect":[l,
u+C-a,g,r+a]});y.data("vOffset",0);y.data("hOffset",0);b.data("vOffset",0);b.data("hOffset",0);e.data("vOffset",0);for(e.data("hOffset",0);f;)this.drawProcess(f),f=f.nextRow;this.drawCategories()}},drawPlotGantt:function(b){var a=this,J=a.options,c=J.chart,q=a.paper,k=a.layers,s=b.data,y=b.items,f=s.length,g=k.dataset,u=k.datalabels,n=J.dataTable,r=n.processHeader,C=J.categories,l=C.axis,t=a.canvasTop,D=c.taskBarRoundRadius,f=J.plotOptions.series,m=isNaN(+f.animation)&&f.animation.duration||1E3*f.animation,
h=J.tasksMap||(J.tasksMap={}),x=J.milestone,v=J.trendlines,E=r.dimension.h,ca=c.taskDatePadding,G,Y,L,M,N,B,Z,H,$,K,w,p,S,aa,ea,W,ha,A,Q,ba,F;b.graphics=[];ea=g.shadows||(g.shadows=q.group("shadows",g));f=v&&v.length;for(b=0;b<f;b+=1)w=v[b],w.end||(w.end=w.start),w.end&&(Q=l.getPixel(w.start),W=l.getPixel(w.end),ba=w.thickness,J=w.items||(w.items={}),G=void 0,w.isTrendZone?(K=["M",Q+.5*(W-Q),t+E,"v",t+r.totalPH],ba=W-Q):(K=["M",Q,t+E,"L",W,t+E+r.totalPH],G=w.dashedStyle),J.trendLine=q.path(K,g).attr({stroke:w.color,
"stroke-width":ba,"stroke-dasharray":G}),Sa(w.displayValue)&&""!==w.displayValue&&(J.label=q.text(k.ganttHeaderLayer).attr({text:w.displayValue,x:K[1],y:0}).css(w.style),G=J.label._getBBox().height,w=t+c.processHeight+(!C.scroll.enabled||c.marginBottom<G?.5*G:-(.5*G)-5),J.label.attr("y",w)));u.hide();k=function(){u.show()};v=r=function(b){T.call(this,a,b)};C=function(b){T.call(this,a,b,"DataPlotRollOver")};t=function(b){T.call(this,a,b,"DataPlotRollOut")};E=function(b){b&&b.click(function(b){T.call(this,
a,b)}).hover(function(b){var c=this.data("dataObj");T.call(this,a,b,"DataPlotRollOver");c.showHoverEffect&&a.taskHoverHandler.call(this,a)},function(b){var c=this.data("dataObj");T.call(this,a,b,"DataPlotRollOut");c.showHoverEffect&&a.taskHoverOutHandler.call(this,a)}).data("dataObj",A).data("eventArgs",Y)};f=s.length;for(b=0;b<f;b+=1)A=s[b],J=A.processId,w=n[J],W=ha=A.color,J=A.items||(A.items={}),K=A.animation?m||1E3:0,w&&(F=A.borderThickness,Q=va(l.getPixel(A.start)),ba=ac(M=l.getPixel(A.end)-
Q),Q&&ba&&(L=w.dimension.h,w=w.yPos-L,G=L*(/%/g.test(A.height)&&.01*Gb(A.height,10))||d(A.height,L),p=L*(/%/g.test(A.topPadding)&&.01*Gb(A.topPadding,10))||d(A.topPadding,L),w+=Ca(p,L-G),aa=.5*G,S=A.toolText,p=A.link,(L=y[b])||(L=y[b]={index:b,dataLabel:null,start:A.start,end:A.end,startLabel:null,endLabel:null,tracker:null}),A.index=b,N=e(A.id,b),""!==N&&h[N]&&(h[N].items=L,h[N].x=Q,h[N].y=w,h[N].h=G,h[N].w=ba),M=N=B=Z=H=$=null,A.showAsGroup?(K?(M=q.path(["M",Q,w],g),M.animate({path:["M",Q,w,"v",
G,"L",Q+aa,w+aa,"H",Q+ba-aa,"L",Q+ba,w+G,"v",-G,"H",Q]},K,"normal",k)):(M=q.path(["M",Q,w,"v",G,"L",Q+aa,w+aa,"H",Q+ba-aa,"L",Q+ba,w+G,"v",-G,"H",Q],g),k&&k()),M.attr({fill:W,stroke:A.borderColor,cursor:p?"pointer":"",ishot:!0,"stroke-width":A.borderThickness}).tooltip(S).shadow(c.shadow&&A.shadow,ea)):(-1!==A.percentComplete&&(M=ba*A.percentComplete*.01,W=Ka,N=J.taskFill=q.rect(Q,w,0,G,0,g).attr({fill:ha,cursor:p?"pointer":"",ishot:!0,"stroke-width":0,width:K?0:M||1}).tooltip(S),K&&N.animate({width:M||
1},K,"normal"),B=q.rect(Q,w,0,G,0,g).attr({fill:A.slackColor,cursor:p?"pointer":"",ishot:!0,"stroke-width":0,x:K?Q:Q+M||1,width:K?0:ba-M||1}).tooltip(S),K&&B.animate({x:Q+M||1,width:ba-M||1},K,"normal")),J=ka.crispBound(Q,w,ba,G,F),M=q.rect(J.x,J.y,0,J.height,D,g).attr({fill:W,stroke:A.borderColor,cursor:p?"pointer":"",ishot:!0,"stroke-width":A.borderThickness,width:K?0:J.width||1}).tooltip(S).shadow(c.shadow&&A.shadow,ea),K?M.animate({width:J.width||1},K,"normal",k):k&&k()),Sa(A.label)&&""!==A.label&&
(J=A.labelAlign,Z=q.text().attr({text:A.label,x:Q+ba*gb[J]+Ua[J],"text-anchor":Ta[J],cursor:p?"pointer":"",ishot:!0,y:w-.5*Ra(A.style.lineHeight,10)-c.taskLabelPadding}).css(A.style),u.appendChild(Z)),Sa(A.startDate)&&""!==A.startDate&&(H=q.text().attr({text:A.startDate,x:Q-2-ca,y:w+.5*G,cursor:p?"pointer":"",ishot:!0,"text-anchor":"end"}).css(A.style),u.appendChild(H)),Sa(A.endDate)&&""!==A.endDate&&($=q.text().attr({text:A.endDate,x:Q+ba+2+ca,y:w+.5*G,cursor:p?"pointer":"",ishot:!0,"text-anchor":"start"}).css(A.style),
u.appendChild($)),L.graphic=M,L.percentCompleteGraphic=N,L.slackGraphic=B,L.dataLabel=Z,L.startLabel=H,L.endLabel=$,Y={processId:A.processId,taskId:A.id,start:A._start,end:A._end,showAsGroup:A.showAsGroup,link:A.link,sourceType:"task",percentComplete:-1!==A.percentComplete&&A.percentComplete},N&&N.click(r).hover(C,t).data("eventArgs",Y),B&&B.click(v).data("eventArgs",Y),Qa([M,Z,H,$],E)));y=function(b){T.call(this,a,b,"MilestoneClick")};n=function(b){var c=this.data("dataObj");T.call(this,a,b,"MilestoneRollOver");
c.showHoverEffect&&c.items.graphic.attr({fill:c.hoverFillColor,stroke:c.hoverBorderColor,"fill-opacity":c.hoverFillAlpha,"stroke-opacity":c.hoverBorderAlpha})};D=function(b){var c=this.data("dataObj");T.call(this,a,b,"MilestoneRollOut");c.showHoverEffect&&c.items.graphic.attr({fill:c.fillColor,stroke:c.borderColor,"fill-opacity":c.fillAlpha,"stroke-opacity":c.borderAlpha})};this.drawConnectors();J=null;f=x&&x.length;for(b=0;b<f;b+=1)c=x[b],w=h[c.taskId],J=c.items||(c.items={}),w&&(s=ka.animation({"fill-opacity":c.fillAlpha,
"stroke-opacity":c.borderAlpha},m,"normal"),Y={sides:c.sides,date:c.origDate,radius:c.radius,taskId:c.taskId,toolText:c.toolText,link:c.link,numSides:c.numSides},J.graphic=q.polypath(c.numSides,l.getPixel(c.date.ms),w.y+.5*w.h,d(c.radius,.6*w.h),c.startAngle,c.depth,g).attr({fill:c.fillColor,"fill-opacity":m?0:c.fillAlpha,stroke:c.borderColor,"stroke-opacity":m?0:c.borderAlpha,ishot:!0,cursor:c.link?"pointer":"","stroke-width":c.borderThickness}).tooltip(c.toolText).click(y).data("eventArgs",Y).data("dataObj",
c),m&&J.graphic.animate(s.delay(m)),J.graphic.hover(n,D))},taskHoverOutHandler:function(b){var a=b.options.tasksMap;b=this.data("dataObj");var a=a[e(b.id,b.index)].items,d={fill:b.color,stroke:b.borderColor,"stroke-width":b.borderThickness,"stroke-dasharray":b.dashedStyle};-1===b.percentComplete||b.showAsGroup||(a.slackGraphic.attr({fill:b.slackColor}),a.percentCompleteGraphic.attr({fill:b.color}),delete d.fill);a.graphic.attr(d)},taskHoverHandler:function(b){var a=b.options.tasksMap;b=this.data("dataObj");
var a=a[e(b.id,b.index)].items,d={fill:b.hoverFillColor,stroke:b.hoverBorderColor};-1===b.percentComplete||b.showAsGroup||(a.slackGraphic.attr({fill:b.slackHoverColor}),a.percentCompleteGraphic.attr({fill:b.hoverFillColor}),delete d.fill);a.graphic.attr(d)},drawConnectors:function(){var b=this,a=b.paper,d=b.options,c=d.chart.connectorExtension,e=d.connectors,k=d.tasksMap,s=e.length,y=b.layers.dataset,f=[],d=d.plotOptions.series,d=isNaN(+d.animation)&&d.animation.duration||1E3*d.animation,g,u,n,r,
C,l,t,D,m,h,x,v,E,S,G;E=function(a){T.call(this,b,a,"ConnectorClick")};S=function(a){var c=this.data("dataObj"),d=k[c.fromTaskId],e=k[c.toTaskId],f={stroke:c.hoverColor,"stroke-dasharray":c.dashedStyle,"stroke-width":c.hoverThickness};T.call(this,b,a,"ConnectorRollOver");c.showHoverEffect&&(Qa([d,e],function(a){var b={fill:a.dataObj.hoverFillColor,stroke:a.dataObj.hoverBorderColor};-1===a.dataObj.percentComplete||a.dataObj.showAsGroup||(a.items.slackGraphic.attr({fill:a.dataObj.slackHoverColor}),
a.items.percentCompleteGraphic.attr({fill:a.dataObj.hoverFillColor,stroke:a.dataObj.hoverBorderColor}),delete b.fill);a.items.graphic.attr(b)}),c.items.connector.attr(f))};G=function(a){var c=this.data("dataObj"),d=k[c.fromTaskId],e=k[c.toTaskId],f={stroke:c.color,"stroke-width":c.thickness,"stroke-dasharray":c.dashedStyle};T.call(this,b,a,"ConnectorRollOut");c.showHoverEffect&&(Qa([d,e],function(a){var b={fill:a.dataObj.color,stroke:a.dataObj.borderColor,"stroke-width":a.dataObj.borderThickness,
"stroke-dasharray":a.dataObj.dashedStyle};-1===a.dataObj.percentComplete||a.dataObj.showAsGroup||(a.items.slackGraphic.attr({fill:a.dataObj.slackColor}),a.items.percentCompleteGraphic.attr({fill:a.dataObj.color}),delete b.fill);a.items.graphic.attr(b)}),c.items.connector.attr(f))};for(g=0;g<=s;g+=1)if(n=e[g]||{},l=n.fromTaskId,r=n.toTaskId,u=k[l],m=k[r],r=n.items||(n.items={}),u&&m){h=u.y+.5*u.h;x=m.y+.5*m.h;C=h==x;l=u.x;t=u.x+u.w;D=m.x;m=m.x+m.w;v=v=0;0===n.fromTaskConnectStart&&1===n.toTaskConnectStart&&
(v=1);0===n.fromTaskConnectStart&&0===n.toTaskConnectStart&&(v=2);1===n.fromTaskConnectStart&&1===n.toTaskConnectStart&&(v=3);1===n.fromTaskConnectStart&&0===n.toTaskConnectStart&&(v=4);if(C)switch(u=u.height,v){case 1:v=(D-t)/10;f=["M",t,h,t+v,h,"L",t+v,h,t+v,h-u,"L",t+v,h-u,D-v,h-u,"L",D-v,h-u,D-v,h,"L",D-v,h,D,x,"L",m+c,x,m,x];break;case 2:f=["M",t,h,t+c,h,"L",t+c,h,t+c,h-u,"L",t+c,h-u,m+c,h-u,"L",m+c,x-u,m+c,x];break;case 3:f=["M",l,h,l-c,h,"L",l-c,h,l-c,h-u,"L",l-c,h-u,D-c,h-u,"L",D-c,h-u,D-
c,h,"L",D-c,h,D,h];break;case 4:f=["M",l,h,l-c,h,"L",l-c,h,l-c,h-u,"L",l-c,h-u,m+c,h-u,"L",m+c,h-u,m+c,h,"L",m+c,h,m,h]}else switch(v){case 1:f=["M",t,h,t+(D-t)/2,h,"L",t+(D-t)/2,h,t+(D-t)/2,x,"L",t+(D-t)/2,x,D,x];f=t<=D?["M",t,h,t+(D-t)/2,h,"L",t+(D-t)/2,h,t+(D-t)/2,x,"L",t+(D-t)/2,x,D,x]:["M",t,h,t+c,h,"L",t+c,h,t+c,h+(x-h)/2,"L",t+c,h+(x-h)/2,D-c,h+(x-h)/2,"L",D-c,h+(x-h)/2,D-c,x,"L",D-c,x,D,x];break;case 2:v=0>m-t?0:m-t;f=["M",t,h,t+c+v,h,"L",t+c+v,h,t+c+v,x,"L",t+c+v,x,m,x];break;case 3:v=0>
l-D?0:l-D;f=["M",l,h,l-c-v,h,"L",l-c-v,h,l-c-v,x,"L",l-c-v,x,D,x];break;case 4:f=l>m?["M",l,h,l-(l-m)/2,h,"L",l-(l-m)/2,h,l-(l-m)/2,x,"L",l-(l-m)/2,x,m,x]:["M",l,h,l-c,h,"L",l-c,h,l-c,h+(x-h)/2,"L",l-c,h+(x-h)/2,m+c,h+(x-h)/2,"L",m+c,h+(x-h)/2,m+c,x,"L",m+c,x,m,x]}r.connector?r.connector.animate({path:f}):(l=ka.animation({"stroke-opacity":n.alpha},d,"normal"),r.connector=a.path(f,y).attr({stroke:n.color,"stroke-opacity":0,"stroke-width":n.thickness,"stroke-dasharray":n.dashedStyle}).animate(l.delay(d)));
l={fromTaskId:n.fromTaskId,toTaskId:n.toTaskId,fromTaskConnectStart:n.fromTaskConnectStart,toTaskConnectStart:n.toTaskConnectStart,link:n.link,sourceType:"connector"};r.tracker=a.path(f,y).attr({stroke:Ka,"stroke-width":W(n.thickness,10),ishot:!0,cursor:n.link?"pointer":""}).data("dataObj",n).data("eventArgs",l).click(E);r.tracker.hover(S,G)}}},Oa["renderer.cartesian"])}]);