/*
 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.1

 @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},C=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(C[a[1]])return;C[a[1]]={};a[3]instanceof Array&&(q.core.version[a[1]]=a[3]);return"function"===typeof a[2]?a[2].call(q,C[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","1"],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 E(){c.test(k.readyState)?
b():g=setTimeout(E,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(E,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)},C;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")};C={outputHelpers:{text:function(b,e){C.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){C.outputTo(b.eventId,b.sender.id,b.eventType,e)}},outputHandler:function(b,k){"function"!==typeof C.outputTo?e.core["debugger"].outputFailed=!0:(e.core["debugger"].outputFailed=!1,C.currentOutputHelper(b,k))},currentOutputHelper:void 0,outputTo:void 0,enabled:!1};C.currentOutputHelper=C.outputHelpers.text;e.extend(e.core,{"debugger":{syncStateWithCharts:!0,outputFormat:function(b){return b&&"function"===typeof b.toLowerCase&&"function"===typeof C.outputHelpers[b=b.toLowerCase()]?(C.currentOutputHelper=
C.outputHelpers[b],!0):!1},outputTo:function(b){"function"===typeof b?C.outputTo=b:null===b&&(e.core["debugger"].enable(!1),delete C.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!==C.enabled)e.core[(C.enabled=b)?"addEventListener":"removeEventListener"]("*",C.outputHandler);"function"===typeof k&&(C.outputTo=
k);e.core["debugger"].outputFormat(q);return C.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,C=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,E){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,E),!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)===C){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,E,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,E,g,d,h,l);delete a[p]},0):c(e,E,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,C="file:"===k.location.protocol,b=k.ActiveXObject,N=(!b||!C)&&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,W){var E=this,g=E.xmlhttp,d=E.headers,h=E.onError,l=E.onSuccess;b="POST"===b;var L,P;if(!g||q)g=c(),E.xmlhttp=g;g.onreadystatechange=function(){try{4===g.readyState&&(!g.status&&C||200<=g.status&&300>g.status||304===g.status||1223===g.status||0===g.status?(l&&l(g.responseText,E,W,a),J.success++):h&&(h(Error("XmlHttprequest Error"),E,W,a),J.failure++),J.idle--,E.open=!1)}catch(b){h&&h(b,E,W,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++;E.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=/[\\\"<>;&]/,C=/^[^\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!==C.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,E,g,d,h){if(!a)return!1;var l=E&&E.success||E,L=E&&E.failure,p,n={type:"script",success:!1},B=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 E&&(E(),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]);E=N[p]=k.document.createElement("script");E.type="text/javascript";E.src=p;g&&(E["\v"==="v"?"text":"innerHTML"]=g);"function"===
typeof l&&(J[p]=!1,c[p]=clearTimeout(c[p]),E.onload=function(){J[p]=!0;n.success=!0;B()},E.onerror=function(){J[p]=!1;b[p]=!1;B()},E.onreadystatechange=function(){if("complete"===this.readyState||"loaded"===this.readyState)J[p]=!0,n.success=!0,B()});k.document.getElementsByTagName("head")[0].appendChild(E);"function"===typeof L&&(c[p]=setTimeout(function(){J[p]||B()},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"))},C=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()||C.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={},C={},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})},W=function(a,b){var c=a.sender,g=c.__state;e.raiseEvent("dataLoadRequestCancelled",b,c);g&&g.dhmXhrObj&&g.dhmXhrObj.abort()},E=function(a,b){var c=a.sender,g=c.__state,p=c.id;q[p]=b;C[p]&&delete C[p];C[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,E){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:!!E,config:g,successcallback:p},this,void 0,t,W)},setChartData:function(a,c,l,p,t){var n=this.options,B,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,B=c,n.dataFormat=c,w=u[B],"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===B?w.passthrough?w.passthrough(a,l):{data:a}:w.encode(a,this,l||n.dataConfiguration)||{},l["native"]=c===B,l.format=l["native"]?c:"xml",l.dataFormat=B,l.dataSource=a,l.silent=!!t,"function"===typeof p&&(l.successcallback=p),e.raiseEvent("beforeDataUpdate",l,this,void 0,E,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 C[g][a]?c=C[g][a]:q[g]?(a===q[g].format?C[g][a]=q[g]:(C[g].xml||(C[g].xml="xml"===q[g].format?q[g]:u[q[g].format].encode(q[g].data,this,c.dataConfiguration)),C[g][a]||(C[g][a]=p.decode(C[g].xml.data,this,c.dataConfiguration))),c=C[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];C[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 C[a.sender.id];b&&b.__state&&b.__state.dhmXhrObj&&b.__state.dhmXhrObj.abort()});e.addEventListener("disposed",function(a){delete C[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){C.lastIndex=0;return C.test(b)?'"'+b.replace(C,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,E,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";E=0===h.length?"[]":b?"[\n"+b+h.join(",\n"+b)+"\n"+d+"]":"["+h.join(",")+"]";b=d;return E}if(c&&"object"===typeof c)for(g=c.length,t=0;t<g;t+=1)"string"===typeof c[t]&&(q=c[t],(E=u(q,l))&&h.push(k(q)+(b?": ":":")+E));else for(q in l)Object.prototype.hasOwnProperty.call(l,q)&&(E=u(q,l))&&h.push(k(q)+(b?": ":":")+E);E=0===h.length?"{}":b?"{\n"+b+h.join(",\n"+
b)+"\n"+d+"}":"{"+h.join(",")+"}";b=d;return E}}"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,
C=/[\\\"\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,C,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];C=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"},C={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}},E,g;E={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,B,w,R,v;for(k=0;k<g.length;k+=1)switch(B=g[k],n=B.nodeName.toLowerCase(),B.nodeType){case 1:w=E.attr(B.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);B.childNodes.length&&((v=C[l])&&v[n]?E.child(b,B.childNodes,n,L):E.child(w,B.childNodes,n,L));(v=C[l])&&v[n]||
E.append(w,b,n,l);break;case 3:if(v=t[l])n=v,w=B.data,E.append(w,b,n,l);v=a[l];"string"===typeof v&&L.chart&&parseInt(L.chart.compactdatamode,10)&&(n=v,w=B.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,B,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/,C=a.length;J.test(a.charAt(--C)););a=a.slice(0,C+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){B=c.createElement("chart");for(q=(R=t.attributes)&&R.length||0;q--;)B.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]),B.appendChild(w);for(;q--;)w=t.removeChild(v[q]),B.insertBefore(w,B.firstChild);c.replaceChild(B,t);t=B}}catch($){g.errorObject=$}t?(t.attributes&&
(b[n]=E.attr(t.attributes)),t.childNodes&&E.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="",E="",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,E+="<"+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):E+=e(c[h],l,p,t):t.applyDSV&&(L=b.qualify("dsv",
l,p))?E+=c[h]:(L=b.qualify("text",l,p))?(g=b.qualify("tag",l,p)||L,E+="<"+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+(""!==E?">"+E+"</"+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:C,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,C=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,E,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,B=!1,w=!1,R=!1,v=!1;k=!1;var na=b,ea={},Z,$,pa,Ca,fa,ja,Q,ya,F,S,ba;d=0;t=new N({separator:L.exportdataseparator,qualifier:L.exportdataqualifier,numberFormatted:L.exportdataformattedval});
u.formatNumber&&t.numberFormatted&&(na=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!==(Z=p.dials&&p.dials.dial||p.pointers&&p.pointers.pointer||p.value))if(ea.gauge=!0,"string"===typeof Z)t.set(0,0,na(Z)),ea.singlevalue=!0,"string"===
typeof p.target&&(t.set(0,1,na(p.target)),ea.bullet=!0);else for(t.setRow(0,["Id","Value"]),ea.multivalue=!0,a=0,h=1,d=Z.length;a<d;a+=1,h+=1)t.setRow(h,[h,na(Z[a].value)]);else if(Z=p.dataset||!(p.data instanceof Array)&&[]){ea.multiseries=!0;E=1;if($=p.lineset)Z=Z.concat($),ea.lineset=!0;if(pa=p.axis)Z=Z.concat(pa),ea.multiaxis=!0;ja=Z.length;fa=q.length;if(!(ja=Z.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<ja;a+=1)for(ya=Z,ya[a].dataset?(ya=ya[a].dataset,
g=0,Ca=ya.length):(ya=Z,g=a,Ca=g+1);g<Ca&&!B&&!R;g+=1,E+=1){n=ya[g];t.set(0,E,n.seriesname);"string"===typeof n.data&&(ea.compactdata=!0,n.data=n.data.split(L.dataseparator||"|"));h=d=0;for(F=n.data&&n.data.length||0;d<F||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){B=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=C(S?S.value:"");Q=isNaN(Q)?"":na(Q);t.set(k,E,Q);if(w||l||S.errorvalue)w||t.set(0,E+1,"Error"),ba=1,t.set(k,E+1,na(S.errorvalue));h+=1}}ba&&(E+=ba,ba=0)}$&&(Z=Z.slice(0,-$.length));pa&&(Z=Z.slice(0,-pa.length))}else if(Z=p.data){t.set(0,1,L.yaxisname||"Value");ea.singleseries=!0;k="1"==L.showsumatend;a=0;for(fa=Z.length;a<fa;a+=1)S=Z[a],S.vline||(Q=C(S.value?S.value:""),t.setRow(a+1,[S.label||S.name,isNaN(Q)?"":(d+=Q,na(Q))]));k&&(ea.summation=!0,t.setRow(a+1,[L.sumlabel||"Total",
na(d)]))}if(v)for(t.clear(),t.setRow(0,["Open","Close","High","Low"]),a=0,k=1,Z=p.dataset,Ca=Z.length;a<Ca;a+=1)for(d=0,n=Z[a]&&Z[a].data||[],ja=n.length;d<ja;d+=1,k+=1)S=n[d]||{},t.setRow(d+1,[na(S.open),na(S.close),na(S.high),na(S.low)]);else if(B)for(t.clear(),w=!1,ba=0,t.setRow(0,["Series","x","y"]),a=0,k=1,Z=p.dataset,Ca=Z.length;a<Ca;a+=1)for(d=0,n=Z[a]&&Z[a].data||[],ja=n.length;d<ja;d+=1,k+=1){S=n[d]||{};Q=[Z[a].seriesname,na(S.x),na(S.y)];void 0!==S.z&&(Q.push(na(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=na(S.errorvalue),Q.push(S.errorvalue,void 0===S.horizontalerrorvalue?p:na(S.horizontalerrorvalue),void 0===S.verticalerrorvalue?p:na(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();B={};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&&(B[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(),E=S.columnid.toLowerCase(),B[k]||(B[k]=t.rowCount,t.set(t.rowCount,0,S.rowid)),R[E]||(R[E]=t.columnCount,t.set(0,t.columnCount,S.columnid)),t.set(B[k],R[E],na(S.value))}Z=q=$=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,C=/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={},W=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,"")})}}(),E=J.getDependentModuleName=function(a){var b=[],c,d;a=W(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-"+
W(a[b]).predicate]))return!1;return!0}return Boolean(e.modules["modules.renderer.js-"+W(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],E=L&&L.match(/[^\/]*$/i)[0],pa=a[L];p+=1;if(L){if(g(E)){k();return}if(t[E]){e.raiseError(h||e.core,"1112201445A","run","JavaScriptRenderer~loadModule() ","required resources are absent or blocked from loading.");d&&d(E);return}}else d&&d(E);L=e.core.options["html5"+e.capitalizeString(E)+
"Src"];e.loadScript(void 0===L?pa:L,{success:function(){g(E)?k():d&&d(E)},failure:d&&function(){d(E)}},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(C&&!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=W(a).subject;a=W(a).predicate;b=void 0===b?a:W(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=W(a).predicate;b=W(b).predicate;return void 0!==(J.moduleDependencies[a]&&J.moduleDependencies[a][b])};J.cleanupWaitingCommands=function(a){for(var b=a.chartType(),b=E(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||C?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,C=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,W=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,E=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,B=n.max,w=n.min,R={pageX:0,pageY:0},v=e.hcLib||(e.hcLib={}),na=function(a){var b=a.data,c=b.chart,m=c.paper,r=a.state,d=F(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,A=h-b.ox,l=n-b.oy,p=b.bBox,v=b.ox,ga=b.oy,U=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,A=b.attr;switch(r){case "start":a=Z(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(A));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;A=h-b.ox;l=n-b.oy;v=b.ox;ga=b.oy;b.isDragged||(c={chart:c,selectionLeft:(U?w(v,v+A):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);A=-(v-w(v-(v-B(v+A,t)),pa));l=-(ga-w(ga-(ga-B(ga+l,p)),q));e.attr({x:(U?
w(v,v+A):t)+.5*T,y:(k?w(ga,ga+l):p)+.5*T,width:U?E(A):L,height:k?E(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}}}(),Z=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},$=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},ja=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},F=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=F(ya(b));var c=b.pageX,r=b.pageY,m=Z(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},A=function(a,b){a=a||!1===a||0===a?Number(a):NaN;return isNaN(a)?null:b?E(a):a},ga=function(a){return"string"===typeof a?a.replace(t,"<br />"):""},
U=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=U(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(A){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=U(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=U(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)}C?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(",")},la=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,A=c.fx,l=c.fy,p=c.gradientUnits,w=c.x1,v=c.y1,F=c.x2,ga=c.y2,U=1,k,t,B,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,A,l,w,F,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)B=d[0].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),k=g.length?"rgba("+ab(B).join(",")+","+
.01*N(g[0])+")":B.replace(/^#?([a-f0-9]{3,6})/ig,"#$1");else{b=0;for(t=d.length;b<t;b++)B=d[b].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),isNaN(r[b])||(r[b]=N(r[b]),B+=":"+r[b],isNaN(r[b+1])||(r[b+1]=N(r[b+1])+r[b])),isNaN(g[b])||""===g[b]||(U=.01*g[b]),d[b]="rgba("+ab(B).join(",")+","+U+")",isNaN(r[b])||(d[b]=d[b]+":"+r[b]);k+=d.join("-");if(void 0!==e||void 0!==A||void 0!==h||c.radialGradient)k="xr("+[A,l,e,h,n,p].join()+")"+k;else{k="-"+k;if(void 0!==w||void 0!==v||void 0!==F||void 0!==ga)k="("+[w,v,
F,ga,p].join()+")"+k;void 0===m&&(m=0);k=360-N(m)%360+k}}return a[L]=k}}(),Ra=function(){return function(){return""}}(),ib=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},eb=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?la(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:la(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?la(e,r(a.labelbgalpha,b.bgalpha,c.labelbgalpha,a.labelalpha,b.alpha,c.labelalpha,100)):"",borderDash:r(a.labelborderdashed,b.borderdashed,c.labelborderdashed,0)?lb(r(a.labelborderdashlen,b.borderdashlen,c.labelborderdashlen,4),r(a.labelborderdashgap,b.borderdashgap,c.labelborderdashgap,2),h):"none"};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,A=0<m||0<e.match(b)[1]?!0:!1,l;if(n||A)A||(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,D,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:D,link:fa(r.labellink,m.link,g.labellink),style:eb(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 D=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,D?"left":"center"),h=fa(b.labelvalign,D?"middle":"bottom").toLowerCase(),n=r(b.labelposition,0),A=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(/^#?/,"#"):"",F=fa(b.labelcolor,d.vLineLabelColor,b.color,d.vLineColor).replace(/^#?/,"#"),k=r(b.thickness,d.vLineThickness,1),U=.5*k,t=Boolean(Number(fa(b.dashed,0))),B=r(b.dashlen,5),L=r(b.dashgap,2),S=d.smartLabel,pa=parseInt(m.fontSize,10)+2,E=0,q=r(b.rotatelabel,d.rotateVLineLabels)?270:0,A=0>A||1<A?.5:A,n=0>n||1<n?0:n;S.setStyle(m);S=S.getOriSize(M);w=la(w,l?p:"0");if(D){switch(h){case "top":pa-=S.height+
U+2;break;case "middle":pa-=.5*S.height+1;break;default:pa+=U}b.labelhalign||(E-=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":E+=k;break;case "right":E-=k+1}}a.plotLines.push({isVline:!0,color:w,width:k,value:c-1+A,zIndex:r(b.showontop,d.showVLinesOnTop)?5:3,dashStyle:t?lb(B,L,k):"none",label:{text:M,align:D?"left":"center",offsetScale:n,rotation:q,y:pa,x:E,textAlign:K,backgroundColor:v,borderWidth:l&&g?1:0,borderType:l&&
g?"solid":"",borderColor:l&&g?F:"",backgroundOpacity:l&&e?fa(b.labelbgalpha,d.vLineLabelBgAlpha)/100:0,style:{color:l?F: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 A,l,w,p,v,F,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;A=Math.floor(Math.log(Math.abs(c))/Math.LN10);l=Math.floor(Math.log(Math.abs(d))/Math.LN10);l=Math.max(l,A);A=Math.pow(10,l);2>Math.abs(c)/A&&2>Math.abs(d)/A&&(l--,A=Math.pow(10,l));l=Math.floor(Math.log(c-d)/Math.LN10);w=Math.pow(10,l);0<c-d&&10<=A/
w&&(A=w);l=(Math.floor(c/A)+1)*A;0>d?w=-1*(Math.floor(Math.abs(d/A))+1)*A:e?w=0:(w=Math.floor(Math.abs(d/A)-1)*A,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<A?A/10:A,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(F=
1;F<=Math.floor((K+1)/2);F++)v=l*F,!(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,A,!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,A),0===n&&(n=r(K,m+1,A),ga=1),K=n));return{Max:c,Min:d,Range:m,interval:A,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}(),Jb={"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 A,l=d.trendStyle,w,p,v,F,k,U,t,B,L,S,E,q,T,ba=h?"xAxis":"dataLabels";if(h?d.showVLines:d.showTrendlines)for(A=0,p=a.length;A<p;A+=1)if((T=a[A])&&T.line)for(w=0,v=T.line.length;w<v;w+=1)F=T.line[w],S=d.numberFormatter.getCleanValue(fa(F.startvalue,F.value,0)),E=d.numberFormatter.getCleanValue(fa(F.endvalue,
fa(F.startvalue,F.value,0))),h?B=b:g&&F.parentyaxis&&/^s$/i.test(F.parentyaxis)?(B=b[1],q=1):B=b[0],U=B.max,t=B.min,k=!1,U>=S&&U>=E&&t<=S&&t<=E&&(g&&F.parentyaxis&&/^s$/i.test(F.parentyaxis)?k="1"!==fa(F.valueonleft,d.trendlineValuesOnOpp):g||(k="1"===fa(F.valueonright,d.trendlineValuesOnOpp)),U=Boolean(r(F.istrendzone,h?1:0)),(t=(h?d.showVLineLabels:d.showTrendlineLabels)?ga(fa(F.displayvalue,d.numberFormatter[ba](k?E:S,q))):"")?(L=S<E,k={text:t,textAlign:e?"center":k?"left":"right",align:e?Jb[U][!n][L]:
k?"right":"left",verticalAlign:e?"bottom":"middle",rotation:0,x:0,y:0,style:l},t=fa(F.color,d.trendlineColor),F.alwaysVisible=U,t&&(k.style=xa({},l),k.style.color=t.replace(c,"#"))):k=void 0,t=pa(ga(fa(F.tooltext,T.tooltext,d.trendLineToolText))),t=m(t,[7,15,16,17,18,19],{startValue:S,startDataValue:d.numberFormatter[ba](S,q),endValue:E,endDataValue:d.numberFormatter[ba](E,q),axisName:B.title&&B.title.text},F),L=r(F.thickness,d.trendlineThickness,1),U?B.plotBands.push({isTrend:!0,color:la(fa(F.color,
d.trendlineColor),fa(F.alpha,d.trendlineAlpha,40)),from:S,to:E,label:k,zIndex:d.is3d||"1"!==fa(F.showontop,d.showTrendlinesOnTop)?3:5,tooltext:t,alwaysVisible:F.alwaysVisible}):B.plotLines.push({isTrend:!0,color:la(fa(F.color,d.trendlineColor,d.trendlineColor),fa(F.alpha,d.trendlineAlpha,99)),value:S,to:E,width:L,dashStyle:"1"==fa(F.dashed,d.trendlinesAreDashed)?lb(r(F.dashlen,d.trendlinesDashLen),r(F.dashgap,d.trendlinesDashGap),L):"none",label:k,zIndex:d.is3d||"1"!==fa(F.showontop,d.showTrendlinesOnTop)?
3:5,tooltext:t}))}}(),lb=function(a,b,c,d){return d||void 0===d?[a,b]:"none"},ob=function(){},hb=function(a,b,c){var d,r=hb[a];r||(r=function(){},r.prototype=c instanceof ob?c:new ob,r.prototype.constructor=r,r=hb[a]=new r);c&&(r.base=c);r.name=a;for(d in b)switch(typeof b[d]){case "object":if(b[d]instanceof ob){r[d]=b[d][d];break}default:r[d]=b[d];break;case "undefined":delete r[d]}return this instanceof hb?(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=$(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:F,getMouseCoordinate:S,addEvent:ja,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:Z,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=Z(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",na),n.push(ja(d,"pointerdrag",na,b)));c.link&&(Q(a.container,"mouseup mousedown",ea),n.push(ja(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"},A=a.items,
l=a.position,w=a.verticalPadding||3,p=a.horizontalPadding||6,F={},k,ga,t,U,S,L,E,pa,q,T,Da,P,R;if(c)k=Z(c.container);else return!1;U=function(){var a=F.items,c=a.length,m=0,g=0,e=0,D,s;F.menuItems||(F.menuItems=[]);for(d.setStyle(h);c--;)D=a[c],D=d.getOriSize(D.text),e||(e=D.height+2*w),m+=e,g=B(g,D.width+2*p);F.height=m;F.width=g;F.itemH=e;this.style.width=g+"px";F.menuRect||(m=F.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&&!C?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(D=a[c],F.menuItems[c])F.menuItems[c].label.innerHTML=D.text;else{F.menuItems[c]={};m=F.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];F.menuRect.appendChild(m);m.innerHTML=D.text;v.dem.listen(m,"click",R);v.dem.listen(m,"pointerhover",T);F.menuItems[c].box._itemIdx=c}for(;F.menuItems[c];)F.menuItems[c].box.parentNode.removeChild(F.menuItems[c].box),F.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(F.hide,
800)};E=function(){ga&&clearTimeout(ga)};pa=function(a){var b=a.x;a=a.y;var d={x:b,y:a},m=F.width,r=F.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(){F.hide()};T=function(a){a.target&&a.target.parentNode&&("start"===a.state?Da:P).call(a.target)};Da=function(){var a=F.menuItems[this._itemIdx],b;E();for(b in e)a.box.style[b]=e[b]};P=function(){var a=F.menuItems[this._itemIdx],b;for(b in h)a.box.style[b]=h[b];L()};R=function(a){var b=
F.items[this._itemIdx];b.onclick&&b.onclick.call(b,a);a.originalEvent.stopPropagation?a.originalEvent.stopPropagation():a.originalEvent.cancelBubble=!0;F.hide()};F.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)};F.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)};F.redraw=function(){var a=this.menuContainer;this.items=A;a?U.call(this.menuContainer):l&&void 0!==l.x&&void 0!==l.y?(this.menuContainer=S(),U.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(),U.call(this.menuContainer))};F.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)};F.hide=function(){this.visible&&(this.visible=!1,F.menuContainer.style.display="none",F.menuContainer.style.left=-F.width+"px",F.menuContainer.style.top=-F.height+"px",m.unclick(q))};F.update=function(a){a&&a.length&&(this.items=a,this.redraw())};F.updatePosition=function(a){var b=k.left,d=k.top;k=Z(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)};F.add=function(a){var b=this.menuItems,c=b.length,m;d.setStyle(h);this.width=B(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];F.menuRect.appendChild(b);b.innerHTML=a.text;v.dem.listen(b,"click",R);v.dem.listen(b,"pointerhover",T);F.menuItems[c].box._itemIdx=c;this.height+=this.itemH};
F.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};F.setPosition=function(a){void 0!==a.x&&void 0!==a.y&&(this.menuContainer.style.x=a.x,this.menuContainer.style.y=a.y)};F.destroy=function(){this.removeItems();this.menuContainer.parentNode.removeChild(this.menuContainer)};A&&A.length&&(F.redraw(),F.hide());
return F},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:A,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:$,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:C,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||"",A=m?fa(d,n,h):fa(h,n,d),l=A,F,w,p,v,ga,t,U,B,S,L;void 0!==A&&(g&&(A=k.decodeURIComponent?k.decodeURIComponent(A):k.unescape(A)),A=A.replace(/^\s+/,"").replace(/\s+$/,
""),-1!==A.search(/^[a-z]*\s*[\-\:]\s*/i)&&(ga=A.split(/\s*[\-\:]\s*/)[0].toLowerCase(),L=ga.length),setTimeout(function(){switch(ga){case "j":A=A.replace(/^j\s*\-/i,"j-");F=A.indexOf("-",2);-1===F?qa(A.slice(2)):qa(A.substr(2,F-2).replace(/\s/g,""),A.slice(F+1));break;case "javascript":Na(A.replace(/^javascript\s*\:/i,""));break;case "n":A.replace(/^n\s*\-/i,"n-");k.open(c(A.slice(2),g));break;case "f":A=A.replace(/^f\s*\-/i,"f-");F=A.indexOf("-",2);-1!==F?(w=A.substr(2,F-2))&&k.frames[w]?k.frames[w].location=
c(A.slice(F+1),g):k.open(c(A.slice(F+1),g),w):k.open(c(A.slice(2),g));break;case "p":A=A.replace(/p\s*\-/i,"p-");F=A.indexOf("-",2);p=A.indexOf(",",2);-1===F&&(F=1);v=c(A.slice(F+1),g);k.open(v,A.substr(2,p-2),A.substr(p+1,F-p-1)).focus();break;case "newchart":case "newmap":":"===A.charAt(L)&&(F=A.indexOf("-",L+1),S=A.substring(L+1,F),L=F);F=A.indexOf("-",L+1);t=A.substring(L+1,F).toLowerCase();switch(t){case "xmlurl":case "jsonurl":B=A.substring(F+1,A.length);break;case "xml":case "json":var d=U=
A.substring(F+1,A.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);B=m;t="json"}e.raiseEvent("linkedChartInvoked",{alias:S,linkType:t.toUpperCase(),data:B},b);break;default:k.location.href=A}e.raiseEvent("linkClicked",{linkProvided:l,linkInvoked:A,linkAction:ga&&ga.toLowerCase()},b)},0))}},graphics:{parseAlpha:Sa,convertColor:la,getDarkColor:La,getLightColor:za,
mapSymbolName:function(a,b){var c="circle";a=A(a);3<=a&&(c=(b?"spoke_":"poly_")+a);return c},getColumnColor:function(a,b,c,d,m,r,g,e,h){var A,n;A=a.split(",");n=b.split(",");r=r.split(",");g=g.split(",");a=a.replace(/\s/g,"").replace(/\,$/,"");h?e={FCcolor:{color:A[0],alpha:n[0]}}:m?(a=A[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,A.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:ib,getValidColor:function(a){return W.test(ib(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),A=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=A;break;case 1:c=h;m=a;r=A;break;case 2:c=A;m=a;r=g;break;case 3:c=A;m=h;
r=a;break;case 4:c=g;m=A;r=a;break;case 5:c=a,m=A,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 A=
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=A;e.height=d;e.y=g/2-d/2;e.x=r/2-A/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=A;e.height=d;e.tileInfo={};e.tileInfo.xCount=a=Math.ceil(n/A);
e.tileInfo.yCount=h=Math.ceil(h/d);b=l(b,c,A*a,d*h,r,g);e.y=b.y;e.x=b.x;break;case "fit":a=A/d>n/h?n/A:h/d;e.width=A*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=A/d>n/h?h/d:n/A;e.width=A*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,A,d,r,g),e.width=A,e.height=d,e.y=b.y,e.x=b.x}return e},setLineHeight:Ea,parsexAxisStyles:eb,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:lb,axisLabelAdder:$a,chartAPI:hb,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={},B=[],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++]],
B.push(k.apply(b,d)),p)return p=g,B;for(R=0;R<v;R++)if(k=e[R],"zIndex"in k)if(k.zIndex==q[l]){B.push(k.apply(b,d));if(p)break;do if(l++,(k=n[q[l]])&&B.push(k.apply(b,d)),p)break;while(k)}else n[k.zIndex]=k;else if(B.push(k.apply(b,d)),p)break;p=g;c=w;return B.length?B: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,B=[a];p=0;for(k=g.length;p<k;p++)for(n=0;n<B.length;n+=l.length-2){l=[n,1];d=B[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]);B.splice.apply(B,l)}p=0;for(k=B.length;p<k;p++)for(d=B[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,H,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,G=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*H)+6*b-12*f+6*d)-3*b+3*f,e=e+r[g]*ha(G*G+X*X);return m*e}function p(a,b,f,s,d,z,H,m,O){if(!(0>O||
c(a,b,f,s,d,z,H,m)<O)){var r=.5,e=1-r,g;for(g=c(a,b,f,s,d,z,H,m,e);.01<xa(g-O);)r/=2,e+=(g<O?1:-1)*r,g=c(a,b,f,s,d,z,H,m,e);return e}}function a(a,f,s){a=b._path2curve(a);f=b._path2curve(f);for(var d,z,H,m,O,r,e,g,X,G,A=s?0:[],D=0,h=a.length;D<h;D++)if(X=a[D],"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(G=f[n],"M"==G[0])H=e=G[1],m=g=G[2];else{"C"==G[0]?(G=[H,m].concat(G.slice(1)),H=G[6],m=G[7]):
(G=[H,m,H,m,e,g,e,g],H=e,m=g);var l;var F=X,M=G;l=s;var K=b.bezierBBox(F),k=b.bezierBBox(M);if(b.isBBoxIntersect(K,k)){for(var K=c.apply(0,F),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,F.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(F=0;F<k;F++){var tb=p[I],wa=p[I+1],M=w[F],v=w[F+1],t=.001>xa(wa.x-tb.x)?"y":"x",ga=
.001>xa(v.x-M.x)?"y":"x",Ob;Ob=tb.x;var V=tb.y,U=wa.x,mc=wa.y,B=M.x,S=M.y,pa=v.x,Y=v.y;if(Da(Ob,U)<T(B,pa)||T(Ob,U)>Da(B,pa)||Da(V,mc)<T(S,Y)||T(V,mc)>Da(S,Y))Ob=void 0;else{var L=(Ob*mc-V*U)*(B-pa)-(Ob-U)*(B*Y-S*pa),E=(Ob*mc-V*U)*(S-Y)-(V-mc)*(B*Y-S*pa),q=(Ob-U)*(S-Y)-(V-mc)*(B-pa);if(q){var L=L/q,E=E/q,q=+L.toFixed(2),da=+E.toFixed(2);Ob=q<+T(Ob,U).toFixed(2)||q>+Da(Ob,U).toFixed(2)||q<+T(B,pa).toFixed(2)||q>+Da(B,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:E}}else Ob=void 0}Ob&&aa[Ob.x.toFixed(4)]!=Ob.y.toFixed(4)&&(aa[Ob.x.toFixed(4)]=Ob.y.toFixed(4),tb=tb.t+xa((Ob[t]-tb[t])/(wa[t]-tb[t]))*(wa.t-tb.t),M=M.t+xa((Ob[ga]-M[ga])/(v[ga]-M[ga]))*(v.t-M.t),0<=tb&&1.001>=tb&&0<=M&&1.001>=M&&(l?ac++:ac.push({x:Ob.x,y:Ob.y,t1:T(tb,1),t2:T(M,1)})))}l=ac}else l=l?0:[];if(s)A+=l;else{K=0;for(k=l.length;K<k;K++)l[K].segment1=D,l[K].segment2=n,l[K].bez1=X,l[K].bez2=G;A=A.concat(l)}}}return A}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 W(){return this.x+" "+this.y+" "+this.width+" × "+this.height}function E(a,b,c,f,s,d){function z(a,b){var c,f,fb,s;fb=a;for(f=0;8>f;f++){s=((O*fb+m)*fb+H)*fb-a;if(xa(s)<b)return fb;c=(3*O*fb+2*m)*fb+H;if(1E-6>xa(c))break;fb-=s/c}c=0;f=1;fb=a;if(fb<c)return c;if(fb>f)return f;for(;c<f;){s=((O*fb+m)*fb+H)*fb;if(xa(s-a)<b)break;a>s?c=fb:f=fb;fb=(f-c)/2+c}return fb}var H=3*b,m=3*(f-b)-H,
O=1-H-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[A(s)]=a[s],c.push(A(s)));c.sort(K)}this.anim=f;this.top=c[c.length-1];this.percents=c}function d(a,c,f,d,z,H){f=A(f);var e,g,X,G,D,h,n=a.ms,l={},F={},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=
+F;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];D=a.percents[h-1]||0;n=n/a.top*(f-D);G=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]),F[I]=e[I],M[I]){case P:K[I]=(F[I]-l[I])/n;break;case "colour":l[I]=b.getRGB(l[I]);h=b.getRGB(F[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],F[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],F[I]))for(l[I]=w.from,F[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]=(F[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,F[I]),F[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;F[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 E(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:F,el:c,callback:e.callback,prev:D,next:G,repeat:H||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 db();X&&(p.start=new Date-p.ms*d);1==Oa.length&&od(db)}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",B=Array.prototype.slice,w=Array.prototype.splice,R=function(){return function(){}.hasOwnProperty("prototype")}(),v={doc:document,win:e},na=Object.prototype.hasOwnProperty.call(v.win,"Raphael"),ea=v.win.Raphael,Z=v.doc,$=v.win,pa=b.supportsTouch="createTouch"in Z,Ca=b.supportsOnlyTouch=pa&&!($.navigator.maxTouchPoints||$.navigator.msMaxTouchPoints),fa=function(){};
b.ca=b.customAttributes=fa.prototype;var ja=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=ja.prototype=b.prototype,ya={circle:1,rect:1,path:1,ellipse:1,text:1,image:1,group:1},F="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=$.String,A=$.parseFloat,ga=$.parseInt,U=$.Math,Da=U.max,T=U.min,xa=U.abs,va=U.pow,qa=U.cos,Na=U.sin,ha=U.sqrt,Sa=U.round,la=U.PI,sa=la/180,Ra=180/la,ib=r.prototype.toLowerCase,La=r.prototype.toUpperCase,za=$.Object.prototype.toString,ab=/[, ]+/,Ea=/\{(\d+)\}/g;b._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i;var eb=/^\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,Jb=/([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,lb=/(-?\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 ob={NaN:1,Infinity:1,"-Infinity":1},hb={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},D={},K=function(a,b){return A(a)-A(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"]]},ka=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"]]},oa=b._getPath={group:function(){return!1},path:function(a){return a.attr("path")},
circle:function(a){a=a.attrs;return ka(a.cx,a.cy,a.r)},ellipse:function(a){a=a.attrs;return ka(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,H,m,O;a=s(a);d=0;for(H=a.length;d<H;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,H,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],H=b[d]}catch(O){continue}if("object"!==typeof H)c&&void 0===H||(a[d]=H);else{if(null===z||"object"!==typeof z)z=a[d]=H instanceof Array?[]:{};m=checkCyclicRef(H,s);-1!==m?z=a[d]=f[m]:Ka(z,H,c,f,s)}}else for(d in b){try{z=a[d],H=b[d]}catch(r){continue}if(null!==
H&&"object"===typeof H)if(m=za.call(H),"[object Object]"===m){if(null===z||"object"!==typeof z)z=a[d]={};m=checkCyclicRef(H,s);-1!==m?z=a[d]=f[m]:Ka(z,H,c,f,s)}else"[object Array]"===m?(null!==z&&z instanceof Array||(z=a[d]=[]),m=checkCyclicRef(H,s),-1!==m?z=a[d]=f[m]:Ka(z,H,c,f,s)):a[d]=H;else a[d]=H}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=ib.call(b);return"finite"==b?!ob.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*U.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=$.ENABLE_RED_CANVAS&&($.CanvasRenderingContext2D||Z.createElement("canvas").getContext)?"CANVAS":$.SVGAngle||Z.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML";if("VML"==
b.type){var nb=Z.createElement("div"),Ha;nb.innerHTML='<v:shape adj="1"/>';Ha=nb.firstChild;Ha.style.behavior="url(#default#VML)";if(!Ha||"object"!=typeof Ha.adj)return b.type="";nb=null}b.svg=!((b.vml="VML"==b.type)||(b.canvas="CANVAS"==b.type));b._Paper=ja;b._id=0;b._oid=0;b.angle=function(a,c,f,s,d,z){return null==d?(a-=f,c-=s,a||c?(U.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);$=v.win=a;Z=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=sb(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 H=v.doc.createElement("i");H.title="Raphaël Colour Picker";H.style.display="none";v.doc.body.appendChild(H);ma=sb(function(a){H.style.color=a;return v.doc.defaultView.getComputedStyle(H,"").getPropertyValue("color")})}return ma(a)},Ma=function(){return"hsb("+[this.h,this.s,this.b]+")"},Ib=function(){return"hsl("+[this.h,this.s,
this.l]+")"},Wa=function(){return this.hex},Db=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=Db(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=Db(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:Ib}};b._path2string=function(){return this.join(",").replace(Xb,"$1")};var sb=b._cacher=function(a,b,c){function f(){var s=B.call(arguments,0),d=s.join("␀"),z=f.cache=f.cache||{},H=f.count=f.count||[];if(z.hasOwnProperty(d)){a:for(var s=
H,H=d,m=0,O=s.length;m<O;m++)if(s[m]===H){s.push(s.splice(m,1)[0]);break a}return c?c(z[d]):z[d]}1E3<=H.length&&delete z[H.shift()];H.push(d);z[d]=a[L](b,s);return c?c(z[d]):z[d]}return f};b._preload=function(a,b){var c=Z.createElement("img");c.style.cssText="position:absolute;left:-9999em;top:-9999em";c.onload=function(){b.call(this);this.onload=null;Z.body.removeChild(this)};c.onerror=function(){Z.body.removeChild(this)};Z.body.appendChild(c);c.src=a};b.getRGB=sb(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};!hb.hasOwnProperty(a.toLowerCase().substring(0,2))&&"#"!==a.charAt()&&(a=ma(a));if(a=a.match(eb)){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=A(z[0]),
"%"==z[0].slice(-1)&&(f*=2.55),s=A(z[1]),"%"==z[1].slice(-1)&&(s*=2.55),d=A(z[2]),"%"==z[2].slice(-1)&&(d*=2.55),"rgba"==a[1].toLowerCase().slice(0,4)&&(c=A(z[3])),z[3]&&"%"==z[3].slice(-1)&&(c/=100));if(a[5])return z=a[5].split(Ga),f=A(z[0]),"%"==z[0].slice(-1)&&(f*=2.55),s=A(z[1]),"%"==z[1].slice(-1)&&(s*=2.55),d=A(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=A(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=A(z[0]),"%"==z[0].slice(-1)&&(f*=2.55),s=A(z[1]),"%"==z[1].slice(-1)&&(s*=2.55),d=A(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=A(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=sb(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=sb(function(a,c,f){return b.hsb2rgb(a,c,f).hex});b.hsl=sb(function(a,c,f){return b.hsl2rgb(a,c,f).hex});b.rgb=sb(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(Jb,function(a,b,
c){var d=[];a=b.toLowerCase();c.replace(lb,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=sb(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=[];ib.call(b);f.replace(lb,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,H,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*H,e=a+2*m*(c-a)+g*(s-2*c+a),h=b+2*m*(f-b)+g*(d-2*f+b),G=c+2*m*(s-c)+g*(z-2*s+c),g=f+2*m*(d-f)+g*(H-
2*d+f);a=O*a+m*c;b=O*b+m*f;s=O*s+m*z;d=O*d+m*H;H=90-180*U.atan2(e-G,h-g)/la;(e>G||h<g)&&(H+=180);return{x:X,y:r,m:{x:e,y:h},n:{x:G,y:g},start:{x:a,y:b},end:{x:s,y:d},alpha:H}};b.bezierBBox=function(a,c,f,s,d,z,H,m){b.is(a,"array")||(a=[a,c,f,s,d,z,H,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=[],H,m=0,O=a.length;m<O;m++)H=a[m],"M"==H[0]?(c=H[1],f=H[2],d.push(c),z.push(f)):(c=ia(c,f,H[1],H[2],H[3],H[4],H[5],H[6]),d=d.concat(c.min.x,c.max.x),z=z.concat(c.min.y,c.max.y),c=H[5],f=H[6]);a=T[L](0,d);H=T[L](0,z);d=Da[L](0,d);z=Da[L](0,z);z={x:a,y:H,x2:d,y2:z,width:d-a,height:z-
H};b.bbox=ta(z);return z},Fa=function(a){a=ta(a);a.toString=b._path2string;return a},Eb=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,H=0,m=0;"M"==a[0][0]&&(s=a[0][1],d=a[0][2],z=s,H=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]!=ib.call(e[0]))switch(r[0]=ib.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],H=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,H=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=H;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},Nb=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,H=0,m=0;f=[];"M"==a[0][0]&&(s=+a[0][1],d=+a[0][2],z=s,H=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,G=h.length;X<G;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,H=+r[2]+d;default:for(X=1,G=r.length;X<G;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=H;break;case "H":s=m[1];break;case "V":d=m[1];break;case "M":z=m[m.length-2],
H=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},Lb=function(a,b,c,f){return[a,b,c,f,c,f]},Ua=function(a,b,c,f,s,d){var z=1/3,H=2/3;return[z*a+H*c,z*b+H*f,z*s+H*c,z*d+H*f,s,d]},Aa=function(a,b,c,f,s,d,z,H,m,r){var O=120*la/180,e=sa*(+s||0),g=[],h,X=sb(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)D=r[0],h=r[1],d=r[2],G=r[3];else{h=X(a,b,-e);a=h.x;b=h.y;h=X(H,m,-e);H=h.x;m=h.y;qa(sa*s);Na(sa*s);h=(a-H)/2;D=(b-
m)/2;G=h*h/(c*c)+D*D/(f*f);1<G&&(G=ha(G),c*=G,f*=G);var G=c*c,A=f*f,G=(d==z?-1:1)*ha(xa((G*A-G*D*D-A*h*h)/(G*D*D+A*h*h)));d=G*c*D/f+(a+H)/2;var G=G*-f*h/c+(b+m)/2,D=U.asin(((b-G)/f).toFixed(9));h=U.asin(((m-G)/f).toFixed(9));D=a<d?la-D:D;h=H<d?la-h:h;0>D&&(D=2*la+D);0>h&&(h=2*la+h);z&&D>h&&(D-=2*la);!z&&h>D&&(h-=2*la)}if(xa(h-D)>O){var g=h,A=H,n=m;h=D+O*(z&&h>D?1:-1);H=d+c*qa(h);m=G+f*Na(h);g=Aa(H,m,c,f,s,0,z,A,n,[h,g,d,G])}d=h-D;s=qa(D);O=Na(D);z=qa(h);h=Na(h);d=U.tan(d/4);c=4/3*c*d;d*=4/3*f;f=[a,
b];a=[a+c*O,b-d*s];b=[H+c*h,m-d*z];H=[H,m];a[0]=2*f[0]-a[0];a[1]=2*f[1]-a[1];if(r)return[a,b,H].concat(g);g=[a,b,H].concat(g).join().split(",");r=[];H=0;for(m=g.length;H<m;H++)r[H]=H%2?X(g[H-1],g[H],e).y:X(g[H],g[H+1],e).x;return r},bb=function(a,b,c,f,s,d,z,H,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)*H}},ia=sb(function(a,b,c,f,s,d,z,H){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,H],h=[a,z];"1e12"<xa(e)&&(e=.5);"1e12"<xa(m)&&(m=.5);0<e&&1>e&&(e=bb(a,b,c,f,s,d,z,H,e),h.push(e.x),g.push(e.y));0<m&&1>m&&(e=bb(a,b,c,f,s,d,z,H,m),h.push(e.x),g.push(e.y));m=d-2*f+b-(H-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=bb(a,b,c,f,s,d,z,H,e),h.push(e.x),g.push(e.y));0<m&&1>m&&(e=bb(a,b,c,f,s,d,z,H,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=sb(function(a,b){var c=!b&&Tb(a);if(!b&&c.curve)return Fa(c.curve);var f=Nb(a),s=b&&Nb(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(Lb(b.x,b.y,a[1],a[2]));break;case "H":a=["C"].concat(Lb(b.x,b.y,a[1],b.y));break;case "V":a=["C"].concat(Lb(b.x,b.y,b.x,a[1]));break;case "Z":a=["C"].concat(Lb(b.x,b.y,b.X,b.Y))}return a},H=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);H(f,O);s&&(s[O]=m(s[O],z));s&&H(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,G=s&&h.length;d.x=g[X-2];d.y=g[X-1];d.bx=A(g[X-4])||d.x;d.by=A(g[X-3])||d.y;z.bx=s&&(A(h[G-4])||z.x);z.by=s&&(A(h[G-
3])||z.y);z.x=s&&h[G-2];z.y=s&&h[G-1]}s||(c.curve=Fa(f));return s?[f,s]:f},null,Fa);b._parseDots=sb(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=A(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=A(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 H=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,H(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,H=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(),G=g[0]!=X,D=G?z.invert():0,A;"t"==X&&3==h?G?(h=D.x(0,0),X=D.y(0,0),G=D.x(g[1],g[2]),D=D.y(g[1],g[2]),z.translate(G-h,D-X)):z.translate(g[1],g[2]):"r"==X?2==h?(A=A||a.getBBox(1),z.rotate(g[1],A.x+A.width/2,A.y+A.height/2),s+=g[1]):4==h&&(G?(G=D.x(g[2],g[3]),D=D.y(g[2],g[3]),z.rotate(g[1],G,D)):z.rotate(g[1],g[2],g[3]),s+=g[1]):"s"==X?2==h||3==h?(A=A||a.getBBox(1),z.scale(g[1],
g[h-1],A.x+A.width/2,A.y+A.height/2),m*=g[1],H*=g[h-1]):5==h&&(G?(G=D.x(g[3],g[4]),D=D.y(g[3],g[4]),z.scale(g[1],g[2],G,D)):z.scale(g[1],g[2],g[3],g[4]),m*=g[1],H*=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=H;O.deg=s;O.dx=d=z.e;O.dy=z=z.f;1==m&&1==H&&!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,H,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]=[];H=0;for(O=Da(e.length,g.length);H<O;H++)H in e&&
(d[m][H]=e[H]),H in g&&(z[m][H]=g[H])}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=Eb;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(U.acos(s)),0>d&&(a.rotate=360-a.rotate)):a.rotate=b.deg(U.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 G=function(){this.returnValue=!1},aa=function(){return this.originalEvent.preventDefault()},ac=function(){this.cancelBubble=!0},Ob=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 H=0,r=s.targetTouches&&s.targetTouches.length;H<r;H++)if(m=s.targetTouches[H].target,m==a||"tspan"==m.nodeName&&m.parentNode==a){m=s;s=s.targetTouches[H];s.originalEvent=m;s.preventDefault=aa;s.stopPropagation=Ob;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||G;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 H=
a.touches.length,r;H--;){if(r=a.touches[H],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 H=b._engine.getNode(z.el),O=H.nextSibling,e=H.parentNode,g=H.style.display;v.win.opera&&e.removeChild(H);H.style.display="none";r=z.el.paper.getElementByPoint(c,f);H.style.display=g;v.win.opera&&(O?e.insertBefore(H,O):e.appendChild(H));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=F.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}})(F[pd]);Ja.data=function(a,c){var f=D[this.id]=D[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 D[this.id]:D[this.id]&&delete D[this.id][a];
return this};Ja.getData=function(){return ta(D[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 H(m){(m.originalEvent||m).preventDefault();var r=v.doc.documentElement.scrollTop||v.doc.body.scrollTop,O=v.doc.documentElement.scrollLeft||v.doc.body.scrollLeft;this._drag.x=m.clientX+O;this._drag.y=m.clientY+
r;this._drag.id=m.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,m.clientX+O,m.clientY+r,m)}this._drag={};Kc.push({el:this,start:H});this.mousedown(H);pa&&!Ca&&this.dragstart(H);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,m=c.documentElement;c=f.top+(v.win.pageYOffset||m.scrollTop||z.scrollTop)-(m.clientTop||z.clientTop||0);f=f.left+(v.win.pageXOffset||m.scrollLeft||z.scrollLeft)-(m.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||oa[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=oa[this.type](this),b.bboxwt=vb(this.realPath),b.bboxwt.toString=
W,b.dirty=0;return b.bboxwt}if(b.dirty||b.dirtyT||!b.bbox){if(b.dirty||!this.realPath)b.bboxwt=0,this.realPath=oa[this.type](this);b.bbox=vb(Xa(this.realPath,this.matrix));b.bbox.toString=W;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,m=this.paper,H=m.set(),r=this.realPath||oa[this.type](this),r=this.matrix?Xa(r,this.matrix):r,O=1;O<z+1;O++)H.push(m.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 H.insertBefore(this).translate(s,d)};var dd=function(a,f,s,d,z,m,H,r,O){return null==O?c(a,f,s,d,z,m,H,r):b.findDotsAtSegment(a,f,s,d,z,m,H,r,p(a,f,s,d,z,m,H,
r,O))},ed=function(a,c){return function(f,d,z){f=s(f);for(var m,H,r,O,e="",g={},h=0,X=0,G=f.length;X<G;X++){r=f[X];if("M"==r[0])m=+r[1],H=+r[2];else{O=dd(m,H,r[1],r[2],r[3],r[4],r[5],r[6]);if(h+O>d){if(c&&!g.start){m=dd(m,H,r[1],r[2],r[3],r[4],r[5],r[6],d-h);e+=["C"+m.start.x,m.start.y,m.m.x,m.m.y,m.x,m.y];if(z)return e;g.start=e;e=["M"+m.x,m.y+"C"+m.n.x,m.n.y,m.end.x,m.end.y,r[5],r[6]].join();h+=O;m=+r[5];H=+r[6];continue}if(!a&&!c)return m=dd(m,H,r[1],r[2],r[3],r[4],r[5],r[6],d-h),{x:m.x,y:m.y,
alpha:m.alpha}}h+=O;m=+r[5];H=+r[6]}e+=r.shift()+r}g.end=e;m=a?h:c?g:b.findDotsAtSegment(m,H,r[0],r[1],r[2],r[3],r[4],r[5],1);m.alpha&&(m={x:m.x,y:m.y,alpha:m.alpha});return m}},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)*la/.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)},db=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,m=f.easing,H=f.from,r=f.diff,O=f.to,e=f.el,g={},h,X={},G;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 D=
m(s/z),A;for(A in H)if(H.hasOwnProperty(A)){switch(M[A]){case P:h=+H[A]+D*z*r[A];break;case "colour":h="rgb("+[gd(Sa(H[A].r+D*z*r[A].r)),gd(Sa(H[A].g+D*z*r[A].g)),gd(Sa(H[A].b+D*z*r[A].b))].join()+")";break;case "path":h=[];s=0;for(m=H[A].length;s<m;s++){h[s]=[H[A][s][0]];O=1;for(X=H[A][s].length;O<X;O++)h[s][O]=(+H[A][s][O]+D*z*r[A][s][O]).toFixed(4);h[s]=h[s].join(" ")}h=h.join(" ");break;case "transform":if(r[A].real)for(h=[],s=0,m=H[A].length;s<m;s++)for(h[s]=[H[A][s][0]],O=1,X=H[A][s].length;O<
X;O++)h[s][O]=H[A][s][O]+D*z*r[A][s][O];else h=function(a){return+H[A][a]+D*z*r[A][a]},h=[["m",h(0),h(1),h(2),h(3),h(4),h(5)]];break;case "csv":if("clip-rect"==A)for(h=[],s=4;s--;)h[s]=+H[A][s]+D*z*r[A][s];break;default:for(m=[].concat(H[A]),h=[],s=e.ca[A].length;s--;)h[s]=+m[s]+D*z*r[A][s]}g[A]=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(G in O)O.hasOwnProperty(G)&&(X[G]=f.totalOrigin[G]);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(db)},gd=function(a){return 255<a?255:0>a?0:a};Ja.animateWith=function(a,c,f,s,z,m){if(this.removed)return m&&m.call(this),this;f=f instanceof
g?f:b.animation(f,s,z,m);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=U.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,m;for(m in a)a.hasOwnProperty(m)&&A(m)!=m&&A(m)+"%"!=m&&(z=!0,d[m]=a[m]);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++)},Hb=Lc.prototype;Hb.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};Hb.pop=function(){this.length&&delete this[this.length--];return this.items.pop()};Hb.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 kb in Ja)Ja.hasOwnProperty(kb)&&(Hb[kb]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a][L](c,b)})}}(kb));Hb.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};Hb.clear=function(){for(;this.length;)this.pop()};Hb.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 m=d.length;for(z=0;z<
m+f.length;z++)this.items[a+z]=this[a+z]=z<m?d[z]:f[z-m];for(z=this.items.length=this.length-=b-m;this[z];)delete this[z++];return new Lc(s)};Hb.exclude=function(a){for(var b=0,c=this.length;b<c;b++)if(this[b]==a)return this.splice(b,1),!0};Hb.animate=function(a,c,f,s){!b.is(f,"function")&&f||(s=f||null);var d=this.items.length,z=d,m=this,H;if(!d)return this;s&&(H=function(){!--d&&s.call(m)});f=b.is(f,"string")?f:H;c=b.animation(a,c,f,H);for(a=this.items[--z].animate(c);z--;)this.items[z]&&!this.items[z].removed&&
this.items[z].animateWith(a,c,c);return this};Hb.insertAfter=function(a){for(var b=this.items.length;b--;)this.items[b].insertAfter(a);return this};Hb.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}};Hb.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};Hb.toString=function(){return"Raphaël‘s set"};Hb.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 m;if(d)for(z=0,a=d.length;z<a&&(m=d[z],m.face["font-weight"]!=c||m.face["font-style"]!=f&&m.face["font-style"]||m.face["font-stretch"]!=s);z++);return m}};Q.print=function(a,c,f,s,d,z,m){z=z||"middle";m=Da(T(m||0,1),-1);var H=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],G=0;z=+h[1]+("baseline"==
z?X+ +s.face.descent:X/2);for(var h=0,A=H.length;h<A;h++){if("\n"==H[h])e=n=O=0,G+=X;else var D=e&&s.glyphs[H[h-1]]||{},n=s.glyphs[H[h]],O=O+(e?(D.w||s.w)+(D.k&&D.k[H[h]]||0)+s.w*m:0),e=1;n&&n.d&&(g+=b.transformPath(n.d,["t",O*f,G*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(){na?v.win.Raphael=ea:delete Raphael;return b};var cb=b.vml&&.5||0;b.crispBound=sb(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+cb;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=Hb;b.define=function(a,c,f,s,d,z){var m;if(b.is(a,n))for(z=0,m=a.length;z<m;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,m=c.apply(this,z),H;if(s&&b.is(s,"object"))for(H in s)m[H]=s[H];if(d&&b.is(d,"object"))for(H in d)m[H]&&m[H](d[H]);if(f){if(b.is(f,"function"))m.ca[a]=f;else for(H in f)m.ca[H]=f[H];m.ca[a]&&(b._lastArgIfGroup(z,!0),m.attr(a,B.call(z)))}return m},
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,m=s.pow,
H=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++)},G=b._createNode=function(c,f){if(f){"string"==typeof c&&(c=G(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},A={userSpaceOnUse:"userSpaceOnUse",objectBoundingBox:"objectBoundingBox"},
D={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,F,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(",")||[];F=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(F===A.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=m(h-.5,2))+m(n-.5,2)&&.25>g&&(n=H(.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=m(l-.5,2))+m(I-.5,2)&&.25>g&&(I=H(.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 A?(F=w.shift(),w[0]in D&&(K=w.shift())):(w[4]&&(F=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=G(O+"Gradient",{id:g});p.refCount=0;F in A&&p.setAttribute("gradientUnits",a(F));K in D&&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))):G(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(G("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);G(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);G(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,m=s?"end":"start",H=c.node,r=c.attrs,O=r["stroke-width"],e=d.length,X="classic",A,D,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,A=1,D=s?4:1,d={fill:"none",stroke:r.stroke}):(D=A=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-"+m+X+n+l+"-obj"+c.id;b._g.doc.getElementById(e)?h[e]++:(z.defs.appendChild(G(G("path"),{"stroke-linecap":"round",d:g[X],id:e})),h[e]=1);var F=b._g.doc.getElementById(I);F?(h[I]++,n=F.getElementsByTagName("use")[0]):(F=G(G("marker"),
{id:I,markerHeight:l,markerWidth:n,orient:"auto",refX:D,refY:l/2}),n=G(G("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)}),F.appendChild(n),z.defs.appendChild(F),h[I]=1);G(n,d);z=A*("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-"+m]="url('"+b._url+"#"+I+"')";if(O||s)d.d=b.getSubpath(r.path,
s,O);G(H,d);c._.arrows[m+"Path"]=e;c._.arrows[m+"Marker"]=I;c._.arrows[m+"dx"]=z;c._.arrows[m+"Type"]=X;c._.arrows[m+"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[m+"Path"]&&G(H,{d:b.getSubpath(r.path,s,O)}),delete c._.arrows[m+"Path"],delete c._.arrows[m+"Marker"],delete c._.arrows[m+"dx"],delete c._.arrows[m+"Type"],delete c._.arrows[m+"String"];for(d in h)h.hasOwnProperty(d)&&!h[d]&&(c=b._g.doc.getElementById(d))&&
c.parentNode.removeChild(c)}},I={"":["none"],none:["none"],"-":[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]},F=function(c,f,s){var d=I[a(f).toLowerCase()],z,m;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;m=f.length;z=d?z:1;for(d=[];m--;)d[m]=f[m]*z+(m%2?1:-1)*s||f[m],0>d[m]&&(d[m]=0);b.is(f,"array")&&G(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 m=c.node,H=c.attrs,e=c.paper,g=m.style,h=g.visibility;g.visibility="hidden";for(var A in s)if(s.hasOwnProperty(A)&&b._availableAttrs.hasOwnProperty(A)){var D=s[A];H[A]=D;switch(A){case "blur":c.blur(D);break;case "href":case "title":case "target":var I=m.parentNode;if("a"!=I.tagName.toLowerCase()){if(""==D)break;var K=G("a");K.raphael=!0;K.raphaelid=
m.raphaelid;I.insertBefore(K,m);K.appendChild(m);I=K}"target"==A?I.setAttributeNS("http://www.w3.org/1999/xlink","show","blank"==D?"new":D):I.setAttributeNS("http://www.w3.org/1999/xlink",A,D);m.titleNode=I;break;case "cursor":g.cursor=D;break;case "transform":c.transform(D);break;case "rotation":b.is(D,"array")?c.rotate.apply(c,D):c.rotate(D);break;case "arrow-start":l(c,D);break;case "arrow-end":l(c,D,1);break;case "clip-path":var p=!0;case "clip-rect":I=!p&&a(D).split(r);c._.clipispath=!!p;if(p||
4==I.length){c.clip&&c.clip.parentNode.parentNode.removeChild(c.clip.parentNode);var K=G("clipPath"),M=G(p?"path":"rect");K.id=b.createUUID();G(M,p?{d:D?H["clip-path"]=b._pathToAbsolute(D):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);G(m,{"clip-path":"url('"+b._url+"#"+K.id+"')"});c.clip=M}!D&&(D=m.getAttribute("clip-path"))&&((D=b._g.doc.getElementById(D.replace(/(^url\(#|\)$)/g,"")))&&D.parentNode.removeChild(D),
G(m,{"clip-path":""}),delete c.clip);break;case "path":"path"==c.type&&(G(m,{d:D?H.path=b._pathToAbsolute(D):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(m.setAttribute(A,D),c._.dirty=1,H.fx)A="x",D=H.x;else break;case "x":H.fx&&(D=-H.x-(H.width||0));case "rx":if("rx"==A&&"rect"==c.type)break;case "cx":m.setAttribute(A,D);c.pattern&&Ia(c);c._.dirty=1;break;case "height":if(m.setAttribute(A,
D),c._.dirty=1,H.fy)A="y",D=H.y;else break;case "y":H.fy&&(D=-H.y-(H.height||0));case "ry":if("ry"==A&&"rect"==c.type)break;case "cy":m.setAttribute(A,D);c.pattern&&Ia(c);c._.dirty=1;break;case "r":"rect"==c.type?G(m,{rx:D,ry:D}):m.setAttribute(A,D);c._.dirty=1;break;case "src":"image"==c.type&&m.setAttributeNS("http://www.w3.org/1999/xlink","href",D);break;case "stroke-width":if(1!=c._.sx||1!=c._.sy)D/=d(z(c._.sx),z(c._.sy))||1;e._vbSize&&(D*=e._vbSize);O&&0===D&&(D=1E-6);m.setAttribute(A,D);H["stroke-dasharray"]&&
F(c,H["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":F(c,D,s);break;case "fill":var aa=a(D).match(b._ISURL);if(aa){var K=G("pattern"),k=G("image");K.id=b.createUUID();G(K,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});G(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;G(a,{width:b,
height:c});G(k,{width:b,height:c});e.safari()})})(K);e.defs.appendChild(K);g.fill="url('"+b._url+"#"+K.id+"')";G(m,{fill:g.fill});c.pattern=K;c.pattern&&Ia(c);break}I=b.getRGB(D);if(!I.error)delete s.gradient,delete H.gradient,!b.is(H.opacity,"undefined")&&b.is(s.opacity,"undefined")&&G(m,{opacity:H.opacity}),!b.is(H["fill-opacity"],"undefined")&&b.is(s["fill-opacity"],"undefined")&&G(m,{"fill-opacity":H["fill-opacity"]}),c.gradient&&X(c);else if(("circle"==c.type||"ellipse"==c.type||"r"!=a(D).charAt())&&
n(c,D)){if("opacity"in H||"fill-opacity"in H)if(I=b._g.doc.getElementById(m.getAttribute("fill").replace(/^url\(#|\)$/g,"")))I=I.getElementsByTagName("stop"),G(I[I.length-1],{"stop-opacity":("opacity"in H?H.opacity:1)*("fill-opacity"in H?H["fill-opacity"]:1)});H.gradient=D;H.fill="none";g.fill="";break}I.hasOwnProperty("opacity")?(G(m,{"fill-opacity":g.fillOpacity=1<I.opacity?I.opacity/100:I.opacity}),c._.fillOpacityDirty=!0):c._.fillOpacityDirty&&b.is(H["fill-opacity"],"undefined")&&b.is(s["fill-opacity"],
"undefined")&&(m.removeAttribute("fill-opacity"),g.fillOpacity="",delete c._.fillOpacityDirty);case "stroke":I=b.getRGB(D);m.setAttribute(A,I.hex);g[A]=I.hex;"stroke"==A&&(I.hasOwnProperty("opacity")?(G(m,{"stroke-opacity":g.strokeOpacity=1<I.opacity?I.opacity/100:I.opacity}),c._.strokeOpacityDirty=!0):c._.strokeOpacityDirty&&b.is(H["stroke-opacity"],"undefined")&&b.is(s["stroke-opacity"],"undefined")&&(m.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(D).charAt()||n(c,D);break;case "line-height":case "vertical-align":break;case "visibility":"hidden"===D?c.hide():c.show();break;case "opacity":H.gradient&&!H.hasOwnProperty("stroke-opacity")&&G(m,{"stroke-opacity":1<D?D/100:D});case "fill-opacity":if(H.gradient){if(I=b._g.doc.getElementById(m.getAttribute("fill").replace(/^url\(#|\)$/g,
"")))I=I.getElementsByTagName("stop"),G(I[I.length-1],{"stop-opacity":D});break}default:"font-size"==A&&(D=f(D,10)+"px"),I=A.replace(/(\-.)/g,function(a){return a.substring(1).toUpperCase()}),g[I]=D,c._.dirty=1,m.setAttribute(A,D)}}"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,m=f.node,H=m.firstChild&&b._g.doc.defaultView.getComputedStyle(m.firstChild,""),r=H?c(b._g.doc.defaultView.getComputedStyle(m.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||(H?H.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;m.firstChild;)m.removeChild(m.firstChild);for(var D=a(d.text).split(/\n|<br\s*?\/?>/ig),r=[],X=0,A=D.length;X<A;X++)H=G("tspan"),X?G(H,{dy:O,x:z.x}):G(H,{dy:O*D.length*e,x:z.x}),D[X]||(H.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),D[X]=" "),H.appendChild(b._g.doc.createTextNode(D[X])),m.appendChild(H),r[X]=H,!h&&"rtl"===g&&X<A-1&&(H=G("tspan"),G(H,{visibility:"hidden","font-size":"0px"}),
H.appendChild(b._g.doc.createTextNode("i")),m.appendChild(H));f._textdirty=!1}else for(r=m.getElementsByTagName("tspan"),X=h=0,A=r.length;X<A;X++)if(H=r[X],g=H.attributes[0],!g||"visibility"!==g.name&&"visibility"!==g.nodeName||"hidden"!==g.value&&"hidden"!==g.nodeValue)X?G(H,{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)),G(r[0],{dy:O*(r.length-h)*e,x:z.x}));G(m,{x:z.x,y:z.y});f._.dirty=
1;m=f._getBBox();O=z.y-(m.y+m.height/2);if(m.isCalculated)switch(z["vertical-align"]){case "top":O=.75*m.height;break;case "bottom":O=-(.25*m.height);break;default:O=z.y-(m.y+.25*m.height)}O&&b.is(O,"finite")&&r[0]&&G(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&&G(this.clip,{transform:this.matrix.invert()});this.pattern&&Ia(this);this.node&&G(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 m={};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&&(m[z]=f[z],delete f[z])}M(this,f);var H,z=0;for(s=this.followers.length;z<s;z++)H=this.followers[z],H.cb&&!H.cb.call(H.el,f,this)||H.el.attr(f);for(d in m)f[d]=m[d];
return this};k.blur=function(a){if(0!==+a){var c=G("filter"),f=G("feGaussianBlur");this.attrs.blur=a;c.id=b.createUUID();G(f,{stdDeviation:+a||1.5});c.appendChild(f);this.paper.defs.appendChild(c);this._blur=c;G(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=G("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=G("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=G("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=G("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=G("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=G("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=G("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=G("svg"),m,f=f||0,s=s||0,d=d||512,a=a||342;G(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),m=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;G(z,{id:"raphael-paper-"+c.id});c.clear();c._left=c._top=0;m&&(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),m=this.top,H=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(G(this.canvas,{viewBox:r,preserveAspectRatio:H});z&&m;)H="stroke-width"in m.attrs?m.attrs["stroke-width"]:1,m.attr({"stroke-width":H}),m._.dirty=1,m._.dirtyT=1,m=m.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=G("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=G("desc"));a.appendChild(this.defs=G("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,m=f.sqrt,H=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,G=/-?[^,\s-]+/g,D={path:1,rect:1,image:1},X={circle:1,ellipse:1},A=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(G,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 m=0,H=f.length;m<H;m++){d=f[m];z=f[m][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._,m=a.matrix,r=z.fillpos;a=a.node;var O=
a.style,e=1,g="",h=21600/b,G=21600/c;O.visibility="hidden";if(b&&c){a.coordsize=H(h)+" "+H(G);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*-G;if(r||z.fillsize)if(f=(f=a.getElementsByTagName("fill"))&&f[0])a.removeChild(f),r&&(s=n(d,m.x(r[0],r[1]),m.y(r[0],r[1])),f.position=s.dx*e+" "+s.dy*e),z.fillsize&&(f.size=z.fillsize[0]*H(b)+" "+z.fillsize[1]*H(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",m="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":m=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"]=m},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,m){if(f.paper.canvas){f.attrs=f.attrs||{};var H=f.node,O=f.attrs,e=H.style,g=D[f.type]&&(m.x!=O.x||m.y!=O.y||m.width!=O.width||m.height!=O.height||m.cx!=O.cx||m.cy!=O.cy||m.rx!=O.rx||m.ry!=O.ry||m.r!=O.r),h=X[f.type]&&(O.cx!=m.cx||O.cy!=m.cy||O.r!=m.r||O.rx!=m.rx||O.ry!=m.ry),G="group"===f.type,n;for(n in m)m.hasOwnProperty(n)&&(O[n]=m[n]);g&&(O.path=b._getPath[f.type](f),
f._.dirty=1);m.href&&(H.href=m.href);m.title&&(H.title=m.title);m.target&&(H.target=m.target);m.cursor&&(e.cursor=m.cursor);"blur"in m&&f.blur(m.blur);if(m.path&&"path"==f.type||g)H.path=A(~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 m&&f.transform(m.transform);"rotation"in m&&(e=m.rotation,b.is(e,"array")?f.rotate.apply(f,e):f.rotate(e));"visibility"in m&&("hidden"===m.visibility?
f.hide():f.show());h&&(e=+O.cx,h=+O.cy,g=+O.rx||+O.r||0,n=+O.ry||+O.r||0,H.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 m&&(e=a(m["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=G?H:H.clipRect||b._g.doc.createElement("div"),h=g.style,G?(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"):H.clipRect||(h.top="0",h.left="0",h.width=f.paper.width+"px",h.height=f.paper.height+"px",H.parentNode.insertBefore(g,H),g.appendChild(H),g.raphael=!0,g.raphaelid=H.raphaelid,H.clipRect=g),h.position="absolute",h.clip=b.format("rect({1}px {2}px {3}px {0}px)",e)),m["clip-rect"]||(G&&f.clip?(H.style.clip="rect(auto auto auto auto)",delete f.clip):H.clipRect&&(H.clipRect.style.clip="rect(auto auto auto auto)")));f.textpath&&(G=f.textpath.style,m.font&&(G.font=m.font),m["font-family"]&&(G.fontFamily=
'"'+m["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,"")+'"'),m["font-size"]&&(G.fontSize=m["font-size"]),m["font-weight"]&&(G.fontWeight=m["font-weight"]),m["font-style"]&&(G.fontStyle=m["font-style"]));"arrow-start"in m&&l(f,m["arrow-start"]);"arrow-end"in m&&l(f,m["arrow-end"],1);if(null!=m.opacity||null!=m["stroke-width"]||null!=m.fill||null!=m.src||null!=m.stroke||null!=m["stroke-width"]||null!=m["stroke-opacity"]||null!=m["fill-opacity"]||null!=m["stroke-dasharray"]||null!=m["stroke-miterlimit"]||
null!=m["stroke-linejoin"]||null!=m["stroke-linecap"]){G=H.getElementsByTagName("fill");e=-1;G=G&&G[0];!G&&(G=w("fill"));"image"==f.type&&m.src&&(G.src=m.src);m.fill&&(G.on=!0);if(null==G.on||"none"==m.fill||null===m.fill)G.on=!1;G.on&&m.fill&&((h=a(m.fill).match(b._ISURL))?(G.parentNode==H&&H.removeChild(G),G.rotate=!0,G.src=h[1],G.type="tile",g=f.getBBox(1),G.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(m.fill),
G.color=h.hex,G.src="",G.type="solid",h.error&&(f.type in{circle:1,ellipse:1}||"r"!=a(m.fill).charAt())&&F(f,m.fill,G)?(O.fill="none",O.gradient=m.fill,G.rotate=!1):"opacity"in h&&!("fill-opacity"in m)&&(e=h.opacity)));if(-1!==e||"fill-opacity"in m||"opacity"in m)h=((+O["fill-opacity"]+1||2)-1)*((+O.opacity+1||2)-1)*((+e+1||2)-1),h=z(d(h,0),1),G.opacity=h,G.src&&(G.color="none");H.appendChild(G);G=H.getElementsByTagName("stroke")&&H.getElementsByTagName("stroke")[0];e=!1;!G&&(e=G=w("stroke"));if(m.stroke&&
"none"!=m.stroke||m["stroke-width"]||null!=m["stroke-opacity"]||m["stroke-dasharray"]||m["stroke-miterlimit"]||m["stroke-linejoin"]||m["stroke-linecap"])G.on=!0;"none"!=m.stroke&&null!==m.stroke&&null!=G.on&&0!=m.stroke&&0!=m["stroke-width"]||(G.on=!1);h=b.getRGB("stroke"in m?m.stroke:O.stroke);G.on&&m.stroke&&(G.color=h.hex);h=((+O["stroke-opacity"]+1||2)-1)*((+O.opacity+1||2)-1)*((+h.opacity+1||2)-1);g=.75*(c(m["stroke-width"])||1);h=z(d(h,0),1);null==m["stroke-width"]&&(g=O["stroke-width"]);m["stroke-width"]&&
(G.weight=g);g&&1>g&&(h*=g)&&(G.weight=1);G.opacity=h;m["stroke-linejoin"]&&(G.joinstyle=m["stroke-linejoin"])||e&&(e.joinstyle="miter");G.miterlimit=m["stroke-miterlimit"]||8;m["stroke-linecap"]&&(G.endcap="butt"==m["stroke-linecap"]?"flat":"square"==m["stroke-linecap"]?"square":"round");m["stroke-dasharray"]&&(h={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"},G.dashstyle=
h.hasOwnProperty(m["stroke-dasharray"])?h[m["stroke-dasharray"]]:m["stroke-dasharray"].join&&m["stroke-dasharray"].join(" ")||"");e&&H.appendChild(G)}if("text"==f.type){f.paper.canvas.style.display="";H=f.paper.span;G=O.font&&O.font.match(/\d+(?:\.\d*)?(?=px)/);h=O["line-height"]&&(O["line-height"]+"").match(/\d+(?:\.\d*)?(?=px)/);e=H.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"]);
G=c(O["font-size"]||G&&G[0])||10;e.fontSize=100*G+"px";h=c(O["line-height"]||h&&h[0])||12;O["line-height"]&&(e.lineHeight=100*h+"px");b.is(m.text,"array")&&(m.text=f.textpath.string=m.text.join("\n").replace(/<br\s*?\/?>/ig,"\n"));f.textpath.string&&(H.innerHTML=a(f.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));H=H.getBoundingClientRect();f.W=O.w=(H.right-H.left)/100;f.H=O.h=(H.bottom-H.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 m||"y"in m||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));H="x y text font font-family font-weight font-style font-size line-height".split(" ");G=0;for(e=H.length;G<e;G++)if(H[G]in m){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}}},F=function(f,s,d){f.attrs=f.attrs||{};var z=Math.pow,H="linear",O=".5 .5";f.attrs.gradient=s;s=a(s).replace(b._radial_gradient,function(a,b){H="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=m(.25-z(f-.5,2))*(2*(.5<s)-1)+.5),O=f+" "+s);return""});s=s.split(/\s*\-\s*/);if("linear"==H){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,G=0,D=s.length;G<D;G++)s[G].offset&&e.push(s[G].offset+" "+s[G].color),void 0!==s[G].opacity&&(g=s[G].opacity);d.colors=e.length?e.join():"0% "+d.color;d.opacity=g;d["o:opacity2"]=h;"radial"==H?(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("-"),m=!a(this.attrs.fill).indexOf("url(");f.translate(-.5,-.5);m||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),m=f.x2&&s.x2&&"x2"||"x",z=f.y2&&s.y2&&"y2"||"y",m=f[m]-s[m],f=f[z]-s[z],c.coordorigin=-21600*m+" "+-21600*f,I(this,1,1,m,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 m={};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&&(m[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 H,z=0;for(s=
this.followers.length;z<s;z++)H=this.followers[z],H.cb&&!H.cb.call(H.el,f,this)||H.el.attr(f);for(d in m)f[d]=m[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,m=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,m+f);f=this.matrix;m=f.offset();z=c(m[0])||0;m=c(m[1])||0;s.left=z+"px";s.top=m+"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]-m,d[2]-z,d[3]-m]));
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"),m=w("path"),H=w("textpath");x=f.x||0;y=f.y||0;text=f.text;m.v=b.format("m{0},{1}l{2},{1}",s(21600*f.x),s(21600*f.y),s(21600*f.x)+1);m.textpathok=!0;H.string=a(f.text).replace(/<br\s*?\/?>/ig,"\n");H.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=m;c.textpath=H;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(H);z.appendChild(m);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,m=this.height,H=1/d(c/z,f/m),r,e;s&&(r=m/f,e=z/c,c*r<z&&(a-=(z-c*r)/2/r),f*e<m&&(b-=(m-f*e)/2/e));this._viewBox=[a,b,c,f,!!s];this._viewBoxShift={dx:-a,dy:-b,scale:H};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,m=z.canvas=b._g.doc.createElement("div"),H=m.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";m.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;";m.appendChild(z.span);H.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(m),H.left=d+"px",
H.top=a+"px",H.position="absolute"):c.firstChild?c.insertBefore(m,c.firstChild):c.appendChild(m);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))}})();na?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,C=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)}});C.css=function(c,a){var t,q,E,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(E=t.length;g<E;g++)c=t[g],c in this.styles&&(q[c]=this.styles[c]);return E-1?q:q[t[0]]}if(null==a&&e.is(c,"array")){q={};g=0;for(E=c.length;g<E;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)E=g.replace(/\B([A-Z]{1})/g,"-$1").toLowerCase(),e._availableAttrs.hasOwnProperty(E)||
"color"===E?("color"===E&&"text"===this.type&&(E="fill"),q[E]=t[g],q.dirty=!0):(k("raphael.css."+E+"."+this.id,this,t[g],E),this.node.style[E]=t[g],this.styles[E]=t[g]);g=0;for(E=this.followers.length;g<E;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,C=k._availableAttrs,b=/^matrix\(|\)$/g,N=/\,/g,J=/\n|<br\s*?\/?>/ig,c=/[^\d\.]/ig,p=/[\%\(\)\s,\xb0#]/g,a=/group/ig,t=/&/g,W=/"/g,E=/'/g,g=/</g,d=/>/g,h=0;(function(e){var k=Math,P=parseFloat,n=k.max,B=k.abs,w=k.pow,R=String,v=/[, ]+/,na=[{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,F,t=.5,q=.5,r=v="",A="",ga,U,E,T;h=d.replace(p,"_");if(!c[h]){d=R(d).replace(e._radial_gradient,function(a,b){var c,d,r,e,h,A,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&&(E=/\%/.test(r)?r:P(r));if("userSpaceOnUse"===
T)return n&&(t=c,q=d),e&&h&&(ga=e,U=h,n||(t=ga,q=U)),"";n&&(t=P(c),q=P(d),c=2*(.5<q)-1,.25<(A=w(t-.5,2))+w(q-.5,2)&&.25>A&&(q=k.sqrt(.25-A)*c+.5)&&.5!==q&&(q=q.toFixed(5)-1E-5*c));e&&h&&(ga=P(e),U=P(h),c=2*(.5<U)-1,.25<(A=w(ga-.5,2))+w(U-.5,2)&&.25>A&&(U=k.sqrt(.25-A)*c+.5)&&.5!==U&&(U=U.toFixed(5)-1E-5*c),n||(t=ga,q=U));return""});d=d.split(/\s*\-\s*/);if("linear"===g){v=d.shift();v=-P(v);if(isNaN(v))return null;F=[0,0,k.cos(e.rad(v)),k.sin(e.rad(v))];v=1/(n(B(F[2]),B(F[3]))||1);F[2]*=v;F[3]*=v;
0>F[2]&&(F[0]=-F[2],F[2]=0);0>F[3]&&(F[1]=-F[3],F[3]=0)}d=e._parseDots(d);if(!d)return null;"radial"===g?(v='<radialGradient fx = "'+t+'" fy = "'+q+'" cy = "'+U+'" cx = "'+ga+'" r = "'+E+'" gradientUnits = "'+T+'" id = "'+h+'">',r="</radialGradient>"):(v='<linearGradient x1 = "'+F[0]+'" y1 = "'+F[1]+'" x2 = "'+F[2]+'" y2 = "'+F[3]+'" gradientTransform ="matrix('+a.matrix.invert()+')" id = "'+h+'">',r="</linearGradient>");a=0;for(F=d.length;a<F;a++)A+='<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+A+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,F,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;F=q(e["vertical-align"],"middle").toLowerCase();h=R(h).split(J);k=h.length;e=0;for(w="top"===F?w:"bottom"===F?w-l*k:w-l*k*.5;e<k;e++)b.textSTR+="<tspan ",
F=(h[e]||"").replace(t,"&amp;").replace(W,"&quot;").replace(E,"&#39;").replace(g,"&lt;").replace(d,"&gt;"),b.textSTR=e?b.textSTR+('dy="'+l+'" x="'+n+'" '):b.textSTR+('dy="'+w+'"'),b.textSTR+=">"+F+"</tspan>"}},Z=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+=Z(c.next,d));else{for(w in p)if("gradient"!==w&&(void 0!==C[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=Z(c.bottom,d));c.next&&(l=Z(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=na.length,h="";if(e.svg){if(this.canvas&&this.canvas.parentNode){for(b=this.canvas.parentNode.innerHTML;d<g;d+=1)c=na[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=Z(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,C=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=C._createNode,J;C.svg?(e&&(C.el.dropshadow=function(b,e,a,t){var q=this.node,E=this._.shadowFilter,g=this.paper.cacheShadows||(this.paper.cacheShadows={}),d="drop-shadow"+[b,e,a,t].join(" "),h;if("none"===b){if(E){--E.use;this.node.removeAttribute("filter");if(!E.use){d=E.hash;for(h in E)b=E[h],b.parentNode&&b.parentNode.removeChild(b),delete E[h];delete g[d]}delete this._.shadowFilter}}else E&&g[d]===E||(E=this.paper.defs.appendChild(N("filter",{id:C.createUUID(),width:"200%",
height:"200%"})),t=C.color(t),t.error&&(t=C.color("rgba(0,0,0,1)")),h=C.pick(t.opacity,1),this._.shadowFilter=g[d]={use:1,filter:E,hash:d,offset:E.appendChild(N("feOffset",{result:"offOut","in":"SourceGraphic",dx:u(b),dy:u(e)})),matrix:E.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:E.appendChild(N("feGaussianBlur",{result:"blurOut","in":"matrixOut",stdDeviation:k(u(a))})),blend:E.appendChild(N("feComposite",
{"in":"SourceGraphic",in2:"blurOut",operator:"over"}))},q.setAttribute("filter",'url("'+C._url+"#"+E.id+'")'));return this}),J=function(c,e){var a=this.__shadowscale,k={},q,E;for(E in c)switch(b[E]&&(k[E]=c[E],delete c[E]),E){case "transform":q=e.matrix.clone();q.translate(this.__shadowx,this.__shadowy);this.transform(q.toTransformString());break;case "stroke-width":c[E]=((k[E]||1)+6-2*this.__shadowlevel)*a}this.attr(c);for(E in k)c[E]=k[E]},C.ca["drop-shadow"]=function(b,e,a,k,u,E){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=C.color(k),k.error&&(k=C.color("rgba(0,0,0,1)")),u instanceof Array?(g=u[0],u=u[1]):g=u,g=1/C.pick(g,1),u=1/C.pick(u,1),b=C.pick(b,1)*g,e=C.pick(e,1)*g,g=.05*C.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,!E&&"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,E&&E.appendChild(d),a.push(d);return!1},C.el.shadow=function(b,e,a,k){var q;a&&a.constructor===C.el.constructor&&(k=a,a=void 0);"object"===typeof b&&(e&&e.constructor===C.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")}):C.vml?(C.ca["drop-shadow"]=function(b,e,a,k,q,E){var g=this._.shadow,d,h;if(this.isShadow)return!1;"none"===b?g&&(this._.shadow=g.remove()):(g||(g=this._.shadow=this.clone(),E&&E.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)),E=g.node.runtimeStyle,
d=E.filter.replace(/ progid:\S+Blur\([^\)]+\)/g,""),k=C.color(k),k.error&&(k=C.color("rgba(0,0,0,1)")),h=C.pick(k.opacity,1)/5,q=1/C.pick(q,1),b=C.pick(b,1)*q,e=C.pick(e,1)*q,g.translate(b,e),E.filter=d+" progid:DXImageTransform.Microsoft.Blur(pixelRadius="+u(.4*a)+" makeShadow=True Color="+k.hex+' shadowOpacity="'+h+'");');return!1},C.el.shadow=function(b,e,a,k){a&&a.constructor===C.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")}):C.canvas&&(C.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,C=q.cos,b=q.sin,N=q.abs,J=q.pow,c=q.atan2,p=q.tan,a=q.acos,t=q.min,W=q.round,E=q.PI,g=q.sqrt,d=2*E,h=e.parseInt,l=e.parseFloat,L=String,P=Array.prototype.slice,n=J(2,-24),B="rgba(192,192,192,"+(u?.002:1E-6)+")",w=this.hcLib.Raphael,R=w.eve,v=w._createNode,na=w._setFillAndStroke,ea=w.el.constructor,Z={speed:"optimizeSpeed",
crisp:"crispEdges",precision:"geometricPrecision"},$={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,ja,Q=function(){return this.join(",").replace(Ca,ja)},ya,F,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=Z[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,F,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*E:w.rad(g);n=null===n||isNaN(n)?0:l(n);F=g;if(2<a)switch(g=2*E/a,n){case 0:for(n=0;n<a;n++)k.push("L",c+e*C(-F),d+e*b(-F)),
F+=g;k[0]="M";k.push("Z");break;case 1:for(n=0;n<a;n++)k.push("M",c,d,"L",c+e*C(-F),d+e*b(-F)),F+=g;break;default:g*=.5;v=e*C(g)*(1-n);for(n=0;n<a;n++)k.push("L",c+e*C(-F),d+e*b(-F)),F+=g,k.push("L",c+v*C(-F),d+v*b(-F)),F+=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,F,v,p,t,B;this._.ringangle=.5*(h+l);N(w)<n?(w=C(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=C(h),h=b(h),F=C(l),l=b(l),k%=d,0>k&&(k+=d),k=k<E?0:1,v=a+e*w,t=c+e*h,p=a+e*F,B=c+e*l,F=a+g*F,l=c+g*l,.01>N(v-p)&&.01>N(t-B)&&(t=B+.01),e=["M",v,t,"A",e,e,0,k,1,p,B,"L",F,l],0!==
g&&(a+=g*w,c+=g*h,.01>N(F-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,F=n._.scroller={};e=e&&"horizontal"||"vertical";var v,p={},t,B,q;F.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-F.anchorOffset)/F.trackLength;v=w.animation({"scroll-position":a},2E3*N(b-a),"easeIn");n.animate(v);R("raphael.scroll.start."+n.id,n,b)}).mouseup(F._mouseupTrack=function(){this.stop(v);R("raphael.scroll.end."+this.id,this,k["scroll-position"])},n,!0);F.anchor=this.rect(n).drag(function(){p["scroll-position"]=t+arguments[B]/F.trackLength;n.animate(p,0)},function(a,b,c){B="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=B,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=B,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:B,stroke:B,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=$[a];c=$[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",
B).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,F=k["button-padding"],v=F[0],p=F[1],B,q;void 0===a&&(a=0);void 0===b&&(b=0);if(void 0===c||void 0===d)B=n&&n.getBBox()||{width:0,height:0},void 0===c&&(c=2*v+B.width),void 0===d&&(d=2*p+B.height);h=w.crispBound(a,b,c,d,h.attr("stroke-width"));h.r=w.pick(e,W(.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;B=.5*e;switch(k["button-symbol-position"]+(n&&"+"||"-")){case "right+":a=a+(c+(2*B+p))-B-v;b+=.5*d;n.attr("transform",["t",-(e+q),0]);break;case "left+":a=a+v+B;b+=.5*d;n.attr("transform",["t",e+q,0]);break;case "top+":a+=.5*c;b=b+F[1]+B;n.attr("transform",["t",0,e+q]);break;case "bottom+":a+=.5*c;b=b+(d+(2*B+q))-p-B;n.attr("transform",["t",0,-(e+q)]);break;default:a+=.5*c,b+=.5*d}l.attr("symbol",[k["button-symbol"],a,b,B])}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 F=this.enclosedAngles(),w;w=this.semiperimeter();w=g(w*(w-this._sides[0])*
(w-this._sides[1])*(w-this._sides[2]))/w;F=[t(n,w)/p(F[0]/2),t(l,w)/p(F[1]/2),t(k,w)/p(F[2]/2)];F=[ba(a,b,e,h,F[0]),ba(a,b,c,d,F[0]),ba(c,d,a,b,F[1]),ba(c,d,e,h,F[1]),ba(e,h,c,d,F[2]),ba(e,h,a,b,F[2])];this.attr({path:["M",F[0].x,F[0].y,"Q",a,b,F[1].x,F[1].y,"L",F[2].x,F[2].y,"Q",c,d,F[3].x,F[3].y,"L",F[4].x,F[4].y,"Q",e,h,F[5].x,F[5].y,"L",F[0].x,F[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?(ja="$1",ya=function(a){a?"string"===
typeof a?a=a.replace(Ca,ja):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;na(b,{fill:"none",stroke:"#000"});return b},w._getPath.litepath=function(a){return w.parsePathString(a.node.getAttribute("d"))}):w.vml&&(ja=function(a,b){return pa[b]||b},F=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,ja):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=F;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,C=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},W,E=function(a,b,c,e){a=C.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=E(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,B,w,q,v;if("object"!==typeof d){if(!(g=this[d])){if("string"===typeof d)e&&e.getAttribute&&(B=e.getAttribute(d));
else if(void 0!==d&&null!==d&&"object"===typeof d)for(n in d)e.setAttribute(n,d[n]);g=B}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)B=t[w],v=C.createElement("option"),/<option\s([\s\S]*[\'\"])\s*?(\/>|>[\s\S]*<\/option>)/ig.test(B)&&(v.value=B.replace(/<option\s([\s\S]*[\'\"])\s*?(\/>|>[\s\S]*<\/option>)/ig,"$1").replace(/[\s\S]*value\s*\=\s*[\'\"]([\s\S]*)[\'\"]/,"$1")),v.text=B.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(C.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;W||(W=E("div"));a&&W.appendChild(a);W.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],C=e.hcLib,b=C.Raphael,N=b.eve,J=C.createElement,c=C.addEvent,p=C.removeEvent,a=C.getPosition,t=C.hasTouch,W=C.getTouchEvent,E=k.Math,g=E.ceil,d=E.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"},B=/\-([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=B.test(d)?d.replace(B,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=C.toolTip={elementId:"fusioncharts-tooltip-element",element:null,lastTarget:null,currentTarget:null,currentPaper:null,pointeroffset:12,prevented:!1,defaultStyle:C.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:{}},na=function(a){!0===v._oobready?v._oobready=!1:(p(q,"touchstart",na),!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",na)))}};v.onredraw=function(a){a.__tipProcessed||(a.__tipProcessed=!0,(this.paper&&this.paper._elementFromEvent(a))===v.currentTarget&&(a=W(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,F=v.x,p=v.y,t,r=b.width,A=b.height,b=b.__tipConstrain;if(100>r||100>A)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=F+h>n.left+r)?(d.width=(r>h?h+2*a:r-2*a||0)+"px",e.whiteSpace="normal"):d.width="",(v.textHeightOverflow=t>A)?(d.height=(A||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?F=(F-h<n.left?n.left:F-h)-w:F+a+h>n.left-w+r-a&&(F=F-h-a),v.textHeightOverflow?p=n.top-k:p+a+t>n.top-k+A-a&&(p=p-t-1.5*a)):(w+L<F+a+h&&(F=F-h-a),k+l<p+a+t&&(p=p-t-1.5*a));d.left=(F+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){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,C=this.window,b=/ HtmlUnit/.test(C.navigator.userAgent),N=C.document,J=/ AppleWebKit\//.test(C.navigator.userAgent),c=!!N.createElement("canvas").getContext,p=!(!c||!N.createElement("canvas").getContext("2d").measureText),C=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 C(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 E=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,B=RegExp("\\<span[^\\>]+?_SmartLabel[^\\>]{0,}\\>(.*?)\\<\\/span\\>","ig"),w=/<[^>][^<]*[^>]+>/i,R=!1,v=0,na=0,ea,Z,$;N.getElementsByClassName?(ea="getElementsByClassName",Z="_SmartLabel",$=!0):(ea="getElementsByTagName",
Z="span",$=!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 E)void 0!==a[e]&&(g+=E[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;C.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,A,E,u=-1,C=h=-1;p=this.container;var J=this.context,W=0;E=0;var va,qa,Na;Na=[];var ha=0,Sa=this.showNoEllipses?"":"...";A=this.lineHeight;var la,W=
[],u=k=-1;la=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=E=p.offsetHeight;if(E<=d&&h<=c)return g.width=g.oriTextWidth=h,g.height=g.oriTextHeight=E,g;if(A>d)return g.text="",g.width=g.oriTextWidth=0,g.height=g.oriTextHeight=0,g}b=la(b).replace(/(\s+)/g," ");h=w.test(b);A=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](Z);J=0;for(qa=ha.length;J<qa;J+=1)if(b=ha[J],$||L.test(b.className))la=b.innerHTML,""!==la&&(" "===la?u=W.length:"-"===la&&(k=W.length),W.push({spaceIdx:u,dashIdx:k,elem:b}),Na.push(la));ha=0;k=W.length;v=W[0].elem.offsetWidth;if(v>c)return g.text="",g.width=g.oriTextWidth=g.height=g.oriTextHeight=0,g;v>A&&!this.showNoEllipses&&(A=c-2*na,A>v?Sa="..":(A=
c-na,A>v?Sa=".":(A=0,Sa="")));Na=W[0].elem.offsetLeft;J=W[0].elem.offsetTop;if(e)for(;ha<k;ha+=1)b=W[ha].elem,qa=b.offsetLeft-Na+b.offsetWidth,qa>A&&(va||(va=ha),p.offsetWidth>c&&(r=ha,ha=k));else for(;ha<k;ha+=1)b=W[ha].elem,la=b.offsetHeight+(b.offsetTop-J),qa=b.offsetLeft-Na+b.offsetWidth,e=null,qa>A?(va||(va=ha),qa>c&&(h=W[ha].spaceIdx,u=W[ha].dashIdx,h>C?(W[h].elem.innerHTML="<br/>",C=h):u>C?(W[u].elem.innerHTML=u===ha?"<br/>-":"-<br/>",C=u):b.parentNode.insertBefore(e=N.createElement("br"),
b),b.offsetHeight+b.offsetTop>d?(e?e.parentNode.removeChild(e):C===u?W[u].elem.innerHTML="-":W[h].elem.innerHTML=" ",r=ha,ha=k):va=null)):la>d&&(r=ha,ha=k);if(r<k){g.isTruncated=!0;va=va?va:r;for(ha=k-1;ha>=va;--ha)b=W[ha].elem,b.parentNode.removeChild(b);for(;0<=ha;--ha)b=W[ha].elem,P.test(b.className)?b.parentNode.removeChild(b):ha=0}g.text=p.innerHTML.replace(B,"$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(A>v)r=b.substr(0,a(b,A,this)).split(""),ha=r.length;else{if(v>c)return g.text="",g.width=g.oriTextWidth=g.height=g.oriTextHeight=0,g;Sa&&(A=c-2*na,A>v?Sa="..":(A=c-na,A>v?Sa=".":(A=0,Sa="")))}W=qa(r.join(""));E=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}),W+=v,W>A&&(p||(p=r.slice(0,-1).join("")),W>c))return g.text=la(p)+Sa,g.tooltext=g.oriText,g.width=qa(g.text),g.height=this.lineHeight,
g;g.text=r.join("");g.width=W;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}),W+=v,W>A&&(p||(p=r.slice(0,-1).join("")),W>c)){h=b.substr(0,r.length).lastIndexOf(" ");u=b.substr(0,r.length).lastIndexOf("-");h>C?(W=qa(r.slice(C+1,h).join("")),r.splice(h,1,"<br/>"),C=h,e=h+1):u>C?(u===r.length-1?(W=qa(r.slice(C+1,h).join("")),r.splice(u,1,"<br/>-")):(W=qa(r.slice(C+1,h).join("")),r.splice(u,
1,"-<br/>")),C=u,e=u+1):(r.splice(r.length-1,1,"<br/>"+Na[ha]),h=r.length-2,W=qa(r.slice(C+1,h+1).join("")),C=h,e=ha);E+=this.lineHeight;if(E>d)return g.text=la(p)+Sa,g.tooltext=g.oriText,g.width=c,g.height=E-this.lineHeight,g;t=q(t,W);p=null;va=a(b.substr(e),A,this);W=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,W);g.text=r.join("");g.width=t;g.height=E}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,na=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 C.prototype.constructor=C}();e.SmartLabelManager=C}]);
FusionCharts.register("module",["private","modules.renderer.js-numberformatter",function(){var e=this,k=e.hcLib,u=k.pluckNumber,q=k.extend2,C=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={},W=function(a){var b=[],c;for(c in a)b.push(c+"_"+a[c]);b.sort();return b.join(",")},E=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"}},E=function(c,d,e){var g,h,p,E,P,J,W,Ca,fa,ja=d.name,Q=q({},k),ya,F,S,ba,r,
A,ga,U,Da,T,xa;(p=t[ja])&&(Q=q(Q,p));this.csConf=Q;this.chartAPI=d;C(c.numberscaleunit)&&(g=c.numberscaleunit.split(","));if(h=C(c.snumberscaleunit,c.numberscaleunit))h=h.split(",");if(p=C(c.xnumberscaleunit,c.numberscaleunit))p=p.split(",");if(E=C(c.ticknumberscaleunit,c.numberscaleunit))E=E.split(",");if(P=C(c.ynumberscaleunit,c.numberscaleunit))P=P.split(",");C(c.numberscalevalue)&&(J=c.numberscalevalue.split(","));if(F=C(c.snumberscalevalue,c.numberscalevalue))F=F.split(",");if(W=C(c.xnumberscalevalue,
c.numberscalevalue))W=W.split(",");if(Ca=C(c.ticknumberscalevalue,c.numberscalevalue))Ca=Ca.split(",");if(fa=C(c.ynumberscalevalue,c.numberscalevalue))fa=fa.split(",");if(C(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);A=u(c.maxscalerecursion,-1);ga=u(c.smaxscalerecursion,A);U=u(c.xmaxscalerecursion,
A);Da=C(c.scaleseparator," ");T=C(c.sscaleseparator,Da);xa=C(c.xscaleseparator,Da);A||(A=-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:A,scaleseparator:Da};C(g.inthousandseparator)&&(this.baseConf._REGinthousandseparator=new RegExp(a(g.inthousandseparator),"g"));C(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:A,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:A,scaleseparator:Da},F={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(F,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({},F),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&&(F.numberscalevalue&&F.numberscalevalue.length)==(F.numberscaleunit&&F.numberscaleunit.length)||(F.scalerecursively=ba=0),/^(bubble|scatter|selectscatter)$/.test(ja)&&(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(ja)&&(F.formatnumberscale=u(c.sformatnumberscale)),/^(pie2d|pie3d|doughnut2d|doughnut3d|marimekko|pareto2d|pareto3d)$/.test(ja)&&(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&&(F.numberscalevalue.push(1),F.numberscaleunit.unshift(F.defaultnumberscale),h.numberscalevalue.push(1),h.numberscaleunit.unshift(h.defaultnumberscale)),this.Y[0]={yAxisLabelConf:J,dataLabelConf:e},this.Y[1]={yAxisLabelConf:F,dataLabelConf:h},this.paramLabels=e,this.param1=J,this.param2=F,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(W,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:U,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(E,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:A,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={}};E.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=C(a.scaleseparator,d.scaleseparator),q,E,L,P,W,Q;c=u(c,this.Y.length);C(a.numberscaleunit)&&(q=a.numberscaleunit.split(","));C(a.numberscalevalue)&&(E=a.numberscalevalue.split(","));p||(p=
-1);if(C(a.thousandseparatorposition))for(L=a.thousandseparatorposition.split(","),P=L.length,Q=k.thousandseparatorposition[0];P--;)(W=u(J(L[P])))?Q=W:W=Q,L[P]=W;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(E,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}};E.prototype.constructor=E;h=function(a,c,h){if(null!==a){a=Number(a);var k=a+"",l,p,t,q,E;l=1==c.formatnumberscale?c.defaultnumberscale:"";E=(E=k.split(".")[1])?E.length:c.forcedecimals?"2":"";if(1==c.formatnumberscale){k=a;p=c.numberscalevalue;a=c.numberscaleunit;l={};var L=c.defaultnumberscale;t=0;var C=[],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&&(C.push(L),J.push(a[t]));
else{C.push(k);J.push(a[t]);break}C.reverse();J.reverse();l.value=C;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,E),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,E),c.forcedecimals),k=d(k,c.decimalseparator,c.thousandseparator,c.thousandseparatorposition,h)),k=(c.numberprefix||"")+k+l+(c.numbersuffix||"");return k}};
return E}();e.extend(e.core,{formatNumber:function(a,b){b=b&&E(b)||{};var c=W(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&&E(c)||{};var p=this.jsVars.instanceAPI||{},u=p.numberFormatter,n;""===W(c)?u?n=u:(u=this.getChartData(e.dataFormats.JSON,!0),u=u.data||{},u=u.chart||{},c=W(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=W(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,C="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}}};C&&(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)},C=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(E(a,e[n],c,"onStart"));for(n=g&&g.length||0;n--;)p.push(E(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(E(a,g,c,"start"));return e},E=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 B=h.length,w=[],N=function(a,b,c){w.push(function(){n.unlisten(a,b,c)})},v,na,ea,Z,$;if(a.ownerDocument&&a.ownerDocument===u)for(;B--;)na=h[B],Z=Boolean(J[na]),$="function"===typeof k?k:k[B],ea={handler:$,elem:a,type:na,isGesture:Z,gDef:Z?J[na]:null,data:t,context:q,start:[],end:[],links:{prev:null,next:null}},ea.closure=g(ea),Z?((v=e[na])||(v=e[na]=[]),v.push(ea),
C(a,na,ea)):((v=b[na])||(v=b[na]=[]),v.push(ea),E(a,na,ea)),N(a,na,$);else for(;B--;)na=h[B],$="function"===typeof k?k:k[B],ea={handler:$,elem:a,type:na,isGesture:Z,data:t,context:q,start:[],end:[],links:{prev:null,next:null}},ea.closure=g(ea),(v=b[na])||(v=b[na]=[]),v.push(ea),E(a,na,ea),N(a,na,$);return{unlisten:function(){for(var a=w.length;a--;)w[a]();w.length=0;w=null}}},unlisten:function(a,g,k){var q,E=!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 E=a,w=void 0,C=void 0,v=void 0,w=void 0;if(w=J[g])for(w=w.start,v=w.length;v--;)(C=w[v])&&t(E,C,u.start);q.splice(n,1);E=!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),E=!0);return E},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 C(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,C(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,C="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:[C,
C,C,C,C],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"]},C=e.colorManager=function(b,c){var p=b.chart,a=e.extend2({},N),t=c.defaultPaletteOptions||{},C;a||(a={});for(C in t)a[C]=t[C];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];C=p.palettecolors;void 0!==C&&null!==C&&""!==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)))};C.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,C,E,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(","),C=b.split(","),E=Math.max(k.length,C.length,1),g=k[0],d=C[0],L=/[\{\}]/ig,N=0;N<E;N++)h=(k[N]||g).replace(L,""),l=C[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,E;for(E=0;E<c;E++)t=k(e[E]),void 0!==t&&null!==t&&(q=t),a[E]=q;return a.join()},parseRatioList:function(b,c){var e=b.split(","),a=[],k=0,q,E;for(E=0;E<c;E++)q=e[E],q=isNaN(q)||void 0===q?0:Math.abs(Number(q)),q=100<q?100:q,a[E]=q,k+=q;k=100<k?100:k;if(e.length<c)for(E=e.length;E<c;E++)a[E]=(100-k)/(c-e.length);a[-1]=0;return a.join()}};C.prototype.constructor=C;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,C=/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,"+(C?.002:1E-6)+")",C=q.Math,t=C.min,W=C.max,E=C.sin,g=C.cos,d=C.PI,h=d/180,l=e.extend,L=u.pluck,P=u.pluckNumber,n=u.graphics.convertColor,B=u.getValidValue,w=u.parseUnsafeString,R=u.setImageDisplayMode,v=u.graphics.parseColor,na=u.setLineHeight,
ea=u.getMouseCoordinate,Z={style:{}},$=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,E=void 0,u=0;for(k=void 0;w=v.shift();)switch(typeof(E=q[w])){case "object":q=E[w];break;case "function":E=E(v,t),"-"===h.charAt()&&(E*=-1),k=!0;default:u+=c(E)||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)}},ja,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=W(b,d)-g,c=W(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],!!B(b.bordercolor)),E=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),C=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===E&&(E="#ff0000"));
v&&C?(e.stroke=n(E,k),e["stroke-linecap"]="round",e["stroke-width"]=C,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,E=ya.eventNames,u=ya.ownEvents,C,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(C in E)(L=this[C])&&L.eventAttached&&(N(w.node,E[C],L),L.eventAttached=!1);k||(d.fill=$(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,W(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(C in E)(L=this[C])&&!L.eventAttached&&
(b(w.node,E[C],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+E(p)*e;n+=g(l)*a;l=q+E(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,E=P(h.wrap,e.options.wraptext,1),u,C,J=L(h.rotatetext,e.options.rotatetext,"0").toLowerCase(),J=ya.textRotationOptions[J],B="0"!==J?"y":"x",N=a.options.orphanStyles;a=l({},N.defaultStyle.style||{});N=e.id&&N[e.id.toLowerCase()]||Z;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;E&&(u=P(h.wrapwidth,this.hasDimensionX?k.width/g.xs:void 0),C=P(h.wrapheight,this.hasDimensionY?k.height/g.ys:void 0),u&&(u*=g.xs),C&&(C*=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:na(c);d["text-anchor"]=ya.textAlignOptions[p]||ya.textAlignOptions.center;t.setStyle(c);c=t.getSmartText(q,u,C,!1);d["vertical-align"]=ya.textVerticalAlignOptions[n]||ya.textVerticalAlignOptions.middle;d["text-anchor"]===ya.textAlignOptions.left?k[B]+=
P(h.leftmargin,0):d["text-anchor"]===ya.textAlignOptions.center&&(k[B]+=.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=B(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=W(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=W(P(b.fillAlpha,b.borderAlpha),b.borderAlpha)/100;delete g.stroke;delete g.fill;delete g["stroke-linecap"];return"image"}}});ja=function(){this.groups=[];this._idstore={};this._options={}};u.Annotations=ja;e.extend(ja.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 ja)});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,C=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,W=k.getDefinedColor,E=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,
B=k.getSentenceCase,w=k.addEvent,R=function(a){return void 0!==a&&null!==a},v=q.Math,na=k.TOUCH_THRESHOLD_PIXELS,ea=k.CLICK_THRESHOLD_PIXELS,Z=v.min,$=v.max,pa=v.abs,Ca=v.ceil,fa=v.floor,ja=v.log,Q=v.pow,ya=v.sqrt,F=v.round,S=k.graphics.getColumnColor,ba=k.getFirstColor,r=k.setLineHeight,A=k.pluckFontSize,ga=k.getFirstAlpha,U=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,la=k.parsexAxisStyles,sa=k.chartAPI,Ra=k.graphics.mapSymbolName,ib=sa.singleseries,La=sa.multiseries,za=k.COMMASTRING,ab=k.STRINGUNDEFINED,Ea=k.ZEROSTRING,eb=k.ONESTRING,$a=k.HUNDREDSTRING,Ga=k.PXSTRING,Xb=k.COMMASPACE,Jb=q.navigator.userAgent.match(/(iPad|iPhone|iPod)/g),Ub={left:"start",right:"end",center:"middle"},lb=k.BLANKSTRINGPLACEHOLDER,ob=k.BGRATIOSTRING,hb=k.COLOR_WHITE,m=k.TESTSTR,M=k.graphics.getAngle,D=k.axisLabelAdder,K=k.falseFN,V=k.NumberFormatter,Y=k.getLinkAction,
da=k.getAxisLimits,ka=k.createDialog,oa=function(a,b){return 0<a?ja(a)/ja(b||10):null},Xa=k.hasTouch=void 0!==C.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=A(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]||""}},nb=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,D,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)&&(D=k.style)&&(/\%/g.test(D.width)||/\%/g.test(D.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=C.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(C.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,G=a(c.chartbottommargin,g.chartbottommargin,15)+f,f=a(c.chartleftmargin,g.chartleftmargin,15)+f,D=m+G,l=f+h;e*=.7;d*=.7;D>e&&(m-=(D-e)*m/D,G-=(D-e)*G/D);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:G,spacingLeft:f,marginTop:m,marginRight:h,marginBottom:G,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!==lb?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},Ib=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,D;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)D=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]=D;h=F(b/(e.length-1));for(k=1;k<e.length;++k){D=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=D.max,n=D.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);D.max=K;D.min=n}}d<a.length&&!c&&Ib(a,b,c,d,f);return f},Wa=k.placeVerticalAxis=function(c,d,e,h,f,k,
D,G,l,r){var K=e[g],n=K.smartLabel,M,I,q,t,w=0,v=K.marginRightExtraSpace,V=K.marginLeftExtraSpace,E={},Y={},u={},A=c.plotLines,da=c.plotBands,K=d.verticalAxisValuesPadding,F=isNaN(d.fixedValuesPadding)?0:d.fixedValuesPadding,C=K-F,L=d.verticalAxisValuesPadding,oa=d.verticalAxisNamePadding,ka=d.verticalAxisNameWidth,Va=d.rotateVerticalAxisName&&String(d.rotateVerticalAxisName).toLowerCase(),J="none"!==Va,Xa=c.offset?c.offset:0,B=0,N=0,ca=0,Ha=0,Ka=0,ra=0,P=0,Wa,nb,ta,Ma,K=2,P=D?v+5:V+4,sb=$(a(e.chart.plotBorderWidth,
1),0),ma=c.showLine?c.lineThickness:sb,ia=function(a,b){var c,f;a&&a.label&&void 0!==p(a.label.text)&&(ta=a.label,ta.style&&ta.style!==nb&&(nb=ta.style,n.setStyle(nb)),M=n.getOriSize(a.label.text),f=(c=M.width)?c+2:0,a.isGrid?(E[b]={width:c,height:M.height,label:ta},Ha<=f&&(Ha=f,d.lYLblIdx=b)):a.isTrend&&(D&&ta.textAlign===Sa||ta.textAlign===ha?(Y[b]={width:c,height:M.height,label:ta},Ka=$(Ka,f)):(u[b]={width:c,height:M.height,label:ta},ra=$(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=A.length;ca<Wa;ca+=1)ia(A[ca],ca);c.title&&c.title.text!=b&&(nb=c.title.style,
n.setStyle(nb),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!==ka?ka: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)));B=$(Ka,Ha);B+=B?C+F:0;0<w&&(B+=w+oa+P);(function(){if(N+B>k){Ma=N+B-k;if(N){if(L>=Ma){L-=Ma;return}Ma-=L;L=0}if(C+oa>=Ma)oa>=Ma?oa-=Ma:(C-=Ma-oa,oa=0);else{Ma-=
C+oa;oa=C=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!==nb&&(nb=ta.style,n.setStyle(nb)),d=n.getSmartText(ta.text,s,f,!0),ta.text=d.text,d.tooltext&&(ta.originalText=d.tooltext),u[g].height=d.height,e=$(e,d.width)):e=$(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=$(Ha,Ka)+a-2,e;if(0<d){for(e in E)ta=E[e].label,E[e].width>d?(ta.style&&ta.style!==nb&&(nb=ta.style,n.setStyle(nb)),a=n.getSmartText(ta.text,d,f,!0),ta.text=a.text,a.tooltext&&(ta.originalText=a.tooltext),E[e].height=
a.height,c=$(c,a.width)):c=$(c,E[e].width);for(e in Y)ta=Y[e].label,Y[e].width>d?(ta.style&&ta.style!==nb&&(nb=ta.style,n.setStyle(nb)),a=n.getSmartText(ta.text,d,f,!0),ta.text=a.text,a.tooltext&&(ta.originalText=a.tooltext),Y[e].height=a.height,c=$(c,a.width)):c=$(c,Y[e].width);return d-c}for(e in E)E[e].label.text=b;for(e in Y)Y[e].label.text=b;return 0}(ca);ca=wb(ca);l=d.verticalAxisNamePadding-oa;ca&&l&&(ca>l?(oa+=l,ca-=l):(oa+=ca,ca=0));l=d.verticalAxisValuesPadding-(C+F);ca&&l&&(ca>l?(C+=l,
ca-=l):(C+=ca,ca=0));l=d.verticalAxisValuesPadding-L;ca&&l&&(ca>l?(L+=l,ca-=l):(L+=ca,ca=0));0<ra&&(N=ra+L);B=$(Ka,Ha);B+=B?C+F:0;0<w&&(B+=w+oa+P);l=$(Ka,Ha);l+=0<l?C+F: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+oa+P+(J?w-q:w/2)):c.title.text=b;q=-(C+F+Xa+V+2);v=v+L+Xa+2;P=$(Ka,Ha);c.labels.style&&(K=.35*parseInt(c.labels.style.fontSize,
10));D?(0<ra&&R(u,q,K),0<P&&(R(E,v,K),R(Y,v,K))):(0<ra&&R(u,v,K),0<P&&(R(E,q,K),R(Y,q,K)));c.labels._textY=K;c.labels._righttX=v;c.labels._leftX=q;B=B||ma;N=N||(G?0:sb);r?(e.chart.marginLeft+=D?N:B-r,e.chart.marginRight+=D?B-r:N):(e.chart.marginLeft+=D?N:B,e.chart.marginRight+=D?B:N);return N+B},Db=k.titleSpaceManager=function(c,d,e,m){var f=this.snapLiterals||(this.snapLiterals={}),h=d.chart,k=E(h.caption);d=E(h.subcaption);var G=h=a(h.captionpadding,10),D=c[g],l=this.smartLabel||D.smartLabel,p=
!1,n=0,K,I,r=0,M=0,q=0,t=0,w=c.title,v=c.subtitle,V=$(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=$(m,0),n=q+t+h,n>m?(r=m-n,p=!0,r<h?h=$(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+=Z(G-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=D.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,D=[],l,p=e.plotLines.length;c=c[g].smartLabel;for(var n=parseFloat(A(d.basefontsize,10)),K;h<p;h+=1)d=k[h],d.isGrid&&d.label&&d.label.text&&(D.push(d),0===d.value&&(l=D.length-1));if(p=D.length)if(e.labels.style?c.setStyle(e.labels.style):D[0].label&&D[0].label.style&&c.setStyle(e.labels.style),h=c.getOriSize("W").height,m||(h+=.4*n),a/=p-1,a<h){m=$(1,Ca(h/a));for(h=a=l;h<p;h+=1)d=D[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=D[h],h===f&&((a-h)%m&&K&&(K.label.text=""),a=f),d&&d.label&&((a-h)%m?d.label.text=b:K=d)}},sb=k.placeHorizontalAxis=function(c,d,e,m,f,h,k){var G=e[g],D=m&&m.chart||{},l,n,K,r,I,M,q,t,w,v,V,E,Y=0,u=0,A=10,da=1,F=0,C=0,oa=0,L=0,ka=!1,ca=!1,B=!1,J=a(D.labelstep,0),Va=a(D.xaxisminlabelwidth,0),Xa=a(D.maxlabelheight,h),N=d.labelDisplay,Ha=d.rotateLabels,ra=d.horizontalLabelPadding,Ka=G.marginBottomExtraSpace,
ta=e.chart.marginLeft,Ma=e.chart.marginRight,P=G.smartLabel,Wa=G.plotBorderThickness,nb=d.catCount,sb=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),W=Q.datastreamurl,ea=Boolean(this.realtimeEnabled&&S&&void 0!==W),Ib,T,Tb,Aa,na,Ua,bb,Nb,Db,Eb,ba,vb,U,Lb,Ba,pa,la,ga,sa,ja,Da,qa,xa,Ra,mb,Ga=null,za=null,Qa,Ea,$a,ec,La,ib,eb,lb,Zb,ua,Yb,fc,Pa=[],Kb=[],pb,Ab=0,Bb=0,$b,ob,ub,gc,jc,hb,gb,kc=d.horizontalAxisNamePadding,yb=0,Za=d.staggerLines,
Mb=ia,Ub=!1,Jb=!1,Xb=0,lc,Cb,Pb,Wb,sd,Sc,td,$c,ad,Cc,Tc,bd,nc,Mc,Uc,Ec,cd,Nc,Vc,vc;Yb=c.plotLines;A=ua=0;for(gb=Yb.length;ua<gb;ua+=1)(n=Yb[ua])&&n.label&&!n.isTrend&&A<parseInt(n.label.style.lineHeight,10)&&(A=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"),A=P.lineHeight,q=t.width+4,E=P.getOriSize("WWW").width+4;c.title&&c.title.text!=b&&(M=c.title.style,P.setStyle(M),C=P.getOriSize("W").height,c.title.rotation=0,
r=P.getSmartText(c.title.text,f,h),u=r.height);ta!=parseInt(D.chartleftmargin,10)&&(eb=!0);Ma!=parseInt(D.chartrightmargin,10)&&(lb=!0);void 0!==D.canvaspadding&&""!==D.canvaspadding&&(Jb=!0);Zb=f-k;switch(N){case "none":ka=B=!0;Ha&&(Y=sb?300:270,t=A,A=q,q=t);break;case "rotate":Y=sb?300:270;t=A;A=q;q=t;ka=!0;break;case "stagger":ca=ka=!0;w=fa((h-C)/A);w<Za&&(Za=w);break;default:Ha&&(Y=sb?300:270,t=A,A=q,q=t)}G.isBar&&(ka=!0);ua=0;Yb=c.plotLines;if(typeof e._FCconf.isXYPlot!==ab||G.isBar){Ib={};Ua=
na=0;Eb=Db=null;ga={};Ub=!0;ma=f/(c.max-c.min);Wb=function(a,f,d){var g,m,z,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=Z(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?z=f.oriWidth:(z=P.getOriSize(I.text).width+
4,f.oriWidth=z),z>T&&(z=T),f.labelTextWidth=z,f.leftEdge=d.value*ma-z/2,f.rightEdge=d.value*ma+z/2,g=k.value*ma,m=g+O/2,h=d.value*ma,z=h-z/2,z<m)if(g+q<h-q)m-=z,g=h-g,a.labelTextWidth=m>g?Z(O,g):$(q,O-m/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=Z(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>ob?Za=ob:2>Za&&(Za=2):Za=1;for(gb=Yb.length;ua<gb;ua+=1)(n=Yb[ua])&&n.label&&typeof n.label.text!==ab&&(n.isGrid?(Aa={plotObj:n},n.isCat&&(Nb=ua%Za,Ib[Nb]||(Ib[Nb]=[]),Db?(Eb=Aa,Ib[Nb].push(Eb)):(Eb=Db=Aa,Ib[Nb].push(Db))),Pa.push(Aa)):n.isTrend&&Kb.push({plotObj:n}));fc=c.plotBands;ua=0;for(gb=fc.length;ua<gb;ua+=1)(n=fc[ua])&&n.isTrend&&n.label&&typeof n.label.text!==ab&&Kb.push({plotObj:n});if(Pa.length)if(!B&&
!Y)if(G.distributedColumns)for(ua=0,gb=Pa.length;ua<gb;ua+=1)pa=Pa[ua],la=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<gb?(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)),U=n.value*ma,ad=U-n._weight*ma/2,$c=U+n._weight*ma/2,1<Za?(ja=ad-xa,Da=$c+Ra,mb=$c-ad+Z(ja,Da)):mb=$c-ad,I=n.label,I.style&&I.style!==M&&P.setStyle(I.style),
mb<q&&q<P.getOriSize(I.text).width?(n.label.text=b,pa.labelTextWidth=0):(pa.labelTextWidth=mb,l=P.getSmartText(I.text,mb-4,h,ka),mb=l.width+4,pa.labelTextWidth=mb,Fa=$(Fa,l.height)));else{ob=Pa.length;$b=Pa.length-1;(pb=(Pa[$b].plotObj.value-Pa[0].plotObj.value)*ma)?(T=.1*pb,Tb=$(.2*pb,pb/ob)):Tb=T=f;for(K in Ib)for(ua=0,Lb=Ib[K].length;ua<Lb;){for(bb=ua+1;!Wb(Ib[K][ua],Ib[K][bb]);)bb+=1;ua=bb}Db&&(Ua=(Db.plotObj.value-c.min)*ma+ta-Db.labelTextWidth/2);n=Pa[0].plotObj;Db&&n===Db.plotObj||(I=n.label,
I.style&&I.style!==M&&(M=I.style,P.setStyle(M)),V=P.getOriSize(I.text).width+4,U=(n.value-c.min)*ma+ta,Db&&(Qa=Ua-U,V=Qa<V&&Qa>q/2?2*Qa:0),Pa[0].labelTextWidth=V,0<V&&(t=U-V/2),t<Ua&&(Ua=t));Eb&&(V=Eb.labelTextWidth,na=(c.max-Eb.plotObj.value)*ma+Ma-V/2);n=Pa[$b].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,U=(c.max-n.value)*ma+Ma,Eb&&(Qa=U-na,V=Qa<V&&Qa>q/2?2*Qa:0),Pa[$b].labelTextWidth=V,0<V&&(t=U-V/2),t<na&&(na=t));Ab=0>Ua?
-Ua:0;Bb=0>na?-na:0;hb=Ab+Bb;if(0<hb)for(K in Zb>hb?(Ba=(Ba=Bb*f/(Bb+f))?Ba+4:0,e.chart.marginRight+=Ba,f-=Ba,Ba=(Ba=Ab*f/(Ab+f))?Ba+4:0,e.chart.marginLeft+=Ba,f-=Ba,ma=f/(c.max-c.min)):Ab<Bb?Zb>=Bb&&lb?(Ba=(Ba=Bb*f/(Bb+f))?Ba+4:0,e.chart.marginRight+=Ba,f-=Ba,ma=f/(c.max-c.min)):eb&&(Ba=(Ba=Ab*f/(Ab+f))?Ba+4:0,e.chart.marginLeft+=Ba,f-=Ba,ma=f/(c.max-c.min)):Zb>=Ab&&eb?(Ba=(Ba=Ab*f/(Ab+f))?Ba+4:0,e.chart.marginLeft+=Ba,f-=Ba,ma=f/(c.max-c.min)):lb&&(Ba=(Ba=Bb*f/(Bb+f))?Ba+4:0,e.chart.marginRight+=
Ba,f-=Ba,ma=f/(c.max-c.min)),Ma=e.chart.marginRight,ta=e.chart.marginLeft,pb=(Pa[$b].plotObj.value-Pa[0].plotObj.value)*ma,T=.1*pb,Tb=$(.2*pb,pb/ob),Ib){ua=0;for(Lb=Ib[K].length;ua<Lb;){for(bb=ua+1;!Wb(Ib[K][ua],Ib[K][bb],!0);)bb+=1;ua=bb}K+=1}ua=0;for(gb=Pa.length;ua<gb;ua+=1)if(pa=Pa[ua],la=ua%Za,n=pa.plotObj,n.label)if(n.isCat)pa.labelTextWidth&&(ga[la]=pa);else{ba=(vb=ga[la])?vb.nextCat:Ib[la]?Ib[la][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;ib=n.value*ma-V/2;if(G.isBar&&ua==gb-1&&sa)xa>ib&&(sa.plotObj.label.text=b,sa.labelTextWidth=0,xa=sa.leftEdge);else if(xa>ib||Ra<ib+V){n.label.text=b;pa.labelTextWidth=0;continue}xa=$(xa,ib);U=n.value*ma;mb=2*Z(U-xa,Ra-U);mb.toFixed&&(mb=mb.toFixed(2));I=n.label;I.style&&I.style!==M&&P.setStyle(I.style);mb<q&&q<P.getOriSize(I.text).width?
(n.label.text=b,pa.labelTextWidth=0):(pa.labelTextWidth=mb,l=P.getSmartText(I.text,mb-4,h,ka),mb=l.width+4,pa.labelTextWidth=mb,pa.leftEdge=U-mb/2,pa.rightEdge=U+mb/2,Fa=$(Fa,l.height))}sa=qa=null;ua=0;for(gb=Pa.length;ua<gb;ua+=1)if(pa=Pa[ua],n=pa.plotObj,la=ua%Za,n.isCat&&pa.labelTextWidth){sa=qa=null;U=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}ja=sa?U-sa.rightEdge:U-c.min*ma+e.chart.marginLeft;if(ua+Za<gb)for(Ga=ua+Za,qa=Pa[Ga];!qa.labelTextWidth;)if(Ga+
Za<gb-1)Ga+=Za,qa=Pa[Ga];else{qa=null;break}Da=qa?qa.leftEdge-U:c.max*ma+e.chart.marginRight-U;mb=2*Z(ja,Da);mb>Tb&&(mb=Tb);mb>pa.oriWidth&&(mb=pa.oriWidth);pa.labelTextWidth=mb;I=n.label;I.style&&I.style!==M&&P.setStyle(I.style);l=P.getSmartText(I.text,mb-4,h,ka);pa.labelTextWidth=l.width+4;Fa=$(Fa,l.height);pa.rightEdge=U+pa.labelTextWidth/2}}else if(Y)for(ua=0,gb=Pa.length;ua<gb;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<gb)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>=gb-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=$(wb,P.getOriSize(I.text).width+4)}K=0;for(gb=Kb.length;K<gb;K+=1)(n=Kb[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=$(ia,l.height):R=
$(R,l.height))}else{for(gb=Yb.length;ua<gb;ua+=1)(n=Yb[ua])&&(n.isGrid?Pa.push(n):n.isTrend&&Kb.push(n));fc=c.plotBands;ua=0;for(gb=fc.length;ua<gb;ua+=1)(n=fc[ua])&&Kb.push(n);$b=Pa.length-1;ob=Pa.length;ca&&(Za>ob?Za=ob:2>Za&&(Za=2));if(ob)for(c.scroll&&c.scroll.viewPortMin&&c.scroll.viewPortMax?(ec=c.scroll.viewPortMin,La=c.scroll.viewPortMax,lb=eb=!1):(ec=c.min,La=c.max),pb=(Pa[$b].value-Pa[0].value)*ma,ub=sd=pb/(nb-1),gc=(Pa[0].value-ec)*ma,jc=(La-Pa[$b].value)*ma,"auto"===N?ub<E&&(Y=sb?300:
270,t=A,A=q,q=t,ka=!0):"stagger"===N&&(ub*=Za),"line"!==this.defaultSeriesType&&("area"===this.defaultSeriesType?G.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||B?$(1,J):$(1,J,Ca(q/ub)),G.x&&(G.x.stepValue=da),ub*=da,v=2*(gc+ta),(I=Yb[0].label)&&I.text&&(I.style&&P.setStyle(I.style),V=270===
Y?Z(ub,P.getOriSize(I.text).height+4):Z(ub,P.getOriSize(I.text).width+4),V>v&&(B||(Ab=(V-v)/2),eb||(Jb&&(Ab=0),ub-=Ab/(nb-1),Pb=ub*(nb-1),ma=ub,lc=(pb-Pb)/ma,La=c.max+=lc,ec=c.min-=lc,Ab=0,pb=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?Z(ub,P.getOriSize(I.text).height+4):Z(ub,P.getOriSize(I.text).width+4),V>v&&(B||(Bb=(V-v)/2),lb||(Jb&&(Bb=0),ub-=Bb/(nb-1),Pb=ub*(nb-1),ma=ub,lc=(pb-Pb)/ma,Bb=0,pb=Pb,gc=(Pa[0].value-
ec)*ma,jc=(La-Pa[$b].value)*ma))),hb=Ab+Bb,0<hb&&(Zb>hb?(Ba=(Ba=Bb*f/(Bb+f))?Ba+4:0,e.chart.marginRight+=Ba,f-=Ba,Ba=(Ba=Ab*f/(Ab+f))?Ba+4:0,e.chart.marginLeft+=Ba,f-=Ba,ma=f/(c.max-c.min)):Ab<Bb?Zb>=Bb&&lb?(Ba=(Ba=Bb*f/(Bb+f))?Ba+4:0,e.chart.marginRight+=Ba,f-=Ba,ma=f/(c.max-c.min)):eb&&(Ba=(Ba=Ab*f/(Ab+f))?Ba+4:0,e.chart.marginLeft+=Ba,f-=Ba,ma=f/(c.max-c.min)):Zb>=Ab&&eb?(Ba=(Ba=Ab*f/(Ab+f))?Ba+4:0,e.chart.marginLeft+=Ba,f-=Ba,ma=f/(c.max-c.min)):lb&&(Ba=(Ba=Bb*f/(Bb+f))?Ba+4:0,e.chart.marginRight+=
Ba,f-=Ba,ma=f/(c.max-c.min)),pb=(Pa[$b].value-Pa[0].value)*ma,ub=pb/(nb-1),ca&&(ub*=Za),da=ca||B?$(1,J):Y?$(1,J,Ca(A/ub)):$(1,J,Ca(q/ub)),G.x&&(G.x.stepValue=da),ub*=da),K=0;K<ob;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&&B?(l=P.getOriSize(I.text),wb=$(wb,l.width+4),Fa=$(Fa,l.height)):B||(l=Y||ca?P.getOriSize(I.text):P.getSmartText(I.text,
ub-4,h,ka),wb=$(wb,l.width+4),Fa=$(Fa,l.height)))}K=0;for(gb=Kb.length;K<gb;K+=1)(n=Kb[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=$(ia,l.height):R=$(R,l.height));c.scroll&&c.scroll.enabled&&!Y&&!B&&(lc=wb/2,e.chart.marginLeft<lc&&(Cb=lc-e.chart.marginLeft,Zb>Cb&&(f-=Cb,Zb-=Cb,e.chart.marginLeft+=Cb)),e.chart.marginRight<lc&&(Cb=lc-e.chart.marginRight,Zb>Cb&&(f-=Cb,Zb-=Cb,e.chart.marginRight+=Cb)))}B?
(yb=A,Y&&(yb=wb)):yb=Y?wb:ca?Za*Fa:Fa;0<yb&&(yb+ra>Xa&&(yb=Xa-ra,Za=Math.floor(yb/Fa)),Mb+=ra+yb);0<u&&(Mb+=u+kc);Ea=ra-4;$a=R+Mb+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-C)>Qa?(u-=Qa,Qa=0):(Qa-=t,u=C,0<Qa&&((t=yb-A)>Qa?(yb-=Qa,Qa=0):(Qa-=t,yb=A,0<Qa&&(Qa-=u+kc,u=0,0<Qa&&(Qa-=yb,yb=0,0<Qa&&(ra-=Qa)))))))))));ra+=Ka;Tc=G.is3d?-e.chart.xDepth:0;bd=yb+
ra;Ec=Tc;cd=.5*A;F=A+ra;gb=Pa.length;oa=0;if(Ub)if(Y)for(vc=ha,nc=sb?ra+8:ra+4,gb=Pa.length,K=0;K<gb;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,yb-4,q,ka),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,oa+=1);else for(Mc=yb,vc=va,nc=F,K=0;K<gb;K+=da)n=Pa[K].plotObj,A=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)),B||(l=P.getSmartText(I.text,Pa[K].labelTextWidth-4,Mc,ka),I.text=l.text,l.tooltext&&(I.originalText=l.tooltext),ca&&(nc=F+oa%Za*A)),I.y=nc,I.x=Ec,I.rotation=Y,I.textAlign=vc,oa+=1);else{Y?(Mc=ub,Uc=yb-4,vc=ha,nc=sb?ra+8:ra+4):ca?(Uc=ub-4,vc=va):(Mc=yb,Uc=ub-4,vc=va,nc=F);for(K=0;K<gb;K+=da)n=Pa[K],A=Ca(parseFloat(n.label.style.lineHeight)),cd=.5*A,F=A+ra,n&&n.label&&void 0!==p(n.label.text)&&(I=n.label,I.style&&I.style!==M&&(M=I.style,P.setStyle(M)),
B||(ca&&(Mc=A),Sc=ta+(K-ec)*sd-e.chart.spacingLeft,td=300===Y?Z(ya(2.999*Sc*Sc+Sc*Sc)-ra,Uc):Uc,l=P.getSmartText(I.text,td,Mc,ka),Xb=$(Xb,Y?l.width:l.height),I.text=l.text,l.tooltext&&(I.originalText=l.tooltext),ca&&(nc=F+oa%Za*A)),Y?Ec=Tc+.5*A:ca||(nc=A+ra),I.y=nc,I.x=Ec,I.rotation=Y,I.textAlign=vc,oa+=1);300===Y&&(yb=Xb,bd=yb+ra);d._labelY=F;d._labelX=Tc;d._yShipment=nc;d._isStagger=ca;d._rotation=Y;d._textAlign=vc;d._adjustedPx=cd;d._staggerLines=Za;d._labelHeight=A}gb=Kb.length;for(K=Vc=Nc=0;K<
gb;K+=1)(n=Kb[K].plotObj?Kb[K].plotObj:Kb[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=$(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=$(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);Mb=Vc;0<yb&&(G.horizontalAxisHeight=ra+yb-Ka,Mb+=G.horizontalAxisHeight);0<u&&(Mb+=L=u+kc);Mb=Mb||ra-Ka;e.chart.marginBottom+=Mb;0<Nc&&(e.chart.marginTop+=Nc,Mb+=Nc);if(c.opposite)for(c.title.margin-=yb-(r&&r.height||0)+ra,Mb-=L,e.chart.marginTop+=Mb,e.chart.marginBottom-=Mb,e.xAxis.opposite=1,gb=Yb.length,ua=0;ua<gb;ua+=1)(n=Yb[ua])&&n.isGrid&&(I=n.label)&&void 0!==I.text&&(I.textAlign=Sa,I.y-=nc+ra+4);
return Mb},Tb=k.configureLegendOptions=function(d,e,g,m,f){m=d.legend;var h=d.chart,k=h.is3D?nb.chart3D:nb.chart2D,G=h.useRoundEdges,D=a(e.legendiconscale,1),n=(parseInt(m.itemStyle.fontSize,10)||10)+1,l=this.colorManager,K;if(0>=D||5<D)D=1;m.padding=4;0>=n&&(n=1);K=3*D;n=Z(n*D,f-8);0>=n&&(K=n=0);m.symbolWidth=n;m.symbolPadding=K;m.textPadding=4;m.legendHeight=f=n+2*K;m.rowHeight=$(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,!G||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:$(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,G?3:0);m.legendAllowDrag=Boolean(a(e.legendallowdrag,0));m.title.text=E(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,G=c.series,D,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,E=a(d.chart.legendpadding,7);d=E+p.borderWidth/2+a(d.chart.canvasborderthickness,1);var u=2*p.padding,A=u,da=!1,F=[];e-=u+E;f&&(G=
G&&G[0]&&G[0].data);if(typeof G===ab||typeof G.length===ab)return 0;f=G.length;for(k=0;k<f;k+=1)(D=G[k])&&!1!==D.showInLegend&&(D.__i=k,F.push(D));F.sort(function(a,b){return a.legendIndex-b.legendIndex||a.__i-b.__i});f=F.length;M=e-v-E-r;0>M&&(M=0);l.setStyle(p.itemStyle);p.reversed&&F.reverse();for(k=0;k<f;k+=1)D=F[k],da=!0,D._legendX=0,D._legendY=A,0===M?(A+=D._legendH=v,D.name=b,D._totalWidth=t+w):(G=l.getSmartText(D.name,M,V),D.name=G.text,G.tooltext&&(D.originalText=G.tooltext),G.height<v&&
(D._legendTestY=(v-G.height)/2),D._totalWidth=t+w+r+G.width+E,A+=D._legendH=$(G.height,v),Y=$(G.width,Y));if(da)return p.itemWidth=Y+v+E+r,p.width=p.itemWidth+u,p.title.text!==b&&(l.setStyle(p.title.style),G=l.getSmartText(p.title.text,e,V),p.title.text=G.text,G.tooltext&&(p.title.originalText=G.tooltext),k=G.width+u,p.width<k&&(p.initialItemX=(k-p.width)/2,p.width=k),p.initialItemY=G.height+q,A+=p.initialItemY),p.height=p.totalHeight=A,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=Z(p.width+d,e),c.chart.marginRight+=d+E,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={}),D=0,G=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,A=d.chart;w=0;var u=2*h,da=I.rowHeight,F=.05*da,C=[];r=a(A.minimisewrappinginlegend,0);var A=a(parseInt(A.legendnumcolumns,10),0),oa=0,L=0,ka=0,ca=D=0,B=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>A&&(A=0);e-=Xa;l.setStyle(I.itemStyle);D=l.getOriSize(m).height;
d=Z(d,h-D-8);h-=d;f&&(G=G&&G[0]&&G[0].data);if(typeof G===ab||typeof G.length===ab)return 0;f=G.length;for(D=0;D<f;D+=1)(ra=G[D])&&!1!==ra.showInLegend&&(ra.__i=D,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(D=0;D<f;D+=1)P=!0,Ha[D].name=E(Ha[D].name),G=l.getOriSize(Ha[D].name),oa=$(oa,G.width),B=$(B,Z(G.height,u)),L+=G.width,ka+=1;D=L/ka;Y=Y+F+q+V+Xa;L+=Y*ka;if(P){D+=Y;oa+=Y;0<A&&ka<A&&(A=ka);L<=e&&(0>=A||A===ka)?(A=ka,
ca=D=L/ka,Ka=!0,B>da&&(J=(B-da)/2,da=B)):0<A&&(ca=e/A)>D?ca>oa&&(ca=oa):e>oa&&(r||1.5*D>oa)?(A=fa(e/oa),ka<A&&(A=ka),ca=oa):e>=2*D?(A=fa(e/D),ka<A&&(A=ka),ca=fa(e/A),ca>oa&&(ca=oa)):(A=1,ca=e);I.itemWidth=ca;r=ca-Y;0>r&&(V=r=q=0);I.symbolPadding=V;I.textPadding=q;I.width=ca*A-F;I.title.text!==b&&(l.setStyle(I.title.style),G=l.getSmartText(I.title.text,e,u),I.title.text=G.text,G.tooltext&&(I.title.originalText=G.tooltext),w=G.width+Xa,I.width<w&&(I.initialItemX=(w-I.width)/2,I.width=w),I.initialItemY=
w=G.height+t);l.setStyle(I.itemStyle);I.reversed&&Ha.reverse();for(D=0;D<f;D+=1){e=Ha[D];0===r&&(C[ma]=!0,e.name=b,t=1,q=parseInt(ma/A,10),F=ma%A,e._legendX=F*ca,e._legendY=q*da+Xa,e._legendH=t*da,e._totalWidth=v+V);if(Ka)G=l.getOriSize(e.name),G.height<da&&(e._legendTestY=(da-G.height)/2),e._markerYGutter=J,e._legendX=ta,e._legendY=Xa,e._legendH=da,e._totalWidth=v+Va+G.width,ta+=G.width+Y;else{G=l.getSmartText(e.name,r,u);e.name=G.text;for(G.tooltext&&(e.originalText=G.tooltext);!0===C[ma];)ma+=
1;q=G.height/da;F=ma;for(t=0;t<q;t+=1,F+=A)C[F]=!0;G.height<da&&(e._legendTestY=(da-G.height)/2);q=parseInt(ma/A,10);F=ma%A;e._legendX=F*ca;e._legendY=q*da+Xa;e._legendH=t*da;e._totalWidth=v+Va+G.width}ma+=1}l=Ka?1:Ca(C.length/A);I.height=I.totalHeight=N+(l*da+w);I.rowHeight=da;I.legendNumColumns=A;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},Eb=function(a,b){return a.value-b.value},Nb=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},Lb=k.adjustVerticalAxisTitle=function(a,b,c){if(b&&b.text){var d=b.text,f=a[g].smartLabel,e=2*Z(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),D=b.chart.marginTop,n=b.chart.marginBottom;f>n&&(c+=f-n);h>D&&(c+=h-D);c>d?h>D&&f>n?(g=d*k,m=d*(1-k)):h>D?g=d:m=d:0<c&&(f>n&&(m=f-n),h>D&&(g=h-D));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,D=b.chart.marginRight,n=0,
l=0;c>k&&(h+=c-k);g>D&&(h+=g-D);h>d?c>k&&g>D?(n=d*m,l=d*(1-m)):g>D?l=d:n=d:0<h&&(c>k&&(n=c-k),g>D&&(l=g-D));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},bb=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,D){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(),A={opacity:Y/100},E=d.isBar,u=d.fillAangle,da=0>D?E?180-u:360-u:u,u=S(M+za+n,Y,r,da,K,p,c(g.alpha,q).toString(),E,l),F=t?h(w,v,f):"none";k=e.getPointStub(g,D,m.oriCatTmp[k],b,d,d.showValues,d.yAxis);g=e.pointHoverOptions(g,d,{plotType:"column",is3d:l,isBar:E,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:A});k.y=D;k.shadow=A;k.color=u[0];k.borderColor=u[1];k.borderWidth=f;k.use3DLighting=V;k.dashStyle=F;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 D=a(f.alpha,d.lineAlpha),n={opacity:D/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),A=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):"none";g.color={FCcolor:{color:ba(c(f.color,d.lineColor)),alpha:D}};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:A,shadow:n});g.marker={enabled:void 0===d.drawAnchors?0!==D:!!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:A,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),D={opacity:$(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=D;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:D});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,D){var G=b.jsVars,n,l,K=sa[g||(g=b.chartType())],p,M=G.hasNativeMessage,r=b.options,q=b.args,t;t=function(a){var c={renderer:"javascript"},f=G.fcObj,h=f.width,n=f.height,l=K&&K.eiMethods,r=G.overlayButton,
q;d.jsVars=b.jsVars;G.container=d;G.hcObj=a;G.type=g;G.width=d.offsetWidth;G.height=d.offsetHeight;G.instanceAPI=p;if(a.hasRendered){e.extend(d,ma);if(l&&"string"!==typeof l)for(q in l)d[q]=l[q];G.overlayButtonActive&&r&&(r.innerHTML="",r.appendChild(C.createTextNode(G.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&&G.previousDrawCount<G.drawCount&&(c.width=G.width,c.height=G.height,c.drawCount=G.drawCount,c.displayingMessage=M,c.renderer=f.options.renderer,k.raiseEvent("drawcomplete",c,f,[f.id]),M||D||setTimeout(function(){f.__state&&!f.__state.firstRenderNotified&&k.raiseEvent("rendered",{renderer:"javascript"},f,[f.id]);e.raiseEvent("renderComplete",
c,f)},0))};G.instanceAPI&&G.instanceAPI.dispose&&G.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 ka(d,f,b),M=G.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 ka(d,r.typeNotSupportedMessage,b),M=G.hasNativeMessage=!0):G.message?(f=new ka(d,G.message,b),M=G.hasNativeMessage=
!0):G.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 ka(d,r.dataLoadErrorMessage,b),M=G.hasNativeMessage=!0):G.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 ka(d,r.dataLoadStartMessage,b),M=G.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 ka(d,r.dataInvalidMessage,b),M=G.hasNativeMessage=!0,b.__state.dataReady=!1,D||e.raiseEvent("dataInvalid",{error:n.error},G.fcObj,void 0,function(){k.raiseEvent("dataxmlinvalid",{},b,[b.id])})):(D||k.raiseEvent("dataloaded",{},b,[b.id]),f=p.init(d,l,b,t),p.inited=!0,G.previousDrawCount=G.drawCount,G.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 ka(d,r.dataEmptyMessage,
b),M=G.hasNativeMessage=!0,b.__state.dataReady=!1,D||k.raiseEvent("nodatatodisplay",{},b,[b.id])):(b.__state.dataReady=!0,M=G.hasNativeMessage=!1,delete G.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 ka(d,"Error rendering chart {0x01}",
b),M=G.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,h){var O=this.chartInstance||h,f=O.jsVars;h=f._reflowData||(f._reflowData={});var D=f._reflowClean,n=O.options,G=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;h&&!this.stateless&&(l=h.hcJSON,delete h.hcJSON,d(this,h,!0),this.preReflowAdjustments&&this.preReflowAdjustments.call(this),h.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,O);this.numberFormatter=new V(m.chart,this);if(!this.standaloneInit)return O._chartMessageImageStyle=
{imageHAlign:c(G.typeNotSupportedMessageImageHAlign,n.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:c(G.typeNotSupportedMessageImageVAlign,n.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:a(G.typeNotSupportedMessageImageAlpha,n.baseChartMessageImageAlpha),imageScale:a(G.typeNotSupportedMessageImageScale,n.baseChartMessageImageScale)},O._chartMessageStyle={fontFamily:G.typeNotSupportedMessageFont||n.baseChartMessageFont,fontSize:G.typeNotSupportedMessageFontSize||n.baseChartMessageFontSize,
color:G.typeNotSupportedMessageColor||n.baseChartMessageColor},new k.createDialog(g,n.typeNotSupportedMessage,O);g=this.chart(g.offsetWidth||parseFloat(g.style.width),g.offsetHeight||parseFloat(g.style.height),O);h&&!this.stateless&&(h.hcJSON&&d(g,h.hcJSON,!0),this.postReflowAdjustments&&this.postReflowAdjustments.call(this),D&&this.cleanedData&&(this.cleanedData(this,D),this.cleanedData(h,D)));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,D=h.align,c=h.x,n=h.horizontalPadding,l=h.alignWithCanvas,K=(F(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(D){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(m,z){var H=this.name,k=this.dataObj,
f=k.chart,n=this.colorManager,l,G,K,w,v,V,Y,I=this.defaultSeriesType,u,da,F,oa,C,L,ca,ka,B,J,N,P,ra,Ha,ma,Ka,ta,Wa,ia,R,sb,wb,Fa,Ib,Q,S,W,Tb,Aa,Ua,bb,Z,Db,Eb,Nb,vb,sa,Lb,la,fa,ga,ja,xa,ya,Ca,Ra,La,Ta,Gb,zb,tb,ib,lb,rb,Ba,Vb,qc,ab,hb,ic,rc,tc,yc,Jb,mb,zc,Dc,Qa,Bc,hd,ec,id,uc,jd,Yc,Zb,ua,Yb,fc,Pa,Kb,pb,Ab,Bb,$b,kd,ub,gc,jc,rd,gb,kc,yb,Za,Mb,Rc,Zc,ld,lc,Cb,Pb,Wb;l=Ma(k,m,z,this);B=l.chart;ka=l.xAxis;u=l[g];this.snapLiterals||(this.snapLiterals={});N=this.snapLiterals;N.chartstartx=0;N.chartstarty=0;
N.chartwidth=m;N.chartheight=z;N.chartendx=m;N.chartendy=z;N.chartcenterx=m/2;N.chartcentery=z/2;N.chartbottommargin=B.spacingBottom;N.chartleftmargin=B.spacingLeft;N.chartrightmargin=B.spacingRight;N.charttopmargin=B.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=m;u.height=z;F=l.plotOptions;u.isDual=this.isDual;
u.numberFormatter=this.numberFormatter;u.axisGridManager=new D(I,f);u.tooltext=f.plottooltext;u.trendLineToolText=f.trendlinetooltext;B.is3D=G=u.is3d=/3d$/.test(I);B.isBar=da=u.isBar=this.isBar;Y=/^pie/.test(I);ca=1==f.useroundedges;L=G?nb.chart3D:nb.chart2D;B.events.click=l.plotOptions.series.point.events.click=this.linkClickFN;B.defaultSeriesType=I;Ka=0<f.palette&&6>f.palette?f.palette:a(this.paletteIndex,1);--Ka;B.paletteIndex=Ka;B.usePerPointLabelColor=f.colorlabelsfromplot==eb;B.syncLabelWithAnchor=
a(f.synclabelwithanchoronhover,1);B.useRoundEdges=ca&&!G&&!this.distributedColumns&&"pie"!==this.defaultSeriesType;void 0!==c(f.clickurl)&&(B.link=f.clickurl,B.style.cursor="pointer",l.plotOptions.series.point.events.click=function(){B.events.click.call({link:f.clickurl})});ta=c(f.basefont,"Verdana,sans");Wa=A(f.basefontsize,10);ia=c(f.basefontcolor,n.getColor(L.baseFontColor));R=c(f.outcnvbasefont,ta);sb=A(f.outcnvbasefontsize,Wa);wb=sb+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};Ib=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};ka.labels.style={fontFamily:c(f.labelfont,R),fontSize:a(f.labelfontsize,sb)+Ga,color:c(f.labelfontcolor,Fa)};ka.labels.style.lineHeight=r(ka.labels.style);ka.steppedLabels.style={fontFamily:R,fontSize:wb,lineHeight:Ib,
color:Fa,visibility:"hidden"};l.yAxis[0].labels.style={fontFamily:R,fontSize:wb,lineHeight:Ib,color:Fa};l.yAxis[1].labels.style={fontFamily:R,fontSize:wb,lineHeight:Ib,color:Fa};Tb=c(f.legenditemfont,R);Aa=A(f.legenditemfontsize,sb);Ua=c(f.legenditemfontcolor,Fa).replace(/^#?([a-f0-9]+)/ig,"#$1");bb=Va[a(f.legenditemfontbold,0)]||"";W=A(f.legendcaptionfontsize,sb)+Ga;Aa+=Ga;l.legend.itemStyle={fontFamily:Tb,fontSize:Aa,color:Ua,fontWeight:bb};r(l.legend.itemStyle);l.legend.itemHiddenStyle={fontFamily:Tb,
fontSize:Aa,color:c(f.legenditemhiddencolor,"cccccc").replace(/^#?([a-f0-9]+)/ig,"#$1"),fontWeight:bb};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:W,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)):"none"};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,sb+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($(a(f.captionfontsize)-3,-1),sb)+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;ka.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)):"none"};r(ka.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)):"none"};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)):"none"};r(l.yAxis[1].title.style);B.overlapColumns=a(f[da&&"overlapbars"||"overlapcolumns"],G?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:A(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:A(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:A(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:A(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,G?
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);B.anchorTrackingRadius=a(f.anchortrackingradius,Xa?na:ea);l.plotOptions.series.connectNullData=a(f.connectnulldata,0);B.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))}};B.rotateValues=a(f.rotatevalues,0);B.placeValuesInside=a(f.placevaluesinside,0);B.valuePosition=c(f.valueposition,
"auto");B.valuePadding=a(f.valuepadding,2);B.managePlotOverflow=a(f.manageplotoverflow,1);B.borderColor=T(c(f.bordercolor,G?"#666666":n.getColor("borderColor")),c(f.borderalpha,G?"100":n.getColor("borderAlpha")));oa=a(f.showborder,G?0:1);B.borderWidth=oa?a(f.borderthickness,1):0;B.borderRadius=a(f.borderradius,0);B.borderDashStyle=a(f.borderdashed,0)?h(a(f.borderdashlen,4),a(f.borderdashgap,2),B.borderWidth):"none";B.plotBorderColor=T(c(f.canvasbordercolor,n.getColor("canvasBorderColor")),c(f.canvasborderalpha,
n.getColor("canvasBorderAlpha")));"0"!==f.showcanvasborder&&(C=Boolean(c(f.canvasborderthickness,ca?0:1)),"1"!==f.showaxislines&&"1"!==f.showxaxisline&&"1"!==f.showyaxisline&&"1"!==f.showsyaxisline||"1"===f.showcanvasborder||(C=0));B.plotBorderWidth=G||!C?0:a(f.canvasborderthickness,this.canvasborderthickness,B.useRoundEdges?1:2);B.bgSWF=c(f.bgimage,f.bgswf);B.bgSWFAlpha=a(f.bgimagealpha,f.bgswfalpha,100);Z=c(f.bgimagedisplaymode,"none").toLowerCase();Db=p(f.bgimagevalign,b).toLowerCase();Eb=p(f.bgimagehalign,
b).toLowerCase();"tile"==Z||"fill"==Z||"fit"==Z?(Db!=qa&&"middle"!=Db&&Db!=Na&&(Db="middle"),Eb!=Sa&&"middle"!=Eb&&Eb!=ha&&(Eb="middle")):(Db!=qa&&"middle"!=Db&&Db!=Na&&(Db=qa),Eb!=Sa&&"middle"!=Eb&&Eb!=ha&&(Eb=Sa));B.bgImageDisplayMode=Z;B.bgImageVAlign=Db;B.bgImageHAlign=Eb;B.bgImageScale=a(f.bgimagescale,100);B.logoURL=p(f.logourl);B.logoPosition=c(f.logoposition,"tl").toLowerCase();B.logoAlpha=a(f.logoalpha,100);B.logoLink=p(f.logolink);B.logoScale=a(f.logoscale,100);B.logoLeftMargin=a(f.logoleftmargin,
0);B.logoTopMargin=a(f.logotopmargin,0);Nb=B.toolbar={button:{}};vb=Nb.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);Lb=Nb.position=c(f.toolbarposition,"tr").toLowerCase();switch(Lb){case "tr":case "rt":case "top right":case "right top":Lb="tr";break;case "br":case "rb":case "bottom right":case "right bottom":Lb=
"br";break;case "tl":case "lt":case "top left":case "left top":Lb="tl";break;case "bl":case "lb":case "bottom left":case "left bottom":Lb="bl";break;default:Lb="tr"}la=Nb.hAlign="left"===(b+f.toolbarhalign).toLowerCase()?"l":Lb.charAt(1);fa=Nb.vAlign="bottom"===(b+f.toolbarvalign).toLowerCase()?"b":Lb.charAt(0);Nb.hDirection=a(f.toolbarhdirection,"r"===la?-1:1);Nb.vDirection=a(f.toolbarvdirection,"b"===fa?-1:1);Nb.vMargin=a(f.toolbarvmargin,6);Nb.hMargin=a(f.toolbarhmargin,10);Nb.x=a(f.toolbarx,"l"===
la?0:m);Nb.y=a(f.toolbary,"t"===fa?0:z);ga=c(f.divlinecolor,n.getColor(L.divLineColor));ja=c(f.divlinealpha,G?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,ja);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);ka.gridLineColor=T(c(f.vdivlinecolor,n.getColor(L.divLineColor)),c(f.vdivlinealpha,n.getColor("divLineAlpha")));ka.gridLineWidth=ic;ka.gridLineDashStyle=
rc?h(tc,yc,ic):"none";ka.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));zb=c(f.canvasbgalpha,n.getColor("canvasBgAlpha"));c(f.showcanvasbg,eb)==Ea&&(zb="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),Gb=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),Gb=a(f.showpercentintooltip,La)),u.showPercentValues=La,u.showPercentInToolTip=Gb,v?(u.isValueAbs=!0,F[I].stacking="percent",u[0].stacking100Percent=!0):F[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);B.useRoundEdges&&(l.plotOptions.series.shadow=a(f.showshadow,f.showcolumnshadow,1),l.plotOptions.series.borderRadius=1,l.tooltip.style.borderRadius="2px",B.plotBorderRadius=3,C||(B.plotBorderWidth=0),B.plotShadow=l.plotOptions.series.shadow?{enabled:!0,opacity:zb/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=E(f.caption);l.subtitle.text=E(f.subcaption);0===a(f.showtooltip,this.showtooltip)&&(l.tooltip.enabled=!1);tb=l.tooltip.style;tb.backgroundColor=T(c(tb.backgroundColor,f.tooltipbgcolor,n.getColor("toolTipBgColor")),c(f.tooltipbgalpha,100));tb.borderColor=T(c(tb.borderColor,f.tooltipbordercolor,n.getColor("toolTipBorderColor")),c(f.tooltipborderalpha,100));
l.tooltip.shadow=a(f.showtooltipshadow,f.showshadow,1)?{enabled:!0,opacity:$(a(f.tooltipbgalpha,100),a(f.tooltipborderalpha,100))/100}:!1;l.tooltip.constrain=a(f.constraintooltip,1);tb.borderWidth=a(f.tooltipborderthickness,1)+"px";f.tooltipborderradius&&(tb.borderRadius=a(f.tooltipborderradius,1)+"px");tb.padding=a(f.tooltippadding,this.tooltippadding,3)+"px";f.tooltipcolor&&(tb.color=ba(f.tooltipcolor));u.userPlotSpacePercent=l.plotOptions.series.userPlotSpacePercent=f.plotspacepercent;ib=a(f.plotspacepercent,
20)%100;u.plotSpacePercent=l.plotOptions.series.groupPadding=ib/200;G&&!Y?(B.series2D3Dshift="mscombi3d"===H?!0:Boolean(a(f.use3dlineshift,0)),B.canvasBaseColor3D=c(f.canvasbasecolor,n.getColor("canvasBaseColor3D")),B.canvasBaseDepth=a(f.canvasbasedepth,10),B.canvasBgDepth=a(f.canvasbgdepth,3),B.showCanvasBg=Boolean(a(f.showcanvasbg,1)),B.showCanvasBase=Boolean(a(f.showcanvasbase,1)),da?(B.xDepth=5,B.yDepth=5,B.showCanvasBg&&(u.marginTopExtraSpace+=B.canvasBgDepth),u.marginLeftExtraSpace+=B.yDepth+
(B.showCanvasBase?B.canvasBaseDepth:0),u.marginBottomExtraSpace+=5):(B.xDepth=10,B.yDepth=10,B.showCanvasBg&&(u.marginRightExtraSpace+=B.canvasBgDepth),u.marginBottomExtraSpace+=B.yDepth+(B.showCanvasBase?B.canvasBaseDepth:0)),Ta=Ta.split(za)[0],zb=zb.split(za)[0],B.use3DLighting=Boolean(a(f.use3dlighting,1)),B.plotBackgroundColor=B.use3DLighting?{FCcolor:{color:U(Ta,85)+za+Da(Ta,55),alpha:zb+za+zb,ratio:ob,angle:M(m-(B.marginLeft+B.marginRight),z-(B.marginTop+B.marginBottom),1)}}:T(Ta,zb),B.canvasBgColor=
T(U(Ta,80),zb),K=c(f.zeroplanecolor,f.divlinecolor,n.getColor(L.divLineColor)),w=c(f.zeroplanealpha,f.divlinealpha,n.getColor("divLineAlpha")),B.zeroPlaneColor=T(K,w),B.zeroPlaneBorderColor=T(c(f.zeroplanebordercolor,K),a(f.zeroplaneshowborder,1)?w:0),B.zeroPlaneShowBorder=a(f.zeroplaneshowborder,1)):(B.is3D=!1,B.plotBackgroundColor={FCcolor:{color:Ta,alpha:zb,angle:c(f.canvasbgangle,n.getColor("canvasBgAngle")),ratio:c(f.canvasbgratio,n.getColor("canvasBgRatio"))}});this.parseExportOptions(l);this.parseHoverEffectOptions(B);
this.preSeriesAddition&&this.preSeriesAddition(l,k,m,z);this.series&&this.series(k,l,H,m,z);this.postSeriesAddition(l,k,m,z);this.spaceManager(l,k,m,z);this.postSpaceManager&&this.postSpaceManager(l,k,m,z);lb=a(f.drawquadrant,0);u.isXYPlot&&lb&&(rb=ka.min,Ba=ka.max,Vb=l.yAxis[0].min,qc=l.yAxis[0].max,ab=a(f.quadrantxval,(rb+Ba)/2),hb=a(f.quadrantyval,(Vb+qc)/2),hb>=Vb&&hb<=qc&&ab>=rb&&ab<=Ba&&(Jb=T(c(f.quadrantlinecolor,B.plotBorderColor),c(f.quadrantlinealpha,$a)),mb=a(f.quadrantlinethickness,B.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,mb):"none",ka.plotLines.push({color:Jb,value:ab,width:mb,dashStyle:jd,zIndex:3}),l.yAxis[0].plotLines.push({color:Jb,value:hb,width:mb,dashStyle:jd,zIndex:3}),Yc=m-B.marginRight-B.marginLeft,Zb=z-B.marginTop-B.marginBottom,pb=u.inCanvasStyle,
ua=Yc/(Ba-rb)*(ab-rb),Yb=Yc-ua,Pa=Zb/(qc-Vb)*(hb-Vb),fc=Zb-Pa,ua-=uc,Yb-=uc,fc-=uc,Pa-=uc,Ab=uc+Ga,Bb=Zb-uc+Ga,$b=uc+Ga,kd=Yc-uc+Ga,V.setStyle(pb),0<fc&&(Bc!==b&&0<ua&&(J=t(f.quadrantlabeltlbordercolor,f.quadrantlabelbordercolor,b),Cb=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:Ab,fontSize:c(a(f.quadrantlabeltlfontsize,
f.quadrantlabelfontsize),parseInt(pb.fontSize,10))+Ga,lineHeight:pb.lineHeight,fontFamily:c(f.quadrantlabeltlfont,f.quadrantlabelfont,pb.fontFamily),color:T(c(f.quadrantlabeltlfontcolor,f.quadrantlabelfontcolor,pb.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||Cb?Pb+"px solid":b,borderColor:J,borderThickness:Pb,
borderPadding:a(f.quadrantlabeltlborderpadding,f.quadrantlabelborderpadding,2),borderRadius:a(f.quadrantlabeltlborderradius,f.quadrantlabelborderradius,0),backgroundColor:Cb?T(Cb,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):"none"},r(Wb),
V.setStyle(Wb),Kb=V.getSmartText(Bc,ua,fc),l.labels.items.push({html:Kb.text,title:Kb.title,zIndex:3,vAlign:qa,style:Wb})),hd!==b&&0<Yb&&(J=t(f.quadrantlabeltrbordercolor,f.quadrantlabelbordercolor,b),Cb=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:Ab,fontSize:c(a(f.quadrantlabeltrfontsize,
f.quadrantlabelfontsize),parseInt(pb.fontSize,10))+Ga,lineHeight:pb.lineHeight,fontFamily:c(f.quadrantlabeltrfont,f.quadrantlabelfont,pb.fontFamily),color:T(c(f.quadrantlabeltrfontcolor,f.quadrantlabelfontcolor,pb.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||Cb?Pb+"px solid":b,borderColor:J,borderThickness:Pb,
borderPadding:a(f.quadrantlabeltrborderpadding,f.quadrantlabelborderpadding,2),borderRadius:a(f.quadrantlabeltrborderradius,f.quadrantlabelborderradius,0),backgroundColor:Cb?T(Cb,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):"none"},r(Wb),
V.setStyle(Wb),Kb=V.getSmartText(hd,ua,fc),l.labels.items.push({html:Kb.text,textAlign:ha,title:Kb.title,zIndex:3,vAlign:qa,style:Wb}))),0<Pa&&(ec!==b&&0<ua&&(J=t(f.quadrantlabelblbordercolor,f.quadrantlabelbordercolor,b),Cb=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:Bb,fontSize:c(a(f.quadrantlabelblfontsize,
f.quadrantlabelfontsize),parseInt(pb.fontSize,10))+Ga,lineHeight:pb.lineHeight,fontFamily:c(f.quadrantlabelblfont,f.quadrantlabelfont,pb.fontFamily),color:T(c(f.quadrantlabelblfontcolor,f.quadrantlabelfontcolor,pb.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||Cb?Pb+"px solid":b,borderColor:J,borderThickness:Pb,
borderPadding:a(f.quadrantlabelblborderpadding,f.quadrantlabelborderpadding,2),borderRadius:a(f.quadrantlabelblborderradius,f.quadrantlabelborderradius,0),backgroundColor:Cb?T(Cb,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):"none"},r(Wb),
V.setStyle(Wb),Kb=V.getSmartText(ec,ua,fc),l.labels.items.push({html:Kb.text,textAlign:Sa,title:Kb.title,zIndex:3,vAlign:Na,style:Wb})),id!==b&&0<Yb&&(J=t(f.quadrantlabelbrbordercolor,f.quadrantlabelbordercolor,b),Cb=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:Bb,fontSize:c(a(f.quadrantlabelbrfontsize,
f.quadrantlabelfontsize),parseInt(pb.fontSize,10))+Ga,lineHeight:pb.lineHeight,fontFamily:c(f.quadrantlabelbrfont,f.quadrantlabelfont,pb.fontFamily),color:T(c(f.quadrantlabelbrfontcolor,f.quadrantlabelfontcolor,pb.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||Cb?Pb+"px solid":b,borderColor:J,borderThickness:Pb,
borderPadding:a(f.quadrantlabelbrborderpadding,f.quadrantlabelborderpadding,2),borderRadius:a(f.quadrantlabelbrborderradius,f.quadrantlabelborderradius,0),backgroundColor:Cb?T(Cb,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):"none"},r(Wb),
V.setStyle(Wb),Kb=V.getSmartText(id,ua,fc),l.labels.items.push({html:Kb.text,textAlign:ha,vAlign:Na,title:Kb.title,zIndex:3,style:Wb})))));if(this.hasVDivLine&&(ub=a(f.showvdivlines,0),gc=a(f.numvdivlines,0)+1,ub&&(gc=u.x.catCount-1),1<gc)){gb=ka.min;kc=u.x.catCount-1;yb=ka.max;Mb=kc/gc;Rc=!0;Zc=gb;ka.scroll&&!isNaN(ka.scroll.viewPortMax)&&(yb=ka.scroll.viewPortMax);jc=c(f.vdivlinecolor,ga);rd=a(f.vdivlinealpha,ja);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=Mb;Za<kc;Za+=Mb,Rc=!Rc)Rc&&lc&&ka.plotBands.push({isNumVDIV:!0,color:ld,from:Zc,to:Za,zIndex:1}),ka.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&&ka.plotBands.push({isNumVDIV:!0,color:ld,from:Zc,to:yb,zIndex:1})}P=B.marginTop;ra=B.marginBottom;
Ha=B.marginLeft;ma=B.marginRight;N.canvasstartx=Ha;N.canvasstarty=P;N.canvasendx=m-ma;N.canvasendy=z-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);G&&B.xDepth>B.marginLeft&&(B.marginLeft=B.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,Jb?"_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=B(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,D;if(m){m=m.split(/\s*?\|\s*?/);for(D=0;D<m.length;D++)k=(f=m[D].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:Db,placeLegendBlockBottom:Fa,configureLegendOptions:Tb,placeLegendBlockRight:vb,placeHorizontalAxis:sb,placeVerticalAxis:Wa,placeHorizontalCanvasMarginAdjustment:Aa,placeVerticalCanvasMarginAdjustment:Ua,placeHorizontalXYSpaceManager:function(b,d,e,m){var f=b[g],h,k,D,l,n=d.chart,K,p,r,M,q,t,w,V=b.chart,v=f.marginLeftExtraSpace,u=f.marginTopExtraSpace,Y=f.marginBottomExtraSpace,A=f.marginRightExtraSpace;
l=e-(v+A+V.marginRight+V.marginLeft);var E=m-(Y+V.marginBottom+V.marginTop),B=.3*l;e=.3*E;var da=b.xAxis.showLine?b.xAxis.lineThickness:0;D=b.yAxis[0].showLine?b.yAxis[0].lineThickness:0;h=l-B;m=E-e;K=c(n.legendposition,Na).toLowerCase();b.legend.enabled&&K===ha&&(h-=this.placeLegendBlockRight(b,d,h/2,E));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:eb)===eb;p=f.plotBorderThickness=p?f.is3d?1:a(n.plotborderthickness,
1):0;r=$(a(V.plotBorderWidth,1),0);!f.isDual&&V.marginRight<r&&void 0===n.chartrightmargin&&(k=r-V.marginRight,l>B+k&&(V.marginRight=r,l-=k,B=.3*l,h=l-B));k=f.x;M=$(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,E,h,!1,!1,l);b.xAxis.lineEndExtension=D;h-=Aa(b,d,h,b.xAxis);l=h+B;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=$(a(n.yaxisvaluespadding,4))+D;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);D=b.xAxis;q=D.plotLines;h=m/(D.max-D.min);q&&q.length&&(r=(q[0].value-D.min)*h,q=(D.max-q[q.length-1].value)*h,f.isBar&&(p>r&&(D.min-=(p-r)/(2*h)),p>q&&(D.max+=(p-q)/(2*h))));m-=this.placeHorizontalAxis(b.yAxis[0],
k,b,d,l,m,B);m-=Ua(b,d,m,b.yAxis[0]);wb(e+m,b,n,b.xAxis,f.x.lYLblIdx,!0);Lb(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+=A},placeVerticalXYSpaceManager:function(b,d,e,m){var f=b[g],h,k,D=!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,A=f.marginRightExtraSpace;q=e-(v+A+M.marginRight+M.marginLeft);var E=m-(Y+M.marginBottom+M.marginTop),B=.3*q;m=.3*E;var da=q-B;e=E-m;h=f.drawFullAreaBorder=a(l.drawfullareaborder,1);var F=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:eb)===eb;k=f.plotBorderThickness=k?f.is3d?1:a(l.plotborderthickness,1):0;r=$(a(M.plotBorderWidth,1),0);k=$(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>B+h&&(q-=h,B=.3*q,da=q-B));b.legend.enabled&&F===ha&&(da-=this.placeLegendBlockRight(b,d,da/2,E));f.isDual&&(n=!0,h=f[1],D=b.yAxis[1].opposite,r=c(l.rotateyaxisname,D?"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,E,da/2,D,n));h=f[0];D=!D;r=c(l.rotateyaxisname,D?"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,E,da,D,n,q);da-=Aa(b,d,da,b.yAxis[0],b.yAxis[1]);D=da+B;b.legend.enabled&&F!==ha&&(e-=this.placeLegendBlockBottom(b,d,D,e/2));e-=this.titleSpaceManager(b,
d,D,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*D;t>w&&(V=q.left/t,q.left-=V*(t-w),q.right-=(1-V)*(t-w));this.xAxisMinMaxSetter(b,d,D,q.left,q.right);e-=this.placeHorizontalAxis(b.xAxis,h,b,d,D,e,B);e-=Ua(b,d,e,b.xAxis);b.title.alignWithCanvas||("left"===b.title.align&&b.yAxis[0].title.text&&Nb(b,b.yAxis[0].title,m+e),"right"===b.title.align&&n&&b.yAxis[1].title.text&&Nb(b,b.yAxis[1].title,m+e));n&&(wb(m+e,b,l,
b.yAxis[1],f[1].lYLblIdx),Lb(b,b.yAxis[1].title,m+e));wb(m+e,b,l,b.yAxis[0],f[0].lYLblIdx);Lb(b,b.yAxis[0].title,m+e);b.legend.enabled&&F===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+=A},placeVerticalAxisTitle:Lb,calculateCanvasOverflow:function(a,c){for(var d=this.canvasPaddingModifiers,e=a.chart,f=this.smartLabel,
g=0,m=0,h=0,k=0,D=g=!1,l=!1,n=d&&d.length||0,K,r,p,q,M;n--;)switch(m=d[n],m){case "anchor":D=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],D&&(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=$(g+2,h),k=$(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=$(g+2,h),k=$(m+2,k)))),l&&(m=g=K.errorBarWidth/2+K.errorBarThickness||0,h=$(g+2,h),k=$(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,D,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,
A=0>p&&0<q?!0:!1,E=0===p,B=0===q,da=0===a(h.showzeroplanevalue,d.showzeroplanevalue),F=!0,oa,C=1,ka=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={});!A||K&&h.catOccupied[0]||(K?(F=a(d.showvzeroplane,1),oa=a(d.showvzeroplanevalue,k),ka=a(d.vzeroplanethickness,
1),ca=c(d.vzeroplanealpha,d.vdivlinealpha,ca.getColor("divLineAlpha")),d=0<ka?T(c(d.vzeroplanecolor,v),ca):xa):(ca=a(d.divlinealpha,ca.getColor("divLineAlpha")),oa=a(h.showzeroplanevalue,d.showzeroplanevalue,k),!1===this.defaultZeroPlaneHighlighted?(F=a(h.showzeroplane,d.showzeroplane,!(this.defaultZeroPlaneHidden&&!ka)),ka=u):(ka=1===u?2:u,C=5,ca=Z(2*ca,100)),ka=a(h.zeroplanethickness,d.zeroplanethickness,ka),ca=c(h.zeroplanealpha,d.zeroplanealpha,ca),d=0<ka?T(c(h.zeroplanecolor,d.zeroplanecolor,
v),ca):xa),F&&(oa=oa?l[t](0,r):b,(C=J.addAxisGridLine(m,0,oa,ka,Y,d,C,K))&&(C.isZeroPlane=!0)),m.effectiveZeroPlaneThickness=F&&parseInt(ca,10)&&ka);K&&h.catOccupied[p]||(oa=!f||E&&da?b:l[t](p,r),(C=Xa||N&&(Va||!e.showLine)?J.addAxisGridLine(m,p,oa,u,Y,v||xa,2,K):J.addAxisGridLine(m,p,oa,.1,void 0,xa,2,K))&&(C.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)A&&0>w&&0<p&&!n&&(J.addAxisAltGrid(m,0),V+=1),0===p||K&&h.catOccupied[p]||(oa=1===k&&0===V%D?l[t](p,r):
b,J.addAxisGridLine(m,p,oa,u,Y,v,2,K)),w=p,n||J.addAxisAltGrid(m,p);n||J.addAxisAltGrid(m,q);0!==V%D||K&&h.catOccupied[q]||(oa=!f||B&&da?b:l[t](q,r),(C=Xa||N&&(!Va||!e.showLine)?J.addAxisGridLine(m,q,oa,u,Y,v||xa,2,K):J.addAxisGridLine(m,q,oa,.1,Y,xa,2,K))&&(C.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(Eb)},xAxisMinMaxSetter:function(b,
c,d,e,f){var m=b[g],h=m.x,k=c.chart,D=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(Z(a(V,e,0),d/2-10)),V=Ca(Z(a(V,f,0),d/2-10)),Y,A,E,B;h.adjustMinMax&&(Y=a(k.setadaptivexmin,1),l=D=!Y,A=a(this.numVDivLines,
k.numvdivlines,4),E=k.adjustvdiv!==Ea,B=a(k.showxaxisvalues,k.showxaxisvalue,1),Y=a(k.showvlimits,B),B=a(k.showvdivlinevalue,k.showvdivlinevalues,B),this.axisMinMaxSetter(M,h,k.xaxismaxvalue,k.xaxisminvalue,D,l,A,E),D=M.min,l=M.max,h.requiredAutoNumericLabels&&(A=a(parseInt(k.xaxisvaluesstep,10),1),this.configurePlotLines(k,b,M,h,Y,B,1>A?1:A,m.numberFormatter,!1,!0)),M.plotLines.sort(Eb));M.labels.enabled=!1;M.gridLineWidth=0;M.alternateGridColor=xa;(r||m.isScroll)&&!m.hasNoColumn&&!v&&R(e)&&R(f)&&
(K=d/(l-D+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)-D+(n+K));M.min=D-(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],D=k&&k.stacking100Percent,n,K,p,r,M,q,t,V,w,v,u,Y,A,E,B,da,F,oa,C,ka,L,J,ca;if(this.isStacked)for(p in n=e.plotSpacePercent,K=b.chart.defaultSeriesType,n=1-2*n,da=b.series,F=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;E=[];Y=0;for(V=da.length;Y<V;Y+=1)w=da[Y],w.yAxis||c(w.type,
K)!==p||E.push(w);for(q=0;q<k;q+=1,t+=M){u=r[p][q];B=[];Y=0;for(V=E.length;Y<V;Y+=1)w=E[Y],a(w.columnPosition,0)===q&&B.push(w.data);if(u&&u.length)for(v=0,w=u.length;v<w;v+=1)if(Y=u[v])for(A=(Y.n||0)+(Y.p||0),e.showStackTotal&&(V=v,V+=t,Y=0>A?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>A?ha:Sa:va:0>A?ha:Sa,offsetScale:ca?Y:void 0,offsetScaleIndex:0,rotation:f,style:L,verticalAlign:qa,
y:m?0:0>A?270===f?4:J:-4,x:0,text:e.numberFormatter.yAxis(A)}})),Y=0,V=B.length;Y<V;Y+=1)if(C=B[Y][v])if(ka=A&&(C.y||0)/A*100,oa=F.percentValue(ka),C.toolText=l(C.toolText,[14,24,25,112],{percentValue:oa,sum:F.dataLabels(A),unformattedSum:A}),C.y||0===C.y)D&&(C.y=ka,C.previousY||0===C.previousY)&&(C.previousY=C.previousY/A*100),C.showPercentValues&&(C.displayValue=oa)}}},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,D,l,n,K,p,r,M,q,t,V,w,v=0,u,Y,A,B,da,F,C,oa=this.numberFormatter,ka=a(f.syncaxislimits,0),L;m.title.text=E(f.xaxisname);L=a(parseInt(f.yaxisvaluesstep,10),parseInt(f.yaxisvaluestep,10),1);L=1>L?1:L;k=b.yAxis[0];D=e[0];if(e.isDual)l=oa.getCleanValue(f.pyaxismaxvalue),
n=oa.getCleanValue(f.pyaxisminvalue),k.title.text=E(f.pyaxisname),ka&&!D.stacking100Percent?(w=e[1],V=a(w.max),w=a(w.min),void 0!==V&&void 0!==w&&(D.min=Z(D.min,w),D.max=$(D.max,V)),V=oa.getCleanValue(f.syaxismaxvalue),w=oa.getCleanValue(f.syaxisminvalue),null!==w&&(n=null!==n?Z(n,w):w),null!==V&&(l=null!==l?$(l,V):V)):ka=0;else{l=oa.getCleanValue(f.yaxismaxvalue);n=oa.getCleanValue(f.yaxisminvalue);if(e.isSpline)for(w=0;w<b.series.length;w++)V=Ib(b.series[w].data,e.width,b.plotOptions.series.connectNullData),
D.min=Z(D.min,V.min),D.max=$(D.max,V.max);k.title.text=E(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),A=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),B=m.lineThickness=a(f.xaxislinethickness,A),k.lineThickness=a(f.yaxislinethickness,A),F=m.lineAlpha=a(f.xaxislinealpha,da),100<F&&(F=m.lineAlpha=100),C=k.lineAlpha=a(f.yaxislinealpha,da),100<C&&(C=k.lineAlpha=100),m.lineColor=T(c(f.xaxislinecolor,Y),F),k.lineColor=T(c(f.yaxislinecolor,Y),C),b.chart.xAxisLineVisible=u&&!!B&&0<F);this.axisMinMaxSetter(k,D,l,n,K,p,M,q);this.configurePlotLines(f,b,k,D,V,w,L,e.numberFormatter,
!1);k.reversed&&0<=k.min&&(b.plotOptions.series.threshold=k.max);e.isDual&&(k=b.yAxis[1],D=e[1],V=a(f.showsecondarylimits,V),w=a(f.showdivlinesecondaryvalue,t),ka?(m=b.yAxis[0],k.min=m.min,k.max=m.max,k.tickInterval=m.tickInterval,delete D.max,delete D.min):(l=oa.getCleanValue(f.syaxismaxvalue),n=oa.getCleanValue(f.syaxisminvalue),r=a(f.setadaptivesymin,r),p=K=!r,this.axisMinMaxSetter(k,D,l,n,K,p,M,q)),h||(k.showLine=a(f.showsyaxisline,v),k.lineThickness=a(f.syaxislinethickness,A),h=k.lineAlpha=a(f.syaxislinealpha,
da),100<h&&(h=100),k.lineColor=T(c(f.syaxislinecolor,Y),h)),this.configurePlotLines(f,b,k,D,V,w,L,e.numberFormatter,!0),k.title.text=E(f.syaxisname))},pointValueWatcher:function(b,d,e,m,f,h,k){b=b[g];var D;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?(D=f.p,d=f.p+=d):f.p=d:f.n?(D=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,D},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,D={};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&&(D={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,Z(l.alpha,l.borderAlpha).toString(),g.isBar,g.is3d),l.dashStyle=l.borderDashed?h(l.borderDashLen,l.borderDashGap,l.borderThickness):"none",D={shadow:l.shadow,color:l.colorArr[0],borderColor:l.colorArr[1],borderWidth:l.borderThickness,use3DLighting:g.use3DLighting,dashStyle:l.dashStyle});"anchor"==n&&(D=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&&(D={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:D}},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(E(c(d.tooltext,h.tooltext))),D=p(E(d.displayvalue)),f=h.showTooltip?void 0!==k?l(k,[1,2,3,5,6,7],{formattedValue:e,label:m,yaxisName:E(f.yaxisname),xaxisName:E(f.xaxisname)},d,f):null===e?!1:m!==b?m+h.tooltipSepChar+e:e:b;h=a(d.showvalue,
h.showValues)?void 0!==D?D: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,
m,g,h,k;h=a.is3D;if(!e||!e.length)return 0;isNaN(b[0])?m=0:(m=Number(b[0]),b=b.slice(1));g=b[0];if("set"===g){isNaN(b[1])?(k=0,b=b.slice(1)):(k=Number(b[1]),b=b.slice(2));g=b[0];e=(e=e[m]&&e[m].items[k])&&e.graphic;if(!e)return 0;h=d&&h?e._getBBox2():e.getBBox();k=c(g,h)}return k};b.xaxis=function(b){var d=a.renderer&&a.renderer.xAxis&&a.renderer.xAxis[0]&&a.renderer.xAxis[0].labels,e,m;if(!d||!d.length)return 0;m=b[0];if("label"===m){isNaN(b[1])?(e=0,b=b.slice(1)):(e=Number(b[1]),b=b.slice(2));m=
b[0];b=d[e];if(!b)return 0;b=b.getBBox();e=c(m,b)}return e};b.yaxis=function(b){var d=a.renderer&&a.renderer.yAxis,e,m;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){m=e.labels;isNaN(b[1])?(e=0,b=b.slice(1)):(e=Number(b[1]),b=b.slice(2));d=b[0];b=m[e];if(!b)return 0;b=b.getBBox();m=c(d,b)}return m}}},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,D,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],D=E(t(M.label,M.name)),h.addXaxisCat(l,m,m,n?D:b,{},M,k),K[m]=t(E(M.tooltext),D),m+=1);f.catCount=m},getPointStub:function(d,e,m,h,f,k,D,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 A,B,da=null===e?e:this.numberFormatter.dataLabels(e,D),F,oa=p(E(c(d.tooltext,f.plottooltext,h.tooltext))),C=h.tooltipSepChar,ka,L={},J,ca,N,Xa,Va,P,ra,Ha,ma;u&&(ca=null===n?n:
this.numberFormatter.dataLabels(n,D),P=null===e?b:this.numberFormatter.percentValue(n/e*100),ka=[1,2,3,4,5,6,7,99,100,101,102],e={yaxisName:Xa=E(q?D?M.syaxisname:M.pyaxisname:M.yaxisname),xaxisName:Va=E(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),ka.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(E(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(E(c(d.horizontalerrorplottooltext,d.errorplottooltext,f.horizontalerrorplottooltext,f.errorplottooltext,M.horizontalerrorplottooltext,
M.errorplottooltext))),L._hErrortoolText=h.showTooltip?void 0!==J?l(J,ka,{yaxisName:Xa=E(q?D?M.syaxisname:M.pyaxisname:M.yaxisname),xaxisName:Va=E(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(E(c(d.errorplottooltext,f.errorplottooltext,M.errorplottooltext))),e.errorValue=
Ha=c(d.errorvalue)),L._errortoolText=h.showTooltip?void 0!==r?l(r,ka,e,d,M,f):null===n?!1:ca:!1);h.showTooltip?void 0!==oa?(v=[4,5,6,7],D={yaxisName:Xa||E(q?D?M.syaxisname:M.pyaxisname:V?f._yAxisName:M.yaxisname),xaxisName:Va||E(M.xaxisname)},w?(v.push(8,9,10,11),D.yDataValue=da,D.xDataValue=m,u&&(v.push(103,104,105,106,107,108,109,110),null!==n&&(D.verticalErrorDataValue=ca,D.verticalErrorPercentValue=P,D.verticalErrorValue=Ha),null!==K&&(D.horizontalErrorDataValue=N,D.horizontalErrorPercentValue=
ra,D.horizontalErrorValue=ma))):(v.push(1,2,3),D.formattedValue=da,D.label=m,u&&(v.push(99,100,101,102),D.errorValue=Ha,null!==n&&(D.errorDataValue=ca,D.errorPercentValue=P))),f=l(oa,v,D,d,M,f)):null===da?f=!1:(h.seriesNameInToolTip&&(F=t(f&&f.seriesname)),f=F?F+C:b,f+=m?m+C:b,h.showPercentInToolTip&&v?(B=!0,f+="$percentValue"):f+=da):f=!1;a(d.showvalue,k)?void 0!==p(d.displayvalue)?Y=E(d.displayvalue):h.showPercentValues?A=!0:Y=da:Y=b;L.link=c(d.link);L.displayValue=Y;L.categoryLabel=m;L.toolText=
f;L.showPercentValues=A;L.showPercentInToolTip=B;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,m;m=a.sumXY;var g=a.sumX,h=a.sumY;f=a.xValues;e=a.sumXsqure;d=a.yValues;a=a.sumYsqure;b?(f.sort(bb),d=f[0],f=f[f.length-1],m=(c*m-g*h)/(c*e-Q(g,2)),e=isNaN(m)?h/c:m*(d-g/c)+h/c,c=isNaN(m)?h/c:m*(f-g/c)+
h/c,c=[{x:d,y:e},{x:f,y:c}]):(d.sort(bb),e=d[0],d=d[d.length-1],m=(c*m-g*h)/(c*a-Q(h,2)),f=isNaN(m)?g/c:m*(e-h/c)+g/c,c=isNaN(m)?g/c:m*(d-h/c)+g/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,D,n,K,M,p;e.isScroll=!0;b.chart.hasScroll=!0;if(this.isStacked)l=1;else{D=l=0;K=b.series;p=b.chart.defaultSeriesType;for(n=K.length;D<n;D++)M=c(K[D].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=Z(1,$(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,D=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],A=a(M.showaxislimitgridlines,
this.showAxisLimitGridLines),B=a(A,this.is3D||e.chart.plotBorderWidth?0:1),da,F;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);D.title.text=E(M.xaxisname);D.showLine=a(M.showxaxisline,M.showaxislines,0);D.lineThickness=a(M.xaxislinethickness,M.axislinethickness,1);D.lineAlpha=a(M.xaxislinealpha,M.axislinealpha,100);D.lineColor=T(c(M.xaxislinecolor,M.axislinecolor,"000"));d(n,{title:{text:E(M.yaxisname)},labels:{enabled:!1},gridLineWidth:0,
alternateGridColor:xa,reversed:"1"===M.invertyaxis,max:oa(t.Max,q),min:oa(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,F=(w=w.data)&&w.length||0;F--;)da=w[F],da.y=oa(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=oa(da.value,q)),da.from&&(da.from=oa(da.from,q)),da.to&&(da.to=oa(da.to,q));for(M=n.plotBands.length;M--;)da=n.plotBands[M],da.from&&(da.from=oa(da.from,q)),da.to&&(da.to=oa(da.to,q));for(M=t.divArr.length;M--;){da=t.divArr[M];if(da.ismajor)V[1]=oa(da.value,q),V[2]=f.yAxis(da.value),k.addAxisGridLine.apply(k,V);else if(Y||
da.isextreme)u[1]=oa(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=A||B&&(!da.isMin||!D.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 m=function(a){return null===a||void 0===a||""===a||isNaN(a)?!1:!0},g=0,h=[],k,l,D,n,M,K,p,r;m(c)&&Number(c)>=a?a=Number(c):(c=1<f?Ca(ja(a)/ja(f)):fa(ja(a)/ja(f)),a=Q(f,c),l=c);l||(l=1<f?Ca(ja(a)/ja(f)):fa(ja(a)/
ja(f)));m(d)&&Number(d)<=b?b=Number(d):(c=1<f?fa(ja(b)/ja(f)):Ca(ja(b)/ja(f)),b=Q(f,c),k=c);k||(k=1<f?fa(ja(b)/ja(f)):Ca(ja(b)/ja(f)));d=Number(String(ja(f)/ja(10)));e=Number(e)||(fa(d)==d?8:4);1<f?(D=l,n=k):0<f&&1>f&&(D=k,n=l);d=l;for(k=D;k>=n;--k)if(D=Q(f,d),b<=D&&a>=D&&(h[g++]={value:D,ismajor:!0}),k!=n){l=1<f?-1:1;D=Q(f,d)-Q(f,d+l);c=D/(e+1);for(m=1;m<=e;++m)D=Q(f,d+l)+c*m,b<=D&&a>=D&&(h[g++]={value:D,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[g++]={value:b,ismajor:!0,isMin:!0,isextreme:!0});K||(h[g]={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);ib=sa.singleseries;La=sa.multiseries;sa("column2dbase",{point:function(e,m,k,l,f){var D=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:eb)===eb?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)?W(l.plotgradientcolor,p.getColor("plotGradientColor")):b,Y=0,A=Boolean(a(l.use3dlighting,1)),da=f[g].numberFormatter,B,F=a(l.plotborderdashed,0),oa=a(l.plotborderdashlen,5),C=a(l.plotborderdashgap,
4),L,ka,ca,J,N,Xa,Va,P,ra,Ha,ma,Ka,ta,Wa;for(ca=0;ca<D;ca+=1)ta=k[ca],ta.vline?M.addVline(K,ta,Y,f):(ka=da.getCleanValue(ta.value),B=a(ta.showlabel,l.showlabels,1),J=E(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,F),Ha=c(ta.dashgap,C),ma=c(ta.dashlen,oa),M.addXaxisCat(K,Y,Y,B?J:b,ta,{},l,L),Y+=1,0>ka&&(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),B=ra?h(ma,Ha,e):"none",L=this.pointHoverOptions(ta,m,{plotType:"column",is3d:r,isBar:q,use3DLighting:A,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,ka,J,f),{y:ka,shadow:Wa,color:Ka[0],borderColor:Ka[1],borderWidth:e,use3DLighting:A,dashStyle:B,tooltipConstraint:this.tooltipConstraint,hoverEffects:L.enabled&&L.options,
rolloverProperties:L.enabled&&L.rolloverOptions})),this.pointValueWatcher(f,ka));n.catCount=Y;return m},defaultSeriesType:"column"},ib);sa("linebase",{defaultSeriesType:"line",hasVDivLine:!0,defaultPlotShadow:1,point:function(e,m,k,l,f){var D,n,M,K,p,r,q,w,V,v,u,Y,A,da,B,F,oa,C,L,ka,ca,J,N,Va,Xa,P;e=f.chart;var ra=k.length,Ha=f.xAxis;D=f[g];var ma=this.colorManager,ta,Ka=D.axisGridManager,Wa=0,Ma=D.x,nb=f[g].numberFormatter,ia,R,Fa;da=ba(c(l.linecolor,l.palettecolors,ma.getColor("plotFillColor")));
B=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:B}};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));A=a(l.drawanchors,l.showanchors);for(n=0;n<ra;n+=1)K=k[n],K.vline?Ka.addVline(Ha,K,Wa,f):(D=nb.getCleanValue(K.value),
p=a(K.showlabel,l.showlabels,1),M=E(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,B),p=a(K.dashed,Y)?h(q,w,u):"none",r={opacity:v/100},oa=a(K.anchorsides,l.anchorsides,0),Va=a(K.anchorstartangle,l.anchorstartangle,90),ka=a(K.anchorradius,l.anchorradius,this.anchorRadius,3),L=ba(c(K.anchorbordercolor,l.anchorbordercolor,da)),C=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),F=void 0===A?0!==v:!!A,P=Boolean(a(K.anchorshadow,Xa,0)),ta=this.pointHoverOptions(K,m,{plotType:"anchor",anchorBgColor:ca,anchorAlpha:J,anchorBgAlpha:N,anchorAngle:Va,anchorBorderThickness:C,anchorBorderColor:L,anchorBorderAlpha:J,anchorSides:oa,anchorRadius:ka,imageUrl:ia,imageScale:R,imageAlpha:Fa,
shadow:r}),m.data.push(d(this.getPointStub(K,D,M,f),{y:D,color:{FCcolor:{color:V,alpha:v}},shadow:r,dashStyle:p,valuePosition:c(K.valueposition,e.valuePosition),marker:{enabled:!!F,shadow:P&&{opacity:J/100},fillColor:{FCcolor:{color:ca,alpha:N*J/100+b}},lineColor:{FCcolor:{color:L,alpha:J}},lineWidth:C,radius:ka,startAngle:Va,symbol:Ra(oa),imageUrl:ia,imageScale:R,imageAlpha:Fa},tooltipConstraint:this.tooltipConstraint,hoverEffects:ta.enabled&&ta.options,rolloverProperties:ta.enabled&&ta.rolloverOptions})),
this.pointValueWatcher(f,D));Ma.catCount=Wa;return m},defaultZeroPlaneHighlighted:!1},ib);sa("area2dbase",{defaultSeriesType:"area",hasVDivLine:!0,parseAnchorVisibility:function(b,d,e){var m=a(b.drawanchors,d.drawanchors,d.showanchors);return R(m)?m: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 D=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,A,da,B,F,oa,C,L,ka,ca,J,N,Va,Xa,P,ra,Ha,ma,ta,Ka,Wa,Ma,nb,ia,R,Fa;A=c(l.plotfillcolor,l.areabgcolor,p(l.palettecolors)?q.getPlotColor(0):q.getColor("plotFillColor")).split(/\s*\,\s*/)[0];ma=za+(a(l.useplotgradientcolor,1)?W(l.plotgradientcolor,q.getColor("plotGradientColor")):b);da=c(l.plotfillalpha,
l.areaalpha,this.isStacked?$a:"90");B=a(l.plotfillangle,270);F=c(l.plotbordercolor,l.areabordercolor,p(l.palettecolors)?q.getPlotColor(0):q.getColor("plotBorderColor")).split(/\s*\,\s*/)[0];oa=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:A+ma.replace(/,+?$/,""),alpha:da,
ratio:ob,angle:B}};m.lineWidth=Xa;m.dashStyle=v?h(u,ca,Xa):"none";m.lineColor={FCcolor:{color:F,alpha:oa,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<D;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=E(t(ca.label,ca.name)),K.addXaxisCat(n,w,w,Y?u:b,ca,{},l),w+=1,Y=a(ca.anchorsides,l.anchorsides,0),ka=a(ca.anchorstartangle,l.anchorstartangle,90),C=a(ca.anchorradius,l.anchorradius,3),L=ba(c(ca.anchorbordercolor,l.anchorbordercolor,F)),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:A,alpha:void 0===Ha?ga(Ha)+b:da,ratio:ob,angle:B}}:ta,nb=c(ca.anchorimageurl,l.anchorimageurl),ia=c(ca.anchorimagescale,l.anchorimagescale,100),R=c(ca.anchorimagealpha,l.anchorimagealpha,100),Ha={opacity:$(Ha,oa)/100,inverted:!0},Fa=this.pointHoverOptions(ca,m,{plotType:"anchor",anchorBgColor:J,anchorAlpha:N,anchorBgAlpha:Va,anchorAngle:ka,anchorBorderThickness:P,anchorBorderColor:L,
anchorBorderAlpha:N,anchorSides:Y,anchorRadius:C,imageUrl:nb,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:C,symbol:Ra(Y),startAngle:ka,imageUrl:nb,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}},ib);sa("mscolumn2dbase",{point:function(d,e,m,h,f,l,k,D,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(),A,da=f._FCconf.isBar,B=e.hoverEffects;t||(e.columnPosition=
a(n,D,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>A&&(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)?W(h.plotgradientcolor,u.getColor("plotGradientColor")):b,ratio:c(m.ratio,h.plotfillratio),
fillAangle:n,isRoundEdges:f.chart.useRoundEdges,plotBorderColor:c(h.plotbordercolor,k?hb:u.getColor("plotBorderColor")).split(za)[0],plotBorderAlpha:h.showplotborder==Ea||k&&h.showplotborder!=eb?Ea:c(h.plotborderalpha,m.alpha,h.plotfillalpha,$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,eb),showValues:a(m.showvalues,r.showValues),yAxis:V,use3DLighting:a(h.use3dlighting,
1),_sourceDataset:m,hoverEffects:B},this);for(h=0;h<l;h+=1)(r=K[h])?(A=v.getCleanValue(r.value,w),null===A?e.data.push({y:null}):(M=!0,r=m(r,h,A),e.data.push(r),r.previousY=this.pointValueWatcher(f,A,V,t,h,D,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,D=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,D.getPlotColor())),u=a(m.alpha,h.linealpha,$a),Y=a(h.showshadow,this.defaultPlotShadow,1),A=a(m.drawanchors,m.showanchors,h.drawanchors,h.showanchors),da=a(m.anchorsides,h.anchorsides,0),B=a(m.anchorstartangle,h.anchorstartangle,90),E=a(m.anchorradius,h.anchorradius,3),F=ba(c(m.anchorbordercolor,h.anchorbordercolor,v)),oa=a(m.anchorborderthickness,
h.anchorborderthickness,1),D=ba(c(m.anchorbgcolor,h.anchorbgcolor,D.getColor("anchorBgColor"))),C=c(m.anchoralpha,h.anchoralpha,$a),L=c(m.anchorbgalpha,h.anchorbgalpha,C),ca=C&&c(m.anchorshadow,h.anchorshadow,0),ka=e.hoverEffects;e.name=p(m.seriesname);if(0===a(m.includeinlegend)||void 0===e.name||0===u&&1!==A)e.showInLegend=!1;e.marker={enabled:Boolean(a(A,1)),fillColor:{FCcolor:{color:D,alpha:L*C/100+b}},lineColor:{FCcolor:{color:F,alpha:C+b}},lineWidth:oa,radius:E,symbol:Ra(da),startAngle:B};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:C,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:A,anchorBgColor:D,anchorBgAlpha:L,anchorBorderColor:F,anchorBorderThickness:oa,anchorRadius:E,anchorSides:da,anchorAngle:B,anchorShadow:e.anchorShadow,anchorStartAngle:a(m.anchorstartangle,h.anchorstartangle),_sourceDataset:m,hoverEffects:ka,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 D=!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),A=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"),B=a(l.plotborderangle,270),E=a(m.anchorsides,l.anchorsides,0),F=a(m.anchorstartangle,l.anchorstartangle,90),C=a(m.anchorradius,l.anchorradius,3),oa=ba(c(m.anchorbordercolor,l.anchorbordercolor,u)),L=a(m.anchorborderthickness,l.anchorborderthickness,1),ca=ba(c(m.anchorbgcolor,l.anchorbgcolor,V.getColor("anchorBgColor"))),ka=Boolean(sa.area2dbase.parseAnchorVisibility(m,l,0)),ka=a(m.anchoralpha,
l.anchoralpha,this.anchorAlpha,ka?$a:0),J=a(m.anchorbgalpha,l.anchorbgalpha,ka),N=ka&&c(m.anchorshadow,l.anchorshadow,0),Xa=e.hoverEffects;this.isRadar||(u+=za+(a(l.useplotgradientcolor,1)?W(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:ob,angle:A}};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:B}};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):"none";e.marker={fillColor:{FCcolor:{color:ca,alpha:J*ka/100+b}},lineColor:{FCcolor:{color:oa,
alpha:ka+b}},lineWidth:L,radius:C,symbol:Ra(E),startAngle:F};m=e._dataParser=ia.area(f,{seriesname:e.name,plottooltext:m.plottooltext,lineAlpha:da,anchorAlpha:ka,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:oa,anchorBorderThickness:L,anchorRadius:C,anchorSides:E,anchorAngle:F,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}):(D=!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||D||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,D){d=a(l.ignoreemptydatasets,0);var n=this.colorManager,M=n.getPlotColor(),K,r,q,t,w,V,v,u,Y,A,da,B,E,F,C,oa,L,ca,ka;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));D=a(m.anchorsides,l.anchorsides,D+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(D)};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),ka=ta.getCleanValue(Y.x),
null===K?e.data.push({y:null,x:ka}):(k=!0,N=this.getPointStub(Y,K,ta.xAxis(ka),f,m,ma),B=a(Y.anchorsides,D),E=a(Y.anchorradius,V),F=ba(c(Y.anchorbordercolor,q)),C=a(Y.anchorborderthickness,M),oa=ba(c(Y.anchorbgcolor,v)),L=c(Y.anchoralpha,Y.alpha,u),ca=c(Y.anchorbgalpha,da),A=Boolean(a(Y.anchorshadow,n,0)),Ka=this.pointHoverOptions(Y,e,{plotType:"anchor",anchorBgColor:oa,anchorAlpha:L,anchorBgAlpha:ca,anchorAngle:J,anchorBorderThickness:C,anchorBorderColor:F,anchorBorderAlpha:L,anchorSides:B,anchorRadius:E,
shadow:void 0}),e.data.push({y:K,x:ka,displayValue:N.displayValue,toolText:N.toolText,link:N.link,marker:{enabled:w,shadow:A&&{opacity:L/100},fillColor:{FCcolor:{color:oa,alpha:ca*L/100+b}},lineColor:{FCcolor:{color:F,alpha:L}},lineWidth:C,radius:E,symbol:Ra(B),startAngle:c(Y.anchorstartangle,m.anchorstartangle,l.anchorstartangle,90)},hoverEffects:Ka.enabled&&Ka.options,rolloverProperties:Ka.enabled&&Ka.rolloverOptions}),this.pointValueWatcher(f,K,ka,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,D,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,A,da,B,F,C;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);D=a(K.verticallinealpha,v.getColor("divLineAlpha"));v=a(K.verticallinedashed,0);Y=a(K.verticallinedashlen,4);A=a(K.verticallinedashgap,2);da=T(m,D);for(m=0;m<K.category.length;m+=1)B=K.category[m],D=u.getCleanValue(B.x),null===D||B.vline||(k.catOccupied[D]=!0,M=a(B.showlabel,B.showname,w),F=a(B.showverticalline,B.showline,B.sl,0),C=a(B.linedashed,v),M=0===M||0!==l%q?b:E(t(B.label,B.name)),n.plotLines.push({isGrid:!0,
isCat:!0,isDataLabel:!0,width:F?f:0,color:da,dashStyle:h(Y,A,f,C),value:D,label:{text:M,link:c(B.link,p.labellink),style:la({},B,p,n.labels.style),align:va,verticalAlign:Na,textAlign:va,rotation:0,x:0,y:0}}),this.pointValueWatcher(e,null,D),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=U(a,50);return{FCcolor:{gradientUnits:"objectBoundingBox",
cx:.4,cy:.4,r:"100%",color:c+za+d,alpha:b+za+b,ratio:ob,radialGradient:!0}}}},sa.xybase);sa("mscombibase",{canvasPaddingModifiers:["anchor","anchorlabel"],series:function(b,d,e){var m,f,h,l,k=b.chart,D,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,D={hoverEffects:this.parseSeriesHoverOptions(b,
d,h,e),visible:!a(h.initiallyhidden,0),legendIndex:m,data:[]},r?(D.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":D.type=!0===v?p:"line";n.push(sa.mslinebase.point.call(this,e,D,h,k,d,l,m));break;case "area":case "splinearea":D.type=!0===v?p:"area";d.chart.series2D3Dshift=!0;M.push(sa.msareabase.point.call(this,
e,D,h,k,d,l,m));break;case "column":case "column3d":K.push(sa.mscolumn2dbase.point.call(this,e,D,b.dataset[m],k,d,l,m,void 0,V));V+=1;break;default:r?(D.type="line",n.push(sa.mslinebase.point.call(this,e,D,h,k,d,l,m))):(K.push(sa.mscolumn2dbase.point.call(this,e,D,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=[]),A=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);A&&k[A].insertAfter(k[A-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,C=q.window,b=q.hcLib,N=b.Raphael,J=b.chartAPI,c=/msie/i.test(C.navigator.userAgent)&&!C.opera,p=C.document,a=C.Image,t="VML"===N.type,W=b.BLANKSTRING,E=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,B=b.addEvent,w=b.getMouseCoordinate,R=b.removeEvent,v=b.pluck,na=b.pluckNumber,ea=b.toRaphaelColor,Z=b.setImageDisplayMode,$=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},ja=b.createElement,Q=b.createContextMenu,ya=b.hasTouch,F=ya?c:d,S=b.getSentenceCase,ba=b.getCrispValues,r=b.getValidValue,A=b.getFirstValue,ga=b.regex.dropHash,U=b.HASHSTRING,Da=function(a){return a!==xa&&null!==a},T=function(a,b){a[1]===a[4]&&(a[1]=a[4]=la(a[1])+b%2/2);a[2]===a[5]&&
(a[2]=a[5]=la(a[2])+b%2/2);return a},xa,va=8===p.documentMode?"visible":"",qa=C.Math,Na=qa.sin,ha=qa.cos,Sa=qa.atan2,la=qa.round,sa=qa.min,Ra=qa.max,ib=qa.abs,La=qa.ceil,za=qa.floor,ab=180/qa.PI,Ea=qa.PI,eb=Ea/2,$a=2*Ea,Ga=Ea+eb,Xb=b.getFirstColor,Jb=b.graphics.getLightColor,Ub=b.POSITION_TOP,lb=b.POSITION_BOTTOM,ob=b.POSITION_RIGHT,hb=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=la(a-c)+.5,l=la(b-c)+.5,k=la(a+c)+.5;c=la(b+c)+.5;var n=la(a-d)+.5,r=la(b-d)+.5,d=la(a+d)+.5,p=la(b+e)+.5,q=la(a+e)+.5,t=la(b+g)+.5;a=la(a-e)+.5;g=la(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=la(a-c)+.5,h=la(b-c)+.5,l=la(a+c)+.5;c=la(b+c)-.5;var k=la(a-e)+.5,n=b<c-3?c-3:la(b)+.5,e=la(a+e)-.5,r=la(a+d)-.5,d=la(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=W;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(C,"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(B(t?p:C,"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=na(this.definition&&this.definition.chart.enablechartmousemoveevent,0);R(c,"click",this.onContainerClick);b.push(B(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(B(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(B(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,W).attr({fill:"rgba(255,255,255,1)","font-family":"Verdana,sans","font-size":10,"line-height":14,direction:d.textDirection,ishot:!0}));a=a||W;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[$],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),A=q.radius,B=(k=k.exporting)&&k.buttons||{},E=B.exportButton&&!1!==B.exportButton.enabled,B=B.printButton&&!1!==B.printButton.enabled,F,C=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:A,id:g.count++,verticalPadding:q.symbolHPadding*t,horizontalPadding:q.symbolHPadding},C).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};E&&(h.push(F=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(){F.visible?F.hide():F.show({x:a,y:b+1})}}(g.x+w,g.y+v),{tooltip:"Export chart"}));B&&(e.printButton=g.add("printIcon",function(){a.print()},{tooltip:"Print chart"}))},setMargins:function(){var a=this.paper,b=this.options.chart||{},c=la;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,A=k.bgSWF,B=k.bgSWFAlpha/100,E=k.bgImageDisplayMode,F=k.bgImageVAlign,
C=k.bgImageHAlign,J=k.bgImageScale,N=t+","+t+","+(v-2*t)+","+(w-2*t),P,R,Q,S,Fa,W,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);A&&(P=new a,Fa=Q=1,u=[],P.onload=function(){R=Z(E,F,C,J,t,v,w,P);R["clip-rect"]=N;if(R.tileInfo)for(Q=R.tileInfo.xCount,Fa=W=R.tileInfo.yCount,T=R.y,delete R.tileInfo;Q&&R.width&&R.height;)--W,S?(u[void 0]=S.clone().attr({x:R.x,y:R.y}),g.appendChild(u[void 0])):u[void 0]=S=c.image(A,g).attr(R).css({opacity:B}),R.y+=R.height,0===W&&(W=Fa,--Q,R.x+=R.width,R.y=T);else{if(b.disposed||c.disposed)return;u[0]=c.image(A,g);u[0].attr(R).css({opacity:B}).attr({visibility:va,"clip-rect":N})}q.raiseEvent("BackgroundLoaded",
{url:A,bgImageAlpha:100*B,bgImageDisplayMode:E,bgImageVAlign:F,bgImageHAlign:C,bgImageScale:J,imageWidth:P.width,imageHeight:P.height},b.logic.chartInstance)},P.onerror=function(a){q.raiseEvent("BackgroundLoadError",{url:A,bgImageAlpha:100*B,error:a,bgImageDisplayMode:E,bgImageVAlign:F,bgImageHAlign:C,bgImageScale:J},b.logic.chartInstance)},P.src=A,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=A(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 m=c[a],g,h={hcJSON:{series:[]}},l=h.hcJSON.series[a]||(h.hcJSON.series[a]={}),k=d.chartInstance.jsVars._reflowData;g=(e=A(e,!m.visible))?"visible":"hidden";fa(m.graphics,function(a){!0!==a.data("alwaysInvisible")&&a.attr("visibility",g)});m.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])}},B=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:B(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,A=c.width,B=c.height,E=a.canvasTop,F=e.width,C=e.height,L=e.borderRadius,J=e.backgroundColor,P=e.borderColor,R=e.borderWidth||0,Q=.5*R,Fa=.5*R+2,T=na(e.padding,4),ea=.5*T,$,Ua,Aa,bb,ia,s,z,H;H=g&&g.enabled;p?(p=A-u-F,t=E+.5*(B-t-E-C)+(e.y||0)):(p=v+.5*(A-v-u-F)+(e.x||0),t=B-w-C);w=N.crispBound(p,t,F,C,R);p=w.x;t=w.y;F=w.width;
C=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){bb=s+a;ia=z+b;bb+F+Fa>A&&(bb=A-F-Fa);ia+C+Fa>B&&(ia=B-C-Fa);bb<Fa&&(bb=Fa);ia<Fa&&(ia=Fa);l.translate(bb-Ua,ia-Aa);Ua=bb;Aa=ia},function(){s=Ua;z=
Aa}));L={x:0,y:0,width:F,height:C,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);H?($=C-T,k=","+F+","+$,q=h.elementGroup=c.group("legenditems",l).attr({"clip-rect":"0,"+ea+k}),g=h.scroller||(h.scroller=c.scroller(F-10+ea-R,Q,10,C-R,!1,{scrollPosition:g.scrollPosition||0,scrollRatio:($+T)/e.totalHeight,showButtons:!1,displayStyleFlat:g.flatScrollBars},l)),g.attr("fill",e.legendScrollBgColor).scroll(function(b){q.transform(["T",
0,($-e.totalHeight)*b]);n(a.fusionCharts.jsVars._reflowData,{hcJSON:{legend:{scroll:{position:b}}}},!0)})):q=h.elementGroup=l;if(e.title&&e.title.text!==W){switch(e.title.align){case "start":H=T;break;case "end":H=F-T-(H?10:0);break;default:H=.5*F}L={"class":"fusioncharts-caption","text-anchor":e.title.align,text:e.title.text,title:e.title.originalText||"",x:H,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=na(d.padding,4),h=h.textDirection,u=d.itemHoverStyle,A=d.itemHiddenStyle,B=d.itemStyle,E=B.color,A=A&&A.color||"#CCCCCC",F=u&&u.color||E,u=d.symbol3DLighting,C=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,W,Fa,$,Z,U,Ua,Aa,bb,ia,s,z,H,O,f,Ia,X,G,aa;ia=0;for(s=e.length;ia<s;ia+=1)if((Q=e[ia])&&!1!==Q.showInLegend)if(U=Q.type||l,"point"===Q.legendType)for(Q=Q.data||[],Fa=0,$=Q.length;Fa<$;Fa+=1)T=Q[Fa]||{},!1!==T.showInLegend&&(T._legendType=U,P.push(T));else switch(Q._legendType=U,U){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()};$=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("LegendItemRollover",d,b.logic.chartInstance)};Z=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:E});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:A,itemTextColor:E,hoverColor:F},a.push(aa),J.push(aa.elements),Q=P[ia],Ua=e+Q._legendX+t,Aa=l+Q._legendY-t,bb=Q._legendH,S=Q._legendType||U,T=!1!==Q.visible,W=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?E:A,"vertical-align":"top",direction:h,"text-anchor":"start",cursor:B.cursor||"pointer",ishot:L,"line-height":B.lineHeight,"font-size":B.fontSize},N).data("legendItem",Q),R[S]?(S=Aa+(Q._markerYGutter||0)+r+.5*C,Q.lineWidth&&(G=aa.elements.legendItemLine=c.path({"stroke-width":Q.lineWidth,stroke:T?W:A,cursor:B.cursor||"pointer",ishot:L,path:["M",Ua+r,S,"L",Ua+r+C,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),W)),u?f.fillColor&&f.fillColor.FCcolor?(S=n({},f.fillColor),S.FCcolor.alpha="100"):S=v(f.fillColor,W):S={FCcolor:{color:v((X=f.fillColor)&&(X.FCcolor&&X.FCcolor.color.split(",")[0]||X),W),angle:0,ratio:"0",alpha:"100"}},aa.symbolColor=ea(S),z=.5*C,W=Ua+r+z,S=Aa+(Q._markerYGutter||0)+r+z,G&&(z*=.6),H=f.symbol.split("_"),O="spoke"===H[0]?1:0,S=H[1]?aa.elements.legendItemSymbol=c.polypath(H[1],W,S,z,f.startAngle,O,N):aa.elements.legendItemSymbol=c.circle(W,S,z,N),
S.data("legendItem",Q).attr({cursor:B.cursor||"pointer",stroke:T?aa.symbolStroke:A,fill:T?aa.symbolColor:A,"stroke-width":1,ishot:L}))):(S=b.getSymbolPath(Ua+r,Aa+(Q._markerYGutter||0)+r,C,C,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:A,fill:T?aa.symbolColor:A,cursor:B.cursor||"pointer",ishot:L},N).data("legendItem",Q)),aa.elements.legendItemBackground=c.rect({x:Ua,y:Aa,
width:Q._totalWidth,height:bb,r:0,fill:ea(Q.legendFillColor||g),"stroke-width":1,stroke:ea(Q.legendBorderColor||"none"),cursor:B.cursor||"pointer",ishot:L},N).click(Fa).mouseover($).mouseout(Z).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,A=h.logoLink,B=h.logoScale,E=h.logoLeftMargin,F=h.logoTopMargin,e={tr:{vAlign:Ub,hAlign:ob},bl:{vAlign:lb,hAlign:hb},br:{vAlign:lb,hAlign:ob},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":lb,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{C.open(g.href)}catch(a){(C.top||C).location.href=g.href}});p&&(L=new a,(N=e[u])||(N={vAlign:Ub,hAlign:hb}),L.onload=function(){b.disposed||c.disposed||(J=Z("none",N.vAlign,N.hAlign,B,l,n,k,L),t&&(J.w=J.width||0,J.h=J.height||0),J.src=p,r=b.paper.image(J).translate(E,F).css("opacity",v),A&&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:B,logoLink:A,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:B,logoLink:A,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:B,logoLink:A,chartX:a.chartX,chartY:a.chartY,pageX:a.pageX,pageY:a.pageY},b.logic.chartInstance,void 0,function(){A&&h.events.click.call({link:A})})}),q.raiseEvent("LogoLoaded",{logoURL:p,logoAlpha:100*v,logoPosition:u||"tl",logoScale:B,logoLink:A},b.logic.chartInstance))},L.onerror=function(a){q.raiseEvent("LogoLoadError",{logoURL:p,logoAlpha:100*v,logoPosition:u||"tl",logoScale:B,logoLink:A,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||W).toLowerCase(),
t=h.exporttargetwindow||W,w=h.exportfilename,v=h.exportparameters,u=h.exportcallback,A=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(C.navigator.userAgent)&&"_self"===t&&(t=E=m+"export_iframe",d.exportIframe||(d.exportIframe=F=ja("IFRAME",{name:E,width:"1px",height:"1px"},p.body),F.style.cssText="position:absolute;left:-10px;top:-10px;"));L=ja("form",{method:"POST",action:k,
target:t,style:"display:none;"},p.body);for(a in B)ja("input",{type:"hidden",name:a,value:B[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&&C[u]&&"function"===typeof C[u]&&C[u].call(C,c);b.raiseEvent("exported",c,e)},function(a){a={statusCode:0,statusMessage:"failure",error:a,DOMId:m,width:n.width,height:n.height};u&&C[u]&&"function"===typeof C[u]&&C[u].call(C,a);b.raiseEvent("exported",
a,e,[a])});for(a in B)B.hasOwnProperty(a)&&(B[a]=encodeURIComponent(B[a]));J.post(k,B)}var g=d.layers.buttons,m=e.id,n=d.paper,K=q&&q.hcLib,B,E,F,L,J,N,K=K&&K.isCanvasElemSupported(),P,R,Q=0,S={},T,W,ea,$,na={};g&&g.attr("visibility","hidden");N=n.toSVG(A&&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");B={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"}},W=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);na[b]=l;$(l,c,
d,e,g)};f.onerror=function(){ea()};f.src=b},$=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,na[a["xlink:href"]]?m=!0:W(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()):(B.encodedImgData=JSON.stringify(S),B.stream=N,c())},ea()):c():c();q.raiseEvent("exportDataReady",B,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);C.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)||W).replace(ga,"");r=Jb(k,60).replace(ga,U);h?k={FCcolor:{color:k,angle:0,ratio:"0",alpha:"100"}}:(h=Jb(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=na(a.startX,k),l=this.startY=na(a.startY,l),r=this.endX=na(a.endX,b.canvasRight),a=this.endY=na(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,A=this.belowLineGroup,B=this.topLineGroup,E=this.belowLabelGroup,C=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,$,Z,U,Ua,Aa,bb,ia,s,z,H,O,f,Ia,X,G,aa,ba,sa,ha,la,I,wa,Ja,fa,ga,ja,xa,va,ya,qa,Da,Ca,za,Ya,Oa,Ga,db,Na,Ea,La,kb;for(kb=0;kb<v;kb+=1){$=Z=U=null;$=e[kb];Z=h[kb];if(Aa=r[kb])if(bb=Aa.width,ia=Aa.isVline,s=Aa.isTrend,z=Aa.isGrid,H=Aa.tooltext,O=Aa.value,f=
Aa.color,Ia=Aa.dashStyle,X=s?Aa.to:null,G=Aa._isStackSum,Q=3<Aa.zIndex?B:A,aa=Aa.label){ba=aa.style;sa=aa.text;ha=ba&&ba.color;la=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;
ja=aa.x||0;xa=aa.y||0;va=aa.align;ya=aa.verticalAlign;qa=aa.textAlign;Da=na(parseInt(aa.borderWidth,10),1);S=G?u:3<=Aa.zIndex?C:E;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>na(I,O,0);c?(Ya=this.getAxisPosition(O),Ga=s?this.getAxisPosition(X)||Ya:Ya,db=Ya!==Ga?!0:!1,Na=["M",l.x,Ya,"L",
l.toX,Ga],ia?a.logic.isBar&&(za=a.yAxis[la],!G&&!isNaN(I)&&0<=I&&1>=I&&(I=za.min+(za.max-za.min)*I),Oa=za.getAxisPosition(na(I,O))+ja+Ca*(La?-1:1)):Oa=aa?za=this.axisData.isOpposite||"right"===va?l.toX+ja:l.x+ja: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),db=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[la],!G&&!isNaN(I)&&0<=I&&1>=I&&(I=za.min+(za.max-
za.min)*(1-I)),Ya=za.getAxisPosition(na(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<bb)db={path:T(Na,bb),stroke:f,"stroke-width":bb,"shape-rendering":!db&&1<=bb?"crisp":void 0,"stroke-dasharray":Ia?Ia:void 0,visibility:Ea},$?$.attr(db):($=e[kb]=b.path(db,Q).css(Aa.style),n.lines=n.lines||[],n.lines.push($)),L&&H&&bb<F&&Ea&&(U=b.path({stroke:g,"stroke-width":F,
ishot:!0,path:Na,fill:g},a.layers.tracker)),U=U||$,L&&H&&U.tooltip(H);else if($||Z)$&&$.remove(),$=null,e&&(e[kb]=null),n&&n.lines&&(n.lines[kb]=null);aa&&Aa&&!Aa.stepped&&"visible"===Ua&&aa.text!=W&&" "!=aa.text?(Ya=s?"left"===va?Ya:Ga:Ga,U=Oa-+!ia*d*N+d*(ja||0),G?(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=lb,qa=ga?"start":"middle"):Ga=ya,/\n|<br\s*?\/?>/ig.test(sa)&&z&&(ga?(Ga="middle",U-=d*(ja||0)):(Ga=d&&this.axisData.opposite&&
!ga?"middle":Ub,Ya-=fa)),db={"class":"fusioncharts-label",text:sa,fill:wa?ha||f:null,title:aa&&(aa.originalText||W),cursor:aa.link?"pointer":W,x:U,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},Z?Z.attr(db):(Z=h[kb]=b.text(db,S).attr("class","fusioncharts-label"),$&&($.label=Z),n.labels=
n.labels||[],n.labels.push(Z),Aa.isDataLabel&&Z.click(J("dataLabelClick")).hover(J("dataLabelRollOver"),J("dataLabelRollOut"))),wa&&Z.css(wa),Aa.isDataLabel&&(Ua={text:sa,index:R,link:aa.link},R+=1,Z.data("eventArgs",Ua)),ga&&Z.attr("transform",["r",ga,U,Ya]),G&&Z&&P.push(Z)):Z&&(Z.isRotationSet=!1,Z.remove(),h&&(h[kb]=null),n&&n.labels&&(n.labels[kb]=null));!$&&!Z||Aa&&null===Aa.value||(Aa&&Aa.isMinLabel?this.poi.min={label:Z,index:kb,line:$}:Aa&&Aa.isMaxLabel?this.poi.max={label:Z,index:kb,line:$}:
Aa&&Aa.isZeroPlane&&(this.poi.zero={label:Z,index:kb,line:$}));$=Z=null}na(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,A,B,E,F,C,L,J,N,P,R,Q,S,T,$,W,Z,ia,s,z,H,O,f,U,X,G,aa,ba,pa,sa,ha,I,wa,fa,ga,la,ja=Ra(d.length,e.length);for(la=0;la<ja;la+=1){ga="visible";wa=e[la];fa=g[la];if(A=d[la])if(B=A.tooltext,E=A.to,F=A.from,C=A.value,L=A.width,J=A.color,ha=3<A.zIndex?q:p,N=A.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;Z=N.backgroundOpacity;W&&(O=N.labelBgClr=ea({color:W,alpha:100*Z}));if(W=N.borderColor)f=N.labelBorderClr=ea({color:W,alpha:"100"});W=N.textAlign;W="left"===W?"start":"right"===W?"end":"middle";Z=N.verticalAlign;H=N.borderType;I=3<A.zIndex?w:t}U=this.getAxisPosition(na(E,C));X=this.getAxisPosition(na(F,C));G=c?h.x:X;aa=c?U:h.y;ba=c?h.w:(this.axisData.reversed?
X-U:U-X)||L||1;X=c?X-U||1:h.h;U=G+ba;ba=ib(ba);0>X&&(X=ib(X),aa-=X);c||(ga=r?"hidden":G+l>n||U+l<k?"hidden":ga);N&&(pa=c?"right"===Q?h.toX+S:h.x+S:G+ba/2,sa=c?aa+X/2:h.toY+T);if(!wa&&A&&"visible"===ga)A={x:G,y:aa,width:ba,height:X,fill:ea(J),"stroke-width":0},wa?wa.attr(A):(wa=e[la]=b.rect(A,ha),v.bands=v.bands||[],v.bands[la]=wa),a&&B&&wa.tooltip(B);else if(wa&&(!A||"hidden"===ga)){v.labels&&(g[la]=v.labels[la]=null);wa.label&&wa.label.remove();e[la]=v.bands[la]=null;wa.remove();continue}wa&&N&&
N.text&&(A={"class":"fusioncharts-label",text:ia,title:s||"",fill:z,"text-bound":[O,f,R,.2*$,"solid"===H?!1:!0],x:pa,y:sa,"text-anchor":W,direction:u,"vertical-align":Z,"line-height":P.lineHeight},fa?fa.attr(A):(fa=g[la]=wa.label=b.text(A,I).attr("class","fusioncharts-label"),P&&fa.css(P),v.labels=v.labels||[],v.labels[la]=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=na(a.offset,0)+na(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=na(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?lb:"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=na(a.plotBorderRadius,0),l=a.plotBorderWidth,w=.5*l,v=a.plotBorderColor,u=a.isBar,A=a.is3D,B=a.use3DLighting,E=a.showCanvasBg,F=a.canvasBgDepth,C=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)];A&&(E&&(l=u?d.canvasBg=c.path(["M",n,",",k,"L",n+1.2*F,",",k-F,",",n+r-F,",",k-F,",",n+r,",",k,"Z"],S):d.canvasBg=c.path(["M",n+r,",",k,"L",n+r+F,",",k+1.2*F,",",n+r+F,",",k+p-F,",",n+r,",",k+p,"Z"],S),l.attr({"stroke-width":0,stroke:"none",
fill:ea(b)})),C&&(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,U),!B]}),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,U),.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,A,B,E,F,C,L,J,P,R,Q,S,W,T,Z,ea=d.dataset,U=d.datalabels,ba=d.tracker;E=d.layerAboveDataset;var pa,ia;h.enabled&&(pa=d.scroll=d.scroll||c.group("scroll").insertAfter(E),E=h.scrollRatio,b=na(b[$].xAxisScrollPos,h.startPercent),
F=h.viewPortMax,C=h.viewPortMin,A=h.vxLength,L=La(A),J=h.showButtons,P=h.height,R=h.padding,Q=h.color,S=h.flatScrollBars,A=h.windowedCanvasWidth=e.getAxisPosition(A),u=h.fullCanvasWidth=e.getAxisPosition(F-C)-A,B=la(b*u),W=a.fusionCharts.jsVars._reflowData,T={hcJSON:{_FCconf:{xAxisScrollPos:0}}},Z=T.hcJSON._FCconf,d.scroller=c.scroller(k-v,l+p+w+R-!!w,r+v+g,P,!0,{showButtons:J,displayStyleFlat:S,scrollRatio:E,scrollPosition:b},pa).data("fullCanvasWidth",u).data("windowedCanvasWidth",A).attr({"scroll-display-style":S,
fill:Q,r:t&&2||0}).scroll(function(b){var c;B=-la(b*u);ea&&ea.transform(["T",B,0]);U&&U.transform(["T",B,0]);ba&&ba.transform(["T",B,0]);e.setOffset&&e.setOffset(B);c={position:b,direction:b-h.lastPos||0,vxLength:L};Z.xAxisScrollPos=h.lastPos=b;n(W,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=na(a.options[$].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,D=ya&&b.getTouchEvent(c)||l;c=c.originalEvent;e=(c.clientX||c.pageX||D.pageX)-e;h=(c.clientY||c.pageY||D.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=E(c),c&&(R(c,"pointerdrag",d),B(c,"pointerdrag",d))),0<v&&(c=-la(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,A=!1!==(t.tooltip||{}).enabled,B,E=d.definition.chart,C=t.plotOptions.series,J=C.dataLabels.style,R=d.xAxis[b.xAxis||0],Q=d.yAxis[b.yAxis||0],S=d.chartWidth,W=d.chartHeight,T=Q.axisData.reversed,Z=p.isLog,U=p.is3D,ba=p.isStacked,fa=p.isWaterfall,ga=p.isCandleStick,Ua=v(R.axisData.scroll,{}),Aa=c||{},bb=Ua.enabled,ia=na(Aa.position,t[$].xAxisScrollPos,Ua.startPercent),
s=Aa.vxLength||La(Ua.vxLength),z=Aa.scrollStart||Ra(0,la((h-s)*ia)-1)||0,H=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,G=c!==xa?0:isNaN(+C.animation)&&C.animation.duration||1E3*C.animation,aa=b.numColumns||1,ha=b.columnPosition||0,ja=u.use3DLighting,va=!1===b.visible?"hidden":"visible",za=u.overlapColumns,I=R.getAxisPosition(0),wa=R.getAxisPosition(1)-I,Ja=E&&E.plotspacepercent,qa=na(E&&E.plotpaddingpercent),
ya=C.groupPadding,Ca=C.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=ha*Na-Ea+Sa/2,$a=Q.max,ab=Q.min,Ya=0<$a&&0<=ab,Oa=0>=$a&&0>ab,lb=0<$a&&0>ab,db=Oa||T&&Ya?$a:Z||Ya?ab:0,eb=Q.yBasePos=Q.getAxisPosition(db),ob,Hb=na(u.useRoundEdges,0),kb=q.dataset=q.dataset||n.group("dataset-orphan"),cb=q.datalabels=q.datalabels||n.group("datalabels").insertAfter(kb),fb=q.tracker,hb=d.canvasTop,Jb=d.canvasLeft,Ub=d.canvasWidth,Xb=d.canvasBottom,
Fc=d.canvasRight,sc,md,nd,Gc,cc,dc,Oc,Qb,bc,xb,qb,oc,Fb,wc,Rb,hc,Sb,jb,xc,Hc,Ta,Gb,zb,tb,pc,Pc,rb,Ba,Vb,qc,Qc,Wc,ic,rc,tc,yc,Ic,mb,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});cb.attr("class","fusioncharts-datalabels");G&&(!c&&cb.attr({transform:"...t"+S+","+W}),d.animationCompleteQueue.push({fn:function(){cb.attr({transform:"...t"+-S+","+-W})},scope:d}));Na-=Sa;bb&&z>H-s-2&&(z=Ra(0,H-s-2));ba&&(yc=kb.shadows||(kb.shadows=n.group("shadows",kb).toBack()));Vb=kb.column||(kb.column=n.group("columns",kb));ga||U||bb||Vb.attrs["clip-rect"]||Vb.attr({"clip-rect":w["clip-canvas"]});fa&&Vb.toBack();if(U)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(Jb-cc,eb+dc,Ub,1,cc,dc,Wc).attr({fill:[md,!ja],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<H;xb+=1){qb=e[xb];Rb=qb.y;B=qb.toolText;sc=a.index+"_"+xb;rb=Ba=null;if(null===Rb){if(bc=l[xb])rb=bc.graphic,U||rb.attr({height:0})}else{Oc=!1;wc=na(qb.x,xb);oc=qb.link;Fb=L(qb.borderWidth)||0;Pc=qb._FCW*wa;Sb=R.getAxisPosition(qb._FCX)||R.getAxisPosition(wc)+
Xc;hc=qb.previousY;xc=Q.getAxisPosition(hc||db);jb=Q.getAxisPosition(Rb+(hc||0));Ta=ib(jb-xc);Gb=Pc||Na;zc={index:xb,link:oc,value:qb.y,displayValue:qb.displayValue,categoryLabel:qb.categoryLabel,toolText:qb.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible};if(U){0>Rb&&(jb=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});rb=bc.graphic;tb=pc={};qb.hoverEffects&&(tb={fill:[ea(qb.color),!ja],
stroke:Fb&&ea(qb.borderColor)||"NONE","stroke-width":Fb},zb=qb.rolloverProperties,pc={fill:[ea(zb.color),!ja],stroke:zb.borderWidth&&ea(zb.borderColor)||"NONE","stroke-width":zb.borderWidth});rb.attr({cubepath:[Sb-cc,G?eb+dc:jb+dc,Gb,G?0:Ta,cc,dc],fill:[ea(qb.color),!ja],stroke:Fb&&ea(qb.borderColor)||"NONE","stroke-width":Fb,visibility:va}).shadow(C.shadow&&qb.shadow,yc).data("BBox",{height:Ta,width:Gb,x:Sb,y:jb});G&&rb.animate({cubepath:[Sb-cc,jb+dc,Gb,Ta,cc,dc]},G,"normal",d.getAnimationCompleteFn());
if(oc||A)!ba&&Ta<F&&(jb-=(F-Ta)/2,Ta=F),bc.tracker||(bc.tracker=n.cubepath(fb)),Ba=bc.tracker,Ba.attr({cubepath:[Sb-cc,jb+dc,Gb,Ta,cc,dc],cursor:oc?"pointer":"",stroke:Fb&&g||"NONE","stroke-width":Fb,fill:g,ishot:!0,visibility:va});(Ba||rb).data("eventArgs",zc).data("groupId",sc).click(Dc).hover(Qa(rb,pc),Bc(rb,tb)).tooltip(B);(Ba||rb)._.cubetop.data("eventArgs",zc).data("groupId",sc).click(Dc).hover(Qa(rb,pc),Bc(rb,tb)).tooltip(B);(Ba||rb)._.cubeside.data("eventArgs",zc).data("groupId",sc).click(Dc).hover(Qa(rb,
pc),Bc(rb,tb)).tooltip(B);ba&&Oc&&(rb.toBack(),Ba&&Ba.toBack())}else{Qb=!1;if(!Z&&!T&&0>Rb||!Z&&T&&0<Rb)jb=xc,Qb=!0;T&&!lb&&0<Rb&&(jb=xc-Ta,Qb=!1);fa&&0>Rb&&Da(hc)&&(jb-=Ta,Qb=!0);ga||bb||(P(jb)<=hb&&(Ta-=hb-jb-+Ia,jb=hb-+Ia),la(jb+Ta)>=Xb&&(Ta-=la(jb+Ta)-Xb+ +!!Fb+ +Ia,u.xAxisLineVisible&&!Ia&&(Ta+=1)),1>=Fb&&(la(Sb)<=Jb&&(Gb+=Sb,Sb=Jb-Fb/2+ +!!Fb-+Ia,Gb-=Sb),la(Sb+Gb)>=Fc&&(Gb=Fc-Sb+Fb/2-+!!Fb+ +Ia)));Ic=N.crispBound(Sb,jb,Gb,Ta,Fb);Sb=Ic.x;jb=Ic.y;Gb=Ic.width;Ta=Ic.height;if(!ga&&Ia&&(!Da(hc)||
fa&&hc===Rb&&Rb===qb._FCY))if(Oa&&!T)X=jb-(hb-Fb/2),Ta+=X,eb=jb-=X;else if(Z||Ya||T&&Oa)Ta=Xb-jb+Fb/2,eb=jb+Ta;fa&&hc&&0<Fb&&0!==C.connectorOpacity&&1===C.connectorWidth&&C.connectorDashStyle&&(--Ta,0>Rb&&(jb+=1));1>Ta&&(jb+=0>Rb?1:0===Rb?0:-(1-Ta),Ta=1);b._columnWidth=Gb;if(!(bc=l[xb])){bc=l[xb]={index:xb,value:Rb,width:Gb,graphic:null,valueBelowPlot:Qb,dataLabel:null,tracker:null};ob=0;G||(eb=jb,ob=Ta||1);tb=pc={};qb.hoverEffects&&(tb={fill:ea(qb.color),stroke:ea(qb.borderColor),"stroke-width":Fb,
"stroke-dasharray":qb.dashStyle},zb=qb.rolloverProperties,pc={fill:ea(zb.color),stroke:ea(zb.borderColor),"stroke-width":zb.borderWidth,"stroke-dasharray":zb.dashStyle});mb={x:Sb,y:eb,width:Gb,height:ob,r:Hb,fill:ea(qb.color),stroke:ea(qb.borderColor),"stroke-width":Fb,"stroke-dasharray":qb.dashStyle,"stroke-linejoin":"miter",visibility:va};rb?rb.attr(mb):rb=bc.graphic=n.rect(mb,tc);rb.shadow(C.shadow&&qb.shadow,yc).data("BBox",Ic);G&&rb.animate({y:jb,height:Ta||1},G,"normal",d.getAnimationCompleteFn());
if(oc||A)!ba&&Ta<F&&(jb-=(F-Ta)/2,Ta=F),mb={x:Sb,y:jb,width:Gb,height:Ta,r:Hb,cursor:oc?"pointer":"",stroke:g,"stroke-width":Fb,fill:g,ishot:!0,visibility:va},(Ba=bc.tracker)?Ba.attr(mb):Ba=bc.tracker=n.rect(mb,fb);Ba=bc.tracker;(Ba||rb).data("eventArgs",zc).data("groupId",sc).click(Dc).hover(Qa(rb,pc),Bc(rb,tb)).tooltip(B)}}Hc=d.drawPlotColumnLabel(a,b,xb,Sb,jb)}Hc&&k.push(Hc);rb&&k.push(rb);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,la((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,A=a.graphic;c=a.dataLabel;var B=v(a.valueBelowPlot,0>w.y),E=l.isStacked,l=l.is3D,F=d.xDepth||0,C=d.yDepth||0,L=w.displayValue;b=!1===b.visible?"hidden":"visible";var J=d.placeValuesInside,N;g=g||r.datalabels;Da(L)&&L!==W&&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}),A=A.data("BBox"),r=A.height,n=N=a._state.labelHeight+u,u=.5*N+u,A=A.x+.5*A.width,N=B?t+q-(e+r):e-t,E?(e=sa(t+q-.5*n,e+.5*
r+(C||0)),e=Ra(t+.5*n,e),A-=F):J?r>=n?(e+=B?r-u:u,w._valueBelowPoint=1,l&&(A-=F,e+=C)):N>=n?(e+=B?r+u:-u,l&&B&&(A-=F,e+=C)):(e+=B?r-u:u,w._valueBelowPoint=1,l&&(A-=F,e+=C)):N>=n?(e+=B?r+u:-u,l&&(B?(A-=F,e+=C):A-=F/2)):(e+=B?r-u:u,w._valueBelowPoint=1,l&&(A-=F,e+=C)),c?c.attr({x:A,y:e,visibility:b}):c=a.dataLabel=k.text({text:L,"class":"fusioncharts-label",x:A,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:W});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,
A=p.dataLabels.style,B={fontFamily:A.fontFamily,fontSize:A.fontSize,lineHeight:A.lineHeight,fontWeight:A.fontWeight,fontStyle:A.fontStyle},A=c.xAxis[b.xAxis||0],E=c.yAxis[b.yAxis||0],C=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,W=!1===b.visible?"hidden":"visible",$=t.overlapColumns,Z=A.getAxisPosition(0),
Z=A.getAxisPosition(1)-Z,U=v&&v.plotspacepercent,v=na(v&&v.plotpaddingpercent),ba=p.groupPadding,Ua=p.maxColWidth,U=(1-.01*U)*Z||sa(Z*(1-2*ba),Ua*Q),Z=U/2,U=U/Q,$=sa(U-1,1<Q?$||v!==xa?0<v?U*v/100:0:4:0),Q=U-$,S=S*U-Z+$/2,Aa=E.max,fa=E.min,$=E.getAxisPosition(0>Aa&&0>fa?Aa:0<Aa&&0<fa?fa:0),v=na(t.useRoundEdges,0),ia=c.canvasTop,Z=c.canvasLeft,s=c.canvasHeight,U=c.canvasRight,z=c.chartWidth,H=c.chartHeight,O,f,Ia,X,G,aa,ga,ha,ja,va,ba=E.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",B);I.attr("class","fusioncharts-datalabels");R&&(c.animationCompleteQueue.push({fn:function(){I.attr({transform:"...t"+-z+","+-H})},
scope:c}),I.attr({transform:"...t"+z+","+H}));n&&(ya=ga.shadows||(ga.shadows=k.group("shadows",ga).toBack()));ha=ga.column=ga.column||k.group("bars",ga);if(C)for(O=t.xDepth||0,f=t.yDepth||0,B=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($-O,ia+f,1,s,
O,f,qa).attr({fill:[va,!T],stroke:Aa||"none","stroke-width":fa?1:0})),(qa=B.data("categoryplots"))||(B.data("categoryplots",Array(e)),qa=B.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(B),va[q]=va[q]||k.group(ga);else ha.attrs["clip-rect"]||ha.attr({"clip-rect":q["clip-canvas"]}),za=ha;q=0;for(B=e-1;q<e;q+=1,--B){ia=d[q];fa=ia.y;wa=s=null;if(null===fa){if(aa=h[q])wa=aa.graphic,C||wa.attr({width:0})}else{ha=
na(ia.x,q);ga=ia.link;u=ia.toolText;Aa=L(ia.borderWidth)||0;ha=A.getAxisPosition(ha)+S;aa=(Ia=ia.previousY)?E.getAxisPosition(Ia):$;ja=E.getAxisPosition(fa+(Ia||0));Ia=ib(ja-aa);0<fa&&(ja=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(C){za=0>fa?qa:va;(aa=h[q])||(aa=h[q]={index:q,value:fa,graphic:k.cubepath(za[B]),dataLabel:null,tracker:null});wa=aa.graphic;
G=X={};ia.hoverEffects&&(G={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?$-O:ja-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:W}).shadow(p.shadow&&ia.shadow,ya).data("BBox",{height:Q,width:Ia,x:ja,
y:ha});R&&wa.animate({cubepath:[ja-O,ha+f,Ia,Q,O,f]},R,"normal",c.getAnimationCompleteFn());if(ga||w)!n&&Ia<F&&(ja-=(F-Ia)/2,Ia=F),aa.tracker||(aa.tracker=k.cubepath(r)),s=aa.tracker,s.attr({cubepath:[ja-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,G)).tooltip(u);(s||wa)._.cubetop.data("eventArgs",Ja).click(Ua).hover(Da(wa,X),Ga(wa,G));(s||wa)._.cubeside.data("eventArgs",Ja).click(Ua).hover(Da(wa,
X),Ga(wa,G));if(!n||n&&0>fa)wa.toBack(),s&&s.toBack()}else{P(ja)<=Z&&(Ia+=ja,ja=Z+Aa/2+.2,t.xAxisLineVisible&&!J&&--ja,Ia-=ja);la(ja+Ia)>=U&&(Ia=U-ja-Aa/2-.2);Ca=N.crispBound(ja,ha,Ia,Q,Aa);ja=Ca.x;ha=Ca.y;Ia=Ca.width;Ra=Ca.height;1>=Ia&&(Ia=1,ja+=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;G=X={};ia.hoverEffects&&(G={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?$:ja,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:W};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:ja,width:Ia||1},R,"normal",c.getAnimationCompleteFn());
if(ga||w)!n&&Ia<F&&(ja-=(F-Ia)/2,Ia=F),s=aa.tracker,fa={x:ja,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,G)).tooltip(u)}u=c.drawPlotBarLabel(a,b,q,ja,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,A=l.isStacked,l=l.is3D,B=k.xDepth||0,E=k.yDepth||0,F=t.displayValue;b=!1===b.visible?"hidden":"visible";var C=k.placeValuesInside;g=g||r.datalabels;if(Da(F)&&F!==W&&null!==t.y){c||(c=w.dataLabel=n.text({"class":"fusioncharts-label",text:F,"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=A?"middle":v?C?"start":"end":C?"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(A)t=Ra(h+.5*r,t+.5*(v?n:-n)),t=sa(h+q-.5*r,t),t-=l?B:0,p+=l?E:0;else if(C?n>=r?(t+=v?a:-a,l&&(p+=E,t-=B)):r<k?(t+=v?-a:a,g=v?"end":"start",l&&v&&(t-=
B)):(v?(t=d+n+Ra(r-d-n+h,0)-a,g="end",t-=l?B:0):(t=d-Ra(r-(h+q-d),0)+a,g="start"),l&&(t-=B,p+=E)):e>=r?(t+=v?-a:a,l&&v&&(t-=B,p+=B)):(t+=v?a+r:-(a+r),l&&(t-=B,p+=E)),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:W});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,A=n.isWaterfall,B,E,F,C,J,P=0,R=!1!==(l.tooltip||{}).enabled,Q,S=isNaN(+r.animation)&&r.animation.duration||1E3*r.animation,T,W=r.dataLabels.style,$={fontFamily:W.fontFamily,fontSize:W.fontSize,lineHeight:W.lineHeight,fontWeight:W.fontWeight,fontStyle:W.fontStyle},Z=k.xDepth||0,U=k.yDepth||0,fa=k.series2D3Dshift,ga=c.step,ha=c.drawVerticalJoins,ia=c.useForwardSteps,s=b.data,z=!1===c.visible?"hidden":"visible",H,O=s.length,f=w.getAxisPosition(0),
ja=w.getAxisPosition(1)-f,X=ja*O,G=w.axisData.scroll||{},aa=k.hasScroll||!1,la,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,eb=r.connectorDashStyle=c.dashStyle,db,ab,ob,Hb,kb,cb,fb,hb,ib,lb=d.layers,Jb=lb.dataset=lb.dataset||e.group("dataset-orphan"),Fc=lb.datalabels=lb.datalabels||e.group("datalabels").insertAfter(Jb),
sc=lb.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?U:0),Qb=[],bc=k.anchorTrackingRadius,xb=/drag/ig.test(d.logic.rendererId),qb,oc,Fb,wc,Rb,hc,Sb,jb,xc,Hc,Ta,Gb,zb=[],tb=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)}},rb=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,E=this.width*v*.01;fb={x:a-this.width*t*.005,y:f-this.height*t*.005,width:B,height:A,alpha:w};hb={x:a-this.width*v*.005,y:f-this.height*v*.005,width:E,height:this.height*v*.01,alpha:u};u=E>B?hb:fb;xb&&(u={cx:a,cy:f,r:.5*Ra(A,B)});(l.graphic=Hb=e.image(s,Sb).attr(fb).css({opacity:.01*w}).data("alwaysInvisible",!t).data("setRolloverProperties",
r).data("setRolloverAttr",hb).data("setRolloutAttr",fb).data("anchorRadius",t).data("anchorHoverRadius",v))&&q.push(Hb);if(Ja||R||r)kb=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",qb).click(tb).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",$);Fc.attr("class","fusioncharts-datalabels");r.connectorOpacity=N.color($a).opacity;u.yBasePos=Oc;A&&(B=(E=d.definition.chart)&&E.plotspacepercent,F=r.groupPadding,C=r.maxColWidth,J=(1-.01*B)*ja||sa(ja*(1-2*F),1*C),P=J/2);Fc.attr({transform:"...t"+qa+","+za});S&&d.animationCompleteQueue.push({fn:I,scope:d});Fb=Jb.line||(Jb.line=e.group("line-connector",Jb));wc=b.lineShadowLayer||
(b.lineShadowLayer=e.group("connector-shadow",Fb));Rb=b.anchorShadowLayer||(b.anchorShadowLayer=e.group("anchor-shadow",Fb));hc=b.lineLayer||(b.lineLayer=e.group("connector",Fb));Sb=b.anchorLayer||(b.anchorLayer=e.group("anchors",Fb));Sb.hide();wc.hide();Rb.hide();for(H=0;H<O;H+=1){wa=s[H];Ca=wa.y;Da=wa.previousY||0;Q=wa.toolText;qb=b.index+"_"+H;ib=Ta=Hb=kb=null;t=p[H]={index:H,value:null,graphic:null,connector:null,dataLabel:null,shadowGroup:Rb,tracker:null};if(null===Ca)zb.length=0,0===va&&(Na=
null);else{ya=na(wa.x,H);Ja=wa.link;"boxandwhisker"===c.relatedSeries&&c.pointStart&&(ya+=c.pointStart);La=u.getAxisPosition(Ca+Da)+(fa?U:0);Ea=w.getAxisPosition(ya)-Z;Ea=ba(Ea,Sa,Sa).position;La=ba(La,Sa,Sa).position;if((db=wa.marker)&&db.enabled)if(ab=db.symbol.split("_"),ob="spoke"===ab[0]?1:0,xa=db.radius,jb=db.shadow,oc={index:H,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},
fb=hb={},cb=wa.rolloverProperties,db.imageUrl)Gb=new a,Gb.onload=rb(Ea,La,db,t,oc,Q,cb,H),Gb.onerror=Ba(Ea,La,db,t,oc,Q,cb,H),Gb.src=db.imageUrl;else{cb&&(fb={polypath:[ab[1]||2,Ea,La,xa,db.startAngle,ob],fill:ea(db.fillColor),"stroke-width":db.lineWidth,stroke:ea(db.lineColor)},hb={polypath:[cb.sides||2,Ea,La,cb.radius,cb.startAngle,cb.dip],fill:ea(cb.fillColor),"stroke-width":cb.lineWidth,stroke:ea(cb.lineColor)});Hb=t.graphic=e.polypath(ab[1]||2,Ea,La,xa,db.startAngle,ob,Sb).attr({fill:ea(db.fillColor),
"stroke-width":db.lineWidth,stroke:ea(db.lineColor),cursor:Ja?"pointer":"",visibility:xa?z:"hidden"}).data("alwaysInvisible",!xa).data("setRolloverProperties",cb).data("setRolloverAttr",hb).data("setRolloutAttr",fb).data("anchorRadius",xa).data("anchorHoverRadius",cb&&cb.radius).shadow(jb||!1,Rb);if(Ja||R||cb)xa=Ra(xa,cb&&cb.radius||0,bc),kb=t.tracker=e.circle({cx:Ea,cy:La,r:xa,cursor:Ja?"pointer":"",stroke:g,"stroke-width":db.lineWidth,fill:g,ishot:!0,visibility:z},sc);(kb||Hb).data("eventArgs",
oc).data("groupId",qb).click(tb).hover(pc(t),Pc(t)).tooltip(Q);d.drawTracker&&d.drawTracker.call(d,b,c,H)}xc=Hc!==[ea(wa.color||$a),wa.dashStyle||eb].join(":");if(null!==Na){if(zb.length&&(Qb=Qb.concat(zb),zb.length=0),(v||A||!Qb.join(""))&&Qb.push("M",Ga,Na),A&&Qb.push("m",-P,0),ga?ia?(Qb.push("H",Ea),A&&Qb.push("h",P),ha?Qb.push("V",La):Qb.push("m",0,La-Na)):(ha&&Qb.push("V",La),Qb.push("M",Ga,La,"H",Ea)):Qb.push("L",Ea,La),v||xc)ib=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&&zb.push("M",Ea,La);db&&db.imageUrl||(Ta=t.dataLabel=d.drawPlotLineLabel(b,c,H,Ea,La));Ga=Ea;Na=La;Ya=ea(wa.color||$a);Oa=wa.dashStyle||eb;Hc=[Ya,Oa].join(":")}Ta&&q.push(Ta);Hb&&q.push(Hb);ib&&q.push(ib);kb&&q.push(kb)}!v&&Qb.join("")&&(ib=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(ib);aa&&(la=G.startPercent,Ub[2]=X+Xb[0],1===la&&(Xb[0]=Ub[2],Ub[0]=0));S?(T=N.animation({"clip-rect":Ub},S,aa?"easeIn":"normal",d.getAnimationCompleteFn()),hc.attr({"clip-rect":Xb}).animate(A?T.delay(S):T)):(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},A={fill:u.fill,"stroke-width":u["stroke-width"],stroke:u.stroke},u=q?u:{polypath:u.polypath},h=h.syncLabelWithAnchor,B=g.data("anchorRadius"),E=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!==E||"DataPlotRollOut"==c&&0!==B)&&g.attr({visibility:"visible"}),q?g.css({opacity:.01*u.alpha}):g.attr(A),n&&!q&&(u.polypath[1]=r[1],u.polypath[2]=r[2]),g.stop(),g.animate(u,p,"easeOut",function(){("DataPlotRollOver"==c&&!E||"DataPlotRollOut"==c&&!B)&&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],A=v.axisData.reversed,B=l.xDepth||0,E=l.yDepth||0,k=k.isStacked,F=!1!==(h.tooltip||{}).enabled,C,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,T=u.getAxisPosition(0),W=(u.getAxisPosition(1)-T)*S,$=u.axisData.scroll||{},T=l.hasScroll||!1,Z=r.connectNullData,U,ba,fa,ia,s,z=v.max,H=v.min,O=v.getAxisPosition(0<z&&0>H?0:!A&&0<z&&0<=H?H:z)+(N?E:0),f=d.chartWidth,ha=d.chartHeight,A=function(){$a.attr({"clip-rect":null});db.show();Oa.show();La.attr({transform:"...t"+-f+","+-ha})},X=null,G,aa,z=c.lineWidth,H=c.dashStyle,
ga=ea(c.fillColor),ja=ea(c.lineColor),la=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,db,$a,ab,eb,kb,cb,fb,hb=function(a){pa.call(this,d,a)},ib=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOver",
a,d)}},lb=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,z=h.imageAlpha,u=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:z};za={x:a-this.width*v*.005,y:f-this.height*v*.005,width:B,height:this.height*v*.01,alpha:u};u=B>A?za:xa;sa&&(u={cx:a,cy:f,r:.5*Ra(B,A)});(l.graphic=
wa=e.image(s,db).attr(xa).css({opacity:.01*z}).data("alwaysInvisible",!w).data("setRolloverProperties",p).data("setRolloverAttr",za).data("setRolloutAttr",xa).data("anchorRadius",w).data("anchorHoverRadius",v))&&t.push(wa);if(ba||F||p)Ya=n({cursor:ba?"pointer":"",stroke:g,"stroke-width":h.lineWidth,fill:g,ishot:!0,visibility:Q},u),va=l.tracker=(sa?e.circle(Ya,Na):e.rect(Ya,Na)).data("eventArgs",k).click(hb).hover(ib(l),lb(l)).tooltip(r),d.drawTracker&&d.drawTracker.call(d,b,c,q);(fb=l.dataLabel=d.drawPlotLineLabel(b,
c,q,a,f))&&t.push(fb)}},ob=function(a,e,f,g,h,l,k,n){return function(){(fb=g.dataLabel=d.drawPlotLineLabel(b,c,n,a,e))&&t.push(fb)}};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:A,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));db=b.anchorLayer||(b.anchorLayer=e.group("anchors",J));db.hide();Oa.hide();J=ia;for(J=0;J<S;J+=1){U=R[J];ia=U.y;w=na(U.x,J);G=u.getAxisPosition(w)-B;wa=fb=va=null;w=q[J]={};if(null===ia)0===Z&&(X=null,0<la&&(1===la?ya.splice(-8,8):(ya=ya.concat(Ca),ya.push("Z")),Ca=[])),w.chart=d,w.index=J,w.value=ia;
else{ba=U.link;C=U.toolText;L=U.previousY;s=(s=v.getAxisPosition(L)||null)||O;aa=v.getAxisPosition(ia+(L||0))+(N?E:0);if((cb=U.marker)&&cb.enabled)if(L={index:J,link:ba,value:U.y,displayValue:U.displayValue,categoryLabel:U.categoryLabel,toolText:U.toolText,id:b.userID,datasetIndex:b.index,datasetName:b.name,visible:b.visible},xa=za={},qa=U.rolloverProperties,cb.imageUrl)fa=new a,fa.onload=Da(G,aa,cb,w,L,C,qa,J),fa.onerror=ob(G,aa,cb,w,L,C,qa,J),fa.src=cb.imageUrl;else{I=cb.symbol.split("_");fa=cb.radius;
kb=cb.shadow;qa&&(xa={polypath:[I[1]||2,G,aa,fa,cb.startAngle,0],fill:ea(cb.fillColor),"stroke-width":cb.lineWidth,stroke:ea(cb.lineColor)},qa=U.rolloverProperties,za={polypath:[qa.sides||2,G,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,G,aa,fa,cb.startAngle,0,db).attr({fill:ea(cb.fillColor),"stroke-width":cb.lineWidth,stroke:ea(cb.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(kb||!1,Oa);if(ba||F||qa)k||(fa=Ra(fa,qa&&qa.radius||0,l)),va=w.tracker=e.circle({cx:G,cy:aa,r:fa,cursor:ba?"pointer":"",stroke:g,"stroke-width":cb.lineWidth,fill:g,ishot:!0,visibility:Q},Na);(va||wa).data("eventArgs",L).click(hb).hover(ib(w),lb(w)).tooltip(C);d.drawTracker&&d.drawTracker.call(d,b,c,J)}null===X?(Ga.push("M",G,",",aa),ya.push("M",
G,",",s),la=0):Ga.push("L",G,",",aa);ya.push("L",G,",",aa);Ca.unshift("L",G,",",s);la++;X=aa;cb&&cb.imageUrl||(fb=w.dataLabel=d.drawPlotLineLabel(b,c,J,G,aa));w.chart=d;w.index=J;w.value=ia;w.dataLabel=fb}fb&&t.push(fb);wa&&t.push(wa);va&&t.push(va)}0<la&&(1===la?ya.splice(-8,8):(ya=ya.concat(Ca),ya.push("Z")));(Da=b.graphic=e.path(ya,$a).attr({fill:ga,"stroke-dasharray":H,"stroke-width":P?0:z,stroke:ja,"stroke-linecap":"round","stroke-linejoin":2<z?"round":"miter",visibility:Q}).shadow(r.shadow&&
U.shadow,ab))&&t.push(Da);T&&(r=$.startPercent,p[2]=W+Ea[0],1===r&&(Ea[0]=p[2],p[0]=0));h?eb=$a.attr({"clip-rect":Ea}).animate({"clip-rect":p},h,T?"easeIn":"normal",d.getAnimationCompleteFn()):(A&&A(),A=void 0);ab&&(h?ab.attr({"clip-rect":Ea}).animateWith($a,eb,{"clip-rect":p},h,T?"easeIn":"normal",function(){ab.attr({"clip-rect":null})}):ab.attr({"clip-rect":null}));P&&(r=b.connector=e.path(Ga,Sa).attr({"stroke-dasharray":H,"stroke-width":z,stroke:ja,"stroke-linecap":"round","stroke-linejoin":2<
z?"round":"miter",visibility:Q}),h?Sa.attr({"clip-rect":Ea}).animateWith($a,eb,{"clip-rect":p},h,T?"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,A=h.dataLabels.style,B={fontFamily:A.fontFamily,fontSize:A.fontSize,lineHeight:A.lineHeight,fontWeight:A.fontWeight,fontStyle:A.fontStyle,color:A.color},A=isNaN(+h.animation)&&h.animation.duration||1E3*h.animation,E=c.chartWidth,F=c.chartHeight,C,J,L,N,P,R,Q,S,T,W=b.lineWidth,U=0<W,$=b.color,Z=b.dashStyle,ba=h.connectNullData,s=[],z,H,O,f,fa,X,G=c.layers,aa=G.dataset||(G.dataset=l.group("dataset-orphan")),ha=G.datalabels||(G.datalabels=l.group("datalabels").insertAfter(aa)),G=G.tracker,e=e.anchorTrackingRadius,
ga,na,ja,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",B);ha.attr("class","fusioncharts-datalabels");A&&(c.animationCompleteQueue.push({fn:function(){ha.attr({transform:"...t"+-E+","+-F})},scope:c}),ha.attr({transform:"...t"+E+","+F}));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);B=a.lineLayer=l.group("connector",ga);ga=a.anchorLayer=l.group("anchors",ga);C=0;for(J=w.length;C<J;C+=1){L=w[C];z=L.marker;S=T=f=v=fa=null;ja=a.index+"_"+C;R=L.y;P=L.x;if(null!==R&&null!==P){if(z&&z.enabled){N=L.link;v=L.toolText;O=z.radius;na=z.shadow;T=t.getAxisPosition(R);S=q.getAxisPosition(P);H={index:C,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[C]={index:C,x:P,y:R,value:R};P=R={};L.hoverEffects&&(P={polypath:[f[1]||2,S,T,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,T,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,T,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(na||!1,aa);if(N||d||X)O=Ra(O,X&&X.radius||0,e),fa=r.tracker=l.circle({cx:S,cy:T,r:O,cursor:N?"pointer":"",stroke:g,"stroke-width":z.lineWidth,fill:g,ishot:!0,visibility:u},G);(fa||f).data("eventArgs",H).data("groupId",ja).click(I).hover(la(r),
qa(r)).tooltip(v)}U&&((void 0===Q||null===Q&&0===ba)&&S&&T&&s.push("M",S,",",T),S&&T&&s.push("L",S,",",T),Q=T);v=r.dataLabel=c.drawPlotLineLabel(a,b,C,S,T)}else U&&0===ba&&(Q=null),n[C]={chart:c,index:C,x:P,y:R};v&&p.push(v);f&&p.push(f);fa&&p.push(fa);c.drawTracker&&c.drawTracker.call(c,a,b,C)}s.length&&(h=a.graphic=l.path(s,B).attr({"stroke-dasharray":Z,"stroke-width":W,stroke:$,"stroke-linecap":"round","stroke-linejoin":2<W?"round":"miter",visibility:u}).shadow(h.shadow&&L.shadow),B.attr({"clip-rect":k[A?
"clip-canvas-init":"clip-canvas"]}),A&&B.animate({"clip-rect":k["clip-canvas"]},A,"normal"),p.push(h));A&&ga.attr({opacity:0}).animate({opacity:1},A,"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],A=r(u.valuePosition,"auto").toLowerCase();a=this.logic.defaultSeriesType;
var B=v.graphic,E=u.marker,B=E&&E.enabled?B&&"image"==B.type&&.5*B.attr("height")||E&&E.radius-3:0,B=l.valuePadding+2+B;b=!1===b.visible?"hidden":"visible";E=v.dataLabel;g=g||n.datalabels;switch(A){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!==W?(E?h&&E.attr("transform",["r",360-h]):E=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}),E.attr({title:u.originalText||"",fill:p.color}),v._state&&v._state.labelWidth||(g=E.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+B+4,t=.5*k+B,/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)),E.attr({x:d,y:e,visibility:b}).data("isBelow",u._valueBelowPoint),h&&E.attr("transform","T0,0,R"+h)):E&&E.attr({text:W});return E},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!==W&&(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+(C.pageYOffset||p.scrollTop||0)-(p.clientTop||
0),e.left=g.left+(C.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=na(La(parseFloat(u.lineHeight)),12),v=A(w.placeLabelsInside,1===h.length?!0:!1),n=w.skipOverlapLabels,B=w.manageLabelOverflow,E=w.connectorPadding,F=w.distance,
C=k&&k.metrics||[p,q,r.size,r.innerSize||0],L=C[1],J=C[0];k=.5*C[2];var N=[[],[],[],[]],P=this.canvasLeft,R=this.canvasTop,r=this.canvasWidth,F=l.labelsRadius||(l.labelsRadius=k+F),q=p=parseInt(u.fontSize,10),Q=q/2,E=[E,E,-E,-E];l=l.labelsMaxInQuadrant||(l.labelsMaxInQuadrant=za(F/q));var w=w.isSmartLineSlanted,C=C[3]/2,S,T,W,U,$,Z,ba,s,z,H,O,f,ea,X,G,aa,ga,ja,la,pa;g||t.setStyle(u);if(1==h.length&&!C&&v)U=h[0],(G=U.dataLabel)&&G.show(),U.slicedTranslation=[P,R],G&&(G.attr({visibility:va,align:"middle",
transform:["t",J,L]}),G.x=J);else if(v)pa=C+(k-C)/2,fa(h,function(a){(G=a.dataLabel)&&G.show();G&&(ea=a.angle,f=L+pa*Na(ea),s=J+pa*ha(ea),G.x=s,G._x=s,G.y=f,a.sliced&&(la=a.slicedTranslation,ga=la[0]-P,ja=la[1]-R,s+=ga,f+=ja),G.attr({visibility:va,align:"middle",transform:["t",s,f]}))});else{fa(h,function(a){(G=a.dataLabel)&&G.show();G&&(ea=a.angle%$a,0>ea&&(ea=$a+ea),aa=0<=ea&&ea<eb?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)U=u[v].point,U.dataLabel.attr({visibility:"hidden"}),U.connector&&U.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,F+q);N[1].reverse();for(N[3].reverse();g--;){C=N[g];W=C.length;n||(q=W>l?X/W:p,Q=q/2);U=W*q;u=X;for(h=0;h<W;h+=1,U-=q)v=ib(X*Na(C[h].angle)),u<v?v=u:v<U&&(v=U),u=(C[h].oriY=v)-q;S=c[g];W=X-(W-1)*q;u=0;for(h=C.length-1;0<=h;--h,W+=q)if(U=C[h].point,ea=C[h].angle,$=U.sliced,
G=U.dataLabel,v=ib(X*Na(ea)),v<u?v=u:v>W&&(v=W),u=v+q,H=(v+C[h].oriY)/2,Z=J+e[g]*F*ha(qa.asin(H/X)),H*=d[g],H+=L,O=L+k*Na(ea),ba=J+k*ha(ea),(2>g&&Z<ba||1<g&&Z>ba)&&(Z=ba),s=Z+E[g],f=H-Q-2,z=s+E[g],G.x=z,G._x=z,B&&(T=1<g?z-this.canvasLeft:this.canvasLeft+r-z,t.setStyle(U.style),v=na(La(parseFloat(U.style.lineHeight)),12)+2*La(na(parseFloat(U.style.border),12),12),v=t.getSmartText(U.labelText,T,v),G.attr({text:v.text,title:v.tooltext||""})),G.y=f,$&&(ga=U.transX,ja=U.transY,s+=ga,Z+=ga,ba+=ga,O+=ja,
z+=ga),G.attr({visibility:va,"text-anchor":S,vAlign:"middle",x:z,y:H}),v=U.connector)U.connectorPath=U=["M",ba,O,"L",w?Z:ba,H,s,H],v.attr({path:U,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,C=k.loadModule,b=k.getMetaSentence,N=k.moduleCmdQueue,J=k.executeWaitingCommands,c=k.injectModuleDependency,p=k.moduleDependencies,a=k.getDependentModuleName,t,W;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)};W=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,B=this.args,w=this.options.showChartLoadingMessage,C,v;C=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(C)){if(l.drLoadAttempted){e.raiseError(this,11112822001,"run",
"HC-interface~renderer.render","Chart runtimes not loaded even when resource is present");W(this,b,g);return}c(h)&&(C=a(h).concat(l.userModules));l.drLoadAttempted=!0}else{if(!C.length){W(this,b,g);return}if(l.waitingModuleError){W(this,b,g);delete l.waitingModule;delete l.waitingModuleError;return}}(d=N[C[C.length-1]])?(d.push({cmd:"render",obj:this,args:arguments}),l.waitingModule||(l=w?n.PBarLoadingText||n.loadMessage:"",this._chartMessageImageStyle={imageHAlign:B.loadMessageImageHAlign||n.baseChartMessageImageHAlign,
imageVAlign:B.loadMessageImageVAlign||n.baseChartMessageImageVAlign,imageAlpha:B.loadMessageImageAlpha||n.baseChartMessageImageAlpha,imageScale:B.loadMessageImageScale||n.baseChartMessageImageScale},this._chartMessageStyle={color:B.loadMessageColor||n.baseChartMessageColor,fontFamily:B.loadMessageFont||n.baseChartMessageFont,fontSize:B.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:B.renderErrorMessageImageHAlign||n.baseChartMessageImageHAlign,imageVAlign:B.renderErrorMessageImageVAlign||n.baseChartMessageImageVAlign,imageAlpha:B.renderErrorMessageImageAlpha||n.baseChartMessageImageAlpha,imageScale:B.renderErrorMessageImageScale||n.baseChartMessageImageScale},this._chartMessageStyle={color:B.renderErrorMessageColor||n.baseChartMessageColor,fontFamily:B.renderErrorMessageFont||n.baseChartMessageFont,
fontSize:B.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&&W(this,b||this.ref,c)):d.waitingModule||(d.waitingModule=!0,delete d.waitingModuleError,C(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,C,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(C in k)N+=1,null===k[C]?delete b[C.toLowerCase()]:b[C.toLowerCase()]=k[C];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,C;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={},C=0;C<k.length;C+=1)q[k[C]]=u[k[C].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)},C=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);C(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()||!C(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,C=/\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();C.test(a)?(a=a.replace(C,""),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,C=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",
C,p,q))t(p,k),C+=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)},W=function(a,b){"geo"===b.defaultSeriesType&&E.call(this,a,b)},E=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,C,v;if(t){for(v=0;v<t;v+=1){C=this.themeStore;var J;J=n[v];J=J.replace(/^\s\s*/,"");for(var N=/\s/,Z=J.length;N.test(J.charAt(--Z)););J=J.slice(0,Z+1);(C=C[J])&&q.push(this.evaluateThemeJSON(C.theme,
b,c,k))}q.length?(p.themeObject=new u(q,b,!1,l),this.applyTheme(b),b.addEventListener("chartTypeChanged",E),b.addEventListener("internal.drawstart",W)):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,C;t=k[a];if(!t)return null;a=0;for(k=t.length;a<k;a+=1)C=t[a],"function"===typeof C?(b=b||0,n.pushTheme(C.call(p,b,c,e))):C instanceof Array?(b=b||0,q=C.length,b%=q,q=C[b],q instanceof u?n.merge(q):
"function"===typeof q?n.pushTheme(q.call(p,b,c,e)):n.pushTheme(q)):C instanceof u?n.merge(C):n.pushTheme(C);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",E),b.removeEventListener("internal.drawstart",W));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"}}}});
